@flozy/editor 9.6.7 → 9.6.9
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 -25
- 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 -18
- 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 +4 -2
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +425 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +21 -6
- 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 +15 -12
- 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/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/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 +24 -15
- 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 +22 -10
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +67 -23
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +31 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +6 -2
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +38 -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 +7 -4
- 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 +24 -12
- 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 +15 -2
- 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 +17 -5
- 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 +17 -1
- 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 +28 -0
- 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/ShadowElement.js +2 -1
- 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 +6 -3
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +55 -8
- package/dist/Editor/common/RnD/Utils/index.js +3 -0
- package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +43 -0
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +44 -0
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +134 -0
- package/dist/Editor/common/RnD/VirtualElement/helper.js +375 -0
- package/dist/Editor/common/RnD/VirtualElement/index.js +187 -103
- package/dist/Editor/common/RnD/VirtualElement/styles.js +151 -7
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +5 -3
- package/dist/Editor/common/RnD/index.js +64 -13
- 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 +27 -3
- 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/useEditorTheme.js +153 -0
- package/dist/Editor/hooks/useMouseMove.js +9 -3
- 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 +149 -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 +202 -61
- package/dist/Editor/utils/draftToSlate.js +3 -2
- package/dist/Editor/utils/font.js +40 -37
- package/dist/Editor/utils/freegrid.js +3 -3
- package/dist/Editor/utils/helper.js +92 -21
- package/package.json +2 -2
@@ -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
|
})]
|
@@ -13,7 +13,8 @@ const EditProperty = 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 || {})
|
@@ -129,7 +130,7 @@ const EditProperty = props => {
|
|
129
130
|
children: /*#__PURE__*/_jsx(Icon, {
|
130
131
|
icon: "leftArrow"
|
131
132
|
})
|
132
|
-
}), "Edit Property"]
|
133
|
+
}), translation("Edit Property")]
|
133
134
|
}), /*#__PURE__*/_jsx(IconButton, {
|
134
135
|
className: "tv-act-ico bg br1",
|
135
136
|
size: "small",
|
@@ -146,7 +147,7 @@ const EditProperty = props => {
|
|
146
147
|
}), /*#__PURE__*/_jsxs(Box, {
|
147
148
|
className: "fe-dv-ap-opt-content",
|
148
149
|
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
149
|
-
label: "Field Name",
|
150
|
+
label: translation("Field Name"),
|
150
151
|
labelPlacement: "top",
|
151
152
|
sx: {
|
152
153
|
"& .MuiFormControl-root": {
|
@@ -158,7 +159,7 @@ const EditProperty = props => {
|
|
158
159
|
value: edit?.label,
|
159
160
|
onChange: onChange("label"),
|
160
161
|
fullWidth: true,
|
161
|
-
placeholder: "Field Name"
|
162
|
+
placeholder: translation("Field Name")
|
162
163
|
})
|
163
164
|
}), needWrap ? /*#__PURE__*/_jsx(List, {
|
164
165
|
className: "fe-dv-opt-list",
|
@@ -182,7 +183,7 @@ const EditProperty = props => {
|
|
182
183
|
},
|
183
184
|
onClick: onChangeProperty,
|
184
185
|
children: [/*#__PURE__*/_jsx(ListItemText, {
|
185
|
-
children: "Type"
|
186
|
+
children: translation("Type")
|
186
187
|
}), /*#__PURE__*/_jsxs(ListItemIcon, {
|
187
188
|
sx: {
|
188
189
|
display: "flex",
|
@@ -206,7 +207,7 @@ const EditProperty = props => {
|
|
206
207
|
})
|
207
208
|
}), /*#__PURE__*/_jsx("span", {
|
208
209
|
className: "label-tp",
|
209
|
-
children: TYPE_LABELS[edit?.type]
|
210
|
+
children: translation(TYPE_LABELS[edit?.type])
|
210
211
|
}), /*#__PURE__*/_jsx(Icon, {
|
211
212
|
icon: "rightArrow"
|
212
213
|
})]
|
@@ -217,11 +218,13 @@ const EditProperty = props => {
|
|
217
218
|
}), /*#__PURE__*/_jsx(AddOptions, {
|
218
219
|
edit: edit,
|
219
220
|
onUpdate: onUpdate,
|
220
|
-
onEvent: onEvent
|
221
|
+
onEvent: onEvent,
|
222
|
+
translation: translation
|
221
223
|
}), /*#__PURE__*/_jsx(FilterProperty, {
|
222
224
|
edit: edit,
|
223
225
|
onUpdate: onUpdate,
|
224
|
-
onEvent: onEvent
|
226
|
+
onEvent: onEvent,
|
227
|
+
translation: translation
|
225
228
|
}), /*#__PURE__*/_jsxs(List, {
|
226
229
|
className: "fe-dv-opt-list",
|
227
230
|
children: [/*#__PURE__*/_jsxs(ListItemButton, {
|
@@ -232,8 +235,8 @@ const EditProperty = props => {
|
|
232
235
|
}) : /*#__PURE__*/_jsx(Icon, {
|
233
236
|
icon: "eyeIcon"
|
234
237
|
})
|
235
|
-
}), /*#__PURE__*/
|
236
|
-
children:
|
238
|
+
}), /*#__PURE__*/_jsx(ListItemText, {
|
239
|
+
children: `${edit?.visible ? translation("Hide") : translation("Show")} ${translation("in View")}`
|
237
240
|
})]
|
238
241
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
239
242
|
onClick: onAction("Duplicate"),
|
@@ -242,7 +245,7 @@ const EditProperty = props => {
|
|
242
245
|
icon: "duplicateIcon"
|
243
246
|
})
|
244
247
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
245
|
-
children: "Duplicate Property"
|
248
|
+
children: translation("Duplicate Property")
|
246
249
|
})]
|
247
250
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
248
251
|
onClick: onAction("Delete"),
|
@@ -251,7 +254,7 @@ const EditProperty = props => {
|
|
251
254
|
icon: "trashIcon"
|
252
255
|
})
|
253
256
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
254
|
-
children: "Delete Property"
|
257
|
+
children: translation("Delete Property")
|
255
258
|
})]
|
256
259
|
})]
|
257
260
|
})]
|
@@ -11,7 +11,8 @@ const FilterProperty = props => {
|
|
11
11
|
} = useDataView();
|
12
12
|
const {
|
13
13
|
edit,
|
14
|
-
onEvent
|
14
|
+
onEvent,
|
15
|
+
translation
|
15
16
|
} = props;
|
16
17
|
const handleChangeOption = m => () => {
|
17
18
|
onEvent("addSort", {
|
@@ -33,7 +34,7 @@ const FilterProperty = props => {
|
|
33
34
|
icon: m?.Icon
|
34
35
|
})
|
35
36
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
36
|
-
primary: m.label
|
37
|
+
primary: translation(m.label)
|
37
38
|
})]
|
38
39
|
}, i);
|
39
40
|
})
|
@@ -7,7 +7,8 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
const PropertyList = props => {
|
8
8
|
const {
|
9
9
|
onSelect,
|
10
|
-
selected
|
10
|
+
selected,
|
11
|
+
translation
|
11
12
|
} = props;
|
12
13
|
return /*#__PURE__*/_jsx(List, {
|
13
14
|
children: PROPERTY_TYPES?.map(({
|
@@ -22,7 +23,7 @@ const PropertyList = props => {
|
|
22
23
|
icon: rest?.Icon
|
23
24
|
})
|
24
25
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
25
|
-
primary: rest?.label
|
26
|
+
primary: translation(rest?.label)
|
26
27
|
})]
|
27
28
|
}, i);
|
28
29
|
})
|
@@ -29,6 +29,16 @@ const POSITIONS = {
|
|
29
29
|
vertical: "top",
|
30
30
|
horizontal: "right"
|
31
31
|
}
|
32
|
+
},
|
33
|
+
editOptionMulti: {
|
34
|
+
anchorOrigin: {
|
35
|
+
vertical: "top",
|
36
|
+
horizontal: "left"
|
37
|
+
},
|
38
|
+
transformOrigin: {
|
39
|
+
vertical: "top",
|
40
|
+
horizontal: "left"
|
41
|
+
}
|
32
42
|
}
|
33
43
|
};
|
34
44
|
const PropertySettings = props => {
|
@@ -41,7 +51,8 @@ const PropertySettings = props => {
|
|
41
51
|
anchorEl,
|
42
52
|
mode,
|
43
53
|
onClose,
|
44
|
-
onEvent
|
54
|
+
onEvent,
|
55
|
+
translation
|
45
56
|
} = props;
|
46
57
|
const classes = useOptionsStyles(theme, appTheme);
|
47
58
|
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
@@ -53,35 +64,41 @@ const PropertySettings = props => {
|
|
53
64
|
classes: classes,
|
54
65
|
onClose: onClose,
|
55
66
|
onEvent: onEvent,
|
56
|
-
mode: mode
|
67
|
+
mode: mode,
|
68
|
+
translation: translation
|
57
69
|
});
|
58
70
|
case "editProperty":
|
59
71
|
return /*#__PURE__*/_jsx(EditProperty, {
|
60
72
|
classes: classes,
|
61
73
|
onClose: onClose,
|
62
74
|
onEvent: onEvent,
|
63
|
-
mode: mode
|
75
|
+
mode: mode,
|
76
|
+
translation: translation
|
64
77
|
});
|
65
78
|
case "changeProperty":
|
66
79
|
return /*#__PURE__*/_jsx(ChangeProperty, {
|
67
80
|
classes: classes,
|
68
81
|
onClose: onClose,
|
69
82
|
onEvent: onEvent,
|
70
|
-
mode: mode
|
83
|
+
mode: mode,
|
84
|
+
translation: translation
|
71
85
|
});
|
72
86
|
case "allProperties":
|
73
87
|
return /*#__PURE__*/_jsx(AllProperties, {
|
74
88
|
classes: classes,
|
75
89
|
onClose: onClose,
|
76
90
|
onEvent: onEvent,
|
77
|
-
mode: mode
|
91
|
+
mode: mode,
|
92
|
+
translation: translation
|
78
93
|
});
|
79
94
|
case "editOption":
|
95
|
+
case "editOptionMulti":
|
80
96
|
return /*#__PURE__*/_jsx(EditOption, {
|
81
97
|
classes: classes,
|
82
98
|
onClose: onClose,
|
83
99
|
onEvent: onEvent,
|
84
|
-
mode: mode
|
100
|
+
mode: mode,
|
101
|
+
translation: translation
|
85
102
|
});
|
86
103
|
default:
|
87
104
|
return null;
|
@@ -134,7 +134,8 @@ const TableView = props => {
|
|
134
134
|
} = useEditorContext();
|
135
135
|
const {
|
136
136
|
children,
|
137
|
-
readOnly
|
137
|
+
readOnly,
|
138
|
+
translation
|
138
139
|
} = props;
|
139
140
|
const theme = useTheme();
|
140
141
|
const classes = useTableStyles(theme, appTheme);
|
@@ -166,7 +167,7 @@ const TableView = props => {
|
|
166
167
|
case "addProperty":
|
167
168
|
const np = onAddProperty({
|
168
169
|
type: data?.type
|
169
|
-
}, data?.overrides || {});
|
170
|
+
}, data?.overrides || {}, translation);
|
170
171
|
if (navToEdit) {
|
171
172
|
setMode({
|
172
173
|
type: "editProperty",
|
@@ -336,14 +337,15 @@ const TableView = props => {
|
|
336
337
|
startIcon: /*#__PURE__*/_jsx(Icon, {
|
337
338
|
icon: "addRounded"
|
338
339
|
}),
|
339
|
-
children: "Add new row"
|
340
|
+
children: translation("Add new row")
|
340
341
|
}) : null, open && !readOnly ? /*#__PURE__*/_jsx(PropertySettings, {
|
341
342
|
open: open,
|
342
343
|
anchorEl: anchorEl,
|
343
344
|
mode: mode,
|
344
345
|
properties: properties,
|
345
346
|
onClose: onClose,
|
346
|
-
onEvent: onEvent
|
347
|
+
onEvent: onEvent,
|
348
|
+
translation: translation
|
347
349
|
}) : null]
|
348
350
|
});
|
349
351
|
};
|
@@ -11,7 +11,8 @@ const RenderRow = props => {
|
|
11
11
|
properties,
|
12
12
|
onSelect,
|
13
13
|
selected,
|
14
|
-
readOnly
|
14
|
+
readOnly,
|
15
|
+
translation
|
15
16
|
} = props;
|
16
17
|
const showProperties = properties?.filter(f => f.visible);
|
17
18
|
return showProperties?.map((property, i) => {
|
@@ -22,7 +23,8 @@ const RenderRow = props => {
|
|
22
23
|
property: property,
|
23
24
|
onSelect: onSelect,
|
24
25
|
selected: selected,
|
25
|
-
readOnly: readOnly
|
26
|
+
readOnly: readOnly,
|
27
|
+
translation: translation
|
26
28
|
}, `${property.key}_${i}`);
|
27
29
|
});
|
28
30
|
};
|
@@ -33,7 +35,8 @@ const ViewData = props => {
|
|
33
35
|
customProps
|
34
36
|
} = props;
|
35
37
|
const {
|
36
|
-
readOnly
|
38
|
+
readOnly,
|
39
|
+
translation
|
37
40
|
} = customProps || {};
|
38
41
|
const {
|
39
42
|
properties,
|
@@ -67,7 +70,8 @@ const ViewData = props => {
|
|
67
70
|
properties: properties,
|
68
71
|
onSelect: onSelect,
|
69
72
|
selected: selectedRows?.includes(row?.id),
|
70
|
-
readOnly: readOnly
|
73
|
+
readOnly: readOnly,
|
74
|
+
translation: translation
|
71
75
|
}), /*#__PURE__*/_jsx("td", {}), /*#__PURE__*/_jsx("td", {})]
|
72
76
|
}, i);
|
73
77
|
}), /*#__PURE__*/_jsx("tr", {
|
@@ -9,7 +9,8 @@ const LAYOUT_COMPONENT = {
|
|
9
9
|
const LayoutView = props => {
|
10
10
|
const {
|
11
11
|
readOnly,
|
12
|
-
children
|
12
|
+
children,
|
13
|
+
translation
|
13
14
|
} = props;
|
14
15
|
const {
|
15
16
|
layoutType
|
@@ -18,6 +19,7 @@ const LayoutView = props => {
|
|
18
19
|
return /*#__PURE__*/_jsx(_Fragment, {
|
19
20
|
children: /*#__PURE__*/_jsx(Layout, {
|
20
21
|
readOnly: readOnly,
|
22
|
+
translation: translation,
|
21
23
|
children: children
|
22
24
|
})
|
23
25
|
});
|