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
package/lib/tag/src/Tag.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare const tagProps: {
|
|
|
31
31
|
};
|
|
32
32
|
round: BooleanConstructor;
|
|
33
33
|
size: {
|
|
34
|
-
readonly type: PropType<"small" | "medium" | "large">;
|
|
34
|
+
readonly type: PropType<"small" | "medium" | "large" | "tiny">;
|
|
35
35
|
readonly default: "medium";
|
|
36
36
|
};
|
|
37
37
|
closable: BooleanConstructor;
|
|
@@ -40,11 +40,13 @@ declare const tagProps: {
|
|
|
40
40
|
readonly default: undefined;
|
|
41
41
|
};
|
|
42
42
|
theme: PropType<import("../../_mixins").Theme<"Tag", {
|
|
43
|
+
heightTiny: string;
|
|
43
44
|
heightSmall: string;
|
|
44
45
|
heightMedium: string;
|
|
45
46
|
heightLarge: string;
|
|
46
47
|
borderRadius: string;
|
|
47
48
|
opacityDisabled: string;
|
|
49
|
+
fontSizeTiny: string;
|
|
48
50
|
fontSizeSmall: string;
|
|
49
51
|
fontSizeMedium: string;
|
|
50
52
|
fontSizeLarge: string;
|
|
@@ -94,6 +96,7 @@ declare const tagProps: {
|
|
|
94
96
|
closeColorError: string;
|
|
95
97
|
closeColorHoverError: string;
|
|
96
98
|
closeColorPressedError: string;
|
|
99
|
+
closeSizeTiny: string;
|
|
97
100
|
closeSizeSmall: string;
|
|
98
101
|
closeSizeMedium: string;
|
|
99
102
|
closeSizeLarge: string;
|
|
@@ -102,11 +105,13 @@ declare const tagProps: {
|
|
|
102
105
|
closeMarginRtl: string;
|
|
103
106
|
}, any>>;
|
|
104
107
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tag", {
|
|
108
|
+
heightTiny: string;
|
|
105
109
|
heightSmall: string;
|
|
106
110
|
heightMedium: string;
|
|
107
111
|
heightLarge: string;
|
|
108
112
|
borderRadius: string;
|
|
109
113
|
opacityDisabled: string;
|
|
114
|
+
fontSizeTiny: string;
|
|
110
115
|
fontSizeSmall: string;
|
|
111
116
|
fontSizeMedium: string;
|
|
112
117
|
fontSizeLarge: string;
|
|
@@ -156,6 +161,7 @@ declare const tagProps: {
|
|
|
156
161
|
closeColorError: string;
|
|
157
162
|
closeColorHoverError: string;
|
|
158
163
|
closeColorPressedError: string;
|
|
164
|
+
closeSizeTiny: string;
|
|
159
165
|
closeSizeSmall: string;
|
|
160
166
|
closeSizeMedium: string;
|
|
161
167
|
closeSizeLarge: string;
|
|
@@ -164,11 +170,13 @@ declare const tagProps: {
|
|
|
164
170
|
closeMarginRtl: string;
|
|
165
171
|
}, any>>>;
|
|
166
172
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tag", {
|
|
173
|
+
heightTiny: string;
|
|
167
174
|
heightSmall: string;
|
|
168
175
|
heightMedium: string;
|
|
169
176
|
heightLarge: string;
|
|
170
177
|
borderRadius: string;
|
|
171
178
|
opacityDisabled: string;
|
|
179
|
+
fontSizeTiny: string;
|
|
172
180
|
fontSizeSmall: string;
|
|
173
181
|
fontSizeMedium: string;
|
|
174
182
|
fontSizeLarge: string;
|
|
@@ -218,6 +226,7 @@ declare const tagProps: {
|
|
|
218
226
|
closeColorError: string;
|
|
219
227
|
closeColorHoverError: string;
|
|
220
228
|
closeColorPressedError: string;
|
|
229
|
+
closeSizeTiny: string;
|
|
221
230
|
closeSizeSmall: string;
|
|
222
231
|
closeSizeMedium: string;
|
|
223
232
|
closeSizeLarge: string;
|
|
@@ -256,7 +265,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
265
|
};
|
|
257
266
|
round: BooleanConstructor;
|
|
258
267
|
size: {
|
|
259
|
-
readonly type: PropType<"small" | "medium" | "large">;
|
|
268
|
+
readonly type: PropType<"small" | "medium" | "large" | "tiny">;
|
|
260
269
|
readonly default: "medium";
|
|
261
270
|
};
|
|
262
271
|
closable: BooleanConstructor;
|
|
@@ -265,11 +274,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
265
274
|
readonly default: undefined;
|
|
266
275
|
};
|
|
267
276
|
theme: PropType<import("../../_mixins").Theme<"Tag", {
|
|
277
|
+
heightTiny: string;
|
|
268
278
|
heightSmall: string;
|
|
269
279
|
heightMedium: string;
|
|
270
280
|
heightLarge: string;
|
|
271
281
|
borderRadius: string;
|
|
272
282
|
opacityDisabled: string;
|
|
283
|
+
fontSizeTiny: string;
|
|
273
284
|
fontSizeSmall: string;
|
|
274
285
|
fontSizeMedium: string;
|
|
275
286
|
fontSizeLarge: string;
|
|
@@ -319,6 +330,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
330
|
closeColorError: string;
|
|
320
331
|
closeColorHoverError: string;
|
|
321
332
|
closeColorPressedError: string;
|
|
333
|
+
closeSizeTiny: string;
|
|
322
334
|
closeSizeSmall: string;
|
|
323
335
|
closeSizeMedium: string;
|
|
324
336
|
closeSizeLarge: string;
|
|
@@ -327,11 +339,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
327
339
|
closeMarginRtl: string;
|
|
328
340
|
}, any>>;
|
|
329
341
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tag", {
|
|
342
|
+
heightTiny: string;
|
|
330
343
|
heightSmall: string;
|
|
331
344
|
heightMedium: string;
|
|
332
345
|
heightLarge: string;
|
|
333
346
|
borderRadius: string;
|
|
334
347
|
opacityDisabled: string;
|
|
348
|
+
fontSizeTiny: string;
|
|
335
349
|
fontSizeSmall: string;
|
|
336
350
|
fontSizeMedium: string;
|
|
337
351
|
fontSizeLarge: string;
|
|
@@ -381,6 +395,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
395
|
closeColorError: string;
|
|
382
396
|
closeColorHoverError: string;
|
|
383
397
|
closeColorPressedError: string;
|
|
398
|
+
closeSizeTiny: string;
|
|
384
399
|
closeSizeSmall: string;
|
|
385
400
|
closeSizeMedium: string;
|
|
386
401
|
closeSizeLarge: string;
|
|
@@ -389,11 +404,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
389
404
|
closeMarginRtl: string;
|
|
390
405
|
}, any>>>;
|
|
391
406
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tag", {
|
|
407
|
+
heightTiny: string;
|
|
392
408
|
heightSmall: string;
|
|
393
409
|
heightMedium: string;
|
|
394
410
|
heightLarge: string;
|
|
395
411
|
borderRadius: string;
|
|
396
412
|
opacityDisabled: string;
|
|
413
|
+
fontSizeTiny: string;
|
|
397
414
|
fontSizeSmall: string;
|
|
398
415
|
fontSizeMedium: string;
|
|
399
416
|
fontSizeLarge: string;
|
|
@@ -443,6 +460,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
443
460
|
closeColorError: string;
|
|
444
461
|
closeColorHoverError: string;
|
|
445
462
|
closeColorPressedError: string;
|
|
463
|
+
closeSizeTiny: string;
|
|
446
464
|
closeSizeSmall: string;
|
|
447
465
|
closeSizeMedium: string;
|
|
448
466
|
closeSizeLarge: string;
|
|
@@ -514,7 +532,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
514
532
|
};
|
|
515
533
|
round: BooleanConstructor;
|
|
516
534
|
size: {
|
|
517
|
-
readonly type: PropType<"small" | "medium" | "large">;
|
|
535
|
+
readonly type: PropType<"small" | "medium" | "large" | "tiny">;
|
|
518
536
|
readonly default: "medium";
|
|
519
537
|
};
|
|
520
538
|
closable: BooleanConstructor;
|
|
@@ -523,11 +541,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
523
541
|
readonly default: undefined;
|
|
524
542
|
};
|
|
525
543
|
theme: PropType<import("../../_mixins").Theme<"Tag", {
|
|
544
|
+
heightTiny: string;
|
|
526
545
|
heightSmall: string;
|
|
527
546
|
heightMedium: string;
|
|
528
547
|
heightLarge: string;
|
|
529
548
|
borderRadius: string;
|
|
530
549
|
opacityDisabled: string;
|
|
550
|
+
fontSizeTiny: string;
|
|
531
551
|
fontSizeSmall: string;
|
|
532
552
|
fontSizeMedium: string;
|
|
533
553
|
fontSizeLarge: string;
|
|
@@ -577,6 +597,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
577
597
|
closeColorError: string;
|
|
578
598
|
closeColorHoverError: string;
|
|
579
599
|
closeColorPressedError: string;
|
|
600
|
+
closeSizeTiny: string;
|
|
580
601
|
closeSizeSmall: string;
|
|
581
602
|
closeSizeMedium: string;
|
|
582
603
|
closeSizeLarge: string;
|
|
@@ -585,11 +606,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
585
606
|
closeMarginRtl: string;
|
|
586
607
|
}, any>>;
|
|
587
608
|
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tag", {
|
|
609
|
+
heightTiny: string;
|
|
588
610
|
heightSmall: string;
|
|
589
611
|
heightMedium: string;
|
|
590
612
|
heightLarge: string;
|
|
591
613
|
borderRadius: string;
|
|
592
614
|
opacityDisabled: string;
|
|
615
|
+
fontSizeTiny: string;
|
|
593
616
|
fontSizeSmall: string;
|
|
594
617
|
fontSizeMedium: string;
|
|
595
618
|
fontSizeLarge: string;
|
|
@@ -639,6 +662,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
639
662
|
closeColorError: string;
|
|
640
663
|
closeColorHoverError: string;
|
|
641
664
|
closeColorPressedError: string;
|
|
665
|
+
closeSizeTiny: string;
|
|
642
666
|
closeSizeSmall: string;
|
|
643
667
|
closeSizeMedium: string;
|
|
644
668
|
closeSizeLarge: string;
|
|
@@ -647,11 +671,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
647
671
|
closeMarginRtl: string;
|
|
648
672
|
}, any>>>;
|
|
649
673
|
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tag", {
|
|
674
|
+
heightTiny: string;
|
|
650
675
|
heightSmall: string;
|
|
651
676
|
heightMedium: string;
|
|
652
677
|
heightLarge: string;
|
|
653
678
|
borderRadius: string;
|
|
654
679
|
opacityDisabled: string;
|
|
680
|
+
fontSizeTiny: string;
|
|
655
681
|
fontSizeSmall: string;
|
|
656
682
|
fontSizeMedium: string;
|
|
657
683
|
fontSizeLarge: string;
|
|
@@ -701,6 +727,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
701
727
|
closeColorError: string;
|
|
702
728
|
closeColorHoverError: string;
|
|
703
729
|
closeColorPressedError: string;
|
|
730
|
+
closeSizeTiny: string;
|
|
704
731
|
closeSizeSmall: string;
|
|
705
732
|
closeSizeMedium: string;
|
|
706
733
|
closeSizeLarge: string;
|
|
@@ -711,7 +738,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
711
738
|
}>>, {
|
|
712
739
|
type: "default" | "error" | "primary" | "info" | "success" | "warning";
|
|
713
740
|
round: boolean;
|
|
714
|
-
size: "small" | "medium" | "large";
|
|
741
|
+
size: "small" | "medium" | "large" | "tiny";
|
|
715
742
|
disabled: boolean | undefined;
|
|
716
743
|
checked: boolean;
|
|
717
744
|
bordered: boolean | undefined;
|
|
@@ -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/lib/tag/styles/dark.js
CHANGED
|
@@ -10,9 +10,9 @@ const tagDark = {
|
|
|
10
10
|
name: 'Tag',
|
|
11
11
|
common: common_1.commonDark,
|
|
12
12
|
self(vars) {
|
|
13
|
-
const { textColor2, primaryColorHover, primaryColorPressed, primaryColor, infoColor, successColor, warningColor, errorColor, baseColor, borderColor, opacityDisabled, closeColor, closeColorHover, closeColorPressed, borderRadiusSmall: borderRadius, fontSizeTiny, fontSizeSmall, fontSizeMedium, heightTiny, heightSmall, heightMedium } = vars;
|
|
14
|
-
return Object.assign(Object.assign({}, _common_1.default), { heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
15
|
-
opacityDisabled, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
13
|
+
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;
|
|
14
|
+
return Object.assign(Object.assign({}, _common_1.default), { heightTiny: heightMini, heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
15
|
+
opacityDisabled, fontSizeTiny: fontSizeMini, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
16
16
|
// checked
|
|
17
17
|
textColorCheckable: textColor2, textColorHoverCheckable: primaryColorHover, textColorPressedCheckable: primaryColorPressed, textColorChecked: baseColor, colorCheckable: '#0000', colorHoverCheckable: '#0000', colorPressedCheckable: '#0000', colorChecked: primaryColor, colorCheckedHover: primaryColorHover, colorCheckedPressed: primaryColorPressed,
|
|
18
18
|
// default
|
|
@@ -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/lib/tag/styles/light.js
CHANGED
|
@@ -7,9 +7,9 @@ const _common_1 = __importDefault(require("./_common"));
|
|
|
7
7
|
const seemly_1 = require("seemly");
|
|
8
8
|
const common_1 = require("../../_styles/common");
|
|
9
9
|
const self = (vars) => {
|
|
10
|
-
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;
|
|
11
|
-
return Object.assign(Object.assign({}, _common_1.default), { heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
12
|
-
opacityDisabled, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
10
|
+
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;
|
|
11
|
+
return Object.assign(Object.assign({}, _common_1.default), { heightTiny: heightMini, heightSmall: heightTiny, heightMedium: heightSmall, heightLarge: heightMedium, borderRadius,
|
|
12
|
+
opacityDisabled, fontSizeTiny: fontSizeMini, fontSizeSmall: fontSizeTiny, fontSizeMedium: fontSizeSmall, fontSizeLarge: fontSizeMedium,
|
|
13
13
|
// checked
|
|
14
14
|
textColorCheckable: textColor2, textColorHoverCheckable: primaryColorHover, textColorPressedCheckable: primaryColorPressed, textColorChecked: baseColor, colorCheckable: '#0000', colorHoverCheckable: '#0000', colorPressedCheckable: '#0000', colorChecked: primaryColor, colorCheckedHover: primaryColorHover, colorCheckedPressed: primaryColorPressed,
|
|
15
15
|
// 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;
|
|
@@ -6,7 +6,6 @@ const context_1 = require("../../config-provider/src/context");
|
|
|
6
6
|
const light_1 = require("../../themes/light");
|
|
7
7
|
const config_provider_1 = require("../../config-provider");
|
|
8
8
|
const popover_1 = require("../../popover");
|
|
9
|
-
const _internal_1 = require("../../_internal");
|
|
10
9
|
const collapse_1 = require("../../collapse");
|
|
11
10
|
const input_1 = require("../../input");
|
|
12
11
|
const space_1 = require("../../space");
|
|
@@ -154,7 +153,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
154
153
|
default: () => {
|
|
155
154
|
var _a, _b;
|
|
156
155
|
return [
|
|
157
|
-
(0, vue_1.h)(popover_1.NPopover, { arrowPointToCenter: true, trigger: "manual", show: this.showPanel, displayDirective: "show", placement: "top-end", style: {
|
|
156
|
+
(0, vue_1.h)(popover_1.NPopover, { scrollable: true, arrowPointToCenter: true, trigger: "manual", show: this.showPanel, displayDirective: "show", placement: "top-end", style: {
|
|
158
157
|
width: '288px',
|
|
159
158
|
height: 'calc(100vh - 200px)',
|
|
160
159
|
padding: 0
|
|
@@ -187,130 +186,119 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
187
186
|
onClick: () => {
|
|
188
187
|
this.showPanel = !this.showPanel;
|
|
189
188
|
} }, { default: () => ColorWandIcon })),
|
|
190
|
-
default: () => ((0, vue_1.h)(
|
|
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
|
-
|
|
260
|
-
|
|
261
|
-
.toLowerCase()
|
|
262
|
-
.includes(varNamePatternLower));
|
|
263
|
-
});
|
|
264
|
-
if (!varKeys.length) {
|
|
265
|
-
return null;
|
|
266
|
-
}
|
|
267
|
-
filteredItemsCount += 1;
|
|
268
|
-
return ((0, vue_1.h)(collapse_1.NCollapseItem, { title: themeKey, name: themeKey }, {
|
|
269
|
-
default: () => {
|
|
270
|
-
return ((0, vue_1.h)(space_1.NSpace, { vertical: true }, {
|
|
271
|
-
default: () => varKeys.map((varKey) => {
|
|
272
|
-
var _a, _b, _c, _d;
|
|
273
|
-
return [
|
|
274
|
-
(0, vue_1.h)("div", { key: `${varKey}Label` }, varKey),
|
|
275
|
-
showColorPicker(varKey) ? ((0, vue_1.h)(color_picker_1.NColorPicker, { key: varKey, modes: [
|
|
276
|
-
'rgb',
|
|
277
|
-
'hex'
|
|
278
|
-
], value: ((_b = (_a = this
|
|
279
|
-
.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]) ||
|
|
280
|
-
componentTheme[varKey], onComplete: this
|
|
281
|
-
.applyTempOverrides, onUpdateValue: (value) => {
|
|
282
|
-
this.setTempOverrides(themeKey, varKey, value);
|
|
283
|
-
} }, {
|
|
284
|
-
action: () => {
|
|
285
|
-
var _a, _b;
|
|
286
|
-
return ((0, vue_1.h)(button_1.NButton, { size: "small", disabled: componentTheme[varKey] ===
|
|
287
|
-
((_b = (_a = this
|
|
288
|
-
.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]), onClick: () => {
|
|
289
|
-
this.setTempOverrides(themeKey, varKey, componentTheme[varKey]);
|
|
290
|
-
this.applyTempOverrides();
|
|
291
|
-
} }, {
|
|
292
|
-
default: () => this
|
|
293
|
-
.locale
|
|
294
|
-
.restore
|
|
295
|
-
}));
|
|
296
|
-
}
|
|
297
|
-
})) : ((0, vue_1.h)(input_1.NInput, { key: varKey, onChange: this
|
|
298
|
-
.applyTempOverrides, onUpdateValue: (value) => {
|
|
299
|
-
this.setTempOverrides(themeKey, varKey, value);
|
|
300
|
-
}, value: ((_d = (_c = this
|
|
301
|
-
.tempOverrides) === null || _c === void 0 ? void 0 : _c[themeKey]) === null || _d === void 0 ? void 0 : _d[varKey]) || '', placeholder: componentTheme[varKey] }))
|
|
302
|
-
];
|
|
303
|
-
})
|
|
304
|
-
}));
|
|
305
|
-
}
|
|
306
|
-
}));
|
|
189
|
+
default: () => ((0, vue_1.h)(vue_1.Fragment, null,
|
|
190
|
+
(0, vue_1.h)("input", { type: "file", ref: "fileInputRef", style: {
|
|
191
|
+
display: 'block',
|
|
192
|
+
width: 0,
|
|
193
|
+
height: 0,
|
|
194
|
+
visibility: 'hidden'
|
|
195
|
+
}, onChange: this.handleInputFileChange }),
|
|
196
|
+
(0, vue_1.h)(space_1.NSpace, { vertical: true }, {
|
|
197
|
+
default: () => ((0, vue_1.h)(vue_1.Fragment, null,
|
|
198
|
+
(0, vue_1.h)("div", { style: {
|
|
199
|
+
marginBottom: '8px',
|
|
200
|
+
fontSize: '18px',
|
|
201
|
+
fontWeight: 500
|
|
202
|
+
} }, this.locale.title),
|
|
203
|
+
this.locale.filterCompName,
|
|
204
|
+
(0, vue_1.h)(input_1.NInput, { onChange: () => {
|
|
205
|
+
this.compNamePattern = this.tempCompNamePattern;
|
|
206
|
+
}, onInput: (value) => {
|
|
207
|
+
this.tempCompNamePattern = value;
|
|
208
|
+
}, value: this.tempCompNamePattern, placeholder: this.locale.filterCompName }),
|
|
209
|
+
this.locale.filterVarName,
|
|
210
|
+
(0, vue_1.h)(input_1.NInput, { onChange: (value) => {
|
|
211
|
+
this.varNamePattern = value;
|
|
212
|
+
}, onInput: (value) => {
|
|
213
|
+
this.tempVarNamePattern = value;
|
|
214
|
+
}, value: this.tempVarNamePattern, placeholder: this.locale.filterVarName }),
|
|
215
|
+
(0, vue_1.h)(button_1.NButton, { size: "small", onClick: () => {
|
|
216
|
+
this.compNamePattern = '';
|
|
217
|
+
this.varNamePattern = '';
|
|
218
|
+
this.tempCompNamePattern = '';
|
|
219
|
+
this.tempVarNamePattern = '';
|
|
220
|
+
}, block: true }, { default: () => this.locale.clearSearch }),
|
|
221
|
+
(0, vue_1.h)(button_1.NButton, { size: "small", onClick: this.handleClearAllClick, block: true }, {
|
|
222
|
+
default: () => this.locale.clearAllVars
|
|
223
|
+
}),
|
|
224
|
+
(0, vue_1.h)(space_1.NSpace, { itemStyle: { flex: 1 } }, {
|
|
225
|
+
default: () => ((0, vue_1.h)(vue_1.Fragment, null,
|
|
226
|
+
(0, vue_1.h)(button_1.NButton, { block: true, size: "small", onClick: this.handleImportClick }, {
|
|
227
|
+
default: () => this.locale.import
|
|
228
|
+
}),
|
|
229
|
+
(0, vue_1.h)(button_1.NButton, { block: true, size: "small", onClick: this.handleExportClick }, {
|
|
230
|
+
default: () => this.locale.export
|
|
231
|
+
})))
|
|
232
|
+
})))
|
|
233
|
+
}),
|
|
234
|
+
(0, vue_1.h)(divider_1.NDivider, null),
|
|
235
|
+
(0, vue_1.h)(collapse_1.NCollapse, null, {
|
|
236
|
+
default: () => {
|
|
237
|
+
const { theme, compNamePattern, varNamePattern } = this;
|
|
238
|
+
const themeKeys = Object.keys(theme);
|
|
239
|
+
const compNamePatternLower = compNamePattern.toLowerCase();
|
|
240
|
+
const varNamePatternLower = varNamePattern.toLowerCase();
|
|
241
|
+
let filteredItemsCount = 0;
|
|
242
|
+
const collapsedItems = themeKeys
|
|
243
|
+
.filter((themeKey) => {
|
|
244
|
+
return themeKey
|
|
245
|
+
.toLowerCase()
|
|
246
|
+
.includes(compNamePatternLower);
|
|
247
|
+
})
|
|
248
|
+
.map((themeKey) => {
|
|
249
|
+
const componentTheme = themeKey === 'common'
|
|
250
|
+
? this.themeCommonDefault
|
|
251
|
+
: theme[themeKey];
|
|
252
|
+
if (componentTheme === undefined) {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
const varKeys = Object.keys(componentTheme).filter((key) => {
|
|
256
|
+
return (key !== 'name' &&
|
|
257
|
+
key
|
|
258
|
+
.toLowerCase()
|
|
259
|
+
.includes(varNamePatternLower));
|
|
307
260
|
});
|
|
308
|
-
if (!
|
|
309
|
-
return
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
261
|
+
if (!varKeys.length) {
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
filteredItemsCount += 1;
|
|
265
|
+
return ((0, vue_1.h)(collapse_1.NCollapseItem, { title: themeKey, name: themeKey }, {
|
|
266
|
+
default: () => {
|
|
267
|
+
return ((0, vue_1.h)(space_1.NSpace, { vertical: true }, {
|
|
268
|
+
default: () => varKeys.map((varKey) => {
|
|
269
|
+
var _a, _b, _c, _d;
|
|
270
|
+
return [
|
|
271
|
+
(0, vue_1.h)("div", { key: `${varKey}Label` }, varKey),
|
|
272
|
+
showColorPicker(varKey) ? ((0, vue_1.h)(color_picker_1.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]) ||
|
|
273
|
+
componentTheme[varKey], onComplete: this.applyTempOverrides, onUpdateValue: (value) => {
|
|
274
|
+
this.setTempOverrides(themeKey, varKey, value);
|
|
275
|
+
} }, {
|
|
276
|
+
action: () => {
|
|
277
|
+
var _a, _b;
|
|
278
|
+
return ((0, vue_1.h)(button_1.NButton, { size: "small", disabled: componentTheme[varKey] ===
|
|
279
|
+
((_b = (_a = this
|
|
280
|
+
.tempOverrides) === null || _a === void 0 ? void 0 : _a[themeKey]) === null || _b === void 0 ? void 0 : _b[varKey]), onClick: () => {
|
|
281
|
+
this.setTempOverrides(themeKey, varKey, componentTheme[varKey]);
|
|
282
|
+
this.applyTempOverrides();
|
|
283
|
+
} }, {
|
|
284
|
+
default: () => this.locale
|
|
285
|
+
.restore
|
|
286
|
+
}));
|
|
287
|
+
}
|
|
288
|
+
})) : ((0, vue_1.h)(input_1.NInput, { key: varKey, onChange: this.applyTempOverrides, onUpdateValue: (value) => {
|
|
289
|
+
this.setTempOverrides(themeKey, varKey, value);
|
|
290
|
+
}, value: ((_d = (_c = this.tempOverrides) === null || _c === void 0 ? void 0 : _c[themeKey]) === null || _d === void 0 ? void 0 : _d[varKey]) || '', placeholder: componentTheme[varKey] }))
|
|
291
|
+
];
|
|
292
|
+
})
|
|
293
|
+
}));
|
|
294
|
+
}
|
|
295
|
+
}));
|
|
296
|
+
});
|
|
297
|
+
if (!filteredItemsCount)
|
|
298
|
+
return (0, vue_1.h)(empty_1.NEmpty, null);
|
|
299
|
+
return collapsedItems;
|
|
300
|
+
}
|
|
301
|
+
})))
|
|
314
302
|
}),
|
|
315
303
|
(_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)
|
|
316
304
|
];
|
package/lib/time/src/Time.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const vue_1 = require("vue");
|
|
4
7
|
const date_fns_1 = require("date-fns");
|
|
5
|
-
const
|
|
8
|
+
const getTimezoneOffset_1 = __importDefault(require("date-fns-tz/getTimezoneOffset"));
|
|
6
9
|
const _mixins_1 = require("../../_mixins");
|
|
7
10
|
const timeProps = {
|
|
8
11
|
time: {
|
|
@@ -33,8 +36,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
33
36
|
if (timezone) {
|
|
34
37
|
return (time, _format) => {
|
|
35
38
|
return (0, date_fns_1.format)((0, date_fns_1.getTime)(time) +
|
|
36
|
-
-(0,
|
|
37
|
-
(0,
|
|
39
|
+
-(0, getTimezoneOffset_1.default)(Intl.DateTimeFormat().resolvedOptions().timeZone, time) +
|
|
40
|
+
(0, getTimezoneOffset_1.default)(timezone, time), _format);
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
return date_fns_1.format;
|
|
@@ -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;
|