@gct-paas/core-web 0.1.5-dev.6 → 0.1.5-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_plugin-vue_export-helper-BBfAJeJ1.js +1 -0
- package/dist/{icon-next-picker-CShmDJI0.js → icon-next-picker-y8hJhkCi.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-t8SRxaFC.js → monaco-editor-5qU4ukgX.js} +1 -1
- package/es/components/FullScreen/full-screen.vue.d.ts +30 -0
- package/es/components/FullScreen/full-screen.vue.mjs +5 -0
- package/es/components/FullScreen/full-screen.vue_vue_type_script_setup_true_lang.mjs +44 -0
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +5 -5
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_d0fab479_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css} +16 -15
- package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +5 -1
- package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +1 -0
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_53df3982_lang.css +6 -0
- package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_406c02b4_lang.css +3 -0
- package/es/components/app-full-screen-container/app-full-screen-container.css +77 -0
- package/es/components/app-full-screen-container/app-full-screen-container.d.ts +26 -0
- package/es/components/app-full-screen-container/app-full-screen-container.mjs +83 -0
- package/es/components/app-popover/app-popover-component.css +100 -0
- package/es/components/app-popover/app-popover-component.d.ts +13 -0
- package/es/components/app-popover/app-popover-component.mjs +160 -0
- package/es/components/copy-module-key/copy-module-key.vue.mjs +2 -2
- package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +1 -0
- package/es/components/copy-module-key/{copy-module-key.vue_vue_type_style_index_0_scoped_531b3cd2_lang.css → copy-module-key.vue_vue_type_style_index_0_scoped_66e22862_lang.css} +4 -4
- package/es/components/field-cascader/index.d.ts +2 -0
- package/es/components/field-cascader/index.mjs +1 -0
- package/es/components/field-cascader/src/FieldCascader.vue.d.ts +87 -0
- package/es/components/field-cascader/src/FieldCascader.vue.mjs +6 -0
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_script_setup_true_lang.mjs +115 -0
- package/es/components/field-cascader/src/FieldCascader.vue_vue_type_style_index_0_lang.css +69 -0
- package/es/components/field-cascader/src/SearchInput.vue.d.ts +11 -0
- package/es/components/field-cascader/src/SearchInput.vue.mjs +7 -0
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_script_setup_true_lang.mjs +38 -0
- package/es/components/field-cascader/src/SearchInput.vue_vue_type_style_index_0_scoped_512c4b38_lang.css +9 -0
- package/es/components/field-cascader/src/hooks.d.ts +129 -0
- package/es/components/field-cascader/src/hooks.mjs +163 -0
- package/es/components/field-tree-select/field-sort-popover.vue.d.ts +129 -0
- package/es/components/field-tree-select/field-sort-popover.vue.mjs +7 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +206 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_style_index_0_scoped_c1811778_lang.css +136 -0
- package/es/components/field-tree-select/field-tree-select.vue.d.ts +119 -0
- package/es/components/field-tree-select/field-tree-select.vue.mjs +7 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +338 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css +147 -0
- package/es/components/field-tree-select/index.d.ts +307 -0
- package/es/components/field-tree-select/index.mjs +7 -0
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +1 -1
- package/es/components/index.d.ts +5 -1
- package/es/components/index.mjs +8 -1
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.css +72 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.d.ts +75 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +87 -0
- package/es/components/serial-number/index.d.ts +2 -0
- package/es/components/serial-number/index.mjs +1 -0
- package/es/components/serial-number/serial-number-container.vue.d.ts +23 -0
- package/es/components/serial-number/serial-number-container.vue.mjs +7 -0
- package/es/components/serial-number/serial-number-container.vue_vue_type_script_setup_true_name_serial-number-container_lang.mjs +219 -0
- package/es/components/serial-number/serial-number-container.vue_vue_type_style_index_0_scoped_35a73b4c_lang.css +30 -0
- package/es/components/serial-number/serial-number-item.vue.d.ts +22 -0
- package/es/components/serial-number/serial-number-item.vue.mjs +8 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs +452 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +67 -0
- package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_1_lang.css +51 -0
- package/es/create-app-vue.mjs +5 -3
- package/es/index.mjs +17 -1
- package/es/modules/color-picker/index.d.ts +2 -2
- package/es/modules/color-picker/index.mjs +1 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +1 -1
- package/es/modules/color-picker/src/color-editor.vue.d.ts +9 -0
- package/es/modules/color-picker/src/color-editor.vue.mjs +7 -0
- package/es/modules/color-picker/src/color-editor.vue_vue_type_script_setup_true_name_color-editor_lang.mjs +31 -0
- package/es/modules/color-picker/src/color-editor.vue_vue_type_style_index_0_scoped_7b102f87_lang.css +5 -0
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +0 -1
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +1 -20
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.d.ts +8 -0
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +14 -0
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +4 -10
- package/es/modules/gct-form/editor/gct-form-action/index.mjs +1 -1
- package/es/modules/gct-form/editor/gct-form-check-switch/gct-form-check-switch.css +2 -2
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.d.ts +1 -4
- package/es/modules/gct-form/editor/gct-form-color/gct-form-color.mjs +9 -10
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.css +25 -22
- package/es/modules/gct-form/editor/gct-form-radio/gct-form-radio.mjs +1 -1
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.d.ts +1 -5
- package/es/modules/gct-form/editor/gct-form-text/gct-form-text.mjs +18 -23
- package/es/modules/gct-form/index.d.ts +2 -0
- package/es/modules/gct-form/index.mjs +12 -1
- package/es/modules/gct-form/interface/i-controller/form-item-basic/form-item-basic.controller.d.ts +6 -0
- package/es/modules/gct-form/interface/i-editor/i-select-editor.d.ts +1 -1
- package/es/modules/gct-form/interface/i-form/i-form-edit-item.d.ts +0 -8
- package/es/modules/gct-form/interface/i-form/i-form-item-basic.d.ts +8 -0
- package/es/modules/gct-form/utils/index.d.ts +18 -0
- package/es/modules/gct-form/utils/index.mjs +37 -0
- package/es/modules/gct-form/widgets/gct-edit-form/gct-edit-form.mjs +2 -1
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/gct-form-collapse.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-collapse-pane/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.d.ts +1 -6
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.mjs +31 -38
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/gct-form-group.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-group/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.model.mjs +21 -0
- 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 +13 -6
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/gct-form-item.model.mjs +23 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-item/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/gct-form-line.model.mjs +20 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-line/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/gct-form-tab.model.mjs +16 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.model.mjs +24 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-tab-pane/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/gct-form-title-group.model.mjs +25 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form-title-group/index.mjs +1 -0
- package/es/modules/gct-form/widgets/gct-form/gct-form.css +1 -3
- package/es/modules/gct-form/widgets/gct-form/gct-form.mjs +1 -1
- package/es/modules/gct-form/widgets/gct-form/index.d.ts +3 -3
- package/es/modules/gct-form/widgets/gct-form/index.mjs +9 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +4 -0
- package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +1 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +1 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +11 -6
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +3 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_style_index_0_lang.css +67 -0
- package/es/modules/personnel-selection/components/index.d.ts +3 -0
- package/es/modules/personnel-selection/components/personnel-select-tree/personnel-select-tree.d.ts +22 -0
- package/es/modules/personnel-selection/components/variable/check-variable/check-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable/index.d.ts +3 -0
- package/es/modules/personnel-selection/components/variable/list-variable/list-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable/tree-select-variable/tree-select-variable.d.ts +19 -0
- package/es/modules/personnel-selection/components/variable-select-pane/variable-select-pane.d.ts +21 -0
- package/es/modules/personnel-selection/constants/index.d.ts +16 -0
- package/es/modules/personnel-selection/controller/index.d.ts +2 -0
- package/es/modules/personnel-selection/controller/tab-item/tab-item.controller.d.ts +18 -0
- package/es/modules/personnel-selection/controller/variable-item/variable-item.controller.d.ts +17 -0
- package/es/modules/personnel-selection/editors/index.d.ts +1 -0
- package/es/modules/personnel-selection/editors/personnel-selection-editor/personnel-selection-editor.d.ts +2 -0
- package/es/modules/personnel-selection/enums/index.d.ts +31 -0
- package/es/modules/personnel-selection/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/controller/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/controller/tab-item/i-tab-item.controller.d.ts +86 -0
- package/es/modules/personnel-selection/interface/controller/tab-item/i-variable-tab-item.controller.d.ts +11 -0
- package/es/modules/personnel-selection/interface/controller/variable/i-variable-item.controller.d.ts +53 -0
- package/es/modules/personnel-selection/interface/data/i-data-node.d.ts +42 -0
- package/es/modules/personnel-selection/interface/index.d.ts +6 -0
- package/es/modules/personnel-selection/interface/options/index.d.ts +3 -0
- package/es/modules/personnel-selection/interface/options/personnel-selection-options/personnel-selection-options.d.ts +45 -0
- package/es/modules/personnel-selection/interface/options/select-area-options/select-area-options.d.ts +18 -0
- package/es/modules/personnel-selection/interface/options/select-region-options/select-region-options.d.ts +18 -0
- package/es/modules/personnel-selection/interface/providers/i-tab-item.provider.d.ts +51 -0
- package/es/modules/personnel-selection/interface/providers/i-variable-item.provider.d.ts +51 -0
- package/es/modules/personnel-selection/interface/state/i-tab-item.state.d.ts +27 -0
- package/es/modules/personnel-selection/interface/state/i-variable-item.state.d.ts +18 -0
- package/es/modules/personnel-selection/interface/state/index.d.ts +2 -0
- package/es/modules/personnel-selection/interface/store/i-variable-inst-store.d.ts +37 -0
- package/es/modules/personnel-selection/interface/store/i-variable-plugin-manage-store.d.ts +44 -0
- package/es/modules/personnel-selection/interface/store/i-variable-store.d.ts +29 -0
- package/es/modules/personnel-selection/interface/store/i-view-plugin-manage-store.d.ts +44 -0
- package/es/modules/personnel-selection/interface/store/i-view-store.d.ts +29 -0
- package/es/modules/personnel-selection/interface/store/i-view-tabs-store.d.ts +54 -0
- package/es/modules/personnel-selection/interface/store/index.d.ts +11 -0
- package/es/modules/personnel-selection/plugins/index.d.ts +23 -0
- package/es/modules/personnel-selection/plugins/tab-item/personnel-select-tab-item/personnel-select-tab-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/tab-item/variable-tab-item/variable-tab-item.controller.d.ts +14 -0
- package/es/modules/personnel-selection/plugins/variable-item/check-variable-item/check-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/variable-item/list-variable-item/list-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/plugins/variable-item/tree-select-variable-item/tree-select-variable-item.controller.d.ts +12 -0
- package/es/modules/personnel-selection/props/index.d.ts +75 -0
- package/es/modules/personnel-selection/state/index.d.ts +2 -0
- package/es/modules/personnel-selection/state/tab-item.state.d.ts +15 -0
- package/es/modules/personnel-selection/state/variable-item.state.d.ts +4 -0
- package/es/modules/personnel-selection/store/index.d.ts +1 -0
- package/es/modules/personnel-selection/store/variable/variable-inst.d.ts +10 -0
- package/es/modules/personnel-selection/store/variable/variable-plugin-manage.d.ts +10 -0
- package/es/modules/personnel-selection/store/variable/variable-store.d.ts +5 -0
- package/es/modules/personnel-selection/store/view/view-plugin-manage.d.ts +10 -0
- package/es/modules/personnel-selection/store/view/view-store.d.ts +11 -0
- package/es/modules/personnel-selection/store/view/view-tabs.d.ts +10 -0
- package/es/modules/personnel-selection/use/index.d.ts +40 -0
- package/es/modules/personnel-selection/utils/index.d.ts +1 -0
- package/es/modules/personnel-selection/views/index.d.ts +12 -0
- package/es/modules/personnel-selection/views/personnel-selection-view/personnel-selection-view.d.ts +181 -0
- package/es/modules/personnel-selection/widgets/index.d.ts +2 -0
- package/es/modules/personnel-selection/widgets/personnel-select-area/personnel-select-area.d.ts +1 -0
- package/es/modules/personnel-selection/widgets/personnel-select-region/personnel-select-region.d.ts +2 -0
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CopperFreeModal.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_488ed4c7_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_9069f48a_lang.css} +10 -10
- package/es/modules/picture-cropper/src/CopperModal.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CopperModal.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CopperModal.vue_vue_type_style_index_0_scoped_ee086999_lang.css → CopperModal.vue_vue_type_style_index_0_scoped_f1134678_lang.css} +14 -14
- package/es/modules/picture-cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperAvatar.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_b1cbaaf1_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_ef939ff0_lang.css} +7 -7
- package/es/modules/picture-cropper/src/CropperFree.vue.d.ts +2 -2
- package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
- package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_bab12130_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_7a51c6b9_lang.css} +16 -16
- package/es/utils/overlay-controller/overlay-controller.d.ts +16 -1
- package/es/utils/overlay-controller/overlay-controller.mjs +18 -0
- package/es/utils/with-install.d.ts +1 -0
- package/es/utils/with-install.mjs +1 -1
- package/package.json +13 -9
- package/dist/_plugin-vue_export-helper-DySwtVV7.js +0 -1
- package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_5f75bfb2_lang.css +0 -6
- package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_b4baf3ec_lang.css +0 -3
- /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,p as t,t as o}from"./_plugin-vue_export-helper-
|
|
1
|
+
import{i as e,p as t,t as o}from"./_plugin-vue_export-helper-BBfAJeJ1.js";import{computed as n,createBlock as a,createCommentVNode as l,createElementBlock as i,createElementVNode as u,createTextVNode as r,createVNode as c,defineComponent as s,normalizeClass as d,normalizeStyle as f,onMounted as g,onUnmounted as v,openBlock as m,ref as p,renderSlot as w,resolveComponent as h,toDisplayString as C,unref as M,watch as b,withCtx as y}from"vue";import{ClearOutlined as x,CloudDownloadOutlined as k,DownCircleOutlined as E,FormatPainterOutlined as L,RobotOutlined as _,SearchOutlined as V,UpCircleOutlined as R}from"@ant-design/icons-vue";var B={class:"hex-monaco-editor m-e w-full h-full overflow-hidden"},S={class:"m-e-main"},O=/* @__PURE__ */o(/* @__PURE__ */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(o,{expose:s,emit:O}){const D=o,N=p(!1);let T=null;b(()=>D.language,async e=>{A&&A.getModel()&&T&&T.editor.setModelLanguage(A.getModel(),e)});const F=O,W=p();let A;const I=p(!0),j=p(!1),q=p(!1),U=p(!1),$=p(!1),K=n(()=>({color:q.value?"#000":"#fff",marginRight:D.gapVal+"px"}));D.theme===e.VS&&(q.value=!0);let z={value:D.value??"",language:D.language,automaticLayout:!0,theme:D.theme,readOnly:D.readonly,wordWrap:I.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}};function P(e){A.setValue(e),F("change",Q()),F("update:value",Q())}function Q(){return A.getValue()}function G(){if(T)try{A.focus(),A.setSelection(new T.Range(1,9999,1,1e4)),A.trigger("","actions.find",null)}catch(e){console.error(e)}else console.warn("[MonacoEditor] Monaco editor is not available for findByKeyword")}function H(){A.setScrollPosition({scrollTop:0})}function J(){A.revealLine(A.getModel().getLineCount())}function X(){!function(e,t){const o=window.URL||window.webkitURL||window,n=new Blob([t]),a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null);const l=document.createElementNS("http://www.w3.org/1999/xhtml","a");l.href=o.createObjectURL(n),l.download=e,l.dispatchEvent(a)}(D.title,A.getValue())}async function Y(){if("sql"==D.language){const e=Q(),{format:t}=await import("sql-formatter"),o=t(e);A.setValue(o)}else A.getAction("editor.action.formatDocument").run();const e=Q();F("change",e),F("update:value",e)}function Z(){P("")}function ee(){U.value=!U.value,F("chat-bot-click")}function te(){A&&A.dispose()}return g(()=>{!async function(){T=await t.loadMonaco(),te(),T?(A=T.editor.create(W.value,z),"bottom"===D.direction?J():"top"===D.direction&&H(),A.onDidChangeModelContent(()=>{F("change",Q()),F("update:value",Q())}),A.onDidBlurEditorText(()=>{F("blur",Q()),F("update:value",Q())}),A.onDidFocusEditorText(()=>{F("focus")}),N.value=!0,F("editor-mounted",A)):console.warn("[MonacoEditor] Monaco editor is not available for initEditor"),D.value&&Y()}()}),v(()=>{te()}),async function(){1==await _api.apaas.basicConfig.getAiRagEnabled()?$.value=!0:$.value=!1}(),s({isMonacoReady:N,reload(e){null!=A?A.setValue(e||""):console.warn("[MonacoEditor] Monaco editor is not available for reload")},getMonacoEditor:function(){return A},setEditorContent:P,getEditorContent:Q,scrollToTop:H,scrollToBottom:J,setEditorWordWrap:function(){I.value=!I.value,I.value?A.updateOptions({wordWrap:"on"}):A.updateOptions({wordWrap:"off"})},setEditorTheme:function(){q.value=!q.value,q.value?A.updateOptions({theme:"vs"}):A.updateOptions({theme:"vs-dark"})},handleFullScreenClick:function(){W.value.fullscreenElement?(W.value.exitFullscreen(),j.value=!1):(W.value.requestFullscreen(),j.value=!0)},handleDownloadLogClick:X,getEditorMarkers:function(){if(!T)return console.warn("[MonacoEditor] Monaco editor is not available for getEditorMarkers"),[];const e=A.getModel();return e?T.editor.getModelMarkers({resource:e.uri}):[]},handleFormatCodeClick:Y,getValue:function(){return A.getValue()},setValue:function(e){const t=A.getModel();if(!t)return;const o=t.getFullModelRange();A.executeEdits("setValue",[{range:o,text:e,forceMoveMarkers:!1}]),F("change",Q()),F("update:value",Q())},getSelectCode:function(){const e=A.getSelection();if(e){var t;const o=null===(t=A.getModel())||void 0===t?void 0:t.getValueInRange(e),n=e.startLineNumber,a=e.startColumn,l=e.endLineNumber,i=e.endColumn,u={startLineNumber:1,startColumn:1,endLineNumber:n,endColumn:a},r=A.getModel().getValueInRange(u),c={startLineNumber:l,startColumn:i,endLineNumber:A.getModel().getLineCount(),endColumn:A.getModel().getLineMaxColumn(A.getModel().getLineCount())};return{text:o,textBefore:r,textAfter:A.getModel().getValueInRange(c)}}return{}},isChatBotActive:U,handleChatBotClick:ee}),(e,t)=>{const n=h("a-col"),s=h("a-row");return m(),i("div",B,[w(e.$slots,"header",{},void 0,!0),u("div",S,[c(s,{class:"m-e-main_toolbar w-full flex",type:"flex",justify:"space-between",style:f(q.value?"background-color: #fff; box-shadow: 0px 2px 5px #ddd;":"background-color: #1e1e1e; box-shadow: 0px 2px 5px #111;")},{default:y(()=>[c(n,{class:"m-e-main_toolbar_left flex-1",style:f(q.value?"color: #000":"color: #fff")},{default:y(()=>[u("span",null,[w(e.$slots,"title",{},()=>[r(C(o.title),1)],!0)])]),_:3},8,["style"]),c(n,{class:"m-e-main_toolbar_right",style:f(K.value)},{default:y(()=>[c(M(V),{class:"icon",onClick:G}),c(M(R),{class:"icon",onClick:H}),c(M(E),{class:"icon",onClick:J}),c(M(L),{class:"icon",onClick:Y}),c(M(k),{class:"icon",onClick:X}),c(M(x),{class:"icon",onClick:Z}),$.value?(m(),a(M(_),{key:0,title:"聊天机器人",class:d(["icon",{"icon-active":U.value}]),onClick:ee},null,8,["class"])):l("",!0)]),_:1},8,["style"])]),_:3},8,["style"]),u("div",{ref_key:"Editor",ref:W,class:"m-e-main_container"},null,512)]),w(e.$slots,"footer",{},void 0,!0)])}}}),[["__scopeId","data-v-ccf22884"]]);export{O as default};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
|
+
el: {
|
|
13
|
+
type: PropType<HTMLElement>;
|
|
14
|
+
default: null;
|
|
15
|
+
};
|
|
16
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
el: {
|
|
18
|
+
type: PropType<HTMLElement>;
|
|
19
|
+
default: null;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
el: HTMLElement;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import full_screen_vue_vue_type_script_setup_true_lang_default from "./full-screen.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
//#region src/components/FullScreen/full-screen.vue
|
|
3
|
+
var full_screen_default = full_screen_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { full_screen_default as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, defineComponent, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { t } from "@gct-paas/core";
|
|
3
|
+
import { Tooltip } from "ant-design-vue";
|
|
4
|
+
import { useFullscreen } from "@vueuse/core";
|
|
5
|
+
import { FullscreenExitOutlined, FullscreenOutlined } from "@ant-design/icons-vue";
|
|
6
|
+
//#region src/components/FullScreen/full-screen.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var full_screen_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "full-screen",
|
|
9
|
+
props: { el: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: null
|
|
12
|
+
} },
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const { toggle, isFullscreen } = useFullscreen(__props.el);
|
|
15
|
+
const isShow = ref(true);
|
|
16
|
+
const toggleClick = () => {
|
|
17
|
+
isShow.value = false;
|
|
18
|
+
toggle();
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
isShow.value = true;
|
|
21
|
+
}, 100);
|
|
22
|
+
};
|
|
23
|
+
isFullscreen.value = !!document.fullscreenElement;
|
|
24
|
+
const getTitle = computed(() => {
|
|
25
|
+
return unref(isFullscreen) ? t("sys.tooltipExitFull") : t("sys.tooltipEntryFull");
|
|
26
|
+
});
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return isShow.value ? (openBlock(), createBlock(unref(Tooltip), {
|
|
29
|
+
key: 0,
|
|
30
|
+
title: getTitle.value,
|
|
31
|
+
placement: "bottom",
|
|
32
|
+
"overlay-class-name": "gct-full-screen-wrap"
|
|
33
|
+
}, {
|
|
34
|
+
default: withCtx(() => [createElementVNode("span", {
|
|
35
|
+
class: "text-16px gct-full-screen-box",
|
|
36
|
+
onClick: toggleClick
|
|
37
|
+
}, [!unref(isFullscreen) ? (openBlock(), createBlock(unref(FullscreenOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 1 })), renderSlot(_ctx.$slots, "default")])]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 8, ["title"])) : createCommentVNode("", true);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { full_screen_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default from "./i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs";
|
|
3
|
-
import './i18n-select-btn.
|
|
3
|
+
import './i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-btn.vue
|
|
5
|
-
var i18n_select_btn_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_btn_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_default, [["__scopeId", "data-v-b86f4068"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_btn_default as default };
|
|
@@ -53,11 +53,11 @@ var i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_def
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
return (_ctx, _cache) => {
|
|
56
|
-
const
|
|
57
|
-
const
|
|
56
|
+
const _component_icon_next = resolveComponent("icon-next");
|
|
57
|
+
const _component_assets_svg_icon = resolveComponent("assets-svg-icon");
|
|
58
58
|
const _component_a_button = resolveComponent("a-button");
|
|
59
59
|
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
60
|
-
return __props.simpleBtn ? (openBlock(), createBlock(
|
|
60
|
+
return __props.simpleBtn ? (openBlock(), createBlock(_component_icon_next, {
|
|
61
61
|
key: 0,
|
|
62
62
|
class: normalizeClass(["i18n-icon simple-btn", { "is-highlight": isHighlight.value }]),
|
|
63
63
|
icon: "ion:language",
|
|
@@ -82,7 +82,7 @@ var i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_def
|
|
|
82
82
|
size: __props.size,
|
|
83
83
|
onClick: handleOpenI18nSelectModal
|
|
84
84
|
}), {
|
|
85
|
-
icon: withCtx(() => [createVNode(
|
|
85
|
+
icon: withCtx(() => [createVNode(_component_assets_svg_icon, {
|
|
86
86
|
class: "i18n-icon",
|
|
87
87
|
src: "/extras-assets/svg/language.svg"
|
|
88
88
|
})]),
|
|
@@ -102,7 +102,7 @@ var i18n_select_btn_vue_vue_type_script_setup_true_name_i18n_select_btn_lang_def
|
|
|
102
102
|
size: __props.size,
|
|
103
103
|
onClick: handleOpenI18nSelectModal
|
|
104
104
|
}), {
|
|
105
|
-
icon: withCtx(() => [createVNode(
|
|
105
|
+
icon: withCtx(() => [createVNode(_component_assets_svg_icon, {
|
|
106
106
|
class: "i18n-icon",
|
|
107
107
|
src: "/extras-assets/svg/language.svg"
|
|
108
108
|
})]),
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
.ant-btn[data-v-
|
|
1
|
+
.ant-btn[data-v-b86f4068] {
|
|
2
2
|
background-color: #fff !important;
|
|
3
3
|
}
|
|
4
|
-
.ant-btn.ant-btn-icon-only[data-v-
|
|
4
|
+
.ant-btn.ant-btn-icon-only[data-v-b86f4068] {
|
|
5
5
|
width: var(--btn-width, 32px);
|
|
6
6
|
height: var(--btn-height, 32px);
|
|
7
7
|
}
|
|
8
|
-
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
8
|
+
.ant-btn.ant-btn-icon-only.ant-btn-sm[data-v-b86f4068] {
|
|
9
|
+
width: 28px;
|
|
10
|
+
height: 28px;
|
|
11
|
+
padding: 0 6px;
|
|
11
12
|
}
|
|
12
|
-
.ant-btn:hover .i18n-icon[data-v-
|
|
13
|
+
.ant-btn:hover .i18n-icon[data-v-b86f4068] {
|
|
13
14
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
14
15
|
color: var(--ant-primary-color);
|
|
15
16
|
}
|
|
16
|
-
.ant-btn.is-highlight[data-v-
|
|
17
|
+
.ant-btn.is-highlight[data-v-b86f4068] {
|
|
17
18
|
color: var(--ant-primary-color);
|
|
18
19
|
border-color: var(--ant-primary-color);
|
|
19
20
|
}
|
|
20
|
-
.ant-btn.is-highlight .i18n-icon[data-v-
|
|
21
|
+
.ant-btn.is-highlight .i18n-icon[data-v-b86f4068] {
|
|
21
22
|
color: var(--ant-primary-color);
|
|
22
23
|
}
|
|
23
|
-
.i18n-icon[data-v-
|
|
24
|
+
.i18n-icon[data-v-b86f4068] {
|
|
24
25
|
color: #7f8695;
|
|
25
26
|
display: flex !important;
|
|
26
27
|
}
|
|
27
|
-
.simple-btn[data-v-
|
|
28
|
+
.simple-btn[data-v-b86f4068]:hover {
|
|
28
29
|
color: var(--ant-primary-color);
|
|
29
30
|
}
|
|
30
|
-
.simple-btn.is-highlight[data-v-
|
|
31
|
+
.simple-btn.is-highlight[data-v-b86f4068] {
|
|
31
32
|
color: var(--ant-primary-color);
|
|
32
33
|
}
|
|
33
|
-
.i18n-tooltip-title[data-v-
|
|
34
|
+
.i18n-tooltip-title[data-v-b86f4068] {
|
|
34
35
|
color: #303133;
|
|
35
36
|
font-size: 16px;
|
|
36
37
|
line-height: 1;
|
|
37
38
|
margin-bottom: 12px;
|
|
38
39
|
}
|
|
39
|
-
.i18n-tooltip-item[data-v-
|
|
40
|
+
.i18n-tooltip-item[data-v-b86f4068] {
|
|
40
41
|
color: #606266;
|
|
41
42
|
font-size: 14px;
|
|
42
43
|
}
|
|
43
|
-
.custom-i18n-btn[data-v-
|
|
44
|
+
.custom-i18n-btn[data-v-b86f4068] {
|
|
44
45
|
vertical-align: middle;
|
|
45
46
|
background: #fff;
|
|
46
47
|
color: #303133;
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
align-items: center;
|
|
52
53
|
padding: 0;
|
|
53
54
|
}
|
|
54
|
-
.custom-i18n-btn.reg-i18n[data-v-
|
|
55
|
+
.custom-i18n-btn.reg-i18n[data-v-b86f4068] {
|
|
55
56
|
position: absolute;
|
|
56
57
|
right: -32px;
|
|
57
58
|
bottom: 0;
|
|
@@ -3,7 +3,11 @@ export interface Prop {
|
|
|
3
3
|
destroyCallback?: () => void;
|
|
4
4
|
saveCallback?: (params: IObject) => void;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import('vue').DefineComponent<Prop, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Prop, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
register: (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<Prop> & Readonly<{
|
|
9
|
+
onRegister?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
7
11
|
formRef: unknown;
|
|
8
12
|
tableRef: unknown;
|
|
9
13
|
}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_container_lang_default from "./i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs";
|
|
3
|
-
import './i18n-select-container.
|
|
3
|
+
import './i18n-select-container.vue_vue_type_style_index_0_scoped_53df3982_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-container.vue
|
|
5
|
-
var i18n_select_container_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_container_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_container_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_container_lang_default, [["__scopeId", "data-v-53df3982"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_container_default as default };
|
|
@@ -14,6 +14,7 @@ var i18n_select_container_vue_vue_type_script_setup_true_name_i18n_select_contai
|
|
|
14
14
|
destroyCallback: { type: Function },
|
|
15
15
|
saveCallback: { type: Function }
|
|
16
16
|
},
|
|
17
|
+
emits: ["register"],
|
|
17
18
|
setup(__props) {
|
|
18
19
|
const [registerInner, { closeModal }] = useModalInner();
|
|
19
20
|
const [userRegister, { openModal }] = useModal$1();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default from "./i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs";
|
|
3
|
-
import './i18n-select-input.
|
|
3
|
+
import './i18n-select-input.vue_vue_type_style_index_0_scoped_406c02b4_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/I18nSelect/src/i18n-select-input.vue
|
|
5
|
-
var i18n_select_input_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var i18n_select_input_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default, [["__scopeId", "data-v-406c02b4"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { i18n_select_input_default as default };
|
|
@@ -86,8 +86,8 @@ var i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang
|
|
|
86
86
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
87
87
|
valueModifiers: { trim: true },
|
|
88
88
|
style: {
|
|
89
|
-
height: __props.btnHeight ? __props.btnHeight : __props.size === unref(ButtonSize).SMALL ? "
|
|
90
|
-
width: !isApp.value ? "100%" : `calc(100% - ${__props.btnWidth ? __props.btnWidth : __props.size === unref(ButtonSize).SMALL ? "
|
|
89
|
+
height: __props.btnHeight ? __props.btnHeight : __props.size === unref(ButtonSize).SMALL ? "28px" : "32px",
|
|
90
|
+
width: !isApp.value ? "100%" : `calc(100% - ${__props.btnWidth ? __props.btnWidth : __props.size === unref(ButtonSize).SMALL ? "28px" : "32px"}`
|
|
91
91
|
},
|
|
92
92
|
placeholder: __props.placeholderText,
|
|
93
93
|
size: __props.size,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-app-full-screen-container {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
z-index: 1000;
|
|
70
|
+
width: 100vw;
|
|
71
|
+
height: 100vh;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
background-color: #f4f7f9;
|
|
74
|
+
}
|
|
75
|
+
.gct-app-full-screen-container.is-is-hidden {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { IAppFullScreenContainerOptions, IOverlayContainer } from '@gct-paas/core';
|
|
3
|
+
export declare const AppFullScreenContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
opts: {
|
|
5
|
+
type: PropType<IAppFullScreenContainerOptions>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
opts: {
|
|
10
|
+
type: PropType<IAppFullScreenContainerOptions>;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
opts: IAppFullScreenContainerOptions;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
/**
|
|
17
|
+
* 创建全屏容器
|
|
18
|
+
*
|
|
19
|
+
* @author zhanghanrui
|
|
20
|
+
* @date 2024-07-04 15:07:25
|
|
21
|
+
* @export
|
|
22
|
+
* @param {() => VNode} render
|
|
23
|
+
* @param {IAppFullScreenContainerOptions} [opts]
|
|
24
|
+
* @return {*} {IOverlayContainer}
|
|
25
|
+
*/
|
|
26
|
+
export declare function createAppFullScreenContainer(render: () => VNode, opts?: IAppFullScreenContainerOptions): IOverlayContainer;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useLocale } from "../../hooks/useLocale.mjs";
|
|
2
|
+
import "../../hooks/index.mjs";
|
|
3
|
+
import './app-full-screen-container.css';/* empty css */
|
|
4
|
+
import { createVNode, defineComponent, h, isVNode, provide, ref } from "vue";
|
|
5
|
+
import { Modal, OverlayContainer, useNamespace } from "@gct-paas/core";
|
|
6
|
+
import { ConfigProvider } from "ant-design-vue";
|
|
7
|
+
import { DndProvider } from "vue3-dnd";
|
|
8
|
+
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
9
|
+
//#region src/components/app-full-screen-container/app-full-screen-container.tsx
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
var AppFullScreenContainer = /* @__PURE__ */ defineComponent({
|
|
14
|
+
name: "AppFullScreenContainer",
|
|
15
|
+
props: { opts: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
} },
|
|
19
|
+
setup(props, ctx) {
|
|
20
|
+
const ns = useNamespace("app-full-screen-container");
|
|
21
|
+
const isShow = ref(false);
|
|
22
|
+
const options = ref({});
|
|
23
|
+
if (props.opts) Object.assign(options.value, props.opts);
|
|
24
|
+
let data = null;
|
|
25
|
+
const modal = new Modal({ dismiss: (result) => {
|
|
26
|
+
isShow.value = false;
|
|
27
|
+
data = result;
|
|
28
|
+
ctx.emit("dismiss", data);
|
|
29
|
+
} });
|
|
30
|
+
provide("modal", modal);
|
|
31
|
+
const dismiss = (_data) => {
|
|
32
|
+
return modal.dismiss(_data);
|
|
33
|
+
};
|
|
34
|
+
const present = () => {
|
|
35
|
+
isShow.value = true;
|
|
36
|
+
};
|
|
37
|
+
const ok = async () => {
|
|
38
|
+
if (modal.ok) {
|
|
39
|
+
const result = await modal.ok();
|
|
40
|
+
if (result && result.ok) dismiss(result);
|
|
41
|
+
} else console.warn("打开模态未实现ok方法");
|
|
42
|
+
};
|
|
43
|
+
const cancel = () => {
|
|
44
|
+
if (modal.cancel) return modal.cancel();
|
|
45
|
+
return dismiss();
|
|
46
|
+
};
|
|
47
|
+
ctx.expose({
|
|
48
|
+
present,
|
|
49
|
+
dismiss,
|
|
50
|
+
ok,
|
|
51
|
+
cancel
|
|
52
|
+
});
|
|
53
|
+
const { getAntdLocale } = useLocale();
|
|
54
|
+
return () => {
|
|
55
|
+
let _slot;
|
|
56
|
+
const slot = ctx.slots.default?.();
|
|
57
|
+
if (slot && slot.length > 0 && slot[0].props) slot[0].props.modal = modal;
|
|
58
|
+
return createVNode(ConfigProvider, { "locale": getAntdLocale.value }, { default: () => [createVNode(DndProvider, { "backend": HTML5Backend }, _isSlot(_slot = h("div", {
|
|
59
|
+
class: [
|
|
60
|
+
ns.b(),
|
|
61
|
+
ns.is("is-hidden", isShow.value !== true),
|
|
62
|
+
options.value.containerClass
|
|
63
|
+
],
|
|
64
|
+
...options.value
|
|
65
|
+
}, [slot])) ? _slot : { default: () => [_slot] })] });
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* 创建全屏容器
|
|
71
|
+
*
|
|
72
|
+
* @author zhanghanrui
|
|
73
|
+
* @date 2024-07-04 15:07:25
|
|
74
|
+
* @export
|
|
75
|
+
* @param {() => VNode} render
|
|
76
|
+
* @param {IAppFullScreenContainerOptions} [opts]
|
|
77
|
+
* @return {*} {IOverlayContainer}
|
|
78
|
+
*/
|
|
79
|
+
function createAppFullScreenContainer(render, opts) {
|
|
80
|
+
return new OverlayContainer(AppFullScreenContainer, render, opts);
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { createAppFullScreenContainer };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
3
|
+
/* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
|
|
4
|
+
/**
|
|
5
|
+
* 定义 Block 块
|
|
6
|
+
* @param {String} $block - Block 块名称
|
|
7
|
+
* @example
|
|
8
|
+
* @include b('button') {
|
|
9
|
+
* padding: 10px;
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* 定义 Element 元素
|
|
14
|
+
* @param {String|List} $element - Element 元素名称,支持单个或多个
|
|
15
|
+
* @example
|
|
16
|
+
* @include b('button') {
|
|
17
|
+
* @include e('text') {
|
|
18
|
+
* color: #000;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* // 或传入多个元素
|
|
22
|
+
* @include b('button') {
|
|
23
|
+
* @include e(('text', 'icon')) {
|
|
24
|
+
* margin: 5px;
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* 定义 Modifier 修饰符
|
|
30
|
+
* @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
|
|
31
|
+
* @example
|
|
32
|
+
* @include b('button') {
|
|
33
|
+
* @include m('primary') {
|
|
34
|
+
* background: blue;
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* // 或传入多个修饰符
|
|
38
|
+
* @include b('button') {
|
|
39
|
+
* @include m(('primary', 'large')) {
|
|
40
|
+
* background: blue;
|
|
41
|
+
* font-size: 16px;
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 定义状态选择器
|
|
47
|
+
* @param {String} $state - 状态名称
|
|
48
|
+
* @example
|
|
49
|
+
* @include b('button') {
|
|
50
|
+
* @include when('disabled') {
|
|
51
|
+
* opacity: 0.5;
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* 深色主题样式
|
|
57
|
+
* @param {String} $block - Block 块名称
|
|
58
|
+
* @example
|
|
59
|
+
* @include dark('button') {
|
|
60
|
+
* background: #333;
|
|
61
|
+
* color: #fff;
|
|
62
|
+
* }
|
|
63
|
+
*/
|
|
64
|
+
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
+
.gct-popover {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
z-index: 1;
|
|
70
|
+
display: none;
|
|
71
|
+
width: max-content;
|
|
72
|
+
background-color: #fff;
|
|
73
|
+
background-clip: padding-box;
|
|
74
|
+
border-radius: 2px;
|
|
75
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
76
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \9 ;
|
|
77
|
+
}
|
|
78
|
+
.gct-popover__arrow {
|
|
79
|
+
position: absolute;
|
|
80
|
+
display: none;
|
|
81
|
+
width: 8px;
|
|
82
|
+
height: 8px;
|
|
83
|
+
background: #fff;
|
|
84
|
+
transform: rotate(45deg);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.gct-popover.is-show {
|
|
88
|
+
z-index: 1000;
|
|
89
|
+
display: block;
|
|
90
|
+
}
|
|
91
|
+
.gct-popover.is-show .gct-popover__arrow {
|
|
92
|
+
display: block;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.gct-popover__overlay {
|
|
96
|
+
position: fixed;
|
|
97
|
+
inset: 0;
|
|
98
|
+
z-index: 10000;
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { IPopoverOptions, FloatingUIConfig, IOverlayPopoverContainer } from '@gct-paas/core';
|
|
3
|
+
/**
|
|
4
|
+
* 创建飘窗
|
|
5
|
+
*
|
|
6
|
+
* @author chitanda
|
|
7
|
+
* @date 2022-12-29 15:12:59
|
|
8
|
+
* @export
|
|
9
|
+
* @param {() => VNode} render
|
|
10
|
+
* @param {IPopoverOptions<FloatingUIConfig>} [opts]
|
|
11
|
+
* @return {*} {OverlayPopoverContainer}
|
|
12
|
+
*/
|
|
13
|
+
export declare function createPopover(render: () => VNode, opts?: IPopoverOptions<FloatingUIConfig>): IOverlayPopoverContainer;
|