naive-ui 2.33.4 → 2.34.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/dist/index.js +3517 -6061
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/styles/index.cssr.js +2 -2
- package/es/_internal/close/src/styles/index.cssr.js +2 -2
- package/es/_internal/index.d.ts +1 -0
- package/es/_internal/loading/index.d.ts +1 -0
- package/es/_internal/loading/src/Loading.d.ts +26 -14
- package/es/_internal/loading/src/Loading.js +17 -20
- package/es/_internal/scrollbar/src/styles/index.cssr.js +2 -2
- package/es/_internal/select-menu/src/styles/index.cssr.js +2 -2
- package/es/_internal/selection/src/Selection.js +5 -5
- package/es/_internal/selection/src/styles/index.cssr.js +2 -2
- package/es/_internal/slot-machine/src/styles/index.cssr.js +4 -3
- package/es/_styles/global/index.cssr.js +2 -2
- package/es/alert/src/styles/index.cssr.js +2 -2
- package/es/anchor/src/styles/index.cssr.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +2 -2
- package/es/avatar/src/Avatar.d.ts +4 -1
- package/es/avatar/src/Avatar.js +12 -13
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/avatar-group/index.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +7 -7
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +2 -2
- package/es/avatar-group/src/styles/avatar-group.cssr.js +2 -2
- package/es/back-top/src/styles/index.cssr.js +2 -2
- package/es/badge/src/styles/index.cssr.js +2 -2
- package/es/breadcrumb/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +4 -1
- package/es/button/src/Button.js +3 -3
- package/es/button/src/styles/index.cssr.js +2 -2
- package/es/button-group/src/styles/index.cssr.js +0 -3
- package/es/button-group/src/styles/rtl.cssr.js +0 -2
- package/es/calendar/src/styles/index.cssr.js +2 -2
- package/es/card/src/styles/index.cssr.js +4 -3
- package/es/carousel/src/styles/index.cssr.js +2 -2
- package/es/cascader/src/Cascader.d.ts +8 -0
- package/es/cascader/src/Cascader.js +41 -2
- package/es/cascader/src/CascaderOption.d.ts +1 -1
- package/es/cascader/src/CascaderOption.js +1 -7
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/es/cascader/src/CascaderSelectMenu.js +8 -4
- package/es/cascader/src/interface.d.ts +11 -1
- package/es/cascader/src/styles/index.cssr.js +2 -2
- package/es/checkbox/src/styles/index.cssr.js +8 -5
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/src/styles/index.cssr.js +2 -2
- package/es/collapse/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +5 -5
- package/es/color-picker/src/ColorPicker.js +7 -1
- package/es/color-picker/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/utils.d.ts +1 -1
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +6 -0
- package/es/config-provider/src/ConfigProvider.js +7 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +11 -0
- package/es/data-table/src/DataTable.js +7 -3
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +14 -6
- package/es/data-table/src/TableParts/Header.js +7 -5
- package/es/data-table/src/interface.d.ts +10 -2
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +21 -9
- package/es/date-picker/src/DatePicker.js +5 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +6 -6
- package/es/date-picker/src/styles/index.cssr.js +2 -2
- package/es/descriptions/src/styles/index.cssr.js +2 -2
- package/es/dialog/src/DialogEnvironment.d.ts +3 -0
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +3 -0
- package/es/dialog/src/styles/index.cssr.js +2 -2
- package/es/divider/src/styles/index.cssr.js +2 -2
- package/es/drawer/src/styles/index.cssr.js +2 -2
- package/es/dropdown/src/styles/index.cssr.js +2 -2
- package/es/dynamic-input/src/styles/index.cssr.js +2 -2
- package/es/dynamic-tags/src/styles/index.cssr.js +2 -2
- package/es/empty/src/styles/index.cssr.js +2 -2
- package/es/equation/index.d.ts +1 -0
- package/es/equation/index.js +1 -0
- package/es/equation/src/Equation.d.ts +18 -0
- package/es/equation/src/Equation.js +29 -0
- package/es/equation/styles/dark.d.ts +3 -0
- package/es/equation/styles/dark.js +8 -0
- package/es/equation/styles/index.d.ts +3 -0
- package/es/equation/styles/index.js +2 -0
- package/es/equation/styles/light.d.ts +6 -0
- package/es/equation/styles/light.js +8 -0
- package/es/form/src/FormItem.d.ts +3 -2
- package/es/form/src/FormItem.js +24 -7
- package/es/form/src/styles/form-item.cssr.js +5 -3
- package/es/gradient-text/src/styles/index.cssr.js +2 -2
- package/es/icon/src/styles/index.cssr.js +2 -2
- package/es/icon-wrapper/src/styles/index.cssr.js +2 -2
- package/es/image/src/Image.d.ts +4 -1
- package/es/image/src/Image.js +13 -7
- package/es/image/src/ImagePreview.d.ts +3 -2
- package/es/image/src/ImagePreview.js +41 -8
- package/es/image/src/interface.d.ts +5 -0
- package/es/image/src/interface.js +2 -0
- package/es/image/src/styles/index.cssr.js +2 -2
- package/es/input/src/Input.d.ts +3 -0
- package/es/input/src/Input.js +25 -6
- package/es/input/src/WordCount.js +2 -2
- package/es/input/src/interface.d.ts +1 -0
- package/es/input/src/styles/input-group-label.cssr.js +2 -2
- package/es/input/src/styles/input.cssr.js +11 -7
- package/es/layout/src/styles/layout-footer.cssr.js +2 -2
- package/es/layout/src/styles/layout-header.cssr.js +2 -2
- package/es/layout/src/styles/layout-sider.cssr.js +2 -2
- package/es/layout/src/styles/layout.cssr.js +2 -2
- package/es/list/src/styles/index.cssr.js +2 -2
- package/es/loading-bar/src/styles/index.cssr.js +2 -2
- package/es/locales/common/arDZ.d.ts +3 -0
- package/es/locales/common/arDZ.js +120 -0
- package/es/locales/common/deDE.js +2 -1
- package/es/locales/common/enGB.js +2 -1
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +2 -1
- package/es/locales/common/eo.js +2 -1
- package/es/locales/common/esAR.js +2 -1
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +2 -1
- package/es/locales/common/itIT.js +2 -1
- package/es/locales/common/jaJP.js +2 -1
- package/es/locales/common/koKR.js +2 -1
- package/es/locales/common/nbNO.js +2 -1
- package/es/locales/common/nlNL.js +2 -1
- package/es/locales/common/plPL.js +2 -1
- package/es/locales/common/ptBR.js +2 -1
- package/es/locales/common/ruRU.js +2 -1
- package/es/locales/common/skSK.js +2 -1
- package/es/locales/common/thTH.js +2 -1
- package/es/locales/common/trTR.d.ts +3 -0
- package/es/locales/common/trTR.js +121 -0
- package/es/locales/common/ukUA.js +2 -1
- package/es/locales/common/viVN.js +2 -1
- package/es/locales/common/zhCN.js +2 -1
- package/es/locales/common/zhTW.js +2 -1
- package/es/locales/date/arDZ.d.ts +3 -0
- package/es/locales/date/arDZ.js +6 -0
- package/es/locales/date/trTR.d.ts +3 -0
- package/es/locales/date/trTR.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/log/src/styles/index.cssr.js +2 -2
- package/es/mention/src/Mention.d.ts +6 -0
- package/es/mention/src/Mention.js +6 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/styles/index.cssr.js +2 -3
- package/es/message/src/styles/index.cssr.js +2 -2
- package/es/modal/src/BodyWrapper.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.js +2 -2
- package/es/notification/src/styles/index.cssr.js +2 -3
- package/es/page-header/src/styles/index.cssr.js +2 -2
- package/es/pagination/src/Pagination.js +1 -1
- package/es/pagination/src/styles/index.cssr.js +2 -2
- package/es/popconfirm/src/styles/index.cssr.js +2 -2
- package/es/popover/src/styles/index.cssr.js +5 -5
- package/es/popselect/src/styles/index.cssr.js +2 -2
- package/es/progress/src/styles/index.cssr.js +2 -2
- package/es/radio/src/styles/radio-group.cssr.js +2 -2
- package/es/radio/src/styles/radio.cssr.js +2 -2
- package/es/rate/src/styles/index.cssr.js +2 -2
- package/es/result/src/styles/index.cssr.js +2 -2
- package/es/select/src/Select.js +1 -0
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/styles/index.cssr.js +2 -2
- package/es/slider/src/styles/index.cssr.js +2 -2
- package/es/spin/src/styles/index.cssr.js +2 -2
- package/es/statistic/src/styles/index.cssr.js +2 -2
- package/es/steps/src/styles/index.cssr.js +2 -2
- package/es/switch/src/styles/index.cssr.js +2 -2
- package/es/table/src/styles/index.cssr.js +2 -2
- package/es/tabs/src/Tabs.d.ts +7 -7
- package/es/tabs/src/styles/index.cssr.js +2 -2
- package/es/tag/src/styles/index.cssr.js +2 -2
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/thing/src/styles/index.cssr.js +2 -2
- package/es/time-picker/src/styles/index.cssr.js +2 -2
- package/es/timeline/src/styles/index.cssr.js +6 -3
- package/es/transfer/src/Transfer.d.ts +13 -0
- package/es/transfer/src/Transfer.js +6 -2
- package/es/transfer/src/TransferListItem.d.ts +2 -1
- package/es/transfer/src/TransferListItem.js +5 -4
- package/es/transfer/src/interface.d.ts +1 -0
- package/es/transfer/src/styles/index.cssr.js +2 -2
- package/es/transfer/src/use-transfer-data.d.ts +1 -0
- package/es/transfer/src/use-transfer-data.js +13 -4
- package/es/tree/src/Tree.d.ts +60 -30
- package/es/tree/src/Tree.js +70 -24
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +3 -0
- package/es/tree/src/TreeNodeSwitcher.js +7 -5
- package/es/tree/src/interface.d.ts +12 -1
- package/es/tree/src/styles/index.cssr.js +3 -2
- package/es/tree/src/utils.d.ts +6 -0
- package/es/tree/src/utils.js +4 -0
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +38 -19
- package/es/tree-select/src/TreeSelect.js +75 -48
- package/es/tree-select/src/interface.d.ts +33 -2
- package/es/tree-select/src/styles/index.cssr.js +2 -2
- package/es/typography/src/styles/a.cssr.js +2 -2
- package/es/typography/src/styles/blockquote.cssr.js +2 -2
- package/es/typography/src/styles/header.cssr.js +2 -2
- package/es/typography/src/styles/hr.cssr.js +2 -2
- package/es/typography/src/styles/list.cssr.js +2 -2
- package/es/typography/src/styles/p.cssr.js +2 -2
- package/es/typography/src/styles/text.cssr.js +2 -2
- package/es/upload/index.d.ts +1 -1
- package/es/upload/src/Upload.d.ts +77 -1
- package/es/upload/src/Upload.js +28 -11
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadFile.js +9 -10
- package/es/upload/src/interface.d.ts +7 -3
- package/es/upload/src/utils.d.ts +2 -2
- package/es/upload/src/utils.js +2 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +2 -5
- package/lib/_internal/close/src/styles/index.cssr.js +2 -4
- package/lib/_internal/icon/src/styles/index.cssr.js +0 -2
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/loading/index.d.ts +1 -0
- package/lib/_internal/loading/src/Loading.d.ts +26 -14
- package/lib/_internal/loading/src/Loading.js +17 -20
- package/lib/_internal/loading/src/styles/index.cssr.js +0 -3
- package/lib/_internal/menu-mask/src/styles/index.cssr.js +0 -3
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -5
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.js +0 -2
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -5
- package/lib/_internal/selection/src/Selection.js +5 -5
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -4
- package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -7
- package/lib/_internal/wave/src/styles/index.cssr.js +0 -2
- package/lib/_styles/global/index.cssr.js +2 -6
- package/lib/_styles/transitions/fade-down.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in.cssr.js +0 -6
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +0 -6
- package/lib/_styles/transitions/icon-switch.cssr.js +0 -6
- package/lib/affix/src/styles/index.cssr.js +0 -2
- package/lib/alert/src/styles/index.cssr.js +2 -5
- package/lib/alert/src/styles/rtl.cssr.js +0 -2
- package/lib/anchor/src/styles/index.cssr.js +2 -4
- package/lib/auto-complete/src/styles/index.cssr.js +2 -5
- package/lib/avatar/src/Avatar.d.ts +4 -1
- package/lib/avatar/src/Avatar.js +12 -13
- package/lib/avatar/src/styles/index.cssr.js +2 -4
- package/lib/avatar-group/index.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +7 -7
- package/lib/avatar-group/src/styles/avatar-group-rtl.cssr.js +2 -4
- package/lib/avatar-group/src/styles/avatar-group.cssr.js +2 -4
- package/lib/back-top/src/styles/index.cssr.js +2 -5
- package/lib/badge/src/styles/index.cssr.js +2 -5
- package/lib/badge/src/styles/rtl.cssr.js +0 -2
- package/lib/breadcrumb/src/styles/index.cssr.js +2 -4
- package/lib/button/src/Button.d.ts +4 -1
- package/lib/button/src/Button.js +3 -3
- package/lib/button/src/styles/index.cssr.js +2 -7
- package/lib/button/src/styles/rtl.cssr.js +0 -2
- package/lib/button-group/src/styles/index.cssr.js +0 -5
- package/lib/button-group/src/styles/rtl.cssr.js +0 -4
- package/lib/calendar/src/styles/index.cssr.js +2 -4
- package/lib/card/src/styles/index.cssr.js +4 -5
- package/lib/card/src/styles/rtl.cssr.js +0 -2
- package/lib/carousel/src/styles/index.cssr.js +2 -4
- package/lib/cascader/src/Cascader.d.ts +8 -0
- package/lib/cascader/src/Cascader.js +41 -2
- package/lib/cascader/src/CascaderOption.d.ts +1 -1
- package/lib/cascader/src/CascaderOption.js +1 -7
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/lib/cascader/src/CascaderSelectMenu.js +8 -4
- package/lib/cascader/src/interface.d.ts +11 -1
- package/lib/cascader/src/styles/index.cssr.js +2 -5
- package/lib/checkbox/src/styles/index.cssr.js +8 -8
- package/lib/checkbox/src/styles/rtl.cssr.js +0 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/src/styles/index.cssr.js +2 -4
- package/lib/collapse/src/styles/index.cssr.js +2 -5
- package/lib/collapse/src/styles/rtl.cssr.js +0 -2
- package/lib/collapse-transition/src/styles/index.cssr.js +0 -3
- package/lib/collapse-transition/src/styles/rtl.cssr.js +0 -2
- package/lib/color-picker/src/ColorPicker.d.ts +5 -5
- package/lib/color-picker/src/ColorPicker.js +7 -1
- package/lib/color-picker/src/styles/index.cssr.js +2 -5
- package/lib/color-picker/src/utils.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +6 -0
- package/lib/config-provider/src/ConfigProvider.js +7 -0
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +11 -0
- package/lib/data-table/src/DataTable.js +6 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +13 -5
- package/lib/data-table/src/TableParts/Header.js +7 -5
- package/lib/data-table/src/interface.d.ts +10 -2
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +21 -13
- package/lib/date-picker/src/DatePicker.js +5 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +6 -6
- package/lib/date-picker/src/styles/index.cssr.js +2 -5
- package/lib/descriptions/src/styles/index.cssr.js +2 -4
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -0
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +3 -0
- package/lib/dialog/src/styles/index.cssr.js +2 -4
- package/lib/divider/src/styles/index.cssr.js +2 -4
- package/lib/drawer/src/styles/index.cssr.js +2 -9
- package/lib/drawer/src/styles/rtl.cssr.js +0 -2
- package/lib/dropdown/src/styles/index.cssr.js +2 -5
- package/lib/dynamic-input/src/styles/index.cssr.js +2 -4
- package/lib/dynamic-input/src/styles/rtl.cssr.js +0 -2
- package/lib/dynamic-tags/src/styles/index.cssr.js +2 -4
- package/lib/ellipsis/src/styles/index.cssr.js +0 -2
- package/lib/empty/src/styles/index.cssr.js +2 -4
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/index.js +6 -0
- package/lib/equation/src/Equation.d.ts +18 -0
- package/lib/equation/src/Equation.js +32 -0
- package/lib/equation/styles/dark.d.ts +3 -0
- package/lib/equation/styles/dark.js +10 -0
- package/lib/equation/styles/index.d.ts +3 -0
- package/lib/equation/styles/index.js +10 -0
- package/lib/equation/styles/light.d.ts +6 -0
- package/lib/equation/styles/light.js +12 -0
- package/lib/form/src/FormItem.d.ts +3 -2
- package/lib/form/src/FormItem.js +24 -7
- package/lib/form/src/styles/form-item.cssr.js +5 -6
- package/lib/form/src/styles/form.cssr.js +0 -2
- package/lib/gradient-text/src/styles/index.cssr.js +2 -4
- package/lib/icon/src/styles/index.cssr.js +2 -4
- package/lib/icon-wrapper/src/styles/index.cssr.js +2 -4
- package/lib/image/src/Image.d.ts +4 -1
- package/lib/image/src/Image.js +11 -5
- package/lib/image/src/ImagePreview.d.ts +3 -2
- package/lib/image/src/ImagePreview.js +39 -6
- package/lib/image/src/interface.d.ts +5 -0
- package/lib/image/src/interface.js +3 -1
- package/lib/image/src/styles/index.cssr.js +2 -6
- package/lib/input/src/Input.d.ts +3 -0
- package/lib/input/src/Input.js +25 -6
- package/lib/input/src/WordCount.js +2 -2
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input/src/styles/input-group-label.cssr.js +2 -4
- package/lib/input/src/styles/input-group.cssr.js +0 -2
- package/lib/input/src/styles/input.cssr.js +11 -9
- package/lib/input/src/styles/rtl.cssr.js +0 -2
- package/lib/input-number/src/styles/input-number.cssr.js +0 -2
- package/lib/input-number/src/styles/rtl.cssr.js +0 -2
- package/lib/layout/src/styles/layout-footer.cssr.js +2 -4
- package/lib/layout/src/styles/layout-header.cssr.js +2 -4
- package/lib/layout/src/styles/layout-sider.cssr.js +2 -4
- package/lib/layout/src/styles/layout.cssr.js +2 -4
- package/lib/legacy-grid/src/styles/index.cssr.js +0 -2
- package/lib/legacy-grid/src/styles/rtl.cssr.js +0 -2
- package/lib/legacy-transfer/src/styles/index.cssr.js +0 -3
- package/lib/list/src/styles/index.cssr.js +2 -4
- package/lib/list/src/styles/rtl.cssr.js +0 -2
- package/lib/loading-bar/src/styles/index.cssr.js +2 -5
- package/lib/locales/common/arDZ.d.ts +3 -0
- package/lib/locales/common/arDZ.js +122 -0
- package/lib/locales/common/deDE.js +2 -1
- package/lib/locales/common/enGB.js +2 -1
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +2 -1
- package/lib/locales/common/eo.js +2 -1
- package/lib/locales/common/esAR.js +2 -1
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +2 -1
- package/lib/locales/common/itIT.js +2 -1
- package/lib/locales/common/jaJP.js +2 -1
- package/lib/locales/common/koKR.js +2 -1
- package/lib/locales/common/nbNO.js +2 -1
- package/lib/locales/common/nlNL.js +2 -1
- package/lib/locales/common/plPL.js +2 -1
- package/lib/locales/common/ptBR.js +2 -1
- package/lib/locales/common/ruRU.js +2 -1
- package/lib/locales/common/skSK.js +2 -1
- package/lib/locales/common/thTH.js +2 -1
- package/lib/locales/common/trTR.d.ts +3 -0
- package/lib/locales/common/trTR.js +123 -0
- package/lib/locales/common/ukUA.js +2 -1
- package/lib/locales/common/viVN.js +2 -1
- package/lib/locales/common/zhCN.js +2 -1
- package/lib/locales/common/zhTW.js +2 -1
- package/lib/locales/date/arDZ.d.ts +3 -0
- package/lib/locales/date/arDZ.js +11 -0
- package/lib/locales/date/trTR.d.ts +3 -0
- package/lib/locales/date/trTR.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/log/src/styles/index.cssr.js +2 -5
- package/lib/mention/src/Mention.d.ts +6 -0
- package/lib/mention/src/Mention.js +6 -1
- package/lib/mention/src/styles/index.cssr.js +2 -5
- package/lib/menu/src/styles/index.cssr.js +2 -6
- package/lib/message/src/styles/index.cssr.js +2 -6
- package/lib/message/src/styles/rtl.cssr.js +0 -2
- package/lib/modal/src/BodyWrapper.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +2 -6
- package/lib/notification/src/styles/index.cssr.js +2 -5
- package/lib/notification/src/styles/rtl.cssr.js +0 -2
- package/lib/page-header/src/styles/index.cssr.js +2 -4
- package/lib/page-header/src/styles/rtl.cssr.js +0 -2
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/pagination/src/styles/index.cssr.js +2 -4
- package/lib/pagination/src/styles/rtl.cssr.js +0 -2
- package/lib/popconfirm/src/styles/index.cssr.js +2 -4
- package/lib/popover/src/styles/index.cssr.js +5 -8
- package/lib/popselect/src/styles/index.cssr.js +2 -4
- package/lib/progress/src/styles/index.cssr.js +2 -4
- package/lib/radio/src/styles/radio-group.cssr.js +2 -4
- package/lib/radio/src/styles/radio.cssr.js +2 -4
- package/lib/radio/src/styles/rtl.cssr.js +0 -2
- package/lib/rate/src/styles/index.cssr.js +2 -4
- package/lib/result/src/styles/index.cssr.js +2 -4
- package/lib/select/src/Select.js +1 -0
- package/lib/select/src/styles/index.cssr.js +2 -5
- package/lib/skeleton/src/styles/index.cssr.js +2 -4
- package/lib/slider/src/styles/index.cssr.js +2 -5
- package/lib/space/src/styles/rtl.cssr.js +0 -2
- package/lib/spin/src/styles/index.cssr.js +2 -5
- package/lib/statistic/src/styles/index.cssr.js +2 -4
- package/lib/statistic/src/styles/rtl.cssr.js +0 -2
- package/lib/steps/src/styles/index.cssr.js +2 -5
- package/lib/steps/src/styles/rtl.cssr.js +0 -2
- package/lib/switch/src/styles/index.cssr.js +2 -5
- package/lib/table/src/styles/index.cssr.js +2 -4
- package/lib/table/src/styles/rtl.cssr.js +0 -2
- package/lib/tabs/src/Tabs.d.ts +7 -7
- package/lib/tabs/src/styles/index.cssr.js +2 -4
- package/lib/tag/src/styles/index.cssr.js +2 -4
- package/lib/tag/src/styles/rtl.cssr.js +0 -2
- package/lib/themes/dark.js +100 -98
- package/lib/themes/light.js +100 -98
- package/lib/thing/src/styles/index.cssr.js +2 -4
- package/lib/thing/src/styles/rtl.cssr.js +0 -2
- package/lib/time-picker/src/styles/index.cssr.js +2 -5
- package/lib/timeline/src/styles/index.cssr.js +6 -5
- package/lib/transfer/src/Transfer.d.ts +13 -0
- package/lib/transfer/src/Transfer.js +6 -2
- package/lib/transfer/src/TransferListItem.d.ts +2 -1
- package/lib/transfer/src/TransferListItem.js +5 -4
- package/lib/transfer/src/interface.d.ts +1 -0
- package/lib/transfer/src/styles/index.cssr.js +2 -4
- package/lib/transfer/src/use-transfer-data.d.ts +1 -0
- package/lib/transfer/src/use-transfer-data.js +13 -4
- package/lib/tree/src/Tree.d.ts +60 -30
- package/lib/tree/src/Tree.js +69 -23
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +3 -0
- package/lib/tree/src/TreeNodeSwitcher.js +7 -5
- package/lib/tree/src/interface.d.ts +12 -1
- package/lib/tree/src/styles/index.cssr.js +3 -6
- package/lib/tree/src/styles/rtl.cssr.js +0 -2
- package/lib/tree/src/utils.d.ts +6 -0
- package/lib/tree/src/utils.js +6 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +38 -19
- package/lib/tree-select/src/TreeSelect.js +75 -48
- package/lib/tree-select/src/interface.d.ts +33 -2
- package/lib/tree-select/src/styles/index.cssr.js +2 -5
- package/lib/typography/src/styles/a.cssr.js +2 -4
- package/lib/typography/src/styles/blockquote.cssr.js +2 -4
- package/lib/typography/src/styles/header.cssr.js +2 -4
- package/lib/typography/src/styles/hr.cssr.js +2 -4
- package/lib/typography/src/styles/list.cssr.js +2 -4
- package/lib/typography/src/styles/p.cssr.js +2 -4
- package/lib/typography/src/styles/text.cssr.js +2 -4
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/src/Upload.d.ts +77 -1
- package/lib/upload/src/Upload.js +27 -10
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadFile.js +8 -9
- package/lib/upload/src/interface.d.ts +7 -3
- package/lib/upload/src/styles/index.cssr.js +0 -4
- package/lib/upload/src/utils.d.ts +2 -2
- package/lib/upload/src/utils.js +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/styles/index.cssr.js +0 -2
- package/package.json +13 -10
- package/volar.d.ts +1 -0
- package/web-types.json +236 -57
package/es/locales/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export { default as enGB } from './common/enGB';
|
|
|
17
17
|
export { default as plPL } from './common/plPL';
|
|
18
18
|
export { default as ptBR } from './common/ptBR';
|
|
19
19
|
export { default as thTH } from './common/thTH';
|
|
20
|
+
export { default as arDZ } from './common/arDZ';
|
|
21
|
+
export { default as trTR } from './common/trTR';
|
|
20
22
|
export { default as eo } from './common/eo';
|
|
21
23
|
export { default as viVN } from './common/viVN';
|
|
22
24
|
export { default as dateZhCN } from './date/zhCN';
|
|
@@ -38,6 +40,8 @@ export { default as dateEnGB } from './date/enGB';
|
|
|
38
40
|
export { default as datePlPL } from './date/plPL';
|
|
39
41
|
export { default as datePtBR } from './date/ptBR';
|
|
40
42
|
export { default as dateThTH } from './date/thTH';
|
|
43
|
+
export { default as dateArDZ } from './date/arDZ';
|
|
44
|
+
export { default as dateTrTR } from './date/trTR';
|
|
41
45
|
export { default as dateEo } from './date/eo';
|
|
42
46
|
export { default as dateViVN } from './date/viVN';
|
|
43
47
|
export type { NLocale } from './common/enUS';
|
package/es/locales/index.js
CHANGED
|
@@ -17,6 +17,8 @@ export { default as enGB } from './common/enGB';
|
|
|
17
17
|
export { default as plPL } from './common/plPL';
|
|
18
18
|
export { default as ptBR } from './common/ptBR';
|
|
19
19
|
export { default as thTH } from './common/thTH';
|
|
20
|
+
export { default as arDZ } from './common/arDZ';
|
|
21
|
+
export { default as trTR } from './common/trTR';
|
|
20
22
|
export { default as eo } from './common/eo';
|
|
21
23
|
export { default as viVN } from './common/viVN';
|
|
22
24
|
export { default as dateZhCN } from './date/zhCN';
|
|
@@ -38,6 +40,8 @@ export { default as dateEnGB } from './date/enGB';
|
|
|
38
40
|
export { default as datePlPL } from './date/plPL';
|
|
39
41
|
export { default as datePtBR } from './date/ptBR';
|
|
40
42
|
export { default as dateThTH } from './date/thTH';
|
|
43
|
+
export { default as dateArDZ } from './date/arDZ';
|
|
44
|
+
export { default as dateTrTR } from './date/trTR';
|
|
41
45
|
export { default as dateEo } from './date/eo';
|
|
42
46
|
export { default as dateViVN } from './date/viVN';
|
|
43
47
|
export { createLocale } from './utils/index';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c, cB, cE } from '../../../_utils/cssr';
|
|
2
|
-
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
2
|
+
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
3
|
+
// vars:
|
|
3
4
|
// --n-bezier
|
|
4
5
|
// --n-loading-color
|
|
5
6
|
// --n-loader-border
|
|
@@ -7,7 +8,6 @@ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-sc
|
|
|
7
8
|
// --n-loader-text-color
|
|
8
9
|
// --n-loader-font-size
|
|
9
10
|
// --n-loading-color
|
|
10
|
-
|
|
11
11
|
export default cB('log', `
|
|
12
12
|
position: relative;
|
|
13
13
|
box-sizing: border-box;
|
|
@@ -55,6 +55,8 @@ export declare const mentionProps: {
|
|
|
55
55
|
readonly size: PropType<InputSize>;
|
|
56
56
|
readonly renderLabel: PropType<RenderLabel>;
|
|
57
57
|
readonly status: PropType<FormValidationStatus>;
|
|
58
|
+
readonly 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
|
|
59
|
+
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
58
60
|
readonly 'onUpdate:value': PropType<MaybeArray<(value: string) => void>>;
|
|
59
61
|
readonly onUpdateValue: PropType<MaybeArray<(value: string) => void>>;
|
|
60
62
|
readonly onSearch: PropType<(pattern: string, prefix: string) => void>;
|
|
@@ -466,6 +468,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
466
468
|
readonly size: PropType<InputSize>;
|
|
467
469
|
readonly renderLabel: PropType<RenderLabel>;
|
|
468
470
|
readonly status: PropType<FormValidationStatus>;
|
|
471
|
+
readonly 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
|
|
472
|
+
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
469
473
|
readonly 'onUpdate:value': PropType<MaybeArray<(value: string) => void>>;
|
|
470
474
|
readonly onUpdateValue: PropType<MaybeArray<(value: string) => void>>;
|
|
471
475
|
readonly onSearch: PropType<(pattern: string, prefix: string) => void>;
|
|
@@ -1175,6 +1179,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1175
1179
|
readonly size: PropType<InputSize>;
|
|
1176
1180
|
readonly renderLabel: PropType<RenderLabel>;
|
|
1177
1181
|
readonly status: PropType<FormValidationStatus>;
|
|
1182
|
+
readonly 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
|
|
1183
|
+
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
1178
1184
|
readonly 'onUpdate:value': PropType<MaybeArray<(value: string) => void>>;
|
|
1179
1185
|
readonly onUpdateValue: PropType<MaybeArray<(value: string) => void>>;
|
|
1180
1186
|
readonly onSearch: PropType<(pattern: string, prefix: string) => void>;
|
|
@@ -41,7 +41,7 @@ export const mentionProps = Object.assign(Object.assign({}, useTheme.props), { t
|
|
|
41
41
|
}, placement: {
|
|
42
42
|
type: String,
|
|
43
43
|
default: 'bottom-start'
|
|
44
|
-
}, size: String, renderLabel: Function, status: String, 'onUpdate:value': [Array, Function], onUpdateValue: [Array, Function], onSearch: Function, onSelect: Function, onFocus: Function, onBlur: Function,
|
|
44
|
+
}, size: String, renderLabel: Function, status: String, 'onUpdate:show': [Array, Function], onUpdateShow: [Array, Function], 'onUpdate:value': [Array, Function], onUpdateValue: [Array, Function], onSearch: Function, onSelect: Function, onFocus: Function, onBlur: Function,
|
|
45
45
|
// private
|
|
46
46
|
internalDebug: Boolean });
|
|
47
47
|
export default defineComponent({
|
|
@@ -99,6 +99,11 @@ export default defineComponent({
|
|
|
99
99
|
function doUpdateShowMenu(show) {
|
|
100
100
|
if (props.disabled)
|
|
101
101
|
return;
|
|
102
|
+
const { onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
|
|
103
|
+
if (onUpdateShow)
|
|
104
|
+
call(onUpdateShow, show);
|
|
105
|
+
if (_onUpdateShow)
|
|
106
|
+
call(_onUpdateShow, show);
|
|
102
107
|
if (!show) {
|
|
103
108
|
cachedPrefix = null;
|
|
104
109
|
cachedPartialPatternStart = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
2
|
-
import { c, cB } from '../../../_utils/cssr';
|
|
3
|
-
|
|
2
|
+
import { c, cB } from '../../../_utils/cssr';
|
|
3
|
+
// --n-menu-box-shadow
|
|
4
4
|
export default c([cB('mention', 'width: 100%; z-index: auto; position: relative;'), cB('mention-menu', `
|
|
5
5
|
box-shadow: var(--n-menu-box-shadow);
|
|
6
6
|
`, [fadeInScaleUpTransition({
|
|
@@ -19,7 +19,8 @@ const horizontalHoverStyleChildren = [cE('icon', `
|
|
|
19
19
|
color: var(--n-item-text-color-hover-horizontal);
|
|
20
20
|
`), cE('extra', `
|
|
21
21
|
color: var(--n-item-text-color-hover-horizontal);
|
|
22
|
-
`)])];
|
|
22
|
+
`)])];
|
|
23
|
+
// vars:
|
|
23
24
|
// --n-color
|
|
24
25
|
// --n-group-text-color
|
|
25
26
|
// --n-bezier
|
|
@@ -62,7 +63,6 @@ const horizontalHoverStyleChildren = [cE('icon', `
|
|
|
62
63
|
// --n-item-icon-color-child-active-horizontal
|
|
63
64
|
// --n-item-icon-color-child-active-hover-horizontal
|
|
64
65
|
// --n-item-height
|
|
65
|
-
|
|
66
66
|
export default c([cB('menu', `
|
|
67
67
|
background-color: var(--n-color);
|
|
68
68
|
color: var(--n-item-text-color);
|
|
@@ -223,7 +223,6 @@ export default c([cB('menu', `
|
|
|
223
223
|
height: 1px;
|
|
224
224
|
margin: 6px 18px;
|
|
225
225
|
`)]);
|
|
226
|
-
|
|
227
226
|
function hoverStyle(props, children) {
|
|
228
227
|
return [cM('hover', props, children), c('&:hover', props, children)];
|
|
229
228
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { c, cB, cE, cM } from '../../../_utils/cssr';
|
|
2
2
|
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
3
|
-
import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr';
|
|
3
|
+
import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr';
|
|
4
|
+
// vars:
|
|
4
5
|
// --n-margin
|
|
5
6
|
// --n-bezier
|
|
6
7
|
// --n-padding
|
|
@@ -27,7 +28,6 @@ import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-
|
|
|
27
28
|
// --n-close-icon-color-pressed
|
|
28
29
|
// --n-close-icon-color-hover
|
|
29
30
|
// --n-border-radius
|
|
30
|
-
|
|
31
31
|
export default c([cB('message-wrapper', `
|
|
32
32
|
margin: var(--n-margin);
|
|
33
33
|
z-index: 0;
|
|
@@ -696,7 +696,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
696
696
|
appear: import("vue").Ref<boolean | undefined>;
|
|
697
697
|
isMounted: import("vue").Ref<boolean>;
|
|
698
698
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
699
|
-
bodyRef: import("vue").Ref<ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
699
|
+
bodyRef: import("vue").Ref<ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | HTMLElement | null>;
|
|
700
700
|
scrollbarRef: import("vue").Ref<{
|
|
701
701
|
$el: HTMLElement;
|
|
702
702
|
containerRef: HTMLElement | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { cB, c } from '../../../_utils/cssr';
|
|
2
2
|
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr';
|
|
3
|
-
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
3
|
+
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
4
|
+
// vars:
|
|
4
5
|
// --n-bezier-ease-out
|
|
5
6
|
// --n-box-shadow
|
|
6
7
|
// --n-color
|
|
7
8
|
// --n-text-color
|
|
8
|
-
|
|
9
9
|
export default c([cB('modal-container', `
|
|
10
10
|
position: fixed;
|
|
11
11
|
left: 0;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cB, cE, cM } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cE, cM } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-color
|
|
3
4
|
// --n-text-color
|
|
4
5
|
// --n-description-text-color
|
|
@@ -28,7 +29,6 @@ import { c, cB, cE, cM } from '../../../_utils/cssr'; // vars:
|
|
|
28
29
|
// --n-padding-bottom
|
|
29
30
|
// --n-padding-left
|
|
30
31
|
// --n-padding-right
|
|
31
|
-
|
|
32
32
|
export default c([cB('notification-container', `
|
|
33
33
|
z-index: 4000;
|
|
34
34
|
position: fixed;
|
|
@@ -214,7 +214,6 @@ export default c([cB('notification-container', `
|
|
|
214
214
|
`, [c('&:first-child', {
|
|
215
215
|
margin: 0
|
|
216
216
|
})])])])])]);
|
|
217
|
-
|
|
218
217
|
function placementTransformStyle(placement) {
|
|
219
218
|
const direction = placement.split('-')[1];
|
|
220
219
|
const transformXEnter = direction === 'left' ? 'calc(-100%)' : 'calc(100%)';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cB, cE } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cE } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-title-font-size
|
|
3
4
|
// --n-title-text-color
|
|
4
5
|
// --n-font-size
|
|
@@ -9,7 +10,6 @@ import { c, cB, cE } from '../../../_utils/cssr'; // vars:
|
|
|
9
10
|
// --n-back-size
|
|
10
11
|
// --n-title-font-weight
|
|
11
12
|
// --n-bezier
|
|
12
|
-
|
|
13
13
|
export default c([cB('page-header-header', `
|
|
14
14
|
margin-bottom: 20px;
|
|
15
15
|
`), cB('page-header', `
|
|
@@ -156,7 +156,7 @@ export default defineComponent({
|
|
|
156
156
|
const endIndex = mergedPageRef.value * mergedPageSizeRef.value - 1;
|
|
157
157
|
const { itemCount } = props;
|
|
158
158
|
if (itemCount !== undefined) {
|
|
159
|
-
return endIndex > itemCount ? itemCount : endIndex;
|
|
159
|
+
return endIndex > itemCount - 1 ? itemCount - 1 : endIndex;
|
|
160
160
|
}
|
|
161
161
|
return endIndex;
|
|
162
162
|
});
|
|
@@ -8,7 +8,8 @@ const hoverStyleChildren = [cM('button', `
|
|
|
8
8
|
background: var(--n-button-color-hover);
|
|
9
9
|
border: var(--n-button-border-hover);
|
|
10
10
|
color: var(--n-button-icon-color-hover);
|
|
11
|
-
`)];
|
|
11
|
+
`)];
|
|
12
|
+
// vars:
|
|
12
13
|
// --n-item-font-size
|
|
13
14
|
// --n-select-width
|
|
14
15
|
// --n-input-width
|
|
@@ -44,7 +45,6 @@ const hoverStyleChildren = [cM('button', `
|
|
|
44
45
|
// --n-button-color
|
|
45
46
|
// --n-button-color-hover
|
|
46
47
|
// --n-button-color-pressed
|
|
47
|
-
|
|
48
48
|
export default cB('pagination', `
|
|
49
49
|
display: flex;
|
|
50
50
|
vertical-align: middle;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c, cB, cE } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cE } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-font-size
|
|
3
4
|
// --n-icon-size
|
|
4
5
|
// --n-bezier
|
|
5
6
|
// --n-icon-color
|
|
6
|
-
|
|
7
7
|
export default cB('popconfirm', [cE('body', `
|
|
8
8
|
font-size: var(--n-font-size);
|
|
9
9
|
display: flex;
|
|
@@ -6,7 +6,8 @@ const oppositePlacement = {
|
|
|
6
6
|
left: 'right',
|
|
7
7
|
right: 'left'
|
|
8
8
|
};
|
|
9
|
-
const arrowSize = 'var(--n-arrow-height) * 1.414';
|
|
9
|
+
const arrowSize = 'var(--n-arrow-height) * 1.414';
|
|
10
|
+
// vars:
|
|
10
11
|
// --n-bezier
|
|
11
12
|
// --n-bezier-ease-in
|
|
12
13
|
// --n-bezier-ease-out
|
|
@@ -21,7 +22,6 @@ const arrowSize = 'var(--n-arrow-height) * 1.414'; // vars:
|
|
|
21
22
|
// --n-space
|
|
22
23
|
// --n-space-arrow
|
|
23
24
|
// --n-divider-color
|
|
24
|
-
|
|
25
25
|
export default c([cB('popover', `
|
|
26
26
|
transition:
|
|
27
27
|
box-shadow .3s var(--n-bezier),
|
|
@@ -31,6 +31,7 @@ export default c([cB('popover', `
|
|
|
31
31
|
font-size: var(--n-font-size);
|
|
32
32
|
color: var(--n-text-color);
|
|
33
33
|
box-shadow: var(--n-box-shadow);
|
|
34
|
+
word-break: break-word;
|
|
34
35
|
`, [c('>', [cB('scrollbar', `
|
|
35
36
|
height: inherit;
|
|
36
37
|
max-height: inherit;
|
|
@@ -63,7 +64,8 @@ export default c([cB('popover', `
|
|
|
63
64
|
transform: rotate(45deg);
|
|
64
65
|
background-color: var(--n-color);
|
|
65
66
|
pointer-events: all;
|
|
66
|
-
`)]),
|
|
67
|
+
`)]),
|
|
68
|
+
// body transition
|
|
67
69
|
c('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
68
70
|
opacity: 0;
|
|
69
71
|
transform: scale(.85);
|
|
@@ -140,11 +142,9 @@ c('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
|
140
142
|
return c(`[v-placement="${placement}"] >`, [cB('popover-shared', [cM('center-arrow', [cB('popover-arrow', `${direction}: calc(max(${centerOffset}, ${offset}) ${isReverse ? '+' : '-'} var(--v-offset-${isVertical ? 'left' : 'top'}));`)])])]);
|
|
141
143
|
});
|
|
142
144
|
})]);
|
|
143
|
-
|
|
144
145
|
function getArrowOffset(placement) {
|
|
145
146
|
return ['top', 'bottom'].includes(placement.split('-')[0]) ? 'var(--n-arrow-offset)' : 'var(--n-arrow-offset-vertical)';
|
|
146
147
|
}
|
|
147
|
-
|
|
148
148
|
function placementStyle(placement, arrowStyleLiteral) {
|
|
149
149
|
const position = placement.split('-')[0];
|
|
150
150
|
const sizeStyle = ['top', 'bottom'].includes(position) ? 'height: var(--n-space-arrow);' : 'width: var(--n-space-arrow);';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cB, cM } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cM } from '../../../_utils/cssr';
|
|
2
|
+
// vars
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-fill-color
|
|
4
5
|
// --n-font-size
|
|
@@ -13,7 +14,6 @@ import { c, cB, cM } from '../../../_utils/cssr'; // vars
|
|
|
13
14
|
// --n-text-color-circle
|
|
14
15
|
// --n-text-color-line-inner
|
|
15
16
|
// --n-text-color-line-outer
|
|
16
|
-
|
|
17
17
|
export default c([cB('progress', {
|
|
18
18
|
display: 'inline-block'
|
|
19
19
|
}, [cB('progress-icon', `
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { cB, cE, cM, c, cNotM } from '../../../_utils/cssr';
|
|
1
|
+
import { cB, cE, cM, c, cNotM } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-button-border-color
|
|
4
5
|
// --n-button-border-color-active
|
|
5
6
|
// --n-height
|
|
6
7
|
// --n-opacity-disabled
|
|
7
8
|
// --n-font-size
|
|
8
|
-
|
|
9
9
|
export default cB('radio-group', `
|
|
10
10
|
display: inline-block;
|
|
11
11
|
font-size: var(--n-font-size);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cE, cM, cNotM, cB } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cE, cM, cNotM, cB } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-box-shadow
|
|
4
5
|
// --n-box-shadow-active
|
|
@@ -16,7 +17,6 @@ import { c, cE, cM, cNotM, cB } from '../../../_utils/cssr'; // vars:
|
|
|
16
17
|
// --n-label-padding
|
|
17
18
|
// --n-label-line-height
|
|
18
19
|
// --n-color-active
|
|
19
|
-
|
|
20
20
|
export default cB('radio', `
|
|
21
21
|
line-height: var(--n-label-line-height);
|
|
22
22
|
outline: none;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-item-color
|
|
4
5
|
// --n-item-color-active
|
|
5
|
-
|
|
6
6
|
export default cB('rate', {
|
|
7
7
|
display: 'inline-flex',
|
|
8
8
|
flexWrap: 'nowrap'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { cB, cE } from '../../../_utils/cssr';
|
|
1
|
+
import { cB, cE } from '../../../_utils/cssr';
|
|
2
|
+
// --n-bezier
|
|
2
3
|
// --n-font-size
|
|
3
4
|
// --n-icon-size
|
|
4
5
|
// --n-line-height
|
|
@@ -6,7 +7,6 @@ import { cB, cE } from '../../../_utils/cssr'; // --n-bezier
|
|
|
6
7
|
// --n-title-font-size
|
|
7
8
|
// --n-title-font-weight
|
|
8
9
|
// --n-title-text-color
|
|
9
|
-
|
|
10
10
|
export default cB('result', `
|
|
11
11
|
color: var(--n-text-color);
|
|
12
12
|
line-height: var(--n-line-height);
|
package/es/select/src/Select.js
CHANGED
|
@@ -195,6 +195,7 @@ export default defineComponent({
|
|
|
195
195
|
const selectedOptionsRef = computed(() => {
|
|
196
196
|
if (props.multiple) {
|
|
197
197
|
const { value: values } = mergedValueRef;
|
|
198
|
+
console.log('values', values);
|
|
198
199
|
if (!Array.isArray(values))
|
|
199
200
|
return [];
|
|
200
201
|
return getMergedOptions(values);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cB, c } from '../../../_utils/cssr';
|
|
2
|
-
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
3
|
-
|
|
2
|
+
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
3
|
+
// --n-menu-box-shadow
|
|
4
4
|
export default c([cB('select', `
|
|
5
5
|
z-index: auto;
|
|
6
6
|
outline: none;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cB, c, cM, cE, insideModal, insidePopover } from '../../../_utils/cssr';
|
|
2
|
-
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
2
|
+
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr';
|
|
3
|
+
// vars:
|
|
3
4
|
// --n-bezier
|
|
4
5
|
// --n-dot-border
|
|
5
6
|
// --n-dot-border-active
|
|
@@ -28,7 +29,6 @@ import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-sc
|
|
|
28
29
|
// --n-rail-height
|
|
29
30
|
// --n-rail-width-vertical
|
|
30
31
|
// --n-mark-font-size
|
|
31
|
-
|
|
32
32
|
export default c([cB('slider', `
|
|
33
33
|
display: block;
|
|
34
34
|
padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c, cM, cB } from '../../../_utils/cssr';
|
|
2
|
-
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr';
|
|
2
|
+
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr';
|
|
3
|
+
// vars:
|
|
3
4
|
// --n-bezier
|
|
4
5
|
// --n-opacity-spinning
|
|
5
6
|
// --n-size
|
|
6
7
|
// --n-color
|
|
7
8
|
// --n-text-color
|
|
8
9
|
// --n-font-size
|
|
9
|
-
|
|
10
10
|
export default c([c('@keyframes spin-rotate', `
|
|
11
11
|
from {
|
|
12
12
|
transform: rotate(0);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { cB, cE } from '../../../_utils/cssr';
|
|
1
|
+
import { cB, cE } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-label-font-size
|
|
4
5
|
// --n-label-font-weight
|
|
@@ -8,7 +9,6 @@ import { cB, cE } from '../../../_utils/cssr'; // vars:
|
|
|
8
9
|
// --n-value-prefix-text-color
|
|
9
10
|
// --n-value-suffix-text-color
|
|
10
11
|
// --n-value-text-color
|
|
11
|
-
|
|
12
12
|
export default cB('statistic', [cE('label', `
|
|
13
13
|
font-weight: var(--n-label-font-weight);
|
|
14
14
|
transition: .3s color var(--n-bezier);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
|
-
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
2
|
+
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
3
|
+
// vars:
|
|
3
4
|
// --n-bezier
|
|
4
5
|
// --n-description-text-color
|
|
5
6
|
// --n-header-text-color
|
|
@@ -12,7 +13,6 @@ import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.c
|
|
|
12
13
|
// --n-splitor-color
|
|
13
14
|
// --n-step-header-font-size
|
|
14
15
|
// --n-step-header-font-weight
|
|
15
|
-
|
|
16
16
|
export default cB('steps', `
|
|
17
17
|
width: 100%;
|
|
18
18
|
display: flex;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
2
|
-
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
|
+
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
3
|
+
// vars:
|
|
3
4
|
// --n-bezier
|
|
4
5
|
// --n-button-border-radius
|
|
5
6
|
// --n-button-box-shadow
|
|
@@ -18,7 +19,6 @@ import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr'; // vars:
|
|
|
18
19
|
// --n-loading-color
|
|
19
20
|
// --n-text-color
|
|
20
21
|
// --n-icon-color
|
|
21
|
-
|
|
22
22
|
export default cB('switch', `
|
|
23
23
|
height: var(--n-height);
|
|
24
24
|
min-width: var(--n-width);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cB, cM, cNotM, insideModal, insidePopover } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cM, cNotM, insideModal, insidePopover } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-td-color
|
|
4
5
|
// --n-td-color-modal
|
|
@@ -17,7 +18,6 @@ import { c, cB, cM, cNotM, insideModal, insidePopover } from '../../../_utils/cs
|
|
|
17
18
|
// --n-line-height
|
|
18
19
|
// --n-td-padding
|
|
19
20
|
// --n-th-padding
|
|
20
|
-
|
|
21
21
|
export default c([cB('table', `
|
|
22
22
|
font-size: var(--n-font-size);
|
|
23
23
|
font-variant-numeric: tabular-nums;
|
package/es/tabs/src/Tabs.d.ts
CHANGED
|
@@ -486,7 +486,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
486
486
|
tabsPaneWrapperRef: import("vue").Ref<HTMLElement | null>;
|
|
487
487
|
tabsElRef: import("vue").Ref<HTMLElement | null>;
|
|
488
488
|
barElRef: import("vue").Ref<HTMLElement | null>;
|
|
489
|
-
addTabInstRef: import("vue").Ref<ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
489
|
+
addTabInstRef: import("vue").Ref<ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null>;
|
|
490
490
|
xScrollInstRef: import("vue").Ref<(VXScrollInst & {
|
|
491
491
|
$: import("vue").ComponentInternalInstance;
|
|
492
492
|
$data: {};
|
|
@@ -500,11 +500,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
500
500
|
$slots: Readonly<{
|
|
501
501
|
[name: string]: import("vue").Slot | undefined;
|
|
502
502
|
}>;
|
|
503
|
-
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
504
|
-
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
503
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
504
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
505
505
|
$emit: (event: string, ...args: any[]) => void;
|
|
506
506
|
$el: any;
|
|
507
|
-
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}> & {
|
|
507
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string> & {
|
|
508
508
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
509
509
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
510
510
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -519,12 +519,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
519
519
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
520
520
|
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
521
521
|
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
522
|
-
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
522
|
+
errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
523
523
|
};
|
|
524
524
|
$forceUpdate: () => void;
|
|
525
525
|
$nextTick: typeof nextTick;
|
|
526
|
-
$watch
|
|
527
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties) | null>;
|
|
526
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
527
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
|
|
528
528
|
scrollWrapperElRef: import("vue").Ref<HTMLElement | null>;
|
|
529
529
|
addTabFixed: import("vue").Ref<boolean>;
|
|
530
530
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cM, cB, cE, cNotM } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cM, cB, cE, cNotM } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-close-size
|
|
4
5
|
// --n-close-color-hover
|
|
@@ -25,7 +26,6 @@ import { c, cM, cB, cE, cNotM } from '../../../_utils/cssr'; // vars:
|
|
|
25
26
|
// --n-color-segment
|
|
26
27
|
// --n-font-weight-strong
|
|
27
28
|
// --n-tab-color-segment
|
|
28
|
-
|
|
29
29
|
export default cB('tabs', `
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
width: 100%;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
2
3
|
// --n-bezier
|
|
3
4
|
// --n-border-radius
|
|
4
5
|
// --n-border
|
|
@@ -24,7 +25,6 @@ import { c, cB, cE, cM, cNotM } from '../../../_utils/cssr'; // vars:
|
|
|
24
25
|
// --n-text-color-hover-checkable
|
|
25
26
|
// --n-text-color-pressed-checkable
|
|
26
27
|
// --n-font-weight-strong
|
|
27
|
-
|
|
28
28
|
export default cB('tag', `
|
|
29
29
|
white-space: nowrap;
|
|
30
30
|
position: relative;
|
package/es/themes/dark.js
CHANGED
|
@@ -30,6 +30,7 @@ import { dynamicTagsDark } from '../dynamic-tags/styles';
|
|
|
30
30
|
import { elementDark } from '../element/styles';
|
|
31
31
|
import { ellipsisDark } from '../ellipsis/styles';
|
|
32
32
|
import { emptyDark } from '../empty/styles';
|
|
33
|
+
import { equationDark } from '../equation/styles';
|
|
33
34
|
import { formDark } from '../form/styles';
|
|
34
35
|
import { gradientTextDark } from '../gradient-text/styles';
|
|
35
36
|
import { iconDark } from '../icon/styles';
|
|
@@ -113,6 +114,7 @@ export const darkTheme = {
|
|
|
113
114
|
Element: elementDark,
|
|
114
115
|
Empty: emptyDark,
|
|
115
116
|
Ellipsis: ellipsisDark,
|
|
117
|
+
Equation: equationDark,
|
|
116
118
|
Form: formDark,
|
|
117
119
|
GradientText: gradientTextDark,
|
|
118
120
|
Icon: iconDark,
|
package/es/themes/light.js
CHANGED
|
@@ -32,6 +32,7 @@ import { dynamicTagsLight } from '../dynamic-tags/styles';
|
|
|
32
32
|
import { elementLight } from '../element/styles';
|
|
33
33
|
import { ellipsisLight } from '../ellipsis/styles';
|
|
34
34
|
import { emptyLight } from '../empty/styles';
|
|
35
|
+
import { equationLight } from '../equation/styles';
|
|
35
36
|
import { formLight } from '../form/styles';
|
|
36
37
|
import { gradientTextLight } from '../gradient-text/styles';
|
|
37
38
|
import { iconLight } from '../icon/styles';
|
|
@@ -114,6 +115,7 @@ export const lightTheme = {
|
|
|
114
115
|
DynamicTags: dynamicTagsLight,
|
|
115
116
|
Element: elementLight,
|
|
116
117
|
Empty: emptyLight,
|
|
118
|
+
Equation: equationLight,
|
|
117
119
|
Ellipsis: ellipsisLight,
|
|
118
120
|
Form: formLight,
|
|
119
121
|
GradientText: gradientTextLight,
|