naive-ui 2.25.0 → 2.25.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/es/_internal/clear/src/Clear.d.ts +0 -1
- package/es/_internal/clear/src/Clear.js +1 -3
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/icons/replaceable.js +5 -4
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
- package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -18
- package/es/_internal/select-menu/src/SelectMenu.js +13 -10
- package/es/_internal/selection/src/Selection.d.ts +31 -26
- package/es/_internal/selection/src/Selection.js +79 -68
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.d.ts +6 -3
- package/es/_mixins/use-config.js +5 -1
- package/es/_mixins/use-css-vars-class.d.ts +6 -2
- package/es/_mixins/use-css-vars-class.js +31 -15
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +5 -2
- package/es/_utils/vue/resolve-slot.js +4 -4
- package/es/alert/src/Alert.d.ts +7 -5
- package/es/alert/src/Alert.js +36 -21
- package/es/anchor/src/AnchorAdapter.js +9 -3
- package/es/auto-complete/src/AutoComplete.d.ts +4 -2
- package/es/auto-complete/src/AutoComplete.js +28 -15
- package/es/avatar/src/Avatar.d.ts +3 -1
- package/es/avatar/src/Avatar.js +70 -35
- package/es/back-top/src/BackTop.d.ts +12 -49
- package/es/back-top/src/BackTop.js +60 -58
- package/es/badge/src/Badge.d.ts +16 -41
- package/es/badge/src/Badge.js +41 -31
- package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/es/breadcrumb/src/Breadcrumb.js +24 -16
- package/es/button/src/Button.d.ts +8 -6
- package/es/button/src/Button.js +20 -21
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/calendar/src/Calendar.d.ts +3 -1
- package/es/calendar/src/Calendar.js +37 -30
- package/es/card/src/Card.d.ts +3 -1
- package/es/card/src/Card.js +57 -43
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- package/es/carousel/src/Carousel.d.ts +3 -1
- package/es/carousel/src/Carousel.js +29 -20
- package/es/cascader/src/Cascader.d.ts +46 -31
- package/es/cascader/src/Cascader.js +53 -31
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.js +2 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -3
- package/es/cascader/src/interface.d.ts +1 -0
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/Checkbox.d.ts +6 -4
- package/es/checkbox/src/Checkbox.js +41 -32
- package/es/checkbox/src/styles/index.cssr.js +17 -17
- package/es/code/src/Code.d.ts +3 -1
- package/es/code/src/Code.js +33 -27
- package/es/collapse/src/Collapse.d.ts +3 -1
- package/es/collapse/src/Collapse.js +24 -16
- package/es/color-picker/src/ColorPicker.d.ts +3 -1
- package/es/color-picker/src/ColorPicker.js +20 -7
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +4 -4
- package/es/config-provider/src/ConfigProvider.js +3 -3
- package/es/config-provider/src/internal-interface.d.ts +3 -1
- package/es/countdown/src/Countdown.d.ts +0 -3
- package/es/countdown/src/Countdown.js +0 -1
- package/es/data-table/src/DataTable.d.ts +77 -75
- package/es/data-table/src/DataTable.js +54 -48
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/HeaderButton/SortButton.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +7 -6
- package/es/data-table/src/TableParts/Body.js +4 -2
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/use-table-data.js +19 -7
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/descriptions/src/Descriptions.d.ts +15 -2
- package/es/descriptions/src/Descriptions.js +45 -28
- package/es/descriptions/src/styles/index.cssr.js +2 -1
- package/es/descriptions/styles/light.d.ts +1 -0
- package/es/descriptions/styles/light.js +2 -2
- package/es/dialog/src/Dialog.d.ts +7 -5
- package/es/dialog/src/Dialog.js +57 -56
- package/es/dialog/src/DialogEnvironment.d.ts +5 -5
- package/es/dialog/src/DialogEnvironment.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/src/dialogProps.d.ts +2 -2
- package/es/divider/src/Divider.d.ts +3 -1
- package/es/divider/src/Divider.js +20 -11
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +7 -5
- package/es/dynamic-tags/src/DynamicTags.js +17 -10
- package/es/element/src/Element.d.ts +3 -1
- package/es/element/src/Element.js +18 -11
- package/es/empty/src/Empty.d.ts +3 -1
- package/es/empty/src/Empty.js +28 -16
- package/es/form/src/FormItem.d.ts +4 -4
- package/es/form/src/FormItem.js +1 -2
- package/es/form/src/FormItemCol.d.ts +3 -3
- package/es/form/src/FormItemGridItem.d.ts +5 -5
- package/es/form/src/FormItemRow.d.ts +3 -3
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/grid/src/Grid.js +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +6 -6
- package/es/image/src/Image.d.ts +1 -1
- package/es/input/src/Input.d.ts +7 -4
- package/es/input/src/Input.js +96 -84
- package/es/input/src/styles/input.cssr.js +2 -2
- package/es/input-number/src/InputNumber.d.ts +7 -18
- package/es/input-number/src/InputNumber.js +79 -20
- package/es/layout/src/Layout.d.ts +8 -2
- package/es/layout/src/Layout.js +17 -10
- package/es/layout/src/LayoutContent.d.ts +4 -1
- package/es/layout/src/LayoutFooter.d.ts +3 -1
- package/es/layout/src/LayoutFooter.js +28 -19
- package/es/layout/src/LayoutHeader.d.ts +3 -1
- package/es/layout/src/LayoutHeader.js +28 -19
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/layout/src/LayoutSider.js +37 -29
- package/es/locales/common/deDE.js +13 -15
- package/es/locales/common/enGB.d.ts +109 -0
- package/es/locales/common/enGB.js +109 -0
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/esAR.js +2 -2
- package/es/locales/common/frFR.js +8 -9
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/common/skSK.d.ts +3 -0
- package/es/locales/common/skSK.js +110 -0
- package/es/locales/date/enGB.d.ts +3 -0
- package/es/locales/date/enGB.js +6 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/date/skSK.d.ts +3 -0
- package/es/locales/date/skSK.js +6 -0
- package/es/locales/index.d.ts +8 -0
- package/es/locales/index.js +8 -0
- package/es/log/src/Log.d.ts +4 -1
- package/es/log/src/Log.js +20 -15
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +4 -0
- package/es/menu/src/Menu.d.ts +4 -2
- package/es/menu/src/Menu.js +68 -63
- package/es/modal/src/BodyWrapper.d.ts +7 -6
- package/es/modal/src/Modal.d.ts +19 -22
- package/es/modal/src/Modal.js +41 -32
- package/es/modal/src/presetProps.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +4 -4
- package/es/notification/src/NotificationEnvironment.d.ts +4 -4
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/notification/src/styles/index.cssr.js +6 -5
- package/es/page-header/src/PageHeader.d.ts +3 -1
- package/es/page-header/src/PageHeader.js +27 -18
- package/es/pagination/src/Pagination.d.ts +46 -34
- package/es/pagination/src/Pagination.js +59 -52
- package/es/pagination/styles/light.d.ts +3 -3
- package/es/popover/src/PopoverBody.js +10 -4
- package/es/progress/src/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +14 -5
- package/es/progress/src/Progress.js +45 -25
- package/es/progress/src/styles/index.cssr.js +1 -1
- package/es/radio/src/Radio.d.ts +3 -1
- package/es/radio/src/Radio.js +32 -23
- package/es/radio/src/RadioGroup.d.ts +3 -1
- package/es/radio/src/RadioGroup.js +31 -22
- package/es/rate/src/Rate.d.ts +3 -1
- package/es/rate/src/Rate.js +44 -23
- package/es/result/src/Result.d.ts +8 -6
- package/es/result/src/Result.js +36 -19
- package/es/scrollbar/src/ScrollBar.d.ts +12 -1
- package/es/scrollbar/src/ScrollBar.js +4 -0
- package/es/select/src/Select.d.ts +45 -31
- package/es/select/src/Select.js +14 -8
- package/es/select/styles/light.d.ts +3 -3
- package/es/spin/src/Spin.d.ts +3 -1
- package/es/spin/src/Spin.js +31 -21
- package/es/statistic/src/Statistic.d.ts +3 -1
- package/es/statistic/src/Statistic.js +29 -21
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.d.ts +13 -1
- package/es/switch/src/Switch.js +85 -60
- package/es/switch/src/styles/index.cssr.js +21 -8
- package/es/switch/styles/dark.js +2 -2
- package/es/switch/styles/light.d.ts +1 -0
- package/es/switch/styles/light.js +2 -2
- package/es/table/src/Table.d.ts +3 -1
- package/es/table/src/Table.js +40 -29
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/Tabs.d.ts +25 -23
- package/es/tabs/src/Tabs.js +50 -44
- package/es/tabs/src/styles/index.cssr.js +77 -77
- package/es/tag/src/Tag.d.ts +7 -5
- package/es/tag/src/Tag.js +59 -42
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.js +1 -1
- package/es/theme-editor/src/ThemeEditor.js +4 -3
- package/es/themes/dark.js +3 -1
- package/es/themes/light.js +3 -1
- package/es/thing/src/Thing.js +10 -3
- package/es/time-picker/src/TimePicker.d.ts +4 -0
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/Tree.js +8 -4
- package/es/tree/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +43 -30
- package/es/tree-select/src/TreeSelect.js +6 -2
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/a.d.ts +3 -1
- package/es/typography/src/a.js +18 -10
- package/es/typography/src/blockquote.d.ts +3 -1
- package/es/typography/src/blockquote.js +21 -12
- package/es/typography/src/create-header.d.ts +7 -5
- package/es/typography/src/create-header.js +25 -16
- package/es/typography/src/headers.d.ts +36 -24
- package/es/typography/src/hr.d.ts +3 -1
- package/es/typography/src/hr.js +18 -10
- package/es/typography/src/ol.d.ts +3 -1
- package/es/typography/src/ol.js +23 -14
- package/es/typography/src/p.d.ts +3 -1
- package/es/typography/src/p.js +23 -15
- package/es/typography/src/text.d.ts +3 -1
- package/es/typography/src/text.js +31 -23
- package/es/typography/src/ul.d.ts +3 -1
- package/es/typography/src/ul.js +23 -14
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/upload/src/interface.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +2 -0
- package/es/watermark/index.js +1 -0
- package/es/watermark/src/Watermark.d.ts +285 -0
- package/es/watermark/src/Watermark.js +159 -0
- package/es/watermark/src/styles/index.cssr.d.ts +2 -0
- package/es/watermark/src/styles/index.cssr.js +14 -0
- package/es/watermark/styles/dark.d.ts +3 -0
- package/es/watermark/styles/dark.js +12 -0
- package/es/watermark/styles/index.d.ts +3 -0
- package/es/watermark/styles/index.js +2 -0
- package/es/watermark/styles/light.d.ts +5 -0
- package/es/watermark/styles/light.js +13 -0
- package/lib/_internal/clear/src/Clear.d.ts +0 -1
- package/lib/_internal/clear/src/Clear.js +0 -2
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/icons/replaceable.js +4 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -18
- package/lib/_internal/select-menu/src/SelectMenu.js +12 -9
- package/lib/_internal/selection/src/Selection.d.ts +31 -26
- package/lib/_internal/selection/src/Selection.js +78 -67
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +2 -2
- package/lib/_mixins/use-config.d.ts +6 -3
- package/lib/_mixins/use-config.js +5 -1
- package/lib/_mixins/use-css-vars-class.d.ts +6 -2
- package/lib/_mixins/use-css-vars-class.js +33 -17
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/resolve-slot.d.ts +5 -2
- package/lib/_utils/vue/resolve-slot.js +4 -4
- package/lib/alert/src/Alert.d.ts +7 -5
- package/lib/alert/src/Alert.js +34 -19
- package/lib/anchor/src/AnchorAdapter.js +8 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +4 -2
- package/lib/auto-complete/src/AutoComplete.js +27 -14
- package/lib/avatar/src/Avatar.d.ts +3 -1
- package/lib/avatar/src/Avatar.js +68 -33
- package/lib/back-top/src/BackTop.d.ts +12 -49
- package/lib/back-top/src/BackTop.js +57 -55
- package/lib/badge/src/Badge.d.ts +16 -41
- package/lib/badge/src/Badge.js +39 -29
- package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/lib/breadcrumb/src/Breadcrumb.js +23 -15
- package/lib/button/src/Button.d.ts +8 -6
- package/lib/button/src/Button.js +18 -19
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/calendar/src/Calendar.d.ts +3 -1
- package/lib/calendar/src/Calendar.js +36 -29
- package/lib/card/src/Card.d.ts +3 -1
- package/lib/card/src/Card.js +55 -41
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- package/lib/carousel/src/Carousel.d.ts +3 -1
- package/lib/carousel/src/Carousel.js +27 -18
- package/lib/cascader/src/Cascader.d.ts +46 -31
- package/lib/cascader/src/Cascader.js +52 -30
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.js +2 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -3
- package/lib/cascader/src/interface.d.ts +1 -0
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.d.ts +6 -4
- package/lib/checkbox/src/Checkbox.js +40 -31
- package/lib/checkbox/src/styles/index.cssr.js +17 -17
- package/lib/code/src/Code.d.ts +3 -1
- package/lib/code/src/Code.js +32 -26
- package/lib/collapse/src/Collapse.d.ts +3 -1
- package/lib/collapse/src/Collapse.js +23 -15
- package/lib/color-picker/src/ColorPicker.d.ts +3 -1
- package/lib/color-picker/src/ColorPicker.js +19 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/src/ConfigProvider.js +3 -3
- package/lib/config-provider/src/internal-interface.d.ts +3 -1
- package/lib/countdown/src/Countdown.d.ts +0 -3
- package/lib/countdown/src/Countdown.js +0 -1
- package/lib/data-table/src/DataTable.d.ts +77 -75
- package/lib/data-table/src/DataTable.js +53 -47
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +7 -6
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +19 -7
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/descriptions/src/Descriptions.d.ts +15 -2
- package/lib/descriptions/src/Descriptions.js +44 -27
- package/lib/descriptions/src/styles/index.cssr.js +2 -1
- package/lib/descriptions/styles/light.d.ts +1 -0
- package/lib/descriptions/styles/light.js +2 -2
- package/lib/dialog/src/Dialog.d.ts +7 -5
- package/lib/dialog/src/Dialog.js +55 -54
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/src/dialogProps.d.ts +2 -2
- package/lib/divider/src/Divider.d.ts +3 -1
- package/lib/divider/src/Divider.js +19 -10
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -5
- package/lib/dynamic-tags/src/DynamicTags.js +16 -9
- package/lib/element/src/Element.d.ts +3 -1
- package/lib/element/src/Element.js +17 -10
- package/lib/empty/src/Empty.d.ts +3 -1
- package/lib/empty/src/Empty.js +27 -15
- package/lib/form/src/FormItem.d.ts +4 -4
- package/lib/form/src/FormItem.js +1 -2
- package/lib/form/src/FormItemCol.d.ts +3 -3
- package/lib/form/src/FormItemGridItem.d.ts +5 -5
- package/lib/form/src/FormItemRow.d.ts +3 -3
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/grid/src/Grid.js +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +5 -5
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/input/src/Input.d.ts +7 -4
- package/lib/input/src/Input.js +95 -83
- package/lib/input/src/styles/input.cssr.js +2 -2
- package/lib/input-number/src/InputNumber.d.ts +7 -18
- package/lib/input-number/src/InputNumber.js +76 -17
- package/lib/layout/src/Layout.d.ts +8 -2
- package/lib/layout/src/Layout.js +16 -9
- package/lib/layout/src/LayoutContent.d.ts +4 -1
- package/lib/layout/src/LayoutFooter.d.ts +3 -1
- package/lib/layout/src/LayoutFooter.js +27 -18
- package/lib/layout/src/LayoutHeader.d.ts +3 -1
- package/lib/layout/src/LayoutHeader.js +27 -18
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/layout/src/LayoutSider.js +36 -28
- package/lib/locales/common/deDE.js +13 -15
- package/lib/locales/common/enGB.d.ts +109 -0
- package/lib/locales/common/enGB.js +111 -0
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/esAR.js +2 -2
- package/lib/locales/common/frFR.js +8 -9
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/common/skSK.d.ts +3 -0
- package/lib/locales/common/skSK.js +112 -0
- package/lib/locales/date/enGB.d.ts +3 -0
- package/lib/locales/date/enGB.js +11 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/date/skSK.d.ts +3 -0
- package/lib/locales/date/skSK.js +11 -0
- package/lib/locales/index.d.ts +8 -0
- package/lib/locales/index.js +17 -1
- package/lib/log/src/Log.d.ts +4 -1
- package/lib/log/src/Log.js +19 -14
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +4 -0
- package/lib/menu/src/Menu.d.ts +4 -2
- package/lib/menu/src/Menu.js +67 -62
- package/lib/modal/src/BodyWrapper.d.ts +7 -6
- package/lib/modal/src/Modal.d.ts +19 -22
- package/lib/modal/src/Modal.js +40 -31
- package/lib/modal/src/presetProps.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +4 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/notification/src/styles/index.cssr.js +6 -5
- package/lib/page-header/src/PageHeader.d.ts +3 -1
- package/lib/page-header/src/PageHeader.js +26 -17
- package/lib/pagination/src/Pagination.d.ts +46 -34
- package/lib/pagination/src/Pagination.js +58 -51
- package/lib/pagination/styles/light.d.ts +3 -3
- package/lib/popover/src/PopoverBody.js +9 -3
- package/lib/progress/src/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +14 -5
- package/lib/progress/src/Progress.js +44 -24
- package/lib/progress/src/styles/index.cssr.js +1 -1
- package/lib/radio/src/Radio.d.ts +3 -1
- package/lib/radio/src/Radio.js +31 -22
- package/lib/radio/src/RadioGroup.d.ts +3 -1
- package/lib/radio/src/RadioGroup.js +30 -21
- package/lib/rate/src/Rate.d.ts +3 -1
- package/lib/rate/src/Rate.js +42 -21
- package/lib/result/src/Result.d.ts +8 -6
- package/lib/result/src/Result.js +35 -18
- package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
- package/lib/scrollbar/src/ScrollBar.js +4 -0
- package/lib/select/src/Select.d.ts +45 -31
- package/lib/select/src/Select.js +14 -8
- package/lib/select/styles/light.d.ts +3 -3
- package/lib/spin/src/Spin.d.ts +3 -1
- package/lib/spin/src/Spin.js +30 -20
- package/lib/statistic/src/Statistic.d.ts +3 -1
- package/lib/statistic/src/Statistic.js +28 -20
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +9 -7
- package/lib/switch/src/Switch.d.ts +13 -1
- package/lib/switch/src/Switch.js +81 -56
- package/lib/switch/src/styles/index.cssr.js +21 -8
- package/lib/switch/styles/dark.js +2 -2
- package/lib/switch/styles/light.d.ts +1 -0
- package/lib/switch/styles/light.js +2 -2
- package/lib/table/src/Table.d.ts +3 -1
- package/lib/table/src/Table.js +39 -28
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +25 -23
- package/lib/tabs/src/Tabs.js +48 -42
- package/lib/tabs/src/styles/index.cssr.js +77 -77
- package/lib/tag/src/Tag.d.ts +7 -5
- package/lib/tag/src/Tag.js +57 -40
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -1
- package/lib/theme-editor/src/ThemeEditor.js +2 -1
- package/lib/themes/dark.js +3 -1
- package/lib/themes/light.js +3 -1
- package/lib/thing/src/Thing.js +9 -2
- package/lib/time-picker/src/TimePicker.d.ts +4 -0
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/Tree.js +8 -4
- package/lib/tree/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +43 -30
- package/lib/tree-select/src/TreeSelect.js +6 -2
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/a.d.ts +3 -1
- package/lib/typography/src/a.js +17 -9
- package/lib/typography/src/blockquote.d.ts +3 -1
- package/lib/typography/src/blockquote.js +20 -11
- package/lib/typography/src/create-header.d.ts +7 -5
- package/lib/typography/src/create-header.js +24 -15
- package/lib/typography/src/headers.d.ts +36 -24
- package/lib/typography/src/hr.d.ts +3 -1
- package/lib/typography/src/hr.js +17 -9
- package/lib/typography/src/ol.d.ts +3 -1
- package/lib/typography/src/ol.js +22 -13
- package/lib/typography/src/p.d.ts +3 -1
- package/lib/typography/src/p.js +22 -14
- package/lib/typography/src/text.d.ts +3 -1
- package/lib/typography/src/text.js +30 -22
- package/lib/typography/src/ul.d.ts +3 -1
- package/lib/typography/src/ul.js +22 -13
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/upload/src/interface.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +2 -0
- package/lib/watermark/index.js +8 -0
- package/lib/watermark/src/Watermark.d.ts +285 -0
- package/lib/watermark/src/Watermark.js +164 -0
- package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
- package/lib/watermark/src/styles/index.cssr.js +21 -0
- package/lib/watermark/styles/dark.d.ts +3 -0
- package/lib/watermark/styles/dark.js +14 -0
- package/lib/watermark/styles/index.d.ts +3 -0
- package/lib/watermark/styles/index.js +10 -0
- package/lib/watermark/styles/light.d.ts +5 -0
- package/lib/watermark/styles/light.js +15 -0
- package/package.json +9 -10
- package/volar.d.ts +1 -0
- package/web-types.json +279 -29
|
@@ -18,7 +18,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
setup(props) {
|
|
21
|
-
const {
|
|
21
|
+
const { mergedComponentPropsRef } = (0, _mixins_1.useConfig)();
|
|
22
22
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
23
23
|
const { mergedSortStateRef, mergedClsPrefixRef } = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
|
|
24
24
|
const sortStateRef = (0, vue_1.computed)(() => mergedSortStateRef.value.find((state) => state.columnKey === props.column.key));
|
|
@@ -34,7 +34,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
34
34
|
});
|
|
35
35
|
const mergedRenderSorterRef = (0, vue_1.computed)(() => {
|
|
36
36
|
var _a, _b;
|
|
37
|
-
return (((_b = (_a =
|
|
37
|
+
return (((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DataTable) === null || _b === void 0 ? void 0 : _b.renderSorter) ||
|
|
38
|
+
props.column.renderSorter);
|
|
38
39
|
});
|
|
39
40
|
return {
|
|
40
41
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -18,6 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
containerScrollTop: number;
|
|
19
19
|
syncUnifiedContainer: () => void;
|
|
20
20
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
21
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
21
22
|
sync: () => void;
|
|
22
23
|
handleMouseEnterWrapper: () => void;
|
|
23
24
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -518,7 +519,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
518
519
|
borderHover: string;
|
|
519
520
|
borderActive: string;
|
|
520
521
|
borderFocus: string;
|
|
521
|
-
boxShadowHover:
|
|
522
|
+
boxShadowHover: string;
|
|
522
523
|
boxShadowActive: string;
|
|
523
524
|
boxShadowFocus: string;
|
|
524
525
|
caretColor: string;
|
|
@@ -529,7 +530,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
529
530
|
borderHoverWarning: string;
|
|
530
531
|
borderActiveWarning: string;
|
|
531
532
|
borderFocusWarning: string;
|
|
532
|
-
boxShadowHoverWarning:
|
|
533
|
+
boxShadowHoverWarning: string;
|
|
533
534
|
boxShadowActiveWarning: string;
|
|
534
535
|
boxShadowFocusWarning: string;
|
|
535
536
|
colorActiveWarning: string;
|
|
@@ -538,7 +539,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
538
539
|
borderHoverError: string;
|
|
539
540
|
borderActiveError: string;
|
|
540
541
|
borderFocusError: string;
|
|
541
|
-
boxShadowHoverError:
|
|
542
|
+
boxShadowHoverError: string;
|
|
542
543
|
boxShadowActiveError: string;
|
|
543
544
|
boxShadowFocusError: string;
|
|
544
545
|
colorActiveError: string;
|
|
@@ -778,7 +779,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
778
779
|
borderHover: string;
|
|
779
780
|
borderActive: string;
|
|
780
781
|
borderFocus: string;
|
|
781
|
-
boxShadowHover:
|
|
782
|
+
boxShadowHover: string;
|
|
782
783
|
boxShadowActive: string;
|
|
783
784
|
boxShadowFocus: string;
|
|
784
785
|
caretColor: string;
|
|
@@ -789,7 +790,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
789
790
|
borderHoverWarning: string;
|
|
790
791
|
borderActiveWarning: string;
|
|
791
792
|
borderFocusWarning: string;
|
|
792
|
-
boxShadowHoverWarning:
|
|
793
|
+
boxShadowHoverWarning: string;
|
|
793
794
|
boxShadowActiveWarning: string;
|
|
794
795
|
boxShadowFocusWarning: string;
|
|
795
796
|
colorActiveWarning: string;
|
|
@@ -798,7 +799,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
798
799
|
borderHoverError: string;
|
|
799
800
|
borderActiveError: string;
|
|
800
801
|
borderFocusError: string;
|
|
801
|
-
boxShadowHoverError:
|
|
802
|
+
boxShadowHoverError: string;
|
|
802
803
|
boxShadowActiveError: string;
|
|
803
804
|
boxShadowFocusError: string;
|
|
804
805
|
colorActiveError: string;
|
|
@@ -500,7 +500,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
500
500
|
const createEmptyNode = () => ((0, vue_1.h)("div", { class: [
|
|
501
501
|
`${mergedClsPrefix}-data-table-empty`,
|
|
502
502
|
this.loading && `${mergedClsPrefix}-data-table-empty--hide`
|
|
503
|
-
], style: this.bodyStyle, ref: "emptyElRef" },
|
|
503
|
+
], style: this.bodyStyle, ref: "emptyElRef" }, (0, _utils_1.resolveSlot)(this.dataTableSlots.empty, () => [
|
|
504
|
+
(0, vue_1.h)(empty_1.NEmpty, { theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
|
|
505
|
+
])));
|
|
504
506
|
if (this.shouldDisplaySomeTablePart) {
|
|
505
507
|
return ((0, vue_1.h)(vue_1.Fragment, null,
|
|
506
508
|
tableNode,
|
|
@@ -503,7 +503,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
503
503
|
borderHover: string;
|
|
504
504
|
borderActive: string;
|
|
505
505
|
borderFocus: string;
|
|
506
|
-
boxShadowHover:
|
|
506
|
+
boxShadowHover: string;
|
|
507
507
|
boxShadowActive: string;
|
|
508
508
|
boxShadowFocus: string;
|
|
509
509
|
caretColor: string;
|
|
@@ -514,7 +514,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
514
514
|
borderHoverWarning: string;
|
|
515
515
|
borderActiveWarning: string;
|
|
516
516
|
borderFocusWarning: string;
|
|
517
|
-
boxShadowHoverWarning:
|
|
517
|
+
boxShadowHoverWarning: string;
|
|
518
518
|
boxShadowActiveWarning: string;
|
|
519
519
|
boxShadowFocusWarning: string;
|
|
520
520
|
colorActiveWarning: string;
|
|
@@ -523,7 +523,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
523
523
|
borderHoverError: string;
|
|
524
524
|
borderActiveError: string;
|
|
525
525
|
borderFocusError: string;
|
|
526
|
-
boxShadowHoverError:
|
|
526
|
+
boxShadowHoverError: string;
|
|
527
527
|
boxShadowActiveError: string;
|
|
528
528
|
boxShadowFocusError: string;
|
|
529
529
|
colorActiveError: string;
|
|
@@ -763,7 +763,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
763
763
|
borderHover: string;
|
|
764
764
|
borderActive: string;
|
|
765
765
|
borderFocus: string;
|
|
766
|
-
boxShadowHover:
|
|
766
|
+
boxShadowHover: string;
|
|
767
767
|
boxShadowActive: string;
|
|
768
768
|
boxShadowFocus: string;
|
|
769
769
|
caretColor: string;
|
|
@@ -774,7 +774,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
774
774
|
borderHoverWarning: string;
|
|
775
775
|
borderActiveWarning: string;
|
|
776
776
|
borderFocusWarning: string;
|
|
777
|
-
boxShadowHoverWarning:
|
|
777
|
+
boxShadowHoverWarning: string;
|
|
778
778
|
boxShadowActiveWarning: string;
|
|
779
779
|
boxShadowFocusWarning: string;
|
|
780
780
|
colorActiveWarning: string;
|
|
@@ -783,7 +783,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
783
783
|
borderHoverError: string;
|
|
784
784
|
borderActiveError: string;
|
|
785
785
|
borderFocusError: string;
|
|
786
|
-
boxShadowHoverError:
|
|
786
|
+
boxShadowHoverError: string;
|
|
787
787
|
boxShadowActiveError: string;
|
|
788
788
|
boxShadowFocusError: string;
|
|
789
789
|
colorActiveError: string;
|
|
@@ -1474,7 +1474,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1474
1474
|
borderHover: string;
|
|
1475
1475
|
borderActive: string;
|
|
1476
1476
|
borderFocus: string;
|
|
1477
|
-
boxShadowHover:
|
|
1477
|
+
boxShadowHover: string;
|
|
1478
1478
|
boxShadowActive: string;
|
|
1479
1479
|
boxShadowFocus: string;
|
|
1480
1480
|
caretColor: string;
|
|
@@ -1485,7 +1485,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1485
1485
|
borderHoverWarning: string;
|
|
1486
1486
|
borderActiveWarning: string;
|
|
1487
1487
|
borderFocusWarning: string;
|
|
1488
|
-
boxShadowHoverWarning:
|
|
1488
|
+
boxShadowHoverWarning: string;
|
|
1489
1489
|
boxShadowActiveWarning: string;
|
|
1490
1490
|
boxShadowFocusWarning: string;
|
|
1491
1491
|
colorActiveWarning: string;
|
|
@@ -1494,7 +1494,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1494
1494
|
borderHoverError: string;
|
|
1495
1495
|
borderActiveError: string;
|
|
1496
1496
|
borderFocusError: string;
|
|
1497
|
-
boxShadowHoverError:
|
|
1497
|
+
boxShadowHoverError: string;
|
|
1498
1498
|
boxShadowActiveError: string;
|
|
1499
1499
|
boxShadowFocusError: string;
|
|
1500
1500
|
colorActiveError: string;
|
|
@@ -1734,7 +1734,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1734
1734
|
borderHover: string;
|
|
1735
1735
|
borderActive: string;
|
|
1736
1736
|
borderFocus: string;
|
|
1737
|
-
boxShadowHover:
|
|
1737
|
+
boxShadowHover: string;
|
|
1738
1738
|
boxShadowActive: string;
|
|
1739
1739
|
boxShadowFocus: string;
|
|
1740
1740
|
caretColor: string;
|
|
@@ -1745,7 +1745,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1745
1745
|
borderHoverWarning: string;
|
|
1746
1746
|
borderActiveWarning: string;
|
|
1747
1747
|
borderFocusWarning: string;
|
|
1748
|
-
boxShadowHoverWarning:
|
|
1748
|
+
boxShadowHoverWarning: string;
|
|
1749
1749
|
boxShadowActiveWarning: string;
|
|
1750
1750
|
boxShadowFocusWarning: string;
|
|
1751
1751
|
colorActiveWarning: string;
|
|
@@ -1754,7 +1754,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1754
1754
|
borderHoverError: string;
|
|
1755
1755
|
borderActiveError: string;
|
|
1756
1756
|
borderFocusError: string;
|
|
1757
|
-
boxShadowHoverError:
|
|
1757
|
+
boxShadowHoverError: string;
|
|
1758
1758
|
boxShadowActiveError: string;
|
|
1759
1759
|
boxShadowFocusError: string;
|
|
1760
1760
|
colorActiveError: string;
|
|
@@ -510,7 +510,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
510
510
|
borderHover: string;
|
|
511
511
|
borderActive: string;
|
|
512
512
|
borderFocus: string;
|
|
513
|
-
boxShadowHover:
|
|
513
|
+
boxShadowHover: string;
|
|
514
514
|
boxShadowActive: string;
|
|
515
515
|
boxShadowFocus: string;
|
|
516
516
|
caretColor: string;
|
|
@@ -521,7 +521,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
521
521
|
borderHoverWarning: string;
|
|
522
522
|
borderActiveWarning: string;
|
|
523
523
|
borderFocusWarning: string;
|
|
524
|
-
boxShadowHoverWarning:
|
|
524
|
+
boxShadowHoverWarning: string;
|
|
525
525
|
boxShadowActiveWarning: string;
|
|
526
526
|
boxShadowFocusWarning: string;
|
|
527
527
|
colorActiveWarning: string;
|
|
@@ -530,7 +530,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
530
530
|
borderHoverError: string;
|
|
531
531
|
borderActiveError: string;
|
|
532
532
|
borderFocusError: string;
|
|
533
|
-
boxShadowHoverError:
|
|
533
|
+
boxShadowHoverError: string;
|
|
534
534
|
boxShadowActiveError: string;
|
|
535
535
|
boxShadowFocusError: string;
|
|
536
536
|
colorActiveError: string;
|
|
@@ -770,7 +770,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
770
770
|
borderHover: string;
|
|
771
771
|
borderActive: string;
|
|
772
772
|
borderFocus: string;
|
|
773
|
-
boxShadowHover:
|
|
773
|
+
boxShadowHover: string;
|
|
774
774
|
boxShadowActive: string;
|
|
775
775
|
boxShadowFocus: string;
|
|
776
776
|
caretColor: string;
|
|
@@ -781,7 +781,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
781
781
|
borderHoverWarning: string;
|
|
782
782
|
borderActiveWarning: string;
|
|
783
783
|
borderFocusWarning: string;
|
|
784
|
-
boxShadowHoverWarning:
|
|
784
|
+
boxShadowHoverWarning: string;
|
|
785
785
|
boxShadowActiveWarning: string;
|
|
786
786
|
boxShadowFocusWarning: string;
|
|
787
787
|
colorActiveWarning: string;
|
|
@@ -790,7 +790,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
790
790
|
borderHoverError: string;
|
|
791
791
|
borderActiveError: string;
|
|
792
792
|
borderFocusError: string;
|
|
793
|
-
boxShadowHoverError:
|
|
793
|
+
boxShadowHoverError: string;
|
|
794
794
|
boxShadowActiveError: string;
|
|
795
795
|
boxShadowFocusError: string;
|
|
796
796
|
colorActiveError: string;
|
|
@@ -220,7 +220,7 @@ export interface DataTableInst {
|
|
|
220
220
|
}
|
|
221
221
|
export declare type CreateSummary<T = InternalRowData> = (pageData: T[]) => SummaryRowData | SummaryRowData[];
|
|
222
222
|
export interface SummaryCell {
|
|
223
|
-
value?:
|
|
223
|
+
value?: VNodeChild;
|
|
224
224
|
colSpan?: number;
|
|
225
225
|
rowSpan?: number;
|
|
226
226
|
}
|
|
@@ -11,12 +11,19 @@ const use_sorter_1 = require("./use-sorter");
|
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
12
12
|
function useTableData(props, { dataRelatedColsRef }) {
|
|
13
13
|
const selectionColumnRef = (0, vue_1.computed)(() => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const getSelectionColumn = (cols) => {
|
|
15
|
+
for (let i = 0; i < cols.length; ++i) {
|
|
16
|
+
const col = cols[i];
|
|
17
|
+
if ('children' in col) {
|
|
18
|
+
return getSelectionColumn(col.children);
|
|
19
|
+
}
|
|
20
|
+
else if (col.type === 'selection') {
|
|
21
|
+
return col;
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
|
-
return
|
|
19
|
-
}
|
|
24
|
+
return null;
|
|
25
|
+
};
|
|
26
|
+
return getSelectionColumn(props.columns);
|
|
20
27
|
});
|
|
21
28
|
const treeMateRef = (0, vue_1.computed)(() => {
|
|
22
29
|
const { childrenKey } = props;
|
|
@@ -53,10 +60,15 @@ function useTableData(props, { dataRelatedColsRef }) {
|
|
|
53
60
|
});
|
|
54
61
|
const controlledFilterState = {};
|
|
55
62
|
columnsWithControlledFilter.forEach((column) => {
|
|
63
|
+
var _a;
|
|
56
64
|
if (column.type === 'selection' || column.type === 'expand')
|
|
57
65
|
return;
|
|
58
|
-
|
|
59
|
-
column.
|
|
66
|
+
if (column.filterOptionValues === undefined) {
|
|
67
|
+
controlledFilterState[column.key] = (_a = column.filterOptionValue) !== null && _a !== void 0 ? _a : null;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
controlledFilterState[column.key] = column.filterOptionValues;
|
|
71
|
+
}
|
|
60
72
|
});
|
|
61
73
|
const activeFilters = Object.assign((0, utils_1.createShallowClonedObject)(uncontrolledFilterStateRef.value), controlledFilterState);
|
|
62
74
|
return activeFilters;
|
|
@@ -432,7 +432,7 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
432
432
|
borderHover: string;
|
|
433
433
|
borderActive: string;
|
|
434
434
|
borderFocus: string;
|
|
435
|
-
boxShadowHover:
|
|
435
|
+
boxShadowHover: string;
|
|
436
436
|
boxShadowActive: string;
|
|
437
437
|
boxShadowFocus: string;
|
|
438
438
|
caretColor: string;
|
|
@@ -443,7 +443,7 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
443
443
|
borderHoverWarning: string;
|
|
444
444
|
borderActiveWarning: string;
|
|
445
445
|
borderFocusWarning: string;
|
|
446
|
-
boxShadowHoverWarning:
|
|
446
|
+
boxShadowHoverWarning: string;
|
|
447
447
|
boxShadowActiveWarning: string;
|
|
448
448
|
boxShadowFocusWarning: string;
|
|
449
449
|
colorActiveWarning: string;
|
|
@@ -452,7 +452,7 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
452
452
|
borderHoverError: string;
|
|
453
453
|
borderActiveError: string;
|
|
454
454
|
borderFocusError: string;
|
|
455
|
-
boxShadowHoverError:
|
|
455
|
+
boxShadowHoverError: string;
|
|
456
456
|
boxShadowActiveError: string;
|
|
457
457
|
boxShadowFocusError: string;
|
|
458
458
|
colorActiveError: string;
|
|
@@ -3809,6 +3809,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3809
3809
|
containerScrollTop: number;
|
|
3810
3810
|
syncUnifiedContainer: () => void;
|
|
3811
3811
|
scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
3812
|
+
scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
3812
3813
|
sync: () => void;
|
|
3813
3814
|
handleMouseEnterWrapper: () => void;
|
|
3814
3815
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -57,7 +57,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
57
57
|
const { localeRef, dateLocaleRef } = (0, _mixins_1.useLocale)('DatePicker');
|
|
58
58
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
59
59
|
const { mergedSizeRef, mergedDisabledRef, mergedStatusRef } = formItem;
|
|
60
|
-
const {
|
|
60
|
+
const { mergedComponentPropsRef, mergedClsPrefixRef, mergedBorderedRef, namespaceRef } = (0, _mixins_1.useConfig)(props);
|
|
61
61
|
const panelInstRef = (0, vue_1.ref)(null);
|
|
62
62
|
const triggerElRef = (0, vue_1.ref)(null);
|
|
63
63
|
const inputInstRef = (0, vue_1.ref)(null);
|
|
@@ -128,7 +128,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
128
128
|
const themeRef = (0, _mixins_1.useTheme)('DatePicker', '-date-picker', index_cssr_1.default, styles_1.datePickerLight, props, mergedClsPrefixRef);
|
|
129
129
|
const timePickerSizeRef = (0, vue_1.computed)(() => {
|
|
130
130
|
var _a, _b;
|
|
131
|
-
return (((_b = (_a =
|
|
131
|
+
return (((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DatePicker) === null || _b === void 0 ? void 0 : _b.timePickerSize) || 'small');
|
|
132
132
|
});
|
|
133
133
|
const isRangeRef = (0, vue_1.computed)(() => {
|
|
134
134
|
return ['daterange', 'datetimerange'].includes(props.type);
|
|
@@ -48,6 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
containerScrollTop: number;
|
|
49
49
|
syncUnifiedContainer: () => void;
|
|
50
50
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
51
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
51
52
|
sync: () => void;
|
|
52
53
|
handleMouseEnterWrapper: () => void;
|
|
53
54
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -63,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
64
|
containerScrollTop: number;
|
|
64
65
|
syncUnifiedContainer: () => void;
|
|
65
66
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
67
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
66
68
|
sync: () => void;
|
|
67
69
|
handleMouseEnterWrapper: () => void;
|
|
68
70
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
containerScrollTop: number;
|
|
43
43
|
syncUnifiedContainer: () => void;
|
|
44
44
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
45
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
45
46
|
sync: () => void;
|
|
46
47
|
handleMouseEnterWrapper: () => void;
|
|
47
48
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -57,6 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
58
|
containerScrollTop: number;
|
|
58
59
|
syncUnifiedContainer: () => void;
|
|
59
60
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
61
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
60
62
|
sync: () => void;
|
|
61
63
|
handleMouseEnterWrapper: () => void;
|
|
62
64
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -50,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
containerScrollTop: number;
|
|
51
51
|
syncUnifiedContainer: () => void;
|
|
52
52
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
53
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
53
54
|
sync: () => void;
|
|
54
55
|
handleMouseEnterWrapper: () => void;
|
|
55
56
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -65,6 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
66
|
containerScrollTop: number;
|
|
66
67
|
syncUnifiedContainer: () => void;
|
|
67
68
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
69
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
68
70
|
sync: () => void;
|
|
69
71
|
handleMouseEnterWrapper: () => void;
|
|
70
72
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -127,6 +127,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
127
127
|
containerScrollTop: number;
|
|
128
128
|
syncUnifiedContainer: () => void;
|
|
129
129
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
130
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
130
131
|
sync: () => void;
|
|
131
132
|
handleMouseEnterWrapper: () => void;
|
|
132
133
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -142,6 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
143
|
containerScrollTop: number;
|
|
143
144
|
syncUnifiedContainer: () => void;
|
|
144
145
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
146
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
145
147
|
sync: () => void;
|
|
146
148
|
handleMouseEnterWrapper: () => void;
|
|
147
149
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -1306,6 +1308,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1306
1308
|
containerScrollTop: number;
|
|
1307
1309
|
syncUnifiedContainer: () => void;
|
|
1308
1310
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
1311
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
1309
1312
|
sync: () => void;
|
|
1310
1313
|
handleMouseEnterWrapper: () => void;
|
|
1311
1314
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -1321,6 +1324,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1321
1324
|
containerScrollTop: number;
|
|
1322
1325
|
syncUnifiedContainer: () => void;
|
|
1323
1326
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
1327
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
1324
1328
|
sync: () => void;
|
|
1325
1329
|
handleMouseEnterWrapper: () => void;
|
|
1326
1330
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -46,6 +46,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
46
46
|
containerScrollTop: number;
|
|
47
47
|
syncUnifiedContainer: () => void;
|
|
48
48
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
49
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
49
50
|
sync: () => void;
|
|
50
51
|
handleMouseEnterWrapper: () => void;
|
|
51
52
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -61,6 +62,7 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
61
62
|
containerScrollTop: number;
|
|
62
63
|
syncUnifiedContainer: () => void;
|
|
63
64
|
scrollTo: import("../../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
65
|
+
scrollBy: import("../../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
64
66
|
sync: () => void;
|
|
65
67
|
handleMouseEnterWrapper: () => void;
|
|
66
68
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -31,6 +31,7 @@ declare const descriptionProps: {
|
|
|
31
31
|
fontSizeSmall: string;
|
|
32
32
|
fontSizeMedium: string;
|
|
33
33
|
fontSizeLarge: string;
|
|
34
|
+
titleTextColor: string;
|
|
34
35
|
thColor: string;
|
|
35
36
|
thColorModal: string;
|
|
36
37
|
thColorPopover: string;
|
|
@@ -62,6 +63,7 @@ declare const descriptionProps: {
|
|
|
62
63
|
fontSizeSmall: string;
|
|
63
64
|
fontSizeMedium: string;
|
|
64
65
|
fontSizeLarge: string;
|
|
66
|
+
titleTextColor: string;
|
|
65
67
|
thColor: string;
|
|
66
68
|
thColorModal: string;
|
|
67
69
|
thColorPopover: string;
|
|
@@ -93,6 +95,7 @@ declare const descriptionProps: {
|
|
|
93
95
|
fontSizeSmall: string;
|
|
94
96
|
fontSizeMedium: string;
|
|
95
97
|
fontSizeLarge: string;
|
|
98
|
+
titleTextColor: string;
|
|
96
99
|
thColor: string;
|
|
97
100
|
thColorModal: string;
|
|
98
101
|
thColorPopover: string;
|
|
@@ -152,6 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
155
|
fontSizeSmall: string;
|
|
153
156
|
fontSizeMedium: string;
|
|
154
157
|
fontSizeLarge: string;
|
|
158
|
+
titleTextColor: string;
|
|
155
159
|
thColor: string;
|
|
156
160
|
thColorModal: string;
|
|
157
161
|
thColorPopover: string;
|
|
@@ -183,6 +187,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
183
187
|
fontSizeSmall: string;
|
|
184
188
|
fontSizeMedium: string;
|
|
185
189
|
fontSizeLarge: string;
|
|
190
|
+
titleTextColor: string;
|
|
186
191
|
thColor: string;
|
|
187
192
|
thColorModal: string;
|
|
188
193
|
thColorPopover: string;
|
|
@@ -214,6 +219,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
219
|
fontSizeSmall: string;
|
|
215
220
|
fontSizeMedium: string;
|
|
216
221
|
fontSizeLarge: string;
|
|
222
|
+
titleTextColor: string;
|
|
217
223
|
thColor: string;
|
|
218
224
|
thColorModal: string;
|
|
219
225
|
thColorPopover: string;
|
|
@@ -243,6 +249,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
249
|
}, {
|
|
244
250
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
245
251
|
cssVars: import("vue").ComputedRef<{
|
|
252
|
+
'--n-title-text-color': string;
|
|
246
253
|
'--n-th-padding': string;
|
|
247
254
|
'--n-td-padding': string;
|
|
248
255
|
'--n-font-size': string;
|
|
@@ -261,8 +268,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
261
268
|
'--n-border-color': string;
|
|
262
269
|
'--n-border-color-modal': string;
|
|
263
270
|
'--n-border-color-popover': string;
|
|
264
|
-
}
|
|
271
|
+
}> | undefined;
|
|
272
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
273
|
+
onRender: (() => void) | undefined;
|
|
265
274
|
compitableColumn: import("vue").ComputedRef<number>;
|
|
275
|
+
inlineThemeDisabled: boolean | undefined;
|
|
266
276
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
267
277
|
readonly title: StringConstructor;
|
|
268
278
|
readonly column: {
|
|
@@ -294,6 +304,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
294
304
|
fontSizeSmall: string;
|
|
295
305
|
fontSizeMedium: string;
|
|
296
306
|
fontSizeLarge: string;
|
|
307
|
+
titleTextColor: string;
|
|
297
308
|
thColor: string;
|
|
298
309
|
thColorModal: string;
|
|
299
310
|
thColorPopover: string;
|
|
@@ -325,6 +336,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
325
336
|
fontSizeSmall: string;
|
|
326
337
|
fontSizeMedium: string;
|
|
327
338
|
fontSizeLarge: string;
|
|
339
|
+
titleTextColor: string;
|
|
328
340
|
thColor: string;
|
|
329
341
|
thColorModal: string;
|
|
330
342
|
thColorPopover: string;
|
|
@@ -356,6 +368,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
356
368
|
fontSizeSmall: string;
|
|
357
369
|
fontSizeMedium: string;
|
|
358
370
|
fontSizeLarge: string;
|
|
371
|
+
titleTextColor: string;
|
|
359
372
|
thColor: string;
|
|
360
373
|
thColorModal: string;
|
|
361
374
|
thColorPopover: string;
|
|
@@ -386,8 +399,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
386
399
|
column: number;
|
|
387
400
|
size: "small" | "medium" | "large";
|
|
388
401
|
separator: string;
|
|
402
|
+
bordered: boolean;
|
|
389
403
|
labelAlign: "left" | "right" | "center";
|
|
390
404
|
labelPlacement: "left" | "top";
|
|
391
|
-
bordered: boolean;
|
|
392
405
|
}>;
|
|
393
406
|
export default _default;
|