@flozy/editor 9.5.9 → 9.6.0
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 +19 -26
- package/dist/Editor/CommonEditor.js +23 -139
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +9 -13
- package/dist/Editor/Elements/AI/AIInput.js +3 -5
- package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
- package/dist/Editor/Elements/AI/PopoverAIInput.js +2 -4
- package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
- package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
- package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
- package/dist/Editor/Elements/Button/EditorButton.js +14 -31
- package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
- package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
- package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
- package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -60
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
- package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
- package/dist/Editor/Elements/DataView/DataView.js +2 -5
- package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -7
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +3 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +5 -25
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +2 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +38 -64
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +1 -4
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
- package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
- package/dist/Editor/Elements/DataView/styles.js +0 -13
- package/dist/Editor/Elements/Divider/Divider.js +3 -5
- package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
- package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
- package/dist/Editor/Elements/Embed/Embed.js +1 -4
- package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
- package/dist/Editor/Elements/Embed/Image.js +9 -14
- package/dist/Editor/Elements/Embed/Video.js +6 -9
- package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
- package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
- package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
- package/dist/Editor/Elements/Form/Form.js +9 -12
- package/dist/Editor/Elements/Form/FormButton.js +2 -6
- package/dist/Editor/Elements/Form/FormPopup.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
- package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -23
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -36
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
- package/dist/Editor/Elements/Grid/Grid.js +10 -13
- package/dist/Editor/Elements/Grid/GridButton.js +5 -9
- package/dist/Editor/Elements/Grid/GridItem.js +8 -14
- package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
- package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
- package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
- package/dist/Editor/Elements/Link/Link.js +5 -8
- package/dist/Editor/Elements/Link/LinkButton.js +1 -4
- package/dist/Editor/Elements/List/CheckList.js +9 -14
- package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
- package/dist/Editor/Elements/Search/SearchButton.js +3 -6
- package/dist/Editor/Elements/Search/SearchList.js +3 -7
- package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
- package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
- package/dist/Editor/Elements/SimpleText/index.js +4 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +2 -4
- package/dist/Editor/Elements/Table/Table.js +11 -23
- package/dist/Editor/Elements/Table/TableCell.js +24 -2
- package/dist/Editor/Elements/Table/TablePopup.js +1 -4
- package/dist/Editor/Elements/Table/TableSelector.js +6 -10
- package/dist/Editor/Elements/Table/TableTool.js +4 -8
- package/dist/Editor/Elements/Title/title.js +0 -10
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +3 -10
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +1 -2
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -5
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -128
- package/dist/Editor/Toolbar/PopupTool/index.js +17 -21
- package/dist/Editor/Toolbar/Toolbar.js +10 -20
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/common/ColorPickerButton.js +14 -39
- package/dist/Editor/common/CustomDialog/index.js +10 -8
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
- package/dist/Editor/common/Icon.js +1 -46
- package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
- package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
- package/dist/Editor/common/LinkSettings/index.js +14 -20
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MentionsPopup/index.js +2 -6
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/styles.js +1 -0
- package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +8 -20
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
- package/dist/Editor/common/RnD/Utils/index.js +0 -3
- package/dist/Editor/common/RnD/VirtualElement/index.js +105 -188
- package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
- package/dist/Editor/common/RnD/index.js +14 -59
- package/dist/Editor/common/Section/index.js +4 -7
- package/dist/Editor/common/Shorthands/elements.js +3 -74
- 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 +4 -6
- 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 +9 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
- 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 +5 -8
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/Uploader.js +5 -16
- package/dist/Editor/commonStyle.js +12 -23
- package/dist/Editor/helper/index.js +15 -35
- package/dist/Editor/helper/theme.js +2 -202
- package/dist/Editor/hooks/useDrag.js +11 -17
- package/dist/Editor/hooks/useEditorScroll.js +6 -10
- package/dist/Editor/hooks/useMouseMove.js +13 -25
- package/dist/Editor/hooks/useTable.js +1 -1
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +9 -11
- package/dist/Editor/plugins/withLayout.js +2 -3
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +49 -168
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/freegrid.js +2 -2
- package/dist/Editor/utils/helper.js +19 -90
- package/package.json +3 -3
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
- package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
- package/dist/Editor/common/CustomColorPicker/index.js +0 -131
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -43
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
- package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
- package/dist/Editor/common/SnackBar/index.js +0 -43
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useAutoScroll.js +0 -38
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/hooks/useThemeValues.js +0 -63
- package/dist/Editor/theme/index.js +0 -149
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
- package/dist/Editor/themeSettings/buttons/index.js +0 -290
- package/dist/Editor/themeSettings/buttons/style.js +0 -23
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -240
- package/dist/Editor/themeSettings/fonts/style.js +0 -61
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -351
- package/dist/Editor/themeSettings/style.js +0 -220
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -355
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
- package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -8,8 +8,7 @@ const AddProperty = props => {
|
|
8
8
|
const {
|
9
9
|
classes,
|
10
10
|
onClose,
|
11
|
-
onEvent
|
12
|
-
translation
|
11
|
+
onEvent
|
13
12
|
} = props;
|
14
13
|
const onSelect = type => () => {
|
15
14
|
onEvent("addProperty", type);
|
@@ -18,7 +17,7 @@ const AddProperty = props => {
|
|
18
17
|
sx: classes.addProperty,
|
19
18
|
children: [/*#__PURE__*/_jsxs(Box, {
|
20
19
|
className: "fe-dv-ap-title",
|
21
|
-
children: [
|
20
|
+
children: ["Add Property", /*#__PURE__*/_jsx(IconButton, {
|
22
21
|
className: "tv-act-ico bg br1",
|
23
22
|
size: "small",
|
24
23
|
onClick: onClose,
|
@@ -34,8 +33,7 @@ const AddProperty = props => {
|
|
34
33
|
}), /*#__PURE__*/_jsx(Box, {
|
35
34
|
className: "fe-dv-ap-opt-content mt",
|
36
35
|
children: /*#__PURE__*/_jsx(PropertyList, {
|
37
|
-
onSelect: onSelect
|
38
|
-
translation: translation
|
36
|
+
onSelect: onSelect
|
39
37
|
})
|
40
38
|
})]
|
41
39
|
});
|
@@ -11,8 +11,7 @@ const AllProperties = props => {
|
|
11
11
|
const {
|
12
12
|
classes,
|
13
13
|
onClose,
|
14
|
-
onEvent
|
15
|
-
translation
|
14
|
+
onEvent
|
16
15
|
} = props;
|
17
16
|
const {
|
18
17
|
properties,
|
@@ -41,7 +40,7 @@ const AllProperties = props => {
|
|
41
40
|
sx: classes.addProperty,
|
42
41
|
children: [/*#__PURE__*/_jsxs(Box, {
|
43
42
|
className: "fe-dv-ap-title",
|
44
|
-
children: [
|
43
|
+
children: ["Properties", /*#__PURE__*/_jsx(IconButton, {
|
45
44
|
className: "tv-act-ico bg br1",
|
46
45
|
size: "small",
|
47
46
|
onClick: onClose,
|
@@ -56,7 +55,7 @@ const AllProperties = props => {
|
|
56
55
|
})]
|
57
56
|
}), /*#__PURE__*/_jsx(Box, {
|
58
57
|
className: "fe-dv-ap-desc",
|
59
|
-
children:
|
58
|
+
children: "Displayed Properties"
|
60
59
|
}), /*#__PURE__*/_jsxs(Box, {
|
61
60
|
className: "fe-dv-ap-opt-content",
|
62
61
|
children: [/*#__PURE__*/_jsx(List, {
|
@@ -93,7 +92,7 @@ const AllProperties = props => {
|
|
93
92
|
}), hiddenProperties?.length > 0 ? /*#__PURE__*/_jsxs(_Fragment, {
|
94
93
|
children: [/*#__PURE__*/_jsx(Box, {
|
95
94
|
className: "fe-dv-ap-desc",
|
96
|
-
children:
|
95
|
+
children: "Hidden Properties"
|
97
96
|
}), /*#__PURE__*/_jsx(List, {
|
98
97
|
className: "fe-dv-opt-list",
|
99
98
|
children: hiddenProperties?.map((m, i) => {
|
@@ -136,7 +135,7 @@ const AllProperties = props => {
|
|
136
135
|
icon: 'plusIcon'
|
137
136
|
})
|
138
137
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
139
|
-
children:
|
138
|
+
children: "Add New Property"
|
140
139
|
})]
|
141
140
|
})
|
142
141
|
})]
|
@@ -10,8 +10,7 @@ const ChangeProperty = props => {
|
|
10
10
|
classes,
|
11
11
|
onClose,
|
12
12
|
onEvent,
|
13
|
-
mode
|
14
|
-
translation
|
13
|
+
mode
|
15
14
|
} = props;
|
16
15
|
const onSelect = property => () => {
|
17
16
|
onEvent("updateProperty", {
|
@@ -48,7 +47,7 @@ const ChangeProperty = props => {
|
|
48
47
|
children: /*#__PURE__*/_jsx(Icon, {
|
49
48
|
icon: 'leftArrow'
|
50
49
|
})
|
51
|
-
}),
|
50
|
+
}), "Change Property"]
|
52
51
|
}), /*#__PURE__*/_jsx(IconButton, {
|
53
52
|
className: "tv-act-ico bg br1",
|
54
53
|
size: "small",
|
@@ -69,8 +68,7 @@ const ChangeProperty = props => {
|
|
69
68
|
className: "fe-dv-ap-opt-content mt",
|
70
69
|
children: /*#__PURE__*/_jsx(PropertyList, {
|
71
70
|
onSelect: onSelect,
|
72
|
-
selected: mode?.edit
|
73
|
-
translation: translation
|
71
|
+
selected: mode?.edit
|
74
72
|
})
|
75
73
|
})]
|
76
74
|
});
|
@@ -13,8 +13,7 @@ const EditOption = props => {
|
|
13
13
|
classes,
|
14
14
|
onClose,
|
15
15
|
mode,
|
16
|
-
onEvent
|
17
|
-
translation
|
16
|
+
onEvent
|
18
17
|
} = props;
|
19
18
|
const [edit, setEdit] = useState({
|
20
19
|
...(mode?.edit || {})
|
@@ -30,7 +29,6 @@ const EditOption = props => {
|
|
30
29
|
} = edit;
|
31
30
|
const selectedOption = edit?.options[optionIndex] || {};
|
32
31
|
const pickerStyles = ColorPickerStyles(theme);
|
33
|
-
const hideBackButton = edit?.hideBackButton || false;
|
34
32
|
useEffect(() => {
|
35
33
|
return () => {
|
36
34
|
// on un-mount update the option change
|
@@ -105,14 +103,14 @@ const EditOption = props => {
|
|
105
103
|
children: [/*#__PURE__*/_jsxs(Box, {
|
106
104
|
className: "fe-dv-ap-title",
|
107
105
|
children: [/*#__PURE__*/_jsxs("span", {
|
108
|
-
children: [
|
106
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
109
107
|
className: "tv-act-ico",
|
110
108
|
size: "small",
|
111
109
|
onClick: onBack,
|
112
110
|
children: /*#__PURE__*/_jsx(Icon, {
|
113
111
|
icon: 'leftArrow'
|
114
112
|
})
|
115
|
-
})
|
113
|
+
}), "Edit Option"]
|
116
114
|
}), /*#__PURE__*/_jsx(IconButton, {
|
117
115
|
className: "tv-act-ico bg br1",
|
118
116
|
size: "small",
|
@@ -130,14 +128,14 @@ const EditOption = props => {
|
|
130
128
|
className: "fe-dv-ap-opt-content mt-1 mb",
|
131
129
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
132
130
|
className: "ml-0",
|
133
|
-
label:
|
131
|
+
label: "Option Name",
|
134
132
|
control: /*#__PURE__*/_jsx(TextField, {
|
135
133
|
size: "small",
|
136
134
|
name: "value",
|
137
135
|
value: selectedOption?.value,
|
138
136
|
onChange: onChange,
|
139
137
|
fullWidth: true,
|
140
|
-
placeholder:
|
138
|
+
placeholder: "Option Name"
|
141
139
|
}),
|
142
140
|
labelPlacement: "top"
|
143
141
|
})
|
@@ -145,7 +143,7 @@ const EditOption = props => {
|
|
145
143
|
className: "label-desc mt-1",
|
146
144
|
children: [/*#__PURE__*/_jsx(Box, {
|
147
145
|
className: "label-tp mb",
|
148
|
-
children:
|
146
|
+
children: "Choose Color"
|
149
147
|
}), /*#__PURE__*/_jsx(Box, {
|
150
148
|
className: "ml",
|
151
149
|
children: /*#__PURE__*/_jsx(ColorButtons, {
|
@@ -164,7 +162,7 @@ const EditOption = props => {
|
|
164
162
|
icon: 'trashIcon'
|
165
163
|
})
|
166
164
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
167
|
-
children:
|
165
|
+
children: "Delete Option"
|
168
166
|
})]
|
169
167
|
})
|
170
168
|
})]
|
@@ -7,14 +7,12 @@ 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"];
|
11
10
|
const EditProperty = props => {
|
12
11
|
const {
|
13
12
|
classes,
|
14
13
|
onClose,
|
15
14
|
mode,
|
16
|
-
onEvent
|
17
|
-
translation
|
15
|
+
onEvent
|
18
16
|
} = props;
|
19
17
|
const [edit, setEdit] = useState({
|
20
18
|
...(mode?.edit || {})
|
@@ -22,8 +20,6 @@ const EditProperty = props => {
|
|
22
20
|
const editData = useRef({
|
23
21
|
...edit
|
24
22
|
});
|
25
|
-
const type = mode?.edit?.type || "";
|
26
|
-
const needWrap = NEED_WRAPS?.indexOf(type) >= 0;
|
27
23
|
useEffect(() => {
|
28
24
|
return () => {
|
29
25
|
// on un-mount update the label
|
@@ -92,12 +88,6 @@ const EditProperty = props => {
|
|
92
88
|
}, false);
|
93
89
|
onEvent("close");
|
94
90
|
break;
|
95
|
-
case "wrapColumn":
|
96
|
-
onUpdate({
|
97
|
-
wrapColumn: !edit?.wrapColumn
|
98
|
-
});
|
99
|
-
// onEvent("close");
|
100
|
-
break;
|
101
91
|
case "Delete":
|
102
92
|
onEvent("deleteProperty", {
|
103
93
|
...editData?.current
|
@@ -118,26 +108,26 @@ const EditProperty = props => {
|
|
118
108
|
size: "small",
|
119
109
|
onClick: onBack,
|
120
110
|
sx: {
|
121
|
-
paddingLeft:
|
122
|
-
|
123
|
-
background:
|
111
|
+
paddingLeft: '0px',
|
112
|
+
'&:hover': {
|
113
|
+
background: 'transparent !important'
|
124
114
|
},
|
125
|
-
|
126
|
-
width:
|
127
|
-
height:
|
115
|
+
'& svg': {
|
116
|
+
width: '14px !important',
|
117
|
+
height: '14px !important'
|
128
118
|
}
|
129
119
|
},
|
130
120
|
children: /*#__PURE__*/_jsx(Icon, {
|
131
|
-
icon:
|
121
|
+
icon: 'leftArrow'
|
132
122
|
})
|
133
|
-
}),
|
123
|
+
}), "Edit Property"]
|
134
124
|
}), /*#__PURE__*/_jsx(IconButton, {
|
135
125
|
className: "tv-act-ico bg br1",
|
136
126
|
size: "small",
|
137
127
|
onClick: onClose,
|
138
128
|
sx: {
|
139
|
-
|
140
|
-
|
129
|
+
'& svg': {
|
130
|
+
'& path': {
|
141
131
|
strokeWidth: 0
|
142
132
|
}
|
143
133
|
}
|
@@ -147,11 +137,11 @@ const EditProperty = props => {
|
|
147
137
|
}), /*#__PURE__*/_jsxs(Box, {
|
148
138
|
className: "fe-dv-ap-opt-content",
|
149
139
|
children: [/*#__PURE__*/_jsx(FormControlLabel, {
|
150
|
-
label:
|
140
|
+
label: "Field Name",
|
151
141
|
labelPlacement: "top",
|
152
142
|
sx: {
|
153
|
-
|
154
|
-
marginBottom:
|
143
|
+
'& .MuiFormControl-root': {
|
144
|
+
marginBottom: '4px'
|
155
145
|
}
|
156
146
|
},
|
157
147
|
control: /*#__PURE__*/_jsx(TextField, {
|
@@ -159,47 +149,33 @@ const EditProperty = props => {
|
|
159
149
|
value: edit?.label,
|
160
150
|
onChange: onChange("label"),
|
161
151
|
fullWidth: true,
|
162
|
-
placeholder:
|
152
|
+
placeholder: "Field Name"
|
163
153
|
})
|
164
|
-
}),
|
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, {
|
154
|
+
}), /*#__PURE__*/_jsx(List, {
|
179
155
|
className: "fe-dv-opt-list st",
|
180
156
|
children: /*#__PURE__*/_jsxs(ListItemButton, {
|
181
157
|
sx: {
|
182
|
-
paddingBottom:
|
158
|
+
paddingBottom: '12px'
|
183
159
|
},
|
184
160
|
onClick: onChangeProperty,
|
185
161
|
children: [/*#__PURE__*/_jsx(ListItemText, {
|
186
|
-
children:
|
162
|
+
children: "Type"
|
187
163
|
}), /*#__PURE__*/_jsxs(ListItemIcon, {
|
188
164
|
sx: {
|
189
|
-
display:
|
165
|
+
display: 'flex',
|
190
166
|
alignItems: "center",
|
191
167
|
gap: 1
|
192
168
|
},
|
193
169
|
children: [/*#__PURE__*/_jsx(Box, {
|
194
170
|
sx: {
|
195
171
|
background: "#64748B1F",
|
196
|
-
borderRadius:
|
197
|
-
display:
|
198
|
-
alignItems:
|
199
|
-
padding:
|
200
|
-
|
201
|
-
width:
|
202
|
-
height:
|
172
|
+
borderRadius: '4px',
|
173
|
+
display: 'flex',
|
174
|
+
alignItems: 'center',
|
175
|
+
padding: '2px',
|
176
|
+
'& svg': {
|
177
|
+
width: '16px',
|
178
|
+
height: '16px'
|
203
179
|
}
|
204
180
|
},
|
205
181
|
children: /*#__PURE__*/_jsx(Icon, {
|
@@ -207,9 +183,9 @@ const EditProperty = props => {
|
|
207
183
|
})
|
208
184
|
}), /*#__PURE__*/_jsx("span", {
|
209
185
|
className: "label-tp",
|
210
|
-
children:
|
186
|
+
children: TYPE_LABELS[edit?.type]
|
211
187
|
}), /*#__PURE__*/_jsx(Icon, {
|
212
|
-
icon:
|
188
|
+
icon: 'rightArrow'
|
213
189
|
})]
|
214
190
|
})]
|
215
191
|
})
|
@@ -218,43 +194,41 @@ const EditProperty = props => {
|
|
218
194
|
}), /*#__PURE__*/_jsx(AddOptions, {
|
219
195
|
edit: edit,
|
220
196
|
onUpdate: onUpdate,
|
221
|
-
onEvent: onEvent
|
222
|
-
translation: translation
|
197
|
+
onEvent: onEvent
|
223
198
|
}), /*#__PURE__*/_jsx(FilterProperty, {
|
224
199
|
edit: edit,
|
225
200
|
onUpdate: onUpdate,
|
226
|
-
onEvent: onEvent
|
227
|
-
translation: translation
|
201
|
+
onEvent: onEvent
|
228
202
|
}), /*#__PURE__*/_jsxs(List, {
|
229
203
|
className: "fe-dv-opt-list",
|
230
204
|
children: [/*#__PURE__*/_jsxs(ListItemButton, {
|
231
205
|
onClick: onAction("Visibilty"),
|
232
206
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
233
207
|
children: edit?.visible ? /*#__PURE__*/_jsx(Icon, {
|
234
|
-
icon:
|
208
|
+
icon: 'eyeSlash'
|
235
209
|
}) : /*#__PURE__*/_jsx(Icon, {
|
236
|
-
icon:
|
210
|
+
icon: 'eyeIcon'
|
237
211
|
})
|
238
|
-
}), /*#__PURE__*/
|
239
|
-
children:
|
212
|
+
}), /*#__PURE__*/_jsxs(ListItemText, {
|
213
|
+
children: [edit?.visible ? "Hide" : "Show", " in View"]
|
240
214
|
})]
|
241
215
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
242
216
|
onClick: onAction("Duplicate"),
|
243
217
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
244
218
|
children: /*#__PURE__*/_jsx(Icon, {
|
245
|
-
icon:
|
219
|
+
icon: 'duplicateIcon'
|
246
220
|
})
|
247
221
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
248
|
-
children:
|
222
|
+
children: "Duplicate Property"
|
249
223
|
})]
|
250
224
|
}), /*#__PURE__*/_jsxs(ListItemButton, {
|
251
225
|
onClick: onAction("Delete"),
|
252
226
|
children: [/*#__PURE__*/_jsx(ListItemIcon, {
|
253
227
|
children: /*#__PURE__*/_jsx(Icon, {
|
254
|
-
icon:
|
228
|
+
icon: 'trashIcon'
|
255
229
|
})
|
256
230
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
257
|
-
children:
|
231
|
+
children: "Delete Property"
|
258
232
|
})]
|
259
233
|
})]
|
260
234
|
})]
|
@@ -11,8 +11,7 @@ const FilterProperty = props => {
|
|
11
11
|
} = useDataView();
|
12
12
|
const {
|
13
13
|
edit,
|
14
|
-
onEvent
|
15
|
-
translation
|
14
|
+
onEvent
|
16
15
|
} = props;
|
17
16
|
const handleChangeOption = m => () => {
|
18
17
|
onEvent("addSort", {
|
@@ -34,7 +33,7 @@ const FilterProperty = props => {
|
|
34
33
|
icon: m?.Icon
|
35
34
|
})
|
36
35
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
37
|
-
primary:
|
36
|
+
primary: m.label
|
38
37
|
})]
|
39
38
|
}, i);
|
40
39
|
})
|
@@ -7,8 +7,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
const PropertyList = props => {
|
8
8
|
const {
|
9
9
|
onSelect,
|
10
|
-
selected
|
11
|
-
translation
|
10
|
+
selected
|
12
11
|
} = props;
|
13
12
|
return /*#__PURE__*/_jsx(List, {
|
14
13
|
children: PROPERTY_TYPES?.map(({
|
@@ -23,7 +22,7 @@ const PropertyList = props => {
|
|
23
22
|
icon: rest?.Icon
|
24
23
|
})
|
25
24
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
26
|
-
primary:
|
25
|
+
primary: rest?.label
|
27
26
|
})]
|
28
27
|
}, i);
|
29
28
|
})
|
@@ -29,16 +29,6 @@ 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
|
-
}
|
42
32
|
}
|
43
33
|
};
|
44
34
|
const PropertySettings = props => {
|
@@ -51,8 +41,7 @@ const PropertySettings = props => {
|
|
51
41
|
anchorEl,
|
52
42
|
mode,
|
53
43
|
onClose,
|
54
|
-
onEvent
|
55
|
-
translation
|
44
|
+
onEvent
|
56
45
|
} = props;
|
57
46
|
const classes = useOptionsStyles(theme, appTheme);
|
58
47
|
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
@@ -64,41 +53,35 @@ const PropertySettings = props => {
|
|
64
53
|
classes: classes,
|
65
54
|
onClose: onClose,
|
66
55
|
onEvent: onEvent,
|
67
|
-
mode: mode
|
68
|
-
translation: translation
|
56
|
+
mode: mode
|
69
57
|
});
|
70
58
|
case "editProperty":
|
71
59
|
return /*#__PURE__*/_jsx(EditProperty, {
|
72
60
|
classes: classes,
|
73
61
|
onClose: onClose,
|
74
62
|
onEvent: onEvent,
|
75
|
-
mode: mode
|
76
|
-
translation: translation
|
63
|
+
mode: mode
|
77
64
|
});
|
78
65
|
case "changeProperty":
|
79
66
|
return /*#__PURE__*/_jsx(ChangeProperty, {
|
80
67
|
classes: classes,
|
81
68
|
onClose: onClose,
|
82
69
|
onEvent: onEvent,
|
83
|
-
mode: mode
|
84
|
-
translation: translation
|
70
|
+
mode: mode
|
85
71
|
});
|
86
72
|
case "allProperties":
|
87
73
|
return /*#__PURE__*/_jsx(AllProperties, {
|
88
74
|
classes: classes,
|
89
75
|
onClose: onClose,
|
90
76
|
onEvent: onEvent,
|
91
|
-
mode: mode
|
92
|
-
translation: translation
|
77
|
+
mode: mode
|
93
78
|
});
|
94
79
|
case "editOption":
|
95
|
-
case "editOptionMulti":
|
96
80
|
return /*#__PURE__*/_jsx(EditOption, {
|
97
81
|
classes: classes,
|
98
82
|
onClose: onClose,
|
99
83
|
onEvent: onEvent,
|
100
|
-
mode: mode
|
101
|
-
translation: translation
|
84
|
+
mode: mode
|
102
85
|
});
|
103
86
|
default:
|
104
87
|
return null;
|
@@ -33,7 +33,7 @@ const useTableStyles = (theme, appTheme) => ({
|
|
33
33
|
height: "40px",
|
34
34
|
maxWidth: "0px !important",
|
35
35
|
minWidth: "0px !important",
|
36
|
-
"& input
|
36
|
+
"& input": {
|
37
37
|
color: appTheme?.palette?.editor?.tv_text_primary,
|
38
38
|
background: "transparent",
|
39
39
|
fontSize: "14px"
|
@@ -107,9 +107,6 @@ const useTableStyles = (theme, appTheme) => ({
|
|
107
107
|
"& .MuiChip-deleteIcon": {
|
108
108
|
minWidth: "22px",
|
109
109
|
minHeight: "22px"
|
110
|
-
},
|
111
|
-
"&.wrap-true": {
|
112
|
-
flexWrap: "wrap"
|
113
110
|
}
|
114
111
|
},
|
115
112
|
"&.Mui-disabled": {
|
@@ -134,8 +134,7 @@ const TableView = props => {
|
|
134
134
|
} = useEditorContext();
|
135
135
|
const {
|
136
136
|
children,
|
137
|
-
readOnly
|
138
|
-
translation
|
137
|
+
readOnly
|
139
138
|
} = props;
|
140
139
|
const theme = useTheme();
|
141
140
|
const classes = useTableStyles(theme, appTheme);
|
@@ -167,7 +166,7 @@ const TableView = props => {
|
|
167
166
|
case "addProperty":
|
168
167
|
const np = onAddProperty({
|
169
168
|
type: data?.type
|
170
|
-
}, data?.overrides || {}
|
169
|
+
}, data?.overrides || {});
|
171
170
|
if (navToEdit) {
|
172
171
|
setMode({
|
173
172
|
type: "editProperty",
|
@@ -337,15 +336,14 @@ const TableView = props => {
|
|
337
336
|
startIcon: /*#__PURE__*/_jsx(Icon, {
|
338
337
|
icon: "addRounded"
|
339
338
|
}),
|
340
|
-
children:
|
339
|
+
children: "Add new row"
|
341
340
|
}) : null, open && !readOnly ? /*#__PURE__*/_jsx(PropertySettings, {
|
342
341
|
open: open,
|
343
342
|
anchorEl: anchorEl,
|
344
343
|
mode: mode,
|
345
344
|
properties: properties,
|
346
345
|
onClose: onClose,
|
347
|
-
onEvent: onEvent
|
348
|
-
translation: translation
|
346
|
+
onEvent: onEvent
|
349
347
|
}) : null]
|
350
348
|
});
|
351
349
|
};
|
@@ -11,8 +11,7 @@ const RenderRow = props => {
|
|
11
11
|
properties,
|
12
12
|
onSelect,
|
13
13
|
selected,
|
14
|
-
readOnly
|
15
|
-
translation
|
14
|
+
readOnly
|
16
15
|
} = props;
|
17
16
|
const showProperties = properties?.filter(f => f.visible);
|
18
17
|
return showProperties?.map((property, i) => {
|
@@ -23,8 +22,7 @@ const RenderRow = props => {
|
|
23
22
|
property: property,
|
24
23
|
onSelect: onSelect,
|
25
24
|
selected: selected,
|
26
|
-
readOnly: readOnly
|
27
|
-
translation: translation
|
25
|
+
readOnly: readOnly
|
28
26
|
}, `${property.key}_${i}`);
|
29
27
|
});
|
30
28
|
};
|
@@ -35,8 +33,7 @@ const ViewData = props => {
|
|
35
33
|
customProps
|
36
34
|
} = props;
|
37
35
|
const {
|
38
|
-
readOnly
|
39
|
-
translation
|
36
|
+
readOnly
|
40
37
|
} = customProps || {};
|
41
38
|
const {
|
42
39
|
properties,
|
@@ -70,8 +67,7 @@ const ViewData = props => {
|
|
70
67
|
properties: properties,
|
71
68
|
onSelect: onSelect,
|
72
69
|
selected: selectedRows?.includes(row?.id),
|
73
|
-
readOnly: readOnly
|
74
|
-
translation: translation
|
70
|
+
readOnly: readOnly
|
75
71
|
}), /*#__PURE__*/_jsx("td", {}), /*#__PURE__*/_jsx("td", {})]
|
76
72
|
}, i);
|
77
73
|
}), /*#__PURE__*/_jsx("tr", {
|
@@ -9,8 +9,7 @@ const LAYOUT_COMPONENT = {
|
|
9
9
|
const LayoutView = props => {
|
10
10
|
const {
|
11
11
|
readOnly,
|
12
|
-
children
|
13
|
-
translation
|
12
|
+
children
|
14
13
|
} = props;
|
15
14
|
const {
|
16
15
|
layoutType
|
@@ -19,7 +18,6 @@ const LayoutView = props => {
|
|
19
18
|
return /*#__PURE__*/_jsx(_Fragment, {
|
20
19
|
children: /*#__PURE__*/_jsx(Layout, {
|
21
20
|
readOnly: readOnly,
|
22
|
-
translation: translation,
|
23
21
|
children: children
|
24
22
|
})
|
25
23
|
});
|
@@ -67,18 +67,15 @@ export const DataViewProvider = ({
|
|
67
67
|
setRows(globalSearch(initialData?.rows || [], search));
|
68
68
|
}
|
69
69
|
}, [sort, search]);
|
70
|
-
const onAddProperty = (data, overrides = {}
|
70
|
+
const onAddProperty = (data, overrides = {}) => {
|
71
71
|
try {
|
72
72
|
const {
|
73
73
|
type
|
74
74
|
} = data;
|
75
75
|
const key = `col_${new Date().getTime()}`;
|
76
|
-
const defaultProperty = PROPERTY_DEFAULTS[type] || {};
|
77
|
-
const translatedLabel = translation ? translation(defaultProperty.label) : defaultProperty.label;
|
78
76
|
const newProperty = {
|
79
|
-
...
|
77
|
+
...(PROPERTY_DEFAULTS[type] || {}),
|
80
78
|
...overrides,
|
81
|
-
label: translatedLabel,
|
82
79
|
key: key,
|
83
80
|
type
|
84
81
|
};
|
@@ -69,19 +69,6 @@ const useDataViewStyles = (theme, appTheme) => ({
|
|
69
69
|
opacity: 1
|
70
70
|
}
|
71
71
|
}
|
72
|
-
},
|
73
|
-
"& .fe-tv-type_text": {
|
74
|
-
"& .MuiInputBase-multiline": {
|
75
|
-
height: "auto !important",
|
76
|
-
"&.Mui-focused": {
|
77
|
-
border: 0,
|
78
|
-
outline: 0,
|
79
|
-
"& textarea:focus-visible": {
|
80
|
-
border: 0,
|
81
|
-
borderColor: "none"
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
72
|
}
|
86
73
|
},
|
87
74
|
filterView: {
|