@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
package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs
DELETED
|
@@ -1,528 +0,0 @@
|
|
|
1
|
-
import '../../../../../../_virtual/_commonjsHelpers.mjs';
|
|
2
|
-
import { __exports as node } from '../../../../../../_virtual/node2.mjs';
|
|
3
|
-
|
|
4
|
-
var hasRequiredNode;
|
|
5
|
-
|
|
6
|
-
function requireNode () {
|
|
7
|
-
if (hasRequiredNode) return node;
|
|
8
|
-
hasRequiredNode = 1;
|
|
9
|
-
// Copyright (c) 2014 Rafael Caricio. All rights reserved.
|
|
10
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
11
|
-
// found in the LICENSE file.
|
|
12
|
-
|
|
13
|
-
var GradientParser = (GradientParser || {});
|
|
14
|
-
|
|
15
|
-
GradientParser.stringify = (function() {
|
|
16
|
-
|
|
17
|
-
var visitor = {
|
|
18
|
-
|
|
19
|
-
'visit_linear-gradient': function(node) {
|
|
20
|
-
return visitor.visit_gradient(node);
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
'visit_repeating-linear-gradient': function(node) {
|
|
24
|
-
return visitor.visit_gradient(node);
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
'visit_radial-gradient': function(node) {
|
|
28
|
-
return visitor.visit_gradient(node);
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
'visit_repeating-radial-gradient': function(node) {
|
|
32
|
-
return visitor.visit_gradient(node);
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
'visit_gradient': function(node) {
|
|
36
|
-
var orientation = visitor.visit(node.orientation);
|
|
37
|
-
if (orientation) {
|
|
38
|
-
orientation += ', ';
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return node.type + '(' + orientation + visitor.visit(node.colorStops) + ')';
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
'visit_shape': function(node) {
|
|
45
|
-
var result = node.value,
|
|
46
|
-
at = visitor.visit(node.at),
|
|
47
|
-
style = visitor.visit(node.style);
|
|
48
|
-
|
|
49
|
-
if (style) {
|
|
50
|
-
result += ' ' + style;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (at) {
|
|
54
|
-
result += ' at ' + at;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return result;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
'visit_default-radial': function(node) {
|
|
61
|
-
var result = '',
|
|
62
|
-
at = visitor.visit(node.at);
|
|
63
|
-
|
|
64
|
-
if (at) {
|
|
65
|
-
result += at;
|
|
66
|
-
}
|
|
67
|
-
return result;
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
'visit_extent-keyword': function(node) {
|
|
71
|
-
var result = node.value,
|
|
72
|
-
at = visitor.visit(node.at);
|
|
73
|
-
|
|
74
|
-
if (at) {
|
|
75
|
-
result += ' at ' + at;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return result;
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
'visit_position-keyword': function(node) {
|
|
82
|
-
return node.value;
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
'visit_position': function(node) {
|
|
86
|
-
return visitor.visit(node.value.x) + ' ' + visitor.visit(node.value.y);
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
'visit_%': function(node) {
|
|
90
|
-
return node.value + '%';
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
'visit_em': function(node) {
|
|
94
|
-
return node.value + 'em';
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
'visit_px': function(node) {
|
|
98
|
-
return node.value + 'px';
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
'visit_literal': function(node) {
|
|
102
|
-
return visitor.visit_color(node.value, node);
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
'visit_hex': function(node) {
|
|
106
|
-
return visitor.visit_color('#' + node.value, node);
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
'visit_rgb': function(node) {
|
|
110
|
-
return visitor.visit_color('rgb(' + node.value.join(', ') + ')', node);
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
'visit_rgba': function(node) {
|
|
114
|
-
return visitor.visit_color('rgba(' + node.value.join(', ') + ')', node);
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
'visit_color': function(resultColor, node) {
|
|
118
|
-
var result = resultColor,
|
|
119
|
-
length = visitor.visit(node.length);
|
|
120
|
-
|
|
121
|
-
if (length) {
|
|
122
|
-
result += ' ' + length;
|
|
123
|
-
}
|
|
124
|
-
return result;
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
'visit_angular': function(node) {
|
|
128
|
-
return node.value + 'deg';
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
'visit_directional': function(node) {
|
|
132
|
-
return 'to ' + node.value;
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
'visit_array': function(elements) {
|
|
136
|
-
var result = '',
|
|
137
|
-
size = elements.length;
|
|
138
|
-
|
|
139
|
-
elements.forEach(function(element, i) {
|
|
140
|
-
result += visitor.visit(element);
|
|
141
|
-
if (i < size - 1) {
|
|
142
|
-
result += ', ';
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
return result;
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
'visit': function(element) {
|
|
150
|
-
if (!element) {
|
|
151
|
-
return '';
|
|
152
|
-
}
|
|
153
|
-
var result = '';
|
|
154
|
-
|
|
155
|
-
if (element instanceof Array) {
|
|
156
|
-
return visitor.visit_array(element, result);
|
|
157
|
-
} else if (element.type) {
|
|
158
|
-
var nodeVisitor = visitor['visit_' + element.type];
|
|
159
|
-
if (nodeVisitor) {
|
|
160
|
-
return nodeVisitor(element);
|
|
161
|
-
} else {
|
|
162
|
-
throw Error('Missing visitor visit_' + element.type);
|
|
163
|
-
}
|
|
164
|
-
} else {
|
|
165
|
-
throw Error('Invalid node.');
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
return function(root) {
|
|
172
|
-
return visitor.visit(root);
|
|
173
|
-
};
|
|
174
|
-
})();
|
|
175
|
-
|
|
176
|
-
// Copyright (c) 2014 Rafael Caricio. All rights reserved.
|
|
177
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
178
|
-
// found in the LICENSE file.
|
|
179
|
-
|
|
180
|
-
var GradientParser = (GradientParser || {});
|
|
181
|
-
|
|
182
|
-
GradientParser.parse = (function() {
|
|
183
|
-
|
|
184
|
-
var tokens = {
|
|
185
|
-
linearGradient: /^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,
|
|
186
|
-
repeatingLinearGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,
|
|
187
|
-
radialGradient: /^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,
|
|
188
|
-
repeatingRadialGradient: /^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,
|
|
189
|
-
sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,
|
|
190
|
-
extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,
|
|
191
|
-
positionKeywords: /^(left|center|right|top|bottom)/i,
|
|
192
|
-
pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,
|
|
193
|
-
percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,
|
|
194
|
-
emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,
|
|
195
|
-
angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,
|
|
196
|
-
startCall: /^\(/,
|
|
197
|
-
endCall: /^\)/,
|
|
198
|
-
comma: /^,/,
|
|
199
|
-
hexColor: /^\#([0-9a-fA-F]+)/,
|
|
200
|
-
literalColor: /^([a-zA-Z]+)/,
|
|
201
|
-
rgbColor: /^rgb/i,
|
|
202
|
-
rgbaColor: /^rgba/i,
|
|
203
|
-
number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
var input = '';
|
|
207
|
-
|
|
208
|
-
function error(msg) {
|
|
209
|
-
var err = new Error(input + ': ' + msg);
|
|
210
|
-
err.source = input;
|
|
211
|
-
throw err;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
function getAST() {
|
|
215
|
-
var ast = matchListDefinitions();
|
|
216
|
-
|
|
217
|
-
if (input.length > 0) {
|
|
218
|
-
error('Invalid input not EOF');
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return ast;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
function matchListDefinitions() {
|
|
225
|
-
return matchListing(matchDefinition);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function matchDefinition() {
|
|
229
|
-
return matchGradient(
|
|
230
|
-
'linear-gradient',
|
|
231
|
-
tokens.linearGradient,
|
|
232
|
-
matchLinearOrientation) ||
|
|
233
|
-
|
|
234
|
-
matchGradient(
|
|
235
|
-
'repeating-linear-gradient',
|
|
236
|
-
tokens.repeatingLinearGradient,
|
|
237
|
-
matchLinearOrientation) ||
|
|
238
|
-
|
|
239
|
-
matchGradient(
|
|
240
|
-
'radial-gradient',
|
|
241
|
-
tokens.radialGradient,
|
|
242
|
-
matchListRadialOrientations) ||
|
|
243
|
-
|
|
244
|
-
matchGradient(
|
|
245
|
-
'repeating-radial-gradient',
|
|
246
|
-
tokens.repeatingRadialGradient,
|
|
247
|
-
matchListRadialOrientations);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
function matchGradient(gradientType, pattern, orientationMatcher) {
|
|
251
|
-
return matchCall(pattern, function(captures) {
|
|
252
|
-
|
|
253
|
-
var orientation = orientationMatcher();
|
|
254
|
-
if (orientation) {
|
|
255
|
-
if (!scan(tokens.comma)) {
|
|
256
|
-
error('Missing comma before color stops');
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
return {
|
|
261
|
-
type: gradientType,
|
|
262
|
-
orientation: orientation,
|
|
263
|
-
colorStops: matchListing(matchColorStop)
|
|
264
|
-
};
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
function matchCall(pattern, callback) {
|
|
269
|
-
var captures = scan(pattern);
|
|
270
|
-
|
|
271
|
-
if (captures) {
|
|
272
|
-
if (!scan(tokens.startCall)) {
|
|
273
|
-
error('Missing (');
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
var result = callback(captures);
|
|
277
|
-
|
|
278
|
-
if (!scan(tokens.endCall)) {
|
|
279
|
-
error('Missing )');
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
return result;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
function matchLinearOrientation() {
|
|
287
|
-
return matchSideOrCorner() ||
|
|
288
|
-
matchAngle();
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
function matchSideOrCorner() {
|
|
292
|
-
return match('directional', tokens.sideOrCorner, 1);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
function matchAngle() {
|
|
296
|
-
return match('angular', tokens.angleValue, 1);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
function matchListRadialOrientations() {
|
|
300
|
-
var radialOrientations,
|
|
301
|
-
radialOrientation = matchRadialOrientation(),
|
|
302
|
-
lookaheadCache;
|
|
303
|
-
|
|
304
|
-
if (radialOrientation) {
|
|
305
|
-
radialOrientations = [];
|
|
306
|
-
radialOrientations.push(radialOrientation);
|
|
307
|
-
|
|
308
|
-
lookaheadCache = input;
|
|
309
|
-
if (scan(tokens.comma)) {
|
|
310
|
-
radialOrientation = matchRadialOrientation();
|
|
311
|
-
if (radialOrientation) {
|
|
312
|
-
radialOrientations.push(radialOrientation);
|
|
313
|
-
} else {
|
|
314
|
-
input = lookaheadCache;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
return radialOrientations;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
function matchRadialOrientation() {
|
|
323
|
-
var radialType = matchCircle() ||
|
|
324
|
-
matchEllipse();
|
|
325
|
-
|
|
326
|
-
if (radialType) {
|
|
327
|
-
radialType.at = matchAtPosition();
|
|
328
|
-
} else {
|
|
329
|
-
var extent = matchExtentKeyword();
|
|
330
|
-
if (extent) {
|
|
331
|
-
radialType = extent;
|
|
332
|
-
var positionAt = matchAtPosition();
|
|
333
|
-
if (positionAt) {
|
|
334
|
-
radialType.at = positionAt;
|
|
335
|
-
}
|
|
336
|
-
} else {
|
|
337
|
-
var defaultPosition = matchPositioning();
|
|
338
|
-
if (defaultPosition) {
|
|
339
|
-
radialType = {
|
|
340
|
-
type: 'default-radial',
|
|
341
|
-
at: defaultPosition
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
return radialType;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
function matchCircle() {
|
|
351
|
-
var circle = match('shape', /^(circle)/i, 0);
|
|
352
|
-
|
|
353
|
-
if (circle) {
|
|
354
|
-
circle.style = matchLength() || matchExtentKeyword();
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
return circle;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
function matchEllipse() {
|
|
361
|
-
var ellipse = match('shape', /^(ellipse)/i, 0);
|
|
362
|
-
|
|
363
|
-
if (ellipse) {
|
|
364
|
-
ellipse.style = matchDistance() || matchExtentKeyword();
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
return ellipse;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
function matchExtentKeyword() {
|
|
371
|
-
return match('extent-keyword', tokens.extentKeywords, 1);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function matchAtPosition() {
|
|
375
|
-
if (match('position', /^at/, 0)) {
|
|
376
|
-
var positioning = matchPositioning();
|
|
377
|
-
|
|
378
|
-
if (!positioning) {
|
|
379
|
-
error('Missing positioning value');
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
return positioning;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
function matchPositioning() {
|
|
387
|
-
var location = matchCoordinates();
|
|
388
|
-
|
|
389
|
-
if (location.x || location.y) {
|
|
390
|
-
return {
|
|
391
|
-
type: 'position',
|
|
392
|
-
value: location
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
function matchCoordinates() {
|
|
398
|
-
return {
|
|
399
|
-
x: matchDistance(),
|
|
400
|
-
y: matchDistance()
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
function matchListing(matcher) {
|
|
405
|
-
var captures = matcher(),
|
|
406
|
-
result = [];
|
|
407
|
-
|
|
408
|
-
if (captures) {
|
|
409
|
-
result.push(captures);
|
|
410
|
-
while (scan(tokens.comma)) {
|
|
411
|
-
captures = matcher();
|
|
412
|
-
if (captures) {
|
|
413
|
-
result.push(captures);
|
|
414
|
-
} else {
|
|
415
|
-
error('One extra comma');
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
return result;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
function matchColorStop() {
|
|
424
|
-
var color = matchColor();
|
|
425
|
-
|
|
426
|
-
if (!color) {
|
|
427
|
-
error('Expected color definition');
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
color.length = matchDistance();
|
|
431
|
-
return color;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
function matchColor() {
|
|
435
|
-
return matchHexColor() ||
|
|
436
|
-
matchRGBAColor() ||
|
|
437
|
-
matchRGBColor() ||
|
|
438
|
-
matchLiteralColor();
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
function matchLiteralColor() {
|
|
442
|
-
return match('literal', tokens.literalColor, 0);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
function matchHexColor() {
|
|
446
|
-
return match('hex', tokens.hexColor, 1);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
function matchRGBColor() {
|
|
450
|
-
return matchCall(tokens.rgbColor, function() {
|
|
451
|
-
return {
|
|
452
|
-
type: 'rgb',
|
|
453
|
-
value: matchListing(matchNumber)
|
|
454
|
-
};
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
function matchRGBAColor() {
|
|
459
|
-
return matchCall(tokens.rgbaColor, function() {
|
|
460
|
-
return {
|
|
461
|
-
type: 'rgba',
|
|
462
|
-
value: matchListing(matchNumber)
|
|
463
|
-
};
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
function matchNumber() {
|
|
468
|
-
return scan(tokens.number)[1];
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
function matchDistance() {
|
|
472
|
-
return match('%', tokens.percentageValue, 1) ||
|
|
473
|
-
matchPositionKeyword() ||
|
|
474
|
-
matchLength();
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
function matchPositionKeyword() {
|
|
478
|
-
return match('position-keyword', tokens.positionKeywords, 1);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
function matchLength() {
|
|
482
|
-
return match('px', tokens.pixelValue, 1) ||
|
|
483
|
-
match('em', tokens.emValue, 1);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
function match(type, pattern, captureIndex) {
|
|
487
|
-
var captures = scan(pattern);
|
|
488
|
-
if (captures) {
|
|
489
|
-
return {
|
|
490
|
-
type: type,
|
|
491
|
-
value: captures[captureIndex]
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
function scan(regexp) {
|
|
497
|
-
var captures,
|
|
498
|
-
blankCaptures;
|
|
499
|
-
|
|
500
|
-
blankCaptures = /^[\n\r\t\s]+/.exec(input);
|
|
501
|
-
if (blankCaptures) {
|
|
502
|
-
consume(blankCaptures[0].length);
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
captures = regexp.exec(input);
|
|
506
|
-
if (captures) {
|
|
507
|
-
consume(captures[0].length);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
return captures;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
function consume(size) {
|
|
514
|
-
input = input.substr(size);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
return function(code) {
|
|
518
|
-
input = code.toString();
|
|
519
|
-
return getAST();
|
|
520
|
-
};
|
|
521
|
-
})();
|
|
522
|
-
|
|
523
|
-
node.parse = GradientParser.parse;
|
|
524
|
-
node.stringify = GradientParser.stringify;
|
|
525
|
-
return node;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export { requireNode as __require };
|
package/es/node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.mjs
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) {
|
|
17
|
-
var keys = Object.keys(object);
|
|
18
|
-
|
|
19
|
-
if (Object.getOwnPropertySymbols) {
|
|
20
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
21
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
22
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
23
|
-
});
|
|
24
|
-
keys.push.apply(keys, symbols);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return keys;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function _objectSpread2(target) {
|
|
31
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
33
|
-
|
|
34
|
-
if (i % 2) {
|
|
35
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
36
|
-
_defineProperty(target, key, source[key]);
|
|
37
|
-
});
|
|
38
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
39
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
40
|
-
} else {
|
|
41
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
42
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return target;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function compose() {
|
|
51
|
-
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
52
|
-
fns[_key] = arguments[_key];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
return function (x) {
|
|
56
|
-
return fns.reduceRight(function (y, f) {
|
|
57
|
-
return f(y);
|
|
58
|
-
}, x);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function curry(fn) {
|
|
63
|
-
return function curried() {
|
|
64
|
-
var _this = this;
|
|
65
|
-
|
|
66
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
67
|
-
args[_key2] = arguments[_key2];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return args.length >= fn.length ? fn.apply(this, args) : function () {
|
|
71
|
-
for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
72
|
-
nextArgs[_key3] = arguments[_key3];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return curried.apply(_this, [].concat(args, nextArgs));
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function isObject(value) {
|
|
81
|
-
return {}.toString.call(value).includes('Object');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function isEmpty(obj) {
|
|
85
|
-
return !Object.keys(obj).length;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function isFunction(value) {
|
|
89
|
-
return typeof value === 'function';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
function hasOwnProperty(object, property) {
|
|
93
|
-
return Object.prototype.hasOwnProperty.call(object, property);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function validateChanges(initial, changes) {
|
|
97
|
-
if (!isObject(changes)) errorHandler('changeType');
|
|
98
|
-
if (Object.keys(changes).some(function (field) {
|
|
99
|
-
return !hasOwnProperty(initial, field);
|
|
100
|
-
})) errorHandler('changeField');
|
|
101
|
-
return changes;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function validateSelector(selector) {
|
|
105
|
-
if (!isFunction(selector)) errorHandler('selectorType');
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function validateHandler(handler) {
|
|
109
|
-
if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');
|
|
110
|
-
if (isObject(handler) && Object.values(handler).some(function (_handler) {
|
|
111
|
-
return !isFunction(_handler);
|
|
112
|
-
})) errorHandler('handlersType');
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function validateInitial(initial) {
|
|
116
|
-
if (!initial) errorHandler('initialIsRequired');
|
|
117
|
-
if (!isObject(initial)) errorHandler('initialType');
|
|
118
|
-
if (isEmpty(initial)) errorHandler('initialContent');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function throwError(errorMessages, type) {
|
|
122
|
-
throw new Error(errorMessages[type] || errorMessages["default"]);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
var errorMessages = {
|
|
126
|
-
initialIsRequired: 'initial state is required',
|
|
127
|
-
initialType: 'initial state should be an object',
|
|
128
|
-
initialContent: 'initial state shouldn\'t be an empty object',
|
|
129
|
-
handlerType: 'handler should be an object or a function',
|
|
130
|
-
handlersType: 'all handlers should be a functions',
|
|
131
|
-
selectorType: 'selector should be a function',
|
|
132
|
-
changeType: 'provided value of changes should be an object',
|
|
133
|
-
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
134
|
-
"default": 'an unknown error accured in `state-local` package'
|
|
135
|
-
};
|
|
136
|
-
var errorHandler = curry(throwError)(errorMessages);
|
|
137
|
-
var validators = {
|
|
138
|
-
changes: validateChanges,
|
|
139
|
-
selector: validateSelector,
|
|
140
|
-
handler: validateHandler,
|
|
141
|
-
initial: validateInitial
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
function create(initial) {
|
|
145
|
-
var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
146
|
-
validators.initial(initial);
|
|
147
|
-
validators.handler(handler);
|
|
148
|
-
var state = {
|
|
149
|
-
current: initial
|
|
150
|
-
};
|
|
151
|
-
var didUpdate = curry(didStateUpdate)(state, handler);
|
|
152
|
-
var update = curry(updateState)(state);
|
|
153
|
-
var validate = curry(validators.changes)(initial);
|
|
154
|
-
var getChanges = curry(extractChanges)(state);
|
|
155
|
-
|
|
156
|
-
function getState() {
|
|
157
|
-
var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {
|
|
158
|
-
return state;
|
|
159
|
-
};
|
|
160
|
-
validators.selector(selector);
|
|
161
|
-
return selector(state.current);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function setState(causedChanges) {
|
|
165
|
-
compose(didUpdate, update, validate, getChanges)(causedChanges);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return [getState, setState];
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function extractChanges(state, causedChanges) {
|
|
172
|
-
return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function updateState(state, changes) {
|
|
176
|
-
state.current = _objectSpread2(_objectSpread2({}, state.current), changes);
|
|
177
|
-
return changes;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function didStateUpdate(state, handler, changes) {
|
|
181
|
-
isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {
|
|
182
|
-
var _handler$field;
|
|
183
|
-
|
|
184
|
-
return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);
|
|
185
|
-
});
|
|
186
|
-
return changes;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
var index = {
|
|
190
|
-
create: create
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export { index as default };
|