@keyblade/pro-components 1.13.8-alpha.14 → 1.13.8-alpha.16
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 +151 -0
- package/es/pro-calendar/calendar.vue3.js +5 -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 +11 -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/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
import { defineComponent as Fe, toRefs as Ee, computed as i, ref as p, watch as z, nextTick as xe, watchEffect as je, createVNode as f, mergeProps as E, isVNode as Le } from "vue";
|
|
2
|
+
import { getPrefixCls as ke } from "../_utils/global-config.js";
|
|
3
|
+
import { isObject as x, isFunction as O, isArray as De, isNumber as Ne, isString as Ke, isBoolean as Ae, isUndefined as j, isNull as Re, isEmptyObject as Ie } from "../_utils/is.js";
|
|
4
|
+
import { getKeyFromValue as H, isGroupOptionInfo as Te, isValidOption as ze, hasEmptyStringKey as He } from "./utils.js";
|
|
5
|
+
import M from "../trigger/index.js";
|
|
6
|
+
import U from "../_components/select-view/select-view.js";
|
|
7
|
+
import Me from "./select-dropdown.js";
|
|
8
|
+
import Ue from "./option.js";
|
|
9
|
+
import $e from "./optgroup.js";
|
|
10
|
+
import Ge from "../_components/virtual-list-v2/virtual-list.js";
|
|
11
|
+
import { useSelect as We } from "./hooks/use-select.js";
|
|
12
|
+
import { useTrigger as qe } from "../_hooks/use-trigger.js";
|
|
13
|
+
import { useFormItem as Je } from "../_hooks/use-form-item.js";
|
|
14
|
+
import { debounce as Qe } from "../_utils/debounce.js";
|
|
15
|
+
var Xe = Object.defineProperty, Ye = Object.defineProperties, Ze = Object.getOwnPropertyDescriptors, $ = Object.getOwnPropertySymbols, el = Object.prototype.hasOwnProperty, ll = Object.prototype.propertyIsEnumerable, G = (l, n, r) => n in l ? Xe(l, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : l[n] = r, w = (l, n) => {
|
|
16
|
+
for (var r in n || (n = {}))
|
|
17
|
+
el.call(n, r) && G(l, r, n[r]);
|
|
18
|
+
if ($)
|
|
19
|
+
for (var r of $(n))
|
|
20
|
+
ll.call(n, r) && G(l, r, n[r]);
|
|
21
|
+
return l;
|
|
22
|
+
}, tl = (l, n) => Ye(l, Ze(n));
|
|
23
|
+
function al(l) {
|
|
24
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !Le(l);
|
|
25
|
+
}
|
|
26
|
+
const ol = {
|
|
27
|
+
value: "value",
|
|
28
|
+
label: "label",
|
|
29
|
+
disabled: "disabled",
|
|
30
|
+
tagProps: "tagProps",
|
|
31
|
+
render: "render"
|
|
32
|
+
};
|
|
33
|
+
var hl = Fe({
|
|
34
|
+
name: "Select",
|
|
35
|
+
components: {
|
|
36
|
+
Trigger: M,
|
|
37
|
+
SelectView: U
|
|
38
|
+
},
|
|
39
|
+
inheritAttrs: !1,
|
|
40
|
+
props: {
|
|
41
|
+
multiple: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !1
|
|
44
|
+
},
|
|
45
|
+
modelValue: {
|
|
46
|
+
type: [String, Number, Boolean, Object, Array],
|
|
47
|
+
default: void 0
|
|
48
|
+
},
|
|
49
|
+
defaultValue: {
|
|
50
|
+
type: [String, Number, Boolean, Object, Array],
|
|
51
|
+
default: (l) => j(l.multiple) ? "" : []
|
|
52
|
+
},
|
|
53
|
+
inputValue: {
|
|
54
|
+
type: String
|
|
55
|
+
},
|
|
56
|
+
defaultInputValue: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
size: {
|
|
61
|
+
type: String
|
|
62
|
+
},
|
|
63
|
+
placeholder: String,
|
|
64
|
+
loading: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !1
|
|
67
|
+
},
|
|
68
|
+
disabled: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: !1
|
|
71
|
+
},
|
|
72
|
+
error: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
allowClear: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !1
|
|
79
|
+
},
|
|
80
|
+
allowSearch: {
|
|
81
|
+
type: [Boolean, Object],
|
|
82
|
+
default: (l) => !!l.multiple
|
|
83
|
+
},
|
|
84
|
+
allowCreate: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !1
|
|
87
|
+
},
|
|
88
|
+
maxTagCount: {
|
|
89
|
+
type: Number,
|
|
90
|
+
default: 0
|
|
91
|
+
},
|
|
92
|
+
popupContainer: {
|
|
93
|
+
type: [String, Object]
|
|
94
|
+
},
|
|
95
|
+
bordered: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: !0
|
|
98
|
+
},
|
|
99
|
+
defaultActiveFirstOption: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: !0
|
|
102
|
+
},
|
|
103
|
+
popupVisible: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: void 0
|
|
106
|
+
},
|
|
107
|
+
defaultPopupVisible: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
},
|
|
111
|
+
unmountOnClose: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !1
|
|
114
|
+
},
|
|
115
|
+
filterOption: {
|
|
116
|
+
type: [Boolean, Function],
|
|
117
|
+
default: !0
|
|
118
|
+
},
|
|
119
|
+
options: {
|
|
120
|
+
type: Array,
|
|
121
|
+
default: () => []
|
|
122
|
+
},
|
|
123
|
+
virtualListProps: {
|
|
124
|
+
type: Object
|
|
125
|
+
},
|
|
126
|
+
triggerProps: {
|
|
127
|
+
type: Object
|
|
128
|
+
},
|
|
129
|
+
formatLabel: {
|
|
130
|
+
type: Function
|
|
131
|
+
},
|
|
132
|
+
fallbackOption: {
|
|
133
|
+
type: [Boolean, Function],
|
|
134
|
+
default: !0
|
|
135
|
+
},
|
|
136
|
+
showExtraOptions: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: !0
|
|
139
|
+
},
|
|
140
|
+
valueKey: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: "value"
|
|
143
|
+
},
|
|
144
|
+
searchDelay: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: 500
|
|
147
|
+
},
|
|
148
|
+
limit: {
|
|
149
|
+
type: Number,
|
|
150
|
+
default: 0
|
|
151
|
+
},
|
|
152
|
+
fieldNames: {
|
|
153
|
+
type: Object
|
|
154
|
+
},
|
|
155
|
+
scrollbar: {
|
|
156
|
+
type: [Boolean, Object],
|
|
157
|
+
default: !0
|
|
158
|
+
},
|
|
159
|
+
showHeaderOnEmpty: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !1
|
|
162
|
+
},
|
|
163
|
+
showFooterOnEmpty: {
|
|
164
|
+
type: Boolean,
|
|
165
|
+
default: !1
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
emits: {
|
|
169
|
+
"update:modelValue": (l) => !0,
|
|
170
|
+
"update:inputValue": (l) => !0,
|
|
171
|
+
"update:popupVisible": (l) => !0,
|
|
172
|
+
change: (l) => !0,
|
|
173
|
+
inputValueChange: (l) => !0,
|
|
174
|
+
popupVisibleChange: (l) => !0,
|
|
175
|
+
clear: (l) => !0,
|
|
176
|
+
remove: (l) => !0,
|
|
177
|
+
search: (l) => !0,
|
|
178
|
+
dropdownScroll: (l) => !0,
|
|
179
|
+
dropdownReachBottom: (l) => !0,
|
|
180
|
+
exceedLimit: (l, n) => !0
|
|
181
|
+
},
|
|
182
|
+
setup(l, {
|
|
183
|
+
slots: n,
|
|
184
|
+
emit: r,
|
|
185
|
+
attrs: W
|
|
186
|
+
}) {
|
|
187
|
+
const {
|
|
188
|
+
size: q,
|
|
189
|
+
disabled: J,
|
|
190
|
+
error: Q,
|
|
191
|
+
options: X,
|
|
192
|
+
filterOption: _,
|
|
193
|
+
valueKey: v,
|
|
194
|
+
multiple: L,
|
|
195
|
+
popupVisible: Y,
|
|
196
|
+
showExtraOptions: Z,
|
|
197
|
+
modelValue: ee,
|
|
198
|
+
fieldNames: S,
|
|
199
|
+
loading: le,
|
|
200
|
+
defaultActiveFirstOption: te
|
|
201
|
+
} = Ee(l), ae = ke("select"), {
|
|
202
|
+
mergedSize: oe,
|
|
203
|
+
mergedDisabled: k,
|
|
204
|
+
mergedError: ne,
|
|
205
|
+
eventHandlers: re
|
|
206
|
+
} = Je({
|
|
207
|
+
size: q,
|
|
208
|
+
disabled: J,
|
|
209
|
+
error: Q
|
|
210
|
+
}), ue = i(() => l.virtualListProps ? "div" : "li"), C = i(() => x(l.allowSearch) && !!l.allowSearch.retainInputValue);
|
|
211
|
+
i(() => {
|
|
212
|
+
if (O(l.formatLabel))
|
|
213
|
+
return (e) => {
|
|
214
|
+
const t = u.get(e.value);
|
|
215
|
+
return l.formatLabel(t);
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
const D = p(), N = p({}), K = p(), {
|
|
219
|
+
computedPopupVisible: m,
|
|
220
|
+
handlePopupVisibleChange: V
|
|
221
|
+
} = qe({
|
|
222
|
+
popupVisible: Y,
|
|
223
|
+
emit: r
|
|
224
|
+
}), P = p(l.defaultValue), B = i(() => {
|
|
225
|
+
var e;
|
|
226
|
+
const t = (e = l.modelValue) != null ? e : P.value;
|
|
227
|
+
return (De(t) ? t : t || Ne(t) || Ke(t) || Ae(t) ? [t] : []).map((o) => ({
|
|
228
|
+
value: o,
|
|
229
|
+
key: H(o, l.valueKey)
|
|
230
|
+
}));
|
|
231
|
+
});
|
|
232
|
+
z(ee, (e) => {
|
|
233
|
+
(j(e) || Re(e)) && (P.value = L.value ? [] : e);
|
|
234
|
+
});
|
|
235
|
+
const d = i(() => B.value.map((e) => e.key)), A = i(() => w(w({}, ol), S == null ? void 0 : S.value)), R = p(), ie = (e) => {
|
|
236
|
+
const t = {};
|
|
237
|
+
return e.forEach((a) => {
|
|
238
|
+
t[a] = u.get(a);
|
|
239
|
+
}), t;
|
|
240
|
+
}, de = (e) => {
|
|
241
|
+
R.value = ie(e);
|
|
242
|
+
}, ce = (e) => O(l.fallbackOption) ? l.fallbackOption(e) : {
|
|
243
|
+
[A.value.value]: e,
|
|
244
|
+
[A.value.label]: String(x(e) ? e[v == null ? void 0 : v.value] : e)
|
|
245
|
+
}, se = () => {
|
|
246
|
+
const e = [], t = [];
|
|
247
|
+
if (l.allowCreate || l.fallbackOption) {
|
|
248
|
+
for (const a of B.value)
|
|
249
|
+
if (!t.includes(a.key) && a.value !== "") {
|
|
250
|
+
const o = u.get(a.key);
|
|
251
|
+
(!o || o.origin === "extraOptions") && (e.push(a), t.push(a.key));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (l.allowCreate && c.value) {
|
|
255
|
+
const a = H(c.value);
|
|
256
|
+
if (!t.includes(a)) {
|
|
257
|
+
const o = u.get(a);
|
|
258
|
+
(!o || o.origin === "extraOptions") && e.push({
|
|
259
|
+
value: c.value,
|
|
260
|
+
key: a
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return e;
|
|
265
|
+
}, g = p([]), pe = i(() => g.value.map((e) => {
|
|
266
|
+
var t;
|
|
267
|
+
let a = ce(e.value);
|
|
268
|
+
const o = (t = R.value) == null ? void 0 : t[e.key];
|
|
269
|
+
return !j(o) && !Ie(o) && (a = w(w({}, a), o)), a;
|
|
270
|
+
}));
|
|
271
|
+
xe(() => {
|
|
272
|
+
je(() => {
|
|
273
|
+
var e;
|
|
274
|
+
const t = se();
|
|
275
|
+
if (t.length !== g.value.length)
|
|
276
|
+
g.value = t;
|
|
277
|
+
else if (t.length > 0) {
|
|
278
|
+
for (let a = 0; a < t.length; a++)
|
|
279
|
+
if (t[a].key !== ((e = g.value[a]) == null ? void 0 : e.key)) {
|
|
280
|
+
g.value = t;
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
const I = p(""), c = i(() => {
|
|
287
|
+
var e;
|
|
288
|
+
return (e = l.inputValue) != null ? e : I.value;
|
|
289
|
+
});
|
|
290
|
+
z(m, (e) => {
|
|
291
|
+
!e && !C.value && c.value && y("");
|
|
292
|
+
});
|
|
293
|
+
const fe = (e) => {
|
|
294
|
+
var t, a;
|
|
295
|
+
return l.multiple ? e.map((o) => {
|
|
296
|
+
var h, s;
|
|
297
|
+
return (s = (h = u.get(o)) == null ? void 0 : h.value) != null ? s : "";
|
|
298
|
+
}) : (a = (t = u.get(e[0])) == null ? void 0 : t.value) != null ? a : He(u) ? void 0 : "";
|
|
299
|
+
}, b = (e) => {
|
|
300
|
+
var t, a;
|
|
301
|
+
const o = fe(e);
|
|
302
|
+
P.value = o, r("update:modelValue", o), r("change", o), (a = (t = re.value) == null ? void 0 : t.onChange) == null || a.call(t), de(e);
|
|
303
|
+
}, y = (e) => {
|
|
304
|
+
I.value = e, r("update:inputValue", e), r("inputValueChange", e);
|
|
305
|
+
}, ve = (e, t) => {
|
|
306
|
+
if (l.multiple) {
|
|
307
|
+
if (d.value.includes(e)) {
|
|
308
|
+
const a = d.value.filter((o) => o !== e);
|
|
309
|
+
b(a);
|
|
310
|
+
} else if (Ve.value.includes(e))
|
|
311
|
+
if (l.limit > 0 && d.value.length >= l.limit) {
|
|
312
|
+
const a = u.get(e);
|
|
313
|
+
r("exceedLimit", a == null ? void 0 : a.value, t);
|
|
314
|
+
} else {
|
|
315
|
+
const a = d.value.concat(e);
|
|
316
|
+
b(a);
|
|
317
|
+
}
|
|
318
|
+
C.value || y("");
|
|
319
|
+
} else {
|
|
320
|
+
if (e !== d.value[0] && b([e]), C.value) {
|
|
321
|
+
const a = u.get(e);
|
|
322
|
+
a && y(a.label);
|
|
323
|
+
}
|
|
324
|
+
V(!1);
|
|
325
|
+
}
|
|
326
|
+
}, me = Qe((e) => {
|
|
327
|
+
r("search", e);
|
|
328
|
+
}, l.searchDelay), ge = (e) => {
|
|
329
|
+
e !== c.value && (m.value || V(!0), y(e), l.allowSearch && me(e));
|
|
330
|
+
}, be = (e) => {
|
|
331
|
+
const t = u.get(e), a = d.value.filter((o) => o !== e);
|
|
332
|
+
b(a), r("remove", t == null ? void 0 : t.value);
|
|
333
|
+
}, ye = (e) => {
|
|
334
|
+
e == null || e.stopPropagation();
|
|
335
|
+
const t = d.value.filter((a) => {
|
|
336
|
+
var o;
|
|
337
|
+
return (o = u.get(a)) == null ? void 0 : o.disabled;
|
|
338
|
+
});
|
|
339
|
+
b(t), y(""), r("clear", e);
|
|
340
|
+
}, he = (e) => {
|
|
341
|
+
r("dropdownScroll", e);
|
|
342
|
+
}, Oe = (e) => {
|
|
343
|
+
r("dropdownReachBottom", e);
|
|
344
|
+
}, {
|
|
345
|
+
validOptions: T,
|
|
346
|
+
optionInfoMap: u,
|
|
347
|
+
validOptionInfos: we,
|
|
348
|
+
enabledOptionKeys: Ve,
|
|
349
|
+
handleKeyDown: _e
|
|
350
|
+
} = We({
|
|
351
|
+
multiple: L,
|
|
352
|
+
options: X,
|
|
353
|
+
extraOptions: pe,
|
|
354
|
+
inputValue: c,
|
|
355
|
+
filterOption: _,
|
|
356
|
+
showExtraOptions: Z,
|
|
357
|
+
component: ue,
|
|
358
|
+
valueKey: v,
|
|
359
|
+
fieldNames: S,
|
|
360
|
+
loading: le,
|
|
361
|
+
popupVisible: m,
|
|
362
|
+
valueKeys: d,
|
|
363
|
+
dropdownRef: D,
|
|
364
|
+
optionRefs: N,
|
|
365
|
+
virtualListRef: K,
|
|
366
|
+
defaultActiveFirstOption: te,
|
|
367
|
+
onSelect: ve,
|
|
368
|
+
onPopupVisibleChange: V
|
|
369
|
+
}), Se = i(() => {
|
|
370
|
+
var e;
|
|
371
|
+
const t = [];
|
|
372
|
+
for (const a of B.value) {
|
|
373
|
+
const o = u.get(a.key);
|
|
374
|
+
o && t.push(tl(w({}, o), {
|
|
375
|
+
value: a.key,
|
|
376
|
+
label: (e = o == null ? void 0 : o.label) != null ? e : String(x(a.value) ? a.value[v == null ? void 0 : v.value] : a.value),
|
|
377
|
+
closable: !(o != null && o.disabled),
|
|
378
|
+
tagProps: o == null ? void 0 : o.tagProps
|
|
379
|
+
}));
|
|
380
|
+
}
|
|
381
|
+
return t;
|
|
382
|
+
}), Ce = (e) => {
|
|
383
|
+
if (O(n.option)) {
|
|
384
|
+
const t = n.option;
|
|
385
|
+
return () => t({
|
|
386
|
+
data: e.raw
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
return O(e.render) ? e.render : () => e.label;
|
|
390
|
+
}, F = (e) => {
|
|
391
|
+
if (Te(e)) {
|
|
392
|
+
let t;
|
|
393
|
+
return f($e, {
|
|
394
|
+
key: e.key,
|
|
395
|
+
label: e.label
|
|
396
|
+
}, al(t = e.options.map((a) => F(a))) ? t : {
|
|
397
|
+
default: () => [t]
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
return ze(e, {
|
|
401
|
+
inputValue: c.value,
|
|
402
|
+
filterOption: _ == null ? void 0 : _.value
|
|
403
|
+
}) ? f(Ue, {
|
|
404
|
+
ref: (t) => {
|
|
405
|
+
t != null && t.$el && (N.value[e.key] = t.$el);
|
|
406
|
+
},
|
|
407
|
+
key: e.key,
|
|
408
|
+
value: e.value,
|
|
409
|
+
label: e.label,
|
|
410
|
+
disabled: e.disabled,
|
|
411
|
+
internal: !0
|
|
412
|
+
}, {
|
|
413
|
+
default: Ce(e)
|
|
414
|
+
}) : null;
|
|
415
|
+
}, Pe = () => f(Me, {
|
|
416
|
+
ref: D,
|
|
417
|
+
loading: l.loading,
|
|
418
|
+
empty: we.value.length === 0,
|
|
419
|
+
virtualList: !!l.virtualListProps,
|
|
420
|
+
scrollbar: l.scrollbar,
|
|
421
|
+
showHeaderOnEmpty: l.showHeaderOnEmpty,
|
|
422
|
+
showFooterOnEmpty: l.showFooterOnEmpty,
|
|
423
|
+
onScroll: he,
|
|
424
|
+
onReachBottom: Oe
|
|
425
|
+
}, {
|
|
426
|
+
default: () => {
|
|
427
|
+
var e, t;
|
|
428
|
+
return [...(t = (e = n.default) == null ? void 0 : e.call(n)) != null ? t : [], ...T.value.map(F)];
|
|
429
|
+
},
|
|
430
|
+
"virtual-list": () => f(Ge, E(l.virtualListProps, {
|
|
431
|
+
ref: K,
|
|
432
|
+
data: T.value
|
|
433
|
+
}), {
|
|
434
|
+
item: ({
|
|
435
|
+
item: e
|
|
436
|
+
}) => F(e)
|
|
437
|
+
}),
|
|
438
|
+
empty: n.empty,
|
|
439
|
+
header: n.header,
|
|
440
|
+
footer: n.footer
|
|
441
|
+
}), Be = ({
|
|
442
|
+
data: e
|
|
443
|
+
}) => {
|
|
444
|
+
var t, a, o, h;
|
|
445
|
+
if ((n.label || O(l.formatLabel)) && e) {
|
|
446
|
+
const s = u.get(e.value);
|
|
447
|
+
if (s != null && s.raw)
|
|
448
|
+
return (o = (t = n.label) == null ? void 0 : t.call(n, {
|
|
449
|
+
data: s.raw
|
|
450
|
+
})) != null ? o : (a = l.formatLabel) == null ? void 0 : a.call(l, s.raw);
|
|
451
|
+
}
|
|
452
|
+
return (h = e == null ? void 0 : e.label) != null ? h : "";
|
|
453
|
+
};
|
|
454
|
+
return () => f(M, E({
|
|
455
|
+
trigger: "click",
|
|
456
|
+
position: "bl",
|
|
457
|
+
popupOffset: 4,
|
|
458
|
+
animationName: "slide-dynamic-origin",
|
|
459
|
+
hideEmpty: !0,
|
|
460
|
+
preventFocus: !0,
|
|
461
|
+
autoFitPopupWidth: !0,
|
|
462
|
+
autoFitTransformOrigin: !0,
|
|
463
|
+
disabled: k.value,
|
|
464
|
+
popupVisible: m.value,
|
|
465
|
+
unmountOnClose: l.unmountOnClose,
|
|
466
|
+
clickToClose: !(l.allowSearch || l.allowCreate),
|
|
467
|
+
popupContainer: l.popupContainer,
|
|
468
|
+
onPopupVisibleChange: V
|
|
469
|
+
}, l.triggerProps), {
|
|
470
|
+
default: () => {
|
|
471
|
+
var e, t;
|
|
472
|
+
return [(t = (e = n.trigger) == null ? void 0 : e.call(n)) != null ? t : f(U, E({
|
|
473
|
+
class: ae,
|
|
474
|
+
modelValue: Se.value,
|
|
475
|
+
inputValue: c.value,
|
|
476
|
+
multiple: l.multiple,
|
|
477
|
+
disabled: k.value,
|
|
478
|
+
error: ne.value,
|
|
479
|
+
loading: l.loading,
|
|
480
|
+
allowClear: l.allowClear,
|
|
481
|
+
allowCreate: l.allowCreate,
|
|
482
|
+
allowSearch: !!l.allowSearch,
|
|
483
|
+
opened: m.value,
|
|
484
|
+
maxTagCount: l.maxTagCount,
|
|
485
|
+
placeholder: l.placeholder,
|
|
486
|
+
bordered: l.bordered,
|
|
487
|
+
size: oe.value,
|
|
488
|
+
onInputValueChange: ge,
|
|
489
|
+
onRemove: be,
|
|
490
|
+
onClear: ye,
|
|
491
|
+
onKeydown: _e
|
|
492
|
+
}, W), {
|
|
493
|
+
label: Be,
|
|
494
|
+
prefix: n.prefix,
|
|
495
|
+
"arrow-icon": n["arrow-icon"],
|
|
496
|
+
"loading-icon": n["loading-icon"],
|
|
497
|
+
"search-icon": n["search-icon"]
|
|
498
|
+
})];
|
|
499
|
+
},
|
|
500
|
+
content: Pe
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
export {
|
|
505
|
+
hl as default
|
|
506
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { isObject as i, isNumber as O, isString as b, isBoolean as P, isFunction as y } from "../_utils/is.js";
|
|
2
|
+
var d = Object.defineProperty, w = Object.defineProperties, h = Object.getOwnPropertyDescriptors, l = Object.getOwnPropertySymbols, m = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable, u = (r, t, e) => t in r ? d(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, p = (r, t) => {
|
|
3
|
+
for (var e in t || (t = {}))
|
|
4
|
+
m.call(t, e) && u(r, e, t[e]);
|
|
5
|
+
if (l)
|
|
6
|
+
for (var e of l(t))
|
|
7
|
+
v.call(t, e) && u(r, e, t[e]);
|
|
8
|
+
return r;
|
|
9
|
+
}, g = (r, t) => w(r, h(t));
|
|
10
|
+
const S = (r) => i(r) && "isGroup" in r, j = (r) => i(r) && "isGroup" in r, G = (r, t = "value") => String(i(r) ? r[t] : r), f = (r, t = "value") => i(r) ? `__arco__option__object__${r[t]}` : r || O(r) || b(r) || P(r) ? `__arco__option__${typeof r}-${r}` : "", B = (r) => r.has("__arco__option__string-"), $ = (r, {
|
|
11
|
+
valueKey: t,
|
|
12
|
+
fieldNames: e,
|
|
13
|
+
origin: _,
|
|
14
|
+
index: a = -1
|
|
15
|
+
}) => {
|
|
16
|
+
var c;
|
|
17
|
+
if (i(r)) {
|
|
18
|
+
const o = r[e.value];
|
|
19
|
+
return {
|
|
20
|
+
raw: r,
|
|
21
|
+
index: a,
|
|
22
|
+
key: f(o, t),
|
|
23
|
+
origin: _,
|
|
24
|
+
value: o,
|
|
25
|
+
label: (c = r[e.label]) != null ? c : G(o, t),
|
|
26
|
+
render: r[e.render],
|
|
27
|
+
disabled: !!r[e.disabled],
|
|
28
|
+
tagProps: r[e.tagProps]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const s = {
|
|
32
|
+
value: r,
|
|
33
|
+
label: String(r),
|
|
34
|
+
disabled: !1
|
|
35
|
+
};
|
|
36
|
+
return p({
|
|
37
|
+
raw: s,
|
|
38
|
+
index: a,
|
|
39
|
+
key: f(r, t),
|
|
40
|
+
origin: _
|
|
41
|
+
}, s);
|
|
42
|
+
}, k = (r, {
|
|
43
|
+
valueKey: t,
|
|
44
|
+
fieldNames: e,
|
|
45
|
+
origin: _,
|
|
46
|
+
optionInfoMap: a
|
|
47
|
+
}) => {
|
|
48
|
+
var c;
|
|
49
|
+
const s = [];
|
|
50
|
+
for (const o of r)
|
|
51
|
+
if (S(o)) {
|
|
52
|
+
const n = k((c = o.options) != null ? c : [], {
|
|
53
|
+
valueKey: t,
|
|
54
|
+
fieldNames: e,
|
|
55
|
+
origin: _,
|
|
56
|
+
optionInfoMap: a
|
|
57
|
+
});
|
|
58
|
+
n.length > 0 && s.push(g(p({}, o), {
|
|
59
|
+
key: `__arco__group__${o.label}`,
|
|
60
|
+
options: n
|
|
61
|
+
}));
|
|
62
|
+
} else {
|
|
63
|
+
const n = $(o, {
|
|
64
|
+
valueKey: t,
|
|
65
|
+
fieldNames: e,
|
|
66
|
+
origin: _
|
|
67
|
+
});
|
|
68
|
+
s.push(n), a.get(n.key) || a.set(n.key, n);
|
|
69
|
+
}
|
|
70
|
+
return s;
|
|
71
|
+
}, C = (r, {
|
|
72
|
+
inputValue: t,
|
|
73
|
+
filterOption: e
|
|
74
|
+
}) => {
|
|
75
|
+
const _ = (a) => {
|
|
76
|
+
var c;
|
|
77
|
+
const s = [];
|
|
78
|
+
for (const o of a)
|
|
79
|
+
if (j(o)) {
|
|
80
|
+
const n = _((c = o.options) != null ? c : []);
|
|
81
|
+
n.length > 0 && s.push(g(p({}, o), { options: n }));
|
|
82
|
+
} else E(o, { inputValue: t, filterOption: e }) && s.push(o);
|
|
83
|
+
return s;
|
|
84
|
+
};
|
|
85
|
+
return _(r);
|
|
86
|
+
}, E = (r, {
|
|
87
|
+
inputValue: t,
|
|
88
|
+
filterOption: e
|
|
89
|
+
}) => y(e) ? !t || e(t, r.raw) : e ? r.label.toLowerCase().includes((t ?? "").toLowerCase()) : !0;
|
|
90
|
+
export {
|
|
91
|
+
$ as createOptionInfo,
|
|
92
|
+
f as getKeyFromValue,
|
|
93
|
+
k as getOptionInfos,
|
|
94
|
+
C as getValidOptions,
|
|
95
|
+
G as getValueString,
|
|
96
|
+
B as hasEmptyStringKey,
|
|
97
|
+
S as isGroupOption,
|
|
98
|
+
j as isGroupOptionInfo,
|
|
99
|
+
E as isValidOption
|
|
100
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as d, createVNode as t } from "vue";
|
|
2
|
+
import { getPrefixCls as l } from "../_utils/global-config.js";
|
|
3
|
+
const n = 5;
|
|
4
|
+
var z = d({
|
|
5
|
+
name: "DotLoading",
|
|
6
|
+
props: {
|
|
7
|
+
size: {
|
|
8
|
+
type: Number
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(e) {
|
|
12
|
+
const i = l("dot-loading");
|
|
13
|
+
return () => {
|
|
14
|
+
const s = e.size ? {
|
|
15
|
+
width: `${e.size}px`,
|
|
16
|
+
height: `${e.size}px`
|
|
17
|
+
} : {};
|
|
18
|
+
return t("div", {
|
|
19
|
+
class: i,
|
|
20
|
+
style: {
|
|
21
|
+
width: e.size ? `${e.size * 7}px` : void 0,
|
|
22
|
+
height: e.size ? `${e.size}px` : void 0
|
|
23
|
+
}
|
|
24
|
+
}, [Array(n).fill(1).map((a, o) => t("div", {
|
|
25
|
+
class: `${i}-item`,
|
|
26
|
+
key: o,
|
|
27
|
+
style: s
|
|
28
|
+
}, null))]);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
z as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { setGlobalConfig as i, getComponentPrefix as m } from "../_utils/global-config.js";
|
|
2
|
+
import n from "./spin.js";
|
|
3
|
+
const s = Object.assign(n, {
|
|
4
|
+
install: (o, t) => {
|
|
5
|
+
i(o, t);
|
|
6
|
+
const e = m(t);
|
|
7
|
+
o.component(e + n.name, n);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
s as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as g, inject as v, computed as p, createVNode as e, Fragment as c, cloneVNode as z } from "vue";
|
|
2
|
+
import { getPrefixCls as $ } from "../_utils/global-config.js";
|
|
3
|
+
import I from "../icon/icon-loading/index.js";
|
|
4
|
+
import x from "./dot-loading.js";
|
|
5
|
+
import { getFirstComponent as y } from "../_utils/vue-utils.js";
|
|
6
|
+
import { configProviderInjectionKey as C } from "../config-provider/context.js";
|
|
7
|
+
var b = g({
|
|
8
|
+
name: "Spin",
|
|
9
|
+
props: {
|
|
10
|
+
size: {
|
|
11
|
+
type: Number
|
|
12
|
+
},
|
|
13
|
+
loading: Boolean,
|
|
14
|
+
dot: Boolean,
|
|
15
|
+
tip: String,
|
|
16
|
+
hideIcon: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(n, {
|
|
22
|
+
slots: i
|
|
23
|
+
}) {
|
|
24
|
+
const t = $("spin"), l = v(C, void 0), u = p(() => [t, {
|
|
25
|
+
[`${t}-loading`]: n.loading,
|
|
26
|
+
[`${t}-with-tip`]: n.tip && !i.default
|
|
27
|
+
}]), f = () => {
|
|
28
|
+
if (i.icon) {
|
|
29
|
+
const o = y(i.icon());
|
|
30
|
+
if (o)
|
|
31
|
+
return z(o, {
|
|
32
|
+
spin: !0
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return i.element ? i.element() : n.dot ? e(x, {
|
|
36
|
+
size: n.size
|
|
37
|
+
}, null) : l != null && l.slots.loading ? l.slots.loading() : e(I, {
|
|
38
|
+
spin: !0,
|
|
39
|
+
size: n.size
|
|
40
|
+
}, null);
|
|
41
|
+
}, a = () => {
|
|
42
|
+
var o, r, d;
|
|
43
|
+
const m = n.size ? {
|
|
44
|
+
fontSize: `${n.size}px`
|
|
45
|
+
} : void 0, s = !!((o = i.tip) != null ? o : n.tip);
|
|
46
|
+
return e(c, null, [!n.hideIcon && e("div", {
|
|
47
|
+
class: `${t}-icon`,
|
|
48
|
+
style: m
|
|
49
|
+
}, [f()]), s && e("div", {
|
|
50
|
+
class: `${t}-tip`
|
|
51
|
+
}, [(d = (r = i.tip) == null ? void 0 : r.call(i)) != null ? d : n.tip])]);
|
|
52
|
+
};
|
|
53
|
+
return () => e("div", {
|
|
54
|
+
class: u.value
|
|
55
|
+
}, [i.default ? e(c, null, [i.default(), n.loading && e("div", {
|
|
56
|
+
class: `${t}-mask`
|
|
57
|
+
}, [e("div", {
|
|
58
|
+
class: `${t}-mask-icon`
|
|
59
|
+
}, [a()])])]) : a()]);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
b as default
|
|
64
|
+
};
|