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/cascader/Cascader.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_tab = require("../tab");
|
|
38
37
|
var import_tabs = require("../tabs");
|
|
@@ -60,7 +59,7 @@ const cascaderProps = {
|
|
|
60
59
|
safeAreaInsetTop: Boolean,
|
|
61
60
|
closeOnClickOverlay: import_utils.truthProp
|
|
62
61
|
};
|
|
63
|
-
var stdin_default = (0,
|
|
62
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
64
63
|
name,
|
|
65
64
|
props: cascaderProps,
|
|
66
65
|
emits: ["change", "finish", "clickTab", "update:modelValue", "update:show", "cancel"],
|
|
@@ -68,10 +67,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
68
67
|
slots,
|
|
69
68
|
emit
|
|
70
69
|
}) {
|
|
71
|
-
const tabs = (0,
|
|
72
|
-
const activeTab = (0,
|
|
73
|
-
const currentValues = (0,
|
|
74
|
-
const currentShow = (0,
|
|
70
|
+
const tabs = (0, import_vue.ref)([]);
|
|
71
|
+
const activeTab = (0, import_vue.ref)(0);
|
|
72
|
+
const currentValues = (0, import_vue.ref)(props.modelValue);
|
|
73
|
+
const currentShow = (0, import_vue.ref)(props.show);
|
|
75
74
|
const {
|
|
76
75
|
text: textKey,
|
|
77
76
|
value: valueKey,
|
|
@@ -120,7 +119,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
120
119
|
selected: null
|
|
121
120
|
});
|
|
122
121
|
}
|
|
123
|
-
(0,
|
|
122
|
+
(0, import_vue.nextTick)(() => {
|
|
124
123
|
activeTab.value = tabs.value.length - 1;
|
|
125
124
|
});
|
|
126
125
|
return;
|
|
@@ -149,7 +148,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
149
148
|
} else {
|
|
150
149
|
tabs.value.push(nextTab);
|
|
151
150
|
}
|
|
152
|
-
(0,
|
|
151
|
+
(0, import_vue.nextTick)(() => {
|
|
153
152
|
activeTab.value++;
|
|
154
153
|
});
|
|
155
154
|
}
|
|
@@ -262,20 +261,20 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
262
261
|
currentValues.value = props.modelValue;
|
|
263
262
|
}
|
|
264
263
|
};
|
|
265
|
-
(0,
|
|
264
|
+
(0, import_vue.watch)(currentShow, (newValue) => {
|
|
266
265
|
if (newValue !== props.show) {
|
|
267
266
|
emit("update:show", newValue);
|
|
268
267
|
}
|
|
269
268
|
});
|
|
270
|
-
(0,
|
|
269
|
+
(0, import_vue.watch)(() => props.show, (newValue) => {
|
|
271
270
|
if (newValue !== currentShow.value) {
|
|
272
271
|
currentShow.value = newValue;
|
|
273
272
|
}
|
|
274
273
|
});
|
|
275
|
-
(0,
|
|
274
|
+
(0, import_vue.watch)(() => props.options, updateTabs, {
|
|
276
275
|
deep: true
|
|
277
276
|
});
|
|
278
|
-
(0,
|
|
277
|
+
(0, import_vue.watch)(() => props.modelValue, (value) => {
|
|
279
278
|
if (value !== void 0) {
|
|
280
279
|
const values = tabs.value.map((tab) => {
|
|
281
280
|
var _a;
|
package/lib/cascader/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
show: BooleanConstructor;
|
|
4
4
|
round: {
|
|
@@ -46,7 +46,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: true;
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
}>, () => 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<import("vue").ExtractPropTypes<{
|
|
50
50
|
title: StringConstructor;
|
|
51
51
|
show: BooleanConstructor;
|
|
52
52
|
round: {
|
|
@@ -94,14 +94,14 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
94
94
|
type: BooleanConstructor;
|
|
95
95
|
default: true;
|
|
96
96
|
};
|
|
97
|
-
}>> & {
|
|
97
|
+
}>> & Readonly<{
|
|
98
98
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
102
102
|
onClickTab?: ((...args: any[]) => any) | undefined;
|
|
103
103
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
104
|
-
}
|
|
104
|
+
}>, {
|
|
105
105
|
position: import("..").PopupPosition;
|
|
106
106
|
round: boolean;
|
|
107
107
|
show: boolean;
|
|
@@ -114,7 +114,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
114
114
|
swipeable: boolean;
|
|
115
115
|
options: import("./types").CascaderOption[];
|
|
116
116
|
showHeader: boolean;
|
|
117
|
-
}, {}>>;
|
|
117
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
118
118
|
export default Cascader;
|
|
119
119
|
export { cascaderProps } from './Cascader';
|
|
120
120
|
export type { CascaderProps } from './Cascader';
|
package/lib/cell/Cell.d.ts
CHANGED
|
@@ -93,9 +93,10 @@ declare const cellProps: {
|
|
|
93
93
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
94
94
|
url: StringConstructor;
|
|
95
95
|
replace: BooleanConstructor;
|
|
96
|
+
$router: PropType<import("vue-router").Router>;
|
|
96
97
|
};
|
|
97
98
|
export type CellProps = ExtractPropTypes<typeof cellProps>;
|
|
98
|
-
declare const _default: import("vue").DefineComponent<{
|
|
99
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
99
100
|
leftIcon: StringConstructor;
|
|
100
101
|
titleIcon: StringConstructor;
|
|
101
102
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -142,7 +143,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
143
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
143
144
|
url: StringConstructor;
|
|
144
145
|
replace: BooleanConstructor;
|
|
145
|
-
|
|
146
|
+
$router: PropType<import("vue-router").Router>;
|
|
147
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
146
148
|
leftIcon: StringConstructor;
|
|
147
149
|
titleIcon: StringConstructor;
|
|
148
150
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -189,10 +191,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
191
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
190
192
|
url: StringConstructor;
|
|
191
193
|
replace: BooleanConstructor;
|
|
192
|
-
|
|
194
|
+
$router: PropType<import("vue-router").Router>;
|
|
195
|
+
}>> & Readonly<{
|
|
193
196
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
194
197
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
195
|
-
}
|
|
198
|
+
}>, {
|
|
196
199
|
replace: boolean;
|
|
197
200
|
center: boolean;
|
|
198
201
|
value: string;
|
|
@@ -204,5 +207,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
207
|
clearable: boolean;
|
|
205
208
|
clearIcon: string;
|
|
206
209
|
description: string;
|
|
207
|
-
}, {}>;
|
|
210
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
208
211
|
export default _default;
|
package/lib/cell/Cell.js
CHANGED
|
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
|
24
24
|
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
25
|
var import_utils = require("../utils");
|
|
27
26
|
var import_use_route = require("../composables/use-route");
|
|
28
27
|
var import_use = require("@zartui/use");
|
|
@@ -59,7 +58,7 @@ const cellSharedProps = {
|
|
|
59
58
|
description: (0, import_utils.makeStringProp)("")
|
|
60
59
|
};
|
|
61
60
|
const cellProps = (0, import_utils.extend)({}, cellSharedProps, import_use_route.routeProps);
|
|
62
|
-
var stdin_default = (0,
|
|
61
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
63
62
|
name,
|
|
64
63
|
props: cellProps,
|
|
65
64
|
emits: ["click", "clear"],
|
|
@@ -68,7 +67,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
68
67
|
emit
|
|
69
68
|
}) {
|
|
70
69
|
const route = (0, import_use_route.useRoute)();
|
|
71
|
-
const clearIconRef = (0,
|
|
70
|
+
const clearIconRef = (0, import_vue.ref)();
|
|
72
71
|
const renderLabel = () => {
|
|
73
72
|
const showLabel = slots.label || (0, import_utils.isDef)(props.label);
|
|
74
73
|
if (showLabel) {
|
|
@@ -141,7 +140,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
141
140
|
return "click";
|
|
142
141
|
}
|
|
143
142
|
(0, import_use.useEventListener)(getClearIconListenerEvent(), onClear, {
|
|
144
|
-
target: (0,
|
|
143
|
+
target: (0, import_vue.computed)(() => {
|
|
145
144
|
var _a;
|
|
146
145
|
return (_a = clearIconRef.value) == null ? void 0 : _a.$el;
|
|
147
146
|
})
|
|
@@ -192,8 +191,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
192
191
|
}, null);
|
|
193
192
|
}
|
|
194
193
|
};
|
|
195
|
-
const showDescription = (0,
|
|
196
|
-
const showErrorMessage = (0,
|
|
194
|
+
const showDescription = (0, import_vue.computed)(() => !(0, import_utils2.isEmptyValue)(props.description));
|
|
195
|
+
const showErrorMessage = (0, import_vue.computed)(() => !(0, import_utils2.isEmptyValue)(props.errorMessage));
|
|
197
196
|
const renderDescription = () => {
|
|
198
197
|
if (!showDescription.value) {
|
|
199
198
|
return;
|
package/lib/cell/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
leftIcon: StringConstructor;
|
|
3
3
|
titleIcon: StringConstructor;
|
|
4
4
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -45,7 +45,8 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
45
45
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
46
46
|
url: StringConstructor;
|
|
47
47
|
replace: BooleanConstructor;
|
|
48
|
-
|
|
48
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
49
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
50
|
leftIcon: StringConstructor;
|
|
50
51
|
titleIcon: StringConstructor;
|
|
51
52
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -92,10 +93,11 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
92
93
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
93
94
|
url: StringConstructor;
|
|
94
95
|
replace: BooleanConstructor;
|
|
95
|
-
|
|
96
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
97
|
+
}>> & Readonly<{
|
|
96
98
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
97
99
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
98
|
-
}
|
|
100
|
+
}>, {
|
|
99
101
|
replace: boolean;
|
|
100
102
|
center: boolean;
|
|
101
103
|
value: string;
|
|
@@ -107,7 +109,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
107
109
|
clearable: boolean;
|
|
108
110
|
clearIcon: string;
|
|
109
111
|
description: string;
|
|
110
|
-
}, {}>>;
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
111
113
|
export default Cell;
|
|
112
114
|
export type { CellProps, CellArrowDirection } from './Cell';
|
|
113
115
|
export type { CellDirection, CellThemeVars } from './types';
|
|
@@ -8,22 +8,22 @@ declare const cellGroupProps: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export type CellGroupProps = ExtractPropTypes<typeof cellGroupProps>;
|
|
11
|
-
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
12
12
|
title: StringConstructor;
|
|
13
13
|
inset: BooleanConstructor;
|
|
14
14
|
border: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: true;
|
|
17
17
|
};
|
|
18
|
-
}
|
|
18
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
19
19
|
title: StringConstructor;
|
|
20
20
|
inset: BooleanConstructor;
|
|
21
21
|
border: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: true;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
26
|
inset: boolean;
|
|
27
27
|
border: boolean;
|
|
28
|
-
}, {}>;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
29
|
export default _default;
|
|
@@ -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_scope_id = require("../composables/use-scope-id");
|
|
27
26
|
const [name, bem] = (0, import_utils.createNamespace)("cell-group");
|
|
@@ -30,7 +29,7 @@ const cellGroupProps = {
|
|
|
30
29
|
inset: Boolean,
|
|
31
30
|
border: import_utils.truthProp
|
|
32
31
|
};
|
|
33
|
-
var stdin_default = (0,
|
|
32
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
34
33
|
name,
|
|
35
34
|
inheritAttrs: false,
|
|
36
35
|
props: cellGroupProps,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare const CellGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const CellGroup: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
inset: BooleanConstructor;
|
|
4
4
|
border: {
|
|
5
5
|
type: BooleanConstructor;
|
|
6
6
|
default: true;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
title: StringConstructor;
|
|
10
10
|
inset: BooleanConstructor;
|
|
11
11
|
border: {
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: true;
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
16
|
inset: boolean;
|
|
17
17
|
border: boolean;
|
|
18
|
-
}, {}>>;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
19
19
|
export default CellGroup;
|
|
20
20
|
export type { CellGroupProps } from './CellGroup';
|
|
21
21
|
declare module 'vue' {
|
|
@@ -23,7 +23,7 @@ declare const checkboxProps: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
26
|
-
declare const _default: import("vue").DefineComponent<{
|
|
26
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
27
27
|
name: PropType<unknown>;
|
|
28
28
|
shape: {
|
|
29
29
|
type: PropType<import("./Checker").CheckerShape>;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
type: PropType<boolean | null>;
|
|
45
45
|
default: null;
|
|
46
46
|
};
|
|
47
|
-
}
|
|
47
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
48
48
|
name: PropType<unknown>;
|
|
49
49
|
shape: {
|
|
50
50
|
type: PropType<import("./Checker").CheckerShape>;
|
|
@@ -65,14 +65,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
type: PropType<boolean | null>;
|
|
66
66
|
default: null;
|
|
67
67
|
};
|
|
68
|
-
}>> & {
|
|
68
|
+
}>> & Readonly<{
|
|
69
69
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}
|
|
71
|
+
}>, {
|
|
72
72
|
shape: import("./Checker").CheckerShape;
|
|
73
73
|
disabled: boolean;
|
|
74
74
|
labelDisabled: boolean;
|
|
75
75
|
bindGroup: boolean;
|
|
76
76
|
indeterminate: boolean | null;
|
|
77
|
-
}, {}>;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
78
|
export default _default;
|
package/lib/checkbox/Checkbox.js
CHANGED
|
@@ -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_CheckboxGroup = require("../checkbox-group/CheckboxGroup");
|
|
37
36
|
var import_use = require("@zartui/use");
|
|
@@ -45,7 +44,7 @@ const checkboxProps = (0, import_utils.extend)({}, import_Checker.checkerProps,
|
|
|
45
44
|
default: null
|
|
46
45
|
}
|
|
47
46
|
});
|
|
48
|
-
var stdin_default = (0,
|
|
47
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
49
48
|
name,
|
|
50
49
|
props: checkboxProps,
|
|
51
50
|
emits: ["change", "update:modelValue"],
|
|
@@ -83,7 +82,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
};
|
|
86
|
-
const checked = (0,
|
|
85
|
+
const checked = (0, import_vue.computed)(() => {
|
|
87
86
|
if (parent && props.bindGroup) {
|
|
88
87
|
return parent.props.modelValue.indexOf(props.name) !== -1;
|
|
89
88
|
}
|
|
@@ -99,7 +98,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
};
|
|
102
|
-
(0,
|
|
101
|
+
(0, import_vue.watch)(() => props.modelValue, (value) => {
|
|
103
102
|
if (props.indeterminate === null) {
|
|
104
103
|
emit("change", value);
|
|
105
104
|
}
|
|
@@ -24,7 +24,7 @@ export declare const checkerProps: {
|
|
|
24
24
|
labelPosition: PropType<CheckerLabelPosition>;
|
|
25
25
|
labelDisabled: BooleanConstructor;
|
|
26
26
|
};
|
|
27
|
-
declare const _default: import("vue").DefineComponent<{
|
|
27
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
28
28
|
name: PropType<unknown>;
|
|
29
29
|
shape: {
|
|
30
30
|
type: PropType<CheckerShape>;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
type: PropType<boolean | null>;
|
|
53
53
|
default: null;
|
|
54
54
|
};
|
|
55
|
-
}
|
|
55
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
56
|
name: PropType<unknown>;
|
|
57
57
|
shape: {
|
|
58
58
|
type: PropType<CheckerShape>;
|
|
@@ -80,15 +80,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
type: PropType<boolean | null>;
|
|
81
81
|
default: null;
|
|
82
82
|
};
|
|
83
|
-
}>> & {
|
|
83
|
+
}>> & Readonly<{
|
|
84
84
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
86
|
-
}
|
|
86
|
+
}>, {
|
|
87
87
|
shape: CheckerShape;
|
|
88
88
|
disabled: boolean;
|
|
89
89
|
checked: boolean;
|
|
90
90
|
labelDisabled: boolean;
|
|
91
91
|
bindGroup: boolean;
|
|
92
92
|
indeterminate: boolean | null;
|
|
93
|
-
}, {}>;
|
|
93
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
94
94
|
export default _default;
|
package/lib/checkbox/Checker.js
CHANGED
|
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
|
24
24
|
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
25
|
var import_utils = require("../utils");
|
|
27
26
|
var import_icon = require("../icon");
|
|
28
27
|
const checkerProps = {
|
|
@@ -35,7 +34,7 @@ const checkerProps = {
|
|
|
35
34
|
labelPosition: String,
|
|
36
35
|
labelDisabled: Boolean
|
|
37
36
|
};
|
|
38
|
-
var stdin_default = (0,
|
|
37
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
39
38
|
props: (0, import_utils.extend)({}, checkerProps, {
|
|
40
39
|
bem: (0, import_utils.makeRequiredProp)(Function),
|
|
41
40
|
role: String,
|
|
@@ -52,15 +51,15 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
52
51
|
emit,
|
|
53
52
|
slots
|
|
54
53
|
}) {
|
|
55
|
-
const iconRef = (0,
|
|
54
|
+
const iconRef = (0, import_vue.ref)();
|
|
56
55
|
const getParentProp = (name) => {
|
|
57
56
|
if (props.parent && props.bindGroup) {
|
|
58
57
|
return props.parent.props[name];
|
|
59
58
|
}
|
|
60
59
|
};
|
|
61
|
-
const disabled = (0,
|
|
62
|
-
const direction = (0,
|
|
63
|
-
const iconStyle = (0,
|
|
60
|
+
const disabled = (0, import_vue.computed)(() => getParentProp("disabled") || props.disabled);
|
|
61
|
+
const direction = (0, import_vue.computed)(() => getParentProp("direction"));
|
|
62
|
+
const iconStyle = (0, import_vue.computed)(() => {
|
|
64
63
|
const checkedColor = props.checkedColor || getParentProp("checkedColor");
|
|
65
64
|
if (checkedColor && props.checked && !disabled.value) {
|
|
66
65
|
return {
|
package/lib/checkbox/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-checkbox-padding: 12px 0;--zt-checkbox-border-color: var(--zt-gray-a1);--zt-checkbox-duration: var(--zt-duration-fast);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray-a1);--zt-checkbox-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-checkbox-label-margin: var(--zt-padding-xs);--zt-checkbox-label-color: var(--zt-text-color);--zt-checkbox-checked-icon-color: var(--zt-primary-color);--zt-checkbox-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-checkbox-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-checkbox-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-disabled-icon-border: 1px solid var(--zt-gray-a08);--zt-checkbox-disabled-label-color: var(--zt-gray-a2);--zt-checkbox-disabled-checked-icon-opacity: var(--zt-disabled-opacity);--zt-checkbox-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%)}.zt-checkbox{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none;padding:var(--zt-checkbox-padding)}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-right:var(--zt-padding-sm)}.zt-checkbox__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-checkbox__icon .zt-icon{display:flex;justify-content:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid var(--zt-checkbox-border-color);transition-duration:var(--zt-checkbox-duration);transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%;border:var(--zt-checkbox-round-icon-border);box-shadow:var(--zt-checkbox-round-icon-box-shadow);background:var(--zt-checkbox-round-icon-background)}.zt-checkbox__icon--indeterminate .zt-icon,.zt-checkbox__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:var(--zt-checkbox-disabled-icon-border);box-shadow:var(--zt-checkbox-disabled-icon-shadow);background:var(--zt-checkbox-disabled-icon-background)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:var(--zt-checkbox-disabled-checked-icon-opacity);background:var(--zt-checkbox-checked-icon-color);color:var(--zt-white)}.zt-checkbox__label{margin-left:var(--zt-checkbox-label-margin);color:var(--zt-checkbox-label-color);font-size:var(--zt-font-size-md)}.zt-checkbox__label--left{margin:0 var(--zt-checkbox-label-margin) 0 0}.zt-checkbox__label--disabled{color:var(--zt-checkbox-disabled-label-color)}.zt-theme-dark{--zt-checkbox-round-icon-box-shadow: none;--zt-checkbox-disabled-icon-shadow: none;--zt-checkbox-round-icon-background: rgba(255, 255, 255, .04);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray);--zt-checkbox-disabled-icon-background: var(--zt-gray-a2)}
|
|
1
|
+
:root{--zt-checkbox-padding: 12px 0;--zt-checkbox-border-color: var(--zt-gray-a1);--zt-checkbox-duration: var(--zt-duration-fast);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray-a1);--zt-checkbox-round-icon-box-shadow: -1px -1px 2px 0 #ffffff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-round-icon-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%);--zt-checkbox-label-margin: var(--zt-padding-xs);--zt-checkbox-label-color: var(--zt-text-color);--zt-checkbox-checked-icon-color: var(--zt-primary-color);--zt-checkbox-checked-icon-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .2);--zt-checkbox-checked-icon-border: 1px solid rgba(255, 255, 255, .5);--zt-checkbox-disabled-icon-shadow: -1px -1px 2px 0 #fff, 0 0 3px 0 var(--zt-gray-a2);--zt-checkbox-disabled-icon-border: 1px solid var(--zt-gray-a08);--zt-checkbox-disabled-label-color: var(--zt-gray-a2);--zt-checkbox-disabled-checked-icon-opacity: var(--zt-disabled-opacity);--zt-checkbox-disabled-icon-background: linear-gradient(134deg, #e1e6eb 0%, #e5edf5 100%)}.zt-checkbox{position:relative;display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:var(--zt-checkbox-padding)}.zt-checkbox--disabled{cursor:not-allowed}.zt-checkbox--label-disabled{cursor:default}.zt-checkbox--horizontal{margin-right:var(--zt-padding-sm)}.zt-checkbox__icon{font-size:var(--zt-font-size-lg);cursor:pointer;box-sizing:border-box}.zt-checkbox__icon .zt-icon{display:flex;justify-content:center;align-items:center;width:1em;height:1em;color:transparent;text-align:center;border:1px solid var(--zt-checkbox-border-color);transition-duration:var(--zt-checkbox-duration);transition-property:color,border-color,background-color}.zt-checkbox__icon--round .zt-icon{border-radius:100%;border:var(--zt-checkbox-round-icon-border);box-shadow:var(--zt-checkbox-round-icon-box-shadow);background:var(--zt-checkbox-round-icon-background)}.zt-checkbox__icon--indeterminate .zt-icon,.zt-checkbox__icon--checked .zt-icon{color:var(--zt-white);background:var(--zt-checkbox-checked-icon-color);box-shadow:var(--zt-checkbox-checked-icon-shadow);border:var(--zt-checkbox-checked-icon-border)}.zt-checkbox__icon--disabled{cursor:not-allowed}.zt-checkbox__icon--disabled .zt-icon{border:var(--zt-checkbox-disabled-icon-border);box-shadow:var(--zt-checkbox-disabled-icon-shadow);background:var(--zt-checkbox-disabled-icon-background)}.zt-checkbox__icon--disabled.zt-checkbox__icon--checked .zt-icon{opacity:var(--zt-checkbox-disabled-checked-icon-opacity);background:var(--zt-checkbox-checked-icon-color);color:var(--zt-white)}.zt-checkbox__label{margin-left:var(--zt-checkbox-label-margin);color:var(--zt-checkbox-label-color);font-size:var(--zt-font-size-md)}.zt-checkbox__label--left{margin:0 var(--zt-checkbox-label-margin) 0 0}.zt-checkbox__label--disabled{color:var(--zt-checkbox-disabled-label-color)}.zt-theme-dark{--zt-checkbox-round-icon-box-shadow: none;--zt-checkbox-disabled-icon-shadow: none;--zt-checkbox-round-icon-background: rgba(255, 255, 255, .04);--zt-checkbox-round-icon-border: 1px solid var(--zt-gray);--zt-checkbox-disabled-icon-background: var(--zt-gray-a2)}
|
package/lib/checkbox/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Checkbox: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Checkbox: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
name: import("vue").PropType<unknown>;
|
|
3
3
|
shape: {
|
|
4
4
|
type: import("vue").PropType<import("./Checker").CheckerShape>;
|
|
@@ -19,7 +19,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
19
19
|
type: import("vue").PropType<boolean | null>;
|
|
20
20
|
default: null;
|
|
21
21
|
};
|
|
22
|
-
}
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
name: import("vue").PropType<unknown>;
|
|
24
24
|
shape: {
|
|
25
25
|
type: import("vue").PropType<import("./Checker").CheckerShape>;
|
|
@@ -40,16 +40,16 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
|
40
40
|
type: import("vue").PropType<boolean | null>;
|
|
41
41
|
default: null;
|
|
42
42
|
};
|
|
43
|
-
}>> & {
|
|
43
|
+
}>> & Readonly<{
|
|
44
44
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
}
|
|
46
|
+
}>, {
|
|
47
47
|
shape: import("./Checker").CheckerShape;
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
labelDisabled: boolean;
|
|
50
50
|
bindGroup: boolean;
|
|
51
51
|
indeterminate: boolean | null;
|
|
52
|
-
}, {}>>;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
53
53
|
export default Checkbox;
|
|
54
54
|
export type { CheckboxProps } from './Checkbox';
|
|
55
55
|
export type { CheckboxShape, CheckboxInstance, CheckboxLabelPosition, CheckboxThemeVars, } from './types';
|
|
@@ -17,7 +17,7 @@ declare const checkboxGroupProps: {
|
|
|
17
17
|
};
|
|
18
18
|
export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
|
|
19
19
|
export declare const CHECKBOX_GROUP_KEY: InjectionKey<CheckboxGroupProvide>;
|
|
20
|
-
declare const _default: import("vue").DefineComponent<{
|
|
20
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
21
|
max: (NumberConstructor | StringConstructor)[];
|
|
22
22
|
disabled: BooleanConstructor;
|
|
23
23
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
default: () => unknown[];
|
|
31
31
|
};
|
|
32
32
|
checkedColor: StringConstructor;
|
|
33
|
-
}
|
|
33
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
34
34
|
max: (NumberConstructor | StringConstructor)[];
|
|
35
35
|
disabled: BooleanConstructor;
|
|
36
36
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -43,12 +43,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
default: () => unknown[];
|
|
44
44
|
};
|
|
45
45
|
checkedColor: StringConstructor;
|
|
46
|
-
}>> & {
|
|
46
|
+
}>> & Readonly<{
|
|
47
47
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
48
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
}
|
|
49
|
+
}>, {
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
direction: CheckerDirection;
|
|
52
52
|
modelValue: unknown[];
|
|
53
|
-
}, {}>;
|
|
53
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
54
|
export default _default;
|
|
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
|
24
24
|
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
25
|
var import_utils = require("../utils");
|
|
27
26
|
var import_use = require("@zartui/use");
|
|
28
27
|
var import_use_expose = require("../composables/use-expose");
|
|
@@ -36,7 +35,7 @@ const checkboxGroupProps = {
|
|
|
36
35
|
checkedColor: String
|
|
37
36
|
};
|
|
38
37
|
const CHECKBOX_GROUP_KEY = Symbol(name);
|
|
39
|
-
var stdin_default = (0,
|
|
38
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
40
39
|
name,
|
|
41
40
|
props: checkboxGroupProps,
|
|
42
41
|
emits: ["change", "update:modelValue"],
|
|
@@ -71,7 +70,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
71
70
|
const names = checkedChildren.map((item) => item.name);
|
|
72
71
|
updateValue(names);
|
|
73
72
|
};
|
|
74
|
-
(0,
|
|
73
|
+
(0, import_vue.watch)(() => props.modelValue, (value) => emit("change", value));
|
|
75
74
|
(0, import_use_expose.useExpose)({
|
|
76
75
|
toggleAll
|
|
77
76
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const CheckboxGroup: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
max: (NumberConstructor | StringConstructor)[];
|
|
3
3
|
disabled: BooleanConstructor;
|
|
4
4
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -11,7 +11,7 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
|
11
11
|
default: () => unknown[];
|
|
12
12
|
};
|
|
13
13
|
checkedColor: StringConstructor;
|
|
14
|
-
}
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
15
|
max: (NumberConstructor | StringConstructor)[];
|
|
16
16
|
disabled: BooleanConstructor;
|
|
17
17
|
iconSize: (NumberConstructor | StringConstructor)[];
|
|
@@ -24,14 +24,14 @@ export declare const CheckboxGroup: import("../utils").WithInstall<import("vue")
|
|
|
24
24
|
default: () => unknown[];
|
|
25
25
|
};
|
|
26
26
|
checkedColor: StringConstructor;
|
|
27
|
-
}>> & {
|
|
27
|
+
}>> & Readonly<{
|
|
28
28
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
}
|
|
30
|
+
}>, {
|
|
31
31
|
disabled: boolean;
|
|
32
32
|
direction: import("../checkbox/Checker").CheckerDirection;
|
|
33
33
|
modelValue: unknown[];
|
|
34
|
-
}, {}>>;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
35
35
|
export default CheckboxGroup;
|
|
36
36
|
export type { CheckboxGroupProps } from './CheckboxGroup';
|
|
37
37
|
export type { CheckboxGroupInstance, CheckboxGroupDirection, CheckboxGroupToggleAllOptions, } from './types';
|
package/lib/col/Col.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const colProps: {
|
|
|
11
11
|
offset: (NumberConstructor | StringConstructor)[];
|
|
12
12
|
};
|
|
13
13
|
export type ColProps = ExtractPropTypes<typeof colProps>;
|
|
14
|
-
declare const _default: import("vue").DefineComponent<{
|
|
14
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
15
15
|
tag: {
|
|
16
16
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
|
17
17
|
default: keyof HTMLElementTagNameMap;
|
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
default: number;
|
|
22
22
|
};
|
|
23
23
|
offset: (NumberConstructor | StringConstructor)[];
|
|
24
|
-
}
|
|
24
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
25
25
|
tag: {
|
|
26
26
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
|
27
27
|
default: keyof HTMLElementTagNameMap;
|
|
@@ -31,8 +31,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
default: number;
|
|
32
32
|
};
|
|
33
33
|
offset: (NumberConstructor | StringConstructor)[];
|
|
34
|
-
}
|
|
34
|
+
}>> & Readonly<{}>, {
|
|
35
35
|
span: string | number;
|
|
36
36
|
tag: keyof HTMLElementTagNameMap;
|
|
37
|
-
}, {}>;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
38
|
export default _default;
|