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
|
@@ -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;
|
|
@@ -30,42 +30,58 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
30
30
|
name: 'Descriptions',
|
|
31
31
|
props: descriptionProps,
|
|
32
32
|
setup(props) {
|
|
33
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
33
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
34
34
|
const themeRef = (0, _mixins_1.useTheme)('Descriptions', '-descriptions', index_cssr_1.default, styles_1.descriptionsLight, props, mergedClsPrefixRef);
|
|
35
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
36
|
+
const { size, bordered } = props;
|
|
37
|
+
const { common: { cubicBezierEaseInOut }, self: { titleTextColor, thColor, thColorModal, thColorPopover, thTextColor, thFontWeight, tdTextColor, tdColor, tdColorModal, tdColorPopover, borderColor, borderColorModal, borderColorPopover, borderRadius, lineHeight, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)(bordered ? 'thPaddingBordered' : 'thPadding', size)]: thPadding, [(0, _utils_1.createKey)(bordered ? 'tdPaddingBordered' : 'tdPadding', size)]: tdPadding } } = themeRef.value;
|
|
38
|
+
return {
|
|
39
|
+
'--n-title-text-color': titleTextColor,
|
|
40
|
+
'--n-th-padding': thPadding,
|
|
41
|
+
'--n-td-padding': tdPadding,
|
|
42
|
+
'--n-font-size': fontSize,
|
|
43
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
44
|
+
'--n-th-font-weight': thFontWeight,
|
|
45
|
+
'--n-line-height': lineHeight,
|
|
46
|
+
'--n-th-text-color': thTextColor,
|
|
47
|
+
'--n-td-text-color': tdTextColor,
|
|
48
|
+
'--n-th-color': thColor,
|
|
49
|
+
'--n-th-color-modal': thColorModal,
|
|
50
|
+
'--n-th-color-popover': thColorPopover,
|
|
51
|
+
'--n-td-color': tdColor,
|
|
52
|
+
'--n-td-color-modal': tdColorModal,
|
|
53
|
+
'--n-td-color-popover': tdColorPopover,
|
|
54
|
+
'--n-border-radius': borderRadius,
|
|
55
|
+
'--n-border-color': borderColor,
|
|
56
|
+
'--n-border-color-modal': borderColorModal,
|
|
57
|
+
'--n-border-color-popover': borderColorPopover
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
const themeClassHandle = inlineThemeDisabled
|
|
61
|
+
? (0, _mixins_1.useThemeClass)('descriptions', (0, vue_1.computed)(() => {
|
|
62
|
+
let hash = '';
|
|
63
|
+
const { size, bordered } = props;
|
|
64
|
+
if (bordered)
|
|
65
|
+
hash += 'a';
|
|
66
|
+
hash += size[0];
|
|
67
|
+
return hash;
|
|
68
|
+
}), cssVarsRef, props)
|
|
69
|
+
: undefined;
|
|
35
70
|
return {
|
|
36
71
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
37
|
-
cssVars:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
'--n-td-padding': tdPadding,
|
|
43
|
-
'--n-font-size': fontSize,
|
|
44
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
45
|
-
'--n-th-font-weight': thFontWeight,
|
|
46
|
-
'--n-line-height': lineHeight,
|
|
47
|
-
'--n-th-text-color': thTextColor,
|
|
48
|
-
'--n-td-text-color': tdTextColor,
|
|
49
|
-
'--n-th-color': thColor,
|
|
50
|
-
'--n-th-color-modal': thColorModal,
|
|
51
|
-
'--n-th-color-popover': thColorPopover,
|
|
52
|
-
'--n-td-color': tdColor,
|
|
53
|
-
'--n-td-color-modal': tdColorModal,
|
|
54
|
-
'--n-td-color-popover': tdColorPopover,
|
|
55
|
-
'--n-border-radius': borderRadius,
|
|
56
|
-
'--n-border-color': borderColor,
|
|
57
|
-
'--n-border-color-modal': borderColorModal,
|
|
58
|
-
'--n-border-color-popover': borderColorPopover
|
|
59
|
-
};
|
|
60
|
-
}),
|
|
61
|
-
compitableColumn: (0, vooks_1.useCompitable)(props, ['columns', 'column'])
|
|
72
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
73
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
74
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
75
|
+
compitableColumn: (0, vooks_1.useCompitable)(props, ['columns', 'column']),
|
|
76
|
+
inlineThemeDisabled
|
|
62
77
|
};
|
|
63
78
|
},
|
|
64
79
|
render() {
|
|
65
80
|
const defaultSlots = this.$slots.default;
|
|
66
81
|
const children = defaultSlots ? (0, _utils_1.flatten)(defaultSlots()) : [];
|
|
67
82
|
const memorizedLength = children.length;
|
|
68
|
-
const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator } = this;
|
|
83
|
+
const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
84
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
69
85
|
const filteredChildren = children.filter((child) => (0, utils_1.isDescriptionsItem)(child));
|
|
70
86
|
if (process.env.NODE_ENV !== 'production' && memorizedLength !== filteredChildren.length) {
|
|
71
87
|
(0, _utils_1.warn)('descriptions', '`n-descriptions` only takes `n-descriptions-item` as children.');
|
|
@@ -130,6 +146,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
130
146
|
const rows = itemState.rows.map((row) => ((0, vue_1.h)("tr", { class: `${mergedClsPrefix}-descriptions-table-row` }, row)));
|
|
131
147
|
return ((0, vue_1.h)("div", { style: cssVars, class: [
|
|
132
148
|
`${mergedClsPrefix}-descriptions`,
|
|
149
|
+
this.themeClass,
|
|
133
150
|
`${mergedClsPrefix}-descriptions--${labelPlacement}-label-placement`,
|
|
134
151
|
`${mergedClsPrefix}-descriptions--${labelAlign}-label-align`,
|
|
135
152
|
`${mergedClsPrefix}-descriptions--${size}-size`,
|
|
@@ -23,6 +23,7 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
23
23
|
// --n-border-color
|
|
24
24
|
// --n-border-color-modal
|
|
25
25
|
// --n-border-color-popover
|
|
26
|
+
// --n-title-text-color
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('descriptions', {
|
|
@@ -67,7 +68,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('descriptions', {
|
|
|
67
68
|
transition: color .3s var(--n-bezier);
|
|
68
69
|
line-height: var(--n-line-height);
|
|
69
70
|
margin-bottom: 16px;
|
|
70
|
-
color: var(--n-
|
|
71
|
+
color: var(--n-title-text-color);
|
|
71
72
|
`), (0, cssr_1.cB)('descriptions-table-wrapper', `
|
|
72
73
|
transition:
|
|
73
74
|
background-color .3s var(--n-bezier),
|
|
@@ -8,11 +8,11 @@ const seemly_1 = require("seemly");
|
|
|
8
8
|
const _common_1 = __importDefault(require("./_common"));
|
|
9
9
|
const common_1 = require("../../_styles/common");
|
|
10
10
|
const self = (vars) => {
|
|
11
|
-
const { tableHeaderColor,
|
|
11
|
+
const { tableHeaderColor, textColor2, textColor1, cardColor, modalColor, popoverColor, dividerColor, borderRadius, fontWeightStrong, lineHeight, fontSizeSmall, fontSizeMedium, fontSizeLarge } = vars;
|
|
12
12
|
return Object.assign(Object.assign({}, _common_1.default), { lineHeight,
|
|
13
13
|
fontSizeSmall,
|
|
14
14
|
fontSizeMedium,
|
|
15
|
-
fontSizeLarge, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius: borderRadius });
|
|
15
|
+
fontSizeLarge, titleTextColor: textColor1, thColor: (0, seemly_1.composite)(cardColor, tableHeaderColor), thColorModal: (0, seemly_1.composite)(modalColor, tableHeaderColor), thColorPopover: (0, seemly_1.composite)(popoverColor, tableHeaderColor), thTextColor: textColor1, thFontWeight: fontWeightStrong, tdTextColor: textColor2, tdColor: cardColor, tdColorModal: modalColor, tdColorPopover: popoverColor, borderColor: (0, seemly_1.composite)(cardColor, dividerColor), borderColorModal: (0, seemly_1.composite)(modalColor, dividerColor), borderColorPopover: (0, seemly_1.composite)(popoverColor, dividerColor), borderRadius: borderRadius });
|
|
16
16
|
};
|
|
17
17
|
exports.self = self;
|
|
18
18
|
const descriptionsLight = {
|
|
@@ -1096,7 +1096,9 @@ export declare const NDialog: import("vue").DefineComponent<{
|
|
|
1096
1096
|
'--n-title-font-weight': string;
|
|
1097
1097
|
'--n-title-text-color': string;
|
|
1098
1098
|
'--n-action-space': string;
|
|
1099
|
-
}
|
|
1099
|
+
}> | undefined;
|
|
1100
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
1101
|
+
onRender: (() => void) | undefined;
|
|
1100
1102
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1101
1103
|
icon: import("vue").PropType<() => import("vue").VNodeChild>;
|
|
1102
1104
|
type: {
|
package/lib/dialog/src/Dialog.js
CHANGED
|
@@ -11,8 +11,8 @@ const _utils_1 = require("../../_utils");
|
|
|
11
11
|
const _internal_1 = require("../../_internal");
|
|
12
12
|
const button_1 = require("../../button");
|
|
13
13
|
const styles_1 = require("../styles");
|
|
14
|
-
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
15
14
|
const dialogProps_1 = require("./dialogProps");
|
|
15
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
16
16
|
const infoIcon = (0, vue_1.h)(icons_1.InfoIcon, null);
|
|
17
17
|
const iconMap = {
|
|
18
18
|
default: infoIcon,
|
|
@@ -29,11 +29,13 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
29
29
|
],
|
|
30
30
|
props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), dialogProps_1.dialogProps),
|
|
31
31
|
setup(props) {
|
|
32
|
-
const {
|
|
32
|
+
const { mergedComponentPropsRef, mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
33
33
|
const mergedIconPlacementRef = (0, vue_1.computed)(() => {
|
|
34
|
-
var _a, _b
|
|
34
|
+
var _a, _b;
|
|
35
35
|
const { iconPlacement } = props;
|
|
36
|
-
return (
|
|
36
|
+
return (iconPlacement ||
|
|
37
|
+
((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Dialog) === null || _b === void 0 ? void 0 : _b.iconPlacement) ||
|
|
38
|
+
'left');
|
|
37
39
|
});
|
|
38
40
|
function handlePositiveClick(e) {
|
|
39
41
|
const { onPositiveClick } = props;
|
|
@@ -51,6 +53,37 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
51
53
|
onClose();
|
|
52
54
|
}
|
|
53
55
|
const themeRef = (0, _mixins_1.useTheme)('Dialog', '-dialog', index_cssr_1.default, styles_1.dialogLight, props, mergedClsPrefixRef);
|
|
56
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
57
|
+
const { type } = props;
|
|
58
|
+
const iconPlacement = mergedIconPlacementRef.value;
|
|
59
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, lineHeight, border, titleTextColor, textColor, color, closeColor, closeColorHover, closeColorPressed, borderRadius, titleFontWeight, titleFontSize, padding, iconSize, actionSpace, contentMargin, closeSize, [iconPlacement === 'top' ? 'iconMarginIconTop' : 'iconMargin']: iconMargin, [iconPlacement === 'top' ? 'closeMarginIconTop' : 'closeMargin']: closeMargin, [(0, _utils_1.createKey)('iconColor', type)]: iconColor } } = themeRef.value;
|
|
60
|
+
return {
|
|
61
|
+
'--n-font-size': fontSize,
|
|
62
|
+
'--n-icon-color': iconColor,
|
|
63
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
64
|
+
'--n-close-margin': closeMargin,
|
|
65
|
+
'--n-icon-margin': iconMargin,
|
|
66
|
+
'--n-icon-size': iconSize,
|
|
67
|
+
'--n-close-size': closeSize,
|
|
68
|
+
'--n-close-color': closeColor,
|
|
69
|
+
'--n-close-color-hover': closeColorHover,
|
|
70
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
71
|
+
'--n-color': color,
|
|
72
|
+
'--n-text-color': textColor,
|
|
73
|
+
'--n-border-radius': borderRadius,
|
|
74
|
+
'--n-padding': padding,
|
|
75
|
+
'--n-line-height': lineHeight,
|
|
76
|
+
'--n-border': border,
|
|
77
|
+
'--n-content-margin': contentMargin,
|
|
78
|
+
'--n-title-font-size': titleFontSize,
|
|
79
|
+
'--n-title-font-weight': titleFontWeight,
|
|
80
|
+
'--n-title-text-color': titleTextColor,
|
|
81
|
+
'--n-action-space': actionSpace
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
const themeClassHandle = inlineThemeDisabled
|
|
85
|
+
? (0, _mixins_1.useThemeClass)('dialog', (0, vue_1.computed)(() => `${props.type[0]}${mergedIconPlacementRef.value[0]}`), cssVarsRef, props)
|
|
86
|
+
: undefined;
|
|
54
87
|
return {
|
|
55
88
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
56
89
|
mergedIconPlacement: mergedIconPlacementRef,
|
|
@@ -58,65 +91,33 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
58
91
|
handlePositiveClick,
|
|
59
92
|
handleNegativeClick,
|
|
60
93
|
handleCloseClick,
|
|
61
|
-
cssVars:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
'--n-font-size': fontSize,
|
|
66
|
-
'--n-icon-color': iconColor,
|
|
67
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
68
|
-
'--n-close-margin': closeMargin,
|
|
69
|
-
'--n-icon-margin': iconMargin,
|
|
70
|
-
'--n-icon-size': iconSize,
|
|
71
|
-
'--n-close-size': closeSize,
|
|
72
|
-
'--n-close-color': closeColor,
|
|
73
|
-
'--n-close-color-hover': closeColorHover,
|
|
74
|
-
'--n-close-color-pressed': closeColorPressed,
|
|
75
|
-
'--n-color': color,
|
|
76
|
-
'--n-text-color': textColor,
|
|
77
|
-
'--n-border-radius': borderRadius,
|
|
78
|
-
'--n-padding': padding,
|
|
79
|
-
'--n-line-height': lineHeight,
|
|
80
|
-
'--n-border': border,
|
|
81
|
-
'--n-content-margin': contentMargin,
|
|
82
|
-
'--n-title-font-size': titleFontSize,
|
|
83
|
-
'--n-title-font-weight': titleFontWeight,
|
|
84
|
-
'--n-title-text-color': titleTextColor,
|
|
85
|
-
'--n-action-space': actionSpace
|
|
86
|
-
};
|
|
87
|
-
})
|
|
94
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
95
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
96
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
88
97
|
};
|
|
89
98
|
},
|
|
90
99
|
render() {
|
|
91
|
-
|
|
100
|
+
var _a;
|
|
101
|
+
const { bordered, mergedIconPlacement, cssVars, closable, showIcon, title, content, action, negativeText, positiveText, handlePositiveClick, handleNegativeClick, mergedTheme, loading, type, mergedClsPrefix } = this;
|
|
102
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
103
|
+
const icon = showIcon ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__icon` }, {
|
|
104
|
+
default: () => (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, (children) => children || (this.icon ? (0, _utils_1.render)(this.icon) : iconMap[this.type]))
|
|
105
|
+
})) : null;
|
|
92
106
|
return ((0, vue_1.h)("div", { class: [
|
|
93
107
|
`${mergedClsPrefix}-dialog`,
|
|
108
|
+
this.themeClass,
|
|
94
109
|
`${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
|
|
95
110
|
bordered && `${mergedClsPrefix}-dialog--bordered`
|
|
96
111
|
], style: cssVars, role: "dialog" },
|
|
97
112
|
closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick })) : null,
|
|
98
|
-
showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` },
|
|
99
|
-
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__icon` }, {
|
|
100
|
-
default: () => $slots.icon
|
|
101
|
-
? $slots.icon()
|
|
102
|
-
: this.icon
|
|
103
|
-
? (0, _utils_1.render)(this.icon)
|
|
104
|
-
: iconMap[this.type]
|
|
105
|
-
}))) : null,
|
|
113
|
+
showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` }, icon)) : null,
|
|
106
114
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__title` },
|
|
107
|
-
showIcon && mergedIconPlacement === 'left' ?
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
})) : null,
|
|
114
|
-
$slots.header ? $slots.header() : (0, _utils_1.render)(title)),
|
|
115
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__content` }, $slots.default ? $slots.default() : (0, _utils_1.render)(content)),
|
|
116
|
-
$slots.action || positiveText || negativeText || action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__action` }, $slots.action
|
|
117
|
-
? $slots.action()
|
|
118
|
-
: action
|
|
119
|
-
? (0, _utils_1.render)(action)
|
|
115
|
+
showIcon && mergedIconPlacement === 'left' ? icon : null,
|
|
116
|
+
(0, _utils_1.resolveSlot)(this.$slots.header, () => [(0, _utils_1.render)(title)])),
|
|
117
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__content` }, (0, _utils_1.resolveSlot)(this.$slots.default, () => [(0, _utils_1.render)(content)])),
|
|
118
|
+
(0, _utils_1.resolveWrappedSlot)(this.$slots.action, (children) => children || positiveText || negativeText || action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__action` }, children ||
|
|
119
|
+
(action
|
|
120
|
+
? [(0, _utils_1.render)(action)]
|
|
120
121
|
: [
|
|
121
122
|
this.negativeText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, ghost: true, size: "small", onClick: handleNegativeClick }, {
|
|
122
123
|
default: () => (0, _utils_1.render)(this.negativeText)
|
|
@@ -124,6 +125,6 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
124
125
|
this.positiveText && ((0, vue_1.h)(button_1.NButton, { theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, disabled: loading, loading: loading, size: "small", type: type === 'default' ? 'primary' : type, onClick: handlePositiveClick }, {
|
|
125
126
|
default: () => (0, _utils_1.render)(this.positiveText)
|
|
126
127
|
}))
|
|
127
|
-
])) : null));
|
|
128
|
+
]))) : null)));
|
|
128
129
|
}
|
|
129
130
|
});
|
|
@@ -96,7 +96,7 @@ exports.NDialogEnvironment = (0, vue_1.defineComponent)({
|
|
|
96
96
|
},
|
|
97
97
|
render() {
|
|
98
98
|
const { handlePositiveClick, handleUpdateShow, handleNegativeClick, handleCloseClick, handleAfterLeave, handleMaskClick, to, maskClosable, show } = this;
|
|
99
|
-
return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick,
|
|
99
|
+
return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, to: to, maskClosable: maskClosable, onAfterLeave: handleAfterLeave, internalAppear: true, internalDialog: true }, {
|
|
100
100
|
default: () => ((0, vue_1.h)(Dialog_1.NDialog, Object.assign({}, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { style: this.internalStyle, onClose: handleCloseClick, onNegativeClick: handleNegativeClick, onPositiveClick: handlePositiveClick })))
|
|
101
101
|
}));
|
|
102
102
|
}
|
|
@@ -53,7 +53,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
'--n-color': string;
|
|
54
54
|
'--n-text-color': string;
|
|
55
55
|
'--n-font-weight': string;
|
|
56
|
-
}
|
|
56
|
+
}> | undefined;
|
|
57
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
58
|
+
onRender: (() => void) | undefined;
|
|
57
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
60
|
readonly titlePlacement: {
|
|
59
61
|
readonly type: PropType<"left" | "right" | "center">;
|
|
@@ -15,25 +15,34 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
15
15
|
name: 'Divider',
|
|
16
16
|
props: dividerProps,
|
|
17
17
|
setup(props) {
|
|
18
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
18
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
19
19
|
const themeRef = (0, _mixins_1.useTheme)('Divider', '-divider', index_cssr_1.default, styles_1.dividerLight, props, mergedClsPrefixRef);
|
|
20
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
21
|
+
const { common: { cubicBezierEaseInOut }, self: { color, textColor, fontWeight } } = themeRef.value;
|
|
22
|
+
return {
|
|
23
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
24
|
+
'--n-color': color,
|
|
25
|
+
'--n-text-color': textColor,
|
|
26
|
+
'--n-font-weight': fontWeight
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
const themeClassHandle = inlineThemeDisabled
|
|
30
|
+
? (0, _mixins_1.useThemeClass)('divider', undefined, cssVarsRef, props)
|
|
31
|
+
: undefined;
|
|
20
32
|
return {
|
|
21
33
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
22
|
-
cssVars:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
26
|
-
'--n-color': color,
|
|
27
|
-
'--n-text-color': textColor,
|
|
28
|
-
'--n-font-weight': fontWeight
|
|
29
|
-
};
|
|
30
|
-
})
|
|
34
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
35
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
36
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
31
37
|
};
|
|
32
38
|
},
|
|
33
39
|
render() {
|
|
40
|
+
var _a;
|
|
34
41
|
const { $slots, titlePlacement, vertical, dashed, cssVars, mergedClsPrefix } = this;
|
|
42
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
35
43
|
return ((0, vue_1.h)("div", { role: "separator", class: [
|
|
36
44
|
`${mergedClsPrefix}-divider`,
|
|
45
|
+
this.themeClass,
|
|
37
46
|
{
|
|
38
47
|
[`${mergedClsPrefix}-divider--vertical`]: vertical,
|
|
39
48
|
[`${mergedClsPrefix}-divider--no-title`]: !$slots.default,
|
|
@@ -59,7 +59,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
const {
|
|
62
|
+
const { mergedComponentPropsRef, mergedClsPrefixRef } = (0, _mixins_1.useConfig)();
|
|
63
63
|
const NFormItem = (0, vue_1.inject)(use_form_item_1.formItemInjectionKey, null);
|
|
64
64
|
const uncontrolledValueRef = (0, vue_1.ref)(props.defaultValue);
|
|
65
65
|
const controlledValueRef = (0, vue_1.toRef)(props, 'value');
|
|
@@ -81,7 +81,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
81
81
|
});
|
|
82
82
|
const buttonSizeRef = (0, vue_1.computed)(() => {
|
|
83
83
|
var _a, _b;
|
|
84
|
-
return (_b = (_a =
|
|
84
|
+
return (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DynamicInput) === null || _b === void 0 ? void 0 : _b.buttonSize;
|
|
85
85
|
});
|
|
86
86
|
function doUpdateValue(value) {
|
|
87
87
|
const { onInput, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
@@ -2567,7 +2567,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2567
2567
|
}>;
|
|
2568
2568
|
cssVars: import("vue").ComputedRef<{
|
|
2569
2569
|
'--n-input-width': string;
|
|
2570
|
-
}
|
|
2570
|
+
}> | undefined;
|
|
2571
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
2572
|
+
onRender: (() => void) | undefined;
|
|
2571
2573
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2572
2574
|
closable: {
|
|
2573
2575
|
type: BooleanConstructor;
|
|
@@ -36,7 +36,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
39
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
40
40
|
const { localeRef } = (0, _mixins_1.useLocale)('DynamicTags');
|
|
41
41
|
const formItem = (0, _mixins_1.useFormItem)(props);
|
|
42
42
|
const { mergedDisabledRef } = formItem;
|
|
@@ -105,6 +105,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
105
105
|
inputForceFocusedRef.value = false;
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
109
|
+
const { self: { inputWidth } } = themeRef.value;
|
|
110
|
+
return {
|
|
111
|
+
'--n-input-width': inputWidth
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
const themeClassHandle = inlineThemeDisabled
|
|
115
|
+
? (0, _mixins_1.useThemeClass)('dynamic-tags', undefined, cssVarsRef, props)
|
|
116
|
+
: undefined;
|
|
108
117
|
return {
|
|
109
118
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
110
119
|
inputInstRef,
|
|
@@ -122,17 +131,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
122
131
|
handleCloseClick,
|
|
123
132
|
handleInputConfirm,
|
|
124
133
|
mergedTheme: themeRef,
|
|
125
|
-
cssVars:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
'--n-input-width': inputWidth
|
|
129
|
-
};
|
|
130
|
-
})
|
|
134
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
135
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
136
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
131
137
|
};
|
|
132
138
|
},
|
|
133
139
|
render() {
|
|
134
|
-
const { mergedTheme, cssVars, mergedClsPrefix } = this;
|
|
135
|
-
|
|
140
|
+
const { mergedTheme, cssVars, mergedClsPrefix, onRender } = this;
|
|
141
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
142
|
+
return ((0, vue_1.h)(space_1.NSpace, { class: [`${mergedClsPrefix}-dynamic-tags`, this.themeClass], size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
|
|
136
143
|
default: () => {
|
|
137
144
|
const { mergedTheme, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
|
|
138
145
|
return this.mergedValue
|
|
@@ -19,7 +19,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Element", {}, any>>>;
|
|
20
20
|
}, {
|
|
21
21
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
22
|
-
cssVars: import("vue").ComputedRef<Record<string, string |
|
|
22
|
+
cssVars: import("vue").ComputedRef<Record<string, string>> | undefined;
|
|
23
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
24
|
+
onRender: (() => void) | undefined;
|
|
23
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
26
|
readonly tag: {
|
|
25
27
|
readonly type: StringConstructor;
|
|
@@ -13,25 +13,32 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
13
13
|
alias: ['El'],
|
|
14
14
|
props: elementProps,
|
|
15
15
|
setup(props) {
|
|
16
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
16
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
17
17
|
const themeRef = (0, _mixins_1.useTheme)('Element', '-element', undefined, styles_1.elementLight, props, mergedClsPrefixRef);
|
|
18
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
19
|
+
const { common } = themeRef.value;
|
|
20
|
+
return Object.keys(common).reduce((prevValue, key) => {
|
|
21
|
+
prevValue[`--${(0, lodash_1.kebabCase)(key)}`] = common[key];
|
|
22
|
+
return prevValue;
|
|
23
|
+
}, {});
|
|
24
|
+
});
|
|
25
|
+
const themeClassHandle = inlineThemeDisabled
|
|
26
|
+
? (0, _mixins_1.useThemeClass)('element', undefined, cssVarsRef, props)
|
|
27
|
+
: undefined;
|
|
18
28
|
return {
|
|
19
29
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
20
|
-
cssVars:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
prevValue[`--${(0, lodash_1.kebabCase)(key)}`] = common[key];
|
|
24
|
-
return prevValue;
|
|
25
|
-
}, {});
|
|
26
|
-
})
|
|
30
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
31
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
32
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
27
33
|
};
|
|
28
34
|
},
|
|
29
35
|
render() {
|
|
30
36
|
var _a;
|
|
31
|
-
const { tag, mergedClsPrefix, cssVars, $slots } = this;
|
|
37
|
+
const { tag, mergedClsPrefix, cssVars, themeClass, onRender, $slots } = this;
|
|
38
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
32
39
|
return (0, vue_1.h)(tag, {
|
|
33
40
|
role: 'none',
|
|
34
|
-
class: `${mergedClsPrefix}-element`,
|
|
41
|
+
class: [`${mergedClsPrefix}-element`, themeClass],
|
|
35
42
|
style: cssVars
|
|
36
43
|
}, (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots));
|
|
37
44
|
}
|
package/lib/empty/src/Empty.d.ts
CHANGED
|
@@ -121,7 +121,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
121
|
'--n-text-color': string;
|
|
122
122
|
'--n-icon-color': string;
|
|
123
123
|
'--n-extra-text-color': string;
|
|
124
|
-
}
|
|
124
|
+
}> | undefined;
|
|
125
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
126
|
+
onRender: (() => void) | undefined;
|
|
125
127
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
128
|
description: StringConstructor;
|
|
127
129
|
showDescription: {
|