@keyblade/pro-components 1.13.8-alpha.13 → 1.13.8-alpha.15
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/es/_virtual/_commonjsHelpers.js +6 -0
- package/es/_virtual/advancedFormat.js +7 -0
- package/es/_virtual/advancedFormat2.js +4 -0
- package/es/_virtual/customParseFormat.js +7 -0
- package/es/_virtual/customParseFormat2.js +4 -0
- package/es/_virtual/isBetween.js +7 -0
- package/es/_virtual/isBetween2.js +4 -0
- package/es/_virtual/quarterOfYear.js +7 -0
- package/es/_virtual/quarterOfYear2.js +4 -0
- package/es/_virtual/weekOfYear.js +7 -0
- package/es/_virtual/weekOfYear2.js +4 -0
- package/es/_virtual/weekYear.js +7 -0
- package/es/_virtual/weekYear2.js +4 -0
- package/es/_virtual/zh-cn.js +2 -0
- package/es/_virtual/zh-cn2.js +4 -0
- package/es/components.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +10 -8
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/client-only.js +16 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/feedback-icon.js +42 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/icon-hover.js +42 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/input-label/input-label.js +134 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/resize-observer-v2.js +35 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/resize-observer.js +40 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/select-view/select-view.js +192 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/hooks/use-size.js +61 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/virtual-list-item.js +35 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/virtual-list.js +186 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-component-ref.js +16 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-first-element.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-form-item.js +24 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-input.js +63 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-pick-slots.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-popup-manager.js +44 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-resize-observer.js +22 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-scrollbar.js +25 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-size.js +14 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-teleport-container.js +22 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-trigger.js +23 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/constant.js +33 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/date.js +96 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/debounce.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/dom.js +53 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/global-config.js +28 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/is-equal.js +26 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/is.js +46 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/keyboard.js +32 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/keycode.js +9 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/omit.js +17 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/pad.js +7 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/pick.js +10 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/raf.js +5 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/throttle-by-raf.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/vue-utils.js +96 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_virtual/plugin-vue_export-helper.js +8 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/button-group.js +47 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/button.js +130 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/index.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/checkbox-group.js +94 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/checkbox.js +129 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/icon-check.js +20 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/index.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/config-provider/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/empty/empty.js +41 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/empty/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/form/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-check-circle-fill/icon-check-circle-fill.js +70 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-check-circle-fill/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close/icon-close.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close-circle-fill/icon-close-circle-fill.js +70 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close-circle-fill/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-down/icon-down.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-down/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-empty/icon-empty.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-empty/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.js +70 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-exclamation-circle-fill/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-left/icon-left.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-left/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-loading/icon-loading.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-loading/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-right/icon-right.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-right/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-search/icon-search.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-search/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/input-tag.js +318 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/utils.js +35 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/index.js +32 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/lang/zh-cn.js +196 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/index.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/radio-group.js +105 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/radio.js +117 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/scrollbar.js +194 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/thumb.js +108 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/hooks/use-options.js +96 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/hooks/use-select.js +137 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/index.js +18 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/optgroup.js +32 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/option.js +162 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/select-dropdown.js +119 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/select.js +506 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/utils.js +100 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/dot-loading.js +34 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/spin.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/interface.js +18 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/tag.js +146 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/trigger.js +446 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/utils.js +305 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/zh-cn.js +24 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/advancedFormat.js +54 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/customParseFormat.js +127 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js +19 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/quarterOfYear.js +33 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/weekOfYear.js +29 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/weekYear.js +19 -0
- package/es/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
- package/es/pro-calendar/calendar.vue.d.ts +71 -0
- package/es/pro-calendar/calendar.vue.js +7 -0
- package/es/pro-calendar/calendar.vue2.js +151 -0
- package/es/pro-calendar/enum.d.ts +6 -0
- package/es/pro-calendar/enum.js +4 -0
- package/es/pro-calendar/header.vue.d.ts +46 -0
- package/es/pro-calendar/header.vue.js +122 -0
- package/es/pro-calendar/header.vue2.js +4 -0
- package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
- package/es/pro-calendar/hooks/useCellClassName.js +41 -0
- package/es/pro-calendar/index.d.ts +106 -0
- package/es/pro-calendar/index.js +10 -0
- package/es/pro-calendar/inerface.d.ts +34 -0
- package/es/pro-calendar/month.d.ts +5 -0
- package/es/pro-calendar/month.js +43 -0
- package/es/pro-calendar/month.vue.d.ts +37 -0
- package/es/pro-calendar/month.vue.js +127 -0
- package/es/pro-calendar/month.vue2.js +4 -0
- package/es/pro-calendar/week.vue.d.ts +15 -0
- package/es/pro-calendar/week.vue.js +35 -0
- package/es/pro-calendar/week.vue2.js +4 -0
- package/es/pro-calendar/year.vue.d.ts +15 -0
- package/es/pro-calendar/year.vue.js +112 -0
- package/es/pro-calendar/year.vue2.js +4 -0
- package/es/pro-table/index.vue.js +20 -25
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setGlobalConfig as m, getComponentPrefix as a } from "../_utils/global-config.js";
|
|
2
|
+
import o from "./tag.js";
|
|
3
|
+
const i = Object.assign(o, {
|
|
4
|
+
install: (t, e) => {
|
|
5
|
+
m(t, e);
|
|
6
|
+
const n = a(e);
|
|
7
|
+
t.component(n + o.name, o);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
i as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { defineComponent as I, resolveComponent as v, createElementBlock as k, createCommentVNode as r, openBlock as d, normalizeStyle as w, normalizeClass as u, renderSlot as C, createBlock as T, withModifiers as L, withCtx as N, createVNode as $, toRefs as O, computed as t, ref as g } from "vue";
|
|
2
|
+
import { getPrefixCls as R } from "../_utils/global-config.js";
|
|
3
|
+
import A from "../_components/icon-hover.js";
|
|
4
|
+
import E from "../icon/icon-close/index.js";
|
|
5
|
+
import G from "../icon/icon-loading/index.js";
|
|
6
|
+
import { TAG_COLORS as y } from "./interface.js";
|
|
7
|
+
import { useSize as H } from "../_hooks/use-size.js";
|
|
8
|
+
import M from "../_virtual/plugin-vue_export-helper.js";
|
|
9
|
+
const P = I({
|
|
10
|
+
name: "Tag",
|
|
11
|
+
components: {
|
|
12
|
+
IconHover: A,
|
|
13
|
+
IconClose: E,
|
|
14
|
+
IconLoading: G
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
color: {
|
|
18
|
+
type: String
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
type: String
|
|
22
|
+
},
|
|
23
|
+
bordered: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
visible: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
defaultVisible: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
35
|
+
loading: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
closable: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
checkable: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
checked: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: void 0
|
|
50
|
+
},
|
|
51
|
+
defaultChecked: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !0
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
emits: {
|
|
57
|
+
"update:visible": (e) => !0,
|
|
58
|
+
"update:checked": (e) => !0,
|
|
59
|
+
close: (e) => !0,
|
|
60
|
+
check: (e, n) => !0
|
|
61
|
+
},
|
|
62
|
+
setup(e, { emit: n }) {
|
|
63
|
+
const { size: h } = O(e), o = R("tag"), b = t(() => e.color && y.includes(e.color)), f = t(() => e.color && !y.includes(e.color)), a = g(e.defaultVisible), i = g(e.defaultChecked), s = t(() => {
|
|
64
|
+
var l;
|
|
65
|
+
return (l = e.visible) != null ? l : a.value;
|
|
66
|
+
}), c = t(() => {
|
|
67
|
+
var l;
|
|
68
|
+
return e.checkable ? (l = e.checked) != null ? l : i.value : !0;
|
|
69
|
+
}), { mergedSize: p } = H(h), B = t(() => p.value === "mini" ? "small" : p.value), z = (l) => {
|
|
70
|
+
a.value = !1, n("update:visible", !1), n("close", l);
|
|
71
|
+
}, S = (l) => {
|
|
72
|
+
if (e.checkable) {
|
|
73
|
+
const m = !c.value;
|
|
74
|
+
i.value = m, n("update:checked", m), n("check", m, l);
|
|
75
|
+
}
|
|
76
|
+
}, _ = t(() => [
|
|
77
|
+
o,
|
|
78
|
+
`${o}-size-${B.value}`,
|
|
79
|
+
{
|
|
80
|
+
[`${o}-loading`]: e.loading,
|
|
81
|
+
[`${o}-hide`]: !s.value,
|
|
82
|
+
[`${o}-${e.color}`]: b.value,
|
|
83
|
+
[`${o}-bordered`]: e.bordered,
|
|
84
|
+
[`${o}-checkable`]: e.checkable,
|
|
85
|
+
[`${o}-checked`]: c.value,
|
|
86
|
+
[`${o}-custom-color`]: f.value
|
|
87
|
+
}
|
|
88
|
+
]), V = t(() => {
|
|
89
|
+
if (f.value)
|
|
90
|
+
return {
|
|
91
|
+
backgroundColor: e.color
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
prefixCls: o,
|
|
96
|
+
cls: _,
|
|
97
|
+
style: V,
|
|
98
|
+
computedVisible: s,
|
|
99
|
+
computedChecked: c,
|
|
100
|
+
handleClick: S,
|
|
101
|
+
handleClose: z
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
function j(e, n, h, o, b, f) {
|
|
106
|
+
const a = v("icon-close"), i = v("icon-hover"), s = v("icon-loading");
|
|
107
|
+
return e.computedVisible ? (d(), k("span", {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: u(e.cls),
|
|
110
|
+
style: w(e.style),
|
|
111
|
+
onClick: n[0] || (n[0] = (...c) => e.handleClick && e.handleClick(...c))
|
|
112
|
+
}, [
|
|
113
|
+
e.$slots.icon ? (d(), k("span", {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: u(`${e.prefixCls}-icon`)
|
|
116
|
+
}, [
|
|
117
|
+
C(e.$slots, "icon")
|
|
118
|
+
], 2)) : r("v-if", !0),
|
|
119
|
+
C(e.$slots, "default"),
|
|
120
|
+
e.closable ? (d(), T(i, {
|
|
121
|
+
key: 1,
|
|
122
|
+
role: "button",
|
|
123
|
+
"aria-label": "Close",
|
|
124
|
+
prefix: e.prefixCls,
|
|
125
|
+
class: u(`${e.prefixCls}-close-btn`),
|
|
126
|
+
onClick: L(e.handleClose, ["stop"])
|
|
127
|
+
}, {
|
|
128
|
+
default: N(() => [
|
|
129
|
+
C(e.$slots, "close-icon", {}, () => [
|
|
130
|
+
$(a)
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
_: 3
|
|
134
|
+
}, 8, ["prefix", "class", "onClick"])) : r("v-if", !0),
|
|
135
|
+
e.loading ? (d(), k("span", {
|
|
136
|
+
key: 2,
|
|
137
|
+
class: u(`${e.prefixCls}-loading-icon`)
|
|
138
|
+
}, [
|
|
139
|
+
$(s)
|
|
140
|
+
], 2)) : r("v-if", !0)
|
|
141
|
+
], 6)) : r("v-if", !0);
|
|
142
|
+
}
|
|
143
|
+
var X = /* @__PURE__ */ M(P, [["render", j]]);
|
|
144
|
+
export {
|
|
145
|
+
X as default
|
|
146
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setGlobalConfig as r, getComponentPrefix as i } from "../_utils/global-config.js";
|
|
2
|
+
import e from "./trigger.js";
|
|
3
|
+
const f = Object.assign(e, {
|
|
4
|
+
install: (o, t) => {
|
|
5
|
+
r(o, t);
|
|
6
|
+
const n = i(t);
|
|
7
|
+
o.component(n + e.name, e);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
f as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import { defineComponent as Me, toRefs as Be, computed as O, inject as ee, ref as d, provide as Fe, reactive as xe, watch as te, onMounted as Ae, onUpdated as Le, onDeactivated as De, onBeforeUnmount as je, createVNode as f, Fragment as Ve, Teleport as ze, mergeProps as ke, Transition as Ne, withDirectives as We, vShow as $e, nextTick as oe } from "vue";
|
|
2
|
+
import { getPrefixCls as Ie } from "../_utils/global-config.js";
|
|
3
|
+
import { getScrollElements as le, getElementScrollRect as ne, getPopupStyle as Ge, getTransformOrigin as He, getArrowStyle as Ke } from "./utils.js";
|
|
4
|
+
import ae from "../_components/resize-observer-v2.js";
|
|
5
|
+
import { on as N, off as ie } from "../_utils/dom.js";
|
|
6
|
+
import { isEmptyChildren as Ue, mergeFirstChild as Xe } from "../_utils/vue-utils.js";
|
|
7
|
+
import Ye from "../_hooks/use-pick-slots.js";
|
|
8
|
+
import { triggerInjectionKey as ue } from "./context.js";
|
|
9
|
+
import { throttleByRaf as re } from "../_utils/throttle-by-raf.js";
|
|
10
|
+
import qe from "../_hooks/use-popup-manager.js";
|
|
11
|
+
import { useResizeObserver as Je } from "../_hooks/use-resize-observer.js";
|
|
12
|
+
import Qe from "../_components/client-only.js";
|
|
13
|
+
import { useTeleportContainer as Ze } from "../_hooks/use-teleport-container.js";
|
|
14
|
+
import { configProviderInjectionKey as et } from "../config-provider/context.js";
|
|
15
|
+
import { useFirstElement as tt } from "../_hooks/use-first-element.js";
|
|
16
|
+
import { omit as ot } from "../_utils/omit.js";
|
|
17
|
+
var lt = Object.defineProperty, nt = Object.defineProperties, at = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertySymbols, it = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable, ce = (t, n, a) => n in t ? lt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a, rt = (t, n) => {
|
|
18
|
+
for (var a in n || (n = {}))
|
|
19
|
+
it.call(n, a) && ce(t, a, n[a]);
|
|
20
|
+
if (se)
|
|
21
|
+
for (var a of se(n))
|
|
22
|
+
ut.call(n, a) && ce(t, a, n[a]);
|
|
23
|
+
return t;
|
|
24
|
+
}, st = (t, n) => nt(t, at(n));
|
|
25
|
+
const ct = ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout", "onContextmenu"];
|
|
26
|
+
var Mt = Me({
|
|
27
|
+
name: "Trigger",
|
|
28
|
+
inheritAttrs: !1,
|
|
29
|
+
props: {
|
|
30
|
+
popupVisible: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: void 0
|
|
33
|
+
},
|
|
34
|
+
defaultPopupVisible: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
trigger: {
|
|
39
|
+
type: [String, Array],
|
|
40
|
+
default: "hover"
|
|
41
|
+
},
|
|
42
|
+
position: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "bottom"
|
|
45
|
+
},
|
|
46
|
+
disabled: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
popupOffset: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: 0
|
|
53
|
+
},
|
|
54
|
+
popupTranslate: {
|
|
55
|
+
type: [Array, Object]
|
|
56
|
+
},
|
|
57
|
+
showArrow: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
},
|
|
61
|
+
alignPoint: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
popupHoverStay: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: !0
|
|
68
|
+
},
|
|
69
|
+
blurToClose: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: !0
|
|
72
|
+
},
|
|
73
|
+
clickToClose: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: !0
|
|
76
|
+
},
|
|
77
|
+
clickOutsideToClose: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !0
|
|
80
|
+
},
|
|
81
|
+
unmountOnClose: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: !0
|
|
84
|
+
},
|
|
85
|
+
contentClass: {
|
|
86
|
+
type: [String, Array, Object]
|
|
87
|
+
},
|
|
88
|
+
contentStyle: {
|
|
89
|
+
type: Object
|
|
90
|
+
},
|
|
91
|
+
arrowClass: {
|
|
92
|
+
type: [String, Array, Object]
|
|
93
|
+
},
|
|
94
|
+
arrowStyle: {
|
|
95
|
+
type: Object
|
|
96
|
+
},
|
|
97
|
+
popupStyle: {
|
|
98
|
+
type: Object
|
|
99
|
+
},
|
|
100
|
+
animationName: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: "fade-in"
|
|
103
|
+
},
|
|
104
|
+
duration: {
|
|
105
|
+
type: [Number, Object]
|
|
106
|
+
},
|
|
107
|
+
mouseEnterDelay: {
|
|
108
|
+
type: Number,
|
|
109
|
+
default: 100
|
|
110
|
+
},
|
|
111
|
+
mouseLeaveDelay: {
|
|
112
|
+
type: Number,
|
|
113
|
+
default: 100
|
|
114
|
+
},
|
|
115
|
+
focusDelay: {
|
|
116
|
+
type: Number,
|
|
117
|
+
default: 0
|
|
118
|
+
},
|
|
119
|
+
autoFitPopupWidth: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: !1
|
|
122
|
+
},
|
|
123
|
+
autoFitPopupMinWidth: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: !1
|
|
126
|
+
},
|
|
127
|
+
autoFixPosition: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !0
|
|
130
|
+
},
|
|
131
|
+
popupContainer: {
|
|
132
|
+
type: [String, Object]
|
|
133
|
+
},
|
|
134
|
+
updateAtScroll: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: !1
|
|
137
|
+
},
|
|
138
|
+
autoFitTransformOrigin: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: !1
|
|
141
|
+
},
|
|
142
|
+
hideEmpty: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: !1
|
|
145
|
+
},
|
|
146
|
+
openedClass: {
|
|
147
|
+
type: [String, Array, Object]
|
|
148
|
+
},
|
|
149
|
+
autoFitPosition: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !0
|
|
152
|
+
},
|
|
153
|
+
renderToBody: {
|
|
154
|
+
type: Boolean,
|
|
155
|
+
default: !0
|
|
156
|
+
},
|
|
157
|
+
preventFocus: {
|
|
158
|
+
type: Boolean,
|
|
159
|
+
default: !1
|
|
160
|
+
},
|
|
161
|
+
scrollToClose: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: !1
|
|
164
|
+
},
|
|
165
|
+
scrollToCloseDistance: {
|
|
166
|
+
type: Number,
|
|
167
|
+
default: 0
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
emits: {
|
|
171
|
+
"update:popupVisible": (t) => !0,
|
|
172
|
+
popupVisibleChange: (t) => !0,
|
|
173
|
+
show: () => !0,
|
|
174
|
+
hide: () => !0,
|
|
175
|
+
resize: () => !0
|
|
176
|
+
},
|
|
177
|
+
setup(t, {
|
|
178
|
+
emit: n,
|
|
179
|
+
slots: a,
|
|
180
|
+
attrs: u
|
|
181
|
+
}) {
|
|
182
|
+
const {
|
|
183
|
+
popupContainer: de
|
|
184
|
+
} = Be(t), S = Ie("trigger"), fe = O(() => ot(u, ct)), p = ee(et, void 0), m = O(() => [].concat(t.trigger)), x = /* @__PURE__ */ new Set(), r = ee(ue, void 0), {
|
|
185
|
+
children: _,
|
|
186
|
+
firstElement: P
|
|
187
|
+
} = tt(), C = d(), W = d(t.defaultPopupVisible), R = d(t.position), $ = d({}), I = d({}), G = d({}), ve = d(), v = d({
|
|
188
|
+
top: 0,
|
|
189
|
+
left: 0
|
|
190
|
+
});
|
|
191
|
+
let E = null, M = null;
|
|
192
|
+
const l = O(() => {
|
|
193
|
+
var e;
|
|
194
|
+
return (e = t.popupVisible) != null ? e : W.value;
|
|
195
|
+
}), {
|
|
196
|
+
teleportContainer: pe,
|
|
197
|
+
containerRef: A
|
|
198
|
+
} = Ze({
|
|
199
|
+
popupContainer: de,
|
|
200
|
+
visible: l,
|
|
201
|
+
documentContainer: !0
|
|
202
|
+
}), {
|
|
203
|
+
zIndex: me
|
|
204
|
+
} = qe("popup", {
|
|
205
|
+
visible: l
|
|
206
|
+
});
|
|
207
|
+
let T = 0, y = !1, L = !1;
|
|
208
|
+
const ye = () => {
|
|
209
|
+
T && (window.clearTimeout(T), T = 0);
|
|
210
|
+
}, D = (e) => {
|
|
211
|
+
if (t.alignPoint) {
|
|
212
|
+
const {
|
|
213
|
+
pageX: o,
|
|
214
|
+
pageY: i
|
|
215
|
+
} = e;
|
|
216
|
+
v.value = {
|
|
217
|
+
top: i,
|
|
218
|
+
left: o
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
}, h = () => {
|
|
222
|
+
if (!P.value || !C.value || !A.value)
|
|
223
|
+
return;
|
|
224
|
+
const e = A.value.getBoundingClientRect(), o = t.alignPoint ? {
|
|
225
|
+
top: v.value.top,
|
|
226
|
+
bottom: v.value.top,
|
|
227
|
+
left: v.value.left,
|
|
228
|
+
right: v.value.left,
|
|
229
|
+
scrollTop: v.value.top,
|
|
230
|
+
scrollBottom: v.value.top,
|
|
231
|
+
scrollLeft: v.value.left,
|
|
232
|
+
scrollRight: v.value.left,
|
|
233
|
+
width: 0,
|
|
234
|
+
height: 0
|
|
235
|
+
} : ne(P.value, e), i = () => ne(C.value, e), w = i(), {
|
|
236
|
+
style: g,
|
|
237
|
+
position: b
|
|
238
|
+
} = Ge(t.position, e, o, w, {
|
|
239
|
+
offset: t.popupOffset,
|
|
240
|
+
translate: t.popupTranslate,
|
|
241
|
+
customStyle: t.popupStyle,
|
|
242
|
+
autoFitPosition: t.autoFitPosition
|
|
243
|
+
});
|
|
244
|
+
t.autoFitTransformOrigin && (I.value = {
|
|
245
|
+
transformOrigin: He(b)
|
|
246
|
+
}), t.autoFitPopupMinWidth ? g.minWidth = `${o.width}px` : t.autoFitPopupWidth && (g.width = `${o.width}px`), R.value !== b && (R.value = b), $.value = g, t.showArrow && oe(() => {
|
|
247
|
+
G.value = Ke(b, o, i(), {
|
|
248
|
+
customStyle: t.arrowStyle
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
}, s = (e, o) => {
|
|
252
|
+
if (e === l.value && T === 0)
|
|
253
|
+
return;
|
|
254
|
+
const i = () => {
|
|
255
|
+
W.value = e, n("update:popupVisible", e), n("popupVisibleChange", e), e && oe(() => {
|
|
256
|
+
h();
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
e || (E = null, M = null), o ? (ye(), e !== l.value && (T = window.setTimeout(i, o))) : i();
|
|
260
|
+
}, he = (e) => {
|
|
261
|
+
var o;
|
|
262
|
+
(o = u.onClick) == null || o.call(u, e), !(t.disabled || l.value && !t.clickToClose) && (m.value.includes("click") ? (D(e), s(!l.value)) : m.value.includes("contextMenu") && l.value && s(!1));
|
|
263
|
+
}, H = (e) => {
|
|
264
|
+
var o;
|
|
265
|
+
(o = u.onMouseenter) == null || o.call(u, e), !(t.disabled || !m.value.includes("hover")) && (D(e), s(!0, t.mouseEnterDelay));
|
|
266
|
+
}, K = (e) => {
|
|
267
|
+
r == null || r.onMouseenter(e), H(e);
|
|
268
|
+
}, U = (e) => {
|
|
269
|
+
var o;
|
|
270
|
+
(o = u.onMouseleave) == null || o.call(u, e), !(t.disabled || !m.value.includes("hover")) && s(!1, t.mouseLeaveDelay);
|
|
271
|
+
}, X = (e) => {
|
|
272
|
+
r == null || r.onMouseleave(e), U(e);
|
|
273
|
+
}, ge = (e) => {
|
|
274
|
+
var o;
|
|
275
|
+
(o = u.onFocusin) == null || o.call(u, e), !(t.disabled || !m.value.includes("focus")) && s(!0, t.focusDelay);
|
|
276
|
+
}, Ce = (e) => {
|
|
277
|
+
var o;
|
|
278
|
+
(o = u.onFocusout) == null || o.call(u, e), !(t.disabled || !m.value.includes("focus")) && t.blurToClose && s(!1);
|
|
279
|
+
}, we = (e) => {
|
|
280
|
+
var o;
|
|
281
|
+
(o = u.onContextmenu) == null || o.call(u, e), !(t.disabled || !m.value.includes("contextMenu") || l.value && !t.clickToClose) && (D(e), s(!l.value), e.preventDefault());
|
|
282
|
+
};
|
|
283
|
+
Fe(ue, xe({
|
|
284
|
+
onMouseenter: K,
|
|
285
|
+
onMouseleave: X,
|
|
286
|
+
addChildRef: (e) => {
|
|
287
|
+
x.add(e), r == null || r.addChildRef(e);
|
|
288
|
+
},
|
|
289
|
+
removeChildRef: (e) => {
|
|
290
|
+
x.delete(e), r == null || r.removeChildRef(e);
|
|
291
|
+
}
|
|
292
|
+
}));
|
|
293
|
+
const j = () => {
|
|
294
|
+
ie(document.documentElement, "mousedown", V), y = !1;
|
|
295
|
+
}, Y = Ye(a, "content"), be = O(() => {
|
|
296
|
+
var e;
|
|
297
|
+
return t.hideEmpty && Ue((e = Y.value) == null ? void 0 : e.call(Y));
|
|
298
|
+
}), V = (e) => {
|
|
299
|
+
var o, i, w;
|
|
300
|
+
if (!((o = P.value) != null && o.contains(e.target) || (i = C.value) != null && i.contains(e.target))) {
|
|
301
|
+
for (const g of x)
|
|
302
|
+
if ((w = g.value) != null && w.contains(e.target))
|
|
303
|
+
return;
|
|
304
|
+
j(), s(!1);
|
|
305
|
+
}
|
|
306
|
+
}, q = (e, o) => {
|
|
307
|
+
const [i, w] = e, {
|
|
308
|
+
scrollTop: g,
|
|
309
|
+
scrollLeft: b
|
|
310
|
+
} = o;
|
|
311
|
+
return Math.abs(g - i) >= t.scrollToCloseDistance || Math.abs(b - w) >= t.scrollToCloseDistance;
|
|
312
|
+
}, B = re((e) => {
|
|
313
|
+
if (l.value)
|
|
314
|
+
if (t.scrollToClose || p != null && p.scrollToClose) {
|
|
315
|
+
const o = e.target;
|
|
316
|
+
E || (E = [o.scrollTop, o.scrollLeft]), q(E, o) ? s(!1) : h();
|
|
317
|
+
} else
|
|
318
|
+
h();
|
|
319
|
+
}), J = () => {
|
|
320
|
+
ie(window, "scroll", Q), L = !1;
|
|
321
|
+
}, Q = re((e) => {
|
|
322
|
+
const o = e.target.documentElement;
|
|
323
|
+
M || (M = [o.scrollTop, o.scrollLeft]), q(M, o) && (s(!1), J());
|
|
324
|
+
}), z = () => {
|
|
325
|
+
l.value && h();
|
|
326
|
+
}, Se = () => {
|
|
327
|
+
z(), n("resize");
|
|
328
|
+
}, Pe = (e) => {
|
|
329
|
+
t.preventFocus && e.preventDefault();
|
|
330
|
+
};
|
|
331
|
+
r == null || r.addChildRef(C);
|
|
332
|
+
const Te = O(() => l.value ? t.openedClass : void 0);
|
|
333
|
+
let c;
|
|
334
|
+
te(l, (e) => {
|
|
335
|
+
if (t.clickOutsideToClose && (!e && y ? j() : e && !y && (N(document.documentElement, "mousedown", V), y = !0)), (t.scrollToClose || p != null && p.scrollToClose) && (N(window, "scroll", Q), L = !0), t.updateAtScroll || p != null && p.updateAtScroll) {
|
|
336
|
+
if (e) {
|
|
337
|
+
c = le(P.value);
|
|
338
|
+
for (const o of c)
|
|
339
|
+
o.addEventListener("scroll", B);
|
|
340
|
+
} else if (c) {
|
|
341
|
+
for (const o of c)
|
|
342
|
+
o.removeEventListener("scroll", B);
|
|
343
|
+
c = void 0;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
e && (k.value = !0);
|
|
347
|
+
}), te(() => [t.autoFitPopupWidth, t.autoFitPopupMinWidth], () => {
|
|
348
|
+
l.value && h();
|
|
349
|
+
});
|
|
350
|
+
const {
|
|
351
|
+
createResizeObserver: Oe,
|
|
352
|
+
destroyResizeObserver: _e
|
|
353
|
+
} = Je({
|
|
354
|
+
elementRef: A,
|
|
355
|
+
onResize: z
|
|
356
|
+
});
|
|
357
|
+
Ae(() => {
|
|
358
|
+
if (Oe(), l.value && (h(), t.clickOutsideToClose && !y && (N(document.documentElement, "mousedown", V), y = !0), t.updateAtScroll || p != null && p.updateAtScroll)) {
|
|
359
|
+
c = le(P.value);
|
|
360
|
+
for (const e of c)
|
|
361
|
+
e.addEventListener("scroll", B);
|
|
362
|
+
}
|
|
363
|
+
}), Le(() => {
|
|
364
|
+
l.value && h();
|
|
365
|
+
}), De(() => {
|
|
366
|
+
s(!1);
|
|
367
|
+
}), je(() => {
|
|
368
|
+
if (r == null || r.removeChildRef(C), _e(), y && j(), L && J(), c) {
|
|
369
|
+
for (const e of c)
|
|
370
|
+
e.removeEventListener("scroll", B);
|
|
371
|
+
c = void 0;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
const k = d(l.value), F = d(!1), Z = () => {
|
|
375
|
+
F.value = !0;
|
|
376
|
+
}, Re = () => {
|
|
377
|
+
F.value = !1, l.value && n("show");
|
|
378
|
+
}, Ee = () => {
|
|
379
|
+
F.value = !1, l.value || (k.value = !1, n("hide"));
|
|
380
|
+
};
|
|
381
|
+
return () => {
|
|
382
|
+
var e, o;
|
|
383
|
+
return _.value = (o = (e = a.default) == null ? void 0 : e.call(a)) != null ? o : [], Xe(_.value, {
|
|
384
|
+
class: Te.value,
|
|
385
|
+
onClick: he,
|
|
386
|
+
onMouseenter: H,
|
|
387
|
+
onMouseleave: U,
|
|
388
|
+
onFocusin: ge,
|
|
389
|
+
onFocusout: Ce,
|
|
390
|
+
onContextmenu: we
|
|
391
|
+
}), f(Ve, null, [t.autoFixPosition ? f(ae, {
|
|
392
|
+
onResize: Se
|
|
393
|
+
}, {
|
|
394
|
+
default: () => [_.value]
|
|
395
|
+
}) : _.value, f(Qe, null, {
|
|
396
|
+
default: () => [f(ze, {
|
|
397
|
+
to: pe.value,
|
|
398
|
+
disabled: !t.renderToBody
|
|
399
|
+
}, {
|
|
400
|
+
default: () => [(!t.unmountOnClose || l.value || k.value) && !be.value && f(ae, {
|
|
401
|
+
onResize: z
|
|
402
|
+
}, {
|
|
403
|
+
default: () => [f("div", ke({
|
|
404
|
+
ref: C,
|
|
405
|
+
class: [`${S}-popup`, `${S}-position-${R.value}`],
|
|
406
|
+
style: st(rt({}, $.value), {
|
|
407
|
+
zIndex: me.value,
|
|
408
|
+
pointerEvents: F.value ? "none" : "auto"
|
|
409
|
+
}),
|
|
410
|
+
"trigger-placement": R.value,
|
|
411
|
+
onMouseenter: K,
|
|
412
|
+
onMouseleave: X,
|
|
413
|
+
onMousedown: Pe
|
|
414
|
+
}, fe.value), [f(Ne, {
|
|
415
|
+
name: t.animationName,
|
|
416
|
+
duration: t.duration,
|
|
417
|
+
appear: !0,
|
|
418
|
+
onBeforeEnter: Z,
|
|
419
|
+
onAfterEnter: Re,
|
|
420
|
+
onBeforeLeave: Z,
|
|
421
|
+
onAfterLeave: Ee
|
|
422
|
+
}, {
|
|
423
|
+
default: () => {
|
|
424
|
+
var i;
|
|
425
|
+
return [We(f("div", {
|
|
426
|
+
class: `${S}-popup-wrapper`,
|
|
427
|
+
style: I.value
|
|
428
|
+
}, [f("div", {
|
|
429
|
+
class: [`${S}-content`, t.contentClass],
|
|
430
|
+
style: t.contentStyle
|
|
431
|
+
}, [(i = a.content) == null ? void 0 : i.call(a)]), t.showArrow && f("div", {
|
|
432
|
+
ref: ve,
|
|
433
|
+
class: [`${S}-arrow`, t.arrowClass],
|
|
434
|
+
style: G.value
|
|
435
|
+
}, null)]), [[$e, l.value]])];
|
|
436
|
+
}
|
|
437
|
+
})])]
|
|
438
|
+
})]
|
|
439
|
+
})]
|
|
440
|
+
})]);
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
export {
|
|
445
|
+
Mt as default
|
|
446
|
+
};
|