kui-vue 6.3.0 → 6.4.0
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 +376 -7
- package/dist/index.js +2 -2
- package/es/index.js +1008 -479
- package/es/locale/de.js +2 -3
- package/es/locale/el.js +2 -3
- package/es/locale/en.js +2 -3
- package/es/locale/fr.js +2 -3
- package/es/locale/it.js +2 -3
- package/es/locale/ja.js +2 -3
- package/es/locale/ko.js +2 -3
- package/es/locale/ru.js +2 -3
- package/es/locale/th.js +2 -3
- package/es/locale/uk.js +2 -3
- package/es/locale/vi.js +2 -3
- package/es/locale/zh-CN.js +2 -3
- package/es/locale/zh-TW.js +2 -3
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +24 -24
- package/style/base.css +1 -1
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +1 -1
- package/style/theme.css +1 -1
- package/types/affix/index.d.cts +42 -0
- package/types/alert/index.d.cts +84 -0
- package/types/alert/index.d.ts +2 -2
- 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 +1 -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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +23 -23
- package/types/cascader/types.d.cts +76 -0
- package/types/cascader/types.d.ts +2 -2
- package/types/check-card/check-card-group.d.cts +80 -0
- package/types/check-card/check-card-group.d.ts +2 -2
- package/types/check-card/check-card.d.cts +113 -0
- package/types/check-card/check-card.d.ts +3 -3
- package/types/check-card/context.d.cts +20 -0
- package/types/check-card/context.d.ts +2 -2
- 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 +2 -2
- package/types/checkbox/checkbox-group.d.cts +87 -0
- package/types/checkbox/checkbox-group.d.ts +2 -2
- package/types/checkbox/checkbox.d.cts +68 -0
- package/types/checkbox/checkbox.d.ts +2 -2
- 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 +2 -2
- 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 +233 -0
- package/types/color-picker/index.d.ts +9 -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 +169 -0
- package/types/components.d.ts +169 -166
- package/types/config/context.d.cts +128 -0
- package/types/config/context.d.ts +1 -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 +1 -1
- package/types/const/var.d.cts +6 -0
- package/types/date-picker/index.d.cts +334 -0
- package/types/date-picker/index.d.ts +3 -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 +1 -1
- package/types/dropdown/dropdown-button.d.cts +65 -0
- package/types/dropdown/dropdown-button.d.ts +2 -2
- package/types/dropdown/dropdown-context.d.cts +16 -0
- package/types/dropdown/dropdown.d.cts +80 -0
- package/types/dropdown/dropdown.d.ts +1 -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 +2 -2
- package/types/empty/index.d.cts +12 -0
- package/types/feature-card/index.d.cts +101 -0
- package/types/feature-card/index.d.ts +2 -2
- package/types/feedback-panel/feedback-panel.d.cts +64 -0
- package/types/feedback-panel/feedback-panel.d.ts +3 -3
- 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/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 +2 -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 +532 -0
- package/types/global.d.ts +16 -0
- package/types/gradient-picker/corners.d.cts +39 -0
- package/types/gradient-picker/corners.d.ts +39 -0
- package/types/gradient-picker/index.d.cts +87 -0
- package/types/gradient-picker/index.d.ts +87 -0
- package/types/gradient-picker/stops.d.cts +39 -0
- package/types/gradient-picker/stops.d.ts +39 -0
- package/types/gradient-picker/types.d.cts +34 -0
- package/types/gradient-picker/types.d.ts +34 -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 +2 -2
- 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 +1 -1
- 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/drag.d.cts +9 -0
- package/types/input-number/drag.d.ts +9 -0
- package/types/input-number/index.d.cts +193 -0
- package/types/input-number/index.d.ts +15 -2
- 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 +1 -1
- 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 +3 -3
- package/types/loading/index.d.cts +11 -0
- package/types/mentions/index.d.cts +167 -0
- package/types/mentions/index.d.ts +1 -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.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 +3 -3
- package/types/modal/modal.d.cts +178 -0
- package/types/modal/modal.d.ts +2 -2
- package/types/modal/toast.d.cts +37 -0
- package/types/modal/toast.d.ts +2 -2
- 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 +1 -1
- package/types/page/responsive.d.cts +1 -0
- package/types/page-header/index.d.cts +14 -0
- package/types/popconfirm/index.d.cts +85 -0
- package/types/popconfirm/index.d.ts +5 -2
- package/types/poptip/index.d.cts +83 -0
- package/types/poptip/index.d.ts +5 -2
- package/types/popup/index.d.cts +255 -0
- package/types/popup/index.d.ts +7 -3
- package/types/popup/layers.d.cts +11 -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 +2 -2
- 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 +3 -3
- package/types/radio/radio-group.d.cts +36 -0
- package/types/radio/radio-group.d.ts +2 -2
- package/types/radio/radio.d.cts +84 -0
- package/types/radio/radio.d.ts +2 -2
- 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/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 +4 -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 +3 -3
- 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/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/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 +5 -5
- package/types/table/types.d.cts +39 -0
- package/types/table/utils.d.cts +89 -0
- package/types/table/utils.d.ts +1 -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 +2 -2
- 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 +79 -0
- package/types/tooltip/index.d.ts +5 -2
- package/types/tour/index.d.cts +122 -0
- package/types/transfer/index.d.cts +129 -0
- package/types/transfer/index.d.ts +1 -1
- package/types/tree/context.d.cts +6 -0
- package/types/tree/index.d.cts +166 -0
- package/types/tree/index.d.ts +5 -5
- 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 +4 -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/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-stack.d.cts +13 -0
- package/types/utils/placement.d.cts +17 -0
- package/types/utils/placement.d.ts +2 -1
- package/types/utils/popup-arrow.d.cts +5 -0
- package/types/utils/popup-arrow.d.ts +5 -0
- package/types/utils/popup.d.cts +11 -0
- package/types/utils/promise.d.cts +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/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 +212 -4
- package/vetur/tags.json +66 -0
- package/vetur/web-types.json +337 -5
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
text: StringConstructor;
|
|
7
|
+
duration: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
precision: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
text: StringConstructor;
|
|
21
|
+
duration: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
precision: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
duration: number;
|
|
31
|
+
modelValue: number;
|
|
32
|
+
precision: number;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType, VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType, SizeType, SurfaceShapeType, SurfaceThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { StatNumberItem } from "./types.cjs";
|
|
4
|
+
declare const statCardProps: {
|
|
5
|
+
title: PropType<VNodeChild>;
|
|
6
|
+
precision: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
items: {
|
|
11
|
+
type: PropType<StatNumberItem[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
separator: StringConstructor;
|
|
15
|
+
statNumberType: PropType<"rollup" | "countup">;
|
|
16
|
+
reverse: BooleanType;
|
|
17
|
+
bordered: {
|
|
18
|
+
type: BooleanType;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
theme: {
|
|
22
|
+
type: PropType<SurfaceThemeType>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
shape: {
|
|
26
|
+
type: PropType<SurfaceShapeType>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: PropType<SizeType>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
prefix: {
|
|
34
|
+
type: PropType<VNodeChild>;
|
|
35
|
+
};
|
|
36
|
+
suffix: {
|
|
37
|
+
type: PropType<VNodeChild>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type StatCardProps = ExtractPropTypes<typeof statCardProps>;
|
|
41
|
+
declare const StatCard: import("vue").DefineComponent<ExtractPropTypes<{
|
|
42
|
+
title: PropType<VNodeChild>;
|
|
43
|
+
precision: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
items: {
|
|
48
|
+
type: PropType<StatNumberItem[]>;
|
|
49
|
+
default: () => never[];
|
|
50
|
+
};
|
|
51
|
+
separator: StringConstructor;
|
|
52
|
+
statNumberType: PropType<"rollup" | "countup">;
|
|
53
|
+
reverse: BooleanType;
|
|
54
|
+
bordered: {
|
|
55
|
+
type: BooleanType;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
theme: {
|
|
59
|
+
type: PropType<SurfaceThemeType>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
shape: {
|
|
63
|
+
type: PropType<SurfaceShapeType>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
type: PropType<SizeType>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
prefix: {
|
|
71
|
+
type: PropType<VNodeChild>;
|
|
72
|
+
};
|
|
73
|
+
suffix: {
|
|
74
|
+
type: PropType<VNodeChild>;
|
|
75
|
+
};
|
|
76
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
77
|
+
title: PropType<VNodeChild>;
|
|
78
|
+
precision: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
items: {
|
|
83
|
+
type: PropType<StatNumberItem[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
separator: StringConstructor;
|
|
87
|
+
statNumberType: PropType<"rollup" | "countup">;
|
|
88
|
+
reverse: BooleanType;
|
|
89
|
+
bordered: {
|
|
90
|
+
type: BooleanType;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
theme: {
|
|
94
|
+
type: PropType<SurfaceThemeType>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
shape: {
|
|
98
|
+
type: PropType<SurfaceShapeType>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
size: {
|
|
102
|
+
type: PropType<SizeType>;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
prefix: {
|
|
106
|
+
type: PropType<VNodeChild>;
|
|
107
|
+
};
|
|
108
|
+
suffix: {
|
|
109
|
+
type: PropType<VNodeChild>;
|
|
110
|
+
};
|
|
111
|
+
}>> & Readonly<{}>, {
|
|
112
|
+
size: SizeType;
|
|
113
|
+
items: StatNumberItem[];
|
|
114
|
+
theme: SurfaceThemeType;
|
|
115
|
+
shape: SurfaceShapeType;
|
|
116
|
+
bordered: boolean | undefined;
|
|
117
|
+
precision: number;
|
|
118
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
|
+
export default StatCard;
|
|
120
|
+
export type { StatNumberItem } from "./types.cjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType, VNodeChild } from "vue";
|
|
2
|
-
import type { BooleanType, SizeType, SurfaceShapeType, SurfaceThemeType } from "../const/types";
|
|
3
|
-
import type { StatNumberItem } from "./types";
|
|
2
|
+
import type { BooleanType, SizeType, SurfaceShapeType, SurfaceThemeType } from "../const/types.js";
|
|
3
|
+
import type { StatNumberItem } from "./types.js";
|
|
4
4
|
declare const statCardProps: {
|
|
5
5
|
title: PropType<VNodeChild>;
|
|
6
6
|
precision: {
|
|
@@ -117,4 +117,4 @@ declare const StatCard: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
117
117
|
precision: number;
|
|
118
118
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
119
|
export default StatCard;
|
|
120
|
-
export type { StatNumberItem } from "./types";
|
|
120
|
+
export type { StatNumberItem } from "./types.js";
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types.cjs";
|
|
3
|
+
declare const statNumberProps: {
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: NumberConstructor[];
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
value: {
|
|
9
|
+
type: NumberConstructor[];
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
separator: StringConstructor;
|
|
13
|
+
duration: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
precision: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
type: {
|
|
22
|
+
type: PropType<"rollup" | "countup">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
prefix: StringConstructor;
|
|
26
|
+
suffix: StringConstructor;
|
|
27
|
+
autoAnimate: {
|
|
28
|
+
type: BooleanType;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
autoAnimateOnce: {
|
|
32
|
+
type: BooleanType;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type StatNumberProps = ExtractPropTypes<typeof statNumberProps>;
|
|
37
|
+
declare const StatNumber: import("vue").DefineComponent<ExtractPropTypes<{
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: NumberConstructor[];
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
value: {
|
|
43
|
+
type: NumberConstructor[];
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
separator: StringConstructor;
|
|
47
|
+
duration: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
precision: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
type: {
|
|
56
|
+
type: PropType<"rollup" | "countup">;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
prefix: StringConstructor;
|
|
60
|
+
suffix: StringConstructor;
|
|
61
|
+
autoAnimate: {
|
|
62
|
+
type: BooleanType;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
autoAnimateOnce: {
|
|
66
|
+
type: BooleanType;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
70
|
+
modelValue: {
|
|
71
|
+
type: NumberConstructor[];
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
value: {
|
|
75
|
+
type: NumberConstructor[];
|
|
76
|
+
default: number;
|
|
77
|
+
};
|
|
78
|
+
separator: StringConstructor;
|
|
79
|
+
duration: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
precision: {
|
|
84
|
+
type: NumberConstructor;
|
|
85
|
+
default: number;
|
|
86
|
+
};
|
|
87
|
+
type: {
|
|
88
|
+
type: PropType<"rollup" | "countup">;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
prefix: StringConstructor;
|
|
92
|
+
suffix: StringConstructor;
|
|
93
|
+
autoAnimate: {
|
|
94
|
+
type: BooleanType;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
autoAnimateOnce: {
|
|
98
|
+
type: BooleanType;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
}>> & Readonly<{}>, {
|
|
102
|
+
type: "rollup" | "countup";
|
|
103
|
+
duration: number;
|
|
104
|
+
value: number;
|
|
105
|
+
modelValue: number;
|
|
106
|
+
precision: number;
|
|
107
|
+
autoAnimate: boolean | undefined;
|
|
108
|
+
autoAnimateOnce: boolean | undefined;
|
|
109
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
110
|
+
export default StatNumber;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { VNode, VNodeChild } from "vue";
|
|
2
|
+
export interface StatNumberItem {
|
|
3
|
+
key?: string | number;
|
|
4
|
+
value: number;
|
|
5
|
+
duration?: number;
|
|
6
|
+
precision?: number;
|
|
7
|
+
separator?: string;
|
|
8
|
+
prefix?: string | VNode;
|
|
9
|
+
suffix?: string | VNode;
|
|
10
|
+
desc?: VNodeChild;
|
|
11
|
+
trend?: VNodeChild;
|
|
12
|
+
trendStatus?: "default" | "success" | "danger" | "warning";
|
|
13
|
+
autoAnimate?: boolean;
|
|
14
|
+
autoAnimateOnce?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export interface CountUpOptions {
|
|
2
|
+
/** Number to start at @default 0 */
|
|
3
|
+
startVal?: number;
|
|
4
|
+
/** Number of decimal places @default 0 */
|
|
5
|
+
decimalPlaces?: number;
|
|
6
|
+
/** Animation duration in seconds @default 2 */
|
|
7
|
+
duration?: number;
|
|
8
|
+
/** Example: 1,000 vs 1000 @default true */
|
|
9
|
+
useGrouping?: boolean;
|
|
10
|
+
/** Example: 1,00,000 vs 100,000 @default false */
|
|
11
|
+
useIndianSeparators?: boolean;
|
|
12
|
+
/** Ease animation @default true */
|
|
13
|
+
useEasing?: boolean;
|
|
14
|
+
/** Smooth easing for large numbers above this if useEasing @default 999 */
|
|
15
|
+
smartEasingThreshold?: number;
|
|
16
|
+
/** Amount to be eased for numbers above threshold @default 333 */
|
|
17
|
+
smartEasingAmount?: number;
|
|
18
|
+
/** Grouping separator @default ',' */
|
|
19
|
+
separator?: string;
|
|
20
|
+
/** Decimal character @default '.' */
|
|
21
|
+
decimal?: string;
|
|
22
|
+
/** Easing function for animation @default easeOutExpo */
|
|
23
|
+
easingFn?: (t: number, b: number, c: number, d: number) => number;
|
|
24
|
+
/** Custom function to format the result */
|
|
25
|
+
formattingFn?: (n: number) => string;
|
|
26
|
+
/** Text prepended to result */
|
|
27
|
+
prefix?: string;
|
|
28
|
+
/** Text appended to result */
|
|
29
|
+
suffix?: string;
|
|
30
|
+
/** Numeral glyph substitution */
|
|
31
|
+
numerals?: string[];
|
|
32
|
+
/** Callback called when animation completes */
|
|
33
|
+
onCompleteCallback?: ((args?: unknown) => void) | null;
|
|
34
|
+
/** Callback called when animation starts */
|
|
35
|
+
onStartCallback?: (() => void) | null;
|
|
36
|
+
/** Plugin for alternate animations */
|
|
37
|
+
plugin?: CountUpPlugin;
|
|
38
|
+
/** Trigger animation when target becomes visible @default false */
|
|
39
|
+
autoAnimate?: boolean;
|
|
40
|
+
/** Animation delay in ms after auto-animate triggers @default 200 */
|
|
41
|
+
autoAnimateDelay?: number;
|
|
42
|
+
/** Run animation only once for auto-animate triggers @default false */
|
|
43
|
+
autoAnimateOnce?: boolean;
|
|
44
|
+
/** @deprecated Please use autoAnimateDelay instead */
|
|
45
|
+
scrollSpyDelay?: number;
|
|
46
|
+
/** @deprecated Please use autoAnimateOnce instead */
|
|
47
|
+
scrollOnce?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare interface CountUpPlugin {
|
|
50
|
+
render(elem: HTMLElement, formatted: string, value?: number): void;
|
|
51
|
+
destroy?(): void;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Animates a number by counting to it.
|
|
55
|
+
* playground: stackblitz.com/edit/countup-typescript
|
|
56
|
+
*
|
|
57
|
+
* @param target - id of html element, input, svg text element, or DOM element reference where counting occurs.
|
|
58
|
+
* @param endVal - the value you want to arrive at.
|
|
59
|
+
* @param options - optional configuration object for fine-grain control
|
|
60
|
+
*/
|
|
61
|
+
export declare class CountUp {
|
|
62
|
+
version: string;
|
|
63
|
+
private static observedElements;
|
|
64
|
+
private defaults;
|
|
65
|
+
private rAF?;
|
|
66
|
+
private autoAnimateTimeout?;
|
|
67
|
+
private startTime;
|
|
68
|
+
private remaining;
|
|
69
|
+
private finalEndVal;
|
|
70
|
+
private useEasing;
|
|
71
|
+
private countDown;
|
|
72
|
+
private observer;
|
|
73
|
+
el: HTMLElement | HTMLInputElement | null;
|
|
74
|
+
formattingFn: (num: number) => string;
|
|
75
|
+
easingFn: (t: number, b: number, c: number, d: number) => number;
|
|
76
|
+
error: string;
|
|
77
|
+
startVal: number;
|
|
78
|
+
duration: number;
|
|
79
|
+
paused: boolean;
|
|
80
|
+
frameVal: number;
|
|
81
|
+
once: boolean;
|
|
82
|
+
options: CountUpOptions;
|
|
83
|
+
private endVal;
|
|
84
|
+
constructor(target: string | HTMLElement | HTMLInputElement, endVal?: number | null, options?: CountUpOptions);
|
|
85
|
+
/** Set up an IntersectionObserver to auto-animate when the target element appears. */
|
|
86
|
+
private setupObserver;
|
|
87
|
+
/** Disconnect the IntersectionObserver and stop watching this element. */
|
|
88
|
+
unobserve(): void;
|
|
89
|
+
/** Teardown: cancel animation, disconnect observer, clear callbacks. */
|
|
90
|
+
onDestroy(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Smart easing works by breaking the animation into 2 parts, the second part being the
|
|
93
|
+
* smartEasingAmount and first part being the total amount minus the smartEasingAmount. It works
|
|
94
|
+
* by disabling easing for the first part and enabling it on the second part. It is used if
|
|
95
|
+
* useEasing is true and the total animation amount exceeds the smartEasingThreshold.
|
|
96
|
+
*/
|
|
97
|
+
private determineDirectionAndSmartEasing;
|
|
98
|
+
/** Start the animation. Optionally pass a callback that fires on completion. */
|
|
99
|
+
start(callback?: (args?: unknown) => void): void;
|
|
100
|
+
/** Toggle pause/resume on the animation. */
|
|
101
|
+
pauseResume(): void;
|
|
102
|
+
/** Reset to startVal so the animation can be run again. */
|
|
103
|
+
reset(): void;
|
|
104
|
+
/** Pass a new endVal and start the animation. */
|
|
105
|
+
update(newEndVal: string | number): void;
|
|
106
|
+
/** Animation frame callback — advances the value each frame. */
|
|
107
|
+
count: (timestamp: number) => void;
|
|
108
|
+
/** Format and render the given value to the target element. */
|
|
109
|
+
printValue(val: number): void;
|
|
110
|
+
/** Return true if the value is a finite number. */
|
|
111
|
+
ensureNumber(n: unknown): n is number;
|
|
112
|
+
/** Validate and convert a value to a number, setting an error if invalid. */
|
|
113
|
+
validateValue(value: string | number): number;
|
|
114
|
+
/** Reset startTime, duration, and remaining to their initial values. */
|
|
115
|
+
private resetDuration;
|
|
116
|
+
/** Default number formatter with grouping, decimals, prefix/suffix, and numeral substitution. */
|
|
117
|
+
formatNumber: (num: number) => string;
|
|
118
|
+
/**
|
|
119
|
+
* Default easing function (easeOutExpo).
|
|
120
|
+
* @param t current time
|
|
121
|
+
* @param b beginning value
|
|
122
|
+
* @param c change in value
|
|
123
|
+
* @param d duration
|
|
124
|
+
*/
|
|
125
|
+
easeOutExpo: (t: number, b: number, c: number, d: number) => number;
|
|
126
|
+
/** Parse a formatted string back to a number using the current separator/decimal options. */
|
|
127
|
+
parse(number: string): number;
|
|
128
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CountUpPlugin } from "./countup.cjs";
|
|
2
|
+
export interface OdometerOptions {
|
|
3
|
+
duration?: number;
|
|
4
|
+
lastDigitDelay?: number;
|
|
5
|
+
mode?: "step" | "continuous";
|
|
6
|
+
}
|
|
7
|
+
/** Bounded digit tracks shared by statistical numbers and badges. */
|
|
8
|
+
export declare class Odometer implements CountUpPlugin {
|
|
9
|
+
private previous?;
|
|
10
|
+
private timer?;
|
|
11
|
+
private frame?;
|
|
12
|
+
private revision;
|
|
13
|
+
private options;
|
|
14
|
+
constructor(options?: OdometerOptions);
|
|
15
|
+
destroy(): void;
|
|
16
|
+
render(elem: HTMLElement, text: string, value?: number): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity of one `items` entry across renders.
|
|
3
|
+
*
|
|
4
|
+
* The `kui-item-` prefix keeps a keyless item's position out of the namespace of
|
|
5
|
+
* caller-supplied keys: without it `[{key: 1}, {}]` hands two different metrics the
|
|
6
|
+
* same key, which lets the diffing move a CountUp instance from one item to the
|
|
7
|
+
* other. This rule and these strings are identical in both builds.
|
|
8
|
+
*/
|
|
9
|
+
export declare function statItemKey(item: {
|
|
10
|
+
key?: string | number;
|
|
11
|
+
}, index: number): string;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
export type StepStatus = "wait" | "process" | "finish" | "error";
|
|
3
|
+
export interface StepItem {
|
|
4
|
+
title: VNodeChild;
|
|
5
|
+
description?: VNodeChild;
|
|
6
|
+
icon?: VNodeChild;
|
|
7
|
+
status?: StepStatus;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const stepProps: {
|
|
11
|
+
title: PropType<VNodeChild>;
|
|
12
|
+
description: PropType<VNodeChild>;
|
|
13
|
+
icon: PropType<VNodeChild>;
|
|
14
|
+
status: PropType<StepStatus>;
|
|
15
|
+
disabled: BooleanConstructor;
|
|
16
|
+
};
|
|
17
|
+
export type StepProps = ExtractPropTypes<typeof stepProps>;
|
|
18
|
+
export declare const Step: import("vue").DefineComponent<ExtractPropTypes<{
|
|
19
|
+
title: PropType<VNodeChild>;
|
|
20
|
+
description: PropType<VNodeChild>;
|
|
21
|
+
icon: PropType<VNodeChild>;
|
|
22
|
+
status: PropType<StepStatus>;
|
|
23
|
+
disabled: BooleanConstructor;
|
|
24
|
+
}>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
25
|
+
title: PropType<VNodeChild>;
|
|
26
|
+
description: PropType<VNodeChild>;
|
|
27
|
+
icon: PropType<VNodeChild>;
|
|
28
|
+
status: PropType<StepStatus>;
|
|
29
|
+
disabled: BooleanConstructor;
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
declare const propsDef: {
|
|
34
|
+
current: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
direction: {
|
|
39
|
+
type: PropType<"horizontal" | "vertical">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
status: {
|
|
43
|
+
type: PropType<"process" | "error">;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
items: PropType<StepItem[]>;
|
|
47
|
+
};
|
|
48
|
+
export type StepsProps = ExtractPropTypes<typeof propsDef>;
|
|
49
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
50
|
+
current: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
direction: {
|
|
55
|
+
type: PropType<"horizontal" | "vertical">;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
status: {
|
|
59
|
+
type: PropType<"process" | "error">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
items: PropType<StepItem[]>;
|
|
63
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
|
+
change: (current: number) => boolean;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
66
|
+
current: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
direction: {
|
|
71
|
+
type: PropType<"horizontal" | "vertical">;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
status: {
|
|
75
|
+
type: PropType<"process" | "error">;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
items: PropType<StepItem[]>;
|
|
79
|
+
}>> & Readonly<{
|
|
80
|
+
onChange?: ((current: number) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
direction: "horizontal" | "vertical";
|
|
83
|
+
status: "error" | "process";
|
|
84
|
+
current: number;
|
|
85
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, ValueType } from "../const/types.cjs";
|
|
3
|
+
declare const switchProps: {
|
|
4
|
+
checked: {
|
|
5
|
+
type: BooleanType;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
valueType: {
|
|
9
|
+
type: PropType<ValueType>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: PropType<string | number | boolean>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
color: StringConstructor;
|
|
18
|
+
disabled: BooleanType;
|
|
19
|
+
readonly: BooleanType;
|
|
20
|
+
loading: BooleanType;
|
|
21
|
+
size: {
|
|
22
|
+
type: PropType<SizeType>;
|
|
23
|
+
};
|
|
24
|
+
shape: {
|
|
25
|
+
type: PropType<ShapeType>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
trueText: StringConstructor;
|
|
29
|
+
falseText: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
export type SwitchProps = ExtractPropTypes<typeof switchProps>;
|
|
32
|
+
type SwitchModelProps<T extends string | number | boolean> = {
|
|
33
|
+
modelValue?: T;
|
|
34
|
+
"onUpdate:modelValue"?: (value: T) => void;
|
|
35
|
+
onChange?: (value: T) => void;
|
|
36
|
+
"onUpdate:checked"?: (checked: boolean) => void;
|
|
37
|
+
};
|
|
38
|
+
type SwitchPublicProps = Omit<Partial<SwitchProps>, "modelValue" | "valueType">;
|
|
39
|
+
type SwitchComponent = {
|
|
40
|
+
new (props: SwitchPublicProps & {
|
|
41
|
+
valueType: "string";
|
|
42
|
+
} & SwitchModelProps<string>): {
|
|
43
|
+
$props: SwitchPublicProps & {
|
|
44
|
+
valueType: "string";
|
|
45
|
+
} & SwitchModelProps<string>;
|
|
46
|
+
};
|
|
47
|
+
new (props: SwitchPublicProps & {
|
|
48
|
+
valueType: "number";
|
|
49
|
+
} & SwitchModelProps<number>): {
|
|
50
|
+
$props: SwitchPublicProps & {
|
|
51
|
+
valueType: "number";
|
|
52
|
+
} & SwitchModelProps<number>;
|
|
53
|
+
};
|
|
54
|
+
new (props: SwitchPublicProps & {
|
|
55
|
+
valueType?: "boolean";
|
|
56
|
+
} & SwitchModelProps<boolean>): {
|
|
57
|
+
$props: SwitchPublicProps & {
|
|
58
|
+
valueType?: "boolean";
|
|
59
|
+
} & SwitchModelProps<boolean>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
declare const _default: SwitchComponent;
|
|
63
|
+
export default _default;
|
package/types/switch/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
-
import type { BooleanType, ShapeType, SizeType, ValueType } from "../const/types";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, ValueType } from "../const/types.js";
|
|
3
3
|
declare const switchProps: {
|
|
4
4
|
checked: {
|
|
5
5
|
type: BooleanType;
|