naive-ui 2.25.0 → 2.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_internal/clear/src/Clear.d.ts +0 -1
- package/es/_internal/clear/src/Clear.js +1 -3
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/icons/replaceable.js +5 -4
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
- package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -18
- package/es/_internal/select-menu/src/SelectMenu.js +13 -10
- package/es/_internal/selection/src/Selection.d.ts +31 -26
- package/es/_internal/selection/src/Selection.js +79 -68
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.d.ts +6 -3
- package/es/_mixins/use-config.js +5 -1
- package/es/_mixins/use-css-vars-class.d.ts +6 -2
- package/es/_mixins/use-css-vars-class.js +31 -15
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +5 -2
- package/es/_utils/vue/resolve-slot.js +4 -4
- package/es/alert/src/Alert.d.ts +7 -5
- package/es/alert/src/Alert.js +36 -21
- package/es/anchor/src/AnchorAdapter.js +9 -3
- package/es/auto-complete/src/AutoComplete.d.ts +4 -2
- package/es/auto-complete/src/AutoComplete.js +28 -15
- package/es/avatar/src/Avatar.d.ts +3 -1
- package/es/avatar/src/Avatar.js +70 -35
- package/es/back-top/src/BackTop.d.ts +12 -49
- package/es/back-top/src/BackTop.js +60 -58
- package/es/badge/src/Badge.d.ts +16 -41
- package/es/badge/src/Badge.js +41 -31
- package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/es/breadcrumb/src/Breadcrumb.js +24 -16
- package/es/button/src/Button.d.ts +8 -6
- package/es/button/src/Button.js +20 -21
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/calendar/src/Calendar.d.ts +3 -1
- package/es/calendar/src/Calendar.js +37 -30
- package/es/card/src/Card.d.ts +3 -1
- package/es/card/src/Card.js +57 -43
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- package/es/carousel/src/Carousel.d.ts +3 -1
- package/es/carousel/src/Carousel.js +29 -20
- package/es/cascader/src/Cascader.d.ts +46 -31
- package/es/cascader/src/Cascader.js +53 -31
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.js +2 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -3
- package/es/cascader/src/interface.d.ts +1 -0
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/Checkbox.d.ts +6 -4
- package/es/checkbox/src/Checkbox.js +41 -32
- package/es/checkbox/src/styles/index.cssr.js +17 -17
- package/es/code/src/Code.d.ts +3 -1
- package/es/code/src/Code.js +33 -27
- package/es/collapse/src/Collapse.d.ts +3 -1
- package/es/collapse/src/Collapse.js +24 -16
- package/es/color-picker/src/ColorPicker.d.ts +3 -1
- package/es/color-picker/src/ColorPicker.js +20 -7
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +4 -4
- package/es/config-provider/src/ConfigProvider.js +3 -3
- package/es/config-provider/src/internal-interface.d.ts +3 -1
- package/es/countdown/src/Countdown.d.ts +0 -3
- package/es/countdown/src/Countdown.js +0 -1
- package/es/data-table/src/DataTable.d.ts +77 -75
- package/es/data-table/src/DataTable.js +54 -48
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/HeaderButton/SortButton.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +7 -6
- package/es/data-table/src/TableParts/Body.js +4 -2
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/use-table-data.js +19 -7
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/descriptions/src/Descriptions.d.ts +15 -2
- package/es/descriptions/src/Descriptions.js +45 -28
- package/es/descriptions/src/styles/index.cssr.js +2 -1
- package/es/descriptions/styles/light.d.ts +1 -0
- package/es/descriptions/styles/light.js +2 -2
- package/es/dialog/src/Dialog.d.ts +7 -5
- package/es/dialog/src/Dialog.js +57 -56
- package/es/dialog/src/DialogEnvironment.d.ts +5 -5
- package/es/dialog/src/DialogEnvironment.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/src/dialogProps.d.ts +2 -2
- package/es/divider/src/Divider.d.ts +3 -1
- package/es/divider/src/Divider.js +20 -11
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +7 -5
- package/es/dynamic-tags/src/DynamicTags.js +17 -10
- package/es/element/src/Element.d.ts +3 -1
- package/es/element/src/Element.js +18 -11
- package/es/empty/src/Empty.d.ts +3 -1
- package/es/empty/src/Empty.js +28 -16
- package/es/form/src/FormItem.d.ts +4 -4
- package/es/form/src/FormItem.js +1 -2
- package/es/form/src/FormItemCol.d.ts +3 -3
- package/es/form/src/FormItemGridItem.d.ts +5 -5
- package/es/form/src/FormItemRow.d.ts +3 -3
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/grid/src/Grid.js +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +6 -6
- package/es/image/src/Image.d.ts +1 -1
- package/es/input/src/Input.d.ts +7 -4
- package/es/input/src/Input.js +96 -84
- package/es/input/src/styles/input.cssr.js +2 -2
- package/es/input-number/src/InputNumber.d.ts +7 -18
- package/es/input-number/src/InputNumber.js +79 -20
- package/es/layout/src/Layout.d.ts +8 -2
- package/es/layout/src/Layout.js +17 -10
- package/es/layout/src/LayoutContent.d.ts +4 -1
- package/es/layout/src/LayoutFooter.d.ts +3 -1
- package/es/layout/src/LayoutFooter.js +28 -19
- package/es/layout/src/LayoutHeader.d.ts +3 -1
- package/es/layout/src/LayoutHeader.js +28 -19
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/layout/src/LayoutSider.js +37 -29
- package/es/locales/common/deDE.js +13 -15
- package/es/locales/common/enGB.d.ts +109 -0
- package/es/locales/common/enGB.js +109 -0
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/esAR.js +2 -2
- package/es/locales/common/frFR.js +8 -9
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/common/skSK.d.ts +3 -0
- package/es/locales/common/skSK.js +110 -0
- package/es/locales/date/enGB.d.ts +3 -0
- package/es/locales/date/enGB.js +6 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/date/skSK.d.ts +3 -0
- package/es/locales/date/skSK.js +6 -0
- package/es/locales/index.d.ts +8 -0
- package/es/locales/index.js +8 -0
- package/es/log/src/Log.d.ts +4 -1
- package/es/log/src/Log.js +20 -15
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +4 -0
- package/es/menu/src/Menu.d.ts +4 -2
- package/es/menu/src/Menu.js +68 -63
- package/es/modal/src/BodyWrapper.d.ts +7 -6
- package/es/modal/src/Modal.d.ts +19 -22
- package/es/modal/src/Modal.js +41 -32
- package/es/modal/src/presetProps.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +4 -4
- package/es/notification/src/NotificationEnvironment.d.ts +4 -4
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/notification/src/styles/index.cssr.js +6 -5
- package/es/page-header/src/PageHeader.d.ts +3 -1
- package/es/page-header/src/PageHeader.js +27 -18
- package/es/pagination/src/Pagination.d.ts +46 -34
- package/es/pagination/src/Pagination.js +59 -52
- package/es/pagination/styles/light.d.ts +3 -3
- package/es/popover/src/PopoverBody.js +10 -4
- package/es/progress/src/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +14 -5
- package/es/progress/src/Progress.js +45 -25
- package/es/progress/src/styles/index.cssr.js +1 -1
- package/es/radio/src/Radio.d.ts +3 -1
- package/es/radio/src/Radio.js +32 -23
- package/es/radio/src/RadioGroup.d.ts +3 -1
- package/es/radio/src/RadioGroup.js +31 -22
- package/es/rate/src/Rate.d.ts +3 -1
- package/es/rate/src/Rate.js +44 -23
- package/es/result/src/Result.d.ts +8 -6
- package/es/result/src/Result.js +36 -19
- package/es/scrollbar/src/ScrollBar.d.ts +12 -1
- package/es/scrollbar/src/ScrollBar.js +4 -0
- package/es/select/src/Select.d.ts +45 -31
- package/es/select/src/Select.js +14 -8
- package/es/select/styles/light.d.ts +3 -3
- package/es/spin/src/Spin.d.ts +3 -1
- package/es/spin/src/Spin.js +31 -21
- package/es/statistic/src/Statistic.d.ts +3 -1
- package/es/statistic/src/Statistic.js +29 -21
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.d.ts +13 -1
- package/es/switch/src/Switch.js +85 -60
- package/es/switch/src/styles/index.cssr.js +21 -8
- package/es/switch/styles/dark.js +2 -2
- package/es/switch/styles/light.d.ts +1 -0
- package/es/switch/styles/light.js +2 -2
- package/es/table/src/Table.d.ts +3 -1
- package/es/table/src/Table.js +40 -29
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/Tabs.d.ts +25 -23
- package/es/tabs/src/Tabs.js +50 -44
- package/es/tabs/src/styles/index.cssr.js +77 -77
- package/es/tag/src/Tag.d.ts +7 -5
- package/es/tag/src/Tag.js +59 -42
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.js +1 -1
- package/es/theme-editor/src/ThemeEditor.js +4 -3
- package/es/themes/dark.js +3 -1
- package/es/themes/light.js +3 -1
- package/es/thing/src/Thing.js +10 -3
- package/es/time-picker/src/TimePicker.d.ts +4 -0
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/Tree.js +8 -4
- package/es/tree/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +43 -30
- package/es/tree-select/src/TreeSelect.js +6 -2
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/a.d.ts +3 -1
- package/es/typography/src/a.js +18 -10
- package/es/typography/src/blockquote.d.ts +3 -1
- package/es/typography/src/blockquote.js +21 -12
- package/es/typography/src/create-header.d.ts +7 -5
- package/es/typography/src/create-header.js +25 -16
- package/es/typography/src/headers.d.ts +36 -24
- package/es/typography/src/hr.d.ts +3 -1
- package/es/typography/src/hr.js +18 -10
- package/es/typography/src/ol.d.ts +3 -1
- package/es/typography/src/ol.js +23 -14
- package/es/typography/src/p.d.ts +3 -1
- package/es/typography/src/p.js +23 -15
- package/es/typography/src/text.d.ts +3 -1
- package/es/typography/src/text.js +31 -23
- package/es/typography/src/ul.d.ts +3 -1
- package/es/typography/src/ul.js +23 -14
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/upload/src/interface.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +2 -0
- package/es/watermark/index.js +1 -0
- package/es/watermark/src/Watermark.d.ts +285 -0
- package/es/watermark/src/Watermark.js +159 -0
- package/es/watermark/src/styles/index.cssr.d.ts +2 -0
- package/es/watermark/src/styles/index.cssr.js +14 -0
- package/es/watermark/styles/dark.d.ts +3 -0
- package/es/watermark/styles/dark.js +12 -0
- package/es/watermark/styles/index.d.ts +3 -0
- package/es/watermark/styles/index.js +2 -0
- package/es/watermark/styles/light.d.ts +5 -0
- package/es/watermark/styles/light.js +13 -0
- package/lib/_internal/clear/src/Clear.d.ts +0 -1
- package/lib/_internal/clear/src/Clear.js +0 -2
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/icons/replaceable.js +4 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -18
- package/lib/_internal/select-menu/src/SelectMenu.js +12 -9
- package/lib/_internal/selection/src/Selection.d.ts +31 -26
- package/lib/_internal/selection/src/Selection.js +78 -67
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +2 -2
- package/lib/_mixins/use-config.d.ts +6 -3
- package/lib/_mixins/use-config.js +5 -1
- package/lib/_mixins/use-css-vars-class.d.ts +6 -2
- package/lib/_mixins/use-css-vars-class.js +33 -17
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/resolve-slot.d.ts +5 -2
- package/lib/_utils/vue/resolve-slot.js +4 -4
- package/lib/alert/src/Alert.d.ts +7 -5
- package/lib/alert/src/Alert.js +34 -19
- package/lib/anchor/src/AnchorAdapter.js +8 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +4 -2
- package/lib/auto-complete/src/AutoComplete.js +27 -14
- package/lib/avatar/src/Avatar.d.ts +3 -1
- package/lib/avatar/src/Avatar.js +68 -33
- package/lib/back-top/src/BackTop.d.ts +12 -49
- package/lib/back-top/src/BackTop.js +57 -55
- package/lib/badge/src/Badge.d.ts +16 -41
- package/lib/badge/src/Badge.js +39 -29
- package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/lib/breadcrumb/src/Breadcrumb.js +23 -15
- package/lib/button/src/Button.d.ts +8 -6
- package/lib/button/src/Button.js +18 -19
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/calendar/src/Calendar.d.ts +3 -1
- package/lib/calendar/src/Calendar.js +36 -29
- package/lib/card/src/Card.d.ts +3 -1
- package/lib/card/src/Card.js +55 -41
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- package/lib/carousel/src/Carousel.d.ts +3 -1
- package/lib/carousel/src/Carousel.js +27 -18
- package/lib/cascader/src/Cascader.d.ts +46 -31
- package/lib/cascader/src/Cascader.js +52 -30
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.js +2 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -3
- package/lib/cascader/src/interface.d.ts +1 -0
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.d.ts +6 -4
- package/lib/checkbox/src/Checkbox.js +40 -31
- package/lib/checkbox/src/styles/index.cssr.js +17 -17
- package/lib/code/src/Code.d.ts +3 -1
- package/lib/code/src/Code.js +32 -26
- package/lib/collapse/src/Collapse.d.ts +3 -1
- package/lib/collapse/src/Collapse.js +23 -15
- package/lib/color-picker/src/ColorPicker.d.ts +3 -1
- package/lib/color-picker/src/ColorPicker.js +19 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/src/ConfigProvider.js +3 -3
- package/lib/config-provider/src/internal-interface.d.ts +3 -1
- package/lib/countdown/src/Countdown.d.ts +0 -3
- package/lib/countdown/src/Countdown.js +0 -1
- package/lib/data-table/src/DataTable.d.ts +77 -75
- package/lib/data-table/src/DataTable.js +53 -47
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +7 -6
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +19 -7
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/descriptions/src/Descriptions.d.ts +15 -2
- package/lib/descriptions/src/Descriptions.js +44 -27
- package/lib/descriptions/src/styles/index.cssr.js +2 -1
- package/lib/descriptions/styles/light.d.ts +1 -0
- package/lib/descriptions/styles/light.js +2 -2
- package/lib/dialog/src/Dialog.d.ts +7 -5
- package/lib/dialog/src/Dialog.js +55 -54
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/src/dialogProps.d.ts +2 -2
- package/lib/divider/src/Divider.d.ts +3 -1
- package/lib/divider/src/Divider.js +19 -10
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -5
- package/lib/dynamic-tags/src/DynamicTags.js +16 -9
- package/lib/element/src/Element.d.ts +3 -1
- package/lib/element/src/Element.js +17 -10
- package/lib/empty/src/Empty.d.ts +3 -1
- package/lib/empty/src/Empty.js +27 -15
- package/lib/form/src/FormItem.d.ts +4 -4
- package/lib/form/src/FormItem.js +1 -2
- package/lib/form/src/FormItemCol.d.ts +3 -3
- package/lib/form/src/FormItemGridItem.d.ts +5 -5
- package/lib/form/src/FormItemRow.d.ts +3 -3
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/grid/src/Grid.js +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +5 -5
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/input/src/Input.d.ts +7 -4
- package/lib/input/src/Input.js +95 -83
- package/lib/input/src/styles/input.cssr.js +2 -2
- package/lib/input-number/src/InputNumber.d.ts +7 -18
- package/lib/input-number/src/InputNumber.js +76 -17
- package/lib/layout/src/Layout.d.ts +8 -2
- package/lib/layout/src/Layout.js +16 -9
- package/lib/layout/src/LayoutContent.d.ts +4 -1
- package/lib/layout/src/LayoutFooter.d.ts +3 -1
- package/lib/layout/src/LayoutFooter.js +27 -18
- package/lib/layout/src/LayoutHeader.d.ts +3 -1
- package/lib/layout/src/LayoutHeader.js +27 -18
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/layout/src/LayoutSider.js +36 -28
- package/lib/locales/common/deDE.js +13 -15
- package/lib/locales/common/enGB.d.ts +109 -0
- package/lib/locales/common/enGB.js +111 -0
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/esAR.js +2 -2
- package/lib/locales/common/frFR.js +8 -9
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/common/skSK.d.ts +3 -0
- package/lib/locales/common/skSK.js +112 -0
- package/lib/locales/date/enGB.d.ts +3 -0
- package/lib/locales/date/enGB.js +11 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/date/skSK.d.ts +3 -0
- package/lib/locales/date/skSK.js +11 -0
- package/lib/locales/index.d.ts +8 -0
- package/lib/locales/index.js +17 -1
- package/lib/log/src/Log.d.ts +4 -1
- package/lib/log/src/Log.js +19 -14
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +4 -0
- package/lib/menu/src/Menu.d.ts +4 -2
- package/lib/menu/src/Menu.js +67 -62
- package/lib/modal/src/BodyWrapper.d.ts +7 -6
- package/lib/modal/src/Modal.d.ts +19 -22
- package/lib/modal/src/Modal.js +40 -31
- package/lib/modal/src/presetProps.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +4 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/notification/src/styles/index.cssr.js +6 -5
- package/lib/page-header/src/PageHeader.d.ts +3 -1
- package/lib/page-header/src/PageHeader.js +26 -17
- package/lib/pagination/src/Pagination.d.ts +46 -34
- package/lib/pagination/src/Pagination.js +58 -51
- package/lib/pagination/styles/light.d.ts +3 -3
- package/lib/popover/src/PopoverBody.js +9 -3
- package/lib/progress/src/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +14 -5
- package/lib/progress/src/Progress.js +44 -24
- package/lib/progress/src/styles/index.cssr.js +1 -1
- package/lib/radio/src/Radio.d.ts +3 -1
- package/lib/radio/src/Radio.js +31 -22
- package/lib/radio/src/RadioGroup.d.ts +3 -1
- package/lib/radio/src/RadioGroup.js +30 -21
- package/lib/rate/src/Rate.d.ts +3 -1
- package/lib/rate/src/Rate.js +42 -21
- package/lib/result/src/Result.d.ts +8 -6
- package/lib/result/src/Result.js +35 -18
- package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
- package/lib/scrollbar/src/ScrollBar.js +4 -0
- package/lib/select/src/Select.d.ts +45 -31
- package/lib/select/src/Select.js +14 -8
- package/lib/select/styles/light.d.ts +3 -3
- package/lib/spin/src/Spin.d.ts +3 -1
- package/lib/spin/src/Spin.js +30 -20
- package/lib/statistic/src/Statistic.d.ts +3 -1
- package/lib/statistic/src/Statistic.js +28 -20
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +9 -7
- package/lib/switch/src/Switch.d.ts +13 -1
- package/lib/switch/src/Switch.js +81 -56
- package/lib/switch/src/styles/index.cssr.js +21 -8
- package/lib/switch/styles/dark.js +2 -2
- package/lib/switch/styles/light.d.ts +1 -0
- package/lib/switch/styles/light.js +2 -2
- package/lib/table/src/Table.d.ts +3 -1
- package/lib/table/src/Table.js +39 -28
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +25 -23
- package/lib/tabs/src/Tabs.js +48 -42
- package/lib/tabs/src/styles/index.cssr.js +77 -77
- package/lib/tag/src/Tag.d.ts +7 -5
- package/lib/tag/src/Tag.js +57 -40
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -1
- package/lib/theme-editor/src/ThemeEditor.js +2 -1
- package/lib/themes/dark.js +3 -1
- package/lib/themes/light.js +3 -1
- package/lib/thing/src/Thing.js +9 -2
- package/lib/time-picker/src/TimePicker.d.ts +4 -0
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/Tree.js +8 -4
- package/lib/tree/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +43 -30
- package/lib/tree-select/src/TreeSelect.js +6 -2
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/a.d.ts +3 -1
- package/lib/typography/src/a.js +17 -9
- package/lib/typography/src/blockquote.d.ts +3 -1
- package/lib/typography/src/blockquote.js +20 -11
- package/lib/typography/src/create-header.d.ts +7 -5
- package/lib/typography/src/create-header.js +24 -15
- package/lib/typography/src/headers.d.ts +36 -24
- package/lib/typography/src/hr.d.ts +3 -1
- package/lib/typography/src/hr.js +17 -9
- package/lib/typography/src/ol.d.ts +3 -1
- package/lib/typography/src/ol.js +22 -13
- package/lib/typography/src/p.d.ts +3 -1
- package/lib/typography/src/p.js +22 -14
- package/lib/typography/src/text.d.ts +3 -1
- package/lib/typography/src/text.js +30 -22
- package/lib/typography/src/ul.d.ts +3 -1
- package/lib/typography/src/ul.js +22 -13
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/upload/src/interface.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +2 -0
- package/lib/watermark/index.js +8 -0
- package/lib/watermark/src/Watermark.d.ts +285 -0
- package/lib/watermark/src/Watermark.js +164 -0
- package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
- package/lib/watermark/src/styles/index.cssr.js +21 -0
- package/lib/watermark/styles/dark.d.ts +3 -0
- package/lib/watermark/styles/dark.js +14 -0
- package/lib/watermark/styles/index.d.ts +3 -0
- package/lib/watermark/styles/index.js +10 -0
- package/lib/watermark/styles/light.d.ts +5 -0
- package/lib/watermark/styles/light.js +15 -0
- package/package.json +9 -10
- package/volar.d.ts +1 -0
- package/web-types.json +279 -29
package/lib/card/src/Card.js
CHANGED
|
@@ -50,50 +50,60 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
50
50
|
if (onClose)
|
|
51
51
|
(0, _utils_1.call)(onClose);
|
|
52
52
|
};
|
|
53
|
-
const { mergedClsPrefixRef,
|
|
53
|
+
const { inlineThemeDisabled, mergedClsPrefixRef, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
54
54
|
const themeRef = (0, _mixins_1.useTheme)('Card', '-card', index_cssr_1.default, styles_1.cardLight, props, mergedClsPrefixRef);
|
|
55
|
-
const rtlEnabledRef = (0, use_rtl_1.default)('Card',
|
|
55
|
+
const rtlEnabledRef = (0, use_rtl_1.default)('Card', mergedRtlRef, mergedClsPrefixRef);
|
|
56
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
57
|
+
const { size } = props;
|
|
58
|
+
const { self: { color, colorModal, colorTarget, textColor, titleTextColor, titleFontWeight, borderColor, actionColor, borderRadius, closeColor, closeColorHover, closeColorPressed, lineHeight, closeSize, boxShadow, colorPopover, colorEmbedded, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('titleFontSize', size)]: titleFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
59
|
+
const { top: paddingTop, left: paddingLeft, bottom: paddingBottom } = (0, seemly_1.getPadding)(padding);
|
|
60
|
+
return {
|
|
61
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
62
|
+
'--n-border-radius': borderRadius,
|
|
63
|
+
'--n-color': props.embedded ? colorEmbedded : color,
|
|
64
|
+
'--n-color-modal': colorModal,
|
|
65
|
+
'--n-color-popover': colorPopover,
|
|
66
|
+
'--n-color-target': colorTarget,
|
|
67
|
+
'--n-text-color': textColor,
|
|
68
|
+
'--n-line-height': lineHeight,
|
|
69
|
+
'--n-action-color': actionColor,
|
|
70
|
+
'--n-title-text-color': titleTextColor,
|
|
71
|
+
'--n-title-font-weight': titleFontWeight,
|
|
72
|
+
'--n-close-color': closeColor,
|
|
73
|
+
'--n-close-color-hover': closeColorHover,
|
|
74
|
+
'--n-close-color-pressed': closeColorPressed,
|
|
75
|
+
'--n-border-color': borderColor,
|
|
76
|
+
'--n-box-shadow': boxShadow,
|
|
77
|
+
// size
|
|
78
|
+
'--n-padding-top': paddingTop,
|
|
79
|
+
'--n-padding-bottom': paddingBottom,
|
|
80
|
+
'--n-padding-left': paddingLeft,
|
|
81
|
+
'--n-font-size': fontSize,
|
|
82
|
+
'--n-title-font-size': titleFontSize,
|
|
83
|
+
'--n-close-size': closeSize
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
const themeClassHandle = inlineThemeDisabled
|
|
87
|
+
? (0, _mixins_1.useThemeClass)('card', (0, vue_1.computed)(() => {
|
|
88
|
+
return props.size[0];
|
|
89
|
+
}), cssVarsRef, props)
|
|
90
|
+
: undefined;
|
|
56
91
|
return {
|
|
57
92
|
rtlEnabled: rtlEnabledRef,
|
|
58
93
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
59
94
|
mergedTheme: themeRef,
|
|
60
95
|
handleCloseClick,
|
|
61
|
-
cssVars:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const { top: paddingTop, left: paddingLeft, bottom: paddingBottom } = (0, seemly_1.getPadding)(padding);
|
|
65
|
-
return {
|
|
66
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
67
|
-
'--n-border-radius': borderRadius,
|
|
68
|
-
'--n-color': props.embedded ? colorEmbedded : color,
|
|
69
|
-
'--n-color-modal': colorModal,
|
|
70
|
-
'--n-color-popover': colorPopover,
|
|
71
|
-
'--n-color-target': colorTarget,
|
|
72
|
-
'--n-text-color': textColor,
|
|
73
|
-
'--n-line-height': lineHeight,
|
|
74
|
-
'--n-action-color': actionColor,
|
|
75
|
-
'--n-title-text-color': titleTextColor,
|
|
76
|
-
'--n-title-font-weight': titleFontWeight,
|
|
77
|
-
'--n-close-color': closeColor,
|
|
78
|
-
'--n-close-color-hover': closeColorHover,
|
|
79
|
-
'--n-close-color-pressed': closeColorPressed,
|
|
80
|
-
'--n-border-color': borderColor,
|
|
81
|
-
'--n-box-shadow': boxShadow,
|
|
82
|
-
// size
|
|
83
|
-
'--n-padding-top': paddingTop,
|
|
84
|
-
'--n-padding-bottom': paddingBottom,
|
|
85
|
-
'--n-padding-left': paddingLeft,
|
|
86
|
-
'--n-font-size': fontSize,
|
|
87
|
-
'--n-title-font-size': titleFontSize,
|
|
88
|
-
'--n-close-size': closeSize
|
|
89
|
-
};
|
|
90
|
-
})
|
|
96
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
97
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
98
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
91
99
|
};
|
|
92
100
|
},
|
|
93
101
|
render() {
|
|
94
|
-
const { segmented, bordered, hoverable, mergedClsPrefix, rtlEnabled, $slots } = this;
|
|
102
|
+
const { segmented, bordered, hoverable, mergedClsPrefix, rtlEnabled, onRender, $slots } = this;
|
|
103
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
95
104
|
return ((0, vue_1.h)("div", { class: [
|
|
96
105
|
`${mergedClsPrefix}-card`,
|
|
106
|
+
this.themeClass,
|
|
97
107
|
{
|
|
98
108
|
[`${mergedClsPrefix}-card--rtl`]: rtlEnabled,
|
|
99
109
|
[`${mergedClsPrefix}-card--content${typeof segmented !== 'boolean' && segmented.content === 'soft'
|
|
@@ -107,13 +117,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
117
|
[`${mergedClsPrefix}-card--hoverable`]: hoverable
|
|
108
118
|
}
|
|
109
119
|
], style: this.cssVars, role: this.role },
|
|
110
|
-
$slots.cover
|
|
111
|
-
|
|
112
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-card-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
$slots.
|
|
120
|
+
(0, _utils_1.resolveWrappedSlot)($slots.cover, (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-card-cover`, role: "none" }, children))),
|
|
121
|
+
(0, _utils_1.resolveWrappedSlot)($slots.header, (children) => {
|
|
122
|
+
return children || this.title || this.closable ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-card-header`, style: this.headerStyle },
|
|
123
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-card-header__main`, role: "heading" }, children || [this.title]),
|
|
124
|
+
(0, _utils_1.resolveWrappedSlot)($slots['header-extra'], (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-card-header__extra`, style: this.headerExtraStyle }, children))),
|
|
125
|
+
this.closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-card-header__close`, onClick: this.handleCloseClick })) : null)) : null;
|
|
126
|
+
}),
|
|
127
|
+
(0, _utils_1.resolveWrappedSlot)($slots.default, (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-card__content`, style: this.contentStyle, role: "none" }, children))),
|
|
128
|
+
(0, _utils_1.resolveWrappedSlot)($slots.footer, (children) => children && [
|
|
129
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-card__footer`, style: this.footerStyle, role: "none" }, children)
|
|
130
|
+
]),
|
|
131
|
+
(0, _utils_1.resolveWrappedSlot)($slots.action, (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-card__action`, role: "none" }, children)))));
|
|
118
132
|
}
|
|
119
133
|
});
|
package/lib/card/styles/index.js
CHANGED
|
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "cardDark", { enumerable: true, get: function ()
|
|
|
9
9
|
var light_1 = require("./light");
|
|
10
10
|
Object.defineProperty(exports, "cardLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
11
|
var rtl_1 = require("./rtl");
|
|
12
|
-
Object.defineProperty(exports, "cardRtl", { enumerable: true, get: function () { return
|
|
12
|
+
Object.defineProperty(exports, "cardRtl", { enumerable: true, get: function () { return rtl_1.cardRtl; } });
|
package/lib/card/styles/rtl.d.ts
CHANGED
package/lib/card/styles/rtl.js
CHANGED
|
@@ -3,8 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.cardRtl = void 0;
|
|
6
7
|
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
7
|
-
exports.
|
|
8
|
+
exports.cardRtl = {
|
|
8
9
|
name: 'Card',
|
|
9
10
|
style: rtl_cssr_1.default
|
|
10
11
|
};
|
|
@@ -195,7 +195,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
195
195
|
'--n-dot-line-width': string;
|
|
196
196
|
'--n-dot-line-width-active': string;
|
|
197
197
|
'--n-arrow-color': string;
|
|
198
|
-
}
|
|
198
|
+
}> | undefined;
|
|
199
|
+
themeClass: Ref<string> | undefined;
|
|
200
|
+
onRender: (() => void) | undefined;
|
|
199
201
|
getCurrentIndex: () => number;
|
|
200
202
|
to: (index: number) => void;
|
|
201
203
|
prev: () => void;
|
|
@@ -64,7 +64,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
64
64
|
name: 'Carousel',
|
|
65
65
|
props: carouselProps,
|
|
66
66
|
setup(props) {
|
|
67
|
-
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
67
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
68
68
|
// Dom
|
|
69
69
|
const selfElRef = (0, vue_1.ref)(null);
|
|
70
70
|
const slidesElsRef = (0, vue_1.ref)([]);
|
|
@@ -677,25 +677,30 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
677
677
|
next: next
|
|
678
678
|
};
|
|
679
679
|
const themeRef = (0, _mixins_1.useTheme)('Carousel', '-carousel', index_cssr_1.default, styles_1.carouselLight, props, mergedClsPrefixRef);
|
|
680
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
681
|
+
const { common: { cubicBezierEaseInOut }, self: { dotSize, dotColor, dotColorActive, dotColorFocus, dotLineWidth, dotLineWidthActive, arrowColor } } = themeRef.value;
|
|
682
|
+
return {
|
|
683
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
684
|
+
'--n-dot-color': dotColor,
|
|
685
|
+
'--n-dot-color-focus': dotColorFocus,
|
|
686
|
+
'--n-dot-color-active': dotColorActive,
|
|
687
|
+
'--n-dot-size': dotSize,
|
|
688
|
+
'--n-dot-line-width': dotLineWidth,
|
|
689
|
+
'--n-dot-line-width-active': dotLineWidthActive,
|
|
690
|
+
'--n-arrow-color': arrowColor
|
|
691
|
+
};
|
|
692
|
+
});
|
|
693
|
+
const themeClassHandle = inlineThemeDisabled
|
|
694
|
+
? (0, _mixins_1.useThemeClass)('carousel', undefined, cssVarsRef, props)
|
|
695
|
+
: undefined;
|
|
680
696
|
return Object.assign(Object.assign(Object.assign({ mergedClsPrefix: mergedClsPrefixRef, selfElRef, slideVNodes: slideVNodesRef, duplicatedable: duplicatedableRef, userWantsControl: userWantsControlRef, autoSlideSize: autoSlideSizeRef, displayIndex: displayIndexRef, realIndex: realIndexRef, slideStyles: slideStylesRef, translateStyle: translateStyleRef, handleTouchstart,
|
|
681
697
|
handleTransitionEnd,
|
|
682
698
|
handleMousewheel,
|
|
683
699
|
handleResize,
|
|
684
|
-
handleSlideResize, isActive: isDisplayActive }, caroulseSlotProps), caroulseExposedMethod), { cssVars:
|
|
685
|
-
const { common: { cubicBezierEaseInOut }, self: { dotSize, dotColor, dotColorActive, dotColorFocus, dotLineWidth, dotLineWidthActive, arrowColor } } = themeRef.value;
|
|
686
|
-
return {
|
|
687
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
688
|
-
'--n-dot-color': dotColor,
|
|
689
|
-
'--n-dot-color-focus': dotColorFocus,
|
|
690
|
-
'--n-dot-color-active': dotColorActive,
|
|
691
|
-
'--n-dot-size': dotSize,
|
|
692
|
-
'--n-dot-line-width': dotLineWidth,
|
|
693
|
-
'--n-dot-line-width-active': dotLineWidthActive,
|
|
694
|
-
'--n-arrow-color': arrowColor
|
|
695
|
-
};
|
|
696
|
-
}) });
|
|
700
|
+
handleSlideResize, isActive: isDisplayActive }, caroulseSlotProps), caroulseExposedMethod), { cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender });
|
|
697
701
|
},
|
|
698
702
|
render() {
|
|
703
|
+
var _a;
|
|
699
704
|
const { mergedClsPrefix, showArrow, userWantsControl, draggable, touchable, slideStyles, dotType, dotPlacement, transitionProps = {}, arrowSlotProps, dotSlotProps, $slots: { default: defaultSlot, dots: dotsSlot, arrow: arrowSlot } } = this;
|
|
700
705
|
const children = (defaultSlot && (0, _utils_1.flatten)(defaultSlot())) || [];
|
|
701
706
|
let slides = filterCarouselItem(children);
|
|
@@ -717,7 +722,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
717
722
|
default: () => slide
|
|
718
723
|
})));
|
|
719
724
|
}
|
|
725
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
720
726
|
return ((0, vue_1.h)("div", { ref: "selfElRef", class: [
|
|
727
|
+
this.themeClass,
|
|
721
728
|
`${mergedClsPrefix}-carousel`,
|
|
722
729
|
this.direction === 'vertical' &&
|
|
723
730
|
`${mergedClsPrefix}-carousel--vertical`,
|
|
@@ -735,11 +742,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
735
742
|
: slides))
|
|
736
743
|
}),
|
|
737
744
|
this.showDots &&
|
|
738
|
-
(dotsSlot
|
|
739
|
-
|
|
740
|
-
|
|
745
|
+
(0, _utils_1.resolveSlotWithProps)(dotsSlot, dotSlotProps, () => [
|
|
746
|
+
dotSlotProps.total > 1 && ((0, vue_1.h)(CarouselDots_1.default, { key: dotType + dotPlacement, total: dotSlotProps.total, currentIndex: dotSlotProps.currentIndex, dotType: dotType, trigger: this.trigger, keyboard: this.keyboard }))
|
|
747
|
+
]),
|
|
741
748
|
showArrow &&
|
|
742
|
-
(
|
|
749
|
+
(0, _utils_1.resolveSlotWithProps)(arrowSlot, arrowSlotProps, () => [
|
|
750
|
+
(0, vue_1.h)(CarouselArrow_1.default, null)
|
|
751
|
+
])));
|
|
743
752
|
}
|
|
744
753
|
});
|
|
745
754
|
function filterCarouselItem(vnodes, carouselItems = []) {
|
|
@@ -35,6 +35,10 @@ declare const cascaderProps: {
|
|
|
35
35
|
readonly default: "click";
|
|
36
36
|
};
|
|
37
37
|
readonly clearable: BooleanConstructor;
|
|
38
|
+
readonly clearFilterAfterSelect: {
|
|
39
|
+
readonly type: BooleanConstructor;
|
|
40
|
+
readonly default: true;
|
|
41
|
+
};
|
|
38
42
|
readonly remote: BooleanConstructor;
|
|
39
43
|
readonly onLoad: PropType<OnLoad>;
|
|
40
44
|
readonly separator: {
|
|
@@ -178,7 +182,7 @@ declare const cascaderProps: {
|
|
|
178
182
|
borderHover: string;
|
|
179
183
|
borderActive: string;
|
|
180
184
|
borderFocus: string;
|
|
181
|
-
boxShadowHover:
|
|
185
|
+
boxShadowHover: string;
|
|
182
186
|
boxShadowActive: string;
|
|
183
187
|
boxShadowFocus: string;
|
|
184
188
|
caretColor: string;
|
|
@@ -189,7 +193,7 @@ declare const cascaderProps: {
|
|
|
189
193
|
borderHoverWarning: string;
|
|
190
194
|
borderActiveWarning: string;
|
|
191
195
|
borderFocusWarning: string;
|
|
192
|
-
boxShadowHoverWarning:
|
|
196
|
+
boxShadowHoverWarning: string;
|
|
193
197
|
boxShadowActiveWarning: string;
|
|
194
198
|
boxShadowFocusWarning: string;
|
|
195
199
|
colorActiveWarning: string;
|
|
@@ -198,7 +202,7 @@ declare const cascaderProps: {
|
|
|
198
202
|
borderHoverError: string;
|
|
199
203
|
borderActiveError: string;
|
|
200
204
|
borderFocusError: string;
|
|
201
|
-
boxShadowHoverError:
|
|
205
|
+
boxShadowHoverError: string;
|
|
202
206
|
boxShadowActiveError: string;
|
|
203
207
|
boxShadowFocusError: string;
|
|
204
208
|
colorActiveError: string;
|
|
@@ -362,7 +366,7 @@ declare const cascaderProps: {
|
|
|
362
366
|
borderHover: string;
|
|
363
367
|
borderActive: string;
|
|
364
368
|
borderFocus: string;
|
|
365
|
-
boxShadowHover:
|
|
369
|
+
boxShadowHover: string;
|
|
366
370
|
boxShadowActive: string;
|
|
367
371
|
boxShadowFocus: string;
|
|
368
372
|
caretColor: string;
|
|
@@ -373,7 +377,7 @@ declare const cascaderProps: {
|
|
|
373
377
|
borderHoverWarning: string;
|
|
374
378
|
borderActiveWarning: string;
|
|
375
379
|
borderFocusWarning: string;
|
|
376
|
-
boxShadowHoverWarning:
|
|
380
|
+
boxShadowHoverWarning: string;
|
|
377
381
|
boxShadowActiveWarning: string;
|
|
378
382
|
boxShadowFocusWarning: string;
|
|
379
383
|
colorActiveWarning: string;
|
|
@@ -382,7 +386,7 @@ declare const cascaderProps: {
|
|
|
382
386
|
borderHoverError: string;
|
|
383
387
|
borderActiveError: string;
|
|
384
388
|
borderFocusError: string;
|
|
385
|
-
boxShadowHoverError:
|
|
389
|
+
boxShadowHoverError: string;
|
|
386
390
|
boxShadowActiveError: string;
|
|
387
391
|
boxShadowFocusError: string;
|
|
388
392
|
colorActiveError: string;
|
|
@@ -546,7 +550,7 @@ declare const cascaderProps: {
|
|
|
546
550
|
borderHover: string;
|
|
547
551
|
borderActive: string;
|
|
548
552
|
borderFocus: string;
|
|
549
|
-
boxShadowHover:
|
|
553
|
+
boxShadowHover: string;
|
|
550
554
|
boxShadowActive: string;
|
|
551
555
|
boxShadowFocus: string;
|
|
552
556
|
caretColor: string;
|
|
@@ -557,7 +561,7 @@ declare const cascaderProps: {
|
|
|
557
561
|
borderHoverWarning: string;
|
|
558
562
|
borderActiveWarning: string;
|
|
559
563
|
borderFocusWarning: string;
|
|
560
|
-
boxShadowHoverWarning:
|
|
564
|
+
boxShadowHoverWarning: string;
|
|
561
565
|
boxShadowActiveWarning: string;
|
|
562
566
|
boxShadowFocusWarning: string;
|
|
563
567
|
colorActiveWarning: string;
|
|
@@ -566,7 +570,7 @@ declare const cascaderProps: {
|
|
|
566
570
|
borderHoverError: string;
|
|
567
571
|
borderActiveError: string;
|
|
568
572
|
borderFocusError: string;
|
|
569
|
-
boxShadowHoverError:
|
|
573
|
+
boxShadowHoverError: string;
|
|
570
574
|
boxShadowActiveError: string;
|
|
571
575
|
boxShadowFocusError: string;
|
|
572
576
|
colorActiveError: string;
|
|
@@ -673,6 +677,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
673
677
|
readonly default: "click";
|
|
674
678
|
};
|
|
675
679
|
readonly clearable: BooleanConstructor;
|
|
680
|
+
readonly clearFilterAfterSelect: {
|
|
681
|
+
readonly type: BooleanConstructor;
|
|
682
|
+
readonly default: true;
|
|
683
|
+
};
|
|
676
684
|
readonly remote: BooleanConstructor;
|
|
677
685
|
readonly onLoad: PropType<OnLoad>;
|
|
678
686
|
readonly separator: {
|
|
@@ -816,7 +824,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
816
824
|
borderHover: string;
|
|
817
825
|
borderActive: string;
|
|
818
826
|
borderFocus: string;
|
|
819
|
-
boxShadowHover:
|
|
827
|
+
boxShadowHover: string;
|
|
820
828
|
boxShadowActive: string;
|
|
821
829
|
boxShadowFocus: string;
|
|
822
830
|
caretColor: string;
|
|
@@ -827,7 +835,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
827
835
|
borderHoverWarning: string;
|
|
828
836
|
borderActiveWarning: string;
|
|
829
837
|
borderFocusWarning: string;
|
|
830
|
-
boxShadowHoverWarning:
|
|
838
|
+
boxShadowHoverWarning: string;
|
|
831
839
|
boxShadowActiveWarning: string;
|
|
832
840
|
boxShadowFocusWarning: string;
|
|
833
841
|
colorActiveWarning: string;
|
|
@@ -836,7 +844,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
836
844
|
borderHoverError: string;
|
|
837
845
|
borderActiveError: string;
|
|
838
846
|
borderFocusError: string;
|
|
839
|
-
boxShadowHoverError:
|
|
847
|
+
boxShadowHoverError: string;
|
|
840
848
|
boxShadowActiveError: string;
|
|
841
849
|
boxShadowFocusError: string;
|
|
842
850
|
colorActiveError: string;
|
|
@@ -1000,7 +1008,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1000
1008
|
borderHover: string;
|
|
1001
1009
|
borderActive: string;
|
|
1002
1010
|
borderFocus: string;
|
|
1003
|
-
boxShadowHover:
|
|
1011
|
+
boxShadowHover: string;
|
|
1004
1012
|
boxShadowActive: string;
|
|
1005
1013
|
boxShadowFocus: string;
|
|
1006
1014
|
caretColor: string;
|
|
@@ -1011,7 +1019,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1011
1019
|
borderHoverWarning: string;
|
|
1012
1020
|
borderActiveWarning: string;
|
|
1013
1021
|
borderFocusWarning: string;
|
|
1014
|
-
boxShadowHoverWarning:
|
|
1022
|
+
boxShadowHoverWarning: string;
|
|
1015
1023
|
boxShadowActiveWarning: string;
|
|
1016
1024
|
boxShadowFocusWarning: string;
|
|
1017
1025
|
colorActiveWarning: string;
|
|
@@ -1020,7 +1028,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1020
1028
|
borderHoverError: string;
|
|
1021
1029
|
borderActiveError: string;
|
|
1022
1030
|
borderFocusError: string;
|
|
1023
|
-
boxShadowHoverError:
|
|
1031
|
+
boxShadowHoverError: string;
|
|
1024
1032
|
boxShadowActiveError: string;
|
|
1025
1033
|
boxShadowFocusError: string;
|
|
1026
1034
|
colorActiveError: string;
|
|
@@ -1184,7 +1192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1184
1192
|
borderHover: string;
|
|
1185
1193
|
borderActive: string;
|
|
1186
1194
|
borderFocus: string;
|
|
1187
|
-
boxShadowHover:
|
|
1195
|
+
boxShadowHover: string;
|
|
1188
1196
|
boxShadowActive: string;
|
|
1189
1197
|
boxShadowFocus: string;
|
|
1190
1198
|
caretColor: string;
|
|
@@ -1195,7 +1203,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1195
1203
|
borderHoverWarning: string;
|
|
1196
1204
|
borderActiveWarning: string;
|
|
1197
1205
|
borderFocusWarning: string;
|
|
1198
|
-
boxShadowHoverWarning:
|
|
1206
|
+
boxShadowHoverWarning: string;
|
|
1199
1207
|
boxShadowActiveWarning: string;
|
|
1200
1208
|
boxShadowFocusWarning: string;
|
|
1201
1209
|
colorActiveWarning: string;
|
|
@@ -1204,7 +1212,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1204
1212
|
borderHoverError: string;
|
|
1205
1213
|
borderActiveError: string;
|
|
1206
1214
|
borderFocusError: string;
|
|
1207
|
-
boxShadowHoverError:
|
|
1215
|
+
boxShadowHoverError: string;
|
|
1208
1216
|
boxShadowActiveError: string;
|
|
1209
1217
|
boxShadowFocusError: string;
|
|
1210
1218
|
colorActiveError: string;
|
|
@@ -1534,7 +1542,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1534
1542
|
borderHover: string;
|
|
1535
1543
|
borderActive: string;
|
|
1536
1544
|
borderFocus: string;
|
|
1537
|
-
boxShadowHover:
|
|
1545
|
+
boxShadowHover: string;
|
|
1538
1546
|
boxShadowActive: string;
|
|
1539
1547
|
boxShadowFocus: string;
|
|
1540
1548
|
caretColor: string;
|
|
@@ -1545,7 +1553,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1545
1553
|
borderHoverWarning: string;
|
|
1546
1554
|
borderActiveWarning: string;
|
|
1547
1555
|
borderFocusWarning: string;
|
|
1548
|
-
boxShadowHoverWarning:
|
|
1556
|
+
boxShadowHoverWarning: string;
|
|
1549
1557
|
boxShadowActiveWarning: string;
|
|
1550
1558
|
boxShadowFocusWarning: string;
|
|
1551
1559
|
colorActiveWarning: string;
|
|
@@ -1554,7 +1562,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1554
1562
|
borderHoverError: string;
|
|
1555
1563
|
borderActiveError: string;
|
|
1556
1564
|
borderFocusError: string;
|
|
1557
|
-
boxShadowHoverError:
|
|
1565
|
+
boxShadowHoverError: string;
|
|
1558
1566
|
boxShadowActiveError: string;
|
|
1559
1567
|
boxShadowFocusError: string;
|
|
1560
1568
|
colorActiveError: string;
|
|
@@ -1703,7 +1711,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1703
1711
|
'--n-option-arrow-color': string;
|
|
1704
1712
|
'--n-menu-mask-color': string;
|
|
1705
1713
|
'--n-loading-color': string;
|
|
1706
|
-
}
|
|
1714
|
+
}> | undefined;
|
|
1715
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
1716
|
+
onRender: (() => void) | undefined;
|
|
1707
1717
|
focus: () => void;
|
|
1708
1718
|
blur: () => void;
|
|
1709
1719
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1737,6 +1747,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1737
1747
|
readonly default: "click";
|
|
1738
1748
|
};
|
|
1739
1749
|
readonly clearable: BooleanConstructor;
|
|
1750
|
+
readonly clearFilterAfterSelect: {
|
|
1751
|
+
readonly type: BooleanConstructor;
|
|
1752
|
+
readonly default: true;
|
|
1753
|
+
};
|
|
1740
1754
|
readonly remote: BooleanConstructor;
|
|
1741
1755
|
readonly onLoad: PropType<OnLoad>;
|
|
1742
1756
|
readonly separator: {
|
|
@@ -1880,7 +1894,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1880
1894
|
borderHover: string;
|
|
1881
1895
|
borderActive: string;
|
|
1882
1896
|
borderFocus: string;
|
|
1883
|
-
boxShadowHover:
|
|
1897
|
+
boxShadowHover: string;
|
|
1884
1898
|
boxShadowActive: string;
|
|
1885
1899
|
boxShadowFocus: string;
|
|
1886
1900
|
caretColor: string;
|
|
@@ -1891,7 +1905,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1891
1905
|
borderHoverWarning: string;
|
|
1892
1906
|
borderActiveWarning: string;
|
|
1893
1907
|
borderFocusWarning: string;
|
|
1894
|
-
boxShadowHoverWarning:
|
|
1908
|
+
boxShadowHoverWarning: string;
|
|
1895
1909
|
boxShadowActiveWarning: string;
|
|
1896
1910
|
boxShadowFocusWarning: string;
|
|
1897
1911
|
colorActiveWarning: string;
|
|
@@ -1900,7 +1914,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1900
1914
|
borderHoverError: string;
|
|
1901
1915
|
borderActiveError: string;
|
|
1902
1916
|
borderFocusError: string;
|
|
1903
|
-
boxShadowHoverError:
|
|
1917
|
+
boxShadowHoverError: string;
|
|
1904
1918
|
boxShadowActiveError: string;
|
|
1905
1919
|
boxShadowFocusError: string;
|
|
1906
1920
|
colorActiveError: string;
|
|
@@ -2064,7 +2078,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2064
2078
|
borderHover: string;
|
|
2065
2079
|
borderActive: string;
|
|
2066
2080
|
borderFocus: string;
|
|
2067
|
-
boxShadowHover:
|
|
2081
|
+
boxShadowHover: string;
|
|
2068
2082
|
boxShadowActive: string;
|
|
2069
2083
|
boxShadowFocus: string;
|
|
2070
2084
|
caretColor: string;
|
|
@@ -2075,7 +2089,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2075
2089
|
borderHoverWarning: string;
|
|
2076
2090
|
borderActiveWarning: string;
|
|
2077
2091
|
borderFocusWarning: string;
|
|
2078
|
-
boxShadowHoverWarning:
|
|
2092
|
+
boxShadowHoverWarning: string;
|
|
2079
2093
|
boxShadowActiveWarning: string;
|
|
2080
2094
|
boxShadowFocusWarning: string;
|
|
2081
2095
|
colorActiveWarning: string;
|
|
@@ -2084,7 +2098,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2084
2098
|
borderHoverError: string;
|
|
2085
2099
|
borderActiveError: string;
|
|
2086
2100
|
borderFocusError: string;
|
|
2087
|
-
boxShadowHoverError:
|
|
2101
|
+
boxShadowHoverError: string;
|
|
2088
2102
|
boxShadowActiveError: string;
|
|
2089
2103
|
boxShadowFocusError: string;
|
|
2090
2104
|
colorActiveError: string;
|
|
@@ -2248,7 +2262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2248
2262
|
borderHover: string;
|
|
2249
2263
|
borderActive: string;
|
|
2250
2264
|
borderFocus: string;
|
|
2251
|
-
boxShadowHover:
|
|
2265
|
+
boxShadowHover: string;
|
|
2252
2266
|
boxShadowActive: string;
|
|
2253
2267
|
boxShadowFocus: string;
|
|
2254
2268
|
caretColor: string;
|
|
@@ -2259,7 +2273,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2259
2273
|
borderHoverWarning: string;
|
|
2260
2274
|
borderActiveWarning: string;
|
|
2261
2275
|
borderFocusWarning: string;
|
|
2262
|
-
boxShadowHoverWarning:
|
|
2276
|
+
boxShadowHoverWarning: string;
|
|
2263
2277
|
boxShadowActiveWarning: string;
|
|
2264
2278
|
boxShadowFocusWarning: string;
|
|
2265
2279
|
colorActiveWarning: string;
|
|
@@ -2268,7 +2282,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2268
2282
|
borderHoverError: string;
|
|
2269
2283
|
borderActiveError: string;
|
|
2270
2284
|
borderFocusError: string;
|
|
2271
|
-
boxShadowHoverError:
|
|
2285
|
+
boxShadowHoverError: string;
|
|
2272
2286
|
boxShadowActiveError: string;
|
|
2273
2287
|
boxShadowFocusError: string;
|
|
2274
2288
|
colorActiveError: string;
|
|
@@ -2354,6 +2368,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2354
2368
|
virtualScroll: boolean;
|
|
2355
2369
|
filterable: boolean;
|
|
2356
2370
|
clearable: boolean;
|
|
2371
|
+
clearFilterAfterSelect: boolean;
|
|
2357
2372
|
defaultValue: Value | null;
|
|
2358
2373
|
remote: boolean;
|
|
2359
2374
|
expandTrigger: ExpandTrigger;
|