kui-vue 6.2.2 → 6.3.1
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/ai/kui-components.json +1016 -457
- package/dist/index.js +2 -2
- package/es/index.js +6225 -4909
- package/es/locale/de.js +6 -2
- package/es/locale/el.js +6 -2
- package/es/locale/en.js +6 -2
- package/es/locale/fr.js +6 -2
- package/es/locale/it.js +6 -2
- package/es/locale/ja.js +6 -2
- package/es/locale/ko.js +6 -2
- package/es/locale/ru.js +6 -2
- package/es/locale/th.js +6 -2
- package/es/locale/uk.js +6 -2
- package/es/locale/vi.js +6 -2
- package/es/locale/zh-CN.js +6 -2
- package/es/locale/zh-TW.js +6 -2
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +2 -2
- package/lib/locale/el.cjs +2 -2
- package/lib/locale/en.cjs +2 -2
- package/lib/locale/fr.cjs +2 -2
- package/lib/locale/it.cjs +2 -2
- package/lib/locale/ja.cjs +2 -2
- package/lib/locale/ko.cjs +2 -2
- package/lib/locale/ru.cjs +2 -2
- package/lib/locale/th.cjs +2 -2
- package/lib/locale/uk.cjs +2 -2
- package/lib/locale/vi.cjs +2 -2
- package/lib/locale/zh-CN.cjs +2 -2
- package/lib/locale/zh-TW.cjs +2 -2
- package/package.json +6 -5
- package/style/base.css +2 -2
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +1 -1
- package/style/theme.css +2 -2
- package/types/affix/index.d.cts +42 -0
- package/types/alert/index.d.cts +84 -0
- package/types/alert/index.d.ts +6 -6
- package/types/anchor/anchor-link.d.cts +23 -0
- package/types/anchor/anchor.d.cts +58 -0
- package/types/anchor/anchor.d.ts +1 -1
- package/types/anchor/context.d.cts +8 -0
- package/types/anchor/index.d.cts +5 -0
- package/types/anchor/index.d.ts +4 -4
- package/types/auto-complete/index.d.cts +181 -0
- package/types/auto-complete/index.d.ts +53 -1
- package/types/avatar/avatar-group.d.cts +42 -0
- package/types/avatar/avatar-group.d.ts +1 -1
- package/types/avatar/avatar.d.cts +49 -0
- package/types/avatar/avatar.d.ts +2 -2
- package/types/avatar/context.d.cts +8 -0
- package/types/avatar/index.d.cts +5 -0
- package/types/avatar/index.d.ts +4 -4
- package/types/back-top/index.d.cts +60 -0
- package/types/badge/index.d.cts +45 -0
- package/types/badge/index.d.ts +8 -18
- package/types/base/transition.d.cts +3 -0
- package/types/breadcrumb/breadcrumb-item.d.cts +25 -0
- package/types/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/types/breadcrumb/breadcrumb.d.cts +22 -0
- package/types/breadcrumb/index.d.cts +5 -0
- package/types/breadcrumb/index.d.ts +4 -4
- package/types/button/button-group.d.cts +21 -0
- package/types/button/button-group.d.ts +1 -1
- package/types/button/button.d.cts +38 -0
- package/types/button/button.d.ts +4 -5
- package/types/button/index.d.cts +5 -0
- package/types/button/index.d.ts +4 -4
- package/types/calendar/index.d.cts +93 -0
- package/types/card/card-meta.d.cts +17 -0
- package/types/card/index.d.cts +76 -0
- package/types/card/index.d.ts +8 -8
- package/types/carousel/carousel-item.d.cts +2 -0
- package/types/carousel/carousel.d.cts +116 -0
- package/types/carousel/carousel.d.ts +1 -1
- package/types/carousel/drag.d.cts +19 -0
- package/types/carousel/index.d.cts +4 -0
- package/types/carousel/index.d.ts +3 -3
- package/types/cascader/index.d.cts +151 -0
- package/types/cascader/index.d.ts +30 -21
- package/types/cascader/types.d.cts +76 -0
- package/types/cascader/types.d.ts +7 -2
- package/types/check-card/check-card-group.d.cts +80 -0
- package/types/check-card/check-card-group.d.ts +5 -9
- package/types/check-card/check-card.d.cts +113 -0
- package/types/check-card/check-card.d.ts +6 -10
- package/types/check-card/context.d.cts +20 -0
- package/types/check-card/context.d.ts +3 -3
- package/types/check-card/index.d.cts +7 -0
- package/types/check-card/index.d.ts +5 -5
- package/types/check-card/types.d.cts +22 -0
- package/types/check-card/types.d.ts +3 -4
- package/types/checkbox/checkbox-group.d.cts +87 -0
- package/types/checkbox/checkbox-group.d.ts +6 -6
- package/types/checkbox/checkbox.d.cts +68 -0
- package/types/checkbox/checkbox.d.ts +3 -3
- package/types/checkbox/index.d.cts +7 -0
- package/types/checkbox/index.d.ts +5 -5
- package/types/checkbox/types.d.cts +12 -0
- package/types/collapse/collapse-panel.d.cts +21 -0
- package/types/collapse/collapse-panel.d.ts +1 -1
- package/types/collapse/collapse.d.cts +62 -0
- package/types/collapse/collapse.d.ts +6 -6
- package/types/collapse/context.d.cts +7 -0
- package/types/collapse/index.d.cts +6 -0
- package/types/collapse/index.d.ts +4 -4
- package/types/color-picker/alpha.d.cts +22 -0
- package/types/color-picker/hue.d.cts +21 -0
- package/types/color-picker/index.d.cts +228 -0
- package/types/color-picker/index.d.ts +31 -4
- package/types/color-picker/mode.d.cts +28 -0
- package/types/color-picker/mode.d.ts +2 -2
- package/types/color-picker/paint.d.cts +40 -0
- package/types/color-picker/presets.d.cts +22 -0
- package/types/color-picker/types.d.cts +1 -0
- package/types/components.d.cts +166 -0
- package/types/components.d.ts +166 -166
- package/types/config/context.d.cts +128 -0
- package/types/config/context.d.ts +102 -1
- package/types/config/index.d.cts +38 -0
- package/types/config/index.d.ts +2 -2
- package/types/config/popup-host.d.cts +6 -0
- package/types/config/popup.d.cts +4 -0
- package/types/const/types.d.cts +39 -0
- package/types/const/types.d.ts +12 -2
- package/types/const/var.d.cts +6 -0
- package/types/const/var.d.ts +6 -1
- package/types/date-picker/index.d.cts +334 -0
- package/types/date-picker/index.d.ts +21 -3
- package/types/descriptions/descriptions-item.d.cts +28 -0
- package/types/descriptions/descriptions-item.d.ts +1 -1
- package/types/descriptions/descriptions.d.cts +69 -0
- package/types/descriptions/descriptions.d.ts +1 -1
- package/types/descriptions/index.d.cts +6 -0
- package/types/descriptions/index.d.ts +4 -4
- package/types/directives/outsiteclick.d.cts +2 -0
- package/types/directives/resize.d.cts +3 -0
- package/types/directives/scroll.d.cts +2 -0
- package/types/divider/index.d.cts +42 -0
- package/types/divider/index.d.ts +1 -1
- package/types/drawer/index.d.cts +197 -0
- package/types/drawer/index.d.ts +22 -9
- package/types/dropdown/dropdown-button.d.cts +65 -0
- package/types/dropdown/dropdown-button.d.ts +24 -5
- package/types/dropdown/dropdown-context.d.cts +16 -0
- package/types/dropdown/dropdown-context.d.ts +5 -0
- package/types/dropdown/dropdown.d.cts +80 -0
- package/types/dropdown/dropdown.d.ts +17 -1
- package/types/dropdown/index.d.cts +6 -0
- package/types/dropdown/index.d.ts +4 -4
- package/types/dropdown/trigger.d.cts +13 -0
- package/types/dropdown/trigger.d.ts +4 -4
- package/types/empty/index.d.cts +12 -0
- package/types/feature-card/index.d.cts +101 -0
- package/types/feature-card/index.d.ts +6 -6
- package/types/feedback-panel/feedback-panel.d.cts +64 -0
- package/types/feedback-panel/feedback-panel.d.ts +7 -7
- package/types/feedback-panel/index.d.cts +4 -0
- package/types/feedback-panel/index.d.ts +3 -3
- package/types/flame-wrap/engine.d.cts +83 -0
- package/types/flame-wrap/engine.d.ts +18 -0
- package/types/flame-wrap/index.d.cts +81 -0
- package/types/flame-wrap/index.d.ts +1 -1
- package/types/flex/index.d.cts +44 -0
- package/types/flex/index.d.ts +3 -3
- package/types/flex/types.d.cts +4 -0
- package/types/flex/types.d.ts +1 -1
- package/types/form/context.d.cts +68 -0
- package/types/form/context.d.ts +4 -2
- package/types/form/form-item.d.cts +39 -0
- package/types/form/form-item.d.ts +2 -2
- package/types/form/form.d.cts +87 -0
- package/types/form/form.d.ts +2 -2
- package/types/form/index.d.cts +8 -0
- package/types/form/index.d.ts +6 -6
- package/types/form/types.d.cts +27 -0
- package/types/global.d.cts +516 -0
- package/types/global.d.ts +256 -0
- package/types/grid/grid-item.d.cts +25 -0
- package/types/grid/grid-item.d.ts +1 -1
- package/types/grid/grid.d.cts +44 -0
- package/types/grid/grid.d.ts +2 -2
- package/types/grid/index.d.cts +6 -0
- package/types/grid/index.d.ts +5 -5
- package/types/grid/useBreakpoint.d.cts +9 -0
- package/types/icon/index.d.cts +62 -0
- package/types/icon/index.d.ts +3 -3
- package/types/icon/types.d.cts +4 -0
- package/types/image/context.d.cts +9 -0
- package/types/image/context.d.ts +1 -1
- package/types/image/group.d.cts +11 -0
- package/types/image/image.d.cts +73 -0
- package/types/image/image.d.ts +6 -6
- package/types/image/index.d.cts +6 -0
- package/types/image/index.d.ts +5 -5
- package/types/image/instance.d.cts +17 -0
- package/types/image/instance.d.ts +1 -1
- package/types/image/preview.d.cts +47 -0
- package/types/image/preview.d.ts +1 -1
- package/types/image/utils.d.cts +6 -0
- package/types/index.d.cts +1 -1
- package/types/index.d.ts +1 -1
- package/types/input/index.d.cts +8 -0
- package/types/input/index.d.ts +6 -6
- package/types/input/input-base.d.cts +186 -0
- package/types/input/input-base.d.ts +2 -2
- package/types/input/input-box.d.cts +47 -0
- package/types/input/input-box.d.ts +1 -1
- package/types/input/input-group.d.cts +54 -0
- package/types/input/input-group.d.ts +3 -7
- package/types/input/input.d.cts +114 -0
- package/types/input/input.d.ts +19 -19
- package/types/input/textarea.d.cts +81 -0
- package/types/input/textarea.d.ts +1 -1
- package/types/input-number/index.d.cts +180 -0
- package/types/input-number/index.d.ts +39 -9
- package/types/input-otp/index.d.cts +4 -0
- package/types/input-otp/index.d.ts +3 -3
- package/types/input-otp/input-otp.d.cts +113 -0
- package/types/input-otp/input-otp.d.ts +3 -3
- package/types/input-otp/types.d.cts +1 -0
- package/types/input-tag/index.d.cts +118 -0
- package/types/input-tag/index.d.ts +1 -1
- package/types/kanban/index.d.cts +124 -0
- package/types/kanban/index.d.ts +5 -4
- package/types/layout/index.d.cts +136 -0
- package/types/layout/index.d.ts +1 -1
- package/types/list-panel/index.d.cts +79 -0
- package/types/list-panel/index.d.ts +7 -7
- package/types/loading/index.d.cts +11 -0
- package/types/locale/de.d.cts +4 -0
- package/types/locale/de.d.ts +4 -0
- package/types/locale/el.d.cts +4 -0
- package/types/locale/el.d.ts +4 -0
- package/types/locale/en.d.cts +4 -0
- package/types/locale/en.d.ts +4 -0
- package/types/locale/fr.d.cts +4 -0
- package/types/locale/fr.d.ts +4 -0
- package/types/locale/it.d.cts +4 -0
- package/types/locale/it.d.ts +4 -0
- package/types/locale/ja.d.cts +4 -0
- package/types/locale/ja.d.ts +4 -0
- package/types/locale/ko.d.cts +4 -0
- package/types/locale/ko.d.ts +4 -0
- package/types/locale/ru.d.cts +4 -0
- package/types/locale/ru.d.ts +4 -0
- package/types/locale/th.d.cts +4 -0
- package/types/locale/th.d.ts +4 -0
- package/types/locale/uk.d.cts +4 -0
- package/types/locale/uk.d.ts +4 -0
- package/types/locale/vi.d.cts +4 -0
- package/types/locale/vi.d.ts +4 -0
- package/types/locale/zh-CN.d.cts +4 -0
- package/types/locale/zh-CN.d.ts +4 -0
- package/types/locale/zh-TW.d.cts +4 -0
- package/types/locale/zh-TW.d.ts +4 -0
- package/types/mentions/index.d.cts +167 -0
- package/types/mentions/index.d.ts +17 -1
- package/types/menu/index.d.cts +8 -0
- package/types/menu/index.d.ts +6 -6
- package/types/menu/menu-context.d.cts +23 -0
- package/types/menu/menu-context.d.ts +1 -1
- package/types/menu/menu-divider.d.cts +2 -0
- package/types/menu/menu-group.d.cts +11 -0
- package/types/menu/menu-item.d.cts +23 -0
- package/types/menu/menu-item.d.ts +2 -2
- package/types/menu/menu-keyboard.d.cts +30 -0
- package/types/menu/menu-keyboard.d.ts +23 -0
- package/types/menu/menu.d.cts +99 -0
- package/types/menu/menu.d.ts +3 -3
- package/types/menu/recursive-menu.d.cts +14 -0
- package/types/menu/recursive-menu.d.ts +1 -1
- package/types/menu/sub-menu.d.cts +19 -0
- package/types/menu/sub-menu.d.ts +2 -2
- package/types/menu/types.d.cts +14 -0
- package/types/menu/types.d.ts +1 -1
- package/types/message/index.d.cts +26 -0
- package/types/message/index.d.ts +2 -2
- package/types/modal/index.d.cts +38 -0
- package/types/modal/index.d.ts +11 -5
- package/types/modal/modal.d.cts +178 -0
- package/types/modal/modal.d.ts +29 -6
- package/types/modal/toast.d.cts +37 -0
- package/types/modal/toast.d.ts +7 -7
- package/types/notice/container.d.cts +6 -0
- package/types/notice/content.d.cts +64 -0
- package/types/notice/content.d.ts +3 -3
- package/types/notice/index.d.cts +24 -0
- package/types/notice/index.d.ts +2 -2
- package/types/notice/instance.d.cts +8 -0
- package/types/notice/instance.d.ts +1 -1
- package/types/page/index.d.cts +143 -0
- package/types/page/index.d.ts +5 -5
- package/types/page/responsive.d.cts +1 -0
- package/types/page-header/index.d.cts +14 -0
- package/types/popconfirm/index.d.cts +82 -0
- package/types/popconfirm/index.d.ts +18 -2
- package/types/poptip/index.d.cts +80 -0
- package/types/poptip/index.d.ts +18 -2
- package/types/popup/index.d.cts +251 -0
- package/types/popup/index.d.ts +3 -3
- package/types/popup/layers.d.cts +11 -0
- package/types/popup/layers.d.ts +2 -0
- package/types/popup/types.d.cts +15 -0
- package/types/progress/index.d.cts +123 -0
- package/types/progress/index.d.ts +2 -2
- package/types/qrcode/index.d.cts +195 -0
- package/types/qrcode/index.d.ts +6 -6
- package/types/radio/index.d.cts +9 -0
- package/types/radio/index.d.ts +8 -8
- package/types/radio/radio-button.d.cts +84 -0
- package/types/radio/radio-button.d.ts +6 -6
- package/types/radio/radio-group.d.cts +36 -0
- package/types/radio/radio-group.d.ts +3 -3
- package/types/radio/radio.d.cts +84 -0
- package/types/radio/radio.d.ts +6 -6
- package/types/radio/types.d.cts +12 -0
- package/types/radio/types.d.ts +1 -1
- package/types/rate/index.d.cts +102 -0
- package/types/rate/index.d.ts +2 -2
- package/types/rate/star.d.cts +70 -0
- package/types/rate/star.d.ts +2 -2
- package/types/result/index.d.cts +4 -0
- package/types/result/index.d.ts +3 -3
- package/types/result/result.d.cts +34 -0
- package/types/result/result.d.ts +3 -3
- package/types/ripple/engine.d.cts +66 -0
- package/types/ripple/engine.d.ts +18 -0
- package/types/ripple/index.d.cts +42 -0
- package/types/ripple/index.d.ts +1 -1
- package/types/row-col/col.d.cts +52 -0
- package/types/row-col/index.d.cts +5 -0
- package/types/row-col/index.d.ts +4 -4
- package/types/row-col/row.d.cts +38 -0
- package/types/segmented/index.d.cts +49 -0
- package/types/segmented/index.d.ts +4 -3
- package/types/select/index.d.cts +6 -0
- package/types/select/index.d.ts +5 -5
- package/types/select/option.d.cts +53 -0
- package/types/select/option.d.ts +3 -3
- package/types/select/select.d.cts +81 -0
- package/types/select/select.d.ts +9 -4
- package/types/select/types.d.cts +12 -0
- package/types/skeleton/index.d.cts +11 -0
- package/types/skeleton/index.d.ts +10 -10
- package/types/skeleton/skeleton-avatar.d.cts +27 -0
- package/types/skeleton/skeleton-avatar.d.ts +9 -9
- package/types/skeleton/skeleton-button.d.cts +29 -0
- package/types/skeleton/skeleton-button.d.ts +11 -11
- package/types/skeleton/skeleton-image.d.cts +25 -0
- package/types/skeleton/skeleton-image.d.ts +5 -5
- package/types/skeleton/skeleton-text.d.cts +25 -0
- package/types/skeleton/skeleton-text.d.ts +7 -7
- package/types/skeleton/skeleton.d.cts +53 -0
- package/types/skeleton/skeleton.d.ts +9 -9
- package/types/skeleton/types.d.cts +71 -0
- package/types/skeleton/types.d.ts +1 -1
- package/types/skeleton/use-skeleton-loading.d.cts +2 -0
- package/types/slider/index.d.cts +66 -0
- package/types/slider/index.d.ts +1 -1
- package/types/slider/thumb.d.cts +70 -0
- package/types/slider/thumb.d.ts +1 -1
- package/types/space/index.d.cts +54 -0
- package/types/space/index.d.ts +1 -1
- package/types/spin/index.d.cts +71 -0
- package/types/spin/index.d.ts +1 -1
- package/types/splitter/index.d.cts +4 -0
- package/types/splitter/index.d.ts +2 -2
- package/types/splitter/splitter-panel.d.cts +35 -0
- package/types/splitter/splitter.d.cts +31 -0
- package/types/splitter/splitter.d.ts +1 -1
- package/types/stat-card/countup.d.cts +56 -0
- package/types/stat-card/index.d.cts +6 -0
- package/types/stat-card/index.d.ts +5 -5
- package/types/stat-card/rollup.d.cts +34 -0
- package/types/stat-card/stat-card.d.cts +120 -0
- package/types/stat-card/stat-card.d.ts +26 -8
- package/types/stat-card/stat-number.d.cts +110 -0
- package/types/stat-card/stat-number.d.ts +1 -1
- package/types/stat-card/types.d.cts +15 -0
- package/types/stat-card/utils/countup.d.cts +128 -0
- package/types/stat-card/utils/countup.d.ts +3 -3
- package/types/stat-card/utils/odometer.d.cts +17 -0
- package/types/stat-card/utils/odometer.d.ts +1 -1
- package/types/stat-card/utils/stat-item-key.d.cts +11 -0
- package/types/stat-card/utils/stat-item-key.d.ts +11 -0
- package/types/steps/index.d.cts +86 -0
- package/types/switch/index.d.cts +63 -0
- package/types/switch/index.d.ts +1 -1
- package/types/table/column-setting.d.cts +78 -0
- package/types/table/column-setting.d.ts +2 -2
- package/types/table/index.d.cts +262 -0
- package/types/table/index.d.ts +25 -9
- package/types/table/types.d.cts +39 -0
- package/types/table/types.d.ts +17 -1
- package/types/table/utils.d.cts +89 -0
- package/types/table/utils.d.ts +77 -1
- package/types/tabs/index.d.cts +6 -0
- package/types/tabs/index.d.ts +5 -5
- package/types/tabs/tab-panel.d.cts +22 -0
- package/types/tabs/tab-panel.d.ts +2 -2
- package/types/tabs/tabs.d.cts +51 -0
- package/types/tabs/tabs.d.ts +1 -1
- package/types/tabs/types.d.cts +16 -0
- package/types/tabs/types.d.ts +1 -1
- package/types/tag/index.d.cts +58 -0
- package/types/tag/index.d.ts +6 -6
- package/types/time-line/index.d.cts +6 -0
- package/types/time-line/index.d.ts +5 -5
- package/types/time-line/timeline-item.d.cts +21 -0
- package/types/time-line/timeline-item.d.ts +1 -1
- package/types/time-line/timeline.d.cts +27 -0
- package/types/time-line/timeline.d.ts +2 -2
- package/types/tooltip/index.d.cts +76 -0
- package/types/tooltip/index.d.ts +18 -2
- package/types/tour/index.d.cts +122 -0
- package/types/transfer/index.d.cts +129 -0
- package/types/transfer/index.d.ts +5 -4
- package/types/tree/context.d.cts +6 -0
- package/types/tree/index.d.cts +166 -0
- package/types/tree/index.d.ts +7 -7
- package/types/tree/types.d.cts +27 -0
- package/types/tree/types.d.ts +1 -1
- package/types/tree/utils.d.cts +33 -0
- package/types/tree/utils.d.ts +1 -1
- package/types/tree-select/index.d.cts +96 -0
- package/types/tree-select/index.d.ts +9 -4
- package/types/typography/index.d.cts +316 -0
- package/types/upload/file-list.d.cts +101 -0
- package/types/upload/file-list.d.ts +3 -3
- package/types/upload/index.d.cts +229 -0
- package/types/upload/index.d.ts +4 -4
- package/types/upload/picture-sort.d.cts +2 -0
- package/types/upload/selector.d.cts +82 -0
- package/types/upload/selector.d.ts +4 -4
- package/types/upload/types.d.cts +39 -0
- package/types/upload/types.d.ts +1 -1
- package/types/utils/checked.d.cts +2 -0
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/color.d.cts +14 -0
- package/types/utils/color.d.ts +13 -0
- package/types/utils/css.d.cts +2 -0
- package/types/utils/element.d.cts +17 -0
- package/types/utils/focus.d.cts +5 -0
- package/types/utils/model-value.d.cts +10 -0
- package/types/utils/mouse.d.cts +1 -0
- package/types/utils/number.d.cts +6 -0
- package/types/utils/number.d.ts +1 -1
- package/types/utils/overlay-order.d.cts +6 -0
- package/types/utils/overlay-order.d.ts +6 -0
- package/types/utils/overlay-stack.d.cts +13 -0
- package/types/utils/overlay-stack.d.ts +13 -0
- package/types/utils/placement.d.cts +16 -0
- package/types/utils/popup.d.cts +11 -0
- package/types/utils/promise.d.cts +5 -0
- package/types/utils/promise.d.ts +5 -0
- package/types/utils/selection-tags.d.cts +18 -0
- package/types/utils/selection-tags.d.ts +1 -1
- package/types/utils/share.d.cts +12 -0
- package/types/utils/theme.d.cts +5 -0
- package/types/utils/vnode.d.cts +33 -0
- package/types/utils/vnode.d.ts +25 -0
- package/types/utils/vue.d.cts +17 -0
- package/types/virtual-list/index.d.cts +76 -0
- package/types/virtual-list/index.d.ts +1 -1
- package/types/virtual-list/range.d.cts +15 -0
- package/types/watermark/index.d.cts +188 -0
- package/types/watermark/index.d.ts +3 -3
- package/types/watermark/types.d.cts +11 -0
- package/vetur/attributes.json +533 -229
- package/vetur/tags.json +76 -28
- package/vetur/web-types.json +672 -288
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types.cjs";
|
|
3
|
+
import type { IconType } from "../icon/index.cjs";
|
|
4
|
+
import zhCN from "../locale/zh-CN.cjs";
|
|
5
|
+
import type { UploadFile } from "./types.cjs";
|
|
6
|
+
declare const selectorProps: {
|
|
7
|
+
disabled: BooleanType;
|
|
8
|
+
readonly: BooleanType;
|
|
9
|
+
name: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
accept: StringConstructor;
|
|
14
|
+
multiple: BooleanType;
|
|
15
|
+
directory: BooleanType;
|
|
16
|
+
limit: NumberConstructor;
|
|
17
|
+
uploadText: StringConstructor;
|
|
18
|
+
uploadSubText: StringConstructor;
|
|
19
|
+
draggable: BooleanType;
|
|
20
|
+
locale: PropType<typeof zhCN>;
|
|
21
|
+
fileList: PropType<UploadFile[]>;
|
|
22
|
+
uploadIcon: PropType<IconType[]>;
|
|
23
|
+
type: {
|
|
24
|
+
type: PropType<"list" | "picture">;
|
|
25
|
+
default: string;
|
|
26
|
+
validator: (val: string) => boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type SelectorProps = ExtractPropTypes<typeof selectorProps>;
|
|
30
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
31
|
+
disabled: BooleanType;
|
|
32
|
+
readonly: BooleanType;
|
|
33
|
+
name: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
accept: StringConstructor;
|
|
38
|
+
multiple: BooleanType;
|
|
39
|
+
directory: BooleanType;
|
|
40
|
+
limit: NumberConstructor;
|
|
41
|
+
uploadText: StringConstructor;
|
|
42
|
+
uploadSubText: StringConstructor;
|
|
43
|
+
draggable: BooleanType;
|
|
44
|
+
locale: PropType<typeof zhCN>;
|
|
45
|
+
fileList: PropType<UploadFile[]>;
|
|
46
|
+
uploadIcon: PropType<IconType[]>;
|
|
47
|
+
type: {
|
|
48
|
+
type: PropType<"list" | "picture">;
|
|
49
|
+
default: string;
|
|
50
|
+
validator: (val: string) => boolean;
|
|
51
|
+
};
|
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
|
+
select: (files: File[]) => boolean;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
55
|
+
disabled: BooleanType;
|
|
56
|
+
readonly: BooleanType;
|
|
57
|
+
name: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
accept: StringConstructor;
|
|
62
|
+
multiple: BooleanType;
|
|
63
|
+
directory: BooleanType;
|
|
64
|
+
limit: NumberConstructor;
|
|
65
|
+
uploadText: StringConstructor;
|
|
66
|
+
uploadSubText: StringConstructor;
|
|
67
|
+
draggable: BooleanType;
|
|
68
|
+
locale: PropType<typeof zhCN>;
|
|
69
|
+
fileList: PropType<UploadFile[]>;
|
|
70
|
+
uploadIcon: PropType<IconType[]>;
|
|
71
|
+
type: {
|
|
72
|
+
type: PropType<"list" | "picture">;
|
|
73
|
+
default: string;
|
|
74
|
+
validator: (val: string) => boolean;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{
|
|
77
|
+
onSelect?: ((files: File[]) => any) | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
name: string;
|
|
80
|
+
type: "picture" | "list";
|
|
81
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType } from "../const/types";
|
|
3
|
-
import type { IconType } from "../icon";
|
|
4
|
-
import zhCN from "../locale/zh-CN";
|
|
5
|
-
import type { UploadFile } from "./types";
|
|
2
|
+
import type { BooleanType } from "../const/types.js";
|
|
3
|
+
import type { IconType } from "../icon/index.js";
|
|
4
|
+
import zhCN from "../locale/zh-CN.js";
|
|
5
|
+
import type { UploadFile } from "./types.js";
|
|
6
6
|
declare const selectorProps: {
|
|
7
7
|
disabled: BooleanType;
|
|
8
8
|
readonly: BooleanType;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { UploadStatusType } from "../const/types.cjs";
|
|
2
|
+
export interface UploadFile {
|
|
3
|
+
uid?: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
filename?: string;
|
|
6
|
+
size?: string;
|
|
7
|
+
status?: UploadStatusType;
|
|
8
|
+
percent?: number;
|
|
9
|
+
preview?: string | null;
|
|
10
|
+
response?: unknown;
|
|
11
|
+
errorText?: string;
|
|
12
|
+
xhr?: XMLHttpRequest;
|
|
13
|
+
}
|
|
14
|
+
export interface UploadChangeEvent {
|
|
15
|
+
file: UploadFile;
|
|
16
|
+
fileList: UploadFile[];
|
|
17
|
+
}
|
|
18
|
+
export interface UploadSortEvent extends UploadChangeEvent {
|
|
19
|
+
oldIndex: number;
|
|
20
|
+
newIndex: number;
|
|
21
|
+
}
|
|
22
|
+
export interface UploadRequestOptions {
|
|
23
|
+
action?: string;
|
|
24
|
+
method: string;
|
|
25
|
+
name: string;
|
|
26
|
+
file: File | Blob;
|
|
27
|
+
filename: string;
|
|
28
|
+
data: Record<string, string | number | boolean | Blob>;
|
|
29
|
+
headers: Record<string, string>;
|
|
30
|
+
withCredentials: boolean;
|
|
31
|
+
timeout: number;
|
|
32
|
+
onProgress: (percent: number) => void;
|
|
33
|
+
onSuccess: (response?: unknown) => void;
|
|
34
|
+
onError: (error?: unknown) => void;
|
|
35
|
+
}
|
|
36
|
+
export interface UploadRequestHandle {
|
|
37
|
+
abort: () => void;
|
|
38
|
+
}
|
|
39
|
+
export type UploadCustomRequest = (options: UploadRequestOptions) => void | UploadRequestHandle | Promise<void | UploadRequestHandle>;
|
package/types/upload/types.d.ts
CHANGED
package/types/utils/checked.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ValueType } from "../const/types";
|
|
1
|
+
import type { ValueType } from "../const/types.js";
|
|
2
2
|
export declare const getValueWithType: (checked: boolean, vType: ValueType) => string | number | boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function isColor(value?: string): boolean;
|
|
2
|
+
/**
|
|
3
|
+
* `color-mix(in srgb, <colour> <share>%, transparent)` written out as a plain colour.
|
|
4
|
+
*
|
|
5
|
+
* Mixing with `transparent` in srgb only scales the colour's own alpha, so the result is the same
|
|
6
|
+
* rgb triple at `share × alpha` — a value every engine can paint, including the Electron build on
|
|
7
|
+
* Windows 7, where `color-mix()` needs Chrome 111 and a declaration that uses it simply gets no
|
|
8
|
+
* value at all.
|
|
9
|
+
*
|
|
10
|
+
* `share` is the percentage the stylesheet would have written. Colours that only resolve in the
|
|
11
|
+
* browser (`currentColor`, `var(--token)`) and anything unparseable return `undefined`, so callers
|
|
12
|
+
* keep the shade their stylesheet baked instead of shipping a broken declaration.
|
|
13
|
+
*/
|
|
14
|
+
export declare function wash(value: string | undefined, share: number): string | undefined;
|
package/types/utils/color.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
1
|
export declare function isColor(value?: string): boolean;
|
|
2
|
+
/**
|
|
3
|
+
* `color-mix(in srgb, <colour> <share>%, transparent)` written out as a plain colour.
|
|
4
|
+
*
|
|
5
|
+
* Mixing with `transparent` in srgb only scales the colour's own alpha, so the result is the same
|
|
6
|
+
* rgb triple at `share × alpha` — a value every engine can paint, including the Electron build on
|
|
7
|
+
* Windows 7, where `color-mix()` needs Chrome 111 and a declaration that uses it simply gets no
|
|
8
|
+
* value at all.
|
|
9
|
+
*
|
|
10
|
+
* `share` is the percentage the stylesheet would have written. Colours that only resolve in the
|
|
11
|
+
* browser (`currentColor`, `var(--token)`) and anything unparseable return `undefined`, so callers
|
|
12
|
+
* keep the shade their stylesheet baked instead of shipping a broken declaration.
|
|
13
|
+
*/
|
|
14
|
+
export declare function wash(value: string | undefined, share: number): string | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface LegacyVNode {
|
|
2
|
+
eml?: unknown;
|
|
3
|
+
tag?: unknown;
|
|
4
|
+
text?: string;
|
|
5
|
+
componentOptions?: {
|
|
6
|
+
Ctor?: {
|
|
7
|
+
extendOptions?: {
|
|
8
|
+
name?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function isEmptyNode(vnode?: LegacyVNode): boolean;
|
|
14
|
+
export declare function getChildren(children: LegacyVNode[] | undefined, name: string): LegacyVNode[];
|
|
15
|
+
export declare function isNotEmpty(value: unknown): boolean;
|
|
16
|
+
export declare function isEmpty(value: unknown): boolean;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type WritableComputedRef } from "vue";
|
|
2
|
+
/** Capture value once; subsequent external updates belong to modelValue. */
|
|
3
|
+
export declare function useInitialValue<T>(props: {
|
|
4
|
+
modelValue?: T;
|
|
5
|
+
value: T;
|
|
6
|
+
}): WritableComputedRef<T>;
|
|
7
|
+
export declare function useInitialValue<T>(props: {
|
|
8
|
+
modelValue?: T;
|
|
9
|
+
value?: T;
|
|
10
|
+
}): WritableComputedRef<T | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getPosition: (e: MouseEvent | TouchEvent) => number[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const isEmpty: (value: unknown) => boolean;
|
|
2
|
+
export declare const isRealNum: (val: unknown) => boolean;
|
|
3
|
+
export declare const normalize: (val: unknown, precision?: number) => string;
|
|
4
|
+
export declare const isValidBig: (val: unknown) => boolean;
|
|
5
|
+
import type { SliderProps } from "../slider/index.cjs";
|
|
6
|
+
export declare const getClosestStep: (val: number, { min, max, step, marks }: SliderProps) => number;
|
package/types/utils/number.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export declare const isEmpty: (value: unknown) => boolean;
|
|
|
2
2
|
export declare const isRealNum: (val: unknown) => boolean;
|
|
3
3
|
export declare const normalize: (val: unknown, precision?: number) => string;
|
|
4
4
|
export declare const isValidBig: (val: unknown) => boolean;
|
|
5
|
-
import type { SliderProps } from "../slider";
|
|
5
|
+
import type { SliderProps } from "../slider/index.js";
|
|
6
6
|
export declare const getClosestStep: (val: number, { min, max, step, marks }: SliderProps) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 遮罩层(Modal / Drawer)的打开顺序栈:Escape 只该关掉最上面那一层,
|
|
3
|
+
* 叠着开三个窗口时一次按键不能把它们全收掉。弹层(Popup)有自己的注册表,
|
|
4
|
+
* 但两边共用同一个顺序时钟,所以"我上面还有个下拉没关"也能判出来。
|
|
5
|
+
* 两个仓库这两个文件逐字符相同。
|
|
6
|
+
*/
|
|
7
|
+
export interface OverlayHandle {
|
|
8
|
+
/** 我是不是最上面那层:没有更晚打开的遮罩层,也没有更晚打开的弹层压着我 */
|
|
9
|
+
isTop: () => boolean;
|
|
10
|
+
/** 出栈;组件关闭或卸载时必须调,否则会一直挡住下面那层的 Escape */
|
|
11
|
+
release: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function pushOverlay(): OverlayHandle;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 遮罩层(Modal / Drawer)的打开顺序栈:Escape 只该关掉最上面那一层,
|
|
3
|
+
* 叠着开三个窗口时一次按键不能把它们全收掉。弹层(Popup)有自己的注册表,
|
|
4
|
+
* 但两边共用同一个顺序时钟,所以"我上面还有个下拉没关"也能判出来。
|
|
5
|
+
* 两个仓库这两个文件逐字符相同。
|
|
6
|
+
*/
|
|
7
|
+
export interface OverlayHandle {
|
|
8
|
+
/** 我是不是最上面那层:没有更晚打开的遮罩层,也没有更晚打开的弹层压着我 */
|
|
9
|
+
isTop: () => boolean;
|
|
10
|
+
/** 出栈;组件关闭或卸载时必须调,否则会一直挡住下面那层的 Escape */
|
|
11
|
+
release: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function pushOverlay(): OverlayHandle;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
interface PlacementOptions {
|
|
3
|
+
refSelection: Ref<HTMLElement | null>;
|
|
4
|
+
refPopper: Ref<HTMLElement | null>;
|
|
5
|
+
currentPlacement: Ref<string>;
|
|
6
|
+
position?: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
} | null;
|
|
10
|
+
transOrigin: Ref<string>;
|
|
11
|
+
top: Ref<number>;
|
|
12
|
+
left: Ref<number>;
|
|
13
|
+
offset?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function setPlacement({ refSelection, refPopper, currentPlacement, position, transOrigin, top, left, offset, }: PlacementOptions): void;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** One pending frame per owner; callbacks are replaced by the latest request. */
|
|
2
|
+
export declare function createFrameScheduler(): {
|
|
3
|
+
schedule: (callback: FrameRequestCallback) => void;
|
|
4
|
+
cancel: () => void;
|
|
5
|
+
};
|
|
6
|
+
type PopupElement = Node | {
|
|
7
|
+
$el: Node;
|
|
8
|
+
} | null | undefined;
|
|
9
|
+
/** Includes composed paths so clicks inside a shadow-root trigger are not treated as outside. */
|
|
10
|
+
export declare function isEventOutside(event: Event, elements: PopupElement[], requireAll?: boolean): boolean;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { VNodeChild } from "vue";
|
|
2
|
+
import type { ShapeType, SizeType, ThemeType } from "../const/types.cjs";
|
|
3
|
+
interface SelectionTagsOptions {
|
|
4
|
+
labels: VNodeChild[];
|
|
5
|
+
maxTagCount?: number;
|
|
6
|
+
size?: SizeType;
|
|
7
|
+
shape?: ShapeType;
|
|
8
|
+
theme?: ThemeType;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
onRemove: (index: number) => void;
|
|
12
|
+
overflowSize?: SizeType;
|
|
13
|
+
tagClass?: string;
|
|
14
|
+
restClass?: string;
|
|
15
|
+
tooltipClass?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function renderSelectionTags({ labels, maxTagCount, size, shape, theme, disabled, readOnly, onRemove, overflowSize, tagClass, restClass, tooltipClass, }: SelectionTagsOptions): import("vue/jsx-runtime").JSX.Element[];
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const isClient: boolean;
|
|
2
|
+
export declare const isDef: <T = unknown>(val?: T) => val is T;
|
|
3
|
+
export declare const notNullish: <T = unknown>(val?: T | null | undefined) => val is T;
|
|
4
|
+
export declare const assert: (condition: boolean, ...infos: unknown[]) => void;
|
|
5
|
+
export declare const isObject: (val: unknown) => val is object;
|
|
6
|
+
export declare const now: () => number;
|
|
7
|
+
export declare const timestamp: () => number;
|
|
8
|
+
export declare const clamp: (n: number, min: number, max: number) => number;
|
|
9
|
+
export declare const noop: () => void;
|
|
10
|
+
export declare const rand: (min: number, max: number) => number;
|
|
11
|
+
export declare const hasOwn: <T extends object, K extends keyof T>(val: T, key: K) => key is K;
|
|
12
|
+
export declare function copyToClipboard(text: string): Promise<boolean>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type VNode } from "vue";
|
|
2
|
+
export declare function cloneNodes(vnode: VNode[], props: Record<string, unknown>, merge?: boolean, cloneTransition?: boolean): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function getChildren(VNodes?: unknown[]): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>[];
|
|
8
|
+
/**
|
|
9
|
+
* The appearance keys a group hands down as *inherited*, minus the ones the child already states.
|
|
10
|
+
*
|
|
11
|
+
* A control picks its own look with "what was written on me, else what I inherited" — `useFormAppearance`
|
|
12
|
+
* decides that by reading `hasOwnProperty` on the control's own vnode props. A group has no injection
|
|
13
|
+
* channel of its own here: handing a tier or a size down *is* writing it on the child's vnode, and
|
|
14
|
+
* `cloneVNode(child, props, true)` overwrites the child's own value, so an unconditional patch makes the
|
|
15
|
+
* group's value look like the child wrote it and silently outranks an explicit `theme` / `size` /
|
|
16
|
+
* `shape`. Dropping the keys the child wrote is what makes this side agree with the react build, where
|
|
17
|
+
* the item reads `props ?? group ?? provider`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const inheritableAppearance: (child: VNode, values: Record<string, unknown>) => Record<string, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether an optional content prop deserves its wrapper element.
|
|
22
|
+
*
|
|
23
|
+
* `null` and `undefined` are the documented way to omit a slot, but callers also
|
|
24
|
+
* pass `false` (a conditional like `isAdmin && <Icon />`) or an empty string, and
|
|
25
|
+
* the framework renders `false` as nothing while still mounting the wrapper —
|
|
26
|
+
* which keeps its padding, border and flex gap in the layout with nothing inside
|
|
27
|
+
* it. Numbers count as content, including `0`.
|
|
28
|
+
*
|
|
29
|
+
* Slot output arrives as VNodes, so the vnode rules below are where this differs
|
|
30
|
+
* from the React build; the value rules above are shared.
|
|
31
|
+
*/
|
|
32
|
+
export declare function hasRenderableContent(value: unknown): boolean;
|
|
33
|
+
export declare const toggleContainerScroll: (target: HTMLElement | null, lock: boolean) => void;
|
package/types/utils/vnode.d.ts
CHANGED
|
@@ -5,4 +5,29 @@ export declare function cloneNodes(vnode: VNode[], props: Record<string, unknown
|
|
|
5
5
|
export declare function getChildren(VNodes?: unknown[]): VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}>[];
|
|
8
|
+
/**
|
|
9
|
+
* The appearance keys a group hands down as *inherited*, minus the ones the child already states.
|
|
10
|
+
*
|
|
11
|
+
* A control picks its own look with "what was written on me, else what I inherited" — `useFormAppearance`
|
|
12
|
+
* decides that by reading `hasOwnProperty` on the control's own vnode props. A group has no injection
|
|
13
|
+
* channel of its own here: handing a tier or a size down *is* writing it on the child's vnode, and
|
|
14
|
+
* `cloneVNode(child, props, true)` overwrites the child's own value, so an unconditional patch makes the
|
|
15
|
+
* group's value look like the child wrote it and silently outranks an explicit `theme` / `size` /
|
|
16
|
+
* `shape`. Dropping the keys the child wrote is what makes this side agree with the react build, where
|
|
17
|
+
* the item reads `props ?? group ?? provider`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const inheritableAppearance: (child: VNode, values: Record<string, unknown>) => Record<string, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether an optional content prop deserves its wrapper element.
|
|
22
|
+
*
|
|
23
|
+
* `null` and `undefined` are the documented way to omit a slot, but callers also
|
|
24
|
+
* pass `false` (a conditional like `isAdmin && <Icon />`) or an empty string, and
|
|
25
|
+
* the framework renders `false` as nothing while still mounting the wrapper —
|
|
26
|
+
* which keeps its padding, border and flex gap in the layout with nothing inside
|
|
27
|
+
* it. Numbers count as content, including `0`.
|
|
28
|
+
*
|
|
29
|
+
* Slot output arrives as VNodes, so the vnode rules below are where this differs
|
|
30
|
+
* from the React build; the value rules above are shared.
|
|
31
|
+
*/
|
|
32
|
+
export declare function hasRenderableContent(value: unknown): boolean;
|
|
8
33
|
export declare const toggleContainerScroll: (target: HTMLElement | null, lock: boolean) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { App, Component, Plugin, PropType } from "vue";
|
|
2
|
+
/** Attr-forwarding wrappers expose the source props/events, not its instance methods. */
|
|
3
|
+
export type ForwardedComponent<Source extends abstract new (...args: never[]) => {
|
|
4
|
+
$props: object;
|
|
5
|
+
}> = new () => {
|
|
6
|
+
$props: InstanceType<Source>["$props"];
|
|
7
|
+
};
|
|
8
|
+
declare const globalComponents: string[];
|
|
9
|
+
export { globalComponents };
|
|
10
|
+
export declare const installGlobal: (app: App, component: Component) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Keeps an Array runtime validator while exposing a fixed-length tuple to TypeScript.
|
|
13
|
+
* Vue's ArrayConstructor is typed as producing any[], so the compatibility bridge
|
|
14
|
+
* belongs here instead of being repeated in every component prop declaration.
|
|
15
|
+
*/
|
|
16
|
+
export declare const tuplePropType: <T extends readonly unknown[]>() => PropType<T>;
|
|
17
|
+
export declare const WithInstall: <T extends Component>(component: T) => T & Plugin;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
export type VirtualListKey = string | number;
|
|
3
|
+
declare const virtualListProps: {
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<unknown[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
height: {
|
|
9
|
+
type: PropType<number | string>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
itemHeight: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
overscan: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
itemKey: {
|
|
21
|
+
type: PropType<string | ((item: unknown, index: number) => VirtualListKey)>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type VirtualListProps = ExtractPropTypes<typeof virtualListProps>;
|
|
25
|
+
declare const VirtualList: import("vue").DefineComponent<ExtractPropTypes<{
|
|
26
|
+
data: {
|
|
27
|
+
type: PropType<unknown[]>;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
};
|
|
30
|
+
height: {
|
|
31
|
+
type: PropType<number | string>;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
itemHeight: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
overscan: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
itemKey: {
|
|
43
|
+
type: PropType<string | ((item: unknown, index: number) => VirtualListKey)>;
|
|
44
|
+
};
|
|
45
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
scroll: (event: Event) => boolean;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
48
|
+
data: {
|
|
49
|
+
type: PropType<unknown[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
height: {
|
|
53
|
+
type: PropType<number | string>;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
itemHeight: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
overscan: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
itemKey: {
|
|
65
|
+
type: PropType<string | ((item: unknown, index: number) => VirtualListKey)>;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
onScroll?: ((event: Event) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
height: string | number;
|
|
71
|
+
data: unknown[];
|
|
72
|
+
itemHeight: number;
|
|
73
|
+
overscan: number;
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
|
+
export { getVirtualRange } from "./range.cjs";
|
|
76
|
+
export default VirtualList;
|
|
@@ -72,5 +72,5 @@ declare const VirtualList: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
72
72
|
itemHeight: number;
|
|
73
73
|
overscan: number;
|
|
74
74
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
|
-
export { getVirtualRange } from "./range";
|
|
75
|
+
export { getVirtualRange } from "./range.js";
|
|
76
76
|
export default VirtualList;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface VirtualRangeOptions {
|
|
2
|
+
count: number;
|
|
3
|
+
scrollTop: number;
|
|
4
|
+
viewportHeight: number;
|
|
5
|
+
itemHeight: number;
|
|
6
|
+
overscan: number;
|
|
7
|
+
}
|
|
8
|
+
export interface VirtualRange {
|
|
9
|
+
start: number;
|
|
10
|
+
end: number;
|
|
11
|
+
offset: number;
|
|
12
|
+
total: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const normalizeItemHeight: (value: number) => number;
|
|
15
|
+
export declare const getVirtualRange: ({ count, scrollTop, viewportHeight, itemHeight, overscan, }: VirtualRangeOptions) => VirtualRange;
|