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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ar_1 = __importDefault(require("date-fns/locale/ar")); //
|
|
7
|
+
const dateArDZ = {
|
|
8
|
+
name: 'ar-DZ',
|
|
9
|
+
locale: ar_1.default
|
|
10
|
+
};
|
|
11
|
+
exports.default = dateArDZ;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const tr_1 = __importDefault(require("date-fns/locale/tr")); //
|
|
7
|
+
const dateTrTR = {
|
|
8
|
+
name: 'zh-CN',
|
|
9
|
+
locale: tr_1.default
|
|
10
|
+
};
|
|
11
|
+
exports.default = dateTrTR;
|
package/lib/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/lib/locales/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createLocale = exports.dateViVN = exports.dateEo = exports.dateThTH = exports.datePtBR = exports.datePlPL = exports.dateEnGB = exports.dateSkSK = exports.dateItIT = exports.dateEsAR = exports.dateFrFR = exports.dateNlNL = exports.dateNbNO = exports.dateDeDE = exports.dateIdID = exports.dateKoKR = exports.dateJaJP = exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhTW = exports.dateZhCN = exports.viVN = exports.eo = exports.thTH = exports.ptBR = exports.plPL = exports.enGB = exports.skSK = exports.itIT = exports.esAR = exports.frFR = exports.nlNL = exports.nbNO = exports.deDE = exports.idID = exports.koKR = exports.jaJP = exports.ukUA = exports.ruRU = exports.enUS = exports.zhTW = exports.zhCN = void 0;
|
|
6
|
+
exports.createLocale = exports.dateViVN = exports.dateEo = exports.dateTrTR = exports.dateArDZ = exports.dateThTH = exports.datePtBR = exports.datePlPL = exports.dateEnGB = exports.dateSkSK = exports.dateItIT = exports.dateEsAR = exports.dateFrFR = exports.dateNlNL = exports.dateNbNO = exports.dateDeDE = exports.dateIdID = exports.dateKoKR = exports.dateJaJP = exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhTW = exports.dateZhCN = exports.viVN = exports.eo = exports.trTR = exports.arDZ = exports.thTH = exports.ptBR = exports.plPL = exports.enGB = exports.skSK = exports.itIT = exports.esAR = exports.frFR = exports.nlNL = exports.nbNO = exports.deDE = exports.idID = exports.koKR = exports.jaJP = exports.ukUA = exports.ruRU = exports.enUS = exports.zhTW = exports.zhCN = void 0;
|
|
7
7
|
var zhCN_1 = require("./common/zhCN");
|
|
8
8
|
Object.defineProperty(exports, "zhCN", { enumerable: true, get: function () { return __importDefault(zhCN_1).default; } });
|
|
9
9
|
var zhTW_1 = require("./common/zhTW");
|
|
@@ -42,6 +42,10 @@ var ptBR_1 = require("./common/ptBR");
|
|
|
42
42
|
Object.defineProperty(exports, "ptBR", { enumerable: true, get: function () { return __importDefault(ptBR_1).default; } });
|
|
43
43
|
var thTH_1 = require("./common/thTH");
|
|
44
44
|
Object.defineProperty(exports, "thTH", { enumerable: true, get: function () { return __importDefault(thTH_1).default; } });
|
|
45
|
+
var arDZ_1 = require("./common/arDZ");
|
|
46
|
+
Object.defineProperty(exports, "arDZ", { enumerable: true, get: function () { return __importDefault(arDZ_1).default; } });
|
|
47
|
+
var trTR_1 = require("./common/trTR");
|
|
48
|
+
Object.defineProperty(exports, "trTR", { enumerable: true, get: function () { return __importDefault(trTR_1).default; } });
|
|
45
49
|
var eo_1 = require("./common/eo");
|
|
46
50
|
Object.defineProperty(exports, "eo", { enumerable: true, get: function () { return __importDefault(eo_1).default; } });
|
|
47
51
|
var viVN_1 = require("./common/viVN");
|
|
@@ -84,6 +88,10 @@ var ptBR_2 = require("./date/ptBR");
|
|
|
84
88
|
Object.defineProperty(exports, "datePtBR", { enumerable: true, get: function () { return __importDefault(ptBR_2).default; } });
|
|
85
89
|
var thTH_2 = require("./date/thTH");
|
|
86
90
|
Object.defineProperty(exports, "dateThTH", { enumerable: true, get: function () { return __importDefault(thTH_2).default; } });
|
|
91
|
+
var arDZ_2 = require("./date/arDZ");
|
|
92
|
+
Object.defineProperty(exports, "dateArDZ", { enumerable: true, get: function () { return __importDefault(arDZ_2).default; } });
|
|
93
|
+
var trTR_2 = require("./date/trTR");
|
|
94
|
+
Object.defineProperty(exports, "dateTrTR", { enumerable: true, get: function () { return __importDefault(trTR_2).default; } });
|
|
87
95
|
var eo_2 = require("./date/eo");
|
|
88
96
|
Object.defineProperty(exports, "dateEo", { enumerable: true, get: function () { return __importDefault(eo_2).default; } });
|
|
89
97
|
var viVN_2 = require("./date/viVN");
|
|
@@ -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-loading-color
|
|
12
11
|
// --n-loader-border
|
|
@@ -14,8 +13,6 @@ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-sc
|
|
|
14
13
|
// --n-loader-text-color
|
|
15
14
|
// --n-loader-font-size
|
|
16
15
|
// --n-loading-color
|
|
17
|
-
|
|
18
|
-
|
|
19
16
|
exports.default = (0, cssr_1.cB)('log', `
|
|
20
17
|
position: relative;
|
|
21
18
|
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>;
|
|
@@ -47,7 +47,7 @@ exports.mentionProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props)
|
|
|
47
47
|
}, placement: {
|
|
48
48
|
type: String,
|
|
49
49
|
default: 'bottom-start'
|
|
50
|
-
}, size: String, renderLabel: Function, status: String, 'onUpdate:value': [Array, Function], onUpdateValue: [Array, Function], onSearch: Function, onSelect: Function, onFocus: Function, onBlur: Function,
|
|
50
|
+
}, 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,
|
|
51
51
|
// private
|
|
52
52
|
internalDebug: Boolean });
|
|
53
53
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -105,6 +105,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
105
105
|
function doUpdateShowMenu(show) {
|
|
106
106
|
if (props.disabled)
|
|
107
107
|
return;
|
|
108
|
+
const { onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
|
|
109
|
+
if (onUpdateShow)
|
|
110
|
+
(0, _utils_1.call)(onUpdateShow, show);
|
|
111
|
+
if (_onUpdateShow)
|
|
112
|
+
(0, _utils_1.call)(_onUpdateShow, show);
|
|
108
113
|
if (!show) {
|
|
109
114
|
cachedPrefix = null;
|
|
110
115
|
cachedPartialPatternStart = null;
|
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
8
|
+
// --n-menu-box-shadow
|
|
12
9
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('mention', 'width: 100%; z-index: auto; position: relative;'), (0, cssr_1.cB)('mention-menu', `
|
|
13
10
|
box-shadow: var(--n-menu-box-shadow);
|
|
14
11
|
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr");
|
|
8
|
-
|
|
9
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
10
|
-
|
|
11
8
|
const hoverStyleChildren = [(0, cssr_1.c)('&::before', 'background-color: var(--n-item-color-hover);'), (0, cssr_1.cE)('arrow', `
|
|
12
9
|
color: var(--n-arrow-color-hover);
|
|
13
10
|
`), (0, cssr_1.cE)('icon', `
|
|
@@ -27,7 +24,8 @@ const horizontalHoverStyleChildren = [(0, cssr_1.cE)('icon', `
|
|
|
27
24
|
color: var(--n-item-text-color-hover-horizontal);
|
|
28
25
|
`), (0, cssr_1.cE)('extra', `
|
|
29
26
|
color: var(--n-item-text-color-hover-horizontal);
|
|
30
|
-
`)])];
|
|
27
|
+
`)])];
|
|
28
|
+
// vars:
|
|
31
29
|
// --n-color
|
|
32
30
|
// --n-group-text-color
|
|
33
31
|
// --n-bezier
|
|
@@ -70,7 +68,6 @@ const horizontalHoverStyleChildren = [(0, cssr_1.cE)('icon', `
|
|
|
70
68
|
// --n-item-icon-color-child-active-horizontal
|
|
71
69
|
// --n-item-icon-color-child-active-hover-horizontal
|
|
72
70
|
// --n-item-height
|
|
73
|
-
|
|
74
71
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('menu', `
|
|
75
72
|
background-color: var(--n-color);
|
|
76
73
|
color: var(--n-item-text-color);
|
|
@@ -231,7 +228,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('menu', `
|
|
|
231
228
|
height: 1px;
|
|
232
229
|
margin: 6px 18px;
|
|
233
230
|
`)]);
|
|
234
|
-
|
|
235
231
|
function hoverStyle(props, children) {
|
|
236
232
|
return [(0, cssr_1.cM)('hover', props, children), (0, cssr_1.c)('&:hover', props, children)];
|
|
237
233
|
}
|
|
@@ -3,12 +3,10 @@
|
|
|
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 icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr");
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr");
|
|
9
|
+
// vars:
|
|
12
10
|
// --n-margin
|
|
13
11
|
// --n-bezier
|
|
14
12
|
// --n-padding
|
|
@@ -35,8 +33,6 @@ const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-
|
|
|
35
33
|
// --n-close-icon-color-pressed
|
|
36
34
|
// --n-close-icon-color-hover
|
|
37
35
|
// --n-border-radius
|
|
38
|
-
|
|
39
|
-
|
|
40
36
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('message-wrapper', `
|
|
41
37
|
margin: var(--n-margin);
|
|
42
38
|
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;
|
|
@@ -3,18 +3,14 @@
|
|
|
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_cssr_1 = require("../../../_styles/transitions/fade-in.cssr");
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
9
|
+
// vars:
|
|
12
10
|
// --n-bezier-ease-out
|
|
13
11
|
// --n-box-shadow
|
|
14
12
|
// --n-color
|
|
15
13
|
// --n-text-color
|
|
16
|
-
|
|
17
|
-
|
|
18
14
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
|
|
19
15
|
position: fixed;
|
|
20
16
|
left: 0;
|
|
@@ -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-color
|
|
9
9
|
// --n-text-color
|
|
10
10
|
// --n-description-text-color
|
|
@@ -34,8 +34,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
34
34
|
// --n-padding-bottom
|
|
35
35
|
// --n-padding-left
|
|
36
36
|
// --n-padding-right
|
|
37
|
-
|
|
38
|
-
|
|
39
37
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
40
38
|
z-index: 4000;
|
|
41
39
|
position: fixed;
|
|
@@ -221,7 +219,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
221
219
|
`, [(0, cssr_1.c)('&:first-child', {
|
|
222
220
|
margin: 0
|
|
223
221
|
})])])])])]);
|
|
224
|
-
|
|
225
222
|
function placementTransformStyle(placement) {
|
|
226
223
|
const direction = placement.split('-')[1];
|
|
227
224
|
const transformXEnter = direction === 'left' ? 'calc(-100%)' : 'calc(100%)';
|
|
@@ -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-title-font-size
|
|
9
9
|
// --n-title-text-color
|
|
10
10
|
// --n-font-size
|
|
@@ -15,8 +15,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
15
15
|
// --n-back-size
|
|
16
16
|
// --n-title-font-weight
|
|
17
17
|
// --n-bezier
|
|
18
|
-
|
|
19
|
-
|
|
20
18
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('page-header-header', `
|
|
21
19
|
margin-bottom: 20px;
|
|
22
20
|
`), (0, cssr_1.cB)('page-header', `
|
|
@@ -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)('page-header-wrapper', [(0, cssr_1.cM)('rtl', [(0, cssr_1.cB)('page-header-header', `
|
|
10
8
|
direction: rtl;
|
|
11
9
|
`), (0, cssr_1.cB)('page-header', `
|
|
@@ -162,7 +162,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
162
162
|
const endIndex = mergedPageRef.value * mergedPageSizeRef.value - 1;
|
|
163
163
|
const { itemCount } = props;
|
|
164
164
|
if (itemCount !== undefined) {
|
|
165
|
-
return endIndex > itemCount ? itemCount : endIndex;
|
|
165
|
+
return endIndex > itemCount - 1 ? itemCount - 1 : endIndex;
|
|
166
166
|
}
|
|
167
167
|
return endIndex;
|
|
168
168
|
});
|
|
@@ -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
|
const hoverStyleProps = `
|
|
10
8
|
background: var(--n-item-color-hover);
|
|
11
9
|
color: var(--n-item-text-color-hover);
|
|
@@ -15,7 +13,8 @@ const hoverStyleChildren = [(0, cssr_1.cM)('button', `
|
|
|
15
13
|
background: var(--n-button-color-hover);
|
|
16
14
|
border: var(--n-button-border-hover);
|
|
17
15
|
color: var(--n-button-icon-color-hover);
|
|
18
|
-
`)];
|
|
16
|
+
`)];
|
|
17
|
+
// vars:
|
|
19
18
|
// --n-item-font-size
|
|
20
19
|
// --n-select-width
|
|
21
20
|
// --n-input-width
|
|
@@ -51,7 +50,6 @@ const hoverStyleChildren = [(0, cssr_1.cM)('button', `
|
|
|
51
50
|
// --n-button-color
|
|
52
51
|
// --n-button-color-hover
|
|
53
52
|
// --n-button-color-pressed
|
|
54
|
-
|
|
55
53
|
exports.default = (0, cssr_1.cB)('pagination', `
|
|
56
54
|
display: flex;
|
|
57
55
|
vertical-align: middle;
|
|
@@ -3,14 +3,12 @@
|
|
|
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-icon-size
|
|
10
10
|
// --n-bezier
|
|
11
11
|
// --n-icon-color
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
exports.default = (0, cssr_1.cB)('popconfirm', [(0, cssr_1.cE)('body', `
|
|
15
13
|
font-size: var(--n-font-size);
|
|
16
14
|
display: flex;
|
|
@@ -3,18 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
6
|
const lodash_1 = require("lodash");
|
|
8
|
-
|
|
9
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
10
|
-
|
|
11
8
|
const oppositePlacement = {
|
|
12
9
|
top: 'bottom',
|
|
13
10
|
bottom: 'top',
|
|
14
11
|
left: 'right',
|
|
15
12
|
right: 'left'
|
|
16
13
|
};
|
|
17
|
-
const arrowSize = 'var(--n-arrow-height) * 1.414';
|
|
14
|
+
const arrowSize = 'var(--n-arrow-height) * 1.414';
|
|
15
|
+
// vars:
|
|
18
16
|
// --n-bezier
|
|
19
17
|
// --n-bezier-ease-in
|
|
20
18
|
// --n-bezier-ease-out
|
|
@@ -29,7 +27,6 @@ const arrowSize = 'var(--n-arrow-height) * 1.414'; // vars:
|
|
|
29
27
|
// --n-space
|
|
30
28
|
// --n-space-arrow
|
|
31
29
|
// --n-divider-color
|
|
32
|
-
|
|
33
30
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
34
31
|
transition:
|
|
35
32
|
box-shadow .3s var(--n-bezier),
|
|
@@ -39,6 +36,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
39
36
|
font-size: var(--n-font-size);
|
|
40
37
|
color: var(--n-text-color);
|
|
41
38
|
box-shadow: var(--n-box-shadow);
|
|
39
|
+
word-break: break-word;
|
|
42
40
|
`, [(0, cssr_1.c)('>', [(0, cssr_1.cB)('scrollbar', `
|
|
43
41
|
height: inherit;
|
|
44
42
|
max-height: inherit;
|
|
@@ -71,7 +69,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
71
69
|
transform: rotate(45deg);
|
|
72
70
|
background-color: var(--n-color);
|
|
73
71
|
pointer-events: all;
|
|
74
|
-
`)]),
|
|
72
|
+
`)]),
|
|
73
|
+
// body transition
|
|
75
74
|
(0, cssr_1.c)('&.popover-transition-enter-from, &.popover-transition-leave-to', `
|
|
76
75
|
opacity: 0;
|
|
77
76
|
transform: scale(.85);
|
|
@@ -148,11 +147,9 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('popover', `
|
|
|
148
147
|
return (0, cssr_1.c)(`[v-placement="${placement}"] >`, [(0, cssr_1.cB)('popover-shared', [(0, cssr_1.cM)('center-arrow', [(0, cssr_1.cB)('popover-arrow', `${direction}: calc(max(${centerOffset}, ${offset}) ${isReverse ? '+' : '-'} var(--v-offset-${isVertical ? 'left' : 'top'}));`)])])]);
|
|
149
148
|
});
|
|
150
149
|
})]);
|
|
151
|
-
|
|
152
150
|
function getArrowOffset(placement) {
|
|
153
151
|
return ['top', 'bottom'].includes(placement.split('-')[0]) ? 'var(--n-arrow-offset)' : 'var(--n-arrow-offset-vertical)';
|
|
154
152
|
}
|
|
155
|
-
|
|
156
153
|
function placementStyle(placement, arrowStyleLiteral) {
|
|
157
154
|
const position = placement.split('-')[0];
|
|
158
155
|
const sizeStyle = ['top', 'bottom'].includes(position) ? 'height: var(--n-space-arrow);' : 'width: var(--n-space-arrow);';
|
|
@@ -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-menu-box-shadow
|
|
10
8
|
exports.default = (0, cssr_1.cB)('popselect-menu', `
|
|
11
9
|
box-shadow: var(--n-menu-box-shadow);
|
|
12
10
|
`);
|
|
@@ -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-fill-color
|
|
10
10
|
// --n-font-size
|
|
@@ -19,8 +19,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars
|
|
|
19
19
|
// --n-text-color-circle
|
|
20
20
|
// --n-text-color-line-inner
|
|
21
21
|
// --n-text-color-line-outer
|
|
22
|
-
|
|
23
|
-
|
|
24
22
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('progress', {
|
|
25
23
|
display: 'inline-block'
|
|
26
24
|
}, [(0, cssr_1.cB)('progress-icon', `
|
|
@@ -3,16 +3,14 @@
|
|
|
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-button-border-color
|
|
10
10
|
// --n-button-border-color-active
|
|
11
11
|
// --n-height
|
|
12
12
|
// --n-opacity-disabled
|
|
13
13
|
// --n-font-size
|
|
14
|
-
|
|
15
|
-
|
|
16
14
|
exports.default = (0, cssr_1.cB)('radio-group', `
|
|
17
15
|
display: inline-block;
|
|
18
16
|
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-box-shadow
|
|
10
10
|
// --n-box-shadow-active
|
|
@@ -22,8 +22,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
22
22
|
// --n-label-padding
|
|
23
23
|
// --n-label-line-height
|
|
24
24
|
// --n-color-active
|
|
25
|
-
|
|
26
|
-
|
|
27
25
|
exports.default = (0, cssr_1.cB)('radio', `
|
|
28
26
|
line-height: var(--n-label-line-height);
|
|
29
27
|
outline: none;
|
|
@@ -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.c)([(0, cssr_1.cB)('radio', [(0, cssr_1.cM)('rtl', `
|
|
10
8
|
direction: rtl;
|
|
11
9
|
`)]), (0, cssr_1.cB)('radio-group', [(0, cssr_1.cM)('rtl', `
|
|
@@ -3,13 +3,11 @@
|
|
|
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-item-color
|
|
10
10
|
// --n-item-color-active
|
|
11
|
-
|
|
12
|
-
|
|
13
11
|
exports.default = (0, cssr_1.cB)('rate', {
|
|
14
12
|
display: 'inline-flex',
|
|
15
13
|
flexWrap: 'nowrap'
|
|
@@ -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
|
+
// --n-bezier
|
|
8
8
|
// --n-font-size
|
|
9
9
|
// --n-icon-size
|
|
10
10
|
// --n-line-height
|
|
@@ -12,8 +12,6 @@ const cssr_1 = require("../../../_utils/cssr"); // --n-bezier
|
|
|
12
12
|
// --n-title-font-size
|
|
13
13
|
// --n-title-font-weight
|
|
14
14
|
// --n-title-text-color
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
exports.default = (0, cssr_1.cB)('result', `
|
|
18
16
|
color: var(--n-text-color);
|
|
19
17
|
line-height: var(--n-line-height);
|
package/lib/select/src/Select.js
CHANGED
|
@@ -201,6 +201,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
201
201
|
const selectedOptionsRef = (0, vue_1.computed)(() => {
|
|
202
202
|
if (props.multiple) {
|
|
203
203
|
const { value: values } = mergedValueRef;
|
|
204
|
+
console.log('values', values);
|
|
204
205
|
if (!Array.isArray(values))
|
|
205
206
|
return [];
|
|
206
207
|
return getMergedOptions(values);
|
|
@@ -3,12 +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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
8
|
+
// --n-menu-box-shadow
|
|
12
9
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('select', `
|
|
13
10
|
z-index: auto;
|
|
14
11
|
outline: none;
|