impaktapps-ui-builder 1.0.0 → 1.0.1-alpha.1
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 +65 -53
- package/dist/impaktapps-ui-builder.d.ts +1 -0
- package/dist/impaktapps-ui-builder.es.js +12624 -0
- package/dist/impaktapps-ui-builder.es.js.map +1 -0
- package/dist/impaktapps-ui-builder.umd.js +28 -0
- package/dist/impaktapps-ui-builder.umd.js.map +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildAadharCard.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +11 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +8 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildButton.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildCheckbox.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +4 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDataGrid.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildDownloadFile.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildEmptyBox.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildFileInput.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildLabel.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildLeaderboard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildLineGraph.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildMultiSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPhoneInput.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPieGraph.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildPop.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBar.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRadio.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRankCard.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRollAndDice.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildSelect.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildSlider.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildStepper.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTabSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildText.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTextArea.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTimer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +12 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildUplaodFile.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/buildWrapperSection.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +171 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +107 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +214 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +140 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +39 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.d.ts +18 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +152 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +46 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +104 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +23 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/phoneInput.d.ts +20 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +21 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rankCard.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +62 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +21 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.d.ts +52 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +32 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +22 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +155 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tabsection.d.ts +12 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/textInputField.d.ts +20 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +18 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +53 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +66 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +47 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +82 -0
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +28 -0
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +104 -0
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +72 -0
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +10 -0
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +9 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +2 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +11 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +13 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +30 -0
- package/package.json +53 -158
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +67 -0
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +10 -0
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +43 -0
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +33 -0
- package/src/impaktapps-ui-builder/builder/build/buildCardSlider.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +28 -0
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +58 -0
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +51 -0
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +11 -0
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +48 -0
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +46 -0
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +47 -0
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +46 -0
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +24 -0
- package/src/impaktapps-ui-builder/builder/build/buildPhoneInput.ts +26 -0
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +28 -0
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +43 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +26 -0
- package/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.ts +27 -0
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +35 -0
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +19 -0
- package/src/impaktapps-ui-builder/builder/build/buildRollAndDice.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.ts +12 -0
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +31 -0
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildSlider.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.ts +54 -0
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +44 -0
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +45 -0
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +19 -0
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +72 -0
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +26 -0
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +56 -0
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/buildTimer.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +61 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +406 -0
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +21 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +21 -0
- package/src/impaktapps-ui-builder/builder/build/schema/arraySchemaBuilder.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +210 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +547 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +22 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +200 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +217 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +30 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +189 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +38 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +63 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/phoneInput.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBarCard.ts +27 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +63 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +13 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.ts +49 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +33 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +21 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableIconButton.ts +17 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +191 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/tabsection.ts +9 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +15 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +14 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +18 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +128 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +75 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +11 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +359 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +623 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +49 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +776 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +95 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +507 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +426 -0
- package/src/impaktapps-ui-builder/builder/services/event.ts +274 -0
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +123 -0
- package/src/impaktapps-ui-builder/builder/services/utils.ts +108 -0
- package/src/impaktapps-ui-builder/lib/index.ts +10 -0
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +32 -0
- package/src/impaktapps-ui-builder/runtime/services/events.ts +295 -0
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +13 -0
- package/src/impaktapps-ui-builder/runtime/services/rankProvider.ts +132 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +359 -0
- package/App.tsx +0 -49
- package/AppHolder.tsx +0 -438
- package/Database.ts +0 -54
- package/Deploy.tsx +0 -16
- package/DeployContent.tsx +0 -48
- package/Dockerfile +0 -56
- package/Login.tsx +0 -184
- package/MasterRouter.tsx +0 -86
- package/PrivateRoutes.tsx +0 -9
- package/Skeleton.tsx +0 -31
- package/TabHolder.tsx +0 -758
- package/app/(tabs)/_layout.tsx +0 -50
- package/app/(tabs)/explore.tsx +0 -111
- package/app/(tabs)/index.tsx +0 -1134
- package/app/(tabs)/index.web.tsx +0 -31
- package/app/(web)/AppHolder.tsx +0 -471
- package/app/(web)/index.tsx +0 -33
- package/app/(web)/indexLogin.tsx +0 -192
- package/app/+not-found.tsx +0 -33
- package/app/_layout.tsx +0 -42
- package/app/_layout.web.tsx +0 -15
- package/app.json +0 -41
- package/assets/Act21Icon.svg +0 -1977
- package/assets/Act21Logo.svg +0 -7869
- package/assets/Desktop.svg +0 -58
- package/assets/ImpaktApps.svg +0 -726
- package/assets/ImpaktIcon.png +0 -0
- package/assets/Mobile.svg +0 -33
- package/assets/Tablet.svg +0 -33
- package/assets/UpDownArrow.svg +0 -5
- package/assets/act21LogoPng.png +0 -0
- package/assets/alpha.svg +0 -1
- package/assets/api.svg +0 -54
- package/assets/border.svg +0 -3
- package/assets/button-rect.svg +0 -3
- package/assets/creditcard.svg +0 -4
- package/assets/cursor.svg +0 -18
- package/assets/dataWorkspace/homepage.svg +0 -3
- package/assets/dataWorkspace/locate.svg +0 -3
- package/assets/dataWorkspace/state.svg +0 -5
- package/assets/dataWorkspace/website.svg +0 -6
- package/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/assets/globaldata.svg +0 -13
- package/assets/images/adaptive-icon.png +0 -0
- package/assets/images/favicon.png +0 -0
- package/assets/images/icon.png +0 -0
- package/assets/images/partial-react-logo.png +0 -0
- package/assets/images/react-logo.png +0 -0
- package/assets/images/react-logo@2x.png +0 -0
- package/assets/images/react-logo@3x.png +0 -0
- package/assets/images/splash-icon.png +0 -0
- package/assets/laptop.svg +0 -3
- package/assets/minusIcon.svg +0 -7
- package/assets/next.svg +0 -14
- package/assets/no-component-selected-icon.svg +0 -5
- package/assets/other.svg +0 -10
- package/assets/page.svg +0 -13
- package/assets/plusIcon.svg +0 -1
- package/assets/public/arrowDown.svg +0 -7
- package/assets/public/arrowup.svg +0 -3
- package/assets/public/cursor.svg +0 -18
- package/assets/public/openWindow.svg +0 -4
- package/assets/public/resize-bar-icon.svg +0 -3
- package/assets/radius-icon.svg +0 -3
- package/assets/react.svg +0 -1
- package/assets/resizeBar.svg +0 -12
- package/assets/rightPagePanel/all.svg +0 -3
- package/assets/rightPagePanel/frame-fixed.svg +0 -3
- package/assets/rightPagePanel/frame-responsive.svg +0 -3
- package/assets/rightPagePanel/gridList/columnAuto.svg +0 -3
- package/assets/rightPagePanel/gridList/columnFixed.svg +0 -5
- package/assets/rightPagePanel/gridList/gap-x.svg +0 -3
- package/assets/rightPagePanel/gridList/gap-y.svg +0 -3
- package/assets/rightPagePanel/layout/default.svg +0 -21
- package/assets/rightPagePanel/layout/preset-a.svg +0 -22
- package/assets/rightPagePanel/layout/preset-b.svg +0 -23
- package/assets/rightPagePanel/layout/preset-c.svg +0 -24
- package/assets/rightPagePanel/layout/preset-d.svg +0 -25
- package/assets/rightPagePanel/layout/preset-e.svg +0 -24
- package/assets/rightPagePanel/partial.svg +0 -3
- package/assets/transformer.svg +0 -12
- package/assets/widgetCover/button.svg +0 -4
- package/assets/widgetCover/card.svg +0 -34
- package/assets/widgetCover/checkBox.svg +0 -5
- package/assets/widgetCover/container.svg +0 -6
- package/assets/widgetCover/date.svg +0 -5
- package/assets/widgetCover/emptyBox.svg +0 -3
- package/assets/widgetCover/fileInput.svg +0 -3
- package/assets/widgetCover/form.svg +0 -9
- package/assets/widgetCover/gridcontainer.svg +0 -14
- package/assets/widgetCover/icon.svg +0 -28
- package/assets/widgetCover/image.svg +0 -5
- package/assets/widgetCover/label.svg +0 -3
- package/assets/widgetCover/multiselect.svg +0 -7
- package/assets/widgetCover/otp.svg +0 -19
- package/assets/widgetCover/radioGroup.svg +0 -9
- package/assets/widgetCover/select.svg +0 -4
- package/assets/widgetCover/slider.svg +0 -5
- package/assets/widgetCover/table.svg +0 -6
- package/assets/widgetCover/tabs.svg +0 -5
- package/assets/widgetCover/text.svg +0 -7
- package/assets/widgetCover/textInput.svg +0 -5
- package/assets/widgetCover/upload.svg +0 -11
- package/assets/window-bottom.svg +0 -17
- package/assets/window-left.svg +0 -17
- package/assets/window-minimize.svg +0 -16
- package/assets/window-right.svg +0 -17
- package/babel.config.js +0 -36
- package/components/CodeEditor/CodeMirror/assets/array.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/boolean.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/component.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/function.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/keyword.svg +0 -12
- package/components/CodeEditor/CodeMirror/assets/null.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/number.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/object.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/string.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/table.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/type.svg +0 -4
- package/components/CodeEditor/CodeMirror/assets/undefine.svg +0 -4
- package/components/CodeEditor/CodeMirror/core.tsx +0 -253
- package/components/CodeEditor/CodeMirror/extensions/completionSources/ILLAContextDesc/index.tsx +0 -5
- package/components/CodeEditor/CodeMirror/extensions/completionSources/ILLAContextDesc/utils.tsx +0 -51
- package/components/CodeEditor/CodeMirror/extensions/completionSources/IMPAKTAPPSContext.ts +0 -214
- package/components/CodeEditor/CodeMirror/extensions/completionSources/IMPAKTAPPSContextDesc/index.tsx +0 -5
- package/components/CodeEditor/CodeMirror/extensions/completionSources/IMPAKTAPPSContextDesc/utils.tsx +0 -51
- package/components/CodeEditor/CodeMirror/extensions/completionSources/TernServer/defs/ecmascript.json +0 -1910
- package/components/CodeEditor/CodeMirror/extensions/completionSources/TernServer/index.tsx +0 -184
- package/components/CodeEditor/CodeMirror/extensions/completionSources/illaContext.ts +0 -214
- package/components/CodeEditor/CodeMirror/extensions/heighLightJSExpression.ts +0 -67
- package/components/CodeEditor/CodeMirror/extensions/index.ts +0 -294
- package/components/CodeEditor/CodeMirror/extensions/interface.ts +0 -36
- package/components/CodeEditor/CodeMirror/extensions/utils.ts +0 -40
- package/components/CodeEditor/CodeMirror/interface.ts +0 -26
- package/components/CodeEditor/CodeMirror/style.ts +0 -47
- package/components/CodeEditor/CodeMirror/theme.ts +0 -249
- package/components/CodeEditor/HintToolTip/index.tsx +0 -92
- package/components/CodeEditor/HintToolTip/interface.ts +0 -16
- package/components/CodeEditor/HintToolTip/style.ts +0 -49
- package/components/CodeEditor/ModalCodeMirror/content.tsx +0 -61
- package/components/CodeEditor/ModalCodeMirror/footer.tsx +0 -13
- package/components/CodeEditor/ModalCodeMirror/index.tsx +0 -56
- package/components/CodeEditor/ModalCodeMirror/interface.ts +0 -26
- package/components/CodeEditor/ModalCodeMirror/style.ts +0 -32
- package/components/CodeEditor/index.tsx +0 -289
- package/components/CodeEditor/interface.ts +0 -21
- package/components/CodeEditor/style.ts +0 -30
- package/components/CodeEditor/utils.ts +0 -5
- package/components/Collapsible.tsx +0 -45
- package/components/ColorPicker/constants.ts +0 -31
- package/components/ColorPicker/index.tsx +0 -30
- package/components/ColorPicker/interface.ts +0 -5
- package/components/ColorSetter/index.tsx +0 -76
- package/components/ColorSetter/interface.tsx +0 -5
- package/components/ColorSetter/style.ts +0 -78
- package/components/EditableText/index.tsx +0 -95
- package/components/EditableText/interface.ts +0 -8
- package/components/EditableText/style.ts +0 -58
- package/components/ExternalLink.tsx +0 -24
- package/components/HapticTab.tsx +0 -18
- package/components/HelloWave.tsx +0 -40
- package/components/Modal/Body/index.tsx +0 -16
- package/components/Modal/Body/interface.ts +0 -6
- package/components/Modal/Body/style.ts +0 -9
- package/components/Modal/Footer/index.tsx +0 -30
- package/components/Modal/Footer/interface.ts +0 -7
- package/components/Modal/Footer/style.ts +0 -18
- package/components/Modal/Header/index.tsx +0 -32
- package/components/Modal/Header/interface.ts +0 -6
- package/components/Modal/Header/style.ts +0 -39
- package/components/Modal/index.tsx +0 -39
- package/components/Modal/interface.ts +0 -25
- package/components/Modal/movableModal.tsx +0 -54
- package/components/Modal/style.ts +0 -13
- package/components/Modal/utils/stopDragAndDrop.ts +0 -5
- package/components/PanelBar/index.tsx +0 -104
- package/components/PanelBar/interface.ts +0 -12
- package/components/PanelBar/style.ts +0 -156
- package/components/ParallaxScrollView.tsx +0 -82
- package/components/RecordEditor/index.tsx +0 -212
- package/components/RecordEditor/interface.ts +0 -33
- package/components/RecordEditor/style.ts +0 -99
- package/components/Tabs/constant.tsx +0 -42
- package/components/Tabs/index.tsx +0 -55
- package/components/Tabs/interface.ts +0 -15
- package/components/Tabs/style.ts +0 -26
- package/components/ThemedText.tsx +0 -60
- package/components/ThemedView.tsx +0 -14
- package/components/__tests__/ThemedText-test.tsx +0 -10
- package/components/__tests__/__snapshots__/ThemedText-test.tsx.snap +0 -24
- package/components/ui/IconSymbol.ios.tsx +0 -32
- package/components/ui/IconSymbol.tsx +0 -43
- package/components/ui/TabBarBackground.ios.tsx +0 -22
- package/components/ui/TabBarBackground.tsx +0 -6
- package/constants/Colors.ts +0 -26
- package/core/Builder.tsx +0 -21
- package/data.ts +0 -352
- package/db.json +0 -251131
- package/declarations.d.ts +0 -8
- package/eslint.config.mjs +0 -13
- package/hooks/fixComponentsUtils/container.ts +0 -20
- package/hooks/fixComponentsUtils/likeInput.ts +0 -15
- package/hooks/fixedAction.ts +0 -196
- package/hooks/fixedComponents.ts +0 -32
- package/hooks/useColorScheme.ts +0 -1
- package/hooks/useColorScheme.web.ts +0 -21
- package/hooks/useDestroyExecutationTree.ts +0 -32
- package/hooks/useInitApp.tsx +0 -238
- package/hooks/useThemeColor.ts +0 -21
- package/i18n/config.ts +0 -57
- package/i18n/i18next.d.ts +0 -8
- package/i18n/locale/en-US.json +0 -3805
- package/i18n/locale/es-ES.json +0 -3805
- package/i18n/react-i18next.d.ts +0 -9
- package/lib/index.ts +0 -12
- package/main.css +0 -14
- package/main.tsx +0 -11
- package/metro.config.js +0 -20
- package/middleware/reduxAsync/index.ts +0 -68
- package/middleware/undoRedo/index.ts +0 -16
- package/middleware/undoRedo/interface.ts +0 -5
- package/middleware/undoRedo/method/action.tsx +0 -97
- package/middleware/undoRedo/method/components.tsx +0 -412
- package/middleware/undoRedo/method/index.tsx +0 -27
- package/page/App/components/Actions/ActionGuidePanel/components/ActionSection/index.tsx +0 -180
- package/page/App/components/Actions/ActionGuidePanel/components/ActionSection/interface.ts +0 -10
- package/page/App/components/Actions/ActionGuidePanel/components/ActionSection/style.ts +0 -55
- package/page/App/components/Actions/ActionGuidePanel/constans.ts +0 -30
- package/page/App/components/Actions/ActionGuidePanel/index.tsx +0 -51
- package/page/App/components/Actions/ActionGuidePanel/style.ts +0 -29
- package/page/App/components/Actions/ActionList/index.tsx +0 -24
- package/page/App/components/Actions/ActionList/interface.ts +0 -3
- package/page/App/components/Actions/ActionList/listWithNewButton.tsx +0 -352
- package/page/App/components/Actions/ActionList/style.ts +0 -67
- package/page/App/components/Actions/ActionListItem/index.tsx +0 -271
- package/page/App/components/Actions/ActionListItem/interface.ts +0 -11
- package/page/App/components/Actions/ActionListItem/style.ts +0 -92
- package/page/App/components/Actions/ActionPanel/ActionEventHandler/index.tsx +0 -113
- package/page/App/components/Actions/ActionPanel/ActionEventHandler/style.ts +0 -20
- package/page/App/components/Actions/ActionPanel/ActionMockPanel/index.tsx +0 -72
- package/page/App/components/Actions/ActionPanel/ActionMockPanel/interface.ts +0 -4
- package/page/App/components/Actions/ActionPanel/ActionMockPanel/style.ts +0 -22
- package/page/App/components/Actions/ActionPanel/ActionResult/index.tsx +0 -135
- package/page/App/components/Actions/ActionPanel/ActionResult/interface.ts +0 -4
- package/page/App/components/Actions/ActionPanel/ActionResult/restApiHeader.tsx +0 -116
- package/page/App/components/Actions/ActionPanel/ActionResult/style.ts +0 -136
- package/page/App/components/Actions/ActionPanel/ActionResult/utils.ts +0 -25
- package/page/App/components/Actions/ActionPanel/ActionTitleBar/index.tsx +0 -177
- package/page/App/components/Actions/ActionPanel/ActionTitleBar/interface.ts +0 -7
- package/page/App/components/Actions/ActionPanel/ActionTitleBar/style.ts +0 -92
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Control/index.tsx +0 -25
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Control/interface.ts +0 -8
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Control/style.ts +0 -43
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Header/index.tsx +0 -11
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Header/interface.ts +0 -3
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Header/style.ts +0 -13
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Space/index.tsx +0 -6
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Space/style.ts +0 -6
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Model/AdvancedOption/index.tsx +0 -74
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Model/Timing/index.tsx +0 -145
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/index.tsx +0 -19
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/style.ts +0 -6
- package/page/App/components/Actions/ActionPanel/GlobalDataPanel/index.tsx +0 -70
- package/page/App/components/Actions/ActionPanel/GlobalDataPanel/style.ts +0 -34
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/BodyEditor/index.tsx +0 -72
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/BodyEditor/interface.ts +0 -8
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/BodyEditor/style.ts +0 -59
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/index.tsx +0 -165
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/style.ts +0 -51
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/constants.ts +0 -2
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/index.tsx +0 -60
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/interface.ts +0 -8
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/style.ts +0 -25
- package/page/App/components/Actions/ActionPanel/Layout/HorizontalWithLabel/index.tsx +0 -18
- package/page/App/components/Actions/ActionPanel/Layout/HorizontalWithLabel/interface.ts +0 -6
- package/page/App/components/Actions/ActionPanel/Layout/HorizontalWithLabel/style.ts +0 -9
- package/page/App/components/Actions/ActionPanel/Layout/Label/index.tsx +0 -12
- package/page/App/components/Actions/ActionPanel/Layout/Label/interface.ts +0 -3
- package/page/App/components/Actions/ActionPanel/Layout/Label/style.ts +0 -10
- package/page/App/components/Actions/ActionPanel/Layout/Space/index.tsx +0 -10
- package/page/App/components/Actions/ActionPanel/Layout/Space/style.ts +0 -6
- package/page/App/components/Actions/ActionPanel/PanelHeader/ResourceChoose/index.tsx +0 -126
- package/page/App/components/Actions/ActionPanel/PanelHeader/ResourceChoose/style.ts +0 -29
- package/page/App/components/Actions/ActionPanel/PanelHeader/TriggerModeChoose/index.tsx +0 -62
- package/page/App/components/Actions/ActionPanel/PanelHeader/index.tsx +0 -116
- package/page/App/components/Actions/ActionPanel/PanelHeader/style.ts +0 -37
- package/page/App/components/Actions/ActionPanel/RestApiPanel/BodyEditor/index.tsx +0 -357
- package/page/App/components/Actions/ActionPanel/RestApiPanel/BodyEditor/interface.ts +0 -7
- package/page/App/components/Actions/ActionPanel/RestApiPanel/BodyEditor/style.ts +0 -54
- package/page/App/components/Actions/ActionPanel/RestApiPanel/index.tsx +0 -358
- package/page/App/components/Actions/ActionPanel/RestApiPanel/style.ts +0 -50
- package/page/App/components/Actions/ActionPanel/TransformerPanel/index.tsx +0 -61
- package/page/App/components/Actions/ActionPanel/TransformerPanel/style.ts +0 -15
- package/page/App/components/Actions/ActionPanel/index.tsx +0 -116
- package/page/App/components/Actions/ActionPanel/style.ts +0 -58
- package/page/App/components/Actions/ActionPanel/utils/calculateFileSize.ts +0 -37
- package/page/App/components/Actions/ActionPanel/utils/safeModeTip.ts +0 -18
- package/page/App/components/Actions/Context/SqlModeTipContext/index.tsx +0 -31
- package/page/App/components/Actions/DragBar/index.tsx +0 -87
- package/page/App/components/Actions/DragBar/interface.ts +0 -10
- package/page/App/components/Actions/DragBar/style.ts +0 -17
- package/page/App/components/Actions/List/index.ts +0 -4
- package/page/App/components/Actions/List/interface.ts +0 -46
- package/page/App/components/Actions/List/list-item-meta.tsx +0 -59
- package/page/App/components/Actions/List/list-item.tsx +0 -34
- package/page/App/components/Actions/List/list.tsx +0 -144
- package/page/App/components/Actions/List/style.ts +0 -119
- package/page/App/components/Actions/SearchHeader/index.tsx +0 -84
- package/page/App/components/Actions/SearchHeader/interface.tsx +0 -4
- package/page/App/components/Actions/SearchHeader/style.tsx +0 -59
- package/page/App/components/Actions/api.ts +0 -65
- package/page/App/components/Actions/axiosConfigBuilder.ts +0 -44
- package/page/App/components/Actions/empty/src/empty.tsx +0 -60
- package/page/App/components/Actions/empty/src/index.ts +0 -2
- package/page/App/components/Actions/empty/src/interface.ts +0 -10
- package/page/App/components/Actions/empty/src/style.ts +0 -22
- package/page/App/components/Actions/hook.ts +0 -61
- package/page/App/components/ConfigPanel/index.tsx +0 -29
- package/page/App/components/ConfigPanel/style.ts +0 -8
- package/page/App/components/InspectPanel/PanelSetters/BorderSetter/index.tsx +0 -82
- package/page/App/components/InspectPanel/PanelSetters/BorderSetter/interface.ts +0 -1
- package/page/App/components/InspectPanel/PanelSetters/BorderSetter/style.ts +0 -14
- package/page/App/components/InspectPanel/PanelSetters/ColorPickerSetter/index.tsx +0 -40
- package/page/App/components/InspectPanel/PanelSetters/ColorPickerSetter/interface.ts +0 -9
- package/page/App/components/InspectPanel/PanelSetters/ColorPickerSetter/style.ts +0 -10
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/context/viewsListContext.tsx +0 -270
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/dragIconAndLabel.tsx +0 -86
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/header.tsx +0 -28
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/index.tsx +0 -238
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/interface.ts +0 -28
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/listBody.tsx +0 -135
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/listItem.tsx +0 -113
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/style.ts +0 -97
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/utils/generateNewOptions.ts +0 -34
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/defaultViewKeySetter.tsx +0 -71
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/interface.ts +0 -4
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Column/index.tsx +0 -128
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Column/interface.ts +0 -19
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Column/style.ts +0 -51
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/ColumnContainer/index.tsx +0 -120
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/ColumnContainer/interface.ts +0 -22
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/ColumnContainer/style.ts +0 -36
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Empty/index.tsx +0 -14
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Empty/style.ts +0 -11
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/actionMenu.tsx +0 -45
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/body.tsx +0 -17
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/empty.tsx +0 -17
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/eventAndMethodLabel.tsx +0 -109
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/interface.ts +0 -22
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/item.tsx +0 -20
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/more.tsx +0 -33
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/style.ts +0 -118
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/context/index.tsx +0 -69
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/index.tsx +0 -67
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/interface.ts +0 -14
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/style.ts +0 -8
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/utils/index.ts +0 -13
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInput/index.tsx +0 -135
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInput/interface.ts +0 -19
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInput/style.ts +0 -33
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInputHierarchy/index.tsx +0 -134
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInputHierarchy/interface.ts +0 -19
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInputHierarchy/style.ts +0 -33
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseUpload/index.tsx +0 -107
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ColumnFraction/index.tsx +0 -117
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ColumnFraction/interface.ts +0 -5
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ColumnFraction/style.ts +0 -103
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/MeasureCheckInput/index.tsx +0 -62
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/MeasureCheckInput/interface.ts +0 -11
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/MeasureCheckInput/style.ts +0 -9
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/OptionMappedInput/optionMappedInputSetter.tsx +0 -38
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ScriptInput/index.tsx +0 -121
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ScriptInput/style.ts +0 -16
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/interface.ts +0 -9
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/style.ts +0 -8
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/util.ts +0 -32
- package/page/App/components/InspectPanel/PanelSetters/MappedOptionSetter/index.tsx +0 -33
- package/page/App/components/InspectPanel/PanelSetters/MappedOptionSetter/interface.ts +0 -7
- package/page/App/components/InspectPanel/PanelSetters/MappedOptionSetter/style.ts +0 -29
- package/page/App/components/InspectPanel/PanelSetters/OptionListSetter/index.tsx +0 -91
- package/page/App/components/InspectPanel/PanelSetters/OptionListSetter/interface.ts +0 -16
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/DynamicIcon/index.tsx +0 -26
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/DynamicIcon/interface.ts +0 -5
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/DynamicIcon/style.ts +0 -25
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Label/addActionLabel.tsx +0 -34
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Label/interface.ts +0 -6
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Label/style.ts +0 -7
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/baseBody.tsx +0 -11
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/body.tsx +0 -33
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/header.tsx +0 -33
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/index.tsx +0 -51
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/interface.ts +0 -29
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/style.ts +0 -54
- package/page/App/components/InspectPanel/PanelSetters/RadioGroupSetter/baseRadioGroup.tsx +0 -62
- package/page/App/components/InspectPanel/PanelSetters/RadioGroupSetter/interface.ts +0 -5
- package/page/App/components/InspectPanel/PanelSetters/RadioGroupSetter/style.ts +0 -36
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/baseDynamicSelect.tsx +0 -104
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/baseMultiSelect .tsx +0 -236
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/baseSelect.tsx +0 -95
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/dataSourceSelectSetter.tsx +0 -121
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventActionTypeSelect.tsx +0 -60
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventBodyViewSelect.tsx +0 -72
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventTargetActionSelect.tsx +0 -37
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventTargetStateSelect.tsx +0 -40
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx +0 -92
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventWidgetMethodSelect.tsx +0 -61
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/interface.ts +0 -38
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/pageSelect.tsx +0 -40
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/searchSelect.tsx +0 -14
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/style.ts +0 -47
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/styles.css +0 -13
- package/page/App/components/InspectPanel/PanelSetters/StyleContainerSetter/index.tsx +0 -27
- package/page/App/components/InspectPanel/PanelSetters/StyleContainerSetter/interface.ts +0 -7
- package/page/App/components/InspectPanel/PanelSetters/StyleContainerSetter/style.ts +0 -21
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/baseSwitch.tsx +0 -38
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/dynamicSwitch.tsx +0 -88
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/interface.tsx +0 -15
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/style.ts +0 -81
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/body.tsx +0 -68
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/columnItem.tsx +0 -20
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/context/columnListContext.tsx +0 -91
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/dragIconAndLabel.tsx +0 -85
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/empty.tsx +0 -8
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/header.tsx +0 -15
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/index.tsx +0 -74
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/interface.ts +0 -40
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/style.ts +0 -125
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/utils/generateNewColumns.ts +0 -26
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/body.tsx +0 -71
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/columnItem.tsx +0 -20
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/context/columnListContext.tsx +0 -91
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/dragIconAndLabel.tsx +0 -96
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/empty.tsx +0 -8
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/header.tsx +0 -15
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/index.tsx +0 -68
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/interface.ts +0 -36
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/style.ts +0 -125
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/utils/generateNewColumns.ts +0 -19
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/columnTypeSelectSetter.tsx +0 -63
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/columsSelectSetter.tsx +0 -77
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/interface.ts +0 -24
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/tableDataSourceSelectSetter.tsx +0 -188
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/tableMappedValueInputSetter.tsx +0 -111
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/DefaultTabKeySetter/index.tsx +0 -42
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/DefaultTabKeySetter/interface.ts +0 -7
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabListSetter/index.tsx +0 -88
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabListSetter/interface.ts +0 -19
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabsContainerSelectSetter/index.tsx +0 -175
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabsContainerSelectSetter/style.ts +0 -11
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/assets/image.tsx +0 -14
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/baseUploadFile.tsx +0 -94
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/interface.ts +0 -4
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/style.ts +0 -28
- package/page/App/components/InspectPanel/PanelSetters/index.tsx +0 -402
- package/page/App/components/InspectPanel/PanelSetters/interface.ts +0 -36
- package/page/App/components/InspectPanel/PanelSetters/style.ts +0 -10
- package/page/App/components/InspectPanel/components/EmptySelected/index.tsx +0 -34
- package/page/App/components/InspectPanel/components/EmptySelected/style.ts +0 -32
- package/page/App/components/InspectPanel/components/FieldAndLabel/index.tsx +0 -19
- package/page/App/components/InspectPanel/components/FieldAndLabel/interface.ts +0 -10
- package/page/App/components/InspectPanel/components/FieldFactory/index.tsx +0 -56
- package/page/App/components/InspectPanel/components/FieldFactory/interface.ts +0 -8
- package/page/App/components/InspectPanel/components/Header/index.tsx +0 -46
- package/page/App/components/InspectPanel/components/Header/style.ts +0 -17
- package/page/App/components/InspectPanel/components/Label/index.tsx +0 -22
- package/page/App/components/InspectPanel/components/Label/interface.ts +0 -5
- package/page/App/components/InspectPanel/components/Label/style.ts +0 -43
- package/page/App/components/InspectPanel/components/MultiSelectedPanel/multiSelectedPanel.tsx +0 -57
- package/page/App/components/InspectPanel/components/MultiSelectedPanel/style.ts +0 -39
- package/page/App/components/InspectPanel/components/PanelSetter/index.tsx +0 -21
- package/page/App/components/InspectPanel/components/PanelSetter/interface.ts +0 -7
- package/page/App/components/InspectPanel/components/Panelbar/index.tsx +0 -28
- package/page/App/components/InspectPanel/components/Panelbar/interface.ts +0 -8
- package/page/App/components/InspectPanel/components/Panelbar/style.ts +0 -5
- package/page/App/components/InspectPanel/components/SingleSelectedPanel/singleSelectedPanel.tsx +0 -126
- package/page/App/components/InspectPanel/components/SingleSelectedPanel/style.ts +0 -14
- package/page/App/components/InspectPanel/context/selectedContext.tsx +0 -75
- package/page/App/components/InspectPanel/index.tsx +0 -25
- package/page/App/components/InspectPanel/interface.ts +0 -55
- package/page/App/components/InspectPanel/setter.tsx +0 -103
- package/page/App/components/InspectPanel/style.ts +0 -27
- package/page/App/components/InspectPanel/utils/fieldFactory.tsx +0 -18
- package/page/App/components/InspectPanel/utils/panelBuilder.ts +0 -31
- package/page/App/components/PagePanel/Components/Label/index.tsx +0 -21
- package/page/App/components/PagePanel/Components/Label/interface.ts +0 -5
- package/page/App/components/PagePanel/Components/Label/style.ts +0 -35
- package/page/App/components/PagePanel/Components/LayoutSelect/index.tsx +0 -141
- package/page/App/components/PagePanel/Components/LayoutSelect/interface.ts +0 -20
- package/page/App/components/PagePanel/Components/LayoutSelect/style.ts +0 -60
- package/page/App/components/PagePanel/Components/PanelActionBar/index.tsx +0 -33
- package/page/App/components/PagePanel/Components/PanelActionBar/interface.ts +0 -6
- package/page/App/components/PagePanel/Components/PanelActionBar/style.ts +0 -8
- package/page/App/components/PagePanel/Components/ViewsList/body.tsx +0 -86
- package/page/App/components/PagePanel/Components/ViewsList/emptyState.tsx +0 -10
- package/page/App/components/PagePanel/Components/ViewsList/header.tsx +0 -93
- package/page/App/components/PagePanel/Components/ViewsList/index.tsx +0 -62
- package/page/App/components/PagePanel/Components/ViewsList/interface.ts +0 -50
- package/page/App/components/PagePanel/Components/ViewsList/item.tsx +0 -136
- package/page/App/components/PagePanel/Components/ViewsList/labelName.tsx +0 -26
- package/page/App/components/PagePanel/Components/ViewsList/modal.tsx +0 -41
- package/page/App/components/PagePanel/Components/ViewsList/style.tsx +0 -119
- package/page/App/components/PagePanel/Components/ViewsList/utils.ts +0 -53
- package/page/App/components/PagePanel/Layout/divider/index.tsx +0 -15
- package/page/App/components/PagePanel/Layout/divider/interface.ts +0 -3
- package/page/App/components/PagePanel/Layout/divider/style.ts +0 -8
- package/page/App/components/PagePanel/Layout/leftAndRight/index.tsx +0 -8
- package/page/App/components/PagePanel/Layout/leftAndRight/interface.ts +0 -5
- package/page/App/components/PagePanel/Layout/leftAndRight/style.ts +0 -10
- package/page/App/components/PagePanel/Layout/setterPadding/index.tsx +0 -8
- package/page/App/components/PagePanel/Layout/setterPadding/interface.ts +0 -5
- package/page/App/components/PagePanel/Layout/setterPadding/style.ts +0 -5
- package/page/App/components/PagePanel/Layout/verticalLayout/index.tsx +0 -8
- package/page/App/components/PagePanel/Layout/verticalLayout/interface.ts +0 -5
- package/page/App/components/PagePanel/Layout/verticalLayout/style.ts +0 -10
- package/page/App/components/PagePanel/Modules/Basic/index.tsx +0 -298
- package/page/App/components/PagePanel/Modules/Basic/style.ts +0 -5
- package/page/App/components/PagePanel/Modules/Frame/index.tsx +0 -778
- package/page/App/components/PagePanel/Modules/Frame/style.ts +0 -10
- package/page/App/components/PagePanel/Modules/Style/Components/AddSection/index.tsx +0 -104
- package/page/App/components/PagePanel/Modules/Style/Components/AddSection/interface.ts +0 -5
- package/page/App/components/PagePanel/Modules/Style/Components/BackgroundSetter/index.tsx +0 -162
- package/page/App/components/PagePanel/Modules/Style/Components/DeleteActionContainer/index.tsx +0 -25
- package/page/App/components/PagePanel/Modules/Style/Components/DeleteActionContainer/interface.ts +0 -7
- package/page/App/components/PagePanel/Modules/Style/Components/DeleteActionContainer/style.ts +0 -22
- package/page/App/components/PagePanel/Modules/Style/Components/DirectionPaddingSetter/index.tsx +0 -189
- package/page/App/components/PagePanel/Modules/Style/Components/DirectionPaddingSetter/interface.ts +0 -5
- package/page/App/components/PagePanel/Modules/Style/Components/DirectionPaddingSetter/style.ts +0 -13
- package/page/App/components/PagePanel/Modules/Style/Components/DividerSetter/index.tsx +0 -207
- package/page/App/components/PagePanel/Modules/Style/Components/PaddingSetter/index.tsx +0 -600
- package/page/App/components/PagePanel/Modules/Style/Components/PaddingSetter/style.ts +0 -9
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/constants.ts +0 -27
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/index.tsx +0 -61
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/interface.ts +0 -6
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/style.ts +0 -30
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSetter/index.tsx +0 -155
- package/page/App/components/PagePanel/Modules/Style/index.tsx +0 -26
- package/page/App/components/PagePanel/Modules/Style/style.ts +0 -33
- package/page/App/components/PagePanel/index.tsx +0 -25
- package/page/App/components/PagePanel/style.ts +0 -35
- package/page/App/components/PublicTypes/ResourceGenerator/assets/emojiSmile.svg +0 -3
- package/page/App/components/PublicTypes/ResourceGenerator/assets/googlesheets/disabled-google.svg +0 -3
- package/page/App/components/PublicTypes/ResourceGenerator/assets/googlesheets/google-logo.svg +0 -14
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/ActionResourceSelector/index.tsx +0 -166
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/ActionResourceSelector/interface.ts +0 -21
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/ActionResourceSelector/style.ts +0 -52
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/Header/index.tsx +0 -20
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/Header/interface.ts +0 -4
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/Header/style.ts +0 -25
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/index.tsx +0 -130
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/interface.ts +0 -26
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/style.ts +0 -7
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/temp.ts +0 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ColumnWhiteList/index.tsx +0 -34
- package/page/App/components/PublicTypes/ResourceGenerator/components/ColumnWhiteList/style.ts +0 -40
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/CreateButton/index.tsx +0 -26
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/CreateButton/interface.ts +0 -3
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/GoogleCreateButton/index.tsx +0 -26
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/GoogleCreateButton/style.ts +0 -51
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/BasicAuthPanel/index.tsx +0 -45
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/BearerAuthPanel/index.tsx +0 -31
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/DigestAuthPanel/index.tsx +0 -51
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/index.tsx +0 -316
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/interface.ts +0 -7
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/index.tsx +0 -21
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/interface.ts +0 -10
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/provider/index.tsx +0 -35
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/provider/interface.ts +0 -9
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/provider/style.ts +0 -10
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/style.ts +0 -98
- package/page/App/components/PublicTypes/ResourceGenerator/components/ControlledElement/index.tsx +0 -319
- package/page/App/components/PublicTypes/ResourceGenerator/components/ControlledElement/interface.ts +0 -39
- package/page/App/components/PublicTypes/ResourceGenerator/components/ControlledElement/style.ts +0 -74
- package/page/App/components/PublicTypes/ResourceGenerator/components/InputRecordEditor/index.tsx +0 -98
- package/page/App/components/PublicTypes/ResourceGenerator/components/InputRecordEditor/interface.ts +0 -13
- package/page/App/components/PublicTypes/ResourceGenerator/components/InputRecordEditor/style.ts +0 -44
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/index.tsx +0 -39
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/interface.ts +0 -7
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/style.ts +0 -44
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/suggestCard.tsx +0 -28
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/utils.tsx +0 -36
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreatePanel/index.tsx +0 -33
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreatePanel/interface.ts +0 -7
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreatePanel/style.ts +0 -24
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreator/index.tsx +0 -27
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreator/interface.ts +0 -9
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreator/style.ts +0 -10
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceDivider/index.tsx +0 -40
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceDivider/interface.ts +0 -8
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceDivider/style.ts +0 -13
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceHeader/index.tsx +0 -53
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceHeader/interface.ts +0 -7
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceHeader/style.ts +0 -45
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceTypeSelector/index.tsx +0 -65
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceTypeSelector/interface.ts +0 -7
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceTypeSelector/style.ts +0 -28
- package/page/App/components/PublicTypes/ResourceGenerator/components/RowWhiteList/index.tsx +0 -41
- package/page/App/components/PublicTypes/ResourceGenerator/components/RowWhiteList/style.ts +0 -81
- package/page/App/components/PublicTypes/ResourceGenerator/components/TipPanel/index.tsx +0 -14
- package/page/App/components/PublicTypes/ResourceGenerator/components/TipPanel/interface.ts +0 -3
- package/page/App/components/PublicTypes/ResourceGenerator/components/TipPanel/style.ts +0 -13
- package/page/App/components/PublicTypes/ResourceGenerator/config.ts +0 -51
- package/page/App/components/PublicTypes/ResourceGenerator/formUtils.ts +0 -117
- package/page/App/components/PublicTypes/ResourceGenerator/index.tsx +0 -95
- package/page/App/components/PublicTypes/ResourceGenerator/interface.ts +0 -15
- package/page/App/components/PublicTypes/ResourceGenerator/provider/index.tsx +0 -64
- package/page/App/components/PublicTypes/ResourceGenerator/service/index.ts +0 -58
- package/page/App/components/PublicTypes/ResourceGenerator/service/oAuth.ts +0 -42
- package/page/App/components/PublicTypes/ResourceGenerator/service/resource.ts +0 -26
- package/page/App/components/PublicTypes/ResourceGenerator/utils.ts +0 -87
- package/page/App/components/PublicTypes/action/globalData.ts +0 -3
- package/page/App/components/PublicTypes/action/restApi.ts +0 -44
- package/page/App/components/PublicTypes/action/transformerAction.ts +0 -3
- package/page/App/components/PublicTypes/resource/index.ts +0 -62
- package/page/App/components/PublicTypes/resource/restapi.ts +0 -43
- package/page/App/components/ScreenPanel/Screen/index.tsx +0 -167
- package/page/App/components/ScreenPanel/index.tsx +0 -31
- package/page/App/components/Style/SearchList/index.tsx +0 -22
- package/page/App/components/Style/SearchList/interface.ts +0 -3
- package/page/App/components/Style/SearchList/serachListWIthNewButton.tsx +0 -156
- package/page/App/components/Style/SearchList/style.ts +0 -67
- package/page/App/components/Style/SearchListItem/index.tsx +0 -165
- package/page/App/components/Style/SearchListItem/interface.ts +0 -9
- package/page/App/components/Style/SearchListItem/style.ts +0 -89
- package/page/App/components/Style/StylePanel/index.tsx +0 -149
- package/page/App/components/Style/StylePanel/style.ts +0 -34
- package/page/App/components/Style/ThemePanel/Theme/index.tsx +0 -311
- package/page/App/components/Style/ThemePanel/index.tsx +0 -34
- package/page/App/components/componentPanel/ComponentItem.tsx +0 -133
- package/page/App/components/componentPanel/ComponentSession.tsx +0 -37
- package/page/App/components/componentPanel/componentListBuilder.tsx +0 -115
- package/page/App/components/componentPanel/components/SuggestComponent/index.tsx +0 -44
- package/page/App/components/componentPanel/components/SuggestComponent/style.ts +0 -35
- package/page/App/components/componentPanel/index.tsx +0 -108
- package/page/App/components/componentPanel/interface.ts +0 -34
- package/page/App/components/componentPanel/style.tsx +0 -116
- package/page/App/components/componentPanel/utils.tsx +0 -32
- package/page/App/components/dotPanel/calc.ts +0 -348
- package/page/App/components/dotPanel/components/Canvas/interface.ts +0 -39
- package/page/App/components/dotPanel/components/Canvas/renderComponentCanvasContainer.tsx +0 -323
- package/page/App/components/dotPanel/components/Canvas/renderComponentCanvasContainerMobile.tsx +0 -111
- package/page/App/components/dotPanel/components/Canvas/style.ts +0 -171
- package/page/App/components/dotPanel/components/ComponentParser/index.tsx +0 -40
- package/page/App/components/dotPanel/components/ComponentParser/interface.ts +0 -6
- package/page/App/components/dotPanel/components/DragPreview/index.tsx +0 -48
- package/page/App/components/dotPanel/components/DragPreview/interface.ts +0 -22
- package/page/App/components/dotPanel/components/DragPreview/style.ts +0 -22
- package/page/App/components/dotPanel/components/MousePreview/Cursor/index.tsx +0 -106
- package/page/App/components/dotPanel/components/MousePreview/Cursor/interface.ts +0 -15
- package/page/App/components/dotPanel/components/MousePreview/Cursor/style.ts +0 -27
- package/page/App/components/dotPanel/components/MousePreview/index.tsx +0 -33
- package/page/App/components/dotPanel/components/MousePreview/interface.ts +0 -4
- package/page/App/components/dotPanel/components/MultiSelectCanvas/index.tsx +0 -212
- package/page/App/components/dotPanel/components/MultiSelectCanvas/interface.ts +0 -6
- package/page/App/components/dotPanel/components/Page/emptyState.tsx +0 -17
- package/page/App/components/dotPanel/components/Page/emptyStateMobile.tsx +0 -8
- package/page/App/components/dotPanel/components/Page/interface.ts +0 -3
- package/page/App/components/dotPanel/components/Page/renderPage.tsx +0 -161
- package/page/App/components/dotPanel/components/Page/style.ts +0 -45
- package/page/App/components/dotPanel/components/PageLoading/pageLoading.tsx +0 -12
- package/page/App/components/dotPanel/components/PageLoading/style.ts +0 -9
- package/page/App/components/dotPanel/components/Section/BodySection/index.tsx +0 -89
- package/page/App/components/dotPanel/components/Section/BodySection/indexMobile.tsx +0 -61
- package/page/App/components/dotPanel/components/Section/BodySection/interface.ts +0 -7
- package/page/App/components/dotPanel/components/Section/BodySection/style.ts +0 -29
- package/page/App/components/dotPanel/components/Section/FooterSection/index.tsx +0 -111
- package/page/App/components/dotPanel/components/Section/FooterSection/interface.ts +0 -8
- package/page/App/components/dotPanel/components/Section/FooterSection/style.ts +0 -25
- package/page/App/components/dotPanel/components/Section/HeaderSection/index.tsx +0 -119
- package/page/App/components/dotPanel/components/Section/HeaderSection/interface.ts +0 -8
- package/page/App/components/dotPanel/components/Section/HeaderSection/style.ts +0 -25
- package/page/App/components/dotPanel/components/Section/LeftSection/index.tsx +0 -126
- package/page/App/components/dotPanel/components/Section/LeftSection/interface.ts +0 -8
- package/page/App/components/dotPanel/components/Section/LeftSection/style.ts +0 -25
- package/page/App/components/dotPanel/components/Section/RightSection/index.tsx +0 -124
- package/page/App/components/dotPanel/components/Section/RightSection/interface.ts +0 -8
- package/page/App/components/dotPanel/components/Section/RightSection/style.ts +0 -25
- package/page/App/components/dotPanel/components/Section/index.ts +0 -6
- package/page/App/components/dotPanel/components/Section/interface.ts +0 -5
- package/page/App/components/dotPanel/components/Section/style.ts +0 -77
- package/page/App/components/dotPanel/constant/canvas.ts +0 -30
- package/page/App/components/dotPanel/constant/snapshotNew.ts +0 -34
- package/page/App/components/dotPanel/context/mouseHoverContext.tsx +0 -55
- package/page/App/components/dotPanel/context/mouseMoveContext.tsx +0 -46
- package/page/App/components/dotPanel/context/scrollBarContext.tsx +0 -27
- package/page/App/components/dotPanel/hooks/sectionUtils.ts +0 -34
- package/page/App/components/dotPanel/hooks/useMousePostionAsync.tsx +0 -150
- package/page/App/components/dotPanel/index.tsx +0 -105
- package/page/App/components/dotPanel/interface.ts +0 -19
- package/page/App/components/dotPanel/style.ts +0 -182
- package/page/App/components/dotPanel/utils/calcMouse.ts +0 -47
- package/page/App/components/dotPanel/utils/crossingHelper.ts +0 -179
- package/page/App/components/dotPanel/utils/getDragShadow.ts +0 -530
- package/page/App/components/dotPanel/utils/getDropResult.ts +0 -30
- package/page/App/components/dotPanel/utils/sendBinaryMessage.ts +0 -94
- package/page/App/components/dotPanel/utils/styleutils/padding.ts +0 -28
- package/page/App/components/dotPanel/utils.ts +0 -26
- package/page/App/components/publicConfig/Act21Service/base.ts +0 -33
- package/page/App/components/publicConfig/Act21Service/constant.ts +0 -21
- package/page/App/components/publicConfig/Act21Service/index.ts +0 -106
- package/page/App/components/publicConfig/action/getInitialContent.ts +0 -43
- package/page/App/components/publicConfig/action/index.ts +0 -45
- package/page/App/components/publicConfig/action/restapiAction.ts +0 -17
- package/page/App/components/publicConfig/action/transformerAction.ts +0 -7
- package/page/App/components/publicConfig/resource/restapi.ts +0 -13
- package/page/App/components/scaleSquare/components/DragContainer/index.tsx +0 -115
- package/page/App/components/scaleSquare/components/DragContainer/interface.ts +0 -39
- package/page/App/components/scaleSquare/components/DragContainer/style.ts +0 -10
- package/page/App/components/scaleSquare/components/MoveBar/interface.ts +0 -14
- package/page/App/components/scaleSquare/components/MoveBar/moveBar.tsx +0 -72
- package/page/App/components/scaleSquare/components/MoveBar/style.ts +0 -78
- package/page/App/components/scaleSquare/components/PositionContainer/index.tsx +0 -24
- package/page/App/components/scaleSquare/components/PositionContainer/interface.ts +0 -8
- package/page/App/components/scaleSquare/components/PositionContainer/style.ts +0 -16
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/hooks.ts +0 -392
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/index.tsx +0 -141
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/interface.ts +0 -12
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/style.ts +0 -191
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/utils.ts +0 -21
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/index.tsx +0 -103
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/interface.ts +0 -12
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/style.ts +0 -110
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/utils.tsx +0 -120
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/config.tsx +0 -2
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/index.tsx +0 -390
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/interface.ts +0 -16
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/style.ts +0 -110
- package/page/App/components/scaleSquare/components/WrapperContainer/index.tsx +0 -72
- package/page/App/components/scaleSquare/components/WrapperContainer/indexMobile.tsx +0 -65
- package/page/App/components/scaleSquare/components/WrapperContainer/interface.ts +0 -8
- package/page/App/components/scaleSquare/components/WrapperContainer/style.ts +0 -32
- package/page/App/components/scaleSquare/constant/moveBar.ts +0 -3
- package/page/App/components/scaleSquare/constant/widget.ts +0 -8
- package/page/App/components/scaleSquare/context/mouseHoverContext.tsx +0 -55
- package/page/App/components/scaleSquare/context/mouseMoveContext.tsx +0 -46
- package/page/App/components/scaleSquare/context/scrollBarContext.tsx +0 -27
- package/page/App/components/scaleSquare/index.tsx +0 -67
- package/page/App/components/scaleSquare/interface.ts +0 -20
- package/page/App/components/scaleSquare/style.ts +0 -330
- package/page/App/components/scaleSquare/utils/getRealShapeAndPosition.ts +0 -86
- package/page/App/components/scaleSquare/utils/useGetDisplayNameInMoveBar.ts +0 -34
- package/page/App/components/scaleSquare/utils/useMouseHover.ts +0 -47
- package/page/App/components/scaleSquare/utils/useScaleStateSelector.ts +0 -17
- package/page/App/index.tsx +0 -110
- package/page/App/module/ActionEditor/index.tsx +0 -40
- package/page/App/module/ActionEditor/styles.ts +0 -147
- package/page/App/module/CanvasPanel/index.tsx +0 -49
- package/page/App/module/CanvasPanel/interface.ts +0 -11
- package/page/App/module/CanvasPanel/style.ts +0 -43
- package/page/App/module/ComponentManager/index.tsx +0 -70
- package/page/App/module/ComponentManager/style.tsx +0 -62
- package/page/App/module/DataWorkspace/components/ActionSpaceTree/index.tsx +0 -65
- package/page/App/module/DataWorkspace/components/BaseDataItem/index.tsx +0 -443
- package/page/App/module/DataWorkspace/components/BaseDataItem/interface.ts +0 -12
- package/page/App/module/DataWorkspace/components/BaseDataItem/style.ts +0 -108
- package/page/App/module/DataWorkspace/components/ComponentSpaceTree/index.tsx +0 -82
- package/page/App/module/DataWorkspace/components/GlobalsSpaceTree/index.tsx +0 -37
- package/page/App/module/DataWorkspace/components/GlobalsSpaceTree/interface.ts +0 -5
- package/page/App/module/DataWorkspace/components/GlobalsSpaceTree/style.ts +0 -27
- package/page/App/module/DataWorkspace/components/LibrariesTree/constants.ts +0 -27
- package/page/App/module/DataWorkspace/components/LibrariesTree/index.tsx +0 -29
- package/page/App/module/DataWorkspace/components/LibrariesTree/interface.ts +0 -5
- package/page/App/module/DataWorkspace/components/LibrariesTree/item.tsx +0 -33
- package/page/App/module/DataWorkspace/components/LibrariesTree/style.ts +0 -45
- package/page/App/module/DataWorkspace/components/MoreAction/index.tsx +0 -62
- package/page/App/module/DataWorkspace/components/MoreAction/interface.ts +0 -4
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ActionMenu/index.tsx +0 -93
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ActionMenu/interface.ts +0 -6
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ChangePathModal/interface.ts +0 -6
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ChangePathModal/modal.tsx +0 -49
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ChangePathModal/style.tsx +0 -42
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/PageItem/index.tsx +0 -208
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/PageItem/interface.ts +0 -9
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/PageItem/style.ts +0 -76
- package/page/App/module/DataWorkspace/components/PageSpaceTree/index.tsx +0 -79
- package/page/App/module/DataWorkspace/components/PageSpaceTree/style.ts +0 -5
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeGroup/index.tsx +0 -13
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeGroup/interface.ts +0 -6
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeGroup/style.ts +0 -5
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/WorkSpaceTreeNode.tsx +0 -49
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/index.tsx +0 -105
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/interface.ts +0 -15
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/style.ts +0 -185
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/utils.tsx +0 -15
- package/page/App/module/DataWorkspace/constant.ts +0 -1
- package/page/App/module/DataWorkspace/index.tsx +0 -29
- package/page/App/module/DataWorkspace/style.ts +0 -47
- package/page/App/module/LeftPanel/index.tsx +0 -21
- package/page/App/module/LeftPanel/style.ts +0 -11
- package/page/App/module/PageNavBar/ScreenIcons/index.tsx +0 -55
- package/page/App/module/PageNavBar/ScreenIcons/style.ts +0 -41
- package/page/App/module/PageNavBar/WindowIcons/index.tsx +0 -50
- package/page/App/module/PageNavBar/WindowIcons/style.ts +0 -48
- package/page/App/module/PageNavBar/index.tsx +0 -136
- package/page/App/module/PageNavBar/interface.ts +0 -3
- package/page/App/module/PageNavBar/resp.ts +0 -5
- package/page/App/module/PageNavBar/style.tsx +0 -154
- package/page/App/module/ScreenEditor/index.tsx +0 -39
- package/page/App/module/StyleEditor/index.tsx +0 -33
- package/page/App/module/StyleEditor/styles.ts +0 -146
- package/page/App/module/StyleSpaceTree/index.tsx +0 -104
- package/page/App/module/ThemeEditor/index.tsx +0 -36
- package/page/App/module/ThemeEditor/styles.ts +0 -146
- package/page/App/style.tsx +0 -139
- package/redux/config/configListener.ts +0 -101
- package/redux/config/configPayload.ts +0 -14
- package/redux/config/configReducer.ts +0 -337
- package/redux/config/configSelector.ts +0 -199
- package/redux/config/configSlice.ts +0 -88
- package/redux/config/configState.ts +0 -79
- package/redux/currentApp/action/actionListener.ts +0 -158
- package/redux/currentApp/action/actionReducer.ts +0 -137
- package/redux/currentApp/action/actionSelector.ts +0 -126
- package/redux/currentApp/action/actionSlice.ts +0 -34
- package/redux/currentApp/action/actionState.ts +0 -29
- package/redux/currentApp/action/interface.ts +0 -77
- package/redux/currentApp/components/componentsListener.ts +0 -212
- package/redux/currentApp/components/componentsPayload.ts +0 -56
- package/redux/currentApp/components/componentsReducer.ts +0 -1150
- package/redux/currentApp/components/componentsSelector.ts +0 -537
- package/redux/currentApp/components/componentsSlice.ts +0 -88
- package/redux/currentApp/components/componentsState.ts +0 -371
- package/redux/currentApp/cursor/cursorReducer.ts +0 -78
- package/redux/currentApp/cursor/cursorSelector.ts +0 -10
- package/redux/currentApp/cursor/cursorSlice.ts +0 -26
- package/redux/currentApp/cursor/cursorState.ts +0 -20
- package/redux/currentApp/executionController/controllerReducer.ts +0 -50
- package/redux/currentApp/executionController/controllerSelector.ts +0 -41
- package/redux/currentApp/executionController/controllerSlice.ts +0 -28
- package/redux/currentApp/executionController/controllerState.ts +0 -3
- package/redux/currentApp/executionController/interface.ts +0 -131
- package/redux/currentApp/executionTree/executionListener.ts +0 -293
- package/redux/currentApp/executionTree/executionReducer.ts +0 -276
- package/redux/currentApp/executionTree/executionSelector.ts +0 -754
- package/redux/currentApp/executionTree/executionSlice.ts +0 -54
- package/redux/currentApp/executionTree/executionState.ts +0 -322
- package/redux/currentApp/selector.ts +0 -2
- package/redux/currentApp/slice.ts +0 -17
- package/redux/currentApp/style/cursorSlice.ts +0 -30
- package/redux/currentApp/style/styleReducer.ts +0 -75
- package/redux/currentApp/style/styleSelector.ts +0 -24
- package/redux/currentApp/style/styleState.ts +0 -446
- package/redux/resource/resourceReducer.ts +0 -48
- package/redux/resource/resourceSelector.ts +0 -16
- package/redux/resource/resourceSlice.ts +0 -24
- package/redux/resource/resourceState.ts +0 -40
- package/redux/resource/upstashResource.ts +0 -2
- package/redux/utils.ts +0 -316
- package/scripts/reset-project.js +0 -112
- package/store.ts +0 -38
- package/style.tsx +0 -69
- package/theme.ts +0 -206
- package/tsconfig.json +0 -67
- package/utils/DropDown/dropdown.tsx +0 -63
- package/utils/DropDown/droplist-item.tsx +0 -54
- package/utils/DropDown/droplist.tsx +0 -48
- package/utils/DropDown/index.ts +0 -4
- package/utils/DropDown/interface.ts +0 -47
- package/utils/DropDown/style.ts +0 -212
- package/utils/DropDown/use-merge-value.ts +0 -50
- package/utils/DropDown/vite-env.d.ts +0 -1
- package/utils/IconHotSpot/index.tsx +0 -36
- package/utils/IconHotSpot/interface.ts +0 -10
- package/utils/IconHotSpot/style.ts +0 -29
- package/utils/InspectHelper/selectWidgetHelper.ts +0 -25
- package/utils/Link/index.ts +0 -2
- package/utils/Link/interface.ts +0 -28
- package/utils/Link/link.tsx +0 -38
- package/utils/Link/style.ts +0 -69
- package/utils/Notification/hook.ts +0 -66
- package/utils/Notification/index.ts +0 -5
- package/utils/Notification/interface.ts +0 -30
- package/utils/Notification/notification-group.tsx +0 -111
- package/utils/Notification/notification-store.ts +0 -113
- package/utils/Notification/notification.tsx +0 -160
- package/utils/Notification/style.ts +0 -144
- package/utils/Table/filterFn.ts +0 -21
- package/utils/Table/filters-editor.tsx +0 -163
- package/utils/Table/index.ts +0 -11
- package/utils/Table/interface.ts +0 -218
- package/utils/Table/raw-tip.tsx +0 -3
- package/utils/Table/react-table.d.ts +0 -14
- package/utils/Table/render-data-driven-table.tsx +0 -682
- package/utils/Table/render-direct-table.tsx +0 -68
- package/utils/Table/style.ts +0 -395
- package/utils/Table/table-context.ts +0 -8
- package/utils/Table/table-data.ts +0 -1
- package/utils/Table/table-filter.tsx +0 -98
- package/utils/Table/table.tsx +0 -26
- package/utils/Table/tbody.tsx +0 -21
- package/utils/Table/td.tsx +0 -123
- package/utils/Table/tfoot.tsx +0 -24
- package/utils/Table/th.tsx +0 -65
- package/utils/Table/thead.tsx +0 -28
- package/utils/Table/tr.tsx +0 -30
- package/utils/Table/utils.ts +0 -305
- package/utils/action/runAction.ts +0 -357
- package/utils/action/runActionEventHandler.ts +0 -44
- package/utils/action/runActionTransformer.ts +0 -22
- package/utils/action/transResponse.ts +0 -98
- package/utils/action/transformDataFormat.ts +0 -28
- package/utils/autoUpdateHeight.ts +0 -25
- package/utils/basicConfig.ts +0 -144
- package/utils/changeDisplayNameHelper.ts +0 -298
- package/utils/color-palette.ts +0 -147
- package/utils/colorBuilder/index.ts +0 -146
- package/utils/componentNode/buildTree.ts +0 -62
- package/utils/componentNode/changeDisplayNameHelper.ts +0 -22
- package/utils/componentNode/copyHelper.ts +0 -1
- package/utils/componentNode/flatTree.ts +0 -59
- package/utils/componentNode/search.ts +0 -30
- package/utils/configProvider/config-provider-context.tsx +0 -10
- package/utils/configProvider/config-provider.tsx +0 -18
- package/utils/configProvider/config.tsx +0 -15
- package/utils/configProvider/index.ts +0 -9
- package/utils/configProvider/interface.ts +0 -20
- package/utils/configProvider/locale/def.tsx +0 -3
- package/utils/configProvider/locale/en-US.tsx +0 -107
- package/utils/configProvider/vite-env.d.ts +0 -1
- package/utils/converter.ts +0 -74
- package/utils/copyManager.ts +0 -378
- package/utils/drag/drag.ts +0 -37
- package/utils/evaluateDynamicString/codeSandbox.ts +0 -173
- package/utils/evaluateDynamicString/dynamicConverter.ts +0 -63
- package/utils/evaluateDynamicString/index.ts +0 -61
- package/utils/evaluateDynamicString/utils.ts +0 -92
- package/utils/evaluateDynamicString/valueConverter.ts +0 -136
- package/utils/eventHandlerHelper/index.ts +0 -444
- package/utils/eventHandlerHelper/utils/commonUtils.ts +0 -168
- package/utils/eventHandlerHelper/utils/globalDataUtils.ts +0 -20
- package/utils/eventHandlerHelper/utils/localStorage.ts +0 -16
- package/utils/executionTreeHelper/ast/constants.ts +0 -23
- package/utils/executionTreeHelper/ast/index.ts +0 -57
- package/utils/executionTreeHelper/ast/interface.ts +0 -151
- package/utils/executionTreeHelper/ast/typeHelper.ts +0 -154
- package/utils/executionTreeHelper/ast/utils.ts +0 -11
- package/utils/executionTreeHelper/ast/walk.ts +0 -132
- package/utils/executionTreeHelper/ast/walkHelper.ts +0 -93
- package/utils/executionTreeHelper/executionTreeFactory.ts +0 -790
- package/utils/executionTreeHelper/generateGlobalData.ts +0 -18
- package/utils/executionTreeHelper/generatePageInfo.ts +0 -76
- package/utils/executionTreeHelper/generateRawAction.ts +0 -66
- package/utils/executionTreeHelper/generateRawWidget.ts +0 -18
- package/utils/executionTreeHelper/generateUrlParams.ts +0 -16
- package/utils/executionTreeHelper/interface.ts +0 -41
- package/utils/executionTreeHelper/rawTreeFactory.ts +0 -63
- package/utils/executionTreeHelper/rrecursiveDelete.ts +0 -25
- package/utils/executionTreeHelper/runtimePropsCollector.ts +0 -242
- package/utils/executionTreeHelper/utils.ts +0 -147
- package/utils/focusManager.ts +0 -37
- package/utils/generators/generateAllTypePathsFromWidgetConfig.ts +0 -127
- package/utils/generators/generateComponentNode.ts +0 -269
- package/utils/generators/generateDisplayName.ts +0 -98
- package/utils/generators/generatePageOrSectionConfig.ts +0 -147
- package/utils/generators/interface.ts +0 -116
- package/utils/getStyleMap.ts +0 -30
- package/utils/helper.ts +0 -36
- package/utils/mediaSourceLoad/index.tsx +0 -25
- package/utils/mediaSourceLoad/interface.ts +0 -11
- package/utils/mediaSourceLoad/utils.ts +0 -16
- package/utils/mixpanelHelper/index.tsx +0 -338
- package/utils/model/src/hook.ts +0 -64
- package/utils/model/src/index.ts +0 -5
- package/utils/model/src/interface.ts +0 -239
- package/utils/model/src/modal-group.tsx +0 -59
- package/utils/model/src/modal-store.ts +0 -95
- package/utils/model/src/modal.tsx +0 -245
- package/utils/model/src/omit.ts +0 -17
- package/utils/model/src/style.ts +0 -328
- package/utils/pagination/index.ts +0 -2
- package/utils/pagination/interface.ts +0 -40
- package/utils/pagination/pagination.tsx +0 -511
- package/utils/pagination/style.ts +0 -199
- package/utils/shortcut/index.tsx +0 -510
- package/utils/shortcut/interface.ts +0 -29
- package/utils/shortcut/shortcutProvider.tsx +0 -8
- package/utils/spin/index.ts +0 -2
- package/utils/spin/interface.ts +0 -30
- package/utils/spin/spin.tsx +0 -60
- package/utils/spin/styles.ts +0 -95
- package/utils/switch/index.ts +0 -2
- package/utils/switch/interface.ts +0 -34
- package/utils/switch/style.ts +0 -132
- package/utils/switch/switch.tsx +0 -74
- package/utils/trigger/Box.ts +0 -197
- package/utils/trigger/index.ts +0 -4
- package/utils/trigger/interface.ts +0 -75
- package/utils/trigger/popup.tsx +0 -49
- package/utils/trigger/style.ts +0 -184
- package/utils/trigger/transform.ts +0 -55
- package/utils/trigger/trigger-context.tsx +0 -9
- package/utils/trigger/trigger-provider.tsx +0 -15
- package/utils/trigger/trigger.tsx +0 -432
- package/utils/trigger/vite-env.d.ts +0 -1
- package/utils/undoRedo/antonymyRule.ts +0 -159
- package/utils/undoRedo/circularStack.ts +0 -52
- package/utils/undoRedo/undo.ts +0 -82
- package/utils/undoRedo/undoRedoMethod/action.ts +0 -53
- package/utils/undoRedo/undoRedoMethod/components.ts +0 -0
- package/utils/userAgent/index.ts +0 -30
- package/utils/validationFactory/index.ts +0 -155
- package/widgetLibrary/BasicContainer/BasicContainer.tsx +0 -18
- package/widgetLibrary/BasicContainer/BasicPanel.ts +0 -54
- package/widgetLibrary/ButtonWidget/button.tsx +0 -63
- package/widgetLibrary/ButtonWidget/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/ButtonWidget/index.tsx +0 -4
- package/widgetLibrary/ButtonWidget/interface.ts +0 -217
- package/widgetLibrary/ButtonWidget/panelConfig.tsx +0 -203
- package/widgetLibrary/ButtonWidget/style.ts +0 -6
- package/widgetLibrary/ButtonWidget/widgetConfig.tsx +0 -19
- package/widgetLibrary/ButtonWidgetNative/button.tsx +0 -65
- package/widgetLibrary/ButtonWidgetNative/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/ButtonWidgetNative/index.tsx +0 -4
- package/widgetLibrary/ButtonWidgetNative/interface.ts +0 -215
- package/widgetLibrary/ButtonWidgetNative/panelConfig.tsx +0 -196
- package/widgetLibrary/ButtonWidgetNative/style.ts +0 -6
- package/widgetLibrary/ButtonWidgetNative/widgetConfig.tsx +0 -17
- package/widgetLibrary/CSSGrid/GridChild.tsx +0 -293
- package/widgetLibrary/CSSGrid/GridContainer.tsx +0 -171
- package/widgetLibrary/CSSGrid/WidgetConfig.tsx +0 -40
- package/widgetLibrary/CSSGrid/eventHandlerConfig.ts +0 -23
- package/widgetLibrary/CSSGrid/panelConfig.tsx +0 -160
- package/widgetLibrary/CSSGrid/style.ts +0 -143
- package/widgetLibrary/CSSGrid/utils.tsx +0 -57
- package/widgetLibrary/Card/Card.tsx +0 -84
- package/widgetLibrary/Card/index.ts +0 -3
- package/widgetLibrary/Card/interface.ts +0 -12
- package/widgetLibrary/Card/panelConfig.tsx +0 -89
- package/widgetLibrary/Card/widgetConfig.tsx +0 -20
- package/widgetLibrary/CheckBoxContainer/checkBox.tsx +0 -161
- package/widgetLibrary/CheckBoxContainer/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/CheckBoxContainer/icons.tsx +0 -20
- package/widgetLibrary/CheckBoxContainer/index.ts +0 -3
- package/widgetLibrary/CheckBoxContainer/interface.ts +0 -18
- package/widgetLibrary/CheckBoxContainer/panelConfig.tsx +0 -215
- package/widgetLibrary/CheckBoxContainer/widgetConfig.tsx +0 -17
- package/widgetLibrary/CheckBoxContainerNative/checkBox.tsx +0 -123
- package/widgetLibrary/CheckBoxContainerNative/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/CheckBoxContainerNative/index.ts +0 -3
- package/widgetLibrary/CheckBoxContainerNative/interface.ts +0 -18
- package/widgetLibrary/CheckBoxContainerNative/panelConfig.tsx +0 -179
- package/widgetLibrary/CheckBoxContainerNative/widgetConfig.tsx +0 -17
- package/widgetLibrary/ContainerWidget/container.tsx +0 -207
- package/widgetLibrary/ContainerWidget/emptyState.tsx +0 -41
- package/widgetLibrary/ContainerWidget/eventHandlerConfig.ts +0 -22
- package/widgetLibrary/ContainerWidget/index.tsx +0 -3
- package/widgetLibrary/ContainerWidget/interface.ts +0 -53
- package/widgetLibrary/ContainerWidget/panelConfig.tsx +0 -174
- package/widgetLibrary/ContainerWidget/style.ts +0 -38
- package/widgetLibrary/ContainerWidget/widgetConfig.tsx +0 -31
- package/widgetLibrary/CreditCard/CreditCard.tsx +0 -108
- package/widgetLibrary/CreditCard/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/CreditCard/index.ts +0 -4
- package/widgetLibrary/CreditCard/interface.ts +0 -12
- package/widgetLibrary/CreditCard/panelConfig.tsx +0 -101
- package/widgetLibrary/CreditCard/widgetConfig.tsx +0 -20
- package/widgetLibrary/DateWidget/date.tsx +0 -212
- package/widgetLibrary/DateWidget/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/DateWidget/index.ts +0 -6
- package/widgetLibrary/DateWidget/interface.ts +0 -29
- package/widgetLibrary/DateWidget/panelConfig.tsx +0 -151
- package/widgetLibrary/DateWidget/styles.css +0 -5
- package/widgetLibrary/DateWidget/widgetConfig.tsx +0 -21
- package/widgetLibrary/EmptyBoxWidget/EmptyBox.tsx +0 -21
- package/widgetLibrary/EmptyBoxWidget/index.ts +0 -3
- package/widgetLibrary/EmptyBoxWidget/interface.ts +0 -7
- package/widgetLibrary/EmptyBoxWidget/panelConfig.tsx +0 -21
- package/widgetLibrary/EmptyBoxWidget/widgetConfig.tsx +0 -15
- package/widgetLibrary/FileInput/FileInput.tsx +0 -9
- package/widgetLibrary/FileInput/index.ts +0 -3
- package/widgetLibrary/FileInput/panelConfig.tsx +0 -213
- package/widgetLibrary/FileInput/widgetConfig.tsx +0 -16
- package/widgetLibrary/FormWidget/eventHandlerConfig.ts +0 -20
- package/widgetLibrary/FormWidget/form.tsx +0 -409
- package/widgetLibrary/FormWidget/index.ts +0 -3
- package/widgetLibrary/FormWidget/interface.ts +0 -29
- package/widgetLibrary/FormWidget/panelConfig.tsx +0 -181
- package/widgetLibrary/FormWidget/style.ts +0 -46
- package/widgetLibrary/FormWidget/widgetConfig.tsx +0 -73
- package/widgetLibrary/GridContainer/GridContainer.tsx +0 -188
- package/widgetLibrary/GridContainer/WidgetConfig.tsx +0 -46
- package/widgetLibrary/GridContainer/eventHandlerConfig.ts +0 -23
- package/widgetLibrary/GridContainer/panelConfig.tsx +0 -211
- package/widgetLibrary/IconWidget/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/IconWidget/icon.tsx +0 -37
- package/widgetLibrary/IconWidget/index.ts +0 -3
- package/widgetLibrary/IconWidget/interface.ts +0 -23
- package/widgetLibrary/IconWidget/panelConfig.tsx +0 -105
- package/widgetLibrary/IconWidget/style.ts +0 -37
- package/widgetLibrary/IconWidget/utils.tsx +0 -90
- package/widgetLibrary/IconWidget/widgetConfig.tsx +0 -17
- package/widgetLibrary/Image/Image.tsx +0 -32
- package/widgetLibrary/Image/index.ts +0 -3
- package/widgetLibrary/Image/interface.ts +0 -14
- package/widgetLibrary/Image/panelConfig.tsx +0 -90
- package/widgetLibrary/Image/widgetConfig.tsx +0 -18
- package/widgetLibrary/ImageNative/Image.tsx +0 -45
- package/widgetLibrary/ImageNative/index.ts +0 -3
- package/widgetLibrary/ImageNative/interface.ts +0 -14
- package/widgetLibrary/ImageNative/panelConfig.tsx +0 -90
- package/widgetLibrary/ImageNative/widgetConfig.tsx +0 -18
- package/widgetLibrary/InputNativeWidget/PhoneInput.tsx +0 -29
- package/widgetLibrary/InputNativeWidget/eventHandlerConfig.ts +0 -26
- package/widgetLibrary/InputNativeWidget/index.ts +0 -5
- package/widgetLibrary/InputNativeWidget/input.tsx +0 -234
- package/widgetLibrary/InputNativeWidget/interface.ts +0 -45
- package/widgetLibrary/InputNativeWidget/panelConfig.tsx +0 -353
- package/widgetLibrary/InputNativeWidget/style.ts +0 -5
- package/widgetLibrary/InputNativeWidget/utils.ts +0 -44
- package/widgetLibrary/InputNativeWidget/widgetConfig.tsx +0 -24
- package/widgetLibrary/InputWidget/PhoneInput.tsx +0 -29
- package/widgetLibrary/InputWidget/eventHandlerConfig.ts +0 -26
- package/widgetLibrary/InputWidget/index.ts +0 -5
- package/widgetLibrary/InputWidget/input.tsx +0 -267
- package/widgetLibrary/InputWidget/interface.ts +0 -45
- package/widgetLibrary/InputWidget/panelConfig.tsx +0 -325
- package/widgetLibrary/InputWidget/style.ts +0 -5
- package/widgetLibrary/InputWidget/utils.ts +0 -44
- package/widgetLibrary/InputWidget/widgetConfig.tsx +0 -24
- package/widgetLibrary/Label/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/Label/index.ts +0 -4
- package/widgetLibrary/Label/interface.ts +0 -14
- package/widgetLibrary/Label/label.tsx +0 -38
- package/widgetLibrary/Label/panelConfig.tsx +0 -82
- package/widgetLibrary/Label/widgetConfig.tsx +0 -23
- package/widgetLibrary/LabelNative/Label.tsx +0 -38
- package/widgetLibrary/LabelNative/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/LabelNative/index.ts +0 -3
- package/widgetLibrary/LabelNative/interface.ts +0 -30
- package/widgetLibrary/LabelNative/panelConfig.ts +0 -205
- package/widgetLibrary/LabelNative/widgetConfig.ts +0 -21
- package/widgetLibrary/MuiltiSelect.tsx/MultiSelect.tsx +0 -261
- package/widgetLibrary/MuiltiSelect.tsx/eventHandlerConfig.ts +0 -26
- package/widgetLibrary/MuiltiSelect.tsx/index.ts +0 -3
- package/widgetLibrary/MuiltiSelect.tsx/interface.ts +0 -72
- package/widgetLibrary/MuiltiSelect.tsx/panelConfig.tsx +0 -289
- package/widgetLibrary/MuiltiSelect.tsx/style.ts +0 -81
- package/widgetLibrary/MuiltiSelect.tsx/styles.css +0 -4
- package/widgetLibrary/MuiltiSelect.tsx/widgetConfig.tsx +0 -33
- package/widgetLibrary/NativeContainer/BasicPanel.ts +0 -189
- package/widgetLibrary/NativeContainer/NativeChild.tsx +0 -156
- package/widgetLibrary/NativeContainer/NativeContainer.tsx +0 -189
- package/widgetLibrary/NativeContainer/WidgetConfig.tsx +0 -37
- package/widgetLibrary/NativeContainer/index.ts +0 -3
- package/widgetLibrary/NativeContainer/interface.ts +0 -22
- package/widgetLibrary/NativeContainer/panelConfig.tsx +0 -150
- package/widgetLibrary/OTPWidget/OTP.tsx +0 -175
- package/widgetLibrary/OTPWidget/OTPInput.tsx +0 -231
- package/widgetLibrary/OTPWidget/eventHandlerConfig.ts +0 -26
- package/widgetLibrary/OTPWidget/index.ts +0 -5
- package/widgetLibrary/OTPWidget/interface.ts +0 -37
- package/widgetLibrary/OTPWidget/panelConfig.tsx +0 -140
- package/widgetLibrary/OTPWidget/style.ts +0 -5
- package/widgetLibrary/OTPWidget/widgetConfig.tsx +0 -20
- package/widgetLibrary/PublicSector/AutoHeightContainer/index.tsx +0 -46
- package/widgetLibrary/PublicSector/AutoHeightContainer/style.ts +0 -11
- package/widgetLibrary/PublicSector/InvalidMessage/index.tsx +0 -18
- package/widgetLibrary/PublicSector/InvalidMessage/interface.tsx +0 -34
- package/widgetLibrary/PublicSector/InvalidMessage/style.tsx +0 -18
- package/widgetLibrary/PublicSector/InvalidMessage/utils.tsx +0 -307
- package/widgetLibrary/PublicSector/InvalidMessageNative/index.tsx +0 -23
- package/widgetLibrary/PublicSector/InvalidMessageNative/interface.tsx +0 -33
- package/widgetLibrary/PublicSector/InvalidMessageNative/style.tsx +0 -22
- package/widgetLibrary/PublicSector/utils/generatorEventHandlerConfig.ts +0 -953
- package/widgetLibrary/PublicSector/utils/generatorTableEventHandlerConfig.ts +0 -686
- package/widgetLibrary/RadioWidget/eventHandlerConfig.ts +0 -15
- package/widgetLibrary/RadioWidget/index.ts +0 -4
- package/widgetLibrary/RadioWidget/interface.ts +0 -24
- package/widgetLibrary/RadioWidget/panelConfig.tsx +0 -274
- package/widgetLibrary/RadioWidget/radio.tsx +0 -217
- package/widgetLibrary/RadioWidget/widgetConfig.tsx +0 -44
- package/widgetLibrary/RenderChildrenCanvas/index.tsx +0 -59
- package/widgetLibrary/RenderChildrenCanvas/interface.ts +0 -8
- package/widgetLibrary/SelectWidget/Select.tsx +0 -215
- package/widgetLibrary/SelectWidget/eventHandlerConfig.ts +0 -26
- package/widgetLibrary/SelectWidget/formSelectOptions.ts +0 -71
- package/widgetLibrary/SelectWidget/index.ts +0 -3
- package/widgetLibrary/SelectWidget/interface.ts +0 -72
- package/widgetLibrary/SelectWidget/panelConfig.tsx +0 -299
- package/widgetLibrary/SelectWidget/styles.css +0 -4
- package/widgetLibrary/SelectWidget/widgetConfig.tsx +0 -37
- package/widgetLibrary/Slider/Slider.tsx +0 -229
- package/widgetLibrary/Slider/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/Slider/index.ts +0 -4
- package/widgetLibrary/Slider/interface.ts +0 -12
- package/widgetLibrary/Slider/panelConfig.tsx +0 -71
- package/widgetLibrary/Slider/widgetConfig.tsx +0 -18
- package/widgetLibrary/TableWidget/eventHandlerConfig.ts +0 -69
- package/widgetLibrary/TableWidget/index.ts +0 -3
- package/widgetLibrary/TableWidget/interface.ts +0 -192
- package/widgetLibrary/TableWidget/panelConfig.tsx +0 -625
- package/widgetLibrary/TableWidget/react-table.d.ts +0 -15
- package/widgetLibrary/TableWidget/renderTableCell.tsx +0 -280
- package/widgetLibrary/TableWidget/style.ts +0 -117
- package/widgetLibrary/TableWidget/table.tsx +0 -698
- package/widgetLibrary/TableWidget/utils.tsx +0 -448
- package/widgetLibrary/TableWidget/widgetConfig.tsx +0 -57
- package/widgetLibrary/Tabs/Tabs.tsx +0 -259
- package/widgetLibrary/Tabs/index.ts +0 -3
- package/widgetLibrary/Tabs/panelConfig.tsx +0 -186
- package/widgetLibrary/Tabs/widgetConfig.tsx +0 -38
- package/widgetLibrary/TextAreaContainer/TextArea.tsx +0 -133
- package/widgetLibrary/TextAreaContainer/index.ts +0 -3
- package/widgetLibrary/TextAreaContainer/interface.ts +0 -27
- package/widgetLibrary/TextAreaContainer/panelConfig.tsx +0 -148
- package/widgetLibrary/TextAreaContainer/widgetConfig.tsx +0 -25
- package/widgetLibrary/TextAreaContainerNative/TextArea.tsx +0 -101
- package/widgetLibrary/TextAreaContainerNative/index.ts +0 -3
- package/widgetLibrary/TextAreaContainerNative/interface.ts +0 -29
- package/widgetLibrary/TextAreaContainerNative/panelConfig.tsx +0 -180
- package/widgetLibrary/TextAreaContainerNative/widgetConfig.tsx +0 -25
- package/widgetLibrary/UploadFile/UploadFile.tsx +0 -162
- package/widgetLibrary/UploadFile/index.tsx +0 -3
- package/widgetLibrary/UploadFile/panelConfig.tsx +0 -158
- package/widgetLibrary/UploadFile/widgetConfig.tsx +0 -32
- package/widgetLibrary/UploadWidget/eventHandlerConfig.ts +0 -14
- package/widgetLibrary/UploadWidget/index.tsx +0 -3
- package/widgetLibrary/UploadWidget/interface.tsx +0 -126
- package/widgetLibrary/UploadWidget/panelConfig.tsx +0 -291
- package/widgetLibrary/UploadWidget/style.tsx +0 -13
- package/widgetLibrary/UploadWidget/upload.tsx +0 -349
- package/widgetLibrary/UploadWidget/util.ts +0 -1
- package/widgetLibrary/UploadWidget/widgetConfig.tsx +0 -30
- package/widgetLibrary/WidgetLoading/index.tsx +0 -16
- package/widgetLibrary/WidgetLoading/style.ts +0 -9
- package/widgetLibrary/componentListBuildet.tsx +0 -89
- package/widgetLibrary/interface.ts +0 -156
- package/widgetLibrary/widgetBuilder.tsx +0 -327
|
@@ -1,1150 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { CaseReducer, PayloadAction } from "@reduxjs/toolkit"
|
|
3
|
-
import { klona } from "klona/json"
|
|
4
|
-
import { difference, set, unset } from "lodash-es"
|
|
5
|
-
import {
|
|
6
|
-
BatchUpdateComponentNodeLayoutInfoPayload,
|
|
7
|
-
LayoutInfo,
|
|
8
|
-
UpdateComponentNodeLayoutInfoPayload,
|
|
9
|
-
UpdateComponentPositionPayload,
|
|
10
|
-
UpdateComponentSlicePropsPayload,
|
|
11
|
-
} from "@/redux/currentApp/components/componentsPayload"
|
|
12
|
-
import { searchComponentFromMap } from "@/redux/currentApp/components/componentsSelector"
|
|
13
|
-
import {
|
|
14
|
-
// AddModalComponentPayload,
|
|
15
|
-
AddSectionViewByConfigPayload,
|
|
16
|
-
AddSectionViewPayload,
|
|
17
|
-
AddTargetPageSectionPayload,
|
|
18
|
-
ComponentMapNode,
|
|
19
|
-
ComponentTreeNode,
|
|
20
|
-
ComponentsInitialState,
|
|
21
|
-
ComponentsState,
|
|
22
|
-
DeleteComponentNodePayload,
|
|
23
|
-
DeleteCurrentPageStylePayload,
|
|
24
|
-
DeleteGlobalStatePayload,
|
|
25
|
-
DeletePageNodePayload,
|
|
26
|
-
DeleteSectionViewPayload,
|
|
27
|
-
DeleteSubPageViewNodePayload,
|
|
28
|
-
DeleteTargetPageSectionPayload,
|
|
29
|
-
// RootComponentNode,
|
|
30
|
-
RootComponentNodeProps,
|
|
31
|
-
SectionViewShape,
|
|
32
|
-
SetGlobalStatePayload,
|
|
33
|
-
SortComponentNodeChildrenPayload,
|
|
34
|
-
UpdateComponentDisplayNamePayload,
|
|
35
|
-
UpdateComponentNodeHeightPayload,
|
|
36
|
-
UpdateComponentPropsPayload,
|
|
37
|
-
UpdateComponentReflowPayload,
|
|
38
|
-
UpdateCurrentPageStylePayload,
|
|
39
|
-
UpdateSectionViewPropsPayload,
|
|
40
|
-
// UpdateTargetPageLayoutPayload,
|
|
41
|
-
UpdateTargetPagePropsPayload,
|
|
42
|
-
ViewportSizeType,
|
|
43
|
-
} from "@/redux/currentApp/components/componentsState"
|
|
44
|
-
import {
|
|
45
|
-
flatTreeToMap, generateNewViewItem, generateNewViewItemFromBodySectionConfig, getNewWidgetPropsByUpdateSlice, isObject,
|
|
46
|
-
// transTreeToMap
|
|
47
|
-
} from "@/redux/utils"
|
|
48
|
-
import { generateSectionConfig, generateSectionContainerConfig } from "@/utils/generators/generatePageOrSectionConfig"
|
|
49
|
-
import { DisplayNameGenerator } from "@/utils/generators/generateDisplayName"
|
|
50
|
-
import _ from "lodash"
|
|
51
|
-
|
|
52
|
-
function removeDisplayNames(
|
|
53
|
-
targetComponentNode: ComponentMapNode,
|
|
54
|
-
components: ComponentsState,
|
|
55
|
-
) {
|
|
56
|
-
const needDeleteDisplayNames: string[] = [targetComponentNode.displayName]
|
|
57
|
-
delete components[targetComponentNode.displayName]
|
|
58
|
-
targetComponentNode.childrenNode?.forEach((childDisplayName) => {
|
|
59
|
-
return needDeleteDisplayNames.push(
|
|
60
|
-
...removeDisplayNames(components[childDisplayName], components),
|
|
61
|
-
)
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
return needDeleteDisplayNames
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export const initComponentReducer: CaseReducer<
|
|
68
|
-
ComponentsState,
|
|
69
|
-
PayloadAction<ComponentsState>
|
|
70
|
-
> = (_state, action) => {
|
|
71
|
-
return action.payload
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// update real-time
|
|
75
|
-
export const addComponentReducer: CaseReducer<
|
|
76
|
-
ComponentsState,
|
|
77
|
-
PayloadAction<ComponentTreeNode[]>
|
|
78
|
-
> = (state, action) => {
|
|
79
|
-
action.payload.forEach((dealRootNode) => {
|
|
80
|
-
const dealNodeMap = flatTreeToMap(dealRootNode)
|
|
81
|
-
if (state == null || dealRootNode.parentNode == null) {
|
|
82
|
-
return state
|
|
83
|
-
} else {
|
|
84
|
-
const parentNode = searchComponentFromMap(state, dealRootNode.parentNode)
|
|
85
|
-
if (parentNode != null) {
|
|
86
|
-
if (dealRootNode.props) {
|
|
87
|
-
dealRootNode.props = getNewWidgetPropsByUpdateSlice(
|
|
88
|
-
dealRootNode.props ?? {},
|
|
89
|
-
{},
|
|
90
|
-
)
|
|
91
|
-
}
|
|
92
|
-
if (!Array.isArray(parentNode.childrenNode)) {
|
|
93
|
-
parentNode.childrenNode = [dealRootNode.displayName]
|
|
94
|
-
} else {
|
|
95
|
-
parentNode.childrenNode.push(dealRootNode.displayName)
|
|
96
|
-
}
|
|
97
|
-
Object.keys(dealNodeMap).forEach((key) => {
|
|
98
|
-
const node = dealNodeMap[key]
|
|
99
|
-
if (node.props) {
|
|
100
|
-
node.props = getNewWidgetPropsByUpdateSlice(node.props ?? {}, {})
|
|
101
|
-
}
|
|
102
|
-
state[key] = node
|
|
103
|
-
})
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
})
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// export const addModalComponentReducer: CaseReducer<
|
|
110
|
-
// ComponentsState,
|
|
111
|
-
// PayloadAction<AddModalComponentPayload>
|
|
112
|
-
// > = (state, action) => {
|
|
113
|
-
// const { currentPageDisplayName, modalComponentNode } = action.payload
|
|
114
|
-
// if (!currentPageDisplayName || !modalComponentNode) {
|
|
115
|
-
// return state
|
|
116
|
-
// }
|
|
117
|
-
// const currentPageNode = searchComponentFromMap(state, currentPageDisplayName)
|
|
118
|
-
// if (currentPageNode == null || !Array.isArray(currentPageNode.childrenNode))
|
|
119
|
-
// return state
|
|
120
|
-
// const modalSectionNodeDisplayName = currentPageNode.childrenNode.find(
|
|
121
|
-
// (childDisplayName) => {
|
|
122
|
-
// return state[childDisplayName].type === "MODAL_SECTION_NODE"
|
|
123
|
-
// },
|
|
124
|
-
// )
|
|
125
|
-
// if (!modalSectionNodeDisplayName) {
|
|
126
|
-
// const newModalSectionNode = transTreeToMap(
|
|
127
|
-
// generateModalSectionConfig(currentPageDisplayName, "modalSection"),
|
|
128
|
-
// )
|
|
129
|
-
// modalComponentNode.parentNode = newModalSectionNode.displayName
|
|
130
|
-
// newModalSectionNode.childrenNode = [modalComponentNode.displayName]
|
|
131
|
-
// currentPageNode.childrenNode.push(newModalSectionNode.displayName)
|
|
132
|
-
// state[newModalSectionNode.displayName] = newModalSectionNode
|
|
133
|
-
// } else {
|
|
134
|
-
// modalComponentNode.parentNode = modalSectionNodeDisplayName
|
|
135
|
-
// if (!Array.isArray(state[modalSectionNodeDisplayName].childrenNode)) {
|
|
136
|
-
// state[modalSectionNodeDisplayName].childrenNode = []
|
|
137
|
-
// }
|
|
138
|
-
// const needAddNode = flatTreeToMap(modalComponentNode)
|
|
139
|
-
// Object.keys(needAddNode).forEach((key) => {
|
|
140
|
-
// const node = needAddNode[key]
|
|
141
|
-
// if (node.props) {
|
|
142
|
-
// node.props = getNewWidgetPropsByUpdateSlice(node.props ?? {}, {})
|
|
143
|
-
// }
|
|
144
|
-
// state[key] = node
|
|
145
|
-
// })
|
|
146
|
-
// state[modalSectionNodeDisplayName].childrenNode.push(
|
|
147
|
-
// modalComponentNode.displayName,
|
|
148
|
-
// )
|
|
149
|
-
// }
|
|
150
|
-
// }
|
|
151
|
-
|
|
152
|
-
export const deleteComponentNodeReducer: CaseReducer<
|
|
153
|
-
ComponentsState,
|
|
154
|
-
PayloadAction<DeleteComponentNodePayload>
|
|
155
|
-
> = (state, action) => {
|
|
156
|
-
const { displayNames } = action.payload
|
|
157
|
-
if (state == null) {
|
|
158
|
-
return
|
|
159
|
-
}
|
|
160
|
-
const rootNode = state
|
|
161
|
-
const tempTargetNode = searchComponentFromMap(rootNode, displayNames[0])
|
|
162
|
-
if (!tempTargetNode) return
|
|
163
|
-
const parentNodeDisplayName = tempTargetNode.parentNode
|
|
164
|
-
const parentNode = searchComponentFromMap(rootNode, parentNodeDisplayName)
|
|
165
|
-
if (!parentNode || !Array.isArray(parentNode.childrenNode)) return
|
|
166
|
-
const needRemoveDisplayName: string[] = []
|
|
167
|
-
const newChildrenNode = parentNode.childrenNode.filter((childDisplayName) => {
|
|
168
|
-
if (displayNames.includes(childDisplayName)) {
|
|
169
|
-
const removedDisplayNames = removeDisplayNames(
|
|
170
|
-
state[childDisplayName],
|
|
171
|
-
state,
|
|
172
|
-
)
|
|
173
|
-
needRemoveDisplayName.push(...removedDisplayNames)
|
|
174
|
-
return false
|
|
175
|
-
}
|
|
176
|
-
return true
|
|
177
|
-
})
|
|
178
|
-
parentNode.childrenNode = newChildrenNode
|
|
179
|
-
DisplayNameGenerator.removeDisplayNameMulti(needRemoveDisplayName)
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export const deletePageNodeReducer: CaseReducer<
|
|
183
|
-
ComponentsState,
|
|
184
|
-
PayloadAction<DeletePageNodePayload>
|
|
185
|
-
> = (state, action) => {
|
|
186
|
-
const { displayName } = action.payload
|
|
187
|
-
if (state == null) {
|
|
188
|
-
return
|
|
189
|
-
}
|
|
190
|
-
const rootNode = state.root
|
|
191
|
-
|
|
192
|
-
const searchNode = searchComponentFromMap(state, displayName)
|
|
193
|
-
if (!searchNode) return
|
|
194
|
-
const parentNode = rootNode
|
|
195
|
-
const childrenNodes = parentNode.childrenNode
|
|
196
|
-
const currentIndex = childrenNodes.findIndex((value) => {
|
|
197
|
-
return value === searchNode.displayName
|
|
198
|
-
})
|
|
199
|
-
if (currentIndex === -1) return
|
|
200
|
-
const indexOfSortedKey = parentNode.props?.pageSortedKey.findIndex(
|
|
201
|
-
(key: string) => key === displayName,
|
|
202
|
-
)
|
|
203
|
-
if (indexOfSortedKey === -1) return
|
|
204
|
-
const targetNode = childrenNodes[currentIndex]
|
|
205
|
-
const needDeleteDisplayNames = removeDisplayNames(state[targetNode], state)
|
|
206
|
-
DisplayNameGenerator.removeDisplayNameMulti(needDeleteDisplayNames)
|
|
207
|
-
childrenNodes.splice(currentIndex, 1)
|
|
208
|
-
parentNode.props!.pageSortedKey.splice(indexOfSortedKey, 1)
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export const sortComponentNodeChildrenReducer: CaseReducer<
|
|
212
|
-
ComponentsState,
|
|
213
|
-
PayloadAction<SortComponentNodeChildrenPayload>
|
|
214
|
-
> = (state, action) => {
|
|
215
|
-
const { parentDisplayName, newChildrenNode } = action.payload
|
|
216
|
-
const parentNode = searchComponentFromMap(state, parentDisplayName)
|
|
217
|
-
if (!parentNode) return
|
|
218
|
-
|
|
219
|
-
parentNode.childrenNode = newChildrenNode
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export const updateComponentPropsReducer: CaseReducer<
|
|
223
|
-
ComponentsState,
|
|
224
|
-
PayloadAction<UpdateComponentPropsPayload>
|
|
225
|
-
> = (state, action) => {
|
|
226
|
-
const { displayName, updateSlice } = action.payload
|
|
227
|
-
if (!isObject(updateSlice) || !displayName) {
|
|
228
|
-
return
|
|
229
|
-
}
|
|
230
|
-
const node = searchComponentFromMap(state, displayName)
|
|
231
|
-
if (!node) return
|
|
232
|
-
const widgetProps = node.props || {}
|
|
233
|
-
const clonedWidgetProps = klona(widgetProps)
|
|
234
|
-
node.props = getNewWidgetPropsByUpdateSlice(updateSlice, clonedWidgetProps)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export const setComponentPropsReducer: CaseReducer<
|
|
238
|
-
ComponentsState,
|
|
239
|
-
PayloadAction<UpdateComponentPropsPayload>
|
|
240
|
-
> = (state, action) => {
|
|
241
|
-
const { displayName, updateSlice } = action.payload
|
|
242
|
-
if (!isObject(updateSlice) || !displayName) {
|
|
243
|
-
return
|
|
244
|
-
}
|
|
245
|
-
const node = searchComponentFromMap(state, displayName)
|
|
246
|
-
if (!node) return
|
|
247
|
-
node.props = getNewWidgetPropsByUpdateSlice(updateSlice, {})
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export const updateMultiComponentPropsReducer: CaseReducer<
|
|
251
|
-
ComponentsState,
|
|
252
|
-
PayloadAction<UpdateComponentPropsPayload[]>
|
|
253
|
-
> = (state, action) => {
|
|
254
|
-
action.payload.forEach(({ displayName, updateSlice }) => {
|
|
255
|
-
if (!isObject(updateSlice) || !displayName) {
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
const node = searchComponentFromMap(state, displayName)
|
|
259
|
-
if (!node) return
|
|
260
|
-
const widgetProps = node.props || {}
|
|
261
|
-
const clonedWidgetProps = klona(widgetProps)
|
|
262
|
-
node.props = getNewWidgetPropsByUpdateSlice(updateSlice, clonedWidgetProps)
|
|
263
|
-
})
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export const batchUpdateMultiComponentSlicePropsReducer: CaseReducer<
|
|
267
|
-
ComponentsState,
|
|
268
|
-
PayloadAction<UpdateComponentSlicePropsPayload[]>
|
|
269
|
-
> = (state, action) => {
|
|
270
|
-
action.payload.forEach(({ displayName, propsSlice }) => {
|
|
271
|
-
if (!isObject(propsSlice) || !displayName) {
|
|
272
|
-
return
|
|
273
|
-
}
|
|
274
|
-
const node = searchComponentFromMap(state, displayName)
|
|
275
|
-
if (!node) return
|
|
276
|
-
const widgetProps = node.props || {}
|
|
277
|
-
const clonedWidgetProps = klona(widgetProps)
|
|
278
|
-
Object.keys(propsSlice).forEach((path) => {
|
|
279
|
-
const newValue = propsSlice[path]
|
|
280
|
-
set(clonedWidgetProps, path, newValue)
|
|
281
|
-
})
|
|
282
|
-
node.props = clonedWidgetProps
|
|
283
|
-
})
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
export const updateComponentDisplayNameReducer: CaseReducer<
|
|
287
|
-
ComponentsState,
|
|
288
|
-
PayloadAction<UpdateComponentDisplayNamePayload>
|
|
289
|
-
> = (state, action) => {
|
|
290
|
-
const { displayName, newDisplayName } = action.payload
|
|
291
|
-
DisplayNameGenerator.removeDisplayName(displayName)
|
|
292
|
-
DisplayNameGenerator.addDisplayNames([newDisplayName])
|
|
293
|
-
if (!newDisplayName || !displayName) {
|
|
294
|
-
return
|
|
295
|
-
}
|
|
296
|
-
const node = searchComponentFromMap(state, displayName)
|
|
297
|
-
if (!node) return
|
|
298
|
-
delete state[displayName]
|
|
299
|
-
node.displayName = newDisplayName
|
|
300
|
-
state[newDisplayName] = node
|
|
301
|
-
if (Array.isArray(node.childrenNode)) {
|
|
302
|
-
node.childrenNode.forEach((child) => {
|
|
303
|
-
state[child].parentNode = newDisplayName
|
|
304
|
-
})
|
|
305
|
-
}
|
|
306
|
-
const parentNode = searchComponentFromMap(state, node.parentNode)
|
|
307
|
-
if (parentNode && parentNode.props) {
|
|
308
|
-
parentNode.childrenNode = parentNode.childrenNode.map((child) => {
|
|
309
|
-
if (child === displayName) {
|
|
310
|
-
return newDisplayName
|
|
311
|
-
}
|
|
312
|
-
return child
|
|
313
|
-
})
|
|
314
|
-
if (Array.isArray(parentNode.props.pageSortedKey)) {
|
|
315
|
-
const indexOfOldDisplayName = parentNode.props.pageSortedKey.findIndex(
|
|
316
|
-
(originDisplayName) => originDisplayName === displayName,
|
|
317
|
-
)
|
|
318
|
-
if (indexOfOldDisplayName !== -1) {
|
|
319
|
-
parentNode.props.pageSortedKey.splice(
|
|
320
|
-
indexOfOldDisplayName,
|
|
321
|
-
1,
|
|
322
|
-
newDisplayName,
|
|
323
|
-
)
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
if (Array.isArray(parentNode.props.viewSortedKey)) {
|
|
327
|
-
const indexOfOldDisplayName = parentNode.props.viewSortedKey.findIndex(
|
|
328
|
-
(originDisplayName) => originDisplayName === displayName,
|
|
329
|
-
)
|
|
330
|
-
if (indexOfOldDisplayName !== -1) {
|
|
331
|
-
parentNode.props.pageSortedKey.splice(
|
|
332
|
-
indexOfOldDisplayName,
|
|
333
|
-
1,
|
|
334
|
-
newDisplayName,
|
|
335
|
-
)
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
if (parentNode.displayName === "root" && parentNode.props) {
|
|
339
|
-
if (parentNode.props.homepageDisplayName === displayName) {
|
|
340
|
-
parentNode.props.homepageDisplayName = newDisplayName
|
|
341
|
-
}
|
|
342
|
-
if (!parentNode.props.homepageDisplayName) {
|
|
343
|
-
parentNode.props.homepageDisplayName = parentNode.props.pageSortedKey[0]
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
const scaleChildrenNodeHelper = (
|
|
350
|
-
state: ComponentsState,
|
|
351
|
-
displayName: string,
|
|
352
|
-
columnNumberWhenDrag: number,
|
|
353
|
-
columnNumberWhenDrop: number,
|
|
354
|
-
) => {
|
|
355
|
-
const targetNode = searchComponentFromMap(state, displayName)
|
|
356
|
-
if (!targetNode) return
|
|
357
|
-
if (Array.isArray(targetNode.childrenNode)) {
|
|
358
|
-
targetNode.childrenNode.forEach((nodeDisplayName) =>
|
|
359
|
-
scaleChildrenNodeHelper(
|
|
360
|
-
state,
|
|
361
|
-
nodeDisplayName,
|
|
362
|
-
columnNumberWhenDrag,
|
|
363
|
-
columnNumberWhenDrop,
|
|
364
|
-
),
|
|
365
|
-
)
|
|
366
|
-
}
|
|
367
|
-
targetNode.w = Math.floor(
|
|
368
|
-
targetNode.w * (columnNumberWhenDrop / columnNumberWhenDrag),
|
|
369
|
-
)
|
|
370
|
-
targetNode.x = Math.floor(
|
|
371
|
-
targetNode.x * (columnNumberWhenDrop / columnNumberWhenDrag),
|
|
372
|
-
)
|
|
373
|
-
}
|
|
374
|
-
export const updateComponentPositionReducer: CaseReducer<
|
|
375
|
-
ComponentsState,
|
|
376
|
-
PayloadAction<UpdateComponentPositionPayload>
|
|
377
|
-
> = (state, action) => {
|
|
378
|
-
const {
|
|
379
|
-
oldParentNodeDisplayName,
|
|
380
|
-
newParentNodeDisplayName,
|
|
381
|
-
updateSlices,
|
|
382
|
-
columnNumberWhenDrag = 1,
|
|
383
|
-
columnNumberWhenDrop = 1,
|
|
384
|
-
} = action.payload
|
|
385
|
-
|
|
386
|
-
if (oldParentNodeDisplayName === newParentNodeDisplayName) {
|
|
387
|
-
updateSlices.forEach((slice) => {
|
|
388
|
-
const currentNode = searchComponentFromMap(state, slice.displayName)
|
|
389
|
-
if (!currentNode) return
|
|
390
|
-
currentNode.x = slice.x
|
|
391
|
-
currentNode.y = slice.y
|
|
392
|
-
currentNode.w = slice.w
|
|
393
|
-
currentNode.h = slice.h
|
|
394
|
-
})
|
|
395
|
-
return
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
updateSlices.forEach((slice) => {
|
|
399
|
-
// delete Old
|
|
400
|
-
const currentNode = searchComponentFromMap(state, slice.displayName)
|
|
401
|
-
if (!currentNode) return
|
|
402
|
-
const olaParentNode = searchComponentFromMap(
|
|
403
|
-
state,
|
|
404
|
-
oldParentNodeDisplayName,
|
|
405
|
-
)
|
|
406
|
-
if (!olaParentNode) return
|
|
407
|
-
const currentIndex = olaParentNode.childrenNode.findIndex(
|
|
408
|
-
(childDisplayName) => childDisplayName === currentNode.displayName,
|
|
409
|
-
)
|
|
410
|
-
if (currentIndex === -1) return
|
|
411
|
-
olaParentNode.childrenNode.splice(currentIndex, 1)
|
|
412
|
-
// add New
|
|
413
|
-
const newParentNode = searchComponentFromMap(
|
|
414
|
-
state,
|
|
415
|
-
newParentNodeDisplayName,
|
|
416
|
-
)
|
|
417
|
-
if (!newParentNode) return
|
|
418
|
-
currentNode.parentNode = newParentNodeDisplayName
|
|
419
|
-
currentNode.x = slice.x
|
|
420
|
-
currentNode.y = slice.y
|
|
421
|
-
currentNode.w = slice.w
|
|
422
|
-
currentNode.h = slice.h
|
|
423
|
-
if (Array.isArray(currentNode.childrenNode)) {
|
|
424
|
-
currentNode.childrenNode.forEach((childDisplayName) =>
|
|
425
|
-
scaleChildrenNodeHelper(
|
|
426
|
-
state,
|
|
427
|
-
childDisplayName,
|
|
428
|
-
columnNumberWhenDrag,
|
|
429
|
-
columnNumberWhenDrop,
|
|
430
|
-
),
|
|
431
|
-
)
|
|
432
|
-
}
|
|
433
|
-
if (!Array.isArray(newParentNode.childrenNode)) {
|
|
434
|
-
newParentNode.childrenNode = [currentNode.displayName]
|
|
435
|
-
} else {
|
|
436
|
-
newParentNode.childrenNode.push(currentNode.displayName)
|
|
437
|
-
}
|
|
438
|
-
})
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
export const updateComponentReflowReducer: CaseReducer<
|
|
442
|
-
ComponentsState,
|
|
443
|
-
PayloadAction<UpdateComponentReflowPayload[]>
|
|
444
|
-
> = (state, action) => {
|
|
445
|
-
const payloadArray = action.payload
|
|
446
|
-
payloadArray.forEach((payload) => {
|
|
447
|
-
const { parentDisplayName, childNodes } = payload
|
|
448
|
-
const targetNode = searchComponentFromMap(state, parentDisplayName)
|
|
449
|
-
if (targetNode) {
|
|
450
|
-
childNodes.forEach((node) => {
|
|
451
|
-
state[node.displayName] = {
|
|
452
|
-
...state[node.displayName],
|
|
453
|
-
w: node.w,
|
|
454
|
-
h: node.h,
|
|
455
|
-
x: node.x,
|
|
456
|
-
y: node.y,
|
|
457
|
-
}
|
|
458
|
-
})
|
|
459
|
-
}
|
|
460
|
-
})
|
|
461
|
-
}
|
|
462
|
-
function filterChildrenNodes(componentState: any, componentDisplayName: string) {
|
|
463
|
-
const result = {};
|
|
464
|
-
|
|
465
|
-
// Recursive function to collect all nodes and their children
|
|
466
|
-
function collectChildren(nodeKey) {
|
|
467
|
-
if (!componentState[nodeKey] || !componentState[nodeKey].childrenNode) {
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
result[nodeKey] = componentState[nodeKey]
|
|
471
|
-
componentState[nodeKey].childrenNode.forEach(childKey => collectChildren(childKey));
|
|
472
|
-
}
|
|
473
|
-
collectChildren(componentDisplayName);
|
|
474
|
-
return result;
|
|
475
|
-
}
|
|
476
|
-
export const updateTargetPageLayoutReducer: CaseReducer<
|
|
477
|
-
ComponentsState,
|
|
478
|
-
PayloadAction<{
|
|
479
|
-
layout: ComponentsState,
|
|
480
|
-
layoutName: string,
|
|
481
|
-
}>
|
|
482
|
-
> = (state, action) => {
|
|
483
|
-
if (!state) return state
|
|
484
|
-
let currentPageBody: ComponentsState = null;
|
|
485
|
-
const newPageConfig: any = _.cloneDeep(action.payload.layout?.components)
|
|
486
|
-
if (newPageConfig.root.mode === "page") {
|
|
487
|
-
delete newPageConfig.body;
|
|
488
|
-
const isCurrentTemplateNone = state.root.templateName === "none"
|
|
489
|
-
currentPageBody = filterChildrenNodes(state, isCurrentTemplateNone ? "bodySection1-bodySectionContainer" : "body") || {};
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
let currentPageConfig;
|
|
493
|
-
if (_.isEmpty(currentPageBody.childNodes)) {
|
|
494
|
-
const currentPageName = newPageConfig.root.childrenNode[0];
|
|
495
|
-
newPageConfig[currentPageName].props.layout = action.payload.layoutName
|
|
496
|
-
newPageConfig["root"].templateName = action.payload.layoutName
|
|
497
|
-
currentPageConfig = _.cloneDeep(newPageConfig);
|
|
498
|
-
} else {
|
|
499
|
-
currentPageConfig = { ...newPageConfig, ...currentPageBody }
|
|
500
|
-
DisplayNameGenerator.updateDisplayNameList(newPageConfig, []);
|
|
501
|
-
}
|
|
502
|
-
Object.keys(currentPageConfig).forEach((displayName) => {
|
|
503
|
-
state[displayName] = currentPageConfig[displayName]
|
|
504
|
-
})
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
export const updateTargetPagePropsReducer: CaseReducer<
|
|
508
|
-
ComponentsState,
|
|
509
|
-
PayloadAction<UpdateTargetPagePropsPayload>
|
|
510
|
-
> = (state, action) => {
|
|
511
|
-
const rootNode = state.root
|
|
512
|
-
if (!rootNode?.props) return state
|
|
513
|
-
const { pageName, newProps } = action.payload
|
|
514
|
-
const currentPage = rootNode.childrenNode.find(
|
|
515
|
-
(childDisplayName) => childDisplayName === pageName,
|
|
516
|
-
)
|
|
517
|
-
if (!currentPage) return state
|
|
518
|
-
state[currentPage].props = {
|
|
519
|
-
...state[currentPage].props,
|
|
520
|
-
...newProps,
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
const generationPageOptionsWhenDelete = (
|
|
525
|
-
deletedSectionName:
|
|
526
|
-
| "leftSection"
|
|
527
|
-
| "rightSection"
|
|
528
|
-
| "headerSection"
|
|
529
|
-
| "footerSection",
|
|
530
|
-
) => {
|
|
531
|
-
switch (deletedSectionName) {
|
|
532
|
-
case "leftSection": {
|
|
533
|
-
return {
|
|
534
|
-
hasLeft: false,
|
|
535
|
-
leftWidth: 0,
|
|
536
|
-
leftPosition: "NONE",
|
|
537
|
-
layout: "Custom",
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
case "rightSection": {
|
|
541
|
-
return {
|
|
542
|
-
hasRight: false,
|
|
543
|
-
rightWidth: 0,
|
|
544
|
-
rightPosition: "NONE",
|
|
545
|
-
layout: "Custom",
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
case "headerSection": {
|
|
549
|
-
return {
|
|
550
|
-
hasHeader: false,
|
|
551
|
-
topHeight: 0,
|
|
552
|
-
layout: "Custom",
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
case "footerSection": {
|
|
556
|
-
return {
|
|
557
|
-
hasFooter: false,
|
|
558
|
-
bottomHeight: 0,
|
|
559
|
-
layout: "Custom",
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
export const deleteTargetPageSectionReducer: CaseReducer<
|
|
566
|
-
ComponentsState,
|
|
567
|
-
PayloadAction<DeleteTargetPageSectionPayload>
|
|
568
|
-
> = (state, action) => {
|
|
569
|
-
const rootNode = state.root
|
|
570
|
-
if (!rootNode?.childrenNode) return state
|
|
571
|
-
const { pageName, deleteSectionName } = action.payload
|
|
572
|
-
const targetPageIndex = rootNode.childrenNode.findIndex(
|
|
573
|
-
(childDisplayName) => childDisplayName === pageName,
|
|
574
|
-
)
|
|
575
|
-
if (targetPageIndex === -1) return state
|
|
576
|
-
const targetPage = state[rootNode.childrenNode[targetPageIndex]]
|
|
577
|
-
|
|
578
|
-
targetPage.props = {
|
|
579
|
-
...targetPage.props,
|
|
580
|
-
...generationPageOptionsWhenDelete(deleteSectionName),
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
const targetPageChildrenNodeIndex = targetPage.childrenNode.findIndex(
|
|
584
|
-
(childDisplayName) => childDisplayName === deleteSectionName,
|
|
585
|
-
)
|
|
586
|
-
if (targetPageChildrenNodeIndex === -1) return state
|
|
587
|
-
const targetPageChildeNode =
|
|
588
|
-
targetPage.childrenNode[targetPageChildrenNodeIndex]
|
|
589
|
-
const needDeleteDisplayNames = removeDisplayNames(
|
|
590
|
-
state[targetPageChildeNode],
|
|
591
|
-
state,
|
|
592
|
-
)
|
|
593
|
-
DisplayNameGenerator.removeDisplayNameMulti(needDeleteDisplayNames)
|
|
594
|
-
targetPage.childrenNode.splice(targetPageChildrenNodeIndex, 1)
|
|
595
|
-
rootNode.childrenNode.splice(targetPageIndex, 1, targetPage.displayName)
|
|
596
|
-
}
|
|
597
|
-
export const addTargetPageSectionReducer: CaseReducer<
|
|
598
|
-
ComponentsState,
|
|
599
|
-
PayloadAction<AddTargetPageSectionPayload>
|
|
600
|
-
> = (state, action) => {
|
|
601
|
-
const rootNode = state.root
|
|
602
|
-
if (!rootNode?.childrenNode) return state
|
|
603
|
-
const { pageName, addedSectionName, originSectionNode } = action.payload
|
|
604
|
-
const targetPageIndex = rootNode.childrenNode.findIndex(
|
|
605
|
-
(childDisplayName) => childDisplayName === pageName,
|
|
606
|
-
)
|
|
607
|
-
if (targetPageIndex === -1) return state
|
|
608
|
-
const targetPage = state[rootNode.childrenNode[targetPageIndex]]
|
|
609
|
-
|
|
610
|
-
targetPage.props = {
|
|
611
|
-
...targetPage.props,
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
if (originSectionNode) {
|
|
615
|
-
const newOriginSectionNode = klona(originSectionNode)
|
|
616
|
-
newOriginSectionNode.parentNode = targetPage.displayName
|
|
617
|
-
targetPage.childrenNode.push(newOriginSectionNode.displayName)
|
|
618
|
-
const needAddMapNode = flatTreeToMap(newOriginSectionNode)
|
|
619
|
-
Object.keys(needAddMapNode).forEach((displayName) => {
|
|
620
|
-
state[displayName] = needAddMapNode[displayName]
|
|
621
|
-
})
|
|
622
|
-
} else {
|
|
623
|
-
let bodySectionSubPaths: string[] = []
|
|
624
|
-
const bodySectionNode = targetPage.childrenNode.find(
|
|
625
|
-
(childDisplayName) => childDisplayName === "bodySection",
|
|
626
|
-
)
|
|
627
|
-
if (bodySectionNode) {
|
|
628
|
-
bodySectionSubPaths =
|
|
629
|
-
state[bodySectionNode].props?.sectionViewConfigs.map(
|
|
630
|
-
(config: Record<string, string>) => config.path,
|
|
631
|
-
) ?? []
|
|
632
|
-
}
|
|
633
|
-
if (bodySectionSubPaths.length === 0) {
|
|
634
|
-
bodySectionSubPaths = ["sub-page1"]
|
|
635
|
-
}
|
|
636
|
-
const config = generateSectionConfig(
|
|
637
|
-
pageName,
|
|
638
|
-
addedSectionName,
|
|
639
|
-
bodySectionSubPaths,
|
|
640
|
-
)
|
|
641
|
-
if (!config) return state
|
|
642
|
-
targetPage.childrenNode.push(config.displayName)
|
|
643
|
-
const needAddMapNode = flatTreeToMap(config)
|
|
644
|
-
Object.keys(needAddMapNode).forEach((displayName) => {
|
|
645
|
-
state[displayName] = needAddMapNode[displayName]
|
|
646
|
-
})
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
export const updateRootNodePropsReducer: CaseReducer<
|
|
651
|
-
ComponentsState,
|
|
652
|
-
PayloadAction<Partial<RootComponentNodeProps>>
|
|
653
|
-
> = (state, action) => {
|
|
654
|
-
const rootNode = state.root
|
|
655
|
-
if (!rootNode) return state
|
|
656
|
-
if (!rootNode.props) {
|
|
657
|
-
rootNode.props = action.payload
|
|
658
|
-
} else {
|
|
659
|
-
rootNode.props = {
|
|
660
|
-
...rootNode.props,
|
|
661
|
-
...action.payload,
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export const addPageNodeWithSortOrderReducer: CaseReducer<
|
|
667
|
-
ComponentsState,
|
|
668
|
-
PayloadAction<ComponentTreeNode>
|
|
669
|
-
> = (state, action) => {
|
|
670
|
-
const node = action.payload
|
|
671
|
-
const parentNode = searchComponentFromMap(
|
|
672
|
-
state,
|
|
673
|
-
node.parentNode,
|
|
674
|
-
|
|
675
|
-
) as any | null
|
|
676
|
-
if (!parentNode) return
|
|
677
|
-
parentNode.props.pageSortedKey.push(node.displayName)
|
|
678
|
-
if (!Array.isArray(parentNode.childrenNode)) {
|
|
679
|
-
parentNode.childrenNode = [node.displayName]
|
|
680
|
-
} else {
|
|
681
|
-
parentNode.childrenNode.push(node.displayName)
|
|
682
|
-
}
|
|
683
|
-
const needAddMapNode = flatTreeToMap(node)
|
|
684
|
-
Object.keys(needAddMapNode).forEach((displayName) => {
|
|
685
|
-
state[displayName] = needAddMapNode[displayName]
|
|
686
|
-
})
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export const addSectionViewHelper = (
|
|
690
|
-
sectionViewNodeConfig: ComponentTreeNode,
|
|
691
|
-
sectionViewConfig: SectionViewShape,
|
|
692
|
-
sectionNode: ComponentMapNode,
|
|
693
|
-
originChildrenNode?: ComponentTreeNode[],
|
|
694
|
-
) => {
|
|
695
|
-
if (originChildrenNode && Array.isArray(originChildrenNode)) {
|
|
696
|
-
let cloneDeepChildrenNode = JSON.parse(
|
|
697
|
-
JSON.stringify(originChildrenNode),
|
|
698
|
-
) as ComponentTreeNode[]
|
|
699
|
-
cloneDeepChildrenNode = cloneDeepChildrenNode.map((node) => ({
|
|
700
|
-
...node,
|
|
701
|
-
parentNode: sectionViewNodeConfig.displayName,
|
|
702
|
-
}))
|
|
703
|
-
sectionViewNodeConfig.childrenNode = cloneDeepChildrenNode
|
|
704
|
-
}
|
|
705
|
-
if (Array.isArray(sectionNode.childrenNode)) {
|
|
706
|
-
sectionNode.childrenNode.push(sectionViewNodeConfig.displayName)
|
|
707
|
-
} else {
|
|
708
|
-
sectionNode.childrenNode = [sectionViewNodeConfig.displayName]
|
|
709
|
-
}
|
|
710
|
-
sectionNode.props!.viewSortedKey.push(sectionViewNodeConfig.displayName)
|
|
711
|
-
sectionNode.props!.sectionViewConfigs.push(sectionViewConfig)
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
export const addSectionViewReducer: CaseReducer<
|
|
715
|
-
ComponentsState,
|
|
716
|
-
PayloadAction<AddSectionViewPayload>
|
|
717
|
-
> = (state, action) => {
|
|
718
|
-
const { parentNodeName, sectionName, originChildrenNode } = action.payload
|
|
719
|
-
|
|
720
|
-
const parentNode = searchComponentFromMap(state, parentNodeName)
|
|
721
|
-
if (!parentNode || !parentNode.props) return
|
|
722
|
-
let bodySectionSubPaths: string[] = []
|
|
723
|
-
if (sectionName !== "bodySection") {
|
|
724
|
-
const pageNode = searchComponentFromMap(state, parentNode.parentNode)
|
|
725
|
-
if (!pageNode) return
|
|
726
|
-
const bodySectionNodeDisplayName = pageNode.childrenNode.find(
|
|
727
|
-
(childDisplayName) => childDisplayName === "bodySection",
|
|
728
|
-
)
|
|
729
|
-
if (!bodySectionNodeDisplayName) return
|
|
730
|
-
bodySectionSubPaths =
|
|
731
|
-
state[bodySectionNodeDisplayName].props?.sectionViewConfigs.map(
|
|
732
|
-
(config: Record<string, string>) => config.path,
|
|
733
|
-
) ?? []
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
const config = generateSectionContainerConfig(
|
|
737
|
-
parentNodeName,
|
|
738
|
-
`${sectionName}Container`,
|
|
739
|
-
)
|
|
740
|
-
const hasPaths = parentNode.props.sectionViewConfigs.map(
|
|
741
|
-
(item: SectionViewShape) => item.path,
|
|
742
|
-
)
|
|
743
|
-
const diffSubPaths = difference(bodySectionSubPaths, hasPaths)
|
|
744
|
-
|
|
745
|
-
const newSectionViewConfig = generateNewViewItemFromBodySectionConfig(
|
|
746
|
-
hasPaths,
|
|
747
|
-
config.displayName,
|
|
748
|
-
parentNodeName,
|
|
749
|
-
diffSubPaths,
|
|
750
|
-
)
|
|
751
|
-
addSectionViewHelper(
|
|
752
|
-
config,
|
|
753
|
-
newSectionViewConfig,
|
|
754
|
-
parentNode,
|
|
755
|
-
originChildrenNode,
|
|
756
|
-
)
|
|
757
|
-
const needAddMapNode = flatTreeToMap(config)
|
|
758
|
-
Object.keys(needAddMapNode).forEach((displayName) => {
|
|
759
|
-
state[displayName] = needAddMapNode[displayName]
|
|
760
|
-
})
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
export const addSectionViewConfigByConfigReducer: CaseReducer<
|
|
764
|
-
ComponentsState,
|
|
765
|
-
PayloadAction<AddSectionViewByConfigPayload>
|
|
766
|
-
> = (state, action) => {
|
|
767
|
-
const {
|
|
768
|
-
parentNodeName,
|
|
769
|
-
originChildrenNode,
|
|
770
|
-
sectionViewNode,
|
|
771
|
-
sectionViewConfig,
|
|
772
|
-
} = action.payload
|
|
773
|
-
const parentNode = searchComponentFromMap(state, parentNodeName)
|
|
774
|
-
if (!parentNode || !parentNode.props) return
|
|
775
|
-
addSectionViewHelper(
|
|
776
|
-
sectionViewNode,
|
|
777
|
-
sectionViewConfig,
|
|
778
|
-
parentNode,
|
|
779
|
-
originChildrenNode,
|
|
780
|
-
)
|
|
781
|
-
const needAddMapNode = flatTreeToMap(sectionViewNode)
|
|
782
|
-
Object.keys(needAddMapNode).forEach((displayName) => {
|
|
783
|
-
state[displayName] = needAddMapNode[displayName]
|
|
784
|
-
})
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
export const updateSectionViewPropsReducer: CaseReducer<
|
|
788
|
-
ComponentsState,
|
|
789
|
-
PayloadAction<UpdateSectionViewPropsPayload>
|
|
790
|
-
> = (state, action) => {
|
|
791
|
-
const { parentNodeName, newProps } = action.payload
|
|
792
|
-
const parentNode = searchComponentFromMap(state, parentNodeName)
|
|
793
|
-
if (!parentNode || !parentNode.props) return
|
|
794
|
-
parentNode.props = {
|
|
795
|
-
...parentNode.props,
|
|
796
|
-
...newProps,
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
export const deleteSectionViewReducer: CaseReducer<
|
|
801
|
-
ComponentsState,
|
|
802
|
-
PayloadAction<DeleteSectionViewPayload>
|
|
803
|
-
> = (state, action) => {
|
|
804
|
-
const { viewDisplayName } = action.payload
|
|
805
|
-
const currentNode = searchComponentFromMap(state, viewDisplayName)
|
|
806
|
-
if (!currentNode) return
|
|
807
|
-
const parentNode = searchComponentFromMap(state, currentNode.parentNode)
|
|
808
|
-
if (!parentNode || !parentNode.props) return
|
|
809
|
-
const currentIndex = parentNode.childrenNode.findIndex(
|
|
810
|
-
(childDisplayName) => childDisplayName === viewDisplayName,
|
|
811
|
-
)
|
|
812
|
-
if (currentIndex === -1) return
|
|
813
|
-
const viewSortedKeyIndex = parentNode.props.viewSortedKey.findIndex(
|
|
814
|
-
(key: string) => key === viewDisplayName,
|
|
815
|
-
)
|
|
816
|
-
if (viewSortedKeyIndex === -1) return
|
|
817
|
-
const sectionViewConfigsIndex = parentNode.props.sectionViewConfigs.findIndex(
|
|
818
|
-
(config: SectionViewShape) => config.viewDisplayName === viewDisplayName,
|
|
819
|
-
)
|
|
820
|
-
if (sectionViewConfigsIndex === -1) return
|
|
821
|
-
const targetNode = parentNode.childrenNode[currentIndex]
|
|
822
|
-
if (!targetNode) return
|
|
823
|
-
const needDeleteDisplayNames = removeDisplayNames(state[targetNode], state)
|
|
824
|
-
DisplayNameGenerator.removeDisplayNameMulti(needDeleteDisplayNames)
|
|
825
|
-
parentNode.childrenNode.splice(currentIndex, 1)
|
|
826
|
-
parentNode.props.viewSortedKey.splice(viewSortedKeyIndex, 1)
|
|
827
|
-
parentNode.props.sectionViewConfigs.splice(sectionViewConfigsIndex, 1)
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
export const updateViewportSizeReducer: CaseReducer<
|
|
831
|
-
ComponentsState,
|
|
832
|
-
PayloadAction<{
|
|
833
|
-
viewportWidth?: number
|
|
834
|
-
viewportHeight?: number
|
|
835
|
-
viewportSizeType?: ViewportSizeType
|
|
836
|
-
}>
|
|
837
|
-
> = (state, action) => {
|
|
838
|
-
const rootNode = state.root
|
|
839
|
-
if (!rootNode) return
|
|
840
|
-
if (!rootNode.props) rootNode.props = {}
|
|
841
|
-
rootNode.props.viewportWidth = action.payload.viewportWidth
|
|
842
|
-
rootNode.props.viewportHeight = action.payload.viewportHeight
|
|
843
|
-
rootNode.props.viewportSizeType = action.payload.viewportSizeType
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
export const resetComponentsReducer: CaseReducer<
|
|
847
|
-
ComponentsState,
|
|
848
|
-
PayloadAction
|
|
849
|
-
> = () => {
|
|
850
|
-
return ComponentsInitialState
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
const updateComponentLayoutInfoHelper = (
|
|
854
|
-
state: ComponentsState,
|
|
855
|
-
displayName: string,
|
|
856
|
-
layoutInfo: Partial<LayoutInfo>,
|
|
857
|
-
) => {
|
|
858
|
-
const currentNode = searchComponentFromMap(state, displayName)
|
|
859
|
-
if (!currentNode || !layoutInfo || Object.keys(layoutInfo).length === 0)
|
|
860
|
-
return
|
|
861
|
-
; (Object.keys(layoutInfo) as Partial<Array<keyof LayoutInfo>>).forEach(
|
|
862
|
-
(key) => {
|
|
863
|
-
currentNode![key as keyof LayoutInfo] = layoutInfo[
|
|
864
|
-
key as keyof LayoutInfo
|
|
865
|
-
] as number
|
|
866
|
-
},
|
|
867
|
-
)
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
export const updateComponentNodeHeightReducer: CaseReducer<
|
|
871
|
-
ComponentsState,
|
|
872
|
-
PayloadAction<UpdateComponentNodeHeightPayload>
|
|
873
|
-
> = (state, action) => {
|
|
874
|
-
if (!state) return
|
|
875
|
-
const { displayName, height } = action.payload
|
|
876
|
-
const currentNode = searchComponentFromMap(state, displayName)
|
|
877
|
-
if (!currentNode) return
|
|
878
|
-
currentNode.h = Math.max(height, currentNode.minH)
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
export const updateComponentLayoutInfoReducer: CaseReducer<
|
|
882
|
-
ComponentsState,
|
|
883
|
-
PayloadAction<UpdateComponentNodeLayoutInfoPayload>
|
|
884
|
-
> = (state, action) => {
|
|
885
|
-
if (!state) return
|
|
886
|
-
const { displayName, layoutInfo } = action.payload
|
|
887
|
-
updateComponentLayoutInfoHelper(state, displayName, layoutInfo)
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
export const batchUpdateComponentLayoutInfoWhenReflowReducer: CaseReducer<
|
|
891
|
-
ComponentsState,
|
|
892
|
-
PayloadAction<BatchUpdateComponentNodeLayoutInfoPayload[]>
|
|
893
|
-
> = (state, action) => {
|
|
894
|
-
if (!state) return
|
|
895
|
-
action.payload.forEach((updateSlice) => {
|
|
896
|
-
const { displayName, layoutInfo } = updateSlice
|
|
897
|
-
updateComponentLayoutInfoHelper(state, displayName, layoutInfo)
|
|
898
|
-
})
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
export const batchUpdateComponentLayoutInfoReducer: CaseReducer<
|
|
902
|
-
ComponentsState,
|
|
903
|
-
PayloadAction<UpdateComponentNodeLayoutInfoPayload[]>
|
|
904
|
-
> = (state, action) => {
|
|
905
|
-
if (!state) return
|
|
906
|
-
action.payload.forEach((updateSlice) => {
|
|
907
|
-
const { displayName, layoutInfo } = updateSlice
|
|
908
|
-
updateComponentLayoutInfoHelper(state, displayName, layoutInfo)
|
|
909
|
-
})
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export const setGlobalStateReducer: CaseReducer<
|
|
913
|
-
ComponentsState,
|
|
914
|
-
PayloadAction<SetGlobalStatePayload>
|
|
915
|
-
> = (state, action) => {
|
|
916
|
-
const rootNode = state.root
|
|
917
|
-
if (!state || !rootNode) return
|
|
918
|
-
const { value, key, oldKey } = action.payload
|
|
919
|
-
const originGlobalData = rootNode.props?.globalData || {}
|
|
920
|
-
if (oldKey && Object.prototype.hasOwnProperty.call(originGlobalData, oldKey)) {
|
|
921
|
-
delete originGlobalData[oldKey]
|
|
922
|
-
}
|
|
923
|
-
const newProps = {
|
|
924
|
-
...rootNode.props,
|
|
925
|
-
globalData: {
|
|
926
|
-
...originGlobalData,
|
|
927
|
-
[key]: value,
|
|
928
|
-
},
|
|
929
|
-
}
|
|
930
|
-
rootNode.props = getNewWidgetPropsByUpdateSlice(
|
|
931
|
-
newProps ?? {},
|
|
932
|
-
rootNode.props ?? {},
|
|
933
|
-
)
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
export const deleteGlobalStateByKeyReducer: CaseReducer<
|
|
937
|
-
ComponentsState,
|
|
938
|
-
PayloadAction<DeleteGlobalStatePayload>
|
|
939
|
-
> = (state, action) => {
|
|
940
|
-
const rootNode = state.root
|
|
941
|
-
if (!rootNode || !rootNode.props) return
|
|
942
|
-
const { key } = action.payload
|
|
943
|
-
const originGlobalData = rootNode.props?.globalData || {}
|
|
944
|
-
// if (
|
|
945
|
-
// (Object.hasOwn && Object.hasOwn(originGlobalData, key)) ||
|
|
946
|
-
// Object.prototype.hasOwnProperty.call(originGlobalData, key)
|
|
947
|
-
// )
|
|
948
|
-
delete originGlobalData[key]
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
export const getNeedDeleteSectionViewDisplayNames = (
|
|
952
|
-
components: ComponentsState,
|
|
953
|
-
pageName: string,
|
|
954
|
-
subPagePath: string,
|
|
955
|
-
) => {
|
|
956
|
-
const pageNode = searchComponentFromMap(components, pageName)
|
|
957
|
-
if (!pageNode) return []
|
|
958
|
-
const sectionNodeDisplayNames = pageNode.childrenNode.filter(
|
|
959
|
-
(displayName) => components[displayName].type !== "MODAL_SECTION_NODE",
|
|
960
|
-
)
|
|
961
|
-
const needDeleteDisplayNames: string[] = []
|
|
962
|
-
sectionNodeDisplayNames.forEach((sectionNode) => {
|
|
963
|
-
const sectionViewConfigs =
|
|
964
|
-
components[sectionNode].props?.sectionViewConfigs ?? []
|
|
965
|
-
const targetSectionViewConfig = sectionViewConfigs.filter(
|
|
966
|
-
(config: Record<string, string>) => config.path === subPagePath,
|
|
967
|
-
)
|
|
968
|
-
const currentNeedDeleteDisplayNames = targetSectionViewConfig.map(
|
|
969
|
-
(config: Record<string, string>) => config.viewDisplayName,
|
|
970
|
-
)
|
|
971
|
-
needDeleteDisplayNames.push(...currentNeedDeleteDisplayNames)
|
|
972
|
-
})
|
|
973
|
-
return needDeleteDisplayNames
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
export const deleteSubPageViewNodeReducer: CaseReducer<
|
|
977
|
-
ComponentsState,
|
|
978
|
-
PayloadAction<DeleteSubPageViewNodePayload>
|
|
979
|
-
> = (state, action) => {
|
|
980
|
-
const { pageName, subPagePath } = action.payload
|
|
981
|
-
const rootNode = state.root
|
|
982
|
-
if (!state || !rootNode) return
|
|
983
|
-
const needDeleteSectionDisplayNames = getNeedDeleteSectionViewDisplayNames(
|
|
984
|
-
state,
|
|
985
|
-
pageName,
|
|
986
|
-
subPagePath,
|
|
987
|
-
)
|
|
988
|
-
|
|
989
|
-
needDeleteSectionDisplayNames.forEach((displayName) => {
|
|
990
|
-
const targetComponentNode = searchComponentFromMap(state, displayName)
|
|
991
|
-
if (!targetComponentNode) return
|
|
992
|
-
const parentNode = searchComponentFromMap(
|
|
993
|
-
state,
|
|
994
|
-
targetComponentNode.parentNode,
|
|
995
|
-
)
|
|
996
|
-
if (!parentNode) return
|
|
997
|
-
parentNode.childrenNode = parentNode.childrenNode.filter(
|
|
998
|
-
(childDisplayName) => childDisplayName !== displayName,
|
|
999
|
-
)
|
|
1000
|
-
parentNode.props!.viewSortedKey = parentNode.props?.viewSortedKey.filter(
|
|
1001
|
-
(key: string) => key !== displayName,
|
|
1002
|
-
)
|
|
1003
|
-
parentNode.props!.sectionViewConfigs =
|
|
1004
|
-
parentNode.props?.sectionViewConfigs.filter(
|
|
1005
|
-
(config: Record<string, string>) =>
|
|
1006
|
-
config.viewDisplayName !== displayName,
|
|
1007
|
-
)
|
|
1008
|
-
})
|
|
1009
|
-
needDeleteSectionDisplayNames.flatMap((displayName) =>
|
|
1010
|
-
removeDisplayNames(state[displayName], state),
|
|
1011
|
-
)
|
|
1012
|
-
DisplayNameGenerator.removeDisplayNameMulti(needDeleteSectionDisplayNames)
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
export const updateSubPagePathReducer: CaseReducer<
|
|
1016
|
-
ComponentsState,
|
|
1017
|
-
PayloadAction<{
|
|
1018
|
-
pageName: string
|
|
1019
|
-
subPagePath: string
|
|
1020
|
-
oldSubPagePath: string
|
|
1021
|
-
}>
|
|
1022
|
-
> = (state, action) => {
|
|
1023
|
-
const { pageName, subPagePath, oldSubPagePath } = action.payload
|
|
1024
|
-
const pageNode = searchComponentFromMap(state, pageName)
|
|
1025
|
-
if (!pageNode) return
|
|
1026
|
-
const sectionNodes = pageNode.childrenNode.filter(
|
|
1027
|
-
(displayName) => state[displayName].type !== "MODAL_SECTION_NODE",
|
|
1028
|
-
)
|
|
1029
|
-
sectionNodes.forEach((sectionNode) => {
|
|
1030
|
-
state[sectionNode].props?.sectionViewConfigs.forEach(
|
|
1031
|
-
(config: Record<string, string>) => {
|
|
1032
|
-
if (config.path === oldSubPagePath) {
|
|
1033
|
-
config.path = subPagePath
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
)
|
|
1037
|
-
})
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
export const updateDefaultSubPagePathReducer: CaseReducer<
|
|
1041
|
-
ComponentsState,
|
|
1042
|
-
PayloadAction<{
|
|
1043
|
-
pageName: string
|
|
1044
|
-
subPagePath: string
|
|
1045
|
-
}>
|
|
1046
|
-
> = (state, action) => {
|
|
1047
|
-
const { pageName, subPagePath } = action.payload
|
|
1048
|
-
const pageNode = searchComponentFromMap(state, pageName)
|
|
1049
|
-
if (!pageNode) return
|
|
1050
|
-
const sectionNodeDisplayNames = pageNode.childrenNode.filter(
|
|
1051
|
-
(sectionNodeDisplayName) =>
|
|
1052
|
-
state[sectionNodeDisplayName].type !== "MODAL_SECTION_NODE",
|
|
1053
|
-
)
|
|
1054
|
-
sectionNodeDisplayNames.forEach((displayName) => {
|
|
1055
|
-
state[displayName].props!.defaultViewKey = subPagePath
|
|
1056
|
-
})
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
export const addSubPageReducer: CaseReducer<
|
|
1060
|
-
ComponentsState,
|
|
1061
|
-
PayloadAction<{ pageName: string }>
|
|
1062
|
-
> = (state, action) => {
|
|
1063
|
-
if (!state) return
|
|
1064
|
-
const pageNode = searchComponentFromMap(state, action.payload.pageName)
|
|
1065
|
-
if (!pageNode) return
|
|
1066
|
-
const bodySectionDisplayName = pageNode.childrenNode.find(
|
|
1067
|
-
(sectionDisplayName) => {
|
|
1068
|
-
return state[sectionDisplayName].showName === "bodySection"
|
|
1069
|
-
},
|
|
1070
|
-
)
|
|
1071
|
-
if (!bodySectionDisplayName) {
|
|
1072
|
-
return
|
|
1073
|
-
}
|
|
1074
|
-
const bodySectionNode = state[bodySectionDisplayName]
|
|
1075
|
-
if (!bodySectionNode) return
|
|
1076
|
-
const bodySectionConfig = generateSectionContainerConfig(
|
|
1077
|
-
bodySectionDisplayName,
|
|
1078
|
-
`bodySectionContainer`,
|
|
1079
|
-
)
|
|
1080
|
-
|
|
1081
|
-
const hasKeys = bodySectionNode.props!.sectionViewConfigs.map(
|
|
1082
|
-
(item: SectionViewShape) => {
|
|
1083
|
-
return `${bodySectionDisplayName}-${item.path}`
|
|
1084
|
-
},
|
|
1085
|
-
)
|
|
1086
|
-
const newSectionViewConfig = generateNewViewItem(
|
|
1087
|
-
hasKeys,
|
|
1088
|
-
bodySectionConfig.displayName,
|
|
1089
|
-
bodySectionDisplayName,
|
|
1090
|
-
)
|
|
1091
|
-
if (Array.isArray(bodySectionNode.childrenNode)) {
|
|
1092
|
-
bodySectionNode.childrenNode.push(bodySectionConfig.displayName)
|
|
1093
|
-
} else {
|
|
1094
|
-
bodySectionNode.childrenNode = [bodySectionConfig.displayName]
|
|
1095
|
-
}
|
|
1096
|
-
const needAddMapNode = flatTreeToMap(bodySectionConfig)
|
|
1097
|
-
Object.keys(needAddMapNode).forEach((displayName) => {
|
|
1098
|
-
state[displayName] = needAddMapNode[displayName]
|
|
1099
|
-
})
|
|
1100
|
-
bodySectionNode.props!.viewSortedKey.push(bodySectionConfig.displayName)
|
|
1101
|
-
bodySectionNode.props!.sectionViewConfigs.push(newSectionViewConfig)
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
export const updateCurrentPageStyleReducer: CaseReducer<
|
|
1105
|
-
ComponentsState,
|
|
1106
|
-
PayloadAction<UpdateCurrentPageStylePayload>
|
|
1107
|
-
> = (state, action) => {
|
|
1108
|
-
const pageNode = searchComponentFromMap(state, action.payload.pageName)
|
|
1109
|
-
if (!pageNode || !Array.isArray(pageNode.childrenNode)) return
|
|
1110
|
-
const targetSectionNodeDisplayName = pageNode.childrenNode.find(
|
|
1111
|
-
(childDisplayName) => {
|
|
1112
|
-
return state[childDisplayName].showName === action.payload.sectionName
|
|
1113
|
-
},
|
|
1114
|
-
)
|
|
1115
|
-
if (!targetSectionNodeDisplayName) return
|
|
1116
|
-
const targetSectionNode = state[targetSectionNodeDisplayName]
|
|
1117
|
-
if (!targetSectionNode.props) return
|
|
1118
|
-
if (!targetSectionNode.props.style) {
|
|
1119
|
-
targetSectionNode.props.style = action.payload.style
|
|
1120
|
-
} else {
|
|
1121
|
-
Object.keys(action.payload.style).forEach((key) => {
|
|
1122
|
-
if (action.payload.style[key] === undefined) {
|
|
1123
|
-
unset(targetSectionNode.props?.style ?? {}, key)
|
|
1124
|
-
}
|
|
1125
|
-
targetSectionNode.props!.style[key] = action.payload.style[key]
|
|
1126
|
-
})
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
export const deleteCurrentPageStyleReducer: CaseReducer<
|
|
1131
|
-
ComponentsState,
|
|
1132
|
-
PayloadAction<DeleteCurrentPageStylePayload>
|
|
1133
|
-
> = (state, action) => {
|
|
1134
|
-
const pageNode = searchComponentFromMap(state, action.payload.pageName)
|
|
1135
|
-
if (!pageNode || !Array.isArray(pageNode.childrenNode)) return
|
|
1136
|
-
const targetSectionNodeDisplayName = pageNode.childrenNode.find(
|
|
1137
|
-
(childDisplayName) => {
|
|
1138
|
-
return state[childDisplayName].showName === action.payload.sectionName
|
|
1139
|
-
},
|
|
1140
|
-
)
|
|
1141
|
-
if (
|
|
1142
|
-
!targetSectionNodeDisplayName ||
|
|
1143
|
-
!state[targetSectionNodeDisplayName].props
|
|
1144
|
-
)
|
|
1145
|
-
return
|
|
1146
|
-
unset(
|
|
1147
|
-
state[targetSectionNodeDisplayName].props?.style ?? {},
|
|
1148
|
-
action.payload.styleKey,
|
|
1149
|
-
)
|
|
1150
|
-
}
|