@griddo/ax 11.10.11-rc.0 → 11.10.11
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/README.md +56 -3
- package/config/env.js +56 -56
- package/config/getHttpsConfig.js +32 -32
- package/config/griddo-config/cx-polyfills/builder.ssr.js +1 -2
- package/config/griddo-config/index.js +71 -71
- package/config/griddo-config/ssrHelpers.js +21 -23
- package/config/jest/componentsMock.js +1633 -1633
- package/config/jest/cssTransform.js +7 -7
- package/config/jest/fileMock.js +1 -1
- package/config/jest/fileTransform.js +13 -13
- package/config/jest/setup.js +9 -9
- package/config/jest/test-utils.js +11 -11
- package/config/modules.js +94 -92
- package/config/paths.js +73 -73
- package/config/pnpTs.js +8 -8
- package/config/webpack/persistentCache/createEnvironmentHash.js +3 -3
- package/config/webpack.config.js +624 -624
- package/config/webpackDevServer.config.js +111 -111
- package/config/webpackSchemas.config.js +50 -50
- package/package.json +219 -227
- package/public/fonts/fonts.css +216 -168
- package/public/manifest.json +6 -6
- package/scripts/build.js +114 -114
- package/scripts/griddo-sync-schemas.js +115 -115
- package/scripts/griddo.js +24 -24
- package/scripts/start.js +73 -73
- package/src/GlobalStore.tsx +62 -62
- package/src/Style/index.tsx +11 -8
- package/src/__mocks__/axios/ReferenceField.ts +455 -455
- package/src/__mocks__/axios/Roles.ts +6 -7
- package/src/__mocks__/axios/SitesList.ts +107 -107
- package/src/__mocks__/axios/SitesListCategories.ts +22 -22
- package/src/__mocks__/axios/SitesListDataPack.ts +148 -168
- package/src/__mocks__/axios/SitesListOptions.ts +15 -15
- package/src/__mocks__/axios/UserList.ts +525 -525
- package/src/__mocks__/mockedAxios.ts +2203 -2203
- package/src/__mocks__/reducers/structuredData.tsx +4 -5
- package/src/__mocks__/store/GenericStore.ts +26 -26
- package/src/__mocks__/store/ReferenceField.ts +1663 -1663
- package/src/__mocks__/store/Roles.ts +1045 -1045
- package/src/__mocks__/store/SitesList.ts +733 -733
- package/src/__mocks__/store/UserList.ts +468 -468
- package/src/__mocks__/store/UsersCreate.ts +287 -287
- package/src/__tests__/components/ActionMenu/ActionMenu.test.tsx +230 -230
- package/src/__tests__/components/Avatar/Avatar.test.tsx +107 -107
- package/src/__tests__/components/Breadcrumb/Breadcrumb.test.tsx +83 -83
- package/src/__tests__/components/Browser/Browser.test.tsx +174 -174
- package/src/__tests__/components/BulkSelectionOptions/BulkSelectionOptions.test.tsx +147 -147
- package/src/__tests__/components/CategoryCell/CategoryCell.test.tsx +40 -40
- package/src/__tests__/components/ConfigPanel/ConfigPanel.test.tsx +206 -206
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/ConnectedField.test.tsx +147 -147
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/NavConnectedField/NavConnectedField.test.tsx +134 -134
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/Field.test.tsx +92 -92
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/PageConnectedField.test.tsx +360 -360
- package/src/__tests__/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/TemplateManager.test.tsx +121 -121
- package/src/__tests__/components/ConfigPanel/Form/Form.test.tsx +198 -198
- package/src/__tests__/components/ConfigPanel/GlobalPageForm/GlobalPageForm.test.tsx +198 -198
- package/src/__tests__/components/ConfigPanel/Header/Header.test.tsx +115 -115
- package/src/__tests__/components/ConfigPanel/NavigationForm/Field/Field.test.tsx +174 -174
- package/src/__tests__/components/ConfigPanel/NavigationForm/NavigationForm.test.tsx +66 -66
- package/src/__tests__/components/ConfigPanel/PreviewForm/PreviewForm.test.tsx +62 -62
- package/src/__tests__/components/DragAndDrop/DragAndDrop.test.tsx +68 -68
- package/src/__tests__/components/ElementsTooltip/ElementsTooltip.test.tsx +79 -79
- package/src/__tests__/components/EmptyState/EmptyState.test.tsx +49 -49
- package/src/__tests__/components/ErrorCenter/ErrorCenter.test.tsx +164 -164
- package/src/__tests__/components/ErrorToast/ErrorToast.test.tsx +42 -42
- package/src/__tests__/components/FieldContainer/FieldContainer.test.tsx +57 -57
- package/src/__tests__/components/Fields/AnalyticsField/AnalyticsField.test.tsx +64 -64
- package/src/__tests__/components/Fields/AnalyticsField/PageAnalytics/PageAnalytics.test.tsx +171 -171
- package/src/__tests__/components/Fields/AnalyticsField/StructuredDataAnalytics/StructuredDataAnalytics.test.tsx +105 -105
- package/src/__tests__/components/Fields/ArrayFieldGroup/ArrayFieldGroup.test.tsx +238 -238
- package/src/__tests__/components/Fields/AsyncCheckGroup/AsyncCheckGroup.test.tsx +89 -87
- package/src/__tests__/components/Fields/AsyncSelect/AsyncSelect.test.tsx +238 -238
- package/src/__tests__/components/Fields/Button/Button.test.tsx +100 -100
- package/src/__tests__/components/Fields/CheckField/CheckField.test.tsx +138 -138
- package/src/__tests__/components/Fields/CheckGroup/CheckGroup.test.tsx +331 -331
- package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +170 -171
- package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +111 -111
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +248 -248
- package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +84 -84
- package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +164 -164
- package/src/__tests__/components/Fields/ComponentContainer/ComponentContainer.test.tsx +480 -480
- package/src/__tests__/components/Fields/ConditionalField/ConditionalField.test.tsx +67 -67
- package/src/__tests__/components/Fields/DateField/DateField.test.tsx +49 -49
- package/src/__tests__/components/Fields/FieldGroup/FieldGroup.test.tsx +46 -46
- package/src/__tests__/components/Fields/FieldsDivider/FieldsDivider.test.tsx +10 -10
- package/src/__tests__/components/Fields/FileField/FileField.test.tsx +96 -96
- package/src/__tests__/components/Fields/HeadingField/HeadingField.test.tsx +54 -54
- package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +43 -43
- package/src/__tests__/components/Fields/ImageField/ImageField.test.tsx +450 -450
- package/src/__tests__/components/Fields/IntegrationsField/IntegrationsField.test.tsx +412 -412
- package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +36 -36
- package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +100 -100
- package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +36 -36
- package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +87 -87
- package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +79 -79
- package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +404 -406
- package/src/__tests__/components/Fields/RichText/RichText.test.tsx +20 -20
- package/src/__tests__/components/Fields/Select/Select.test.tsx +38 -38
- package/src/__tests__/components/Fields/SliderField/SliderField.test.tsx +45 -45
- package/src/__tests__/components/Fields/SummaryButton/SummaryButton.test.tsx +35 -35
- package/src/__tests__/components/Fields/TagField/TagField.test.tsx +119 -119
- package/src/__tests__/components/Fields/TextArea/TextArea.test.tsx +45 -45
- package/src/__tests__/components/Fields/TextField/TextField.test.tsx +126 -126
- package/src/__tests__/components/Fields/TimeField/HourInput/HourInput.test.tsx +121 -121
- package/src/__tests__/components/Fields/TimeField/TimeField.test.tsx +80 -80
- package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +107 -107
- package/src/__tests__/components/Fields/Tooltip/Tooltip.test.tsx +129 -129
- package/src/__tests__/components/Fields/TranslateButton/TranslateButton.test.tsx +215 -215
- package/src/__tests__/components/Fields/UniqueCheck/UniqueCheck.test.tsx +24 -24
- package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +395 -395
- package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +60 -60
- package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +125 -125
- package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +30 -30
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +98 -98
- package/src/__tests__/components/FieldsBehavior/FieldsBehavior.test.tsx +135 -135
- package/src/__tests__/components/Flag/Flag.test.tsx +46 -46
- package/src/__tests__/components/FloatingMenu/FloatingMenu.test.tsx +693 -693
- package/src/__tests__/components/FloatingPanel/FloatingPanel.test.tsx +132 -132
- package/src/__tests__/components/GuardModal/GuardModal.test.tsx +12 -12
- package/src/__tests__/components/Icon/Icon.test.tsx +51 -51
- package/src/__tests__/components/IconAction/IconAction.test.tsx +74 -74
- package/src/__tests__/components/Image/Image.test.tsx +27 -27
- package/src/__tests__/components/InformativeMenu/InformativeMenu.test.tsx +70 -70
- package/src/__tests__/components/LanguageMenu/LanguageMenu.test.tsx +196 -196
- package/src/__tests__/components/Lists/Lists.test.tsx +40 -40
- package/src/__tests__/components/Loader/Loader.test.tsx +41 -41
- package/src/__tests__/components/Loading/Loading.test.tsx +9 -9
- package/src/__tests__/components/Login/Login.test.tsx +223 -223
- package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +160 -160
- package/src/__tests__/components/MainWrapper/AppBar/AppBar.test.tsx +503 -503
- package/src/__tests__/components/MainWrapper/MainWrapper.test.tsx +122 -122
- package/src/__tests__/components/MenuItem/MenuItem.test.tsx +123 -123
- package/src/__tests__/components/Modal/Modal.test.tsx +294 -294
- package/src/__tests__/components/Nav/Nav.test.tsx +41 -41
- package/src/__tests__/components/Notification/Notification.test.tsx +186 -186
- package/src/__tests__/components/Notification/SubNotification/Subnotification.test.tsx +32 -32
- package/src/__tests__/components/Pagination/Pagination.test.tsx +222 -222
- package/src/__tests__/components/ProgressBar/ProgressBar.test.tsx +12 -12
- package/src/__tests__/components/ReorderArrows/ReorderArrows.test.tsx +67 -67
- package/src/__tests__/components/ResizePanel/ResizePanel.test.tsx +135 -145
- package/src/__tests__/components/SearchField/SearchField.test.tsx +354 -354
- package/src/__tests__/components/SideModal/SideModal.test.tsx +321 -321
- package/src/__tests__/components/SubNav/SubNav.test.tsx +21 -21
- package/src/__tests__/components/TableCounter/TableCounter.test.tsx +35 -35
- package/src/__tests__/components/TableFilters/CategoryFilter/CategoryFilter.test.tsx +223 -223
- package/src/__tests__/components/TableFilters/CustomizeFilters/CustomizeFilters.test.tsx +115 -115
- package/src/__tests__/components/TableFilters/DateFilter/DateFilter.test.tsx +129 -129
- package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +280 -280
- package/src/__tests__/components/TableFilters/NameFilter/NameFilter.test.tsx +178 -178
- package/src/__tests__/components/TableFilters/RoleFilter/RoleFilter.test.tsx +147 -147
- package/src/__tests__/components/TableFilters/SiteFilter/SiteFilter.test.tsx +297 -297
- package/src/__tests__/components/TableFilters/StatusFilter/StatusFilter.test.tsx +178 -178
- package/src/__tests__/components/TableFilters/TranslationsFilter/TranslationsFilter.test.tsx +138 -138
- package/src/__tests__/components/TableFilters/TypeFilter/TypeFilter.test.tsx +147 -147
- package/src/__tests__/components/TableFilters/UsersFilter/UsersFilter.test.tsx +135 -135
- package/src/__tests__/components/TableList/TableList.test.tsx +95 -95
- package/src/__tests__/components/Tabs/Tabs.test.tsx +187 -187
- package/src/__tests__/components/Tag/Tag.test.tsx +121 -121
- package/src/__tests__/components/Toast/Toast.test.tsx +87 -87
- package/src/__tests__/modules/Settings/Integrations/Integrations.test.tsx +143 -143
- package/src/__tests__/modules/Sites/Sites.test.tsx +238 -238
- package/src/__tests__/modules/Sites/SitesList/ListView/BulkHeader/BulkHeader.test.tsx +34 -34
- package/src/__tests__/modules/Sites/SitesList/SitesList.test.tsx +917 -917
- package/src/__tests__/modules/Users/Roles/BulkHeader/BulkHeader.test.tsx +133 -133
- package/src/__tests__/modules/Users/Roles/Roles.test.tsx +589 -589
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/RoleItem.test.tsx +75 -75
- package/src/__tests__/modules/Users/UserCreate/SiteItem/RolesModal/RolesModal.test.tsx +137 -137
- package/src/__tests__/modules/Users/UserCreate/SiteItem/SiteItem.test.tsx +153 -153
- package/src/__tests__/modules/Users/UserCreate/UserCreate.test.tsx +260 -260
- package/src/__tests__/modules/Users/UserList/UserItem/UserItem.test.tsx +363 -363
- package/src/__tests__/modules/Users/UserList/UserList.test.tsx +264 -264
- package/src/api/analytics.tsx +64 -64
- package/src/api/checkgroups.tsx +36 -36
- package/src/api/config.tsx +10 -10
- package/src/api/dataPack.tsx +127 -127
- package/src/api/domains.tsx +12 -12
- package/src/api/files.tsx +137 -137
- package/src/api/folders.tsx +39 -39
- package/src/api/forms.tsx +164 -164
- package/src/api/global.tsx +55 -55
- package/src/api/images.tsx +160 -160
- package/src/api/index.tsx +24 -24
- package/src/api/integrations.tsx +112 -112
- package/src/api/languages.tsx +50 -50
- package/src/api/logs.tsx +60 -60
- package/src/api/menus.tsx +21 -21
- package/src/api/navigation.tsx +158 -158
- package/src/api/pages.tsx +212 -212
- package/src/api/redirects.tsx +62 -62
- package/src/api/roles.tsx +51 -51
- package/src/api/schemas.tsx +7 -7
- package/src/api/selects.tsx +37 -37
- package/src/api/sites.tsx +302 -302
- package/src/api/social.tsx +24 -24
- package/src/api/structuredData.tsx +269 -269
- package/src/api/users.tsx +106 -106
- package/src/api/utils.tsx +157 -159
- package/src/components/ActionMenu/index.tsx +48 -48
- package/src/components/Avatar/index.tsx +9 -9
- package/src/components/BackFolder/index.tsx +14 -14
- package/src/components/BackFolder/style.tsx +3 -3
- package/src/components/Breadcrumb/index.tsx +27 -27
- package/src/components/Breadcrumb/style.tsx +10 -10
- package/src/components/Browser/index.tsx +193 -193
- package/src/components/BrowserContent/index.tsx +75 -75
- package/src/components/BulkSelectionOptions/index.tsx +41 -41
- package/src/components/Button/index.tsx +86 -86
- package/src/components/Button/style.tsx +1 -1
- package/src/components/CategoryCell/index.tsx +13 -13
- package/src/components/Circle/index.tsx +4 -4
- package/src/components/ConfigPanel/Form/ConnectedField/NavConnectedField/index.tsx +146 -146
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/Field/index.tsx +106 -106
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/TemplateManager/index.tsx +150 -150
- package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/index.tsx +243 -243
- package/src/components/ConfigPanel/Form/ConnectedField/index.tsx +3 -3
- package/src/components/ConfigPanel/Form/index.tsx +144 -144
- package/src/components/ConfigPanel/GlobalPageForm/index.tsx +169 -169
- package/src/components/ConfigPanel/Header/index.tsx +124 -124
- package/src/components/ConfigPanel/NavigationForm/Field/index.tsx +141 -140
- package/src/components/ConfigPanel/NavigationForm/Field/style.tsx +21 -27
- package/src/components/ConfigPanel/NavigationForm/index.tsx +14 -14
- package/src/components/ConfigPanel/NavigationForm/style.tsx +5 -5
- package/src/components/ConfigPanel/PreviewForm/index.tsx +22 -22
- package/src/components/ConfigPanel/index.tsx +116 -116
- package/src/components/DragAndDrop/index.tsx +47 -47
- package/src/components/ElementsTooltip/index.tsx +65 -65
- package/src/components/EmptyState/index.tsx +17 -17
- package/src/components/ErrorCenter/index.tsx +58 -58
- package/src/components/ErrorPage/index.tsx +98 -98
- package/src/components/ErrorPage/style.tsx +13 -13
- package/src/components/ErrorToast/index.tsx +4 -4
- package/src/components/ErrorToast/style.tsx +11 -11
- package/src/components/ExportButton/index.tsx +40 -40
- package/src/components/FieldContainer/index.tsx +63 -63
- package/src/components/Fields/AIReferenceField/AIConfigPanel/index.tsx +139 -139
- package/src/components/Fields/AIReferenceField/index.tsx +73 -73
- package/src/components/Fields/AIReferenceField/style.tsx +1 -1
- package/src/components/Fields/AnalyticsField/PageAnalytics/atoms.tsx +70 -70
- package/src/components/Fields/AnalyticsField/PageAnalytics/index.tsx +131 -131
- package/src/components/Fields/AnalyticsField/StructuredDataAnalytics/atoms.tsx +67 -67
- package/src/components/Fields/AnalyticsField/StructuredDataAnalytics/index.tsx +63 -63
- package/src/components/Fields/AnalyticsField/index.tsx +23 -23
- package/src/components/Fields/AnalyticsField/utils.tsx +6 -6
- package/src/components/Fields/ArrayFieldGroup/ArrayFieldInline/index.tsx +71 -71
- package/src/components/Fields/ArrayFieldGroup/ArrayFieldItem/index.tsx +105 -105
- package/src/components/Fields/ArrayFieldGroup/index.tsx +108 -108
- package/src/components/Fields/AsyncCheckGroup/index.tsx +210 -210
- package/src/components/Fields/AsyncSelect/index.tsx +180 -180
- package/src/components/Fields/AsyncSelect/style.tsx +6 -6
- package/src/components/Fields/CheckField/index.tsx +76 -76
- package/src/components/Fields/CheckField/style.tsx +33 -33
- package/src/components/Fields/CheckGroup/index.tsx +48 -48
- package/src/components/Fields/CheckGroup/style.tsx +2 -2
- package/src/components/Fields/ColorPicker/Picker/index.tsx +60 -60
- package/src/components/Fields/ColorPicker/Picker/style.tsx +14 -14
- package/src/components/Fields/ColorPicker/helpers.tsx +31 -26
- package/src/components/Fields/ColorPicker/index.tsx +120 -120
- package/src/components/Fields/ColorPicker/style.tsx +11 -11
- package/src/components/Fields/ComponentArray/BulkHeader/index.tsx +32 -32
- package/src/components/Fields/ComponentArray/MixableComponentArray/AddItemButton/index.tsx +27 -27
- package/src/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/index.tsx +53 -53
- package/src/components/Fields/ComponentArray/MixableComponentArray/index.tsx +352 -353
- package/src/components/Fields/ComponentArray/SameComponentArray/AddItemButton/index.tsx +8 -8
- package/src/components/Fields/ComponentArray/SameComponentArray/index.tsx +241 -242
- package/src/components/Fields/ComponentArray/helpers.tsx +66 -66
- package/src/components/Fields/ComponentArray/index.tsx +3 -3
- package/src/components/Fields/ComponentContainer/EmptyContainer/index.tsx +36 -36
- package/src/components/Fields/ComponentContainer/atoms.tsx +12 -12
- package/src/components/Fields/ComponentContainer/index.tsx +258 -258
- package/src/components/Fields/ComponentContainer/style.tsx +20 -20
- package/src/components/Fields/ConditionalField/index.tsx +20 -20
- package/src/components/Fields/DateField/DatePickerInput/index.tsx +54 -54
- package/src/components/Fields/DateField/index.tsx +127 -127
- package/src/components/Fields/FieldGroup/index.tsx +18 -18
- package/src/components/Fields/FieldsDivider/index.tsx +9 -9
- package/src/components/Fields/FileField/index.tsx +100 -100
- package/src/components/Fields/FileField/style.tsx +11 -11
- package/src/components/Fields/FormCategorySelect/index.tsx +30 -30
- package/src/components/Fields/FormContainer/FormModal/index.tsx +190 -190
- package/src/components/Fields/FormContainer/FormModal/style.tsx +16 -16
- package/src/components/Fields/FormContainer/index.tsx +73 -73
- package/src/components/Fields/FormFieldArray/index.tsx +5 -5
- package/src/components/Fields/HeadingField/index.tsx +39 -39
- package/src/components/Fields/HiddenField/index.tsx +18 -18
- package/src/components/Fields/ImageField/index.tsx +194 -194
- package/src/components/Fields/ImageField/style.tsx +18 -18
- package/src/components/Fields/IntegrationsField/IntegrationItem/CustomPanel/index.tsx +82 -82
- package/src/components/Fields/IntegrationsField/IntegrationItem/CustomPanel/style.tsx +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/helpers.ts +24 -24
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/index.tsx +97 -98
- package/src/components/Fields/IntegrationsField/IntegrationItem/VariablesPanel/style.tsx +1 -1
- package/src/components/Fields/IntegrationsField/IntegrationItem/atoms.tsx +15 -15
- package/src/components/Fields/IntegrationsField/IntegrationItem/index.tsx +114 -114
- package/src/components/Fields/IntegrationsField/PasteIntegrationButton/index.tsx +15 -15
- package/src/components/Fields/IntegrationsField/SideModal/SideModalOption/index.tsx +38 -38
- package/src/components/Fields/IntegrationsField/SideModal/index.tsx +40 -40
- package/src/components/Fields/IntegrationsField/index.tsx +119 -119
- package/src/components/Fields/LinkField/index.tsx +112 -112
- package/src/components/Fields/MultiCheckSelect/index.tsx +77 -77
- package/src/components/Fields/MultiCheckSelect/style.tsx +2 -2
- package/src/components/Fields/MultiCheckSelectGroup/index.tsx +68 -68
- package/src/components/Fields/NoteField/index.tsx +10 -10
- package/src/components/Fields/NumberField/index.tsx +89 -89
- package/src/components/Fields/NumberField/style.tsx +2 -2
- package/src/components/Fields/RadioField/index.tsx +30 -30
- package/src/components/Fields/RadioField/style.tsx +12 -12
- package/src/components/Fields/RadioGroup/index.tsx +43 -43
- package/src/components/Fields/RadioGroup/style.tsx +4 -4
- package/src/components/Fields/ReferenceField/AutoPanel/AutoItem/index.tsx +380 -380
- package/src/components/Fields/ReferenceField/AutoPanel/AutoItem/style.tsx +20 -20
- package/src/components/Fields/ReferenceField/AutoPanel/index.tsx +513 -513
- package/src/components/Fields/ReferenceField/AutoPanel/style.tsx +25 -25
- package/src/components/Fields/ReferenceField/Context/index.tsx +87 -87
- package/src/components/Fields/ReferenceField/ItemList/Item/index.tsx +45 -45
- package/src/components/Fields/ReferenceField/ItemList/Item/style.tsx +13 -13
- package/src/components/Fields/ReferenceField/ItemList/index.tsx +124 -124
- package/src/components/Fields/ReferenceField/ManualPanel/Item/index.tsx +25 -25
- package/src/components/Fields/ReferenceField/ManualPanel/index.tsx +227 -227
- package/src/components/Fields/ReferenceField/ManualPanel/style.tsx +10 -10
- package/src/components/Fields/ReferenceField/index.tsx +236 -236
- package/src/components/Fields/ReferenceField/style.tsx +12 -12
- package/src/components/Fields/RichText/index.tsx +123 -112
- package/src/components/Fields/RichText/style.tsx +1 -1
- package/src/components/Fields/RichText/utils.tsx +23 -23
- package/src/components/Fields/Select/index.tsx +70 -70
- package/src/components/Fields/Select/style.tsx +6 -6
- package/src/components/Fields/SliderField/index.tsx +50 -50
- package/src/components/Fields/SummaryButton/index.tsx +53 -53
- package/src/components/Fields/TagsField/index.tsx +49 -49
- package/src/components/Fields/TextArea/index.tsx +48 -47
- package/src/components/Fields/TextField/index.tsx +122 -123
- package/src/components/Fields/TextField/style.tsx +9 -9
- package/src/components/Fields/TimeField/HourInput/index.tsx +82 -82
- package/src/components/Fields/TimeField/HourInput/utils.tsx +23 -23
- package/src/components/Fields/TimeField/index.tsx +45 -45
- package/src/components/Fields/ToggleField/index.tsx +31 -31
- package/src/components/Fields/TranslateButton/index.tsx +137 -137
- package/src/components/Fields/UniqueCheck/index.tsx +30 -30
- package/src/components/Fields/UrlField/index.tsx +232 -232
- package/src/components/Fields/UrlField/utils.tsx +78 -78
- package/src/components/Fields/VisualOption/index.tsx +26 -26
- package/src/components/Fields/VisualOption/style.tsx +4 -4
- package/src/components/Fields/VisualUniqueSelection/ImageSelection/index.tsx +31 -31
- package/src/components/Fields/VisualUniqueSelection/ImageSelection/style.tsx +1 -1
- package/src/components/Fields/VisualUniqueSelection/ScrollableSelection/index.tsx +73 -73
- package/src/components/Fields/VisualUniqueSelection/index.tsx +3 -3
- package/src/components/Fields/VisualUniqueSelection/utils.tsx +13 -13
- package/src/components/Fields/Wysiwyg/config.tsx +95 -95
- package/src/components/Fields/Wysiwyg/helpers.tsx +69 -69
- package/src/components/Fields/Wysiwyg/index.tsx +81 -81
- package/src/components/Fields/Wysiwyg/languages.js +132 -132
- package/src/components/Fields/Wysiwyg/style.tsx +37 -37
- package/src/components/Fields/index.tsx +45 -45
- package/src/components/FieldsBehavior/index.tsx +114 -114
- package/src/components/FieldsBehavior/style.tsx +15 -15
- package/src/components/FileGallery/FolderItem/index.tsx +24 -24
- package/src/components/FileGallery/FolderItem/style.tsx +1 -1
- package/src/components/FileGallery/GalleryPanel/DetailPanel/index.tsx +133 -133
- package/src/components/FileGallery/GalleryPanel/DetailPanel/style.tsx +12 -12
- package/src/components/FileGallery/GalleryPanel/index.tsx +25 -25
- package/src/components/FileGallery/GalleryPanel/style.tsx +2 -2
- package/src/components/FileGallery/GridItem/index.tsx +32 -32
- package/src/components/FileGallery/index.tsx +310 -310
- package/src/components/FileGallery/style.tsx +22 -22
- package/src/components/FilterTagsBar/index.tsx +48 -48
- package/src/components/FilterTagsBar/style.tsx +1 -1
- package/src/components/Flag/components/Ca_ES.js +11 -11
- package/src/components/Flag/components/De_DE.js +13 -7
- package/src/components/Flag/components/En_GB.js +16 -16
- package/src/components/Flag/components/Es_ES.js +73 -61
- package/src/components/Flag/components/Eu_ES.js +16 -13
- package/src/components/Flag/components/Fr_FR.js +13 -7
- package/src/components/Flag/components/It_IT.js +13 -7
- package/src/components/Flag/components/Pt_PT.js +33 -27
- package/src/components/Flag/index.tsx +24 -24
- package/src/components/FloatingButton/index.tsx +20 -20
- package/src/components/FloatingMenu/index.tsx +121 -122
- package/src/components/FloatingPanel/index.tsx +55 -55
- package/src/components/FloatingPanel/style.tsx +3 -3
- package/src/components/Gallery/FolderItem/index.tsx +24 -24
- package/src/components/Gallery/FolderItem/style.tsx +1 -1
- package/src/components/Gallery/GalleryPanel/DetailPanel/index.tsx +138 -138
- package/src/components/Gallery/GalleryPanel/DetailPanel/style.tsx +13 -13
- package/src/components/Gallery/GalleryPanel/index.tsx +40 -40
- package/src/components/Gallery/GalleryPanel/style.tsx +2 -2
- package/src/components/Gallery/index.tsx +347 -348
- package/src/components/Gallery/style.tsx +24 -24
- package/src/components/GuardModal/index.tsx +34 -34
- package/src/components/GuardModal/style.tsx +3 -3
- package/src/components/Icon/components/Active.js +9 -9
- package/src/components/Icon/components/Add.js +4 -4
- package/src/components/Icon/components/AddCircle.js +7 -7
- package/src/components/Icon/components/Alert.js +10 -10
- package/src/components/Icon/components/Back.js +6 -6
- package/src/components/Icon/components/BulletList.js +10 -10
- package/src/components/Icon/components/Button.js +9 -4
- package/src/components/Icon/components/Calendar.js +9 -9
- package/src/components/Icon/components/CancelEvent.js +6 -6
- package/src/components/Icon/components/Category.js +6 -6
- package/src/components/Icon/components/Change.js +9 -9
- package/src/components/Icon/components/Close.js +7 -7
- package/src/components/Icon/components/ClosePanel.js +8 -8
- package/src/components/Icon/components/CodeBody.js +8 -8
- package/src/components/Icon/components/CodeHead.js +8 -8
- package/src/components/Icon/components/CodeHeadBody.js +8 -8
- package/src/components/Icon/components/Collapsed.js +10 -10
- package/src/components/Icon/components/ColorPicker.js +8 -8
- package/src/components/Icon/components/Compose.js +8 -8
- package/src/components/Icon/components/Copy.js +9 -9
- package/src/components/Icon/components/Copy2.js +9 -9
- package/src/components/Icon/components/Data.js +9 -9
- package/src/components/Icon/components/DataAdd.js +15 -15
- package/src/components/Icon/components/Deactivate.js +8 -8
- package/src/components/Icon/components/Delete.js +7 -4
- package/src/components/Icon/components/Desktop.js +8 -8
- package/src/components/Icon/components/Disabled.js +8 -8
- package/src/components/Icon/components/Done.js +5 -5
- package/src/components/Icon/components/DownArrow.js +4 -4
- package/src/components/Icon/components/Download.js +3 -3
- package/src/components/Icon/components/Drag.js +9 -9
- package/src/components/Icon/components/Duplicate.js +7 -7
- package/src/components/Icon/components/Edit.js +7 -7
- package/src/components/Icon/components/Empty.js +8 -8
- package/src/components/Icon/components/EmptyCheck.js +10 -10
- package/src/components/Icon/components/Extend.js +10 -10
- package/src/components/Icon/components/File.js +8 -8
- package/src/components/Icon/components/Filter.js +5 -5
- package/src/components/Icon/components/Form.js +8 -8
- package/src/components/Icon/components/FullArrowDown.js +4 -4
- package/src/components/Icon/components/FullArrowLeft.js +4 -4
- package/src/components/Icon/components/FullArrowRight.js +4 -4
- package/src/components/Icon/components/FullArrowUp.js +4 -4
- package/src/components/Icon/components/Grid.js +10 -10
- package/src/components/Icon/components/Grid2.js +10 -10
- package/src/components/Icon/components/HeroCard.js +10 -7
- package/src/components/Icon/components/Hide.js +16 -13
- package/src/components/Icon/components/History.js +9 -9
- package/src/components/Icon/components/Home.js +8 -3
- package/src/components/Icon/components/Ia.js +8 -8
- package/src/components/Icon/components/Image.js +7 -4
- package/src/components/Icon/components/Info.js +9 -9
- package/src/components/Icon/components/Laptop.js +9 -4
- package/src/components/Icon/components/LeftArrow.js +4 -4
- package/src/components/Icon/components/Link.js +9 -9
- package/src/components/Icon/components/Lock.js +7 -7
- package/src/components/Icon/components/Log.js +7 -7
- package/src/components/Icon/components/Map.js +9 -6
- package/src/components/Icon/components/Menu.js +4 -9
- package/src/components/Icon/components/Microsoft.js +6 -6
- package/src/components/Icon/components/Modified.js +9 -9
- package/src/components/Icon/components/Modules.js +8 -8
- package/src/components/Icon/components/More.js +10 -10
- package/src/components/Icon/components/NewFolder.js +6 -6
- package/src/components/Icon/components/Offline.js +8 -8
- package/src/components/Icon/components/OfflinePending.js +10 -10
- package/src/components/Icon/components/OpenOutside.js +10 -10
- package/src/components/Icon/components/OpenPanel.js +8 -8
- package/src/components/Icon/components/OutOfSection.js +8 -3
- package/src/components/Icon/components/Page.js +7 -7
- package/src/components/Icon/components/Paste.js +7 -7
- package/src/components/Icon/components/Phone.js +8 -8
- package/src/components/Icon/components/PhotoLibrary.js +7 -7
- package/src/components/Icon/components/Power.js +9 -9
- package/src/components/Icon/components/Preview.js +8 -8
- package/src/components/Icon/components/Project.js +9 -4
- package/src/components/Icon/components/QrCode.js +6 -6
- package/src/components/Icon/components/Question.js +10 -10
- package/src/components/Icon/components/Refresh.js +6 -6
- package/src/components/Icon/components/RightArrow.js +4 -4
- package/src/components/Icon/components/Scheduled.js +8 -8
- package/src/components/Icon/components/Search.js +9 -9
- package/src/components/Icon/components/SendEmail.js +8 -8
- package/src/components/Icon/components/Settings.js +15 -15
- package/src/components/Icon/components/Share.js +6 -6
- package/src/components/Icon/components/Subsection.js +8 -3
- package/src/components/Icon/components/Success.js +10 -10
- package/src/components/Icon/components/SuccessSolid.js +10 -10
- package/src/components/Icon/components/Tablet.js +8 -8
- package/src/components/Icon/components/Translate.js +6 -6
- package/src/components/Icon/components/Unlink.js +9 -9
- package/src/components/Icon/components/UpArrow.js +4 -4
- package/src/components/Icon/components/UploadFile.js +8 -8
- package/src/components/Icon/components/UploadPending.js +8 -8
- package/src/components/Icon/components/UrlLink.js +8 -8
- package/src/components/Icon/components/User.js +9 -9
- package/src/components/Icon/components/Users.js +8 -8
- package/src/components/Icon/components/Video.js +9 -9
- package/src/components/Icon/components/View.js +8 -8
- package/src/components/Icon/components/Warning.js +10 -10
- package/src/components/Icon/components/Web.js +10 -10
- package/src/components/Icon/components/Working.js +6 -6
- package/src/components/Icon/index.tsx +37 -37
- package/src/components/IconAction/index.tsx +27 -27
- package/src/components/IconAction/style.tsx +4 -4
- package/src/components/Image/index.tsx +21 -21
- package/src/components/Image/utils.ts +31 -31
- package/src/components/InformativeMenu/index.tsx +20 -20
- package/src/components/InformativeMenu/style.tsx +3 -3
- package/src/components/LanguageMenu/index.tsx +58 -58
- package/src/components/LanguageMenu/style.tsx +10 -10
- package/src/components/Lists/index.tsx +10 -10
- package/src/components/Loader/components/Circle.js +15 -8
- package/src/components/Loader/components/Dots.js +13 -13
- package/src/components/Loader/index.tsx +28 -28
- package/src/components/Loading/index.tsx +9 -9
- package/src/components/Login/LoginForm/RecoveryModal/index.tsx +64 -64
- package/src/components/Login/LoginForm/index.tsx +107 -107
- package/src/components/Login/LoginSSO/index.tsx +60 -60
- package/src/components/Login/LoginSSO/style.tsx +12 -12
- package/src/components/Login/LoginSlider/index.tsx +50 -50
- package/src/components/Login/index.tsx +69 -69
- package/src/components/MainWrapper/AppBar/atoms.tsx +39 -39
- package/src/components/MainWrapper/AppBar/index.tsx +282 -282
- package/src/components/MainWrapper/AppBar/style.tsx +24 -24
- package/src/components/MainWrapper/AppBar/utils.tsx +10 -14
- package/src/components/MainWrapper/index.tsx +50 -50
- package/src/components/MenuGroup/index.tsx +68 -68
- package/src/components/MenuGroup/style.tsx +5 -5
- package/src/components/MenuItem/index.tsx +47 -47
- package/src/components/Modal/index.tsx +83 -83
- package/src/components/Modal/style.tsx +20 -20
- package/src/components/Nav/index.tsx +33 -33
- package/src/components/Nav/style.tsx +1 -1
- package/src/components/Notification/SubNotification/index.tsx +18 -18
- package/src/components/Notification/index.tsx +82 -82
- package/src/components/OcassionalToast/index.tsx +11 -11
- package/src/components/PageFinder/SelectionListItem/index.tsx +29 -29
- package/src/components/PageFinder/index.tsx +278 -278
- package/src/components/PageFinder/style.tsx +12 -12
- package/src/components/Pagination/index.tsx +49 -44
- package/src/components/Pagination/style.tsx +4 -8
- package/src/components/ProgressBar/index.tsx +11 -11
- package/src/components/ProgressBar/style.tsx +4 -4
- package/src/components/ReorderArrows/index.tsx +25 -25
- package/src/components/ReorderArrows/style.tsx +3 -3
- package/src/components/ResizePanel/ResizeHandle/index.tsx +51 -19
- package/src/components/ResizePanel/index.tsx +40 -39
- package/src/components/ResizePanel/style.tsx +5 -5
- package/src/components/RestoreModal/index.tsx +37 -37
- package/src/components/ScheduleModal/index.tsx +84 -84
- package/src/components/SearchField/index.tsx +120 -120
- package/src/components/SearchField/style.tsx +10 -10
- package/src/components/SearchTagsBar/index.tsx +31 -31
- package/src/components/SearchTagsBar/style.tsx +1 -1
- package/src/components/SideModal/SideModalOption/index.tsx +42 -42
- package/src/components/SideModal/index.tsx +193 -194
- package/src/components/SideModal/style.tsx +15 -15
- package/src/components/SubNav/index.tsx +6 -6
- package/src/components/TableCounter/index.tsx +4 -4
- package/src/components/TableFilters/CategoryFilter/index.tsx +106 -107
- package/src/components/TableFilters/CheckGroupFilter/index.tsx +95 -95
- package/src/components/TableFilters/CustomizeFilters/index.tsx +41 -41
- package/src/components/TableFilters/DateFilter/index.tsx +38 -38
- package/src/components/TableFilters/LastAccessFilter/index.tsx +38 -38
- package/src/components/TableFilters/LiveFilter/index.tsx +100 -102
- package/src/components/TableFilters/NameFilter/index.tsx +48 -48
- package/src/components/TableFilters/PermissionsFilter/index.tsx +37 -37
- package/src/components/TableFilters/RoleFilter/index.tsx +50 -50
- package/src/components/TableFilters/SiteFilter/index.tsx +73 -73
- package/src/components/TableFilters/StateFilter/index.tsx +53 -53
- package/src/components/TableFilters/StatusFilter/index.tsx +40 -40
- package/src/components/TableFilters/TranslationsFilter/index.tsx +48 -49
- package/src/components/TableFilters/TypeFilter/index.tsx +50 -51
- package/src/components/TableFilters/UsersFilter/index.tsx +42 -42
- package/src/components/TableFilters/index.tsx +15 -15
- package/src/components/TableList/TableItem/style.tsx +4 -4
- package/src/components/TableList/index.tsx +44 -44
- package/src/components/TableList/style.tsx +14 -14
- package/src/components/Tabs/index.tsx +58 -58
- package/src/components/Tabs/style.tsx +6 -6
- package/src/components/Tag/index.tsx +50 -50
- package/src/components/Tag/style.tsx +1 -1
- package/src/components/Toast/index.tsx +39 -39
- package/src/components/Toast/style.tsx +1 -1
- package/src/components/Tooltip/index.tsx +109 -109
- package/src/components/Tooltip/style.tsx +8 -8
- package/src/components/index.tsx +175 -175
- package/src/containers/ActivityLog/actions.tsx +212 -212
- package/src/containers/ActivityLog/interfaces.tsx +4 -4
- package/src/containers/ActivityLog/reducer.tsx +11 -11
- package/src/containers/Analytics/actions.tsx +77 -77
- package/src/containers/Analytics/interfaces.tsx +2 -2
- package/src/containers/Analytics/reducer.tsx +14 -14
- package/src/containers/App/actions.tsx +191 -191
- package/src/containers/App/constants.tsx +12 -12
- package/src/containers/App/index.tsx +1 -4
- package/src/containers/App/interfaces.tsx +44 -44
- package/src/containers/App/reducer.tsx +97 -97
- package/src/containers/Domains/actions.tsx +41 -41
- package/src/containers/Domains/interfaces.tsx +2 -2
- package/src/containers/Domains/reducer.tsx +8 -8
- package/src/containers/FileDrive/actions.tsx +326 -326
- package/src/containers/FileDrive/constants.tsx +10 -10
- package/src/containers/FileDrive/index.tsx +1 -4
- package/src/containers/FileDrive/interfaces.tsx +27 -27
- package/src/containers/FileDrive/reducer.tsx +43 -43
- package/src/containers/Forms/actions.tsx +717 -717
- package/src/containers/Forms/constants.tsx +21 -21
- package/src/containers/Forms/interfaces.tsx +45 -45
- package/src/containers/Forms/reducer.tsx +67 -67
- package/src/containers/Forms/utils.tsx +27 -27
- package/src/containers/Gallery/actions.tsx +398 -397
- package/src/containers/Gallery/constants.tsx +13 -13
- package/src/containers/Gallery/index.tsx +1 -4
- package/src/containers/Gallery/interfaces.tsx +48 -48
- package/src/containers/Gallery/reducer.tsx +74 -74
- package/src/containers/Integrations/actions.tsx +165 -165
- package/src/containers/Integrations/constants.tsx +3 -3
- package/src/containers/Integrations/interfaces.tsx +12 -12
- package/src/containers/Integrations/reducer.tsx +17 -17
- package/src/containers/Navigation/Defaults/actions.tsx +735 -735
- package/src/containers/Navigation/Defaults/interfaces.tsx +54 -54
- package/src/containers/Navigation/Defaults/reducer.tsx +71 -71
- package/src/containers/Navigation/Defaults/utils.tsx +60 -60
- package/src/containers/Navigation/Menu/actions.tsx +233 -233
- package/src/containers/Navigation/Menu/index.tsx +2 -5
- package/src/containers/Navigation/Menu/interfaces.tsx +20 -20
- package/src/containers/Navigation/Menu/reducer.tsx +39 -39
- package/src/containers/Navigation/index.tsx +3 -8
- package/src/containers/PageEditor/actions.tsx +1344 -1344
- package/src/containers/PageEditor/interfaces.tsx +80 -80
- package/src/containers/PageEditor/reducer.tsx +102 -102
- package/src/containers/PageEditor/utils.tsx +128 -128
- package/src/containers/Redirects/actions.tsx +151 -151
- package/src/containers/Redirects/constants.tsx +12 -12
- package/src/containers/Redirects/interfaces.tsx +8 -8
- package/src/containers/Redirects/reducer.tsx +21 -21
- package/src/containers/Settings/DataPacks/actions.tsx +388 -388
- package/src/containers/Settings/DataPacks/constants.tsx +9 -9
- package/src/containers/Settings/DataPacks/index.tsx +1 -4
- package/src/containers/Settings/DataPacks/interfaces.tsx +23 -15
- package/src/containers/Settings/DataPacks/reducer.tsx +37 -37
- package/src/containers/Settings/Languages/actions.tsx +49 -49
- package/src/containers/Settings/Languages/reducer.tsx +19 -19
- package/src/containers/Settings/Social/actions.tsx +43 -43
- package/src/containers/Settings/Social/index.tsx +1 -4
- package/src/containers/Settings/Social/interfaces.tsx +2 -2
- package/src/containers/Settings/Social/reducer.tsx +6 -6
- package/src/containers/Settings/index.tsx +1 -8
- package/src/containers/Sites/actions.tsx +641 -641
- package/src/containers/Sites/constants.tsx +5 -5
- package/src/containers/Sites/index.tsx +1 -4
- package/src/containers/Sites/interfaces.tsx +54 -54
- package/src/containers/Sites/reducer.tsx +90 -90
- package/src/containers/StructuredData/actions.tsx +662 -662
- package/src/containers/StructuredData/constants.tsx +27 -27
- package/src/containers/StructuredData/index.tsx +1 -4
- package/src/containers/StructuredData/interfaces.tsx +53 -53
- package/src/containers/StructuredData/reducer.tsx +75 -75
- package/src/containers/StructuredData/utils.tsx +40 -40
- package/src/containers/Users/actions.tsx +302 -302
- package/src/containers/Users/index.tsx +1 -4
- package/src/containers/Users/interfaces.tsx +18 -18
- package/src/containers/Users/reducer.tsx +37 -37
- package/src/forms/editor.tsx +194 -194
- package/src/forms/elements.tsx +200 -200
- package/src/forms/errors.tsx +43 -43
- package/src/forms/fields.tsx +83 -83
- package/src/forms/index.tsx +66 -66
- package/src/forms/validators.tsx +467 -467
- package/src/guards/error/index.tsx +51 -51
- package/src/guards/restricted/index.tsx +9 -9
- package/src/guards/routeLeaving/index.tsx +53 -53
- package/src/guards/routeLeaving/style.tsx +2 -2
- package/src/helpers/arrays.tsx +13 -13
- package/src/helpers/containerEvaluations.tsx +53 -53
- package/src/helpers/customColumns.tsx +33 -33
- package/src/helpers/dataPacks.tsx +8 -8
- package/src/helpers/dates.tsx +52 -53
- package/src/helpers/environment.tsx +3 -3
- package/src/helpers/files.tsx +52 -52
- package/src/helpers/forms.tsx +9 -9
- package/src/helpers/imageResize.tsx +197 -167
- package/src/helpers/images.tsx +75 -75
- package/src/helpers/index.tsx +192 -192
- package/src/helpers/objects.tsx +117 -118
- package/src/helpers/parseTheme.js +274 -274
- package/src/helpers/requests.tsx +19 -19
- package/src/helpers/schemas.tsx +120 -120
- package/src/helpers/strings.tsx +103 -103
- package/src/helpers/structuredData.tsx +17 -17
- package/src/helpers/themes.tsx +56 -56
- package/src/helpers/thumbnails.tsx +47 -47
- package/src/hooks/bulk.tsx +133 -135
- package/src/hooks/content.tsx +93 -93
- package/src/hooks/forms.tsx +115 -115
- package/src/hooks/iframe.ts +48 -48
- package/src/hooks/index.tsx +20 -20
- package/src/hooks/location.tsx +5 -5
- package/src/hooks/modals.tsx +38 -38
- package/src/hooks/network.tsx +21 -20
- package/src/hooks/resize.ts +51 -51
- package/src/hooks/users.tsx +22 -22
- package/src/hooks/window.ts +10 -10
- package/src/index.tsx +16 -19
- package/src/modules/ActivityLog/DetailModal/index.tsx +81 -81
- package/src/modules/ActivityLog/DownloadModal/index.tsx +84 -84
- package/src/modules/ActivityLog/ItemGroup/index.tsx +14 -14
- package/src/modules/ActivityLog/ItemLog/EventItem/index.tsx +136 -136
- package/src/modules/ActivityLog/ItemLog/index.tsx +11 -11
- package/src/modules/ActivityLog/ItemLogUser/UserItem/EventItem/index.tsx +139 -139
- package/src/modules/ActivityLog/ItemLogUser/UserItem/index.tsx +33 -33
- package/src/modules/ActivityLog/ItemLogUser/index.tsx +12 -12
- package/src/modules/ActivityLog/LogFilters/ContentFilter/index.tsx +59 -59
- package/src/modules/ActivityLog/LogFilters/DateFilter/index.tsx +64 -64
- package/src/modules/ActivityLog/LogFilters/EventFilter/index.tsx +57 -57
- package/src/modules/ActivityLog/LogFilters/OrderFilter/index.tsx +36 -36
- package/src/modules/ActivityLog/LogFilters/UserFilter/index.tsx +59 -59
- package/src/modules/ActivityLog/TableHeader/index.tsx +52 -52
- package/src/modules/ActivityLog/TableHeader/style.tsx +9 -9
- package/src/modules/ActivityLog/constants.tsx +6 -6
- package/src/modules/ActivityLog/hooks.tsx +45 -46
- package/src/modules/ActivityLog/index.tsx +287 -287
- package/src/modules/ActivityLog/utils.tsx +20 -20
- package/src/modules/Analytics/DimensionItem/index.tsx +49 -49
- package/src/modules/Analytics/DimensionItem/style.tsx +2 -2
- package/src/modules/Analytics/DimensionPanel/index.tsx +129 -129
- package/src/modules/Analytics/DimensionPanel/style.tsx +1 -1
- package/src/modules/Analytics/GroupItem/index.tsx +61 -51
- package/src/modules/Analytics/GroupItem/style.tsx +5 -14
- package/src/modules/Analytics/GroupPanel/index.tsx +172 -172
- package/src/modules/Analytics/GroupPanel/style.tsx +2 -12
- package/src/modules/Analytics/GroupPanel/utils.tsx +17 -17
- package/src/modules/Analytics/index.tsx +180 -181
- package/src/modules/Analytics/style.tsx +9 -9
- package/src/modules/App/Routing/Logout/index.tsx +12 -12
- package/src/modules/App/Routing/NavMenu/NavItem/NavSubItem/index.tsx +16 -16
- package/src/modules/App/Routing/NavMenu/NavItem/NavSubItem/style.tsx +5 -5
- package/src/modules/App/Routing/NavMenu/NavItem/index.tsx +93 -93
- package/src/modules/App/Routing/NavMenu/NavItem/style.tsx +2 -2
- package/src/modules/App/Routing/NavMenu/context.tsx +2 -2
- package/src/modules/App/Routing/NavMenu/index.tsx +219 -219
- package/src/modules/App/Routing/NavMenu/style.tsx +1 -1
- package/src/modules/App/Routing/PrivateRoute/index.tsx +15 -15
- package/src/modules/App/Routing/index.tsx +106 -106
- package/src/modules/App/index.tsx +18 -18
- package/src/modules/Categories/CategoriesList/BulkHeader/TableHeader/index.tsx +35 -35
- package/src/modules/Categories/CategoriesList/BulkHeader/index.tsx +40 -40
- package/src/modules/Categories/CategoriesList/CategoryItem/index.tsx +284 -284
- package/src/modules/Categories/CategoriesList/CategoryItem/style.tsx +14 -14
- package/src/modules/Categories/CategoriesList/CategoryNav/NavItem/index.tsx +42 -42
- package/src/modules/Categories/CategoriesList/CategoryNav/index.tsx +28 -28
- package/src/modules/Categories/CategoriesList/CategoryNav/style.tsx +5 -5
- package/src/modules/Categories/CategoriesList/CategoryPanel/Form/index.tsx +97 -97
- package/src/modules/Categories/CategoriesList/CategoryPanel/index.tsx +181 -181
- package/src/modules/Categories/CategoriesList/atoms.tsx +66 -66
- package/src/modules/Categories/CategoriesList/helpers.tsx +106 -106
- package/src/modules/Categories/CategoriesList/hooks.tsx +54 -54
- package/src/modules/Categories/CategoriesList/index.tsx +465 -466
- package/src/modules/Categories/CategoriesList/style.tsx +9 -9
- package/src/modules/Categories/CategoriesList/utils.tsx +19 -19
- package/src/modules/Categories/index.tsx +6 -6
- package/src/modules/Content/BulkHeader/TableHeader/index.tsx +141 -141
- package/src/modules/Content/BulkHeader/TableHeader/style.tsx +13 -13
- package/src/modules/Content/BulkHeader/index.tsx +99 -99
- package/src/modules/Content/ContentFilters/index.tsx +83 -83
- package/src/modules/Content/ContentFilters/utils.tsx +53 -53
- package/src/modules/Content/OptionTable/index.tsx +205 -205
- package/src/modules/Content/OptionTable/store.tsx +19 -19
- package/src/modules/Content/PageImporter/index.tsx +122 -122
- package/src/modules/Content/PageImporter/style.tsx +15 -15
- package/src/modules/Content/PageItem/index.tsx +700 -700
- package/src/modules/Content/PageItem/style.tsx +24 -24
- package/src/modules/Content/atoms.tsx +103 -103
- package/src/modules/Content/hooks.tsx +99 -99
- package/src/modules/Content/index.tsx +1056 -1055
- package/src/modules/Content/style.tsx +8 -8
- package/src/modules/Content/utils.tsx +164 -164
- package/src/modules/CreatePass/index.tsx +64 -64
- package/src/modules/CreatePass/style.tsx +8 -9
- package/src/modules/FileDrive/Breadcrumb/index.tsx +27 -27
- package/src/modules/FileDrive/Breadcrumb/style.tsx +7 -7
- package/src/modules/FileDrive/BulkGridHeader/GridHeader/index.tsx +23 -23
- package/src/modules/FileDrive/BulkGridHeader/index.tsx +20 -20
- package/src/modules/FileDrive/BulkGridHeader/style.tsx +1 -1
- package/src/modules/FileDrive/BulkListHeader/TableHeader/index.tsx +34 -34
- package/src/modules/FileDrive/BulkListHeader/TableHeader/style.tsx +9 -9
- package/src/modules/FileDrive/BulkListHeader/index.tsx +30 -30
- package/src/modules/FileDrive/BulkListHeader/style.tsx +1 -1
- package/src/modules/FileDrive/FileDragAndDrop/index.tsx +255 -255
- package/src/modules/FileDrive/FileDragAndDrop/style.tsx +32 -32
- package/src/modules/FileDrive/FileFilters/SortBy/index.tsx +54 -54
- package/src/modules/FileDrive/FileFilters/Type/index.tsx +58 -59
- package/src/modules/FileDrive/FileFilters/Usage/index.tsx +46 -46
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/Item/index.tsx +17 -17
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/Item/style.tsx +0 -1
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/ItemGroup/index.tsx +27 -27
- package/src/modules/FileDrive/FileModal/DetailPanel/UsageContent/index.tsx +110 -110
- package/src/modules/FileDrive/FileModal/DetailPanel/index.tsx +179 -179
- package/src/modules/FileDrive/FileModal/index.tsx +176 -176
- package/src/modules/FileDrive/FileModal/style.tsx +12 -12
- package/src/modules/FileDrive/FolderItem/index.tsx +158 -158
- package/src/modules/FileDrive/FolderItem/style.tsx +1 -1
- package/src/modules/FileDrive/FolderTree/MenuItem/index.tsx +64 -64
- package/src/modules/FileDrive/FolderTree/MenuList/index.tsx +21 -21
- package/src/modules/FileDrive/FolderTree/index.tsx +43 -43
- package/src/modules/FileDrive/GridItem/index.tsx +168 -168
- package/src/modules/FileDrive/ListItem/index.tsx +182 -182
- package/src/modules/FileDrive/ListItem/style.tsx +12 -12
- package/src/modules/FileDrive/UploadItem/index.tsx +19 -19
- package/src/modules/FileDrive/UploadItem/style.tsx +1 -1
- package/src/modules/FileDrive/atoms.tsx +156 -156
- package/src/modules/FileDrive/hooks.tsx +82 -82
- package/src/modules/FileDrive/index.tsx +821 -822
- package/src/modules/FileDrive/style.tsx +28 -28
- package/src/modules/FileDrive/utils.tsx +11 -11
- package/src/modules/Forms/FormCategoriesList/BulkHeader/TableHeader/index.tsx +29 -29
- package/src/modules/Forms/FormCategoriesList/BulkHeader/index.tsx +24 -24
- package/src/modules/Forms/FormCategoriesList/CategoryItem/index.tsx +111 -111
- package/src/modules/Forms/FormCategoriesList/CategoryItem/style.tsx +9 -9
- package/src/modules/Forms/FormCategoriesList/CategoryPanel/Form/index.tsx +34 -34
- package/src/modules/Forms/FormCategoriesList/CategoryPanel/index.tsx +85 -85
- package/src/modules/Forms/FormCategoriesList/atoms.tsx +21 -21
- package/src/modules/Forms/FormCategoriesList/hooks.tsx +54 -54
- package/src/modules/Forms/FormCategoriesList/index.tsx +245 -245
- package/src/modules/Forms/FormCategoriesList/style.tsx +10 -10
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/Field/index.tsx +91 -91
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/TemplateManager/index.tsx +85 -85
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/ConnectedField/index.tsx +98 -98
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Form/index.tsx +70 -70
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/Header/index.tsx +117 -117
- package/src/modules/Forms/FormEditor/Editor/FormConfigPanel/index.tsx +73 -73
- package/src/modules/Forms/FormEditor/Editor/SideModal/SectionOption/index.tsx +9 -9
- package/src/modules/Forms/FormEditor/Editor/SideModal/SideModalOption/index.tsx +18 -18
- package/src/modules/Forms/FormEditor/Editor/SideModal/index.tsx +91 -91
- package/src/modules/Forms/FormEditor/Editor/SideModal/style.tsx +13 -13
- package/src/modules/Forms/FormEditor/Editor/index.tsx +141 -141
- package/src/modules/Forms/FormEditor/PageBrowser/index.tsx +69 -69
- package/src/modules/Forms/FormEditor/index.tsx +372 -372
- package/src/modules/Forms/FormList/BulkHeader/TableHeader/index.tsx +131 -131
- package/src/modules/Forms/FormList/BulkHeader/index.tsx +52 -52
- package/src/modules/Forms/FormList/FormItem/index.tsx +366 -366
- package/src/modules/Forms/FormList/FormItem/style.tsx +11 -11
- package/src/modules/Forms/FormList/Summary/index.tsx +41 -41
- package/src/modules/Forms/FormList/TemplateModal/index.tsx +92 -92
- package/src/modules/Forms/FormList/TemplateModal/style.tsx +9 -9
- package/src/modules/Forms/FormList/hooks.tsx +91 -91
- package/src/modules/Forms/FormList/index.tsx +442 -442
- package/src/modules/Forms/FormUseModal/FormUseItem/index.tsx +29 -29
- package/src/modules/Forms/FormUseModal/index.tsx +262 -262
- package/src/modules/Forms/FormUseModal/utils.tsx +92 -92
- package/src/modules/Forms/FormsMenu/MenuGroup/index.tsx +43 -43
- package/src/modules/Forms/FormsMenu/index.tsx +65 -65
- package/src/modules/Forms/atoms.tsx +182 -182
- package/src/modules/Forms/utils.tsx +15 -15
- package/src/modules/FramePreview/index.tsx +139 -129
- package/src/modules/GlobalEditor/Editor/index.tsx +111 -111
- package/src/modules/GlobalEditor/PageBrowser/index.tsx +65 -65
- package/src/modules/GlobalEditor/Preview/index.tsx +7 -7
- package/src/modules/GlobalEditor/index.tsx +738 -738
- package/src/modules/GlobalSettings/Robots/Item/RobotsPanel/index.tsx +49 -49
- package/src/modules/GlobalSettings/Robots/Item/index.tsx +14 -14
- package/src/modules/GlobalSettings/Robots/index.tsx +92 -93
- package/src/modules/GlobalSettings/index.tsx +21 -21
- package/src/modules/Login/constants.tsx +2 -2
- package/src/modules/Login/index.tsx +112 -112
- package/src/modules/MediaGallery/Breadcrumb/index.tsx +27 -27
- package/src/modules/MediaGallery/Breadcrumb/style.tsx +7 -7
- package/src/modules/MediaGallery/BulkGridHeader/GridHeader/index.tsx +23 -23
- package/src/modules/MediaGallery/BulkGridHeader/index.tsx +20 -20
- package/src/modules/MediaGallery/BulkGridHeader/style.tsx +1 -1
- package/src/modules/MediaGallery/BulkListHeader/TableHeader/index.tsx +32 -32
- package/src/modules/MediaGallery/BulkListHeader/index.tsx +27 -27
- package/src/modules/MediaGallery/BulkListHeader/style.tsx +1 -1
- package/src/modules/MediaGallery/FolderItem/index.tsx +169 -169
- package/src/modules/MediaGallery/FolderItem/style.tsx +1 -1
- package/src/modules/MediaGallery/FolderTree/MenuItem/index.tsx +64 -64
- package/src/modules/MediaGallery/FolderTree/MenuList/index.tsx +22 -22
- package/src/modules/MediaGallery/FolderTree/index.tsx +43 -43
- package/src/modules/MediaGallery/GridItem/index.tsx +133 -133
- package/src/modules/MediaGallery/ImageDragAndDrop/index.tsx +267 -260
- package/src/modules/MediaGallery/ImageDragAndDrop/style.tsx +32 -32
- package/src/modules/MediaGallery/ImageFilters/Orientation/index.tsx +47 -47
- package/src/modules/MediaGallery/ImageFilters/SortBy/index.tsx +54 -54
- package/src/modules/MediaGallery/ImageFilters/Type/index.tsx +48 -48
- package/src/modules/MediaGallery/ImageFilters/Usage/index.tsx +53 -53
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/Item/index.tsx +20 -20
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/ItemGroup/index.tsx +29 -29
- package/src/modules/MediaGallery/ImageModal/DetailPanel/UsageContent/index.tsx +201 -202
- package/src/modules/MediaGallery/ImageModal/DetailPanel/index.tsx +179 -179
- package/src/modules/MediaGallery/ImageModal/index.tsx +150 -150
- package/src/modules/MediaGallery/ImageModal/style.tsx +11 -11
- package/src/modules/MediaGallery/ListItem/index.tsx +164 -164
- package/src/modules/MediaGallery/ListItem/style.tsx +12 -12
- package/src/modules/MediaGallery/UploadItem/index.tsx +19 -19
- package/src/modules/MediaGallery/UploadItem/style.tsx +1 -1
- package/src/modules/MediaGallery/atoms.tsx +156 -156
- package/src/modules/MediaGallery/hooks.tsx +88 -88
- package/src/modules/MediaGallery/index.tsx +890 -890
- package/src/modules/MediaGallery/style.tsx +28 -28
- package/src/modules/MediaGallery/utils.tsx +11 -11
- package/src/modules/Navigation/Defaults/BulkHeader/TableHeader/index.tsx +30 -30
- package/src/modules/Navigation/Defaults/BulkHeader/index.tsx +26 -26
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/DefaultsBrowser/index.tsx +37 -37
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +101 -101
- package/src/modules/Navigation/Defaults/DefaultsEditor/index.tsx +261 -261
- package/src/modules/Navigation/Defaults/Item/atoms.tsx +34 -34
- package/src/modules/Navigation/Defaults/Item/index.tsx +241 -241
- package/src/modules/Navigation/Defaults/Item/style.tsx +9 -9
- package/src/modules/Navigation/Defaults/Nav/index.tsx +21 -21
- package/src/modules/Navigation/Defaults/Nav/style.tsx +9 -9
- package/src/modules/Navigation/Defaults/ReplaceNavModal/index.tsx +180 -180
- package/src/modules/Navigation/Defaults/ReplaceNavModal/style.tsx +15 -15
- package/src/modules/Navigation/Defaults/atoms.tsx +17 -17
- package/src/modules/Navigation/Defaults/index.tsx +301 -301
- package/src/modules/Navigation/Defaults/style.tsx +7 -7
- package/src/modules/Navigation/Menus/List/Nav/index.tsx +37 -37
- package/src/modules/Navigation/Menus/List/Nav/style.tsx +3 -4
- package/src/modules/Navigation/Menus/List/Table/ConfigPanel/Form/index.tsx +49 -49
- package/src/modules/Navigation/Menus/List/Table/ConfigPanel/index.tsx +33 -33
- package/src/modules/Navigation/Menus/List/Table/Header/index.tsx +29 -29
- package/src/modules/Navigation/Menus/List/Table/Header/style.tsx +2 -2
- package/src/modules/Navigation/Menus/List/Table/Item/atoms.tsx +54 -54
- package/src/modules/Navigation/Menus/List/Table/Item/index.tsx +149 -149
- package/src/modules/Navigation/Menus/List/Table/SidePanel/Form/ConnectedField/index.tsx +22 -22
- package/src/modules/Navigation/Menus/List/Table/SidePanel/Form/index.tsx +71 -71
- package/src/modules/Navigation/Menus/List/Table/SidePanel/index.tsx +87 -87
- package/src/modules/Navigation/Menus/List/Table/SidePanel/style.tsx +1 -1
- package/src/modules/Navigation/Menus/List/Table/helpers.tsx +103 -103
- package/src/modules/Navigation/Menus/List/Table/index.tsx +170 -170
- package/src/modules/Navigation/Menus/List/Table/style.tsx +1 -7
- package/src/modules/Navigation/Menus/List/helpers.tsx +36 -36
- package/src/modules/Navigation/Menus/List/index.tsx +50 -50
- package/src/modules/Navigation/Menus/index.tsx +38 -38
- package/src/modules/PageEditor/Editor/index.tsx +153 -153
- package/src/modules/PageEditor/PageBrowser/index.tsx +73 -73
- package/src/modules/PageEditor/Preview/index.tsx +5 -5
- package/src/modules/PageEditor/atoms.tsx +58 -58
- package/src/modules/PageEditor/index.tsx +805 -805
- package/src/modules/PublicPreview/index.tsx +48 -48
- package/src/modules/Redirects/BulkHeader/TableHeader/index.tsx +51 -51
- package/src/modules/Redirects/BulkHeader/index.tsx +56 -56
- package/src/modules/Redirects/RedirectItem/index.tsx +141 -141
- package/src/modules/Redirects/RedirectItem/style.tsx +1 -10
- package/src/modules/Redirects/RedirectPanel/index.tsx +90 -90
- package/src/modules/Redirects/atoms.tsx +185 -185
- package/src/modules/Redirects/hooks.tsx +63 -63
- package/src/modules/Redirects/index.tsx +397 -397
- package/src/modules/Redirects/style.tsx +24 -24
- package/src/modules/Redirects/utils.tsx +10 -7
- package/src/modules/ResetPass/index.tsx +69 -69
- package/src/modules/ResetPass/style.tsx +8 -9
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/index.tsx +31 -31
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/Filter/style.tsx +3 -7
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/Item/index.tsx +14 -12
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/Item/style.tsx +3 -9
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/index.tsx +28 -28
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/DetailPanel/style.tsx +11 -11
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/EmptyPanel/index.tsx +8 -8
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/EmptyPanel/style.tsx +2 -6
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/MultiplePanel/index.tsx +18 -18
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/index.tsx +12 -12
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SidePanel/style.tsx +3 -5
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SortFilter/index.tsx +32 -32
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/SortFilter/style.tsx +3 -7
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/index.tsx +113 -113
- package/src/modules/Settings/ContentTypes/DataPacks/AddModal/style.tsx +36 -24
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Card/index.tsx +9 -9
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Card/style.tsx +6 -6
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/IntegrationsField/index.tsx +31 -31
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/NavigationField/index.tsx +102 -102
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/NavigationField/style.tsx +17 -21
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/index.tsx +33 -33
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/TemplateBrowser/index.tsx +33 -33
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/index.tsx +6 -6
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/index.tsx +45 -45
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/style.tsx +3 -7
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/index.tsx +35 -35
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/style.tsx +7 -14
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/index.tsx +219 -219
- package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/style.tsx +2 -2
- package/src/modules/Settings/ContentTypes/DataPacks/Config/index.tsx +61 -61
- package/src/modules/Settings/ContentTypes/DataPacks/Config/style.tsx +6 -7
- package/src/modules/Settings/ContentTypes/DataPacks/Item/index.tsx +102 -102
- package/src/modules/Settings/ContentTypes/DataPacks/Item/style.tsx +10 -18
- package/src/modules/Settings/ContentTypes/DataPacks/List/index.tsx +15 -15
- package/src/modules/Settings/ContentTypes/DataPacks/List/style.tsx +1 -3
- package/src/modules/Settings/ContentTypes/DataPacks/Nav/index.tsx +65 -65
- package/src/modules/Settings/ContentTypes/DataPacks/Nav/style.tsx +11 -18
- package/src/modules/Settings/ContentTypes/DataPacks/hooks.tsx +12 -12
- package/src/modules/Settings/ContentTypes/DataPacks/index.tsx +220 -220
- package/src/modules/Settings/ContentTypes/DataPacks/style.tsx +4 -9
- package/src/modules/Settings/ContentTypes/index.tsx +5 -5
- package/src/modules/Settings/Globals/NavigationModules/SideModal/SideModalOption/index.tsx +16 -16
- package/src/modules/Settings/Globals/NavigationModules/SideModal/index.tsx +85 -85
- package/src/modules/Settings/Globals/NavigationModules/index.tsx +69 -69
- package/src/modules/Settings/Globals/constants.tsx +436 -436
- package/src/modules/Settings/Globals/index.tsx +198 -194
- package/src/modules/Settings/Integrations/BulkHeader/TableHeader/index.tsx +102 -102
- package/src/modules/Settings/Integrations/BulkHeader/TableHeader/style.tsx +8 -8
- package/src/modules/Settings/Integrations/BulkHeader/index.tsx +40 -40
- package/src/modules/Settings/Integrations/IntegrationForm/VariableItem/index.tsx +69 -69
- package/src/modules/Settings/Integrations/IntegrationForm/VariablePanel/index.tsx +118 -118
- package/src/modules/Settings/Integrations/IntegrationForm/index.tsx +275 -275
- package/src/modules/Settings/Integrations/IntegrationForm/style.tsx +11 -11
- package/src/modules/Settings/Integrations/IntegrationItem/CopyModal/index.tsx +31 -31
- package/src/modules/Settings/Integrations/IntegrationItem/index.tsx +278 -278
- package/src/modules/Settings/Integrations/IntegrationItem/style.tsx +21 -21
- package/src/modules/Settings/Integrations/atoms.tsx +32 -32
- package/src/modules/Settings/Integrations/hooks.tsx +67 -67
- package/src/modules/Settings/Integrations/index.tsx +327 -327
- package/src/modules/Settings/Integrations/style.tsx +10 -10
- package/src/modules/Settings/Integrations/utils.tsx +27 -27
- package/src/modules/Settings/Languages/LanguagePanel/Form/ConnectedField/index.tsx +24 -24
- package/src/modules/Settings/Languages/LanguagePanel/Form/index.tsx +41 -41
- package/src/modules/Settings/Languages/LanguagePanel/index.tsx +59 -59
- package/src/modules/Settings/Languages/Table/Header/index.tsx +20 -20
- package/src/modules/Settings/Languages/Table/Header/style.tsx +2 -2
- package/src/modules/Settings/Languages/Table/Item/index.tsx +61 -61
- package/src/modules/Settings/Languages/Table/index.tsx +11 -11
- package/src/modules/Settings/Languages/index.tsx +36 -36
- package/src/modules/Settings/Languages/style.tsx +1 -1
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/atoms.tsx +129 -129
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/index.tsx +118 -118
- package/src/modules/Settings/SeoAnalyticsSettings/Analytics/style.tsx +14 -14
- package/src/modules/Settings/SeoAnalyticsSettings/index.tsx +21 -21
- package/src/modules/Settings/Social/index.tsx +93 -93
- package/src/modules/Settings/Social/style.tsx +1 -1
- package/src/modules/Settings/index.tsx +30 -29
- package/src/modules/Sites/SitesList/GridView/GridHeaderFilter/index.tsx +53 -53
- package/src/modules/Sites/SitesList/GridView/GridSiteItem/index.tsx +179 -179
- package/src/modules/Sites/SitesList/ListView/BulkHeader/TableHeader/index.tsx +57 -57
- package/src/modules/Sites/SitesList/ListView/BulkHeader/index.tsx +66 -66
- package/src/modules/Sites/SitesList/ListView/ListSiteItem/index.tsx +205 -205
- package/src/modules/Sites/SitesList/ListView/ListSiteItem/style.tsx +12 -12
- package/src/modules/Sites/SitesList/RecentSiteItem/index.tsx +27 -27
- package/src/modules/Sites/SitesList/SiteModal/index.tsx +67 -67
- package/src/modules/Sites/SitesList/atoms.tsx +29 -29
- package/src/modules/Sites/SitesList/hooks.tsx +98 -98
- package/src/modules/Sites/SitesList/index.tsx +412 -412
- package/src/modules/Sites/SitesList/style.tsx +26 -26
- package/src/modules/Sites/SitesList/utils.tsx +21 -21
- package/src/modules/Sites/index.tsx +60 -60
- package/src/modules/StructuredData/Form/ConnectedField/index.tsx +85 -85
- package/src/modules/StructuredData/Form/index.tsx +464 -464
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/index.tsx +143 -143
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/style.tsx +13 -13
- package/src/modules/StructuredData/StructuredDataList/BulkHeader/index.tsx +96 -96
- package/src/modules/StructuredData/StructuredDataList/ContentFilters/index.tsx +51 -51
- package/src/modules/StructuredData/StructuredDataList/ContentFilters/utils.tsx +42 -42
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/atoms.tsx +109 -109
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +507 -507
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/style.tsx +22 -22
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/utils.tsx +11 -11
- package/src/modules/StructuredData/StructuredDataList/OptionTable/index.tsx +102 -102
- package/src/modules/StructuredData/StructuredDataList/OptionTable/store.tsx +19 -19
- package/src/modules/StructuredData/StructuredDataList/OptionTable/style.tsx +1 -1
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/index.tsx +298 -298
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/style.tsx +12 -12
- package/src/modules/StructuredData/StructuredDataList/StructuredDataItem/utils.tsx +48 -48
- package/src/modules/StructuredData/StructuredDataList/atoms.tsx +65 -65
- package/src/modules/StructuredData/StructuredDataList/hooks.tsx +108 -108
- package/src/modules/StructuredData/StructuredDataList/index.tsx +782 -782
- package/src/modules/StructuredData/StructuredDataList/utils.tsx +161 -161
- package/src/modules/StructuredData/index.tsx +8 -8
- package/src/modules/Users/Profile/atoms.tsx +32 -32
- package/src/modules/Users/Profile/index.tsx +82 -82
- package/src/modules/Users/Roles/BulkHeader/TableHeader/index.tsx +50 -50
- package/src/modules/Users/Roles/BulkHeader/TableHeader/style.tsx +1 -1
- package/src/modules/Users/Roles/BulkHeader/index.tsx +60 -60
- package/src/modules/Users/Roles/RoleItem/index.tsx +80 -80
- package/src/modules/Users/Roles/RoleItem/style.tsx +13 -13
- package/src/modules/Users/Roles/SideModal/index.tsx +64 -64
- package/src/modules/Users/Roles/SideModal/style.tsx +20 -21
- package/src/modules/Users/Roles/hooks.tsx +74 -74
- package/src/modules/Users/Roles/index.tsx +218 -218
- package/src/modules/Users/Roles/utils.tsx +7 -7
- package/src/modules/Users/UserCreate/OptionItem/index.tsx +32 -32
- package/src/modules/Users/UserCreate/OptionItem/style.tsx +5 -5
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/RoleItem/index.tsx +32 -32
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/index.tsx +124 -123
- package/src/modules/Users/UserCreate/SiteItem/RolesModal/style.tsx +12 -12
- package/src/modules/Users/UserCreate/SiteItem/index.tsx +101 -101
- package/src/modules/Users/UserCreate/SiteItem/style.tsx +5 -5
- package/src/modules/Users/UserCreate/index.tsx +315 -315
- package/src/modules/Users/UserCreate/style.tsx +20 -20
- package/src/modules/Users/UserEdit/index.tsx +159 -159
- package/src/modules/Users/UserEdit/style.tsx +2 -2
- package/src/modules/Users/UserForm/atoms.tsx +100 -100
- package/src/modules/Users/UserForm/helpers.tsx +4 -4
- package/src/modules/Users/UserForm/index.tsx +494 -494
- package/src/modules/Users/UserForm/style.tsx +18 -18
- package/src/modules/Users/UserList/BulkHeader/TableHeader/index.tsx +86 -86
- package/src/modules/Users/UserList/BulkHeader/index.tsx +62 -62
- package/src/modules/Users/UserList/UserItem/index.tsx +231 -231
- package/src/modules/Users/UserList/UserItem/style.tsx +15 -15
- package/src/modules/Users/UserList/hooks.tsx +73 -73
- package/src/modules/Users/UserList/index.tsx +312 -312
- package/src/modules/Users/UserList/style.tsx +3 -3
- package/src/modules/Users/UserList/utils.tsx +6 -6
- package/src/modules/Users/index.tsx +36 -36
- package/src/react-app-env.d.ts +36 -36
- package/src/routes/index.tsx +15 -15
- package/src/routes/multisite.tsx +205 -205
- package/src/routes/publicRoutes.tsx +5 -5
- package/src/routes/site.tsx +260 -260
- package/src/schemas/index.tsx +1 -1
- package/src/schemas/pages/FormPage.tsx +48 -48
- package/src/schemas/pages/GlobalPage.tsx +208 -208
- package/src/schemas/pages/Page.tsx +278 -278
- package/src/serviceWorker.ts +99 -109
- package/src/themes/theme.json +370 -370
- package/src/types/files.tsx +72 -72
- package/src/types/forms.tsx +54 -54
- package/src/types/index.tsx +794 -794
- package/src/types/logs.tsx +4 -4
- package/tsconfig.json +21 -35
- package/tsconfig.paths.json +20 -20
- package/scripts/start/build-dev.sh +0 -2
- package/scripts/start/build.sh +0 -2
- package/scripts/start/check-node-version.sh +0 -2
- package/scripts/start/start-dev.sh +0 -2
- package/scripts/start/start-local.sh +0 -2
- package/scripts/start/start-staging.sh +0 -2
- package/scripts/start/start-test.sh +0 -2
|
@@ -1,944 +1,944 @@
|
|
|
1
1
|
import { Dispatch } from "redux";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
FormCategoriesList,
|
|
4
|
+
FormCategoriesOrderParams,
|
|
5
|
+
FormCategory,
|
|
6
|
+
FormContent,
|
|
7
|
+
FormState,
|
|
8
|
+
GetFormsParams,
|
|
9
|
+
IBreadcrumbItem,
|
|
10
|
+
IModule,
|
|
11
|
+
INotification,
|
|
12
|
+
IRootState,
|
|
13
|
+
ISchema,
|
|
14
|
+
ListForm,
|
|
15
15
|
} from "@ax/types";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
deepClone,
|
|
18
|
+
getDefaultFormTemplate,
|
|
19
|
+
getDefaultSchema,
|
|
20
|
+
getImageFromIFrame,
|
|
21
|
+
getSchema,
|
|
22
|
+
handleRequest,
|
|
23
|
+
isReqOk,
|
|
24
24
|
} from "@ax/helpers";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
findByEditorID,
|
|
27
|
+
generateEditorIDs,
|
|
28
|
+
getLastComponentEditorID,
|
|
29
|
+
getNewBreadcrumb,
|
|
30
|
+
getParentKey,
|
|
31
|
+
moveElement,
|
|
32
|
+
parseData,
|
|
33
|
+
updateByEditorID,
|
|
34
|
+
updateComponent,
|
|
35
35
|
} from "@ax/forms";
|
|
36
36
|
import { appActions } from "@ax/containers/App";
|
|
37
37
|
import { forms, images } from "@ax/api";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
39
|
+
SET_BREADCRUMB,
|
|
40
|
+
SET_COPY_MODULE,
|
|
41
|
+
SET_CURRENT_FORM_ID,
|
|
42
|
+
SET_FORM_CONTENT,
|
|
43
|
+
SET_FORMS,
|
|
44
|
+
SET_SCHEMA,
|
|
45
|
+
SET_SELECTED_CONTENT,
|
|
46
|
+
SET_SELECTED_EDITOR_ID,
|
|
47
|
+
SET_SELECTED_PARENT,
|
|
48
|
+
SET_TAB,
|
|
49
|
+
SET_TEMPLATE,
|
|
50
|
+
SET_SUMMARY,
|
|
51
|
+
DEFAULT_PARAMS,
|
|
52
|
+
SET_CURRENT_FORM_CATEGORIES,
|
|
53
|
+
SET_IS_NEW_TRANSLATION,
|
|
54
|
+
SET_IS_IA_TRANSLATED,
|
|
55
55
|
} from "./constants";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
57
|
+
ISetBreadcrumb,
|
|
58
|
+
ISetCopyModule,
|
|
59
|
+
ISetCurrentFormID,
|
|
60
|
+
ISetFormContent,
|
|
61
|
+
ISetForms,
|
|
62
|
+
ISetSchema,
|
|
63
|
+
ISetSelectedContent,
|
|
64
|
+
ISetSelectedEditorID,
|
|
65
|
+
ISetSelectedParent,
|
|
66
|
+
ISetTab,
|
|
67
|
+
ISetTemplate,
|
|
68
|
+
ISetSummary,
|
|
69
|
+
ISetCurrentFormCategories,
|
|
70
|
+
ISetIsNewTranslation,
|
|
71
|
+
ISetIsIATranslated,
|
|
72
72
|
} from "./interfaces";
|
|
73
73
|
import { getUpdatedComponents } from "./utils";
|
|
74
74
|
|
|
75
75
|
const { setIsLoading, setIsSaving, handleError } = appActions;
|
|
76
76
|
|
|
77
77
|
function setForms(forms: FormContent[]): ISetForms {
|
|
78
|
-
|
|
78
|
+
return { type: SET_FORMS, payload: { forms } };
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
function setFormContent(formContent: FormContent | null): ISetFormContent {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
const iframe = document.querySelector("iframe");
|
|
83
|
+
iframe?.contentWindow?.postMessage(
|
|
84
|
+
{
|
|
85
|
+
type: "content-update",
|
|
86
|
+
message: formContent,
|
|
87
|
+
},
|
|
88
|
+
"*",
|
|
89
|
+
);
|
|
90
|
+
return { type: SET_FORM_CONTENT, payload: { formContent } };
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
function setSchema(schema: ISchema | Record<string, never>): ISetSchema {
|
|
94
|
-
|
|
94
|
+
return { type: SET_SCHEMA, payload: { schema } };
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function setTemplate(template: string): ISetTemplate {
|
|
98
|
-
|
|
98
|
+
return { type: SET_TEMPLATE, payload: { template } };
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
function setSelectedFormContent(selectedContent: Record<string, unknown>): ISetSelectedContent {
|
|
102
|
-
|
|
102
|
+
return { type: SET_SELECTED_CONTENT, payload: { selectedContent } };
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
function setSelectedParent(selectedParent: Record<string, unknown> | null): ISetSelectedParent {
|
|
106
|
-
|
|
106
|
+
return { type: SET_SELECTED_PARENT, payload: { selectedParent } };
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
function setSelectedEditorID(selectedEditorID: number): ISetSelectedEditorID {
|
|
110
|
-
|
|
110
|
+
return { type: SET_SELECTED_EDITOR_ID, payload: { selectedEditorID } };
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function setTab(tab: string): ISetTab {
|
|
114
|
-
|
|
114
|
+
return { type: SET_TAB, payload: { tab } };
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
function setCurrentFormID(currentFormID: number | null): ISetCurrentFormID {
|
|
118
|
-
|
|
118
|
+
return { type: SET_CURRENT_FORM_ID, payload: { currentFormID } };
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
function setBreadcrumb(breadcrumb: IBreadcrumbItem[]): ISetBreadcrumb {
|
|
122
|
-
|
|
122
|
+
return { type: SET_BREADCRUMB, payload: { breadcrumb } };
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
function setCopyModule(moduleCopy: { date: Date; elements: IModule[] } | null): ISetCopyModule {
|
|
126
|
-
|
|
126
|
+
return { type: SET_COPY_MODULE, payload: { moduleCopy } };
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
function setSummary(summary: { total: number; active: number; inactive: number }): ISetSummary {
|
|
130
|
-
|
|
130
|
+
return { type: SET_SUMMARY, payload: { summary } };
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
function setCurrentFormCategories(currentFormCategories: FormCategory[]): ISetCurrentFormCategories {
|
|
134
|
-
|
|
134
|
+
return { type: SET_CURRENT_FORM_CATEGORIES, payload: { currentFormCategories } };
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
function setIsNewTranslation(isNewTranslation: boolean): ISetIsNewTranslation {
|
|
138
|
-
|
|
138
|
+
return { type: SET_IS_NEW_TRANSLATION, payload: { isNewTranslation } };
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
function setIsIATranslated(isIATranslated: boolean): ISetIsIATranslated {
|
|
142
|
-
|
|
142
|
+
return { type: SET_IS_IA_TRANSLATED, payload: { isIATranslated } };
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
function getForms(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
siteID: number | null,
|
|
147
|
+
params?: GetFormsParams,
|
|
148
|
+
loading = true,
|
|
149
149
|
): (dispatch: Dispatch) => Promise<void> {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
return async (dispatch) => {
|
|
151
|
+
try {
|
|
152
|
+
const getParams = { ...DEFAULT_PARAMS, ...params };
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
const site = siteID ? siteID : "global";
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
156
|
+
const responseActions = {
|
|
157
|
+
handleSuccess: (response: ListForm) => {
|
|
158
|
+
const { items, totalItems, active, inactive } = response;
|
|
159
|
+
dispatch(setForms(items));
|
|
160
|
+
dispatch(setSummary({ total: totalItems, active, inactive }));
|
|
161
|
+
},
|
|
162
|
+
handleError: (response: any) => handleError(response)(dispatch),
|
|
163
|
+
};
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
const callback = async () => forms.getForms(site, getParams);
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
const loadingAction = loading ? [setIsLoading] : [];
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
await handleRequest(callback, responseActions, loadingAction)(dispatch);
|
|
170
|
+
} catch (e) {
|
|
171
|
+
console.log(e);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
function getForm(formID: number | null): (dispatch: Dispatch, getState: () => IRootState) => Promise<void> {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
177
|
+
return async (dispatch, getState) => {
|
|
178
|
+
try {
|
|
179
|
+
dispatch(setIsLoading(true));
|
|
180
|
+
const {
|
|
181
|
+
forms: { isNewTranslation },
|
|
182
|
+
} = getState();
|
|
183
|
+
|
|
184
|
+
if (formID) {
|
|
185
|
+
const response: { status: number; data: FormContent } = await forms.getForm(formID);
|
|
186
|
+
|
|
187
|
+
if (isReqOk(response.status)) {
|
|
188
|
+
addTemplate(response.data.template.templateType)(dispatch);
|
|
189
|
+
dispatch(setSelectedEditorID(0));
|
|
190
|
+
const formData: Partial<FormContent> = response.data;
|
|
191
|
+
if (isNewTranslation) {
|
|
192
|
+
delete formData.id;
|
|
193
|
+
formData["state"] = "inactive";
|
|
194
|
+
formData["canBeTranslated"] = true;
|
|
195
|
+
formData["originalLanguage"] = formData.language;
|
|
196
|
+
formData["formInUse"] = null;
|
|
197
|
+
}
|
|
198
|
+
generateFormContent(formData)(dispatch, getState);
|
|
199
|
+
dispatch(setCurrentFormID(response.data.id));
|
|
200
|
+
dispatch(setIsIATranslated(false));
|
|
201
|
+
}
|
|
202
|
+
} else {
|
|
203
|
+
generateNewForm()(dispatch, getState);
|
|
204
|
+
}
|
|
205
|
+
} catch (e) {
|
|
206
|
+
dispatch(setIsLoading(false));
|
|
207
|
+
console.log(e); // TODO: capturar error bien
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
function generateNewForm(): (dispatch: Dispatch, getState: () => IRootState) => void {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
213
|
+
return async (dispatch, getState) => {
|
|
214
|
+
const {
|
|
215
|
+
forms: { template },
|
|
216
|
+
app: { lang },
|
|
217
|
+
} = getState();
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
let form = getDefaultSchema("FormPage");
|
|
220
|
+
const parsedPageData = parseData(form, true);
|
|
221
|
+
const currentTemplate = getDefaultFormTemplate(template);
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
form = { ...parsedPageData, template: currentTemplate, language: lang.id, dataLanguages: [] };
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
dispatch(setIsNewTranslation(false));
|
|
226
226
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
227
|
+
// SET PAGE AS ROOT WHEN NEW PAGE
|
|
228
|
+
dispatch(setSelectedEditorID(0));
|
|
229
|
+
generateFormContent(form)(dispatch, getState);
|
|
230
|
+
};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
function generateFormContent(
|
|
234
|
-
|
|
234
|
+
formContent: Partial<FormContent>,
|
|
235
235
|
): (dispatch: Dispatch, getState: () => IRootState) => void {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
236
|
+
return (dispatch, getState) => {
|
|
237
|
+
const {
|
|
238
|
+
forms: { selectedEditorID },
|
|
239
|
+
sites: { currentSiteInfo },
|
|
240
|
+
} = getState();
|
|
241
|
+
|
|
242
|
+
const { pageContent } = generateEditorIDs({ ...formContent });
|
|
243
|
+
pageContent["site"] = currentSiteInfo ? currentSiteInfo.id : null;
|
|
244
|
+
const { element: selectedContent, parent: selectedParent } = findByEditorID(pageContent, selectedEditorID);
|
|
245
|
+
const { component } = selectedContent;
|
|
246
|
+
const schema = getSchema(component);
|
|
247
|
+
if (!schema) return;
|
|
248
|
+
dispatch(setSchema(schema));
|
|
249
|
+
dispatch(setFormContent(pageContent));
|
|
250
|
+
updateBreadcrumb(selectedEditorID)(dispatch, getState);
|
|
251
|
+
dispatch(setSelectedFormContent(selectedContent));
|
|
252
|
+
dispatch(setSelectedParent(selectedParent));
|
|
253
|
+
dispatch(setIsLoading(false));
|
|
254
|
+
};
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
function setSelectedContent(editorID: number): (dispatch: Dispatch, getState: () => IRootState) => Promise<void> {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
258
|
+
return async (dispatch, getState) => {
|
|
259
|
+
const {
|
|
260
|
+
forms: { formContent, tab },
|
|
261
|
+
} = getState();
|
|
262
|
+
|
|
263
|
+
dispatch(setIsLoading(true));
|
|
264
|
+
|
|
265
|
+
const iframe = document.querySelector("iframe");
|
|
266
|
+
iframe?.contentWindow?.postMessage(
|
|
267
|
+
{
|
|
268
|
+
type: "selected-content",
|
|
269
|
+
message: editorID,
|
|
270
|
+
},
|
|
271
|
+
"*",
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
if (editorID > 0) {
|
|
275
|
+
localStorage.setItem("selectedID", `${editorID}`);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const { element: selectedContent, parent: selectedParent } = findByEditorID({ formContent }, editorID);
|
|
279
|
+
|
|
280
|
+
const { component } = selectedContent;
|
|
281
|
+
const defaultSchema = getDefaultSchema(component);
|
|
282
|
+
|
|
283
|
+
// if schema default has new keys
|
|
284
|
+
const isUpdatedComponent = Object.keys(defaultSchema).length + 2 !== Object.keys(selectedContent).length;
|
|
285
|
+
isUpdatedComponent && updateComponent(selectedContent, defaultSchema);
|
|
286
|
+
|
|
287
|
+
const schema = getSchema(component);
|
|
288
|
+
if (!schema) return;
|
|
289
|
+
const defaultTab = "content";
|
|
290
|
+
dispatch(setTab(tab || defaultTab));
|
|
291
|
+
dispatch(setSchema(schema));
|
|
292
|
+
dispatch(setSelectedEditorID(editorID));
|
|
293
|
+
updateBreadcrumb(editorID)(dispatch, getState);
|
|
294
|
+
dispatch(setSelectedFormContent({ ...selectedContent }));
|
|
295
|
+
dispatch(setSelectedParent(selectedParent));
|
|
296
|
+
dispatch(setIsLoading(false));
|
|
297
|
+
};
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
function updateFormContent(
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
selectedEditorID: number,
|
|
302
|
+
key: string,
|
|
303
|
+
value: any,
|
|
304
304
|
): (dispatch: Dispatch, getState: () => IRootState) => void {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
305
|
+
return (dispatch, getState) => {
|
|
306
|
+
const {
|
|
307
|
+
forms: { formContent, selectedContent },
|
|
308
|
+
} = getState();
|
|
309
309
|
|
|
310
|
-
|
|
310
|
+
const clonedContent = deepClone(formContent);
|
|
311
311
|
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
const updatedSelectedContent = updateByEditorID(selectedContent, selectedEditorID, key, value);
|
|
313
|
+
const updatedFormContent = updateByEditorID(clonedContent, selectedEditorID, key, value);
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
dispatch(setSelectedFormContent(updatedSelectedContent));
|
|
316
|
+
dispatch(setFormContent(updatedFormContent));
|
|
317
317
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
if (value && typeof value === "object") {
|
|
319
|
+
generateFormContent(updatedFormContent)(dispatch, getState);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
function updateBreadcrumb(editorID: number): (dispatch: Dispatch, getState: any) => void {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
return (dispatch, getState) => {
|
|
326
|
+
const {
|
|
327
|
+
forms: { formContent },
|
|
328
|
+
}: IRootState = getState();
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
const newBreadcrumb = getNewBreadcrumb(formContent, editorID, false);
|
|
331
331
|
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
dispatch(setBreadcrumb(newBreadcrumb));
|
|
333
|
+
};
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
function saveForm(
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
formHtml?: HTMLDivElement | null,
|
|
338
|
+
updateState?: FormState,
|
|
339
339
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
340
|
+
return async (dispatch, getState) => {
|
|
341
|
+
try {
|
|
342
|
+
const {
|
|
343
|
+
forms: { formContent },
|
|
344
|
+
app: { lang },
|
|
345
|
+
} = getState();
|
|
346
|
+
|
|
347
|
+
if (!formContent) {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const isNewForm = !formContent.id;
|
|
352
|
+
formContent["language"] = lang.id;
|
|
353
|
+
|
|
354
|
+
const callback = async () =>
|
|
355
|
+
isNewForm ? await forms.createForm(formContent) : await forms.updateForm(formContent.id, formContent);
|
|
356
|
+
|
|
357
|
+
const responseActions = {
|
|
358
|
+
handleSuccess: async (response: FormContent) => {
|
|
359
|
+
const { pageContent } = generateEditorIDs(response);
|
|
360
|
+
if (updateState) {
|
|
361
|
+
const isUpdated = await forms.updateFormState(pageContent.id, updateState);
|
|
362
|
+
if (isUpdated) {
|
|
363
|
+
pageContent["state"] = updateState;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (isNewForm) {
|
|
367
|
+
dispatch(setCurrentFormID(pageContent.id));
|
|
368
|
+
}
|
|
369
|
+
dispatch(setFormContent(pageContent));
|
|
370
|
+
dispatch(setIsNewTranslation(false));
|
|
371
|
+
|
|
372
|
+
if (formHtml) {
|
|
373
|
+
const form = new FormData();
|
|
374
|
+
const image = await getImageFromIFrame(formHtml, "form-thumbnail");
|
|
375
|
+
|
|
376
|
+
if (image) {
|
|
377
|
+
form.append("file", image);
|
|
378
|
+
images.createThumbnail(pageContent.id, "form", form);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
handleError: (response: any) => handleError(response)(dispatch),
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
return await handleRequest(callback, responseActions, [setIsSaving])(dispatch);
|
|
386
|
+
} catch (e) {
|
|
387
|
+
console.log(e);
|
|
388
|
+
return false;
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
function deleteForm(id: number | number[]): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
394
|
+
return async (dispatch, getState) => {
|
|
395
|
+
try {
|
|
396
|
+
const {
|
|
397
|
+
sites: { currentSiteInfo },
|
|
398
|
+
} = getState();
|
|
399
|
+
|
|
400
|
+
const responseActions = {
|
|
401
|
+
handleSuccess: () => {
|
|
402
|
+
getForms(currentSiteInfo?.id || null)(dispatch);
|
|
403
|
+
},
|
|
404
|
+
handleError: (response: any) => {
|
|
405
|
+
const {
|
|
406
|
+
data: { message },
|
|
407
|
+
} = response;
|
|
408
|
+
const isMultiple = Array.isArray(message) && message.length > 1;
|
|
409
|
+
const msg = isMultiple ? `The delete action failed due to ${message.length} errors.` : undefined;
|
|
410
|
+
appActions.handleError(response, isMultiple, msg)(dispatch);
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
const callback = async () => (Array.isArray(id) ? await forms.deleteFormBulk(id) : await forms.deleteForm(id));
|
|
415
|
+
|
|
416
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
417
|
+
} catch (e) {
|
|
418
|
+
console.log(e);
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
function updateFormState(
|
|
425
|
-
|
|
426
|
-
|
|
425
|
+
formID: number | number[],
|
|
426
|
+
state: FormState,
|
|
427
427
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
428
|
+
return async (dispatch, getState) => {
|
|
429
|
+
try {
|
|
430
|
+
const {
|
|
431
|
+
sites: { currentSiteInfo },
|
|
432
|
+
} = getState();
|
|
433
|
+
|
|
434
|
+
const callback = async () =>
|
|
435
|
+
Array.isArray(formID)
|
|
436
|
+
? await forms.updateFormStateBulk(formID, state)
|
|
437
|
+
: await forms.updateFormState(formID, state);
|
|
438
|
+
|
|
439
|
+
const responseActions = {
|
|
440
|
+
handleSuccess: () => {
|
|
441
|
+
getForms(currentSiteInfo?.id || null)(dispatch);
|
|
442
|
+
},
|
|
443
|
+
handleError: (response: any) => handleError(response)(dispatch),
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
447
|
+
} catch (e) {
|
|
448
|
+
console.log(e);
|
|
449
|
+
return false;
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
function setSelectedTab(tab: string): (dispatch: Dispatch) => void {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
455
|
+
return (dispatch) => {
|
|
456
|
+
try {
|
|
457
|
+
dispatch(setTab(tab));
|
|
458
|
+
} catch (e) {
|
|
459
|
+
console.log("Error", e);
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
function addModule(type: string, key: string): (dispatch: Dispatch, getState: () => IRootState) => void {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
465
|
+
return (dispatch, getState) => {
|
|
466
|
+
const {
|
|
467
|
+
forms: { formContent, selectedEditorID: editorID },
|
|
468
|
+
} = getState();
|
|
469
469
|
|
|
470
|
-
|
|
470
|
+
if (!formContent) return;
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
const templateContent = formContent.template;
|
|
473
473
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
474
|
+
const component = {
|
|
475
|
+
editorID: editorID === 0 ? templateContent?.editorID : editorID,
|
|
476
|
+
type,
|
|
477
|
+
};
|
|
478
478
|
|
|
479
|
-
|
|
479
|
+
const updatedObj = getUpdatedComponents(templateContent, component, key);
|
|
480
480
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
481
|
+
const updatedPageContent = {
|
|
482
|
+
...formContent,
|
|
483
|
+
template: {
|
|
484
|
+
...templateContent,
|
|
485
|
+
...updatedObj,
|
|
486
|
+
},
|
|
487
|
+
};
|
|
488
488
|
|
|
489
|
-
|
|
489
|
+
generateFormContent(updatedPageContent)(dispatch, getState);
|
|
490
490
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
491
|
+
const {
|
|
492
|
+
forms: { formContent: generatedFormContent },
|
|
493
|
+
}: IRootState = getState();
|
|
494
494
|
|
|
495
|
-
|
|
495
|
+
if (!generatedFormContent) return;
|
|
496
496
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
497
|
+
const lastElementEditorID = getLastComponentEditorID(generatedFormContent.template, component.editorID, key);
|
|
498
|
+
localStorage.setItem("selectedID", `${lastElementEditorID}`);
|
|
499
|
+
};
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
function deleteModule(editorID: number[], key?: string): (dispatch: Dispatch, getState: () => IRootState) => void {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
503
|
+
return (dispatch, getState) => {
|
|
504
|
+
const {
|
|
505
|
+
forms: { formContent },
|
|
506
|
+
} = getState();
|
|
507
507
|
|
|
508
|
-
|
|
508
|
+
if (!formContent) return;
|
|
509
509
|
|
|
510
|
-
|
|
510
|
+
const templateContent = formContent.template;
|
|
511
511
|
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
const { parent, grandParent } = findByEditorID(templateContent, editorID[0]);
|
|
513
|
+
const parentModule = Array.isArray(parent) ? grandParent : parent;
|
|
514
514
|
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
const parentKey = key ? key : getParentKey(parentModule, editorID[0]);
|
|
516
|
+
const itemsArr = parentModule[parentKey];
|
|
517
517
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
518
|
+
editorID.forEach((moduleID) => {
|
|
519
|
+
const index = itemsArr.findIndex((module: IModule) => module.editorID === moduleID);
|
|
520
|
+
itemsArr.splice(index, 1);
|
|
521
|
+
});
|
|
522
522
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
523
|
+
const updatedContent = {
|
|
524
|
+
...formContent,
|
|
525
|
+
template: {
|
|
526
|
+
...templateContent,
|
|
527
|
+
},
|
|
528
|
+
};
|
|
529
529
|
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
generateFormContent(updatedContent)(dispatch, getState);
|
|
531
|
+
};
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
function duplicateModule(editorID: number[], key?: string): (dispatch: Dispatch, getState: () => IRootState) => number {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
535
|
+
return (dispatch, getState) => {
|
|
536
|
+
const {
|
|
537
|
+
forms: { formContent },
|
|
538
|
+
} = getState();
|
|
539
539
|
|
|
540
|
-
|
|
540
|
+
if (!formContent) return;
|
|
541
541
|
|
|
542
|
-
|
|
542
|
+
const templateContent = formContent.template;
|
|
543
543
|
|
|
544
|
-
|
|
545
|
-
|
|
544
|
+
const { parent, grandParent } = findByEditorID(templateContent, editorID[0]);
|
|
545
|
+
const parentModule = Array.isArray(parent) ? grandParent : parent;
|
|
546
546
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
const parentKey = key ? key : getParentKey(parentModule, editorID[0]);
|
|
548
|
+
const itemsArr = parentModule[parentKey];
|
|
549
|
+
let duplicatedItemIndex = 0;
|
|
550
550
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
551
|
+
editorID.forEach((id) => {
|
|
552
|
+
const { element: originalItem } = findByEditorID(templateContent, id);
|
|
553
|
+
const clonedItem = deepClone(originalItem);
|
|
554
|
+
delete clonedItem.fixed;
|
|
555
|
+
const originalItemIndex = itemsArr.findIndex((module: IModule) => module.editorID === id);
|
|
556
|
+
duplicatedItemIndex = originalItemIndex + 1;
|
|
557
|
+
itemsArr.splice(duplicatedItemIndex, 0, clonedItem);
|
|
558
|
+
});
|
|
559
559
|
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
560
|
+
const updatedContent = {
|
|
561
|
+
...formContent,
|
|
562
|
+
template: {
|
|
563
|
+
...templateContent,
|
|
564
|
+
},
|
|
565
|
+
};
|
|
566
566
|
|
|
567
|
-
|
|
567
|
+
generateFormContent(updatedContent)(dispatch, getState);
|
|
568
568
|
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
569
|
+
const {
|
|
570
|
+
forms: { formContent: generatedFormContent },
|
|
571
|
+
}: IRootState = getState();
|
|
572
572
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
573
|
+
const { parent: generatedParent, grandParent: generatedGrandParent } = findByEditorID(
|
|
574
|
+
generatedFormContent,
|
|
575
|
+
editorID[0],
|
|
576
|
+
);
|
|
577
|
+
const module = Array.isArray(generatedParent) ? generatedGrandParent : generatedParent;
|
|
578
|
+
const duplicatedEditorID = module[parentKey][duplicatedItemIndex].editorID;
|
|
579
579
|
|
|
580
|
-
|
|
580
|
+
localStorage.setItem("selectedID", `${duplicatedEditorID}`);
|
|
581
581
|
|
|
582
|
-
|
|
583
|
-
|
|
582
|
+
return duplicatedEditorID;
|
|
583
|
+
};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
function moveModule(
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
587
|
+
elementID: number[],
|
|
588
|
+
content: any,
|
|
589
|
+
newIndex: number,
|
|
590
|
+
key: string,
|
|
591
591
|
): (dispatch: Dispatch, getState: () => IRootState) => void {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
592
|
+
return async (dispatch, getState) => {
|
|
593
|
+
const {
|
|
594
|
+
forms: { formContent, selectedContent },
|
|
595
|
+
} = getState();
|
|
596
596
|
|
|
597
|
-
|
|
597
|
+
if (!formContent) return;
|
|
598
598
|
|
|
599
|
-
|
|
600
|
-
|
|
599
|
+
const templateContent = formContent.template;
|
|
600
|
+
const isRoot = selectedContent.component === "FormPage";
|
|
601
601
|
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
const contentElements = isRoot ? [...selectedContent.template[key]] : [...selectedContent[key]];
|
|
603
|
+
const editorID = isRoot ? templateContent.editorID : selectedContent.editorID;
|
|
604
604
|
|
|
605
|
-
|
|
605
|
+
const { element: selectedModule } = findByEditorID(templateContent, editorID);
|
|
606
606
|
|
|
607
|
-
|
|
607
|
+
selectedModule[key] = moveElement(elementID, contentElements, newIndex);
|
|
608
608
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
609
|
+
const updatedContent = {
|
|
610
|
+
...formContent,
|
|
611
|
+
template: {
|
|
612
|
+
...templateContent,
|
|
613
|
+
},
|
|
614
|
+
};
|
|
615
615
|
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
dispatch(setFormContent(updatedContent));
|
|
617
|
+
dispatch(setSelectedFormContent(isRoot ? updatedContent : selectedModule));
|
|
618
|
+
};
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
function copyModule(editorID: number[]): (dispatch: Dispatch, getState: () => IRootState) => boolean | number {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
622
|
+
return (dispatch, getState) => {
|
|
623
|
+
const {
|
|
624
|
+
forms: { formContent },
|
|
625
|
+
} = getState();
|
|
626
|
+
|
|
627
|
+
if (!formContent) return false;
|
|
628
|
+
|
|
629
|
+
const templateContent: any = formContent.template;
|
|
630
|
+
const modulesToCopy: IModule[] = [];
|
|
631
|
+
|
|
632
|
+
editorID.forEach((id) => {
|
|
633
|
+
const { element: originalElement } = findByEditorID(templateContent, id);
|
|
634
|
+
if (originalElement) {
|
|
635
|
+
// biome-ignore lint/correctness/noUnusedVariables: TODO: fix this
|
|
636
|
+
const { editorID, parentEditorID, ...element } = originalElement;
|
|
637
|
+
delete element.fixed;
|
|
638
|
+
modulesToCopy.push(element);
|
|
639
|
+
}
|
|
640
|
+
});
|
|
641
|
+
|
|
642
|
+
if (modulesToCopy.length) {
|
|
643
|
+
const payload = {
|
|
644
|
+
date: new Date(),
|
|
645
|
+
elements: modulesToCopy,
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
dispatch(setCopyModule(payload));
|
|
649
|
+
return payload.elements.length;
|
|
650
|
+
} else {
|
|
651
|
+
return false;
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
function pasteModule(
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
657
|
+
editorID: number,
|
|
658
|
+
key: string,
|
|
659
|
+
modulesToPaste: IModule[],
|
|
660
660
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<{ error?: INotification }> {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
661
|
+
return async (dispatch, getState) => {
|
|
662
|
+
const {
|
|
663
|
+
forms: { formContent },
|
|
664
|
+
} = getState();
|
|
665
665
|
|
|
666
|
-
|
|
666
|
+
if (!formContent) return { error: undefined };
|
|
667
667
|
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
668
|
+
const templateContent = formContent.template;
|
|
669
|
+
const { element: originalElement } = findByEditorID(templateContent, editorID);
|
|
670
|
+
const itemsArr = originalElement[key];
|
|
671
671
|
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
672
|
+
modulesToPaste.forEach((element) => {
|
|
673
|
+
const validatedModuleCopy = deepClone(element);
|
|
674
|
+
itemsArr.push(validatedModuleCopy);
|
|
675
|
+
});
|
|
676
676
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
677
|
+
const updatedPageContent = {
|
|
678
|
+
...formContent,
|
|
679
|
+
};
|
|
680
680
|
|
|
681
|
-
|
|
681
|
+
generateFormContent(updatedPageContent)(dispatch, getState);
|
|
682
682
|
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
return { error: undefined };
|
|
684
|
+
};
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
function addTemplate(template: string): (dispatch: Dispatch) => Promise<void> {
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
688
|
+
return async (dispatch) => {
|
|
689
|
+
try {
|
|
690
|
+
dispatch(setTemplate(template));
|
|
691
|
+
} catch (e) {
|
|
692
|
+
console.log("Error", e);
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
function resetForm(): (dispatch: Dispatch) => void {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
698
|
+
return async (dispatch) => {
|
|
699
|
+
dispatch(setCurrentFormID(null));
|
|
700
|
+
dispatch(setFormContent(null));
|
|
701
|
+
dispatch(setSchema({}));
|
|
702
|
+
};
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
function getFormCategories(type: string): (dispatch: Dispatch, getState: () => IRootState) => Promise<void> {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
706
|
+
return async (dispatch, getState) => {
|
|
707
|
+
try {
|
|
708
|
+
const {
|
|
709
|
+
sites: { currentSiteInfo },
|
|
710
|
+
} = getState();
|
|
711
711
|
|
|
712
|
-
|
|
712
|
+
const siteID = currentSiteInfo ? currentSiteInfo.id : "global";
|
|
713
713
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
714
|
+
const responseActions = {
|
|
715
|
+
handleSuccess: (response: FormCategoriesList) => {
|
|
716
|
+
const { items } = response;
|
|
717
|
+
dispatch(setCurrentFormCategories(items));
|
|
718
|
+
},
|
|
719
|
+
handleError: (response: any) => handleError(response)(dispatch),
|
|
720
|
+
};
|
|
721
721
|
|
|
722
|
-
|
|
722
|
+
const callback = async () => forms.getFormCategories(siteID, type);
|
|
723
723
|
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
724
|
+
await handleRequest(callback, responseActions, [setIsLoading])(dispatch);
|
|
725
|
+
} catch (e) {
|
|
726
|
+
console.log(e);
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
function createFormCategory(
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
content: { title: string; code: string },
|
|
733
|
+
categoryType: string,
|
|
734
734
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
735
|
+
return async (dispatch, getState) => {
|
|
736
|
+
try {
|
|
737
|
+
const {
|
|
738
|
+
sites: { currentSiteInfo },
|
|
739
|
+
} = getState();
|
|
740
|
+
|
|
741
|
+
const relatedSite = currentSiteInfo ? currentSiteInfo.id : null;
|
|
742
|
+
|
|
743
|
+
const callback = async () =>
|
|
744
|
+
await forms.createFormCategory({
|
|
745
|
+
categoryType,
|
|
746
|
+
content,
|
|
747
|
+
relatedSite,
|
|
748
|
+
});
|
|
749
|
+
|
|
750
|
+
const responseActions = {
|
|
751
|
+
handleSuccess: () => {
|
|
752
|
+
getFormCategories(categoryType)(dispatch, getState);
|
|
753
|
+
},
|
|
754
|
+
handleError: (response: any) => handleError(response)(dispatch),
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
return await handleRequest(callback, responseActions, [setIsSaving])(dispatch);
|
|
758
|
+
} catch (e) {
|
|
759
|
+
console.log(e);
|
|
760
|
+
return false;
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
function updateFormCategory(
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
id: number,
|
|
767
|
+
content: { title: string; code: string },
|
|
768
768
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
769
|
+
return async (dispatch, getState) => {
|
|
770
|
+
try {
|
|
771
|
+
const callback = async () => await forms.updateFormCategory(id, { content });
|
|
772
772
|
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
773
|
+
const responseActions = {
|
|
774
|
+
handleSuccess: (result: FormCategory) => {
|
|
775
|
+
getFormCategories(result.categoryType)(dispatch, getState);
|
|
776
|
+
},
|
|
777
|
+
handleError: (response: any) => handleError(response)(dispatch),
|
|
778
|
+
};
|
|
779
779
|
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
780
|
+
return await handleRequest(callback, responseActions, [setIsSaving])(dispatch);
|
|
781
|
+
} catch (e) {
|
|
782
|
+
console.log(e);
|
|
783
|
+
return false;
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
786
|
}
|
|
787
787
|
|
|
788
788
|
function deleteFormCategory(
|
|
789
|
-
|
|
790
|
-
|
|
789
|
+
id: number | number[],
|
|
790
|
+
categoryType: string,
|
|
791
791
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
792
|
+
return async (dispatch, getState) => {
|
|
793
|
+
try {
|
|
794
|
+
const responseActions = {
|
|
795
|
+
handleSuccess: () => {
|
|
796
|
+
getFormCategories(categoryType)(dispatch, getState);
|
|
797
|
+
},
|
|
798
|
+
handleError: (response: any) => {
|
|
799
|
+
const {
|
|
800
|
+
data: { message },
|
|
801
|
+
} = response;
|
|
802
|
+
const isMultiple = Array.isArray(message) && message.length > 1;
|
|
803
|
+
const msg = isMultiple ? `The delete action failed due to ${message.length} errors.` : undefined;
|
|
804
|
+
appActions.handleError(response, isMultiple, msg)(dispatch);
|
|
805
|
+
},
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
const callback = async () =>
|
|
809
|
+
Array.isArray(id) ? forms.deleteFormCategoryBulk(id) : forms.deleteFormCategory(id);
|
|
810
|
+
|
|
811
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
812
|
+
} catch (e) {
|
|
813
|
+
console.log(e);
|
|
814
|
+
return false;
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
function orderFormCategory(
|
|
820
|
-
|
|
820
|
+
data: FormCategoriesOrderParams,
|
|
821
821
|
): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
822
|
+
return async (dispatch, getState) => {
|
|
823
|
+
try {
|
|
824
|
+
dispatch(setIsLoading(true));
|
|
825
825
|
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
826
|
+
const responseActions = {
|
|
827
|
+
handleSuccess: () => getFormCategories(data.categoryType)(dispatch, getState),
|
|
828
|
+
handleError: (response: any) => appActions.handleError(response)(dispatch),
|
|
829
|
+
};
|
|
830
830
|
|
|
831
|
-
|
|
831
|
+
const callback = async () => forms.orderFormCategory(data);
|
|
832
832
|
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
833
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
834
|
+
} catch (e) {
|
|
835
|
+
console.log(e);
|
|
836
|
+
return false;
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
function createNewTranslation(isNewTranslation: boolean): (dispatch: Dispatch) => void {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
842
|
+
return async (dispatch) => {
|
|
843
|
+
try {
|
|
844
|
+
dispatch(setIsNewTranslation(isNewTranslation));
|
|
845
|
+
} catch (e) {
|
|
846
|
+
console.log(e);
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
849
|
}
|
|
850
850
|
|
|
851
851
|
function getFormTranslation(langID: number): (dispatch: Dispatch, getState: () => IRootState) => Promise<boolean> {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
852
|
+
return async (dispatch, getState) => {
|
|
853
|
+
try {
|
|
854
|
+
const {
|
|
855
|
+
forms: { formContent },
|
|
856
|
+
}: IRootState = getState();
|
|
857
|
+
|
|
858
|
+
const responseActions = {
|
|
859
|
+
handleSuccess: (data: FormContent) => {
|
|
860
|
+
data["canBeTranslated"] = false;
|
|
861
|
+
generateFormContent(data)(dispatch, getState);
|
|
862
|
+
dispatch(setIsIATranslated(true));
|
|
863
|
+
},
|
|
864
|
+
handleError: (response: any) => appActions.handleError(response)(dispatch),
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
const callback = async () => formContent && forms.getFormTranslation(formContent, langID);
|
|
868
|
+
|
|
869
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
870
|
+
} catch (e) {
|
|
871
|
+
console.log(e);
|
|
872
|
+
return false;
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
function duplicateForm(formID: number, title: string): (dispatch: Dispatch) => Promise<boolean> {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
878
|
+
return async (dispatch) => {
|
|
879
|
+
try {
|
|
880
|
+
const responseActions = {
|
|
881
|
+
handleSuccess: (data: FormContent) => {
|
|
882
|
+
dispatch(setCurrentFormID(data.id));
|
|
883
|
+
},
|
|
884
|
+
handleError: (response: any) => appActions.handleError(response)(dispatch),
|
|
885
|
+
};
|
|
886
886
|
|
|
887
|
-
|
|
887
|
+
const callback = async () => forms.duplicateForm(formID, title);
|
|
888
888
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
889
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
890
|
+
} catch (e) {
|
|
891
|
+
console.log(e);
|
|
892
|
+
return false;
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
function copyForm(formID: number, siteID: number): (dispatch: Dispatch) => Promise<boolean> {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
898
|
+
return async (dispatch) => {
|
|
899
|
+
try {
|
|
900
|
+
const responseActions = {
|
|
901
|
+
handleSuccess: () => {},
|
|
902
|
+
handleError: (response: any) => appActions.handleError(response)(dispatch),
|
|
903
|
+
};
|
|
904
904
|
|
|
905
|
-
|
|
905
|
+
const callback = async () => forms.copyForm(formID, siteID);
|
|
906
906
|
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
907
|
+
return await handleRequest(callback, responseActions, [])(dispatch);
|
|
908
|
+
} catch (e) {
|
|
909
|
+
console.log(e);
|
|
910
|
+
return false;
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
913
|
}
|
|
914
914
|
|
|
915
915
|
export {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
916
|
+
setSelectedTab,
|
|
917
|
+
setFormContent,
|
|
918
|
+
setCurrentFormID,
|
|
919
|
+
getForms,
|
|
920
|
+
getForm,
|
|
921
|
+
updateFormContent,
|
|
922
|
+
setSelectedContent,
|
|
923
|
+
addModule,
|
|
924
|
+
deleteModule,
|
|
925
|
+
duplicateModule,
|
|
926
|
+
moveModule,
|
|
927
|
+
copyModule,
|
|
928
|
+
pasteModule,
|
|
929
|
+
addTemplate,
|
|
930
|
+
saveForm,
|
|
931
|
+
resetForm,
|
|
932
|
+
deleteForm,
|
|
933
|
+
getFormCategories,
|
|
934
|
+
createFormCategory,
|
|
935
|
+
updateFormCategory,
|
|
936
|
+
deleteFormCategory,
|
|
937
|
+
orderFormCategory,
|
|
938
|
+
updateFormState,
|
|
939
|
+
createNewTranslation,
|
|
940
|
+
getFormTranslation,
|
|
941
|
+
setIsIATranslated,
|
|
942
|
+
duplicateForm,
|
|
943
|
+
copyForm,
|
|
944
944
|
};
|