zartui 3.1.9 → 3.1.11
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/README.md +23 -23
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -0
- package/es/action-sheet/types.d.ts +14 -0
- package/es/action-sheet/types.mjs +0 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/types.d.ts +10 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +1 -0
- package/es/badge/types.d.ts +15 -0
- package/es/badge/types.mjs +0 -0
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/button/types.d.ts +35 -0
- package/es/calendar/CalendarDay.mjs +8 -1
- package/es/calendar/CalendarHeader.mjs +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/types.d.ts +25 -0
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +2 -2
- package/es/cascader/types.d.ts +21 -0
- package/es/cell/Cell.d.ts +24 -1
- package/es/cell/Cell.mjs +30 -5
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +15 -2
- package/es/cell/types.d.ts +24 -0
- package/es/cell-group/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.mjs +6 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/types.d.ts +19 -0
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +8 -0
- package/es/config-provider/index.d.ts +2 -1
- package/es/config-provider/types.d.ts +138 -0
- package/es/config-provider/types.mjs +0 -0
- package/es/date-time-picker/DateTimePicker.d.ts +3 -3
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
- package/es/date-time-picker/index.css +1 -1
- package/es/date-time-picker/index.d.ts +3 -3
- package/es/date-time-picker/utils.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +2 -2
- package/es/dialog/types.d.ts +18 -0
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +1 -0
- package/es/divider/types.d.ts +8 -0
- package/es/divider/types.mjs +0 -0
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +3 -0
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +12 -0
- package/es/empty/Empty.mjs +5 -3
- package/es/empty/Images.d.ts +20 -9
- package/es/empty/Images.mjs +755 -563
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +1 -0
- package/es/empty/types.d.ts +8 -0
- package/es/empty/types.mjs +0 -0
- package/es/field/Field.d.ts +17 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +13 -3
- package/es/field/types.d.ts +22 -0
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +1 -0
- package/es/grid-item/types.d.ts +7 -0
- package/es/grid-item/types.mjs +0 -0
- package/es/hierarchy-select/Breadcrumb.mjs +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/es/hierarchy-select/HierarchySelect.mjs +133 -21
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +10 -1
- package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
- package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
- package/es/hierarchy-select/types.d.ts +21 -0
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +1 -0
- package/es/image/types.d.ts +5 -0
- package/es/image/types.mjs +0 -0
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +2 -2
- package/es/image-preview/types.d.ts +10 -0
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/types.d.ts +1 -3
- package/es/index-bar/IndexBar.d.ts +26 -0
- package/es/index-bar/IndexBar.mjs +192 -50
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +18 -0
- package/es/index-bar/types.d.ts +5 -3
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/list/types.d.ts +5 -0
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +1 -0
- package/es/loading/types.d.ts +6 -0
- package/es/loading/types.mjs +0 -0
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.d.ts +1 -1
- package/es/media-picker/type.d.ts +12 -0
- package/es/media-player/index.css +1 -1
- package/es/multiple-picker/MultiplePicker.d.ts +3 -3
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.d.ts +4 -3
- package/es/multiple-picker/types.d.ts +17 -0
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/types.d.ts +16 -0
- package/es/nav-bar/types.mjs +0 -0
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notice-bar/types.d.ts +10 -0
- package/es/notify/index.css +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/notify/types.d.ts +8 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +2 -1
- package/es/number-keyboard/types.d.ts +14 -0
- package/es/number-keyboard/types.mjs +0 -0
- package/es/overlay/index.d.ts +1 -0
- package/es/overlay/types.d.ts +4 -0
- package/es/overlay/types.mjs +0 -0
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +1 -0
- package/es/password-input/types.d.ts +15 -0
- package/es/password-input/types.mjs +0 -0
- package/es/picker/Picker.d.ts +6 -6
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +7 -7
- package/es/picker/types.d.ts +17 -0
- package/es/popover/Popover.mjs +1 -1
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/types.d.ts +12 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/popup/types.d.ts +8 -0
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +2 -1
- package/es/pull-refresh/types.d.ts +6 -0
- package/es/pull-refresh/types.mjs +0 -0
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +1 -0
- package/es/radio/types.d.ts +18 -0
- package/es/radio/types.mjs +0 -0
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/radio-picker/RadioPicker.d.ts +3 -3
- package/es/radio-picker/index.css +1 -1
- package/es/radio-picker/index.d.ts +4 -4
- package/es/radio-picker/types.d.ts +24 -0
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +2 -1
- package/es/rate/types.d.ts +6 -0
- package/es/rate/types.mjs +0 -0
- package/es/search/Search.d.ts +2 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +3 -3
- package/es/search/types.d.ts +12 -0
- package/es/signature/index.css +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/signature/types.d.ts +9 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/types.d.ts +9 -0
- package/es/skeleton/types.mjs +0 -0
- package/es/step/Step.mjs +2 -2
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -0
- package/es/step/types.d.ts +6 -0
- package/es/step/types.mjs +0 -0
- package/es/stepper/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +2 -1
- package/es/stepper/types.d.ts +17 -0
- package/es/stepper/types.mjs +0 -0
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +1 -0
- package/es/steps/types.d.ts +5 -0
- package/es/steps/types.mjs +0 -0
- package/es/sticky/index.d.ts +1 -0
- package/es/sticky/types.d.ts +3 -0
- package/es/sticky/types.mjs +0 -0
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe/types.d.ts +10 -0
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +2 -1
- package/es/switch/types.d.ts +18 -0
- package/es/switch/types.mjs +0 -0
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +2 -1
- package/es/tabbar/types.d.ts +5 -0
- package/es/tabbar/types.mjs +0 -0
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/types.d.ts +14 -0
- package/es/tabbar-item/types.mjs +0 -0
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +1 -0
- package/es/table/types.d.ts +10 -0
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tabs/types.d.ts +17 -0
- package/es/tag/Tag.mjs +5 -4
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +1 -0
- package/es/tag/types.d.ts +17 -0
- package/es/tag/types.mjs +0 -0
- package/es/text-ellipsis/types.d.ts +1 -0
- package/es/time-picker/TimePicker.d.ts +3 -3
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +4 -3
- package/es/time-picker/types.d.ts +23 -0
- package/es/time-picker/types.mjs +0 -0
- package/es/timeline/index.css +1 -1
- package/es/timeline/index.d.ts +1 -0
- package/es/timeline/types.d.ts +9 -0
- package/es/timeline/types.mjs +0 -0
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +1 -1
- package/es/toast/types.d.ts +15 -0
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/uploader/types.d.ts +21 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/types.d.ts +14 -0
- package/lib/action-sheet/types.js +15 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/types.d.ts +10 -0
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +1 -0
- package/lib/badge/types.d.ts +15 -0
- package/lib/badge/types.js +15 -0
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/button/types.d.ts +35 -0
- package/lib/calendar/CalendarDay.js +8 -1
- package/lib/calendar/CalendarHeader.js +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/types.d.ts +25 -0
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +2 -2
- package/lib/cascader/types.d.ts +21 -0
- package/lib/cell/Cell.d.ts +24 -1
- package/lib/cell/Cell.js +28 -3
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +15 -2
- package/lib/cell/types.d.ts +24 -0
- package/lib/cell-group/index.css +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.js +6 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/types.d.ts +19 -0
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +8 -0
- package/lib/config-provider/index.d.ts +2 -1
- package/lib/config-provider/types.d.ts +138 -0
- package/lib/config-provider/types.js +15 -0
- package/lib/date-time-picker/DateTimePicker.d.ts +3 -3
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
- package/lib/date-time-picker/index.css +1 -1
- package/lib/date-time-picker/index.d.ts +3 -3
- package/lib/date-time-picker/utils.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +2 -2
- package/lib/dialog/types.d.ts +18 -0
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/types.d.ts +8 -0
- package/lib/divider/types.js +15 -0
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +2 -2
- package/lib/dropdown-item/types.d.ts +3 -0
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +12 -0
- package/lib/empty/Empty.js +4 -2
- package/lib/empty/Images.d.ts +20 -9
- package/lib/empty/Images.js +755 -563
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/types.d.ts +8 -0
- package/lib/empty/types.js +15 -0
- package/lib/field/Field.d.ts +17 -2
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +13 -3
- package/lib/field/types.d.ts +22 -0
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/types.d.ts +7 -0
- package/lib/grid-item/types.js +15 -0
- package/lib/hierarchy-select/Breadcrumb.js +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/lib/hierarchy-select/HierarchySelect.js +132 -20
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +10 -1
- package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
- package/lib/hierarchy-select/svg/SubIcon.js +9 -28
- package/lib/hierarchy-select/types.d.ts +21 -0
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +1 -0
- package/lib/image/types.d.ts +5 -0
- package/lib/image/types.js +15 -0
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +2 -2
- package/lib/image-preview/types.d.ts +10 -0
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/types.d.ts +1 -3
- package/lib/index-bar/IndexBar.d.ts +26 -0
- package/lib/index-bar/IndexBar.js +191 -49
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +18 -0
- package/lib/index-bar/types.d.ts +5 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/types.d.ts +5 -0
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +1 -0
- package/lib/loading/types.d.ts +6 -0
- package/lib/loading/types.js +15 -0
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.d.ts +1 -1
- package/lib/media-picker/type.d.ts +12 -0
- package/lib/media-player/index.css +1 -1
- package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.d.ts +4 -3
- package/lib/multiple-picker/types.d.ts +17 -0
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/types.d.ts +16 -0
- package/lib/nav-bar/types.js +15 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +10 -0
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/notify/types.d.ts +8 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +2 -1
- package/lib/number-keyboard/types.d.ts +14 -0
- package/lib/number-keyboard/types.js +15 -0
- package/lib/overlay/index.d.ts +1 -0
- package/lib/overlay/types.d.ts +4 -0
- package/lib/overlay/types.js +15 -0
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +1 -0
- package/lib/password-input/types.d.ts +15 -0
- package/lib/password-input/types.js +15 -0
- package/lib/picker/Picker.d.ts +6 -6
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +7 -7
- package/lib/picker/types.d.ts +17 -0
- package/lib/popover/Popover.js +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/types.d.ts +12 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/types.d.ts +8 -0
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +2 -1
- package/lib/pull-refresh/types.d.ts +6 -0
- package/lib/pull-refresh/types.js +15 -0
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/types.d.ts +18 -0
- package/lib/radio/types.js +15 -0
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/radio-picker/RadioPicker.d.ts +3 -3
- package/lib/radio-picker/index.css +1 -1
- package/lib/radio-picker/index.d.ts +4 -4
- package/lib/radio-picker/types.d.ts +24 -0
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +2 -1
- package/lib/rate/types.d.ts +6 -0
- package/lib/rate/types.js +15 -0
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +3 -3
- package/lib/search/types.d.ts +12 -0
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/signature/types.d.ts +9 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/types.d.ts +9 -0
- package/lib/skeleton/types.js +15 -0
- package/lib/step/Step.js +2 -2
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -0
- package/lib/step/types.d.ts +6 -0
- package/lib/step/types.js +15 -0
- package/lib/stepper/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +2 -1
- package/lib/stepper/types.d.ts +17 -0
- package/lib/stepper/types.js +15 -0
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/types.d.ts +5 -0
- package/lib/steps/types.js +15 -0
- package/lib/sticky/index.d.ts +1 -0
- package/lib/sticky/types.d.ts +3 -0
- package/lib/sticky/types.js +15 -0
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe/types.d.ts +10 -0
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +2 -1
- package/lib/switch/types.d.ts +18 -0
- package/lib/switch/types.js +15 -0
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +2 -1
- package/lib/tabbar/types.d.ts +5 -0
- package/lib/tabbar/types.js +15 -0
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/types.d.ts +14 -0
- package/lib/tabbar-item/types.js +15 -0
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +1 -0
- package/lib/table/types.d.ts +10 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/types.d.ts +17 -0
- package/lib/tag/Tag.js +5 -4
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/types.d.ts +17 -0
- package/lib/tag/types.js +15 -0
- package/lib/text-ellipsis/types.d.ts +1 -0
- package/lib/time-picker/TimePicker.d.ts +3 -3
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +4 -3
- package/lib/time-picker/types.d.ts +23 -0
- package/lib/time-picker/types.js +15 -0
- package/lib/timeline/index.css +1 -1
- package/lib/timeline/index.d.ts +1 -0
- package/lib/timeline/types.d.ts +9 -0
- package/lib/timeline/types.js +15 -0
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +1 -1
- package/lib/toast/types.d.ts +15 -0
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/types.d.ts +21 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +1156 -693
- package/lib/zartui.es.js +1156 -693
- package/lib/zartui.js +1156 -693
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -4
|
@@ -21,32 +21,13 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
const SubIcon = () => (0, import_vue.createVNode)("svg", {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"viewBox": "0 0
|
|
28
|
-
"version": "1.1",
|
|
29
|
-
"xmlns": "http://www.w3.org/2000/svg"
|
|
30
|
-
}, [(0, import_vue.createVNode)("title", null, [(0, import_vue.createTextVNode)("-mockplus-")]), (0, import_vue.createVNode)("g", {
|
|
31
|
-
"id": "\u5343\u5206\u5236\u8BC4\u5206\u7CFB\u7EDF",
|
|
32
|
-
"stroke": "none",
|
|
33
|
-
"stroke-width": "1",
|
|
34
|
-
"fill": "none",
|
|
35
|
-
"fill-rule": "evenodd"
|
|
36
|
-
}, [(0, import_vue.createVNode)("g", {
|
|
37
|
-
"id": "2-2-\u4E8C\u7EA7",
|
|
38
|
-
"transform": "translate(-303.000000, -180.000000)",
|
|
39
|
-
"fill": "#0091fa",
|
|
40
|
-
"fill-rule": "nonzero"
|
|
41
|
-
}, [(0, import_vue.createVNode)("g", {
|
|
42
|
-
"id": "list",
|
|
43
|
-
"transform": "translate(0.000000, 168.000000)"
|
|
44
|
-
}, [(0, import_vue.createVNode)("g", {
|
|
45
|
-
"id": "-mockplus-",
|
|
46
|
-
"transform": "translate(303.000000, 12.000000)"
|
|
47
|
-
}, [(0, import_vue.createVNode)("g", {
|
|
48
|
-
"id": "ic",
|
|
49
|
-
"transform": "translate(1.000000, 1.000000)"
|
|
24
|
+
const SubIcon = (bem) => (0, import_vue.createVNode)("svg", {
|
|
25
|
+
"class": bem("svg-sub-icon"),
|
|
26
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
27
|
+
"viewBox": "0 0 14 14"
|
|
50
28
|
}, [(0, import_vue.createVNode)("path", {
|
|
51
|
-
"d": "
|
|
52
|
-
|
|
29
|
+
"d": "M4.51454165,3.33333333 L4.57779153,3.33515555 C5.0852794,3.36159822 5.52192895,3.71650466 5.6545985,4.21830023 C5.77587798,4.67701514 5.61660918,5.15811685 5.26259804,5.45123446 L5.21070951,5.49180689 L5.18494159,5.50953754 L5.19883421,9.17480914 L7.96669749,9.17480914 L7.99253088,9.13794366 C8.16008653,8.91195643 8.40235973,8.75195457 8.6814618,8.6888584 L8.75198266,8.67512112 L8.8239065,8.66552894 L8.93542832,8.66029356 C9.50702056,8.66068663 9.99550263,9.07688456 10.0945003,9.6469628 C10.1934476,10.2167507 9.87490473,10.7766879 9.33825942,10.975103 C8.86160569,11.1513373 8.33539093,10.9970691 8.0230655,10.6097103 L7.98356204,10.5578714 L7.9663744,10.5324978 L5.19883421,10.5318474 L5.1846185,14.794502 L7.95054327,14.794502 L7.96843742,14.7686011 C8.22670201,14.410182 8.66150829,14.2264765 9.09436653,14.2926827 L9.16267035,14.3052241 L9.22460526,14.3202851 C9.73937135,14.4603565 10.0969129,14.9332138 10.0969129,15.4730074 C10.0969129,16.012801 9.73937135,16.4856582 9.22460526,16.6257296 C8.77221058,16.7488293 8.29787647,16.5878242 8.00849683,16.229879 L7.96843742,16.1774136 L7.95054327,16.1512151 L4.5143519,16.1515008 C4.20377061,16.1514216 3.93930278,15.9363451 3.86498903,15.634682 L3.85438878,15.5836252 L3.84745811,15.5310969 L3.84477321,15.4725869 L3.84446479,5.51051312 L3.81892886,5.49289099 C3.46373534,5.23167377 3.28138327,4.79044767 3.34628316,4.35109035 L3.35859609,4.28176019 L3.37341049,4.2188936 C3.50594671,3.71656519 3.943072,3.36129629 4.45103419,3.33511931 L4.51454165,3.33333333 Z M15.9993169,14.7812173 C16.3551115,14.7815549 16.6484298,15.0658117 16.6658531,15.4261269 C16.6824956,15.7702968 16.4420698,16.0698182 16.1042706,16.1279876 L16.0553684,16.1346345 L15.9975069,16.1373633 L11.9261276,16.1373633 C11.5692159,16.1364457 11.2761217,15.8523639 11.258982,15.4919037 C11.2426255,15.1479164 11.4830162,14.8487019 11.8206323,14.790587 L11.8695073,14.7839462 L11.9273688,14.7812173 L15.9993169,14.7812173 Z M15.9993169,9.17576905 C16.3551115,9.17610663 16.6484298,9.46036344 16.6658531,9.82067862 C16.6824956,10.1648485 16.4420698,10.46437 16.1042706,10.5225394 L16.0553684,10.5291862 L15.9975069,10.531915 L11.9261275,10.531915 C11.5692159,10.5309973 11.2761218,10.2469156 11.2589821,9.88645544 C11.2426256,9.54246821 11.4830162,9.24325369 11.8206323,9.18513869 L11.8695073,9.17849788 L11.9273688,9.17576905 L15.9993169,9.17576905 Z M15.9830882,3.67763129 C16.3461399,3.67044486 16.6481599,3.95622956 16.6658537,4.322438 C16.6827312,4.67175264 16.4350131,4.97407929 16.0918956,5.02624392 L16.0422482,5.03197229 L15.9870933,5.0337458 L8.19338605,5.0337458 C7.83647448,5.03282811 7.54338038,4.74874639 7.52624062,4.38828624 C7.50988414,4.04429901 7.75027476,3.74508449 8.0878908,3.68696949 L8.13676583,3.68032868 L8.1946273,3.67759985 L15.9830882,3.67763129 Z",
|
|
30
|
+
"class": bem("svg-defs-path-fill"),
|
|
31
|
+
"fill-rule": "nonzero",
|
|
32
|
+
"transform": "translate(-3.333333 -3.333333)"
|
|
33
|
+
}, null)]);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { HierarchySelectProps } from './HierarchySelect';
|
|
1
3
|
export type HierarchyData = {
|
|
2
4
|
id: string | number;
|
|
3
5
|
name: string;
|
|
@@ -5,3 +7,22 @@ export type HierarchyData = {
|
|
|
5
7
|
children?: HierarchyData[];
|
|
6
8
|
[x: string]: any;
|
|
7
9
|
};
|
|
10
|
+
export type HierarchySelectExpose = {
|
|
11
|
+
toNodeLevel: (id: string | number, force?: boolean) => boolean;
|
|
12
|
+
};
|
|
13
|
+
export type HierarchySelectInstance = ComponentPublicInstance<HierarchySelectProps, HierarchySelectExpose>;
|
|
14
|
+
export type HierarchySelectThemeVars = {
|
|
15
|
+
hierarchySelectColor?: string;
|
|
16
|
+
hierarchySelectDuration?: string;
|
|
17
|
+
hierarchySelectRoundIconBorder?: string;
|
|
18
|
+
hierarchySelectRoundIconBoxShadow?: string;
|
|
19
|
+
hierarchySelectRoundIconBackground?: string;
|
|
20
|
+
hierarchySelectCheckedIconColor?: string;
|
|
21
|
+
hierarchySelectCheckedIconShadow?: string;
|
|
22
|
+
hierarchySelectCheckedIconBorder?: string;
|
|
23
|
+
hierarchySelectDisabledIconShadow?: string;
|
|
24
|
+
hierarchySelectDisabledIconBorder?: string;
|
|
25
|
+
hierarchySelectDisabledCheckedIconOpacity?: string;
|
|
26
|
+
hierarchySelectDisabledIconBackground?: string;
|
|
27
|
+
hierarchyBreadcrumbLineHeight?: string;
|
|
28
|
+
};
|
package/lib/image/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-image-placeholder-text-color: var(--zt-gray-a4);--zt-image-placeholder-
|
|
1
|
+
:root{--zt-image-placeholder-text-color: var(--zt-gray-a4);--zt-image-placeholder-background: var(--zt-background-3);--zt-image-icon-font-size: 32px}:root[zt-theme-size=large]{--zt-image-icon-font-size: 38px}.zt-image{position:relative;display:inline-block}.zt-image--round{overflow:hidden;border-radius:var(--zt-radius-max)}.zt-image--round .zt-image__img{border-radius:inherit}.zt-image--block{display:block}.zt-image__img,.zt-image__error,.zt-image__loading{display:block;width:100%;height:100%}.zt-image__error,.zt-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-image-placeholder-text-color);font-size:var(--zt-font-size-md);background:var(--zt-image-placeholder-background)}.zt-image__loading-icon,.zt-image__error-icon{font-size:var(--zt-image-icon-font-size)}
|
package/lib/image/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export declare const Image: import("../utils").WithInstall<import("vue").DefineC
|
|
|
70
70
|
}, {}>>;
|
|
71
71
|
export default Image;
|
|
72
72
|
export type { ImageFit, ImageProps } from './Image';
|
|
73
|
+
export type { ImageThemeVars } from './types';
|
|
73
74
|
declare module 'vue' {
|
|
74
75
|
interface GlobalComponents {
|
|
75
76
|
ZtImage: typeof Image;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var stdin_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
@@ -195,11 +195,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
195
|
closeOnPopstate: boolean;
|
|
196
196
|
closeIconPosition: PopupCloseIconPosition;
|
|
197
197
|
showIndicators: boolean;
|
|
198
|
-
swipeDuration: string | number;
|
|
199
198
|
minZoom: string | number;
|
|
200
199
|
maxZoom: string | number;
|
|
201
200
|
images: ImageItem[];
|
|
202
201
|
showIndex: boolean;
|
|
202
|
+
swipeDuration: string | number;
|
|
203
203
|
startPosition: string | number;
|
|
204
204
|
}, {}>;
|
|
205
205
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-image-preview-index-height: 48px;--zt-image-preview-index-
|
|
1
|
+
:root{--zt-image-preview-index-height: 48px;--zt-image-preview-index-background: var(--zt-gray-a4);--zt-image-preview-index-text-color: var(--zt-white);--zt-image-preview-overlay-background: rgba(0, 0, 0, .9);--zt-image-preview-close-icon-color: var(--zt-gray-5);--zt-image-preview-close-icon-margin: var(--zt-padding-md);--zt-image-preview-close-icon-z-index: 1;--zt-image-preview-error-font-size: 36px}:root[zt-theme-size=large]{--zt-image-preview-error-font-size: 42px}.zt-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.zt-image-preview__swipe{height:100%}.zt-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.zt-image-preview__cover{position:absolute;top:0;left:0}.zt-image-preview__image,.zt-image-preview__image-wrap{width:100%;transition-property:transform}.zt-image-preview__image--vertical,.zt-image-preview__image-wrap--vertical{width:auto;height:100%}.zt-image-preview__image img,.zt-image-preview__image-wrap img,.zt-image-preview__image video,.zt-image-preview__image-wrap video{-webkit-user-drag:none}.zt-image-preview__image .zt-image__error,.zt-image-preview__image-wrap .zt-image__error{top:30%;height:40%}.zt-image-preview__image .zt-image__error-icon,.zt-image-preview__image-wrap .zt-image__error-icon{font-size:var(--zt-image-preview-error-font-size)}.zt-image-preview__image .zt-image__loading,.zt-image-preview__image-wrap .zt-image__loading{background-color:transparent}.zt-image-preview__index{box-sizing:border-box;display:flex;align-items:center;position:absolute;bottom:0;left:0;width:100%;height:var(--zt-image-preview-index-height);padding:0 16px;background-color:var(--zt-image-preview-index-background);color:var(--zt-image-preview-index-text-color);overflow:hidden}.zt-image-preview__index-number{height:var(--zt-line-height-xl);background:rgba(45,75,115,.8);border-radius:2px;font-size:var(--zt-font-size-sm);text-align:center;line-height:var(--zt-line-height-xl);padding:0 8px}.zt-image-preview__title{flex-shrink:0;margin-left:8px;font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-xl)}.zt-image-preview__overlay{background:var(--zt-image-preview-overlay-background)}.zt-image-preview__close-icon{position:absolute;z-index:var(--zt-image-preview-close-icon-z-index);color:var(--zt-image-preview-close-icon-color);font-size:var(--zt-font-size-xxxl)}.zt-image-preview__close-icon--top-left{top:var(--zt-image-preview-close-icon-margin);left:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--top-right{top:var(--zt-image-preview-close-icon-margin);right:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--bottom-left{bottom:var(--zt-image-preview-close-icon-margin);left:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--bottom-right{right:var(--zt-image-preview-close-icon-margin);bottom:var(--zt-image-preview-close-icon-margin)}
|
|
@@ -132,18 +132,18 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
|
132
132
|
closeOnPopstate: boolean;
|
|
133
133
|
closeIconPosition: import("..").PopupCloseIconPosition;
|
|
134
134
|
showIndicators: boolean;
|
|
135
|
-
swipeDuration: string | number;
|
|
136
135
|
minZoom: string | number;
|
|
137
136
|
maxZoom: string | number;
|
|
138
137
|
images: import("./types").ImageItem[];
|
|
139
138
|
showIndex: boolean;
|
|
139
|
+
swipeDuration: string | number;
|
|
140
140
|
startPosition: string | number;
|
|
141
141
|
}, {}>>;
|
|
142
142
|
export default ImagePreview;
|
|
143
143
|
export { imagePreviewProps } from './ImagePreview';
|
|
144
144
|
export { showImagePreview } from './function-call';
|
|
145
145
|
export type { ImagePreviewProps };
|
|
146
|
-
export type { ImageItem, ImagePreviewOptions, ImagePreviewInstance, ImagePreviewScaleEventParams, } from './types';
|
|
146
|
+
export type { ImageItem, ImagePreviewOptions, ImagePreviewInstance, ImagePreviewScaleEventParams, ImagePreviewThemeVars, } from './types';
|
|
147
147
|
declare module 'vue' {
|
|
148
148
|
interface GlobalComponents {
|
|
149
149
|
ZtImagePreview: typeof ImagePreview;
|
|
@@ -42,3 +42,13 @@ export type ImagePreviewExpose = {
|
|
|
42
42
|
swipeTo: (index: number, options?: SwipeToOptions) => void;
|
|
43
43
|
};
|
|
44
44
|
export type ImagePreviewInstance = ComponentPublicInstance<ImagePreviewProps, ImagePreviewExpose>;
|
|
45
|
+
export type ImagePreviewThemeVars = {
|
|
46
|
+
imagePreviewIndexHeight?: string;
|
|
47
|
+
imagePreviewIndexBackground?: string;
|
|
48
|
+
imagePreviewIndexTextColor?: string;
|
|
49
|
+
imagePreviewOverlayBackground?: string;
|
|
50
|
+
imagePreviewCloseIconColor?: string;
|
|
51
|
+
imagePreviewCloseIconMargin?: string;
|
|
52
|
+
imagePreviewCloseIconZIndex?: string;
|
|
53
|
+
imagePreviewErrorFontSize?: string;
|
|
54
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-index-anchor-z-index: 1;--zt-index-anchor-padding: 0 var(--zt-padding-md);--zt-index-anchor-text-color: var(--zt-text-color);--zt-index-anchor-font-weight: var(--zt-font-bold);--zt-index-anchor-
|
|
1
|
+
:root{--zt-index-anchor-z-index: 1;--zt-index-anchor-padding: 0 var(--zt-padding-md);--zt-index-anchor-text-color: var(--zt-text-color);--zt-index-anchor-font-weight: var(--zt-font-bold);--zt-index-anchor-background: transparent;--zt-index-anchor-sticky-text-color: var(--zt-primary-color);--zt-index-anchor-height: 44px}:root[zt-theme-size=large]{--zt-index-anchor-height: 56px}.zt-index-anchor{z-index:var(--zt-index-anchor-z-index);box-sizing:border-box;padding:var(--zt-index-anchor-padding);color:var(--zt-index-anchor-text-color);font-weight:var(--zt-index-anchor-font-weight);font-size:var(--zt-font-size-md);line-height:var(--zt-index-anchor-height);height:var(--zt-index-anchor-height);background:var(--zt-index-anchor-background);position:relative;display:flex}.zt-index-anchor:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5);top:unset}.zt-index-anchor:before{position:absolute;content:"";top:14px;left:0;width:4px;height:16px;background:var(--zt-primary-color)}.zt-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--zt-index-anchor-sticky-text-color);background:var(--zt-background)}
|
|
@@ -3,9 +3,7 @@ export type IndexAnchorThemeVars = {
|
|
|
3
3
|
indexAnchorPadding?: string;
|
|
4
4
|
indexAnchorTextColor?: string;
|
|
5
5
|
indexAnchorFontWeight?: string;
|
|
6
|
-
indexAnchorFontSize?: string;
|
|
7
|
-
indexAnchorLineHeight?: number | string;
|
|
8
6
|
indexAnchorBackground?: string;
|
|
9
7
|
indexAnchorStickyTextColor?: string;
|
|
10
|
-
|
|
8
|
+
indexAnchorHeight?: string;
|
|
11
9
|
};
|
|
@@ -22,6 +22,14 @@ export declare const indexBarProps: {
|
|
|
22
22
|
type: PropType<Numeric[]>;
|
|
23
23
|
default: typeof genAlphabet;
|
|
24
24
|
};
|
|
25
|
+
indexBarMaxHeight: {
|
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
contractionPointText: {
|
|
30
|
+
type: PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
25
33
|
};
|
|
26
34
|
export type IndexBarProps = ExtractPropTypes<typeof indexBarProps>;
|
|
27
35
|
export declare const INDEX_BAR_KEY: InjectionKey<IndexBarProvide>;
|
|
@@ -45,6 +53,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
53
|
type: PropType<Numeric[]>;
|
|
46
54
|
default: typeof genAlphabet;
|
|
47
55
|
};
|
|
56
|
+
indexBarMaxHeight: {
|
|
57
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
contractionPointText: {
|
|
61
|
+
type: PropType<string>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
48
64
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "anchorClick" | "update:activeAnchor")[], "select" | "change" | "anchorClick" | "update:activeAnchor", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
49
65
|
sticky: {
|
|
50
66
|
type: BooleanConstructor;
|
|
@@ -65,6 +81,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
81
|
type: PropType<Numeric[]>;
|
|
66
82
|
default: typeof genAlphabet;
|
|
67
83
|
};
|
|
84
|
+
indexBarMaxHeight: {
|
|
85
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
contractionPointText: {
|
|
89
|
+
type: PropType<string>;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
68
92
|
}>> & {
|
|
69
93
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
70
94
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
@@ -75,5 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
99
|
activeAnchor: string | number;
|
|
76
100
|
stickyOffsetTop: number;
|
|
77
101
|
indexList: Numeric[];
|
|
102
|
+
indexBarMaxHeight: string | number;
|
|
103
|
+
contractionPointText: string;
|
|
78
104
|
}, {}>;
|
|
79
105
|
export default _default;
|
|
@@ -29,6 +29,8 @@ var import_use = require("@zartui/use");
|
|
|
29
29
|
var import_use_touch = require("../composables/use-touch");
|
|
30
30
|
var import_use_expose = require("../composables/use-expose");
|
|
31
31
|
var import_use_sync_prop_ref = require("../composables/use-sync-prop-ref");
|
|
32
|
+
var import_parse = require("../utils/parse");
|
|
33
|
+
var import_deep_clone = require("../utils/deep-clone");
|
|
32
34
|
function genAlphabet() {
|
|
33
35
|
const charCodeOfA = "A".charCodeAt(0);
|
|
34
36
|
const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
|
|
@@ -45,9 +47,12 @@ const indexBarProps = {
|
|
|
45
47
|
indexList: {
|
|
46
48
|
type: Array,
|
|
47
49
|
default: genAlphabet
|
|
48
|
-
}
|
|
50
|
+
},
|
|
51
|
+
indexBarMaxHeight: (0, import_utils.makeNumericProp)("70vh"),
|
|
52
|
+
contractionPointText: (0, import_utils.makeStringProp)("\u2022")
|
|
49
53
|
};
|
|
50
54
|
const INDEX_BAR_KEY = Symbol(name);
|
|
55
|
+
const MIN_CONTRACTION_NUM = 2;
|
|
51
56
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
52
57
|
name,
|
|
53
58
|
props: indexBarProps,
|
|
@@ -60,6 +65,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
60
65
|
const sidebar = (0, import_vue2.ref)();
|
|
61
66
|
const activeAnchor = (0, import_use_sync_prop_ref.useSyncPropRef)(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
|
|
62
67
|
const touchIndex = (0, import_vue2.ref)("");
|
|
68
|
+
const indexBarMaxHeight = (0, import_vue2.computed)(() => {
|
|
69
|
+
return props.indexBarMaxHeight ? (0, import_utils.unitToPx)(props.indexBarMaxHeight) : (0, import_utils.unitToPx)("100vh");
|
|
70
|
+
});
|
|
63
71
|
const touch = (0, import_use_touch.useTouch)();
|
|
64
72
|
const scrollParent = (0, import_use.useScrollParent)(root);
|
|
65
73
|
const {
|
|
@@ -182,54 +190,178 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
182
190
|
};
|
|
183
191
|
const scrollToElement = (element) => {
|
|
184
192
|
const {
|
|
185
|
-
index
|
|
193
|
+
index,
|
|
194
|
+
indexMap = ""
|
|
186
195
|
} = element.dataset;
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
let indexValue = index;
|
|
197
|
+
if (index === props.contractionPointText) {
|
|
198
|
+
indexValue = getIndexMapStartIndexItem(indexMap);
|
|
199
|
+
}
|
|
200
|
+
if (indexValue) {
|
|
201
|
+
scrollTo(indexValue);
|
|
189
202
|
}
|
|
190
203
|
};
|
|
191
204
|
const onClickSidebar = (event) => {
|
|
192
205
|
scrollToElement(event.target);
|
|
193
206
|
};
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
|
|
207
|
+
const getIndexHeight = () => {
|
|
208
|
+
var _a, _b;
|
|
209
|
+
let indexHeight = "0";
|
|
210
|
+
if ((_a = sidebar.value) == null ? void 0 : _a.children.length) {
|
|
211
|
+
const indexElement = (_b = sidebar.value) == null ? void 0 : _b.children[0];
|
|
212
|
+
indexHeight = getComputedStyle(indexElement).height;
|
|
213
|
+
}
|
|
214
|
+
return (0, import_parse.parseNumber)(indexHeight.replace("px", ""));
|
|
215
|
+
};
|
|
216
|
+
const toContractionListByIntervals = (options) => {
|
|
217
|
+
const {
|
|
218
|
+
hiddenIndexNum,
|
|
219
|
+
renderedPointNum
|
|
220
|
+
} = options;
|
|
221
|
+
let adaptedIndexList = (0, import_deep_clone.deepClone)(props.indexList);
|
|
222
|
+
const lastIndexItem = adaptedIndexList[adaptedIndexList.length - 1];
|
|
223
|
+
const contractionList = [];
|
|
224
|
+
const contractionMapList = [];
|
|
225
|
+
const remainder = hiddenIndexNum % renderedPointNum;
|
|
226
|
+
const contractionRate = new Array(renderedPointNum).fill(Math.floor(hiddenIndexNum / renderedPointNum));
|
|
227
|
+
contractionRate[0] += remainder;
|
|
228
|
+
const NEXT_INDEX_OFFSET = 1;
|
|
229
|
+
for (let index = 0; index < renderedPointNum; index++) {
|
|
230
|
+
contractionList.push(adaptedIndexList[0]);
|
|
231
|
+
contractionList.push(props.contractionPointText);
|
|
232
|
+
contractionMapList.push(adaptedIndexList.slice(NEXT_INDEX_OFFSET, contractionRate[index] + NEXT_INDEX_OFFSET));
|
|
233
|
+
adaptedIndexList = adaptedIndexList.splice(contractionRate[index] + NEXT_INDEX_OFFSET);
|
|
234
|
+
}
|
|
235
|
+
contractionList.push(lastIndexItem);
|
|
236
|
+
return {
|
|
237
|
+
contractionList,
|
|
238
|
+
contractionMapList
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
const toContractionListByProgression = (options) => {
|
|
242
|
+
const {
|
|
243
|
+
renderedNum
|
|
244
|
+
} = options;
|
|
245
|
+
let adaptedIndexList = (0, import_deep_clone.deepClone)(props.indexList);
|
|
246
|
+
const contractionList = [];
|
|
247
|
+
const contractionMapList = [];
|
|
248
|
+
const renderedPointNum = adaptedIndexList.length - renderedNum;
|
|
249
|
+
const contractionRate = new Array(renderedPointNum).fill(MIN_CONTRACTION_NUM);
|
|
250
|
+
const intervenedIndexListPartNum = renderedPointNum + 1;
|
|
251
|
+
const intervals = Math.ceil((adaptedIndexList.length - MIN_CONTRACTION_NUM * renderedPointNum) / intervenedIndexListPartNum);
|
|
252
|
+
for (let index = 0; index < renderedPointNum; index++) {
|
|
253
|
+
const slicedIndexList = adaptedIndexList.slice(0, intervals);
|
|
254
|
+
contractionList.push(...slicedIndexList);
|
|
255
|
+
contractionMapList.push(adaptedIndexList.slice(intervals, contractionRate[index] + intervals));
|
|
256
|
+
adaptedIndexList = adaptedIndexList.splice(contractionRate[index] + intervals);
|
|
257
|
+
if (adaptedIndexList.length) {
|
|
258
|
+
contractionList.push(props.contractionPointText);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
contractionList.push(...adaptedIndexList);
|
|
262
|
+
return {
|
|
263
|
+
contractionList,
|
|
264
|
+
contractionMapList
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
const adaptorIndexListByHeight = () => {
|
|
268
|
+
const actualIndexListHeight = props.indexList.length * getIndexHeight();
|
|
269
|
+
if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight.value) {
|
|
270
|
+
const adaptedIndexList = (0, import_deep_clone.deepClone)(props.indexList);
|
|
271
|
+
const renderedNum = Math.floor(indexBarMaxHeight.value / getIndexHeight());
|
|
272
|
+
const renderedPointNum = Math.floor(renderedNum / MIN_CONTRACTION_NUM);
|
|
273
|
+
const renderedIndexNum = renderedNum - renderedPointNum;
|
|
274
|
+
const hiddenIndexNum = adaptedIndexList.length - renderedIndexNum;
|
|
275
|
+
if (MIN_CONTRACTION_NUM * renderedPointNum + renderedIndexNum <= adaptedIndexList.length) {
|
|
276
|
+
return toContractionListByIntervals({
|
|
277
|
+
hiddenIndexNum,
|
|
278
|
+
renderedPointNum
|
|
279
|
+
});
|
|
280
|
+
} else {
|
|
281
|
+
return toContractionListByProgression({
|
|
282
|
+
renderedNum
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return {
|
|
287
|
+
contractionList: props.indexList,
|
|
288
|
+
contractionMapList: []
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
const getContractionPointMapList = (contractionList, contractionMapList, order) => {
|
|
292
|
+
let contractionPointOrder = 0;
|
|
293
|
+
for (let index = 0; index < order; index++) {
|
|
294
|
+
const element = contractionList[index];
|
|
295
|
+
if (element.toString() === props.contractionPointText) {
|
|
296
|
+
contractionPointOrder++;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return contractionMapList[contractionPointOrder];
|
|
300
|
+
};
|
|
301
|
+
const getIndexMapStartIndexItem = (indexMap) => {
|
|
302
|
+
return indexMap.split(",")[0] || "";
|
|
303
|
+
};
|
|
304
|
+
const renderIndexes = () => {
|
|
305
|
+
const {
|
|
306
|
+
contractionList,
|
|
307
|
+
contractionMapList
|
|
308
|
+
} = adaptorIndexListByHeight();
|
|
309
|
+
return contractionList.map((index, order) => {
|
|
310
|
+
let active = index === activeAnchor.value;
|
|
311
|
+
let touch2 = index === touchIndex.value;
|
|
312
|
+
let contractionPointMapList = [];
|
|
313
|
+
if (index === props.contractionPointText) {
|
|
314
|
+
contractionPointMapList = getContractionPointMapList(contractionList, contractionMapList, order);
|
|
315
|
+
active = contractionPointMapList.includes(activeAnchor.value);
|
|
316
|
+
touch2 = contractionPointMapList.includes(touchIndex.value);
|
|
317
|
+
}
|
|
318
|
+
const touchActiveText = contractionPointMapList[0] || index;
|
|
319
|
+
return (0, import_vue.createVNode)("div", {
|
|
320
|
+
"class": bem("index"),
|
|
321
|
+
"style": active ? highlightStyle.value : void 0
|
|
322
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
323
|
+
"class": bem("touch", {
|
|
324
|
+
active: touch2
|
|
325
|
+
})
|
|
326
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
327
|
+
"class": bem("touch-text")
|
|
328
|
+
}, [touchActiveText]), (0, import_vue.createVNode)("svg", {
|
|
329
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
330
|
+
"fill": "none",
|
|
331
|
+
"viewBox": "0 0 20 32",
|
|
332
|
+
"class": bem("icon")
|
|
333
|
+
}, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("mask", {
|
|
334
|
+
"id": "ei8r0nsyx__b6fjzymnfa"
|
|
335
|
+
}, [(0, import_vue.createVNode)("rect", {
|
|
336
|
+
"width": "20",
|
|
337
|
+
"height": "32",
|
|
338
|
+
"rx": "0",
|
|
339
|
+
"fill": "#FFF"
|
|
340
|
+
}, null)])]), (0, import_vue.createVNode)("g", {
|
|
341
|
+
"mask": "url(#ei8r0nsyx__b6fjzymnfa)"
|
|
342
|
+
}, [(0, import_vue.createVNode)("rect", {
|
|
343
|
+
"width": "20",
|
|
344
|
+
"height": "32",
|
|
345
|
+
"rx": "0"
|
|
346
|
+
}, null), (0, import_vue.createVNode)("path", {
|
|
347
|
+
"d": "M-1.0000000000000497,0C7.83656,0,15,7.16344,15,16C15,24.8366,7.83656,32,-1,32L-1.0000000000000497,0Z",
|
|
348
|
+
"fill-rule": "evenodd",
|
|
349
|
+
"class": bem("icon-fill")
|
|
350
|
+
}, null), (0, import_vue.createVNode)("path", {
|
|
351
|
+
"d": "M12.243150099299784,24.98157383041382L19.435507386779786,16.65358383041382C19.759737386779786,16.27815383041382,19.759737386779786,15.721773830413818,19.435507386779786,15.346343830413819L12.243151433939785,7.018357001713818C13.983177386779785,9.578993830413818,14.999997386779786,12.670733830413818,14.999997386779786,15.999963830413819C14.999997386779786,19.32917383041382,13.983177386779785,22.420973830413818,12.243150099299784,24.98157383041382Z",
|
|
352
|
+
"fill-rule": "evenodd",
|
|
353
|
+
"class": bem("icon-fill")
|
|
354
|
+
}, null)])])]), (0, import_vue.createVNode)("div", {
|
|
355
|
+
"data-index": index,
|
|
356
|
+
"data-index-map": contractionPointMapList,
|
|
357
|
+
"onClick": onClickSidebar,
|
|
358
|
+
"class": bem("index", {
|
|
359
|
+
active,
|
|
360
|
+
touch: touch2
|
|
361
|
+
})
|
|
362
|
+
}, [index])]);
|
|
363
|
+
});
|
|
364
|
+
};
|
|
233
365
|
let touchActiveIndex;
|
|
234
366
|
const onTouchStart = (event) => {
|
|
235
367
|
const {
|
|
@@ -239,9 +371,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
239
371
|
const target = document.elementFromPoint(clientX, clientY);
|
|
240
372
|
if (target) {
|
|
241
373
|
const {
|
|
242
|
-
index = ""
|
|
374
|
+
index = "",
|
|
375
|
+
indexMap = ""
|
|
243
376
|
} = target.dataset;
|
|
244
|
-
|
|
377
|
+
if (index === props.contractionPointText) {
|
|
378
|
+
touchIndex.value = getIndexMapStartIndexItem(indexMap);
|
|
379
|
+
} else {
|
|
380
|
+
touchIndex.value = index;
|
|
381
|
+
}
|
|
245
382
|
}
|
|
246
383
|
touch.start(event);
|
|
247
384
|
};
|
|
@@ -259,11 +396,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
259
396
|
const target = document.elementFromPoint(clientX, clientY);
|
|
260
397
|
if (target) {
|
|
261
398
|
const {
|
|
262
|
-
index
|
|
399
|
+
index,
|
|
400
|
+
indexMap = ""
|
|
263
401
|
} = target.dataset;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
402
|
+
let indexValue = index;
|
|
403
|
+
if (index === props.contractionPointText) {
|
|
404
|
+
indexValue = getIndexMapStartIndexItem(indexMap);
|
|
405
|
+
}
|
|
406
|
+
if (indexValue && touchActiveIndex !== indexValue) {
|
|
407
|
+
touchActiveIndex = indexValue;
|
|
408
|
+
touchIndex.value = indexValue;
|
|
267
409
|
scrollToElement(target);
|
|
268
410
|
}
|
|
269
411
|
}
|
package/lib/index-bar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-index-bar-sidebar-z-index: 2;--zt-index-bar-
|
|
1
|
+
:root{--zt-index-bar-sidebar-z-index: 2;--zt-index-bar-sidebar-touch-index-background-color: #8093ab}.zt-index-bar__sidebar{position:fixed;top:50%;right:var(--zt-padding-xs);z-index:var(--zt-index-bar-sidebar-z-index);display:flex;flex-direction:column;align-items:center;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.zt-index-bar__index{position:relative;color:var(--zt-text-color);padding:0 var(--zt-padding-base);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-sm);display:flex;height:var(--zt-line-height-sm)}.zt-index-bar__index--active{color:var(--zt-primary-color);font-weight:700}.zt-index-bar__index--touch{position:relative;color:var(--zt-white)}.zt-index-bar__index--touch:after{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:100%;height:100%;z-index:-1;padding:0;background:var(--zt-primary-color);border-radius:calc(var(--zt-line-height-sm) / 2)}.zt-index-bar__touch{display:none}.zt-index-bar__touch-text{width:-webkit-max-content;width:max-content;margin-right:-1px;height:32px;line-height:32px;border-radius:16px 0 0 16px;padding:0 1px 0 14px;font-size:var(--zt-font-size-lg);color:var(--zt-white);text-align:center;background:var(--zt-index-bar-sidebar-touch-index-background-color)}.zt-index-bar__touch--active{display:flex;position:absolute;top:-6px;right:100%}.zt-index-bar__icon{position:relative;width:20px;height:32px}.zt-index-bar__icon-fill{fill:var(--zt-index-bar-sidebar-touch-index-background-color)}
|
package/lib/index-bar/index.d.ts
CHANGED
|
@@ -19,6 +19,14 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
|
19
19
|
type: import("vue").PropType<import("../utils").Numeric[]>;
|
|
20
20
|
default: () => string[];
|
|
21
21
|
};
|
|
22
|
+
indexBarMaxHeight: {
|
|
23
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
contractionPointText: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
22
30
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "anchorClick" | "update:activeAnchor")[], "select" | "change" | "anchorClick" | "update:activeAnchor", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
31
|
sticky: {
|
|
24
32
|
type: BooleanConstructor;
|
|
@@ -39,6 +47,14 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
|
39
47
|
type: import("vue").PropType<import("../utils").Numeric[]>;
|
|
40
48
|
default: () => string[];
|
|
41
49
|
};
|
|
50
|
+
indexBarMaxHeight: {
|
|
51
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
contractionPointText: {
|
|
55
|
+
type: import("vue").PropType<string>;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
42
58
|
}>> & {
|
|
43
59
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
44
60
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
@@ -49,6 +65,8 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
|
49
65
|
activeAnchor: string | number;
|
|
50
66
|
stickyOffsetTop: number;
|
|
51
67
|
indexList: import("../utils").Numeric[];
|
|
68
|
+
indexBarMaxHeight: string | number;
|
|
69
|
+
contractionPointText: string;
|
|
52
70
|
}, {}>>;
|
|
53
71
|
export default IndexBar;
|
|
54
72
|
export { indexBarProps } from './IndexBar';
|
package/lib/index-bar/types.d.ts
CHANGED
|
@@ -10,7 +10,9 @@ export type IndexBarExpose = {
|
|
|
10
10
|
export type IndexBarInstance = ComponentPublicInstance<IndexBarProps, IndexBarExpose>;
|
|
11
11
|
export type IndexBarThemeVars = {
|
|
12
12
|
indexBarSidebarZIndex?: number | string;
|
|
13
|
-
|
|
14
|
-
indexBarIndexLineHeight?: number | string;
|
|
15
|
-
indexBarIndexActiveColor?: string;
|
|
13
|
+
indexBarSidebarTouchIndexBackgroundColor?: string;
|
|
16
14
|
};
|
|
15
|
+
export interface IndexBarContractionItem {
|
|
16
|
+
index: Numeric;
|
|
17
|
+
indexContractionMapList: Numeric[];
|
|
18
|
+
}
|