@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
|
@@ -1,452 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, normalizeStyle, unref, normalizeClass, createBlock, createCommentVNode, toDisplayString, Fragment, renderList, withDirectives, vModelText, nextTick } from 'vue';
|
|
2
|
-
import { Form, Empty } from 'ant-design-vue';
|
|
3
|
-
import 'overlayscrollbars-vue';
|
|
4
|
-
import { useIconAsset } from '../hooks/useIconAsset.mjs';
|
|
5
|
-
import { useIconPark } from '../hooks/useIconPark.mjs';
|
|
6
|
-
import { useIconPlatform } from '../hooks/useIconPlatform.mjs';
|
|
7
|
-
import { IconNamespaceEnum } from '../types/index.mjs';
|
|
8
|
-
import IconNext from './IconNext.vue2.mjs';
|
|
9
|
-
import { debounce, cloneDeep } from 'lodash-es';
|
|
10
|
-
import { usePlatformConfigStore } from '@gct-paas/core';
|
|
11
|
-
|
|
12
|
-
const _hoisted_1 = { class: "icon-picker-next" };
|
|
13
|
-
const _hoisted_2 = { class: "p-12px" };
|
|
14
|
-
const _hoisted_3 = { class: "flex icon-picker-next__container" };
|
|
15
|
-
const _hoisted_4 = { class: "icon-picker-next__cats" };
|
|
16
|
-
const _hoisted_5 = ["title", "data-id", "onClick"];
|
|
17
|
-
const _hoisted_6 = { class: "icon-picker-next__panel" };
|
|
18
|
-
const _hoisted_7 = { class: "icon-picker-next__icons" };
|
|
19
|
-
const _hoisted_8 = { class: "icon__list" };
|
|
20
|
-
const _hoisted_9 = ["title", "data-id", "onClick"];
|
|
21
|
-
const _hoisted_10 = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "color__setting"
|
|
24
|
-
};
|
|
25
|
-
const _hoisted_11 = { class: "color__list" };
|
|
26
|
-
const _hoisted_12 = ["onClick"];
|
|
27
|
-
const _hoisted_13 = { class: "color__input" };
|
|
28
|
-
const _hoisted_14 = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "color__setting"
|
|
31
|
-
};
|
|
32
|
-
const _hoisted_15 = { class: "color__list" };
|
|
33
|
-
const _hoisted_16 = ["onClick"];
|
|
34
|
-
const _hoisted_17 = { class: "color__input" };
|
|
35
|
-
const _hoisted_18 = {
|
|
36
|
-
key: 1,
|
|
37
|
-
class: "flex items-center justify-center h-full"
|
|
38
|
-
};
|
|
39
|
-
const DEFAULT_COLOR = "#FFFFFF";
|
|
40
|
-
const DEFAULT_BACKGROUND = "#3370FF";
|
|
41
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
|
-
__name: "IconNextPicker",
|
|
43
|
-
props: {
|
|
44
|
-
value: {
|
|
45
|
-
type: String,
|
|
46
|
-
required: true
|
|
47
|
-
},
|
|
48
|
-
disabled: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: false
|
|
51
|
-
},
|
|
52
|
-
color: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: "#FFFFFF"
|
|
55
|
-
},
|
|
56
|
-
size: {
|
|
57
|
-
type: Number,
|
|
58
|
-
default: 30
|
|
59
|
-
},
|
|
60
|
-
showColor: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: false
|
|
63
|
-
},
|
|
64
|
-
background: {
|
|
65
|
-
type: String
|
|
66
|
-
},
|
|
67
|
-
showBackground: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: false
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
emits: ["update:value", "update:color", "update:background"],
|
|
73
|
-
setup(__props, { emit: __emit }) {
|
|
74
|
-
const { themeSetting } = usePlatformConfigStore();
|
|
75
|
-
const props = __props;
|
|
76
|
-
const emit = __emit;
|
|
77
|
-
const { getIconAssetCats } = useIconAsset();
|
|
78
|
-
const { getIconParkCats } = useIconPark();
|
|
79
|
-
const { getIconPlatformCats } = useIconPlatform();
|
|
80
|
-
const { onFieldChange } = Form.useInjectFormItemContext();
|
|
81
|
-
const TreeScrollRef = ref();
|
|
82
|
-
const IconsScrollRef = ref();
|
|
83
|
-
const spinning = ref(false);
|
|
84
|
-
const BASIC_COLORS = [
|
|
85
|
-
"#3370FF",
|
|
86
|
-
"#0DAA9C",
|
|
87
|
-
"#EF3232",
|
|
88
|
-
"#EFA332",
|
|
89
|
-
"#18C8D3",
|
|
90
|
-
"#A33FF2"
|
|
91
|
-
];
|
|
92
|
-
const ICON_COLOR = [DEFAULT_COLOR, ...BASIC_COLORS];
|
|
93
|
-
const ICON_BACKGROUND = ["transparent", ...BASIC_COLORS];
|
|
94
|
-
const customColor = ref(DEFAULT_COLOR);
|
|
95
|
-
const customColorChecked = ref(false);
|
|
96
|
-
const customBackground = ref(DEFAULT_COLOR);
|
|
97
|
-
const customBackgroundChecked = ref(false);
|
|
98
|
-
let catTreeCache = [];
|
|
99
|
-
const catTree = ref([]);
|
|
100
|
-
const catIcons = ref([]);
|
|
101
|
-
const selectedKeys = ref([]);
|
|
102
|
-
const searchKey = ref("");
|
|
103
|
-
const supportColor = computed(() => {
|
|
104
|
-
return catIcons.value.length > 0 && !catIcons.value[0].id.startsWith(IconNamespaceEnum.Asset);
|
|
105
|
-
});
|
|
106
|
-
const activeDefault = () => {
|
|
107
|
-
let cat = catTree.value[0] || {};
|
|
108
|
-
let selectCat = void 0;
|
|
109
|
-
if (cat) {
|
|
110
|
-
selectCat = cat.icons ? cat : cat.children?.[0];
|
|
111
|
-
}
|
|
112
|
-
if (selectCat) {
|
|
113
|
-
selectedKeys.value = [selectCat.id];
|
|
114
|
-
catIcons.value = selectCat.icons;
|
|
115
|
-
} else {
|
|
116
|
-
selectedKeys.value = [];
|
|
117
|
-
catIcons.value = [];
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const activeSelected = async () => {
|
|
121
|
-
if (props.value) {
|
|
122
|
-
let cat = catTree.value.reduce((total, c) => {
|
|
123
|
-
if ("children" in c) {
|
|
124
|
-
total.push(...c.children);
|
|
125
|
-
} else {
|
|
126
|
-
total.push(c);
|
|
127
|
-
}
|
|
128
|
-
return total;
|
|
129
|
-
}, []).find((c) => c.icons.map((i) => i.id).includes(props.value));
|
|
130
|
-
if (cat) {
|
|
131
|
-
selectedKeys.value = [cat.id];
|
|
132
|
-
catIcons.value = cat.icons;
|
|
133
|
-
await nextTick();
|
|
134
|
-
TreeScrollRef.value?.getElement()?.scrollIntoView({
|
|
135
|
-
block: "center"
|
|
136
|
-
});
|
|
137
|
-
IconsScrollRef.value?.getElement()?.scrollIntoView({ block: "center" });
|
|
138
|
-
} else {
|
|
139
|
-
activeDefault();
|
|
140
|
-
}
|
|
141
|
-
} else {
|
|
142
|
-
activeDefault();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
const handleVisibleChange = async (visible) => {
|
|
146
|
-
if (!visible) {
|
|
147
|
-
searchKey.value = "";
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
spinning.value = true;
|
|
151
|
-
if (catTreeCache.length > 0) {
|
|
152
|
-
catTree.value = catTreeCache;
|
|
153
|
-
} else {
|
|
154
|
-
const iconParkCats = getIconParkCats();
|
|
155
|
-
const iconAssetCats = await getIconAssetCats();
|
|
156
|
-
const iconPlatformCats = getIconPlatformCats();
|
|
157
|
-
catTreeCache = iconAssetCats.concat(iconParkCats).concat(iconPlatformCats);
|
|
158
|
-
catTree.value = catTreeCache;
|
|
159
|
-
}
|
|
160
|
-
if (!props.color) {
|
|
161
|
-
emit("update:color", DEFAULT_COLOR);
|
|
162
|
-
} else if (ICON_COLOR.includes(props.color)) {
|
|
163
|
-
customColor.value = DEFAULT_COLOR;
|
|
164
|
-
customColorChecked.value = false;
|
|
165
|
-
} else {
|
|
166
|
-
customColor.value = props.color;
|
|
167
|
-
customColorChecked.value = true;
|
|
168
|
-
}
|
|
169
|
-
if (!props.background) {
|
|
170
|
-
emit("update:background", DEFAULT_BACKGROUND);
|
|
171
|
-
} else if (ICON_BACKGROUND.includes(props.background)) {
|
|
172
|
-
customBackground.value = DEFAULT_COLOR;
|
|
173
|
-
customBackgroundChecked.value = false;
|
|
174
|
-
} else {
|
|
175
|
-
customBackground.value = props.background;
|
|
176
|
-
customBackgroundChecked.value = true;
|
|
177
|
-
}
|
|
178
|
-
activeSelected();
|
|
179
|
-
spinning.value = false;
|
|
180
|
-
};
|
|
181
|
-
function recursiveIcons(arr, searchKey2) {
|
|
182
|
-
return arr.map((tree) => {
|
|
183
|
-
const childKey = ["children", "icons"].find((key) => !!tree[key]);
|
|
184
|
-
if (childKey) {
|
|
185
|
-
tree[childKey] = recursiveIcons(tree[childKey], searchKey2);
|
|
186
|
-
if (tree[childKey].length > 0) {
|
|
187
|
-
return tree;
|
|
188
|
-
}
|
|
189
|
-
return void 0;
|
|
190
|
-
} else {
|
|
191
|
-
const _filter_ = tree._filter_;
|
|
192
|
-
const isMatch = _filter_.some((k) => k.includes(searchKey2));
|
|
193
|
-
if (isMatch) {
|
|
194
|
-
return tree;
|
|
195
|
-
}
|
|
196
|
-
return void 0;
|
|
197
|
-
}
|
|
198
|
-
}).filter(Boolean);
|
|
199
|
-
}
|
|
200
|
-
const searchKeyHandler = (e) => {
|
|
201
|
-
spinning.value = true;
|
|
202
|
-
const key = e.target.value?.trim();
|
|
203
|
-
if (!key) {
|
|
204
|
-
catTree.value = catTreeCache;
|
|
205
|
-
} else {
|
|
206
|
-
catTree.value = recursiveIcons(cloneDeep(catTreeCache), key);
|
|
207
|
-
}
|
|
208
|
-
activeDefault();
|
|
209
|
-
spinning.value = false;
|
|
210
|
-
};
|
|
211
|
-
const handleSearchKeyChange = debounce(searchKeyHandler, 500);
|
|
212
|
-
const handleCategoryClick = (data) => {
|
|
213
|
-
if (data?.children && data?.children.length) {
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
catIcons.value = data.icons ?? [];
|
|
217
|
-
selectedKeys.value = [data.id];
|
|
218
|
-
};
|
|
219
|
-
function handleIconClick(icon) {
|
|
220
|
-
emit("update:value", icon);
|
|
221
|
-
onFieldChange();
|
|
222
|
-
}
|
|
223
|
-
const handleSelectColor = (color, custom = false) => {
|
|
224
|
-
customColorChecked.value = custom;
|
|
225
|
-
emit("update:color", color);
|
|
226
|
-
onFieldChange();
|
|
227
|
-
};
|
|
228
|
-
const handleCustomColorChange = () => {
|
|
229
|
-
if (customColorChecked.value) {
|
|
230
|
-
emit("update:color", customColor.value);
|
|
231
|
-
onFieldChange();
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
const handleSelectBackground = (color, custom = false) => {
|
|
235
|
-
customBackgroundChecked.value = custom;
|
|
236
|
-
emit("update:background", color);
|
|
237
|
-
onFieldChange();
|
|
238
|
-
};
|
|
239
|
-
const handleCustomBackgroundChange = () => {
|
|
240
|
-
if (customBackgroundChecked.value) {
|
|
241
|
-
emit("update:background", customBackground.value);
|
|
242
|
-
onFieldChange();
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
return (_ctx, _cache) => {
|
|
246
|
-
const _component_a_input = resolveComponent("a-input");
|
|
247
|
-
const _component_a_tree = resolveComponent("a-tree");
|
|
248
|
-
const _component_overlayScrollbarsComponent = resolveComponent("overlayScrollbarsComponent");
|
|
249
|
-
const _component_CheckOutlined = resolveComponent("CheckOutlined");
|
|
250
|
-
const _component_a_empty = resolveComponent("a-empty");
|
|
251
|
-
const _component_a_spin = resolveComponent("a-spin");
|
|
252
|
-
const _component_a_popover = resolveComponent("a-popover");
|
|
253
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
254
|
-
createVNode(_component_a_popover, {
|
|
255
|
-
placement: "bottomLeft",
|
|
256
|
-
trigger: "click",
|
|
257
|
-
"overlay-class-name": "icon-picker-next__popover",
|
|
258
|
-
onVisibleChange: handleVisibleChange
|
|
259
|
-
}, {
|
|
260
|
-
content: withCtx(() => [
|
|
261
|
-
createElementVNode("div", _hoisted_2, [
|
|
262
|
-
createVNode(_component_a_input, {
|
|
263
|
-
value: searchKey.value,
|
|
264
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
|
|
265
|
-
class: "icon-picker-next__search",
|
|
266
|
-
placeholder: "搜索图标",
|
|
267
|
-
"allow-clear": "",
|
|
268
|
-
onChange: _cache[1] || (_cache[1] = (e) => {
|
|
269
|
-
spinning.value = true;
|
|
270
|
-
unref(handleSearchKeyChange)(e);
|
|
271
|
-
})
|
|
272
|
-
}, {
|
|
273
|
-
prefix: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
274
|
-
createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
|
|
275
|
-
])]),
|
|
276
|
-
_: 1
|
|
277
|
-
}, 8, ["value"])
|
|
278
|
-
]),
|
|
279
|
-
createVNode(_component_a_spin, { spinning: spinning.value }, {
|
|
280
|
-
default: withCtx(() => [
|
|
281
|
-
createElementVNode("div", _hoisted_3, [
|
|
282
|
-
createElementVNode("div", _hoisted_4, [
|
|
283
|
-
createVNode(_component_overlayScrollbarsComponent, {
|
|
284
|
-
ref_key: "TreeScrollRef",
|
|
285
|
-
ref: TreeScrollRef
|
|
286
|
-
}, {
|
|
287
|
-
default: withCtx(() => [
|
|
288
|
-
catTree.value.length > 0 ? (openBlock(), createBlock(_component_a_tree, {
|
|
289
|
-
key: 0,
|
|
290
|
-
"selected-keys": selectedKeys.value,
|
|
291
|
-
"default-expand-all": "",
|
|
292
|
-
"block-node": "",
|
|
293
|
-
"field-names": {
|
|
294
|
-
children: "children",
|
|
295
|
-
title: "name",
|
|
296
|
-
key: "id"
|
|
297
|
-
},
|
|
298
|
-
"tree-data": catTree.value
|
|
299
|
-
}, {
|
|
300
|
-
title: withCtx(({ data }) => [
|
|
301
|
-
createElementVNode("div", {
|
|
302
|
-
class: "ell",
|
|
303
|
-
title: data.name,
|
|
304
|
-
"data-id": data.id,
|
|
305
|
-
onClick: ($event) => handleCategoryClick(data)
|
|
306
|
-
}, toDisplayString(data.name), 9, _hoisted_5)
|
|
307
|
-
]),
|
|
308
|
-
_: 1
|
|
309
|
-
}, 8, ["selected-keys", "tree-data"])) : createCommentVNode("", true)
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
}, 512)
|
|
313
|
-
]),
|
|
314
|
-
createElementVNode("div", _hoisted_6, [
|
|
315
|
-
catIcons.value?.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
316
|
-
createElementVNode("div", _hoisted_7, [
|
|
317
|
-
createVNode(_component_overlayScrollbarsComponent, {
|
|
318
|
-
ref_key: "IconsScrollRef",
|
|
319
|
-
ref: IconsScrollRef
|
|
320
|
-
}, {
|
|
321
|
-
default: withCtx(() => [
|
|
322
|
-
createElementVNode("ul", _hoisted_8, [
|
|
323
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(catIcons.value, (icon) => {
|
|
324
|
-
return openBlock(), createElementBlock("li", {
|
|
325
|
-
key: icon.name,
|
|
326
|
-
style: normalizeStyle({
|
|
327
|
-
"--background": __props.background || unref(themeSetting).themeColor
|
|
328
|
-
}),
|
|
329
|
-
class: normalizeClass({
|
|
330
|
-
"icon-picker-next--selected": icon.id === __props.value
|
|
331
|
-
}),
|
|
332
|
-
title: icon.name,
|
|
333
|
-
"data-id": icon.id,
|
|
334
|
-
onClick: ($event) => handleIconClick(icon.id)
|
|
335
|
-
}, [
|
|
336
|
-
createVNode(IconNext, {
|
|
337
|
-
value: icon.id,
|
|
338
|
-
color: icon.id === __props.value ? __props.color : DEFAULT_COLOR
|
|
339
|
-
}, null, 8, ["value", "color"])
|
|
340
|
-
], 14, _hoisted_9);
|
|
341
|
-
}), 128))
|
|
342
|
-
])
|
|
343
|
-
]),
|
|
344
|
-
_: 1
|
|
345
|
-
}, 512)
|
|
346
|
-
]),
|
|
347
|
-
__props.showBackground ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
348
|
-
_cache[7] || (_cache[7] = createElementVNode("div", { class: "color__title" }, "背景颜色", -1)),
|
|
349
|
-
createElementVNode("div", _hoisted_11, [
|
|
350
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(ICON_BACKGROUND, (colorItem) => {
|
|
351
|
-
return createElementVNode("span", {
|
|
352
|
-
key: colorItem,
|
|
353
|
-
class: normalizeClass(["color__item", "color__item--" + colorItem]),
|
|
354
|
-
style: normalizeStyle({ backgroundColor: colorItem }),
|
|
355
|
-
onClick: () => handleSelectBackground(colorItem)
|
|
356
|
-
}, [
|
|
357
|
-
__props.background === colorItem ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)
|
|
358
|
-
], 14, _hoisted_12);
|
|
359
|
-
}), 64))
|
|
360
|
-
]),
|
|
361
|
-
createElementVNode("div", _hoisted_13, [
|
|
362
|
-
createElementVNode("div", {
|
|
363
|
-
class: "color__preview",
|
|
364
|
-
style: normalizeStyle({
|
|
365
|
-
"--custom-bg": customBackground.value
|
|
366
|
-
}),
|
|
367
|
-
onClick: _cache[2] || (_cache[2] = () => handleSelectBackground(customBackground.value, true))
|
|
368
|
-
}, [
|
|
369
|
-
customBackgroundChecked.value ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)
|
|
370
|
-
], 4),
|
|
371
|
-
withDirectives(createElementVNode("input", {
|
|
372
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => customBackground.value = $event),
|
|
373
|
-
type: "text",
|
|
374
|
-
onBlur: handleCustomBackgroundChange
|
|
375
|
-
}, null, 544), [
|
|
376
|
-
[vModelText, customBackground.value]
|
|
377
|
-
])
|
|
378
|
-
])
|
|
379
|
-
])) : createCommentVNode("", true),
|
|
380
|
-
__props.showColor && supportColor.value ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
381
|
-
_cache[8] || (_cache[8] = createElementVNode("div", { class: "color__title" }, "图标色", -1)),
|
|
382
|
-
createElementVNode("div", _hoisted_15, [
|
|
383
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(ICON_COLOR, (colorItem) => {
|
|
384
|
-
return createElementVNode("span", {
|
|
385
|
-
key: colorItem,
|
|
386
|
-
class: "color__item",
|
|
387
|
-
style: normalizeStyle({ backgroundColor: colorItem }),
|
|
388
|
-
onClick: () => handleSelectColor(colorItem)
|
|
389
|
-
}, [
|
|
390
|
-
__props.color === colorItem ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)
|
|
391
|
-
], 12, _hoisted_16);
|
|
392
|
-
}), 64))
|
|
393
|
-
]),
|
|
394
|
-
createElementVNode("div", _hoisted_17, [
|
|
395
|
-
createElementVNode("div", {
|
|
396
|
-
class: "color__preview",
|
|
397
|
-
style: normalizeStyle({
|
|
398
|
-
"--custom-bg": customColor.value
|
|
399
|
-
}),
|
|
400
|
-
onClick: _cache[4] || (_cache[4] = () => handleSelectColor(customColor.value, true))
|
|
401
|
-
}, [
|
|
402
|
-
customColorChecked.value ? (openBlock(), createBlock(_component_CheckOutlined, { key: 0 })) : createCommentVNode("", true)
|
|
403
|
-
], 4),
|
|
404
|
-
withDirectives(createElementVNode("input", {
|
|
405
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => customColor.value = $event),
|
|
406
|
-
type: "text",
|
|
407
|
-
onBlur: handleCustomColorChange
|
|
408
|
-
}, null, 544), [
|
|
409
|
-
[vModelText, customColor.value]
|
|
410
|
-
])
|
|
411
|
-
])
|
|
412
|
-
])) : createCommentVNode("", true)
|
|
413
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
414
|
-
createVNode(_component_a_empty, {
|
|
415
|
-
image: unref(Empty).PRESENTED_IMAGE_SIMPLE,
|
|
416
|
-
description: null
|
|
417
|
-
}, null, 8, ["image"])
|
|
418
|
-
]))
|
|
419
|
-
])
|
|
420
|
-
])
|
|
421
|
-
]),
|
|
422
|
-
_: 1
|
|
423
|
-
}, 8, ["spinning"])
|
|
424
|
-
]),
|
|
425
|
-
default: withCtx(() => [
|
|
426
|
-
createElementVNode("div", {
|
|
427
|
-
class: normalizeClass(["icon-picker-next__trigger cursor-pointer", {
|
|
428
|
-
"icon-picker-next--selected": __props.value
|
|
429
|
-
}]),
|
|
430
|
-
style: normalizeStyle({
|
|
431
|
-
"--background": __props.background || unref(themeSetting).themeColor
|
|
432
|
-
})
|
|
433
|
-
}, [
|
|
434
|
-
__props.value ? (openBlock(), createBlock(IconNext, {
|
|
435
|
-
key: 0,
|
|
436
|
-
value: __props.value,
|
|
437
|
-
size: __props.size,
|
|
438
|
-
color: __props.color
|
|
439
|
-
}, null, 8, ["value", "size", "color"])) : createCommentVNode("", true),
|
|
440
|
-
_cache[9] || (_cache[9] = createElementVNode("div", null, [
|
|
441
|
-
createElementVNode("i", { class: "iconfont icon-bianji" })
|
|
442
|
-
], -1))
|
|
443
|
-
], 6)
|
|
444
|
-
]),
|
|
445
|
-
_: 1
|
|
446
|
-
})
|
|
447
|
-
]);
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
export { _sfc_main as default };
|