zartui 3.1.23-beta.2 → 3.1.23-beta.3
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 +4 -0
- package/es/action-sheet/ActionSheet.d.ts +5 -5
- package/es/action-sheet/ActionSheet.mjs +1 -2
- package/es/action-sheet/index.d.ts +5 -5
- package/es/audio/Audio.d.ts +18 -5
- package/es/audio/Audio.mjs +7 -5
- package/es/audio/index.d.ts +14 -5
- package/es/avatar/Avatar.d.ts +4 -4
- package/es/avatar/Avatar.mjs +1 -2
- package/es/avatar/index.d.ts +4 -4
- package/es/badge/Badge.d.ts +4 -4
- package/es/badge/Badge.mjs +1 -2
- package/es/badge/index.d.ts +4 -4
- package/es/button/Button.d.ts +8 -5
- package/es/button/Button.mjs +1 -2
- package/es/button/index.d.ts +7 -5
- package/es/calendar/Calendar.d.ts +5 -5
- package/es/calendar/Calendar.mjs +1 -2
- package/es/calendar/CalendarDay.d.ts +5 -5
- package/es/calendar/CalendarDay.mjs +1 -2
- package/es/calendar/CalendarHeader.d.ts +5 -5
- package/es/calendar/CalendarHeader.mjs +1 -2
- package/es/calendar/CalendarMonth.d.ts +5 -5
- package/es/calendar/CalendarMonth.mjs +1 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +5 -5
- package/es/cascader/Cascader.d.ts +5 -5
- package/es/cascader/Cascader.mjs +1 -2
- package/es/cascader/index.d.ts +5 -5
- package/es/cell/Cell.d.ts +8 -5
- package/es/cell/Cell.mjs +1 -2
- package/es/cell/index.d.ts +7 -5
- package/es/cell-group/CellGroup.d.ts +4 -4
- package/es/cell-group/CellGroup.mjs +1 -2
- package/es/cell-group/index.d.ts +4 -4
- package/es/checkbox/Checkbox.d.ts +5 -5
- package/es/checkbox/Checkbox.mjs +1 -2
- package/es/checkbox/Checker.d.ts +5 -5
- package/es/checkbox/Checker.mjs +1 -2
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.mjs +1 -2
- package/es/checkbox-group/index.d.ts +5 -5
- package/es/col/Col.d.ts +4 -4
- package/es/col/Col.mjs +1 -2
- package/es/col/index.d.ts +4 -4
- package/es/collapse/Collapse.d.ts +5 -5
- package/es/collapse/Collapse.mjs +1 -2
- package/es/collapse/index.d.ts +5 -5
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.mjs +1 -2
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +4 -4
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-refs.d.ts +1 -1
- package/es/composables/use-route.d.ts +2 -0
- package/es/composables/use-route.mjs +2 -1
- package/es/composables/use-sync-prop-ref.d.ts +1 -1
- package/es/composables/use-touch.d.ts +8 -8
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/ConfigProvider.mjs +1 -2
- package/es/config-provider/index.d.ts +4 -4
- package/es/date-time-picker/DateTimePicker.d.ts +5 -5
- package/es/date-time-picker/DateTimePicker.mjs +1 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
- package/es/date-time-picker/DateTimePickerWrapper.mjs +1 -2
- package/es/date-time-picker/index.d.ts +5 -5
- package/es/dialog/Dialog.d.ts +5 -5
- package/es/dialog/Dialog.mjs +1 -2
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +5 -5
- package/es/divider/Divider.d.ts +4 -4
- package/es/divider/Divider.mjs +1 -2
- package/es/divider/index.d.ts +4 -4
- package/es/drawer-select/DrawerSelect.d.ts +5 -5
- package/es/drawer-select/DrawerSelect.mjs +1 -2
- package/es/drawer-select/index.d.ts +5 -5
- package/es/dropdown-item/DropdownItem.d.ts +6 -6
- package/es/dropdown-item/DropdownItem.mjs +1 -2
- package/es/dropdown-item/index.d.ts +6 -6
- package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.mjs +1 -2
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +4 -4
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.mjs +1 -2
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +5 -5
- package/es/field/Field.mjs +1 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.mjs +1 -2
- package/es/floating-bubble/index.css +1 -1
- package/es/floating-bubble/index.d.ts +5 -5
- package/es/form/Form.d.ts +5 -5
- package/es/form/Form.mjs +1 -2
- package/es/form/index.d.ts +5 -5
- package/es/grid/Grid.d.ts +4 -4
- package/es/grid/Grid.mjs +1 -2
- package/es/grid/index.d.ts +4 -4
- package/es/grid-item/GridItem.d.ts +7 -4
- package/es/grid-item/GridItem.mjs +1 -2
- package/es/grid-item/index.d.ts +6 -4
- package/es/hierarchy-select/Breadcrumb.d.ts +5 -5
- package/es/hierarchy-select/Breadcrumb.mjs +1 -2
- package/es/hierarchy-select/HierarchySelect.d.ts +5 -5
- package/es/hierarchy-select/HierarchySelect.mjs +1 -2
- package/es/hierarchy-select/index.d.ts +5 -5
- package/es/icon/Icon.d.ts +4 -4
- package/es/icon/Icon.mjs +1 -2
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +4 -4
- package/es/image/Image.d.ts +5 -5
- package/es/image/Image.mjs +1 -2
- package/es/image/index.d.ts +5 -5
- package/es/image-preview/ImagePreview.d.ts +5 -5
- package/es/image-preview/ImagePreview.mjs +1 -2
- package/es/image-preview/ImagePreviewItem.d.ts +5 -5
- package/es/image-preview/ImagePreviewItem.mjs +1 -2
- package/es/image-preview/function-call.mjs +1 -1
- package/es/image-preview/index.d.ts +5 -5
- package/es/index-anchor/IndexAnchor.d.ts +3 -3
- package/es/index-anchor/IndexAnchor.mjs +1 -2
- package/es/index-anchor/index.d.ts +3 -3
- package/es/index-bar/IndexBar.d.ts +5 -5
- package/es/index-bar/IndexBar.mjs +1 -2
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +5 -5
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/List.d.ts +5 -5
- package/es/list/List.mjs +1 -2
- package/es/list/index.d.ts +5 -5
- package/es/loading/Loading.d.ts +4 -4
- package/es/loading/Loading.mjs +1 -2
- package/es/loading/index.d.ts +4 -4
- package/es/media-picker/MediaPicker.d.ts +9 -5
- package/es/media-picker/MediaPicker.mjs +5 -4
- package/es/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultAudioIcon.mjs +1 -2
- package/es/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultFileIcon.mjs +1 -2
- package/es/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultVideoIcon.mjs +1 -2
- package/es/media-picker/image/DeleteIcon.d.ts +1 -1
- package/es/media-picker/image/DeleteIcon.mjs +1 -2
- package/es/media-picker/image/PickFileIcon.d.ts +1 -1
- package/es/media-picker/image/PickFileIcon.mjs +1 -2
- package/es/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/es/media-picker/image/PickPhotoIcon.mjs +1 -2
- package/es/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/es/media-picker/image/TakeAudioIcon.mjs +1 -2
- package/es/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/es/media-picker/image/TakePhotoIcon.mjs +1 -2
- package/es/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/es/media-picker/image/TakeVideoIcon.mjs +1 -2
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.d.ts +7 -5
- package/es/media-player/MediaPlayer.d.ts +21 -5
- package/es/media-player/MediaPlayer.mjs +7 -3
- package/es/media-player/index.d.ts +14 -5
- package/es/multiple-picker/MultiplePicker.d.ts +5 -5
- package/es/multiple-picker/MultiplePicker.mjs +1 -2
- package/es/multiple-picker/MultiplePickerOptions.d.ts +5 -5
- package/es/multiple-picker/MultiplePickerOptions.mjs +1 -2
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.d.ts +5 -5
- package/es/nav-bar/NavBar.d.ts +5 -5
- package/es/nav-bar/NavBar.mjs +1 -2
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +5 -5
- package/es/notice-bar/NoticeBar.d.ts +5 -5
- package/es/notice-bar/NoticeBar.mjs +1 -2
- package/es/notice-bar/index.d.ts +5 -5
- package/es/notify/Notify.d.ts +5 -5
- package/es/notify/Notify.mjs +1 -2
- package/es/notify/function-call.mjs +1 -1
- package/es/notify/index.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/es/number-keyboard/NumberKeyboard.mjs +1 -2
- package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +6 -6
- package/es/overlay/Overlay.d.ts +4 -4
- package/es/overlay/Overlay.mjs +1 -2
- package/es/overlay/index.d.ts +4 -4
- package/es/password-input/PasswordInput.d.ts +5 -5
- package/es/password-input/PasswordInput.mjs +1 -2
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +5 -5
- package/es/picker/Picker.d.ts +5 -5
- package/es/picker/Picker.mjs +1 -2
- package/es/picker/PickerColumn.d.ts +5 -5
- package/es/picker/PickerColumn.mjs +1 -2
- package/es/picker/PickerOptions.d.ts +5 -5
- package/es/picker/PickerOptions.mjs +1 -2
- package/es/picker/PickerToolbar.d.ts +4 -4
- package/es/picker/PickerToolbar.mjs +1 -2
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +5 -5
- package/es/popover/Popover.d.ts +5 -5
- package/es/popover/Popover.mjs +1 -2
- package/es/popover/index.d.ts +5 -5
- package/es/popup/Popup.d.ts +6 -6
- package/es/popup/Popup.mjs +1 -2
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +6 -6
- package/es/pull-refresh/PullRefresh.d.ts +5 -5
- package/es/pull-refresh/PullRefresh.mjs +1 -2
- package/es/pull-refresh/index.d.ts +5 -5
- package/es/radio/Radio.d.ts +5 -5
- package/es/radio/Radio.mjs +1 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +5 -5
- package/es/radio-group/RadioGroup.d.ts +5 -5
- package/es/radio-group/RadioGroup.mjs +1 -2
- package/es/radio-group/index.d.ts +5 -5
- package/es/radio-picker/RadioPicker.d.ts +5 -5
- package/es/radio-picker/RadioPicker.mjs +1 -2
- package/es/radio-picker/RadioPickerColumn.d.ts +5 -5
- package/es/radio-picker/RadioPickerColumn.mjs +1 -2
- package/es/radio-picker/RadioPickerToolbar.d.ts +4 -4
- package/es/radio-picker/RadioPickerToolbar.mjs +1 -2
- package/es/radio-picker/index.css +1 -1
- package/es/radio-picker/index.d.ts +5 -5
- package/es/rate/Rate.d.ts +5 -5
- package/es/rate/Rate.mjs +1 -2
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +5 -5
- package/es/row/Row.d.ts +4 -4
- package/es/row/Row.mjs +1 -2
- package/es/row/index.d.ts +4 -4
- package/es/search/Search.d.ts +5 -5
- package/es/search/Search.mjs +1 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +5 -5
- package/es/signature/Signature.d.ts +5 -5
- package/es/signature/Signature.mjs +1 -2
- package/es/signature/index.d.ts +5 -5
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.mjs +1 -2
- package/es/skeleton/index.d.ts +5 -5
- package/es/slider/Slider.d.ts +5 -5
- package/es/slider/Slider.mjs +1 -2
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +5 -5
- package/es/step/Step.d.ts +3 -3
- package/es/step/Step.mjs +1 -2
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +3 -3
- package/es/stepper/Stepper.d.ts +5 -5
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +5 -5
- package/es/steps/Steps.d.ts +5 -5
- package/es/steps/Steps.mjs +1 -2
- package/es/steps/index.d.ts +5 -5
- package/es/sticky/Sticky.d.ts +5 -5
- package/es/sticky/Sticky.mjs +1 -2
- package/es/sticky/index.d.ts +5 -5
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.mjs +1 -2
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +5 -5
- package/es/swipe-cell/SwipeCell.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.mjs +1 -2
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +6 -6
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -2
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +5 -5
- package/es/switch/Switch.mjs +1 -2
- package/es/switch/index.d.ts +5 -5
- package/es/tab/Tab.d.ts +7 -4
- package/es/tab/Tab.mjs +1 -2
- package/es/tab/index.d.ts +6 -4
- package/es/tabbar/Tabbar.d.ts +5 -5
- package/es/tabbar/Tabbar.mjs +1 -2
- package/es/tabbar/index.d.ts +5 -5
- package/es/tabbar-item/TabbarItem.d.ts +8 -5
- package/es/tabbar-item/TabbarItem.mjs +1 -2
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +7 -5
- package/es/table/Table.d.ts +5 -5
- package/es/table/Table.mjs +1 -2
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +5 -5
- package/es/tabs/Tabs.d.ts +5 -5
- package/es/tabs/Tabs.mjs +1 -2
- package/es/tabs/TabsContent.d.ts +5 -5
- package/es/tabs/TabsContent.mjs +1 -2
- package/es/tabs/TabsTitle.d.ts +4 -4
- package/es/tabs/TabsTitle.mjs +1 -2
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +5 -5
- package/es/tag/Tag.d.ts +5 -5
- package/es/tag/Tag.mjs +1 -2
- package/es/tag/index.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.mjs +1 -2
- package/es/text-ellipsis/index.d.ts +5 -5
- package/es/time-picker/Arrow.d.ts +2 -2
- package/es/time-picker/Arrow.mjs +1 -2
- package/es/time-picker/TimePicker.d.ts +5 -5
- package/es/time-picker/TimePicker.mjs +1 -2
- package/es/time-picker/TimePickerColumn.d.ts +5 -5
- package/es/time-picker/TimePickerColumn.mjs +1 -2
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +5 -5
- package/es/timeline/Timeline.d.ts +4 -4
- package/es/timeline/Timeline.mjs +1 -2
- package/es/timeline/index.d.ts +4 -4
- package/es/toast/Toast.d.ts +5 -5
- package/es/toast/Toast.mjs +1 -2
- package/es/toast/function-call.mjs +1 -2
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +5 -5
- package/es/uploader/Uploader.d.ts +5 -5
- package/es/uploader/Uploader.mjs +1 -2
- package/es/uploader/UploaderPreviewItem.d.ts +5 -5
- package/es/uploader/UploaderPreviewItem.mjs +1 -2
- package/es/uploader/index.d.ts +5 -5
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/video/Video.d.ts +8 -5
- package/es/video/Video.mjs +5 -3
- package/es/video/index.css +1 -1
- package/es/video/index.d.ts +7 -5
- package/es/video/types.d.ts +1 -0
- package/lib/action-sheet/ActionSheet.d.ts +5 -5
- package/lib/action-sheet/ActionSheet.js +2 -3
- package/lib/action-sheet/index.d.ts +5 -5
- package/lib/audio/Audio.d.ts +18 -5
- package/lib/audio/Audio.js +11 -9
- package/lib/audio/index.d.ts +14 -5
- package/lib/avatar/Avatar.d.ts +4 -4
- package/lib/avatar/Avatar.js +4 -5
- package/lib/avatar/index.d.ts +4 -4
- package/lib/badge/Badge.d.ts +4 -4
- package/lib/badge/Badge.js +2 -3
- package/lib/badge/index.d.ts +4 -4
- package/lib/button/Button.d.ts +8 -5
- package/lib/button/Button.js +1 -2
- package/lib/button/index.d.ts +7 -5
- package/lib/calendar/Calendar.d.ts +5 -5
- package/lib/calendar/Calendar.js +19 -20
- package/lib/calendar/CalendarDay.d.ts +5 -5
- package/lib/calendar/CalendarDay.js +2 -3
- package/lib/calendar/CalendarHeader.d.ts +5 -5
- package/lib/calendar/CalendarHeader.js +1 -2
- package/lib/calendar/CalendarMonth.d.ts +5 -5
- package/lib/calendar/CalendarMonth.js +11 -12
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +5 -5
- package/lib/cascader/Cascader.d.ts +5 -5
- package/lib/cascader/Cascader.js +11 -12
- package/lib/cascader/index.d.ts +5 -5
- package/lib/cell/Cell.d.ts +8 -5
- package/lib/cell/Cell.js +5 -6
- package/lib/cell/index.d.ts +7 -5
- package/lib/cell-group/CellGroup.d.ts +4 -4
- package/lib/cell-group/CellGroup.js +1 -2
- package/lib/cell-group/index.d.ts +4 -4
- package/lib/checkbox/Checkbox.d.ts +5 -5
- package/lib/checkbox/Checkbox.js +3 -4
- package/lib/checkbox/Checker.d.ts +5 -5
- package/lib/checkbox/Checker.js +5 -6
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.js +2 -3
- package/lib/checkbox-group/index.d.ts +5 -5
- package/lib/col/Col.d.ts +4 -4
- package/lib/col/Col.js +2 -3
- package/lib/col/index.d.ts +4 -4
- package/lib/collapse/Collapse.d.ts +5 -5
- package/lib/collapse/Collapse.js +1 -2
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +8 -9
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +4 -4
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-refs.d.ts +1 -1
- package/lib/composables/use-route.d.ts +2 -0
- package/lib/composables/use-route.js +2 -1
- package/lib/composables/use-sync-prop-ref.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +8 -8
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/ConfigProvider.js +10 -11
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/date-time-picker/DateTimePicker.d.ts +5 -5
- package/lib/date-time-picker/DateTimePicker.js +17 -18
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
- package/lib/date-time-picker/DateTimePickerWrapper.js +12 -13
- package/lib/date-time-picker/index.d.ts +5 -5
- package/lib/dialog/Dialog.d.ts +5 -5
- package/lib/dialog/Dialog.js +4 -5
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +5 -5
- package/lib/divider/Divider.d.ts +4 -4
- package/lib/divider/Divider.js +1 -2
- package/lib/divider/index.d.ts +4 -4
- package/lib/drawer-select/DrawerSelect.d.ts +5 -5
- package/lib/drawer-select/DrawerSelect.js +13 -14
- package/lib/drawer-select/index.d.ts +5 -5
- package/lib/dropdown-item/DropdownItem.d.ts +6 -6
- package/lib/dropdown-item/DropdownItem.js +5 -6
- package/lib/dropdown-item/index.d.ts +6 -6
- package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.js +6 -7
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +4 -4
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +1 -2
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +5 -5
- package/lib/field/Field.js +18 -19
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.js +14 -15
- package/lib/floating-bubble/index.css +1 -1
- package/lib/floating-bubble/index.d.ts +5 -5
- package/lib/form/Form.d.ts +5 -5
- package/lib/form/Form.js +1 -2
- package/lib/form/index.d.ts +5 -5
- package/lib/grid/Grid.d.ts +4 -4
- package/lib/grid/Grid.js +1 -2
- package/lib/grid/index.d.ts +4 -4
- package/lib/grid-item/GridItem.d.ts +7 -4
- package/lib/grid-item/GridItem.js +3 -4
- package/lib/grid-item/index.d.ts +6 -4
- package/lib/hierarchy-select/Breadcrumb.d.ts +5 -5
- package/lib/hierarchy-select/Breadcrumb.js +1 -2
- package/lib/hierarchy-select/HierarchySelect.d.ts +5 -5
- package/lib/hierarchy-select/HierarchySelect.js +6 -7
- package/lib/hierarchy-select/index.d.ts +5 -5
- package/lib/icon/Icon.d.ts +4 -4
- package/lib/icon/Icon.js +3 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +4 -4
- package/lib/image/Image.d.ts +5 -5
- package/lib/image/Image.js +9 -10
- package/lib/image/index.d.ts +5 -5
- package/lib/image-preview/ImagePreview.d.ts +5 -5
- package/lib/image-preview/ImagePreview.js +8 -9
- package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
- package/lib/image-preview/ImagePreviewItem.js +10 -11
- package/lib/image-preview/index.d.ts +5 -5
- package/lib/index-anchor/IndexAnchor.d.ts +3 -3
- package/lib/index-anchor/IndexAnchor.js +4 -5
- package/lib/index-anchor/index.d.ts +3 -3
- package/lib/index-bar/IndexBar.d.ts +5 -5
- package/lib/index-bar/IndexBar.js +12 -13
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +5 -5
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +5 -5
- package/lib/list/List.js +10 -11
- package/lib/list/index.d.ts +5 -5
- package/lib/loading/Loading.d.ts +4 -4
- package/lib/loading/Loading.js +2 -3
- package/lib/loading/index.d.ts +4 -4
- package/lib/media-picker/MediaPicker.d.ts +9 -5
- package/lib/media-picker/MediaPicker.js +4 -3
- package/lib/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultAudioIcon.js +1 -2
- package/lib/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultFileIcon.js +1 -2
- package/lib/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultVideoIcon.js +1 -2
- package/lib/media-picker/image/DeleteIcon.d.ts +1 -1
- package/lib/media-picker/image/DeleteIcon.js +1 -2
- package/lib/media-picker/image/PickFileIcon.d.ts +1 -1
- package/lib/media-picker/image/PickFileIcon.js +1 -2
- package/lib/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/PickPhotoIcon.js +1 -2
- package/lib/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeAudioIcon.js +1 -2
- package/lib/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakePhotoIcon.js +1 -2
- package/lib/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeVideoIcon.js +1 -2
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.d.ts +7 -5
- package/lib/media-player/MediaPlayer.d.ts +21 -5
- package/lib/media-player/MediaPlayer.js +5 -1
- package/lib/media-player/index.d.ts +14 -5
- package/lib/multiple-picker/MultiplePicker.d.ts +5 -5
- package/lib/multiple-picker/MultiplePicker.js +9 -10
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +5 -5
- package/lib/multiple-picker/MultiplePickerOptions.js +4 -5
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.d.ts +5 -5
- package/lib/nav-bar/NavBar.d.ts +5 -5
- package/lib/nav-bar/NavBar.js +2 -3
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.js +5 -6
- package/lib/notice-bar/index.d.ts +5 -5
- package/lib/notify/Notify.d.ts +5 -5
- package/lib/notify/Notify.js +1 -2
- package/lib/notify/index.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/lib/number-keyboard/NumberKeyboard.js +6 -7
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +6 -6
- package/lib/overlay/Overlay.d.ts +4 -4
- package/lib/overlay/Overlay.js +2 -3
- package/lib/overlay/index.d.ts +4 -4
- package/lib/password-input/PasswordInput.d.ts +5 -5
- package/lib/password-input/PasswordInput.js +1 -2
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +5 -5
- package/lib/picker/Picker.d.ts +5 -5
- package/lib/picker/Picker.js +18 -19
- package/lib/picker/PickerColumn.d.ts +5 -5
- package/lib/picker/PickerColumn.js +6 -7
- package/lib/picker/PickerOptions.d.ts +5 -5
- package/lib/picker/PickerOptions.js +5 -6
- package/lib/picker/PickerToolbar.d.ts +4 -4
- package/lib/picker/PickerToolbar.js +1 -2
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +5 -5
- package/lib/popover/Popover.d.ts +5 -5
- package/lib/popover/Popover.js +16 -17
- package/lib/popover/index.d.ts +5 -5
- package/lib/popup/Popup.d.ts +6 -6
- package/lib/popup/Popup.js +15 -16
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +6 -6
- package/lib/pull-refresh/PullRefresh.d.ts +5 -5
- package/lib/pull-refresh/PullRefresh.js +7 -8
- package/lib/pull-refresh/index.d.ts +5 -5
- package/lib/radio/Radio.d.ts +5 -5
- package/lib/radio/Radio.js +1 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +5 -5
- package/lib/radio-group/RadioGroup.d.ts +5 -5
- package/lib/radio-group/RadioGroup.js +2 -3
- package/lib/radio-group/index.d.ts +5 -5
- package/lib/radio-picker/RadioPicker.d.ts +5 -5
- package/lib/radio-picker/RadioPicker.js +18 -19
- package/lib/radio-picker/RadioPickerColumn.d.ts +5 -5
- package/lib/radio-picker/RadioPickerColumn.js +7 -8
- package/lib/radio-picker/RadioPickerToolbar.d.ts +4 -4
- package/lib/radio-picker/RadioPickerToolbar.js +1 -2
- package/lib/radio-picker/index.css +1 -1
- package/lib/radio-picker/index.d.ts +5 -5
- package/lib/rate/Rate.d.ts +5 -5
- package/lib/rate/Rate.js +3 -4
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +5 -5
- package/lib/row/Row.d.ts +4 -4
- package/lib/row/Row.js +3 -4
- package/lib/row/index.d.ts +4 -4
- package/lib/search/Search.d.ts +5 -5
- package/lib/search/Search.js +2 -3
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +5 -5
- package/lib/signature/Signature.d.ts +5 -5
- package/lib/signature/Signature.js +12 -13
- package/lib/signature/index.d.ts +5 -5
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +1 -2
- package/lib/skeleton/index.d.ts +5 -5
- package/lib/slider/Slider.d.ts +5 -5
- package/lib/slider/Slider.js +8 -9
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +5 -5
- package/lib/step/Step.d.ts +3 -3
- package/lib/step/Step.js +2 -3
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +3 -3
- package/lib/stepper/Stepper.d.ts +5 -5
- package/lib/stepper/Stepper.js +11 -12
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +5 -5
- package/lib/steps/Steps.d.ts +5 -5
- package/lib/steps/Steps.js +1 -2
- package/lib/steps/index.d.ts +5 -5
- package/lib/sticky/Sticky.d.ts +5 -5
- package/lib/sticky/Sticky.js +7 -8
- package/lib/sticky/index.d.ts +5 -5
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +22 -23
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +5 -5
- package/lib/swipe-cell/SwipeCell.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.js +7 -8
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +6 -6
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +6 -7
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +5 -5
- package/lib/switch/Switch.js +1 -2
- package/lib/switch/index.d.ts +5 -5
- package/lib/tab/Tab.d.ts +7 -4
- package/lib/tab/Tab.js +6 -7
- package/lib/tab/index.d.ts +6 -4
- package/lib/tabbar/Tabbar.d.ts +5 -5
- package/lib/tabbar/Tabbar.js +2 -3
- package/lib/tabbar/index.d.ts +5 -5
- package/lib/tabbar-item/TabbarItem.d.ts +8 -5
- package/lib/tabbar-item/TabbarItem.js +3 -4
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +7 -5
- package/lib/table/Table.d.ts +5 -5
- package/lib/table/Table.js +8 -9
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +5 -5
- package/lib/tabs/Tabs.d.ts +5 -5
- package/lib/tabs/Tabs.js +20 -21
- package/lib/tabs/TabsContent.d.ts +5 -5
- package/lib/tabs/TabsContent.js +4 -5
- package/lib/tabs/TabsTitle.d.ts +4 -4
- package/lib/tabs/TabsTitle.js +6 -7
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +5 -5
- package/lib/tag/Tag.d.ts +5 -5
- package/lib/tag/Tag.js +2 -3
- package/lib/tag/index.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.js +8 -9
- package/lib/text-ellipsis/index.d.ts +5 -5
- package/lib/time-picker/Arrow.d.ts +2 -2
- package/lib/time-picker/Arrow.js +1 -2
- package/lib/time-picker/TimePicker.d.ts +5 -5
- package/lib/time-picker/TimePicker.js +12 -13
- package/lib/time-picker/TimePickerColumn.d.ts +5 -5
- package/lib/time-picker/TimePickerColumn.js +6 -7
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +5 -5
- package/lib/timeline/Timeline.d.ts +4 -4
- package/lib/timeline/Timeline.js +3 -4
- package/lib/timeline/index.d.ts +4 -4
- package/lib/toast/Toast.d.ts +5 -5
- package/lib/toast/Toast.js +5 -6
- package/lib/toast/function-call.js +3 -4
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +5 -5
- package/lib/uploader/Uploader.d.ts +5 -5
- package/lib/uploader/Uploader.js +4 -5
- package/lib/uploader/UploaderPreviewItem.d.ts +5 -5
- package/lib/uploader/UploaderPreviewItem.js +1 -2
- package/lib/uploader/index.d.ts +5 -5
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/video/Video.d.ts +8 -5
- package/lib/video/Video.js +13 -11
- package/lib/video/index.css +1 -1
- package/lib/video/index.d.ts +7 -5
- package/lib/video/types.d.ts +1 -0
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +21 -9
- package/lib/zartui.es.js +21 -9
- package/lib/zartui.js +34 -19
- package/lib/zartui.min.js +1 -1
- package/package.json +3 -3
package/lib/button/Button.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ declare const buttonProps: {
|
|
|
5
5
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
6
6
|
url: StringConstructor;
|
|
7
7
|
replace: BooleanConstructor;
|
|
8
|
+
$router: PropType<import("vue-router").Router>;
|
|
8
9
|
} & {
|
|
9
10
|
tag: {
|
|
10
11
|
type: PropType<keyof HTMLElementTagNameMap>;
|
|
@@ -47,10 +48,11 @@ declare const buttonProps: {
|
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
50
|
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
50
|
-
declare const _default: import("vue").DefineComponent<{
|
|
51
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
51
52
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
52
53
|
url: StringConstructor;
|
|
53
54
|
replace: BooleanConstructor;
|
|
55
|
+
$router: PropType<import("vue-router").Router>;
|
|
54
56
|
} & {
|
|
55
57
|
tag: {
|
|
56
58
|
type: PropType<keyof HTMLElementTagNameMap>;
|
|
@@ -91,10 +93,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
93
|
type: PropType<ButtonIconPosition>;
|
|
92
94
|
default: ButtonIconPosition;
|
|
93
95
|
};
|
|
94
|
-
}
|
|
96
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
95
97
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
96
98
|
url: StringConstructor;
|
|
97
99
|
replace: BooleanConstructor;
|
|
100
|
+
$router: PropType<import("vue-router").Router>;
|
|
98
101
|
} & {
|
|
99
102
|
tag: {
|
|
100
103
|
type: PropType<keyof HTMLElementTagNameMap>;
|
|
@@ -135,9 +138,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
138
|
type: PropType<ButtonIconPosition>;
|
|
136
139
|
default: ButtonIconPosition;
|
|
137
140
|
};
|
|
138
|
-
}>> & {
|
|
141
|
+
}>> & Readonly<{
|
|
139
142
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
140
|
-
}
|
|
143
|
+
}>, {
|
|
141
144
|
replace: boolean;
|
|
142
145
|
type: ButtonType;
|
|
143
146
|
tag: keyof HTMLElementTagNameMap;
|
|
@@ -153,5 +156,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
156
|
hairline: boolean;
|
|
154
157
|
nativeType: ButtonNativeType;
|
|
155
158
|
iconPosition: ButtonIconPosition;
|
|
156
|
-
}, {}>;
|
|
159
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
157
160
|
export default _default;
|
package/lib/button/Button.js
CHANGED
|
@@ -21,7 +21,6 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
var import_vue2 = require("vue");
|
|
25
24
|
var import_utils = require("../utils");
|
|
26
25
|
var import_use_route = require("../composables/use-route");
|
|
27
26
|
var import_icon = require("../icon");
|
|
@@ -53,7 +52,7 @@ const buttonProps = (0, import_utils.extend)({}, import_use_route.routeProps, {
|
|
|
53
52
|
loadingType: String,
|
|
54
53
|
iconPosition: (0, import_utils.makeStringProp)("left")
|
|
55
54
|
});
|
|
56
|
-
var stdin_default = (0,
|
|
55
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
57
56
|
name,
|
|
58
57
|
props: buttonProps,
|
|
59
58
|
emits: ["click"],
|
package/lib/button/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const Button: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Button: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
3
3
|
url: StringConstructor;
|
|
4
4
|
replace: BooleanConstructor;
|
|
5
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
5
6
|
} & {
|
|
6
7
|
tag: {
|
|
7
8
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
|
@@ -42,10 +43,11 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
42
43
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
|
43
44
|
default: import("./types").ButtonIconPosition;
|
|
44
45
|
};
|
|
45
|
-
}
|
|
46
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
47
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
47
48
|
url: StringConstructor;
|
|
48
49
|
replace: BooleanConstructor;
|
|
50
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
49
51
|
} & {
|
|
50
52
|
tag: {
|
|
51
53
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
|
@@ -86,9 +88,9 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
86
88
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
|
87
89
|
default: import("./types").ButtonIconPosition;
|
|
88
90
|
};
|
|
89
|
-
}>> & {
|
|
91
|
+
}>> & Readonly<{
|
|
90
92
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
91
|
-
}
|
|
93
|
+
}>, {
|
|
92
94
|
replace: boolean;
|
|
93
95
|
type: import("./types").ButtonType;
|
|
94
96
|
tag: keyof HTMLElementTagNameMap;
|
|
@@ -104,7 +106,7 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
104
106
|
hairline: boolean;
|
|
105
107
|
nativeType: import("./types").ButtonNativeType;
|
|
106
108
|
iconPosition: import("./types").ButtonIconPosition;
|
|
107
|
-
}, {}>>;
|
|
109
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
108
110
|
export default Button;
|
|
109
111
|
export type { ButtonProps } from './Button';
|
|
110
112
|
export type { ButtonType, ButtonSize, ButtonNativeType, ButtonIconPosition, ButtonThemeVars, } from './types';
|
|
@@ -92,7 +92,7 @@ export declare const calendarProps: {
|
|
|
92
92
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
93
93
|
};
|
|
94
94
|
export type CalendarProps = ExtractPropTypes<typeof calendarProps>;
|
|
95
|
-
declare const _default: import("vue").DefineComponent<{
|
|
95
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
96
96
|
show: BooleanConstructor;
|
|
97
97
|
showType: {
|
|
98
98
|
type: PropType<CalendarShowType>;
|
|
@@ -181,7 +181,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
181
|
validator: (val: number) => boolean;
|
|
182
182
|
};
|
|
183
183
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
184
|
-
}
|
|
184
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange")[], "select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
185
185
|
show: BooleanConstructor;
|
|
186
186
|
showType: {
|
|
187
187
|
type: PropType<CalendarShowType>;
|
|
@@ -270,7 +270,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
270
270
|
validator: (val: number) => boolean;
|
|
271
271
|
};
|
|
272
272
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
273
|
-
}>> & {
|
|
273
|
+
}>> & Readonly<{
|
|
274
274
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
275
275
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
276
276
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
@@ -279,7 +279,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
279
279
|
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
280
280
|
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
281
281
|
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
282
|
-
}
|
|
282
|
+
}>, {
|
|
283
283
|
type: CalendarType;
|
|
284
284
|
position: PopupPosition;
|
|
285
285
|
round: boolean;
|
|
@@ -301,5 +301,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
301
301
|
showWeekDays: boolean;
|
|
302
302
|
showRangePrompt: boolean;
|
|
303
303
|
firstDayOfWeek: string | number;
|
|
304
|
-
}, {}>;
|
|
304
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
305
305
|
export default _default;
|
package/lib/calendar/Calendar.js
CHANGED
|
@@ -32,7 +32,6 @@ __export(stdin_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(stdin_exports);
|
|
34
34
|
var import_vue = require("vue");
|
|
35
|
-
var import_vue2 = require("vue");
|
|
36
35
|
var import_utils = require("../utils");
|
|
37
36
|
var import_utils2 = require("./utils");
|
|
38
37
|
var import_use = require("@zartui/use");
|
|
@@ -82,7 +81,7 @@ const calendarProps = {
|
|
|
82
81
|
},
|
|
83
82
|
disabledDate: Function
|
|
84
83
|
};
|
|
85
|
-
var stdin_default = (0,
|
|
84
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
86
85
|
name: import_utils2.name,
|
|
87
86
|
props: calendarProps,
|
|
88
87
|
emits: ["select", "confirm", "cancel", "unselect", "monthShow", "overRange", "update:show", "clickSubtitle"],
|
|
@@ -90,11 +89,11 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
90
89
|
emit,
|
|
91
90
|
slots
|
|
92
91
|
}) {
|
|
93
|
-
const lastMinDate = (0,
|
|
92
|
+
const lastMinDate = (0, import_vue.computed)(() => {
|
|
94
93
|
const now = /* @__PURE__ */ new Date();
|
|
95
94
|
return props.showType !== "inline" && !props.minDate ? new Date(now.getFullYear(), now.getMonth() - 3, now.getDate()) : props.minDate;
|
|
96
95
|
});
|
|
97
|
-
const lastMaxDate = (0,
|
|
96
|
+
const lastMaxDate = (0, import_vue.computed)(() => {
|
|
98
97
|
const now = /* @__PURE__ */ new Date();
|
|
99
98
|
return props.showType !== "inline" && !props.maxDate ? new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()) : props.maxDate;
|
|
100
99
|
});
|
|
@@ -147,13 +146,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
147
146
|
}
|
|
148
147
|
};
|
|
149
148
|
let bodyHeight;
|
|
150
|
-
const bodyRef = (0,
|
|
151
|
-
const subtitle = (0,
|
|
152
|
-
const currentDate = (0,
|
|
153
|
-
const titleDate = (0,
|
|
149
|
+
const bodyRef = (0, import_vue.ref)();
|
|
150
|
+
const subtitle = (0, import_vue.ref)("");
|
|
151
|
+
const currentDate = (0, import_vue.ref)(getInitialDate());
|
|
152
|
+
const titleDate = (0, import_vue.ref)(getInitialTitleDate());
|
|
154
153
|
const [monthRefs, setMonthRefs] = (0, import_use_refs.useRefs)();
|
|
155
|
-
const dayOffset = (0,
|
|
156
|
-
const months = (0,
|
|
154
|
+
const dayOffset = (0, import_vue.computed)(() => props.firstDayOfWeek ? +props.firstDayOfWeek % 7 : 0);
|
|
155
|
+
const months = (0, import_vue.computed)(() => {
|
|
157
156
|
var _a;
|
|
158
157
|
const months2 = [];
|
|
159
158
|
if (props.showType !== "inline" && lastMinDate.value && lastMaxDate.value) {
|
|
@@ -173,7 +172,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
173
172
|
}
|
|
174
173
|
return months2;
|
|
175
174
|
});
|
|
176
|
-
const buttonDisabled = (0,
|
|
175
|
+
const buttonDisabled = (0, import_vue.computed)(() => {
|
|
177
176
|
if (currentDate.value) {
|
|
178
177
|
if (props.type === "range") {
|
|
179
178
|
return !currentDate.value[0] || !currentDate.value[1];
|
|
@@ -309,7 +308,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
309
308
|
var _a;
|
|
310
309
|
return (_a = disabledDays2.find((day) => (0, import_utils2.compareDay)(startDay, day.date) === -1 && (0, import_utils2.compareDay)(day.date, date) === -1)) == null ? void 0 : _a.date;
|
|
311
310
|
};
|
|
312
|
-
const disabledDays = (0,
|
|
311
|
+
const disabledDays = (0, import_vue.computed)(() => monthRefs.value.reduce((arr, ref2) => {
|
|
313
312
|
var _a, _b;
|
|
314
313
|
arr.push(...(_b = (_a = ref2.disabledDays) == null ? void 0 : _a.value) != null ? _b : []);
|
|
315
314
|
return arr;
|
|
@@ -374,13 +373,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
374
373
|
select(date, true);
|
|
375
374
|
}
|
|
376
375
|
};
|
|
377
|
-
const yearPreEnable = (0,
|
|
376
|
+
const yearPreEnable = (0, import_vue.computed)(() => {
|
|
378
377
|
if (!lastMinDate.value) {
|
|
379
378
|
return true;
|
|
380
379
|
}
|
|
381
380
|
return titleDate.value.getFullYear() > lastMinDate.value.getFullYear();
|
|
382
381
|
});
|
|
383
|
-
const monthPreEnable = (0,
|
|
382
|
+
const monthPreEnable = (0, import_vue.computed)(() => {
|
|
384
383
|
if (!lastMinDate.value) {
|
|
385
384
|
return true;
|
|
386
385
|
}
|
|
@@ -389,13 +388,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
389
388
|
const minDateYearMonth = (0, import_utils2.getFirstDate)(lastMinDate.value);
|
|
390
389
|
return (0, import_utils2.compareDay)(targetYearMonth, minDateYearMonth) === 1;
|
|
391
390
|
});
|
|
392
|
-
const yearNextEnable = (0,
|
|
391
|
+
const yearNextEnable = (0, import_vue.computed)(() => {
|
|
393
392
|
if (!lastMaxDate.value) {
|
|
394
393
|
return true;
|
|
395
394
|
}
|
|
396
395
|
return titleDate.value.getFullYear() < lastMaxDate.value.getFullYear();
|
|
397
396
|
});
|
|
398
|
-
const monthNextEnable = (0,
|
|
397
|
+
const monthNextEnable = (0, import_vue.computed)(() => {
|
|
399
398
|
if (!lastMaxDate.value) {
|
|
400
399
|
return true;
|
|
401
400
|
}
|
|
@@ -504,12 +503,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
504
503
|
"class": (0, import_utils2.bem)("body"),
|
|
505
504
|
"onScroll": onScroll
|
|
506
505
|
}, [months.value.map(renderMonth)]), props.popup ? renderFooter() : ""]);
|
|
507
|
-
(0,
|
|
508
|
-
(0,
|
|
509
|
-
(0,
|
|
506
|
+
(0, import_vue.watch)(() => props.show, init);
|
|
507
|
+
(0, import_vue.watch)(() => [props.type, props.minDate, props.maxDate], () => reset(getInitialDate(currentDate.value)));
|
|
508
|
+
(0, import_vue.watch)(() => props.defaultDate, (value = null) => {
|
|
510
509
|
reset(value);
|
|
511
510
|
});
|
|
512
|
-
(0,
|
|
511
|
+
(0, import_vue.watch)(titleDate, (newValue) => {
|
|
513
512
|
if (props.showType === "inline" && newValue) {
|
|
514
513
|
subtitle.value = (0, import_utils2.formatMonthTitle)(newValue);
|
|
515
514
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { CalendarDayItem } from './types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
item: {
|
|
5
5
|
type: PropType<CalendarDayItem>;
|
|
6
6
|
required: true;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
14
|
rowHeight: StringConstructor;
|
|
15
|
-
}
|
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
item: {
|
|
17
17
|
type: PropType<CalendarDayItem>;
|
|
18
18
|
required: true;
|
|
@@ -24,9 +24,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
default: number;
|
|
25
25
|
};
|
|
26
26
|
rowHeight: StringConstructor;
|
|
27
|
-
}>> & {
|
|
27
|
+
}>> & Readonly<{
|
|
28
28
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
}
|
|
29
|
+
}>, {
|
|
30
30
|
offset: number;
|
|
31
|
-
}, {}>;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
32
|
export default _default;
|
|
@@ -21,11 +21,10 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
var import_vue2 = require("vue");
|
|
25
24
|
var import_utils = require("../utils");
|
|
26
25
|
var import_utils2 = require("./utils");
|
|
27
26
|
const [name] = (0, import_utils.createNamespace)("calendar-day");
|
|
28
|
-
var stdin_default = (0,
|
|
27
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
29
28
|
name,
|
|
30
29
|
props: {
|
|
31
30
|
item: (0, import_utils.makeRequiredProp)(Object),
|
|
@@ -43,7 +42,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
43
42
|
return "";
|
|
44
43
|
return `0 0 0 3px ${color}1a`;
|
|
45
44
|
};
|
|
46
|
-
const style = (0,
|
|
45
|
+
const style = (0, import_vue.computed)(() => {
|
|
47
46
|
var _a;
|
|
48
47
|
const {
|
|
49
48
|
item,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
subtitle: StringConstructor;
|
|
4
4
|
showTitle: BooleanConstructor;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
monthPreEnable: BooleanConstructor;
|
|
13
13
|
yearNextEnable: BooleanConstructor;
|
|
14
14
|
monthNextEnable: BooleanConstructor;
|
|
15
|
-
}
|
|
15
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickSubtitle" | "clickPreIcon" | "clickNextIcon")[], "clickSubtitle" | "clickPreIcon" | "clickNextIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
title: StringConstructor;
|
|
17
17
|
subtitle: StringConstructor;
|
|
18
18
|
showTitle: BooleanConstructor;
|
|
@@ -26,11 +26,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
monthPreEnable: BooleanConstructor;
|
|
27
27
|
yearNextEnable: BooleanConstructor;
|
|
28
28
|
monthNextEnable: BooleanConstructor;
|
|
29
|
-
}>> & {
|
|
29
|
+
}>> & Readonly<{
|
|
30
30
|
onClickSubtitle?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
onClickPreIcon?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
onClickNextIcon?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
}
|
|
33
|
+
}>, {
|
|
34
34
|
showTitle: boolean;
|
|
35
35
|
showSubtitle: boolean;
|
|
36
36
|
showWeekDays: boolean;
|
|
@@ -39,5 +39,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
monthPreEnable: boolean;
|
|
40
40
|
yearNextEnable: boolean;
|
|
41
41
|
monthNextEnable: boolean;
|
|
42
|
-
}, {}>;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
43
43
|
export default _default;
|
|
@@ -21,11 +21,10 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
var import_vue2 = require("vue");
|
|
25
24
|
var import_utils = require("../utils");
|
|
26
25
|
var import_utils2 = require("./utils");
|
|
27
26
|
const [name] = (0, import_utils.createNamespace)("calendar-header");
|
|
28
|
-
var stdin_default = (0,
|
|
27
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
29
28
|
name,
|
|
30
29
|
props: {
|
|
31
30
|
title: String,
|
|
@@ -26,7 +26,7 @@ declare const calendarMonthProps: {
|
|
|
26
26
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
27
27
|
};
|
|
28
28
|
export type CalendarMonthProps = ExtractPropTypes<typeof calendarMonthProps>;
|
|
29
|
-
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
30
|
date: {
|
|
31
31
|
type: DateConstructor;
|
|
32
32
|
required: true;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
showMonthTitle: BooleanConstructor;
|
|
50
50
|
firstDayOfWeek: NumberConstructor;
|
|
51
51
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
52
|
-
}
|
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
53
53
|
date: {
|
|
54
54
|
type: DateConstructor;
|
|
55
55
|
required: true;
|
|
@@ -72,14 +72,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
showMonthTitle: BooleanConstructor;
|
|
73
73
|
firstDayOfWeek: NumberConstructor;
|
|
74
74
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
75
|
-
}>> & {
|
|
75
|
+
}>> & Readonly<{
|
|
76
76
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
77
|
-
}
|
|
77
|
+
}>, {
|
|
78
78
|
lazyRender: boolean;
|
|
79
79
|
showType: CalendarShowType;
|
|
80
80
|
showMark: boolean;
|
|
81
81
|
allowSameDay: boolean;
|
|
82
82
|
showSubtitle: boolean;
|
|
83
83
|
showMonthTitle: boolean;
|
|
84
|
-
}, {}>;
|
|
84
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
85
|
export default _default;
|
|
@@ -31,7 +31,6 @@ __export(stdin_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(stdin_exports);
|
|
33
33
|
var import_vue = require("vue");
|
|
34
|
-
var import_vue2 = require("vue");
|
|
35
34
|
var import_utils = require("../utils");
|
|
36
35
|
var import_utils2 = require("./utils");
|
|
37
36
|
var import_use = require("@zartui/use");
|
|
@@ -57,7 +56,7 @@ const calendarMonthProps = {
|
|
|
57
56
|
firstDayOfWeek: Number,
|
|
58
57
|
disabledDate: Function
|
|
59
58
|
};
|
|
60
|
-
var stdin_default = (0,
|
|
59
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
61
60
|
name,
|
|
62
61
|
props: calendarMonthProps,
|
|
63
62
|
emits: ["click"],
|
|
@@ -66,12 +65,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
66
65
|
slots
|
|
67
66
|
}) {
|
|
68
67
|
const [visible, setVisible] = (0, import_use.useToggle)();
|
|
69
|
-
const daysRef = (0,
|
|
70
|
-
const monthRef = (0,
|
|
68
|
+
const daysRef = (0, import_vue.ref)();
|
|
69
|
+
const monthRef = (0, import_vue.ref)();
|
|
71
70
|
const height = (0, import_use_height.useHeight)(monthRef);
|
|
72
|
-
const title = (0,
|
|
73
|
-
const rowHeight = (0,
|
|
74
|
-
const offset = (0,
|
|
71
|
+
const title = (0, import_vue.computed)(() => (0, import_utils2.formatMonthTitle)(props.date));
|
|
72
|
+
const rowHeight = (0, import_vue.computed)(() => (0, import_utils.addUnit)(props.rowHeight));
|
|
73
|
+
const offset = (0, import_vue.computed)(() => {
|
|
75
74
|
const realDay = props.date.getDay();
|
|
76
75
|
if (props.firstDayOfWeek) {
|
|
77
76
|
return (realDay + 7 - props.firstDayOfWeek) % 7;
|
|
@@ -79,8 +78,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
79
78
|
return realDay;
|
|
80
79
|
});
|
|
81
80
|
const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
|
|
82
|
-
const totalDay = (0,
|
|
83
|
-
const shouldRender = (0,
|
|
81
|
+
const totalDay = (0, import_vue.computed)(() => getMonthEndDay(props.date.getFullYear(), props.date.getMonth() + 1));
|
|
82
|
+
const shouldRender = (0, import_vue.computed)(() => visible.value || !props.lazyRender);
|
|
84
83
|
const getTitle = () => title.value;
|
|
85
84
|
const getDate = () => props.date;
|
|
86
85
|
const getMultipleDayType = (day) => {
|
|
@@ -173,13 +172,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
173
172
|
}, [title.value]);
|
|
174
173
|
}
|
|
175
174
|
};
|
|
176
|
-
const placeholders = (0,
|
|
175
|
+
const placeholders = (0, import_vue.computed)(() => {
|
|
177
176
|
const count = Math.ceil((totalDay.value + offset.value) / 7);
|
|
178
177
|
return Array(count).fill({
|
|
179
178
|
type: "placeholder"
|
|
180
179
|
});
|
|
181
180
|
});
|
|
182
|
-
const days = (0,
|
|
181
|
+
const days = (0, import_vue.computed)(() => {
|
|
183
182
|
const days2 = [];
|
|
184
183
|
const year = props.date.getFullYear();
|
|
185
184
|
const month = props.date.getMonth();
|
|
@@ -232,7 +231,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
232
231
|
}
|
|
233
232
|
return days2;
|
|
234
233
|
});
|
|
235
|
-
const disabledDays = (0,
|
|
234
|
+
const disabledDays = (0, import_vue.computed)(() => days.value.filter((day) => day.type === "disabled"));
|
|
236
235
|
const scrollToDate = (body, targetDate) => {
|
|
237
236
|
if (daysRef.value) {
|
|
238
237
|
const daysRect = (0, import_use.useRect)(daysRef.value);
|
package/lib/calendar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-calendar-background: var(--zt-background-popup);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4);--zt-calendar-weekday-line-height: 30px;--zt-calendar-header-height: 32px;--zt-calendar-header-subtitle-line-height: 44px}:root[zt-theme-size=large]{--zt-calendar-weekday-line-height: 42px;--zt-calendar-header-height: 44px;--zt-calendar-header-subtitle-line-height: 56px}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-subtitle-line-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:var(--zt-calendar-header-height);border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-font-size-md);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";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)}.zt-calendar__header-subtitle,.zt-calendar__month-title{font-size:var(--zt-font-size-md)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-font-size-sm);line-height:var(--zt-calendar-weekday-line-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-font-size-lg);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-range-middle-color: var(--zt-white)}
|
|
1
|
+
:root{--zt-calendar-background: var(--zt-background-popup);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4);--zt-calendar-weekday-line-height: 30px;--zt-calendar-header-height: 32px;--zt-calendar-header-subtitle-line-height: 44px}:root[zt-theme-size=large]{--zt-calendar-weekday-line-height: 42px;--zt-calendar-header-height: 44px;--zt-calendar-header-subtitle-line-height: 56px}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-subtitle-line-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:var(--zt-calendar-header-height);border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-font-size-md);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";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)}.zt-calendar__header-subtitle,.zt-calendar__month-title{font-size:var(--zt-font-size-md)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-font-size-sm);line-height:var(--zt-calendar-weekday-line-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-font-size-lg);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-range-middle-color: var(--zt-white)}
|
package/lib/calendar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
show: BooleanConstructor;
|
|
3
3
|
showType: {
|
|
4
4
|
type: import("vue").PropType<import("./types").CalendarShowType>;
|
|
@@ -87,7 +87,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
87
87
|
validator: (val: number) => boolean;
|
|
88
88
|
};
|
|
89
89
|
disabledDate: import("vue").PropType<(date: Date) => boolean>;
|
|
90
|
-
}
|
|
90
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange")[], "select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
91
|
show: BooleanConstructor;
|
|
92
92
|
showType: {
|
|
93
93
|
type: import("vue").PropType<import("./types").CalendarShowType>;
|
|
@@ -176,7 +176,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
176
176
|
validator: (val: number) => boolean;
|
|
177
177
|
};
|
|
178
178
|
disabledDate: import("vue").PropType<(date: Date) => boolean>;
|
|
179
|
-
}>> & {
|
|
179
|
+
}>> & Readonly<{
|
|
180
180
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
181
181
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
182
182
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
@@ -185,7 +185,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
185
185
|
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
186
186
|
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
187
187
|
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
188
|
-
}
|
|
188
|
+
}>, {
|
|
189
189
|
type: import("./types").CalendarType;
|
|
190
190
|
position: import("..").PopupPosition;
|
|
191
191
|
round: boolean;
|
|
@@ -207,7 +207,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
207
207
|
showWeekDays: boolean;
|
|
208
208
|
showRangePrompt: boolean;
|
|
209
209
|
firstDayOfWeek: string | number;
|
|
210
|
-
}, {}>>;
|
|
210
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
211
211
|
export default Calendar;
|
|
212
212
|
export { calendarProps } from './Calendar';
|
|
213
213
|
export type { CalendarProps } from './Calendar';
|
|
@@ -51,7 +51,7 @@ export declare const cascaderProps: {
|
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
|
54
|
-
declare const _default: import("vue").DefineComponent<{
|
|
54
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
55
55
|
title: StringConstructor;
|
|
56
56
|
show: BooleanConstructor;
|
|
57
57
|
round: {
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
type: BooleanConstructor;
|
|
100
100
|
default: true;
|
|
101
101
|
};
|
|
102
|
-
}
|
|
102
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "update:show" | "clickTab" | "finish")[], "update:modelValue" | "cancel" | "change" | "update:show" | "clickTab" | "finish", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
103
103
|
title: StringConstructor;
|
|
104
104
|
show: BooleanConstructor;
|
|
105
105
|
round: {
|
|
@@ -147,14 +147,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
147
|
type: BooleanConstructor;
|
|
148
148
|
default: true;
|
|
149
149
|
};
|
|
150
|
-
}>> & {
|
|
150
|
+
}>> & Readonly<{
|
|
151
151
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
152
152
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
153
153
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
154
154
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
155
155
|
onClickTab?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
157
|
-
}
|
|
157
|
+
}>, {
|
|
158
158
|
position: PopupPosition;
|
|
159
159
|
round: boolean;
|
|
160
160
|
show: boolean;
|
|
@@ -167,5 +167,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
swipeable: boolean;
|
|
168
168
|
options: CascaderOption[];
|
|
169
169
|
showHeader: boolean;
|
|
170
|
-
}, {}>;
|
|
170
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
171
|
export default _default;
|