Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
import React, { JSXElementConstructor } from "react";
|
2019-11-25 05:07:27 +00:00
|
|
|
import { IconProps, IconWrapper } from "constants/IconConstants";
|
|
|
|
|
import { ReactComponent as SpinnerIcon } from "assets/icons/widget/alert.svg";
|
|
|
|
|
import { ReactComponent as ButtonIcon } from "assets/icons/widget/button.svg";
|
|
|
|
|
import { ReactComponent as CollapseIcon } from "assets/icons/widget/collapse.svg";
|
|
|
|
|
import { ReactComponent as ContainerIcon } from "assets/icons/widget/container.svg";
|
|
|
|
|
import { ReactComponent as DatePickerIcon } from "assets/icons/widget/datepicker.svg";
|
|
|
|
|
import { ReactComponent as TableIcon } from "assets/icons/widget/table.svg";
|
2020-09-26 12:59:33 +00:00
|
|
|
import { ReactComponent as VideoIcon } from "assets/icons/widget/video.svg";
|
2019-11-25 05:07:27 +00:00
|
|
|
import { ReactComponent as DropDownIcon } from "assets/icons/widget/dropdown.svg";
|
|
|
|
|
import { ReactComponent as CheckboxIcon } from "assets/icons/widget/checkbox.svg";
|
|
|
|
|
import { ReactComponent as RadioGroupIcon } from "assets/icons/widget/radio.svg";
|
|
|
|
|
import { ReactComponent as InputIcon } from "assets/icons/widget/input.svg";
|
|
|
|
|
import { ReactComponent as SwitchIcon } from "assets/icons/widget/switch.svg";
|
|
|
|
|
import { ReactComponent as TextIcon } from "assets/icons/widget/text.svg";
|
|
|
|
|
import { ReactComponent as ImageIcon } from "assets/icons/widget/image.svg";
|
|
|
|
|
import { ReactComponent as FilePickerIcon } from "assets/icons/widget/filepicker.svg";
|
2020-04-15 11:42:11 +00:00
|
|
|
import { ReactComponent as TabsIcon } from "assets/icons/widget/tabs.svg";
|
2020-03-20 11:17:30 +00:00
|
|
|
import { ReactComponent as RichTextEditorIcon } from "assets/icons/widget/rich-text.svg";
|
2020-03-13 12:06:41 +00:00
|
|
|
import { ReactComponent as ChartIcon } from "assets/icons/widget/chart.svg";
|
2020-03-06 09:45:21 +00:00
|
|
|
import { ReactComponent as FormIcon } from "assets/icons/widget/form.svg";
|
2020-04-15 11:42:11 +00:00
|
|
|
import { ReactComponent as MapIcon } from "assets/icons/widget/map.svg";
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
import { ReactComponent as ModalIcon } from "assets/icons/widget/modal.svg";
|
2019-09-26 11:11:28 +00:00
|
|
|
/* eslint-disable react/display-name */
|
|
|
|
|
|
|
|
|
|
export const WidgetIcons: {
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
[id: string]: JSXElementConstructor<IconProps>;
|
2019-09-26 11:11:28 +00:00
|
|
|
} = {
|
|
|
|
|
SPINNER_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<SpinnerIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
BUTTON_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ButtonIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
CHECKBOX_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CheckboxIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
COLLAPSE_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<CollapseIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
CONTAINER_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ContainerIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
DATE_PICKER_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DatePickerIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
TABLE_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<TableIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-09-26 12:59:33 +00:00
|
|
|
VIDEO_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<VideoIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-09-26 11:11:28 +00:00
|
|
|
DROP_DOWN_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<DropDownIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
RADIO_GROUP_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<RadioGroupIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
INPUT_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<InputIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-03-20 11:17:30 +00:00
|
|
|
RICH_TEXT_EDITOR_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<RichTextEditorIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-09-26 11:11:28 +00:00
|
|
|
SWITCH_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<SwitchIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
|
|
|
|
TEXT_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<TextIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-10-30 10:23:20 +00:00
|
|
|
IMAGE_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ImageIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-11-05 05:09:50 +00:00
|
|
|
FILE_PICKER_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<FilePickerIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-04-15 11:42:11 +00:00
|
|
|
TABS_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<TabsIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-03-13 12:06:41 +00:00
|
|
|
CHART_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ChartIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-03-06 09:45:21 +00:00
|
|
|
FORM_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<FormIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-04-15 11:42:11 +00:00
|
|
|
MAP_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<MapIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
MODAL_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ModalIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2020-08-24 10:50:50 +00:00
|
|
|
FORM_BUTTON_WIDGET: (props: IconProps) => (
|
|
|
|
|
<IconWrapper {...props}>
|
|
|
|
|
<ButtonIcon />
|
|
|
|
|
</IconWrapper>
|
|
|
|
|
),
|
2019-09-26 11:11:28 +00:00
|
|
|
};
|
|
|
|
|
|
2019-11-25 05:07:27 +00:00
|
|
|
export type WidgetIcon = typeof WidgetIcons[keyof typeof WidgetIcons];
|