@gct-paas/core-web 0.0.1-dev.15 → 0.0.1-dev.17
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/core-web.css +1 -0
- package/dist/index.min.cjs +12 -3
- package/dist/index.system.min.js +12 -3
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/_virtual/node.mjs +7 -0
- package/es/_virtual/node2.mjs +3 -0
- package/es/components/code-editor/code-editor.d.ts +28 -2
- package/es/components/code-editor/code-editor.mjs +39 -8
- package/es/components/code-editor/code-editor.scss +1 -1
- package/es/components/index.d.ts +4 -0
- package/es/components/index.mjs +4 -0
- package/es/components/layout/flex-container/flex-container.d.ts +15 -0
- package/es/components/layout/flex-container/flex-container.mjs +90 -0
- package/es/components/layout/flex-container/flex-container.scss +3 -0
- package/es/components/layout/flex-item/flex-item.d.ts +14 -0
- package/es/components/layout/flex-item/flex-item.mjs +53 -0
- package/es/components/layout/flex-item/flex-item.scss +17 -0
- package/es/components/layout/grid-container/grid-container.d.ts +13 -0
- package/es/components/layout/grid-container/grid-container.mjs +47 -0
- package/es/components/layout/view-container/view-container.d.ts +25 -0
- package/es/components/layout/view-container/view-container.mjs +39 -0
- package/es/components/layout/view-container/view-container.scss +19 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +40 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +53 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.d.ts +13 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +6 -0
- package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +10 -0
- package/es/editor/gct-form-check-switch/index.d.ts +4 -0
- package/es/editor/gct-form-check-switch/index.mjs +12 -0
- package/es/editor/gct-form-checkbox/gct-form-checkbox.d.ts +41 -0
- package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +70 -0
- package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +56 -0
- package/es/editor/gct-form-checkbox/index.d.ts +11 -0
- package/es/editor/gct-form-checkbox/index.mjs +19 -0
- package/es/editor/gct-form-color/gct-form-color.d.ts +5 -0
- package/es/editor/gct-form-color/gct-form-color.mjs +52 -0
- package/es/editor/gct-form-color/gct-form-color.provider.d.ts +13 -0
- package/es/editor/gct-form-color/gct-form-color.provider.mjs +6 -0
- package/es/editor/gct-form-color/gct-form-color.scss +3 -0
- package/es/editor/gct-form-color/index.d.ts +7 -0
- package/es/editor/gct-form-color/index.mjs +17 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +38 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.mjs +62 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.d.ts +13 -0
- package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +6 -0
- package/es/editor/gct-form-i18n/index.d.ts +4 -0
- package/es/editor/gct-form-i18n/index.mjs +12 -0
- package/es/editor/gct-form-icon-select/gct-form-icon-select.d.ts +29 -0
- package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +74 -0
- package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +14 -0
- package/es/editor/gct-form-icon-select/index.d.ts +8 -0
- package/es/editor/gct-form-icon-select/index.mjs +14 -0
- package/es/editor/gct-form-info/gct-form-info.d.ts +28 -0
- package/es/editor/gct-form-info/gct-form-info.mjs +40 -0
- package/es/editor/gct-form-info/gct-form-info.scss +8 -0
- package/es/editor/gct-form-info/index.d.ts +8 -0
- package/es/editor/gct-form-info/index.mjs +14 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +39 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +43 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.d.ts +13 -0
- package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +6 -0
- package/es/editor/gct-form-length-unit/index.d.ts +4 -0
- package/es/editor/gct-form-length-unit/index.mjs +12 -0
- package/es/editor/gct-form-number/gct-form-number.d.ts +29 -0
- package/es/editor/gct-form-number/gct-form-number.mjs +46 -0
- package/es/editor/gct-form-number/gct-form-number.provider.d.ts +4 -0
- package/es/editor/gct-form-number/gct-form-number.provider.mjs +6 -0
- package/es/editor/gct-form-number/index.d.ts +7 -0
- package/es/editor/gct-form-number/index.mjs +17 -0
- package/es/editor/gct-form-picker/gct-form-picker.d.ts +39 -0
- package/es/editor/gct-form-picker/gct-form-picker.mjs +92 -0
- package/es/editor/gct-form-picker/gct-form-picker.provider.d.ts +13 -0
- package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +6 -0
- package/es/editor/gct-form-picker/index.d.ts +4 -0
- package/es/editor/gct-form-picker/index.mjs +12 -0
- package/es/editor/gct-form-radio/gct-form-radio.d.ts +37 -0
- package/es/editor/gct-form-radio/gct-form-radio.mjs +70 -0
- package/es/editor/gct-form-radio/gct-form-radio.scss +68 -0
- package/es/editor/gct-form-radio/index.d.ts +11 -0
- package/es/editor/gct-form-radio/index.mjs +19 -0
- package/es/editor/gct-form-select/gct-form-select.d.ts +38 -0
- package/es/editor/gct-form-select/gct-form-select.mjs +50 -0
- package/es/editor/gct-form-select/gct-form-select.provider.d.ts +13 -0
- package/es/editor/gct-form-select/gct-form-select.provider.mjs +6 -0
- package/es/editor/gct-form-select/index.d.ts +4 -0
- package/es/editor/gct-form-select/index.mjs +12 -0
- package/es/editor/gct-form-span/gct-form-span.d.ts +43 -0
- package/es/editor/gct-form-span/gct-form-span.mjs +89 -0
- package/es/editor/gct-form-span/gct-form-span.provider.d.ts +13 -0
- package/es/editor/gct-form-span/gct-form-span.provider.mjs +6 -0
- package/es/editor/gct-form-span/gct-form-span.scss +10 -0
- package/es/editor/gct-form-span/index.d.ts +4 -0
- package/es/editor/gct-form-span/index.mjs +12 -0
- package/es/editor/gct-form-switch/gct-form-switch.d.ts +26 -0
- package/es/editor/gct-form-switch/gct-form-switch.mjs +35 -0
- package/es/editor/gct-form-switch/gct-form-switch.provider.d.ts +13 -0
- package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +6 -0
- package/es/editor/gct-form-switch/index.d.ts +7 -0
- package/es/editor/gct-form-switch/index.mjs +17 -0
- package/es/editor/gct-form-text/gct-form-text.d.ts +32 -0
- package/es/editor/gct-form-text/gct-form-text.mjs +45 -0
- package/es/editor/gct-form-text/gct-form-text.provider.d.ts +13 -0
- package/es/editor/gct-form-text/gct-form-text.provider.mjs +6 -0
- package/es/editor/gct-form-text/index.d.ts +7 -0
- package/es/editor/gct-form-text/index.mjs +17 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +28 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.mjs +40 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.d.ts +4 -0
- package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +6 -0
- package/es/editor/gct-form-textarea/index.d.ts +4 -0
- package/es/editor/gct-form-textarea/index.mjs +12 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.mjs +44 -0
- package/es/index.mjs +14 -0
- package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +3 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +200 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +26 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +44 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +72 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +60 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +9 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +32 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +8 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +28 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +14 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +71 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +22 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +19 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +34 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +14 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +16 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +23 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +29 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +33 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +87 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +92 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +171 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +51 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +149 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +63 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +9 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +56 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +27 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +144 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +12 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +19 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +46 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +73 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +17 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +67 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +8 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +10 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +11 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +5 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +16 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +7 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +46 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +10 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +13 -0
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +11 -0
- package/es/node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.13_typescript@5.8.2_/node_modules/@vueuse/core/index.mjs +7487 -0
- package/es/node_modules/.pnpm/@vueuse_shared@10.11.1_vue@3.5.13_typescript@5.8.2_/node_modules/@vueuse/shared/index.mjs +1576 -0
- package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +528 -0
- package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +1180 -0
- package/es/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.13_typescript@5.8.2_/node_modules/vue-demi/lib/index.mjs +29 -0
- package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.13_typescript@5.8.2_/node_modules/vue-types/dist/vue-types.m.mjs +3 -0
- package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@10.11.1_67dx55qyw5ulzyggoxgyarn5m4/node_modules/vue3-colorpicker/index.es.mjs +1815 -0
- package/es/types/index.d.ts +1 -0
- package/es/widgets/gct-edit-form/gct-edit-form.d.ts +62 -0
- package/es/widgets/gct-edit-form/gct-edit-form.mjs +126 -0
- package/es/widgets/gct-edit-form/index.d.ts +5 -0
- package/es/widgets/gct-edit-form/index.mjs +10 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +31 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +73 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +62 -0
- package/es/widgets/gct-form/gct-form-collapse/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +29 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +71 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +13 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +23 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.d.ts +30 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +88 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +28 -0
- package/es/widgets/gct-form/gct-form-group/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-group/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +13 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.d.ts +35 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +141 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +115 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.d.ts +28 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +53 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +63 -0
- package/es/widgets/gct-form/gct-form-tab/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab/index.mjs +12 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +29 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +65 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +16 -0
- package/es/widgets/gct-form/gct-form-tab-pane/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +15 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.d.ts +30 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +71 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +11 -0
- package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +25 -0
- package/es/widgets/gct-form/gct-form-title-group/index.d.ts +5 -0
- package/es/widgets/gct-form/gct-form-title-group/index.mjs +16 -0
- package/es/widgets/gct-form/gct-form.d.ts +31 -0
- package/es/widgets/gct-form/gct-form.mjs +109 -0
- package/es/widgets/gct-form/gct-form.scss +11 -0
- package/es/widgets/gct-form/index.d.ts +5 -0
- package/es/widgets/gct-form/index.mjs +31 -0
- package/package.json +9 -6
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import GctFormLengthUnit from './gct-form-length-unit/index.mjs';
|
|
2
|
+
import GctFormColor, { oldColorCom } from './gct-form-color/index.mjs';
|
|
3
|
+
import GctFormCheckSwitch from './gct-form-check-switch/index.mjs';
|
|
4
|
+
import GctFormI18n from './gct-form-i18n/index.mjs';
|
|
5
|
+
import GctFormIconSelect from './gct-form-icon-select/index.mjs';
|
|
6
|
+
import GctFormNumber, { oldNumberCom } from './gct-form-number/index.mjs';
|
|
7
|
+
import GctFormPicker from './gct-form-picker/index.mjs';
|
|
8
|
+
import GctFormSelect from './gct-form-select/index.mjs';
|
|
9
|
+
import GctFormSpan from './gct-form-span/index.mjs';
|
|
10
|
+
import GctFormSwitch, { oldSwitchCom } from './gct-form-switch/index.mjs';
|
|
11
|
+
import GctFormText, { oldTextCom } from './gct-form-text/index.mjs';
|
|
12
|
+
import GctFormTextarea from './gct-form-textarea/index.mjs';
|
|
13
|
+
import GctFormRadio, { oldRadioCom } from './gct-form-radio/index.mjs';
|
|
14
|
+
import GctFormInfo from './gct-form-info/index.mjs';
|
|
15
|
+
import GctFormCheckbox, { oldCheckboxCom } from './gct-form-checkbox/index.mjs';
|
|
16
|
+
|
|
17
|
+
"use strict";
|
|
18
|
+
var Editor = {
|
|
19
|
+
install(app) {
|
|
20
|
+
app.use(GctFormLengthUnit);
|
|
21
|
+
app.use(GctFormColor);
|
|
22
|
+
app.use(GctFormCheckSwitch);
|
|
23
|
+
app.use(GctFormI18n);
|
|
24
|
+
app.use(GctFormIconSelect);
|
|
25
|
+
app.use(GctFormNumber);
|
|
26
|
+
app.use(GctFormPicker);
|
|
27
|
+
app.use(GctFormSelect);
|
|
28
|
+
app.use(GctFormSpan);
|
|
29
|
+
app.use(GctFormSwitch);
|
|
30
|
+
app.use(GctFormText);
|
|
31
|
+
app.use(GctFormTextarea);
|
|
32
|
+
app.use(GctFormRadio);
|
|
33
|
+
app.use(GctFormInfo);
|
|
34
|
+
app.use(GctFormCheckbox);
|
|
35
|
+
app.use(oldCheckboxCom);
|
|
36
|
+
app.use(oldColorCom);
|
|
37
|
+
app.use(oldRadioCom);
|
|
38
|
+
app.use(oldSwitchCom);
|
|
39
|
+
app.use(oldTextCom);
|
|
40
|
+
app.use(oldNumberCom);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { Editor as default };
|
package/es/index.mjs
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import './components/index.mjs';
|
|
2
|
+
import Editor from './editor/index.mjs';
|
|
3
|
+
import GctEditForm from './widgets/gct-edit-form/index.mjs';
|
|
4
|
+
import GctForm from './widgets/gct-form/index.mjs';
|
|
2
5
|
import { CodeEditor } from './components/code-editor/code-editor.mjs';
|
|
6
|
+
import { FlexContainer } from './components/layout/flex-container/flex-container.mjs';
|
|
7
|
+
import { FlexItem } from './components/layout/flex-item/flex-item.mjs';
|
|
8
|
+
import { GridContainer } from './components/layout/grid-container/grid-container.mjs';
|
|
9
|
+
import { ViewContainer } from './components/layout/view-container/view-container.mjs';
|
|
3
10
|
|
|
4
11
|
"use strict";
|
|
5
12
|
var index = {
|
|
6
13
|
install(app) {
|
|
14
|
+
app.use(Editor);
|
|
15
|
+
app.use(GctEditForm);
|
|
16
|
+
app.use(GctForm);
|
|
7
17
|
app.component(CodeEditor.name, CodeEditor);
|
|
18
|
+
app.component(FlexContainer.name, FlexContainer);
|
|
19
|
+
app.component(FlexItem.name, FlexItem);
|
|
20
|
+
app.component(GridContainer.name, GridContainer);
|
|
21
|
+
app.component(ViewContainer.name, ViewContainer);
|
|
8
22
|
}
|
|
9
23
|
};
|
|
10
24
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return !!t()}catch(t){return !0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,c={f:a&&!u.call({1:2},1)?function(t){var e=a(this,t);return !!e&&e.enumerable}:u},l=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,s=function(t){return f.call(t).slice(8,-1)},d="".split,v=o((function(){return !Object("z").propertyIsEnumerable(0)}))?function(t){return "String"==s(t)?d.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return v(p(t))},h=function(t){return "object"==typeof t?null!==t:"function"==typeof t},y=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},x=r.document,b=h(x)&&h(x.createElement),E=function(t){return b?x.createElement(t):{}},w=!i&&!o((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,T={f:i?O:function(t,e){if(t=g(t),e=y(e,!0),w)try{return O(t,e)}catch(t){}if(S(t,e))return l(!c.f.call(t,e),t[e])}},A=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},k=Object.defineProperty,R={f:i?k:function(t,e,n){if(A(t),e=y(e,!0),A(n),w)try{return k(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},I=i?function(t,e,n){return R.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},j=function(t,e){try{I(r,t,e);}catch(n){r[t]=e;}return e},C=r["__core-js_shared__"]||j("__core-js_shared__",{}),L=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(t){return L.call(t)});var P,M,_,D=C.inspectSource,U=r.WeakMap,N="function"==typeof U&&/native code/.test(D(U)),F=e((function(t){(t.exports=function(t,e){return C[t]||(C[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});})),W=0,z=Math.random(),$=function(t){return "Symbol("+String(void 0===t?"":t)+")_"+(++W+z).toString(36)},B=F("keys"),Y=function(t){return B[t]||(B[t]=$(t))},G={},H=r.WeakMap;if(N){var X=C.state||(C.state=new H),V=X.get,K=X.has,q=X.set;P=function(t,e){return e.facade=t,q.call(X,t,e),e},M=function(t){return V.call(X,t)||{}},_=function(t){return K.call(X,t)};}else {var Q=Y("state");G[Q]=!0,P=function(t,e){return e.facade=t,I(t,Q,e),e},M=function(t){return S(t,Q)?t[Q]:{}},_=function(t){return S(t,Q)};}var J={set:P,get:M,has:_,enforce:function(t){return _(t)?M(t):P(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Z=e((function(t){var e=J.get,n=J.enforce,o=String(String).split("String");(t.exports=function(t,e,i,u){var a,c=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||I(i,"name",e),(a=n(i)).source||(a.source=o.join("string"==typeof e?e:""))),t!==r?(c?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=i:I(t,e,i)):l?t[e]=i:j(e,i);})(Function.prototype,"toString",(function(){return "function"==typeof this&&e(this).source||D(this)}));})),tt=r,et=function(t){return "function"==typeof t?t:void 0},nt=function(t,e){return arguments.length<2?et(tt[t])||et(r[t]):tt[t]&&tt[t][e]||r[t]&&r[t][e]},rt=Math.ceil,ot=Math.floor,it=function(t){return isNaN(t=+t)?0:(t>0?ot:rt)(t)},ut=Math.min,at=function(t){return t>0?ut(it(t),9007199254740991):0},ct=Math.max,lt=Math.min,ft=function(t,e){var n=it(t);return n<0?ct(n+e,0):lt(n,e)},st=function(t){return function(e,n,r){var o,i=g(e),u=at(i.length),a=ft(r,u);if(t&&n!=n){for(;u>a;)if((o=i[a++])!=o)return !0}else for(;u>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return !t&&-1}},dt={includes:st(!0),indexOf:st(!1)},vt=dt.indexOf,pt=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!S(G,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=gt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return pt(t,ht)}},mt={f:Object.getOwnPropertySymbols},St=nt("Reflect","ownKeys")||function(t){var e=yt.f(A(t)),n=mt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=St(e),r=R.f,o=T.f,i=0;i<n.length;i++){var u=n[i];S(t,u)||r(t,u,o(e,u));}},bt=/#|\.prototype\./,Et=function(t,e){var n=Ot[wt(t)];return n==At||n!=Tt&&("function"==typeof e?o(e):!!e)},wt=Et.normalize=function(t){return String(t).replace(bt,".").toLowerCase()},Ot=Et.data={},Tt=Et.NATIVE="N",At=Et.POLYFILL="P",kt=Et,Rt=T.f,It=function(t,e){var n,o,i,u,a,c=t.target,l=t.global,f=t.stat;if(n=l?r:f?r[c]||j(c,{}):(r[c]||{}).prototype)for(o in e){if(u=e[o],i=t.noTargetGet?(a=Rt(n,o))&&a.value:n[o],!kt(l?o:c+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;xt(u,i);}(t.sham||i&&i.sham)&&I(u,"sham",!0),Z(n,o,u,t);}},jt=function(t,e){var n=[][t];return !!n&&o((function(){n.call(null,e||function(){throw 1},1);}))},Ct=Object.defineProperty,Lt={},Pt=function(t){throw t},Mt=function(t,e){if(S(Lt,t))return Lt[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,u=S(e,0)?e[0]:Pt,a=S(e,1)?e[1]:void 0;return Lt[t]=!!n&&!o((function(){if(r&&!i)return !0;var t={length:-1};r?Ct(t,1,{enumerable:!0,get:Pt}):t[1]=1,n.call(t,u,a);}))},_t=dt.indexOf,Dt=[].indexOf,Ut=!!Dt&&1/[1].indexOf(1,-0)<0,Nt=jt("indexOf"),Ft=Mt("indexOf",{ACCESSORS:!0,1:0});function Wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r);}}function $t(t,e,n){return e&&zt(t.prototype,e),n&&zt(t,n),t}It({target:"Array",proto:!0,forced:Ut||!Nt||!Ft},{indexOf:function(t){return Ut?Dt.apply(this,arguments)||0:_t(this,t,arguments.length>1?arguments[1]:void 0)}});var Bt=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"isInBrowser",value:function(){return "undefined"!=typeof window}},{key:"isServer",value:function(){return "undefined"==typeof window}},{key:"getUA",value:function(){return t.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return /Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return -1!==navigator.userAgent.indexOf("Opera")}},{key:"isIE",value:function(){var e=t.getUA();return ""!==e&&e.indexOf("msie")>0}},{key:"isIE9",value:function(){var e=t.getUA();return ""!==e&&e.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var e=t.getUA();return ""!==e&&e.indexOf("edge/")>0}},{key:"isChrome",value:function(){var e=t.getUA();return ""!==e&&/chrome\/\d+/.test(e)&&!t.isEdge()}},{key:"isPhantomJS",value:function(){var e=t.getUA();return ""!==e&&/phantomjs/.test(e)}},{key:"isFirefox",value:function(){var e=t.getUA();return ""!==e&&/firefox/.test(e)}}]),t}(),Yt=[].join,Gt=v!=Object,Ht=jt("join",",");It({target:"Array",proto:!0,forced:Gt||!Ht},{join:function(t){return Yt.call(g(this),void 0===t?",":t)}});var Xt,Vt,Kt=function(t){return Object(p(t))},qt=Array.isArray||function(t){return "Array"==s(t)},Qt=!!Object.getOwnPropertySymbols&&!o((function(){return !String(Symbol())})),Jt=Qt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zt=F("wks"),te=r.Symbol,ee=Jt?te:te&&te.withoutSetter||$,ne=function(t){return S(Zt,t)||(Qt&&S(te,t)?Zt[t]=te[t]:Zt[t]=ee("Symbol."+t)),Zt[t]},re=ne("species"),oe=function(t,e){var n;return qt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!qt(n.prototype)?h(n)&&null===(n=n[re])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ie=function(t,e,n){var r=y(e);r in t?R.f(t,r,l(0,n)):t[r]=n;},ue=nt("navigator","userAgent")||"",ae=r.process,ce=ae&&ae.versions,le=ce&&ce.v8;le?Vt=(Xt=le.split("."))[0]+Xt[1]:ue&&(!(Xt=ue.match(/Edge\/(\d+)/))||Xt[1]>=74)&&(Xt=ue.match(/Chrome\/(\d+)/))&&(Vt=Xt[1]);var fe=Vt&&+Vt,se=ne("species"),de=function(t){return fe>=51||!o((function(){var e=[];return (e.constructor={})[se]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},ve=de("splice"),pe=Mt("splice",{ACCESSORS:!0,0:0,1:2}),ge=Math.max,he=Math.min;It({target:"Array",proto:!0,forced:!ve||!pe},{splice:function(t,e){var n,r,o,i,u,a,c=Kt(this),l=at(c.length),f=ft(t,l),s=arguments.length;if(0===s?n=r=0:1===s?(n=0,r=l-f):(n=s-2,r=he(ge(it(e),0),l-f)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=oe(c,r),i=0;i<r;i++)(u=f+i)in c&&ie(o,i,c[u]);if(o.length=r,n<r){for(i=f;i<l-r;i++)a=i+n,(u=i+r)in c?c[a]=c[u]:delete c[a];for(i=l;i>l-r+n;i--)delete c[i-1];}else if(n>r)for(i=l-r;i>f;i--)a=i+n-1,(u=i+r-1)in c?c[a]=c[u]:delete c[a];for(i=0;i<n;i++)c[i+f]=arguments[i+2];return c.length=l-r+n,o}});var ye={};ye[ne("toStringTag")]="z";var me="[object z]"===String(ye),Se=ne("toStringTag"),xe="Arguments"==s(function(){return arguments}()),be=me?s:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Se))?n:xe?s(e):"Object"==(r=s(e))&&"function"==typeof e.callee?"Arguments":r},Ee=me?{}.toString:function(){return "[object "+be(this)+"]"};me||Z(Object.prototype,"toString",Ee,{unsafe:!0});var we=function(){var t=A(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Oe(t,e){return RegExp(t,e)}var Te,Ae,ke={UNSUPPORTED_Y:o((function(){var t=Oe("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=Oe("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Re=RegExp.prototype.exec,Ie=String.prototype.replace,je=Re,Ce=(Te=/a/,Ae=/b*/g,Re.call(Te,"a"),Re.call(Ae,"a"),0!==Te.lastIndex||0!==Ae.lastIndex),Le=ke.UNSUPPORTED_Y||ke.BROKEN_CARET,Pe=void 0!==/()??/.exec("")[1];(Ce||Pe||Le)&&(je=function(t){var e,n,r,o,i=this,u=Le&&i.sticky,a=we.call(i),c=i.source,l=0,f=t;return u&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(c="(?: "+c+")",f=" "+f,l++),n=new RegExp("^(?:"+c+")",a)),Pe&&(n=new RegExp("^"+c+"$(?!\\s)",a)),Ce&&(e=i.lastIndex),r=Re.call(u?n:i,f),u?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Ce&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Pe&&r&&r.length>1&&Ie.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0);})),r});var Me=je;It({target:"RegExp",proto:!0,forced:/./.exec!==Me},{exec:Me});var _e=RegExp.prototype,De=_e.toString,Ue=o((function(){return "/a/b"!=De.call({source:"a",flags:"b"})})),Ne="toString"!=De.name;(Ue||Ne)&&Z(RegExp.prototype,"toString",(function(){var t=A(this),e=String(t.source),n=t.flags;return "/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in _e)?we.call(t):n)}),{unsafe:!0});var Fe=ne("species"),We=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ze="$0"==="a".replace(/./,"$0"),$e=ne("replace"),Be=!!/./[$e]&&""===/./[$e]("a","$0"),Ye=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ge=function(t,e,n,r){var i=ne(t),u=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=u&&!o((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[Fe]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!u||!a||"replace"===t&&(!We||!ze||Be)||"split"===t&&!Ye){var c=/./[i],l=n(i,""[t],(function(t,e,n,r,o){return e.exec===Me?u&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ze,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Be}),f=l[0],s=l[1];Z(String.prototype,t,f),Z(RegExp.prototype,i,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)});}r&&I(RegExp.prototype[i],"sham",!0);},He=ne("match"),Xe=function(t){var e;return h(t)&&(void 0!==(e=t[He])?!!e:"RegExp"==s(t))},Ve=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ke=ne("species"),qe=function(t){return function(e,n){var r,o,i=String(p(e)),u=it(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===a||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}},Qe={codeAt:qe(!1),charAt:qe(!0)},Je=Qe.charAt,Ze=function(t,e,n){return e+(n?Je(t,e).length:1)},tn=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==s(t))throw TypeError("RegExp#exec called on incompatible receiver");return Me.call(t,e)},en=[].push,nn=Math.min,rn=!o((function(){return !RegExp(4294967295,"y")}));Ge("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(p(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return [];if(void 0===t)return [r];if(!Xe(t))return e.call(r,t,o);for(var i,u,a,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,s=new RegExp(t.source,l+"g");(i=Me.call(s,r))&&!((u=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&en.apply(c,i.slice(1)),a=i[0].length,f=u,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!a&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=p(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var u=A(t),a=String(this),c=function(t,e){var n,r=A(t).constructor;return void 0===r||null==(n=A(r)[Ke])?e:Ve(n)}(u,RegExp),l=u.unicode,f=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(rn?"y":"g"),s=new c(rn?u:"^(?:"+u.source+")",f),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===tn(s,a)?[a]:[];for(var v=0,p=0,g=[];p<a.length;){s.lastIndex=rn?p:0;var h,y=tn(s,rn?a:a.slice(p));if(null===y||(h=nn(at(s.lastIndex+(rn?0:p)),a.length))===v)p=Ze(a,p,l);else {if(g.push(a.slice(v,p)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(g.push(y[m]),g.length===d)return g;p=v=h;}}return g.push(a.slice(v)),g}]}),!rn);var on="\t\n\v\f\r \u2028\u2029\ufeff",un="["+on+"]",an=RegExp("^"+un+un+"*"),cn=RegExp(un+un+"*$"),ln=function(t){return function(e){var n=String(p(e));return 1&t&&(n=n.replace(an,"")),2&t&&(n=n.replace(cn,"")),n}},fn={start:ln(1),end:ln(2),trim:ln(3)},sn=fn.trim;It({target:"String",proto:!0,forced:function(t){return o((function(){return !!on[t]()||"
"!="
"[t]()||on[t].name!==t}))}("trim")},{trim:function(){return sn(this)}});var dn=de("slice"),vn=Mt("slice",{ACCESSORS:!0,0:0,1:2}),pn=ne("species"),gn=[].slice,hn=Math.max;It({target:"Array",proto:!0,forced:!dn||!vn},{slice:function(t,e){var n,r,o,i=g(this),u=at(i.length),a=ft(t,u),c=ft(void 0===e?u:e,u);if(qt(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!qt(n.prototype)?h(n)&&null===(n=n[pn])&&(n=void 0):n=void 0,n===Array||void 0===n))return gn.call(i,a,c);for(r=new(void 0===n?Array:n)(hn(c-a,0)),o=0;a<c;a++,o++)a in i&&ie(r,o,i[a]);return r.length=o,r}});var yn=Object.keys||function(t){return pt(t,gt)},mn=o((function(){yn(1);}));It({target:"Object",stat:!0,forced:mn},{keys:function(t){return yn(Kt(t))}});var Sn,xn=function(t){if(Xe(t))throw TypeError("The method doesn't accept regular expressions");return t},bn=ne("match"),En=T.f,wn="".startsWith,On=Math.min,Tn=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[bn]=!1,"/./"[t](e)}catch(t){}}return !1}("startsWith"),An=!(Tn||(Sn=En(String.prototype,"startsWith"),!Sn||Sn.writable));function kn(t){return (kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}It({target:"String",proto:!0,forced:!An&&!Tn},{startsWith:function(t){var e=String(p(this));xn(t);var n=at(On(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return wn?wn.call(e,r,n):e.slice(n,n+r.length)===r}});var Rn=function(t){return t instanceof Date},In=function(t){return "function"==typeof t},jn=function(t){return "string"==typeof t},Cn=function(t){return "symbol"===kn(t)},Ln=function(t){return "boolean"==typeof t},Pn=function(t){return "number"==typeof t},Mn=function(t){return null!==t&&"object"===kn(t)},_n=Object.prototype.toString,Dn=function(t){return _n.call(t)},Un=Object.prototype.hasOwnProperty,Nn=function(t,e){return Un.call(t,e)},Fn=Array.isArray,Wn=function(t){return "[object Map]"===Dn(t)},zn=function(t){return "[object Set]"===Dn(t)},$n=function(t){return Dn(t).slice(8,-1)},Bn=function(t){return $n(t).startsWith("HTML")},Yn=function(t){return Mn(t)&&In(t.then)&&In(t.catch)},Gn=function(t){return null===t},Hn=function(t){return void 0===t},Xn=function(t){return !t&&0!==t&&""!==t||Fn(t)&&!t.length||Mn(t)&&!Object.keys(t).length},Vn=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t&&e&&n&&t.addEventListener(e,n,r);}},{key:"removeEventListener",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t&&e&&n&&t.removeEventListener(e,n,r);}},{key:"triggerDragEvent",value:function(e,n){var r=!1,o=function(t){var e;null===(e=n.drag)||void 0===e||e.call(n,t);},i=function e(i){var u;t.removeEventListener(document,"mousemove",o),t.removeEventListener(document,"mouseup",e),document.onselectstart=null,document.ondragstart=null,r=!1,null===(u=n.end)||void 0===u||u.call(n,i);};t.addEventListener(e,"mousedown",(function(e){var u;r||(document.onselectstart=function(){return !1},document.ondragstart=function(){return !1},t.addEventListener(document,"mousemove",o),t.addEventListener(document,"mouseup",i),r=!0,null===(u=n.start)||void 0===u||u.call(n,e));}));}},{key:"getBoundingClientRect",value:function(t){return t&&Mn(t)&&1===t.nodeType?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,e){return !!(t&&Mn(t)&&jn(e)&&1===t.nodeType)&&t.classList.contains(e.trim())}},{key:"addClass",value:function(e,n){if(e&&Mn(e)&&jn(n)&&1===e.nodeType&&(n=n.trim(),!t.hasClass(e,n))){var r=e.className;e.className=r?r+" "+n:n;}}},{key:"removeClass",value:function(t,e){if(t&&Mn(t)&&jn(e)&&1===t.nodeType&&"string"==typeof t.className){e=e.trim();for(var n=t.className.trim().split(" "),r=n.length-1;r>=0;r--)n[r]=n[r].trim(),n[r]&&n[r]!==e||n.splice(r,1);t.className=n.join(" ");}}},{key:"toggleClass",value:function(t,e,n){t&&Mn(t)&&jn(e)&&1===t.nodeType&&t.classList.toggle(e,n);}},{key:"replaceClass",value:function(e,n,r){e&&Mn(e)&&jn(n)&&jn(r)&&1===e.nodeType&&(n=n.trim(),r=r.trim(),t.removeClass(e,n),t.addClass(e,r));}},{key:"getScrollTop",value:function(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}},{key:"setScrollTop",value:function(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e);}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(e){t.setScrollTop(window,e),t.setScrollTop(document.body,e);}},{key:"getElementTop",value:function(e,n){if(t.isWindow(e))return 0;var r=n?t.getScrollTop(n):t.getRootScrollTop();return e.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(e){return t.isWindow(e)?e.innerHeight:e.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return !1;var e=window.getComputedStyle(t),n="none"===e.display,r=null===t.offsetParent&&"fixed"!==e.position;return n||r}},{key:"triggerEvent",value:function(t,e){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(e,!1,!0),t.dispatchEvent(n);}}},{key:"calcAngle",value:function(t,e){var n=t.getBoundingClientRect(),r=n.left+n.width/2,o=n.top+n.height/2,i=Math.abs(r-e.clientX),u=Math.abs(o-e.clientY),a=u/Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),c=Math.acos(a),l=Math.floor(180/(Math.PI/c));return e.clientX>r&&e.clientY>o&&(l=180-l),e.clientX==r&&e.clientY>o&&(l=180),e.clientX>r&&e.clientY==o&&(l=90),e.clientX<r&&e.clientY>o&&(l=180+l),e.clientX<r&&e.clientY==o&&(l=270),e.clientX<r&&e.clientY<o&&(l=360-l),l}},{key:"querySelector",value:function(t,e){return e?e.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var e=document.createElement(t),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(var i=0;i<r.length;i++)r[i]&&e.classList.add(r[i]);return e}},{key:"appendChild",value:function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++)t.appendChild(e+1<1||arguments.length<=e+1?void 0:arguments[e+1]);}},{key:"getWindow",value:function(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return "undefined"!=typeof ShadowRoot&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var e=this.getWindow(t);return {scrollLeft:e.pageXOffset||0,scrollTop:e.pageYOffset||0}}}]),t}(),Kn=Math.floor,qn="".replace,Qn=/\$([$&'`]|\d\d?|<[^>]*>)/g,Jn=/\$([$&'`]|\d\d?)/g,Zn=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=Jn;return void 0!==o&&(o=Kt(o),c=Qn),qn.call(i,c,(function(i,c){var l;switch(c.charAt(0)){case "$":return "$";case "&":return t;case "`":return e.slice(0,n);case "'":return e.slice(u);case "<":l=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var s=Kn(f/10);return 0===s?i:s<=a?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}l=r[f-1];}return void 0===l?"":l}))},tr=Math.max,er=Math.min;Ge("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,u=o?"$":"$0";return [function(n,r){var o=p(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(u)){var a=n(e,t,this,r);if(a.done)return a.value}var c=A(t),l=String(this),f="function"==typeof r;f||(r=String(r));var s=c.global;if(s){var d=c.unicode;c.lastIndex=0;}for(var v=[];;){var p=tn(c,l);if(null===p)break;if(v.push(p),!s)break;""===String(p[0])&&(c.lastIndex=Ze(l,at(c.lastIndex),d));}for(var g,h="",y=0,m=0;m<v.length;m++){p=v[m];for(var S=String(p[0]),x=tr(er(it(p.index),l.length),0),b=[],E=1;E<p.length;E++)b.push(void 0===(g=p[E])?g:String(g));var w=p.groups;if(f){var O=[S].concat(b,x,l);void 0!==w&&O.push(w);var T=String(r.apply(void 0,O));}else T=Zn(S,l,x,b,w,r);x>=y&&(h+=l.slice(y,x)+T,y=x+S.length);}return h+l.slice(y)}]}));var nr=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),t}(),rr=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"_clone",value:function(){}}]),t}(),or=ne("isConcatSpreadable"),ir=fe>=51||!o((function(){var t=[];return t[or]=!1,t.concat()[0]!==t})),ur=de("concat"),ar=function(t){if(!h(t))return !1;var e=t[or];return void 0!==e?!!e:qt(t)};It({target:"Array",proto:!0,forced:!ir||!ur},{concat:function(t){var e,n,r,o,i,u=Kt(this),a=oe(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(ar(i=-1===e?u:arguments[e])){if(c+(o=at(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&ie(a,c,i[n]);}else {if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ie(a,c++,i);}return a.length=c,a}});var cr,lr=function(t,e,n){if(Ve(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},fr=[].push,sr=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,l,f,s){for(var d,p,g=Kt(c),h=v(g),y=lr(l,f,3),m=at(h.length),S=0,x=s||oe,b=e?x(c,m):n||u?x(c,0):void 0;m>S;S++)if((a||S in h)&&(p=y(d=h[S],S,g),t))if(e)b[S]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return S;case 2:fr.call(b,d);}else switch(t){case 4:return !1;case 7:fr.call(b,d);}return i?-1:r||o?o:b}},dr={forEach:sr(0),map:sr(1),filter:sr(2),some:sr(3),every:sr(4),find:sr(5),findIndex:sr(6),filterOut:sr(7)},vr=i?Object.defineProperties:function(t,e){A(t);for(var n,r=yn(e),o=r.length,i=0;o>i;)R.f(t,n=r[i++],e[n]);return t},pr=nt("document","documentElement"),gr=Y("IE_PROTO"),hr=function(){},yr=function(t){return "<script>"+t+"<\/script>"},mr=function(){try{cr=document.domain&&new ActiveXObject("htmlfile");}catch(t){}var t,e;mr=cr?function(t){t.write(yr("")),t.close();var e=t.parentWindow.Object;return t=null,e}(cr):((e=E("iframe")).style.display="none",pr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(yr("document.F=Object")),t.close(),t.F);for(var n=gt.length;n--;)delete mr.prototype[gt[n]];return mr()};G[gr]=!0;var Sr=Object.create||function(t,e){var n;return null!==t?(hr.prototype=A(t),n=new hr,hr.prototype=null,n[gr]=t):n=mr(),void 0===e?n:vr(n,e)},xr=ne("unscopables"),br=Array.prototype;null==br[xr]&&R.f(br,xr,{configurable:!0,value:Sr(null)});var Er=function(t){br[xr][t]=!0;},wr=dr.find,Or=!0,Tr=Mt("find");"find"in[]&&Array(1).find((function(){Or=!1;})),It({target:"Array",proto:!0,forced:Or||!Tr},{find:function(t){return wr(this,t,arguments.length>1?arguments[1]:void 0)}}),Er("find");var Ar=dr.findIndex,kr=!0,Rr=Mt("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){kr=!1;})),It({target:"Array",proto:!0,forced:kr||!Rr},{findIndex:function(t){return Ar(this,t,arguments.length>1?arguments[1]:void 0)}}),Er("findIndex");var Ir=function(t,e,n,r,o,i,u,a){for(var c,l=o,f=0,s=!!u&&lr(u,a,3);f<r;){if(f in n){if(c=s?s(n[f],f,e):n[f],i>0&&qt(c))l=Ir(t,e,c,at(c.length),l,i-1)-1;else {if(l>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[l]=c;}l++;}f++;}return l},jr=Ir;It({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Kt(this),n=at(e.length),r=oe(e,0);return r.length=jr(r,e,e,n,0,void 0===t?1:it(t)),r}});var Cr=function(t){var e=t.return;if(void 0!==e)return A(e.call(t)).value},Lr=function(t,e,n,r){try{return r?e(A(n)[0],n[1]):e(n)}catch(e){throw Cr(t),e}},Pr={},Mr=ne("iterator"),_r=Array.prototype,Dr=function(t){return void 0!==t&&(Pr.Array===t||_r[Mr]===t)},Ur=ne("iterator"),Nr=function(t){if(null!=t)return t[Ur]||t["@@iterator"]||Pr[be(t)]},Fr=ne("iterator"),Wr=!1;try{var zr=0,$r={next:function(){return {done:!!zr++}},return:function(){Wr=!0;}};$r[Fr]=function(){return this},Array.from($r,(function(){throw 2}));}catch(t){}var Br=function(t,e){if(!e&&!Wr)return !1;var n=!1;try{var r={};r[Fr]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},Yr=!Br((function(t){Array.from(t);}));It({target:"Array",stat:!0,forced:Yr},{from:function(t){var e,n,r,o,i,u,a=Kt(t),c="function"==typeof this?this:Array,l=arguments.length,f=l>1?arguments[1]:void 0,s=void 0!==f,d=Nr(a),v=0;if(s&&(f=lr(f,l>2?arguments[2]:void 0,2)),null==d||c==Array&&Dr(d))for(n=new c(e=at(a.length));e>v;v++)u=s?f(a[v],v):a[v],ie(n,v,u);else for(i=(o=d.call(a)).next,n=new c;!(r=i.call(o)).done;v++)u=s?Lr(o,f,[r.value,v],!0):r.value,ie(n,v,u);return n.length=v,n}});var Gr=function(t){return function(e,n,r,o){Ve(n);var i=Kt(e),u=v(i),a=at(i.length),c=t?a-1:0,l=t?-1:1;if(r<2)for(;;){if(c in u){o=u[c],c+=l;break}if(c+=l,t?c<0:a<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:a>c;c+=l)c in u&&(o=n(o,u[c],c,i));return o}},Hr={left:Gr(!1),right:Gr(!0)},Xr="process"==s(r.process),Vr=Hr.left,Kr=jt("reduce"),qr=Mt("reduce",{1:0});It({target:"Array",proto:!0,forced:!Kr||!qr||!Xr&&fe>79&&fe<83},{reduce:function(t){return Vr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Er("flat");var Qr,Jr,Zr,to=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),eo=e((function(t){var e=R.f,n=$("meta"),r=0,o=Object.isExtensible||function(){return !0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}});},u=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!h(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!S(t,n)){if(!o(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!S(t,n)){if(!o(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return to&&u.REQUIRED&&o(t)&&!S(t,n)&&i(t),t}};G[n]=!0;})),no=function(t,e){this.stopped=t,this.result=e;},ro=function(t,e,n){var r,o,i,u,a,c,l,f=n&&n.that,s=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),p=lr(e,f,1+s+v),g=function(t){return r&&Cr(r),new no(!0,t)},h=function(t){return s?(A(t),v?p(t[0],t[1],g):p(t[0],t[1])):v?p(t,g):p(t)};if(d)r=t;else {if("function"!=typeof(o=Nr(t)))throw TypeError("Target is not iterable");if(Dr(o)){for(i=0,u=at(t.length);u>i;i++)if((a=h(t[i]))&&a instanceof no)return a;return new no(!1)}r=o.call(t);}for(c=r.next;!(l=c.call(r)).done;){try{a=h(l.value);}catch(t){throw Cr(r),t}if("object"==typeof a&&a&&a instanceof no)return a}return new no(!1)},oo=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},io=R.f,uo=ne("toStringTag"),ao=function(t,e,n){t&&!S(t=n?t:t.prototype,uo)&&io(t,uo,{configurable:!0,value:e});},co=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return A(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),lo=function(t,e,n){for(var r in e)Z(t,r,e[r],n);return t},fo=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),so=Y("IE_PROTO"),vo=Object.prototype,po=fo?Object.getPrototypeOf:function(t){return t=Kt(t),S(t,so)?t[so]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?vo:null},go=ne("iterator"),ho=!1;[].keys&&("next"in(Zr=[].keys())?(Jr=po(po(Zr)))!==Object.prototype&&(Qr=Jr):ho=!0),(null==Qr||o((function(){var t={};return Qr[go].call(t)!==t})))&&(Qr={}),S(Qr,go)||I(Qr,go,(function(){return this}));var yo={IteratorPrototype:Qr,BUGGY_SAFARI_ITERATORS:ho},mo=yo.IteratorPrototype,So=function(){return this},xo=yo.IteratorPrototype,bo=yo.BUGGY_SAFARI_ITERATORS,Eo=ne("iterator"),wo=function(){return this},Oo=function(t,e,n,r,o,i,u){!function(t,e,n){var r=e+" Iterator";t.prototype=Sr(mo,{next:l(1,n)}),ao(t,r,!1),Pr[r]=So;}(n,e,r);var a,c,f,s=function(t){if(t===o&&h)return h;if(!bo&&t in p)return p[t];switch(t){case "keys":case "values":case "entries":return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",v=!1,p=t.prototype,g=p[Eo]||p["@@iterator"]||o&&p[o],h=!bo&&g||s(o),y="Array"==e&&p.entries||g;if(y&&(a=po(y.call(new t)),xo!==Object.prototype&&a.next&&(po(a)!==xo&&(co?co(a,xo):"function"!=typeof a[Eo]&&I(a,Eo,wo)),ao(a,d,!0))),"values"==o&&g&&"values"!==g.name&&(v=!0,h=function(){return g.call(this)}),p[Eo]!==h&&I(p,Eo,h),Pr[e]=h,o)if(c={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},u)for(f in c)(bo||v||!(f in p))&&Z(p,f,c[f]);else It({target:e,proto:!0,forced:bo||v},c);return c},To=ne("species"),Ao=R.f,ko=eo.fastKey,Ro=J.set,Io=J.getterFor;!function(t,e,n){var i=-1!==t.indexOf("Map"),u=-1!==t.indexOf("Weak"),a=i?"set":"add",c=r[t],l=c&&c.prototype,f=c,s={},d=function(t){var e=l[t];Z(l,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return !(u&&!h(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return u&&!h(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return !(u&&!h(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this});};if(kt(t,"function"!=typeof c||!(u||l.forEach&&!o((function(){(new c).entries().next();})))))f=n.getConstructor(e,t,i,a),eo.REQUIRED=!0;else if(kt(t,!0)){var v=new f,p=v[a](u?{}:-0,1)!=v,g=o((function(){v.has(1);})),y=Br((function(t){new c(t);})),m=!u&&o((function(){for(var t=new c,e=5;e--;)t[a](e,e);return !t.has(-0)}));y||((f=e((function(e,n){oo(e,f,t);var r=function(t,e,n){var r,o;return co&&"function"==typeof(r=e.constructor)&&r!==n&&h(o=r.prototype)&&o!==n.prototype&&co(t,o),t}(new c,e,f);return null!=n&&ro(n,r[a],{that:r,AS_ENTRIES:i}),r}))).prototype=l,l.constructor=f),(g||m)&&(d("delete"),d("has"),i&&d("get")),(m||p)&&d(a),u&&l.clear&&delete l.clear;}s[t]=f,It({global:!0,forced:f!=c},s),ao(f,t),u||n.setStrong(f,t,i);}("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(t,e,n,r){var o=t((function(t,u){oo(t,o,e),Ro(t,{type:e,index:Sr(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=u&&ro(u,t[r],{that:t,AS_ENTRIES:n});})),u=Io(e),a=function(t,e,n){var r,o,a=u(t),l=c(t,e);return l?l.value=n:(a.last=l={index:o=ko(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=l),r&&(r.next=l),i?a.size++:t.size++,"F"!==o&&(a.index[o]=l)),t},c=function(t,e){var n,r=u(t),o=ko(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return lo(o.prototype,{clear:function(){for(var t=u(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,i?t.size=0:this.size=0;},delete:function(t){var e=this,n=u(e),r=c(e,t);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),i?n.size--:e.size--;}return !!r},forEach:function(t){for(var e,n=u(this),r=lr(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous;},has:function(t){return !!c(this,t)}}),lo(o.prototype,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),i&&Ao(o.prototype,"size",{get:function(){return u(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Io(e),u=Io(r);Oo(t,e,(function(t,e){Ro(this,{type:r,target:t,state:o(t),kind:e,last:void 0});}),(function(){for(var t=u(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),function(t){var e=nt(t),n=R.f;i&&e&&!e[To]&&n(e,To,{configurable:!0,get:function(){return this}});}(e);}});var jo=Qe.charAt,Co=J.set,Lo=J.getterFor("String Iterator");Oo(String,"String",(function(t){Co(this,{type:"String Iterator",string:String(t),index:0});}),(function(){var t,e=Lo(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=jo(n,r),e.index+=t.length,{value:t,done:!1})}));var Po={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Mo=J.set,_o=J.getterFor("Array Iterator"),Do=Oo(Array,"Array",(function(t,e){Mo(this,{type:"Array Iterator",target:g(t),index:0,kind:e});}),(function(){var t=_o(this),e=t.target,n=t.kind,r=t.index++;return !e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Pr.Arguments=Pr.Array,Er("keys"),Er("values"),Er("entries");var Uo=ne("iterator"),No=ne("toStringTag"),Fo=Do.values;for(var Wo in Po){var zo=r[Wo],$o=zo&&zo.prototype;if($o){if($o[Uo]!==Fo)try{I($o,Uo,Fo);}catch(t){$o[Uo]=Fo;}if($o[No]||I($o,No,Wo),Po[Wo])for(var Bo in Do)if($o[Bo]!==Do[Bo])try{I($o,Bo,Do[Bo]);}catch(t){$o[Bo]=Do[Bo];}}}var Yo=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(e){return e.reduce((function(e,n){var r=Array.isArray(n)?t.flat(n):n;return e.concat(r)}),[])}},{key:"find",value:function(t,e){return t.find(e)}},{key:"findIndex",value:function(t,e){return t.findIndex(e)}}]),t}(),Go=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"today",value:function(){return new Date}}]),t}(),Ho=function(){},Xo=function(t){return t},Vo=function(){function t(){Wt(this,t);}return $t(t,null,[{key:"range",value:function(t,e,n){return Math.min(Math.max(t,e),n)}},{key:"clamp",value:function(t,e,n){return e<n?t<e?e:t>n?n:t:t<n?n:t>e?e:t}}]),t}();
|
|
2
|
+
|
|
3
|
+
export { Yo as ArrayUtils, Bt as BrowserUtils, Vn as DOMUtils, Go as DateUtils, Vo as NumberUtils, rr as ObjectUtils, nr as StringUtils, Nn as hasOwn, Xo as identity, Fn as isArray, Ln as isBool, Rn as isDate, Hn as isDef, Xn as isEmpty, In as isFunction, Bn as isHTMLElement, Wn as isMap, Gn as isNull, Pn as isNumber, Mn as isObject, Yn as isPromise, zn as isSet, jn as isString, Cn as isSymbol, Ho as noop, _n as objectToString, $n as toRawType, Dn as toTypeString };
|
package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import getCompositeRect from './dom-utils/getCompositeRect.mjs';
|
|
2
|
+
import getLayoutRect from './dom-utils/getLayoutRect.mjs';
|
|
3
|
+
import listScrollParents from './dom-utils/listScrollParents.mjs';
|
|
4
|
+
import getOffsetParent from './dom-utils/getOffsetParent.mjs';
|
|
5
|
+
import orderModifiers from './utils/orderModifiers.mjs';
|
|
6
|
+
import debounce from './utils/debounce.mjs';
|
|
7
|
+
import mergeByName from './utils/mergeByName.mjs';
|
|
8
|
+
export { default as detectOverflow } from './utils/detectOverflow.mjs';
|
|
9
|
+
import { isElement } from './dom-utils/instanceOf.mjs';
|
|
10
|
+
|
|
11
|
+
var DEFAULT_OPTIONS = {
|
|
12
|
+
placement: 'bottom',
|
|
13
|
+
modifiers: [],
|
|
14
|
+
strategy: 'absolute'
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
function areValidElements() {
|
|
18
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
19
|
+
args[_key] = arguments[_key];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return !args.some(function (element) {
|
|
23
|
+
return !(element && typeof element.getBoundingClientRect === 'function');
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function popperGenerator(generatorOptions) {
|
|
28
|
+
if (generatorOptions === void 0) {
|
|
29
|
+
generatorOptions = {};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var _generatorOptions = generatorOptions,
|
|
33
|
+
_generatorOptions$def = _generatorOptions.defaultModifiers,
|
|
34
|
+
defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
|
|
35
|
+
_generatorOptions$def2 = _generatorOptions.defaultOptions,
|
|
36
|
+
defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
|
|
37
|
+
return function createPopper(reference, popper, options) {
|
|
38
|
+
if (options === void 0) {
|
|
39
|
+
options = defaultOptions;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var state = {
|
|
43
|
+
placement: 'bottom',
|
|
44
|
+
orderedModifiers: [],
|
|
45
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
46
|
+
modifiersData: {},
|
|
47
|
+
elements: {
|
|
48
|
+
reference: reference,
|
|
49
|
+
popper: popper
|
|
50
|
+
},
|
|
51
|
+
attributes: {},
|
|
52
|
+
styles: {}
|
|
53
|
+
};
|
|
54
|
+
var effectCleanupFns = [];
|
|
55
|
+
var isDestroyed = false;
|
|
56
|
+
var instance = {
|
|
57
|
+
state: state,
|
|
58
|
+
setOptions: function setOptions(setOptionsAction) {
|
|
59
|
+
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
60
|
+
cleanupModifierEffects();
|
|
61
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
62
|
+
state.scrollParents = {
|
|
63
|
+
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
64
|
+
popper: listScrollParents(popper)
|
|
65
|
+
}; // Orders the modifiers based on their dependencies and `phase`
|
|
66
|
+
// properties
|
|
67
|
+
|
|
68
|
+
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
|
|
69
|
+
|
|
70
|
+
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
71
|
+
return m.enabled;
|
|
72
|
+
});
|
|
73
|
+
runModifierEffects();
|
|
74
|
+
return instance.update();
|
|
75
|
+
},
|
|
76
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
77
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
78
|
+
// logic.
|
|
79
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
80
|
+
// prefer the async Popper#update method
|
|
81
|
+
forceUpdate: function forceUpdate() {
|
|
82
|
+
if (isDestroyed) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
var _state$elements = state.elements,
|
|
87
|
+
reference = _state$elements.reference,
|
|
88
|
+
popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
|
|
89
|
+
// anymore
|
|
90
|
+
|
|
91
|
+
if (!areValidElements(reference, popper)) {
|
|
92
|
+
return;
|
|
93
|
+
} // Store the reference and popper rects to be read by modifiers
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
state.rects = {
|
|
97
|
+
reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
|
|
98
|
+
popper: getLayoutRect(popper)
|
|
99
|
+
}; // Modifiers have the ability to reset the current update cycle. The
|
|
100
|
+
// most common use case for this is the `flip` modifier changing the
|
|
101
|
+
// placement, which then needs to re-run all the modifiers, because the
|
|
102
|
+
// logic was previously ran for the previous placement and is therefore
|
|
103
|
+
// stale/incorrect
|
|
104
|
+
|
|
105
|
+
state.reset = false;
|
|
106
|
+
state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
|
|
107
|
+
// is filled with the initial data specified by the modifier. This means
|
|
108
|
+
// it doesn't persist and is fresh on each update.
|
|
109
|
+
// To ensure persistent data, use `${name}#persistent`
|
|
110
|
+
|
|
111
|
+
state.orderedModifiers.forEach(function (modifier) {
|
|
112
|
+
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
116
|
+
if (state.reset === true) {
|
|
117
|
+
state.reset = false;
|
|
118
|
+
index = -1;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
var _state$orderedModifie = state.orderedModifiers[index],
|
|
123
|
+
fn = _state$orderedModifie.fn,
|
|
124
|
+
_state$orderedModifie2 = _state$orderedModifie.options,
|
|
125
|
+
_options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
|
|
126
|
+
name = _state$orderedModifie.name;
|
|
127
|
+
|
|
128
|
+
if (typeof fn === 'function') {
|
|
129
|
+
state = fn({
|
|
130
|
+
state: state,
|
|
131
|
+
options: _options,
|
|
132
|
+
name: name,
|
|
133
|
+
instance: instance
|
|
134
|
+
}) || state;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
139
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
140
|
+
update: debounce(function () {
|
|
141
|
+
return new Promise(function (resolve) {
|
|
142
|
+
instance.forceUpdate();
|
|
143
|
+
resolve(state);
|
|
144
|
+
});
|
|
145
|
+
}),
|
|
146
|
+
destroy: function destroy() {
|
|
147
|
+
cleanupModifierEffects();
|
|
148
|
+
isDestroyed = true;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
if (!areValidElements(reference, popper)) {
|
|
153
|
+
return instance;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
instance.setOptions(options).then(function (state) {
|
|
157
|
+
if (!isDestroyed && options.onFirstUpdate) {
|
|
158
|
+
options.onFirstUpdate(state);
|
|
159
|
+
}
|
|
160
|
+
}); // Modifiers have the ability to execute arbitrary code before the first
|
|
161
|
+
// update cycle runs. They will be executed in the same order as the update
|
|
162
|
+
// cycle. This is useful when a modifier adds some persistent data that
|
|
163
|
+
// other modifiers need to use, but the modifier is run after the dependent
|
|
164
|
+
// one.
|
|
165
|
+
|
|
166
|
+
function runModifierEffects() {
|
|
167
|
+
state.orderedModifiers.forEach(function (_ref) {
|
|
168
|
+
var name = _ref.name,
|
|
169
|
+
_ref$options = _ref.options,
|
|
170
|
+
options = _ref$options === void 0 ? {} : _ref$options,
|
|
171
|
+
effect = _ref.effect;
|
|
172
|
+
|
|
173
|
+
if (typeof effect === 'function') {
|
|
174
|
+
var cleanupFn = effect({
|
|
175
|
+
state: state,
|
|
176
|
+
name: name,
|
|
177
|
+
instance: instance,
|
|
178
|
+
options: options
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
var noopFn = function noopFn() {};
|
|
182
|
+
|
|
183
|
+
effectCleanupFns.push(cleanupFn || noopFn);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function cleanupModifierEffects() {
|
|
189
|
+
effectCleanupFns.forEach(function (fn) {
|
|
190
|
+
return fn();
|
|
191
|
+
});
|
|
192
|
+
effectCleanupFns = [];
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return instance;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules
|
|
199
|
+
|
|
200
|
+
export { createPopper, popperGenerator };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { isShadowRoot } from './instanceOf.mjs';
|
|
2
|
+
|
|
3
|
+
function contains(parent, child) {
|
|
4
|
+
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
5
|
+
|
|
6
|
+
if (parent.contains(child)) {
|
|
7
|
+
return true;
|
|
8
|
+
} // then fallback to custom implementation with Shadow DOM support
|
|
9
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
10
|
+
var next = child;
|
|
11
|
+
|
|
12
|
+
do {
|
|
13
|
+
if (next && parent.isSameNode(next)) {
|
|
14
|
+
return true;
|
|
15
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
next = next.parentNode || next.host;
|
|
19
|
+
} while (next);
|
|
20
|
+
} // Give up, the result is false
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { contains as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { isHTMLElement, isElement } from './instanceOf.mjs';
|
|
2
|
+
import { round } from '../utils/math.mjs';
|
|
3
|
+
import getWindow from './getWindow.mjs';
|
|
4
|
+
import isLayoutViewport from './isLayoutViewport.mjs';
|
|
5
|
+
|
|
6
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
7
|
+
if (includeScale === void 0) {
|
|
8
|
+
includeScale = false;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if (isFixedStrategy === void 0) {
|
|
12
|
+
isFixedStrategy = false;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
var clientRect = element.getBoundingClientRect();
|
|
16
|
+
var scaleX = 1;
|
|
17
|
+
var scaleY = 1;
|
|
18
|
+
|
|
19
|
+
if (includeScale && isHTMLElement(element)) {
|
|
20
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
21
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
25
|
+
visualViewport = _ref.visualViewport;
|
|
26
|
+
|
|
27
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
28
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
29
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
30
|
+
var width = clientRect.width / scaleX;
|
|
31
|
+
var height = clientRect.height / scaleY;
|
|
32
|
+
return {
|
|
33
|
+
width: width,
|
|
34
|
+
height: height,
|
|
35
|
+
top: y,
|
|
36
|
+
right: x + width,
|
|
37
|
+
bottom: y + height,
|
|
38
|
+
left: x,
|
|
39
|
+
x: x,
|
|
40
|
+
y: y
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { getBoundingClientRect as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { viewport } from '../enums.mjs';
|
|
2
|
+
import getViewportRect from './getViewportRect.mjs';
|
|
3
|
+
import getDocumentRect from './getDocumentRect.mjs';
|
|
4
|
+
import listScrollParents from './listScrollParents.mjs';
|
|
5
|
+
import getOffsetParent from './getOffsetParent.mjs';
|
|
6
|
+
import getDocumentElement from './getDocumentElement.mjs';
|
|
7
|
+
import getComputedStyle from './getComputedStyle.mjs';
|
|
8
|
+
import { isElement, isHTMLElement } from './instanceOf.mjs';
|
|
9
|
+
import getBoundingClientRect from './getBoundingClientRect.mjs';
|
|
10
|
+
import getParentNode from './getParentNode.mjs';
|
|
11
|
+
import contains from './contains.mjs';
|
|
12
|
+
import getNodeName from './getNodeName.mjs';
|
|
13
|
+
import rectToClientRect from '../utils/rectToClientRect.mjs';
|
|
14
|
+
import { max, min } from '../utils/math.mjs';
|
|
15
|
+
|
|
16
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
17
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
18
|
+
rect.top = rect.top + element.clientTop;
|
|
19
|
+
rect.left = rect.left + element.clientLeft;
|
|
20
|
+
rect.bottom = rect.top + element.clientHeight;
|
|
21
|
+
rect.right = rect.left + element.clientWidth;
|
|
22
|
+
rect.width = element.clientWidth;
|
|
23
|
+
rect.height = element.clientHeight;
|
|
24
|
+
rect.x = rect.left;
|
|
25
|
+
rect.y = rect.top;
|
|
26
|
+
return rect;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
30
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
31
|
+
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
32
|
+
// clipping (or hiding) overflowing elements with a position different from
|
|
33
|
+
// `initial`
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
function getClippingParents(element) {
|
|
37
|
+
var clippingParents = listScrollParents(getParentNode(element));
|
|
38
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
|
|
39
|
+
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
40
|
+
|
|
41
|
+
if (!isElement(clipperElement)) {
|
|
42
|
+
return [];
|
|
43
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
return clippingParents.filter(function (clippingParent) {
|
|
47
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
48
|
+
});
|
|
49
|
+
} // Gets the maximum area that the element is visible in due to any number of
|
|
50
|
+
// clipping parents
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
54
|
+
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
55
|
+
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
56
|
+
var firstClippingParent = clippingParents[0];
|
|
57
|
+
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
58
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
59
|
+
accRect.top = max(rect.top, accRect.top);
|
|
60
|
+
accRect.right = min(rect.right, accRect.right);
|
|
61
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
62
|
+
accRect.left = max(rect.left, accRect.left);
|
|
63
|
+
return accRect;
|
|
64
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
65
|
+
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
66
|
+
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
67
|
+
clippingRect.x = clippingRect.left;
|
|
68
|
+
clippingRect.y = clippingRect.top;
|
|
69
|
+
return clippingRect;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { getClippingRect as default };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import getBoundingClientRect from './getBoundingClientRect.mjs';
|
|
2
|
+
import getNodeScroll from './getNodeScroll.mjs';
|
|
3
|
+
import getNodeName from './getNodeName.mjs';
|
|
4
|
+
import { isHTMLElement } from './instanceOf.mjs';
|
|
5
|
+
import getWindowScrollBarX from './getWindowScrollBarX.mjs';
|
|
6
|
+
import getDocumentElement from './getDocumentElement.mjs';
|
|
7
|
+
import isScrollParent from './isScrollParent.mjs';
|
|
8
|
+
import { round } from '../utils/math.mjs';
|
|
9
|
+
|
|
10
|
+
function isElementScaled(element) {
|
|
11
|
+
var rect = element.getBoundingClientRect();
|
|
12
|
+
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
13
|
+
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
14
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
15
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
16
|
+
// Composite means it takes into account transforms as well as layout.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
20
|
+
if (isFixed === void 0) {
|
|
21
|
+
isFixed = false;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
25
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
26
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
27
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
28
|
+
var scroll = {
|
|
29
|
+
scrollLeft: 0,
|
|
30
|
+
scrollTop: 0
|
|
31
|
+
};
|
|
32
|
+
var offsets = {
|
|
33
|
+
x: 0,
|
|
34
|
+
y: 0
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
38
|
+
if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
|
|
39
|
+
isScrollParent(documentElement)) {
|
|
40
|
+
scroll = getNodeScroll(offsetParent);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (isHTMLElement(offsetParent)) {
|
|
44
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
45
|
+
offsets.x += offsetParent.clientLeft;
|
|
46
|
+
offsets.y += offsetParent.clientTop;
|
|
47
|
+
} else if (documentElement) {
|
|
48
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return {
|
|
53
|
+
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
54
|
+
y: rect.top + scroll.scrollTop - offsets.y,
|
|
55
|
+
width: rect.width,
|
|
56
|
+
height: rect.height
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { getCompositeRect as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isElement } from './instanceOf.mjs';
|
|
2
|
+
|
|
3
|
+
function getDocumentElement(element) {
|
|
4
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
5
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
6
|
+
element.document) || window.document).documentElement;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { getDocumentElement as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import getDocumentElement from './getDocumentElement.mjs';
|
|
2
|
+
import getComputedStyle from './getComputedStyle.mjs';
|
|
3
|
+
import getWindowScrollBarX from './getWindowScrollBarX.mjs';
|
|
4
|
+
import getWindowScroll from './getWindowScroll.mjs';
|
|
5
|
+
import { max } from '../utils/math.mjs';
|
|
6
|
+
|
|
7
|
+
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
8
|
+
|
|
9
|
+
function getDocumentRect(element) {
|
|
10
|
+
var _element$ownerDocumen;
|
|
11
|
+
|
|
12
|
+
var html = getDocumentElement(element);
|
|
13
|
+
var winScroll = getWindowScroll(element);
|
|
14
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
15
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
16
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
17
|
+
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
18
|
+
var y = -winScroll.scrollTop;
|
|
19
|
+
|
|
20
|
+
if (getComputedStyle(body || html).direction === 'rtl') {
|
|
21
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
width: width,
|
|
26
|
+
height: height,
|
|
27
|
+
x: x,
|
|
28
|
+
y: y
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { getDocumentRect as default };
|