@gct-paas/core-web 0.1.4-dev.0 → 0.1.4-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-Bpd2MFJC.js +33732 -0
- package/dist/index-CwxW5OnC.js +98 -0
- package/dist/index-vFQ1naj3.cjs +98 -0
- package/dist/index.esm.min.mjs +41 -0
- package/dist/index.min.cjs +1 -20
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +1 -20
- package/dist/monaco-editor-5rbNTIph.cjs +19 -0
- package/dist/monaco-editor-DHkSqfaq.js +19 -0
- package/dist/monaco-editor-DYUIGpkZ.js +20245 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/components/app-modal/app-modal-component.css +149 -0
- package/es/components/app-modal/app-modal-component.d.ts +26 -0
- package/es/components/app-modal/app-modal-component.mjs +140 -0
- package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
- package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
- package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
- package/es/components/assets-svg-icon/request.d.ts +2 -0
- package/es/components/assets-svg-icon/request.mjs +51 -0
- package/es/components/assets-svg-icon/utils.d.ts +9 -0
- package/es/components/assets-svg-icon/utils.mjs +21 -0
- package/es/components/assets-svg-icon/validate.d.ts +4 -0
- package/es/components/assets-svg-icon/validate.mjs +43 -0
- package/es/components/base-button/base-button.css +74 -0
- package/es/components/base-button/base-button.vue.d.ts +173 -0
- package/es/components/base-button/base-button.vue.mjs +7 -0
- package/es/components/base-button/base-button.vue3.mjs +179 -0
- package/es/components/basic-button/basic-button.css +25 -0
- package/es/components/basic-button/basic-button.vue.d.ts +100 -0
- package/es/components/basic-button/basic-button.vue.mjs +7 -0
- package/es/components/basic-button/basic-button.vue3.mjs +130 -0
- package/es/components/code-editor/code-editor.css +67 -0
- package/es/components/code-editor/code-editor.d.ts +2 -5
- package/es/components/code-editor/code-editor.mjs +16 -22
- package/es/components/copy-module-key/copy-module-key.css +24 -0
- package/es/components/copy-module-key/copy-module-key.vue.d.ts +74 -0
- package/es/components/copy-module-key/copy-module-key.vue.mjs +7 -0
- package/es/components/copy-module-key/copy-module-key.vue3.mjs +104 -0
- package/es/components/double-input/double-input.vue.d.ts +49 -0
- package/es/components/double-input/double-input.vue.mjs +158 -0
- package/es/components/double-input/double-input.vue2.mjs +5 -0
- package/es/components/index.d.ts +13 -0
- package/es/components/index.mjs +25 -6
- package/es/components/layout/flex-container/flex-container.css +67 -0
- package/es/components/layout/flex-container/flex-container.mjs +13 -9
- package/es/components/layout/flex-item/flex-item.mjs +11 -9
- package/es/components/layout/grid-container/grid-container.mjs +11 -7
- package/es/components/layout/view-container/view-container.css +83 -0
- package/es/components/layout/view-container/view-container.mjs +6 -7
- package/es/components/svg-icon/svg-icon.css +73 -0
- package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
- package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
- package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
- package/es/components/wujie-container/wujie-container.css +74 -0
- package/es/components/wujie-container/wujie-container.d.ts +11 -0
- package/es/components/wujie-container/wujie-container.mjs +84 -0
- package/es/create-app-vue.d.ts +9 -0
- package/es/create-app-vue.mjs +17 -0
- package/es/directives/drag-resize.d.ts +4 -0
- package/es/directives/drag-resize.mjs +42 -0
- package/es/directives/index.d.ts +8 -0
- package/es/directives/index.mjs +9 -0
- package/es/directives/target-loading.d.ts +4 -0
- package/es/directives/target-loading.mjs +40 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +1 -1
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +1 -1
- package/es/editor/gct-form-info/gct-form-info.d.ts +1 -1
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +1 -1
- package/es/editor/gct-form-number/gct-form-number.d.ts +1 -1
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +1 -1
- package/es/editor/gct-form-select/gct-form-select.d.ts +1 -1
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +1 -1
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +1 -1
- package/es/hooks/index.d.ts +3 -0
- package/es/hooks/useDragLine.d.ts +6 -0
- package/es/hooks/useDragLine.mjs +78 -0
- package/es/hooks/useLocale.d.ts +4 -0
- package/es/hooks/useLocale.mjs +32 -0
- package/es/hooks/useTheme.d.ts +8 -0
- package/es/hooks/useTheme.mjs +20 -0
- package/es/index.d.ts +9 -7
- package/es/index.mjs +41 -23
- package/es/modules/code-editor/index.d.ts +163 -0
- package/es/modules/code-editor/index.mjs +8 -0
- package/es/modules/code-editor/monaco-editor.css +49 -0
- package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
- package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
- package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
- package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
- package/es/modules/code-editor/useEditorConsole.mjs +194 -0
- package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
- package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
- package/es/modules/color-picker/index.d.ts +2 -0
- package/es/modules/color-picker/src/ColorPicker.css +16 -0
- package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
- package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
- package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
- package/es/modules/color-picker/src/ColorPicker2.css +156 -0
- package/es/modules/formula-editor/constants/index.d.ts +7 -0
- package/es/modules/formula-editor/constants/index.mjs +8 -0
- package/es/modules/formula-editor/formula-editor.d.ts +10 -0
- package/es/modules/formula-editor/formula-editor.mjs +55 -0
- package/es/modules/formula-editor/index.d.ts +4 -0
- package/es/modules/formula-editor/interface/i-formula-editor-options/i-formula-editor-options.d.ts +47 -0
- package/es/modules/formula-editor/interface/i-formula-result/i-formula-result.d.ts +20 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
- package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
- package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
- package/es/modules/gct-dnd/constants/index.d.ts +22 -0
- package/es/modules/gct-dnd/constants/index.mjs +20 -0
- package/es/modules/gct-dnd/index.d.ts +5 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
- package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
- package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
- package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
- package/es/modules/gct-dnd/interface/index.d.ts +7 -0
- package/es/modules/global-modal/index.d.ts +5 -0
- package/es/modules/global-modal/index.mjs +16 -0
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
- package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
- package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
- package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
- package/es/modules/global-modal/src/components/ModalClose.css +95 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
- package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
- package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
- package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
- package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
- package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
- package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
- package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
- package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
- package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
- package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
- package/es/modules/global-modal/src/index.css +153 -0
- package/es/modules/global-modal/src/props.d.ts +156 -0
- package/es/modules/global-modal/src/props.mjs +57 -0
- package/es/modules/global-modal/src/typing.d.ts +174 -0
- package/es/modules/target-loading/index.d.ts +4 -0
- package/es/modules/target-loading/src/createLoading.d.ts +13 -0
- package/es/modules/target-loading/src/createLoading.mjs +57 -0
- package/es/modules/target-loading/src/target-loading.css +18 -0
- package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
- package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
- package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
- package/es/modules/target-loading/src/typing.d.ts +9 -0
- package/es/modules/target-loading/src/useLoading.d.ts +9 -0
- package/es/setup-app.d.ts +1 -0
- package/es/setup-app.mjs +4 -0
- package/es/types/index.d.ts +191 -1
- package/es/utils/index.d.ts +4 -0
- package/es/utils/message-util/message-util.d.ts +7 -0
- package/es/utils/message-util/message-util.mjs +26 -0
- package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
- package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
- package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
- package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
- package/es/utils/with-install.d.ts +14 -0
- package/es/utils/with-install.mjs +13 -0
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
- package/package.json +26 -14
- package/dist/core-web.css +0 -1
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/node.mjs +0 -7
- package/es/_virtual/node2.mjs +0 -3
- package/es/components/code-editor/code-editor.scss +0 -3
- package/es/components/layout/flex-container/flex-container.scss +0 -3
- package/es/components/layout/flex-item/flex-item.scss +0 -17
- package/es/components/layout/view-container/view-container.scss +0 -19
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
- package/es/editor/gct-form-check-switch/index.mjs +0 -12
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
- package/es/editor/gct-form-checkbox/index.mjs +0 -19
- package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
- package/es/editor/gct-form-color/gct-form-color.scss +0 -3
- package/es/editor/gct-form-color/index.mjs +0 -17
- package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
- package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
- package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
- package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
- package/es/editor/gct-form-field-select/index.mjs +0 -12
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
- package/es/editor/gct-form-i18n/index.mjs +0 -12
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
- package/es/editor/gct-form-icon-select/index.mjs +0 -14
- package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
- package/es/editor/gct-form-info/gct-form-info.scss +0 -8
- package/es/editor/gct-form-info/index.mjs +0 -14
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
- package/es/editor/gct-form-length-unit/index.mjs +0 -12
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
- package/es/editor/gct-form-modal-select/index.mjs +0 -12
- package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
- package/es/editor/gct-form-number/gct-form-number.scss +0 -3
- package/es/editor/gct-form-number/index.mjs +0 -17
- package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
- package/es/editor/gct-form-picker/index.mjs +0 -12
- package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
- package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
- package/es/editor/gct-form-radio/index.mjs +0 -19
- package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
- package/es/editor/gct-form-select/index.mjs +0 -12
- package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
- package/es/editor/gct-form-span/gct-form-span.scss +0 -10
- package/es/editor/gct-form-span/index.mjs +0 -12
- package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
- package/es/editor/gct-form-switch/index.mjs +0 -17
- package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
- package/es/editor/gct-form-text/index.mjs +0 -17
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
- package/es/editor/gct-form-textarea/index.mjs +0 -12
- package/es/editor/index.mjs +0 -51
- package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +0 -3
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.mjs +0 -142
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/config/index.mjs +0 -7
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/index.mjs +0 -1
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs +0 -188
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/compose.mjs +0 -13
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.mjs +0 -19
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.mjs +0 -14
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.mjs +0 -5
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.mjs +0 -20
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/validators/index.mjs +0 -49
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +0 -200
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +0 -26
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +0 -44
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +0 -72
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +0 -60
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +0 -32
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +0 -28
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +0 -71
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +0 -22
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +0 -34
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +0 -23
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +0 -29
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +0 -33
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +0 -87
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +0 -92
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +0 -171
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +0 -51
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +0 -149
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +0 -63
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +0 -56
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +0 -27
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +0 -144
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +0 -12
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +0 -73
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +0 -17
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +0 -67
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +0 -11
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +0 -11
- package/es/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.8.3_/node_modules/@vueuse/core/index.mjs +0 -7487
- package/es/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.8.3_/node_modules/@vueuse/shared/index.mjs +0 -1576
- package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +0 -528
- package/es/node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.mjs +0 -193
- package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +0 -1180
- package/es/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.13_typescript@5.8.3_/node_modules/vue-demi/lib/index.mjs +0 -29
- package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.13_typescript@5.8.3_/node_modules/vue-types/dist/vue-types.m.mjs +0 -3
- package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@1_9cfe46f6a11310063dbf07d888abdb76/node_modules/vue3-colorpicker/index.es.mjs +0 -1815
- package/es/vite-env.d.ts +0 -1
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
- package/es/widgets/gct-edit-form/index.mjs +0 -10
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
- package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
- package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
- package/es/widgets/gct-form/gct-form.mjs +0 -110
- package/es/widgets/gct-form/gct-form.scss +0 -11
- package/es/widgets/gct-form/index.mjs +0 -31
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
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
|
+
/** 内容 */
|
|
13
|
+
moduleKey: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
require: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** 是否显示tips */
|
|
18
|
+
isTooltip: BooleanConstructor;
|
|
19
|
+
/** 是否支持拷贝 */
|
|
20
|
+
supportCopy: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
iconPos: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
showText: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
fontSize: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
/** 内容 */
|
|
38
|
+
moduleKey: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
require: boolean;
|
|
41
|
+
};
|
|
42
|
+
/** 是否显示tips */
|
|
43
|
+
isTooltip: BooleanConstructor;
|
|
44
|
+
/** 是否支持拷贝 */
|
|
45
|
+
supportCopy: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
iconPos: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
showText: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
fontSize: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{}>, {
|
|
62
|
+
isTooltip: boolean;
|
|
63
|
+
supportCopy: boolean;
|
|
64
|
+
iconPos: string;
|
|
65
|
+
showText: boolean;
|
|
66
|
+
fontSize: number;
|
|
67
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from './copy-module-key.vue3.mjs';
|
|
2
|
+
import './copy-module-key.css';/* empty css */
|
|
3
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
+
|
|
5
|
+
const copyModuleKey = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-531b3cd2"]]);
|
|
6
|
+
|
|
7
|
+
export { copyModuleKey as default };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, withModifiers, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString, createTextVNode, normalizeStyle, unref } from 'vue';
|
|
2
|
+
import { useCopyToClipboard, t } from '@gct-paas/core';
|
|
3
|
+
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "copy-wrap copy-wrap-tooltip"
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "copy-key"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "copy-wrap"
|
|
15
|
+
};
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "copy-module-key",
|
|
18
|
+
props: {
|
|
19
|
+
/** 内容 */
|
|
20
|
+
moduleKey: {
|
|
21
|
+
type: String,
|
|
22
|
+
require: true
|
|
23
|
+
},
|
|
24
|
+
/** 是否显示tips */
|
|
25
|
+
isTooltip: Boolean,
|
|
26
|
+
/** 是否支持拷贝 */
|
|
27
|
+
supportCopy: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
31
|
+
iconPos: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "right"
|
|
34
|
+
//left / right
|
|
35
|
+
},
|
|
36
|
+
showText: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: true
|
|
39
|
+
},
|
|
40
|
+
fontSize: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 14
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
setup(__props) {
|
|
46
|
+
const props = __props;
|
|
47
|
+
const isShowCopyIcon = computed(() => {
|
|
48
|
+
return props.moduleKey && props.supportCopy;
|
|
49
|
+
});
|
|
50
|
+
function handleClipboardKey() {
|
|
51
|
+
const { isSuccessRef } = useCopyToClipboard(props.moduleKey);
|
|
52
|
+
unref(isSuccessRef) && _gct.message.success(t("sys.copySuccess"));
|
|
53
|
+
}
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
56
|
+
return __props.isTooltip ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
57
|
+
isShowCopyIcon.value && __props.iconPos === "left" ? (openBlock(), createElementBlock("i", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: "iconfont icon-fuzhi primary-gct",
|
|
60
|
+
style: { "margin-right": "4px" },
|
|
61
|
+
onClick: withModifiers(handleClipboardKey, ["stop"])
|
|
62
|
+
})) : createCommentVNode("", true),
|
|
63
|
+
createVNode(_component_a_tooltip, null, {
|
|
64
|
+
title: withCtx(() => [
|
|
65
|
+
createTextVNode(toDisplayString(__props.moduleKey), 1)
|
|
66
|
+
]),
|
|
67
|
+
default: withCtx(() => [
|
|
68
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
69
|
+
__props.showText ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.moduleKey), 1)) : createCommentVNode("", true)
|
|
70
|
+
], true)
|
|
71
|
+
]),
|
|
72
|
+
_: 3
|
|
73
|
+
}),
|
|
74
|
+
isShowCopyIcon.value && __props.iconPos === "right" ? (openBlock(), createElementBlock("i", {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "iconfont icon-fuzhi primary-gct",
|
|
77
|
+
style: { "margin-left": "4px" },
|
|
78
|
+
onClick: withModifiers(handleClipboardKey, ["stop"])
|
|
79
|
+
})) : createCommentVNode("", true)
|
|
80
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
81
|
+
isShowCopyIcon.value && __props.iconPos === "left" ? (openBlock(), createElementBlock("i", {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "iconfont icon-fuzhi primary-gct",
|
|
84
|
+
style: { "margin-right": "4px" },
|
|
85
|
+
onClick: withModifiers(handleClipboardKey, ["stop"])
|
|
86
|
+
})) : createCommentVNode("", true),
|
|
87
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
88
|
+
__props.showText ? (openBlock(), createElementBlock("span", {
|
|
89
|
+
key: 0,
|
|
90
|
+
style: normalizeStyle(`font-size: ${__props.fontSize}px; overflow-wrap: anywhere`)
|
|
91
|
+
}, toDisplayString(__props.moduleKey), 5)) : createCommentVNode("", true)
|
|
92
|
+
], true),
|
|
93
|
+
isShowCopyIcon.value && __props.iconPos === "right" ? (openBlock(), createElementBlock("i", {
|
|
94
|
+
key: 1,
|
|
95
|
+
class: "iconfont icon-fuzhi primary-gct",
|
|
96
|
+
style: { "margin-left": "4px" },
|
|
97
|
+
onClick: withModifiers(handleClipboardKey, ["stop"])
|
|
98
|
+
})) : createCommentVNode("", true)
|
|
99
|
+
]));
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
doubleValue: number | string | unknown;
|
|
3
|
+
isSeparator?: boolean;
|
|
4
|
+
onEnter?: Fn;
|
|
5
|
+
/** 角标组件 */
|
|
6
|
+
renderScript?: Comment;
|
|
7
|
+
/** 小数位数 */
|
|
8
|
+
digits?: number;
|
|
9
|
+
/** 是否启用计步器 */
|
|
10
|
+
enableStepCounter?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @interface IInputEvent
|
|
14
|
+
* 描述 Input 事件对象结构
|
|
15
|
+
*/
|
|
16
|
+
interface IInputEvent {
|
|
17
|
+
target: {
|
|
18
|
+
value: string | number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
slots: {
|
|
24
|
+
'step-down'?(_: {}): any;
|
|
25
|
+
'step-up'?(_: {}): any;
|
|
26
|
+
};
|
|
27
|
+
refs: {
|
|
28
|
+
inputNumberRef: unknown;
|
|
29
|
+
};
|
|
30
|
+
rootEl: any;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
34
|
+
input: import('vue').Ref<any, any>;
|
|
35
|
+
onChangeValue: (event: IInputEvent) => void;
|
|
36
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
"update:doubleValue": (...args: any[]) => void;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
39
|
+
"onUpdate:doubleValue"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
inputNumberRef: unknown;
|
|
42
|
+
}, any>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot, resolveDynamicComponent, createCommentVNode } from 'vue';
|
|
2
|
+
import { isNil } from 'lodash-es';
|
|
3
|
+
import BigNumber from 'bignumber.js';
|
|
4
|
+
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "double-input",
|
|
7
|
+
props: {
|
|
8
|
+
doubleValue: {},
|
|
9
|
+
isSeparator: { type: Boolean },
|
|
10
|
+
onEnter: {},
|
|
11
|
+
renderScript: {},
|
|
12
|
+
digits: {},
|
|
13
|
+
enableStepCounter: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:doubleValue"],
|
|
16
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const emit = __emit;
|
|
19
|
+
const inputAttr = ref({});
|
|
20
|
+
const inputNumberRef = ref();
|
|
21
|
+
const inputValue = computed({
|
|
22
|
+
get() {
|
|
23
|
+
const { val, precision } = getFormatterValue(props.doubleValue);
|
|
24
|
+
setInputAttr(precision);
|
|
25
|
+
return val;
|
|
26
|
+
},
|
|
27
|
+
set(value) {
|
|
28
|
+
emit("update:doubleValue", value);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const countDecimals = (num) => {
|
|
32
|
+
const str = String(num);
|
|
33
|
+
const match = str.match(/\.(\d+)/);
|
|
34
|
+
return match ? match[1].length : 0;
|
|
35
|
+
};
|
|
36
|
+
const formatterValue = (inputValue2) => {
|
|
37
|
+
let value = inputValue2?.toString();
|
|
38
|
+
if (props.isSeparator && value) {
|
|
39
|
+
value = value.replace(/\$\s?|(,*)/g, "");
|
|
40
|
+
}
|
|
41
|
+
const currentValue = parseFloat(value);
|
|
42
|
+
if (isNaN(currentValue)) {
|
|
43
|
+
return {
|
|
44
|
+
val: null
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (value.toString().indexOf(".") === 0) {
|
|
48
|
+
value = `0${value}`;
|
|
49
|
+
}
|
|
50
|
+
if (Number.isInteger(currentValue)) {
|
|
51
|
+
const reg = new RegExp(`^${currentValue}(\\.)`, "g");
|
|
52
|
+
if (reg.test(value)) {
|
|
53
|
+
const firstVal = value.replace(
|
|
54
|
+
new RegExp(`^(${currentValue}(\\.))(.*)`),
|
|
55
|
+
"$1"
|
|
56
|
+
);
|
|
57
|
+
if (firstVal === `${currentValue}.`) {
|
|
58
|
+
const otherVal = value.replace(reg, "");
|
|
59
|
+
let dIndex = otherVal.toString().indexOf(".");
|
|
60
|
+
if (dIndex === 0) {
|
|
61
|
+
return {
|
|
62
|
+
val: currentValue
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
if (parseFloat(otherVal) === 0) {
|
|
66
|
+
const decimalValue = otherVal.toString().replace(new RegExp(`^(\\d*)(.*)`), "$1");
|
|
67
|
+
return {
|
|
68
|
+
val: `${currentValue}.${decimalValue}`,
|
|
69
|
+
precision: decimalValue.length
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
val: currentValue
|
|
76
|
+
};
|
|
77
|
+
} else {
|
|
78
|
+
const _val = value.replace(new RegExp(`^(\\d*\\.\\d*)(.*)`), "$1");
|
|
79
|
+
if (_val === currentValue.toString()) {
|
|
80
|
+
return {
|
|
81
|
+
val: _val
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
val: _val,
|
|
86
|
+
precision: countDecimals(_val)
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const getFormatterValue = (inputValue2) => {
|
|
91
|
+
const res = formatterValue(inputValue2);
|
|
92
|
+
if (isNil(props.digits)) {
|
|
93
|
+
return res;
|
|
94
|
+
}
|
|
95
|
+
const { val, precision } = res;
|
|
96
|
+
return {
|
|
97
|
+
val: val ? Number(new BigNumber(val).toFixed(props.digits, 1)) : val,
|
|
98
|
+
precision
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
const setInputAttr = (precision) => {
|
|
102
|
+
inputAttr.value = {};
|
|
103
|
+
if (precision !== void 0 && isNil(props.digits)) {
|
|
104
|
+
inputAttr.value = {
|
|
105
|
+
precision
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const onChangeValue = (event) => {
|
|
110
|
+
const {
|
|
111
|
+
target: { value: inputValue2 }
|
|
112
|
+
} = event || {};
|
|
113
|
+
const { val, precision } = getFormatterValue(inputValue2);
|
|
114
|
+
setInputAttr(precision);
|
|
115
|
+
emit("update:doubleValue", val);
|
|
116
|
+
};
|
|
117
|
+
const onPressEnter = (event) => {
|
|
118
|
+
onChangeValue(event);
|
|
119
|
+
if (props.onEnter && typeof props.onEnter === "function") {
|
|
120
|
+
props.onEnter?.(event);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
__expose({
|
|
124
|
+
input: inputNumberRef,
|
|
125
|
+
onChangeValue
|
|
126
|
+
});
|
|
127
|
+
return (_ctx, _cache) => {
|
|
128
|
+
const _component_a_input_number = resolveComponent("a-input-number");
|
|
129
|
+
return openBlock(), createBlock(_component_a_input_number, mergeProps({
|
|
130
|
+
ref_key: "inputNumberRef",
|
|
131
|
+
ref: inputNumberRef
|
|
132
|
+
}, inputAttr.value, {
|
|
133
|
+
value: inputValue.value,
|
|
134
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
135
|
+
onBlur: onChangeValue,
|
|
136
|
+
onPressEnter
|
|
137
|
+
}), createSlots({ _: 2 }, [
|
|
138
|
+
__props.enableStepCounter ? {
|
|
139
|
+
name: "addonBefore",
|
|
140
|
+
fn: withCtx(() => [
|
|
141
|
+
renderSlot(_ctx.$slots, "step-down")
|
|
142
|
+
]),
|
|
143
|
+
key: "0"
|
|
144
|
+
} : void 0,
|
|
145
|
+
__props.enableStepCounter || __props.renderScript ? {
|
|
146
|
+
name: "addonAfter",
|
|
147
|
+
fn: withCtx(() => [
|
|
148
|
+
__props.renderScript ? (openBlock(), createBlock(resolveDynamicComponent(__props.renderScript), { key: 0 })) : createCommentVNode("", true),
|
|
149
|
+
__props.enableStepCounter ? renderSlot(_ctx.$slots, "step-up", { key: 1 }) : createCommentVNode("", true)
|
|
150
|
+
]),
|
|
151
|
+
key: "1"
|
|
152
|
+
} : void 0
|
|
153
|
+
]), 1040, ["value"]);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
export { _sfc_main as default };
|
package/es/components/index.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as SvgIcon } from './svg-icon/svg-icon.vue';
|
|
3
|
+
import { AssetsSvgIcon } from './assets-svg-icon/assets-svg-icon';
|
|
4
|
+
import { default as BaseButton } from './base-button/base-button.vue';
|
|
5
|
+
import { default as BasicButton } from './basic-button/basic-button.vue';
|
|
6
|
+
import { WuJieContainer } from './wujie-container/wujie-container';
|
|
7
|
+
import { default as DoubleInput } from './double-input/double-input.vue';
|
|
8
|
+
import { default as CopyModuleKey } from './copy-module-key/copy-module-key.vue';
|
|
9
|
+
export { SvgIcon, AssetsSvgIcon, BaseButton, BasicButton, WuJieContainer, DoubleInput, CopyModuleKey, };
|
|
1
10
|
export { CodeEditor } from './code-editor/code-editor';
|
|
2
11
|
export { FlexContainer } from './layout/flex-container/flex-container';
|
|
3
12
|
export { FlexItem } from './layout/flex-item/flex-item';
|
|
4
13
|
export { GridContainer } from './layout/grid-container/grid-container';
|
|
5
14
|
export { ViewContainer } from './layout/view-container/view-container';
|
|
15
|
+
declare const _default: {
|
|
16
|
+
install(app: App): void;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
package/es/components/index.mjs
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import _sfc_main from './svg-icon/svg-icon.vue.mjs';
|
|
2
|
+
import './layout/view-container/view-container.css';import './layout/flex-container/flex-container.css';import './code-editor/code-editor.css';import './copy-module-key/copy-module-key.css';import './basic-button/basic-button.css';import './base-button/base-button.css';import './svg-icon/svg-icon.css';/* empty css */
|
|
3
|
+
import { AssetsSvgIcon } from './assets-svg-icon/assets-svg-icon.mjs';
|
|
4
|
+
import 'vue';
|
|
5
|
+
import 'ant-design-vue';
|
|
6
|
+
import 'lodash-es';
|
|
7
|
+
import '@gct-paas/core';
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
import { WuJieContainer } from './wujie-container/wujie-container.mjs';
|
|
11
|
+
import 'bignumber.js';
|
|
12
|
+
/* empty css */
|
|
13
|
+
import '@monaco-editor/loader';
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
/* empty css */
|
|
6
17
|
|
|
7
|
-
|
|
18
|
+
const Comps = {
|
|
19
|
+
install(app) {
|
|
20
|
+
app.component(AssetsSvgIcon.name, AssetsSvgIcon);
|
|
21
|
+
app.component(_sfc_main.name, _sfc_main);
|
|
22
|
+
app.component(WuJieContainer.name, WuJieContainer);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { AssetsSvgIcon, _sfc_main as SvgIcon, WuJieContainer, Comps as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
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-flex-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createVNode, isVNode } from 'vue';
|
|
2
2
|
import { FlexItem } from '../flex-item/flex-item.mjs';
|
|
3
3
|
import { useNamespace } from '@gct-paas/core';
|
|
4
|
-
import './flex-container.
|
|
4
|
+
import './flex-container.css';/* empty css */
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* flex 布局容器
|
|
10
|
+
*/
|
|
7
11
|
function _isSlot(s) {
|
|
8
|
-
return typeof s ===
|
|
12
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
9
13
|
}
|
|
10
14
|
const FlexContainer = /* @__PURE__ */ defineComponent({
|
|
11
|
-
name:
|
|
15
|
+
name: 'FlexContainer',
|
|
12
16
|
props: {
|
|
13
17
|
layout: Object
|
|
14
18
|
},
|
|
15
19
|
setup(props) {
|
|
16
|
-
const ns = useNamespace(
|
|
20
|
+
const ns = useNamespace('flex-container');
|
|
17
21
|
const getStyle = () => {
|
|
18
22
|
const style = {};
|
|
19
23
|
if (props.layout) {
|
|
@@ -42,7 +46,7 @@ const FlexContainer = /* @__PURE__ */ defineComponent({
|
|
|
42
46
|
}
|
|
43
47
|
return style;
|
|
44
48
|
};
|
|
45
|
-
const getItemStyle =
|
|
49
|
+
const getItemStyle = model => {
|
|
46
50
|
const style = {};
|
|
47
51
|
if (model) {
|
|
48
52
|
const {
|
|
@@ -72,7 +76,7 @@ const FlexContainer = /* @__PURE__ */ defineComponent({
|
|
|
72
76
|
return createVNode("div", {
|
|
73
77
|
"class": this.ns.b(),
|
|
74
78
|
"style": this.getStyle()
|
|
75
|
-
}, [items.map(
|
|
79
|
+
}, [items.map(item => {
|
|
76
80
|
if (!item) {
|
|
77
81
|
return null;
|
|
78
82
|
}
|
|
@@ -87,4 +91,4 @@ const FlexContainer = /* @__PURE__ */ defineComponent({
|
|
|
87
91
|
}
|
|
88
92
|
});
|
|
89
93
|
|
|
90
|
-
export { FlexContainer
|
|
94
|
+
export { FlexContainer };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { defineComponent, createVNode } from 'vue';
|
|
2
2
|
import { useNamespace } from '@gct-paas/core';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* flex 布局容器项
|
|
6
|
+
*/
|
|
5
7
|
const FlexItem = /* @__PURE__ */ defineComponent({
|
|
6
|
-
name:
|
|
8
|
+
name: 'FlexItem',
|
|
7
9
|
props: {
|
|
8
10
|
layout: Object
|
|
9
11
|
},
|
|
10
12
|
setup(props) {
|
|
11
|
-
const ns = useNamespace(
|
|
13
|
+
const ns = useNamespace('flex-item');
|
|
12
14
|
const getStyle = () => {
|
|
13
15
|
const style = {};
|
|
14
16
|
if (props.layout) {
|
|
@@ -20,19 +22,19 @@ const FlexItem = /* @__PURE__ */ defineComponent({
|
|
|
20
22
|
flexShrink
|
|
21
23
|
} = props.layout;
|
|
22
24
|
if (order != null) {
|
|
23
|
-
style[
|
|
25
|
+
style['order'] = order;
|
|
24
26
|
}
|
|
25
27
|
if (alignSelf != null) {
|
|
26
|
-
style[
|
|
28
|
+
style['align-self'] = alignSelf;
|
|
27
29
|
}
|
|
28
30
|
if (flexBasis != null) {
|
|
29
|
-
style[
|
|
31
|
+
style['flex-basis'] = flexBasis;
|
|
30
32
|
}
|
|
31
33
|
if (flexGrow != null) {
|
|
32
|
-
style[
|
|
34
|
+
style['flex-grow'] = flexGrow;
|
|
33
35
|
}
|
|
34
36
|
if (flexShrink != null) {
|
|
35
|
-
style[
|
|
37
|
+
style['flex-shrink'] = flexShrink;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
return style;
|
|
@@ -50,4 +52,4 @@ const FlexItem = /* @__PURE__ */ defineComponent({
|
|
|
50
52
|
}
|
|
51
53
|
});
|
|
52
54
|
|
|
53
|
-
export { FlexItem
|
|
55
|
+
export { FlexItem };
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, createVNode, resolveComponent, isVNode } from 'vue';
|
|
2
2
|
import { useNamespace } from '@gct-paas/core';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 栅格布局
|
|
8
|
+
*/
|
|
5
9
|
function _isSlot(s) {
|
|
6
|
-
return typeof s ===
|
|
10
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
7
11
|
}
|
|
8
12
|
const GridContainer = /* @__PURE__ */ defineComponent({
|
|
9
|
-
name:
|
|
13
|
+
name: 'GridContainer',
|
|
10
14
|
props: {
|
|
11
15
|
layout: Object
|
|
12
16
|
},
|
|
13
17
|
setup() {
|
|
14
|
-
const ns = useNamespace(
|
|
18
|
+
const ns = useNamespace('grid-container');
|
|
15
19
|
return {
|
|
16
20
|
ns
|
|
17
21
|
};
|
|
@@ -27,7 +31,7 @@ const GridContainer = /* @__PURE__ */ defineComponent({
|
|
|
27
31
|
"class": this.ns.b(),
|
|
28
32
|
"wrap": true,
|
|
29
33
|
"gutter": l.gutter
|
|
30
|
-
}, _isSlot(_slot = items.map(
|
|
34
|
+
}, _isSlot(_slot = items.map(item => {
|
|
31
35
|
if (!item) {
|
|
32
36
|
return null;
|
|
33
37
|
}
|
|
@@ -44,4 +48,4 @@ const GridContainer = /* @__PURE__ */ defineComponent({
|
|
|
44
48
|
}
|
|
45
49
|
});
|
|
46
50
|
|
|
47
|
-
export { GridContainer
|
|
51
|
+
export { GridContainer };
|