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
|
@@ -4,14 +4,14 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
4
4
|
export interface AvatarGroupInjection {
|
|
5
5
|
size?: Size | undefined;
|
|
6
6
|
}
|
|
7
|
-
interface
|
|
7
|
+
export interface AvatarGroupOption {
|
|
8
8
|
src: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const avatarGroupProps: {
|
|
11
11
|
readonly max: NumberConstructor;
|
|
12
12
|
readonly maxStyle: PropType<string | CSSProperties>;
|
|
13
13
|
readonly options: {
|
|
14
|
-
readonly type: PropType<
|
|
14
|
+
readonly type: PropType<AvatarGroupOption[]>;
|
|
15
15
|
readonly default: () => never[];
|
|
16
16
|
};
|
|
17
17
|
readonly vertical: BooleanConstructor;
|
|
@@ -73,7 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
readonly max: NumberConstructor;
|
|
74
74
|
readonly maxStyle: PropType<string | CSSProperties>;
|
|
75
75
|
readonly options: {
|
|
76
|
-
readonly type: PropType<
|
|
76
|
+
readonly type: PropType<AvatarGroupOption[]>;
|
|
77
77
|
readonly default: () => never[];
|
|
78
78
|
};
|
|
79
79
|
readonly vertical: BooleanConstructor;
|
|
@@ -264,8 +264,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
264
264
|
}>;
|
|
265
265
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
266
266
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
267
|
-
restOptions: import("vue").ComputedRef<
|
|
268
|
-
displayedOptions: import("vue").ComputedRef<
|
|
267
|
+
restOptions: import("vue").ComputedRef<AvatarGroupOption[] | undefined>;
|
|
268
|
+
displayedOptions: import("vue").ComputedRef<AvatarGroupOption[]>;
|
|
269
269
|
cssVars: import("vue").ComputedRef<{
|
|
270
270
|
'--n-gap': string;
|
|
271
271
|
}>;
|
|
@@ -273,7 +273,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
273
|
readonly max: NumberConstructor;
|
|
274
274
|
readonly maxStyle: PropType<string | CSSProperties>;
|
|
275
275
|
readonly options: {
|
|
276
|
-
readonly type: PropType<
|
|
276
|
+
readonly type: PropType<AvatarGroupOption[]>;
|
|
277
277
|
readonly default: () => never[];
|
|
278
278
|
};
|
|
279
279
|
readonly vertical: BooleanConstructor;
|
|
@@ -331,6 +331,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
331
|
}>>>;
|
|
332
332
|
}>>, {
|
|
333
333
|
readonly vertical: boolean;
|
|
334
|
-
readonly options:
|
|
334
|
+
readonly options: AvatarGroupOption[];
|
|
335
335
|
}>;
|
|
336
336
|
export default _default;
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// --n-gap
|
|
10
8
|
exports.default = (0, cssr_1.cB)('avatar-group', [(0, cssr_1.cM)('rtl', `
|
|
11
9
|
direction: rtl;
|
|
12
10
|
`, [(0, cssr_1.cNotM)('vertical', `
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const index_1 = require("../../../_utils/cssr/index");
|
|
7
|
+
// --n-gap
|
|
10
8
|
exports.default = (0, index_1.cB)('avatar-group', `
|
|
11
9
|
flex-wrap: nowrap;
|
|
12
10
|
display: inline-flex;
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-bezier
|
|
11
10
|
// --n-border-radius
|
|
12
11
|
// --n-height
|
|
@@ -20,8 +19,6 @@ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-sc
|
|
|
20
19
|
// --n-icon-color-hover
|
|
21
20
|
// --n-icon-color-pressed
|
|
22
21
|
// --n-text-color
|
|
23
|
-
|
|
24
|
-
|
|
25
22
|
exports.default = (0, cssr_1.cB)('back-top', `
|
|
26
23
|
position: fixed;
|
|
27
24
|
right: 40px;
|
|
@@ -3,18 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-color
|
|
11
10
|
// --n-ripple-color
|
|
12
11
|
// --n-bezier
|
|
13
12
|
// --n-ripple-bezier
|
|
14
13
|
// --n-font-size
|
|
15
14
|
// --n-font-family
|
|
16
|
-
|
|
17
|
-
|
|
18
15
|
exports.default = (0, cssr_1.c)([(0, cssr_1.c)('@keyframes badge-wave-spread', {
|
|
19
16
|
from: {
|
|
20
17
|
boxShadow: '0 0 0.5px 0px var(--n-ripple-color)',
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-font-size
|
|
9
9
|
// --n-bezier
|
|
10
10
|
// --n-item-text-color
|
|
@@ -17,8 +17,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
17
17
|
// --n-item-color-hover
|
|
18
18
|
// --n-item-color-active
|
|
19
19
|
// --n-item-line-height
|
|
20
|
-
|
|
21
|
-
|
|
22
20
|
exports.default = (0, cssr_1.cB)('breadcrumb', `
|
|
23
21
|
white-space: nowrap;
|
|
24
22
|
cursor: default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, ButtonHTMLAttributes, ExtractPropTypes } from 'vue';
|
|
1
|
+
import { PropType, ButtonHTMLAttributes, ExtractPropTypes, VNodeChild } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
3
|
import type { Type, Size } from './interface';
|
|
4
4
|
export declare const buttonProps: {
|
|
@@ -33,6 +33,7 @@ export declare const buttonProps: {
|
|
|
33
33
|
readonly default: "default";
|
|
34
34
|
};
|
|
35
35
|
readonly dashed: BooleanConstructor;
|
|
36
|
+
readonly renderIcon: PropType<() => VNodeChild>;
|
|
36
37
|
readonly iconPlacement: {
|
|
37
38
|
readonly type: PropType<"left" | "right">;
|
|
38
39
|
readonly default: "left";
|
|
@@ -696,6 +697,7 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
696
697
|
readonly default: "default";
|
|
697
698
|
};
|
|
698
699
|
readonly dashed: BooleanConstructor;
|
|
700
|
+
readonly renderIcon: PropType<() => VNodeChild>;
|
|
699
701
|
readonly iconPlacement: {
|
|
700
702
|
readonly type: PropType<"left" | "right">;
|
|
701
703
|
readonly default: "left";
|
|
@@ -1413,6 +1415,7 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
1413
1415
|
readonly default: "default";
|
|
1414
1416
|
};
|
|
1415
1417
|
readonly dashed: BooleanConstructor;
|
|
1418
|
+
readonly renderIcon: PropType<() => VNodeChild>;
|
|
1416
1419
|
readonly iconPlacement: {
|
|
1417
1420
|
readonly type: PropType<"left" | "right">;
|
|
1418
1421
|
readonly default: "left";
|
package/lib/button/src/Button.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
28
28
|
}, type: {
|
|
29
29
|
type: String,
|
|
30
30
|
default: 'default'
|
|
31
|
-
}, dashed: Boolean, iconPlacement: {
|
|
31
|
+
}, dashed: Boolean, renderIcon: Function, iconPlacement: {
|
|
32
32
|
type: String,
|
|
33
33
|
default: 'left'
|
|
34
34
|
}, attrType: {
|
|
@@ -451,11 +451,11 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
451
451
|
], tabindex: this.mergedFocusable ? 0 : -1, type: this.attrType, style: this.cssVars, disabled: this.disabled, onClick: this.handleClick, onBlur: this.handleBlur, onMousedown: this.handleMousedown, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown },
|
|
452
452
|
this.iconPlacement === 'right' && children,
|
|
453
453
|
(0, vue_1.h)(_internal_1.NFadeInExpandTransition, { width: true }, {
|
|
454
|
-
default: () => (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, (children) => (this.loading || children) && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__icon`, style: {
|
|
454
|
+
default: () => (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, (children) => (this.loading || this.renderIcon || children) && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__icon`, style: {
|
|
455
455
|
margin: (0, _utils_1.isSlotEmpty)(this.$slots.default) ? '0' : ''
|
|
456
456
|
} },
|
|
457
457
|
(0, vue_1.h)(_internal_1.NIconSwitchTransition, null, {
|
|
458
|
-
default: () => this.loading ? ((0, vue_1.h)(_internal_1.NBaseLoading, { clsPrefix: mergedClsPrefix, key: "loading", class: `${mergedClsPrefix}-icon-slot`, strokeWidth: 20 })) : ((0, vue_1.h)("div", { key: "icon", class: `${mergedClsPrefix}-icon-slot`, role: "none" }, children))
|
|
458
|
+
default: () => this.loading ? ((0, vue_1.h)(_internal_1.NBaseLoading, { clsPrefix: mergedClsPrefix, key: "loading", class: `${mergedClsPrefix}-icon-slot`, strokeWidth: 20 })) : ((0, vue_1.h)("div", { key: "icon", class: `${mergedClsPrefix}-icon-slot`, role: "none" }, this.renderIcon ? this.renderIcon() : children))
|
|
459
459
|
}))))
|
|
460
460
|
}),
|
|
461
461
|
this.iconPlacement === 'left' && children,
|
|
@@ -3,14 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
const fade_in_width_expand_cssr_1 = require("../../../_styles/transitions/fade-in-width-expand.cssr");
|
|
10
|
-
|
|
11
8
|
const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr");
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const _utils_1 = require("../../../_utils");
|
|
10
|
+
// vars:
|
|
14
11
|
// --n-bezier
|
|
15
12
|
// --n-bezier-ease-out
|
|
16
13
|
// --n-ripple-duration
|
|
@@ -43,8 +40,6 @@ const _utils_1 = require("../../../_utils"); // vars:
|
|
|
43
40
|
//
|
|
44
41
|
// private-vars:
|
|
45
42
|
// --n-border-color-xxx, used for custom color
|
|
46
|
-
|
|
47
|
-
|
|
48
43
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('button', `
|
|
49
44
|
margin: 0;
|
|
50
45
|
font-weight: var(--n-font-weight);
|
|
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.n1 = exports.zero = void 0;
|
|
7
|
-
|
|
8
7
|
const index_1 = require("../../../_utils/cssr/index");
|
|
9
|
-
|
|
10
8
|
exports.zero = '0!important';
|
|
11
9
|
exports.n1 = '-1px!important';
|
|
12
|
-
|
|
13
10
|
function createLeftBorderStyle(type) {
|
|
14
11
|
return (0, index_1.cM)(type + '-type', [(0, index_1.c)('& +', [(0, index_1.cB)('button', {}, [(0, index_1.cM)(type + '-type', [(0, index_1.cE)('border', {
|
|
15
12
|
borderLeftWidth: exports.zero
|
|
@@ -17,7 +14,6 @@ function createLeftBorderStyle(type) {
|
|
|
17
14
|
left: exports.n1
|
|
18
15
|
})])])])]);
|
|
19
16
|
}
|
|
20
|
-
|
|
21
17
|
function createTopBorderStyle(type) {
|
|
22
18
|
return (0, index_1.cM)(type + '-type', [(0, index_1.c)('& +', [(0, index_1.cB)('button', [(0, index_1.cM)(type + '-type', [(0, index_1.cE)('border', {
|
|
23
19
|
borderTopWidth: exports.zero
|
|
@@ -25,7 +21,6 @@ function createTopBorderStyle(type) {
|
|
|
25
21
|
top: exports.n1
|
|
26
22
|
})])])])]);
|
|
27
23
|
}
|
|
28
|
-
|
|
29
24
|
exports.default = (0, index_1.cB)('button-group', `
|
|
30
25
|
flex-wrap: nowrap;
|
|
31
26
|
display: inline-flex;
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
const index_cssr_1 = require("./index.cssr");
|
|
10
|
-
|
|
11
8
|
function createRightBorderStyle(type) {
|
|
12
9
|
return (0, cssr_1.cM)(type + '-type', [(0, cssr_1.c)('& +', [(0, cssr_1.cB)('button', {}, [(0, cssr_1.cM)(type + '-type', [(0, cssr_1.cE)('border', {
|
|
13
10
|
borderRightWidth: index_cssr_1.zero
|
|
@@ -15,7 +12,6 @@ function createRightBorderStyle(type) {
|
|
|
15
12
|
left: index_cssr_1.n1
|
|
16
13
|
})])])])]);
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
exports.default = (0, cssr_1.cB)('button-group', [(0, cssr_1.cNotM)('vertical', [(0, cssr_1.cM)('rtl', `
|
|
20
16
|
direction: rtl;
|
|
21
17
|
`, [(0, cssr_1.cB)('button', [(0, cssr_1.c)('&:last-child:not(:first-child)', `
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-bezier
|
|
9
9
|
// --n-border-color
|
|
10
10
|
// --n-border-color-modal
|
|
@@ -23,8 +23,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
23
23
|
// --n-cell-color-hover-modal
|
|
24
24
|
// --n-cell-color-hover-popover
|
|
25
25
|
// --n-bar-color
|
|
26
|
-
|
|
27
|
-
|
|
28
26
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('calendar', `
|
|
29
27
|
line-height: var(--n-line-height);
|
|
30
28
|
font-size: var(--n-font-size);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-bezier
|
|
9
9
|
// --n-border-radius
|
|
10
10
|
// --n-color
|
|
@@ -32,8 +32,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
32
32
|
// --n-color-embedded
|
|
33
33
|
// --n-color-embedded-modal
|
|
34
34
|
// --n-color-embedded-popover
|
|
35
|
-
|
|
36
|
-
|
|
37
35
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('card', `
|
|
38
36
|
font-size: var(--n-font-size);
|
|
39
37
|
line-height: var(--n-line-height);
|
|
@@ -77,6 +75,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('card', `
|
|
|
77
75
|
font-weight: var(--n-title-font-weight);
|
|
78
76
|
transition: color .3s var(--n-bezier);
|
|
79
77
|
flex: 1;
|
|
78
|
+
min-width: 0;
|
|
80
79
|
color: var(--n-title-text-color);
|
|
81
80
|
`), (0, cssr_1.cE)('extra', `
|
|
82
81
|
display: flex;
|
|
@@ -97,7 +96,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('card', `
|
|
|
97
96
|
border-color .3s var(--n-bezier);
|
|
98
97
|
background-clip: padding-box;
|
|
99
98
|
background-color: var(--n-action-color);
|
|
100
|
-
`), (0, cssr_1.cE)('content', 'flex: 1;'), (0, cssr_1.cE)('content, footer', `
|
|
99
|
+
`), (0, cssr_1.cE)('content', 'flex: 1; min-width: 0;'), (0, cssr_1.cE)('content, footer', `
|
|
101
100
|
box-sizing: border-box;
|
|
102
101
|
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
|
103
102
|
font-size: var(--n-font-size);
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
7
|
exports.default = (0, cssr_1.cB)('card', [(0, cssr_1.cM)('rtl', `
|
|
10
8
|
direction: rtl;
|
|
11
9
|
`), (0, cssr_1.c)('>', [(0, cssr_1.cB)('card-header', [(0, cssr_1.c)('>', [(0, cssr_1.cE)('close', `
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
8
|
// --n-bezier
|
|
9
9
|
// --n-dot-color
|
|
10
10
|
// --n-dot-color-focus
|
|
@@ -13,8 +13,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
13
13
|
// --n-dot-line-width
|
|
14
14
|
// --n-dot-line-width-active
|
|
15
15
|
// --n-arrow-color
|
|
16
|
-
|
|
17
|
-
|
|
18
16
|
exports.default = (0, cssr_1.cB)('carousel', `
|
|
19
17
|
position: relative;
|
|
20
18
|
width: 100%;
|
|
@@ -1749,6 +1749,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1749
1749
|
onRender: (() => void) | undefined;
|
|
1750
1750
|
focus: () => void;
|
|
1751
1751
|
blur: () => void;
|
|
1752
|
+
getCheckedData: () => {
|
|
1753
|
+
keys: import("./interface").ValueAtom[];
|
|
1754
|
+
options: (CascaderOption | null)[];
|
|
1755
|
+
};
|
|
1756
|
+
getIndeterminateData: () => {
|
|
1757
|
+
keys: import("./interface").ValueAtom[];
|
|
1758
|
+
options: (CascaderOption | null)[];
|
|
1759
|
+
};
|
|
1752
1760
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1753
1761
|
readonly allowCheckingNotLoaded: BooleanConstructor;
|
|
1754
1762
|
readonly to: {
|
|
@@ -75,7 +75,7 @@ exports.cascaderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props
|
|
|
75
75
|
exports.default = (0, vue_1.defineComponent)({
|
|
76
76
|
name: 'Cascader',
|
|
77
77
|
props: exports.cascaderProps,
|
|
78
|
-
setup(props) {
|
|
78
|
+
setup(props, { slots }) {
|
|
79
79
|
if (process.env.NODE_ENV !== 'production') {
|
|
80
80
|
(0, vue_1.watchEffect)(() => {
|
|
81
81
|
if (props.leafOnly) {
|
|
@@ -208,6 +208,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
208
208
|
function updateHoverKey(key) {
|
|
209
209
|
hoverKeyRef.value = key;
|
|
210
210
|
}
|
|
211
|
+
function getOptionsByKeys(keys) {
|
|
212
|
+
const { value: { getNode } } = treeMateRef;
|
|
213
|
+
return keys.map((keys) => { var _a; return ((_a = getNode(keys)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; });
|
|
214
|
+
}
|
|
211
215
|
function doCheck(key) {
|
|
212
216
|
var _a;
|
|
213
217
|
const { cascade, multiple, filterable } = props;
|
|
@@ -219,7 +223,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
219
223
|
checkStrategy: mergedCheckStrategyRef.value,
|
|
220
224
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
221
225
|
});
|
|
222
|
-
doUpdateValue(checkedKeys, checkedKeys
|
|
226
|
+
doUpdateValue(checkedKeys, getOptionsByKeys(checkedKeys), checkedKeys.map((checkedKey) => { var _a; return (0, utils_1.getRawNodePath)((_a = getPath(checkedKey)) === null || _a === void 0 ? void 0 : _a.treeNodePath); }));
|
|
223
227
|
if (filterable)
|
|
224
228
|
focusSelectionInput();
|
|
225
229
|
keyboardKeyRef.value = key;
|
|
@@ -700,7 +704,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
700
704
|
}
|
|
701
705
|
}
|
|
702
706
|
}
|
|
707
|
+
const showCheckboxRef = (0, vue_1.computed)(() => {
|
|
708
|
+
if (props.multiple && props.cascade)
|
|
709
|
+
return true;
|
|
710
|
+
if (mergedCheckStrategyRef.value !== 'child')
|
|
711
|
+
return true;
|
|
712
|
+
return false;
|
|
713
|
+
});
|
|
703
714
|
(0, vue_1.provide)(interface_1.cascaderInjectionKey, {
|
|
715
|
+
slots,
|
|
704
716
|
mergedClsPrefixRef,
|
|
705
717
|
mergedThemeRef: themeRef,
|
|
706
718
|
mergedValueRef,
|
|
@@ -708,6 +720,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
708
720
|
indeterminateKeysRef,
|
|
709
721
|
hoverKeyPathRef,
|
|
710
722
|
mergedCheckStrategyRef,
|
|
723
|
+
showCheckboxRef,
|
|
711
724
|
cascadeRef: (0, vue_1.toRef)(props, 'cascade'),
|
|
712
725
|
multipleRef: (0, vue_1.toRef)(props, 'multiple'),
|
|
713
726
|
keyboardKeyRef,
|
|
@@ -743,6 +756,32 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
743
756
|
blur: () => {
|
|
744
757
|
var _a;
|
|
745
758
|
(_a = triggerInstRef.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
759
|
+
},
|
|
760
|
+
getCheckedData: () => {
|
|
761
|
+
if (showCheckboxRef.value) {
|
|
762
|
+
const checkedKeys = checkedKeysRef.value;
|
|
763
|
+
return {
|
|
764
|
+
keys: checkedKeys,
|
|
765
|
+
options: getOptionsByKeys(checkedKeys)
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
return {
|
|
769
|
+
keys: [],
|
|
770
|
+
options: []
|
|
771
|
+
};
|
|
772
|
+
},
|
|
773
|
+
getIndeterminateData: () => {
|
|
774
|
+
if (showCheckboxRef.value) {
|
|
775
|
+
const indeterminateKeys = indeterminateKeysRef.value;
|
|
776
|
+
return {
|
|
777
|
+
keys: indeterminateKeys,
|
|
778
|
+
options: getOptionsByKeys(indeterminateKeys)
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
return {
|
|
782
|
+
keys: [],
|
|
783
|
+
options: []
|
|
784
|
+
};
|
|
746
785
|
}
|
|
747
786
|
};
|
|
748
787
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
hoverPending: import("vue").ComputedRef<boolean>;
|
|
15
15
|
keyboardPending: import("vue").ComputedRef<boolean>;
|
|
16
16
|
isLoading: import("vue").ComputedRef<boolean>;
|
|
17
|
-
showCheckbox: import("vue").
|
|
17
|
+
showCheckbox: import("vue").Ref<boolean>;
|
|
18
18
|
isLeaf: import("vue").ComputedRef<boolean>;
|
|
19
19
|
disabled: import("vue").ComputedRef<boolean>;
|
|
20
20
|
label: import("vue").ComputedRef<any>;
|
|
@@ -16,7 +16,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
setup(props) {
|
|
19
|
-
const { expandTriggerRef, remoteRef, multipleRef, mergedValueRef, checkedKeysRef, indeterminateKeysRef, hoverKeyPathRef, keyboardKeyRef, loadingKeySetRef, cascadeRef, mergedCheckStrategyRef, onLoadRef, mergedClsPrefixRef, mergedThemeRef, labelFieldRef, updateHoverKey, updateKeyboardKey, addLoadingKey, deleteLoadingKey, closeMenu, doCheck, doUncheck, renderLabelRef
|
|
19
|
+
const { expandTriggerRef, remoteRef, multipleRef, mergedValueRef, checkedKeysRef, indeterminateKeysRef, hoverKeyPathRef, keyboardKeyRef, loadingKeySetRef, cascadeRef, mergedCheckStrategyRef, onLoadRef, mergedClsPrefixRef, mergedThemeRef, labelFieldRef, showCheckboxRef, updateHoverKey, updateKeyboardKey, addLoadingKey, deleteLoadingKey, closeMenu, doCheck, doUncheck, renderLabelRef
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
21
21
|
} = (0, vue_1.inject)(interface_1.cascaderInjectionKey);
|
|
22
22
|
const valueRef = (0, vue_1.computed)(() => props.tmNode.key);
|
|
@@ -63,12 +63,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
63
63
|
}
|
|
64
64
|
return false;
|
|
65
65
|
});
|
|
66
|
-
const showCheckboxRef = (0, vue_1.computed)(() => {
|
|
67
|
-
if (multipleRef.value && cascadeRef.value)
|
|
68
|
-
return true;
|
|
69
|
-
if (mergedCheckStrategyRef.value !== 'child')
|
|
70
|
-
return true;
|
|
71
|
-
});
|
|
72
66
|
const isLeafRef = (0, vue_1.computed)(() => props.tmNode.isLeaf);
|
|
73
67
|
const disabledRef = (0, vue_1.computed)(() => props.tmNode.disabled);
|
|
74
68
|
const labelRef = (0, vue_1.computed)(() => props.tmNode.rawNode[labelFieldRef.value]);
|
|
@@ -392,6 +392,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
392
392
|
handleResize: () => void;
|
|
393
393
|
handleToggle: (tmNode: TreeNode<SelectBaseOption>) => void;
|
|
394
394
|
handleClickOutside: (e: MouseEvent) => void;
|
|
395
|
+
cascaderSlots: Readonly<{
|
|
396
|
+
[name: string]: import("vue").Slot | undefined;
|
|
397
|
+
}>;
|
|
395
398
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
396
399
|
value: {
|
|
397
400
|
type: PropType<Value | null>;
|
|
@@ -7,6 +7,7 @@ const utils_1 = require("../../select/src/utils");
|
|
|
7
7
|
const _internal_1 = require("../../_internal");
|
|
8
8
|
const utils_2 = require("./utils");
|
|
9
9
|
const interface_1 = require("./interface");
|
|
10
|
+
const _utils_1 = require("../../_utils");
|
|
10
11
|
exports.default = (0, vue_1.defineComponent)({
|
|
11
12
|
name: 'NCascaderSelectMenu',
|
|
12
13
|
props: {
|
|
@@ -35,7 +36,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
setup(props) {
|
|
38
|
-
const { isMountedRef, mergedValueRef, mergedClsPrefixRef, mergedThemeRef, mergedCheckStrategyRef, syncSelectMenuPosition, closeMenu, handleSelectMenuClickOutside, doUncheck: cascaderDoUncheck, doCheck: cascaderDoCheck, clearPattern
|
|
39
|
+
const { isMountedRef, mergedValueRef, mergedClsPrefixRef, mergedThemeRef, mergedCheckStrategyRef, slots: cascaderSlots, syncSelectMenuPosition, closeMenu, handleSelectMenuClickOutside, doUncheck: cascaderDoUncheck, doCheck: cascaderDoCheck, clearPattern
|
|
39
40
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
40
41
|
} = (0, vue_1.inject)(interface_1.cascaderInjectionKey);
|
|
41
42
|
const menuInstRef = (0, vue_1.ref)(null);
|
|
@@ -123,13 +124,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
123
124
|
};
|
|
124
125
|
return Object.assign({ isMounted: isMountedRef, mergedTheme: mergedThemeRef, mergedClsPrefix: mergedClsPrefixRef, menuInstRef, selectTreeMate: selectTreeMateRef, handleResize,
|
|
125
126
|
handleToggle,
|
|
126
|
-
handleClickOutside
|
|
127
|
+
handleClickOutside,
|
|
128
|
+
cascaderSlots }, exposedRef);
|
|
127
129
|
},
|
|
128
130
|
render() {
|
|
129
|
-
const { mergedClsPrefix, isMounted, mergedTheme } = this;
|
|
131
|
+
const { mergedClsPrefix, isMounted, mergedTheme, cascaderSlots } = this;
|
|
130
132
|
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: isMounted }, {
|
|
131
133
|
default: () => this.show
|
|
132
|
-
? (0, vue_1.withDirectives)((0, vue_1.h)(_internal_1.NInternalSelectMenu, { ref: "menuInstRef", onResize: this.handleResize, clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-cascader-menu`, autoPending: true, themeOverrides: mergedTheme.peerOverrides.InternalSelectMenu, theme: mergedTheme.peers.InternalSelectMenu, treeMate: this.selectTreeMate, multiple: this.multiple, value: this.value, onToggle: this.handleToggle }
|
|
134
|
+
? (0, vue_1.withDirectives)((0, vue_1.h)(_internal_1.NInternalSelectMenu, { ref: "menuInstRef", onResize: this.handleResize, clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-cascader-menu`, autoPending: true, themeOverrides: mergedTheme.peerOverrides.InternalSelectMenu, theme: mergedTheme.peers.InternalSelectMenu, treeMate: this.selectTreeMate, multiple: this.multiple, value: this.value, onToggle: this.handleToggle }, {
|
|
135
|
+
empty: () => (0, _utils_1.resolveSlot)(cascaderSlots['not-found'], () => [])
|
|
136
|
+
}), [
|
|
133
137
|
[
|
|
134
138
|
vdirs_1.clickoutside,
|
|
135
139
|
this.handleClickOutside,
|
|
@@ -2,7 +2,7 @@ import { CheckStrategy, TreeNode } from 'treemate';
|
|
|
2
2
|
import type { MergedTheme } from '../../_mixins';
|
|
3
3
|
import type { NLocale } from '../../locales';
|
|
4
4
|
import type { CascaderTheme } from '../styles';
|
|
5
|
-
import { Ref, VNodeChild } from 'vue';
|
|
5
|
+
import { Ref, Slots, VNodeChild } from 'vue';
|
|
6
6
|
export declare type ValueAtom = string | number;
|
|
7
7
|
export declare type Value = ValueAtom | ValueAtom[];
|
|
8
8
|
export declare type Key = ValueAtom;
|
|
@@ -21,6 +21,7 @@ export declare type OnUpdateValue = (value: string & number & string[] & number[
|
|
|
21
21
|
export declare type OnUpdateValueImpl = (value: Value | null, option: CascaderOption | null | Array<CascaderOption | null>, path: Array<CascaderOption[] | null> | CascaderOption[] | null) => void;
|
|
22
22
|
export declare type MenuModel = TmNode[][];
|
|
23
23
|
export interface CascaderInjection {
|
|
24
|
+
slots: Slots;
|
|
24
25
|
mergedClsPrefixRef: Ref<string>;
|
|
25
26
|
mergedThemeRef: Ref<MergedTheme<CascaderTheme>>;
|
|
26
27
|
mergedValueRef: Ref<Value | null>;
|
|
@@ -41,6 +42,7 @@ export interface CascaderInjection {
|
|
|
41
42
|
virtualScrollRef: Ref<boolean>;
|
|
42
43
|
optionHeightRef: Ref<string>;
|
|
43
44
|
labelFieldRef: Ref<string>;
|
|
45
|
+
showCheckboxRef: Ref<boolean>;
|
|
44
46
|
syncCascaderMenuPosition: () => void;
|
|
45
47
|
syncSelectMenuPosition: () => void;
|
|
46
48
|
updateKeyboardKey: (value: Key | null) => void;
|
|
@@ -74,4 +76,12 @@ export declare const cascaderInjectionKey: import("vue").InjectionKey<CascaderIn
|
|
|
74
76
|
export interface CascaderInst {
|
|
75
77
|
focus: () => void;
|
|
76
78
|
blur: () => void;
|
|
79
|
+
getCheckedData: () => {
|
|
80
|
+
keys: Key[];
|
|
81
|
+
options: Array<CascaderOption | null>;
|
|
82
|
+
};
|
|
83
|
+
getIndeterminateData: () => {
|
|
84
|
+
keys: Key[];
|
|
85
|
+
options: Array<CascaderOption | null>;
|
|
86
|
+
};
|
|
77
87
|
}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
+
// vars:
|
|
10
9
|
// --n-menu-border-radius
|
|
11
10
|
// --n-menu-box-shadow
|
|
12
11
|
// --n-menu-height
|
|
@@ -22,8 +21,6 @@ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-sc
|
|
|
22
21
|
// --n-option-arrow-color
|
|
23
22
|
// --n-menu-mask-color
|
|
24
23
|
// --n-loading-color
|
|
25
|
-
|
|
26
|
-
|
|
27
24
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('cascader-menu', `
|
|
28
25
|
outline: none;
|
|
29
26
|
position: relative;
|