naive-ui 2.28.3 → 2.29.0
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.js +6 -3
- package/es/_internal/clear/src/styles/index.cssr.js +5 -2
- package/es/_internal/loading/src/styles/index.cssr.js +1 -1
- package/es/_internal/menu-mask/src/styles/index.cssr.js +1 -1
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +5 -3
- package/es/_internal/selection/src/styles/index.cssr.js +2 -0
- package/es/_internal/slot-machine/src/styles/index.cssr.js +2 -2
- package/es/_internal/suffix/src/Suffix.js +1 -1
- package/es/_mixins/use-style.js +11 -7
- package/es/_mixins/use-theme.js +9 -7
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +2 -0
- package/es/_styles/common/light.d.ts +2 -0
- package/es/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-down.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.js +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.js +1 -1
- package/es/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in.cssr.js +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.js +1 -1
- package/es/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/es/_styles/transitions/icon-switch.cssr.js +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.js +1 -1
- package/es/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-left.js +1 -1
- package/es/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-right.js +1 -1
- package/es/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-top.js +1 -1
- package/es/_utils/naive/prop.d.ts +10 -1
- package/es/_utils/naive/prop.js +3 -0
- package/es/alert/src/Alert.d.ts +2 -0
- package/es/alert/src/styles/index.cssr.js +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +2 -0
- package/es/auto-complete/src/styles/index.cssr.js +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/es/back-top/src/styles/index.cssr.js +1 -1
- package/es/badge/src/styles/index.cssr.js +1 -1
- package/es/button/src/styles/index.cssr.js +2 -2
- package/es/calendar/src/Calendar.d.ts +2 -0
- package/es/calendar/src/Calendar.js +3 -3
- package/es/card/src/Card.d.ts +2 -0
- package/es/cascader/src/Cascader.d.ts +2 -0
- package/es/cascader/src/CascaderMenu.d.ts +2 -0
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/src/styles/index.cssr.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +2 -0
- package/es/checkbox/src/styles/index.cssr.js +1 -1
- package/es/collapse/src/Collapse.d.ts +2 -0
- package/es/collapse/src/styles/index.cssr.js +1 -1
- package/es/collapse-transition/src/styles/index.cssr.js +1 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/es/color-picker/src/ColorPicker.d.ts +3 -0
- package/es/color-picker/src/ColorPicker.js +7 -1
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +4 -0
- package/es/config-provider/src/ConfigProvider.js +4 -1
- package/es/config-provider/src/internal-interface.d.ts +1 -0
- package/es/data-table/src/DataTable.d.ts +422 -140
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
- package/es/data-table/src/TableParts/Body.d.ts +44 -14
- package/es/data-table/src/TableParts/Cell.d.ts +88 -28
- package/es/data-table/src/TableParts/Header.d.ts +44 -14
- package/es/data-table/src/styles/index.cssr.js +2 -2
- package/es/data-table/styles/light.d.ts +42 -14
- package/es/date-picker/src/DatePicker.d.ts +2 -0
- package/es/date-picker/src/DatePicker.js +20 -7
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/monthrange.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/date-picker/src/panel/use-calendar.js +1 -1
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.js +1 -1
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/es/date-picker/src/styles/index.cssr.js +6 -1
- package/es/date-picker/src/utils.d.ts +2 -2
- package/es/date-picker/src/utils.js +1 -1
- package/es/date-picker/src/validation-utils.js +1 -1
- package/es/dialog/src/Dialog.d.ts +2 -0
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/drawer/src/Drawer.d.ts +2 -0
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/es/drawer/src/DrawerContent.d.ts +2 -0
- package/es/drawer/src/styles/index.cssr.js +5 -5
- package/es/dropdown/src/Dropdown.d.ts +2 -0
- package/es/dropdown/src/styles/index.cssr.js +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/es/dynamic-input/src/InputPreset.d.ts +2 -0
- package/es/dynamic-input/src/PairPreset.d.ts +2 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +45 -13
- package/es/dynamic-tags/src/DynamicTags.js +4 -1
- package/es/dynamic-tags/styles/light.d.ts +3 -0
- package/es/ellipsis/src/Ellipsis.d.ts +2 -0
- package/es/form/src/styles/form-item.cssr.js +1 -1
- package/es/global-style/src/GlobalStyle.js +3 -1
- package/es/image/src/styles/index.cssr.js +3 -3
- package/es/input/src/Input.d.ts +2 -0
- package/es/input/src/Input.js +18 -11
- package/es/input/src/styles/input.cssr.js +1 -5
- package/es/input-number/src/InputNumber.d.ts +2 -0
- package/es/layout/src/Layout.d.ts +4 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +2 -0
- package/es/loading-bar/src/styles/index.cssr.js +1 -1
- package/es/locales/common/nlNL.d.ts +3 -0
- package/es/locales/common/nlNL.js +111 -0
- package/es/locales/date/deDE.js +1 -1
- package/es/locales/date/enGB.js +1 -1
- package/es/locales/date/enUS.d.ts +2 -2
- package/es/locales/date/enUS.js +1 -1
- package/es/locales/date/eo.js +1 -1
- package/es/locales/date/esAR.js +1 -1
- package/es/locales/date/frFR.js +1 -1
- package/es/locales/date/idID.js +1 -1
- package/es/locales/date/itIT.js +1 -1
- package/es/locales/date/jaJP.js +1 -1
- package/es/locales/date/koKR.js +1 -1
- package/es/locales/date/nbNO.js +1 -1
- package/es/locales/date/nlNL.d.ts +3 -0
- package/es/locales/date/nlNL.js +6 -0
- package/es/locales/date/plPL.js +1 -1
- package/es/locales/date/ptBR.js +1 -1
- package/es/locales/date/ruRU.js +1 -1
- package/es/locales/date/skSK.js +1 -1
- package/es/locales/date/thTH.js +1 -1
- package/es/locales/date/ukUA.js +1 -1
- package/es/locales/date/zhCN.js +1 -1
- package/es/locales/date/zhTW.js +1 -1
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +2 -0
- package/es/log/src/styles/index.cssr.js +1 -1
- package/es/mention/src/Mention.d.ts +2 -0
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/Menu.d.ts +2 -0
- package/es/menu/src/MenuOption.d.ts +2 -0
- package/es/menu/src/MenuOptionContent.js +1 -1
- package/es/menu/src/Submenu.d.ts +2 -0
- package/es/menu/src/styles/index.cssr.js +2 -2
- package/es/message/src/styles/index.cssr.js +3 -3
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/modal/src/styles/index.cssr.js +2 -2
- package/es/notification/index.d.ts +2 -1
- package/es/notification/src/Notification.js +18 -17
- package/es/notification/src/NotificationContainer.d.ts +7 -2
- package/es/notification/src/NotificationContainer.js +17 -5
- package/es/notification/src/NotificationEnvironment.d.ts +3 -2
- package/es/notification/src/NotificationEnvironment.js +9 -1
- package/es/notification/src/NotificationProvider.d.ts +3 -3
- package/es/notification/src/NotificationProvider.js +5 -2
- package/es/notification/src/styles/index.cssr.js +41 -11
- package/es/pagination/src/Pagination.d.ts +446 -151
- package/es/pagination/src/Pagination.js +22 -13
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/pagination/src/styles/index.cssr.js +38 -39
- package/es/pagination/styles/_common.d.ts +33 -13
- package/es/pagination/styles/_common.js +33 -13
- package/es/pagination/styles/light.d.ts +84 -28
- package/es/pagination/styles/light.js +6 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -0
- package/es/popover/src/PopoverBody.js +6 -6
- package/es/popover/src/styles/index.cssr.js +22 -21
- package/es/popselect/src/Popselect.d.ts +35 -12
- package/es/popselect/src/Popselect.js +1 -0
- package/es/popselect/src/PopselectPanel.d.ts +10 -1
- package/es/popselect/src/PopselectPanel.js +21 -4
- package/es/popselect/src/interface.d.ts +3 -1
- package/es/popselect/src/styles/index.cssr.d.ts +2 -0
- package/es/popselect/src/styles/index.cssr.js +5 -0
- package/es/popselect/styles/light.d.ts +7 -1
- package/es/popselect/styles/light.js +8 -1
- package/es/select/src/Select.d.ts +3 -1
- package/es/select/src/Select.js +1 -1
- package/es/select/src/interface.d.ts +1 -1
- package/es/select/src/styles/index.cssr.js +1 -1
- package/es/slider/src/styles/index.cssr.js +1 -1
- package/es/spin/src/styles/index.cssr.js +1 -1
- package/es/steps/src/styles/index.cssr.js +1 -1
- package/es/switch/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/styles/index.cssr.js +5 -4
- package/es/tag/src/Tag.d.ts +31 -4
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/styles/_common.d.ts +1 -0
- package/es/tag/styles/_common.js +1 -0
- package/es/tag/styles/dark.js +3 -3
- package/es/tag/styles/light.d.ts +3 -0
- package/es/tag/styles/light.js +3 -3
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/theme-editor/src/ThemeEditor.js +113 -125
- package/es/time/src/Time.js +2 -2
- package/es/time-picker/src/Panel.d.ts +2 -0
- package/es/time-picker/src/TimePicker.d.ts +2 -0
- package/es/time-picker/src/TimePicker.js +7 -2
- package/es/time-picker/src/styles/index.cssr.js +1 -1
- package/es/time-picker/src/utils.js +1 -1
- package/es/tooltip/src/Tooltip.d.ts +2 -0
- package/es/transfer/src/Transfer.d.ts +2 -0
- package/es/transfer/src/TransferFilter.d.ts +2 -0
- package/es/transfer/src/TransferFilter.js +1 -1
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/transfer/src/TransferListItem.d.ts +2 -0
- package/es/transfer/src/styles/index.cssr.js +1 -2
- package/es/tree/src/Tree.d.ts +2 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +3 -1
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/styles/index.cssr.js +1 -1
- package/es/upload/src/Upload.d.ts +2 -0
- package/es/upload/src/Upload.js +16 -3
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadProgress.d.ts +2 -0
- package/es/upload/src/interface.d.ts +2 -0
- package/es/upload/src/styles/index.cssr.js +4 -4
- package/es/upload/src/utils.d.ts +6 -0
- package/es/upload/src/utils.js +38 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.js +6 -3
- package/lib/_internal/clear/src/styles/index.cssr.js +5 -8
- package/lib/_internal/loading/src/styles/index.cssr.js +3 -9
- package/lib/_internal/menu-mask/src/styles/index.cssr.js +2 -8
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -8
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -8
- package/lib/_internal/selection/src/Selection.d.ts +5 -3
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -0
- package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -10
- package/lib/_internal/suffix/src/Suffix.js +1 -1
- package/lib/_mixins/use-style.js +10 -6
- package/lib/_mixins/use-theme.js +9 -7
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +2 -0
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-down.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +3 -2
- package/lib/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in.cssr.js +3 -2
- package/lib/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +2 -1
- package/lib/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/lib/_styles/transitions/icon-switch.cssr.js +3 -2
- package/lib/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-bottom.js +3 -2
- package/lib/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-left.js +3 -2
- package/lib/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-right.js +3 -2
- package/lib/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-top.js +3 -2
- package/lib/_utils/naive/prop.d.ts +10 -1
- package/lib/_utils/naive/prop.js +3 -0
- package/lib/alert/src/Alert.d.ts +2 -0
- package/lib/alert/src/styles/index.cssr.js +2 -8
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -0
- package/lib/auto-complete/src/styles/index.cssr.js +2 -8
- package/lib/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/lib/back-top/src/styles/index.cssr.js +2 -8
- package/lib/badge/src/styles/index.cssr.js +3 -9
- package/lib/button/src/styles/index.cssr.js +4 -10
- package/lib/calendar/src/Calendar.d.ts +2 -0
- package/lib/calendar/src/Calendar.js +2 -2
- package/lib/card/src/Card.d.ts +2 -0
- package/lib/cascader/src/Cascader.d.ts +2 -0
- package/lib/cascader/src/CascaderMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/src/styles/index.cssr.js +3 -9
- package/lib/checkbox/src/Checkbox.d.ts +2 -0
- package/lib/checkbox/src/styles/index.cssr.js +2 -8
- package/lib/collapse/src/Collapse.d.ts +2 -0
- package/lib/collapse/src/styles/index.cssr.js +2 -8
- package/lib/collapse-transition/src/styles/index.cssr.js +2 -8
- package/lib/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/lib/color-picker/src/ColorPicker.d.ts +3 -0
- package/lib/color-picker/src/ColorPicker.js +7 -1
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +2 -8
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -0
- package/lib/config-provider/src/ConfigProvider.js +4 -1
- package/lib/config-provider/src/internal-interface.d.ts +1 -0
- package/lib/data-table/src/DataTable.d.ts +422 -140
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +44 -14
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +44 -14
- package/lib/data-table/src/TableParts/Body.d.ts +44 -14
- package/lib/data-table/src/TableParts/Cell.d.ts +88 -28
- package/lib/data-table/src/TableParts/Header.d.ts +44 -14
- package/lib/data-table/src/styles/index.cssr.js +5 -11
- package/lib/data-table/styles/light.d.ts +42 -14
- package/lib/date-picker/src/DatePicker.d.ts +2 -0
- package/lib/date-picker/src/DatePicker.js +18 -5
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/daterange.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/monthrange.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/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/lib/date-picker/src/styles/index.cssr.js +7 -8
- package/lib/date-picker/src/utils.d.ts +2 -2
- package/lib/dialog/src/Dialog.d.ts +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/drawer/src/Drawer.d.ts +2 -0
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -0
- package/lib/drawer/src/DrawerContent.d.ts +2 -0
- package/lib/drawer/src/styles/index.cssr.js +7 -13
- package/lib/dropdown/src/Dropdown.d.ts +2 -0
- package/lib/dropdown/src/styles/index.cssr.js +2 -8
- package/lib/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +2 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +2 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +45 -13
- package/lib/dynamic-tags/src/DynamicTags.js +4 -1
- package/lib/dynamic-tags/styles/light.d.ts +3 -0
- package/lib/ellipsis/src/Ellipsis.d.ts +2 -0
- package/lib/form/src/styles/form-item.cssr.js +2 -8
- package/lib/global-style/src/GlobalStyle.js +3 -1
- package/lib/image/src/styles/index.cssr.js +5 -11
- package/lib/input/src/Input.d.ts +2 -0
- package/lib/input/src/Input.js +18 -11
- package/lib/input/src/styles/input.cssr.js +1 -5
- package/lib/input-number/src/InputNumber.d.ts +2 -0
- package/lib/layout/src/Layout.d.ts +4 -0
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +2 -0
- package/lib/loading-bar/src/styles/index.cssr.js +2 -8
- package/lib/locales/common/nlNL.d.ts +3 -0
- package/lib/locales/common/nlNL.js +113 -0
- package/lib/locales/date/enUS.d.ts +2 -2
- package/lib/locales/date/nlNL.d.ts +3 -0
- package/lib/locales/date/nlNL.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 +2 -0
- package/lib/log/src/styles/index.cssr.js +2 -8
- package/lib/mention/src/Mention.d.ts +2 -0
- package/lib/mention/src/styles/index.cssr.js +2 -8
- package/lib/menu/src/Menu.d.ts +2 -0
- package/lib/menu/src/MenuOption.d.ts +2 -0
- package/lib/menu/src/MenuOptionContent.js +1 -1
- package/lib/menu/src/Submenu.d.ts +2 -0
- package/lib/menu/src/styles/index.cssr.js +3 -9
- package/lib/message/src/styles/index.cssr.js +4 -10
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/modal/src/styles/index.cssr.js +4 -10
- package/lib/notification/index.d.ts +2 -1
- package/lib/notification/src/Notification.js +18 -17
- package/lib/notification/src/NotificationContainer.d.ts +7 -2
- package/lib/notification/src/NotificationContainer.js +16 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +3 -2
- package/lib/notification/src/NotificationEnvironment.js +8 -0
- package/lib/notification/src/NotificationProvider.d.ts +3 -3
- package/lib/notification/src/NotificationProvider.js +5 -2
- package/lib/notification/src/styles/index.cssr.js +41 -11
- package/lib/pagination/src/Pagination.d.ts +446 -151
- package/lib/pagination/src/Pagination.js +19 -10
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/pagination/src/styles/index.cssr.js +38 -39
- package/lib/pagination/styles/_common.d.ts +33 -13
- package/lib/pagination/styles/_common.js +33 -13
- package/lib/pagination/styles/light.d.ts +84 -28
- package/lib/pagination/styles/light.js +6 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -0
- package/lib/popover/src/PopoverBody.js +6 -6
- package/lib/popover/src/styles/index.cssr.js +22 -21
- package/lib/popselect/src/Popselect.d.ts +35 -12
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/popselect/src/PopselectPanel.d.ts +10 -1
- package/lib/popselect/src/PopselectPanel.js +23 -3
- package/lib/popselect/src/interface.d.ts +3 -1
- package/lib/popselect/src/styles/index.cssr.d.ts +2 -0
- package/lib/popselect/src/styles/index.cssr.js +12 -0
- package/lib/popselect/styles/light.d.ts +7 -1
- package/lib/popselect/styles/light.js +10 -1
- package/lib/select/src/Select.d.ts +3 -1
- package/lib/select/src/Select.js +1 -1
- package/lib/select/src/interface.d.ts +1 -1
- package/lib/select/src/styles/index.cssr.js +2 -8
- package/lib/slider/src/styles/index.cssr.js +3 -9
- package/lib/spin/src/styles/index.cssr.js +2 -8
- package/lib/steps/src/styles/index.cssr.js +4 -10
- package/lib/switch/src/styles/index.cssr.js +3 -9
- package/lib/tabs/src/styles/index.cssr.js +5 -4
- package/lib/tag/src/Tag.d.ts +31 -4
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/styles/_common.d.ts +1 -0
- package/lib/tag/styles/_common.js +1 -0
- package/lib/tag/styles/dark.js +3 -3
- package/lib/tag/styles/light.d.ts +3 -0
- package/lib/tag/styles/light.js +3 -3
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/theme-editor/src/ThemeEditor.js +113 -125
- package/lib/time/src/Time.js +6 -3
- package/lib/time-picker/src/Panel.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.js +6 -1
- package/lib/time-picker/src/styles/index.cssr.js +2 -8
- package/lib/tooltip/src/Tooltip.d.ts +2 -0
- package/lib/transfer/src/Transfer.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.js +1 -1
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/transfer/src/TransferListItem.d.ts +2 -0
- package/lib/transfer/src/styles/index.cssr.js +2 -9
- package/lib/tree/src/Tree.d.ts +2 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +6 -12
- package/lib/tree-select/src/TreeSelect.d.ts +3 -1
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/styles/index.cssr.js +2 -8
- package/lib/upload/src/Upload.d.ts +2 -0
- package/lib/upload/src/Upload.js +15 -2
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadProgress.d.ts +2 -0
- package/lib/upload/src/interface.d.ts +2 -0
- package/lib/upload/src/styles/index.cssr.js +4 -10
- package/lib/upload/src/utils.d.ts +6 -0
- package/lib/upload/src/utils.js +40 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +13 -13
- package/volar.d.ts +24 -24
- package/web-types.json +23 -1
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
};
|
|
13
13
|
readonly round: BooleanConstructor;
|
|
14
14
|
readonly size: {
|
|
15
|
-
readonly type: PropType<"small" | "medium" | "large">;
|
|
15
|
+
readonly type: PropType<"small" | "medium" | "large" | "tiny">;
|
|
16
16
|
readonly default: "medium";
|
|
17
17
|
};
|
|
18
18
|
readonly closable: BooleanConstructor;
|
package/es/tag/styles/_common.js
CHANGED
package/es/tag/styles/dark.js
CHANGED
|
@@ -5,9 +5,9 @@ const tagDark = {
|
|
|
5
5
|
name: 'Tag',
|
|
6
6
|
common: commonDark,
|
|
7
7
|
self(vars) {
|
|
8
|
-
const { textColor2, primaryColorHover, primaryColorPressed, primaryColor, infoColor, successColor, warningColor, errorColor, baseColor, borderColor, opacityDisabled, closeColor, closeColorHover, closeColorPressed, borderRadiusSmall: borderRadius, fontSizeTiny, fontSizeSmall, fontSizeMedium, heightTiny, heightSmall, heightMedium } = vars;
|
|
9
|
-
return Object.assign(Object.assign({}, commonVariables), { heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
10
|
-
opacityDisabled, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
8
|
+
const { textColor2, primaryColorHover, primaryColorPressed, primaryColor, infoColor, successColor, warningColor, errorColor, baseColor, borderColor, opacityDisabled, closeColor, closeColorHover, closeColorPressed, borderRadiusSmall: borderRadius, fontSizeMini, fontSizeTiny, fontSizeSmall, fontSizeMedium, heightMini, heightTiny, heightSmall, heightMedium } = vars;
|
|
9
|
+
return Object.assign(Object.assign({}, commonVariables), { heightTiny: heightMini, heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
10
|
+
opacityDisabled, fontSizeTiny: fontSizeMini, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
11
11
|
// checked
|
|
12
12
|
textColorCheckable: textColor2, textColorHoverCheckable: primaryColorHover, textColorPressedCheckable: primaryColorPressed, textColorChecked: baseColor, colorCheckable: '#0000', colorHoverCheckable: '#0000', colorPressedCheckable: '#0000', colorChecked: primaryColor, colorCheckedHover: primaryColorHover, colorCheckedPressed: primaryColorPressed,
|
|
13
13
|
// default
|
package/es/tag/styles/light.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
2
|
import type { Theme } from '../../_mixins';
|
|
3
3
|
declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
heightTiny: string;
|
|
4
5
|
heightSmall: string;
|
|
5
6
|
heightMedium: string;
|
|
6
7
|
heightLarge: string;
|
|
7
8
|
borderRadius: string;
|
|
8
9
|
opacityDisabled: string;
|
|
10
|
+
fontSizeTiny: string;
|
|
9
11
|
fontSizeSmall: string;
|
|
10
12
|
fontSizeMedium: string;
|
|
11
13
|
fontSizeLarge: string;
|
|
@@ -55,6 +57,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
55
57
|
closeColorError: string;
|
|
56
58
|
closeColorHoverError: string;
|
|
57
59
|
closeColorPressedError: string;
|
|
60
|
+
closeSizeTiny: string;
|
|
58
61
|
closeSizeSmall: string;
|
|
59
62
|
closeSizeMedium: string;
|
|
60
63
|
closeSizeLarge: string;
|
package/es/tag/styles/light.js
CHANGED
|
@@ -2,9 +2,9 @@ import commonVariables from './_common';
|
|
|
2
2
|
import { changeColor } from 'seemly';
|
|
3
3
|
import { commonLight } from '../../_styles/common';
|
|
4
4
|
const self = (vars) => {
|
|
5
|
-
const { textColor2, primaryColorHover, primaryColorPressed, primaryColor, infoColor, successColor, warningColor, errorColor, baseColor, borderColor, opacityDisabled, tagColor, closeColor, closeColorHover, closeColorPressed, borderRadiusSmall: borderRadius, fontSizeTiny, fontSizeSmall, fontSizeMedium, heightTiny, heightSmall, heightMedium } = vars;
|
|
6
|
-
return Object.assign(Object.assign({}, commonVariables), { heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
7
|
-
opacityDisabled, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
5
|
+
const { textColor2, primaryColorHover, primaryColorPressed, primaryColor, infoColor, successColor, warningColor, errorColor, baseColor, borderColor, opacityDisabled, tagColor, closeColor, closeColorHover, closeColorPressed, borderRadiusSmall: borderRadius, fontSizeMini, fontSizeTiny, fontSizeSmall, fontSizeMedium, heightMini, heightTiny, heightSmall, heightMedium } = vars;
|
|
6
|
+
return Object.assign(Object.assign({}, commonVariables), { heightTiny: heightMini, heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
7
|
+
opacityDisabled, fontSizeTiny: fontSizeMini, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
8
8
|
// checked
|
|
9
9
|
textColorCheckable: textColor2, textColorHoverCheckable: primaryColorHover, textColorPressedCheckable: primaryColorPressed, textColorChecked: baseColor, colorCheckable: '#0000', colorHoverCheckable: '#0000', colorPressedCheckable: '#0000', colorChecked: primaryColor, colorCheckedHover: primaryColorHover, colorCheckedPressed: primaryColorPressed,
|
|
10
10
|
// default
|
|
@@ -99,12 +99,14 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
99
99
|
borderRadius: string;
|
|
100
100
|
borderRadiusSmall: string;
|
|
101
101
|
fontSize: string;
|
|
102
|
+
fontSizeMini: string;
|
|
102
103
|
fontSizeTiny: string;
|
|
103
104
|
fontSizeSmall: string;
|
|
104
105
|
fontSizeMedium: string;
|
|
105
106
|
fontSizeLarge: string;
|
|
106
107
|
fontSizeHuge: string;
|
|
107
108
|
lineHeight: string;
|
|
109
|
+
heightMini: string;
|
|
108
110
|
heightTiny: string;
|
|
109
111
|
heightSmall: string;
|
|
110
112
|
heightMedium: string;
|
|
@@ -4,7 +4,6 @@ import { configProviderInjectionKey } from '../../config-provider/src/context';
|
|
|
4
4
|
import { lightTheme } from '../../themes/light';
|
|
5
5
|
import { NConfigProvider } from '../../config-provider';
|
|
6
6
|
import { NPopover } from '../../popover';
|
|
7
|
-
import { NScrollbar } from '../../_internal';
|
|
8
7
|
import { NCollapse, NCollapseItem } from '../../collapse';
|
|
9
8
|
import { NInput } from '../../input';
|
|
10
9
|
import { NSpace } from '../../space';
|
|
@@ -152,7 +151,7 @@ export default defineComponent({
|
|
|
152
151
|
default: () => {
|
|
153
152
|
var _a, _b;
|
|
154
153
|
return [
|
|
155
|
-
h(NPopover, { arrowPointToCenter: true, trigger: "manual", show: this.showPanel, displayDirective: "show", placement: "top-end", style: {
|
|
154
|
+
h(NPopover, { scrollable: true, arrowPointToCenter: true, trigger: "manual", show: this.showPanel, displayDirective: "show", placement: "top-end", style: {
|
|
156
155
|
width: '288px',
|
|
157
156
|
height: 'calc(100vh - 200px)',
|
|
158
157
|
padding: 0
|
|
@@ -185,130 +184,119 @@ export default defineComponent({
|
|
|
185
184
|
onClick: () => {
|
|
186
185
|
this.showPanel = !this.showPanel;
|
|
187
186
|
} }, { default: () => ColorWandIcon })),
|
|
188
|
-
default: () => (h(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
.toLowerCase()
|
|
260
|
-
.includes(varNamePatternLower));
|
|
261
|
-
});
|
|
262
|
-
if (!varKeys.length) {
|
|
263
|
-
return null;
|
|
264
|
-
}
|
|
265
|
-
filteredItemsCount += 1;
|
|
266
|
-
return (h(NCollapseItem, { title: themeKey, name: themeKey }, {
|
|
267
|
-
default: () => {
|
|
268
|
-
return (h(NSpace, { vertical: true }, {
|
|
269
|
-
default: () => varKeys.map((varKey) => {
|
|
270
|
-
var _a, _b, _c, _d;
|
|
271
|
-
return [
|
|
272
|
-
h("div", { key: `${varKey}Label` }, varKey),
|
|
273
|
-
showColorPicker(varKey) ? (h(NColorPicker, { key: varKey, modes: [
|
|
274
|
-
'rgb',
|
|
275
|
-
'hex'
|
|
276
|
-
], value: ((_b = (_a = this
|
|
277
|
-
.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]) ||
|
|
278
|
-
componentTheme[varKey], onComplete: this
|
|
279
|
-
.applyTempOverrides, onUpdateValue: (value) => {
|
|
280
|
-
this.setTempOverrides(themeKey, varKey, value);
|
|
281
|
-
} }, {
|
|
282
|
-
action: () => {
|
|
283
|
-
var _a, _b;
|
|
284
|
-
return (h(NButton, { size: "small", disabled: componentTheme[varKey] ===
|
|
285
|
-
((_b = (_a = this
|
|
286
|
-
.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]), onClick: () => {
|
|
287
|
-
this.setTempOverrides(themeKey, varKey, componentTheme[varKey]);
|
|
288
|
-
this.applyTempOverrides();
|
|
289
|
-
} }, {
|
|
290
|
-
default: () => this
|
|
291
|
-
.locale
|
|
292
|
-
.restore
|
|
293
|
-
}));
|
|
294
|
-
}
|
|
295
|
-
})) : (h(NInput, { key: varKey, onChange: this
|
|
296
|
-
.applyTempOverrides, onUpdateValue: (value) => {
|
|
297
|
-
this.setTempOverrides(themeKey, varKey, value);
|
|
298
|
-
}, value: ((_d = (_c = this
|
|
299
|
-
.tempOverrides) === null || _c === void 0 ? void 0 : _c[themeKey]) === null || _d === void 0 ? void 0 : _d[varKey]) || '', placeholder: componentTheme[varKey] }))
|
|
300
|
-
];
|
|
301
|
-
})
|
|
302
|
-
}));
|
|
303
|
-
}
|
|
304
|
-
}));
|
|
187
|
+
default: () => (h(Fragment, null,
|
|
188
|
+
h("input", { type: "file", ref: "fileInputRef", style: {
|
|
189
|
+
display: 'block',
|
|
190
|
+
width: 0,
|
|
191
|
+
height: 0,
|
|
192
|
+
visibility: 'hidden'
|
|
193
|
+
}, onChange: this.handleInputFileChange }),
|
|
194
|
+
h(NSpace, { vertical: true }, {
|
|
195
|
+
default: () => (h(Fragment, null,
|
|
196
|
+
h("div", { style: {
|
|
197
|
+
marginBottom: '8px',
|
|
198
|
+
fontSize: '18px',
|
|
199
|
+
fontWeight: 500
|
|
200
|
+
} }, this.locale.title),
|
|
201
|
+
this.locale.filterCompName,
|
|
202
|
+
h(NInput, { onChange: () => {
|
|
203
|
+
this.compNamePattern = this.tempCompNamePattern;
|
|
204
|
+
}, onInput: (value) => {
|
|
205
|
+
this.tempCompNamePattern = value;
|
|
206
|
+
}, value: this.tempCompNamePattern, placeholder: this.locale.filterCompName }),
|
|
207
|
+
this.locale.filterVarName,
|
|
208
|
+
h(NInput, { onChange: (value) => {
|
|
209
|
+
this.varNamePattern = value;
|
|
210
|
+
}, onInput: (value) => {
|
|
211
|
+
this.tempVarNamePattern = value;
|
|
212
|
+
}, value: this.tempVarNamePattern, placeholder: this.locale.filterVarName }),
|
|
213
|
+
h(NButton, { size: "small", onClick: () => {
|
|
214
|
+
this.compNamePattern = '';
|
|
215
|
+
this.varNamePattern = '';
|
|
216
|
+
this.tempCompNamePattern = '';
|
|
217
|
+
this.tempVarNamePattern = '';
|
|
218
|
+
}, block: true }, { default: () => this.locale.clearSearch }),
|
|
219
|
+
h(NButton, { size: "small", onClick: this.handleClearAllClick, block: true }, {
|
|
220
|
+
default: () => this.locale.clearAllVars
|
|
221
|
+
}),
|
|
222
|
+
h(NSpace, { itemStyle: { flex: 1 } }, {
|
|
223
|
+
default: () => (h(Fragment, null,
|
|
224
|
+
h(NButton, { block: true, size: "small", onClick: this.handleImportClick }, {
|
|
225
|
+
default: () => this.locale.import
|
|
226
|
+
}),
|
|
227
|
+
h(NButton, { block: true, size: "small", onClick: this.handleExportClick }, {
|
|
228
|
+
default: () => this.locale.export
|
|
229
|
+
})))
|
|
230
|
+
})))
|
|
231
|
+
}),
|
|
232
|
+
h(NDivider, null),
|
|
233
|
+
h(NCollapse, null, {
|
|
234
|
+
default: () => {
|
|
235
|
+
const { theme, compNamePattern, varNamePattern } = this;
|
|
236
|
+
const themeKeys = Object.keys(theme);
|
|
237
|
+
const compNamePatternLower = compNamePattern.toLowerCase();
|
|
238
|
+
const varNamePatternLower = varNamePattern.toLowerCase();
|
|
239
|
+
let filteredItemsCount = 0;
|
|
240
|
+
const collapsedItems = themeKeys
|
|
241
|
+
.filter((themeKey) => {
|
|
242
|
+
return themeKey
|
|
243
|
+
.toLowerCase()
|
|
244
|
+
.includes(compNamePatternLower);
|
|
245
|
+
})
|
|
246
|
+
.map((themeKey) => {
|
|
247
|
+
const componentTheme = themeKey === 'common'
|
|
248
|
+
? this.themeCommonDefault
|
|
249
|
+
: theme[themeKey];
|
|
250
|
+
if (componentTheme === undefined) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
const varKeys = Object.keys(componentTheme).filter((key) => {
|
|
254
|
+
return (key !== 'name' &&
|
|
255
|
+
key
|
|
256
|
+
.toLowerCase()
|
|
257
|
+
.includes(varNamePatternLower));
|
|
305
258
|
});
|
|
306
|
-
if (!
|
|
307
|
-
return
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
259
|
+
if (!varKeys.length) {
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
filteredItemsCount += 1;
|
|
263
|
+
return (h(NCollapseItem, { title: themeKey, name: themeKey }, {
|
|
264
|
+
default: () => {
|
|
265
|
+
return (h(NSpace, { vertical: true }, {
|
|
266
|
+
default: () => varKeys.map((varKey) => {
|
|
267
|
+
var _a, _b, _c, _d;
|
|
268
|
+
return [
|
|
269
|
+
h("div", { key: `${varKey}Label` }, varKey),
|
|
270
|
+
showColorPicker(varKey) ? (h(NColorPicker, { key: varKey, modes: ['rgb', 'hex'], value: ((_b = (_a = this.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]) ||
|
|
271
|
+
componentTheme[varKey], onComplete: this.applyTempOverrides, onUpdateValue: (value) => {
|
|
272
|
+
this.setTempOverrides(themeKey, varKey, value);
|
|
273
|
+
} }, {
|
|
274
|
+
action: () => {
|
|
275
|
+
var _a, _b;
|
|
276
|
+
return (h(NButton, { size: "small", disabled: componentTheme[varKey] ===
|
|
277
|
+
((_b = (_a = this
|
|
278
|
+
.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]), onClick: () => {
|
|
279
|
+
this.setTempOverrides(themeKey, varKey, componentTheme[varKey]);
|
|
280
|
+
this.applyTempOverrides();
|
|
281
|
+
} }, {
|
|
282
|
+
default: () => this.locale
|
|
283
|
+
.restore
|
|
284
|
+
}));
|
|
285
|
+
}
|
|
286
|
+
})) : (h(NInput, { key: varKey, onChange: this.applyTempOverrides, onUpdateValue: (value) => {
|
|
287
|
+
this.setTempOverrides(themeKey, varKey, value);
|
|
288
|
+
}, value: ((_d = (_c = this.tempOverrides) === null || _c === void 0 ? void 0 : _c[themeKey]) === null || _d === void 0 ? void 0 : _d[varKey]) || '', placeholder: componentTheme[varKey] }))
|
|
289
|
+
];
|
|
290
|
+
})
|
|
291
|
+
}));
|
|
292
|
+
}
|
|
293
|
+
}));
|
|
294
|
+
});
|
|
295
|
+
if (!filteredItemsCount)
|
|
296
|
+
return h(NEmpty, null);
|
|
297
|
+
return collapsedItems;
|
|
298
|
+
}
|
|
299
|
+
})))
|
|
312
300
|
}),
|
|
313
301
|
(_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)
|
|
314
302
|
];
|
package/es/time/src/Time.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, createTextVNode, defineComponent, computed } from 'vue';
|
|
2
|
-
import { format, formatDistanceStrict, fromUnixTime, getTime } from 'date-fns';
|
|
3
|
-
import
|
|
2
|
+
import { format, formatDistanceStrict, fromUnixTime, getTime } from 'date-fns/esm';
|
|
3
|
+
import getTimezoneOffset from 'date-fns-tz/esm/getTimezoneOffset';
|
|
4
4
|
import { useLocale } from '../../_mixins';
|
|
5
5
|
const timeProps = {
|
|
6
6
|
time: {
|
|
@@ -166,12 +166,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
166
|
borderRadius: string;
|
|
167
167
|
borderRadiusSmall: string;
|
|
168
168
|
fontSize: string;
|
|
169
|
+
fontSizeMini: string;
|
|
169
170
|
fontSizeTiny: string;
|
|
170
171
|
fontSizeSmall: string;
|
|
171
172
|
fontSizeMedium: string;
|
|
172
173
|
fontSizeLarge: string;
|
|
173
174
|
fontSizeHuge: string;
|
|
174
175
|
lineHeight: string;
|
|
176
|
+
heightMini: string;
|
|
175
177
|
heightTiny: string;
|
|
176
178
|
heightSmall: string;
|
|
177
179
|
heightMedium: string;
|
|
@@ -2071,12 +2071,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2071
2071
|
borderRadius: string;
|
|
2072
2072
|
borderRadiusSmall: string;
|
|
2073
2073
|
fontSize: string;
|
|
2074
|
+
fontSizeMini: string;
|
|
2074
2075
|
fontSizeTiny: string;
|
|
2075
2076
|
fontSizeSmall: string;
|
|
2076
2077
|
fontSizeMedium: string;
|
|
2077
2078
|
fontSizeLarge: string;
|
|
2078
2079
|
fontSizeHuge: string;
|
|
2079
2080
|
lineHeight: string;
|
|
2081
|
+
heightMini: string;
|
|
2080
2082
|
heightTiny: string;
|
|
2081
2083
|
heightSmall: string;
|
|
2082
2084
|
heightMedium: string;
|
|
@@ -3,7 +3,7 @@ import { useIsMounted, useKeyboard, useMergedState } from 'vooks';
|
|
|
3
3
|
import { VBinder, VTarget, VFollower } from 'vueuc';
|
|
4
4
|
import { clickoutside } from 'vdirs';
|
|
5
5
|
import { happensIn } from 'seemly';
|
|
6
|
-
import { isValid, startOfSecond, startOfMinute, startOfHour, format, set, setHours, setMinutes, setSeconds, getTime, getMinutes, getHours, getSeconds } from 'date-fns';
|
|
6
|
+
import { isValid, startOfSecond, startOfMinute, startOfHour, format, set, setHours, setMinutes, setSeconds, getTime, getMinutes, getHours, getSeconds } from 'date-fns/esm';
|
|
7
7
|
import { strictParse } from '../../date-picker/src/utils';
|
|
8
8
|
import { TimeIcon } from '../../_internal/icons';
|
|
9
9
|
import { NInput } from '../../input';
|
|
@@ -377,6 +377,7 @@ export default defineComponent({
|
|
|
377
377
|
if (mergedShowRef.value) {
|
|
378
378
|
const panelEl = (_a = panelInstRef.value) === null || _a === void 0 ? void 0 : _a.$el;
|
|
379
379
|
if (!(panelEl === null || panelEl === void 0 ? void 0 : panelEl.contains(e.relatedTarget))) {
|
|
380
|
+
deriveInputValue();
|
|
380
381
|
doBlur(e);
|
|
381
382
|
closePanel({
|
|
382
383
|
returnFocus: false
|
|
@@ -384,6 +385,7 @@ export default defineComponent({
|
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
else {
|
|
388
|
+
deriveInputValue();
|
|
387
389
|
doBlur(e);
|
|
388
390
|
}
|
|
389
391
|
}
|
|
@@ -503,6 +505,7 @@ export default defineComponent({
|
|
|
503
505
|
function handleMenuFocusOut(e) {
|
|
504
506
|
if (isInternalFocusSwitch(e))
|
|
505
507
|
return;
|
|
508
|
+
deriveInputValue();
|
|
506
509
|
doBlur(e);
|
|
507
510
|
closePanel({
|
|
508
511
|
returnFocus: false
|
|
@@ -635,7 +638,9 @@ export default defineComponent({
|
|
|
635
638
|
h(VTarget, null, {
|
|
636
639
|
default: () => (h(NInput, { ref: "inputInstRef", status: this.mergedStatus, value: this.displayTimeString, bordered: this.mergedBordered, passivelyActivated: true, attrSize: this.mergedAttrSize, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, stateful: this.stateful, size: this.mergedSize, placeholder: this.localizedPlaceholder, clearable: this.clearable, disabled: this.mergedDisabled, textDecoration: this.isValueInvalid ? 'line-through' : undefined, onFocus: this.handleTimeInputFocus, onBlur: this.handleTimeInputBlur, onActivate: this.handleTimeInputActivate, onDeactivate: this.handleTimeInputDeactivate, onUpdateValue: this.handleTimeInputUpdateValue, onClear: this.handleTimeInputClear, internalDeactivateOnEnter: true, internalForceFocus: this.mergedShow, readonly: this.inputReadonly || this.mergedDisabled, onClick: this.handleTriggerClick }, this.showIcon
|
|
637
640
|
? {
|
|
638
|
-
[this.clearable
|
|
641
|
+
[this.clearable
|
|
642
|
+
? 'clear-icon-placeholder'
|
|
643
|
+
: 'suffix']: () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-time-picker-icon` }, {
|
|
639
644
|
default: () => $slots.icon ? $slots.icon() : h(TimeIcon, null)
|
|
640
645
|
}))
|
|
641
646
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c, cE, cM, cB, cNotM } from '../../../_utils/cssr';
|
|
2
|
-
import fadeInScaleUpTransition from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
|
|
2
|
+
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr'; // vars:
|
|
3
3
|
// --n-icon-color
|
|
4
4
|
// --n-icon-color-disabled
|
|
5
5
|
// --n-bezier
|
|
@@ -396,12 +396,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
396
396
|
borderRadius: string;
|
|
397
397
|
borderRadiusSmall: string;
|
|
398
398
|
fontSize: string;
|
|
399
|
+
fontSizeMini: string;
|
|
399
400
|
fontSizeTiny: string;
|
|
400
401
|
fontSizeSmall: string;
|
|
401
402
|
fontSizeMedium: string;
|
|
402
403
|
fontSizeLarge: string;
|
|
403
404
|
fontSizeHuge: string;
|
|
404
405
|
lineHeight: string;
|
|
406
|
+
heightMini: string;
|
|
405
407
|
heightTiny: string;
|
|
406
408
|
heightSmall: string;
|
|
407
409
|
heightMedium: string;
|
|
@@ -2178,12 +2178,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2178
2178
|
borderRadius: string;
|
|
2179
2179
|
borderRadiusSmall: string;
|
|
2180
2180
|
fontSize: string;
|
|
2181
|
+
fontSizeMini: string;
|
|
2181
2182
|
fontSizeTiny: string;
|
|
2182
2183
|
fontSizeSmall: string;
|
|
2183
2184
|
fontSizeMedium: string;
|
|
2184
2185
|
fontSizeLarge: string;
|
|
2185
2186
|
fontSizeHuge: string;
|
|
2186
2187
|
lineHeight: string;
|
|
2188
|
+
heightMini: string;
|
|
2187
2189
|
heightTiny: string;
|
|
2188
2190
|
heightSmall: string;
|
|
2189
2191
|
heightMedium: string;
|
|
@@ -107,12 +107,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
107
|
borderRadius: string;
|
|
108
108
|
borderRadiusSmall: string;
|
|
109
109
|
fontSize: string;
|
|
110
|
+
fontSizeMini: string;
|
|
110
111
|
fontSizeTiny: string;
|
|
111
112
|
fontSizeSmall: string;
|
|
112
113
|
fontSizeMedium: string;
|
|
113
114
|
fontSizeLarge: string;
|
|
114
115
|
fontSizeHuge: string;
|
|
115
116
|
lineHeight: string;
|
|
117
|
+
heightMini: string;
|
|
116
118
|
heightTiny: string;
|
|
117
119
|
heightSmall: string;
|
|
118
120
|
heightMedium: string;
|
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
const { mergedTheme, mergedClsPrefix } = this;
|
|
35
35
|
return (h("div", { class: `${mergedClsPrefix}-transfer-filter` },
|
|
36
36
|
h(NInput, { value: this.value, onUpdateValue: this.onUpdateValue, disabled: this.disabled, theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, clearable: true, size: "small", placeholder: this.placeholder, onFocus: this.onFocus, onBlur: this.onBlur }, {
|
|
37
|
-
clear: () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-transfer-icon` }, { default: () => h(SearchIcon, null) }))
|
|
37
|
+
'clear-icon-placeholder': () => (h(NBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-transfer-icon` }, { default: () => h(SearchIcon, null) }))
|
|
38
38
|
})));
|
|
39
39
|
}
|
|
40
40
|
});
|
|
@@ -120,12 +120,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
borderRadius: string;
|
|
121
121
|
borderRadiusSmall: string;
|
|
122
122
|
fontSize: string;
|
|
123
|
+
fontSizeMini: string;
|
|
123
124
|
fontSizeTiny: string;
|
|
124
125
|
fontSizeSmall: string;
|
|
125
126
|
fontSizeMedium: string;
|
|
126
127
|
fontSizeLarge: string;
|
|
127
128
|
fontSizeHuge: string;
|
|
128
129
|
lineHeight: string;
|
|
130
|
+
heightMini: string;
|
|
129
131
|
heightTiny: string;
|
|
130
132
|
heightSmall: string;
|
|
131
133
|
heightMedium: string;
|
|
@@ -107,12 +107,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
107
|
borderRadius: string;
|
|
108
108
|
borderRadiusSmall: string;
|
|
109
109
|
fontSize: string;
|
|
110
|
+
fontSizeMini: string;
|
|
110
111
|
fontSizeTiny: string;
|
|
111
112
|
fontSizeSmall: string;
|
|
112
113
|
fontSizeMedium: string;
|
|
113
114
|
fontSizeLarge: string;
|
|
114
115
|
fontSizeHuge: string;
|
|
115
116
|
lineHeight: string;
|
|
117
|
+
heightMini: string;
|
|
116
118
|
heightTiny: string;
|
|
117
119
|
heightSmall: string;
|
|
118
120
|
heightMedium: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
|
-
import fadeInTransition from '../../../_styles/transitions/fade-in.cssr';
|
|
2
|
+
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr';
|
|
3
3
|
const animation = c([c('@keyframes transfer-slide-in-from-left', `
|
|
4
4
|
0% {
|
|
5
5
|
transform: translateX(-150%);
|
|
@@ -112,7 +112,6 @@ export default c([cB('transfer', `
|
|
|
112
112
|
flex-basis: 0;
|
|
113
113
|
flex-grow: 1;
|
|
114
114
|
box-sizing: border-box;
|
|
115
|
-
overflow: hidden;
|
|
116
115
|
position: relative;
|
|
117
116
|
display: flex;
|
|
118
117
|
flex-direction: column;
|
package/es/tree/src/Tree.d.ts
CHANGED
|
@@ -728,12 +728,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
728
728
|
borderRadius: string;
|
|
729
729
|
borderRadiusSmall: string;
|
|
730
730
|
fontSize: string;
|
|
731
|
+
fontSizeMini: string;
|
|
731
732
|
fontSizeTiny: string;
|
|
732
733
|
fontSizeSmall: string;
|
|
733
734
|
fontSizeMedium: string;
|
|
734
735
|
fontSizeLarge: string;
|
|
735
736
|
fontSizeHuge: string;
|
|
736
737
|
lineHeight: string;
|
|
738
|
+
heightMini: string;
|
|
737
739
|
heightTiny: string;
|
|
738
740
|
heightSmall: string;
|
|
739
741
|
heightMedium: string;
|
|
@@ -102,12 +102,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
borderRadius: string;
|
|
103
103
|
borderRadiusSmall: string;
|
|
104
104
|
fontSize: string;
|
|
105
|
+
fontSizeMini: string;
|
|
105
106
|
fontSizeTiny: string;
|
|
106
107
|
fontSizeSmall: string;
|
|
107
108
|
fontSizeMedium: string;
|
|
108
109
|
fontSizeLarge: string;
|
|
109
110
|
fontSizeHuge: string;
|
|
110
111
|
lineHeight: string;
|
|
112
|
+
heightMini: string;
|
|
111
113
|
heightTiny: string;
|
|
112
114
|
heightSmall: string;
|
|
113
115
|
heightMedium: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
|
-
import iconSwitchTransition from '../../../_styles/transitions/icon-switch.cssr';
|
|
3
|
-
import fadeInHeightExpandTransition from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
|
|
2
|
+
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
3
|
+
import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr'; // vars:
|
|
4
4
|
// --n-arrow-color
|
|
5
5
|
// --n-bezier
|
|
6
6
|
// --n-font-size
|