@gct-paas/core-web 0.1.4-dev.11 → 0.1.4-dev.13
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/de_DE-Dlmr1Wso.js +152 -0
- package/dist/en_US-B9GNh9s3.js +173 -0
- package/dist/es_ES-CdOh6_BZ.js +159 -0
- package/dist/fr_FR-DA5AJaJ_.js +168 -0
- package/dist/index.min.css +2 -1
- package/dist/ja_JP-DE6fp7p7.js +140 -0
- package/dist/loader.esm.min.js +9583 -0
- package/dist/monaco-editor-Di2Ob0f2.js +279 -0
- package/dist/objectSpread2-fLnUNEWu.js +62 -0
- package/dist/pt_PT-DqWIQ8Sv.js +134 -0
- package/dist/ru_RU-B7eejpuq.js +165 -0
- package/dist/tr_TR-Cp-TWGG5.js +167 -0
- package/dist/useMonacoEditor-B4gp3RiK.js +2788 -0
- package/dist/vi_VN-BWekEft9.js +85 -0
- package/dist/zh_CN-CaadhslE.js +174 -0
- package/dist/zh_TW-DHMPuQGm.js +169 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
- package/es/components/app-modal/app-modal-component.mjs +102 -133
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +161 -232
- package/es/components/assets-svg-icon/request.mjs +60 -43
- package/es/components/assets-svg-icon/utils.mjs +21 -19
- package/es/components/assets-svg-icon/validate.mjs +27 -41
- package/es/components/base-button/base-button.vue.mjs +7 -7
- package/es/components/base-button/base-button.vue_vue_type_script_setup_true_name_BaseButton_lang.mjs +181 -0
- package/es/components/basic-button/basic-button.vue.mjs +7 -7
- package/es/components/basic-button/basic-button.vue_vue_type_script_setup_true_name_BasicButton_lang.mjs +148 -0
- package/es/components/code-editor/code-editor.mjs +59 -63
- package/es/components/copy-module-key/copy-module-key.vue.mjs +7 -7
- package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +92 -0
- package/es/components/double-input/double-input.vue.mjs +5 -158
- package/es/components/double-input/double-input.vue_vue_type_script_setup_true_lang.mjs +121 -0
- package/es/components/field-upload/index.d.ts +2 -0
- package/es/components/field-upload/index.mjs +7 -0
- package/es/components/field-upload/src/FieldUpload.vue.d.ts +37 -0
- package/es/components/field-upload/src/FieldUpload.vue.mjs +5 -0
- package/es/components/field-upload/src/FieldUpload.vue_vue_type_script_setup_true_name_FieldUpload_lang.mjs +111 -0
- package/es/components/field-upload/src/components/base-upload.vue.d.ts +21 -0
- package/es/components/field-upload/src/components/base-upload.vue.mjs +7 -0
- package/es/components/field-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +227 -0
- package/es/components/field-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_f53b6ac6_lang.css +76 -0
- package/es/components/field-upload/src/components/file-list.vue.d.ts +17 -0
- package/es/components/field-upload/src/components/file-list.vue.mjs +7 -0
- package/es/components/field-upload/src/components/file-list.vue_vue_type_script_setup_true_name_fileList_lang.mjs +129 -0
- package/es/components/field-upload/src/components/file-list.vue_vue_type_style_index_0_scoped_3918aad0_lang.css +129 -0
- package/es/components/field-upload/src/components/upload-design.vue.d.ts +5 -0
- package/es/components/field-upload/src/components/upload-design.vue.mjs +7 -0
- package/es/components/field-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +43 -0
- package/es/components/field-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_1e5189c1_lang.css +43 -0
- package/es/components/field-upload/src/hooks/hooks.d.ts +4 -0
- package/es/components/field-upload/src/hooks/hooks.mjs +47 -0
- package/es/components/field-upload/src/types/index.d.ts +42 -0
- package/es/components/field-upload/src/types/index.mjs +24 -0
- package/es/components/icon-next/hooks/useIconAsset.mjs +32 -44
- package/es/components/icon-next/hooks/useIconPark.mjs +48 -48
- package/es/components/icon-next/hooks/useIconPlatform.mjs +37 -42
- package/es/components/icon-next/index.mjs +3 -0
- package/es/components/icon-next/src/IconNext.vue.mjs +7 -0
- package/es/components/icon-next/src/IconNext.vue_vue_type_script_setup_true_name_IconNext_lang.mjs +113 -0
- package/es/components/icon-next/src/IconNextPicker.vue.mjs +6 -0
- package/es/components/icon-next/src/IconNextPicker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +379 -0
- package/es/components/icon-next/types/index.mjs +10 -9
- package/es/components/image-upload/index.d.ts +2 -0
- package/es/components/image-upload/index.mjs +7 -0
- package/es/components/image-upload/src/ImageUpload.vue.d.ts +32 -0
- package/es/components/image-upload/src/ImageUpload.vue.mjs +5 -0
- package/es/components/image-upload/src/ImageUpload.vue_vue_type_script_setup_true_name_ImageUpload_lang.mjs +74 -0
- package/es/components/image-upload/src/components/base-upload.vue.d.ts +24 -0
- package/es/components/image-upload/src/components/base-upload.vue.mjs +8 -0
- package/es/components/image-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +209 -0
- package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_3248e630_lang.css +73 -0
- package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_1_lang.css +3 -0
- package/es/components/image-upload/src/components/upload-design.vue.d.ts +6 -0
- package/es/components/image-upload/src/components/upload-design.vue.mjs +7 -0
- package/es/components/image-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +33 -0
- package/es/components/image-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_575d3a1a_lang.css +33 -0
- package/es/components/image-upload/src/hooks/hooks.d.ts +2 -0
- package/es/components/image-upload/src/types/index.d.ts +34 -0
- package/es/components/image-upload/src/types/index.mjs +8 -0
- package/es/components/index.d.ts +4 -1
- package/es/components/index.mjs +25 -34
- package/es/components/layout/view-container/view-container.mjs +24 -35
- package/es/components/svg-icon/svg-icon.vue.mjs +6 -50
- package/es/components/svg-icon/svg-icon.vue_vue_type_script_setup_true_name_SvgIcon_lang.mjs +52 -0
- package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.css +103 -0
- package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.d.ts +44 -0
- package/es/components/vue3-grid-dnd-item/vue3-grid-dnd-item.mjs +122 -0
- package/es/components/wujie-container/wujie-container.mjs +58 -81
- package/es/create-app-vue.mjs +27 -19
- package/es/directives/drag-resize.mjs +38 -39
- package/es/directives/ellipsis-title.d.ts +7 -0
- package/es/directives/ellipsis-title.mjs +21 -0
- package/es/directives/index.mjs +14 -6
- package/es/directives/target-loading.mjs +28 -36
- package/es/hooks/index.mjs +4 -0
- package/es/hooks/useDesign.mjs +7 -8
- package/es/hooks/useDragLine.mjs +66 -75
- package/es/hooks/useLocale.d.ts +365 -1
- package/es/hooks/useLocale.mjs +23 -28
- package/es/hooks/useTheme.mjs +13 -17
- package/es/index.d.ts +1 -0
- package/es/index.mjs +96 -137
- package/es/loader.d.ts +1 -0
- package/es/modules/Cropper/hooks/useFile.mjs +21 -0
- package/es/modules/Cropper/index.d.ts +1 -0
- package/es/modules/Cropper/index.mjs +12 -0
- package/es/modules/Cropper/src/CopperFreeModal.vue.mjs +7 -0
- package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +299 -0
- package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_style_index_0_scoped_28afc2ab_lang.css +48 -0
- package/es/modules/Cropper/src/CopperModal.vue.mjs +7 -0
- package/es/modules/Cropper/src/CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +283 -0
- package/es/modules/Cropper/src/CopperModal.vue_vue_type_style_index_0_scoped_f42f8311_lang.css +71 -0
- package/es/modules/Cropper/src/Cropper.vue.d.ts +1 -1
- package/es/modules/Cropper/src/Cropper.vue.mjs +25 -0
- package/es/modules/Cropper/src/Cropper.vue_vue_type_script_lang.mjs +173 -0
- package/es/modules/Cropper/src/Cropper.vue_vue_type_style_index_0_lang.css +4 -0
- package/es/modules/Cropper/src/CropperAvatar.vue.mjs +7 -0
- package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +116 -0
- package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_style_index_0_scoped_b5d65cd4_lang.css +39 -0
- package/es/modules/Cropper/src/CropperFree.vue.mjs +7 -0
- package/es/modules/Cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +165 -0
- package/es/modules/Cropper/src/CropperFree.vue_vue_type_style_index_0_scoped_3cc5e19b_lang.css +83 -0
- package/es/modules/code-editor/index.d.ts +3 -3
- package/es/modules/code-editor/index.mjs +6 -7
- package/es/modules/code-editor/monaco-editor.vue.d.ts +1 -1
- package/es/modules/code-editor/monaco-editor.vue.mjs +7 -7
- package/es/modules/code-editor/monaco-editor.vue_vue_type_script_setup_true_name_code-editor_lang.mjs +399 -0
- package/es/modules/code-editor/{monaco-editor.css → monaco-editor.vue_vue_type_style_index_0_scoped_ccf22884_lang.css} +9 -9
- package/es/modules/code-editor/useEditorConsole.mjs +146 -187
- package/es/modules/code-editor/useMonacoEditor.mjs +24 -23
- package/es/modules/color-picker/index.mjs +1 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -8
- package/es/modules/color-picker/src/ColorPicker.vue_vue_type_script_setup_true_name_ColorPicker_lang.mjs +482 -0
- package/es/modules/formula-editor/constants/index.mjs +8 -6
- package/es/modules/formula-editor/formula-editor.mjs +40 -59
- package/es/modules/formula-editor/index.mjs +2 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +158 -193
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +81 -95
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +178 -237
- package/es/modules/gct-dnd/constants/index.mjs +10 -18
- package/es/modules/gct-dnd/index.mjs +4 -0
- package/es/modules/gct-form/components/flex-container/flex-container.css +67 -0
- package/es/modules/gct-form/components/flex-container/flex-container.d.ts +14 -0
- package/es/modules/gct-form/components/flex-container/flex-container.mjs +61 -0
- package/es/modules/gct-form/components/flex-item/flex-item.d.ts +13 -0
- package/es/modules/gct-form/components/flex-item/flex-item.mjs +37 -0
- package/es/modules/gct-form/components/grid-container/grid-container.d.ts +10 -0
- package/es/modules/gct-form/components/grid-container/grid-container.mjs +36 -0
- package/es/modules/gct-form/components/index.d.ts +3 -0
- package/es/modules/gct-form/components/index.mjs +3 -0
- package/es/modules/gct-form/constants/editor-register/editor-register.mjs +17 -5
- package/es/modules/gct-form/constants/editor-type/editor-type.mjs +133 -34
- package/es/modules/gct-form/constants/index.mjs +5 -2
- package/es/modules/gct-form/controller/edit-form/edit-form.controller.d.ts +1 -16
- package/es/modules/gct-form/controller/edit-form/edit-form.controller.mjs +48 -69
- package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +18 -22
- package/es/modules/gct-form/controller/form-collapse/form-collapse.controller.mjs +20 -10
- package/es/modules/gct-form/controller/form-collapse-pane/form-collapse-pane.controller.mjs +20 -10
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +84 -89
- package/es/modules/gct-form/controller/form-group/form-group.controller.mjs +20 -10
- package/es/modules/gct-form/controller/form-item/form-item.controller.mjs +35 -36
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +61 -42
- package/es/modules/gct-form/controller/form-item-hidden/form-item-hidden.controller.mjs +16 -6
- package/es/modules/gct-form/controller/form-line/form-line.controller.mjs +20 -10
- package/es/modules/gct-form/controller/form-tab/form-tab.controller.mjs +20 -10
- package/es/modules/gct-form/controller/form-tab-pane/form-tab-pane.controller.mjs +20 -10
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +198 -221
- package/es/modules/gct-form/controller/index.mjs +13 -0
- package/es/modules/gct-form/editor/gct-form-action/gct-form-action.mjs +44 -49
- package/es/modules/gct-form/editor/gct-form-action/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.mjs +54 -55
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-check-switch/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-checkbox/gct-form-checkbox.mjs +100 -125
- package/es/modules/gct-form/editor/gct-form-checkbox/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +36 -41
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-color/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-date/gct-form-date.mjs +71 -78
- package/es/modules/gct-form/editor/gct-form-date/gct-form-date.provider.mjs +12 -4
- package/es/modules/gct-form/editor/gct-form-date/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-date-format-select/gct-form-date-format-select.mjs +102 -107
- package/es/modules/gct-form/editor/gct-form-date-format-select/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-empty/gct-form-empty.mjs +13 -15
- package/es/modules/gct-form/editor/gct-form-empty/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-formula/gct-form-formula.mjs +66 -66
- package/es/modules/gct-form/editor/gct-form-formula/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-group-select/gct-form-group-select.mjs +159 -227
- package/es/modules/gct-form/editor/gct-form-group-select/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.mjs +87 -113
- package/es/modules/gct-form/editor/gct-form-i18n/gct-form-i18n.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-i18n/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-icon-select/gct-form-icon-select.mjs +61 -70
- package/es/modules/gct-form/editor/gct-form-icon-select/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-info/gct-form-info.mjs +38 -49
- package/es/modules/gct-form/editor/gct-form-info/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.mjs +36 -41
- package/es/modules/gct-form/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-length-unit/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-model-select/gct-form-model-select.mjs +141 -170
- package/es/modules/gct-form/editor/gct-form-model-select/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-multiple-choice/gct-form-multiple-choice.mjs +60 -66
- package/es/modules/gct-form/editor/gct-form-multiple-choice/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-number/gct-form-number.mjs +41 -42
- package/es/modules/gct-form/editor/gct-form-number/gct-form-number.provider.mjs +5 -4
- package/es/modules/gct-form/editor/gct-form-number/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.mjs +89 -111
- package/es/modules/gct-form/editor/gct-form-picker/gct-form-picker.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-picker/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-pixel-config/gct-form-pixel-config.mjs +60 -66
- package/es/modules/gct-form/editor/gct-form-pixel-config/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +76 -91
- package/es/modules/gct-form/editor/gct-form-radio/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +109 -126
- package/es/modules/gct-form/editor/gct-form-select/gct-form-select.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-select/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-span/gct-form-span.mjs +67 -97
- package/es/modules/gct-form/editor/gct-form-span/gct-form-span.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-span/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.mjs +32 -37
- package/es/modules/gct-form/editor/gct-form-switch/gct-form-switch.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-switch/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-table/gct-form-table.mjs +29 -30
- package/es/modules/gct-form/editor/gct-form-table/index.mjs +10 -14
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +51 -54
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.provider.mjs +14 -4
- package/es/modules/gct-form/editor/gct-form-text/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.mjs +43 -44
- package/es/modules/gct-form/editor/gct-form-textarea/gct-form-textarea.provider.mjs +5 -4
- package/es/modules/gct-form/editor/gct-form-textarea/index.mjs +8 -12
- package/es/modules/gct-form/editor/gct-select-form-table/gct-select-form-table.mjs +59 -76
- package/es/modules/gct-form/editor/gct-select-form-table/index.mjs +10 -14
- package/es/modules/gct-form/editor/index.mjs +32 -34
- package/es/modules/gct-form/hooks/index.mjs +2 -0
- package/es/modules/gct-form/hooks/use-form/use-form.mjs +12 -5
- package/es/modules/gct-form/hooks/use-gct-form-value/use-gct-form-value.mjs +80 -84
- package/es/modules/gct-form/index.mjs +51 -16
- package/es/modules/gct-form/props/gct-form-item/gct-form-item.props.mjs +54 -62
- package/es/modules/gct-form/register/editor-register/editor-register.mjs +63 -56
- package/es/modules/gct-form/register/form-item-register/form-item-register.mjs +45 -41
- package/es/modules/gct-form/state/form/form.state.mjs +26 -16
- package/es/modules/gct-form/state/form-collapse/form-collapse.state.mjs +14 -5
- package/es/modules/gct-form/state/form-collapse-pane/form-collapse-pane.state.mjs +14 -5
- package/es/modules/gct-form/state/form-edit-item/form-edit-item.state.mjs +18 -9
- package/es/modules/gct-form/state/form-group/form-group.state.mjs +22 -13
- package/es/modules/gct-form/state/form-item/form-item.state.mjs +14 -5
- package/es/modules/gct-form/state/form-item-basic/form-item-basic.state.mjs +18 -8
- package/es/modules/gct-form/state/form-line/form-line.state.mjs +11 -5
- package/es/modules/gct-form/state/form-tab/form-tab.state.mjs +16 -6
- package/es/modules/gct-form/state/form-tab-pane/form-tab-pane.state.mjs +14 -5
- package/es/modules/gct-form/utils/width-install/width-install.mjs +19 -16
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.d.ts +1 -5
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +122 -148
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +66 -76
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +10 -15
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +50 -72
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +11 -15
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +10 -15
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.css +5 -5
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +72 -89
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +10 -15
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +11 -15
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.css +27 -24
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.mjs +127 -159
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +3 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.css +2 -2
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.mjs +38 -45
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +10 -12
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +63 -69
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +10 -12
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +48 -66
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +10 -15
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.css +4 -4
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +50 -68
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +11 -13
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +11 -16
- package/es/modules/gct-form/widgets/gct-form/gct-form.css +2 -2
- package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +125 -143
- package/es/modules/gct-form/widgets/gct-form/index.mjs +30 -33
- package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +138 -140
- package/es/modules/gct-table/controller/index.mjs +5 -0
- package/es/modules/gct-table/controller/table-item/table-action-item.controller.mjs +14 -5
- package/es/modules/gct-table/controller/table-item/table-edit-item.controller.mjs +25 -15
- package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +32 -25
- package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +76 -69
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +47 -90
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.provider.mjs +12 -4
- package/es/modules/gct-table/editor/gct-table-date/index.mjs +10 -52
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.mjs +26 -37
- package/es/modules/gct-table/editor/gct-table-span/gct-table-span.provider.mjs +14 -4
- package/es/modules/gct-table/editor/gct-table-span/index.mjs +10 -52
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +60 -103
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.provider.mjs +14 -4
- package/es/modules/gct-table/editor/gct-table-text/index.mjs +10 -52
- package/es/modules/gct-table/editor/index.mjs +9 -11
- package/es/modules/gct-table/hooks/index.mjs +1 -0
- package/es/modules/gct-table/hooks/use-ant-table/use-ant-table.mjs +66 -82
- package/es/modules/gct-table/index.mjs +22 -15
- package/es/modules/gct-table/register/table-editor-register/table-editor-register.mjs +67 -60
- package/es/modules/gct-table/state/table/table.state.mjs +46 -36
- package/es/modules/gct-table/state/table-item/table-edit-item.state.mjs +19 -9
- package/es/modules/gct-table/state/table-item/table-item.state.mjs +29 -19
- package/es/modules/gct-table/state/table-row/table-row.state.mjs +16 -6
- package/es/modules/gct-table/utils/count-latch/count-latch.mjs +97 -94
- package/es/modules/gct-table/utils/index.mjs +2 -0
- package/es/modules/gct-table/utils/width-install/width-install.mjs +18 -16
- package/es/modules/gct-table/widgets/gct-table/gct-table.mjs +310 -409
- package/es/modules/gct-table/widgets/gct-table/index.mjs +8 -10
- package/es/modules/gct-table/widgets/index.mjs +7 -9
- package/es/modules/global-modal/index.mjs +10 -16
- package/es/modules/global-modal/src/BasicModal.vue.mjs +5 -221
- package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +201 -0
- package/es/modules/global-modal/src/components/GlboalModal.mjs +30 -39
- package/es/modules/global-modal/src/components/ModalClose.vue.mjs +6 -79
- package/es/modules/global-modal/src/components/ModalClose.vue_vue_type_script_setup_true_name_ModalClose_lang.mjs +67 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +5 -44
- package/es/modules/global-modal/src/components/ModalFooter.vue_vue_type_script_setup_true_name_BasicModalFooter_lang.mjs +40 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +9 -9
- package/es/modules/global-modal/src/components/ModalHeader.vue_vue_type_script_lang.mjs +11 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +18 -24
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +126 -0
- package/es/modules/global-modal/src/hooks/useModal.mjs +102 -116
- package/es/modules/global-modal/src/hooks/useModalContext.mjs +6 -6
- package/es/modules/global-modal/src/hooks/useModalDrag.mjs +69 -79
- package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +17 -13
- package/es/modules/global-modal/src/props.mjs +87 -55
- package/es/modules/target-loading/index.mjs +3 -0
- package/es/modules/target-loading/src/createLoading.mjs +42 -54
- package/es/modules/target-loading/src/target-loading.vue.mjs +7 -52
- package/es/modules/target-loading/src/target-loading.vue_vue_type_script_setup_true_name_target-loading_lang.mjs +55 -0
- package/es/modules/target-loading/src/useLoading.mjs +2 -0
- package/es/setup-app.mjs +3 -3
- package/es/utils/index.mjs +4 -0
- package/es/utils/message-util/message-util.mjs +25 -25
- package/es/utils/monaco-loader/monaco-loader.mjs +83 -87
- package/es/utils/overlay-controller/overlay-controller.mjs +29 -20
- package/es/utils/with-install.mjs +10 -11
- package/package.json +7 -7
- package/dist/index-B8zoAUhR.cjs +0 -20
- package/dist/index-BH5PTZ_c.js +0 -20
- package/dist/index-Cna4DZog.js +0 -109381
- package/dist/index.esm.min.mjs +0 -91
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
- package/dist/monaco-editor-4E2xdOou.cjs +0 -1
- package/dist/monaco-editor-C-wvzgow.js +0 -1
- package/dist/monaco-editor-Cel355Cg.js +0 -350
- package/es/components/base-button/base-button.vue3.mjs +0 -179
- package/es/components/basic-button/basic-button.vue3.mjs +0 -130
- package/es/components/copy-module-key/copy-module-key.vue3.mjs +0 -104
- package/es/components/double-input/double-input.vue2.mjs +0 -5
- package/es/components/icon-next/src/IconNext.vue2.mjs +0 -7
- package/es/components/icon-next/src/IconNext.vue3.mjs +0 -108
- package/es/components/icon-next/src/IconNextPicker.vue2.mjs +0 -452
- package/es/components/icon-next/src/IconNextPicker.vue3.mjs +0 -6
- package/es/components/svg-icon/svg-icon.vue3.mjs +0 -6
- package/es/modules/code-editor/monaco-editor.vue2.mjs +0 -440
- package/es/modules/color-picker/src/ColorPicker.vue2.mjs +0 -545
- package/es/modules/gct-form/widgets/gct-edit-form/index.d.ts +0 -5
- package/es/modules/gct-form/widgets/gct-edit-form/index.mjs +0 -10
- package/es/modules/global-modal/src/BasicModal.vue2.mjs +0 -5
- package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +0 -6
- package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +0 -5
- package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +0 -13
- package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +0 -136
- package/es/modules/target-loading/src/target-loading.vue3.mjs +0 -7
- /package/es/components/base-button/{base-button.css → base-button.vue_vue_type_style_index_0_scoped_5375ec2b_lang.css} +0 -0
- /package/es/components/basic-button/{basic-button.css → basic-button.vue_vue_type_style_index_0_scoped_1dbcb2fa_lang.css} +0 -0
- /package/es/components/copy-module-key/{copy-module-key.css → copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css} +0 -0
- /package/es/components/icon-next/src/{IconNext.css → IconNext.vue_vue_type_style_index_0_scoped_c5a83130_lang.css} +0 -0
- /package/es/components/icon-next/src/{IconNextPicker.css → IconNextPicker.vue_vue_type_style_index_0_lang.css} +0 -0
- /package/es/components/svg-icon/{svg-icon.css → svg-icon.vue_vue_type_style_index_0_lang.css} +0 -0
- /package/es/modules/color-picker/src/{ColorPicker.css → ColorPicker.vue_vue_type_style_index_0_scoped_7bfd9ca3_lang.css} +0 -0
- /package/es/modules/color-picker/src/{ColorPicker2.css → ColorPicker.vue_vue_type_style_index_1_lang.css} +0 -0
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
- /package/es/modules/global-modal/src/components/{ModalClose.css → ModalClose.vue_vue_type_style_index_0_lang.css} +0 -0
- /package/es/modules/target-loading/src/{target-loading.css → target-loading.vue_vue_type_style_index_0_scoped_d448466c_lang.css} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
|
|
2
|
+
import { useNamespace } from "@gct-paas/core";
|
|
3
|
+
//#region src/components/svg-icon/svg-icon.vue?vue&type=script&setup=true&name=SvgIcon&lang.ts
|
|
4
|
+
var _hoisted_1 = ["xlink:href"];
|
|
5
|
+
var svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "svg-icon",
|
|
7
|
+
props: {
|
|
8
|
+
prefix: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "icon"
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
type: [Number, String],
|
|
18
|
+
default: 16
|
|
19
|
+
},
|
|
20
|
+
spin: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const ns = useNamespace("svg-icon");
|
|
27
|
+
const props = __props;
|
|
28
|
+
const symbolId = computed(() => `#${props.prefix}-${props.name}`);
|
|
29
|
+
const getStyle = computed(() => {
|
|
30
|
+
const { size } = props;
|
|
31
|
+
let s = `${size}`;
|
|
32
|
+
s = `${s.replace("px", "")}px`;
|
|
33
|
+
return {
|
|
34
|
+
width: s,
|
|
35
|
+
height: s
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createElementBlock("svg", {
|
|
40
|
+
class: normalizeClass([
|
|
41
|
+
_ctx.$attrs.class,
|
|
42
|
+
unref(ns).b(),
|
|
43
|
+
__props.spin && unref(ns).m("spin")
|
|
44
|
+
]),
|
|
45
|
+
style: normalizeStyle(getStyle.value),
|
|
46
|
+
"aria-hidden": "true"
|
|
47
|
+
}, [createElementVNode("use", { "xlink:href": symbolId.value }, null, 8, _hoisted_1)], 6);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { svg_icon_vue_vue_type_script_setup_true_name_SvgIcon_lang_default as default };
|
|
@@ -0,0 +1,103 @@
|
|
|
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-vue3-grid-dnd-item {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
margin-left: -6px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.vxe-table--render-default .vxe-body--row:hover .gct-vue3-grid-dnd-item {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
.vxe-table--render-default .vxe-body--row.row--current:hover .gct-vue3-grid-dnd-item {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
}
|
|
76
|
+
.vxe-table--render-default .vxe-body--row.is-dragging {
|
|
77
|
+
opacity: 0.3;
|
|
78
|
+
}
|
|
79
|
+
.vxe-table--render-default .vxe-body--row.is-over {
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
.vxe-table--render-default .vxe-body--row.is-over.is-before:first-child::after {
|
|
83
|
+
top: 0;
|
|
84
|
+
}
|
|
85
|
+
.vxe-table--render-default .vxe-body--row.is-over.is-before::after {
|
|
86
|
+
content: " ";
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 0;
|
|
89
|
+
top: -1px;
|
|
90
|
+
width: 100%;
|
|
91
|
+
border-bottom: 2px solid var(--ant-primary-color);
|
|
92
|
+
}
|
|
93
|
+
.vxe-table--render-default .vxe-body--row.is-over.is-after::after {
|
|
94
|
+
content: " ";
|
|
95
|
+
position: absolute;
|
|
96
|
+
left: 0;
|
|
97
|
+
bottom: -1px;
|
|
98
|
+
width: 100%;
|
|
99
|
+
border-bottom: 2px solid var(--ant-primary-color);
|
|
100
|
+
}
|
|
101
|
+
.vxe-table--render-default .vxe-body--row.is-over.is-after:last-child::after {
|
|
102
|
+
bottom: 0;
|
|
103
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const Vue3GridDndItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
index: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
data: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
move: {
|
|
12
|
+
type: PropType<(isBefore: boolean, row: IObject, dragData: IObject) => void>;
|
|
13
|
+
};
|
|
14
|
+
end: {
|
|
15
|
+
type: PropType<(data: IObject) => void>;
|
|
16
|
+
};
|
|
17
|
+
}>, {
|
|
18
|
+
ns: import('@gct-paas/core').Namespace;
|
|
19
|
+
rootRef: import('vue').Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
20
|
+
dropCollect: import('vue').Ref<{
|
|
21
|
+
handlerId: string;
|
|
22
|
+
canDrop: boolean;
|
|
23
|
+
isShallowOver: boolean;
|
|
24
|
+
}, {
|
|
25
|
+
handlerId: string;
|
|
26
|
+
canDrop: boolean;
|
|
27
|
+
isShallowOver: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
|
+
index: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
data: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
move: {
|
|
39
|
+
type: PropType<(isBefore: boolean, row: IObject, dragData: IObject) => void>;
|
|
40
|
+
};
|
|
41
|
+
end: {
|
|
42
|
+
type: PropType<(data: IObject) => void>;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import './vue3-grid-dnd-item.css';/* empty css */
|
|
2
|
+
import { computed, createVNode, defineComponent, ref, watch } from "vue";
|
|
3
|
+
import { useNamespace } from "@gct-paas/core";
|
|
4
|
+
import { useDrag, useDrop } from "vue3-dnd";
|
|
5
|
+
//#region src/components/vue3-grid-dnd-item/vue3-grid-dnd-item.tsx
|
|
6
|
+
var Vue3GridDndItem = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "Vue3GridDndItem",
|
|
8
|
+
props: {
|
|
9
|
+
index: {
|
|
10
|
+
type: Number,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
data: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
move: { type: Function },
|
|
18
|
+
end: { type: Function }
|
|
19
|
+
},
|
|
20
|
+
setup(props) {
|
|
21
|
+
const ns = useNamespace("vue3-grid-dnd-item");
|
|
22
|
+
/**
|
|
23
|
+
* 找到指定父
|
|
24
|
+
*
|
|
25
|
+
* @author zhanghanrui
|
|
26
|
+
* @date 2024-09-26 10:09:34
|
|
27
|
+
* @param {HTMLElement} node
|
|
28
|
+
* @param {string} tag
|
|
29
|
+
* @return {*} {(HTMLElement | null)}
|
|
30
|
+
*/
|
|
31
|
+
function findParent(node, tag) {
|
|
32
|
+
if (node && node.classList.contains(tag)) return node;
|
|
33
|
+
return findParent(node.parentElement, tag);
|
|
34
|
+
}
|
|
35
|
+
const rootRef = ref(null);
|
|
36
|
+
const dragRef = computed(() => {
|
|
37
|
+
if (rootRef.value) {
|
|
38
|
+
const node = findParent(rootRef.value, "vxe-body--row");
|
|
39
|
+
if (node) return node;
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
});
|
|
43
|
+
const isBeforeHover = ref(false);
|
|
44
|
+
const [dragCollect, drag, preview] = useDrag({
|
|
45
|
+
type: "vue3-grid-dnd-item",
|
|
46
|
+
item: () => {
|
|
47
|
+
return props.data;
|
|
48
|
+
},
|
|
49
|
+
collect: (monitor) => {
|
|
50
|
+
return {
|
|
51
|
+
canDrag: monitor.canDrag(),
|
|
52
|
+
isDragging: monitor.isDragging()
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
end(draggedItem) {
|
|
56
|
+
if (props.end) props.end(draggedItem);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const [dropCollect, drop] = useDrop({
|
|
60
|
+
accept: "vue3-grid-dnd-item",
|
|
61
|
+
collect(monitor) {
|
|
62
|
+
return {
|
|
63
|
+
handlerId: monitor.getHandlerId(),
|
|
64
|
+
canDrop: monitor.canDrop(),
|
|
65
|
+
isShallowOver: monitor.isOver({ shallow: true })
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
hover(item, monitor) {
|
|
69
|
+
if (monitor.canDrop() === false || dragCollect.value.isDragging === true) return;
|
|
70
|
+
if (props.data === item) return;
|
|
71
|
+
if (monitor.isOver({ shallow: true })) {
|
|
72
|
+
const rect = rootRef.value.getBoundingClientRect();
|
|
73
|
+
const offset = monitor.getClientOffset();
|
|
74
|
+
const { top, height } = rect;
|
|
75
|
+
const { y } = offset;
|
|
76
|
+
const half = height / 2;
|
|
77
|
+
if (y - top - half < 0) isBeforeHover.value = true;
|
|
78
|
+
else isBeforeHover.value = false;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
canDrop() {
|
|
82
|
+
if (dragCollect.value.isDragging === true) return false;
|
|
83
|
+
return true;
|
|
84
|
+
},
|
|
85
|
+
drop(item, monitor) {
|
|
86
|
+
if (monitor.canDrop() === false || dragCollect.value.isDragging === true) return;
|
|
87
|
+
if (props.data === item) return;
|
|
88
|
+
if (props.move) props.move(isBeforeHover.value, props.data, item);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
drag(rootRef);
|
|
92
|
+
drop(dragRef);
|
|
93
|
+
preview(dragRef);
|
|
94
|
+
watch([dropCollect, isBeforeHover], () => {
|
|
95
|
+
if (!dragRef.value) return;
|
|
96
|
+
dragRef.value.classList.remove(ns.is("over", true), ns.is("before", true), ns.is("after", true));
|
|
97
|
+
if (dropCollect.value.canDrop && dropCollect.value.isShallowOver) {
|
|
98
|
+
const n = ns.is("over", true);
|
|
99
|
+
const x = isBeforeHover.value ? ns.is("before", true) : ns.is("after", true);
|
|
100
|
+
dragRef.value.classList.add(n, x);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
watch(dragCollect, () => {
|
|
104
|
+
if (!dragRef.value) return;
|
|
105
|
+
dragRef.value.classList.remove(ns.is("dragging", true));
|
|
106
|
+
if (dragCollect.value.isDragging) dragRef.value.classList.add(ns.is("dragging", true));
|
|
107
|
+
});
|
|
108
|
+
return {
|
|
109
|
+
ns,
|
|
110
|
+
rootRef,
|
|
111
|
+
dropCollect
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
render() {
|
|
115
|
+
return createVNode("div", {
|
|
116
|
+
"ref": "rootRef",
|
|
117
|
+
"class": this.ns.b()
|
|
118
|
+
}, [this.$slots.default?.()]);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
//#endregion
|
|
122
|
+
export { Vue3GridDndItem };
|
|
@@ -1,84 +1,61 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, computed, onUnmounted, createVNode, resolveComponent, mergeProps } from 'vue';
|
|
2
|
-
import { useNamespace, useUserStore, getToken } from '@gct-paas/core';
|
|
3
|
-
import WujieVue3 from 'wujie-vue3';
|
|
4
1
|
import './wujie-container.css';/* empty css */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
onUnmounted(() => {
|
|
64
|
-
// 如果是 alive 模式,则不销毁应用
|
|
65
|
-
if (attr.alive === true) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
destroyApp(props.wuJieName);
|
|
69
|
-
});
|
|
70
|
-
return () => {
|
|
71
|
-
return createVNode(resolveComponent("wujieVue"), mergeProps({
|
|
72
|
-
"class": ns.b(),
|
|
73
|
-
"name": props.wuJieName,
|
|
74
|
-
"beforeLoad": beforeLoad,
|
|
75
|
-
"beforeMount": beforeMount,
|
|
76
|
-
"loadError": loadError
|
|
77
|
-
}, attr, {
|
|
78
|
-
"props": _props.value
|
|
79
|
-
}), null);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
2
|
+
import { computed, createVNode, defineComponent, mergeProps, onUnmounted, resolveComponent, useAttrs } from "vue";
|
|
3
|
+
import { getToken, useNamespace, useUserStore } from "@gct-paas/core";
|
|
4
|
+
import WujieVue3 from "wujie-vue3";
|
|
5
|
+
//#region src/components/wujie-container/wujie-container.tsx
|
|
6
|
+
var { destroyApp } = WujieVue3;
|
|
7
|
+
var WuJieContainer = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "WuJieContainer",
|
|
9
|
+
props: { wuJieName: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true
|
|
12
|
+
} },
|
|
13
|
+
setup(props) {
|
|
14
|
+
const ns = useNamespace("wujie-container");
|
|
15
|
+
const attr = useAttrs();
|
|
16
|
+
function beforeLoad(win) {
|
|
17
|
+
Object.defineProperty(win, "pSystem", { get: () => {
|
|
18
|
+
return window.System;
|
|
19
|
+
} });
|
|
20
|
+
Object.defineProperty(win, "_gct", { get: () => {
|
|
21
|
+
return window._gct;
|
|
22
|
+
} });
|
|
23
|
+
Object.defineProperty(win, "_api", { get: () => {
|
|
24
|
+
return window._api;
|
|
25
|
+
} });
|
|
26
|
+
}
|
|
27
|
+
function beforeMount(win) {
|
|
28
|
+
console.debug("beforeMount System", win.System);
|
|
29
|
+
console.debug("beforeMount _gct", win._gct);
|
|
30
|
+
console.debug("beforeMount _api", win._api);
|
|
31
|
+
}
|
|
32
|
+
function loadError(win) {
|
|
33
|
+
console.debug("loadError", win.System);
|
|
34
|
+
}
|
|
35
|
+
const { userInfo } = useUserStore();
|
|
36
|
+
const token = getToken();
|
|
37
|
+
const _props = computed(() => {
|
|
38
|
+
return {
|
|
39
|
+
appInfo: _gct.store.appInfo,
|
|
40
|
+
userInfo,
|
|
41
|
+
token,
|
|
42
|
+
...attr.props ?? {}
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
onUnmounted(() => {
|
|
46
|
+
if (attr.alive === true) return;
|
|
47
|
+
destroyApp(props.wuJieName);
|
|
48
|
+
});
|
|
49
|
+
return () => {
|
|
50
|
+
return createVNode(resolveComponent("wujieVue"), mergeProps({
|
|
51
|
+
"class": ns.b(),
|
|
52
|
+
"name": props.wuJieName,
|
|
53
|
+
"beforeLoad": beforeLoad,
|
|
54
|
+
"beforeMount": beforeMount,
|
|
55
|
+
"loadError": loadError
|
|
56
|
+
}, attr, { "props": _props.value }), null);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
82
59
|
});
|
|
83
|
-
|
|
60
|
+
//#endregion
|
|
84
61
|
export { WuJieContainer };
|
package/es/create-app-vue.mjs
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import components_default from "./components/index.mjs";
|
|
2
|
+
import gct_form_default from "./modules/gct-form/index.mjs";
|
|
3
|
+
import gct_table_default from "./modules/gct-table/index.mjs";
|
|
4
|
+
import ColorPicker_default from "./modules/color-picker/src/ColorPicker.vue.mjs";
|
|
5
|
+
import "./modules/color-picker/index.mjs";
|
|
6
|
+
import { setupDirectives } from "./directives/index.mjs";
|
|
7
|
+
import { OverlayScrollbarsComponent } from "overlayscrollbars-vue";
|
|
8
|
+
import * as Icons from "@ant-design/icons-vue";
|
|
9
|
+
import "overlayscrollbars/overlayscrollbars.css";
|
|
10
|
+
//#region src/create-app-vue.ts
|
|
11
|
+
/**
|
|
12
|
+
* 核心 Web 库的外部使用注册,在创建 app 时调用
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @param {App} app
|
|
16
|
+
* @return {*} {Promise<void>}
|
|
17
|
+
*/
|
|
10
18
|
async function coreWebCreateAppVue(app) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
setupDirectives(app);
|
|
20
|
+
app.use(components_default);
|
|
21
|
+
Object.entries(Icons).forEach(([key, component]) => {
|
|
22
|
+
app.component(key, component);
|
|
23
|
+
});
|
|
24
|
+
app.component(ColorPicker_default.name, ColorPicker_default);
|
|
25
|
+
app.component(OverlayScrollbarsComponent.__name, OverlayScrollbarsComponent);
|
|
26
|
+
app.use(gct_form_default);
|
|
27
|
+
app.use(gct_table_default);
|
|
20
28
|
}
|
|
21
|
-
|
|
29
|
+
//#endregion
|
|
22
30
|
export { coreWebCreateAppVue };
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
1
|
+
//#region src/directives/drag-resize.ts
|
|
2
|
+
var dragResizeDirective = { mounted(el, binding) {
|
|
3
|
+
if (!binding.value) return false;
|
|
4
|
+
binding.instance?.$nextTick(() => {
|
|
5
|
+
const minWidth = binding.value;
|
|
6
|
+
const dragDom = el;
|
|
7
|
+
const resizeElL = document.createElement("div");
|
|
8
|
+
dragDom.appendChild(resizeElL);
|
|
9
|
+
resizeElL.style.cursor = "col-resize";
|
|
10
|
+
resizeElL.style.position = "absolute";
|
|
11
|
+
resizeElL.style.height = "100%";
|
|
12
|
+
resizeElL.style.width = "5px";
|
|
13
|
+
resizeElL.style.right = "0px";
|
|
14
|
+
resizeElL.style.top = "0px";
|
|
15
|
+
resizeElL.style.background = "rgba(255, 0, 0, 0);";
|
|
16
|
+
resizeElL.onmousedown = (e) => {
|
|
17
|
+
const elW = dragDom.clientWidth;
|
|
18
|
+
const clientX = e.clientX;
|
|
19
|
+
document.onmousemove = function(e) {
|
|
20
|
+
e.preventDefault();
|
|
21
|
+
let nw = elW + (e.clientX - clientX);
|
|
22
|
+
nw = nw < minWidth ? minWidth : nw;
|
|
23
|
+
dragDom.setAttribute("style", `width:${nw}px !important;`);
|
|
24
|
+
const resizeEvent = new CustomEvent("drag-resize-width", { detail: {
|
|
25
|
+
width: nw,
|
|
26
|
+
resizing: true
|
|
27
|
+
} });
|
|
28
|
+
el.dispatchEvent(resizeEvent);
|
|
29
|
+
};
|
|
30
|
+
document.onmouseup = function() {
|
|
31
|
+
document.onmousemove = null;
|
|
32
|
+
document.onmouseup = null;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
} };
|
|
38
37
|
function setupDragResizeDirective(app) {
|
|
39
|
-
|
|
38
|
+
app.directive("dragResize", dragResizeDirective);
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
//#endregion
|
|
42
41
|
export { setupDragResizeDirective };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/directives/ellipsis-title.ts
|
|
2
|
+
var EllipsisTitle = {
|
|
3
|
+
mounted(el, binding) {
|
|
4
|
+
el.__ellipsisHandler__ = () => {
|
|
5
|
+
const isOverflowing = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;
|
|
6
|
+
const title = binding.value;
|
|
7
|
+
if (isOverflowing) el.setAttribute("title", title);
|
|
8
|
+
else el.removeAttribute("title");
|
|
9
|
+
};
|
|
10
|
+
el.addEventListener("mouseenter", el.__ellipsisHandler__);
|
|
11
|
+
},
|
|
12
|
+
beforeUnmount(el) {
|
|
13
|
+
if (el.__ellipsisHandler__) el.removeEventListener("mouseenter", el.__ellipsisHandler__);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
/**内容溢出出现title */
|
|
17
|
+
function setupEllipsisTitleDirective(app) {
|
|
18
|
+
app.directive("ellipsis-title", EllipsisTitle);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { setupEllipsisTitleDirective };
|
package/es/directives/index.mjs
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import { setupDragResizeDirective } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { setupDragResizeDirective } from "./drag-resize.mjs";
|
|
2
|
+
import { setupEllipsisTitleDirective } from "./ellipsis-title.mjs";
|
|
3
|
+
import { setupLoadingDirective } from "./target-loading.mjs";
|
|
4
|
+
//#region src/directives/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* 注册全局通用指令
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @param {App} app
|
|
10
|
+
*/
|
|
4
11
|
function setupDirectives(app) {
|
|
5
|
-
|
|
6
|
-
|
|
12
|
+
setupDragResizeDirective(app);
|
|
13
|
+
setupEllipsisTitleDirective(app);
|
|
14
|
+
setupLoadingDirective(app);
|
|
7
15
|
}
|
|
8
|
-
|
|
16
|
+
//#endregion
|
|
9
17
|
export { setupDirectives };
|