impaktapps-ui-builder 0.0.382460 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/App.tsx +49 -0
- package/AppHolder.tsx +438 -0
- package/Database.ts +54 -0
- package/Deploy.tsx +16 -0
- package/DeployContent.tsx +48 -0
- package/Dockerfile +56 -0
- package/Login.tsx +184 -0
- package/MasterRouter.tsx +86 -0
- package/PrivateRoutes.tsx +9 -0
- package/README.md +53 -65
- package/Skeleton.tsx +31 -0
- package/TabHolder.tsx +758 -0
- package/app/(tabs)/_layout.tsx +50 -0
- package/app/(tabs)/explore.tsx +111 -0
- package/app/(tabs)/index.tsx +1134 -0
- package/app/(tabs)/index.web.tsx +31 -0
- package/app/(web)/AppHolder.tsx +471 -0
- package/app/(web)/index.tsx +33 -0
- package/app/(web)/indexLogin.tsx +192 -0
- package/app/+not-found.tsx +33 -0
- package/app/_layout.tsx +42 -0
- package/app/_layout.web.tsx +15 -0
- package/app.json +41 -0
- package/assets/Act21Icon.svg +1977 -0
- package/assets/Act21Logo.svg +7869 -0
- package/assets/Desktop.svg +58 -0
- package/assets/ImpaktApps.svg +726 -0
- package/assets/ImpaktIcon.png +0 -0
- package/assets/Mobile.svg +33 -0
- package/assets/Tablet.svg +33 -0
- package/assets/UpDownArrow.svg +5 -0
- package/assets/act21LogoPng.png +0 -0
- package/assets/alpha.svg +1 -0
- package/assets/api.svg +54 -0
- package/assets/border.svg +3 -0
- package/assets/button-rect.svg +3 -0
- package/assets/creditcard.svg +4 -0
- package/assets/cursor.svg +18 -0
- package/assets/dataWorkspace/homepage.svg +3 -0
- package/assets/dataWorkspace/locate.svg +3 -0
- package/assets/dataWorkspace/state.svg +5 -0
- package/assets/dataWorkspace/website.svg +6 -0
- package/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/assets/globaldata.svg +13 -0
- 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 +3 -0
- package/assets/minusIcon.svg +7 -0
- package/assets/next.svg +14 -0
- package/assets/no-component-selected-icon.svg +5 -0
- package/assets/other.svg +10 -0
- package/assets/page.svg +13 -0
- package/assets/plusIcon.svg +1 -0
- package/assets/public/arrowDown.svg +7 -0
- package/assets/public/arrowup.svg +3 -0
- package/assets/public/cursor.svg +18 -0
- package/assets/public/openWindow.svg +4 -0
- package/assets/public/resize-bar-icon.svg +3 -0
- package/assets/radius-icon.svg +3 -0
- package/assets/react.svg +1 -0
- package/assets/resizeBar.svg +12 -0
- package/assets/rightPagePanel/all.svg +3 -0
- package/assets/rightPagePanel/frame-fixed.svg +3 -0
- package/assets/rightPagePanel/frame-responsive.svg +3 -0
- package/assets/rightPagePanel/gridList/columnAuto.svg +3 -0
- package/assets/rightPagePanel/gridList/columnFixed.svg +5 -0
- package/assets/rightPagePanel/gridList/gap-x.svg +3 -0
- package/assets/rightPagePanel/gridList/gap-y.svg +3 -0
- package/assets/rightPagePanel/layout/default.svg +21 -0
- package/assets/rightPagePanel/layout/preset-a.svg +22 -0
- package/assets/rightPagePanel/layout/preset-b.svg +23 -0
- package/assets/rightPagePanel/layout/preset-c.svg +24 -0
- package/assets/rightPagePanel/layout/preset-d.svg +25 -0
- package/assets/rightPagePanel/layout/preset-e.svg +24 -0
- package/assets/rightPagePanel/partial.svg +3 -0
- package/assets/transformer.svg +12 -0
- package/assets/widgetCover/button.svg +4 -0
- package/assets/widgetCover/card.svg +34 -0
- package/assets/widgetCover/checkBox.svg +5 -0
- package/assets/widgetCover/container.svg +6 -0
- package/assets/widgetCover/date.svg +5 -0
- package/assets/widgetCover/emptyBox.svg +3 -0
- package/assets/widgetCover/fileInput.svg +3 -0
- package/assets/widgetCover/form.svg +9 -0
- package/assets/widgetCover/gridcontainer.svg +14 -0
- package/assets/widgetCover/icon.svg +28 -0
- package/assets/widgetCover/image.svg +5 -0
- package/assets/widgetCover/label.svg +3 -0
- package/assets/widgetCover/multiselect.svg +7 -0
- package/assets/widgetCover/otp.svg +19 -0
- package/assets/widgetCover/radioGroup.svg +9 -0
- package/assets/widgetCover/select.svg +4 -0
- package/assets/widgetCover/slider.svg +5 -0
- package/assets/widgetCover/table.svg +6 -0
- package/assets/widgetCover/tabs.svg +5 -0
- package/assets/widgetCover/text.svg +7 -0
- package/assets/widgetCover/textInput.svg +5 -0
- package/assets/widgetCover/upload.svg +11 -0
- package/assets/window-bottom.svg +17 -0
- package/assets/window-left.svg +17 -0
- package/assets/window-minimize.svg +16 -0
- package/assets/window-right.svg +17 -0
- package/babel.config.js +36 -0
- package/components/CodeEditor/CodeMirror/assets/array.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/boolean.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/component.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/function.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/keyword.svg +12 -0
- package/components/CodeEditor/CodeMirror/assets/null.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/number.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/object.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/string.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/table.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/type.svg +4 -0
- package/components/CodeEditor/CodeMirror/assets/undefine.svg +4 -0
- package/components/CodeEditor/CodeMirror/core.tsx +253 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/ILLAContextDesc/index.tsx +5 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/ILLAContextDesc/utils.tsx +51 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/IMPAKTAPPSContext.ts +214 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/IMPAKTAPPSContextDesc/index.tsx +5 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/IMPAKTAPPSContextDesc/utils.tsx +51 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/TernServer/defs/ecmascript.json +1910 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/TernServer/index.tsx +184 -0
- package/components/CodeEditor/CodeMirror/extensions/completionSources/illaContext.ts +214 -0
- package/components/CodeEditor/CodeMirror/extensions/heighLightJSExpression.ts +67 -0
- package/components/CodeEditor/CodeMirror/extensions/index.ts +294 -0
- package/components/CodeEditor/CodeMirror/extensions/interface.ts +36 -0
- package/components/CodeEditor/CodeMirror/extensions/utils.ts +40 -0
- package/components/CodeEditor/CodeMirror/interface.ts +26 -0
- package/components/CodeEditor/CodeMirror/style.ts +47 -0
- package/components/CodeEditor/CodeMirror/theme.ts +249 -0
- package/components/CodeEditor/HintToolTip/index.tsx +92 -0
- package/components/CodeEditor/HintToolTip/interface.ts +16 -0
- package/components/CodeEditor/HintToolTip/style.ts +49 -0
- package/components/CodeEditor/ModalCodeMirror/content.tsx +61 -0
- package/components/CodeEditor/ModalCodeMirror/footer.tsx +13 -0
- package/components/CodeEditor/ModalCodeMirror/index.tsx +56 -0
- package/components/CodeEditor/ModalCodeMirror/interface.ts +26 -0
- package/components/CodeEditor/ModalCodeMirror/style.ts +32 -0
- package/components/CodeEditor/index.tsx +289 -0
- package/components/CodeEditor/interface.ts +21 -0
- package/components/CodeEditor/style.ts +30 -0
- package/components/CodeEditor/utils.ts +5 -0
- package/components/Collapsible.tsx +45 -0
- package/components/ColorPicker/constants.ts +31 -0
- package/components/ColorPicker/index.tsx +30 -0
- package/components/ColorPicker/interface.ts +5 -0
- package/components/ColorSetter/index.tsx +76 -0
- package/components/ColorSetter/interface.tsx +5 -0
- package/components/ColorSetter/style.ts +78 -0
- package/components/EditableText/index.tsx +95 -0
- package/components/EditableText/interface.ts +8 -0
- package/components/EditableText/style.ts +58 -0
- package/components/ExternalLink.tsx +24 -0
- package/components/HapticTab.tsx +18 -0
- package/components/HelloWave.tsx +40 -0
- package/components/Modal/Body/index.tsx +16 -0
- package/components/Modal/Body/interface.ts +6 -0
- package/components/Modal/Body/style.ts +9 -0
- package/components/Modal/Footer/index.tsx +30 -0
- package/components/Modal/Footer/interface.ts +7 -0
- package/components/Modal/Footer/style.ts +18 -0
- package/components/Modal/Header/index.tsx +32 -0
- package/components/Modal/Header/interface.ts +6 -0
- package/components/Modal/Header/style.ts +39 -0
- package/components/Modal/index.tsx +39 -0
- package/components/Modal/interface.ts +25 -0
- package/components/Modal/movableModal.tsx +54 -0
- package/components/Modal/style.ts +13 -0
- package/components/Modal/utils/stopDragAndDrop.ts +5 -0
- package/components/PanelBar/index.tsx +104 -0
- package/components/PanelBar/interface.ts +12 -0
- package/components/PanelBar/style.ts +156 -0
- package/components/ParallaxScrollView.tsx +82 -0
- package/components/RecordEditor/index.tsx +212 -0
- package/components/RecordEditor/interface.ts +33 -0
- package/components/RecordEditor/style.ts +99 -0
- package/components/Tabs/constant.tsx +42 -0
- package/components/Tabs/index.tsx +55 -0
- package/components/Tabs/interface.ts +15 -0
- package/components/Tabs/style.ts +26 -0
- package/components/ThemedText.tsx +60 -0
- package/components/ThemedView.tsx +14 -0
- package/components/__tests__/ThemedText-test.tsx +10 -0
- package/components/__tests__/__snapshots__/ThemedText-test.tsx.snap +24 -0
- package/components/ui/IconSymbol.ios.tsx +32 -0
- package/components/ui/IconSymbol.tsx +43 -0
- package/components/ui/TabBarBackground.ios.tsx +22 -0
- package/components/ui/TabBarBackground.tsx +6 -0
- package/constants/Colors.ts +26 -0
- package/core/Builder.tsx +21 -0
- package/data.ts +352 -0
- package/db.json +251131 -0
- package/declarations.d.ts +8 -0
- package/eslint.config.mjs +13 -0
- package/hooks/fixComponentsUtils/container.ts +20 -0
- package/hooks/fixComponentsUtils/likeInput.ts +15 -0
- package/hooks/fixedAction.ts +196 -0
- package/hooks/fixedComponents.ts +32 -0
- package/hooks/useColorScheme.ts +1 -0
- package/hooks/useColorScheme.web.ts +21 -0
- package/hooks/useDestroyExecutationTree.ts +32 -0
- package/hooks/useInitApp.tsx +238 -0
- package/hooks/useThemeColor.ts +21 -0
- package/i18n/config.ts +57 -0
- package/i18n/i18next.d.ts +8 -0
- package/i18n/locale/en-US.json +3805 -0
- package/i18n/locale/es-ES.json +3805 -0
- package/i18n/react-i18next.d.ts +9 -0
- package/lib/index.ts +12 -0
- package/main.css +14 -0
- package/main.tsx +11 -0
- package/metro.config.js +20 -0
- package/middleware/reduxAsync/index.ts +68 -0
- package/middleware/undoRedo/index.ts +16 -0
- package/middleware/undoRedo/interface.ts +5 -0
- package/middleware/undoRedo/method/action.tsx +97 -0
- package/middleware/undoRedo/method/components.tsx +412 -0
- package/middleware/undoRedo/method/index.tsx +27 -0
- package/package.json +158 -53
- package/page/App/components/Actions/ActionGuidePanel/components/ActionSection/index.tsx +180 -0
- package/page/App/components/Actions/ActionGuidePanel/components/ActionSection/interface.ts +10 -0
- package/page/App/components/Actions/ActionGuidePanel/components/ActionSection/style.ts +55 -0
- package/page/App/components/Actions/ActionGuidePanel/constans.ts +30 -0
- package/page/App/components/Actions/ActionGuidePanel/index.tsx +51 -0
- package/page/App/components/Actions/ActionGuidePanel/style.ts +29 -0
- package/page/App/components/Actions/ActionList/index.tsx +24 -0
- package/page/App/components/Actions/ActionList/interface.ts +3 -0
- package/page/App/components/Actions/ActionList/listWithNewButton.tsx +352 -0
- package/page/App/components/Actions/ActionList/style.ts +67 -0
- package/page/App/components/Actions/ActionListItem/index.tsx +271 -0
- package/page/App/components/Actions/ActionListItem/interface.ts +11 -0
- package/page/App/components/Actions/ActionListItem/style.ts +92 -0
- package/page/App/components/Actions/ActionPanel/ActionEventHandler/index.tsx +113 -0
- package/page/App/components/Actions/ActionPanel/ActionEventHandler/style.ts +20 -0
- package/page/App/components/Actions/ActionPanel/ActionMockPanel/index.tsx +72 -0
- package/page/App/components/Actions/ActionPanel/ActionMockPanel/interface.ts +4 -0
- package/page/App/components/Actions/ActionPanel/ActionMockPanel/style.ts +22 -0
- package/page/App/components/Actions/ActionPanel/ActionResult/index.tsx +135 -0
- package/page/App/components/Actions/ActionPanel/ActionResult/interface.ts +4 -0
- package/page/App/components/Actions/ActionPanel/ActionResult/restApiHeader.tsx +116 -0
- package/page/App/components/Actions/ActionPanel/ActionResult/style.ts +136 -0
- package/page/App/components/Actions/ActionPanel/ActionResult/utils.ts +25 -0
- package/page/App/components/Actions/ActionPanel/ActionTitleBar/index.tsx +177 -0
- package/page/App/components/Actions/ActionPanel/ActionTitleBar/interface.ts +7 -0
- package/page/App/components/Actions/ActionPanel/ActionTitleBar/style.ts +92 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Control/index.tsx +25 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Control/interface.ts +8 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Control/style.ts +43 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Header/index.tsx +11 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Header/interface.ts +3 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Header/style.ts +13 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Space/index.tsx +6 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Components/Space/style.ts +6 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Model/AdvancedOption/index.tsx +74 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/Model/Timing/index.tsx +145 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/index.tsx +19 -0
- package/page/App/components/Actions/ActionPanel/AdvancedPanel/style.ts +6 -0
- package/page/App/components/Actions/ActionPanel/GlobalDataPanel/index.tsx +70 -0
- package/page/App/components/Actions/ActionPanel/GlobalDataPanel/style.ts +34 -0
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/BodyEditor/index.tsx +72 -0
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/BodyEditor/interface.ts +8 -0
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/BodyEditor/style.ts +59 -0
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/index.tsx +165 -0
- package/page/App/components/Actions/ActionPanel/ImpaktAppsPanel/style.ts +51 -0
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/constants.ts +2 -0
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/index.tsx +60 -0
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/interface.ts +8 -0
- package/page/App/components/Actions/ActionPanel/Layout/GeneralPanelLayout/style.ts +25 -0
- package/page/App/components/Actions/ActionPanel/Layout/HorizontalWithLabel/index.tsx +18 -0
- package/page/App/components/Actions/ActionPanel/Layout/HorizontalWithLabel/interface.ts +6 -0
- package/page/App/components/Actions/ActionPanel/Layout/HorizontalWithLabel/style.ts +9 -0
- package/page/App/components/Actions/ActionPanel/Layout/Label/index.tsx +12 -0
- package/page/App/components/Actions/ActionPanel/Layout/Label/interface.ts +3 -0
- package/page/App/components/Actions/ActionPanel/Layout/Label/style.ts +10 -0
- package/page/App/components/Actions/ActionPanel/Layout/Space/index.tsx +10 -0
- package/page/App/components/Actions/ActionPanel/Layout/Space/style.ts +6 -0
- package/page/App/components/Actions/ActionPanel/PanelHeader/ResourceChoose/index.tsx +126 -0
- package/page/App/components/Actions/ActionPanel/PanelHeader/ResourceChoose/style.ts +29 -0
- package/page/App/components/Actions/ActionPanel/PanelHeader/TriggerModeChoose/index.tsx +62 -0
- package/page/App/components/Actions/ActionPanel/PanelHeader/index.tsx +116 -0
- package/page/App/components/Actions/ActionPanel/PanelHeader/style.ts +37 -0
- package/page/App/components/Actions/ActionPanel/RestApiPanel/BodyEditor/index.tsx +357 -0
- package/page/App/components/Actions/ActionPanel/RestApiPanel/BodyEditor/interface.ts +7 -0
- package/page/App/components/Actions/ActionPanel/RestApiPanel/BodyEditor/style.ts +54 -0
- package/page/App/components/Actions/ActionPanel/RestApiPanel/index.tsx +358 -0
- package/page/App/components/Actions/ActionPanel/RestApiPanel/style.ts +50 -0
- package/page/App/components/Actions/ActionPanel/TransformerPanel/index.tsx +61 -0
- package/page/App/components/Actions/ActionPanel/TransformerPanel/style.ts +15 -0
- package/page/App/components/Actions/ActionPanel/index.tsx +116 -0
- package/page/App/components/Actions/ActionPanel/style.ts +58 -0
- package/page/App/components/Actions/ActionPanel/utils/calculateFileSize.ts +37 -0
- package/page/App/components/Actions/ActionPanel/utils/safeModeTip.ts +18 -0
- package/page/App/components/Actions/Context/SqlModeTipContext/index.tsx +31 -0
- package/page/App/components/Actions/DragBar/index.tsx +87 -0
- package/page/App/components/Actions/DragBar/interface.ts +10 -0
- package/page/App/components/Actions/DragBar/style.ts +17 -0
- package/page/App/components/Actions/List/index.ts +4 -0
- package/page/App/components/Actions/List/interface.ts +46 -0
- package/page/App/components/Actions/List/list-item-meta.tsx +59 -0
- package/page/App/components/Actions/List/list-item.tsx +34 -0
- package/page/App/components/Actions/List/list.tsx +144 -0
- package/page/App/components/Actions/List/style.ts +119 -0
- package/page/App/components/Actions/SearchHeader/index.tsx +84 -0
- package/page/App/components/Actions/SearchHeader/interface.tsx +4 -0
- package/page/App/components/Actions/SearchHeader/style.tsx +59 -0
- package/page/App/components/Actions/api.ts +65 -0
- package/page/App/components/Actions/axiosConfigBuilder.ts +44 -0
- package/page/App/components/Actions/empty/src/empty.tsx +60 -0
- package/page/App/components/Actions/empty/src/index.ts +2 -0
- package/page/App/components/Actions/empty/src/interface.ts +10 -0
- package/page/App/components/Actions/empty/src/style.ts +22 -0
- package/page/App/components/Actions/hook.ts +61 -0
- package/page/App/components/ConfigPanel/index.tsx +29 -0
- package/page/App/components/ConfigPanel/style.ts +8 -0
- package/page/App/components/InspectPanel/PanelSetters/BorderSetter/index.tsx +82 -0
- package/page/App/components/InspectPanel/PanelSetters/BorderSetter/interface.ts +1 -0
- package/page/App/components/InspectPanel/PanelSetters/BorderSetter/style.ts +14 -0
- package/page/App/components/InspectPanel/PanelSetters/ColorPickerSetter/index.tsx +40 -0
- package/page/App/components/InspectPanel/PanelSetters/ColorPickerSetter/interface.ts +9 -0
- package/page/App/components/InspectPanel/PanelSetters/ColorPickerSetter/style.ts +10 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/context/viewsListContext.tsx +270 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/dragIconAndLabel.tsx +86 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/header.tsx +28 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/index.tsx +238 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/interface.ts +28 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/listBody.tsx +135 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/listItem.tsx +113 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/style.ts +97 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/ViewsSetter/utils/generateNewOptions.ts +34 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/defaultViewKeySetter.tsx +71 -0
- package/page/App/components/InspectPanel/PanelSetters/ContainerSetter/interface.ts +4 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Column/index.tsx +128 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Column/interface.ts +19 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Column/style.ts +51 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/ColumnContainer/index.tsx +120 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/ColumnContainer/interface.ts +22 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/ColumnContainer/style.ts +36 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Empty/index.tsx +14 -0
- package/page/App/components/InspectPanel/PanelSetters/DragMoveComponent/Empty/style.ts +11 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/actionMenu.tsx +45 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/body.tsx +17 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/empty.tsx +17 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/eventAndMethodLabel.tsx +109 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/interface.ts +22 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/item.tsx +20 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/more.tsx +33 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/List/style.ts +118 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/context/index.tsx +69 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/index.tsx +67 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/interface.ts +14 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/style.ts +8 -0
- package/page/App/components/InspectPanel/PanelSetters/EventHandlerSetter/utils/index.ts +13 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInput/index.tsx +135 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInput/interface.ts +19 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInput/style.ts +33 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInputHierarchy/index.tsx +134 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInputHierarchy/interface.ts +19 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseInputHierarchy/style.ts +33 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/BaseUpload/index.tsx +107 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ColumnFraction/index.tsx +117 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ColumnFraction/interface.ts +5 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ColumnFraction/style.ts +103 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/MeasureCheckInput/index.tsx +62 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/MeasureCheckInput/interface.ts +11 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/MeasureCheckInput/style.ts +9 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/OptionMappedInput/optionMappedInputSetter.tsx +38 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ScriptInput/index.tsx +121 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/ScriptInput/style.ts +16 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/interface.ts +9 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/style.ts +8 -0
- package/page/App/components/InspectPanel/PanelSetters/InputSetter/util.ts +32 -0
- package/page/App/components/InspectPanel/PanelSetters/MappedOptionSetter/index.tsx +33 -0
- package/page/App/components/InspectPanel/PanelSetters/MappedOptionSetter/interface.ts +7 -0
- package/page/App/components/InspectPanel/PanelSetters/MappedOptionSetter/style.ts +29 -0
- package/page/App/components/InspectPanel/PanelSetters/OptionListSetter/index.tsx +91 -0
- package/page/App/components/InspectPanel/PanelSetters/OptionListSetter/interface.ts +16 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/DynamicIcon/index.tsx +26 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/DynamicIcon/interface.ts +5 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/DynamicIcon/style.ts +25 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Label/addActionLabel.tsx +34 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Label/interface.ts +6 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Label/style.ts +7 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/baseBody.tsx +11 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/body.tsx +33 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/header.tsx +33 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/index.tsx +51 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/interface.ts +29 -0
- package/page/App/components/InspectPanel/PanelSetters/PublicComponent/Modal/style.ts +54 -0
- package/page/App/components/InspectPanel/PanelSetters/RadioGroupSetter/baseRadioGroup.tsx +62 -0
- package/page/App/components/InspectPanel/PanelSetters/RadioGroupSetter/interface.ts +5 -0
- package/page/App/components/InspectPanel/PanelSetters/RadioGroupSetter/style.ts +36 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/baseDynamicSelect.tsx +104 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/baseMultiSelect .tsx +236 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/baseSelect.tsx +95 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/dataSourceSelectSetter.tsx +121 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventActionTypeSelect.tsx +60 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventBodyViewSelect.tsx +72 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventTargetActionSelect.tsx +37 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventTargetStateSelect.tsx +40 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventTargetWidgetSelect.tsx +92 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/eventWidgetMethodSelect.tsx +61 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/interface.ts +38 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/pageSelect.tsx +40 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/searchSelect.tsx +14 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/style.ts +47 -0
- package/page/App/components/InspectPanel/PanelSetters/SelectSetter/styles.css +13 -0
- package/page/App/components/InspectPanel/PanelSetters/StyleContainerSetter/index.tsx +27 -0
- package/page/App/components/InspectPanel/PanelSetters/StyleContainerSetter/interface.ts +7 -0
- package/page/App/components/InspectPanel/PanelSetters/StyleContainerSetter/style.ts +21 -0
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/baseSwitch.tsx +38 -0
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/dynamicSwitch.tsx +88 -0
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/interface.tsx +15 -0
- package/page/App/components/InspectPanel/PanelSetters/SwitchSetter/style.ts +81 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/body.tsx +68 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/columnItem.tsx +20 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/context/columnListContext.tsx +91 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/dragIconAndLabel.tsx +85 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/empty.tsx +8 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/header.tsx +15 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/index.tsx +74 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/interface.ts +40 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/style.ts +125 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/CellSetter/utils/generateNewColumns.ts +26 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/body.tsx +71 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/columnItem.tsx +20 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/context/columnListContext.tsx +91 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/dragIconAndLabel.tsx +96 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/empty.tsx +8 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/header.tsx +15 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/index.tsx +68 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/interface.ts +36 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/style.ts +125 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/ColumnSetter/utils/generateNewColumns.ts +19 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/columnTypeSelectSetter.tsx +63 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/columsSelectSetter.tsx +77 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/interface.ts +24 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/tableDataSourceSelectSetter.tsx +188 -0
- package/page/App/components/InspectPanel/PanelSetters/TableSetter/tableMappedValueInputSetter.tsx +111 -0
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/DefaultTabKeySetter/index.tsx +42 -0
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/DefaultTabKeySetter/interface.ts +7 -0
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabListSetter/index.tsx +88 -0
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabListSetter/interface.ts +19 -0
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabsContainerSelectSetter/index.tsx +175 -0
- package/page/App/components/InspectPanel/PanelSetters/TabsSetter/TabsContainerSelectSetter/style.ts +11 -0
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/assets/image.tsx +14 -0
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/baseUploadFile.tsx +94 -0
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/interface.ts +4 -0
- package/page/App/components/InspectPanel/PanelSetters/UploadFileSetter/style.ts +28 -0
- package/page/App/components/InspectPanel/PanelSetters/index.tsx +402 -0
- package/page/App/components/InspectPanel/PanelSetters/interface.ts +36 -0
- package/page/App/components/InspectPanel/PanelSetters/style.ts +10 -0
- package/page/App/components/InspectPanel/components/EmptySelected/index.tsx +34 -0
- package/page/App/components/InspectPanel/components/EmptySelected/style.ts +32 -0
- package/page/App/components/InspectPanel/components/FieldAndLabel/index.tsx +19 -0
- package/page/App/components/InspectPanel/components/FieldAndLabel/interface.ts +10 -0
- package/page/App/components/InspectPanel/components/FieldFactory/index.tsx +56 -0
- package/page/App/components/InspectPanel/components/FieldFactory/interface.ts +8 -0
- package/page/App/components/InspectPanel/components/Header/index.tsx +46 -0
- package/page/App/components/InspectPanel/components/Header/style.ts +17 -0
- package/page/App/components/InspectPanel/components/Label/index.tsx +22 -0
- package/page/App/components/InspectPanel/components/Label/interface.ts +5 -0
- package/page/App/components/InspectPanel/components/Label/style.ts +43 -0
- package/page/App/components/InspectPanel/components/MultiSelectedPanel/multiSelectedPanel.tsx +57 -0
- package/page/App/components/InspectPanel/components/MultiSelectedPanel/style.ts +39 -0
- package/page/App/components/InspectPanel/components/PanelSetter/index.tsx +21 -0
- package/page/App/components/InspectPanel/components/PanelSetter/interface.ts +7 -0
- package/page/App/components/InspectPanel/components/Panelbar/index.tsx +28 -0
- package/page/App/components/InspectPanel/components/Panelbar/interface.ts +8 -0
- package/page/App/components/InspectPanel/components/Panelbar/style.ts +5 -0
- package/page/App/components/InspectPanel/components/SingleSelectedPanel/singleSelectedPanel.tsx +126 -0
- package/page/App/components/InspectPanel/components/SingleSelectedPanel/style.ts +14 -0
- package/page/App/components/InspectPanel/context/selectedContext.tsx +75 -0
- package/page/App/components/InspectPanel/index.tsx +25 -0
- package/page/App/components/InspectPanel/interface.ts +55 -0
- package/page/App/components/InspectPanel/setter.tsx +103 -0
- package/page/App/components/InspectPanel/style.ts +27 -0
- package/page/App/components/InspectPanel/utils/fieldFactory.tsx +18 -0
- package/page/App/components/InspectPanel/utils/panelBuilder.ts +31 -0
- package/page/App/components/PagePanel/Components/Label/index.tsx +21 -0
- package/page/App/components/PagePanel/Components/Label/interface.ts +5 -0
- package/page/App/components/PagePanel/Components/Label/style.ts +35 -0
- package/page/App/components/PagePanel/Components/LayoutSelect/index.tsx +141 -0
- package/page/App/components/PagePanel/Components/LayoutSelect/interface.ts +20 -0
- package/page/App/components/PagePanel/Components/LayoutSelect/style.ts +60 -0
- package/page/App/components/PagePanel/Components/PanelActionBar/index.tsx +33 -0
- package/page/App/components/PagePanel/Components/PanelActionBar/interface.ts +6 -0
- package/page/App/components/PagePanel/Components/PanelActionBar/style.ts +8 -0
- package/page/App/components/PagePanel/Components/ViewsList/body.tsx +86 -0
- package/page/App/components/PagePanel/Components/ViewsList/emptyState.tsx +10 -0
- package/page/App/components/PagePanel/Components/ViewsList/header.tsx +93 -0
- package/page/App/components/PagePanel/Components/ViewsList/index.tsx +62 -0
- package/page/App/components/PagePanel/Components/ViewsList/interface.ts +50 -0
- package/page/App/components/PagePanel/Components/ViewsList/item.tsx +136 -0
- package/page/App/components/PagePanel/Components/ViewsList/labelName.tsx +26 -0
- package/page/App/components/PagePanel/Components/ViewsList/modal.tsx +41 -0
- package/page/App/components/PagePanel/Components/ViewsList/style.tsx +119 -0
- package/page/App/components/PagePanel/Components/ViewsList/utils.ts +53 -0
- package/page/App/components/PagePanel/Layout/divider/index.tsx +15 -0
- package/page/App/components/PagePanel/Layout/divider/interface.ts +3 -0
- package/page/App/components/PagePanel/Layout/divider/style.ts +8 -0
- package/page/App/components/PagePanel/Layout/leftAndRight/index.tsx +8 -0
- package/page/App/components/PagePanel/Layout/leftAndRight/interface.ts +5 -0
- package/page/App/components/PagePanel/Layout/leftAndRight/style.ts +10 -0
- package/page/App/components/PagePanel/Layout/setterPadding/index.tsx +8 -0
- package/page/App/components/PagePanel/Layout/setterPadding/interface.ts +5 -0
- package/page/App/components/PagePanel/Layout/setterPadding/style.ts +5 -0
- package/page/App/components/PagePanel/Layout/verticalLayout/index.tsx +8 -0
- package/page/App/components/PagePanel/Layout/verticalLayout/interface.ts +5 -0
- package/page/App/components/PagePanel/Layout/verticalLayout/style.ts +10 -0
- package/page/App/components/PagePanel/Modules/Basic/index.tsx +298 -0
- package/page/App/components/PagePanel/Modules/Basic/style.ts +5 -0
- package/page/App/components/PagePanel/Modules/Frame/index.tsx +778 -0
- package/page/App/components/PagePanel/Modules/Frame/style.ts +10 -0
- package/page/App/components/PagePanel/Modules/Style/Components/AddSection/index.tsx +104 -0
- package/page/App/components/PagePanel/Modules/Style/Components/AddSection/interface.ts +5 -0
- package/page/App/components/PagePanel/Modules/Style/Components/BackgroundSetter/index.tsx +162 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DeleteActionContainer/index.tsx +25 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DeleteActionContainer/interface.ts +7 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DeleteActionContainer/style.ts +22 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DirectionPaddingSetter/index.tsx +189 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DirectionPaddingSetter/interface.ts +5 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DirectionPaddingSetter/style.ts +13 -0
- package/page/App/components/PagePanel/Modules/Style/Components/DividerSetter/index.tsx +207 -0
- package/page/App/components/PagePanel/Modules/Style/Components/PaddingSetter/index.tsx +600 -0
- package/page/App/components/PagePanel/Modules/Style/Components/PaddingSetter/style.ts +9 -0
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/constants.ts +27 -0
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/index.tsx +61 -0
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/interface.ts +6 -0
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSelect/style.ts +30 -0
- package/page/App/components/PagePanel/Modules/Style/Components/ShadowSetter/index.tsx +155 -0
- package/page/App/components/PagePanel/Modules/Style/index.tsx +26 -0
- package/page/App/components/PagePanel/Modules/Style/style.ts +33 -0
- package/page/App/components/PagePanel/index.tsx +25 -0
- package/page/App/components/PagePanel/style.ts +35 -0
- package/page/App/components/PublicTypes/ResourceGenerator/assets/emojiSmile.svg +3 -0
- package/page/App/components/PublicTypes/ResourceGenerator/assets/googlesheets/disabled-google.svg +3 -0
- package/page/App/components/PublicTypes/ResourceGenerator/assets/googlesheets/google-logo.svg +14 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/ActionResourceSelector/index.tsx +166 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/ActionResourceSelector/interface.ts +21 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/ActionResourceSelector/style.ts +52 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/Header/index.tsx +20 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/Header/interface.ts +4 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/Header/style.ts +25 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/index.tsx +130 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/interface.ts +26 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/style.ts +7 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ActionGenerator/temp.ts +0 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ColumnWhiteList/index.tsx +34 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ColumnWhiteList/style.ts +40 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/CreateButton/index.tsx +26 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/CreateButton/interface.ts +3 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/GoogleCreateButton/index.tsx +26 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/ActionButtons/GoogleCreateButton/style.ts +51 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/BasicAuthPanel/index.tsx +45 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/BearerAuthPanel/index.tsx +31 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/DigestAuthPanel/index.tsx +51 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/index.tsx +316 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/RestApiConfigElement/interface.ts +7 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/index.tsx +21 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/interface.ts +10 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/provider/index.tsx +35 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/provider/interface.ts +9 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/provider/style.ts +10 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ConfigElements/style.ts +98 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ControlledElement/index.tsx +319 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ControlledElement/interface.ts +39 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ControlledElement/style.ts +74 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/InputRecordEditor/index.tsx +98 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/InputRecordEditor/interface.ts +13 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/InputRecordEditor/style.ts +44 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/index.tsx +39 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/interface.ts +7 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/style.ts +44 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/suggestCard.tsx +28 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCard/utils.tsx +36 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreatePanel/index.tsx +33 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreatePanel/interface.ts +7 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreatePanel/style.ts +24 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreator/index.tsx +27 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreator/interface.ts +9 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceCreator/style.ts +10 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceDivider/index.tsx +40 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceDivider/interface.ts +8 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceDivider/style.ts +13 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceHeader/index.tsx +53 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceHeader/interface.ts +7 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceHeader/style.ts +45 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceTypeSelector/index.tsx +65 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceTypeSelector/interface.ts +7 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/ResourceTypeSelector/style.ts +28 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/RowWhiteList/index.tsx +41 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/RowWhiteList/style.ts +81 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/TipPanel/index.tsx +14 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/TipPanel/interface.ts +3 -0
- package/page/App/components/PublicTypes/ResourceGenerator/components/TipPanel/style.ts +13 -0
- package/page/App/components/PublicTypes/ResourceGenerator/config.ts +51 -0
- package/page/App/components/PublicTypes/ResourceGenerator/formUtils.ts +117 -0
- package/page/App/components/PublicTypes/ResourceGenerator/index.tsx +95 -0
- package/page/App/components/PublicTypes/ResourceGenerator/interface.ts +15 -0
- package/page/App/components/PublicTypes/ResourceGenerator/provider/index.tsx +64 -0
- package/page/App/components/PublicTypes/ResourceGenerator/service/index.ts +58 -0
- package/page/App/components/PublicTypes/ResourceGenerator/service/oAuth.ts +42 -0
- package/page/App/components/PublicTypes/ResourceGenerator/service/resource.ts +26 -0
- package/page/App/components/PublicTypes/ResourceGenerator/utils.ts +87 -0
- package/page/App/components/PublicTypes/action/globalData.ts +3 -0
- package/page/App/components/PublicTypes/action/restApi.ts +44 -0
- package/page/App/components/PublicTypes/action/transformerAction.ts +3 -0
- package/page/App/components/PublicTypes/resource/index.ts +62 -0
- package/page/App/components/PublicTypes/resource/restapi.ts +43 -0
- package/page/App/components/ScreenPanel/Screen/index.tsx +167 -0
- package/page/App/components/ScreenPanel/index.tsx +31 -0
- package/page/App/components/Style/SearchList/index.tsx +22 -0
- package/page/App/components/Style/SearchList/interface.ts +3 -0
- package/page/App/components/Style/SearchList/serachListWIthNewButton.tsx +156 -0
- package/page/App/components/Style/SearchList/style.ts +67 -0
- package/page/App/components/Style/SearchListItem/index.tsx +165 -0
- package/page/App/components/Style/SearchListItem/interface.ts +9 -0
- package/page/App/components/Style/SearchListItem/style.ts +89 -0
- package/page/App/components/Style/StylePanel/index.tsx +149 -0
- package/page/App/components/Style/StylePanel/style.ts +34 -0
- package/page/App/components/Style/ThemePanel/Theme/index.tsx +311 -0
- package/page/App/components/Style/ThemePanel/index.tsx +34 -0
- package/page/App/components/componentPanel/ComponentItem.tsx +133 -0
- package/page/App/components/componentPanel/ComponentSession.tsx +37 -0
- package/page/App/components/componentPanel/componentListBuilder.tsx +115 -0
- package/page/App/components/componentPanel/components/SuggestComponent/index.tsx +44 -0
- package/page/App/components/componentPanel/components/SuggestComponent/style.ts +35 -0
- package/page/App/components/componentPanel/index.tsx +108 -0
- package/page/App/components/componentPanel/interface.ts +34 -0
- package/page/App/components/componentPanel/style.tsx +116 -0
- package/page/App/components/componentPanel/utils.tsx +32 -0
- package/page/App/components/dotPanel/calc.ts +348 -0
- package/page/App/components/dotPanel/components/Canvas/interface.ts +39 -0
- package/page/App/components/dotPanel/components/Canvas/renderComponentCanvasContainer.tsx +323 -0
- package/page/App/components/dotPanel/components/Canvas/renderComponentCanvasContainerMobile.tsx +111 -0
- package/page/App/components/dotPanel/components/Canvas/style.ts +171 -0
- package/page/App/components/dotPanel/components/ComponentParser/index.tsx +40 -0
- package/page/App/components/dotPanel/components/ComponentParser/interface.ts +6 -0
- package/page/App/components/dotPanel/components/DragPreview/index.tsx +48 -0
- package/page/App/components/dotPanel/components/DragPreview/interface.ts +22 -0
- package/page/App/components/dotPanel/components/DragPreview/style.ts +22 -0
- package/page/App/components/dotPanel/components/MousePreview/Cursor/index.tsx +106 -0
- package/page/App/components/dotPanel/components/MousePreview/Cursor/interface.ts +15 -0
- package/page/App/components/dotPanel/components/MousePreview/Cursor/style.ts +27 -0
- package/page/App/components/dotPanel/components/MousePreview/index.tsx +33 -0
- package/page/App/components/dotPanel/components/MousePreview/interface.ts +4 -0
- package/page/App/components/dotPanel/components/MultiSelectCanvas/index.tsx +212 -0
- package/page/App/components/dotPanel/components/MultiSelectCanvas/interface.ts +6 -0
- package/page/App/components/dotPanel/components/Page/emptyState.tsx +17 -0
- package/page/App/components/dotPanel/components/Page/emptyStateMobile.tsx +8 -0
- package/page/App/components/dotPanel/components/Page/interface.ts +3 -0
- package/page/App/components/dotPanel/components/Page/renderPage.tsx +161 -0
- package/page/App/components/dotPanel/components/Page/style.ts +45 -0
- package/page/App/components/dotPanel/components/PageLoading/pageLoading.tsx +12 -0
- package/page/App/components/dotPanel/components/PageLoading/style.ts +9 -0
- package/page/App/components/dotPanel/components/Section/BodySection/index.tsx +89 -0
- package/page/App/components/dotPanel/components/Section/BodySection/indexMobile.tsx +61 -0
- package/page/App/components/dotPanel/components/Section/BodySection/interface.ts +7 -0
- package/page/App/components/dotPanel/components/Section/BodySection/style.ts +29 -0
- package/page/App/components/dotPanel/components/Section/FooterSection/index.tsx +111 -0
- package/page/App/components/dotPanel/components/Section/FooterSection/interface.ts +8 -0
- package/page/App/components/dotPanel/components/Section/FooterSection/style.ts +25 -0
- package/page/App/components/dotPanel/components/Section/HeaderSection/index.tsx +119 -0
- package/page/App/components/dotPanel/components/Section/HeaderSection/interface.ts +8 -0
- package/page/App/components/dotPanel/components/Section/HeaderSection/style.ts +25 -0
- package/page/App/components/dotPanel/components/Section/LeftSection/index.tsx +126 -0
- package/page/App/components/dotPanel/components/Section/LeftSection/interface.ts +8 -0
- package/page/App/components/dotPanel/components/Section/LeftSection/style.ts +25 -0
- package/page/App/components/dotPanel/components/Section/RightSection/index.tsx +124 -0
- package/page/App/components/dotPanel/components/Section/RightSection/interface.ts +8 -0
- package/page/App/components/dotPanel/components/Section/RightSection/style.ts +25 -0
- package/page/App/components/dotPanel/components/Section/index.ts +6 -0
- package/page/App/components/dotPanel/components/Section/interface.ts +5 -0
- package/page/App/components/dotPanel/components/Section/style.ts +77 -0
- package/page/App/components/dotPanel/constant/canvas.ts +30 -0
- package/page/App/components/dotPanel/constant/snapshotNew.ts +34 -0
- package/page/App/components/dotPanel/context/mouseHoverContext.tsx +55 -0
- package/page/App/components/dotPanel/context/mouseMoveContext.tsx +46 -0
- package/page/App/components/dotPanel/context/scrollBarContext.tsx +27 -0
- package/page/App/components/dotPanel/hooks/sectionUtils.ts +34 -0
- package/page/App/components/dotPanel/hooks/useMousePostionAsync.tsx +150 -0
- package/page/App/components/dotPanel/index.tsx +105 -0
- package/page/App/components/dotPanel/interface.ts +19 -0
- package/page/App/components/dotPanel/style.ts +182 -0
- package/page/App/components/dotPanel/utils/calcMouse.ts +47 -0
- package/page/App/components/dotPanel/utils/crossingHelper.ts +179 -0
- package/page/App/components/dotPanel/utils/getDragShadow.ts +530 -0
- package/page/App/components/dotPanel/utils/getDropResult.ts +30 -0
- package/page/App/components/dotPanel/utils/sendBinaryMessage.ts +94 -0
- package/page/App/components/dotPanel/utils/styleutils/padding.ts +28 -0
- package/page/App/components/dotPanel/utils.ts +26 -0
- package/page/App/components/publicConfig/Act21Service/base.ts +33 -0
- package/page/App/components/publicConfig/Act21Service/constant.ts +21 -0
- package/page/App/components/publicConfig/Act21Service/index.ts +106 -0
- package/page/App/components/publicConfig/action/getInitialContent.ts +43 -0
- package/page/App/components/publicConfig/action/index.ts +45 -0
- package/page/App/components/publicConfig/action/restapiAction.ts +17 -0
- package/page/App/components/publicConfig/action/transformerAction.ts +7 -0
- package/page/App/components/publicConfig/resource/restapi.ts +13 -0
- package/page/App/components/scaleSquare/components/DragContainer/index.tsx +115 -0
- package/page/App/components/scaleSquare/components/DragContainer/interface.ts +39 -0
- package/page/App/components/scaleSquare/components/DragContainer/style.ts +10 -0
- package/page/App/components/scaleSquare/components/MoveBar/interface.ts +14 -0
- package/page/App/components/scaleSquare/components/MoveBar/moveBar.tsx +72 -0
- package/page/App/components/scaleSquare/components/MoveBar/style.ts +78 -0
- package/page/App/components/scaleSquare/components/PositionContainer/index.tsx +24 -0
- package/page/App/components/scaleSquare/components/PositionContainer/interface.ts +8 -0
- package/page/App/components/scaleSquare/components/PositionContainer/style.ts +16 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/hooks.ts +392 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/index.tsx +141 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/interface.ts +12 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/style.ts +191 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/ResizeHandler/utils.ts +21 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/index.tsx +103 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/interface.ts +12 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/style.ts +110 -0
- package/page/App/components/scaleSquare/components/ResizingAndDragContainer/utils.tsx +120 -0
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/config.tsx +2 -0
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/index.tsx +390 -0
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/interface.ts +16 -0
- package/page/App/components/scaleSquare/components/TransformWidgetWrapper/style.ts +110 -0
- package/page/App/components/scaleSquare/components/WrapperContainer/index.tsx +72 -0
- package/page/App/components/scaleSquare/components/WrapperContainer/indexMobile.tsx +65 -0
- package/page/App/components/scaleSquare/components/WrapperContainer/interface.ts +8 -0
- package/page/App/components/scaleSquare/components/WrapperContainer/style.ts +32 -0
- package/page/App/components/scaleSquare/constant/moveBar.ts +3 -0
- package/page/App/components/scaleSquare/constant/widget.ts +8 -0
- package/page/App/components/scaleSquare/context/mouseHoverContext.tsx +55 -0
- package/page/App/components/scaleSquare/context/mouseMoveContext.tsx +46 -0
- package/page/App/components/scaleSquare/context/scrollBarContext.tsx +27 -0
- package/page/App/components/scaleSquare/index.tsx +67 -0
- package/page/App/components/scaleSquare/interface.ts +20 -0
- package/page/App/components/scaleSquare/style.ts +330 -0
- package/page/App/components/scaleSquare/utils/getRealShapeAndPosition.ts +86 -0
- package/page/App/components/scaleSquare/utils/useGetDisplayNameInMoveBar.ts +34 -0
- package/page/App/components/scaleSquare/utils/useMouseHover.ts +47 -0
- package/page/App/components/scaleSquare/utils/useScaleStateSelector.ts +17 -0
- package/page/App/index.tsx +110 -0
- package/page/App/module/ActionEditor/index.tsx +40 -0
- package/page/App/module/ActionEditor/styles.ts +147 -0
- package/page/App/module/CanvasPanel/index.tsx +49 -0
- package/page/App/module/CanvasPanel/interface.ts +11 -0
- package/page/App/module/CanvasPanel/style.ts +43 -0
- package/page/App/module/ComponentManager/index.tsx +70 -0
- package/page/App/module/ComponentManager/style.tsx +62 -0
- package/page/App/module/DataWorkspace/components/ActionSpaceTree/index.tsx +65 -0
- package/page/App/module/DataWorkspace/components/BaseDataItem/index.tsx +443 -0
- package/page/App/module/DataWorkspace/components/BaseDataItem/interface.ts +12 -0
- package/page/App/module/DataWorkspace/components/BaseDataItem/style.ts +108 -0
- package/page/App/module/DataWorkspace/components/ComponentSpaceTree/index.tsx +82 -0
- package/page/App/module/DataWorkspace/components/GlobalsSpaceTree/index.tsx +37 -0
- package/page/App/module/DataWorkspace/components/GlobalsSpaceTree/interface.ts +5 -0
- package/page/App/module/DataWorkspace/components/GlobalsSpaceTree/style.ts +27 -0
- package/page/App/module/DataWorkspace/components/LibrariesTree/constants.ts +27 -0
- package/page/App/module/DataWorkspace/components/LibrariesTree/index.tsx +29 -0
- package/page/App/module/DataWorkspace/components/LibrariesTree/interface.ts +5 -0
- package/page/App/module/DataWorkspace/components/LibrariesTree/item.tsx +33 -0
- package/page/App/module/DataWorkspace/components/LibrariesTree/style.ts +45 -0
- package/page/App/module/DataWorkspace/components/MoreAction/index.tsx +62 -0
- package/page/App/module/DataWorkspace/components/MoreAction/interface.ts +4 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ActionMenu/index.tsx +93 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ActionMenu/interface.ts +6 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ChangePathModal/interface.ts +6 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ChangePathModal/modal.tsx +49 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/ChangePathModal/style.tsx +42 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/PageItem/index.tsx +208 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/PageItem/interface.ts +9 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/components/PageItem/style.ts +76 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/index.tsx +79 -0
- package/page/App/module/DataWorkspace/components/PageSpaceTree/style.ts +5 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeGroup/index.tsx +13 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeGroup/interface.ts +6 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeGroup/style.ts +5 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/WorkSpaceTreeNode.tsx +49 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/index.tsx +105 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/interface.ts +15 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/style.ts +185 -0
- package/page/App/module/DataWorkspace/components/WorkSpaceTreeItem/utils.tsx +15 -0
- package/page/App/module/DataWorkspace/constant.ts +1 -0
- package/page/App/module/DataWorkspace/index.tsx +29 -0
- package/page/App/module/DataWorkspace/style.ts +47 -0
- package/page/App/module/LeftPanel/index.tsx +21 -0
- package/page/App/module/LeftPanel/style.ts +11 -0
- package/page/App/module/PageNavBar/ScreenIcons/index.tsx +55 -0
- package/page/App/module/PageNavBar/ScreenIcons/style.ts +41 -0
- package/page/App/module/PageNavBar/WindowIcons/index.tsx +50 -0
- package/page/App/module/PageNavBar/WindowIcons/style.ts +48 -0
- package/page/App/module/PageNavBar/index.tsx +136 -0
- package/page/App/module/PageNavBar/interface.ts +3 -0
- package/page/App/module/PageNavBar/resp.ts +5 -0
- package/page/App/module/PageNavBar/style.tsx +154 -0
- package/page/App/module/ScreenEditor/index.tsx +39 -0
- package/page/App/module/StyleEditor/index.tsx +33 -0
- package/page/App/module/StyleEditor/styles.ts +146 -0
- package/page/App/module/StyleSpaceTree/index.tsx +104 -0
- package/page/App/module/ThemeEditor/index.tsx +36 -0
- package/page/App/module/ThemeEditor/styles.ts +146 -0
- package/page/App/style.tsx +139 -0
- package/redux/config/configListener.ts +101 -0
- package/redux/config/configPayload.ts +14 -0
- package/redux/config/configReducer.ts +337 -0
- package/redux/config/configSelector.ts +199 -0
- package/redux/config/configSlice.ts +88 -0
- package/redux/config/configState.ts +79 -0
- package/redux/currentApp/action/actionListener.ts +158 -0
- package/redux/currentApp/action/actionReducer.ts +137 -0
- package/redux/currentApp/action/actionSelector.ts +126 -0
- package/redux/currentApp/action/actionSlice.ts +34 -0
- package/redux/currentApp/action/actionState.ts +29 -0
- package/redux/currentApp/action/interface.ts +77 -0
- package/redux/currentApp/components/componentsListener.ts +212 -0
- package/redux/currentApp/components/componentsPayload.ts +56 -0
- package/redux/currentApp/components/componentsReducer.ts +1150 -0
- package/redux/currentApp/components/componentsSelector.ts +537 -0
- package/redux/currentApp/components/componentsSlice.ts +88 -0
- package/redux/currentApp/components/componentsState.ts +371 -0
- package/redux/currentApp/cursor/cursorReducer.ts +78 -0
- package/redux/currentApp/cursor/cursorSelector.ts +10 -0
- package/redux/currentApp/cursor/cursorSlice.ts +26 -0
- package/redux/currentApp/cursor/cursorState.ts +20 -0
- package/redux/currentApp/executionController/controllerReducer.ts +50 -0
- package/redux/currentApp/executionController/controllerSelector.ts +41 -0
- package/redux/currentApp/executionController/controllerSlice.ts +28 -0
- package/redux/currentApp/executionController/controllerState.ts +3 -0
- package/redux/currentApp/executionController/interface.ts +131 -0
- package/redux/currentApp/executionTree/executionListener.ts +293 -0
- package/redux/currentApp/executionTree/executionReducer.ts +276 -0
- package/redux/currentApp/executionTree/executionSelector.ts +754 -0
- package/redux/currentApp/executionTree/executionSlice.ts +54 -0
- package/redux/currentApp/executionTree/executionState.ts +322 -0
- package/redux/currentApp/selector.ts +2 -0
- package/redux/currentApp/slice.ts +17 -0
- package/redux/currentApp/style/cursorSlice.ts +30 -0
- package/redux/currentApp/style/styleReducer.ts +75 -0
- package/redux/currentApp/style/styleSelector.ts +24 -0
- package/redux/currentApp/style/styleState.ts +446 -0
- package/redux/resource/resourceReducer.ts +48 -0
- package/redux/resource/resourceSelector.ts +16 -0
- package/redux/resource/resourceSlice.ts +24 -0
- package/redux/resource/resourceState.ts +40 -0
- package/redux/resource/upstashResource.ts +2 -0
- package/redux/utils.ts +316 -0
- package/scripts/reset-project.js +112 -0
- package/store.ts +38 -0
- package/style.tsx +69 -0
- package/theme.ts +206 -0
- package/tsconfig.json +67 -0
- package/utils/DropDown/dropdown.tsx +63 -0
- package/utils/DropDown/droplist-item.tsx +54 -0
- package/utils/DropDown/droplist.tsx +48 -0
- package/utils/DropDown/index.ts +4 -0
- package/utils/DropDown/interface.ts +47 -0
- package/utils/DropDown/style.ts +212 -0
- package/utils/DropDown/use-merge-value.ts +50 -0
- package/utils/DropDown/vite-env.d.ts +1 -0
- package/utils/IconHotSpot/index.tsx +36 -0
- package/utils/IconHotSpot/interface.ts +10 -0
- package/utils/IconHotSpot/style.ts +29 -0
- package/utils/InspectHelper/selectWidgetHelper.ts +25 -0
- package/utils/Link/index.ts +2 -0
- package/utils/Link/interface.ts +28 -0
- package/utils/Link/link.tsx +38 -0
- package/utils/Link/style.ts +69 -0
- package/utils/Notification/hook.ts +66 -0
- package/utils/Notification/index.ts +5 -0
- package/utils/Notification/interface.ts +30 -0
- package/utils/Notification/notification-group.tsx +111 -0
- package/utils/Notification/notification-store.ts +113 -0
- package/utils/Notification/notification.tsx +160 -0
- package/utils/Notification/style.ts +144 -0
- package/utils/Table/filterFn.ts +21 -0
- package/utils/Table/filters-editor.tsx +163 -0
- package/utils/Table/index.ts +11 -0
- package/utils/Table/interface.ts +218 -0
- package/utils/Table/raw-tip.tsx +3 -0
- package/utils/Table/react-table.d.ts +14 -0
- package/utils/Table/render-data-driven-table.tsx +682 -0
- package/utils/Table/render-direct-table.tsx +68 -0
- package/utils/Table/style.ts +395 -0
- package/utils/Table/table-context.ts +8 -0
- package/utils/Table/table-data.ts +1 -0
- package/utils/Table/table-filter.tsx +98 -0
- package/utils/Table/table.tsx +26 -0
- package/utils/Table/tbody.tsx +21 -0
- package/utils/Table/td.tsx +123 -0
- package/utils/Table/tfoot.tsx +24 -0
- package/utils/Table/th.tsx +65 -0
- package/utils/Table/thead.tsx +28 -0
- package/utils/Table/tr.tsx +30 -0
- package/utils/Table/utils.ts +305 -0
- package/utils/action/runAction.ts +357 -0
- package/utils/action/runActionEventHandler.ts +44 -0
- package/utils/action/runActionTransformer.ts +22 -0
- package/utils/action/transResponse.ts +98 -0
- package/utils/action/transformDataFormat.ts +28 -0
- package/utils/autoUpdateHeight.ts +25 -0
- package/utils/basicConfig.ts +144 -0
- package/utils/changeDisplayNameHelper.ts +298 -0
- package/utils/color-palette.ts +147 -0
- package/utils/colorBuilder/index.ts +146 -0
- package/utils/componentNode/buildTree.ts +62 -0
- package/utils/componentNode/changeDisplayNameHelper.ts +22 -0
- package/utils/componentNode/copyHelper.ts +1 -0
- package/utils/componentNode/flatTree.ts +59 -0
- package/utils/componentNode/search.ts +30 -0
- package/utils/configProvider/config-provider-context.tsx +10 -0
- package/utils/configProvider/config-provider.tsx +18 -0
- package/utils/configProvider/config.tsx +15 -0
- package/utils/configProvider/index.ts +9 -0
- package/utils/configProvider/interface.ts +20 -0
- package/utils/configProvider/locale/def.tsx +3 -0
- package/utils/configProvider/locale/en-US.tsx +107 -0
- package/utils/configProvider/vite-env.d.ts +1 -0
- package/utils/converter.ts +74 -0
- package/utils/copyManager.ts +378 -0
- package/utils/drag/drag.ts +37 -0
- package/utils/evaluateDynamicString/codeSandbox.ts +173 -0
- package/utils/evaluateDynamicString/dynamicConverter.ts +63 -0
- package/utils/evaluateDynamicString/index.ts +61 -0
- package/utils/evaluateDynamicString/utils.ts +92 -0
- package/utils/evaluateDynamicString/valueConverter.ts +136 -0
- package/utils/eventHandlerHelper/index.ts +444 -0
- package/utils/eventHandlerHelper/utils/commonUtils.ts +168 -0
- package/utils/eventHandlerHelper/utils/globalDataUtils.ts +20 -0
- package/utils/eventHandlerHelper/utils/localStorage.ts +16 -0
- package/utils/executionTreeHelper/ast/constants.ts +23 -0
- package/utils/executionTreeHelper/ast/index.ts +57 -0
- package/utils/executionTreeHelper/ast/interface.ts +151 -0
- package/utils/executionTreeHelper/ast/typeHelper.ts +154 -0
- package/utils/executionTreeHelper/ast/utils.ts +11 -0
- package/utils/executionTreeHelper/ast/walk.ts +132 -0
- package/utils/executionTreeHelper/ast/walkHelper.ts +93 -0
- package/utils/executionTreeHelper/executionTreeFactory.ts +790 -0
- package/utils/executionTreeHelper/generateGlobalData.ts +18 -0
- package/utils/executionTreeHelper/generatePageInfo.ts +76 -0
- package/utils/executionTreeHelper/generateRawAction.ts +66 -0
- package/utils/executionTreeHelper/generateRawWidget.ts +18 -0
- package/utils/executionTreeHelper/generateUrlParams.ts +16 -0
- package/utils/executionTreeHelper/interface.ts +41 -0
- package/utils/executionTreeHelper/rawTreeFactory.ts +63 -0
- package/utils/executionTreeHelper/rrecursiveDelete.ts +25 -0
- package/utils/executionTreeHelper/runtimePropsCollector.ts +242 -0
- package/utils/executionTreeHelper/utils.ts +147 -0
- package/utils/focusManager.ts +37 -0
- package/utils/generators/generateAllTypePathsFromWidgetConfig.ts +127 -0
- package/utils/generators/generateComponentNode.ts +269 -0
- package/utils/generators/generateDisplayName.ts +98 -0
- package/utils/generators/generatePageOrSectionConfig.ts +147 -0
- package/utils/generators/interface.ts +116 -0
- package/utils/getStyleMap.ts +30 -0
- package/utils/helper.ts +36 -0
- package/utils/mediaSourceLoad/index.tsx +25 -0
- package/utils/mediaSourceLoad/interface.ts +11 -0
- package/utils/mediaSourceLoad/utils.ts +16 -0
- package/utils/mixpanelHelper/index.tsx +338 -0
- package/utils/model/src/hook.ts +64 -0
- package/utils/model/src/index.ts +5 -0
- package/utils/model/src/interface.ts +239 -0
- package/utils/model/src/modal-group.tsx +59 -0
- package/utils/model/src/modal-store.ts +95 -0
- package/utils/model/src/modal.tsx +245 -0
- package/utils/model/src/omit.ts +17 -0
- package/utils/model/src/style.ts +328 -0
- package/utils/pagination/index.ts +2 -0
- package/utils/pagination/interface.ts +40 -0
- package/utils/pagination/pagination.tsx +511 -0
- package/utils/pagination/style.ts +199 -0
- package/utils/shortcut/index.tsx +510 -0
- package/utils/shortcut/interface.ts +29 -0
- package/utils/shortcut/shortcutProvider.tsx +8 -0
- package/utils/spin/index.ts +2 -0
- package/utils/spin/interface.ts +30 -0
- package/utils/spin/spin.tsx +60 -0
- package/utils/spin/styles.ts +95 -0
- package/utils/switch/index.ts +2 -0
- package/utils/switch/interface.ts +34 -0
- package/utils/switch/style.ts +132 -0
- package/utils/switch/switch.tsx +74 -0
- package/utils/trigger/Box.ts +197 -0
- package/utils/trigger/index.ts +4 -0
- package/utils/trigger/interface.ts +75 -0
- package/utils/trigger/popup.tsx +49 -0
- package/utils/trigger/style.ts +184 -0
- package/utils/trigger/transform.ts +55 -0
- package/utils/trigger/trigger-context.tsx +9 -0
- package/utils/trigger/trigger-provider.tsx +15 -0
- package/utils/trigger/trigger.tsx +432 -0
- package/utils/trigger/vite-env.d.ts +1 -0
- package/utils/undoRedo/antonymyRule.ts +159 -0
- package/utils/undoRedo/circularStack.ts +52 -0
- package/utils/undoRedo/undo.ts +82 -0
- package/utils/undoRedo/undoRedoMethod/action.ts +53 -0
- package/utils/undoRedo/undoRedoMethod/components.ts +0 -0
- package/utils/userAgent/index.ts +30 -0
- package/utils/validationFactory/index.ts +155 -0
- package/widgetLibrary/BasicContainer/BasicContainer.tsx +18 -0
- package/widgetLibrary/BasicContainer/BasicPanel.ts +54 -0
- package/widgetLibrary/ButtonWidget/button.tsx +63 -0
- package/widgetLibrary/ButtonWidget/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/ButtonWidget/index.tsx +4 -0
- package/widgetLibrary/ButtonWidget/interface.ts +217 -0
- package/widgetLibrary/ButtonWidget/panelConfig.tsx +203 -0
- package/widgetLibrary/ButtonWidget/style.ts +6 -0
- package/widgetLibrary/ButtonWidget/widgetConfig.tsx +19 -0
- package/widgetLibrary/ButtonWidgetNative/button.tsx +65 -0
- package/widgetLibrary/ButtonWidgetNative/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/ButtonWidgetNative/index.tsx +4 -0
- package/widgetLibrary/ButtonWidgetNative/interface.ts +215 -0
- package/widgetLibrary/ButtonWidgetNative/panelConfig.tsx +196 -0
- package/widgetLibrary/ButtonWidgetNative/style.ts +6 -0
- package/widgetLibrary/ButtonWidgetNative/widgetConfig.tsx +17 -0
- package/widgetLibrary/CSSGrid/GridChild.tsx +293 -0
- package/widgetLibrary/CSSGrid/GridContainer.tsx +171 -0
- package/widgetLibrary/CSSGrid/WidgetConfig.tsx +40 -0
- package/widgetLibrary/CSSGrid/eventHandlerConfig.ts +23 -0
- package/widgetLibrary/CSSGrid/panelConfig.tsx +160 -0
- package/widgetLibrary/CSSGrid/style.ts +143 -0
- package/widgetLibrary/CSSGrid/utils.tsx +57 -0
- package/widgetLibrary/Card/Card.tsx +84 -0
- package/widgetLibrary/Card/index.ts +3 -0
- package/widgetLibrary/Card/interface.ts +12 -0
- package/widgetLibrary/Card/panelConfig.tsx +89 -0
- package/widgetLibrary/Card/widgetConfig.tsx +20 -0
- package/widgetLibrary/CheckBoxContainer/checkBox.tsx +161 -0
- package/widgetLibrary/CheckBoxContainer/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/CheckBoxContainer/icons.tsx +20 -0
- package/widgetLibrary/CheckBoxContainer/index.ts +3 -0
- package/widgetLibrary/CheckBoxContainer/interface.ts +18 -0
- package/widgetLibrary/CheckBoxContainer/panelConfig.tsx +215 -0
- package/widgetLibrary/CheckBoxContainer/widgetConfig.tsx +17 -0
- package/widgetLibrary/CheckBoxContainerNative/checkBox.tsx +123 -0
- package/widgetLibrary/CheckBoxContainerNative/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/CheckBoxContainerNative/index.ts +3 -0
- package/widgetLibrary/CheckBoxContainerNative/interface.ts +18 -0
- package/widgetLibrary/CheckBoxContainerNative/panelConfig.tsx +179 -0
- package/widgetLibrary/CheckBoxContainerNative/widgetConfig.tsx +17 -0
- package/widgetLibrary/ContainerWidget/container.tsx +207 -0
- package/widgetLibrary/ContainerWidget/emptyState.tsx +41 -0
- package/widgetLibrary/ContainerWidget/eventHandlerConfig.ts +22 -0
- package/widgetLibrary/ContainerWidget/index.tsx +3 -0
- package/widgetLibrary/ContainerWidget/interface.ts +53 -0
- package/widgetLibrary/ContainerWidget/panelConfig.tsx +174 -0
- package/widgetLibrary/ContainerWidget/style.ts +38 -0
- package/widgetLibrary/ContainerWidget/widgetConfig.tsx +31 -0
- package/widgetLibrary/CreditCard/CreditCard.tsx +108 -0
- package/widgetLibrary/CreditCard/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/CreditCard/index.ts +4 -0
- package/widgetLibrary/CreditCard/interface.ts +12 -0
- package/widgetLibrary/CreditCard/panelConfig.tsx +101 -0
- package/widgetLibrary/CreditCard/widgetConfig.tsx +20 -0
- package/widgetLibrary/DateWidget/date.tsx +212 -0
- package/widgetLibrary/DateWidget/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/DateWidget/index.ts +6 -0
- package/widgetLibrary/DateWidget/interface.ts +29 -0
- package/widgetLibrary/DateWidget/panelConfig.tsx +151 -0
- package/widgetLibrary/DateWidget/styles.css +5 -0
- package/widgetLibrary/DateWidget/widgetConfig.tsx +21 -0
- package/widgetLibrary/EmptyBoxWidget/EmptyBox.tsx +21 -0
- package/widgetLibrary/EmptyBoxWidget/index.ts +3 -0
- package/widgetLibrary/EmptyBoxWidget/interface.ts +7 -0
- package/widgetLibrary/EmptyBoxWidget/panelConfig.tsx +21 -0
- package/widgetLibrary/EmptyBoxWidget/widgetConfig.tsx +15 -0
- package/widgetLibrary/FileInput/FileInput.tsx +9 -0
- package/widgetLibrary/FileInput/index.ts +3 -0
- package/widgetLibrary/FileInput/panelConfig.tsx +213 -0
- package/widgetLibrary/FileInput/widgetConfig.tsx +16 -0
- package/widgetLibrary/FormWidget/eventHandlerConfig.ts +20 -0
- package/widgetLibrary/FormWidget/form.tsx +409 -0
- package/widgetLibrary/FormWidget/index.ts +3 -0
- package/widgetLibrary/FormWidget/interface.ts +29 -0
- package/widgetLibrary/FormWidget/panelConfig.tsx +181 -0
- package/widgetLibrary/FormWidget/style.ts +46 -0
- package/widgetLibrary/FormWidget/widgetConfig.tsx +73 -0
- package/widgetLibrary/GridContainer/GridContainer.tsx +188 -0
- package/widgetLibrary/GridContainer/WidgetConfig.tsx +46 -0
- package/widgetLibrary/GridContainer/eventHandlerConfig.ts +23 -0
- package/widgetLibrary/GridContainer/panelConfig.tsx +211 -0
- package/widgetLibrary/IconWidget/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/IconWidget/icon.tsx +37 -0
- package/widgetLibrary/IconWidget/index.ts +3 -0
- package/widgetLibrary/IconWidget/interface.ts +23 -0
- package/widgetLibrary/IconWidget/panelConfig.tsx +105 -0
- package/widgetLibrary/IconWidget/style.ts +37 -0
- package/widgetLibrary/IconWidget/utils.tsx +90 -0
- package/widgetLibrary/IconWidget/widgetConfig.tsx +17 -0
- package/widgetLibrary/Image/Image.tsx +32 -0
- package/widgetLibrary/Image/index.ts +3 -0
- package/widgetLibrary/Image/interface.ts +14 -0
- package/widgetLibrary/Image/panelConfig.tsx +90 -0
- package/widgetLibrary/Image/widgetConfig.tsx +18 -0
- package/widgetLibrary/ImageNative/Image.tsx +45 -0
- package/widgetLibrary/ImageNative/index.ts +3 -0
- package/widgetLibrary/ImageNative/interface.ts +14 -0
- package/widgetLibrary/ImageNative/panelConfig.tsx +90 -0
- package/widgetLibrary/ImageNative/widgetConfig.tsx +18 -0
- package/widgetLibrary/InputNativeWidget/PhoneInput.tsx +29 -0
- package/widgetLibrary/InputNativeWidget/eventHandlerConfig.ts +26 -0
- package/widgetLibrary/InputNativeWidget/index.ts +5 -0
- package/widgetLibrary/InputNativeWidget/input.tsx +234 -0
- package/widgetLibrary/InputNativeWidget/interface.ts +45 -0
- package/widgetLibrary/InputNativeWidget/panelConfig.tsx +353 -0
- package/widgetLibrary/InputNativeWidget/style.ts +5 -0
- package/widgetLibrary/InputNativeWidget/utils.ts +44 -0
- package/widgetLibrary/InputNativeWidget/widgetConfig.tsx +24 -0
- package/widgetLibrary/InputWidget/PhoneInput.tsx +29 -0
- package/widgetLibrary/InputWidget/eventHandlerConfig.ts +26 -0
- package/widgetLibrary/InputWidget/index.ts +5 -0
- package/widgetLibrary/InputWidget/input.tsx +267 -0
- package/widgetLibrary/InputWidget/interface.ts +45 -0
- package/widgetLibrary/InputWidget/panelConfig.tsx +325 -0
- package/widgetLibrary/InputWidget/style.ts +5 -0
- package/widgetLibrary/InputWidget/utils.ts +44 -0
- package/widgetLibrary/InputWidget/widgetConfig.tsx +24 -0
- package/widgetLibrary/Label/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/Label/index.ts +4 -0
- package/widgetLibrary/Label/interface.ts +14 -0
- package/widgetLibrary/Label/label.tsx +38 -0
- package/widgetLibrary/Label/panelConfig.tsx +82 -0
- package/widgetLibrary/Label/widgetConfig.tsx +23 -0
- package/widgetLibrary/LabelNative/Label.tsx +38 -0
- package/widgetLibrary/LabelNative/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/LabelNative/index.ts +3 -0
- package/widgetLibrary/LabelNative/interface.ts +30 -0
- package/widgetLibrary/LabelNative/panelConfig.ts +205 -0
- package/widgetLibrary/LabelNative/widgetConfig.ts +21 -0
- package/widgetLibrary/MuiltiSelect.tsx/MultiSelect.tsx +261 -0
- package/widgetLibrary/MuiltiSelect.tsx/eventHandlerConfig.ts +26 -0
- package/widgetLibrary/MuiltiSelect.tsx/index.ts +3 -0
- package/widgetLibrary/MuiltiSelect.tsx/interface.ts +72 -0
- package/widgetLibrary/MuiltiSelect.tsx/panelConfig.tsx +289 -0
- package/widgetLibrary/MuiltiSelect.tsx/style.ts +81 -0
- package/widgetLibrary/MuiltiSelect.tsx/styles.css +4 -0
- package/widgetLibrary/MuiltiSelect.tsx/widgetConfig.tsx +33 -0
- package/widgetLibrary/NativeContainer/BasicPanel.ts +189 -0
- package/widgetLibrary/NativeContainer/NativeChild.tsx +156 -0
- package/widgetLibrary/NativeContainer/NativeContainer.tsx +189 -0
- package/widgetLibrary/NativeContainer/WidgetConfig.tsx +37 -0
- package/widgetLibrary/NativeContainer/index.ts +3 -0
- package/widgetLibrary/NativeContainer/interface.ts +22 -0
- package/widgetLibrary/NativeContainer/panelConfig.tsx +150 -0
- package/widgetLibrary/OTPWidget/OTP.tsx +175 -0
- package/widgetLibrary/OTPWidget/OTPInput.tsx +231 -0
- package/widgetLibrary/OTPWidget/eventHandlerConfig.ts +26 -0
- package/widgetLibrary/OTPWidget/index.ts +5 -0
- package/widgetLibrary/OTPWidget/interface.ts +37 -0
- package/widgetLibrary/OTPWidget/panelConfig.tsx +140 -0
- package/widgetLibrary/OTPWidget/style.ts +5 -0
- package/widgetLibrary/OTPWidget/widgetConfig.tsx +20 -0
- package/widgetLibrary/PublicSector/AutoHeightContainer/index.tsx +46 -0
- package/widgetLibrary/PublicSector/AutoHeightContainer/style.ts +11 -0
- package/widgetLibrary/PublicSector/InvalidMessage/index.tsx +18 -0
- package/widgetLibrary/PublicSector/InvalidMessage/interface.tsx +34 -0
- package/widgetLibrary/PublicSector/InvalidMessage/style.tsx +18 -0
- package/widgetLibrary/PublicSector/InvalidMessage/utils.tsx +307 -0
- package/widgetLibrary/PublicSector/InvalidMessageNative/index.tsx +23 -0
- package/widgetLibrary/PublicSector/InvalidMessageNative/interface.tsx +33 -0
- package/widgetLibrary/PublicSector/InvalidMessageNative/style.tsx +22 -0
- package/widgetLibrary/PublicSector/utils/generatorEventHandlerConfig.ts +953 -0
- package/widgetLibrary/PublicSector/utils/generatorTableEventHandlerConfig.ts +686 -0
- package/widgetLibrary/RadioWidget/eventHandlerConfig.ts +15 -0
- package/widgetLibrary/RadioWidget/index.ts +4 -0
- package/widgetLibrary/RadioWidget/interface.ts +24 -0
- package/widgetLibrary/RadioWidget/panelConfig.tsx +274 -0
- package/widgetLibrary/RadioWidget/radio.tsx +217 -0
- package/widgetLibrary/RadioWidget/widgetConfig.tsx +44 -0
- package/widgetLibrary/RenderChildrenCanvas/index.tsx +59 -0
- package/widgetLibrary/RenderChildrenCanvas/interface.ts +8 -0
- package/widgetLibrary/SelectWidget/Select.tsx +215 -0
- package/widgetLibrary/SelectWidget/eventHandlerConfig.ts +26 -0
- package/widgetLibrary/SelectWidget/formSelectOptions.ts +71 -0
- package/widgetLibrary/SelectWidget/index.ts +3 -0
- package/widgetLibrary/SelectWidget/interface.ts +72 -0
- package/widgetLibrary/SelectWidget/panelConfig.tsx +299 -0
- package/widgetLibrary/SelectWidget/styles.css +4 -0
- package/widgetLibrary/SelectWidget/widgetConfig.tsx +37 -0
- package/widgetLibrary/Slider/Slider.tsx +229 -0
- package/widgetLibrary/Slider/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/Slider/index.ts +4 -0
- package/widgetLibrary/Slider/interface.ts +12 -0
- package/widgetLibrary/Slider/panelConfig.tsx +71 -0
- package/widgetLibrary/Slider/widgetConfig.tsx +18 -0
- package/widgetLibrary/TableWidget/eventHandlerConfig.ts +69 -0
- package/widgetLibrary/TableWidget/index.ts +3 -0
- package/widgetLibrary/TableWidget/interface.ts +192 -0
- package/widgetLibrary/TableWidget/panelConfig.tsx +625 -0
- package/widgetLibrary/TableWidget/react-table.d.ts +15 -0
- package/widgetLibrary/TableWidget/renderTableCell.tsx +280 -0
- package/widgetLibrary/TableWidget/style.ts +117 -0
- package/widgetLibrary/TableWidget/table.tsx +698 -0
- package/widgetLibrary/TableWidget/utils.tsx +448 -0
- package/widgetLibrary/TableWidget/widgetConfig.tsx +57 -0
- package/widgetLibrary/Tabs/Tabs.tsx +259 -0
- package/widgetLibrary/Tabs/index.ts +3 -0
- package/widgetLibrary/Tabs/panelConfig.tsx +186 -0
- package/widgetLibrary/Tabs/widgetConfig.tsx +38 -0
- package/widgetLibrary/TextAreaContainer/TextArea.tsx +133 -0
- package/widgetLibrary/TextAreaContainer/index.ts +3 -0
- package/widgetLibrary/TextAreaContainer/interface.ts +27 -0
- package/widgetLibrary/TextAreaContainer/panelConfig.tsx +148 -0
- package/widgetLibrary/TextAreaContainer/widgetConfig.tsx +25 -0
- package/widgetLibrary/TextAreaContainerNative/TextArea.tsx +101 -0
- package/widgetLibrary/TextAreaContainerNative/index.ts +3 -0
- package/widgetLibrary/TextAreaContainerNative/interface.ts +29 -0
- package/widgetLibrary/TextAreaContainerNative/panelConfig.tsx +180 -0
- package/widgetLibrary/TextAreaContainerNative/widgetConfig.tsx +25 -0
- package/widgetLibrary/UploadFile/UploadFile.tsx +162 -0
- package/widgetLibrary/UploadFile/index.tsx +3 -0
- package/widgetLibrary/UploadFile/panelConfig.tsx +158 -0
- package/widgetLibrary/UploadFile/widgetConfig.tsx +32 -0
- package/widgetLibrary/UploadWidget/eventHandlerConfig.ts +14 -0
- package/widgetLibrary/UploadWidget/index.tsx +3 -0
- package/widgetLibrary/UploadWidget/interface.tsx +126 -0
- package/widgetLibrary/UploadWidget/panelConfig.tsx +291 -0
- package/widgetLibrary/UploadWidget/style.tsx +13 -0
- package/widgetLibrary/UploadWidget/upload.tsx +349 -0
- package/widgetLibrary/UploadWidget/util.ts +1 -0
- package/widgetLibrary/UploadWidget/widgetConfig.tsx +30 -0
- package/widgetLibrary/WidgetLoading/index.tsx +16 -0
- package/widgetLibrary/WidgetLoading/style.ts +9 -0
- package/widgetLibrary/componentListBuildet.tsx +89 -0
- package/widgetLibrary/interface.ts +156 -0
- package/widgetLibrary/widgetBuilder.tsx +327 -0
- package/dist/impaktapps-ui-builder.d.ts +0 -1
- package/dist/impaktapps-ui-builder.es.js +0 -12429
- package/dist/impaktapps-ui-builder.es.js.map +0 -1
- package/dist/impaktapps-ui-builder.umd.js +0 -28
- package/dist/impaktapps-ui-builder.umd.js.map +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildAadharCard.d.ts +0 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildArray.d.ts +0 -11
- package/dist/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.d.ts +0 -8
- package/dist/src/impaktapps-ui-builder/builder/build/buildButton.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCard.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildCheckbox.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildConfig.d.ts +0 -4
- package/dist/src/impaktapps-ui-builder/builder/build/buildDataGrid.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +0 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildDownloadFile.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildEmptyBox.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildFileInput.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.d.ts +0 -2
- package/dist/src/impaktapps-ui-builder/builder/build/buildInputSlider.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildLabel.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildLeaderboard.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildLineGraph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildMultiSelect.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPieGraph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPop.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBar.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildRadio.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildRankCard.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildRollAndDice.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildSelect.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildSlider.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildStepper.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTabSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTable.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildText.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTextArea.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTimer.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildTreeMap.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +0 -12
- package/dist/src/impaktapps-ui-builder/builder/build/buildUplaodFile.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildWrapperSection.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/apiSection.d.ts +0 -168
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +0 -13
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.d.ts +0 -111
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/button.d.ts +0 -22
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/card.d.ts +0 -206
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.d.ts +0 -13
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/coreSection.d.ts +0 -149
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +0 -39
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.d.ts +0 -18
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/eventSection.d.ts +0 -159
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/file.d.ts +0 -46
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/graph.d.ts +0 -104
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.d.ts +0 -17
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.d.ts +0 -23
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/progressBar.d.ts +0 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rankCard.d.ts +0 -17
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/refresh.d.ts +0 -48
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.d.ts +0 -17
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.d.ts +0 -17
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.d.ts +0 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.d.ts +0 -52
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/styleSection.d.ts +0 -33
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +0 -21
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tableSection.d.ts +0 -159
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/tabsection.d.ts +0 -12
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/textInputField.d.ts +0 -20
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.d.ts +0 -17
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/timer.d.ts +0 -18
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +0 -47
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/valueTab.d.ts +0 -46
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +0 -13
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.d.ts +0 -47
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.d.ts +0 -76
- package/dist/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.d.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +0 -26
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +0 -96
- package/dist/src/impaktapps-ui-builder/builder/services/pageMaster.d.ts +0 -72
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +0 -10
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +0 -9
- package/dist/src/impaktapps-ui-builder/runtime/services/downloadFile.d.ts +0 -2
- package/dist/src/impaktapps-ui-builder/runtime/services/events.d.ts +0 -11
- package/dist/src/impaktapps-ui-builder/runtime/services/interface.d.ts +0 -13
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +0 -30
- package/src/impaktapps-ui-builder/builder/build/buildAadharCard.ts +0 -65
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +0 -18
- package/src/impaktapps-ui-builder/builder/build/buildBasicUiSchema.ts +0 -10
- package/src/impaktapps-ui-builder/builder/build/buildButton.ts +0 -43
- package/src/impaktapps-ui-builder/builder/build/buildCard.ts +0 -33
- package/src/impaktapps-ui-builder/builder/build/buildCardSlider.ts +0 -72
- package/src/impaktapps-ui-builder/builder/build/buildCheckbox.ts +0 -28
- package/src/impaktapps-ui-builder/builder/build/buildConfig.ts +0 -53
- package/src/impaktapps-ui-builder/builder/build/buildDataGrid.ts +0 -51
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +0 -24
- package/src/impaktapps-ui-builder/builder/build/buildDownloadFile.ts +0 -24
- package/src/impaktapps-ui-builder/builder/build/buildEmptyBox.ts +0 -11
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +0 -35
- package/src/impaktapps-ui-builder/builder/build/buildHorizontalBarGraph.ts +0 -48
- package/src/impaktapps-ui-builder/builder/build/buildInputSlider.ts +0 -46
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/buildLeaderboard.ts +0 -47
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +0 -46
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +0 -24
- package/src/impaktapps-ui-builder/builder/build/buildPieGraph.ts +0 -28
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +0 -43
- package/src/impaktapps-ui-builder/builder/build/buildProgressBar.ts +0 -26
- package/src/impaktapps-ui-builder/builder/build/buildProgressBarCard.ts +0 -27
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +0 -35
- package/src/impaktapps-ui-builder/builder/build/buildRankCard.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/buildRollAndDice.ts +0 -14
- package/src/impaktapps-ui-builder/builder/build/buildRunnerBoyProgrssBar.ts +0 -12
- package/src/impaktapps-ui-builder/builder/build/buildSchema.ts +0 -31
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/buildSlider.ts +0 -14
- package/src/impaktapps-ui-builder/builder/build/buildSpeedoMeter.ts +0 -54
- package/src/impaktapps-ui-builder/builder/build/buildStackBarGraph.ts +0 -44
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +0 -45
- package/src/impaktapps-ui-builder/builder/build/buildTabSection.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +0 -72
- package/src/impaktapps-ui-builder/builder/build/buildText.ts +0 -23
- package/src/impaktapps-ui-builder/builder/build/buildTextArea.ts +0 -56
- package/src/impaktapps-ui-builder/builder/build/buildThoughtOfTheDay.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/buildTimer.ts +0 -15
- package/src/impaktapps-ui-builder/builder/build/buildTreeMap.ts +0 -61
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +0 -393
- package/src/impaktapps-ui-builder/builder/build/buildUplaodFile.ts +0 -21
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +0 -21
- package/src/impaktapps-ui-builder/builder/build/schema/arraySchemaBuilder.ts +0 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/apiSection.ts +0 -195
- package/src/impaktapps-ui-builder/builder/build/uischema/array.ts +0 -14
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -495
- package/src/impaktapps-ui-builder/builder/build/uischema/button.ts +0 -22
- package/src/impaktapps-ui-builder/builder/build/uischema/card.ts +0 -196
- package/src/impaktapps-ui-builder/builder/build/uischema/cardSlider.ts +0 -14
- package/src/impaktapps-ui-builder/builder/build/uischema/coreSection.ts +0 -197
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +0 -30
- package/src/impaktapps-ui-builder/builder/build/uischema/emptyBox.ts +0 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +0 -167
- package/src/impaktapps-ui-builder/builder/build/uischema/file.ts +0 -38
- package/src/impaktapps-ui-builder/builder/build/uischema/graph.ts +0 -63
- package/src/impaktapps-ui-builder/builder/build/uischema/leaderBoard.ts +0 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/multiSelect.ts +0 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBar.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/progressBarCard.ts +0 -27
- package/src/impaktapps-ui-builder/builder/build/uischema/rankCard.ts +0 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/refresh.ts +0 -63
- package/src/impaktapps-ui-builder/builder/build/uischema/rollAndDice.ts +0 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/runnerBoyProgressBar.ts +0 -13
- package/src/impaktapps-ui-builder/builder/build/uischema/selectInputField.ts +0 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/speedoMeter.ts +0 -49
- package/src/impaktapps-ui-builder/builder/build/uischema/styleSection.ts +0 -37
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +0 -20
- package/src/impaktapps-ui-builder/builder/build/uischema/tableIconButton.ts +0 -17
- package/src/impaktapps-ui-builder/builder/build/uischema/tableSection.ts +0 -169
- package/src/impaktapps-ui-builder/builder/build/uischema/tabsection.ts +0 -9
- package/src/impaktapps-ui-builder/builder/build/uischema/textInputField.ts +0 -15
- package/src/impaktapps-ui-builder/builder/build/uischema/thoughtOfTheDay.ts +0 -14
- package/src/impaktapps-ui-builder/builder/build/uischema/timer.ts +0 -18
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +0 -57
- package/src/impaktapps-ui-builder/builder/build/uischema/valueTab.ts +0 -57
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +0 -11
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +0 -352
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/uiSchema.ts +0 -700
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/schema.ts +0 -49
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +0 -834
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +0 -92
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +0 -565
- package/src/impaktapps-ui-builder/builder/services/component.ts +0 -255
- package/src/impaktapps-ui-builder/builder/services/event.ts +0 -158
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +0 -123
- package/src/impaktapps-ui-builder/builder/services/utils.ts +0 -108
- package/src/impaktapps-ui-builder/lib/index.ts +0 -10
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +0 -32
- package/src/impaktapps-ui-builder/runtime/services/events.ts +0 -284
- package/src/impaktapps-ui-builder/runtime/services/interface.ts +0 -13
- package/src/impaktapps-ui-builder/runtime/services/rankProvider.ts +0 -132
- package/src/impaktapps-ui-builder/runtime/services/service.ts +0 -370
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
import { convertPathToString, isObject } from "@/redux/utils"
|
|
4
|
+
import { extractIdentifierInfoFromCode } from "./ast"
|
|
5
|
+
import { toPath } from "lodash"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const IMMEDIATE_PARENT_REGEX = /^(.*)(\..*|\[.*\])$/
|
|
9
|
+
|
|
10
|
+
export const extractReferencesFromScript = (script: string): string[] => {
|
|
11
|
+
const newReference = new Set<string>()
|
|
12
|
+
|
|
13
|
+
const { references } = extractIdentifierInfoFromCode(script)
|
|
14
|
+
references.forEach((identifier: string) => {
|
|
15
|
+
newReference.add(identifier)
|
|
16
|
+
const subPaths = toPath(identifier)
|
|
17
|
+
let current = ""
|
|
18
|
+
while (subPaths.length > 1) {
|
|
19
|
+
current = convertPathToString(subPaths)
|
|
20
|
+
newReference.add(current)
|
|
21
|
+
subPaths.pop()
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
return Array.from(newReference)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function getDisplayNameAndPropertyPath(fullPath: string): {
|
|
28
|
+
displayName: string
|
|
29
|
+
attrPath: string
|
|
30
|
+
} {
|
|
31
|
+
const indexOfFirstDot = fullPath.indexOf(".")
|
|
32
|
+
if (indexOfFirstDot === -1) {
|
|
33
|
+
return {
|
|
34
|
+
displayName: fullPath,
|
|
35
|
+
attrPath: "",
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const displayName = fullPath.substring(0, indexOfFirstDot)
|
|
39
|
+
const attrPath = fullPath.substring(indexOfFirstDot + 1)
|
|
40
|
+
return { displayName, attrPath }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function isWidget(entity: Record<string, any>) {
|
|
44
|
+
return (
|
|
45
|
+
typeof entity === "object" && "$type" in entity && entity.$type === "WIDGET"
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function isAction(entity: Record<string, any>) {
|
|
50
|
+
return (
|
|
51
|
+
typeof entity === "object" && "$type" in entity && entity.$type === "ACTION"
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const getImmediateParentsOfPropertyPaths = (
|
|
56
|
+
propertyPaths: string[],
|
|
57
|
+
): string[] => {
|
|
58
|
+
const parents: Set<string> = new Set()
|
|
59
|
+
|
|
60
|
+
propertyPaths.forEach((path) => {
|
|
61
|
+
const matches = path.match(IMMEDIATE_PARENT_REGEX)
|
|
62
|
+
|
|
63
|
+
if (matches !== null) {
|
|
64
|
+
parents.add(matches[1])
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
return Array.from(parents)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const removeIgnoredKeys = (result: Record<string, unknown>) => {
|
|
72
|
+
return Object.keys(result).reduce(
|
|
73
|
+
(acc: Record<string, unknown>, key: string) => {
|
|
74
|
+
const componentOrAction = result[key]
|
|
75
|
+
if (isObject(componentOrAction)) {
|
|
76
|
+
const updatedComponentOrAction = Object.keys(componentOrAction).reduce(
|
|
77
|
+
(obj: Record<string, unknown>, innerKey: string) => {
|
|
78
|
+
if (!innerKey.startsWith("$")) {
|
|
79
|
+
obj[innerKey] = componentOrAction[innerKey]
|
|
80
|
+
}
|
|
81
|
+
return obj
|
|
82
|
+
},
|
|
83
|
+
{},
|
|
84
|
+
)
|
|
85
|
+
acc[key] = updatedComponentOrAction
|
|
86
|
+
} else {
|
|
87
|
+
acc[key] = componentOrAction
|
|
88
|
+
}
|
|
89
|
+
return acc
|
|
90
|
+
},
|
|
91
|
+
{},
|
|
92
|
+
)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export const removeWidgetOrActionMethods = (
|
|
96
|
+
result: Record<string, unknown>,
|
|
97
|
+
) => {
|
|
98
|
+
return Object.keys(result).reduce(
|
|
99
|
+
(acc: Record<string, unknown>, key: string) => {
|
|
100
|
+
if (key === "utils") return acc
|
|
101
|
+
const componentOrAction = result[key]
|
|
102
|
+
if (
|
|
103
|
+
isObject(componentOrAction) &&
|
|
104
|
+
(componentOrAction.$type === "WIDGET" ||
|
|
105
|
+
componentOrAction.$type === "ACTION")
|
|
106
|
+
) {
|
|
107
|
+
const updatedComponentOrAction = Object.keys(componentOrAction).reduce(
|
|
108
|
+
(obj: Record<string, unknown>, innerKey: string) => {
|
|
109
|
+
const innerValue = componentOrAction[innerKey]
|
|
110
|
+
if (typeof innerValue !== "function") {
|
|
111
|
+
obj[innerKey] = componentOrAction[innerKey]
|
|
112
|
+
}
|
|
113
|
+
return obj
|
|
114
|
+
},
|
|
115
|
+
{},
|
|
116
|
+
)
|
|
117
|
+
acc[key] = updatedComponentOrAction
|
|
118
|
+
} else {
|
|
119
|
+
acc[key] = componentOrAction
|
|
120
|
+
}
|
|
121
|
+
return acc
|
|
122
|
+
},
|
|
123
|
+
{},
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function getObjectPaths(obj: Record<string, unknown>, currentPath = "") {
|
|
128
|
+
let paths: string[] = []
|
|
129
|
+
|
|
130
|
+
if (typeof obj === "object" && obj !== null) {
|
|
131
|
+
Object.keys(obj).forEach((key) => {
|
|
132
|
+
const value = obj[key]
|
|
133
|
+
const newPath = Array.isArray(obj)
|
|
134
|
+
? `${currentPath}.${key}`
|
|
135
|
+
: `${currentPath ? currentPath + "." : ""}${key}`
|
|
136
|
+
if (typeof value === "object" && value !== null) {
|
|
137
|
+
paths = paths.concat(
|
|
138
|
+
getObjectPaths(value as Record<string, unknown>, newPath),
|
|
139
|
+
)
|
|
140
|
+
} else {
|
|
141
|
+
paths.push(newPath)
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return paths.map((path) => (path.startsWith(".") ? path.substr(1) : path))
|
|
147
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type IMPAKTAPPSPanelType =
|
|
2
|
+
| "none"
|
|
3
|
+
| "data_component"
|
|
4
|
+
| "data_action"
|
|
5
|
+
| "data_page"
|
|
6
|
+
| "data_global_state"
|
|
7
|
+
| "action"
|
|
8
|
+
| "canvas"
|
|
9
|
+
| "widget_picker"
|
|
10
|
+
| "components_config"
|
|
11
|
+
| "page_config"
|
|
12
|
+
export interface ClickPosition {
|
|
13
|
+
displayName: string
|
|
14
|
+
type: "inner_container" | "component" | "group"
|
|
15
|
+
clickPosition: number[]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class FocusManager {
|
|
19
|
+
private static currentFocus: IMPAKTAPPSPanelType = "none"
|
|
20
|
+
private static currentClickPosition?: ClickPosition
|
|
21
|
+
|
|
22
|
+
static switchFocus(
|
|
23
|
+
IMPAKTAPPSPanelType: IMPAKTAPPSPanelType,
|
|
24
|
+
clickPosition?: ClickPosition,
|
|
25
|
+
) {
|
|
26
|
+
this.currentFocus = IMPAKTAPPSPanelType
|
|
27
|
+
this.currentClickPosition = clickPosition
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
static getClickPosition(): ClickPosition | undefined {
|
|
31
|
+
return this.currentClickPosition
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
static getFocus(): IMPAKTAPPSPanelType {
|
|
35
|
+
return this.currentFocus
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
|
|
2
|
+
import { convertPathToString, isObject } from "@/redux/utils"
|
|
3
|
+
import { get, toPath } from "lodash-es"
|
|
4
|
+
// import {
|
|
5
|
+
// PanelConfig,
|
|
6
|
+
// PanelFieldGroupConfig,
|
|
7
|
+
// } from "@/page/app/components/InspectPanel/interface"
|
|
8
|
+
// import { isObject } from "@/utils/typeHelper"
|
|
9
|
+
// import { VALIDATION_TYPES } from "@/utils/validationFactory"
|
|
10
|
+
|
|
11
|
+
export const generateAllTypePathsFromWidgetConfig = (
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
panelConfig: any[]=[],
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
widgetOrAction: Record<string, any>,
|
|
16
|
+
) => {
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
let validationPaths: Record<string, any> = {}
|
|
19
|
+
panelConfig.forEach((config) => {
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
+
if ((config as any).children) {
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
+
const filedConfigs = (config as any).children
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
+
filedConfigs.forEach((filedConfig:any) => {
|
|
26
|
+
const attrPath = filedConfig.attrName
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
const configValidationPaths: Record<string, any> = {}
|
|
29
|
+
|
|
30
|
+
if (Array.isArray(attrPath)) {
|
|
31
|
+
const expectedType = filedConfig.expectedType
|
|
32
|
+
if (Array.isArray(expectedType)) {
|
|
33
|
+
attrPath.forEach((path, i) => {
|
|
34
|
+
configValidationPaths[path] = expectedType[i]
|
|
35
|
+
})
|
|
36
|
+
} else if (expectedType) {
|
|
37
|
+
attrPath.forEach((path) => {
|
|
38
|
+
configValidationPaths[path] = expectedType
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
} else {
|
|
42
|
+
if (filedConfig.expectedType) {
|
|
43
|
+
const expectedType = filedConfig.expectedType
|
|
44
|
+
|
|
45
|
+
if (Array.isArray(expectedType)) {
|
|
46
|
+
configValidationPaths[attrPath] = expectedType[0]
|
|
47
|
+
} else if (expectedType) {
|
|
48
|
+
configValidationPaths[attrPath] = expectedType
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (filedConfig.childrenSetter) {
|
|
54
|
+
const basePropertyPath = filedConfig.attrName
|
|
55
|
+
const widgetPropertyValue = get(widgetOrAction, basePropertyPath, [])
|
|
56
|
+
if (Array.isArray(widgetPropertyValue)) {
|
|
57
|
+
Object.keys(widgetPropertyValue).forEach((key) => {
|
|
58
|
+
const objectIndexPropertyPath = convertPathToString(
|
|
59
|
+
toPath(`${basePropertyPath}.${key}`),
|
|
60
|
+
)
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
62
|
+
filedConfig.childrenSetter?.forEach((childConfig:any) => {
|
|
63
|
+
const childAttrPath = childConfig.attrName
|
|
64
|
+
const expectedType = childConfig.expectedType
|
|
65
|
+
if (Array.isArray(childAttrPath)) {
|
|
66
|
+
if (Array.isArray(expectedType)) {
|
|
67
|
+
childAttrPath.forEach((path, i) => {
|
|
68
|
+
configValidationPaths[
|
|
69
|
+
convertPathToString(
|
|
70
|
+
toPath(`${objectIndexPropertyPath}.${path}`),
|
|
71
|
+
)
|
|
72
|
+
] = expectedType[i]
|
|
73
|
+
})
|
|
74
|
+
} else if (expectedType) {
|
|
75
|
+
childAttrPath.forEach((path) => {
|
|
76
|
+
configValidationPaths[
|
|
77
|
+
convertPathToString(
|
|
78
|
+
toPath(`${objectIndexPropertyPath}.${path}`),
|
|
79
|
+
)
|
|
80
|
+
] = expectedType
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
if (expectedType) {
|
|
85
|
+
if (Array.isArray(expectedType)) {
|
|
86
|
+
configValidationPaths[
|
|
87
|
+
convertPathToString(
|
|
88
|
+
toPath(`${objectIndexPropertyPath}.${childAttrPath}`),
|
|
89
|
+
)
|
|
90
|
+
] = expectedType[0]
|
|
91
|
+
} else if (expectedType) {
|
|
92
|
+
configValidationPaths[
|
|
93
|
+
convertPathToString(
|
|
94
|
+
toPath(`${objectIndexPropertyPath}.${childAttrPath}`),
|
|
95
|
+
)
|
|
96
|
+
] = expectedType
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
if (isObject(widgetPropertyValue)) {
|
|
104
|
+
Object.keys(widgetPropertyValue).forEach((key) => {
|
|
105
|
+
const objectIndexPropertyPath = convertPathToString(
|
|
106
|
+
toPath(`${basePropertyPath}.${key}`),
|
|
107
|
+
)
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
|
+
filedConfig.childrenSetter?.forEach((childConfig:any) => {
|
|
110
|
+
const expectedType = childConfig.expectedType
|
|
111
|
+
if (!Array.isArray(expectedType) && expectedType) {
|
|
112
|
+
configValidationPaths[objectIndexPropertyPath] = expectedType
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
validationPaths = {
|
|
119
|
+
...validationPaths,
|
|
120
|
+
...configValidationPaths,
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
return { validationPaths }
|
|
127
|
+
}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { klona } from "klona"
|
|
3
|
+
import { buildInitDragInfo } from "@/page/App/components/componentPanel/componentListBuilder"
|
|
4
|
+
// import { DEFAULT_MIN_COLUMN } from "@/page/app/components/ScaleSquare/constant/widget"
|
|
5
|
+
|
|
6
|
+
import { DisplayNameGenerator } from "@/utils/generators/generateDisplayName"
|
|
7
|
+
import { WidgetConfig } from "@/widgetLibrary/interface"
|
|
8
|
+
import { widgetBuilder, WidgetType } from "@/widgetLibrary/widgetBuilder"
|
|
9
|
+
import { isObject } from "@/redux/utils"
|
|
10
|
+
import { ComponentTreeNode, CONTAINER_TYPE } from "@/redux/currentApp/components/componentsState"
|
|
11
|
+
import { get, set } from "lodash-es"
|
|
12
|
+
export const TEMPLATE_DISPLAYNAME_KEY = "templateDisplayName"
|
|
13
|
+
|
|
14
|
+
export const generateWidgetLayoutInfo = (
|
|
15
|
+
type: string,
|
|
16
|
+
baseDisplayName: string,
|
|
17
|
+
containerType: CONTAINER_TYPE = CONTAINER_TYPE.EDITOR_SCALE_SQUARE,
|
|
18
|
+
): any => {
|
|
19
|
+
const realDisplayName = DisplayNameGenerator.generateDisplayName(
|
|
20
|
+
type,
|
|
21
|
+
baseDisplayName,
|
|
22
|
+
)
|
|
23
|
+
const currentComponentConfig = buildInitDragInfo(type)
|
|
24
|
+
if (currentComponentConfig === undefined) {
|
|
25
|
+
return undefined
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
displayName: realDisplayName,
|
|
30
|
+
widgetType:type,
|
|
31
|
+
containerType,
|
|
32
|
+
parentNode: "",
|
|
33
|
+
childrenNode: [] as string[],
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const generateComponentNodeByWidgetInfo = (
|
|
38
|
+
displayName: string,
|
|
39
|
+
widgetInfo: Omit<WidgetConfig, "icon" | "sessionType" | "keywords">,
|
|
40
|
+
parentNodeDisplayName: string,
|
|
41
|
+
pathToChildren: string[] = [],
|
|
42
|
+
scale: number = 1,
|
|
43
|
+
) => {
|
|
44
|
+
let baseDSL: ComponentTreeNode
|
|
45
|
+
let childrenNodeDSL: ComponentTreeNode[] = []
|
|
46
|
+
const {
|
|
47
|
+
defaults,
|
|
48
|
+
type,
|
|
49
|
+
displayName: showName,
|
|
50
|
+
containerType = CONTAINER_TYPE.EDITOR_SCALE_SQUARE,
|
|
51
|
+
version,
|
|
52
|
+
} = widgetInfo
|
|
53
|
+
let props: Record<string, any> | undefined = {}
|
|
54
|
+
if (typeof defaults === "function") {
|
|
55
|
+
props = klona(defaults())
|
|
56
|
+
} else {
|
|
57
|
+
props = klona(defaults)
|
|
58
|
+
}
|
|
59
|
+
if (isObject(props) && Object.prototype.hasOwnProperty.call(props, "formDataKey")) {
|
|
60
|
+
props.formDataKey = `{{${displayName}.displayName}}`
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (
|
|
64
|
+
isObject(props) &&
|
|
65
|
+
Object.prototype.hasOwnProperty.call(props, "events") &&
|
|
66
|
+
Array.isArray(props.events)
|
|
67
|
+
) {
|
|
68
|
+
props.events = props.events.map((event) => {
|
|
69
|
+
if (event.actionType !== "widget") {
|
|
70
|
+
return event
|
|
71
|
+
} else {
|
|
72
|
+
return {
|
|
73
|
+
...event,
|
|
74
|
+
widgetID: pathToChildren[pathToChildren.length - 1] || "unknown",
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (widgetInfo.childrenNode && Array.isArray(widgetInfo.childrenNode)) {
|
|
81
|
+
pathToChildren =
|
|
82
|
+
containerType === CONTAINER_TYPE.EDITOR_SCALE_SQUARE
|
|
83
|
+
? [...pathToChildren, displayName]
|
|
84
|
+
: pathToChildren
|
|
85
|
+
widgetInfo.childrenNode.map((childNode) => {
|
|
86
|
+
if (!childrenNodeDSL) childrenNodeDSL = []
|
|
87
|
+
const child = newGenerateChildrenComponentNode(
|
|
88
|
+
childNode,
|
|
89
|
+
displayName,
|
|
90
|
+
pathToChildren,
|
|
91
|
+
scale,
|
|
92
|
+
)
|
|
93
|
+
childrenNodeDSL.push(child)
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
baseDSL = {
|
|
98
|
+
showName: showName,
|
|
99
|
+
type,
|
|
100
|
+
displayName: displayName,
|
|
101
|
+
containerType,
|
|
102
|
+
parentNode: parentNodeDisplayName,
|
|
103
|
+
childrenNode: childrenNodeDSL,
|
|
104
|
+
version,
|
|
105
|
+
props: props ?? {},
|
|
106
|
+
}
|
|
107
|
+
if (baseDSL.type === "LIST_WIDGET" || baseDSL.type === "GRID_LIST_WIDGET") {
|
|
108
|
+
baseDSL = transformListWidget(baseDSL)
|
|
109
|
+
}
|
|
110
|
+
return baseDSL
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export const newGenerateChildrenComponentNode = (
|
|
114
|
+
widgetInfo: Omit<WidgetConfig, "icon" | "sessionType" | "keywords">,
|
|
115
|
+
parentNodeDisplayName: string,
|
|
116
|
+
pathToChildren: string[] = [],
|
|
117
|
+
scale: number = 1,
|
|
118
|
+
): ComponentTreeNode => {
|
|
119
|
+
if (widgetInfo.type === "NATIVECANVAS" || widgetInfo.type === "CANVAS"||widgetInfo.type === "DIV") {
|
|
120
|
+
const realDisplayName = DisplayNameGenerator.generateDisplayName(
|
|
121
|
+
widgetInfo.type,
|
|
122
|
+
widgetInfo.displayName,
|
|
123
|
+
)
|
|
124
|
+
let childrenNodeDSL: ComponentTreeNode[] = []
|
|
125
|
+
if (
|
|
126
|
+
Array.isArray(widgetInfo.childrenNode) &&
|
|
127
|
+
widgetInfo.childrenNode.length > 0
|
|
128
|
+
) {
|
|
129
|
+
widgetInfo.childrenNode.map((childNode) => {
|
|
130
|
+
if (!childrenNodeDSL) childrenNodeDSL = []
|
|
131
|
+
const child = newGenerateChildrenComponentNode(
|
|
132
|
+
childNode,
|
|
133
|
+
realDisplayName,
|
|
134
|
+
pathToChildren,
|
|
135
|
+
scale,
|
|
136
|
+
)
|
|
137
|
+
childrenNodeDSL.push(child)
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
showName: widgetInfo.displayName,
|
|
142
|
+
type: widgetInfo.type,
|
|
143
|
+
containerType: widgetInfo.containerType as CONTAINER_TYPE,
|
|
144
|
+
parentNode: parentNodeDisplayName,
|
|
145
|
+
childrenNode: childrenNodeDSL,
|
|
146
|
+
displayName: realDisplayName,
|
|
147
|
+
props: {},
|
|
148
|
+
version: widgetInfo.version,
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const layoutInfo = generateWidgetLayoutInfo(
|
|
152
|
+
widgetInfo.type,
|
|
153
|
+
widgetInfo.displayName,
|
|
154
|
+
widgetInfo.containerType,
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
return generateComponentNodeByWidgetInfo(
|
|
158
|
+
layoutInfo?.displayName || "",
|
|
159
|
+
widgetInfo,
|
|
160
|
+
parentNodeDisplayName,
|
|
161
|
+
pathToChildren,
|
|
162
|
+
scale,
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export const newGenerateComponentNode = (
|
|
167
|
+
widgetType: WidgetType,
|
|
168
|
+
displayName: string,
|
|
169
|
+
parentNodeDisplayName: string,
|
|
170
|
+
pathToChildren: string[] = [],
|
|
171
|
+
scale: number = 1,
|
|
172
|
+
) => {
|
|
173
|
+
let baseDSL: ComponentTreeNode
|
|
174
|
+
const baseConfig = widgetBuilder(widgetType).config
|
|
175
|
+
let childrenNodeDSL: ComponentTreeNode[] = []
|
|
176
|
+
const {
|
|
177
|
+
defaults,
|
|
178
|
+
type,
|
|
179
|
+
displayName: showName,
|
|
180
|
+
containerType = CONTAINER_TYPE.EDITOR_SCALE_SQUARE,
|
|
181
|
+
} = baseConfig
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
183
|
+
let props: Record<string, any> | undefined = {}
|
|
184
|
+
if (typeof defaults === "function") {
|
|
185
|
+
props = klona(defaults())
|
|
186
|
+
} else {
|
|
187
|
+
props = klona(defaults)
|
|
188
|
+
}
|
|
189
|
+
if (isObject(props) && Object.hasOwn(props, "formDataKey")) {
|
|
190
|
+
props.formDataKey = `{{${displayName}.displayName}}`
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (
|
|
194
|
+
isObject(props) &&
|
|
195
|
+
Object.prototype.hasOwnProperty.call(props, "events") &&
|
|
196
|
+
Array.isArray(props.events)
|
|
197
|
+
) {
|
|
198
|
+
props.events = props.events.map((event) => {
|
|
199
|
+
if (event.actionType !== "widget") {
|
|
200
|
+
return event
|
|
201
|
+
} else {
|
|
202
|
+
return {
|
|
203
|
+
...event,
|
|
204
|
+
widgetID: pathToChildren[pathToChildren.length - 1] || "unknown",
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
})
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (baseConfig.childrenNode && Array.isArray(baseConfig.childrenNode)) {
|
|
211
|
+
pathToChildren =
|
|
212
|
+
containerType === CONTAINER_TYPE.EDITOR_SCALE_SQUARE
|
|
213
|
+
? [...pathToChildren, displayName]
|
|
214
|
+
: pathToChildren
|
|
215
|
+
baseConfig.childrenNode.map((childNode) => {
|
|
216
|
+
if (!childrenNodeDSL) childrenNodeDSL = []
|
|
217
|
+
const child = newGenerateChildrenComponentNode(
|
|
218
|
+
childNode,
|
|
219
|
+
displayName,
|
|
220
|
+
pathToChildren,
|
|
221
|
+
scale,
|
|
222
|
+
)
|
|
223
|
+
childrenNodeDSL.push(child)
|
|
224
|
+
})
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
baseDSL = {
|
|
228
|
+
showName: showName,
|
|
229
|
+
type,
|
|
230
|
+
displayName: displayName,
|
|
231
|
+
containerType,
|
|
232
|
+
parentNode: parentNodeDisplayName,
|
|
233
|
+
childrenNode: childrenNodeDSL,
|
|
234
|
+
props: props ?? {},
|
|
235
|
+
}
|
|
236
|
+
if (baseDSL.type === "LIST_WIDGET" || baseDSL.type === "GRID_LIST_WIDGET") {
|
|
237
|
+
baseDSL = transformListWidget(baseDSL)
|
|
238
|
+
} else {
|
|
239
|
+
baseDSL = transFormTemplateDisplayName(baseDSL)
|
|
240
|
+
}
|
|
241
|
+
return baseDSL
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function transformListWidget(baseDSL: ComponentTreeNode) {
|
|
245
|
+
const container = baseDSL.childrenNode[0]
|
|
246
|
+
const templateChildren = container.childrenNode
|
|
247
|
+
templateChildren.map((node) => {
|
|
248
|
+
return transFormTemplateDisplayName(node, baseDSL.displayName)
|
|
249
|
+
})
|
|
250
|
+
return baseDSL
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function transFormTemplateDisplayName(
|
|
254
|
+
baseDSL: ComponentTreeNode,
|
|
255
|
+
targetDisplayName: string = baseDSL.displayName,
|
|
256
|
+
) {
|
|
257
|
+
const props = baseDSL.props
|
|
258
|
+
if (props && Array.isArray(props.$dynamicAttrPaths)) {
|
|
259
|
+
props.$dynamicAttrPaths.forEach((path) => {
|
|
260
|
+
const originValue = get(baseDSL, `props.${path}`, "")
|
|
261
|
+
const finalValue = originValue.replace(
|
|
262
|
+
TEMPLATE_DISPLAYNAME_KEY,
|
|
263
|
+
targetDisplayName,
|
|
264
|
+
)
|
|
265
|
+
set(baseDSL, `props.${path}`, finalValue)
|
|
266
|
+
})
|
|
267
|
+
}
|
|
268
|
+
return baseDSL
|
|
269
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { ComponentTreeNode } from "@/redux/currentApp/components/componentsState"
|
|
3
|
+
export const ADD_DISPLAY_NAME = "addDisplayName"
|
|
4
|
+
export const REMOVE_DISPLAY_NAME = "removeDisplayName"
|
|
5
|
+
export const UPDATE_DISPLAY_NAME = "updateDisplayName"
|
|
6
|
+
export const GENERATE_OR_UPDATE_DISPLAYNAME = "generateOrUpdateDisplayName"
|
|
7
|
+
|
|
8
|
+
export const PLACEHOLDER_DISPLAYNAME = ["document", "utils"]
|
|
9
|
+
|
|
10
|
+
export class DisplayNameGenerator {
|
|
11
|
+
static displayNameList = new Set<string>(PLACEHOLDER_DISPLAYNAME)
|
|
12
|
+
static appId: string = ""
|
|
13
|
+
static teamID: string = ""
|
|
14
|
+
static uid: string = ""
|
|
15
|
+
static namePrefix = ""
|
|
16
|
+
static isAlreadyGenerate(displayName: string): boolean {
|
|
17
|
+
return this.displayNameList.has(displayName)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static initApp(appId: string, teamID: string, uid: string, prefix) {
|
|
21
|
+
this.appId = appId
|
|
22
|
+
this.teamID = teamID
|
|
23
|
+
this.uid = uid
|
|
24
|
+
this.namePrefix = prefix
|
|
25
|
+
}
|
|
26
|
+
static removeNamePrefix (){
|
|
27
|
+
this.namePrefix = ""
|
|
28
|
+
}
|
|
29
|
+
static addNamePrefix (){
|
|
30
|
+
this.namePrefix = "impakt"
|
|
31
|
+
}
|
|
32
|
+
static generateDisplayName(type: string, showName?: string,): string {
|
|
33
|
+
let index = 1
|
|
34
|
+
let name = `${showName || type}${index}`
|
|
35
|
+
if (this.namePrefix) {
|
|
36
|
+
name = `${this.namePrefix}_${showName || type}${index}`
|
|
37
|
+
}
|
|
38
|
+
// check cache map
|
|
39
|
+
while (this.isAlreadyGenerate(name)) {
|
|
40
|
+
index = index + 1
|
|
41
|
+
if (this.namePrefix) {
|
|
42
|
+
name = `${this.namePrefix}_${showName || type}${index}`
|
|
43
|
+
} else {
|
|
44
|
+
name = `${showName || type}${index}`
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
this.displayNameList.add(name)
|
|
48
|
+
return name
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
static updateDisplayNameList(
|
|
52
|
+
componentNode: ComponentTreeNode,
|
|
53
|
+
|
|
54
|
+
actionList: any[],
|
|
55
|
+
) {
|
|
56
|
+
this.displayNameList = new Set<string>(PLACEHOLDER_DISPLAYNAME)
|
|
57
|
+
actionList.forEach((action) => {
|
|
58
|
+
this.displayNameList.add(action.displayName)
|
|
59
|
+
})
|
|
60
|
+
this.addComponentDisplayName(componentNode)
|
|
61
|
+
const globalData = componentNode.props?.globalData ?? {}
|
|
62
|
+
Object.keys(globalData).forEach((key) => {
|
|
63
|
+
this.displayNameList.add(key)
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static addComponentDisplayName(componentNode: ComponentTreeNode) {
|
|
68
|
+
this.displayNameList.add(componentNode.displayName)
|
|
69
|
+
|
|
70
|
+
componentNode.childrenNode?.forEach((child: any) => {
|
|
71
|
+
this.addComponentDisplayName(child)
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static addDisplayNames(displayNames: string[]) {
|
|
76
|
+
displayNames.forEach((displayName) => {
|
|
77
|
+
this.displayNameList.add(displayName)
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static updateOrGenerateDisplayName(displayName: string) {
|
|
82
|
+
if (this.displayNameList.has(displayName)) {
|
|
83
|
+
return this.generateDisplayName(displayName)
|
|
84
|
+
}
|
|
85
|
+
this.displayNameList.add(displayName)
|
|
86
|
+
return displayName
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static removeDisplayName(displayName: string) {
|
|
90
|
+
this.displayNameList.delete(displayName)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static removeDisplayNameMulti(displayNames: string[]) {
|
|
94
|
+
displayNames.forEach((displayName) => {
|
|
95
|
+
this.displayNameList.delete(displayName)
|
|
96
|
+
})
|
|
97
|
+
}
|
|
98
|
+
}
|