@gct-paas/design 0.1.4-dev.6 → 0.1.4-dev.8
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/index.esm.min.mjs +25068 -0
- 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/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 +361 -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 +293 -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 +87 -0
- package/es/components/design/design-drop-container/design-drop-container.mjs +217 -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 +174 -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 +195 -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 +164 -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 +223 -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 +85 -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 +106 -0
- package/es/components/design-icon-button/design-icon-button.mjs +151 -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.d.ts +1 -0
- package/es/components/design-view-layout/design-view-layout.mjs +208 -0
- package/es/components/design-view-layout/design-view-layout.module.css +154 -0
- package/es/components/design-view-layout/design-view-layout.module.scss.mjs +27 -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.vue.mjs +7 -0
- package/es/components/editor/style/border-editor/border-box.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/border-editor/border-editor.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/border-editor/border-radius.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/font-editor/align-group.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/font-editor/font-style-group.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/position-editor/position-editor.vue2.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.vue.mjs +7 -0
- package/es/components/editor/style/spacing-editor/spacing-editor.vue2.mjs +311 -0
- package/es/components/icon/downleft-icon.vue.d.ts +4 -0
- package/es/components/icon/downleft-icon.vue.mjs +27 -0
- package/es/components/icon/downleft-icon.vue2.mjs +11 -0
- package/es/components/icon/downright-icon.vue.d.ts +4 -0
- package/es/components/icon/downright-icon.vue.mjs +27 -0
- package/es/components/icon/downright-icon.vue2.mjs +11 -0
- package/es/components/icon/upleft-icon.vue.d.ts +4 -0
- package/es/components/icon/upleft-icon.vue.mjs +27 -0
- package/es/components/icon/upleft-icon.vue2.mjs +11 -0
- package/es/components/icon/upright-icon.vue.d.ts +4 -0
- package/es/components/icon/upright-icon.vue.mjs +27 -0
- package/es/components/icon/upright-icon.vue2.mjs +11 -0
- package/es/components/index.d.ts +9 -0
- package/es/components/index.mjs +25 -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 +179 -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 +68 -0
- package/es/components/material/material-module/material-module.mjs +108 -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 +58 -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 +101 -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 +87 -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 +99 -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 +71 -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 +73 -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 +72 -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 +71 -2
- 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 +184 -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 +143 -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 +312 -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/getFieldSchema.d.ts +26 -0
- package/es/hooks/design-view/getFieldSchema.mjs +78 -0
- package/es/hooks/design-view/useDesigner.d.ts +2968 -0
- package/es/hooks/design-view/useDesigner.mjs +823 -0
- package/es/hooks/design-view/useGlobal.d.ts +1386 -0
- package/es/hooks/design-view/useGlobal.mjs +74 -0
- package/es/hooks/design-view/usePage.d.ts +59 -0
- package/es/hooks/design-view/usePage.mjs +171 -0
- package/es/hooks/design-view/usePageOccupy.d.ts +13 -0
- package/es/hooks/design-view/usePageOccupy.mjs +69 -0
- package/es/hooks/design-view/usePropEditor.d.ts +33 -0
- package/es/hooks/design-view/usePropEditor.mjs +99 -0
- package/es/hooks/design-view/useScope.d.ts +12 -0
- package/es/hooks/design-view/useScope.mjs +92 -0
- package/es/hooks/design-view/useSelectedWidget.d.ts +53 -0
- package/es/hooks/design-view/useSelectedWidget.mjs +249 -0
- package/es/hooks/design-view/useStyle.d.ts +21 -0
- package/es/hooks/design-view/useStyle.mjs +30 -0
- package/es/hooks/design-view/useStyleEditor.d.ts +27 -0
- package/es/hooks/design-view/useToolkit.d.ts +372 -0
- package/es/hooks/design-view/useToolkit.mjs +299 -0
- package/es/hooks/design-view/useWidget.d.ts +103 -0
- package/es/hooks/design-view/useWidget.mjs +124 -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 +71 -0
- package/es/hooks/index.d.ts +15 -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/web/useUUid.d.ts +41 -0
- package/es/hooks/web/useUUid.mjs +93 -0
- package/es/index.d.ts +15 -4
- package/es/index.mjs +49 -25
- 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-dnd-item-hooks.d.ts +21 -0
- package/es/interface/designer/i-designer-hooks.d.ts +26 -0
- package/es/interface/designer/i-designer-provider.d.ts +103 -0
- package/es/interface/designer/i-designer-schema-exports.d.ts +13 -0
- package/es/interface/designer/i-designer-state.d.ts +27 -0
- package/es/interface/designer/i-designer.controller.d.ts +116 -0
- package/es/interface/designer/index.d.ts +6 -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 +106 -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 +12 -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 +12 -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 +12 -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 +57 -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 +240 -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 +36 -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 +36 -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 +82 -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 +53 -0
- package/es/register/designer-register/designer-register.mjs +67 -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/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 +10 -24
- 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/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/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 +5 -1
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +97 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +266 -0
- package/es/views/design-view.css +218 -0
- package/es/views/design-view.d.ts +87 -0
- package/es/views/design-view.mjs +343 -0
- package/es/views/index.d.ts +1 -0
- package/package.json +25 -10
- package/es/constant/variable-type/variable-type.d.ts +0 -12
- package/es/constant/variable-type/variable-type.mjs +0 -13
- 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/controller/i-design-drag.controller.mjs +0 -1
- package/es/interface/controller/i-design-view.controller.mjs +0 -1
- package/es/interface/design-page/design-page.d.ts +0 -141
- package/es/interface/design-page/design-page.mjs +0 -1
- package/es/interface/i-drag-collect/i-drag-collect.mjs +0 -1
- package/es/interface/i-drag-data-item/i-drag-data-item.mjs +0 -1
- package/es/interface/i-drag-item/i-drag-item.mjs +0 -1
- package/es/interface/i-drop-collect/i-drop-collect.mjs +0 -1
- package/es/interface/i-drop-result/i-drop-result.mjs +0 -1
- 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/props/plugin-comp-props.mjs +0 -1
- package/es/interface/state/i-design-drag.state.d.ts +0 -15
- package/es/interface/state/i-design-drag.state.mjs +0 -1
- package/es/interface/state/i-design-view.state.mjs +0 -1
- 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,87 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IDesignData, IDesignViewOptions } from '../interface';
|
|
3
|
+
import { DesignViewPrefix } from '../constant';
|
|
4
|
+
export declare const DesignView: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
isEditName: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
hideUndoRedo: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
data: {
|
|
18
|
+
type: PropType<IDesignData>;
|
|
19
|
+
};
|
|
20
|
+
save: {
|
|
21
|
+
type: PropType<(data: IData) => Promise<boolean>>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
errMsg: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
context: {
|
|
29
|
+
type: PropType<IContext>;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
opts: {
|
|
33
|
+
type: PropType<IDesignViewOptions>;
|
|
34
|
+
default: () => {
|
|
35
|
+
title: string;
|
|
36
|
+
prefix: DesignViewPrefix;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "preview" | "save" | "update:name" | "update:errMsg")[], "close" | "preview" | "save" | "update:name" | "update:errMsg", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
isEditName: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
hideUndoRedo: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
name: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
data: {
|
|
53
|
+
type: PropType<IDesignData>;
|
|
54
|
+
};
|
|
55
|
+
save: {
|
|
56
|
+
type: PropType<(data: IData) => Promise<boolean>>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
errMsg: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
context: {
|
|
64
|
+
type: PropType<IContext>;
|
|
65
|
+
default: () => {};
|
|
66
|
+
};
|
|
67
|
+
opts: {
|
|
68
|
+
type: PropType<IDesignViewOptions>;
|
|
69
|
+
default: () => {
|
|
70
|
+
title: string;
|
|
71
|
+
prefix: DesignViewPrefix;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}>> & Readonly<{
|
|
75
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
onPreview?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
"onUpdate:name"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
"onUpdate:errMsg"?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
name: string;
|
|
82
|
+
context: IContext;
|
|
83
|
+
opts: IDesignViewOptions;
|
|
84
|
+
isEditName: boolean;
|
|
85
|
+
hideUndoRedo: boolean;
|
|
86
|
+
errMsg: string;
|
|
87
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, onUnmounted, createVNode, createTextVNode, withDirectives, resolveComponent, vShow, nextTick } from 'vue';
|
|
2
|
+
import { onClickOutside } from '@vueuse/core';
|
|
3
|
+
import { Modal } from 'ant-design-vue';
|
|
4
|
+
import '../hooks/design-view/useDesigner.mjs';
|
|
5
|
+
import '../hooks/design-view/useGlobal.mjs';
|
|
6
|
+
import '../hooks/design-view/usePage.mjs';
|
|
7
|
+
import '../hooks/design-view/usePageOccupy.mjs';
|
|
8
|
+
import '../hooks/design-view/usePropEditor.mjs';
|
|
9
|
+
import '../hooks/design-view/useScope.mjs';
|
|
10
|
+
import '../hooks/design-view/useSelectedWidget.mjs';
|
|
11
|
+
import '@gct-paas/schema';
|
|
12
|
+
import '../hooks/design-view/useToolkit.mjs';
|
|
13
|
+
import '../hooks/design-view/useWidget.mjs';
|
|
14
|
+
import '../hooks/develop/useCacheHistory.mjs';
|
|
15
|
+
import { useNamespace, t } from '@gct-paas/core';
|
|
16
|
+
import { useDesignViewController } from '../hooks/use-design-view-controller/use-design-view-controller.mjs';
|
|
17
|
+
import 'qx-util';
|
|
18
|
+
import { DesignViewPrefix } from '../constant/index.mjs';
|
|
19
|
+
import 'lodash-es';
|
|
20
|
+
import './design-view.css';import '../components/design/design-not-found/design-not-found.css';import '../components/design/design-drop-container/design-drop-container.css';import '../components/design/design-content/design-content.css';import '../components/design/design-not-drag-item/design-not-drag-item.css';import '../components/design/design-drop-line/design-drop-line.css';import '../components/design/design-drag-item/design-drag-item.css';import '../components/mobile-container/mobile-container.css';import '../components/design/design-item-highlighter/design-item-highlighter.css';import '../components/design/design-item-hover-title/design-item-hover-title.css';import '../components/design/design-item-actions/design-item-actions.css';import '../components/design/design-item-highlighter-container/design-item-highlighter-container.css';/* empty css */
|
|
21
|
+
import 'vue3-dnd';
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
25
|
+
import 'dayjs';
|
|
26
|
+
import '@ant-design/icons-vue';
|
|
27
|
+
/* empty css */
|
|
28
|
+
import 'react-dnd-html5-backend';
|
|
29
|
+
import '../provider/design-editor-node/design-editor-node.provider.mjs';
|
|
30
|
+
import '../utils/find-deep-types/find-deep-types.mjs';
|
|
31
|
+
import '../utils/field-attrs/basicAttrs.mjs';
|
|
32
|
+
/* empty css */
|
|
33
|
+
/* empty css */
|
|
34
|
+
/* empty css */
|
|
35
|
+
/* empty css */
|
|
36
|
+
/* empty css */
|
|
37
|
+
/* empty css */
|
|
38
|
+
import { DesignItemPreview } from '../components/design/design-item-preview/design-item-preview.mjs';
|
|
39
|
+
/* empty css */
|
|
40
|
+
|
|
41
|
+
const DesignView = /* @__PURE__ */ defineComponent({
|
|
42
|
+
name: 'DesignView',
|
|
43
|
+
props: {
|
|
44
|
+
// 是否启用名称编辑
|
|
45
|
+
isEditName: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
// 是否隐藏撤销、重做
|
|
50
|
+
hideUndoRedo: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
// 默认显示名称
|
|
55
|
+
name: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: ''
|
|
58
|
+
},
|
|
59
|
+
data: {
|
|
60
|
+
type: Object
|
|
61
|
+
},
|
|
62
|
+
save: {
|
|
63
|
+
type: Function,
|
|
64
|
+
required: true
|
|
65
|
+
},
|
|
66
|
+
errMsg: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: ''
|
|
69
|
+
},
|
|
70
|
+
context: {
|
|
71
|
+
type: Object,
|
|
72
|
+
default: () => {
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
opts: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default: () => {
|
|
79
|
+
return {
|
|
80
|
+
title: t('sys.designView.title.default'),
|
|
81
|
+
prefix: DesignViewPrefix.CUSTOM_HOME
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
emits: ['close', 'save', 'preview', 'update:name', 'update:errMsg'],
|
|
87
|
+
setup(props, {
|
|
88
|
+
emit
|
|
89
|
+
}) {
|
|
90
|
+
const ns = useNamespace('design-view');
|
|
91
|
+
const nameRef = ref();
|
|
92
|
+
const c = useDesignViewController();
|
|
93
|
+
const oldTitleName = ref(props.name);
|
|
94
|
+
const titleName = ref(props.name);
|
|
95
|
+
const isEdit = ref(false);
|
|
96
|
+
|
|
97
|
+
// 是否正在保存中
|
|
98
|
+
const isSave = ref(false);
|
|
99
|
+
|
|
100
|
+
// 是否正在预览中
|
|
101
|
+
const isPreview = ref(false);
|
|
102
|
+
const errInfo = computed(() => {
|
|
103
|
+
if (titleName.value.length > 100) {
|
|
104
|
+
emit('update:errMsg', '');
|
|
105
|
+
return t('sys.designView.title.errorMsg');
|
|
106
|
+
}
|
|
107
|
+
if (props.errMsg) {
|
|
108
|
+
return props.errMsg;
|
|
109
|
+
}
|
|
110
|
+
return '';
|
|
111
|
+
});
|
|
112
|
+
watch(() => props.name, val => {
|
|
113
|
+
oldTitleName.value = val;
|
|
114
|
+
titleName.value = val;
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// 配置参数处理
|
|
118
|
+
{
|
|
119
|
+
const {
|
|
120
|
+
prefix
|
|
121
|
+
} = props.opts;
|
|
122
|
+
if (prefix) {
|
|
123
|
+
c.store.prefix = prefix;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
const onClose = () => {
|
|
127
|
+
if (c.store.isChange) {
|
|
128
|
+
const cfg = Modal.confirm({
|
|
129
|
+
title: t('sys.designView.saveConfirm.title'),
|
|
130
|
+
content: createVNode("div", null, [createVNode("span", null, [t('sys.designView.saveConfirm.content')]), createVNode("div", {
|
|
131
|
+
"class": ns.b('continue-edit')
|
|
132
|
+
}, [createVNode("button", {
|
|
133
|
+
"type": "button",
|
|
134
|
+
"onClick": () => cfg.destroy()
|
|
135
|
+
}, [createTextVNode("\u7EE7\u7EED\u7F16\u8F91")])])]),
|
|
136
|
+
okText: t('sys.designView.saveConfirm.confirm'),
|
|
137
|
+
cancelText: t('sys.designView.saveConfirm.cancel'),
|
|
138
|
+
onOk: async () => {
|
|
139
|
+
const bol = await onSave();
|
|
140
|
+
if (bol === true) {
|
|
141
|
+
emit('close');
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
onCancel: () => {
|
|
145
|
+
emit('close');
|
|
146
|
+
},
|
|
147
|
+
class: ns.b('confirm'),
|
|
148
|
+
maskStyle: {
|
|
149
|
+
backgroundColor: 'transparent'
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
} else {
|
|
153
|
+
emit('close');
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
const save = async () => {
|
|
157
|
+
if (props.save) {
|
|
158
|
+
const validate = await c.validate();
|
|
159
|
+
if (!validate) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
const bol = await props.save(getData());
|
|
163
|
+
if (bol === true) {
|
|
164
|
+
c.store.isChange = false;
|
|
165
|
+
return true;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
169
|
+
};
|
|
170
|
+
const onSave = async () => {
|
|
171
|
+
try {
|
|
172
|
+
isSave.value = true;
|
|
173
|
+
const bol = await save();
|
|
174
|
+
if (bol) {
|
|
175
|
+
onClose();
|
|
176
|
+
}
|
|
177
|
+
} finally {
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
isSave.value = false;
|
|
180
|
+
}, 300);
|
|
181
|
+
}
|
|
182
|
+
return false;
|
|
183
|
+
};
|
|
184
|
+
const onPreview = async () => {
|
|
185
|
+
try {
|
|
186
|
+
isPreview.value = true;
|
|
187
|
+
const bol = await save();
|
|
188
|
+
if (bol) {
|
|
189
|
+
emit('preview', getData());
|
|
190
|
+
}
|
|
191
|
+
} finally {
|
|
192
|
+
setTimeout(() => {
|
|
193
|
+
isPreview.value = false;
|
|
194
|
+
}, 300);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
const getData = () => {
|
|
198
|
+
return c.store.getData();
|
|
199
|
+
};
|
|
200
|
+
const setData = data => {
|
|
201
|
+
c.store.setData(data);
|
|
202
|
+
};
|
|
203
|
+
setData(props.data || {
|
|
204
|
+
nodes: [],
|
|
205
|
+
pageNode: null,
|
|
206
|
+
tree: [],
|
|
207
|
+
type: ''
|
|
208
|
+
});
|
|
209
|
+
onUnmounted(() => {
|
|
210
|
+
c.unmounted();
|
|
211
|
+
});
|
|
212
|
+
const onEdit = e => {
|
|
213
|
+
if (props.isEditName) {
|
|
214
|
+
e.stopPropagation();
|
|
215
|
+
isEdit.value = true;
|
|
216
|
+
oldTitleName.value = titleName.value;
|
|
217
|
+
nextTick(() => {
|
|
218
|
+
nameRef.value.focus();
|
|
219
|
+
nameRef.value.select();
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
onClickOutside(nameRef, e => {
|
|
224
|
+
if (isEdit.value) {
|
|
225
|
+
if (errInfo.value) {
|
|
226
|
+
e.stopPropagation();
|
|
227
|
+
nameRef.value.focus();
|
|
228
|
+
nameRef.value.select();
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
isEdit.value = false;
|
|
232
|
+
const newVal = titleName.value = titleName.value.trim();
|
|
233
|
+
if (titleName.value.length > 100) {
|
|
234
|
+
emit('update:name', newVal);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (oldTitleName.value !== newVal) {
|
|
238
|
+
if (newVal == '') {
|
|
239
|
+
titleName.value = oldTitleName.value;
|
|
240
|
+
} else {
|
|
241
|
+
e.stopPropagation();
|
|
242
|
+
emit('update:name', newVal);
|
|
243
|
+
c.store.isChange = true;
|
|
244
|
+
// emit('save', false);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
const onPref = () => {
|
|
250
|
+
c.store.undo();
|
|
251
|
+
};
|
|
252
|
+
const onNext = () => {
|
|
253
|
+
c.store.redo();
|
|
254
|
+
};
|
|
255
|
+
return () => {
|
|
256
|
+
return createVNode("div", {
|
|
257
|
+
"class": ns.b()
|
|
258
|
+
}, [createVNode("div", {
|
|
259
|
+
"class": ns.b('header')
|
|
260
|
+
}, [createVNode("div", {
|
|
261
|
+
"class": ns.be('header', 'left')
|
|
262
|
+
}, [createVNode("div", {
|
|
263
|
+
"class": ns.be('header', 'back'),
|
|
264
|
+
"onClick": onClose
|
|
265
|
+
}, [createVNode("i", {
|
|
266
|
+
"class": "iconfont icon-a-Leftarrow"
|
|
267
|
+
}, null)]), createVNode("div", {
|
|
268
|
+
"class": ns.be('header', 'title')
|
|
269
|
+
}, [props.opts.title ?? t('sys.designView.title.default'), createTextVNode("\uFF1A\xA0")]), createVNode("div", {
|
|
270
|
+
"class": ns.be('header', 'view-title-edit')
|
|
271
|
+
}, [withDirectives(createVNode(resolveComponent("a-input"), {
|
|
272
|
+
"ref": "nameRef",
|
|
273
|
+
"value": titleName.value,
|
|
274
|
+
"onUpdate:value": $event => titleName.value = $event,
|
|
275
|
+
"bordered": false,
|
|
276
|
+
"onClick": e => e.stopPropagation()
|
|
277
|
+
}, null), [[vShow, isEdit]]), withDirectives(createVNode("span", {
|
|
278
|
+
"class": ns.e('edit-title'),
|
|
279
|
+
"onClick": onEdit
|
|
280
|
+
}, [createVNode("span", {
|
|
281
|
+
"title": titleName.value
|
|
282
|
+
}, [titleName.value]), createVNode("i", {
|
|
283
|
+
"class": "iconfont icon-a-Single-linetext"
|
|
284
|
+
}, null)]), [[vShow, !isEdit.value]]), errInfo.value ? createVNode("div", {
|
|
285
|
+
"class": ns.bem('header', 'view-title-edit', 'error-info')
|
|
286
|
+
}, [createVNode("span", null, [errInfo])]) : null])]), createVNode("div", {
|
|
287
|
+
"class": ns.be('header', 'right')
|
|
288
|
+
}, [props.opts.isBacktrack !== false && !props.hideUndoRedo ? createVNode("div", {
|
|
289
|
+
"class": ns.be('header', 'design-actions')
|
|
290
|
+
}, [createVNode(resolveComponent("a-button"), {
|
|
291
|
+
"type": "text",
|
|
292
|
+
"onClick": onPref,
|
|
293
|
+
"disabled": !c.store.history.canUndo()
|
|
294
|
+
}, {
|
|
295
|
+
default: () => t('sys.designView.undo'),
|
|
296
|
+
icon: () => createVNode("i", {
|
|
297
|
+
"class": "iconfont icon-shangyibu"
|
|
298
|
+
}, null)
|
|
299
|
+
}), createVNode(resolveComponent("a-button"), {
|
|
300
|
+
"type": "text",
|
|
301
|
+
"onClick": onNext,
|
|
302
|
+
"disabled": !c.store.history.canRedo()
|
|
303
|
+
}, {
|
|
304
|
+
default: () => t('sys.designView.redo'),
|
|
305
|
+
icon: () => createVNode("i", {
|
|
306
|
+
"class": "iconfont icon-xiayibu"
|
|
307
|
+
}, null)
|
|
308
|
+
})]) : null, createVNode("div", {
|
|
309
|
+
"class": ns.be('header', 'view-actions')
|
|
310
|
+
}, [props.opts.isPreview !== false ? createVNode(resolveComponent("a-button"), {
|
|
311
|
+
"onClick": onPreview,
|
|
312
|
+
"loading": isPreview
|
|
313
|
+
}, {
|
|
314
|
+
default: () => t('sys.designView.preview'),
|
|
315
|
+
icon: () => createVNode("i", {
|
|
316
|
+
"class": "iconfont icon-yulan"
|
|
317
|
+
}, null)
|
|
318
|
+
}) : null, createVNode(resolveComponent("a-button"), {
|
|
319
|
+
"onClick": onSave,
|
|
320
|
+
"loading": isSave
|
|
321
|
+
}, {
|
|
322
|
+
default: () => t('sys.designView.save'),
|
|
323
|
+
icon: () => createVNode("i", {
|
|
324
|
+
"class": "iconfont icon-baocun1"
|
|
325
|
+
}, null)
|
|
326
|
+
})])])]), createVNode("div", {
|
|
327
|
+
"class": ns.b('content')
|
|
328
|
+
}, [createVNode(DesignItemPreview, null, null), props.opts.isMaterial !== false ? createVNode("div", {
|
|
329
|
+
"class": ns.be('content', 'left')
|
|
330
|
+
}, [createVNode(resolveComponent("material-content"), null, null)]) : null, createVNode("div", {
|
|
331
|
+
"class": ns.be('content', 'center')
|
|
332
|
+
}, [createVNode(resolveComponent("design-content"), {
|
|
333
|
+
"opts": props.opts
|
|
334
|
+
}, null)]), createVNode("div", {
|
|
335
|
+
"class": ns.be('content', 'right')
|
|
336
|
+
}, [createVNode(resolveComponent("panel-content"), {
|
|
337
|
+
"context": props.context
|
|
338
|
+
}, null)])])]);
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
export { DesignView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DesignView } from './design-view';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/design",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台设计界面底包",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"author": "gct",
|
|
33
33
|
"scripts": {
|
|
34
|
-
"dev": "
|
|
35
|
-
"build": "
|
|
34
|
+
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|
|
35
|
+
"es:build": "vite build --config vite.dev.config.ts",
|
|
36
|
+
"build": "npm run lint && vite build --config vite.dev.config.ts && vite build --config vite.config.ts",
|
|
36
37
|
"lint": "eslint src --fix",
|
|
37
38
|
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
38
39
|
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
@@ -41,19 +42,33 @@
|
|
|
41
42
|
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@gct-paas/
|
|
45
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
46
|
+
"@gct-paas/api": "0.1.0-dev.8",
|
|
47
|
+
"@gct-paas/core": "0.1.4-dev.8",
|
|
48
|
+
"@gct-paas/core-web": "0.1.4-dev.8",
|
|
49
|
+
"@gct-paas/schema": "0.1.4-dev.8",
|
|
50
|
+
"@gct-paas/scss": "0.1.4-dev.8",
|
|
51
|
+
"@jsplumb/browser-ui": "^6.2.10",
|
|
52
|
+
"@vueuse/core": "^14.1.0",
|
|
46
53
|
"ant-design-vue": "3.2.20",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
54
|
+
"async-validator": "^4.2.5",
|
|
55
|
+
"dayjs": "^1.11.19",
|
|
56
|
+
"escodegen": "^2.1.0",
|
|
57
|
+
"esprima-next": "5.8.4",
|
|
58
|
+
"estraverse": "^5.3.0",
|
|
59
|
+
"lodash-es": "^4.17.23",
|
|
60
|
+
"pinia": "^3.0.4",
|
|
49
61
|
"qx-util": "^0.4.8",
|
|
50
|
-
"
|
|
62
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
63
|
+
"vue": "^3.5.27",
|
|
64
|
+
"vue3-dnd": "^2.1.0"
|
|
51
65
|
},
|
|
52
66
|
"peerDependencies": {
|
|
53
67
|
"vue": "^3.x"
|
|
54
68
|
},
|
|
55
69
|
"devDependencies": {
|
|
56
|
-
"@
|
|
70
|
+
"@gct-paas/build": "^0.1.5-dev.6",
|
|
71
|
+
"@types/estraverse": "^5.1.7"
|
|
57
72
|
},
|
|
58
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "bf7f4f9672c3906ec834e6d58b999ce78f7cad08"
|
|
59
74
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var VariableTypeEnum = /* @__PURE__ */ ((VariableTypeEnum2) => {
|
|
3
|
-
VariableTypeEnum2["String"] = "String";
|
|
4
|
-
VariableTypeEnum2["Number"] = "Number";
|
|
5
|
-
VariableTypeEnum2["Boolean"] = "Boolean";
|
|
6
|
-
VariableTypeEnum2["Object"] = "Object";
|
|
7
|
-
VariableTypeEnum2["Array"] = "Array";
|
|
8
|
-
VariableTypeEnum2["DataTime"] = "DataTime";
|
|
9
|
-
VariableTypeEnum2["Null"] = "Null";
|
|
10
|
-
return VariableTypeEnum2;
|
|
11
|
-
})(VariableTypeEnum || {});
|
|
12
|
-
|
|
13
|
-
export { VariableTypeEnum };
|
package/es/hooks/index.mjs
DELETED
package/es/hooks/useStyle.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LowCodeWidget } from '@gct-paas/core';
|
|
2
|
-
export declare function useStyle(widget: LowCodeWidget.BasicSchema): {
|
|
3
|
-
wrapperStyle: import('vue').ComputedRef<any>;
|
|
4
|
-
wStyle: import('vue').ComputedRef<any>;
|
|
5
|
-
labelFont: import('vue').ComputedRef<any>;
|
|
6
|
-
contentFont: import('vue').ComputedRef<any>;
|
|
7
|
-
};
|
|
8
|
-
export declare const schemaToStyle: (schema: any) => any;
|
|
9
|
-
export declare function propsToStyle(styleProps?: any): any;
|
|
10
|
-
export declare const transAlign2flex: {
|
|
11
|
-
left: string;
|
|
12
|
-
center: string;
|
|
13
|
-
right: string;
|
|
14
|
-
justify: string;
|
|
15
|
-
};
|
package/es/hooks/useStyle.mjs
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { computed } from 'vue';
|
|
2
|
-
import { notNeedPxStyle } from '../schema/common-config/common-style.mjs';
|
|
3
|
-
import { pick, isEmpty, isNil } from 'lodash-es';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
function pxToVw(pxValue) {
|
|
7
|
-
if (import.meta.env.VITE_APP_ENV === "mobile") {
|
|
8
|
-
return pxValue / 375 * 100 + "vw";
|
|
9
|
-
} else {
|
|
10
|
-
return pxValue + "px";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
const cmpStyle = {
|
|
14
|
-
fontAttrs: [
|
|
15
|
-
"fontWeight",
|
|
16
|
-
"fontSize",
|
|
17
|
-
"color",
|
|
18
|
-
"textDecorationLine",
|
|
19
|
-
"textAlign"
|
|
20
|
-
],
|
|
21
|
-
mapAttrs: {
|
|
22
|
-
bold: {
|
|
23
|
-
attr: "fontWeight",
|
|
24
|
-
callback: (value) => {
|
|
25
|
-
return value ? 700 : 400;
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
italic: {
|
|
29
|
-
attr: "fontStyle",
|
|
30
|
-
callback: (value) => {
|
|
31
|
-
return value ? "italic" : "normal";
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
textDecoration: {
|
|
35
|
-
attr: "textDecorationLine"
|
|
36
|
-
},
|
|
37
|
-
fontSize: {
|
|
38
|
-
attr: "fontSize",
|
|
39
|
-
callback: (value) => {
|
|
40
|
-
return value ? pxToVw(value) : "";
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
align: {
|
|
44
|
-
attr: "textAlign"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
// 获取font样式,
|
|
48
|
-
font(font) {
|
|
49
|
-
if (!font) return {};
|
|
50
|
-
const o = {};
|
|
51
|
-
Object.assign(o, pick(font, cmpStyle.fontAttrs));
|
|
52
|
-
if (typeof cmpStyle.mapAttrs === "object") {
|
|
53
|
-
Object.keys(cmpStyle.mapAttrs).forEach((k) => {
|
|
54
|
-
const { attr, callback } = cmpStyle.mapAttrs[k];
|
|
55
|
-
o[attr] = typeof callback === "function" ? callback(font[k]) : font[k];
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return o;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
function useStyle(widget) {
|
|
62
|
-
const { style = {}, ignoringStyle = [] } = widget || {};
|
|
63
|
-
const wStyle = computed(() => {
|
|
64
|
-
return propsToStyle(style);
|
|
65
|
-
});
|
|
66
|
-
const wrapperStyle = computed(() => {
|
|
67
|
-
const styleData = {
|
|
68
|
-
position: isEmpty(style.position) ? "" : style.position + " !important",
|
|
69
|
-
top: isEmpty(style.top) ? "" : style.top + "px !important",
|
|
70
|
-
left: isEmpty(style.left) ? "" : style.left + "px !important",
|
|
71
|
-
right: isEmpty(style.right) ? "" : style.right + "px !important",
|
|
72
|
-
bottom: isEmpty(style.bottom) ? "" : style.bottom + "px !important",
|
|
73
|
-
width: isEmpty(style.width) ? "" : style.width + "px !important",
|
|
74
|
-
height: isEmpty(style.height) ? "" : style.height + "px !important",
|
|
75
|
-
backgroundColor: isEmpty(style.backgroundColor) ? "" : style.backgroundColor + " !important",
|
|
76
|
-
marginTop: isEmpty(style.marginTop) ? "" : style.marginTop + "px !important",
|
|
77
|
-
marginRight: isEmpty(style.marginRight) ? "" : style.marginRight + "px !important",
|
|
78
|
-
marginBottom: isEmpty(style.marginBottom) ? "" : style.marginBottom + "px !important",
|
|
79
|
-
marginLeft: isEmpty(style.marginLeft) ? "" : style.marginLeft + "px !important",
|
|
80
|
-
paddingTop: isEmpty(style.paddingTop) ? "" : style.paddingTop + "px !important",
|
|
81
|
-
paddingRight: isEmpty(style.paddingRight) ? "" : style.paddingRight + "px !important",
|
|
82
|
-
paddingBottom: isEmpty(style.paddingBottom) ? "" : style.paddingBottom + "px !important",
|
|
83
|
-
paddingLeft: isEmpty(style.paddingLeft) ? "" : style.paddingLeft + "px !important",
|
|
84
|
-
borderLeft: `${style.borderLeft?.borderWidth}px ${style.borderLeft?.borderStyle} ${style.borderLeft?.borderColor} !important`,
|
|
85
|
-
borderRight: `${style.borderRight?.borderWidth}px ${style.borderRight?.borderStyle} ${style.borderRight?.borderColor} !important`,
|
|
86
|
-
borderBottom: `${style.borderBottom?.borderWidth}px ${style.borderBottom?.borderStyle} ${style.borderBottom?.borderColor} !important`,
|
|
87
|
-
borderTop: `${style.borderTop?.borderWidth}px ${style.borderTop?.borderStyle} ${style.borderTop?.borderColor} !important`,
|
|
88
|
-
borderTopRightRadius: isEmpty(style.borderTopRightRadius) ? "" : style.borderTopRightRadius + "px !important",
|
|
89
|
-
borderTopLeftRadius: isEmpty(style.borderTopLeftRadius) ? "" : style.borderTopLeftRadius + "px !important",
|
|
90
|
-
borderBottomRightRadius: isEmpty(style.borderBottomRightRadius) ? "" : style.borderBottomRightRadius + "px !important",
|
|
91
|
-
borderBottomLeftRadius: isEmpty(style.borderBottomLeftRadius) ? "" : style.borderBottomLeftRadius + "px !important"
|
|
92
|
-
};
|
|
93
|
-
ignoringStyle.forEach((key) => {
|
|
94
|
-
styleData[key] = void 0;
|
|
95
|
-
});
|
|
96
|
-
return styleData;
|
|
97
|
-
});
|
|
98
|
-
const labelFont = computed(() => {
|
|
99
|
-
return cmpStyle.font(style.labelFont);
|
|
100
|
-
});
|
|
101
|
-
const contentFont = computed(() => {
|
|
102
|
-
return cmpStyle.font(style.contentFont);
|
|
103
|
-
});
|
|
104
|
-
return {
|
|
105
|
-
wrapperStyle,
|
|
106
|
-
wStyle,
|
|
107
|
-
labelFont,
|
|
108
|
-
contentFont
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
const schemaToStyle = (schema) => cmpStyle.font(schema);
|
|
112
|
-
function propsToStyle(styleProps = {}) {
|
|
113
|
-
const wStyle = {};
|
|
114
|
-
for (const prop in styleProps) {
|
|
115
|
-
wStyle[prop] = makeStyleProp(prop, styleProps[prop]);
|
|
116
|
-
}
|
|
117
|
-
return wStyle;
|
|
118
|
-
}
|
|
119
|
-
function makeStyleProp(prop, value) {
|
|
120
|
-
if (isNil(value) || isEmpty(value)) {
|
|
121
|
-
return "";
|
|
122
|
-
}
|
|
123
|
-
if (notNeedPxStyle.includes(prop)) {
|
|
124
|
-
return value + " !important";
|
|
125
|
-
}
|
|
126
|
-
return value + "px !important";
|
|
127
|
-
}
|
|
128
|
-
const transAlign2flex = {
|
|
129
|
-
left: "flex-start",
|
|
130
|
-
center: "center",
|
|
131
|
-
right: "flex-end",
|
|
132
|
-
justify: "space-between"
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
export { propsToStyle, schemaToStyle, transAlign2flex, useStyle };
|