@flozy/editor 9.5.6 → 9.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor/ChatEditor.js +26 -19
- package/dist/Editor/CommonEditor.js +139 -22
- package/dist/Editor/DialogWrapper.js +31 -25
- package/dist/Editor/Editor.css +11 -7
- package/dist/Editor/Elements/AI/AIInput.js +5 -3
- package/dist/Editor/Elements/AI/CustomSelect.js +9 -5
- package/dist/Editor/Elements/AI/PopoverAIInput.js +4 -2
- package/dist/Editor/Elements/Accordion/Accordion.js +4 -3
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +4 -1
- package/dist/Editor/Elements/Accordion/AccordionButton.js +6 -2
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +4 -1
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +6 -2
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +4 -1
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +4 -1
- package/dist/Editor/Elements/Button/ButtonPopup.js +4 -1
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +6 -2
- package/dist/Editor/Elements/Button/EditorButton.js +31 -14
- package/dist/Editor/Elements/Carousel/Carousel.js +5 -4
- package/dist/Editor/Elements/Carousel/CarouselButton.js +6 -2
- package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -2
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +4 -1
- package/dist/Editor/Elements/CodeToText/CodeToText.js +5 -4
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +6 -2
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +60 -14
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +25 -1
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +10 -7
- package/dist/Editor/Elements/Color Picker/Styles.js +15 -13
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +6 -2
- package/dist/Editor/Elements/DataView/DataView.js +5 -2
- package/dist/Editor/Elements/DataView/DataViewButton.js +6 -2
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +7 -2
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +425 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +4 -3
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +25 -5
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +7 -2
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +13 -12
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +7 -4
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +7 -5
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +9 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +8 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +5 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +6 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +5 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +9 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +64 -38
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +23 -6
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +4 -1
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +6 -4
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +8 -4
- package/dist/Editor/Elements/DataView/Layouts/index.js +3 -1
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +5 -2
- package/dist/Editor/Elements/DataView/styles.js +13 -0
- package/dist/Editor/Elements/Divider/Divider.js +5 -3
- package/dist/Editor/Elements/Divider/DividerButton.js +6 -2
- package/dist/Editor/Elements/Divider/DividerPopup.js +3 -2
- package/dist/Editor/Elements/Embed/Embed.js +4 -1
- package/dist/Editor/Elements/Embed/EmbedPopup.js +4 -1
- package/dist/Editor/Elements/Embed/Image.js +16 -11
- package/dist/Editor/Elements/Embed/Video.js +9 -6
- package/dist/Editor/Elements/EmbedScript/Code.js +7 -4
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +6 -2
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +8 -5
- package/dist/Editor/Elements/Emoji/EmojiButton.js +6 -2
- package/dist/Editor/Elements/Form/FieldPopup.js +4 -1
- package/dist/Editor/Elements/Form/Form.js +12 -9
- package/dist/Editor/Elements/Form/FormButton.js +6 -2
- package/dist/Editor/Elements/Form/FormPopup.js +3 -2
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +18 -12
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +13 -8
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +3 -2
- package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +4 -2
- package/dist/Editor/Elements/Form/Workflow/index.js +15 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +67 -23
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +23 -4
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +6 -2
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +36 -5
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +3 -2
- package/dist/Editor/Elements/FreeGrid/Options/More.js +10 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +3 -0
- package/dist/Editor/Elements/Grid/Grid.js +13 -10
- package/dist/Editor/Elements/Grid/GridButton.js +9 -5
- package/dist/Editor/Elements/Grid/GridItem.js +14 -8
- package/dist/Editor/Elements/Grid/GridItemPopup.js +4 -1
- package/dist/Editor/Elements/Grid/GridPopup.js +4 -1
- package/dist/Editor/Elements/Grid/SectionPopup.js +4 -1
- package/dist/Editor/Elements/Link/Link.js +8 -5
- package/dist/Editor/Elements/Link/LinkButton.js +4 -1
- package/dist/Editor/Elements/List/CheckList.js +14 -9
- package/dist/Editor/Elements/NewLine/NewLineButton.js +6 -2
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +4 -1
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +4 -1
- package/dist/Editor/Elements/Search/SearchButton.js +6 -3
- package/dist/Editor/Elements/Search/SearchList.js +7 -3
- package/dist/Editor/Elements/Signature/SignatureButton.js +6 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +6 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +4 -1
- package/dist/Editor/Elements/Signature/SignaturePopup.js +17 -16
- package/dist/Editor/Elements/SimpleText/index.js +5 -4
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +4 -2
- package/dist/Editor/Elements/Table/Table.js +23 -11
- package/dist/Editor/Elements/Table/TableCell.js +2 -24
- package/dist/Editor/Elements/Table/TablePopup.js +4 -1
- package/dist/Editor/Elements/Table/TableSelector.js +10 -6
- package/dist/Editor/Elements/Table/TableTool.js +8 -4
- package/dist/Editor/Elements/Title/title.js +10 -0
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +4 -1
- package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
- package/dist/Editor/MiniEditor.js +10 -3
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +2 -1
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +6 -2
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +8 -4
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -3
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +10 -5
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +10 -4
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +10 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +9 -3
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +42 -35
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +58 -51
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +29 -22
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +226 -87
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +20 -10
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +10 -5
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +71 -11
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +11 -5
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +122 -42
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +436 -0
- package/dist/Editor/Toolbar/PopupTool/index.js +18 -8
- package/dist/Editor/Toolbar/Toolbar.js +20 -10
- package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
- package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
- package/dist/Editor/assets/svg/ThemeIcons.js +291 -0
- package/dist/Editor/common/ColorPickerButton.js +39 -14
- package/dist/Editor/common/CustomColorPicker/index.js +131 -0
- package/dist/Editor/common/CustomColorPicker/style.js +53 -0
- package/dist/Editor/common/CustomDialog/index.js +8 -10
- package/dist/Editor/common/CustomDialog2/index.js +94 -0
- package/dist/Editor/common/CustomDialog2/style.js +67 -0
- package/dist/Editor/common/CustomSelect.js +43 -0
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +3 -0
- package/dist/Editor/common/Icon.js +46 -1
- package/dist/Editor/common/ImageSelector/ImageSelector.js +10 -8
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +6 -4
- package/dist/Editor/common/ImageSelector/Styles.js +3 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +14 -10
- package/dist/Editor/common/LinkSettings/index.js +20 -14
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MentionsPopup/index.js +6 -2
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +3 -2
- package/dist/Editor/common/RnD/ElementOptions/index.js +7 -2
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +8 -3
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +7 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +7 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +6 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +3 -2
- package/dist/Editor/common/RnD/OptionsPopup/index.js +4 -3
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +11 -4
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +20 -8
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +56 -7
- package/dist/Editor/common/RnD/Utils/index.js +3 -0
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +117 -0
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +134 -0
- package/dist/Editor/common/RnD/VirtualElement/helper.js +281 -0
- package/dist/Editor/common/RnD/VirtualElement/index.js +188 -105
- package/dist/Editor/common/RnD/VirtualElement/styles.js +123 -7
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +5 -3
- package/dist/Editor/common/RnD/index.js +59 -7
- package/dist/Editor/common/Section/index.js +7 -4
- package/dist/Editor/common/Shorthands/elements.js +74 -3
- package/dist/Editor/common/SnackBar/index.js +43 -0
- package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +6 -4
- package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +13 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +11 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +19 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +22 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +6 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +27 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +43 -14
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +10 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +19 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +5 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +9 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +8 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +12 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +8 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +21 -12
- package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
- package/dist/Editor/common/StyleBuilder/index.js +8 -5
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
- package/dist/Editor/common/Uploader.js +16 -5
- package/dist/Editor/commonStyle.js +68 -57
- package/dist/Editor/helper/index.js +35 -15
- package/dist/Editor/helper/textIndeces.js +58 -0
- package/dist/Editor/helper/theme.js +202 -2
- package/dist/Editor/hooks/useAutoScroll.js +38 -0
- package/dist/Editor/hooks/useDrag.js +16 -10
- package/dist/Editor/hooks/useEditorScroll.js +10 -5
- package/dist/Editor/hooks/useEditorTheme.js +153 -0
- package/dist/Editor/hooks/useMouseMove.js +25 -13
- package/dist/Editor/hooks/useTable.js +1 -1
- package/dist/Editor/hooks/useThemeValues.js +63 -0
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +10 -7
- package/dist/Editor/plugins/withLayout.js +3 -2
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +50 -173
- package/dist/Editor/theme/index.js +147 -0
- package/dist/Editor/themeSettings/ActiveTheme.js +72 -0
- package/dist/Editor/themeSettings/buttons/index.js +290 -0
- package/dist/Editor/themeSettings/buttons/style.js +23 -0
- package/dist/Editor/themeSettings/colorTheme/index.js +310 -0
- package/dist/Editor/themeSettings/colorTheme/style.js +81 -0
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +121 -0
- package/dist/Editor/themeSettings/fonts/index.js +240 -0
- package/dist/Editor/themeSettings/fonts/style.js +61 -0
- package/dist/Editor/themeSettings/icons.js +60 -0
- package/dist/Editor/themeSettings/index.js +351 -0
- package/dist/Editor/themeSettings/style.js +220 -0
- package/dist/Editor/themeSettingsAI/icons.js +96 -0
- package/dist/Editor/themeSettingsAI/index.js +355 -0
- package/dist/Editor/themeSettingsAI/saveTheme.js +205 -0
- package/dist/Editor/themeSettingsAI/style.js +259 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +167 -48
- package/dist/Editor/utils/draftToSlate.js +3 -2
- package/dist/Editor/utils/font.js +40 -37
- package/dist/Editor/utils/freegrid.js +2 -2
- package/dist/Editor/utils/helper.js +90 -19
- package/package.json +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { useDataView } from "../../Providers/DataViewProvider";
|
3
|
-
import
|
3
|
+
import MultiSelectWithPopover from "./Components/MultiSelect";
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
5
|
const MultiSelectType = props => {
|
6
6
|
const {
|
@@ -9,10 +9,16 @@ const MultiSelectType = props => {
|
|
9
9
|
value: pValue,
|
10
10
|
options,
|
11
11
|
label = "",
|
12
|
-
readOnly
|
12
|
+
readOnly,
|
13
|
+
settings,
|
14
|
+
translation
|
13
15
|
} = props;
|
14
16
|
const {
|
15
|
-
|
17
|
+
wrapColumn
|
18
|
+
} = settings;
|
19
|
+
const {
|
20
|
+
onChange,
|
21
|
+
onUpdateProperty
|
16
22
|
} = useDataView();
|
17
23
|
const value = Array.isArray(pValue) ? pValue : [];
|
18
24
|
const coloredValues = [...(value || [])]?.map(m => {
|
@@ -26,14 +32,28 @@ const MultiSelectType = props => {
|
|
26
32
|
[property]: data?.filter(f => f?.value)
|
27
33
|
});
|
28
34
|
};
|
29
|
-
|
35
|
+
const handleUpdate = data => {
|
36
|
+
const updateData = {
|
37
|
+
"label": "Multi Select",
|
38
|
+
"visible": true,
|
39
|
+
"key": property,
|
40
|
+
"type": "multi-select",
|
41
|
+
"options": data
|
42
|
+
};
|
43
|
+
onUpdateProperty(updateData);
|
44
|
+
};
|
45
|
+
return /*#__PURE__*/_jsx(MultiSelectWithPopover, {
|
30
46
|
value: coloredValues,
|
31
47
|
onChange: handleChange,
|
48
|
+
onUpdate: handleUpdate,
|
32
49
|
options: options,
|
33
50
|
multiple: true,
|
34
51
|
limitTags: 2,
|
35
52
|
placeholder: label,
|
36
|
-
disabled: readOnly
|
53
|
+
disabled: readOnly,
|
54
|
+
property: property,
|
55
|
+
wrapColumn: wrapColumn,
|
56
|
+
translation: translation
|
37
57
|
});
|
38
58
|
};
|
39
59
|
export default MultiSelectType;
|
@@ -8,8 +8,12 @@ const TextType = props => {
|
|
8
8
|
rowIndex,
|
9
9
|
property,
|
10
10
|
value,
|
11
|
-
readOnly
|
11
|
+
readOnly,
|
12
|
+
settings
|
12
13
|
} = props;
|
14
|
+
const {
|
15
|
+
wrapColumn
|
16
|
+
} = settings;
|
13
17
|
const {
|
14
18
|
onChange
|
15
19
|
} = useDataView();
|
@@ -34,7 +38,8 @@ const TextType = props => {
|
|
34
38
|
onChange: handleChange,
|
35
39
|
disabled: readOnly,
|
36
40
|
id: `tv-text-input-${rowIndex}-${property}` // * should be unique
|
41
|
+
,
|
42
|
+
multiline: wrapColumn
|
37
43
|
});
|
38
44
|
};
|
39
|
-
|
40
45
|
export default TextType;
|
@@ -2,22 +2,23 @@ import React from "react";
|
|
2
2
|
import { Box } from "@mui/material";
|
3
3
|
import SimpleSelect from "../../DataTypes/Components/SimpleSelect";
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
-
const SORT_LABELS = {
|
6
|
-
asc: "Ascending",
|
7
|
-
desc: "Descending"
|
8
|
-
};
|
9
|
-
const SORT_OPTIONS = [{
|
10
|
-
key: "asc",
|
11
|
-
label: SORT_LABELS.asc
|
12
|
-
}, {
|
13
|
-
key: "desc",
|
14
|
-
label: SORT_LABELS.desc
|
15
|
-
}];
|
16
5
|
const ChooseSort = props => {
|
17
6
|
const {
|
18
7
|
sort,
|
19
|
-
onChange
|
8
|
+
onChange,
|
9
|
+
translation
|
20
10
|
} = props;
|
11
|
+
const SORT_LABELS = {
|
12
|
+
asc: translation("Ascending"),
|
13
|
+
desc: translation("Descending")
|
14
|
+
};
|
15
|
+
const SORT_OPTIONS = [{
|
16
|
+
key: "asc",
|
17
|
+
label: SORT_LABELS.asc
|
18
|
+
}, {
|
19
|
+
key: "desc",
|
20
|
+
label: SORT_LABELS.desc
|
21
|
+
}];
|
21
22
|
const handleChange = e => {
|
22
23
|
onChange(sort, {
|
23
24
|
operator: e?.target?.value
|
@@ -9,7 +9,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
10
|
const SortOptions = props => {
|
11
11
|
const {
|
12
|
-
onClose
|
12
|
+
onClose,
|
13
|
+
translation
|
13
14
|
} = props;
|
14
15
|
const {
|
15
16
|
properties,
|
@@ -54,10 +55,12 @@ const SortOptions = props => {
|
|
54
55
|
children: [/*#__PURE__*/_jsx(ChooseField, {
|
55
56
|
sort: m,
|
56
57
|
properties: properties,
|
57
|
-
onChange: handleSortChange
|
58
|
+
onChange: handleSortChange,
|
59
|
+
translation: translation
|
58
60
|
}), /*#__PURE__*/_jsx(ChooseSort, {
|
59
61
|
sort: m,
|
60
|
-
onChange: handleSortChange
|
62
|
+
onChange: handleSortChange,
|
63
|
+
translation: translation
|
61
64
|
})]
|
62
65
|
})
|
63
66
|
}, i);
|
@@ -75,7 +78,7 @@ const SortOptions = props => {
|
|
75
78
|
icon: 'trashIcon'
|
76
79
|
})
|
77
80
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
78
|
-
children: "Delete Sort"
|
81
|
+
children: translation("Delete Sort")
|
79
82
|
})]
|
80
83
|
})]
|
81
84
|
}) : /*#__PURE__*/_jsx(ColumnsList, {
|
@@ -15,20 +15,22 @@ const FilterSort = props => {
|
|
15
15
|
open,
|
16
16
|
mode,
|
17
17
|
anchorEl,
|
18
|
-
onClose
|
18
|
+
onClose,
|
19
|
+
translation
|
19
20
|
} = props;
|
20
21
|
const classes = useFilterSortStyles(theme, appTheme);
|
21
22
|
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
22
23
|
const PoperComponent = isMobile ? SwipeableDrawer : Popover;
|
23
24
|
const renderMode = () => {
|
24
25
|
if (mode?.type === "filter") {
|
25
|
-
return "
|
26
|
+
return translation("filterModeAvilableSoon");
|
26
27
|
} else if (mode?.type === "sort") {
|
27
28
|
return /*#__PURE__*/_jsx(SortOptions, {
|
28
|
-
onClose: onClose
|
29
|
+
onClose: onClose,
|
30
|
+
translation: translation
|
29
31
|
});
|
30
32
|
} else {
|
31
|
-
return "
|
33
|
+
return translation("unKnownFilter");
|
32
34
|
}
|
33
35
|
};
|
34
36
|
return /*#__PURE__*/_jsx(PoperComponent, {
|
@@ -50,7 +52,7 @@ const FilterSort = props => {
|
|
50
52
|
children: [/*#__PURE__*/_jsxs(Box, {
|
51
53
|
className: "fe-dv-ap-title",
|
52
54
|
children: [/*#__PURE__*/_jsx("span", {
|
53
|
-
children: "Sort By"
|
55
|
+
children: translation("Sort By")
|
54
56
|
}), /*#__PURE__*/_jsx(IconButton, {
|
55
57
|
className: "tv-act-ico bg br1",
|
56
58
|
size: "small",
|
@@ -17,7 +17,8 @@ const FilterView = props => {
|
|
17
17
|
readOnly,
|
18
18
|
title,
|
19
19
|
onTitleChange,
|
20
|
-
path
|
20
|
+
path,
|
21
|
+
translation
|
21
22
|
} = props;
|
22
23
|
const {
|
23
24
|
sort,
|
@@ -92,7 +93,7 @@ const FilterView = props => {
|
|
92
93
|
fontSize: "16px"
|
93
94
|
},
|
94
95
|
size: "small",
|
95
|
-
placeholder: "Untitled",
|
96
|
+
placeholder: translation("Untitled"),
|
96
97
|
inputProps: {
|
97
98
|
"aria-label": "Table Name",
|
98
99
|
maxLength: 100
|
@@ -101,7 +102,7 @@ const FilterView = props => {
|
|
101
102
|
onChange: handleTitleChange,
|
102
103
|
onKeyUp: handleEnter,
|
103
104
|
id: `tv-title-input-${path.join("|")}`
|
104
|
-
}) : title || "Untitled"
|
105
|
+
}) : title || translation("Untitled")
|
105
106
|
}), /*#__PURE__*/_jsxs(Box, {
|
106
107
|
className: "tv-fi-wrpr",
|
107
108
|
sx: {
|
@@ -130,7 +131,7 @@ const FilterView = props => {
|
|
130
131
|
paddingBottom: "0px"
|
131
132
|
},
|
132
133
|
size: "small",
|
133
|
-
placeholder: "Search here",
|
134
|
+
placeholder: translation("Search here"),
|
134
135
|
inputProps: {
|
135
136
|
"aria-label": "search google maps"
|
136
137
|
},
|
@@ -152,7 +153,8 @@ const FilterView = props => {
|
|
152
153
|
open: open,
|
153
154
|
anchorEl: anchorEl,
|
154
155
|
mode: mode,
|
155
|
-
onClose: onClose
|
156
|
+
onClose: onClose,
|
157
|
+
translation: translation
|
156
158
|
}), !readOnly ? /*#__PURE__*/_jsx(IconButton, {
|
157
159
|
className: "mr",
|
158
160
|
sx: {
|
@@ -196,7 +198,7 @@ const FilterView = props => {
|
|
196
198
|
children: /*#__PURE__*/_jsx(Icon, {
|
197
199
|
icon: "duplicateIcon"
|
198
200
|
})
|
199
|
-
}), "Duplicate"]
|
201
|
+
}), translation("Duplicate")]
|
200
202
|
}), /*#__PURE__*/_jsxs(MenuItem, {
|
201
203
|
onClick: onMenuClick("Delete"),
|
202
204
|
children: [" ", /*#__PURE__*/_jsx(Box, {
|
@@ -208,7 +210,7 @@ const FilterView = props => {
|
|
208
210
|
children: /*#__PURE__*/_jsx(Icon, {
|
209
211
|
icon: "trashIcon"
|
210
212
|
})
|
211
|
-
}), "Delete"]
|
213
|
+
}), translation("Delete")]
|
212
214
|
})]
|
213
215
|
}) : null]
|
214
216
|
})]
|
@@ -4,12 +4,17 @@ import { colors } from "../../../Color Picker/defaultColors";
|
|
4
4
|
import Icon from "../../../../common/Icon";
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
-
const
|
7
|
+
const EXCLUDED_COLORS = new Set(["#000000", "#0F172A", "#2563EB", "#FFFFFF", "#64748B"]);
|
8
|
+
const DEFAULT_COLORS = colors?.filter(f => !f?.includes("linear") && !EXCLUDED_COLORS?.has(f));
|
9
|
+
|
10
|
+
// const DEFAULT_COLORS = colors?.filter((f) => !(f.includes("linear") || f === "#000000"));
|
11
|
+
|
8
12
|
const AddOptions = props => {
|
9
13
|
const {
|
10
14
|
edit,
|
11
15
|
onUpdate,
|
12
|
-
onEvent
|
16
|
+
onEvent,
|
17
|
+
translation
|
13
18
|
} = props;
|
14
19
|
const [addBox, setAddBox] = useState(false);
|
15
20
|
const [value, setValue] = useState("");
|
@@ -69,7 +74,7 @@ const AddOptions = props => {
|
|
69
74
|
icon: 'plusIcon'
|
70
75
|
})
|
71
76
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
72
|
-
primary: "Add Options"
|
77
|
+
primary: translation("Add Options")
|
73
78
|
})]
|
74
79
|
})
|
75
80
|
}), addBox ? /*#__PURE__*/_jsx(Box, {
|
@@ -8,7 +8,8 @@ const AddProperty = props => {
|
|
8
8
|
const {
|
9
9
|
classes,
|
10
10
|
onClose,
|
11
|
-
onEvent
|
11
|
+
onEvent,
|
12
|
+
translation
|
12
13
|
} = props;
|
13
14
|
const onSelect = type => () => {
|
14
15
|
onEvent("addProperty", type);
|
@@ -17,7 +18,7 @@ const AddProperty = props => {
|
|
17
18
|
sx: classes.addProperty,
|
18
19
|
children: [/*#__PURE__*/_jsxs(Box, {
|
19
20
|
className: "fe-dv-ap-title",
|
20
|
-
children: ["Add Property", /*#__PURE__*/_jsx(IconButton, {
|
21
|
+
children: [translation("Add Property"), /*#__PURE__*/_jsx(IconButton, {
|
21
22
|
className: "tv-act-ico bg br1",
|
22
23
|
size: "small",
|
23
24
|
onClick: onClose,
|
@@ -33,7 +34,8 @@ const AddProperty = props => {
|
|
33
34
|
}), /*#__PURE__*/_jsx(Box, {
|
34
35
|
className: "fe-dv-ap-opt-content mt",
|
35
36
|
children: /*#__PURE__*/_jsx(PropertyList, {
|
36
|
-
onSelect: onSelect
|
37
|
+
onSelect: onSelect,
|
38
|
+
translation: translation
|
37
39
|
})
|
38
40
|
})]
|
39
41
|
});
|
@@ -11,7 +11,8 @@ const AllProperties = props => {
|
|
11
11
|
const {
|
12
12
|
classes,
|
13
13
|
onClose,
|
14
|
-
onEvent
|
14
|
+
onEvent,
|
15
|
+
translation
|
15
16
|
} = props;
|
16
17
|
const {
|
17
18
|
properties,
|
@@ -40,7 +41,7 @@ const AllProperties = props => {
|
|
40
41
|
sx: classes.addProperty,
|
41
42
|
children: [/*#__PURE__*/_jsxs(Box, {
|
42
43
|
className: "fe-dv-ap-title",
|
43
|
-
children: ["Properties", /*#__PURE__*/_jsx(IconButton, {
|
44
|
+
children: [translation("Properties"), /*#__PURE__*/_jsx(IconButton, {
|
44
45
|
className: "tv-act-ico bg br1",
|
45
46
|
size: "small",
|
46
47
|
onClick: onClose,
|
@@ -55,7 +56,7 @@ const AllProperties = props => {
|
|
55
56
|
})]
|
56
57
|
}), /*#__PURE__*/_jsx(Box, {
|
57
58
|
className: "fe-dv-ap-desc",
|
58
|
-
children: "Displayed Properties"
|
59
|
+
children: translation("Displayed Properties")
|
59
60
|
}), /*#__PURE__*/_jsxs(Box, {
|
60
61
|
className: "fe-dv-ap-opt-content",
|
61
62
|
children: [/*#__PURE__*/_jsx(List, {
|
@@ -92,7 +93,7 @@ const AllProperties = props => {
|
|
92
93
|
}), hiddenProperties?.length > 0 ? /*#__PURE__*/_jsxs(_Fragment, {
|
93
94
|
children: [/*#__PURE__*/_jsx(Box, {
|
94
95
|
className: "fe-dv-ap-desc",
|
95
|
-
children: "Hidden Properties"
|
96
|
+
children: translation("Hidden Properties")
|
96
97
|
}), /*#__PURE__*/_jsx(List, {
|
97
98
|
className: "fe-dv-opt-list",
|
98
99
|
children: hiddenProperties?.map((m, i) => {
|
@@ -135,7 +136,7 @@ const AllProperties = props => {
|
|
135
136
|
icon: 'plusIcon'
|
136
137
|
})
|
137
138
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
138
|
-
children: "Add New Property"
|
139
|
+
children: translation("Add New Property")
|
139
140
|
})]
|
140
141
|
})
|
141
142
|
})]
|
@@ -10,7 +10,8 @@ const ChangeProperty = props => {
|
|
10
10
|
classes,
|
11
11
|
onClose,
|
12
12
|
onEvent,
|
13
|
-
mode
|
13
|
+
mode,
|
14
|
+
translation
|
14
15
|
} = props;
|
15
16
|
const onSelect = property => () => {
|
16
17
|
onEvent("updateProperty", {
|
@@ -47,7 +48,7 @@ const ChangeProperty = props => {
|
|
47
48
|
children: /*#__PURE__*/_jsx(Icon, {
|
48
49
|
icon: 'leftArrow'
|
49
50
|
})
|
50
|
-
}), "Change Property"]
|
51
|
+
}), translation("Change Property")]
|
51
52
|
}), /*#__PURE__*/_jsx(IconButton, {
|
52
53
|
className: "tv-act-ico bg br1",
|
53
54
|
size: "small",
|
@@ -68,7 +69,8 @@ const ChangeProperty = props => {
|
|
68
69
|
className: "fe-dv-ap-opt-content mt",
|
69
70
|
children: /*#__PURE__*/_jsx(PropertyList, {
|
70
71
|
onSelect: onSelect,
|
71
|
-
selected: mode?.edit
|
72
|
+
selected: mode?.edit,
|
73
|
+
translation: translation
|
72
74
|
})
|
73
75
|
})]
|
74
76
|
});
|
@@ -13,7 +13,8 @@ const EditOption = props => {
|
|
13
13
|
classes,
|
14
14
|
onClose,
|
15
15
|
mode,
|
16
|
-
onEvent
|
16
|
+
onEvent,
|
17
|
+
translation
|
17
18
|
} = props;
|
18
19
|
const [edit, setEdit] = useState({
|
19
20
|
...(mode?.edit || {})
|
@@ -29,6 +30,7 @@ const EditOption = props => {
|
|
29
30
|
} = edit;
|
30
31
|
const selectedOption = edit?.options[optionIndex] || {};
|
31
32
|
const pickerStyles = ColorPickerStyles(theme);
|
33
|
+
const hideBackButton = edit?.hideBackButton || false;
|
32
34
|
useEffect(() => {
|
33
35
|
return () => {
|
34
36
|
// on un-mount update the option change
|
@@ -103,14 +105,14 @@ const EditOption = props => {
|
|
103
105
|
children: [/*#__PURE__*/_jsxs(Box, {
|
104
106
|
className: "fe-dv-ap-title",
|
105
107
|
children: [/*#__PURE__*/_jsxs("span", {
|
106
|
-
children: [/*#__PURE__*/_jsx(IconButton, {
|
108
|
+
children: [!hideBackButton ? /*#__PURE__*/_jsx(IconButton, {
|
107
109
|
className: "tv-act-ico",
|
108
110
|
size: "small",
|
109
111
|
onClick: onBack,
|
110
112
|
children: /*#__PURE__*/_jsx(Icon, {
|
111
113
|
icon: 'leftArrow'
|
112
114
|
})
|
113
|
-
}), "Edit Option"]
|
115
|
+
}) : null, translation("Edit Option")]
|
114
116
|
}), /*#__PURE__*/_jsx(IconButton, {
|
115
117
|
className: "tv-act-ico bg br1",
|
116
118
|
size: "small",
|
@@ -128,14 +130,14 @@ const EditOption = props => {
|
|
128
130
|
className: "fe-dv-ap-opt-content mt-1 mb",
|
129
131
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
130
132
|
className: "ml-0",
|
131
|
-
label: "Option Name",
|
133
|
+
label: translation("Option Name"),
|
132
134
|
control: /*#__PURE__*/_jsx(TextField, {
|
133
135
|
size: "small",
|
134
136
|
name: "value",
|
135
137
|
value: selectedOption?.value,
|
136
138
|
onChange: onChange,
|
137
139
|
fullWidth: true,
|
138
|
-
placeholder: "Option Name"
|
140
|
+
placeholder: translation("Option Name")
|
139
141
|
}),
|
140
142
|
labelPlacement: "top"
|
141
143
|
})
|
@@ -143,7 +145,7 @@ const EditOption = props => {
|
|
143
145
|
className: "label-desc mt-1",
|
144
146
|
children: [/*#__PURE__*/_jsx(Box, {
|
145
147
|
className: "label-tp mb",
|
146
|
-
children: "Choose Color"
|
148
|
+
children: translation("Choose Color")
|
147
149
|
}), /*#__PURE__*/_jsx(Box, {
|
148
150
|
className: "ml",
|
149
151
|
children: /*#__PURE__*/_jsx(ColorButtons, {
|
@@ -162,7 +164,7 @@ const EditOption = props => {
|
|
162
164
|
icon: 'trashIcon'
|
163
165
|
})
|
164
166
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
165
|
-
children: "Delete Option"
|
167
|
+
children: translation("Delete Option")
|
166
168
|
})]
|
167
169
|
})
|
168
170
|
})]
|
@@ -7,12 +7,14 @@ import Icon from "../../../../common/Icon";
|
|
7
7
|
import CloseIcon from "@mui/icons-material/Close";
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
+
const NEED_WRAPS = ["text", "multi-select"];
|
10
11
|
const EditProperty = props => {
|
11
12
|
const {
|
12
13
|
classes,
|
13
14
|
onClose,
|
14
15
|
mode,
|
15
|
-
onEvent
|
16
|
+
onEvent,
|
17
|
+
translation
|
16
18
|
} = props;
|
17
19
|
const [edit, setEdit] = useState({
|
18
20
|
...(mode?.edit || {})
|
@@ -20,6 +22,8 @@ const EditProperty = props => {
|
|
20
22
|
const editData = useRef({
|
21
23
|
...edit
|
22
24
|
});
|
25
|
+
const type = mode?.edit?.type || "";
|
26
|
+
const needWrap = NEED_WRAPS?.indexOf(type) >= 0;
|
23
27
|
useEffect(() => {
|
24
28
|
return () => {
|
25
29
|
// on un-mount update the label
|
@@ -88,6 +92,12 @@ const EditProperty = props => {
|
|
88
92
|
}, false);
|
89
93
|
onEvent("close");
|
90
94
|
break;
|
95
|
+
case "wrapColumn":
|
96
|
+
onUpdate({
|
97
|
+
wrapColumn: !edit?.wrapColumn
|
98
|
+
});
|
99
|
+
// onEvent("close");
|
100
|
+
break;
|
91
101
|
case "Delete":
|
92
102
|
onEvent("deleteProperty", {
|
93
103
|
...editData?.current
|
@@ -108,26 +118,26 @@ const EditProperty = props => {
|
|
108
118
|
size: "small",
|
109
119
|
onClick: onBack,
|
110
120
|
sx: {
|
111
|
-
paddingLeft:
|
112
|
-
|
113
|
-
background:
|
121
|
+
paddingLeft: "0px",
|
122
|
+
"&:hover": {
|
123
|
+
background: "transparent !important"
|
114
124
|
},
|
115
|
-
|
116
|
-
width:
|
117
|
-
height:
|
125
|
+
"& svg": {
|
126
|
+
width: "14px !important",
|
127
|
+
height: "14px !important"
|
118
128
|
}
|
119
129
|
},
|
120
130
|
children: /*#__PURE__*/_jsx(Icon, {
|
121
|
-
icon:
|
131
|
+
icon: "leftArrow"
|
122
132
|
})
|
123
|
-
}), "Edit Property"]
|
133
|
+
}), translation("Edit Property")]
|
124
134
|
}), /*#__PURE__*/_jsx(IconButton, {
|
125
135
|
className: "tv-act-ico bg br1",
|
126
136
|
size: "small",
|
127
137
|
onClick: onClose,
|
128
138
|
sx: {
|
129
|
-
|
130
|
-
|
139
|
+
"& svg": {
|
140
|
+
"& path": {
|
131
141
|
strokeWidth: 0
|
132
142
|
}
|
133
143
|
}
|
@@ -137,11 +147,11 @@ const EditProperty = props => {
|
|
137
147
|
}), /*#__PURE__*/_jsxs(Box, {
|
138
148
|
className: "fe-dv-ap-opt-content",
|
139
149
|
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
140
|
-
label: "Field Name",
|
150
|
+
label: translation("Field Name"),
|
141
151
|
labelPlacement: "top",
|
142
152
|
sx: {
|
143
|
-
|
144
|
-
marginBottom:
|
153
|
+
"& .MuiFormControl-root": {
|
154
|
+
marginBottom: "4px"
|
145
155
|
}
|
146
156
|
},
|
147
157
|
control: /*#__PURE__*/_jsx(TextField, {
|
@@ -149,33 +159,47 @@ const EditProperty = props => {
|
|
149
159
|
value: edit?.label,
|
150
160
|
onChange: onChange("label"),
|
151
161
|
fullWidth: true,
|
152
|
-
placeholder: "Field Name"
|
162
|
+
placeholder: translation("Field Name")
|
153
163
|
})
|
154
|
-
}), /*#__PURE__*/_jsx(List, {
|
164
|
+
}), needWrap ? /*#__PURE__*/_jsx(List, {
|
165
|
+
className: "fe-dv-opt-list",
|
166
|
+
children: /*#__PURE__*/_jsxs(ListItemButton, {
|
167
|
+
onClick: onAction("wrapColumn"),
|
168
|
+
children: [/*#__PURE__*/_jsx(ListItemText, {
|
169
|
+
children: "Wrap Column"
|
170
|
+
}), /*#__PURE__*/_jsx(ListItemIcon, {
|
171
|
+
children: edit?.wrapColumn ? /*#__PURE__*/_jsx(Icon, {
|
172
|
+
icon: "toggleOn"
|
173
|
+
}) : /*#__PURE__*/_jsx(Icon, {
|
174
|
+
icon: "toggleOff"
|
175
|
+
})
|
176
|
+
})]
|
177
|
+
})
|
178
|
+
}) : null, /*#__PURE__*/_jsx(List, {
|
155
179
|
className: "fe-dv-opt-list st",
|
156
180
|
children: /*#__PURE__*/_jsxs(ListItemButton, {
|
157
181
|
sx: {
|
158
|
-
paddingBottom:
|
182
|
+
paddingBottom: "12px"
|
159
183
|
},
|
160
184
|
onClick: onChangeProperty,
|
161
185
|
children: [/*#__PURE__*/_jsx(ListItemText, {
|
162
|
-
children: "Type"
|
186
|
+
children: translation("Type")
|
163
187
|
}), /*#__PURE__*/_jsxs(ListItemIcon, {
|
164
188
|
sx: {
|
165
|
-
display:
|
189
|
+
display: "flex",
|
166
190
|
alignItems: "center",
|
167
191
|
gap: 1
|
168
192
|
},
|
169
193
|
children: [/*#__PURE__*/_jsx(Box, {
|
170
194
|
sx: {
|
171
195
|
background: "#64748B1F",
|
172
|
-
borderRadius:
|
173
|
-
display:
|
174
|
-
alignItems:
|
175
|
-
padding:
|
176
|
-
|
177
|
-
width:
|
178
|
-
height:
|
196
|
+
borderRadius: "4px",
|
197
|
+
display: "flex",
|
198
|
+
alignItems: "center",
|
199
|
+
padding: "2px",
|
200
|
+
"& svg": {
|
201
|
+
width: "16px",
|
202
|
+
height: "16px"
|
179
203
|
}
|
180
204
|
},
|
181
205
|
children: /*#__PURE__*/_jsx(Icon, {
|
@@ -183,9 +207,9 @@ const EditProperty = props => {
|
|
183
207
|
})
|
184
208
|
}), /*#__PURE__*/_jsx("span", {
|
185
209
|
className: "label-tp",
|
186
|
-
children: TYPE_LABELS[edit?.type]
|
210
|
+
children: translation(TYPE_LABELS[edit?.type])
|
187
211
|
}), /*#__PURE__*/_jsx(Icon, {
|
188
|
-
icon:
|
212
|
+
icon: "rightArrow"
|
189
213
|
})]
|
190
214
|
})]
|
191
215
|
})
|
@@ -194,41 +218,43 @@ const EditProperty = props => {
|
|
194
218
|
}), /*#__PURE__*/_jsx(AddOptions, {
|
195
219
|
edit: edit,
|
196
220
|
onUpdate: onUpdate,
|
197
|
-
onEvent: onEvent
|
221
|
+
onEvent: onEvent,
|
222
|
+
translation: translation
|
198
223
|
}), /*#__PURE__*/_jsx(FilterProperty, {
|
199
224
|
edit: edit,
|
200
225
|
onUpdate: onUpdate,
|
201
|
-
onEvent: onEvent
|
226
|
+
onEvent: onEvent,
|
227
|
+
translation: translation
|
202
228
|
}), /*#__PURE__*/_jsxs(List, {
|
203
229
|
className: "fe-dv-opt-list",
|
204
230
|
children: [/*#__PURE__*/_jsxs(ListItemButton, {
|
205
231
|
onClick: onAction("Visibilty"),
|
206
232
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
207
233
|
children: edit?.visible ? /*#__PURE__*/_jsx(Icon, {
|
208
|
-
icon:
|
234
|
+
icon: "eyeSlash"
|
209
235
|
}) : /*#__PURE__*/_jsx(Icon, {
|
210
|
-
icon:
|
236
|
+
icon: "eyeIcon"
|
211
237
|
})
|
212
|
-
}), /*#__PURE__*/
|
213
|
-
children:
|
238
|
+
}), /*#__PURE__*/_jsx(ListItemText, {
|
239
|
+
children: `${edit?.visible ? translation("Hide") : translation("Show")} ${translation("in View")}`
|
214
240
|
})]
|
215
241
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
216
242
|
onClick: onAction("Duplicate"),
|
217
243
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
218
244
|
children: /*#__PURE__*/_jsx(Icon, {
|
219
|
-
icon:
|
245
|
+
icon: "duplicateIcon"
|
220
246
|
})
|
221
247
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
222
|
-
children: "Duplicate Property"
|
248
|
+
children: translation("Duplicate Property")
|
223
249
|
})]
|
224
250
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
225
251
|
onClick: onAction("Delete"),
|
226
252
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
227
253
|
children: /*#__PURE__*/_jsx(Icon, {
|
228
|
-
icon:
|
254
|
+
icon: "trashIcon"
|
229
255
|
})
|
230
256
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
231
|
-
children: "Delete Property"
|
257
|
+
children: translation("Delete Property")
|
232
258
|
})]
|
233
259
|
})]
|
234
260
|
})]
|