@gct-paas/design 0.1.4-dev.7 → 0.1.4-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/transform-js.worker-BtVTa-PT.js +666 -0
- package/dist/index.esm.min.mjs +25756 -464
- package/dist/index.min.cjs +70 -1
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +70 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/assets/transform-js.worker-DdeZQ5i-.js +296567 -0
- package/es/components/design/design-content/design-content.css +76 -0
- package/es/components/design/design-content/design-content.d.ts +191 -0
- package/es/components/design/design-content/design-content.mjs +363 -0
- package/es/components/design/design-drag-item/design-drag-item.css +179 -0
- package/es/components/design/design-drag-item/design-drag-item.d.ts +55 -0
- package/es/components/design/design-drag-item/design-drag-item.mjs +296 -0
- package/es/components/design/design-drop-container/design-drop-container.css +103 -0
- package/es/components/design/design-drop-container/design-drop-container.d.ts +91 -0
- package/es/components/design/design-drop-container/design-drop-container.mjs +220 -0
- package/es/components/design/design-drop-line/design-drop-line.css +165 -0
- package/es/components/design/design-drop-line/design-drop-line.d.ts +72 -0
- package/es/components/design/design-drop-line/design-drop-line.mjs +178 -0
- package/es/components/design/design-item-actions/design-item-actions.css +97 -0
- package/es/components/design/design-item-actions/design-item-actions.d.ts +42 -0
- package/es/components/design/design-item-actions/design-item-actions.mjs +196 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.css +70 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.d.ts +168 -0
- package/es/components/design/design-item-highlighter/design-item-highlighter.mjs +167 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.css +85 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.d.ts +53 -0
- package/es/components/design/design-item-highlighter-container/design-item-highlighter-container.mjs +224 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.css +12 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.d.ts +60 -0
- package/es/components/design/design-item-hover-title/design-item-hover-title.mjs +74 -0
- package/es/components/design/design-item-preview/design-item-preview.css +91 -0
- package/es/components/design/design-item-preview/design-item-preview.d.ts +1 -0
- package/es/components/design/design-item-preview/design-item-preview.mjs +50 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.css +67 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.d.ts +49 -0
- package/es/components/design/design-not-drag-item/design-not-drag-item.mjs +87 -0
- package/es/components/design/design-not-found/design-not-found.css +68 -0
- package/es/components/design/design-not-found/design-not-found.d.ts +14 -0
- package/es/components/design/design-not-found/design-not-found.mjs +26 -0
- package/es/components/design/index.d.ts +6 -0
- package/es/components/design/index.mjs +22 -0
- package/es/components/design-icon-button/design-icon-button.css +101 -0
- package/es/components/design-icon-button/design-icon-button.d.ts +104 -0
- package/es/components/design-icon-button/design-icon-button.mjs +150 -0
- package/es/components/design-save-tip/design-save-tip.css +107 -0
- package/es/components/design-save-tip/design-save-tip.d.ts +44 -0
- package/es/components/design-save-tip/design-save-tip.mjs +107 -0
- package/es/components/design-step-check/design-step-check.css +133 -0
- package/es/components/design-step-check/design-step-check.d.ts +30 -0
- package/es/components/design-step-check/design-step-check.mjs +122 -0
- package/es/components/design-view-layout/design-view-layout.css +157 -0
- package/es/components/design-view-layout/design-view-layout.d.ts +1 -0
- package/es/components/design-view-layout/design-view-layout.mjs +209 -0
- package/es/components/editor/index.d.ts +5 -0
- package/es/components/editor/index.mjs +15 -0
- package/es/components/editor/style/border-editor/border-box.css +144 -0
- package/es/components/editor/style/border-editor/border-box.vue.d.ts +10 -0
- package/es/components/editor/style/border-editor/border-box.vue2.mjs +7 -0
- package/es/components/editor/style/border-editor/border-box.vue3.mjs +305 -0
- package/es/components/editor/style/border-editor/border-editor.css +64 -0
- package/es/components/editor/style/border-editor/border-editor.vue.d.ts +13 -0
- package/es/components/editor/style/border-editor/border-editor.vue2.mjs +7 -0
- package/es/components/editor/style/border-editor/border-editor.vue3.mjs +60 -0
- package/es/components/editor/style/border-editor/border-radius.css +102 -0
- package/es/components/editor/style/border-editor/border-radius.vue.d.ts +10 -0
- package/es/components/editor/style/border-editor/border-radius.vue2.mjs +7 -0
- package/es/components/editor/style/border-editor/border-radius.vue3.mjs +212 -0
- package/es/components/editor/style/border-editor/util.d.ts +19 -0
- package/es/components/editor/style/border-editor/util.mjs +77 -0
- package/es/components/editor/style/font-editor/align-group.css +28 -0
- package/es/components/editor/style/font-editor/align-group.vue.d.ts +10 -0
- package/es/components/editor/style/font-editor/align-group.vue2.mjs +7 -0
- package/es/components/editor/style/font-editor/align-group.vue3.mjs +66 -0
- package/es/components/editor/style/font-editor/font-editor.vue.d.ts +10 -0
- package/es/components/editor/style/font-editor/font-editor.vue.mjs +72 -0
- package/es/components/editor/style/font-editor/font-editor.vue2.mjs +5 -0
- package/es/components/editor/style/font-editor/font-style-group.css +29 -0
- package/es/components/editor/style/font-editor/font-style-group.vue.d.ts +11 -0
- package/es/components/editor/style/font-editor/font-style-group.vue2.mjs +7 -0
- package/es/components/editor/style/font-editor/font-style-group.vue3.mjs +105 -0
- package/es/components/editor/style/font-editor/util.d.ts +2 -0
- package/es/components/editor/style/font-editor/util.mjs +12 -0
- package/es/components/editor/style/position-editor/position-editor.css +158 -0
- package/es/components/editor/style/position-editor/position-editor.vue.d.ts +12 -0
- package/es/components/editor/style/position-editor/position-editor.vue2.mjs +7 -0
- package/es/components/editor/style/position-editor/position-editor.vue3.mjs +242 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.css +135 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue.d.ts +16 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue2.mjs +7 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue3.mjs +311 -0
- package/es/components/icon/downleft-icon.vue.d.ts +4 -0
- package/es/components/icon/downleft-icon.vue.mjs +11 -0
- package/es/components/icon/downleft-icon.vue2.mjs +27 -0
- package/es/components/icon/downright-icon.vue.d.ts +4 -0
- package/es/components/icon/downright-icon.vue.mjs +11 -0
- package/es/components/icon/downright-icon.vue2.mjs +27 -0
- package/es/components/icon/upleft-icon.vue.d.ts +4 -0
- package/es/components/icon/upleft-icon.vue.mjs +11 -0
- package/es/components/icon/upleft-icon.vue2.mjs +27 -0
- package/es/components/icon/upright-icon.vue.d.ts +4 -0
- package/es/components/icon/upright-icon.vue.mjs +11 -0
- package/es/components/icon/upright-icon.vue2.mjs +27 -0
- package/es/components/index.d.ts +9 -0
- package/es/components/index.mjs +26 -0
- package/es/components/material/index.d.ts +5 -0
- package/es/components/material/index.mjs +9 -0
- package/es/components/material/material-content/material-content.css +86 -0
- package/es/components/material/material-content/material-content.d.ts +187 -0
- package/es/components/material/material-content/material-content.mjs +59 -0
- package/es/components/material/material-module/material-module.css +104 -0
- package/es/components/material/material-module/material-module.d.ts +72 -0
- package/es/components/material/material-module/material-module.mjs +111 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.css +69 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.d.ts +62 -0
- package/es/components/material/material-module-drag-container/material-module-drag-container.mjs +32 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.css +83 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.d.ts +17 -0
- package/es/components/material/material-module-drag-item/material-module-drag-item.mjs +103 -0
- package/es/components/material/material-outline-tree/material-outline-tree.css +81 -0
- package/es/components/material/material-outline-tree/material-outline-tree.d.ts +1 -0
- package/es/components/material/material-outline-tree/material-outline-tree.mjs +90 -0
- package/es/components/material/material-tab-pane/material-tab-pane.css +68 -0
- package/es/components/material/material-tab-pane/material-tab-pane.d.ts +13 -0
- package/es/components/material/material-tab-pane/material-tab-pane.mjs +26 -0
- package/es/components/material/material-tabs/material-tabs.css +105 -0
- package/es/components/material/material-tabs/material-tabs.d.ts +103 -0
- package/es/components/material/material-tabs/material-tabs.mjs +69 -0
- package/es/components/mobile-container/mobile-container.css +134 -0
- package/es/components/mobile-container/mobile-container.d.ts +31 -0
- package/es/components/mobile-container/mobile-container.mjs +81 -0
- package/es/components/modal-name-editor/modal-name-editor.css +117 -0
- package/es/components/modal-name-editor/modal-name-editor.d.ts +44 -0
- package/es/components/modal-name-editor/modal-name-editor.mjs +174 -0
- package/es/components/panel/index.d.ts +5 -0
- package/es/components/panel/index.mjs +9 -0
- package/es/components/panel/panel-content/panel-content.css +183 -0
- package/es/components/panel/panel-content/panel-content.d.ts +19 -0
- package/es/components/panel/panel-content/panel-content.mjs +73 -0
- package/es/components/panel/panel-form/panel-form.css +67 -0
- package/es/components/panel/panel-form/panel-form.d.ts +62 -0
- package/es/components/panel/panel-form/panel-form.mjs +76 -0
- package/es/components/panel/panel-path/panel-path.css +89 -0
- package/es/components/panel/panel-path/panel-path.d.ts +35 -0
- package/es/components/panel/panel-path/panel-path.mjs +75 -0
- package/es/constant/design-editor-type.d.ts +50 -0
- package/es/constant/design-editor-type.mjs +15 -0
- package/es/constant/index.d.ts +256 -1
- package/es/constant/index.mjs +72 -0
- package/es/constant/page-designer.d.ts +75 -0
- package/es/constant/page-designer.mjs +52 -0
- package/es/controller/index.d.ts +1 -0
- package/es/controller/view/design-view.controller.d.ts +47 -0
- package/es/controller/view/design-view.controller.mjs +183 -0
- package/es/create-app-vue.d.ts +8 -0
- package/es/create-app-vue.mjs +11 -0
- package/es/data/design-container-node/design-container-node.d.ts +15 -0
- package/es/data/design-container-node/design-container-node.mjs +6 -0
- package/es/data/design-editor-node/design-editor-node.d.ts +16 -0
- package/es/data/design-editor-node/design-editor-node.mjs +8 -0
- package/es/data/design-node/design-node.d.ts +41 -0
- package/es/data/design-node/design-node.mjs +67 -0
- package/es/data/index.d.ts +3 -0
- package/es/dictionary/index.d.ts +1 -0
- package/es/dictionary/tab-type/tab-type.d.ts +5 -0
- package/es/dictionary/tab-type/tab-type.mjs +24 -0
- package/es/editor/child-list-editor/child-list-editor.css +76 -0
- package/es/editor/child-list-editor/child-list-editor.d.ts +163 -0
- package/es/editor/child-list-editor/child-list-editor.mjs +145 -0
- package/es/editor/child-list-editor/child-list-editor.provider.d.ts +13 -0
- package/es/editor/child-list-editor/child-list-editor.provider.mjs +5 -0
- package/es/editor/child-list-editor/components/child-list-item-editor.css +112 -0
- package/es/editor/child-list-editor/components/child-list-item-editor.d.ts +133 -0
- package/es/editor/child-list-editor/components/child-list-item-editor.mjs +238 -0
- package/es/editor/child-list-editor/index.d.ts +4 -0
- package/es/editor/child-list-editor/index.mjs +13 -0
- package/es/editor/content-tag-style/content-tag-style.css +164 -0
- package/es/editor/content-tag-style/content-tag-style.d.ts +112 -0
- package/es/editor/content-tag-style/content-tag-style.mjs +103 -0
- package/es/editor/content-tag-style/index.d.ts +8 -0
- package/es/editor/content-tag-style/index.mjs +15 -0
- package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.css +156 -0
- package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.d.ts +29 -0
- package/es/editor/custom-exp-menu-editor/components/custom-exp-menu-item.mjs +134 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.css +76 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.d.ts +38 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.mjs +163 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.provider.d.ts +13 -0
- package/es/editor/custom-exp-menu-editor/custom-exp-menu-editor.provider.mjs +5 -0
- package/es/editor/custom-exp-menu-editor/i-custom-exp-menu-model.d.ts +23 -0
- package/es/editor/custom-exp-menu-editor/index.d.ts +5 -0
- package/es/editor/custom-exp-menu-editor/index.mjs +13 -0
- package/es/editor/custom-exp-menu-editor/modal/exp-menu.modal.d.ts +37 -0
- package/es/editor/field-info-editor/field-info-editor.css +125 -0
- package/es/editor/field-info-editor/field-info-editor.d.ts +111 -0
- package/es/editor/field-info-editor/field-info-editor.mjs +60 -0
- package/es/editor/field-info-editor/index.d.ts +8 -0
- package/es/editor/field-info-editor/index.mjs +13 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +27 -0
- package/es/editor/model-field-select/index.d.ts +8 -0
- package/es/editor/model-field-select/index.mjs +13 -0
- package/es/editor/model-field-select/model-field-select.css +141 -0
- package/es/editor/model-field-select/model-field-select.d.ts +42 -0
- package/es/editor/model-field-select/model-field-select.mjs +314 -0
- package/es/editor/style-border/index.d.ts +8 -0
- package/es/editor/style-border/index.mjs +15 -0
- package/es/editor/style-border/style-border.d.ts +38 -0
- package/es/editor/style-border/style-border.mjs +45 -0
- package/es/editor/style-font/index.d.ts +8 -0
- package/es/editor/style-font/index.mjs +15 -0
- package/es/editor/style-font/style-font.css +86 -0
- package/es/editor/style-font/style-font.d.ts +38 -0
- package/es/editor/style-font/style-font.mjs +45 -0
- package/es/editor/style-position/index.d.ts +8 -0
- package/es/editor/style-position/index.mjs +15 -0
- package/es/editor/style-position/style-position.d.ts +38 -0
- package/es/editor/style-position/style-position.mjs +44 -0
- package/es/editor/style-spacing/index.d.ts +8 -0
- package/es/editor/style-spacing/index.mjs +15 -0
- package/es/editor/style-spacing/style-spacing.d.ts +40 -0
- package/es/editor/style-spacing/style-spacing.mjs +69 -0
- package/es/editor/system-page-select/i-system-page-select.d.ts +23 -0
- package/es/editor/system-page-select/index.d.ts +9 -0
- package/es/editor/system-page-select/index.mjs +15 -0
- package/es/editor/system-page-select/system-page-select.css +119 -0
- package/es/editor/system-page-select/system-page-select.d.ts +38 -0
- package/es/editor/system-page-select/system-page-select.mjs +82 -0
- package/es/hooks/design-view/constants/style-editor.const.d.ts +24 -0
- package/es/hooks/design-view/constants/style-editor.const.mjs +53 -0
- package/es/hooks/design-view/design-state.d.ts +2427 -0
- package/es/hooks/design-view/design-state.mjs +86 -0
- package/es/hooks/design-view/designer/useDesignCache.d.ts +4 -0
- package/es/hooks/design-view/designer/useDesignCache.mjs +27 -0
- package/es/hooks/design-view/designer/useDesignHistory.d.ts +16 -0
- package/es/hooks/design-view/designer/useDesignHistory.mjs +102 -0
- package/es/hooks/design-view/designer/useDesignModal.d.ts +1874 -0
- package/es/hooks/design-view/designer/useDesignModal.mjs +80 -0
- package/es/hooks/design-view/designer/useDesignPreview.d.ts +11 -0
- package/es/hooks/design-view/designer/useDesignPreview.mjs +143 -0
- package/es/hooks/design-view/designer/useDesignSave.d.ts +12 -0
- package/es/hooks/design-view/designer/useDesignSave.mjs +239 -0
- package/es/hooks/design-view/editor/usePropEditor.d.ts +33 -0
- package/es/hooks/design-view/editor/usePropEditor.mjs +99 -0
- package/es/hooks/design-view/editor/useStyle.d.ts +21 -0
- package/es/hooks/design-view/editor/useStyle.mjs +30 -0
- package/es/hooks/design-view/editor/useStyleEditor.d.ts +30 -0
- package/es/hooks/design-view/editor/useStyleEditor.mjs +77 -0
- package/es/hooks/design-view/global/useGlobal.d.ts +1392 -0
- package/es/hooks/design-view/global/useGlobal.mjs +74 -0
- package/es/hooks/design-view/layout/useScope.d.ts +12 -0
- package/es/hooks/design-view/layout/useScope.mjs +106 -0
- package/es/hooks/design-view/layout/useToolkit.d.ts +374 -0
- package/es/hooks/design-view/layout/useToolkit.mjs +315 -0
- package/es/hooks/design-view/page/usePage.d.ts +57 -0
- package/es/hooks/design-view/page/usePage.mjs +154 -0
- package/es/hooks/design-view/page/usePageOccupy.d.ts +33 -0
- package/es/hooks/design-view/page/usePageOccupy.mjs +77 -0
- package/es/hooks/design-view/useDesigner.d.ts +2938 -0
- package/es/hooks/design-view/useDesigner.mjs +109 -0
- package/es/hooks/design-view/utils/color.util.d.ts +21 -0
- package/es/hooks/design-view/utils/color.util.mjs +36 -0
- package/es/hooks/design-view/utils/field-schema.util.d.ts +55 -0
- package/es/hooks/design-view/utils/field-schema.util.mjs +96 -0
- package/es/hooks/design-view/widget/useSelectedWidget.d.ts +53 -0
- package/es/hooks/design-view/widget/useSelectedWidget.mjs +219 -0
- package/es/hooks/design-view/widget/useWidget.d.ts +107 -0
- package/es/hooks/design-view/widget/useWidget.mjs +124 -0
- package/es/hooks/design-view/widget/useWidgetQuery.d.ts +13 -0
- package/es/hooks/design-view/widget/useWidgetQuery.mjs +88 -0
- package/es/hooks/design-view/widget/useWidgetRegistry.d.ts +11 -0
- package/es/hooks/design-view/widget/useWidgetRegistry.mjs +59 -0
- package/es/hooks/designer.hooks.d.ts +15 -0
- package/es/hooks/designer.hooks.mjs +12 -0
- package/es/hooks/develop/useCacheHistory.d.ts +67 -0
- package/es/hooks/develop/useCacheHistory.mjs +157 -0
- package/es/hooks/develop/useKeyParser.d.ts +16 -0
- package/es/hooks/develop/useKeyParser.mjs +67 -0
- package/es/hooks/index.d.ts +25 -1
- package/es/hooks/use-design-view-controller/use-design-view-controller.d.ts +11 -0
- package/es/hooks/use-design-view-controller/use-design-view-controller.mjs +26 -0
- package/es/hooks/use-model-field/use-model-field.d.ts +32 -0
- package/es/hooks/use-model-field/use-model-field.mjs +344 -0
- package/es/hooks/web/useUUid.d.ts +41 -0
- package/es/hooks/web/useUUid.mjs +93 -0
- package/es/index.d.ts +12 -4
- package/es/index.mjs +112 -23
- package/es/interface/actions/i-design-view.actions.d.ts +217 -0
- package/es/interface/controller/i-design-view.controller.d.ts +53 -14
- package/es/interface/design/i-design-container-node.d.ts +13 -0
- package/es/interface/design/i-design-data.d.ts +44 -0
- package/es/interface/design/i-design-editor-data.d.ts +20 -0
- package/es/interface/design/i-design-editor-node.d.ts +15 -0
- package/es/interface/design/i-design-node-data.d.ts +19 -0
- package/es/interface/design/i-design-node.d.ts +80 -0
- package/es/interface/design/i-design-page-node-data.d.ts +15 -0
- package/es/interface/design/i-design-tree-item.d.ts +26 -0
- package/es/interface/design/i-model-field-node-data/i-model-field-node-data.d.ts +158 -0
- package/es/interface/design/index.d.ts +9 -0
- package/es/interface/designer/i-designer-hooks.d.ts +26 -0
- package/es/interface/designer/i-designer-provider.d.ts +20 -0
- package/es/interface/designer/i-designer-state.d.ts +41 -0
- package/es/interface/designer/i-designer.controller.d.ts +116 -0
- package/es/interface/designer/index.d.ts +4 -0
- package/es/interface/editor/child-list-editor/child-list-editor.d.ts +114 -0
- package/es/interface/editor/index.d.ts +9 -0
- package/es/interface/editor/style-border/i-style-border.controller.d.ts +11 -0
- package/es/interface/editor/style-border/i-style-border.d.ts +22 -0
- package/es/interface/editor/style-font/i-style-font.controller.d.ts +11 -0
- package/es/interface/editor/style-font/i-style-font.d.ts +13 -0
- package/es/interface/editor/style-position/i-style-position.controller.d.ts +11 -0
- package/es/interface/editor/style-position/i-style-position.d.ts +13 -0
- package/es/interface/editor/style-spacing/i-style-spacing.controller.d.ts +11 -0
- package/es/interface/editor/style-spacing/i-style-spacing.d.ts +22 -0
- package/es/interface/i-design-item-action/i-design-item-action.d.ts +42 -0
- package/es/interface/i-design-view-options/i-design-view-options.d.ts +69 -0
- package/es/interface/i-drag-collect/i-drag-collect.d.ts +6 -0
- package/es/interface/i-drag-data-item/i-drag-data-item.d.ts +13 -2
- package/es/interface/i-drag-item/i-drag-item.d.ts +13 -2
- package/es/interface/i-drop-collect/i-drop-collect.d.ts +8 -0
- package/es/interface/i-drop-result/i-drop-result.d.ts +2 -0
- package/es/interface/i-material-data/i-material-data.d.ts +50 -0
- package/es/interface/i-material-group/i-material-group.d.ts +51 -0
- package/es/interface/i-view-step/i-view-step.d.ts +32 -0
- package/es/interface/i-vue3-dnd-item-options/i-vue3-dnd-item-options.d.ts +323 -0
- package/es/interface/index.d.ts +31 -7
- package/es/interface/page-designer/toolkit.d.ts +12 -0
- package/es/interface/provider/i-node-provider.d.ts +142 -0
- package/es/interface/state/i-design-view.state.d.ts +107 -10
- package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu-component.css +87 -0
- package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu.component.d.ts +9 -0
- package/es/plugins/design-custom-exp-menu/components/design-custom-exp-menu.component.mjs +109 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.data.d.ts +51 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.data.mjs +89 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.provider.d.ts +23 -0
- package/es/plugins/design-custom-exp-menu/design-custom-exp-menu.provider.mjs +159 -0
- package/es/plugins/design-editor/index.d.ts +5 -0
- package/es/plugins/design-editor/index.mjs +13 -0
- package/es/plugins/design-editor/upload-file/index.d.ts +4 -0
- package/es/plugins/design-editor/upload-file/index.mjs +15 -0
- package/es/plugins/design-editor/upload-file/upload-file.css +124 -0
- package/es/plugins/design-editor/upload-file/upload-file.d.ts +46 -0
- package/es/plugins/design-editor/upload-file/upload-file.mjs +51 -0
- package/es/plugins/design-editor/upload-image/index.d.ts +4 -0
- package/es/plugins/design-editor/upload-image/index.mjs +15 -0
- package/es/plugins/design-editor/upload-image/upload-image.css +79 -0
- package/es/plugins/design-editor/upload-image/upload-image.d.ts +46 -0
- package/es/plugins/design-editor/upload-image/upload-image.mjs +23 -0
- package/es/plugins/design-editor/user-signature/index.d.ts +4 -0
- package/es/plugins/design-editor/user-signature/index.mjs +15 -0
- package/es/plugins/design-editor/user-signature/user-signature.css +79 -0
- package/es/plugins/design-editor/user-signature/user-signature.d.ts +46 -0
- package/es/plugins/design-editor/user-signature/user-signature.mjs +23 -0
- package/es/plugins/design-grid/components/design-grid.component.css +68 -0
- package/es/plugins/design-grid/components/design-grid.component.d.ts +39 -0
- package/es/plugins/design-grid/components/design-grid.component.mjs +60 -0
- package/es/plugins/design-grid/design-grid.data.d.ts +34 -0
- package/es/plugins/design-grid/design-grid.data.mjs +17 -0
- package/es/plugins/design-grid/design-grid.provider.d.ts +26 -0
- package/es/plugins/design-grid/design-grid.provider.mjs +273 -0
- package/es/plugins/design-grid-item/components/design-grid-item.component.d.ts +38 -0
- package/es/plugins/design-grid-item/components/design-grid-item.component.mjs +39 -0
- package/es/plugins/design-grid-item/design-grid-item.data.d.ts +26 -0
- package/es/plugins/design-grid-item/design-grid-item.data.mjs +17 -0
- package/es/plugins/design-grid-item/design-grid-item.provider.d.ts +25 -0
- package/es/plugins/design-grid-item/design-grid-item.provider.mjs +172 -0
- package/es/plugins/design-menu-list/components/design-menu-list.component.css +131 -0
- package/es/plugins/design-menu-list/components/design-menu-list.component.d.ts +18 -0
- package/es/plugins/design-menu-list/components/design-menu-list.component.mjs +110 -0
- package/es/plugins/design-menu-list/design-menu-list.data.d.ts +62 -0
- package/es/plugins/design-menu-list/design-menu-list.data.mjs +21 -0
- package/es/plugins/design-menu-list/design-menu-list.provider.d.ts +23 -0
- package/es/plugins/design-menu-list/design-menu-list.provider.mjs +265 -0
- package/es/plugins/design-page/design-page.data.d.ts +15 -0
- package/es/plugins/design-page/design-page.data.mjs +17 -0
- package/es/plugins/design-page/design-page.provider.d.ts +23 -0
- package/es/plugins/design-page/design-page.provider.mjs +109 -0
- package/es/plugins/design-panel/components/design-panel-component.css +108 -0
- package/es/plugins/design-panel/components/design-panel.component.d.ts +39 -0
- package/es/plugins/design-panel/components/design-panel.component.mjs +49 -0
- package/es/plugins/design-panel/design-panel.data.d.ts +64 -0
- package/es/plugins/design-panel/design-panel.data.mjs +27 -0
- package/es/plugins/design-panel/design-panel.provider.d.ts +23 -0
- package/es/plugins/design-panel/design-panel.provider.mjs +298 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.css +48 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.vue.d.ts +36 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.vue.mjs +7 -0
- package/es/plugins/design-personal-center/components/design-personal-center.component.vue2.mjs +97 -0
- package/es/plugins/design-personal-center/design-personal-center.data.d.ts +27 -0
- package/es/plugins/design-personal-center/design-personal-center.data.mjs +21 -0
- package/es/plugins/design-personal-center/design-personal-center.provider.d.ts +13 -0
- package/es/plugins/design-personal-center/design-personal-center.provider.mjs +144 -0
- package/es/plugins/design-select-component/components/design-select-component.component.css +107 -0
- package/es/plugins/design-select-component/components/design-select-component.component.d.ts +41 -0
- package/es/plugins/design-select-component/components/design-select-component.component.mjs +57 -0
- package/es/plugins/design-select-component/design-select-component.data.d.ts +57 -0
- package/es/plugins/design-select-component/design-select-component.data.mjs +18 -0
- package/es/plugins/design-select-component/design-select-component.provider.d.ts +23 -0
- package/es/plugins/design-select-component/design-select-component.provider.mjs +207 -0
- package/es/plugins/design-tab-item/components/design-tab-item.component.d.ts +38 -0
- package/es/plugins/design-tab-item/components/design-tab-item.component.mjs +39 -0
- package/es/plugins/design-tab-item/design-tab-item.data.d.ts +35 -0
- package/es/plugins/design-tab-item/design-tab-item.data.mjs +22 -0
- package/es/plugins/design-tab-item/design-tab-item.provider.d.ts +25 -0
- package/es/plugins/design-tab-item/design-tab-item.provider.mjs +185 -0
- package/es/plugins/design-tabs/components/design-tabs.component.css +105 -0
- package/es/plugins/design-tabs/components/design-tabs.component.d.ts +40 -0
- package/es/plugins/design-tabs/components/design-tabs.component.mjs +85 -0
- package/es/plugins/design-tabs/design-tabs.data.d.ts +66 -0
- package/es/plugins/design-tabs/design-tabs.data.mjs +19 -0
- package/es/plugins/design-tabs/design-tabs.provider.d.ts +26 -0
- package/es/plugins/design-tabs/design-tabs.provider.mjs +261 -0
- package/es/plugins/index.d.ts +5 -0
- package/es/plugins/index.mjs +116 -0
- package/es/plugins/install-material.d.ts +8 -0
- package/es/plugins/install-material.mjs +55 -0
- package/es/props/index.d.ts +64 -0
- package/es/props/index.mjs +56 -0
- package/es/provider/design-editor-node/design-editor-node.provider.d.ts +40 -0
- package/es/provider/design-editor-node/design-editor-node.provider.mjs +44 -0
- package/es/provider/index.d.ts +2 -0
- package/es/provider/node-base/node-base.provider.d.ts +25 -0
- package/es/provider/node-base/node-base.provider.mjs +26 -0
- package/es/register/designer-register/designer-register.d.ts +82 -0
- package/es/register/designer-register/designer-register.mjs +102 -0
- package/es/register/index.d.ts +3 -0
- package/es/register/material/material.register.d.ts +90 -0
- package/es/register/material/material.register.mjs +134 -0
- package/es/register/node/node.register.d.ts +113 -0
- package/es/register/node/node.register.mjs +134 -0
- package/es/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +18 -0
- package/es/store/index.d.ts +1 -0
- package/es/store/view/design-view.store.d.ts +5 -0
- package/es/store/view/design-view.store.mjs +412 -0
- package/es/types/index.d.ts +9 -23
- package/es/utils/can-drop/can-drop.d.ts +12 -0
- package/es/utils/can-drop/can-drop.mjs +56 -0
- package/es/utils/design-install/design-install.d.ts +16 -0
- package/es/utils/design-install/design-install.mjs +22 -0
- package/es/utils/design-interceptors/design-interceptors.d.ts +8 -0
- package/es/utils/design-interceptors/design-interceptors.mjs +20 -0
- package/es/utils/field-attrs/basicAttrs.d.ts +25 -0
- package/es/utils/field-attrs/basicAttrs.mjs +724 -0
- package/es/utils/field-attrs/index.d.ts +8 -0
- package/es/utils/field-attrs/index.mjs +8 -0
- package/es/utils/field-filter/index.d.ts +4 -0
- package/es/utils/field-filter/index.mjs +58 -0
- package/es/utils/find-deep-types/find-deep-types.d.ts +9 -0
- package/es/utils/find-deep-types/find-deep-types.mjs +30 -0
- package/es/utils/index.d.ts +9 -1
- package/es/utils/init-widget-info/init-widget-info.d.ts +16 -0
- package/es/utils/init-widget-info/init-widget-info.mjs +40 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +97 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +258 -0
- package/es/utils/transform-js/index.d.ts +1 -0
- package/es/utils/transform-js/transform-js.d.ts +13 -0
- package/es/utils/transform-js/transform-js.mjs +48 -0
- package/es/utils/transform-js/transform-js.worker.d.ts +1 -0
- package/es/views/design-view.css +218 -0
- package/es/views/design-view.d.ts +87 -0
- package/es/views/design-view.mjs +345 -0
- package/es/views/index.d.ts +1 -0
- package/package.json +30 -9
- package/es/constant/variable-type/variable-type.d.ts +0 -12
- package/es/hooks/index.mjs +0 -3
- package/es/hooks/useStyle.d.ts +0 -15
- package/es/hooks/useStyle.mjs +0 -135
- package/es/interface/controller/i-design-drag.controller.d.ts +0 -42
- package/es/interface/design-page/design-page.d.ts +0 -141
- package/es/interface/index.mjs +0 -3
- package/es/interface/props/index.d.ts +0 -1
- package/es/interface/props/index.mjs +0 -1
- package/es/interface/props/plugin-comp-props.d.ts +0 -15
- package/es/interface/state/i-design-drag.state.d.ts +0 -15
- package/es/schema/common-config/autofill-editor-config.d.ts +0 -4
- package/es/schema/common-config/autofill-editor-config.mjs +0 -45
- package/es/schema/common-config/base-button-config.d.ts +0 -45
- package/es/schema/common-config/base-button-config.mjs +0 -85
- package/es/schema/common-config/button-editor-config.d.ts +0 -14
- package/es/schema/common-config/button-editor-config.mjs +0 -142
- package/es/schema/common-config/button-props-func.d.ts +0 -5
- package/es/schema/common-config/button-props-func.mjs +0 -12
- package/es/schema/common-config/column-editor-config.d.ts +0 -3
- package/es/schema/common-config/column-editor-config.mjs +0 -29
- package/es/schema/common-config/common-style.d.ts +0 -3
- package/es/schema/common-config/common-style.mjs +0 -86
- package/es/schema/common-config/display-editor-config.d.ts +0 -3
- package/es/schema/common-config/display-editor-config.mjs +0 -67
- package/es/schema/common-config/formItem-editor-config.d.ts +0 -3
- package/es/schema/common-config/formItem-editor-config.mjs +0 -70
- package/es/schema/common-config/permission-editor-config.d.ts +0 -2
- package/es/schema/common-config/permission-editor-config.mjs +0 -16
- package/es/schema/index.d.ts +0 -9
- package/es/schema/index.mjs +0 -11
- package/es/utils/index.mjs +0 -3
- package/es/utils/message/message.d.ts +0 -14
- package/es/utils/message/message.mjs +0 -35
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LowCodeModal, LowCodeWidget } from '@gct-paas/schema';
|
|
3
|
+
/**不需要遮罩 */
|
|
4
|
+
export declare const NotMask: string[];
|
|
5
|
+
interface Props {
|
|
6
|
+
/**组件 */
|
|
7
|
+
widget?: LowCodeWidget.BasicSchema | LowCodeModal.Modal;
|
|
8
|
+
/**父组件 */
|
|
9
|
+
parentWidget?: LowCodeWidget.BasicSchema | LowCodeModal.Modal;
|
|
10
|
+
/**父组件List */
|
|
11
|
+
parentList?: (LowCodeWidget.BasicSchema | LowCodeModal.Modal)[];
|
|
12
|
+
/**在父组件列表的下标 */
|
|
13
|
+
indexOfParentList?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function useWidget(props: Props): {
|
|
16
|
+
isWidgetSelected: import('vue').ComputedRef<boolean>;
|
|
17
|
+
value: import('vue').ComputedRef<string>;
|
|
18
|
+
label: import('vue').ComputedRef<any>;
|
|
19
|
+
hideMask: import('vue').ComputedRef<boolean>;
|
|
20
|
+
showMask: import('vue').ComputedRef<boolean>;
|
|
21
|
+
};
|
|
22
|
+
/**widget-wrapper通用的props */
|
|
23
|
+
export declare const widgetWrapperProps: {
|
|
24
|
+
/**组件 */
|
|
25
|
+
widget: {
|
|
26
|
+
type: PropType<LowCodeWidget.BasicSchema>;
|
|
27
|
+
};
|
|
28
|
+
/**父组件 */
|
|
29
|
+
parentWidget: {
|
|
30
|
+
type: PropType<LowCodeWidget.BasicSchema> | undefined;
|
|
31
|
+
};
|
|
32
|
+
/**父组件List */
|
|
33
|
+
parentList: {
|
|
34
|
+
type: {
|
|
35
|
+
(arrayLength: number): import('@gct-paas/schema').IBasicSchema[];
|
|
36
|
+
(...items: import('@gct-paas/schema').IBasicSchema[]): import('@gct-paas/schema').IBasicSchema[];
|
|
37
|
+
new (arrayLength: number): import('@gct-paas/schema').IBasicSchema[];
|
|
38
|
+
new (...items: import('@gct-paas/schema').IBasicSchema[]): import('@gct-paas/schema').IBasicSchema[];
|
|
39
|
+
isArray(arg: any): arg is any[];
|
|
40
|
+
readonly prototype: any[];
|
|
41
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
42
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
43
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
44
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
45
|
+
of<T>(...items: T[]): T[];
|
|
46
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
47
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
48
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/**在父组件列表的下标 */
|
|
52
|
+
indexOfParentList: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
};
|
|
55
|
+
/** 是否隐藏操作按钮 */
|
|
56
|
+
hideAction: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
};
|
|
59
|
+
/** 显示哪些操作按钮 */
|
|
60
|
+
actionTypes: {
|
|
61
|
+
type: {
|
|
62
|
+
(arrayLength: number): string[];
|
|
63
|
+
(...items: string[]): string[];
|
|
64
|
+
new (arrayLength: number): string[];
|
|
65
|
+
new (...items: string[]): string[];
|
|
66
|
+
isArray(arg: any): arg is any[];
|
|
67
|
+
readonly prototype: any[];
|
|
68
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
69
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
70
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
71
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
72
|
+
of<T>(...items: T[]): T[];
|
|
73
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
74
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
75
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
action: {
|
|
79
|
+
type: PropType<(id: string) => boolean>;
|
|
80
|
+
};
|
|
81
|
+
/** 是否为新版设计器 */
|
|
82
|
+
isNewDesigner: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
};
|
|
85
|
+
deleteCallback: {
|
|
86
|
+
type: FunctionConstructor;
|
|
87
|
+
};
|
|
88
|
+
/**是否开启悬浮虚线 */
|
|
89
|
+
showHoverLine: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export declare const widgetProps: {
|
|
95
|
+
/**组件 */
|
|
96
|
+
widget: {
|
|
97
|
+
type: PropType<LowCodeWidget.BasicSchema>;
|
|
98
|
+
require: boolean;
|
|
99
|
+
default: () => {};
|
|
100
|
+
};
|
|
101
|
+
rowReadonly: BooleanConstructor;
|
|
102
|
+
formData: {
|
|
103
|
+
type: ObjectConstructor;
|
|
104
|
+
};
|
|
105
|
+
isNewDesigner: BooleanConstructor;
|
|
106
|
+
};
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { computed } from 'vue';
|
|
2
|
+
import { useSelectedWidget } from './useSelectedWidget.mjs';
|
|
3
|
+
import { FormComponents } from '@gct-paas/core';
|
|
4
|
+
import { has } from 'lodash-es';
|
|
5
|
+
|
|
6
|
+
const NotMask = [
|
|
7
|
+
FormComponents.Search,
|
|
8
|
+
FormComponents.DataTable,
|
|
9
|
+
FormComponents.DataVTable,
|
|
10
|
+
FormComponents.SubDataTable,
|
|
11
|
+
FormComponents.Form,
|
|
12
|
+
FormComponents.FormProcess,
|
|
13
|
+
FormComponents.RdoForm,
|
|
14
|
+
FormComponents.MedProRdoForm,
|
|
15
|
+
FormComponents.LayoutContainer,
|
|
16
|
+
FormComponents.Grid,
|
|
17
|
+
FormComponents.GridCol,
|
|
18
|
+
FormComponents.LeftRightColumns,
|
|
19
|
+
FormComponents.ButtonContainer,
|
|
20
|
+
FormComponents.SubTable,
|
|
21
|
+
FormComponents.Tabs,
|
|
22
|
+
FormComponents.TabPane,
|
|
23
|
+
FormComponents.TableSelect,
|
|
24
|
+
FormComponents.Collapse,
|
|
25
|
+
FormComponents.CardList,
|
|
26
|
+
FormComponents.TreeTable,
|
|
27
|
+
FormComponents.RefDataTable,
|
|
28
|
+
FormComponents.DynamicTable,
|
|
29
|
+
FormComponents.Text,
|
|
30
|
+
FormComponents.UploadFile,
|
|
31
|
+
FormComponents.Descriptions,
|
|
32
|
+
FormComponents.BottomButtonContainer,
|
|
33
|
+
FormComponents.ButtonProcessContainer,
|
|
34
|
+
FormComponents.ApprovalHistory
|
|
35
|
+
];
|
|
36
|
+
function useWidget(props) {
|
|
37
|
+
const { selectedWidget } = useSelectedWidget();
|
|
38
|
+
const widget = props.widget;
|
|
39
|
+
const isWidgetSelected = computed(() => {
|
|
40
|
+
if (selectedWidget.value.id === widget.id) {
|
|
41
|
+
if (!has(selectedWidget.value, "materialType") || !has(widget, "materialType")) {
|
|
42
|
+
return true;
|
|
43
|
+
} else {
|
|
44
|
+
return selectedWidget.value.materialType === widget.materialType;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
});
|
|
49
|
+
const label = computed(() => {
|
|
50
|
+
return widget.props.label;
|
|
51
|
+
});
|
|
52
|
+
const value = computed(() => {
|
|
53
|
+
return "";
|
|
54
|
+
});
|
|
55
|
+
const widgetdesigner = {};
|
|
56
|
+
const hideMaskValue = computed(() => {
|
|
57
|
+
if (typeof widgetdesigner[widget.type]?.hideMask === "function") {
|
|
58
|
+
return widgetdesigner[widget.type].hideMask(widget);
|
|
59
|
+
}
|
|
60
|
+
return widgetdesigner[widget.type]?.hideMask;
|
|
61
|
+
});
|
|
62
|
+
const hideMask = computed(() => {
|
|
63
|
+
return NotMask.indexOf(widget.type) === -1 && !hideMaskValue.value;
|
|
64
|
+
});
|
|
65
|
+
const showMask = computed(() => {
|
|
66
|
+
return NotMask.indexOf(widget.type) === -1 && !hideMaskValue.value;
|
|
67
|
+
});
|
|
68
|
+
return { isWidgetSelected, value, label, hideMask, showMask };
|
|
69
|
+
}
|
|
70
|
+
const widgetWrapperProps = {
|
|
71
|
+
/**组件 */
|
|
72
|
+
widget: {
|
|
73
|
+
type: Object
|
|
74
|
+
},
|
|
75
|
+
/**父组件 */
|
|
76
|
+
parentWidget: {
|
|
77
|
+
type: Object
|
|
78
|
+
},
|
|
79
|
+
/**父组件List */
|
|
80
|
+
parentList: {
|
|
81
|
+
type: Array
|
|
82
|
+
},
|
|
83
|
+
/**在父组件列表的下标 */
|
|
84
|
+
indexOfParentList: {
|
|
85
|
+
type: Number
|
|
86
|
+
},
|
|
87
|
+
/** 是否隐藏操作按钮 */
|
|
88
|
+
hideAction: {
|
|
89
|
+
type: Boolean
|
|
90
|
+
},
|
|
91
|
+
/** 显示哪些操作按钮 */
|
|
92
|
+
actionTypes: {
|
|
93
|
+
type: Array
|
|
94
|
+
},
|
|
95
|
+
action: {
|
|
96
|
+
// 返回 true 中断自身操作
|
|
97
|
+
type: Object
|
|
98
|
+
},
|
|
99
|
+
/** 是否为新版设计器 */
|
|
100
|
+
isNewDesigner: {
|
|
101
|
+
type: Boolean
|
|
102
|
+
},
|
|
103
|
+
deleteCallback: { type: Function },
|
|
104
|
+
/**是否开启悬浮虚线 */
|
|
105
|
+
showHoverLine: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: false
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const widgetProps = {
|
|
111
|
+
/**组件 */
|
|
112
|
+
widget: {
|
|
113
|
+
type: Object,
|
|
114
|
+
require: true,
|
|
115
|
+
default: () => ({})
|
|
116
|
+
},
|
|
117
|
+
rowReadonly: Boolean,
|
|
118
|
+
formData: {
|
|
119
|
+
type: Object
|
|
120
|
+
},
|
|
121
|
+
isNewDesigner: Boolean
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export { NotMask, useWidget, widgetProps, widgetWrapperProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComTypeMap } from '@gct-paas/schema';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare function useWidgetQuery(): {
|
|
4
|
+
allWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
5
|
+
allFormWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
6
|
+
excludeSubTableFormWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
7
|
+
allSubTableWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
8
|
+
allListWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
9
|
+
allTableWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
10
|
+
allDeptWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
11
|
+
allRefSelectWidget: ComputedRef<import('@gct-paas/schema').IBasicSchema[]>;
|
|
12
|
+
getWidgetByScope: <K extends keyof ComTypeMap>(type: K) => ComTypeMap[K][];
|
|
13
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { TreeHelper, FormComponents, FIELD_TYPE } from '@gct-paas/core';
|
|
2
|
+
import { getCompPos } from '@gct-paas/schema';
|
|
3
|
+
import { computed } from 'vue';
|
|
4
|
+
import { useScope } from '../layout/useScope.mjs';
|
|
5
|
+
|
|
6
|
+
function useWidgetQuery() {
|
|
7
|
+
const allWidget = computed(
|
|
8
|
+
() => {
|
|
9
|
+
const { scopeData } = useScope();
|
|
10
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
11
|
+
return !!widget;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
const allFormWidget = computed(() => {
|
|
16
|
+
const { scopeData } = useScope();
|
|
17
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
18
|
+
return [
|
|
19
|
+
FormComponents.Form,
|
|
20
|
+
FormComponents.RdoForm,
|
|
21
|
+
FormComponents.MedProRdoForm,
|
|
22
|
+
FormComponents.FormProcess
|
|
23
|
+
].includes(widget.type);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const excludeSubTableFormWidget = computed(() => {
|
|
27
|
+
const { scopeData } = useScope();
|
|
28
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
29
|
+
if ([
|
|
30
|
+
FormComponents.RdoForm,
|
|
31
|
+
FormComponents.MedProRdoForm,
|
|
32
|
+
FormComponents.FormProcess
|
|
33
|
+
].includes(widget.type)) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
return widget.type === FormComponents.Form && !getCompPos(widget, FIELD_TYPE.MASTERSLAVE, FormComponents.Form);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
const allSubTableWidget = computed(() => {
|
|
40
|
+
const { scopeData } = useScope();
|
|
41
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
42
|
+
return widget.type === FormComponents.SubTable;
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
const allListWidget = computed(() => {
|
|
46
|
+
const { scopeData } = useScope();
|
|
47
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
48
|
+
return widget.type === FormComponents.DataList || widget.type === FormComponents.RdoDataList;
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
const allTableWidget = computed(() => {
|
|
52
|
+
const { scopeData } = useScope();
|
|
53
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
54
|
+
return widget.type === FormComponents.DataTable || widget.type === FormComponents.DataVTable || widget.type === FormComponents.RefDataTable;
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const allDeptWidget = computed(() => {
|
|
58
|
+
const { scopeData } = useScope();
|
|
59
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
60
|
+
return widget.type === FormComponents.Department;
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
const allRefSelectWidget = computed(() => {
|
|
64
|
+
const { scopeData } = useScope();
|
|
65
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
66
|
+
return widget.type === FormComponents.Select && widget.props.fieldType === FIELD_TYPE.REF;
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
function getWidgetByScope(type) {
|
|
70
|
+
const { scopeData } = useScope();
|
|
71
|
+
return TreeHelper.findNodeAll(scopeData.value, (widget) => {
|
|
72
|
+
return widget.type === type;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
allWidget,
|
|
77
|
+
allFormWidget,
|
|
78
|
+
excludeSubTableFormWidget,
|
|
79
|
+
allSubTableWidget,
|
|
80
|
+
allListWidget,
|
|
81
|
+
allTableWidget,
|
|
82
|
+
allDeptWidget,
|
|
83
|
+
allRefSelectWidget,
|
|
84
|
+
getWidgetByScope
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { useWidgetQuery };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LowCodeWidget } from '@gct-paas/schema';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
export declare function useWidgetRegistry(): {
|
|
4
|
+
getAsyncWidget: (widget: string | LowCodeWidget.BasicSchema) => Component | undefined;
|
|
5
|
+
getWidgetHooks: (type: string) => unknown;
|
|
6
|
+
widgetEntry: import('vue').ComputedRef<string>;
|
|
7
|
+
pluginConfigs: import('vue').ComputedRef<IObject[]>;
|
|
8
|
+
getWhiteList: (type: string) => (string | RegExp)[];
|
|
9
|
+
getBlackList: (type: string) => (string | RegExp)[];
|
|
10
|
+
setPluginConfigs: (configs: IObject[]) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Platform } from '@gct-paas/core';
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { widgetInfo, pluginConfigs, platform, designRegister } from '../design-state.mjs';
|
|
4
|
+
|
|
5
|
+
function useWidgetRegistry() {
|
|
6
|
+
const allComHooks = computed(() => {
|
|
7
|
+
return widgetInfo.value.hooks;
|
|
8
|
+
});
|
|
9
|
+
const allWhiteList = computed(() => {
|
|
10
|
+
return widgetInfo.value.whiteList;
|
|
11
|
+
});
|
|
12
|
+
const allBlackList = computed(() => {
|
|
13
|
+
return widgetInfo.value.blackList;
|
|
14
|
+
});
|
|
15
|
+
const pluginConfigsComputed = computed(() => {
|
|
16
|
+
return pluginConfigs.value;
|
|
17
|
+
});
|
|
18
|
+
function setPluginConfigs(configs) {
|
|
19
|
+
pluginConfigs.value = configs;
|
|
20
|
+
}
|
|
21
|
+
const getAsyncWidget = (widget) => {
|
|
22
|
+
if (typeof widget === "string") {
|
|
23
|
+
return designRegister.value.getComponentByType(widget);
|
|
24
|
+
}
|
|
25
|
+
if (widget._plugin) {
|
|
26
|
+
return designRegister.value.getComponentByPluginTag(widget._plugin.key);
|
|
27
|
+
}
|
|
28
|
+
return designRegister.value.getComponentByType(widget.type);
|
|
29
|
+
};
|
|
30
|
+
const getWidgetHooks = (type) => {
|
|
31
|
+
return allComHooks.value[type] ?? {};
|
|
32
|
+
};
|
|
33
|
+
const getWhiteList = (type) => {
|
|
34
|
+
return allWhiteList.value[type] ?? [];
|
|
35
|
+
};
|
|
36
|
+
const getBlackList = (type) => {
|
|
37
|
+
return allBlackList.value[type] ?? [];
|
|
38
|
+
};
|
|
39
|
+
const widgetEntry = computed(() => {
|
|
40
|
+
if (platform.value === Platform.MOBILE) {
|
|
41
|
+
return "widget-mobile-entry";
|
|
42
|
+
} else if (platform.value === Platform.PAD) {
|
|
43
|
+
return "widget-pad-entry";
|
|
44
|
+
} else {
|
|
45
|
+
return "widget-entry";
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
getAsyncWidget,
|
|
50
|
+
getWidgetHooks,
|
|
51
|
+
widgetEntry,
|
|
52
|
+
pluginConfigs: pluginConfigsComputed,
|
|
53
|
+
getWhiteList,
|
|
54
|
+
getBlackList,
|
|
55
|
+
setPluginConfigs
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { useWidgetRegistry };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface IHistoryValue<T = any> {
|
|
3
|
+
/** 过去 */
|
|
4
|
+
pasts: T[];
|
|
5
|
+
/** 将来 */
|
|
6
|
+
futures: T[];
|
|
7
|
+
/** 最大存储个数 */
|
|
8
|
+
max: number;
|
|
9
|
+
}
|
|
10
|
+
interface InitProps {
|
|
11
|
+
/** 唯一id */
|
|
12
|
+
historyId: string;
|
|
13
|
+
/** 最大数量 */
|
|
14
|
+
max?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function useCacheHistory(): {
|
|
17
|
+
historyUtils: {
|
|
18
|
+
new (): {};
|
|
19
|
+
/**
|
|
20
|
+
* 获取唯一id
|
|
21
|
+
*/
|
|
22
|
+
getUniqueHistoryId(): string;
|
|
23
|
+
/** 初始化 */
|
|
24
|
+
init(props: InitProps): void;
|
|
25
|
+
/** 是否存在所属唯一id的历史记录信息 */
|
|
26
|
+
isHistoryInfoExist(historyId: string): boolean;
|
|
27
|
+
/** 根据唯一id获取历史记录 */
|
|
28
|
+
getHistoryInfo(historyId: string): IHistoryValue;
|
|
29
|
+
/** 根据唯一id获取删除指定历史记录 */
|
|
30
|
+
deleteHistoryInfo(historyId: string): void;
|
|
31
|
+
/** 清空全部历史记录Map */
|
|
32
|
+
clearCacheHistory(): void;
|
|
33
|
+
/** 清空全部历史记录Map */
|
|
34
|
+
resetHistoryById(id: string): void;
|
|
35
|
+
getCacheHistoryMap(): Map<string, {
|
|
36
|
+
pasts: any[];
|
|
37
|
+
futures: any[];
|
|
38
|
+
max: number;
|
|
39
|
+
}> & Omit<Map<string, IHistoryValue<any>>, keyof Map<any, any>>;
|
|
40
|
+
/** 新增一条历史记录到指定唯一id中 */
|
|
41
|
+
addHistory({ historyId, replaceHistory, past, }: {
|
|
42
|
+
/** 唯一id */
|
|
43
|
+
historyId: string;
|
|
44
|
+
/**替换最新的一条历史记录 */
|
|
45
|
+
replaceHistory?: boolean;
|
|
46
|
+
/** 新的一条历史记录 */
|
|
47
|
+
past: string;
|
|
48
|
+
}): void;
|
|
49
|
+
/** 撤销一条历史记录 */
|
|
50
|
+
undoHistory(historyId: string): any;
|
|
51
|
+
/** 重做一条历史记录 */
|
|
52
|
+
restoreHistory(historyId: string): any;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
interface IPropsInner {
|
|
56
|
+
/** 唯一id */
|
|
57
|
+
historyIdRef: Ref<string>;
|
|
58
|
+
/** 撤销和重做回调方法 */
|
|
59
|
+
callback?(content: unknown): void;
|
|
60
|
+
}
|
|
61
|
+
export declare function useCacheHistoryInner(props: IPropsInner): {
|
|
62
|
+
undoDisabled: Ref<boolean, boolean>;
|
|
63
|
+
restoreDisabled: Ref<boolean, boolean>;
|
|
64
|
+
onUndo: () => any;
|
|
65
|
+
onRestore: () => any;
|
|
66
|
+
};
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { ref, unref, watch } from 'vue';
|
|
2
|
+
import { useUUid } from '../web/useUUid.mjs';
|
|
3
|
+
|
|
4
|
+
const cacheHistoryMap = ref(/* @__PURE__ */ new Map());
|
|
5
|
+
function useCacheHistory() {
|
|
6
|
+
const historyKeys = [...unref(cacheHistoryMap).keys()];
|
|
7
|
+
const { getUuidGenerate } = useUUid(ref([]), ref(""), {
|
|
8
|
+
needPrefix: true,
|
|
9
|
+
isString: false,
|
|
10
|
+
prefix: "h_"
|
|
11
|
+
});
|
|
12
|
+
const uuidGenerate = getUuidGenerate(historyKeys);
|
|
13
|
+
class historyUtils {
|
|
14
|
+
/**
|
|
15
|
+
* 获取唯一id
|
|
16
|
+
*/
|
|
17
|
+
static getUniqueHistoryId() {
|
|
18
|
+
return uuidGenerate.next();
|
|
19
|
+
}
|
|
20
|
+
/** 初始化 */
|
|
21
|
+
static init(props) {
|
|
22
|
+
if (this.isHistoryInfoExist(props.historyId)) {
|
|
23
|
+
console.warn("唯一key重复了");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
cacheHistoryMap.value.set(props.historyId, {
|
|
27
|
+
pasts: [],
|
|
28
|
+
futures: [],
|
|
29
|
+
max: props.max ?? 30
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/** 是否存在所属唯一id的历史记录信息 */
|
|
33
|
+
static isHistoryInfoExist(historyId) {
|
|
34
|
+
return unref(cacheHistoryMap).has(historyId);
|
|
35
|
+
}
|
|
36
|
+
/** 根据唯一id获取历史记录 */
|
|
37
|
+
static getHistoryInfo(historyId) {
|
|
38
|
+
return unref(cacheHistoryMap).get(historyId);
|
|
39
|
+
}
|
|
40
|
+
/** 根据唯一id获取删除指定历史记录 */
|
|
41
|
+
static deleteHistoryInfo(historyId) {
|
|
42
|
+
cacheHistoryMap.value.delete(historyId);
|
|
43
|
+
}
|
|
44
|
+
/** 清空全部历史记录Map */
|
|
45
|
+
static clearCacheHistory() {
|
|
46
|
+
cacheHistoryMap.value.clear();
|
|
47
|
+
}
|
|
48
|
+
/** 清空全部历史记录Map */
|
|
49
|
+
static resetHistoryById(id) {
|
|
50
|
+
const history = historyUtils.getHistoryInfo(id);
|
|
51
|
+
if (!history) return;
|
|
52
|
+
history.futures.length = 0;
|
|
53
|
+
history.pasts.length = 0;
|
|
54
|
+
}
|
|
55
|
+
static getCacheHistoryMap() {
|
|
56
|
+
return cacheHistoryMap.value;
|
|
57
|
+
}
|
|
58
|
+
/** 新增一条历史记录到指定唯一id中 */
|
|
59
|
+
static addHistory({
|
|
60
|
+
historyId,
|
|
61
|
+
replaceHistory,
|
|
62
|
+
past
|
|
63
|
+
}) {
|
|
64
|
+
if (this.isHistoryInfoExist(historyId)) {
|
|
65
|
+
const historyInfo = this.getHistoryInfo(historyId);
|
|
66
|
+
if (!replaceHistory && historyInfo?.pasts.length > historyInfo?.max + 1) {
|
|
67
|
+
historyInfo?.pasts.shift();
|
|
68
|
+
}
|
|
69
|
+
if (replaceHistory) {
|
|
70
|
+
historyInfo?.pasts.splice(-1, 1, past);
|
|
71
|
+
} else {
|
|
72
|
+
historyInfo?.pasts.push(past);
|
|
73
|
+
}
|
|
74
|
+
historyInfo.futures.length = 0;
|
|
75
|
+
} else {
|
|
76
|
+
console.warn("不存在,插入历史记录失败");
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/** 撤销一条历史记录 */
|
|
80
|
+
static undoHistory(historyId) {
|
|
81
|
+
if (this.isHistoryInfoExist(historyId)) {
|
|
82
|
+
const historyInfo = this.getHistoryInfo(historyId);
|
|
83
|
+
const len = historyInfo.pasts.length;
|
|
84
|
+
if (len > 1) {
|
|
85
|
+
historyInfo.futures.push(historyInfo.pasts.pop());
|
|
86
|
+
return historyInfo.pasts[historyInfo.pasts.length - 1];
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
console.warn("不存在,撤销历史记录失败");
|
|
90
|
+
}
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
/** 重做一条历史记录 */
|
|
94
|
+
static restoreHistory(historyId) {
|
|
95
|
+
if (this.isHistoryInfoExist(historyId)) {
|
|
96
|
+
const historyInfo = this.getHistoryInfo(historyId);
|
|
97
|
+
const len = historyInfo.futures.length;
|
|
98
|
+
if (len > 0) {
|
|
99
|
+
const current = historyInfo.futures.pop();
|
|
100
|
+
historyInfo.pasts.push(current);
|
|
101
|
+
return current;
|
|
102
|
+
}
|
|
103
|
+
} else {
|
|
104
|
+
console.warn("不存在,重做历史记录失败");
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return { historyUtils };
|
|
110
|
+
}
|
|
111
|
+
function useCacheHistoryInner(props) {
|
|
112
|
+
const { historyUtils } = useCacheHistory();
|
|
113
|
+
const undoDisabled = ref(true);
|
|
114
|
+
const restoreDisabled = ref(true);
|
|
115
|
+
watch(
|
|
116
|
+
() => historyUtils.getHistoryInfo(unref(props.historyIdRef))?.pasts,
|
|
117
|
+
(value) => {
|
|
118
|
+
undoDisabled.value = (unref(value) ?? []).length <= 1;
|
|
119
|
+
},
|
|
120
|
+
{ deep: true, immediate: true }
|
|
121
|
+
);
|
|
122
|
+
watch(
|
|
123
|
+
() => historyUtils.getHistoryInfo(unref(props.historyIdRef))?.futures,
|
|
124
|
+
(value) => {
|
|
125
|
+
restoreDisabled.value = !(unref(value) ?? []).length;
|
|
126
|
+
},
|
|
127
|
+
{ deep: true, immediate: true }
|
|
128
|
+
);
|
|
129
|
+
function onUndo() {
|
|
130
|
+
if (unref(undoDisabled)) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const content = historyUtils.undoHistory(unref(props.historyIdRef));
|
|
134
|
+
if (props.callback && typeof props.callback === "function" && content !== null) {
|
|
135
|
+
props.callback(content);
|
|
136
|
+
}
|
|
137
|
+
return content;
|
|
138
|
+
}
|
|
139
|
+
function onRestore() {
|
|
140
|
+
if (unref(restoreDisabled)) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const content = historyUtils.restoreHistory(unref(props.historyIdRef));
|
|
144
|
+
if (props.callback && typeof props.callback === "function" && content !== null) {
|
|
145
|
+
props.callback(content);
|
|
146
|
+
}
|
|
147
|
+
return content;
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
undoDisabled,
|
|
151
|
+
restoreDisabled,
|
|
152
|
+
onUndo,
|
|
153
|
+
onRestore
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export { useCacheHistory, useCacheHistoryInner };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* key值转换器
|
|
4
|
+
* @param prefix 前缀
|
|
5
|
+
* @param suffix 后缀 仅空字符串代表不需要后缀
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function useKeyParser(prefix: Ref<string | undefined> | string, suffix?: Ref<string | undefined> | string): {
|
|
9
|
+
keyPrefix: Ref<string, string>;
|
|
10
|
+
keySuffix: Ref<string, string>;
|
|
11
|
+
keyReset: () => void;
|
|
12
|
+
keyPad: (key: string) => string | undefined;
|
|
13
|
+
keyClip: (formKey: string) => string;
|
|
14
|
+
keyPrePad: (key: string) => string | undefined;
|
|
15
|
+
keyPreClip: (formKey: string) => string;
|
|
16
|
+
};
|