@gct-paas/core-web 0.1.4-dev.10 → 0.1.4-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-B8zoAUhR.cjs +20 -0
- package/dist/index-BH5PTZ_c.js +20 -0
- package/dist/index-Cna4DZog.js +109381 -0
- package/dist/index.esm.min.mjs +89 -39
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/monaco-editor-4E2xdOou.cjs +1 -0
- package/dist/monaco-editor-C-wvzgow.js +1 -0
- package/dist/monaco-editor-Cel355Cg.js +350 -0
- package/es/ai-components/code-chat/code-chat.d.ts +53 -0
- package/es/ai-components/index.d.ts +1 -0
- package/es/ai-components/wujie-ai-container/wujie-ai-container.d.ts +21 -0
- package/es/components/base-button/base-button.vue.d.ts +5 -5
- package/es/components/basic-button/basic-button.vue.d.ts +2 -2
- package/es/components/code-editor/code-editor.d.ts +1 -1
- package/es/components/double-input/double-input.vue.mjs +1 -1
- package/es/components/icon-next/data/icons.data.d.ts +5 -0
- package/es/components/icon-next/hooks/useIconAsset.d.ts +16 -0
- package/es/components/icon-next/hooks/useIconAsset.mjs +48 -0
- package/es/components/icon-next/hooks/useIconPark.d.ts +16 -0
- package/es/components/icon-next/hooks/useIconPark.mjs +52 -0
- package/es/components/icon-next/hooks/useIconPlatform.d.ts +8 -0
- package/es/components/icon-next/hooks/useIconPlatform.mjs +48 -0
- package/es/components/icon-next/index.d.ts +3 -0
- package/es/components/icon-next/src/IconNext.css +18 -0
- package/es/components/icon-next/src/IconNext.vue.d.ts +40 -0
- package/es/components/icon-next/src/IconNext.vue2.mjs +7 -0
- package/es/components/icon-next/src/IconNext.vue3.mjs +108 -0
- package/es/components/icon-next/src/IconNextPicker.css +195 -0
- package/es/components/icon-next/src/IconNextPicker.vue.d.ts +75 -0
- package/es/components/icon-next/src/IconNextPicker.vue2.mjs +452 -0
- package/es/components/icon-next/src/IconNextPicker.vue3.mjs +6 -0
- package/es/components/icon-next/types/index.d.ts +17 -0
- package/es/components/icon-next/types/index.mjs +10 -0
- package/es/components/index.d.ts +0 -3
- package/es/components/index.mjs +10 -2
- package/es/components/svg-icon/svg-icon.vue.d.ts +1 -1
- package/es/create-app-vue.mjs +5 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useDesign.d.ts +4 -0
- package/es/hooks/useDesign.mjs +11 -0
- package/es/index.d.ts +3 -0
- package/es/index.mjs +102 -5
- package/es/modules/Cropper/hooks/useFile.d.ts +4 -0
- package/es/modules/Cropper/index.d.ts +5 -0
- package/es/modules/Cropper/src/CopperFreeModal.vue.d.ts +100 -0
- package/es/modules/Cropper/src/CopperModal.vue.d.ts +40 -0
- package/es/modules/Cropper/src/Cropper.vue.d.ts +96 -0
- package/es/modules/Cropper/src/CropperAvatar.vue.d.ts +62 -0
- package/es/modules/Cropper/src/CropperFree.vue.d.ts +118 -0
- package/es/modules/Cropper/src/typing.d.ts +11 -0
- package/es/modules/code-editor/index.d.ts +11 -11
- package/es/modules/code-editor/monaco-editor.vue.d.ts +4 -4
- package/es/modules/color-picker/src/ColorPicker.vue.d.ts +1 -1
- package/es/modules/formula-editor/formula-editor.mjs +11 -4
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +1 -1
- package/es/modules/gct-form/constants/editor-register/editor-register.d.ts +14 -0
- package/es/modules/gct-form/constants/editor-register/editor-register.mjs +6 -0
- package/es/modules/gct-form/constants/editor-type/editor-type.d.ts +130 -0
- package/es/modules/gct-form/constants/editor-type/editor-type.mjs +35 -0
- package/es/modules/gct-form/constants/index.d.ts +3 -0
- package/es/modules/gct-form/constants/index.mjs +3 -0
- package/es/modules/gct-form/controller/edit-form/edit-form.controller.d.ts +42 -0
- package/es/modules/gct-form/controller/edit-form/edit-form.controller.mjs +72 -0
- package/es/modules/gct-form/controller/editor-item/editor-item.controller.d.ts +15 -0
- package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +23 -0
- package/es/modules/gct-form/controller/form/form.controller.d.ts +68 -0
- package/es/modules/gct-form/controller/form-collapse/form-collapse.controller.d.ts +18 -0
- package/es/modules/gct-form/controller/form-collapse/form-collapse.controller.mjs +11 -0
- package/es/modules/gct-form/controller/form-collapse-pane/form-collapse-pane.controller.d.ts +18 -0
- package/es/modules/gct-form/controller/form-collapse-pane/form-collapse-pane.controller.mjs +11 -0
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +27 -0
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +94 -0
- package/es/modules/gct-form/controller/form-group/form-group.controller.d.ts +18 -0
- package/es/modules/gct-form/controller/form-group/form-group.controller.mjs +11 -0
- package/es/modules/gct-form/controller/form-item/form-item.controller.d.ts +21 -0
- package/es/modules/gct-form/controller/form-item/form-item.controller.mjs +37 -0
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.d.ts +57 -0
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +45 -0
- package/es/modules/gct-form/controller/form-item-hidden/form-item-hidden.controller.d.ts +17 -0
- package/es/modules/gct-form/controller/form-item-hidden/form-item-hidden.controller.mjs +7 -0
- package/es/modules/gct-form/controller/form-line/form-line.controller.d.ts +18 -0
- package/es/modules/gct-form/controller/form-line/form-line.controller.mjs +11 -0
- package/es/modules/gct-form/controller/form-tab/form-tab.controller.d.ts +18 -0
- package/es/modules/gct-form/controller/form-tab/form-tab.controller.mjs +11 -0
- package/es/modules/gct-form/controller/form-tab-pane/form-tab-pane.controller.d.ts +18 -0
- package/es/modules/gct-form/controller/form-tab-pane/form-tab-pane.controller.mjs +11 -0
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.d.ts +101 -0
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +224 -0
- package/es/modules/gct-form/controller/index.d.ts +13 -0
- package/es/modules/gct-form/editor/gct-form-action/gct-form-action.d.ts +39 -0
- package/es/modules/gct-form/editor/gct-form-action/gct-form-action.mjs +50 -0
- package/es/modules/gct-form/editor/gct-form-action/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-action/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.css +86 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-check-switch/gct-form-check-switch.d.ts +7 -2
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.mjs +59 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-check-switch/gct-form-check-switch.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-check-switch/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-checkbox/gct-form-checkbox.css +108 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-checkbox/gct-form-checkbox.d.ts +19 -5
- package/es/modules/gct-form/editor/gct-form-checkbox/gct-form-checkbox.mjs +127 -0
- package/es/{editor/gct-form-icon-select → modules/gct-form/editor/gct-form-checkbox}/index.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-checkbox/index.mjs +14 -0
- package/es/{components/layout/flex-container/flex-container.css → modules/gct-form/editor/gct-form-color/gct-form-color.css} +2 -2
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.d.ts +36 -0
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +44 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-color/gct-form-color.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-color/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-date/gct-form-date.d.ts +286 -0
- package/es/modules/gct-form/editor/gct-form-date/gct-form-date.mjs +81 -0
- package/es/modules/gct-form/editor/gct-form-date/gct-form-date.provider.d.ts +11 -0
- package/es/modules/gct-form/editor/gct-form-date/gct-form-date.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-date/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.css +77 -0
- package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.d.ts +111 -0
- package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.mjs +113 -0
- package/es/{editor/gct-form-info → modules/gct-form/editor/gct-form-date-format-select}/index.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-date-format-select/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.d.ts +2 -0
- package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.mjs +16 -0
- package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.provider.d.ts +4 -0
- package/es/modules/gct-form/editor/gct-form-empty/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-empty/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.css +81 -0
- package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.d.ts +39 -0
- package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.mjs +69 -0
- package/es/{editor/gct-form-radio → modules/gct-form/editor/gct-form-formula}/index.d.ts +1 -4
- package/es/modules/gct-form/editor/gct-form-formula/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-group-select/gct-form-group-select.css +120 -0
- package/es/{editor/gct-form-modal-select/gct-form-modal-select.d.ts → modules/gct-form/editor/gct-form-group-select/gct-form-group-select.d.ts} +19 -12
- package/es/modules/gct-form/editor/gct-form-group-select/gct-form-group-select.mjs +231 -0
- package/es/modules/gct-form/editor/gct-form-group-select/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-group-select/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.d.ts +121 -0
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.mjs +114 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-i18n/gct-form-i18n.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-i18n/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-icon-select/gct-form-icon-select.css +76 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-icon-select/gct-form-icon-select.d.ts +3 -3
- package/es/modules/gct-form/editor/gct-form-icon-select/gct-form-icon-select.mjs +73 -0
- package/es/{editor/gct-form-checkbox → modules/gct-form/editor/gct-form-icon-select}/index.d.ts +1 -4
- package/es/modules/gct-form/editor/gct-form-icon-select/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-info/gct-form-info.css +85 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-info/gct-form-info.d.ts +16 -1
- package/es/modules/gct-form/editor/gct-form-info/gct-form-info.mjs +52 -0
- package/es/modules/gct-form/editor/gct-form-info/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-info/index.mjs +14 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-length-unit/gct-form-length-unit.d.ts +1 -4
- package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.mjs +43 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-length-unit/gct-form-length-unit.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-length-unit/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.css +76 -0
- package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.d.ts +19 -0
- package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +175 -0
- package/es/modules/gct-form/editor/gct-form-model-select/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-model-select/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.d.ts +68 -0
- package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.mjs +68 -0
- package/es/modules/gct-form/editor/gct-form-multiple-choice/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-multiple-choice/index.mjs +14 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-number/gct-form-number.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-number/gct-form-number.mjs +44 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-number/gct-form-number.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-number/gct-form-number.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-number/index.mjs +12 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-picker/gct-form-picker.d.ts +3 -3
- package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.mjs +113 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-picker/gct-form-picker.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-picker/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.css +103 -0
- package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.d.ts +29 -0
- package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.mjs +69 -0
- package/es/modules/gct-form/editor/gct-form-pixel-config/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-pixel-config/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.css +205 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-radio/gct-form-radio.d.ts +7 -1
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +95 -0
- package/es/modules/gct-form/editor/gct-form-radio/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-radio/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-select/gct-form-select.css +83 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-select/gct-form-select.d.ts +17 -3
- package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +128 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-select/gct-form-select.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-select/gct-form-select.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-select/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-span/gct-form-span.css +73 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-span/gct-form-span.d.ts +10 -1
- package/es/modules/gct-form/editor/gct-form-span/gct-form-span.mjs +100 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-span/gct-form-span.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-span/gct-form-span.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-span/index.mjs +12 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-switch/gct-form-switch.d.ts +7 -1
- package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.mjs +39 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-switch/gct-form-switch.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-switch/index.d.ts +4 -0
- package/es/modules/gct-form/editor/gct-form-switch/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-form-table/gct-form-table.d.ts +53 -0
- package/es/modules/gct-form/editor/gct-form-table/gct-form-table.mjs +32 -0
- package/es/modules/gct-form/editor/gct-form-table/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-form-table/index.mjs +14 -0
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.css +70 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-text/gct-form-text.d.ts +8 -2
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +58 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-text/gct-form-text.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-text/index.d.ts +4 -0
- package/es/modules/gct-form/editor/gct-form-text/index.mjs +12 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-textarea/gct-form-textarea.d.ts +2 -1
- package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.mjs +46 -0
- package/es/{editor → modules/gct-form/editor}/gct-form-textarea/gct-form-textarea.provider.d.ts +1 -1
- package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.provider.mjs +5 -0
- package/es/modules/gct-form/editor/gct-form-textarea/index.d.ts +4 -0
- package/es/modules/gct-form/editor/gct-form-textarea/index.mjs +12 -0
- package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.css +94 -0
- package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.d.ts +53 -0
- package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.mjs +79 -0
- package/es/modules/gct-form/editor/gct-select-form-table/index.d.ts +8 -0
- package/es/modules/gct-form/editor/gct-select-form-table/index.mjs +14 -0
- package/es/modules/gct-form/editor/index.mjs +34 -0
- package/es/modules/gct-form/hooks/index.d.ts +2 -0
- package/es/modules/gct-form/hooks/use-form/use-form.d.ts +10 -0
- package/es/modules/gct-form/hooks/use-form/use-form.mjs +8 -0
- package/es/modules/gct-form/hooks/use-gct-form-value/use-gct-form-value.d.ts +22 -0
- package/es/modules/gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs +89 -0
- package/es/modules/gct-form/index.d.ts +12 -0
- package/es/modules/gct-form/index.mjs +16 -0
- package/es/modules/gct-form/interface/i-controller/edit-form/edit-form.controller.d.ts +20 -0
- package/es/modules/gct-form/interface/i-controller/editor-item/editor-item.controller.d.ts +27 -0
- package/es/modules/gct-form/interface/i-controller/form/form.controller.d.ts +121 -0
- package/es/modules/gct-form/interface/i-controller/form-collapse/form-collapse.controller.d.ts +23 -0
- package/es/modules/gct-form/interface/i-controller/form-collapse-pane/form-collapse-pane.controller.d.ts +23 -0
- package/es/modules/gct-form/interface/i-controller/form-edit-item/form-edit-item.controller.d.ts +59 -0
- package/es/modules/gct-form/interface/i-controller/form-group/form-group.controller.d.ts +24 -0
- package/es/modules/gct-form/interface/i-controller/form-hidden-item/form-hidden-item.controller.d.ts +24 -0
- package/es/modules/gct-form/interface/i-controller/form-item/form-item.controller.d.ts +40 -0
- package/es/modules/gct-form/interface/i-controller/form-item-basic/form-item-basic.controller.d.ts +51 -0
- package/es/modules/gct-form/interface/i-controller/form-line/form-line.controller.d.ts +20 -0
- package/es/modules/gct-form/interface/i-controller/form-tab/form-tab.controller.d.ts +23 -0
- package/es/modules/gct-form/interface/i-controller/form-tab-pane/form-tab-pane.controller.d.ts +23 -0
- package/es/modules/gct-form/interface/i-controller/index.d.ts +13 -0
- package/es/modules/gct-form/interface/i-editor/i-action-editor.d.ts +23 -0
- package/es/modules/gct-form/interface/i-editor/i-check-switch.d.ts +29 -0
- package/es/modules/gct-form/interface/i-editor/i-checkbox-editor.d.ts +11 -0
- package/es/modules/gct-form/interface/i-editor/i-color-editor.d.ts +13 -0
- package/es/modules/gct-form/interface/i-editor/i-date-format-select-editor.d.ts +36 -0
- package/es/modules/gct-form/interface/i-editor/i-editor-basic.d.ts +134 -0
- package/es/modules/gct-form/interface/i-editor/i-formula-editor.d.ts +22 -0
- package/es/modules/gct-form/interface/i-editor/i-i18n-editor.d.ts +38 -0
- package/es/modules/gct-form/interface/i-editor/i-icon-select-editor.d.ts +21 -0
- package/es/modules/gct-form/interface/i-editor/i-info-editor.d.ts +21 -0
- package/es/modules/gct-form/interface/i-editor/i-length-unit-editor.d.ts +13 -0
- package/es/modules/gct-form/interface/i-editor/i-model-field-select-editor.d.ts +18 -0
- package/es/modules/gct-form/interface/i-editor/i-mpicker-editor.d.ts +36 -0
- package/es/modules/gct-form/interface/i-editor/i-number-editor.d.ts +21 -0
- package/es/modules/gct-form/interface/i-editor/i-picker-editor.d.ts +37 -0
- package/es/modules/gct-form/interface/i-editor/i-radio-editor.d.ts +32 -0
- package/es/modules/gct-form/interface/i-editor/i-select-editor.d.ts +45 -0
- package/es/modules/gct-form/interface/i-editor/i-select-table-editor.d.ts +44 -0
- package/es/modules/gct-form/interface/i-editor/i-span-editor.d.ts +30 -0
- package/es/modules/gct-form/interface/i-editor/i-switch-editor.d.ts +14 -0
- package/es/modules/gct-form/interface/i-editor/i-table-editor.d.ts +19 -0
- package/es/modules/gct-form/interface/i-editor/i-text-editor.d.ts +46 -0
- package/es/modules/gct-form/interface/i-editor/i-textarea-editor.d.ts +25 -0
- package/es/modules/gct-form/interface/i-editor/index.d.ts +23 -0
- package/es/modules/gct-form/interface/i-events/form/i-form.event.d.ts +14 -0
- package/es/modules/gct-form/interface/i-events/index.d.ts +1 -0
- package/es/modules/gct-form/interface/i-form/i-edit-form.d.ts +48 -0
- package/es/modules/gct-form/interface/i-form/i-form-collapse-pane.d.ts +30 -0
- package/es/modules/gct-form/interface/i-form/i-form-collapse.d.ts +39 -0
- package/es/modules/gct-form/interface/i-form/i-form-container.d.ts +53 -0
- package/es/modules/gct-form/interface/i-form/i-form-edit-item.d.ts +154 -0
- package/es/modules/gct-form/interface/i-form/i-form-group-container.d.ts +24 -0
- package/es/modules/gct-form/interface/i-form/i-form-group.d.ts +35 -0
- package/es/modules/gct-form/interface/i-form/i-form-hidden-item.d.ts +11 -0
- package/es/modules/gct-form/interface/i-form/i-form-item-basic.d.ts +131 -0
- package/es/modules/gct-form/interface/i-form/i-form-item.d.ts +11 -0
- package/es/modules/gct-form/interface/i-form/i-form-line.d.ts +24 -0
- package/es/modules/gct-form/interface/i-form/i-form-tab-pane.d.ts +23 -0
- package/es/modules/gct-form/interface/i-form/i-form-tab.d.ts +25 -0
- package/es/modules/gct-form/interface/i-form/i-form.d.ts +93 -0
- package/es/modules/gct-form/interface/i-form/index.d.ts +14 -0
- package/es/modules/gct-form/interface/i-layout/i-flex-layout/i-flex-container.d.ts +75 -0
- package/es/modules/gct-form/interface/i-layout/i-flex-layout/i-flex-item.d.ts +51 -0
- package/es/modules/gct-form/interface/i-layout/i-grid-layout/i-grid-container.d.ts +29 -0
- package/es/modules/gct-form/interface/i-layout/i-grid-layout/i-grid-item-span.d.ts +54 -0
- package/es/modules/gct-form/interface/i-layout/i-grid-layout/i-grid-item.d.ts +37 -0
- package/es/modules/gct-form/interface/i-layout/i-layout-basis/i-layout-container-basis.d.ts +11 -0
- package/es/modules/gct-form/interface/i-layout/index.d.ts +6 -0
- package/es/modules/gct-form/interface/i-provider/i-editor-provider/i-editor-provider.d.ts +24 -0
- package/es/modules/gct-form/interface/i-provider/i-form-item-provider/i-form-item-provider.d.ts +44 -0
- package/es/modules/gct-form/interface/i-provider/index.d.ts +2 -0
- package/es/modules/gct-form/interface/i-state/form/form.state.d.ts +59 -0
- package/es/modules/gct-form/interface/i-state/form-collapse/form-collapse.state.d.ts +11 -0
- package/es/modules/gct-form/interface/i-state/form-collapse-pane/form-collapse-pane.state.d.ts +11 -0
- package/es/modules/gct-form/interface/i-state/form-edit-item/form-edit-item.state.d.ts +38 -0
- package/es/modules/gct-form/interface/i-state/form-group/form-group.state.d.ts +21 -0
- package/es/modules/gct-form/interface/i-state/form-hidden-item/form-hidden-item.state.d.ts +5 -0
- package/es/modules/gct-form/interface/i-state/form-item/form-item.state.d.ts +20 -0
- package/es/modules/gct-form/interface/i-state/form-item-basic/form-item-basic.state.d.ts +63 -0
- package/es/modules/gct-form/interface/i-state/form-line/form-line.state.d.ts +10 -0
- package/es/modules/gct-form/interface/i-state/form-tab/form-tab.state.d.ts +19 -0
- package/es/modules/gct-form/interface/i-state/form-tab-pane/form-tab-pane.state.d.ts +11 -0
- package/es/modules/gct-form/interface/i-state/index.d.ts +11 -0
- package/es/modules/gct-form/interface/index.d.ts +7 -0
- package/es/modules/gct-form/props/gct-form-item/gct-form-item.props.d.ts +63 -0
- package/es/modules/gct-form/props/gct-form-item/gct-form-item.props.mjs +66 -0
- package/es/modules/gct-form/props/index.d.ts +1 -0
- package/es/modules/gct-form/register/editor-register/editor-register.d.ts +49 -0
- package/es/modules/gct-form/register/editor-register/editor-register.mjs +57 -0
- package/es/modules/gct-form/register/form-item-register/form-item-register.d.ts +36 -0
- package/es/modules/gct-form/register/form-item-register/form-item-register.mjs +42 -0
- package/es/modules/gct-form/register/index.d.ts +2 -0
- package/es/modules/gct-form/state/form/form.state.d.ts +25 -0
- package/es/modules/gct-form/state/form/form.state.mjs +17 -0
- package/es/modules/gct-form/state/form-collapse/form-collapse.state.d.ts +14 -0
- package/es/modules/gct-form/state/form-collapse/form-collapse.state.mjs +6 -0
- package/es/modules/gct-form/state/form-collapse-pane/form-collapse-pane.state.d.ts +14 -0
- package/es/modules/gct-form/state/form-collapse-pane/form-collapse-pane.state.mjs +6 -0
- package/es/modules/gct-form/state/form-edit-item/form-edit-item.state.d.ts +18 -0
- package/es/modules/gct-form/state/form-edit-item/form-edit-item.state.mjs +10 -0
- package/es/modules/gct-form/state/form-group/form-group.state.d.ts +21 -0
- package/es/modules/gct-form/state/form-group/form-group.state.mjs +14 -0
- package/es/modules/gct-form/state/form-item/form-item.state.d.ts +14 -0
- package/es/modules/gct-form/state/form-item/form-item.state.mjs +6 -0
- package/es/modules/gct-form/state/form-item-basic/form-item-basic.state.d.ts +17 -0
- package/es/modules/gct-form/state/form-item-basic/form-item-basic.state.mjs +9 -0
- package/es/modules/gct-form/state/form-line/form-line.state.d.ts +11 -0
- package/es/modules/gct-form/state/form-line/form-line.state.mjs +6 -0
- package/es/modules/gct-form/state/form-tab/form-tab.state.d.ts +15 -0
- package/es/modules/gct-form/state/form-tab/form-tab.state.mjs +7 -0
- package/es/modules/gct-form/state/form-tab-pane/form-tab-pane.state.d.ts +14 -0
- package/es/modules/gct-form/state/form-tab-pane/form-tab-pane.state.mjs +6 -0
- package/es/modules/gct-form/state/index.d.ts +10 -0
- package/es/modules/gct-form/utils/index.d.ts +1 -0
- package/es/modules/gct-form/utils/width-install/width-install.d.ts +17 -0
- package/es/modules/gct-form/utils/width-install/width-install.mjs +19 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-edit-form/gct-edit-form.d.ts +23 -4
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +151 -0
- package/es/modules/gct-form/widgets/gct-edit-form/index.mjs +10 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.css +97 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-collapse/gct-form-collapse.d.ts +13 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +79 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.d.ts +19 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-collapse/gct-form-collapse.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +15 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.css +79 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +13 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +77 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.d.ts +18 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +16 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +15 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.css +88 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-group/gct-form-group.d.ts +13 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +94 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.d.ts +19 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-group/gct-form-group.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +15 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.d.ts +16 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.d.ts +2 -2
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +16 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.d.ts +6 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +171 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-item/gct-form-item.d.ts +23 -4
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.mjs +163 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.d.ts +17 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-item/gct-form-item.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.css +72 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.d.ts +37 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.mjs +48 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.d.ts +15 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.provider.d.ts +5 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +12 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.css +108 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-tab/gct-form-tab.d.ts +12 -2
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +72 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.d.ts +10 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-tab/gct-form-tab.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +12 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.css +74 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +13 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +71 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.d.ts +17 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.d.ts +6 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +15 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.css +82 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-title-group/gct-form-title-group.d.ts +2 -2
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +73 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.d.ts +19 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form-title-group/gct-form-title-group.provider.d.ts +1 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +14 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.d.ts +7 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +16 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form.css +73 -0
- package/es/{widgets → modules/gct-form/widgets}/gct-form/gct-form.d.ts +13 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +147 -0
- package/es/modules/gct-form/widgets/gct-form/index.d.ts +14 -0
- package/es/modules/gct-form/widgets/gct-form/index.mjs +33 -0
- package/es/modules/gct-table/controller/gct-table/gct-table.controller.d.ts +54 -0
- package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +143 -0
- package/es/modules/gct-table/controller/index.d.ts +5 -0
- package/es/modules/gct-table/controller/table-item/table-action-item.controller.d.ts +15 -0
- package/es/modules/gct-table/controller/table-item/table-action-item.controller.mjs +6 -0
- package/es/modules/gct-table/controller/table-item/table-edit-item.controller.d.ts +19 -0
- package/es/modules/gct-table/controller/table-item/table-edit-item.controller.mjs +16 -0
- package/es/modules/gct-table/controller/table-item/table-item.controller.d.ts +21 -0
- package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +26 -0
- package/es/modules/gct-table/controller/table-row/table-row.controller.d.ts +28 -0
- package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +70 -0
- package/es/{editor/gct-form-i18n/gct-form-i18n.d.ts → modules/gct-table/editor/gct-table-date/gct-table-date.d.ts} +19 -8
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +93 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.provider.d.ts +11 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.provider.mjs +5 -0
- package/es/modules/gct-table/editor/gct-table-date/index.d.ts +4 -0
- package/es/modules/gct-table/editor/gct-table-date/index.mjs +52 -0
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.css +86 -0
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.d.ts +34 -0
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.mjs +40 -0
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.provider.d.ts +13 -0
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.provider.mjs +5 -0
- package/es/modules/gct-table/editor/gct-table-span/index.d.ts +4 -0
- package/es/modules/gct-table/editor/gct-table-span/index.mjs +52 -0
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.css +80 -0
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.d.ts +50 -0
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +106 -0
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.provider.d.ts +13 -0
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.provider.mjs +5 -0
- package/es/modules/gct-table/editor/gct-table-text/index.d.ts +4 -0
- package/es/modules/gct-table/editor/gct-table-text/index.mjs +52 -0
- package/es/modules/gct-table/editor/index.mjs +11 -0
- package/es/modules/gct-table/hooks/index.d.ts +1 -0
- package/es/modules/gct-table/hooks/use-ant-table/use-ant-table.d.ts +10 -0
- package/es/modules/gct-table/hooks/use-ant-table/use-ant-table.mjs +85 -0
- package/es/modules/gct-table/index.d.ts +10 -0
- package/es/modules/gct-table/index.mjs +15 -0
- package/es/modules/gct-table/interface/i-controller/index.d.ts +5 -0
- package/es/modules/gct-table/interface/i-controller/table/i-table.controller.d.ts +133 -0
- package/es/modules/gct-table/interface/i-controller/table-item/i-table-action-item.controller.d.ts +21 -0
- package/es/modules/gct-table/interface/i-controller/table-item/i-table-edit-item.controller.d.ts +44 -0
- package/es/modules/gct-table/interface/i-controller/table-item/i-table-item.controller.d.ts +61 -0
- package/es/modules/gct-table/interface/i-controller/table-row/i-table-row.controller.d.ts +110 -0
- package/es/modules/gct-table/interface/i-events/index.d.ts +1 -0
- package/es/modules/gct-table/interface/i-events/table/i-table.event.d.ts +21 -0
- package/es/modules/gct-table/interface/i-provider/i-table-editor-provider/i-table-editor-provider.d.ts +24 -0
- package/es/modules/gct-table/interface/i-provider/index.d.ts +1 -0
- package/es/modules/gct-table/interface/i-state/index.d.ts +4 -0
- package/es/modules/gct-table/interface/i-state/table/i-table.state.d.ts +50 -0
- package/es/modules/gct-table/interface/i-state/table-item/table-edit-item.state.d.ts +47 -0
- package/es/modules/gct-table/interface/i-state/table-item/table-item.state.d.ts +28 -0
- package/es/modules/gct-table/interface/i-state/table-row/table-row.state.d.ts +35 -0
- package/es/modules/gct-table/interface/i-table/i-pagination.d.ts +29 -0
- package/es/modules/gct-table/interface/i-table/i-table-action-item.d.ts +135 -0
- package/es/modules/gct-table/interface/i-table/i-table-edit-item.d.ts +74 -0
- package/es/modules/gct-table/interface/i-table/i-table-item.d.ts +98 -0
- package/es/modules/gct-table/interface/i-table/i-table.d.ts +76 -0
- package/es/modules/gct-table/interface/i-table/index.d.ts +4 -0
- package/es/modules/gct-table/interface/index.d.ts +5 -0
- package/es/modules/gct-table/register/index.d.ts +1 -0
- package/es/modules/gct-table/register/table-editor-register/table-editor-register.d.ts +53 -0
- package/es/modules/gct-table/register/table-editor-register/table-editor-register.mjs +61 -0
- package/es/modules/gct-table/state/index.d.ts +4 -0
- package/es/modules/gct-table/state/table/table.state.d.ts +45 -0
- package/es/modules/gct-table/state/table/table.state.mjs +37 -0
- package/es/modules/gct-table/state/table-item/table-edit-item.state.d.ts +18 -0
- package/es/modules/gct-table/state/table-item/table-edit-item.state.mjs +10 -0
- package/es/modules/gct-table/state/table-item/table-item.state.d.ts +28 -0
- package/es/modules/gct-table/state/table-item/table-item.state.mjs +20 -0
- package/es/modules/gct-table/state/table-row/table-row.state.d.ts +15 -0
- package/es/modules/gct-table/state/table-row/table-row.state.mjs +7 -0
- package/es/modules/gct-table/utils/count-latch/count-latch.d.ts +70 -0
- package/es/modules/gct-table/utils/count-latch/count-latch.mjs +95 -0
- package/es/modules/gct-table/utils/count-latch/result-awaiter.d.ts +17 -0
- package/es/modules/gct-table/utils/index.d.ts +3 -0
- package/es/modules/gct-table/utils/width-install/width-install.d.ts +16 -0
- package/es/modules/gct-table/utils/width-install/width-install.mjs +19 -0
- package/es/modules/gct-table/widgets/gct-table/gct-table.css +124 -0
- package/es/modules/gct-table/widgets/gct-table/gct-table.d.ts +51 -0
- package/es/modules/gct-table/widgets/gct-table/gct-table.mjs +414 -0
- package/es/modules/gct-table/widgets/gct-table/index.mjs +10 -0
- package/es/modules/gct-table/widgets/index.mjs +9 -0
- package/es/modules/global-modal/index.d.ts +1 -0
- package/es/modules/global-modal/index.mjs +1 -0
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +18 -18
- package/es/modules/global-modal/src/components/GlboalModal.d.ts +10 -10
- package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +12 -12
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +1 -1
- package/es/modules/target-loading/src/target-loading.vue.d.ts +1 -1
- package/es/types/index.d.ts +11 -1
- package/package.json +13 -6
- package/dist/index-Bpd2MFJC.js +0 -33732
- package/dist/index-CwxW5OnC.js +0 -98
- package/dist/index-vFQ1naj3.cjs +0 -98
- package/dist/monaco-editor-5rbNTIph.cjs +0 -19
- package/dist/monaco-editor-DHkSqfaq.js +0 -19
- package/dist/monaco-editor-DYUIGpkZ.js +0 -20245
- package/es/components/layout/flex-container/flex-container.d.ts +0 -15
- package/es/components/layout/flex-container/flex-container.mjs +0 -94
- package/es/components/layout/flex-item/flex-item.d.ts +0 -14
- package/es/components/layout/flex-item/flex-item.mjs +0 -55
- package/es/components/layout/grid-container/grid-container.d.ts +0 -13
- package/es/components/layout/grid-container/grid-container.mjs +0 -51
- package/es/editor/gct-form-color/gct-form-color.d.ts +0 -5
- package/es/editor/gct-form-color/index.d.ts +0 -7
- package/es/editor/gct-form-field-select/gct-form-field-select.d.ts +0 -47
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.d.ts +0 -13
- package/es/editor/gct-form-field-select/gct-model-select.vue.d.ts +0 -9
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.d.ts +0 -13
- package/es/editor/gct-form-number/index.d.ts +0 -7
- package/es/editor/gct-form-switch/index.d.ts +0 -7
- package/es/editor/gct-form-text/index.d.ts +0 -7
- package/es/widgets/gct-form/gct-form-tab/index.d.ts +0 -5
- package/es/widgets/gct-form/gct-form-tab-pane/index.d.ts +0 -5
- package/es/widgets/gct-form/gct-form-title-group/index.d.ts +0 -5
- package/es/widgets/gct-form/index.d.ts +0 -5
- /package/es/{editor → modules/gct-form/editor}/gct-form-check-switch/index.d.ts +0 -0
- /package/es/{editor/gct-form-field-select → modules/gct-form/editor/gct-form-color}/index.d.ts +0 -0
- /package/es/{editor/gct-form-i18n → modules/gct-form/editor/gct-form-date}/index.d.ts +0 -0
- /package/es/{editor/gct-form-length-unit → modules/gct-form/editor/gct-form-i18n}/index.d.ts +0 -0
- /package/es/{editor/gct-form-modal-select → modules/gct-form/editor/gct-form-length-unit}/index.d.ts +0 -0
- /package/es/{editor/gct-form-picker → modules/gct-form/editor/gct-form-number}/index.d.ts +0 -0
- /package/es/{editor/gct-form-select → modules/gct-form/editor/gct-form-picker}/index.d.ts +0 -0
- /package/es/{editor/gct-form-span → modules/gct-form/editor/gct-form-select}/index.d.ts +0 -0
- /package/es/{editor/gct-form-textarea → modules/gct-form/editor/gct-form-span}/index.d.ts +0 -0
- /package/es/{editor → modules/gct-form/editor}/index.d.ts +0 -0
- /package/es/{widgets → modules/gct-form/widgets}/gct-edit-form/index.d.ts +0 -0
- /package/es/{widgets/gct-form/gct-form-collapse-pane → modules/gct-table/editor}/index.d.ts +0 -0
- /package/es/{widgets/gct-form/gct-form-collapse → modules/gct-table/widgets/gct-table}/index.d.ts +0 -0
- /package/es/{widgets/gct-form/gct-form-group → modules/gct-table/widgets}/index.d.ts +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-form-select-group {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
}
|
|
69
|
+
.gct-form-select-group__group-header {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
width: 100%;
|
|
73
|
+
padding: 4px 8px;
|
|
74
|
+
}
|
|
75
|
+
.gct-form-select-group__group-header--clickable {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
transition: background-color 0.2s;
|
|
78
|
+
}
|
|
79
|
+
.gct-form-select-group__group-header--clickable:hover {
|
|
80
|
+
background-color: var(--gct-color-info-light-9);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.gct-form-select-group__arrow {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
width: 16px;
|
|
88
|
+
height: 16px;
|
|
89
|
+
margin-right: 4px;
|
|
90
|
+
transition: transform 0.2s;
|
|
91
|
+
}
|
|
92
|
+
.gct-form-select-group__arrow i {
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
color: var(--gct-color-regular);
|
|
95
|
+
}
|
|
96
|
+
.gct-form-select-group__arrow--collapsed {
|
|
97
|
+
transform: rotate(-90deg);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.gct-form-select-group__title {
|
|
101
|
+
flex: 1;
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.gct-form-select-group-item-option {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
109
|
+
.gct-form-select-group-item-option__item-icon {
|
|
110
|
+
color: var(--gct-color-primary);
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
margin-right: var(--gct-padding-2);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.gct-form-select-group-item-option__item-label {
|
|
116
|
+
flex-grow: 1;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
text-overflow: ellipsis;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { IFormItemController, ISelectEditor } from '
|
|
3
|
-
|
|
2
|
+
import { IFormItemController, ISelectEditor } from '../../interface';
|
|
3
|
+
import { IDictionaryItem } from '@gct-paas/core';
|
|
4
|
+
export declare const GctFormSelectGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
5
|
c: {
|
|
5
6
|
type: PropType<IFormItemController>;
|
|
6
7
|
required: true;
|
|
@@ -13,17 +14,20 @@ export declare const GctFormModalSelect: import('vue').DefineComponent<import('v
|
|
|
13
14
|
type: StringConstructor;
|
|
14
15
|
default: string;
|
|
15
16
|
};
|
|
17
|
+
size: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
16
20
|
}>, {
|
|
17
21
|
ns: import('@gct-paas/core').Namespace;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
selectRef: import('vue').Ref<IObject | null, IObject | null>;
|
|
23
|
+
searchValue: import('vue').Ref<string, string>;
|
|
24
|
+
open: import('vue').Ref<boolean, boolean>;
|
|
25
|
+
rootRef: import('vue').Ref<any, any>;
|
|
26
|
+
val: import('vue').WritableComputedRef<any, string>;
|
|
27
|
+
options: import('vue').ComputedRef<IDictionaryItem[]>;
|
|
28
|
+
loadOptions: () => Promise<IDictionaryItem[]>;
|
|
29
|
+
toggleGroupCollapse: (groupValue: string) => void;
|
|
30
|
+
isGroupCollapsed: (groupValue: string) => boolean;
|
|
27
31
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:value"[], "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
32
|
c: {
|
|
29
33
|
type: PropType<IFormItemController>;
|
|
@@ -37,9 +41,12 @@ export declare const GctFormModalSelect: import('vue').DefineComponent<import('v
|
|
|
37
41
|
type: StringConstructor;
|
|
38
42
|
default: string;
|
|
39
43
|
};
|
|
44
|
+
size: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
};
|
|
40
47
|
}>> & Readonly<{
|
|
41
48
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
49
|
}>, {
|
|
43
50
|
value: string;
|
|
44
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
|
-
export default
|
|
52
|
+
export default GctFormSelectGroup;
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, inject, ref, computed, onUnmounted, isVNode } from 'vue';
|
|
2
|
+
import './gct-form-group-select.css';/* empty css */
|
|
3
|
+
import { useNamespace } from '@gct-paas/core';
|
|
4
|
+
|
|
5
|
+
function _isSlot(s) {
|
|
6
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
7
|
+
}
|
|
8
|
+
const GctFormSelectGroup = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: 'GctFormSelectGroup',
|
|
10
|
+
props: {
|
|
11
|
+
c: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
model: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
value: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ''
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
type: String
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
emits: ['update:value'],
|
|
28
|
+
setup(props, {
|
|
29
|
+
emit
|
|
30
|
+
}) {
|
|
31
|
+
const ns = useNamespace('form-select-group');
|
|
32
|
+
const formC = inject('formController');
|
|
33
|
+
const searchValue = ref('');
|
|
34
|
+
const selectRef = ref(null);
|
|
35
|
+
const open = ref(false);
|
|
36
|
+
|
|
37
|
+
// 分组收缩状态管理,存在里边的值表示该分组已收起
|
|
38
|
+
const collapsedGroups = ref(new Set());
|
|
39
|
+
const nameVal = computed({
|
|
40
|
+
get() {
|
|
41
|
+
if (props.model.nameField) {
|
|
42
|
+
return formC.item[props.model.nameField].value;
|
|
43
|
+
}
|
|
44
|
+
return '';
|
|
45
|
+
},
|
|
46
|
+
set(v) {
|
|
47
|
+
if (props.model.nameField) {
|
|
48
|
+
return formC.item[props.model.nameField].editorValue = v;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
function findParentByClassName(el, className) {
|
|
53
|
+
if (el.className.indexOf(className) > -1) {
|
|
54
|
+
return el;
|
|
55
|
+
}
|
|
56
|
+
if (el.parentElement) {
|
|
57
|
+
return findParentByClassName(el.parentElement, className);
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
function onWheel(e) {
|
|
62
|
+
const el = findParentByClassName(e.target, 'ant-select-dropdown');
|
|
63
|
+
if (el) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
selectRef.value?.blur();
|
|
67
|
+
}
|
|
68
|
+
window.addEventListener('wheel', onWheel);
|
|
69
|
+
const rootRef = ref();
|
|
70
|
+
const val = computed({
|
|
71
|
+
get: () => {
|
|
72
|
+
const opt = props.c.state.options.find(_ => {
|
|
73
|
+
return _.value === props.value;
|
|
74
|
+
});
|
|
75
|
+
if (!opt && nameVal.value) {
|
|
76
|
+
return nameVal.value;
|
|
77
|
+
}
|
|
78
|
+
return props.value || undefined;
|
|
79
|
+
},
|
|
80
|
+
set: newVal => {
|
|
81
|
+
if (!newVal) {
|
|
82
|
+
emit('update:value', undefined);
|
|
83
|
+
nameVal.value = '';
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (typeof newVal === 'string') {
|
|
87
|
+
newVal = newVal.trim();
|
|
88
|
+
}
|
|
89
|
+
emit('update:value', newVal);
|
|
90
|
+
let item = null;
|
|
91
|
+
options.value.find(_ => {
|
|
92
|
+
if (_.options) {
|
|
93
|
+
item = _.options.find(item => {
|
|
94
|
+
return item.value == newVal;
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (item) {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
return false;
|
|
101
|
+
});
|
|
102
|
+
if (item) {
|
|
103
|
+
nameVal.value = item.label;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const options = computed(() => {
|
|
108
|
+
if (props.c.state.options && props.c.state.options.length > 0) {
|
|
109
|
+
return props.c.state.options;
|
|
110
|
+
}
|
|
111
|
+
return [];
|
|
112
|
+
});
|
|
113
|
+
const loadOptions = async () => {
|
|
114
|
+
return props.c.loadDictionary();
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// 初始化有值时直接加载选项
|
|
118
|
+
if (val.value != null) {
|
|
119
|
+
loadOptions();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// 切换分组收缩状态
|
|
123
|
+
const toggleGroupCollapse = groupValue => {
|
|
124
|
+
if (!props.model.groupCollapsible) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if (collapsedGroups.value.has(groupValue)) {
|
|
128
|
+
collapsedGroups.value.delete(groupValue);
|
|
129
|
+
} else {
|
|
130
|
+
collapsedGroups.value.add(groupValue);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// 判断分组是否收缩
|
|
135
|
+
const isGroupCollapsed = groupValue => {
|
|
136
|
+
if (props.model.groupCollapsible !== true) {
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
// 存在组里则收起
|
|
140
|
+
return collapsedGroups.value.has(groupValue) ? false : true;
|
|
141
|
+
};
|
|
142
|
+
onUnmounted(() => {
|
|
143
|
+
window.removeEventListener('wheel', onWheel);
|
|
144
|
+
});
|
|
145
|
+
return {
|
|
146
|
+
ns,
|
|
147
|
+
selectRef,
|
|
148
|
+
searchValue,
|
|
149
|
+
open,
|
|
150
|
+
rootRef,
|
|
151
|
+
val,
|
|
152
|
+
options,
|
|
153
|
+
loadOptions,
|
|
154
|
+
toggleGroupCollapse,
|
|
155
|
+
isGroupCollapsed
|
|
156
|
+
};
|
|
157
|
+
},
|
|
158
|
+
render() {
|
|
159
|
+
let _slot2;
|
|
160
|
+
return createVNode("div", {
|
|
161
|
+
"ref": "rootRef",
|
|
162
|
+
"class": this.ns.b()
|
|
163
|
+
}, [createVNode(resolveComponent("a-select"), {
|
|
164
|
+
"ref": "selectRef",
|
|
165
|
+
"open": this.open,
|
|
166
|
+
"value": this.val,
|
|
167
|
+
"onUpdate:value": $event => this.val = $event,
|
|
168
|
+
"allowClear": true,
|
|
169
|
+
"disabled": this.c.state.disabled,
|
|
170
|
+
"size": this.size,
|
|
171
|
+
"placeholder": this.model.placeholder,
|
|
172
|
+
"onDropdownVisibleChange": this.loadOptions,
|
|
173
|
+
"show-search": true,
|
|
174
|
+
"filter-option": () => {
|
|
175
|
+
return true; // 这里不需要过滤选项,搜索功能在下拉框内实现
|
|
176
|
+
},
|
|
177
|
+
"searchValue": this.searchValue,
|
|
178
|
+
"onSearch": val => this.searchValue = val?.trim(),
|
|
179
|
+
"onFocus": () => this.open = true,
|
|
180
|
+
"onBlur": () => this.open = false,
|
|
181
|
+
"onChange": () => this.open = false
|
|
182
|
+
}, _isSlot(_slot2 = this.options.map(option => {
|
|
183
|
+
let _slot;
|
|
184
|
+
const labelGroup = option.label != null ? option.label : ' ';
|
|
185
|
+
const groupKey = String(option.value);
|
|
186
|
+
const isCollapsed = this.isGroupCollapsed(groupKey);
|
|
187
|
+
const items = (!isCollapsed ? [] : option.options || []).filter(item => {
|
|
188
|
+
if (this.searchValue) {
|
|
189
|
+
return item.label.toLowerCase().indexOf(this.searchValue.toLowerCase()) >= 0;
|
|
190
|
+
}
|
|
191
|
+
return true;
|
|
192
|
+
});
|
|
193
|
+
if (items.length === 0) {
|
|
194
|
+
return null; // 如果没有子项,则不渲染该分组
|
|
195
|
+
}
|
|
196
|
+
return createVNode(resolveComponent("a-select-opt-group"), {
|
|
197
|
+
"key": option.value,
|
|
198
|
+
"label": createVNode("div", {
|
|
199
|
+
"class": [this.ns.b('group-header'), this.model.groupCollapsible ? this.ns.b('group-header--clickable') : ''],
|
|
200
|
+
"onClick": () => this.toggleGroupCollapse(groupKey)
|
|
201
|
+
}, [this.model.groupCollapsible && createVNode("span", {
|
|
202
|
+
"class": [this.ns.be('group-header', 'arrow'), isCollapsed ? this.ns.bem('group-header', 'arrow', 'collapsed') : '']
|
|
203
|
+
}, [createVNode("i", {
|
|
204
|
+
"class": ['iconfont', isCollapsed != true ? 'icon-right' : 'icon-Down']
|
|
205
|
+
}, null)]), createVNode("span", {
|
|
206
|
+
"class": this.ns.be('group-header', 'title')
|
|
207
|
+
}, [labelGroup])])
|
|
208
|
+
}, _isSlot(_slot = items.map(item => {
|
|
209
|
+
return createVNode(resolveComponent("a-select-option"), {
|
|
210
|
+
"class": this.ns.b('item-option'),
|
|
211
|
+
"key": item.value,
|
|
212
|
+
"value": item.value
|
|
213
|
+
}, {
|
|
214
|
+
default: () => [item.icon ? createVNode("span", {
|
|
215
|
+
"class": this.ns.be('item-option', 'item-icon')
|
|
216
|
+
}, [createVNode("i", {
|
|
217
|
+
"class": `iconfont ${item.icon}`
|
|
218
|
+
}, null)]) : '', createVNode("span", {
|
|
219
|
+
"class": this.ns.be('item-option', 'item-label')
|
|
220
|
+
}, [item.label])]
|
|
221
|
+
});
|
|
222
|
+
})) ? _slot : {
|
|
223
|
+
default: () => [_slot]
|
|
224
|
+
});
|
|
225
|
+
})) ? _slot2 : {
|
|
226
|
+
default: () => [_slot2]
|
|
227
|
+
})]);
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
export { GctFormSelectGroup };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EditorType } from '../../constants/editor-type/editor-type.mjs';
|
|
2
|
+
import { widthEditorInstall } from '../../utils/width-install/width-install.mjs';
|
|
3
|
+
import { GctFormSelectGroup } from './gct-form-group-select.mjs';
|
|
4
|
+
|
|
5
|
+
class provider {
|
|
6
|
+
component = "gct-form-select-group";
|
|
7
|
+
}
|
|
8
|
+
const GctFromGroupSelect = widthEditorInstall(
|
|
9
|
+
EditorType.SELECT_GROUP,
|
|
10
|
+
() => new provider(),
|
|
11
|
+
GctFormSelectGroup
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
export { GctFromGroupSelect as default, provider };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { II18nEditor } from '../../interface';
|
|
2
|
+
export declare const GctFormI18n: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
context: {
|
|
4
|
+
type: import('vue').PropType<IContext>;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
type: import('vue').PropType<string>;
|
|
9
|
+
};
|
|
10
|
+
model: {
|
|
11
|
+
type: import('vue').PropType<II18nEditor>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
c: {
|
|
15
|
+
type: import('vue').PropType<import('../..').IFormItemController>;
|
|
16
|
+
required: boolean;
|
|
17
|
+
};
|
|
18
|
+
itemModel: {
|
|
19
|
+
type: import('vue').PropType<import('../..').IFormEditItem>;
|
|
20
|
+
};
|
|
21
|
+
data: {
|
|
22
|
+
type: ObjectConstructor;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
keepalive: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
visible: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: import('vue').PropType<"small" | "medium" | "large">;
|
|
42
|
+
};
|
|
43
|
+
count: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
isEmptyText: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
}>, {
|
|
52
|
+
ns: import('@gct-paas/core').Namespace;
|
|
53
|
+
val: import('vue').WritableComputedRef<string | undefined, string>;
|
|
54
|
+
i18nConfigValue: import('vue').WritableComputedRef<"" | {
|
|
55
|
+
i18nKey: any;
|
|
56
|
+
}, "" | {
|
|
57
|
+
i18nKey: any;
|
|
58
|
+
}>;
|
|
59
|
+
onBlur: () => void;
|
|
60
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "update:value")[], "blur" | "update:value", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
61
|
+
context: {
|
|
62
|
+
type: import('vue').PropType<IContext>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
value: {
|
|
66
|
+
type: import('vue').PropType<string>;
|
|
67
|
+
};
|
|
68
|
+
model: {
|
|
69
|
+
type: import('vue').PropType<II18nEditor>;
|
|
70
|
+
required: boolean;
|
|
71
|
+
};
|
|
72
|
+
c: {
|
|
73
|
+
type: import('vue').PropType<import('../..').IFormItemController>;
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
itemModel: {
|
|
77
|
+
type: import('vue').PropType<import('../..').IFormEditItem>;
|
|
78
|
+
};
|
|
79
|
+
data: {
|
|
80
|
+
type: ObjectConstructor;
|
|
81
|
+
};
|
|
82
|
+
disabled: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
readonly: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
keepalive: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
visible: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
size: {
|
|
99
|
+
type: import('vue').PropType<"small" | "medium" | "large">;
|
|
100
|
+
};
|
|
101
|
+
count: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
default: number;
|
|
104
|
+
};
|
|
105
|
+
isEmptyText: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
}>> & Readonly<{
|
|
110
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
}>, {
|
|
113
|
+
visible: boolean;
|
|
114
|
+
keepalive: boolean;
|
|
115
|
+
count: number;
|
|
116
|
+
disabled: boolean;
|
|
117
|
+
context: IContext;
|
|
118
|
+
readonly: boolean;
|
|
119
|
+
isEmptyText: boolean;
|
|
120
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
121
|
+
export default GctFormI18n;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, mergeProps, ref, computed } from 'vue';
|
|
2
|
+
import { useNamespace, modelLoader } from '@gct-paas/core';
|
|
3
|
+
import { gctFormItemEditorProps } from '../../props/gct-form-item/gct-form-item.props.mjs';
|
|
4
|
+
import { useForm } from '../../hooks/use-form/use-form.mjs';
|
|
5
|
+
|
|
6
|
+
const GctFormI18n = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: 'GctFormI18n',
|
|
8
|
+
props: gctFormItemEditorProps(),
|
|
9
|
+
emits: ['update:value', 'blur'],
|
|
10
|
+
setup(props, {
|
|
11
|
+
emit
|
|
12
|
+
}) {
|
|
13
|
+
const ns = useNamespace('form-i18n');
|
|
14
|
+
const form = useForm();
|
|
15
|
+
const field = ref({});
|
|
16
|
+
// 数据修改
|
|
17
|
+
const hasChange = ref(false);
|
|
18
|
+
const i18nConfig = form.item[props.model?.cfgKey || 'i18nConfig'];
|
|
19
|
+
if (!i18nConfig) {
|
|
20
|
+
console.warn(`i18nConfig not found in form item, please ensure that the model has a valid cfgKey or i18nConfig is defined in the form.`);
|
|
21
|
+
}
|
|
22
|
+
const fieldKey = computed(() => {
|
|
23
|
+
return props.data?.[props.model?.fieldKey || 'fieldKey'] || null;
|
|
24
|
+
});
|
|
25
|
+
async function loadField() {
|
|
26
|
+
const fieldMeta = await modelLoader.loadField(props.data?.modelKey || props.context.modelKey, fieldKey.value);
|
|
27
|
+
if (fieldMeta) {
|
|
28
|
+
field.value = fieldMeta;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (fieldKey.value) {
|
|
32
|
+
loadField();
|
|
33
|
+
}
|
|
34
|
+
const val = computed({
|
|
35
|
+
get: () => {
|
|
36
|
+
if (props.value) {
|
|
37
|
+
return props.value;
|
|
38
|
+
}
|
|
39
|
+
if (hasChange.value === true) {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
return field.value.name;
|
|
43
|
+
},
|
|
44
|
+
set: newVal => {
|
|
45
|
+
if (typeof newVal === 'string') {
|
|
46
|
+
newVal = newVal.trim();
|
|
47
|
+
}
|
|
48
|
+
hasChange.value = true;
|
|
49
|
+
if (typeof newVal != 'object' && props.value == newVal) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
// 值被清空时,同时清空 i18nConfig 配置
|
|
53
|
+
if (!newVal) {
|
|
54
|
+
i18nConfigValue.value = '';
|
|
55
|
+
}
|
|
56
|
+
emit('update:value', newVal);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const i18nConfigValue = computed({
|
|
60
|
+
get: () => {
|
|
61
|
+
if (i18nConfig) {
|
|
62
|
+
return {
|
|
63
|
+
i18nKey: i18nConfig.value
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return '';
|
|
67
|
+
},
|
|
68
|
+
set: val => {
|
|
69
|
+
if (!i18nConfig) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
const json = JSON.parse(val);
|
|
74
|
+
i18nConfig.value = json.i18nKey;
|
|
75
|
+
} catch (error) {
|
|
76
|
+
console.error(error);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
function onBlur() {
|
|
81
|
+
hasChange.value = false;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
ns,
|
|
85
|
+
val,
|
|
86
|
+
i18nConfigValue,
|
|
87
|
+
onBlur
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
render() {
|
|
91
|
+
return createVNode(resolveComponent("i18n-select-input"), mergeProps({
|
|
92
|
+
"class": [this.ns.b(), this.ns.m(this.size)],
|
|
93
|
+
"i18nText": this.val,
|
|
94
|
+
"onUpdate:i18nText": $event => this.val = $event,
|
|
95
|
+
"i18nConfig": this.i18nConfigValue,
|
|
96
|
+
"onUpdate:i18nConfig": $event => this.i18nConfigValue = $event,
|
|
97
|
+
"placeholderText": this.model.placeholder || this.$t('sys.inputText'),
|
|
98
|
+
"attr": "i18nKey",
|
|
99
|
+
"btnHeight": this.size === 'small' ? '26px' : undefined,
|
|
100
|
+
"inputExtraProps": {
|
|
101
|
+
showCount: true,
|
|
102
|
+
maxlength: this.model.max || 32,
|
|
103
|
+
disabled: this.c.state.disabled
|
|
104
|
+
},
|
|
105
|
+
"onBlur": e => {
|
|
106
|
+
this.onBlur();
|
|
107
|
+
this.$emit('blur', e);
|
|
108
|
+
},
|
|
109
|
+
"size": this.size
|
|
110
|
+
}, this.model?.props || {}), null);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
export { GctFormI18n };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GctFormI18nProvider } from './gct-form-i18n.provider.mjs';
|
|
2
|
+
import { GctFormI18n as GctFormI18n$1 } from './gct-form-i18n.mjs';
|
|
3
|
+
import { widthEditorInstall } from '../../utils/width-install/width-install.mjs';
|
|
4
|
+
import { EditorType } from '../../constants/editor-type/editor-type.mjs';
|
|
5
|
+
|
|
6
|
+
const GctFormI18n = widthEditorInstall(
|
|
7
|
+
EditorType.I18N,
|
|
8
|
+
() => new GctFormI18nProvider(),
|
|
9
|
+
GctFormI18n$1
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export { GctFormI18n as default };
|