naive-ui 2.25.2 → 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 -23
- package/es/_internal/select-menu/src/SelectMenu.js +10 -16
- package/es/_internal/selection/src/Selection.d.ts +5 -5
- package/es/_internal/selection/src/Selection.js +20 -7
- 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 +1 -4
- package/es/_mixins/use-css-vars-class.js +6 -6
- package/es/_utils/vue/resolve-slot.d.ts +5 -2
- package/es/_utils/vue/resolve-slot.js +4 -3
- package/es/alert/src/Alert.d.ts +3 -1
- package/es/alert/src/Alert.js +36 -21
- package/es/anchor/src/AnchorAdapter.js +9 -3
- package/es/auto-complete/src/AutoComplete.d.ts +3 -1
- 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 +12 -37
- 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 +7 -6
- package/es/button/src/Button.js +31 -21
- package/es/calendar/src/Calendar.d.ts +3 -1
- package/es/calendar/src/Calendar.js +37 -30
- package/es/card/src/Card.d.ts +2 -2
- package/es/card/src/Card.js +27 -16
- package/es/carousel/src/Carousel.d.ts +3 -1
- package/es/carousel/src/Carousel.js +29 -20
- package/es/cascader/src/Cascader.d.ts +16 -1
- package/es/cascader/src/Cascader.js +53 -31
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderSelectMenu.js +2 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +1 -0
- 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 +7 -7
- 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 +43 -41
- package/es/data-table/src/DataTable.js +54 -48
- package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/es/data-table/src/HeaderButton/SortButton.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +4 -2
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/use-table-data.js +19 -7
- 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 +14 -1
- 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 +3 -1
- package/es/dialog/src/Dialog.js +57 -56
- package/es/dialog/src/DialogEnvironment.js +1 -1
- 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 +3 -1
- 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.js +1 -2
- package/es/grid/src/Grid.js +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +6 -8
- package/es/input/src/Input.d.ts +6 -3
- 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 +6 -17
- 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/esAR.js +2 -2
- package/es/locales/common/frFR.js +8 -9
- package/es/locales/common/skSK.d.ts +3 -0
- package/es/locales/common/skSK.js +110 -0
- package/es/locales/date/skSK.d.ts +3 -0
- package/es/locales/date/skSK.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -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/interface.d.ts +4 -0
- package/es/menu/src/Menu.d.ts +3 -1
- package/es/menu/src/Menu.js +68 -63
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +11 -14
- package/es/modal/src/Modal.js +41 -32
- 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 +13 -1
- package/es/pagination/src/Pagination.js +59 -52
- package/es/popover/src/PopoverBody.js +10 -4
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/progress/src/Progress.js +12 -6
- 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 +4 -2
- 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 +1 -1
- package/es/select/src/Select.js +5 -4
- 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 +2 -2
- package/es/tag/src/Tag.js +8 -11
- 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/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-select/src/TreeSelect.d.ts +13 -0
- package/es/tree-select/src/TreeSelect.js +6 -2
- 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 +3 -1
- package/es/typography/src/create-header.js +25 -16
- package/es/typography/src/headers.d.ts +18 -6
- 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/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 -23
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -15
- package/lib/_internal/selection/src/Selection.d.ts +5 -5
- package/lib/_internal/selection/src/Selection.js +19 -6
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +1 -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 +1 -4
- package/lib/_mixins/use-css-vars-class.js +7 -7
- package/lib/_utils/vue/resolve-slot.d.ts +5 -2
- package/lib/_utils/vue/resolve-slot.js +4 -3
- package/lib/alert/src/Alert.d.ts +3 -1
- package/lib/alert/src/Alert.js +34 -19
- package/lib/anchor/src/AnchorAdapter.js +8 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -1
- 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 +12 -37
- 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 +7 -6
- package/lib/button/src/Button.js +29 -19
- package/lib/calendar/src/Calendar.d.ts +3 -1
- package/lib/calendar/src/Calendar.js +36 -29
- package/lib/card/src/Card.d.ts +2 -2
- package/lib/card/src/Card.js +25 -14
- package/lib/carousel/src/Carousel.d.ts +3 -1
- package/lib/carousel/src/Carousel.js +27 -18
- package/lib/cascader/src/Cascader.d.ts +16 -1
- package/lib/cascader/src/Cascader.js +52 -30
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderSelectMenu.js +2 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +1 -0
- 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 +7 -7
- 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 +43 -41
- package/lib/data-table/src/DataTable.js +53 -47
- package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +19 -7
- 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 +14 -1
- 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 +3 -1
- package/lib/dialog/src/Dialog.js +55 -54
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- 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 +3 -1
- 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.js +1 -2
- package/lib/grid/src/Grid.js +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +5 -7
- package/lib/input/src/Input.d.ts +6 -3
- 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 +6 -17
- 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/esAR.js +2 -2
- package/lib/locales/common/frFR.js +8 -9
- package/lib/locales/common/skSK.d.ts +3 -0
- package/lib/locales/common/skSK.js +112 -0
- package/lib/locales/date/skSK.d.ts +3 -0
- package/lib/locales/date/skSK.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -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/interface.d.ts +4 -0
- package/lib/menu/src/Menu.d.ts +3 -1
- package/lib/menu/src/Menu.js +67 -62
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +11 -14
- package/lib/modal/src/Modal.js +40 -31
- 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 +13 -1
- package/lib/pagination/src/Pagination.js +58 -51
- package/lib/popover/src/PopoverBody.js +9 -3
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/progress/src/Progress.js +11 -5
- 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 +4 -2
- 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 +1 -1
- package/lib/select/src/Select.js +5 -4
- 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 +2 -2
- package/lib/tag/src/Tag.js +7 -10
- 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/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-select/src/TreeSelect.d.ts +13 -0
- package/lib/tree-select/src/TreeSelect.js +6 -2
- 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 +3 -1
- package/lib/typography/src/create-header.js +24 -15
- package/lib/typography/src/headers.d.ts +18 -6
- 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/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 +8 -9
- package/volar.d.ts +1 -0
- package/web-types.json +252 -29
|
@@ -55,7 +55,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
55
55
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
56
56
|
const { mergedSizeRef, mergedDisabledRef } = formItem;
|
|
57
57
|
const { localeRef } = (0, _mixins_1.useLocale)('global');
|
|
58
|
-
const { mergedClsPrefixRef, namespaceRef } = (0, _mixins_1.useConfig)(props);
|
|
58
|
+
const { mergedClsPrefixRef, namespaceRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
59
59
|
const themeRef = (0, _mixins_1.useTheme)('ColorPicker', '-color-picker', index_cssr_1.default, styles_1.colorPickerLight, props, mergedClsPrefixRef);
|
|
60
60
|
(0, vue_1.provide)(context_1.colorPickerInjectionKey, {
|
|
61
61
|
themeRef,
|
|
@@ -358,6 +358,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
358
358
|
'--n-divider-color': dividerColor
|
|
359
359
|
};
|
|
360
360
|
});
|
|
361
|
+
const themeClassHandle = inlineThemeDisabled
|
|
362
|
+
? (0, _mixins_1.useThemeClass)('color-picker', (0, vue_1.computed)(() => {
|
|
363
|
+
return mergedSizeRef.value[0];
|
|
364
|
+
}), cssVarsRef, props)
|
|
365
|
+
: undefined;
|
|
361
366
|
function renderPanel() {
|
|
362
367
|
var _a;
|
|
363
368
|
const { value: rgba } = rgbaRef;
|
|
@@ -365,9 +370,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
365
370
|
const { internalActions, modes, actions } = props;
|
|
366
371
|
const { value: mergedTheme } = themeRef;
|
|
367
372
|
const { value: mergedClsPrefix } = mergedClsPrefixRef;
|
|
368
|
-
return ((0, vue_1.h)("div", { class:
|
|
373
|
+
return ((0, vue_1.h)("div", { class: [
|
|
374
|
+
`${mergedClsPrefix}-color-picker-panel`,
|
|
375
|
+
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value
|
|
376
|
+
], onDragstart: (e) => {
|
|
369
377
|
e.preventDefault();
|
|
370
|
-
}, style:
|
|
378
|
+
}, style: inlineThemeDisabled
|
|
379
|
+
? undefined
|
|
380
|
+
: cssVarsRef.value },
|
|
371
381
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-color-picker-control` },
|
|
372
382
|
(0, vue_1.h)(Pallete_1.default, { clsPrefix: mergedClsPrefix, rgba: rgba, displayedHue: displayedHue, displayedSv: displayedSvRef.value, onUpdateSV: handleUpdateSv, onComplete: handleComplete }),
|
|
373
383
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-color-picker-preview` },
|
|
@@ -403,12 +413,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
403
413
|
doUpdateShow(false);
|
|
404
414
|
},
|
|
405
415
|
renderPanel,
|
|
406
|
-
cssVars: cssVarsRef
|
|
416
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
417
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
418
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
407
419
|
};
|
|
408
420
|
},
|
|
409
421
|
render() {
|
|
410
|
-
const { $slots, mergedClsPrefix } = this;
|
|
411
|
-
|
|
422
|
+
const { $slots, mergedClsPrefix, onRender } = this;
|
|
423
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
424
|
+
return ((0, vue_1.h)("div", { class: [this.themeClass, `${mergedClsPrefix}-color-picker`], ref: "selfRef", style: this.cssVars },
|
|
412
425
|
(0, vue_1.h)(vueuc_1.VBinder, null, {
|
|
413
426
|
default: () => [
|
|
414
427
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
package/lib/components.d.ts
CHANGED
package/lib/components.js
CHANGED
|
@@ -132,7 +132,7 @@ export declare const configProviderProps: {
|
|
|
132
132
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
133
133
|
readonly icons: PropType<GlobalIconConfig>;
|
|
134
134
|
readonly breakpoints: PropType<Breakpoints>;
|
|
135
|
-
readonly
|
|
135
|
+
readonly inlineThemeDisabled: {
|
|
136
136
|
readonly type: BooleanConstructor;
|
|
137
137
|
readonly default: undefined;
|
|
138
138
|
};
|
|
@@ -271,7 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
271
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
272
272
|
readonly icons: PropType<GlobalIconConfig>;
|
|
273
273
|
readonly breakpoints: PropType<Breakpoints>;
|
|
274
|
-
readonly
|
|
274
|
+
readonly inlineThemeDisabled: {
|
|
275
275
|
readonly type: BooleanConstructor;
|
|
276
276
|
readonly default: undefined;
|
|
277
277
|
};
|
|
@@ -414,7 +414,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
414
414
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
415
415
|
readonly icons: PropType<GlobalIconConfig>;
|
|
416
416
|
readonly breakpoints: PropType<Breakpoints>;
|
|
417
|
-
readonly
|
|
417
|
+
readonly inlineThemeDisabled: {
|
|
418
418
|
readonly type: BooleanConstructor;
|
|
419
419
|
readonly default: undefined;
|
|
420
420
|
};
|
|
@@ -428,6 +428,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
428
428
|
tag: string;
|
|
429
429
|
as: string | undefined;
|
|
430
430
|
bordered: boolean | undefined;
|
|
431
|
-
|
|
431
|
+
inlineThemeDisabled: boolean;
|
|
432
432
|
}>;
|
|
433
433
|
export default _default;
|
|
@@ -29,7 +29,7 @@ exports.configProviderProps = {
|
|
|
29
29
|
componentOptions: Object,
|
|
30
30
|
icons: Object,
|
|
31
31
|
breakpoints: Object,
|
|
32
|
-
|
|
32
|
+
inlineThemeDisabled: {
|
|
33
33
|
type: Boolean,
|
|
34
34
|
default: undefined
|
|
35
35
|
},
|
|
@@ -123,7 +123,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
123
123
|
const mergedBreakpointsRef = (0, vue_1.computed)(() => {
|
|
124
124
|
return props.breakpoints || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedBreakpointsRef.value);
|
|
125
125
|
});
|
|
126
|
-
const
|
|
126
|
+
const inlineThemeDisabled = props.inlineThemeDisabled || (NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.inlineThemeDisabled);
|
|
127
127
|
const mergedThemeHashRef = (0, vue_1.computed)(() => {
|
|
128
128
|
const { value: theme } = mergedThemeRef;
|
|
129
129
|
const { value: mergedThemeOverrides } = mergedThemeOverridesRef;
|
|
@@ -173,7 +173,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
173
173
|
}),
|
|
174
174
|
mergedThemeRef,
|
|
175
175
|
mergedThemeOverridesRef,
|
|
176
|
-
|
|
176
|
+
inlineThemeDisabled: inlineThemeDisabled || false
|
|
177
177
|
});
|
|
178
178
|
return {
|
|
179
179
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -74,6 +74,7 @@ import type { TreeTheme } from '../../tree/styles';
|
|
|
74
74
|
import type { TreeSelectTheme } from '../../tree-select/styles';
|
|
75
75
|
import type { TypographyTheme } from '../../typography/styles';
|
|
76
76
|
import type { UploadTheme } from '../../upload/styles';
|
|
77
|
+
import type { WatermarkTheme } from '../../watermark/styles';
|
|
77
78
|
import type { InternalSelectMenuTheme } from '../../_internal/select-menu/styles';
|
|
78
79
|
import type { InternalSelectionTheme } from '../../_internal/selection/styles';
|
|
79
80
|
import type { NDateLocale, NLocale } from '../../locales';
|
|
@@ -163,6 +164,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
163
164
|
TreeSelect?: TreeSelectTheme;
|
|
164
165
|
Typography?: TypographyTheme;
|
|
165
166
|
Upload?: UploadTheme;
|
|
167
|
+
Watermark?: WatermarkTheme;
|
|
166
168
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
167
169
|
InternalSelection?: InternalSelectionTheme;
|
|
168
170
|
}
|
|
@@ -229,5 +231,5 @@ export interface ConfigProviderInjection {
|
|
|
229
231
|
mergedThemeOverridesRef: Ref<GlobalThemeOverrides | undefined>;
|
|
230
232
|
mergedRtlRef: Ref<RtlEnabledState | undefined>;
|
|
231
233
|
mergedThemeHashRef: Ref<string>;
|
|
232
|
-
|
|
234
|
+
inlineThemeDisabled: boolean;
|
|
233
235
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
declare const countdownProps: {
|
|
4
|
-
label: StringConstructor;
|
|
5
4
|
duration: {
|
|
6
5
|
type: NumberConstructor;
|
|
7
6
|
default: number;
|
|
@@ -24,7 +23,6 @@ declare const countdownProps: {
|
|
|
24
23
|
};
|
|
25
24
|
export declare type CountdownProps = ExtractPublicPropTypes<typeof countdownProps>;
|
|
26
25
|
declare const _default: import("vue").DefineComponent<{
|
|
27
|
-
label: StringConstructor;
|
|
28
26
|
duration: {
|
|
29
27
|
type: NumberConstructor;
|
|
30
28
|
default: number;
|
|
@@ -45,7 +43,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
43
|
}) => VNodeChild>;
|
|
46
44
|
onFinish: PropType<() => void>;
|
|
47
45
|
}, () => VNodeChild, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
-
label: StringConstructor;
|
|
49
46
|
duration: {
|
|
50
47
|
type: NumberConstructor;
|
|
51
48
|
default: number;
|
|
@@ -3782,47 +3782,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3782
3782
|
}>;
|
|
3783
3783
|
}>>>;
|
|
3784
3784
|
}, {
|
|
3785
|
-
cssVars: import("vue").ComputedRef<{
|
|
3786
|
-
'--n-font-size': string;
|
|
3787
|
-
'--n-th-padding': string;
|
|
3788
|
-
'--n-td-padding': string;
|
|
3789
|
-
'--n-bezier': string;
|
|
3790
|
-
'--n-border-radius': string;
|
|
3791
|
-
'--n-line-height': string;
|
|
3792
|
-
'--n-border-color': string;
|
|
3793
|
-
'--n-border-color-modal': string;
|
|
3794
|
-
'--n-border-color-popover': string;
|
|
3795
|
-
'--n-th-color': string;
|
|
3796
|
-
'--n-th-color-hover': string;
|
|
3797
|
-
'--n-th-color-modal': string;
|
|
3798
|
-
'--n-th-color-hover-modal': string;
|
|
3799
|
-
'--n-th-color-popover': string;
|
|
3800
|
-
'--n-th-color-hover-popover': string;
|
|
3801
|
-
'--n-td-color': string;
|
|
3802
|
-
'--n-td-color-hover': string;
|
|
3803
|
-
'--n-td-color-modal': string;
|
|
3804
|
-
'--n-td-color-hover-modal': string;
|
|
3805
|
-
'--n-n-td-color-popover': string;
|
|
3806
|
-
'--n-td-color-hover-popover': string;
|
|
3807
|
-
'--n-th-text-color': string;
|
|
3808
|
-
'--n-td-text-color': string;
|
|
3809
|
-
'--n-th-font-weight': string;
|
|
3810
|
-
'--n-th-button-color-hover': string;
|
|
3811
|
-
'--n-th-icon-color': string;
|
|
3812
|
-
'--n-th-icon-color-active': string;
|
|
3813
|
-
'--n-filter-size': string;
|
|
3814
|
-
'--n-pagination-margin': string;
|
|
3815
|
-
'--n-empty-padding': string;
|
|
3816
|
-
'--n-box-shadow-before': string;
|
|
3817
|
-
'--n-box-shadow-after': string;
|
|
3818
|
-
'--n-sorter-size': string;
|
|
3819
|
-
'--n-loading-size': string;
|
|
3820
|
-
'--n-loading-color': string;
|
|
3821
|
-
'--n-opacity-loading': string;
|
|
3822
|
-
'--n-td-color-striped': string;
|
|
3823
|
-
'--n-td-color-striped-modal': string;
|
|
3824
|
-
'--n-td-color-striped-popover': string;
|
|
3825
|
-
}>;
|
|
3826
3785
|
filter: (filters: import("./interface").FilterState | null) => void;
|
|
3827
3786
|
filters: (filters: import("./interface").FilterState | null) => void;
|
|
3828
3787
|
clearFilters: () => void;
|
|
@@ -4793,6 +4752,49 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4793
4752
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
4794
4753
|
mergedBottomBordered: import("vue").ComputedRef<boolean>;
|
|
4795
4754
|
mergedPagination: import("vue").ComputedRef<PaginationProps>;
|
|
4755
|
+
cssVars: import("vue").ComputedRef<{
|
|
4756
|
+
'--n-font-size': string;
|
|
4757
|
+
'--n-th-padding': string;
|
|
4758
|
+
'--n-td-padding': string;
|
|
4759
|
+
'--n-bezier': string;
|
|
4760
|
+
'--n-border-radius': string;
|
|
4761
|
+
'--n-line-height': string;
|
|
4762
|
+
'--n-border-color': string;
|
|
4763
|
+
'--n-border-color-modal': string;
|
|
4764
|
+
'--n-border-color-popover': string;
|
|
4765
|
+
'--n-th-color': string;
|
|
4766
|
+
'--n-th-color-hover': string;
|
|
4767
|
+
'--n-th-color-modal': string;
|
|
4768
|
+
'--n-th-color-hover-modal': string;
|
|
4769
|
+
'--n-th-color-popover': string;
|
|
4770
|
+
'--n-th-color-hover-popover': string;
|
|
4771
|
+
'--n-td-color': string;
|
|
4772
|
+
'--n-td-color-hover': string;
|
|
4773
|
+
'--n-td-color-modal': string;
|
|
4774
|
+
'--n-td-color-hover-modal': string;
|
|
4775
|
+
'--n-td-color-popover': string;
|
|
4776
|
+
'--n-td-color-hover-popover': string;
|
|
4777
|
+
'--n-th-text-color': string;
|
|
4778
|
+
'--n-td-text-color': string;
|
|
4779
|
+
'--n-th-font-weight': string;
|
|
4780
|
+
'--n-th-button-color-hover': string;
|
|
4781
|
+
'--n-th-icon-color': string;
|
|
4782
|
+
'--n-th-icon-color-active': string;
|
|
4783
|
+
'--n-filter-size': string;
|
|
4784
|
+
'--n-pagination-margin': string;
|
|
4785
|
+
'--n-empty-padding': string;
|
|
4786
|
+
'--n-box-shadow-before': string;
|
|
4787
|
+
'--n-box-shadow-after': string;
|
|
4788
|
+
'--n-sorter-size': string;
|
|
4789
|
+
'--n-loading-size': string;
|
|
4790
|
+
'--n-loading-color': string;
|
|
4791
|
+
'--n-opacity-loading': string;
|
|
4792
|
+
'--n-td-color-striped': string;
|
|
4793
|
+
'--n-td-color-striped-modal': string;
|
|
4794
|
+
'--n-td-color-striped-popover': string;
|
|
4795
|
+
}> | undefined;
|
|
4796
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
4797
|
+
onRender: (() => void) | undefined;
|
|
4796
4798
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
4797
4799
|
readonly pagination: {
|
|
4798
4800
|
readonly type: PropType<false | PaginationProps>;
|
|
@@ -87,7 +87,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
const { mergedBorderedRef, mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
90
|
+
const { mergedBorderedRef, mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
91
91
|
const mergedBottomBorderedRef = (0, vue_1.computed)(() => {
|
|
92
92
|
const { bottomBordered } = props;
|
|
93
93
|
// do not add bottom bordered class if bordered is true
|
|
@@ -211,56 +211,62 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
211
211
|
sort,
|
|
212
212
|
clearFilter
|
|
213
213
|
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
214
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
215
|
+
const { size } = props;
|
|
216
|
+
const { common: { cubicBezierEaseInOut }, self: { borderColor, tdColorHover, thColor, thColorHover, tdColor, tdTextColor, thTextColor, thFontWeight, thButtonColorHover, thIconColor, thIconColorActive, filterSize, borderRadius, lineHeight, tdColorModal, thColorModal, borderColorModal, thColorHoverModal, tdColorHoverModal, borderColorPopover, thColorPopover, tdColorPopover, tdColorHoverPopover, thColorHoverPopover, paginationMargin, emptyPadding, boxShadowAfter, boxShadowBefore, sorterSize, loadingColor, loadingSize, opacityLoading, tdColorStriped, tdColorStripedModal, tdColorStripedPopover, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('thPadding', size)]: thPadding, [(0, _utils_1.createKey)('tdPadding', size)]: tdPadding } } = themeRef.value;
|
|
217
|
+
return {
|
|
218
|
+
'--n-font-size': fontSize,
|
|
219
|
+
'--n-th-padding': thPadding,
|
|
220
|
+
'--n-td-padding': tdPadding,
|
|
221
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
222
|
+
'--n-border-radius': borderRadius,
|
|
223
|
+
'--n-line-height': lineHeight,
|
|
224
|
+
'--n-border-color': borderColor,
|
|
225
|
+
'--n-border-color-modal': borderColorModal,
|
|
226
|
+
'--n-border-color-popover': borderColorPopover,
|
|
227
|
+
'--n-th-color': thColor,
|
|
228
|
+
'--n-th-color-hover': thColorHover,
|
|
229
|
+
'--n-th-color-modal': thColorModal,
|
|
230
|
+
'--n-th-color-hover-modal': thColorHoverModal,
|
|
231
|
+
'--n-th-color-popover': thColorPopover,
|
|
232
|
+
'--n-th-color-hover-popover': thColorHoverPopover,
|
|
233
|
+
'--n-td-color': tdColor,
|
|
234
|
+
'--n-td-color-hover': tdColorHover,
|
|
235
|
+
'--n-td-color-modal': tdColorModal,
|
|
236
|
+
'--n-td-color-hover-modal': tdColorHoverModal,
|
|
237
|
+
'--n-td-color-popover': tdColorPopover,
|
|
238
|
+
'--n-td-color-hover-popover': tdColorHoverPopover,
|
|
239
|
+
'--n-th-text-color': thTextColor,
|
|
240
|
+
'--n-td-text-color': tdTextColor,
|
|
241
|
+
'--n-th-font-weight': thFontWeight,
|
|
242
|
+
'--n-th-button-color-hover': thButtonColorHover,
|
|
243
|
+
'--n-th-icon-color': thIconColor,
|
|
244
|
+
'--n-th-icon-color-active': thIconColorActive,
|
|
245
|
+
'--n-filter-size': filterSize,
|
|
246
|
+
'--n-pagination-margin': paginationMargin,
|
|
247
|
+
'--n-empty-padding': emptyPadding,
|
|
248
|
+
'--n-box-shadow-before': boxShadowBefore,
|
|
249
|
+
'--n-box-shadow-after': boxShadowAfter,
|
|
250
|
+
'--n-sorter-size': sorterSize,
|
|
251
|
+
'--n-loading-size': loadingSize,
|
|
252
|
+
'--n-loading-color': loadingColor,
|
|
253
|
+
'--n-opacity-loading': opacityLoading,
|
|
254
|
+
'--n-td-color-striped': tdColorStriped,
|
|
255
|
+
'--n-td-color-striped-modal': tdColorStripedModal,
|
|
256
|
+
'--n-td-color-striped-popover': tdColorStripedPopover
|
|
257
|
+
};
|
|
258
|
+
});
|
|
259
|
+
const themeClassHandle = inlineThemeDisabled
|
|
260
|
+
? (0, _mixins_1.useThemeClass)('data-table', (0, vue_1.computed)(() => props.size[0]), cssVarsRef, props)
|
|
261
|
+
: undefined;
|
|
262
|
+
return Object.assign({ mainTableInstRef, mergedClsPrefix: mergedClsPrefixRef, mergedTheme: themeRef, paginatedData: paginatedDataRef, mergedBordered: mergedBorderedRef, mergedBottomBordered: mergedBottomBorderedRef, mergedPagination: mergedPaginationRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender }, exposedMethods);
|
|
259
263
|
},
|
|
260
264
|
render() {
|
|
261
|
-
const { mergedClsPrefix } = this;
|
|
265
|
+
const { mergedClsPrefix, themeClass, onRender } = this;
|
|
266
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
262
267
|
return ((0, vue_1.h)("div", { class: [
|
|
263
268
|
`${mergedClsPrefix}-data-table`,
|
|
269
|
+
themeClass,
|
|
264
270
|
{
|
|
265
271
|
[`${mergedClsPrefix}-data-table--bordered`]: this.mergedBordered,
|
|
266
272
|
[`${mergedClsPrefix}-data-table--bottom-bordered`]: this.mergedBottomBordered,
|
|
@@ -29,7 +29,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(props) {
|
|
32
|
-
const {
|
|
32
|
+
const { mergedComponentPropsRef } = (0, _mixins_1.useConfig)();
|
|
33
33
|
const { mergedThemeRef, mergedClsPrefixRef, mergedFilterStateRef, filterMenuCssVarsRef, doUpdateFilters
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
35
35
|
} = (0, vue_1.inject)(interface_1.dataTableInjectionKey);
|
|
@@ -58,7 +58,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
58
58
|
});
|
|
59
59
|
const mergedRenderFilterRef = (0, vue_1.computed)(() => {
|
|
60
60
|
var _a, _b;
|
|
61
|
-
return (((_b = (_a =
|
|
61
|
+
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.renderFilter) ||
|
|
62
|
+
props.column.renderFilter);
|
|
62
63
|
});
|
|
63
64
|
function handleFilterChange(mergedFilterValue) {
|
|
64
65
|
const nextFilterState = createFilterState(filterStateRef.value, props.column.key, mergedFilterValue);
|
|
@@ -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;
|
|
@@ -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,
|
|
@@ -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;
|
|
@@ -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;
|