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
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const nlNL = {
|
|
4
|
+
name: 'nl-NL',
|
|
5
|
+
global: {
|
|
6
|
+
undo: 'Ongedaan Maken',
|
|
7
|
+
redo: 'Opnieuw Doen',
|
|
8
|
+
confirm: 'Bevestig'
|
|
9
|
+
},
|
|
10
|
+
Popconfirm: {
|
|
11
|
+
positiveText: 'Bevestig',
|
|
12
|
+
negativeText: 'Annuleer'
|
|
13
|
+
},
|
|
14
|
+
Cascader: {
|
|
15
|
+
placeholder: 'Selecteer a.u.b.',
|
|
16
|
+
loading: 'Laden',
|
|
17
|
+
loadingRequiredMessage: (label) => `Laad alle afstammelingen van ${label} alvorens het te selecteren.`
|
|
18
|
+
},
|
|
19
|
+
Time: {
|
|
20
|
+
dateFormat: 'dd/MM/yyyy',
|
|
21
|
+
dateTimeFormat: 'dd/MM/yyyy HH:mm:ss'
|
|
22
|
+
},
|
|
23
|
+
DatePicker: {
|
|
24
|
+
yearFormat: 'yyyy',
|
|
25
|
+
monthFormat: 'MMM',
|
|
26
|
+
dayFormat: 'eeeeee',
|
|
27
|
+
yearTypeFormat: 'yyyy',
|
|
28
|
+
monthTypeFormat: 'MM/yyyy',
|
|
29
|
+
dateFormat: 'dd/MM/yyyy',
|
|
30
|
+
dateTimeFormat: 'dd/MM/yyyy HH:mm:ss',
|
|
31
|
+
quarterFormat: 'qqq yyyy',
|
|
32
|
+
clear: 'Wis',
|
|
33
|
+
now: 'Nu',
|
|
34
|
+
confirm: 'Bevestig',
|
|
35
|
+
selectTime: 'Selecteer Uur',
|
|
36
|
+
selectDate: 'Selecteer Datum',
|
|
37
|
+
datePlaceholder: 'Selecteer Datum',
|
|
38
|
+
datetimePlaceholder: 'Selecteer Dag en Uur',
|
|
39
|
+
monthPlaceholder: 'Selecteer Maand',
|
|
40
|
+
yearPlaceholder: 'Selecteer Jaar',
|
|
41
|
+
quarterPlaceholder: 'Selecteer Kwartaal',
|
|
42
|
+
startDatePlaceholder: 'Begindatum',
|
|
43
|
+
endDatePlaceholder: 'Einddatum',
|
|
44
|
+
startDatetimePlaceholder: 'Begindatum en Uur',
|
|
45
|
+
endDatetimePlaceholder: 'Einddatum en Uur',
|
|
46
|
+
startMonthPlaceholder: 'Begin Maand',
|
|
47
|
+
endMonthPlaceholder: 'Eind Maand',
|
|
48
|
+
monthBeforeYear: true,
|
|
49
|
+
firstDayOfWeek: 0,
|
|
50
|
+
today: 'Vandaag'
|
|
51
|
+
},
|
|
52
|
+
DataTable: {
|
|
53
|
+
checkTableAll: 'Selecteer alles in de tabel',
|
|
54
|
+
uncheckTableAll: 'Alles in de tabel deselecteren',
|
|
55
|
+
confirm: 'Bevestig',
|
|
56
|
+
clear: 'Wis'
|
|
57
|
+
},
|
|
58
|
+
Transfer: {
|
|
59
|
+
sourceTitle: 'Bron',
|
|
60
|
+
targetTitle: 'Doel'
|
|
61
|
+
},
|
|
62
|
+
Empty: {
|
|
63
|
+
description: 'Geen Data'
|
|
64
|
+
},
|
|
65
|
+
Select: {
|
|
66
|
+
placeholder: 'Selecteer a.u.b.'
|
|
67
|
+
},
|
|
68
|
+
TimePicker: {
|
|
69
|
+
placeholder: 'Selecteer Uur',
|
|
70
|
+
positiveText: 'OK',
|
|
71
|
+
negativeText: 'Annuleer',
|
|
72
|
+
now: 'Nu'
|
|
73
|
+
},
|
|
74
|
+
Pagination: {
|
|
75
|
+
goto: 'Ga naar',
|
|
76
|
+
selectionSuffix: 'pagina'
|
|
77
|
+
},
|
|
78
|
+
DynamicTags: {
|
|
79
|
+
add: 'Toevoegen'
|
|
80
|
+
},
|
|
81
|
+
Log: {
|
|
82
|
+
loading: 'Laden'
|
|
83
|
+
},
|
|
84
|
+
Input: {
|
|
85
|
+
placeholder: 'Invoeren a.u.b.'
|
|
86
|
+
},
|
|
87
|
+
InputNumber: {
|
|
88
|
+
placeholder: 'Invoeren a.u.b.'
|
|
89
|
+
},
|
|
90
|
+
DynamicInput: {
|
|
91
|
+
create: 'Creëer'
|
|
92
|
+
},
|
|
93
|
+
ThemeEditor: {
|
|
94
|
+
title: 'Thema Bewerker',
|
|
95
|
+
clearAllVars: 'Wis Alle Variabelen',
|
|
96
|
+
clearSearch: 'Wis Zoekopdracht',
|
|
97
|
+
filterCompName: 'Filter Componentsnaam',
|
|
98
|
+
filterVarName: 'Filter Variablenaam',
|
|
99
|
+
import: 'Importen',
|
|
100
|
+
export: 'Exporteren',
|
|
101
|
+
restore: 'Reset naar Standaard'
|
|
102
|
+
},
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Vorige afbeelding (←)',
|
|
105
|
+
tipNext: 'Volgende afbeelding (→)',
|
|
106
|
+
tipCounterclockwise: 'Tegen de klok in',
|
|
107
|
+
tipClockwise: 'Met de klok mee',
|
|
108
|
+
tipZoomOut: 'Uitzoomen',
|
|
109
|
+
tipZoomIn: 'Inzoomen',
|
|
110
|
+
tipClose: 'Sluiten (Esc)'
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
exports.default = nlNL;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const nl_1 = __importDefault(require("date-fns/locale/nl"));
|
|
7
|
+
const dateNlNL = {
|
|
8
|
+
name: 'nl-NL',
|
|
9
|
+
locale: nl_1.default
|
|
10
|
+
};
|
|
11
|
+
exports.default = dateNlNL;
|
package/lib/locales/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { default as koKR } from './common/koKR';
|
|
|
8
8
|
export { default as idID } from './common/idID';
|
|
9
9
|
export { default as deDE } from './common/deDE';
|
|
10
10
|
export { default as nbNO } from './common/nbNO';
|
|
11
|
+
export { default as nlNL } from './common/nlNL';
|
|
11
12
|
export { default as frFR } from './common/frFR';
|
|
12
13
|
export { default as esAR } from './common/esAR';
|
|
13
14
|
export { default as itIT } from './common/itIT';
|
|
@@ -27,6 +28,7 @@ export { default as dateKoKR } from './date/koKR';
|
|
|
27
28
|
export { default as dateIdID } from './date/idID';
|
|
28
29
|
export { default as dateDeDE } from './date/deDE';
|
|
29
30
|
export { default as dateNbNO } from './date/nbNO';
|
|
31
|
+
export { default as dateNlNL } from './date/nlNL';
|
|
30
32
|
export { default as dateFrFR } from './date/frFR';
|
|
31
33
|
export { default as dateEsAR } from './date/esAR';
|
|
32
34
|
export { default as dateItIT } from './date/itIT';
|
package/lib/locales/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createLocale = exports.dateEo = exports.dateThTH = exports.datePtBR = exports.datePlPL = exports.dateEnGB = exports.dateSkSK = exports.dateItIT = exports.dateEsAR = exports.dateFrFR = exports.dateNbNO = exports.dateDeDE = exports.dateIdID = exports.dateKoKR = exports.dateJaJP = exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhTW = exports.dateZhCN = exports.eo = exports.thTH = exports.ptBR = exports.plPL = exports.enGB = exports.skSK = exports.itIT = exports.esAR = exports.frFR = exports.nbNO = exports.deDE = exports.idID = exports.koKR = exports.jaJP = exports.ukUA = exports.ruRU = exports.enUS = exports.zhTW = exports.zhCN = void 0;
|
|
6
|
+
exports.createLocale = exports.dateEo = exports.dateThTH = exports.datePtBR = exports.datePlPL = exports.dateEnGB = exports.dateSkSK = exports.dateItIT = exports.dateEsAR = exports.dateFrFR = exports.dateNlNL = exports.dateNbNO = exports.dateDeDE = exports.dateIdID = exports.dateKoKR = exports.dateJaJP = exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhTW = exports.dateZhCN = exports.eo = exports.thTH = exports.ptBR = exports.plPL = exports.enGB = exports.skSK = exports.itIT = exports.esAR = exports.frFR = exports.nlNL = exports.nbNO = exports.deDE = exports.idID = exports.koKR = exports.jaJP = exports.ukUA = exports.ruRU = exports.enUS = exports.zhTW = exports.zhCN = void 0;
|
|
7
7
|
var zhCN_1 = require("./common/zhCN");
|
|
8
8
|
Object.defineProperty(exports, "zhCN", { enumerable: true, get: function () { return __importDefault(zhCN_1).default; } });
|
|
9
9
|
var zhTW_1 = require("./common/zhTW");
|
|
@@ -24,6 +24,8 @@ var deDE_1 = require("./common/deDE");
|
|
|
24
24
|
Object.defineProperty(exports, "deDE", { enumerable: true, get: function () { return __importDefault(deDE_1).default; } });
|
|
25
25
|
var nbNO_1 = require("./common/nbNO");
|
|
26
26
|
Object.defineProperty(exports, "nbNO", { enumerable: true, get: function () { return __importDefault(nbNO_1).default; } });
|
|
27
|
+
var nlNL_1 = require("./common/nlNL");
|
|
28
|
+
Object.defineProperty(exports, "nlNL", { enumerable: true, get: function () { return __importDefault(nlNL_1).default; } });
|
|
27
29
|
var frFR_1 = require("./common/frFR");
|
|
28
30
|
Object.defineProperty(exports, "frFR", { enumerable: true, get: function () { return __importDefault(frFR_1).default; } });
|
|
29
31
|
var esAR_1 = require("./common/esAR");
|
|
@@ -62,6 +64,8 @@ var deDE_2 = require("./date/deDE");
|
|
|
62
64
|
Object.defineProperty(exports, "dateDeDE", { enumerable: true, get: function () { return __importDefault(deDE_2).default; } });
|
|
63
65
|
var nbNO_2 = require("./date/nbNO");
|
|
64
66
|
Object.defineProperty(exports, "dateNbNO", { enumerable: true, get: function () { return __importDefault(nbNO_2).default; } });
|
|
67
|
+
var nlNL_2 = require("./date/nlNL");
|
|
68
|
+
Object.defineProperty(exports, "dateNlNL", { enumerable: true, get: function () { return __importDefault(nlNL_2).default; } });
|
|
65
69
|
var frFR_2 = require("./date/frFR");
|
|
66
70
|
Object.defineProperty(exports, "dateFrFR", { enumerable: true, get: function () { return __importDefault(frFR_2).default; } });
|
|
67
71
|
var esAR_2 = require("./date/esAR");
|
package/lib/log/src/Log.d.ts
CHANGED
|
@@ -345,12 +345,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
345
345
|
borderRadius: string;
|
|
346
346
|
borderRadiusSmall: string;
|
|
347
347
|
fontSize: string;
|
|
348
|
+
fontSizeMini: string;
|
|
348
349
|
fontSizeTiny: string;
|
|
349
350
|
fontSizeSmall: string;
|
|
350
351
|
fontSizeMedium: string;
|
|
351
352
|
fontSizeLarge: string;
|
|
352
353
|
fontSizeHuge: string;
|
|
353
354
|
lineHeight: string;
|
|
355
|
+
heightMini: string;
|
|
354
356
|
heightTiny: string;
|
|
355
357
|
heightSmall: string;
|
|
356
358
|
heightMedium: string;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_scale_up_cssr_1 =
|
|
9
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
|
|
16
10
|
// --n-bezier
|
|
17
11
|
// --n-loading-color
|
|
18
12
|
// --n-loader-border
|
|
@@ -48,7 +42,7 @@ exports.default = (0, cssr_1.cB)('log', `
|
|
|
48
42
|
color: var(--n-loader-text-color);
|
|
49
43
|
background-color: var(--n-loader-color);
|
|
50
44
|
font-size: var(--n-loader-font-size);
|
|
51
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
45
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)(), (0, cssr_1.cE)('content', `
|
|
52
46
|
display: inline-block;
|
|
53
47
|
vertical-align: bottom;
|
|
54
48
|
line-height: 34px;
|
|
@@ -911,12 +911,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
911
911
|
borderRadius: string;
|
|
912
912
|
borderRadiusSmall: string;
|
|
913
913
|
fontSize: string;
|
|
914
|
+
fontSizeMini: string;
|
|
914
915
|
fontSizeTiny: string;
|
|
915
916
|
fontSizeSmall: string;
|
|
916
917
|
fontSizeMedium: string;
|
|
917
918
|
fontSizeLarge: string;
|
|
918
919
|
fontSizeHuge: string;
|
|
919
920
|
lineHeight: string;
|
|
921
|
+
heightMini: string;
|
|
920
922
|
heightTiny: string;
|
|
921
923
|
heightSmall: string;
|
|
922
924
|
heightMedium: string;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
|
-
const fade_in_scale_up_cssr_1 =
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
14
8
|
|
|
15
9
|
const cssr_1 = require("../../../_utils/cssr"); // --n-menu-box-shadow
|
|
16
10
|
|
|
17
11
|
|
|
18
12
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('mention', 'width: 100%; z-index: auto; position: relative;'), (0, cssr_1.cB)('mention-menu', `
|
|
19
13
|
box-shadow: var(--n-menu-box-shadow);
|
|
20
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
14
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)()])]);
|
package/lib/menu/src/Menu.d.ts
CHANGED
|
@@ -1244,12 +1244,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1244
1244
|
borderRadius: string;
|
|
1245
1245
|
borderRadiusSmall: string;
|
|
1246
1246
|
fontSize: string;
|
|
1247
|
+
fontSizeMini: string;
|
|
1247
1248
|
fontSizeTiny: string;
|
|
1248
1249
|
fontSizeSmall: string;
|
|
1249
1250
|
fontSizeMedium: string;
|
|
1250
1251
|
fontSizeLarge: string;
|
|
1251
1252
|
fontSizeHuge: string;
|
|
1252
1253
|
lineHeight: string;
|
|
1254
|
+
heightMini: string;
|
|
1253
1255
|
heightTiny: string;
|
|
1254
1256
|
heightSmall: string;
|
|
1255
1257
|
heightMedium: string;
|
|
@@ -138,12 +138,14 @@ export declare const NMenuOption: import("vue").DefineComponent<{
|
|
|
138
138
|
borderRadius: string;
|
|
139
139
|
borderRadiusSmall: string;
|
|
140
140
|
fontSize: string;
|
|
141
|
+
fontSizeMini: string;
|
|
141
142
|
fontSizeTiny: string;
|
|
142
143
|
fontSizeSmall: string;
|
|
143
144
|
fontSizeMedium: string;
|
|
144
145
|
fontSizeLarge: string;
|
|
145
146
|
fontSizeHuge: string;
|
|
146
147
|
lineHeight: string;
|
|
148
|
+
heightMini: string;
|
|
147
149
|
heightTiny: string;
|
|
148
150
|
heightSmall: string;
|
|
149
151
|
heightMedium: string;
|
|
@@ -79,7 +79,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
79
79
|
},
|
|
80
80
|
attrs === null || attrs === void 0 ? void 0 : attrs.class
|
|
81
81
|
], style: [this.style, (attrs === null || attrs === void 0 ? void 0 : attrs.style) || ''] }),
|
|
82
|
-
icon && ((0, vue_1.h)("div", { class: `${clsPrefix}-menu-item-content__icon`, style: this.iconStyle, role: "none" }, icon)),
|
|
82
|
+
icon && ((0, vue_1.h)("div", { class: `${clsPrefix}-menu-item-content__icon`, style: this.iconStyle, role: "none" }, [icon])),
|
|
83
83
|
(0, vue_1.h)("div", { class: `${clsPrefix}-menu-item-content-header`, role: "none" },
|
|
84
84
|
renderLabel ? renderLabel(tmNode.rawNode) : (0, _utils_1.render)(this.title),
|
|
85
85
|
this.extra || renderExtra ? ((0, vue_1.h)("span", { class: `${clsPrefix}-menu-item-content-header__extra` },
|
|
@@ -155,12 +155,14 @@ export declare const NSubmenu: import("vue").DefineComponent<{
|
|
|
155
155
|
borderRadius: string;
|
|
156
156
|
borderRadiusSmall: string;
|
|
157
157
|
fontSize: string;
|
|
158
|
+
fontSizeMini: string;
|
|
158
159
|
fontSizeTiny: string;
|
|
159
160
|
fontSizeSmall: string;
|
|
160
161
|
fontSizeMedium: string;
|
|
161
162
|
fontSizeLarge: string;
|
|
162
163
|
fontSizeHuge: string;
|
|
163
164
|
lineHeight: string;
|
|
165
|
+
heightMini: string;
|
|
164
166
|
heightTiny: string;
|
|
165
167
|
heightSmall: string;
|
|
166
168
|
heightMedium: string;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
|
-
const
|
|
7
|
+
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr");
|
|
14
8
|
|
|
15
|
-
const
|
|
9
|
+
const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
16
10
|
// --n-color
|
|
17
11
|
// --n-group-text-color
|
|
18
12
|
// --n-bezier
|
|
@@ -203,7 +197,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('menu', `
|
|
|
203
197
|
`), (0, cssr_1.cB)('submenu-children', `
|
|
204
198
|
overflow: hidden;
|
|
205
199
|
padding: 0;
|
|
206
|
-
`, [(0, fade_in_height_expand_cssr_1.
|
|
200
|
+
`, [(0, fade_in_height_expand_cssr_1.fadeInHeightExpandTransition)({
|
|
207
201
|
duration: '.2s'
|
|
208
202
|
})])]), (0, cssr_1.cB)('menu-item-group', [(0, cssr_1.cB)('menu-item-group-title', `
|
|
209
203
|
margin-top: 6px;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const icon_switch_cssr_1 =
|
|
9
|
+
const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr");
|
|
16
10
|
|
|
17
|
-
const fade_in_height_expand_cssr_1 =
|
|
11
|
+
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr"); // vars:
|
|
18
12
|
// --n-margin
|
|
19
13
|
// --n-bezier
|
|
20
14
|
// --n-padding
|
|
@@ -44,7 +38,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('message-wrapper', `
|
|
|
44
38
|
z-index: 0;
|
|
45
39
|
transform-origin: top center;
|
|
46
40
|
display: flex;
|
|
47
|
-
`, [(0, fade_in_height_expand_cssr_1.
|
|
41
|
+
`, [(0, fade_in_height_expand_cssr_1.fadeInHeightExpandTransition)({
|
|
48
42
|
overflow: 'visible',
|
|
49
43
|
originalTransition: 'transform .3s var(--n-bezier)',
|
|
50
44
|
enterToProps: {
|
|
@@ -92,7 +86,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('message-wrapper', `
|
|
|
92
86
|
top: 0;
|
|
93
87
|
right: 0;
|
|
94
88
|
bottom: 0;
|
|
95
|
-
`, [(0, icon_switch_cssr_1.
|
|
89
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()])]), (0, cssr_1.cE)('close', `
|
|
96
90
|
font-size: var(--n-close-size);
|
|
97
91
|
margin: var(--n-close-margin);
|
|
98
92
|
transition: color .3s var(--n-bezier);
|
|
@@ -173,12 +173,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
173
|
borderRadius: string;
|
|
174
174
|
borderRadiusSmall: string;
|
|
175
175
|
fontSize: string;
|
|
176
|
+
fontSizeMini: string;
|
|
176
177
|
fontSizeTiny: string;
|
|
177
178
|
fontSizeSmall: string;
|
|
178
179
|
fontSizeMedium: string;
|
|
179
180
|
fontSizeLarge: string;
|
|
180
181
|
fontSizeHuge: string;
|
|
181
182
|
lineHeight: string;
|
|
183
|
+
heightMini: string;
|
|
182
184
|
heightTiny: string;
|
|
183
185
|
heightSmall: string;
|
|
184
186
|
heightMedium: string;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
3
|
Object.defineProperty(exports, "__esModule", {
|
|
10
4
|
value: true
|
|
11
5
|
});
|
|
12
6
|
|
|
13
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
14
8
|
|
|
15
|
-
const fade_in_cssr_1 =
|
|
9
|
+
const fade_in_cssr_1 = require("../../../_styles/transitions/fade-in.cssr");
|
|
16
10
|
|
|
17
|
-
const fade_in_scale_up_cssr_1 =
|
|
11
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr"); // vars:
|
|
18
12
|
// --n-bezier-ease-out
|
|
19
13
|
// --n-box-shadow
|
|
20
14
|
// --n-color
|
|
@@ -35,7 +29,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
|
|
|
35
29
|
top: 0;
|
|
36
30
|
bottom: 0;
|
|
37
31
|
background-color: rgba(0, 0, 0, .4);
|
|
38
|
-
`, [(0, fade_in_cssr_1.
|
|
32
|
+
`, [(0, fade_in_cssr_1.fadeInTransition)({
|
|
39
33
|
enterDuration: '.25s',
|
|
40
34
|
leaveDuration: '.25s',
|
|
41
35
|
enterCubicBezier: 'var(--n-bezier-ease-out)',
|
|
@@ -56,7 +50,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
|
|
|
56
50
|
color: var(--n-text-color);
|
|
57
51
|
margin: auto;
|
|
58
52
|
box-shadow: var(--n-box-shadow);
|
|
59
|
-
`, [(0, fade_in_scale_up_cssr_1.
|
|
53
|
+
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
60
54
|
duration: '.25s',
|
|
61
55
|
enterScale: '.5'
|
|
62
56
|
})])]);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as NNotificationProvider } from './src/NotificationProvider';
|
|
2
|
-
export type { NotificationProviderProps, NotificationProviderInst, NotificationApiInjection as NotificationApi,
|
|
2
|
+
export type { NotificationProviderProps, NotificationProviderInst, NotificationApiInjection as NotificationApi, NotificationReactive, NotificationPlacement, NotificationType } from './src/NotificationProvider';
|
|
3
|
+
export type { NotificationOptions } from './src/NotificationEnvironment';
|
|
3
4
|
export { useNotification } from './src/use-notification';
|
|
@@ -95,22 +95,23 @@ exports.Notification = (0, vue_1.defineComponent)({
|
|
|
95
95
|
var _a;
|
|
96
96
|
const { mergedClsPrefix } = this;
|
|
97
97
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
98
|
-
return ((0, vue_1.h)("div", { class: [
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
this.meta ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification-main-
|
|
114
|
-
|
|
98
|
+
return ((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-notification-wrapper`, this.themeClass], style: this.cssVars },
|
|
99
|
+
(0, vue_1.h)("div", { class: [
|
|
100
|
+
`${mergedClsPrefix}-notification`,
|
|
101
|
+
this.themeClass,
|
|
102
|
+
{
|
|
103
|
+
[`${mergedClsPrefix}-notification--closable`]: this.closable,
|
|
104
|
+
[`${mergedClsPrefix}-notification--show-avatar`]: this.showAvatar
|
|
105
|
+
}
|
|
106
|
+
], style: this.cssVars },
|
|
107
|
+
this.showAvatar ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification__avatar` }, this.avatar ? ((0, _utils_1.render)(this.avatar)) : this.type !== 'default' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => iconRenderMap[this.type]() })) : null)) : null,
|
|
108
|
+
this.closable ? ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-notification__close`, onClick: this.handleCloseClick })) : null,
|
|
109
|
+
(0, vue_1.h)("div", { ref: "bodyRef", class: `${mergedClsPrefix}-notification-main` },
|
|
110
|
+
this.title ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification-main__header` }, (0, _utils_1.render)(this.title))) : null,
|
|
111
|
+
this.description ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification-main__description` }, (0, _utils_1.render)(this.description))) : null,
|
|
112
|
+
this.content ? ((0, vue_1.h)("pre", { class: `${mergedClsPrefix}-notification-main__content` }, (0, _utils_1.render)(this.content))) : null,
|
|
113
|
+
this.meta || this.action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification-main-footer` },
|
|
114
|
+
this.meta ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification-main-footer__meta` }, (0, _utils_1.render)(this.meta))) : null,
|
|
115
|
+
this.action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-notification-main-footer__action` }, (0, _utils_1.render)(this.action))) : null)) : null))));
|
|
115
116
|
}
|
|
116
117
|
});
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import type { NotificationPlacement } from './NotificationProvider';
|
|
2
3
|
export declare const NotificationContainer: import("vue").DefineComponent<{
|
|
3
4
|
scrollable: {
|
|
4
5
|
type: BooleanConstructor;
|
|
5
6
|
required: true;
|
|
6
7
|
};
|
|
7
8
|
placement: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<NotificationPlacement>;
|
|
9
10
|
required: true;
|
|
10
11
|
};
|
|
11
12
|
}, {
|
|
13
|
+
selfRef: import("vue").Ref<HTMLElement | null>;
|
|
12
14
|
mergedTheme: import("vue").Ref<{
|
|
13
15
|
common: {
|
|
14
16
|
baseColor: string;
|
|
@@ -99,12 +101,14 @@ export declare const NotificationContainer: import("vue").DefineComponent<{
|
|
|
99
101
|
borderRadius: string;
|
|
100
102
|
borderRadiusSmall: string;
|
|
101
103
|
fontSize: string;
|
|
104
|
+
fontSizeMini: string;
|
|
102
105
|
fontSizeTiny: string;
|
|
103
106
|
fontSizeSmall: string;
|
|
104
107
|
fontSizeMedium: string;
|
|
105
108
|
fontSizeLarge: string;
|
|
106
109
|
fontSizeHuge: string;
|
|
107
110
|
lineHeight: string;
|
|
111
|
+
heightMini: string;
|
|
108
112
|
heightTiny: string;
|
|
109
113
|
heightSmall: string;
|
|
110
114
|
heightMedium: string;
|
|
@@ -151,13 +155,14 @@ export declare const NotificationContainer: import("vue").DefineComponent<{
|
|
|
151
155
|
};
|
|
152
156
|
}>;
|
|
153
157
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
158
|
+
transitioning: import("vue").Ref<number>;
|
|
154
159
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
155
160
|
scrollable: {
|
|
156
161
|
type: BooleanConstructor;
|
|
157
162
|
required: true;
|
|
158
163
|
};
|
|
159
164
|
placement: {
|
|
160
|
-
type: PropType<
|
|
165
|
+
type: PropType<NotificationPlacement>;
|
|
161
166
|
required: true;
|
|
162
167
|
};
|
|
163
168
|
}>>, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotificationContainer = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
4
5
|
const vue_1 = require("vue");
|
|
5
6
|
const _internal_1 = require("../../_internal");
|
|
6
7
|
const context_1 = require("./context");
|
|
@@ -17,16 +18,27 @@ exports.NotificationContainer = (0, vue_1.defineComponent)({
|
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
setup() {
|
|
20
|
-
|
|
21
|
-
const
|
|
21
|
+
const { mergedThemeRef, mergedClsPrefixRef, wipTransitionCountRef } = (0, vue_1.inject)(context_1.notificationProviderInjectionKey);
|
|
22
|
+
const selfRef = (0, vue_1.ref)(null);
|
|
23
|
+
(0, vue_1.watchEffect)(() => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
if (wipTransitionCountRef.value > 0) {
|
|
26
|
+
(_a = selfRef === null || selfRef === void 0 ? void 0 : selfRef.value) === null || _a === void 0 ? void 0 : _a.classList.add('transitioning');
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
(_b = selfRef === null || selfRef === void 0 ? void 0 : selfRef.value) === null || _b === void 0 ? void 0 : _b.classList.remove('transitioning');
|
|
30
|
+
}
|
|
31
|
+
});
|
|
22
32
|
return {
|
|
33
|
+
selfRef,
|
|
23
34
|
mergedTheme: mergedThemeRef,
|
|
24
|
-
mergedClsPrefix: mergedClsPrefixRef
|
|
35
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
36
|
+
transitioning: wipTransitionCountRef
|
|
25
37
|
};
|
|
26
38
|
},
|
|
27
39
|
render() {
|
|
28
40
|
const { $slots, scrollable, mergedClsPrefix, mergedTheme, placement } = this;
|
|
29
|
-
return ((0, vue_1.h)("div", { class: [
|
|
41
|
+
return ((0, vue_1.h)("div", { ref: "selfRef", class: [
|
|
30
42
|
`${mergedClsPrefix}-notification-container`,
|
|
31
43
|
scrollable && `${mergedClsPrefix}-notification-container--scrollable`,
|
|
32
44
|
`${mergedClsPrefix}-notification-container--${placement}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare const notificationEnvOptions: {
|
|
3
3
|
readonly duration: NumberConstructor;
|
|
4
4
|
readonly onClose: PropType<() => Promise<boolean> | boolean | any>;
|
|
@@ -26,6 +26,7 @@ export declare const notificationEnvOptions: {
|
|
|
26
26
|
readonly meta: PropType<string | (() => import("vue").VNodeChild)>;
|
|
27
27
|
readonly action: PropType<string | (() => import("vue").VNodeChild)>;
|
|
28
28
|
};
|
|
29
|
+
export declare type NotificationOptions = Partial<ExtractPropTypes<typeof notificationEnvOptions>>;
|
|
29
30
|
export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
30
31
|
internalKey: {
|
|
31
32
|
type: StringConstructor;
|
|
@@ -66,7 +67,7 @@ export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
|
66
67
|
handleBeforeLeave: (el: HTMLElement) => void;
|
|
67
68
|
handleAfterEnter: (el: HTMLElement) => void;
|
|
68
69
|
handleBeforeEnter: (el: HTMLElement) => void;
|
|
69
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
|
70
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
70
71
|
internalKey: {
|
|
71
72
|
type: StringConstructor;
|
|
72
73
|
required: true;
|