@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
package/dist/index.esm.min.mjs
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { A as l, b as n, a as m, B as i, C, c as F, d, e as u, E as T, f as I, g as p, h as c, i as E, F as S, j as b, k as g, l as G, n as M, o as R, p as D, q as L, r as B, s as P, t as y, u as A, v as _, w as O, x as h, y as v, z as N, D as V, G as w, H as U, I as W, J as x, K as J, L as f, M as k, N as H, O as j, P as q, Q as K, R as z, S as Q, U as X, V as Y, W as Z, X as $, Y as aa, Z as ea, $ as oa, a0 as sa, a1 as ta, a2 as ra, a3 as la, a4 as na, T as ma, a5 as ia, a6 as Ca, a7 as Fa, a8 as da, a9 as ua, aa as Ta, ab as Ia, m as pa, ac as ca, ad as Ea, ae as Sa, af as ba, ag as ga, ah as Ga, ai as Ma, aj as Ra, ak as Da, al as La, am as Ba, an as Pa, ao as ya, ap as Aa, aq as _a, ar as Oa, as as ha, at as va, au as Na } from "./index-Cna4DZog.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "lodash-es";
|
|
4
|
-
import "@gct-paas/core";
|
|
5
|
-
import "ant-design-vue";
|
|
6
|
-
export {
|
|
7
|
-
l as AssetsSvgIcon,
|
|
8
|
-
n as BaseButton,
|
|
9
|
-
m as BasicButton,
|
|
10
|
-
i as BasicModal,
|
|
11
|
-
C as CodeEditor,
|
|
12
|
-
F as ColorPicker,
|
|
13
|
-
d as CopyModuleKey,
|
|
14
|
-
u as DoubleInput,
|
|
15
|
-
T as EditFormController,
|
|
16
|
-
I as EditorController,
|
|
17
|
-
p as EditorRegister,
|
|
18
|
-
c as EditorRegisterConst,
|
|
19
|
-
E as EditorType,
|
|
20
|
-
S as FORM_CONTROLLER_INJECT_TAG,
|
|
21
|
-
b as FormCollapseController,
|
|
22
|
-
g as FormCollapsePaneController,
|
|
23
|
-
G as FormCollapsePaneState,
|
|
24
|
-
M as FormCollapseState,
|
|
25
|
-
R as FormEditItemController,
|
|
26
|
-
D as FormEditItemState,
|
|
27
|
-
L as FormGroupController,
|
|
28
|
-
B as FormGroupState,
|
|
29
|
-
P as FormHiddenItemController,
|
|
30
|
-
y as FormItemBasicController,
|
|
31
|
-
A as FormItemBasicState,
|
|
32
|
-
_ as FormItemController,
|
|
33
|
-
O as FormItemRegister,
|
|
34
|
-
h as FormItemState,
|
|
35
|
-
v as FormLineController,
|
|
36
|
-
N as FormLineState,
|
|
37
|
-
V as FormState,
|
|
38
|
-
w as FormTabController,
|
|
39
|
-
U as FormTabPaneController,
|
|
40
|
-
W as FormTabPaneState,
|
|
41
|
-
x as FormTabState,
|
|
42
|
-
J as GCT_DND_INSERT_POS,
|
|
43
|
-
f as GctDndContainer,
|
|
44
|
-
k as GctDndDropLine,
|
|
45
|
-
H as GctDndItem,
|
|
46
|
-
j as GctFormController,
|
|
47
|
-
q as GctTableController,
|
|
48
|
-
K as Lang,
|
|
49
|
-
z as MessageUtil,
|
|
50
|
-
Q as MonacoEditor,
|
|
51
|
-
X as OverlayController,
|
|
52
|
-
Y as Prop,
|
|
53
|
-
Z as SvgIcon,
|
|
54
|
-
$ as TableActionItemController,
|
|
55
|
-
aa as TableEditItemController,
|
|
56
|
-
ea as TableEditItemState,
|
|
57
|
-
oa as TableEditorRegister,
|
|
58
|
-
sa as TableITemState,
|
|
59
|
-
ta as TableItemController,
|
|
60
|
-
ra as TableRowController,
|
|
61
|
-
la as TableRowState,
|
|
62
|
-
na as TableState,
|
|
63
|
-
ma as Theme,
|
|
64
|
-
ia as UseDragByLine,
|
|
65
|
-
Ca as ViewContainer,
|
|
66
|
-
Fa as WUJIE_FORMULA_EVENTS,
|
|
67
|
-
da as WuJieContainer,
|
|
68
|
-
ua as coreWebCreateAppVue,
|
|
69
|
-
Ta as coreWebSetupApp,
|
|
70
|
-
Ia as gctFormItemEditorProps,
|
|
71
|
-
pa as monacoLoader,
|
|
72
|
-
ca as openFormulaEditor,
|
|
73
|
-
Ea as overlay,
|
|
74
|
-
Sa as useAntTableScrollHeight,
|
|
75
|
-
ba as useDesign,
|
|
76
|
-
ga as useEditFormController,
|
|
77
|
-
Ga as useEditorConsole,
|
|
78
|
-
Ma as useEditorConsoleInner,
|
|
79
|
-
Ra as useForm,
|
|
80
|
-
Da as useFormItemController,
|
|
81
|
-
La as useGctFormValue,
|
|
82
|
-
Ba as useGctFormValueByText,
|
|
83
|
-
Pa as useLocale,
|
|
84
|
-
ya as useModal,
|
|
85
|
-
Aa as useModalContext,
|
|
86
|
-
_a as useModalDragMove,
|
|
87
|
-
Oa as useModalInner,
|
|
88
|
-
ha as useTableController,
|
|
89
|
-
va as useTheme,
|
|
90
|
-
Na as withInstall
|
|
91
|
-
};
|
package/dist/index.min.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B8zoAUhR.cjs");require("vue");require("lodash-es");require("@gct-paas/core");require("ant-design-vue");exports.AssetsSvgIcon=e.AssetsSvgIcon;exports.BaseButton=e.baseButton;exports.BasicButton=e.basicButton;exports.BasicModal=e.BasicModal;exports.CodeEditor=e.CodeEditor;exports.ColorPicker=e.ColorPicker;exports.CopyModuleKey=e.copyModuleKey;exports.DoubleInput=e._sfc_main;exports.EditFormController=e.EditFormController;exports.EditorController=e.EditorController;exports.EditorRegister=e.EditorRegister;exports.EditorRegisterConst=e.EditorRegisterConst;exports.EditorType=e.EditorType;exports.FORM_CONTROLLER_INJECT_TAG=e.FORM_CONTROLLER_INJECT_TAG;exports.FormCollapseController=e.FormCollapseController;exports.FormCollapsePaneController=e.FormCollapsePaneController;exports.FormCollapsePaneState=e.FormCollapsePaneState;exports.FormCollapseState=e.FormCollapseState;exports.FormEditItemController=e.FormEditItemController;exports.FormEditItemState=e.FormEditItemState;exports.FormGroupController=e.FormGroupController;exports.FormGroupState=e.FormGroupState;exports.FormHiddenItemController=e.FormHiddenItemController;exports.FormItemBasicController=e.FormItemBasicController;exports.FormItemBasicState=e.FormItemBasicState;exports.FormItemController=e.FormItemController;exports.FormItemRegister=e.FormItemRegister;exports.FormItemState=e.FormItemState;exports.FormLineController=e.FormLineController;exports.FormLineState=e.FormLineState;exports.FormState=e.FormState;exports.FormTabController=e.FormTabController;exports.FormTabPaneController=e.FormTabPaneController;exports.FormTabPaneState=e.FormTabPaneState;exports.FormTabState=e.FormTabState;exports.GCT_DND_INSERT_POS=e.GCT_DND_INSERT_POS;exports.GctDndContainer=e.GctDndContainer;exports.GctDndDropLine=e.GctDndDropLine;exports.GctDndItem=e.GctDndItem;exports.GctFormController=e.GctFormController;exports.GctTableController=e.GctTableController;exports.Lang=e.Lang;exports.MessageUtil=e.MessageUtil;exports.MonacoEditor=e.MonacoEditor;exports.OverlayController=e.OverlayController;exports.Prop=e.Prop;exports.SvgIcon=e._sfc_main$1;exports.TableActionItemController=e.TableActionItemController;exports.TableEditItemController=e.TableEditItemController;exports.TableEditItemState=e.TableEditItemState;exports.TableEditorRegister=e.TableEditorRegister;exports.TableITemState=e.TableITemState;exports.TableItemController=e.TableItemController;exports.TableRowController=e.TableRowController;exports.TableRowState=e.TableRowState;exports.TableState=e.TableState;exports.Theme=e.Theme;exports.UseDragByLine=e.UseDragByLine;exports.ViewContainer=e.ViewContainer;exports.WUJIE_FORMULA_EVENTS=e.WUJIE_FORMULA_EVENTS;exports.WuJieContainer=e.WuJieContainer;exports.coreWebCreateAppVue=e.coreWebCreateAppVue;exports.coreWebSetupApp=e.coreWebSetupApp;exports.gctFormItemEditorProps=e.gctFormItemEditorProps;exports.monacoLoader=e.monacoLoader;exports.openFormulaEditor=e.openFormulaEditor;exports.overlay=e.overlay;exports.useAntTableScrollHeight=e.useAntTableScrollHeight;exports.useDesign=e.useDesign;exports.useEditFormController=e.useEditFormController;exports.useEditorConsole=e.useEditorConsole;exports.useEditorConsoleInner=e.useEditorConsoleInner;exports.useForm=e.useForm;exports.useFormItemController=e.useFormItemController;exports.useGctFormValue=e.useGctFormValue;exports.useGctFormValueByText=e.useGctFormValueByText;exports.useLocale=e.useLocale;exports.useModal=e.useModal;exports.useModalContext=e.useModalContext;exports.useModalDragMove=e.useModalDragMove;exports.useModalInner=e.useModalInner;exports.useTableController=e.useTableController;exports.useTheme=e.useTheme;exports.withInstall=e.withInstall;
|
package/dist/index.system.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./index-BH5PTZ_c.js","vue","lodash-es","@gct-paas/core","ant-design-vue"],(function(r,a){"use strict";return{setters:[t=>{r({AssetsSvgIcon:t.A,BaseButton:t.b,BasicButton:t.a,BasicModal:t.B,CodeEditor:t.C,ColorPicker:t.c,CopyModuleKey:t.d,DoubleInput:t.e,EditFormController:t.E,EditorController:t.f,EditorRegister:t.g,EditorRegisterConst:t.h,EditorType:t.i,FORM_CONTROLLER_INJECT_TAG:t.F,FormCollapseController:t.j,FormCollapsePaneController:t.k,FormCollapsePaneState:t.l,FormCollapseState:t.n,FormEditItemController:t.o,FormEditItemState:t.p,FormGroupController:t.q,FormGroupState:t.r,FormHiddenItemController:t.s,FormItemBasicController:t.t,FormItemBasicState:t.u,FormItemController:t.v,FormItemRegister:t.w,FormItemState:t.x,FormLineController:t.y,FormLineState:t.z,FormState:t.D,FormTabController:t.G,FormTabPaneController:t.H,FormTabPaneState:t.I,FormTabState:t.J,GCT_DND_INSERT_POS:t.K,GctDndContainer:t.L,GctDndDropLine:t.M,GctDndItem:t.N,GctFormController:t.O,GctTableController:t.P,Lang:t.Q,MessageUtil:t.R,MonacoEditor:t.S,OverlayController:t.U,Prop:t.V,SvgIcon:t.W,TableActionItemController:t.X,TableEditItemController:t.Y,TableEditItemState:t.Z,TableEditorRegister:t.$,TableITemState:t.a0,TableItemController:t.a1,TableRowController:t.a2,TableRowState:t.a3,TableState:t.a4,Theme:t.T,UseDragByLine:t.a5,ViewContainer:t.a6,WUJIE_FORMULA_EVENTS:t.a7,WuJieContainer:t.a8,coreWebCreateAppVue:t.a9,coreWebSetupApp:t.aa,gctFormItemEditorProps:t.ab,monacoLoader:t.m,openFormulaEditor:t.ac,overlay:t.ad,useAntTableScrollHeight:t.ae,useDesign:t.af,useEditFormController:t.ag,useEditorConsole:t.ah,useEditorConsoleInner:t.ai,useForm:t.aj,useFormItemController:t.ak,useGctFormValue:t.al,useGctFormValueByText:t.am,useLocale:t.an,useModal:t.ao,useModalContext:t.ap,useModalDragMove:t.aq,useModalInner:t.ar,useTableController:t.as,useTheme:t.at,withInstall:t.au})},null,null,null,null],execute:(function(){})}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("@ant-design/icons-vue"),C=require("./index-B8zoAUhR.cjs"),X=require("sql-formatter");require("ant-design-vue");require("lodash-es");require("@gct-paas/core");const Y={class:"hex-monaco-editor m-e w-full h-full overflow-hidden"},Z={class:"m-e-main"},ee=e.defineComponent({__name:"monaco-editor",props:{value:{default:""},title:{default:""},language:{default:"typescript"},theme:{default:C.Theme.DARK},readonly:{type:Boolean,default:!1},direction:{default:"bottom"},gapVal:{default:20}},emits:["update:value","change","editor-mounted","blur","focus","chat-bot-click"],setup(M,{expose:N,emit:S}){const l=M,k=e.ref(!1);let i=null;e.watch(()=>l.language,async o=>{t&&t.getModel()&&i&&i.editor.setModelLanguage(t.getModel(),o)});const n=S,d=e.ref();let t;const g=e.ref(!0),E=e.ref(!1),u=e.ref(!1),p=e.ref(!1),w=e.ref(!1),B=e.computed(()=>({color:u.value?"#000":"#fff",marginRight:l.gapVal+"px"}));l.theme===C.Theme.VS&&(u.value=!0);let O={value:l.value??"",language:l.language,automaticLayout:!0,theme:l.theme,readOnly:l.readonly,wordWrap:g.value?"on":"off",scrollBeyondLastLine:!1,minimap:{enabled:!0},tabSize:2,autoClosingBrackets:"always",autoClosingDelete:"always",autoClosingOvertype:"always",autoClosingQuotes:"always",comments:{ignoreEmptyLines:!0,insertSpace:!0},columnSelection:!1,folding:!0,fixedOverflowWidgets:!0,hover:{sticky:!0,above:!1}};async function R(){i=await C.monacoLoader.loadMonaco(),L(),T(),l.value&&y()}async function q(){await _api.apaas.basicConfig.getAiRagEnabled()==!0?w.value=!0:w.value=!1}function T(){if(!i){console.warn("[MonacoEditor] Monaco editor is not available for initEditor");return}t=i.editor.create(d.value,O),l.direction==="bottom"?b():l.direction==="top"&&h(),t.onDidChangeModelContent(()=>{n("change",a()),n("update:value",a())}),t.onDidBlurEditorText(()=>{n("blur",a()),n("update:value",a())}),t.onDidFocusEditorText(()=>{n("focus")}),k.value=!0,n("editor-mounted",t)}function x(o){t.setValue(o),n("change",a()),n("update:value",a())}function a(){return t.getValue()}function D(){if(!i)return console.warn("[MonacoEditor] Monaco editor is not available for getEditorMarkers"),[];const o=t.getModel();return o?i.editor.getModelMarkers({resource:o.uri}):[]}function F(){if(!i){console.warn("[MonacoEditor] Monaco editor is not available for findByKeyword");return}try{t.focus(),t.setSelection(new i.Range(1,9999,1,1e4)),t.trigger("","actions.find",null)}catch(o){console.error(o)}}function h(){t.setScrollPosition({scrollTop:0})}function b(){t.revealLine(t.getModel().getLineCount())}function W(){g.value=!g.value,g.value?t.updateOptions({wordWrap:"on"}):t.updateOptions({wordWrap:"off"})}function A(){u.value=!u.value,u.value?t.updateOptions({theme:"vs"}):t.updateOptions({theme:"vs-dark"})}function I(){d.value.fullscreenElement?(d.value.exitFullscreen(),E.value=!1):(d.value.requestFullscreen(),E.value=!0)}function V(){z(l.title,t.getValue())}function z(o,c){const r=window.URL||window.webkitURL||window,f=new Blob([c]),v=document.createEvent("MouseEvents");v.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null);const m=document.createElementNS("http://www.w3.org/1999/xhtml","a");m.href=r.createObjectURL(f),m.download=o,m.dispatchEvent(v)}function y(){if(l.language=="sql"){const c=a(),r=X.format(c);t.setValue(r)}else t.getAction("editor.action.formatDocument").run();const o=a();n("change",o),n("update:value",o)}function U(){x("")}function _(){p.value=!p.value,n("chat-bot-click")}function L(){t&&t.dispose()}function j(){return t}e.onMounted(()=>{R()}),e.onUnmounted(()=>{L()});function K(o){const c=t.getModel();if(!c)return;const r=c.getFullModelRange();t.executeEdits("setValue",[{range:r,text:o,forceMoveMarkers:!1}]),n("change",a()),n("update:value",a())}function P(){return t.getValue()}function $(){const o=t.getSelection();if(o){const c=t.getModel()?.getValueInRange(o),r=o.startLineNumber,f=o.startColumn,v=o.endLineNumber,m=o.endColumn,Q={startLineNumber:1,startColumn:1,endLineNumber:r,endColumn:f},G=t.getModel().getValueInRange(Q),H={startLineNumber:v,startColumn:m,endLineNumber:t.getModel().getLineCount(),endColumn:t.getModel().getLineMaxColumn(t.getModel().getLineCount())},J=t.getModel().getValueInRange(H);return{text:c,textBefore:G,textAfter:J}}return{}}return q(),N({isMonacoReady:k,reload(o){if(t==null){console.warn("[MonacoEditor] Monaco editor is not available for reload");return}t.setValue(o||"")},getMonacoEditor:j,setEditorContent:x,getEditorContent:a,scrollToTop:h,scrollToBottom:b,setEditorWordWrap:W,setEditorTheme:A,handleFullScreenClick:I,handleDownloadLogClick:V,getEditorMarkers:D,handleFormatCodeClick:y,getValue:P,setValue:K,getSelectCode:$,isChatBotActive:p,handleChatBotClick:_}),(o,c)=>{const r=e.resolveComponent("a-col"),f=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",Y,[e.renderSlot(o.$slots,"header",{},void 0,!0),e.createElementVNode("div",Z,[e.createVNode(f,{class:"m-e-main_toolbar w-full flex",type:"flex",justify:"space-between",style:e.normalizeStyle(u.value?"background-color: #fff; box-shadow: 0px 2px 5px #ddd;":"background-color: #1e1e1e; box-shadow: 0px 2px 5px #111;")},{default:e.withCtx(()=>[e.createVNode(r,{class:"m-e-main_toolbar_left flex-1",style:e.normalizeStyle(u.value?"color: #000":"color: #fff")},{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(M.title),1)],!0)])]),_:3},8,["style"]),e.createVNode(r,{class:"m-e-main_toolbar_right",style:e.normalizeStyle(B.value)},{default:e.withCtx(()=>[e.createVNode(e.unref(s.SearchOutlined),{class:"icon",onClick:F}),e.createVNode(e.unref(s.UpCircleOutlined),{class:"icon",onClick:h}),e.createVNode(e.unref(s.DownCircleOutlined),{class:"icon",onClick:b}),e.createVNode(e.unref(s.FormatPainterOutlined),{class:"icon",onClick:y}),e.createVNode(e.unref(s.CloudDownloadOutlined),{class:"icon",onClick:V}),e.createVNode(e.unref(s.ClearOutlined),{class:"icon",onClick:U}),w.value?(e.openBlock(),e.createBlock(e.unref(s.RobotOutlined),{key:0,title:"聊天机器人",class:e.normalizeClass(["icon",{"icon-active":p.value}]),onClick:_},null,8,["class"])):e.createCommentVNode("",!0)]),_:1},8,["style"])]),_:3},8,["style"]),e.createElementVNode("div",{ref_key:"Editor",ref:d,class:"m-e-main_container"},null,512)]),e.renderSlot(o.$slots,"footer",{},void 0,!0)])}}}),te=C._export_sfc(ee,[["__scopeId","data-v-254c9227"]]);exports.default=te;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ant-design/icons-vue","./index-BH5PTZ_c.js","sql-formatter","ant-design-vue","lodash-es","@gct-paas/core"],(function(ae,Oe){"use strict";var S,u,B,R,N,D,k,x,T,v,C,i,w,h,F,U,d,W,A,q,z,I,j,K,P,$,Q,E,G,H,J;return{setters:[t=>{S=t.defineComponent,u=t.ref,B=t.watch,R=t.computed,N=t.onMounted,D=t.onUnmounted,k=t.resolveComponent,x=t.openBlock,T=t.createElementBlock,v=t.renderSlot,C=t.createElementVNode,i=t.createVNode,w=t.normalizeStyle,h=t.withCtx,F=t.createTextVNode,U=t.toDisplayString,d=t.unref,W=t.createBlock,A=t.normalizeClass,q=t.createCommentVNode},t=>{z=t.SearchOutlined,I=t.UpCircleOutlined,j=t.DownCircleOutlined,K=t.FormatPainterOutlined,P=t.CloudDownloadOutlined,$=t.ClearOutlined,Q=t.RobotOutlined},t=>{E=t.T,G=t.m,H=t._},t=>{J=t.format},null,null,null],execute:(function(){const t={class:"hex-monaco-editor m-e w-full h-full overflow-hidden"},le={class:"m-e-main"},ie=S({__name:"monaco-editor",props:{value:{default:""},title:{default:""},language:{default:"typescript"},theme:{default:E.DARK},readonly:{type:Boolean,default:!1},direction:{default:"bottom"},gapVal:{default:20}},emits:["update:value","change","editor-mounted","blur","focus","chat-bot-click"],setup(X,{expose:re,emit:ce}){const a=X,Y=u(!1);let c=null;B(()=>a.language,async o=>{e&&e.getModel()&&c&&c.editor.setModelLanguage(e.getModel(),o)});const n=ce,g=u();let e;const b=u(!0),Z=u(!1),f=u(!1),y=u(!1),_=u(!1),se=R(()=>({color:f.value?"#000":"#fff",marginRight:a.gapVal+"px"}));a.theme===E.VS&&(f.value=!0);let ue={value:a.value??"",language:a.language,automaticLayout:!0,theme:a.theme,readOnly:a.readonly,wordWrap:b.value?"on":"off",scrollBeyondLastLine:!1,minimap:{enabled:!0},tabSize:2,autoClosingBrackets:"always",autoClosingDelete:"always",autoClosingOvertype:"always",autoClosingQuotes:"always",comments:{ignoreEmptyLines:!0,insertSpace:!0},columnSelection:!1,folding:!0,fixedOverflowWidgets:!0,hover:{sticky:!0,above:!1}};async function de(){c=await G.loadMonaco(),ne(),ge(),a.value&&O()}async function fe(){await _api.apaas.basicConfig.getAiRagEnabled()==!0?_.value=!0:_.value=!1}function ge(){if(!c){console.warn("[MonacoEditor] Monaco editor is not available for initEditor");return}e=c.editor.create(g.value,ue),a.direction==="bottom"?V():a.direction==="top"&&L(),e.onDidChangeModelContent(()=>{n("change",l()),n("update:value",l())}),e.onDidBlurEditorText(()=>{n("blur",l()),n("update:value",l())}),e.onDidFocusEditorText(()=>{n("focus")}),Y.value=!0,n("editor-mounted",e)}function ee(o){e.setValue(o),n("change",l()),n("update:value",l())}function l(){return e.getValue()}function me(){if(!c)return console.warn("[MonacoEditor] Monaco editor is not available for getEditorMarkers"),[];const o=e.getModel();return o?c.editor.getModelMarkers({resource:o.uri}):[]}function pe(){if(!c){console.warn("[MonacoEditor] Monaco editor is not available for findByKeyword");return}try{e.focus(),e.setSelection(new c.Range(1,9999,1,1e4)),e.trigger("","actions.find",null)}catch(o){console.error(o)}}function L(){e.setScrollPosition({scrollTop:0})}function V(){e.revealLine(e.getModel().getLineCount())}function ve(){b.value=!b.value,b.value?e.updateOptions({wordWrap:"on"}):e.updateOptions({wordWrap:"off"})}function Ce(){f.value=!f.value,f.value?e.updateOptions({theme:"vs"}):e.updateOptions({theme:"vs-dark"})}function we(){g.value.fullscreenElement?(g.value.exitFullscreen(),Z.value=!1):(g.value.requestFullscreen(),Z.value=!0)}function te(){he(a.title,e.getValue())}function he(o,s){const r=window.URL||window.webkitURL||window,m=new Blob([s]),M=document.createEvent("MouseEvents");M.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null);const p=document.createElementNS("http://www.w3.org/1999/xhtml","a");p.href=r.createObjectURL(m),p.download=o,p.dispatchEvent(M)}function O(){if(a.language=="sql"){const s=l(),r=J(s);e.setValue(r)}else e.getAction("editor.action.formatDocument").run();const o=l();n("change",o),n("update:value",o)}function be(){ee("")}function oe(){y.value=!y.value,n("chat-bot-click")}function ne(){e&&e.dispose()}function ye(){return e}N(()=>{de()}),D(()=>{ne()});function Me(o){const s=e.getModel();if(!s)return;const r=s.getFullModelRange();e.executeEdits("setValue",[{range:r,text:o,forceMoveMarkers:!1}]),n("change",l()),n("update:value",l())}function ke(){return e.getValue()}function xe(){const o=e.getSelection();if(o){const s=e.getModel()?.getValueInRange(o),r=o.startLineNumber,m=o.startColumn,M=o.endLineNumber,p=o.endColumn,Ee={startLineNumber:1,startColumn:1,endLineNumber:r,endColumn:m},_e=e.getModel().getValueInRange(Ee),Le={startLineNumber:M,startColumn:p,endLineNumber:e.getModel().getLineCount(),endColumn:e.getModel().getLineMaxColumn(e.getModel().getLineCount())},Ve=e.getModel().getValueInRange(Le);return{text:s,textBefore:_e,textAfter:Ve}}return{}}return fe(),re({isMonacoReady:Y,reload(o){if(e==null){console.warn("[MonacoEditor] Monaco editor is not available for reload");return}e.setValue(o||"")},getMonacoEditor:ye,setEditorContent:ee,getEditorContent:l,scrollToTop:L,scrollToBottom:V,setEditorWordWrap:ve,setEditorTheme:Ce,handleFullScreenClick:we,handleDownloadLogClick:te,getEditorMarkers:me,handleFormatCodeClick:O,getValue:ke,setValue:Me,getSelectCode:xe,isChatBotActive:y,handleChatBotClick:oe}),(o,s)=>{const r=k("a-col"),m=k("a-row");return x(),T("div",t,[v(o.$slots,"header",{},void 0,!0),C("div",le,[i(m,{class:"m-e-main_toolbar w-full flex",type:"flex",justify:"space-between",style:w(f.value?"background-color: #fff; box-shadow: 0px 2px 5px #ddd;":"background-color: #1e1e1e; box-shadow: 0px 2px 5px #111;")},{default:h(()=>[i(r,{class:"m-e-main_toolbar_left flex-1",style:w(f.value?"color: #000":"color: #fff")},{default:h(()=>[C("span",null,[v(o.$slots,"title",{},()=>[F(U(X.title),1)],!0)])]),_:3},8,["style"]),i(r,{class:"m-e-main_toolbar_right",style:w(se.value)},{default:h(()=>[i(d(z),{class:"icon",onClick:pe}),i(d(I),{class:"icon",onClick:L}),i(d(j),{class:"icon",onClick:V}),i(d(K),{class:"icon",onClick:O}),i(d(P),{class:"icon",onClick:te}),i(d($),{class:"icon",onClick:be}),_.value?(x(),W(d(Q),{key:0,title:"聊天机器人",class:A(["icon",{"icon-active":y.value}]),onClick:oe},null,8,["class"])):q("",!0)]),_:1},8,["style"])]),_:3},8,["style"]),C("div",{ref_key:"Editor",ref:g,class:"m-e-main_container"},null,512)]),v(o.$slots,"footer",{},void 0,!0)])}}}),Se=ae("default",H(ie,[["__scopeId","data-v-254c9227"]]))})}}));
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
import { defineComponent as le, ref as u, watch as ae, computed as ie, onMounted as re, onUnmounted as se, resolveComponent as N, openBlock as T, createElementBlock as ce, renderSlot as M, createElementVNode as k, createVNode as s, normalizeStyle as E, withCtx as x, createTextVNode as ue, toDisplayString as de, unref as d, createBlock as fe, normalizeClass as me, createCommentVNode as ge } from "vue";
|
|
2
|
-
import { SearchOutlined as pe, UpCircleOutlined as ve, DownCircleOutlined as Ce, FormatPainterOutlined as we, CloudDownloadOutlined as he, ClearOutlined as be, RobotOutlined as ye } from "@ant-design/icons-vue";
|
|
3
|
-
import { T as D, m as Me, _ as ke } from "./index-Cna4DZog.js";
|
|
4
|
-
import { format as Ee } from "sql-formatter";
|
|
5
|
-
import "ant-design-vue";
|
|
6
|
-
import "lodash-es";
|
|
7
|
-
import "@gct-paas/core";
|
|
8
|
-
const xe = { class: "hex-monaco-editor m-e w-full h-full overflow-hidden" }, _e = { class: "m-e-main" }, Le = /* @__PURE__ */ le({
|
|
9
|
-
__name: "monaco-editor",
|
|
10
|
-
props: {
|
|
11
|
-
value: { default: "" },
|
|
12
|
-
title: { default: "" },
|
|
13
|
-
language: { default: "typescript" },
|
|
14
|
-
theme: { default: D.DARK },
|
|
15
|
-
readonly: { type: Boolean, default: !1 },
|
|
16
|
-
direction: { default: "bottom" },
|
|
17
|
-
gapVal: { default: 20 }
|
|
18
|
-
},
|
|
19
|
-
emits: [
|
|
20
|
-
"update:value",
|
|
21
|
-
"change",
|
|
22
|
-
"editor-mounted",
|
|
23
|
-
"blur",
|
|
24
|
-
"focus",
|
|
25
|
-
"chat-bot-click"
|
|
26
|
-
],
|
|
27
|
-
setup(_, { expose: F, emit: W }) {
|
|
28
|
-
const n = _, L = u(!1);
|
|
29
|
-
let i = null;
|
|
30
|
-
ae(
|
|
31
|
-
() => n.language,
|
|
32
|
-
async (t) => {
|
|
33
|
-
e && e.getModel() && i && i.editor.setModelLanguage(e.getModel(), t);
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
const o = W, f = u();
|
|
37
|
-
let e;
|
|
38
|
-
const p = u(!0), V = u(!1), c = u(!1), v = u(!1), w = u(!1), A = ie(() => ({
|
|
39
|
-
color: c.value ? "#000" : "#fff",
|
|
40
|
-
marginRight: n.gapVal + "px"
|
|
41
|
-
}));
|
|
42
|
-
n.theme === D.VS && (c.value = !0);
|
|
43
|
-
let I = {
|
|
44
|
-
value: n.value ?? "",
|
|
45
|
-
// 编辑器内容
|
|
46
|
-
language: n.language,
|
|
47
|
-
automaticLayout: !0,
|
|
48
|
-
// 是否自动布局
|
|
49
|
-
theme: n.theme,
|
|
50
|
-
readOnly: n.readonly,
|
|
51
|
-
wordWrap: p.value ? "on" : "off",
|
|
52
|
-
// 当单行文本太长时截断换行,true 为换行,false 为不换行
|
|
53
|
-
scrollBeyondLastLine: !1,
|
|
54
|
-
// 滚动完最后一行后再滚动一屏幕
|
|
55
|
-
// 是否开启小地图
|
|
56
|
-
minimap: {
|
|
57
|
-
enabled: !0
|
|
58
|
-
},
|
|
59
|
-
tabSize: 2,
|
|
60
|
-
// tab缩进长度
|
|
61
|
-
autoClosingBrackets: "always",
|
|
62
|
-
// 是否自动添加结束括号(包括中括号) "always" | "languageDefined" | "beforeWhitespace" | "never"
|
|
63
|
-
autoClosingDelete: "always",
|
|
64
|
-
// 是否自动删除结束括号(包括中括号) "always" | "never" | "auto"
|
|
65
|
-
autoClosingOvertype: "always",
|
|
66
|
-
// 是否关闭改写 即使用insert模式时是覆盖后面的文字还是不覆盖后面的文字 "always" | "never" | "auto"
|
|
67
|
-
autoClosingQuotes: "always",
|
|
68
|
-
// 是否自动添加结束的单引号 双引号 "always" | "languageDefined" | "beforeWhitespace" | "never"
|
|
69
|
-
comments: {
|
|
70
|
-
ignoreEmptyLines: !0,
|
|
71
|
-
// 插入行注释时忽略空行。默认为真。
|
|
72
|
-
insertSpace: !0
|
|
73
|
-
// 在行注释标记之后和块注释标记内插入一个空格。默认为真。
|
|
74
|
-
},
|
|
75
|
-
// 注释配置
|
|
76
|
-
columnSelection: !1,
|
|
77
|
-
// 启用列编辑 按下shift键位然后按↑↓键位可以实现列选择 然后实现列编辑
|
|
78
|
-
folding: !0,
|
|
79
|
-
// 是否启用代码折叠
|
|
80
|
-
fixedOverflowWidgets: !0,
|
|
81
|
-
// 超出编辑器大小的使用fixed属性显示
|
|
82
|
-
// 编辑器悬停配置
|
|
83
|
-
hover: {
|
|
84
|
-
sticky: !0,
|
|
85
|
-
// 悬停是否粘滞,可以点击并选择其内容
|
|
86
|
-
above: !1
|
|
87
|
-
// 悬停是否应该显示在直线上方
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
async function U() {
|
|
91
|
-
i = await Me.loadMonaco(), O(), z(), n.value && y();
|
|
92
|
-
}
|
|
93
|
-
async function q() {
|
|
94
|
-
await _api.apaas.basicConfig.getAiRagEnabled() == !0 ? w.value = !0 : w.value = !1;
|
|
95
|
-
}
|
|
96
|
-
function z() {
|
|
97
|
-
if (!i) {
|
|
98
|
-
console.warn(
|
|
99
|
-
"[MonacoEditor] Monaco editor is not available for initEditor"
|
|
100
|
-
);
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
e = i.editor.create(f.value, I), n.direction === "bottom" ? b() : n.direction === "top" && h(), e.onDidChangeModelContent(() => {
|
|
104
|
-
o("change", l()), o("update:value", l());
|
|
105
|
-
}), e.onDidBlurEditorText(() => {
|
|
106
|
-
o("blur", l()), o("update:value", l());
|
|
107
|
-
}), e.onDidFocusEditorText(() => {
|
|
108
|
-
o("focus");
|
|
109
|
-
}), L.value = !0, o("editor-mounted", e);
|
|
110
|
-
}
|
|
111
|
-
function R(t) {
|
|
112
|
-
e.setValue(t), o("change", l()), o("update:value", l());
|
|
113
|
-
}
|
|
114
|
-
function l() {
|
|
115
|
-
return e.getValue();
|
|
116
|
-
}
|
|
117
|
-
function K() {
|
|
118
|
-
if (!i)
|
|
119
|
-
return console.warn(
|
|
120
|
-
"[MonacoEditor] Monaco editor is not available for getEditorMarkers"
|
|
121
|
-
), [];
|
|
122
|
-
const t = e.getModel();
|
|
123
|
-
return t ? i.editor.getModelMarkers({ resource: t.uri }) : [];
|
|
124
|
-
}
|
|
125
|
-
function $() {
|
|
126
|
-
if (!i) {
|
|
127
|
-
console.warn(
|
|
128
|
-
"[MonacoEditor] Monaco editor is not available for findByKeyword"
|
|
129
|
-
);
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
try {
|
|
133
|
-
e.focus(), e.setSelection(new i.Range(1, 9999, 1, 1e4)), e.trigger("", "actions.find", null);
|
|
134
|
-
} catch (t) {
|
|
135
|
-
console.error(t);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function h() {
|
|
139
|
-
e.setScrollPosition({ scrollTop: 0 });
|
|
140
|
-
}
|
|
141
|
-
function b() {
|
|
142
|
-
e.revealLine(e.getModel().getLineCount());
|
|
143
|
-
}
|
|
144
|
-
function j() {
|
|
145
|
-
p.value = !p.value, p.value ? e.updateOptions({ wordWrap: "on" }) : e.updateOptions({ wordWrap: "off" });
|
|
146
|
-
}
|
|
147
|
-
function P() {
|
|
148
|
-
c.value = !c.value, c.value ? e.updateOptions({ theme: "vs" }) : e.updateOptions({ theme: "vs-dark" });
|
|
149
|
-
}
|
|
150
|
-
function Q() {
|
|
151
|
-
f.value.fullscreenElement ? (f.value.exitFullscreen(), V.value = !1) : (f.value.requestFullscreen(), V.value = !0);
|
|
152
|
-
}
|
|
153
|
-
function S() {
|
|
154
|
-
G(n.title, e.getValue());
|
|
155
|
-
}
|
|
156
|
-
function G(t, r) {
|
|
157
|
-
const a = window.URL || window.webkitURL || window, m = new Blob([r]), C = document.createEvent("MouseEvents");
|
|
158
|
-
C.initMouseEvent(
|
|
159
|
-
"click",
|
|
160
|
-
!0,
|
|
161
|
-
!1,
|
|
162
|
-
window,
|
|
163
|
-
0,
|
|
164
|
-
0,
|
|
165
|
-
0,
|
|
166
|
-
0,
|
|
167
|
-
0,
|
|
168
|
-
!1,
|
|
169
|
-
!1,
|
|
170
|
-
!1,
|
|
171
|
-
!1,
|
|
172
|
-
0,
|
|
173
|
-
null
|
|
174
|
-
);
|
|
175
|
-
const g = document.createElementNS(
|
|
176
|
-
"http://www.w3.org/1999/xhtml",
|
|
177
|
-
"a"
|
|
178
|
-
);
|
|
179
|
-
g.href = a.createObjectURL(m), g.download = t, g.dispatchEvent(C);
|
|
180
|
-
}
|
|
181
|
-
function y() {
|
|
182
|
-
if (n.language == "sql") {
|
|
183
|
-
const r = l(), a = Ee(r);
|
|
184
|
-
e.setValue(a);
|
|
185
|
-
} else
|
|
186
|
-
e.getAction("editor.action.formatDocument").run();
|
|
187
|
-
const t = l();
|
|
188
|
-
o("change", t), o("update:value", t);
|
|
189
|
-
}
|
|
190
|
-
function H() {
|
|
191
|
-
R("");
|
|
192
|
-
}
|
|
193
|
-
function B() {
|
|
194
|
-
v.value = !v.value, o("chat-bot-click");
|
|
195
|
-
}
|
|
196
|
-
function O() {
|
|
197
|
-
e && e.dispose();
|
|
198
|
-
}
|
|
199
|
-
function J() {
|
|
200
|
-
return e;
|
|
201
|
-
}
|
|
202
|
-
re(() => {
|
|
203
|
-
U();
|
|
204
|
-
}), se(() => {
|
|
205
|
-
O();
|
|
206
|
-
});
|
|
207
|
-
function X(t) {
|
|
208
|
-
const r = e.getModel();
|
|
209
|
-
if (!r) return;
|
|
210
|
-
const a = r.getFullModelRange();
|
|
211
|
-
e.executeEdits("setValue", [
|
|
212
|
-
{
|
|
213
|
-
range: a,
|
|
214
|
-
text: t,
|
|
215
|
-
forceMoveMarkers: !1
|
|
216
|
-
}
|
|
217
|
-
]), o("change", l()), o("update:value", l());
|
|
218
|
-
}
|
|
219
|
-
function Y() {
|
|
220
|
-
return e.getValue();
|
|
221
|
-
}
|
|
222
|
-
function Z() {
|
|
223
|
-
const t = e.getSelection();
|
|
224
|
-
if (t) {
|
|
225
|
-
const r = e.getModel()?.getValueInRange(t), a = t.startLineNumber, m = t.startColumn, C = t.endLineNumber, g = t.endColumn, ee = {
|
|
226
|
-
startLineNumber: 1,
|
|
227
|
-
startColumn: 1,
|
|
228
|
-
endLineNumber: a,
|
|
229
|
-
endColumn: m
|
|
230
|
-
}, te = e.getModel().getValueInRange(ee), oe = {
|
|
231
|
-
startLineNumber: C,
|
|
232
|
-
startColumn: g,
|
|
233
|
-
endLineNumber: e.getModel().getLineCount(),
|
|
234
|
-
endColumn: e.getModel().getLineMaxColumn(e.getModel().getLineCount())
|
|
235
|
-
}, ne = e.getModel().getValueInRange(oe);
|
|
236
|
-
return {
|
|
237
|
-
text: r,
|
|
238
|
-
textBefore: te,
|
|
239
|
-
textAfter: ne
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
return {};
|
|
243
|
-
}
|
|
244
|
-
return q(), F({
|
|
245
|
-
isMonacoReady: L,
|
|
246
|
-
reload(t) {
|
|
247
|
-
if (e == null) {
|
|
248
|
-
console.warn("[MonacoEditor] Monaco editor is not available for reload");
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
e.setValue(t || "");
|
|
252
|
-
},
|
|
253
|
-
getMonacoEditor: J,
|
|
254
|
-
setEditorContent: R,
|
|
255
|
-
getEditorContent: l,
|
|
256
|
-
scrollToTop: h,
|
|
257
|
-
scrollToBottom: b,
|
|
258
|
-
setEditorWordWrap: j,
|
|
259
|
-
setEditorTheme: P,
|
|
260
|
-
handleFullScreenClick: Q,
|
|
261
|
-
handleDownloadLogClick: S,
|
|
262
|
-
getEditorMarkers: K,
|
|
263
|
-
handleFormatCodeClick: y,
|
|
264
|
-
getValue: Y,
|
|
265
|
-
setValue: X,
|
|
266
|
-
getSelectCode: Z,
|
|
267
|
-
isChatBotActive: v,
|
|
268
|
-
handleChatBotClick: B
|
|
269
|
-
}), (t, r) => {
|
|
270
|
-
const a = N("a-col"), m = N("a-row");
|
|
271
|
-
return T(), ce("div", xe, [
|
|
272
|
-
M(t.$slots, "header", {}, void 0, !0),
|
|
273
|
-
k("div", _e, [
|
|
274
|
-
s(m, {
|
|
275
|
-
class: "m-e-main_toolbar w-full flex",
|
|
276
|
-
type: "flex",
|
|
277
|
-
justify: "space-between",
|
|
278
|
-
style: E(
|
|
279
|
-
c.value ? "background-color: #fff; box-shadow: 0px 2px 5px #ddd;" : "background-color: #1e1e1e; box-shadow: 0px 2px 5px #111;"
|
|
280
|
-
)
|
|
281
|
-
}, {
|
|
282
|
-
default: x(() => [
|
|
283
|
-
s(a, {
|
|
284
|
-
class: "m-e-main_toolbar_left flex-1",
|
|
285
|
-
style: E(c.value ? "color: #000" : "color: #fff")
|
|
286
|
-
}, {
|
|
287
|
-
default: x(() => [
|
|
288
|
-
k("span", null, [
|
|
289
|
-
M(t.$slots, "title", {}, () => [
|
|
290
|
-
ue(de(_.title), 1)
|
|
291
|
-
], !0)
|
|
292
|
-
])
|
|
293
|
-
]),
|
|
294
|
-
_: 3
|
|
295
|
-
}, 8, ["style"]),
|
|
296
|
-
s(a, {
|
|
297
|
-
class: "m-e-main_toolbar_right",
|
|
298
|
-
style: E(A.value)
|
|
299
|
-
}, {
|
|
300
|
-
default: x(() => [
|
|
301
|
-
s(d(pe), {
|
|
302
|
-
class: "icon",
|
|
303
|
-
onClick: $
|
|
304
|
-
}),
|
|
305
|
-
s(d(ve), {
|
|
306
|
-
class: "icon",
|
|
307
|
-
onClick: h
|
|
308
|
-
}),
|
|
309
|
-
s(d(Ce), {
|
|
310
|
-
class: "icon",
|
|
311
|
-
onClick: b
|
|
312
|
-
}),
|
|
313
|
-
s(d(we), {
|
|
314
|
-
class: "icon",
|
|
315
|
-
onClick: y
|
|
316
|
-
}),
|
|
317
|
-
s(d(he), {
|
|
318
|
-
class: "icon",
|
|
319
|
-
onClick: S
|
|
320
|
-
}),
|
|
321
|
-
s(d(be), {
|
|
322
|
-
class: "icon",
|
|
323
|
-
onClick: H
|
|
324
|
-
}),
|
|
325
|
-
w.value ? (T(), fe(d(ye), {
|
|
326
|
-
key: 0,
|
|
327
|
-
title: "聊天机器人",
|
|
328
|
-
class: me(["icon", { "icon-active": v.value }]),
|
|
329
|
-
onClick: B
|
|
330
|
-
}, null, 8, ["class"])) : ge("", !0)
|
|
331
|
-
]),
|
|
332
|
-
_: 1
|
|
333
|
-
}, 8, ["style"])
|
|
334
|
-
]),
|
|
335
|
-
_: 3
|
|
336
|
-
}, 8, ["style"]),
|
|
337
|
-
k("div", {
|
|
338
|
-
ref_key: "Editor",
|
|
339
|
-
ref: f,
|
|
340
|
-
class: "m-e-main_container"
|
|
341
|
-
}, null, 512)
|
|
342
|
-
]),
|
|
343
|
-
M(t.$slots, "footer", {}, void 0, !0)
|
|
344
|
-
]);
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
}), De = /* @__PURE__ */ ke(Le, [["__scopeId", "data-v-254c9227"]]);
|
|
348
|
-
export {
|
|
349
|
-
De as default
|
|
350
|
-
};
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, computed, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, unref, withCtx, toDisplayString, createCommentVNode, createBlock, normalizeStyle } from 'vue';
|
|
2
|
-
import { Modal } from 'ant-design-vue';
|
|
3
|
-
import { debounce } from 'lodash-es';
|
|
4
|
-
import { ButtonStyle, ButtonSize, t } from '@gct-paas/core';
|
|
5
|
-
|
|
6
|
-
const _hoisted_1 = { class: "inline-block align-middle" };
|
|
7
|
-
const _hoisted_2 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "btn-title gct-text-overflow whitespace-nowrap"
|
|
10
|
-
};
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
-
__name: "base-button",
|
|
13
|
-
props: {
|
|
14
|
-
block: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false
|
|
17
|
-
},
|
|
18
|
-
disabled: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
},
|
|
22
|
-
loading: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
},
|
|
26
|
-
title: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: ""
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "default"
|
|
33
|
-
},
|
|
34
|
-
icon: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: ""
|
|
37
|
-
},
|
|
38
|
-
type: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
hasIcon: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
},
|
|
46
|
-
hasText: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: true
|
|
49
|
-
},
|
|
50
|
-
danger: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: false
|
|
53
|
-
},
|
|
54
|
-
buttonStyle: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
i18nConfig: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: ""
|
|
61
|
-
},
|
|
62
|
-
hidden: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
},
|
|
66
|
-
confirm: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false
|
|
69
|
-
},
|
|
70
|
-
confirmText: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: ""
|
|
73
|
-
},
|
|
74
|
-
enableCustomColor: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false
|
|
77
|
-
},
|
|
78
|
-
backgroundColor: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: ""
|
|
81
|
-
},
|
|
82
|
-
fontColor: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: ""
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
emits: ["click"],
|
|
88
|
-
setup(__props, { emit: __emit }) {
|
|
89
|
-
useCssVars((_ctx) => ({
|
|
90
|
-
"v8d035854": props.fontColor,
|
|
91
|
-
"e376d652": props.backgroundColor,
|
|
92
|
-
"v4ee5fd6d": props.type === "primary" ? props.backgroundColor : "transparent"
|
|
93
|
-
}));
|
|
94
|
-
const props = __props;
|
|
95
|
-
const emit = __emit;
|
|
96
|
-
const getVertivalAlign = computed(() => {
|
|
97
|
-
if (!props.hasText) return "text-top";
|
|
98
|
-
else return "text-top";
|
|
99
|
-
});
|
|
100
|
-
const debonceClick = debounce(function() {
|
|
101
|
-
emit("click");
|
|
102
|
-
}, 300);
|
|
103
|
-
const clickEvent = async (evt) => {
|
|
104
|
-
const isAppRun = /\/web-render|\/web\/|web-single\/|dev-single\/|test-single\//.test(
|
|
105
|
-
location.pathname
|
|
106
|
-
);
|
|
107
|
-
let target = evt.target;
|
|
108
|
-
if (target.nodeName == "SPAN") {
|
|
109
|
-
target = target.parentNode;
|
|
110
|
-
}
|
|
111
|
-
target.blur();
|
|
112
|
-
if (props.confirm && isAppRun) {
|
|
113
|
-
await new Promise((res, rej) => {
|
|
114
|
-
Modal.confirm({
|
|
115
|
-
content: props.confirmText || t("sys.pageDesigner.confirmTodo"),
|
|
116
|
-
onOk() {
|
|
117
|
-
res("onOk");
|
|
118
|
-
},
|
|
119
|
-
onCancel() {
|
|
120
|
-
rej("onCancel");
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
emit("click");
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
debonceClick();
|
|
128
|
-
};
|
|
129
|
-
return (_ctx, _cache) => {
|
|
130
|
-
const _component_IconNext = resolveComponent("IconNext");
|
|
131
|
-
const _component_a_button = resolveComponent("a-button");
|
|
132
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
133
|
-
createVNode(_component_a_button, {
|
|
134
|
-
size: __props.size,
|
|
135
|
-
type: __props.type,
|
|
136
|
-
danger: __props.danger,
|
|
137
|
-
loading: __props.loading,
|
|
138
|
-
block: __props.block,
|
|
139
|
-
disabled: __props.disabled,
|
|
140
|
-
class: normalizeClass([
|
|
141
|
-
__props.enableCustomColor && __props.fontColor ? "btn-font-color" : "",
|
|
142
|
-
__props.enableCustomColor && __props.backgroundColor ? "btn-bg-style" : "",
|
|
143
|
-
{ square: __props.buttonStyle === unref(ButtonStyle).SQUARE }
|
|
144
|
-
]),
|
|
145
|
-
title: __props.title,
|
|
146
|
-
onClick: clickEvent
|
|
147
|
-
}, {
|
|
148
|
-
icon: withCtx(() => [
|
|
149
|
-
__props.hasIcon ? (openBlock(), createBlock(_component_IconNext, {
|
|
150
|
-
key: 0,
|
|
151
|
-
size: __props.buttonStyle === unref(ButtonStyle).SQUARE ? 20 : 16,
|
|
152
|
-
value: __props.icon,
|
|
153
|
-
style: normalizeStyle({
|
|
154
|
-
"--color": "inherit",
|
|
155
|
-
lineHeight: "1",
|
|
156
|
-
verticalAlign: getVertivalAlign.value
|
|
157
|
-
})
|
|
158
|
-
}, null, 8, ["size", "value", "style"])) : createCommentVNode("", true),
|
|
159
|
-
__props.icon && __props.hasText ? (openBlock(), createElementBlock("div", {
|
|
160
|
-
key: 1,
|
|
161
|
-
class: normalizeClass({
|
|
162
|
-
"h-6px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).SQUARE && __props.size !== unref(ButtonSize).SMALL,
|
|
163
|
-
"h-4px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).SQUARE && __props.size === unref(ButtonSize).SMALL,
|
|
164
|
-
"w-6px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).ORDINARY && __props.size !== unref(ButtonSize).SMALL,
|
|
165
|
-
"w-4px": __props.hasIcon && __props.hasText && __props.buttonStyle === unref(ButtonStyle).ORDINARY && __props.size === unref(ButtonSize).SMALL
|
|
166
|
-
})
|
|
167
|
-
}, null, 2)) : createCommentVNode("", true)
|
|
168
|
-
]),
|
|
169
|
-
default: withCtx(() => [
|
|
170
|
-
__props.hasText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.hasText ? __props.title : ""), 1)) : createCommentVNode("", true)
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, ["size", "type", "danger", "loading", "block", "disabled", "class", "title"])
|
|
174
|
-
]);
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
export { _sfc_main as default };
|