naive-ui 2.40.4 → 2.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3516 -1947
- package/dist/index.mjs +3510 -1949
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/selection/src/Selection.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/dom/download.d.ts +1 -0
- package/es/_utils/dom/download.mjs +3 -0
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.mjs +2 -2
- package/es/_utils/naive/index.d.ts +1 -0
- package/es/_utils/naive/index.mjs +1 -0
- package/es/_utils/naive/value.d.ts +1 -0
- package/es/_utils/naive/value.mjs +13 -0
- package/es/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/es/_utils/vue/get-first-slot-vnode.mjs +13 -0
- package/es/_utils/vue/index.d.ts +2 -2
- package/es/_utils/vue/index.mjs +2 -2
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.mjs +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +7 -2
- package/es/alert/src/Alert.mjs +1 -0
- package/es/auto-complete/index.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +10 -4
- package/es/auto-complete/src/AutoComplete.mjs +3 -2
- package/es/auto-complete/src/interface.d.ts +6 -0
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/src/Avatar.d.ts +7 -2
- package/es/avatar/src/Avatar.mjs +1 -0
- package/es/avatar-group/index.d.ts +2 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/es/avatar-group/src/AvatarGroup.mjs +1 -0
- package/es/avatar-group/src/interface.d.ts +8 -0
- package/es/avatar-group/src/interface.mjs +1 -0
- package/es/breadcrumb/index.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/es/breadcrumb/src/BreadcrumbItem.mjs +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/src/Button.d.ts +6 -2
- package/es/button/src/Button.mjs +1 -0
- package/es/calendar/src/Calendar.d.ts +7 -3
- package/es/calendar/src/Calendar.mjs +3 -2
- package/es/calendar/src/interface.d.ts +9 -0
- package/es/card/index.d.ts +1 -1
- package/es/card/src/Card.d.ts +10 -2
- package/es/card/src/Card.mjs +1 -0
- package/es/carousel/index.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +8 -3
- package/es/carousel/src/Carousel.mjs +4 -3
- package/es/carousel/src/interface.d.ts +12 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +9 -3
- package/es/cascader/src/Cascader.mjs +1 -0
- package/es/collapse/index.d.ts +3 -2
- package/es/collapse/src/Collapse.d.ts +10 -4
- package/es/collapse/src/Collapse.mjs +1 -0
- package/es/collapse/src/CollapseItem.d.ts +9 -4
- package/es/collapse/src/CollapseItem.mjs +8 -11
- package/es/collapse/src/interface.d.ts +12 -0
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +7 -2
- package/es/color-picker/src/ColorPicker.mjs +1 -3
- package/es/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/es/color-picker/src/ColorPickerTrigger.mjs +1 -0
- package/es/color-picker/src/context.d.ts +3 -2
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +9 -8
- package/es/data-table/src/DataTable.mjs +7 -6
- package/es/data-table/src/TableParts/Body.d.ts +1 -3
- package/es/data-table/src/interface.d.ts +7 -2
- package/es/data-table/src/styles/index.cssr.mjs +1 -0
- package/es/data-table/src/use-group-header.mjs +4 -3
- package/es/date-picker/index.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +27 -5
- package/es/date-picker/src/DatePicker.mjs +1 -0
- package/es/date-picker/src/interface.d.ts +3 -2
- package/es/date-picker/src/panel/date.d.ts +1 -3
- package/es/date-picker/src/panel/date.mjs +8 -8
- package/es/date-picker/src/panel/daterange.d.ts +1 -3
- package/es/date-picker/src/panel/daterange.mjs +12 -12
- package/es/date-picker/src/panel/datetime.d.ts +1 -3
- package/es/date-picker/src/panel/datetime.mjs +10 -10
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/es/date-picker/src/panel/datetimerange.mjs +12 -12
- package/es/date-picker/src/panel/month.d.ts +1 -3
- package/es/date-picker/src/panel/month.mjs +9 -9
- package/es/date-picker/src/panel/monthrange.d.ts +1 -3
- package/es/date-picker/src/panel/monthrange.mjs +9 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/es/date-picker/src/props.d.ts +1 -1
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +7 -3
- package/es/descriptions/src/Descriptions.mjs +1 -0
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/es/descriptions/src/DescriptionsItem.mjs +1 -0
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/src/Dialog.d.ts +9 -2
- package/es/dialog/src/Dialog.mjs +1 -0
- package/es/dialog/src/DialogEnvironment.d.ts +5 -1
- package/es/dialog/src/DialogEnvironment.mjs +8 -3
- package/es/dialog/src/DialogProvider.d.ts +8 -2
- package/es/drawer/index.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +7 -2
- package/es/drawer/src/DrawerContent.mjs +1 -0
- package/es/dynamic-input/index.d.ts +2 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/es/dynamic-input/src/DynamicInput.mjs +3 -3
- package/es/dynamic-input/src/interface.d.ts +11 -0
- package/es/dynamic-tags/index.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/es/dynamic-tags/src/DynamicTags.mjs +1 -0
- package/es/dynamic-tags/src/interface.d.ts +8 -0
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +6 -2
- package/es/ellipsis/src/Ellipsis.mjs +1 -0
- package/es/empty/index.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +7 -2
- package/es/empty/src/Empty.mjs +1 -0
- package/es/float-button/index.d.ts +1 -1
- package/es/float-button/src/FloatButton.d.ts +7 -2
- package/es/float-button/src/FloatButton.mjs +1 -0
- package/es/form/index.d.ts +1 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/interface.d.ts +0 -1
- package/es/form/src/public-types.d.ts +1 -0
- package/es/form/src/public-types.mjs +1 -0
- package/es/image/index.d.ts +1 -1
- package/es/image/src/Image.d.ts +6 -2
- package/es/image/src/Image.mjs +2 -5
- package/es/input/index.d.ts +1 -1
- package/es/input/src/Input.d.ts +14 -3
- package/es/input/src/Input.mjs +8 -8
- package/es/input/src/WordCount.mjs +2 -2
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +9 -3
- package/es/input-number/src/InputNumber.mjs +1 -0
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.mjs +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.mjs +317 -0
- package/es/input-otp/src/public-types.d.ts +24 -0
- package/es/input-otp/src/public-types.mjs +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.mjs +11 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.mjs +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.mjs +3 -0
- package/es/input-otp/styles/light.d.ts +81 -0
- package/es/input-otp/styles/light.mjs +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.mjs +5 -0
- package/es/list/index.d.ts +2 -1
- package/es/list/src/List.d.ts +7 -2
- package/es/list/src/List.mjs +1 -0
- package/es/list/src/ListItem.d.ts +7 -1
- package/es/list/src/ListItem.mjs +1 -0
- package/es/locales/common/kmKH.d.ts +3 -0
- package/es/locales/common/kmKH.mjs +124 -0
- package/es/locales/common/ugCN.d.ts +3 -0
- package/es/locales/common/ugCN.mjs +124 -0
- package/es/locales/date/kmKH.d.ts +3 -0
- package/es/locales/date/kmKH.mjs +6 -0
- package/es/locales/date/ugCN.d.ts +3 -0
- package/es/locales/date/ugCN.mjs +6 -0
- package/es/locales/index.d.ts +3 -0
- package/es/locales/index.mjs +3 -0
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +7 -3
- package/es/mention/src/Mention.mjs +1 -0
- package/es/modal/index.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +20 -5
- package/es/modal/src/BodyWrapper.mjs +55 -13
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.mjs +3 -0
- package/es/modal/src/ModalEnvironment.d.ts +4 -2
- package/es/modal/src/ModalProvider.mjs +0 -6
- package/es/modal/src/composables.d.ts +13 -1
- package/es/modal/src/composables.mjs +105 -1
- package/es/modal/src/interface.d.ts +6 -0
- package/es/modal/src/styles/index.cssr.mjs +5 -1
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +12 -2
- package/es/page-header/src/PageHeader.mjs +1 -0
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +12 -3
- package/es/pagination/src/Pagination.mjs +3 -2
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -2
- package/es/popconfirm/src/Popconfirm.mjs +2 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +8 -2
- package/es/popover/src/Popover.mjs +2 -5
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +8 -2
- package/es/popselect/src/Popselect.mjs +1 -0
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/result/index.d.ts +1 -1
- package/es/result/src/Result.d.ts +7 -2
- package/es/result/src/Result.mjs +1 -0
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +10 -3
- package/es/select/src/Select.mjs +1 -0
- package/es/slider/index.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +6 -2
- package/es/slider/src/Slider.mjs +1 -0
- package/es/spin/index.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +7 -2
- package/es/spin/src/Spin.mjs +1 -0
- package/es/split/index.d.ts +1 -1
- package/es/split/src/Split.d.ts +8 -2
- package/es/split/src/Split.mjs +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +8 -1
- package/es/statistic/src/Statistic.mjs +1 -0
- package/es/steps/index.d.ts +2 -2
- package/es/steps/src/Step.d.ts +8 -5
- package/es/steps/src/Step.mjs +1 -0
- package/es/steps/src/Steps.d.ts +8 -3
- package/es/steps/src/Steps.mjs +1 -0
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/switch/index.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +10 -2
- package/es/switch/src/Switch.mjs +1 -0
- package/es/tabs/index.d.ts +2 -2
- package/es/tabs/src/TabPane.d.ts +8 -2
- package/es/tabs/src/TabPane.mjs +1 -0
- package/es/tabs/src/Tabs.d.ts +7 -2
- package/es/tabs/src/Tabs.mjs +1 -0
- package/es/tag/index.d.ts +1 -1
- package/es/tag/src/Tag.d.ts +7 -2
- package/es/tag/src/Tag.mjs +1 -0
- package/es/themes/dark.mjs +2 -1
- package/es/themes/light.mjs +2 -0
- package/es/thing/index.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +11 -2
- package/es/thing/src/Thing.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +6 -2
- package/es/timeline/index.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +8 -2
- package/es/timeline/src/TimelineItem.mjs +1 -0
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +5 -2
- package/es/tooltip/src/Tooltip.mjs +1 -0
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +27 -19
- package/es/tree/src/Tree.mjs +5 -4
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +22 -3
- package/es/tree-select/src/TreeSelect.mjs +2 -0
- package/es/typography/src/text.d.ts +1 -1
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.mjs +1 -0
- package/es/upload/src/Upload.d.ts +11 -8
- package/es/upload/src/Upload.mjs +2 -0
- package/es/upload/src/UploadFile.mjs +8 -1
- package/es/upload/src/UploadTrigger.d.ts +7 -2
- package/es/upload/src/UploadTrigger.mjs +1 -0
- package/es/upload/src/interface.d.ts +8 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/dom/download.d.ts +1 -0
- package/lib/_utils/dom/download.js +4 -0
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +4 -2
- package/lib/_utils/naive/index.d.ts +1 -0
- package/lib/_utils/naive/index.js +3 -1
- package/lib/_utils/naive/value.d.ts +1 -0
- package/lib/_utils/naive/value.js +18 -0
- package/lib/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/lib/_utils/vue/get-first-slot-vnode.js +15 -0
- package/lib/_utils/vue/index.d.ts +2 -2
- package/lib/_utils/vue/index.js +3 -2
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.js +2 -2
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +7 -2
- package/lib/alert/src/Alert.js +1 -0
- package/lib/auto-complete/index.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -4
- package/lib/auto-complete/src/AutoComplete.js +2 -1
- package/lib/auto-complete/src/interface.d.ts +6 -0
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/src/Avatar.d.ts +7 -2
- package/lib/avatar/src/Avatar.js +1 -0
- package/lib/avatar-group/index.d.ts +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/lib/avatar-group/src/AvatarGroup.js +1 -0
- package/lib/avatar-group/src/interface.d.ts +8 -0
- package/lib/avatar-group/src/interface.js +2 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/lib/breadcrumb/src/BreadcrumbItem.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/src/Button.d.ts +6 -2
- package/lib/button/src/Button.js +1 -0
- package/lib/calendar/src/Calendar.d.ts +7 -3
- package/lib/calendar/src/Calendar.js +2 -1
- package/lib/calendar/src/interface.d.ts +9 -0
- package/lib/card/index.d.ts +1 -1
- package/lib/card/src/Card.d.ts +10 -2
- package/lib/card/src/Card.js +1 -0
- package/lib/carousel/index.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +8 -3
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/interface.d.ts +12 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +9 -3
- package/lib/cascader/src/Cascader.js +1 -0
- package/lib/collapse/index.d.ts +3 -2
- package/lib/collapse/src/Collapse.d.ts +10 -4
- package/lib/collapse/src/Collapse.js +1 -0
- package/lib/collapse/src/CollapseItem.d.ts +9 -4
- package/lib/collapse/src/CollapseItem.js +6 -9
- package/lib/collapse/src/interface.d.ts +12 -0
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +7 -2
- package/lib/color-picker/src/ColorPicker.js +3 -4
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.js +1 -0
- package/lib/color-picker/src/context.d.ts +3 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +9 -8
- package/lib/data-table/src/DataTable.js +7 -6
- package/lib/data-table/src/TableParts/Body.d.ts +1 -3
- package/lib/data-table/src/interface.d.ts +7 -2
- package/lib/data-table/src/styles/index.cssr.js +1 -0
- package/lib/data-table/src/use-group-header.js +4 -3
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +27 -5
- package/lib/date-picker/src/DatePicker.js +1 -0
- package/lib/date-picker/src/interface.d.ts +3 -2
- package/lib/date-picker/src/panel/date.d.ts +1 -3
- package/lib/date-picker/src/panel/date.js +15 -7
- package/lib/date-picker/src/panel/daterange.d.ts +1 -3
- package/lib/date-picker/src/panel/daterange.js +27 -11
- package/lib/date-picker/src/panel/datetime.d.ts +1 -3
- package/lib/date-picker/src/panel/datetime.js +16 -8
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/lib/date-picker/src/panel/datetimerange.js +27 -11
- package/lib/date-picker/src/panel/month.d.ts +1 -3
- package/lib/date-picker/src/panel/month.js +6 -6
- package/lib/date-picker/src/panel/monthrange.d.ts +1 -3
- package/lib/date-picker/src/panel/monthrange.js +5 -3
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/lib/date-picker/src/props.d.ts +1 -1
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +7 -3
- package/lib/descriptions/src/Descriptions.js +1 -0
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/lib/descriptions/src/DescriptionsItem.js +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/src/Dialog.d.ts +9 -2
- package/lib/dialog/src/Dialog.js +1 -0
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -1
- package/lib/dialog/src/DialogEnvironment.js +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +8 -2
- package/lib/drawer/index.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +7 -2
- package/lib/drawer/src/DrawerContent.js +1 -0
- package/lib/dynamic-input/index.d.ts +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-input/src/interface.d.ts +11 -0
- package/lib/dynamic-tags/index.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/lib/dynamic-tags/src/DynamicTags.js +1 -0
- package/lib/dynamic-tags/src/interface.d.ts +8 -0
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +6 -2
- package/lib/ellipsis/src/Ellipsis.js +1 -0
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +7 -2
- package/lib/empty/src/Empty.js +1 -0
- package/lib/float-button/index.d.ts +1 -1
- package/lib/float-button/src/FloatButton.d.ts +7 -2
- package/lib/float-button/src/FloatButton.js +1 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/interface.d.ts +0 -1
- package/lib/form/src/public-types.d.ts +1 -0
- package/lib/form/src/public-types.js +2 -0
- package/lib/image/index.d.ts +1 -1
- package/lib/image/src/Image.d.ts +6 -2
- package/lib/image/src/Image.js +2 -2
- package/lib/input/index.d.ts +1 -1
- package/lib/input/src/Input.d.ts +14 -3
- package/lib/input/src/Input.js +9 -8
- package/lib/input/src/WordCount.js +1 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +9 -3
- package/lib/input-number/src/InputNumber.js +1 -0
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +242 -0
- package/lib/input-otp/src/public-types.d.ts +24 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +16 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +81 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/list/index.d.ts +2 -1
- package/lib/list/src/List.d.ts +7 -2
- package/lib/list/src/List.js +1 -0
- package/lib/list/src/ListItem.d.ts +7 -1
- package/lib/list/src/ListItem.js +1 -0
- package/lib/locales/common/kmKH.d.ts +3 -0
- package/lib/locales/common/kmKH.js +126 -0
- package/lib/locales/common/ugCN.d.ts +3 -0
- package/lib/locales/common/ugCN.js +126 -0
- package/lib/locales/date/kmKH.d.ts +3 -0
- package/lib/locales/date/kmKH.js +8 -0
- package/lib/locales/date/ugCN.d.ts +3 -0
- package/lib/locales/date/ugCN.js +8 -0
- package/lib/locales/index.d.ts +3 -0
- package/lib/locales/index.js +8 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +7 -3
- package/lib/mention/src/Mention.js +1 -0
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +20 -5
- package/lib/modal/src/BodyWrapper.js +47 -14
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/ModalEnvironment.d.ts +4 -2
- package/lib/modal/src/ModalProvider.js +0 -6
- package/lib/modal/src/composables.d.ts +13 -1
- package/lib/modal/src/composables.js +100 -0
- package/lib/modal/src/interface.d.ts +6 -0
- package/lib/modal/src/styles/index.cssr.js +5 -1
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +12 -2
- package/lib/page-header/src/PageHeader.js +1 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +12 -3
- package/lib/pagination/src/Pagination.js +3 -2
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -2
- package/lib/popconfirm/src/Popconfirm.js +2 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +8 -2
- package/lib/popover/src/Popover.js +2 -6
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +8 -2
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/src/Result.d.ts +7 -2
- package/lib/result/src/Result.js +1 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +10 -3
- package/lib/select/src/Select.js +1 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +6 -2
- package/lib/slider/src/Slider.js +1 -0
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +7 -2
- package/lib/spin/src/Spin.js +1 -0
- package/lib/split/index.d.ts +1 -1
- package/lib/split/src/Split.d.ts +8 -2
- package/lib/split/src/Split.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +8 -1
- package/lib/statistic/src/Statistic.js +1 -0
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +8 -5
- package/lib/steps/src/Step.js +1 -0
- package/lib/steps/src/Steps.d.ts +8 -3
- package/lib/steps/src/Steps.js +1 -0
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +99 -96
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +10 -2
- package/lib/switch/src/Switch.js +1 -0
- package/lib/tabs/index.d.ts +2 -2
- package/lib/tabs/src/TabPane.d.ts +8 -2
- package/lib/tabs/src/TabPane.js +1 -0
- package/lib/tabs/src/Tabs.d.ts +7 -2
- package/lib/tabs/src/Tabs.js +1 -0
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/src/Tag.d.ts +7 -2
- package/lib/tag/src/Tag.js +1 -0
- package/lib/themes/dark.js +1 -0
- package/lib/themes/light.js +92 -90
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +11 -2
- package/lib/thing/src/Thing.js +1 -0
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +6 -2
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +8 -2
- package/lib/timeline/src/TimelineItem.js +1 -0
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +5 -2
- package/lib/tooltip/src/Tooltip.js +1 -0
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +27 -19
- package/lib/tree/src/Tree.js +6 -4
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +22 -3
- package/lib/tree-select/src/TreeSelect.js +2 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +3 -1
- package/lib/upload/src/Upload.d.ts +11 -8
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.js +7 -2
- package/lib/upload/src/UploadTrigger.d.ts +7 -2
- package/lib/upload/src/UploadTrigger.js +1 -0
- package/lib/upload/src/interface.d.ts +8 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +1 -1
- package/volar.d.ts +3 -2
- package/web-types.json +142 -14
|
@@ -35,7 +35,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
35
35
|
},
|
|
36
36
|
render() {
|
|
37
37
|
var _a, _b, _c;
|
|
38
|
-
const { mergedClsPrefix, mergedTheme, shortcuts, onRender,
|
|
38
|
+
const { mergedClsPrefix, mergedTheme, shortcuts, onRender, datePickerSlots, type } = this;
|
|
39
39
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
40
40
|
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class: [
|
|
41
41
|
`${mergedClsPrefix}-date-panel`,
|
|
@@ -45,11 +45,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
45
45
|
], onFocus: this.handlePanelFocus, onKeydown: this.handlePanelKeyDown },
|
|
46
46
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-calendar` },
|
|
47
47
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month` },
|
|
48
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.prevYear }, (0, _utils_1.resolveSlot)(
|
|
49
|
-
|
|
48
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.prevYear }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-year'], () => [
|
|
49
|
+
(0, vue_1.h)(icons_1.FastBackwardIcon, null)
|
|
50
|
+
])),
|
|
51
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__prev`, onClick: this.prevMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-month'], () => [
|
|
52
|
+
(0, vue_1.h)(icons_1.BackwardIcon, null)
|
|
53
|
+
])),
|
|
50
54
|
(0, vue_1.h)(panelHeader_1.default, { monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.calendarValue, onUpdateValue: this.onUpdateCalendarValue, mergedClsPrefix: mergedClsPrefix, calendarMonth: this.calendarMonth, calendarYear: this.calendarYear }),
|
|
51
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.nextMonth }, (0, _utils_1.resolveSlot)(
|
|
52
|
-
|
|
55
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.nextMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['next-month'], () => [
|
|
56
|
+
(0, vue_1.h)(icons_1.ForwardIcon, null)
|
|
57
|
+
])),
|
|
58
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-next`, onClick: this.nextYear }, (0, _utils_1.resolveSlot)(datePickerSlots['next-year'], () => [
|
|
59
|
+
(0, vue_1.h)(icons_1.FastForwardIcon, null)
|
|
60
|
+
]))),
|
|
53
61
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-weekdays` }, this.weekdays.map(weekday => ((0, vue_1.h)("div", { key: weekday, class: `${mergedClsPrefix}-date-panel-weekdays__day` }, weekday)))),
|
|
54
62
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-dates` }, this.dateArray.map((dateItem, i) => ((0, vue_1.h)("div", { "data-n-date": true, key: i, class: [
|
|
55
63
|
`${mergedClsPrefix}-date-panel-date`,
|
|
@@ -89,7 +97,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
89
97
|
})),
|
|
90
98
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
91
99
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear'))
|
|
92
|
-
? (0, _utils_1.
|
|
100
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.$slots.clear, {
|
|
93
101
|
onClear: this.handleClearClick,
|
|
94
102
|
text: this.locale.clear
|
|
95
103
|
}, () => [
|
|
@@ -97,7 +105,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
97
105
|
])
|
|
98
106
|
: null,
|
|
99
107
|
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('now'))
|
|
100
|
-
? (0, _utils_1.
|
|
108
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.$slots.now, {
|
|
101
109
|
onNow: this.handleNowClick,
|
|
102
110
|
text: this.locale.now
|
|
103
111
|
}, () => [
|
|
@@ -52,9 +52,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
52
52
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
53
53
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
54
54
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
55
|
-
datePickerSlots:
|
|
56
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
57
|
-
}>;
|
|
55
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
58
56
|
shortcuts: import("vue").ComputedRef<import("../interface").Shortcuts | undefined>;
|
|
59
57
|
startCalendarDateTime: import("vue").Ref<number, number>;
|
|
60
58
|
endCalendarDateTime: import("vue").Ref<number, number>;
|
|
@@ -26,7 +26,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
26
26
|
},
|
|
27
27
|
render() {
|
|
28
28
|
var _a, _b, _c;
|
|
29
|
-
const { mergedClsPrefix, mergedTheme, shortcuts, onRender,
|
|
29
|
+
const { mergedClsPrefix, mergedTheme, shortcuts, onRender, datePickerSlots } = this;
|
|
30
30
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
31
31
|
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class: [
|
|
32
32
|
`${mergedClsPrefix}-date-panel`,
|
|
@@ -36,11 +36,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
36
|
], onKeydown: this.handlePanelKeyDown, onFocus: this.handlePanelFocus },
|
|
37
37
|
(0, vue_1.h)("div", { ref: "startDatesElRef", class: `${mergedClsPrefix}-date-panel-calendar ${mergedClsPrefix}-date-panel-calendar--start` },
|
|
38
38
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month` },
|
|
39
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.startCalendarPrevYear }, (0, _utils_1.resolveSlot)(
|
|
40
|
-
|
|
39
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.startCalendarPrevYear }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-year'], () => [
|
|
40
|
+
(0, vue_1.h)(icons_1.FastBackwardIcon, null)
|
|
41
|
+
])),
|
|
42
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__prev`, onClick: this.startCalendarPrevMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-month'], () => [
|
|
43
|
+
(0, vue_1.h)(icons_1.BackwardIcon, null)
|
|
44
|
+
])),
|
|
41
45
|
(0, vue_1.h)(panelHeader_1.default, { monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.startCalendarDateTime, onUpdateValue: this.onUpdateStartCalendarValue, mergedClsPrefix: mergedClsPrefix, calendarMonth: this.startCalendarMonth, calendarYear: this.startCalendarYear }),
|
|
42
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.startCalendarNextMonth }, (0, _utils_1.resolveSlot)(
|
|
43
|
-
|
|
46
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.startCalendarNextMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['next-month'], () => [
|
|
47
|
+
(0, vue_1.h)(icons_1.ForwardIcon, null)
|
|
48
|
+
])),
|
|
49
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-next`, onClick: this.startCalendarNextYear }, (0, _utils_1.resolveSlot)(datePickerSlots['next-year'], () => [
|
|
50
|
+
(0, vue_1.h)(icons_1.FastForwardIcon, null)
|
|
51
|
+
]))),
|
|
44
52
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-weekdays` }, this.weekdays.map(weekday => ((0, vue_1.h)("div", { key: weekday, class: `${mergedClsPrefix}-date-panel-weekdays__day` }, weekday)))),
|
|
45
53
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel__divider` }),
|
|
46
54
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-dates` }, this.startDateArray.map((dateItem, i) => ((0, vue_1.h)("div", { "data-n-date": true, key: i, class: [
|
|
@@ -65,11 +73,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
65
73
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel__vertical-divider` }),
|
|
66
74
|
(0, vue_1.h)("div", { ref: "endDatesElRef", class: `${mergedClsPrefix}-date-panel-calendar ${mergedClsPrefix}-date-panel-calendar--end` },
|
|
67
75
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month` },
|
|
68
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.endCalendarPrevYear }, (0, _utils_1.resolveSlot)(
|
|
69
|
-
|
|
76
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.endCalendarPrevYear }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-year'], () => [
|
|
77
|
+
(0, vue_1.h)(icons_1.FastBackwardIcon, null)
|
|
78
|
+
])),
|
|
79
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__prev`, onClick: this.endCalendarPrevMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-month'], () => [
|
|
80
|
+
(0, vue_1.h)(icons_1.BackwardIcon, null)
|
|
81
|
+
])),
|
|
70
82
|
(0, vue_1.h)(panelHeader_1.default, { monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.endCalendarDateTime, onUpdateValue: this.onUpdateEndCalendarValue, mergedClsPrefix: mergedClsPrefix, calendarMonth: this.endCalendarMonth, calendarYear: this.endCalendarYear }),
|
|
71
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.endCalendarNextMonth }, (0, _utils_1.resolveSlot)(
|
|
72
|
-
|
|
83
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.endCalendarNextMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['next-month'], () => [
|
|
84
|
+
(0, vue_1.h)(icons_1.ForwardIcon, null)
|
|
85
|
+
])),
|
|
86
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-next`, onClick: this.endCalendarNextYear }, (0, _utils_1.resolveSlot)(datePickerSlots['next-year'], () => [
|
|
87
|
+
(0, vue_1.h)(icons_1.FastForwardIcon, null)
|
|
88
|
+
]))),
|
|
73
89
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-weekdays` }, this.weekdays.map(weekday => ((0, vue_1.h)("div", { key: weekday, class: `${mergedClsPrefix}-date-panel-weekdays__day` }, weekday)))),
|
|
74
90
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel__divider` }),
|
|
75
91
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-dates` }, this.endDateArray.map((dateItem, i) => ((0, vue_1.h)("div", { "data-n-date": true, key: i, class: [
|
|
@@ -107,7 +123,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
123
|
})),
|
|
108
124
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
109
125
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear'))
|
|
110
|
-
? (0, _utils_1.
|
|
126
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(datePickerSlots.clear, {
|
|
111
127
|
onClear: this.handleClearClick,
|
|
112
128
|
text: this.locale.clear
|
|
113
129
|
}, () => [
|
|
@@ -115,7 +131,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
115
131
|
])
|
|
116
132
|
: null,
|
|
117
133
|
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm'))
|
|
118
|
-
? (0, _utils_1.
|
|
134
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(datePickerSlots.confirm, {
|
|
119
135
|
onConfirm: this.handleConfirmClick,
|
|
120
136
|
disabled: this.isRangeInvalid || this.isSelecting,
|
|
121
137
|
text: this.locale.confirm
|
|
@@ -63,9 +63,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
63
63
|
handleVirtualListScroll: () => void;
|
|
64
64
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
65
65
|
dateInputValue: import("vue").Ref<string, string>;
|
|
66
|
-
datePickerSlots:
|
|
67
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
68
|
-
}>;
|
|
66
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
69
67
|
handleQuickMonthClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
70
68
|
justifyColumnsScrollState: (value?: number) => void;
|
|
71
69
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -26,7 +26,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
26
26
|
},
|
|
27
27
|
render() {
|
|
28
28
|
var _a, _b, _c, _d;
|
|
29
|
-
const { mergedClsPrefix, mergedTheme, shortcuts, timePickerProps,
|
|
29
|
+
const { mergedClsPrefix, mergedTheme, shortcuts, timePickerProps, datePickerSlots, onRender } = this;
|
|
30
30
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
31
31
|
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class: [
|
|
32
32
|
`${mergedClsPrefix}-date-panel`,
|
|
@@ -39,11 +39,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
39
39
|
(0, vue_1.h)(time_picker_1.NTimePicker, Object.assign({ size: this.timePickerSize, placeholder: this.locale.selectTime, format: this.timerPickerFormat }, (Array.isArray(timePickerProps) ? undefined : timePickerProps), { showIcon: false, to: false, theme: mergedTheme.peers.TimePicker, themeOverrides: mergedTheme.peerOverrides.TimePicker, value: Array.isArray(this.value) ? null : this.value, isHourDisabled: this.isHourDisabled, isMinuteDisabled: this.isMinuteDisabled, isSecondDisabled: this.isSecondDisabled, onUpdateValue: this.handleTimePickerChange, stateful: false }))),
|
|
40
40
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-calendar` },
|
|
41
41
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month` },
|
|
42
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.prevYear }, (0, _utils_1.resolveSlot)(
|
|
43
|
-
|
|
42
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.prevYear }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-year'], () => [
|
|
43
|
+
(0, vue_1.h)(icons_1.FastBackwardIcon, null)
|
|
44
|
+
])),
|
|
45
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__prev`, onClick: this.prevMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-month'], () => [
|
|
46
|
+
(0, vue_1.h)(icons_1.BackwardIcon, null)
|
|
47
|
+
])),
|
|
44
48
|
(0, vue_1.h)(panelHeader_1.default, { monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.calendarValue, onUpdateValue: this.onUpdateCalendarValue, mergedClsPrefix: mergedClsPrefix, calendarMonth: this.calendarMonth, calendarYear: this.calendarYear }),
|
|
45
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.nextMonth }, (0, _utils_1.resolveSlot)(
|
|
46
|
-
|
|
49
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.nextMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['next-month'], () => [
|
|
50
|
+
(0, vue_1.h)(icons_1.ForwardIcon, null)
|
|
51
|
+
])),
|
|
52
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-next`, onClick: this.nextYear }, (0, _utils_1.resolveSlot)(datePickerSlots['next-year'], () => [
|
|
53
|
+
(0, vue_1.h)(icons_1.FastForwardIcon, null)
|
|
54
|
+
]))),
|
|
47
55
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-weekdays` }, this.weekdays.map(weekday => ((0, vue_1.h)("div", { key: weekday, class: `${mergedClsPrefix}-date-panel-weekdays__day` }, weekday)))),
|
|
48
56
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-dates` }, this.dateArray.map((dateItem, i) => ((0, vue_1.h)("div", { "data-n-date": true, key: i, class: [
|
|
49
57
|
`${mergedClsPrefix}-date-panel-date`,
|
|
@@ -79,7 +87,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
79
87
|
})),
|
|
80
88
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
81
89
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear'))
|
|
82
|
-
? (0, _utils_1.
|
|
90
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.datePickerSlots.clear, {
|
|
83
91
|
onClear: this.clearSelectedDateTime,
|
|
84
92
|
text: this.locale.clear
|
|
85
93
|
}, () => [
|
|
@@ -87,7 +95,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
87
95
|
])
|
|
88
96
|
: null,
|
|
89
97
|
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('now'))
|
|
90
|
-
? (0, _utils_1.
|
|
98
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(datePickerSlots.now, {
|
|
91
99
|
onNow: this.handleNowClick,
|
|
92
100
|
text: this.locale.now
|
|
93
101
|
}, () => [
|
|
@@ -95,7 +103,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
95
103
|
])
|
|
96
104
|
: null,
|
|
97
105
|
((_d = this.actions) === null || _d === void 0 ? void 0 : _d.includes('confirm'))
|
|
98
|
-
? (0, _utils_1.
|
|
106
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(datePickerSlots.confirm, {
|
|
99
107
|
onConfirm: this.handleConfirmClick,
|
|
100
108
|
disabled: this.isDateInvalid,
|
|
101
109
|
text: this.locale.confirm
|
|
@@ -52,9 +52,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
52
52
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
53
53
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
54
54
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
55
|
-
datePickerSlots:
|
|
56
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
57
|
-
}>;
|
|
55
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
58
56
|
shortcuts: import("vue").ComputedRef<import("../interface").Shortcuts | undefined>;
|
|
59
57
|
startCalendarDateTime: import("vue").Ref<number, number>;
|
|
60
58
|
endCalendarDateTime: import("vue").Ref<number, number>;
|
|
@@ -28,7 +28,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
28
28
|
},
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
const { mergedClsPrefix, mergedTheme, shortcuts, timePickerProps, onRender,
|
|
31
|
+
const { mergedClsPrefix, mergedTheme, shortcuts, timePickerProps, onRender, datePickerSlots } = this;
|
|
32
32
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
33
33
|
return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: 0, class: [
|
|
34
34
|
`${mergedClsPrefix}-date-panel`,
|
|
@@ -47,11 +47,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
47
47
|
: timePickerProps), { disabled: this.isSelecting, showIcon: false, theme: mergedTheme.peers.TimePicker, themeOverrides: mergedTheme.peerOverrides.TimePicker, to: false, stateful: false, value: this.endTimeValue, isHourDisabled: this.isEndHourDisabled, isMinuteDisabled: this.isEndMinuteDisabled, isSecondDisabled: this.isEndSecondDisabled, onUpdateValue: this.handleEndTimePickerChange }))),
|
|
48
48
|
(0, vue_1.h)("div", { ref: "startDatesElRef", class: `${mergedClsPrefix}-date-panel-calendar ${mergedClsPrefix}-date-panel-calendar--start` },
|
|
49
49
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month` },
|
|
50
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.startCalendarPrevYear }, (0, _utils_1.resolveSlot)(
|
|
51
|
-
|
|
50
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.startCalendarPrevYear }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-year'], () => [
|
|
51
|
+
(0, vue_1.h)(icons_1.FastBackwardIcon, null)
|
|
52
|
+
])),
|
|
53
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__prev`, onClick: this.startCalendarPrevMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-month'], () => [
|
|
54
|
+
(0, vue_1.h)(icons_1.BackwardIcon, null)
|
|
55
|
+
])),
|
|
52
56
|
(0, vue_1.h)(panelHeader_1.default, { monthYearSeparator: this.calendarHeaderMonthYearSeparator, monthBeforeYear: this.calendarMonthBeforeYear, value: this.startCalendarDateTime, onUpdateValue: this.onUpdateStartCalendarValue, mergedClsPrefix: mergedClsPrefix, calendarMonth: this.startCalendarMonth, calendarYear: this.startCalendarYear }),
|
|
53
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.startCalendarNextMonth }, (0, _utils_1.resolveSlot)(
|
|
54
|
-
|
|
57
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.startCalendarNextMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['next-month'], () => [
|
|
58
|
+
(0, vue_1.h)(icons_1.ForwardIcon, null)
|
|
59
|
+
])),
|
|
60
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-next`, onClick: this.startCalendarNextYear }, (0, _utils_1.resolveSlot)(datePickerSlots['next-year'], () => [
|
|
61
|
+
(0, vue_1.h)(icons_1.FastForwardIcon, null)
|
|
62
|
+
]))),
|
|
55
63
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-weekdays` }, this.weekdays.map(weekday => ((0, vue_1.h)("div", { key: weekday, class: `${mergedClsPrefix}-date-panel-weekdays__day` }, weekday)))),
|
|
56
64
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel__divider` }),
|
|
57
65
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-dates` }, this.startDateArray.map((dateItem, i) => {
|
|
@@ -83,11 +91,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
83
91
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel__vertical-divider` }),
|
|
84
92
|
(0, vue_1.h)("div", { ref: "endDatesElRef", class: `${mergedClsPrefix}-date-panel-calendar ${mergedClsPrefix}-date-panel-calendar--end` },
|
|
85
93
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month` },
|
|
86
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.endCalendarPrevYear }, (0, _utils_1.resolveSlot)(
|
|
87
|
-
|
|
94
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-prev`, onClick: this.endCalendarPrevYear }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-year'], () => [
|
|
95
|
+
(0, vue_1.h)(icons_1.FastBackwardIcon, null)
|
|
96
|
+
])),
|
|
97
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__prev`, onClick: this.endCalendarPrevMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['prev-month'], () => [
|
|
98
|
+
(0, vue_1.h)(icons_1.BackwardIcon, null)
|
|
99
|
+
])),
|
|
88
100
|
(0, vue_1.h)(panelHeader_1.default, { monthBeforeYear: this.calendarMonthBeforeYear, value: this.endCalendarDateTime, onUpdateValue: this.onUpdateEndCalendarValue, mergedClsPrefix: mergedClsPrefix, monthYearSeparator: this.calendarHeaderMonthYearSeparator, calendarMonth: this.endCalendarMonth, calendarYear: this.endCalendarYear }),
|
|
89
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.endCalendarNextMonth }, (0, _utils_1.resolveSlot)(
|
|
90
|
-
|
|
101
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__next`, onClick: this.endCalendarNextMonth }, (0, _utils_1.resolveSlot)(datePickerSlots['next-month'], () => [
|
|
102
|
+
(0, vue_1.h)(icons_1.ForwardIcon, null)
|
|
103
|
+
])),
|
|
104
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month__fast-next`, onClick: this.endCalendarNextYear }, (0, _utils_1.resolveSlot)(datePickerSlots['next-year'], () => [
|
|
105
|
+
(0, vue_1.h)(icons_1.FastForwardIcon, null)
|
|
106
|
+
]))),
|
|
91
107
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-weekdays` }, this.weekdays.map(weekday => ((0, vue_1.h)("div", { key: weekday, class: `${mergedClsPrefix}-date-panel-weekdays__day` }, weekday)))),
|
|
92
108
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel__divider` }),
|
|
93
109
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-dates` }, this.endDateArray.map((dateItem, i) => {
|
|
@@ -132,7 +148,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
132
148
|
})),
|
|
133
149
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
134
150
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear'))
|
|
135
|
-
? (0, _utils_1.
|
|
151
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(datePickerSlots.clear, {
|
|
136
152
|
onClear: this.handleClearClick,
|
|
137
153
|
text: this.locale.clear
|
|
138
154
|
}, () => [
|
|
@@ -140,7 +156,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
140
156
|
])
|
|
141
157
|
: null,
|
|
142
158
|
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm'))
|
|
143
|
-
? (0, _utils_1.
|
|
159
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(datePickerSlots.confirm, {
|
|
144
160
|
onConfirm: this.handleConfirmClick,
|
|
145
161
|
disabled: this.isRangeInvalid || this.isSelecting,
|
|
146
162
|
text: this.locale.confirm
|
|
@@ -71,9 +71,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
71
71
|
handleVirtualListScroll: () => void;
|
|
72
72
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
73
73
|
dateInputValue: import("vue").Ref<string, string>;
|
|
74
|
-
datePickerSlots:
|
|
75
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
76
|
-
}>;
|
|
74
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
77
75
|
handleQuickMonthClick: (dateItem: MonthItem | YearItem | QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
78
76
|
justifyColumnsScrollState: (value?: number) => void;
|
|
79
77
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -108,9 +108,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
108
108
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-${type}-calendar__padding` })
|
|
109
109
|
]
|
|
110
110
|
}))) : null),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
})
|
|
111
|
+
(0, _utils_1.resolveWrappedSlot)(this.datePickerSlots.footer, (children) => {
|
|
112
|
+
return children ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-footer` }, children)) : null;
|
|
113
|
+
}),
|
|
114
114
|
(actions === null || actions === void 0 ? void 0 : actions.length) || shortcuts ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions` },
|
|
115
115
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__prefix` }, shortcuts
|
|
116
116
|
&& Object.keys(shortcuts).map((key) => {
|
|
@@ -125,7 +125,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
125
125
|
})),
|
|
126
126
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
127
127
|
(actions === null || actions === void 0 ? void 0 : actions.includes('clear'))
|
|
128
|
-
? (0, _utils_1.
|
|
128
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.datePickerSlots.clear, {
|
|
129
129
|
onClear: this.handleClearClick,
|
|
130
130
|
text: this.locale.clear
|
|
131
131
|
}, () => [
|
|
@@ -133,7 +133,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
133
133
|
])
|
|
134
134
|
: null,
|
|
135
135
|
(actions === null || actions === void 0 ? void 0 : actions.includes('now'))
|
|
136
|
-
? (0, _utils_1.
|
|
136
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.datePickerSlots.now, {
|
|
137
137
|
onNow: this.handleNowClick,
|
|
138
138
|
text: this.locale.now
|
|
139
139
|
}, () => [
|
|
@@ -141,7 +141,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
141
141
|
])
|
|
142
142
|
: null,
|
|
143
143
|
(actions === null || actions === void 0 ? void 0 : actions.includes('confirm'))
|
|
144
|
-
? (0, _utils_1.
|
|
144
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.datePickerSlots.confirm, {
|
|
145
145
|
onConfirm: this.handleConfirmClick,
|
|
146
146
|
disabled: this.isDateInvalid,
|
|
147
147
|
text: this.locale.confirm
|
|
@@ -59,9 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
59
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
60
60
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
61
61
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
62
|
-
datePickerSlots:
|
|
63
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
64
|
-
}>;
|
|
62
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
65
63
|
shortcuts: import("vue").ComputedRef<import("../interface").Shortcuts | undefined>;
|
|
66
64
|
startCalendarDateTime: import("vue").Ref<number, number>;
|
|
67
65
|
endCalendarDateTime: import("vue").Ref<number, number>;
|
|
@@ -102,7 +102,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
102
102
|
type === 'monthrange' && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-month-calendar__padding` }))
|
|
103
103
|
]
|
|
104
104
|
}))) : null)),
|
|
105
|
-
|
|
105
|
+
(0, _utils_1.resolveWrappedSlot)(this.datePickerSlots.footer, (children) => {
|
|
106
|
+
return children ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-footer` }, children)) : null;
|
|
107
|
+
}),
|
|
106
108
|
((_a = this.actions) === null || _a === void 0 ? void 0 : _a.length) || shortcuts ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions` },
|
|
107
109
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__prefix` }, shortcuts
|
|
108
110
|
&& Object.keys(shortcuts).map((key) => {
|
|
@@ -118,7 +120,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
118
120
|
})),
|
|
119
121
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-date-panel-actions__suffix` },
|
|
120
122
|
((_b = this.actions) === null || _b === void 0 ? void 0 : _b.includes('clear'))
|
|
121
|
-
? (0, _utils_1.
|
|
123
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.datePickerSlots.clear, {
|
|
122
124
|
onClear: this.handleClearClick,
|
|
123
125
|
text: this.locale.clear
|
|
124
126
|
}, () => [
|
|
@@ -126,7 +128,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
126
128
|
])
|
|
127
129
|
: null,
|
|
128
130
|
((_c = this.actions) === null || _c === void 0 ? void 0 : _c.includes('confirm'))
|
|
129
|
-
? (0, _utils_1.
|
|
131
|
+
? (0, _utils_1.resolveSlotWithTypedProps)(this.datePickerSlots.confirm, {
|
|
130
132
|
disabled: this.isRangeInvalid,
|
|
131
133
|
onConfirm: this.handleConfirmClick,
|
|
132
134
|
text: this.locale.confirm
|
|
@@ -93,9 +93,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
93
|
handleVirtualListScroll: () => void;
|
|
94
94
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
95
95
|
dateInputValue: import("vue").Ref<string, string>;
|
|
96
|
-
datePickerSlots:
|
|
97
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
98
|
-
}>;
|
|
96
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
99
97
|
handleQuickMonthClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
100
98
|
justifyColumnsScrollState: (value?: number) => void;
|
|
101
99
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -2176,9 +2174,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2176
2174
|
handleVirtualListScroll: () => void;
|
|
2177
2175
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
2178
2176
|
dateInputValue: import("vue").Ref<string, string>;
|
|
2179
|
-
datePickerSlots:
|
|
2180
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
2181
|
-
}>;
|
|
2177
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
2182
2178
|
handleQuickMonthClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
2183
2179
|
justifyColumnsScrollState: (value?: number) => void;
|
|
2184
2180
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -4252,9 +4248,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4252
4248
|
handleVirtualListScroll: () => void;
|
|
4253
4249
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
4254
4250
|
dateInputValue: import("vue").Ref<string, string>;
|
|
4255
|
-
datePickerSlots:
|
|
4256
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
4257
|
-
}>;
|
|
4251
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
4258
4252
|
handleQuickMonthClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
4259
4253
|
justifyColumnsScrollState: (value?: number) => void;
|
|
4260
4254
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -6335,9 +6329,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
6335
6329
|
handleVirtualListScroll: () => void;
|
|
6336
6330
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
6337
6331
|
dateInputValue: import("vue").Ref<string, string>;
|
|
6338
|
-
datePickerSlots:
|
|
6339
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
6340
|
-
}>;
|
|
6332
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
6341
6333
|
handleQuickMonthClick: (dateItem: import("../utils").MonthItem | import("../utils").YearItem | import("../utils").QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
6342
6334
|
justifyColumnsScrollState: (value?: number) => void;
|
|
6343
6335
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -63,9 +63,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
63
63
|
handleVirtualListScroll: () => void;
|
|
64
64
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
65
65
|
dateInputValue: import("vue").Ref<string, string>;
|
|
66
|
-
datePickerSlots:
|
|
67
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
68
|
-
}>;
|
|
66
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
69
67
|
handleQuickMonthClick: (dateItem: MonthItem | YearItem | QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
70
68
|
justifyColumnsScrollState: (value?: number) => void;
|
|
71
69
|
calendarValue: import("vue").Ref<number, number>;
|
|
@@ -58,9 +58,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
58
58
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large", "small" | "medium" | "large">;
|
|
59
59
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
60
60
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
61
|
-
datePickerSlots:
|
|
62
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
63
|
-
}>;
|
|
61
|
+
datePickerSlots: import("../DatePicker").DatePickerSlots;
|
|
64
62
|
shortcuts: import("vue").ComputedRef<Shortcuts | undefined>;
|
|
65
63
|
startCalendarDateTime: import("vue").Ref<number, number>;
|
|
66
64
|
endCalendarDateTime: import("vue").Ref<number, number>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { FollowerPlacement } from 'vueuc';
|
|
3
3
|
import type { MaybeArray } from '../../_utils';
|
|
4
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
4
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
5
5
|
import type { TimePickerProps } from '../../time-picker';
|
|
6
6
|
import type { DatePickerType } from './config';
|
|
7
7
|
import type { DefaultTime, FirstDayOfWeek, FormattedValue, IsDateDisabled, IsTimeDisabled, OnConfirm, OnUpdateFormattedValue, OnUpdateValue, Shortcuts, Value } from './interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { descriptionsProps, default as NDescriptions } from './src/Descriptions';
|
|
2
|
-
export type { DescriptionProps, DescriptionsProps } from './src/Descriptions';
|
|
2
|
+
export type { DescriptionProps, DescriptionsProps, DescriptionsSlots } from './src/Descriptions';
|
|
3
3
|
export { descriptionsItemProps, default as NDescriptionsItem } from './src/DescriptionsItem';
|
|
4
|
-
export type { DescriptionItemProps } from './src/DescriptionsItem';
|
|
4
|
+
export type { DescriptionItemProps, DescriptionItemSlots } from './src/DescriptionsItem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType } from 'vue';
|
|
2
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const descriptionsProps: {
|
|
4
4
|
readonly title: StringConstructor;
|
|
5
5
|
readonly column: {
|
|
@@ -128,6 +128,10 @@ export declare const descriptionsProps: {
|
|
|
128
128
|
export type DescriptionsProps = ExtractPublicPropTypes<typeof descriptionsProps>;
|
|
129
129
|
/** @deprecated You should use `DescriptionsProps` */
|
|
130
130
|
export type DescriptionProps = DescriptionsProps;
|
|
131
|
+
export interface DescriptionsSlots {
|
|
132
|
+
default?: () => VNode[];
|
|
133
|
+
header?: () => VNode[];
|
|
134
|
+
}
|
|
131
135
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
132
136
|
readonly title: StringConstructor;
|
|
133
137
|
readonly column: {
|
|
@@ -408,7 +412,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
408
412
|
readonly column: number;
|
|
409
413
|
readonly separator: string;
|
|
410
414
|
readonly bordered: boolean;
|
|
411
|
-
readonly labelAlign: "left" | "right" | "center";
|
|
412
415
|
readonly labelPlacement: "left" | "top";
|
|
413
|
-
|
|
416
|
+
readonly labelAlign: "left" | "right" | "center";
|
|
417
|
+
}, SlotsType<DescriptionsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
414
418
|
export default _default;
|
|
@@ -31,6 +31,7 @@ exports.descriptionsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
|
|
|
31
31
|
exports.default = (0, vue_1.defineComponent)({
|
|
32
32
|
name: 'Descriptions',
|
|
33
33
|
props: exports.descriptionsProps,
|
|
34
|
+
slots: Object,
|
|
34
35
|
setup(props) {
|
|
35
36
|
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
36
37
|
const themeRef = (0, _mixins_1.useTheme)('Descriptions', '-descriptions', index_cssr_1.default, styles_1.descriptionsLight, props, mergedClsPrefixRef);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType } from 'vue';
|
|
2
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const descriptionsItemProps: {
|
|
4
4
|
readonly label: StringConstructor;
|
|
5
5
|
readonly span: {
|
|
@@ -12,6 +12,10 @@ export declare const descriptionsItemProps: {
|
|
|
12
12
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
13
13
|
};
|
|
14
14
|
export type DescriptionItemProps = ExtractPublicPropTypes<typeof descriptionsItemProps>;
|
|
15
|
+
export interface DescriptionItemSlots {
|
|
16
|
+
default?: () => VNode[];
|
|
17
|
+
label?: () => VNode[];
|
|
18
|
+
}
|
|
15
19
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
20
|
readonly label: StringConstructor;
|
|
17
21
|
readonly span: {
|
|
@@ -34,5 +38,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
34
38
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
35
39
|
}>> & Readonly<{}>, {
|
|
36
40
|
readonly span: number;
|
|
37
|
-
},
|
|
41
|
+
}, SlotsType<DescriptionItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
42
|
export default _default;
|
package/lib/dialog/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { useDialog, useDialogReactiveList } from './src/composables';
|
|
2
2
|
export { NDialog } from './src/Dialog';
|
|
3
|
+
export type { DialogSlots } from './src/Dialog';
|
|
3
4
|
export { dialogProps } from './src/dialogProps';
|
|
4
5
|
export type { DialogProps } from './src/dialogProps';
|
|
5
6
|
export { dialogProviderProps, NDialogProvider } from './src/DialogProvider';
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import { type CSSProperties } from 'vue';
|
|
1
|
+
import { type CSSProperties, type SlotsType, type VNode } from 'vue';
|
|
2
|
+
export interface DialogSlots {
|
|
3
|
+
action?: () => VNode[];
|
|
4
|
+
default?: () => VNode[];
|
|
5
|
+
header?: () => VNode[];
|
|
6
|
+
icon?: () => VNode[];
|
|
7
|
+
close?: () => VNode[];
|
|
8
|
+
}
|
|
2
9
|
export declare const NDialog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
10
|
icon: import("vue").PropType<() => import("vue").VNodeChild>;
|
|
4
11
|
type: {
|
|
@@ -1780,4 +1787,4 @@ export declare const NDialog: import("vue").DefineComponent<import("vue").Extrac
|
|
|
1780
1787
|
bordered: boolean;
|
|
1781
1788
|
showIcon: boolean;
|
|
1782
1789
|
closable: boolean;
|
|
1783
|
-
},
|
|
1790
|
+
}, SlotsType<DialogSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/lib/dialog/src/Dialog.js
CHANGED
|
@@ -28,6 +28,7 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
28
28
|
'Confirm' // deprecated
|
|
29
29
|
],
|
|
30
30
|
props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), dialogProps_1.dialogProps),
|
|
31
|
+
slots: Object,
|
|
31
32
|
setup(props) {
|
|
32
33
|
const { mergedComponentPropsRef, mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
33
34
|
const rtlEnabledRef = (0, _mixins_1.useRtl)('Dialog', mergedRtlRef, mergedClsPrefixRef);
|