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
|
@@ -3,14 +3,11 @@
|
|
|
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
7
|
const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr");
|
|
10
|
-
|
|
11
8
|
const cssr_1 = require("../../../_utils/cssr");
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const fixedColumnStyle = createFixedColumnStyle();
|
|
10
|
+
// vars:
|
|
14
11
|
// --n-font-size
|
|
15
12
|
// --n-th-padding
|
|
16
13
|
// --n-td-padding
|
|
@@ -52,7 +49,6 @@ const fixedColumnStyle = createFixedColumnStyle(); // vars:
|
|
|
52
49
|
// --n-opacity-loading
|
|
53
50
|
// --n-box-shadow-before used in Body.tsx
|
|
54
51
|
// --n-box-shadow-after used in Body.tsx
|
|
55
|
-
|
|
56
52
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
57
53
|
width: 100%;
|
|
58
54
|
font-size: var(--n-font-size);
|
|
@@ -73,9 +69,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
73
69
|
display: flex;
|
|
74
70
|
flex-direction: column;
|
|
75
71
|
flex-grow: 1;
|
|
76
|
-
`, [(0, cssr_1.c)('>', [(0, cssr_1.cB)('data-table-base-table-body', 'flex-basis: 0;', [
|
|
72
|
+
`, [(0, cssr_1.c)('>', [(0, cssr_1.cB)('data-table-base-table-body', 'flex-basis: 0;', [
|
|
73
|
+
// last-child means there is no empty icon
|
|
77
74
|
// body is a scrollbar, we need to override height 100%
|
|
78
|
-
(0, cssr_1.c)('&:last-child', 'flex-grow: 1;')])])])])])])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('
|
|
75
|
+
(0, cssr_1.c)('&:last-child', 'flex-grow: 1;')])])])])])])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('data-table-loading-wrapper', `
|
|
79
76
|
color: var(--n-loading-color);
|
|
80
77
|
font-size: var(--n-loading-size);
|
|
81
78
|
position: absolute;
|
|
@@ -83,6 +80,9 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
83
80
|
top: 50%;
|
|
84
81
|
transform: translateX(-50%) translateY(-50%);
|
|
85
82
|
transition: color .3s var(--n-bezier);
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
86
|
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
87
87
|
originalTransform: 'translateX(-50%) translateY(-50%)'
|
|
88
88
|
})])]), (0, cssr_1.cB)('data-table-expand-placeholder', `
|
|
@@ -142,7 +142,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
142
142
|
margin: calc(var(--n-th-padding) * -1);
|
|
143
143
|
padding: var(--n-th-padding);
|
|
144
144
|
box-sizing: border-box;
|
|
145
|
-
`), (0, cssr_1.cM)('striped', 'background-color: var(--n-merged-td-color-striped);', [(0, cssr_1.cB)('data-table-td', 'background-color: var(--n-merged-td-color-striped);')]), (0, cssr_1.cNotM)('summary', [(0, cssr_1.c)('&:hover', 'background-color: var(--n-merged-td-color-hover);', [(0, cssr_1.cB)('data-table-td', 'background-color: var(--n-merged-td-color-hover);')])])]), (0, cssr_1.cB)('data-table-th', `
|
|
145
|
+
`), (0, cssr_1.cM)('striped', 'background-color: var(--n-merged-td-color-striped);', [(0, cssr_1.cB)('data-table-td', 'background-color: var(--n-merged-td-color-striped);')]), (0, cssr_1.cNotM)('summary', [(0, cssr_1.c)('&:hover', 'background-color: var(--n-merged-td-color-hover);', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('data-table-td', 'background-color: var(--n-merged-td-color-hover);')])])])]), (0, cssr_1.cB)('data-table-th', `
|
|
146
146
|
padding: var(--n-th-padding);
|
|
147
147
|
position: relative;
|
|
148
148
|
text-align: start;
|
|
@@ -158,12 +158,20 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
158
158
|
font-weight: var(--n-th-font-weight);
|
|
159
159
|
`, [(0, cssr_1.cM)('filterable', {
|
|
160
160
|
paddingRight: '36px'
|
|
161
|
-
}
|
|
161
|
+
}, [(0, cssr_1.cM)('sortable', {
|
|
162
|
+
paddingRight: 'calc(var(--n-th-padding) + 36px)'
|
|
163
|
+
})]), fixedColumnStyle, (0, cssr_1.cM)('selection', `
|
|
162
164
|
padding: 0;
|
|
163
165
|
text-align: center;
|
|
164
166
|
line-height: 0;
|
|
165
167
|
z-index: 3;
|
|
166
|
-
`), (0, cssr_1.cE)('
|
|
168
|
+
`), (0, cssr_1.cE)('title', {
|
|
169
|
+
display: 'flex',
|
|
170
|
+
alignItems: 'center',
|
|
171
|
+
justifyContent: 'space-between',
|
|
172
|
+
flex: 'auto',
|
|
173
|
+
maxWidth: '100%'
|
|
174
|
+
}), (0, cssr_1.cE)('ellipsis', `
|
|
167
175
|
display: inline-block;
|
|
168
176
|
vertical-align: bottom;
|
|
169
177
|
text-overflow: ellipsis;
|
|
@@ -259,7 +267,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
259
267
|
margin-right: 0;
|
|
260
268
|
`)]), (0, cssr_1.cM)('last-row', {
|
|
261
269
|
borderBottom: '0 solid var(--n-merged-border-color)'
|
|
262
|
-
}, [
|
|
270
|
+
}, [
|
|
271
|
+
// make sure there is no overlap between bottom border and
|
|
263
272
|
// fixed column box shadow
|
|
264
273
|
(0, cssr_1.c)('&::after', {
|
|
265
274
|
bottom: '0 !important'
|
|
@@ -396,7 +405,6 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
396
405
|
--n-merged-td-color-hover: var(--n-td-color-hover-popover);
|
|
397
406
|
--n-merged-td-color-striped: var(--n-td-color-striped-popover);
|
|
398
407
|
`))]);
|
|
399
|
-
|
|
400
408
|
function createFixedColumnStyle() {
|
|
401
409
|
return [(0, cssr_1.cM)('fixed-left', `
|
|
402
410
|
left: 0;
|
|
@@ -458,6 +458,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
458
458
|
// TODO, fix conflict with clear
|
|
459
459
|
if (v === '') {
|
|
460
460
|
doUpdateValue(null, { doConfirm: false });
|
|
461
|
+
pendingValueRef.value = null;
|
|
462
|
+
singleInputValueRef.value = '';
|
|
461
463
|
return;
|
|
462
464
|
}
|
|
463
465
|
const newSelectedDateTime = (0, utils_1.strictParse)(v, mergedFormatRef.value, new Date(), dateFnsOptionsRef.value);
|
|
@@ -473,6 +475,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
473
475
|
if (v[0] === '' && v[1] === '') {
|
|
474
476
|
// clear or just delete all the inputs
|
|
475
477
|
doUpdateValue(null, { doConfirm: false });
|
|
478
|
+
pendingValueRef.value = null;
|
|
479
|
+
rangeStartInputValueRef.value = '';
|
|
480
|
+
rangeEndInputValueRef.value = '';
|
|
476
481
|
return;
|
|
477
482
|
}
|
|
478
483
|
const [startTime, endTime] = v;
|
|
@@ -76,8 +76,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
$slots: Readonly<{
|
|
77
77
|
[name: string]: import("vue").Slot | undefined;
|
|
78
78
|
}>;
|
|
79
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
80
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
79
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
80
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
81
81
|
$emit: (event: string, ...args: any[]) => void;
|
|
82
82
|
$el: any;
|
|
83
83
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1236,7 +1236,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1236
1236
|
actions: string[];
|
|
1237
1237
|
panel: boolean;
|
|
1238
1238
|
useAsQuickJump: boolean;
|
|
1239
|
-
}> & {
|
|
1239
|
+
}, {}, string> & {
|
|
1240
1240
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
1241
1241
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
1242
1242
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1251,11 +1251,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1251
1251
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
1252
1252
|
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
1253
1253
|
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
1254
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
1254
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
1255
1255
|
};
|
|
1256
1256
|
$forceUpdate: () => void;
|
|
1257
1257
|
$nextTick: typeof import("vue").nextTick;
|
|
1258
|
-
$watch
|
|
1258
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
1259
1259
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
1260
1260
|
type: {
|
|
1261
1261
|
type: PropType<"month" | "year" | "quarter">;
|
|
@@ -2406,7 +2406,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2406
2406
|
handleConfirmClick: () => void;
|
|
2407
2407
|
handleSingleShortcutMouseenter: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
2408
2408
|
handleSingleShortcutClick: (shortcut: number | [number, number] | (() => number) | readonly [number, number] | (() => [number, number] | readonly [number, number])) => void;
|
|
2409
|
-
}> & {} & import("vue").ComponentCustomProperties) | null>;
|
|
2409
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
|
|
2410
2410
|
handleHeaderClick: () => void;
|
|
2411
2411
|
handleClickOutside: (e: MouseEvent) => void;
|
|
2412
2412
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -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-icon-color-override
|
|
12
11
|
// --n-icon-color-disabled-override
|
|
@@ -55,8 +54,6 @@ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-sc
|
|
|
55
54
|
// panel arrow
|
|
56
55
|
// --n-arrow-size
|
|
57
56
|
// --n-arrow-color
|
|
58
|
-
|
|
59
|
-
|
|
60
57
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('date-picker', `
|
|
61
58
|
position: relative;
|
|
62
59
|
z-index: auto;
|
|
@@ -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-th-padding
|
|
9
9
|
// --n-td-padding
|
|
10
10
|
// --n-font-size
|
|
@@ -24,8 +24,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
24
24
|
// --n-border-color-modal
|
|
25
25
|
// --n-border-color-popover
|
|
26
26
|
// --n-title-text-color
|
|
27
|
-
|
|
28
|
-
|
|
29
27
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('descriptions', {
|
|
30
28
|
fontSize: 'var(--n-font-size)'
|
|
31
29
|
}, [(0, cssr_1.cB)('descriptions-separator', `
|
|
@@ -2,6 +2,7 @@ import { PropType, CSSProperties } from 'vue';
|
|
|
2
2
|
export declare const exposedDialogEnvProps: {
|
|
3
3
|
readonly onAfterEnter: PropType<() => void>;
|
|
4
4
|
readonly onAfterLeave: PropType<() => void>;
|
|
5
|
+
readonly transformOrigin: PropType<"center" | "mouse">;
|
|
5
6
|
readonly blockScroll: {
|
|
6
7
|
readonly type: BooleanConstructor;
|
|
7
8
|
readonly default: true;
|
|
@@ -60,6 +61,7 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
60
61
|
};
|
|
61
62
|
onAfterEnter: PropType<() => void>;
|
|
62
63
|
onAfterLeave: PropType<() => void>;
|
|
64
|
+
transformOrigin: PropType<"center" | "mouse">;
|
|
63
65
|
blockScroll: {
|
|
64
66
|
readonly type: BooleanConstructor;
|
|
65
67
|
readonly default: true;
|
|
@@ -127,6 +129,7 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
127
129
|
};
|
|
128
130
|
onAfterEnter: PropType<() => void>;
|
|
129
131
|
onAfterLeave: PropType<() => void>;
|
|
132
|
+
transformOrigin: PropType<"center" | "mouse">;
|
|
130
133
|
blockScroll: {
|
|
131
134
|
readonly type: BooleanConstructor;
|
|
132
135
|
readonly default: true;
|
|
@@ -11,7 +11,7 @@ const Modal_1 = __importDefault(require("../../modal/src/Modal"));
|
|
|
11
11
|
const _utils_1 = require("../../_utils");
|
|
12
12
|
const Dialog_1 = require("./Dialog");
|
|
13
13
|
const dialogProps_1 = require("./dialogProps");
|
|
14
|
-
exports.exposedDialogEnvProps = Object.assign(Object.assign({}, dialogProps_1.dialogProps), { onAfterEnter: Function, onAfterLeave: Function, blockScroll: { type: Boolean, default: true }, closeOnEsc: { type: Boolean, default: true }, onEsc: Function, autoFocus: {
|
|
14
|
+
exports.exposedDialogEnvProps = Object.assign(Object.assign({}, dialogProps_1.dialogProps), { onAfterEnter: Function, onAfterLeave: Function, transformOrigin: String, blockScroll: { type: Boolean, default: true }, closeOnEsc: { type: Boolean, default: true }, onEsc: Function, autoFocus: {
|
|
15
15
|
type: Boolean,
|
|
16
16
|
default: true
|
|
17
17
|
}, internalStyle: [String, Object], maskClosable: {
|
|
@@ -110,7 +110,7 @@ exports.NDialogEnvironment = (0, vue_1.defineComponent)({
|
|
|
110
110
|
},
|
|
111
111
|
render() {
|
|
112
112
|
const { handlePositiveClick, handleUpdateShow, handleNegativeClick, handleCloseClick, handleAfterLeave, handleMaskClick, handleEsc, to, maskClosable, show } = this;
|
|
113
|
-
return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, onEsc: handleEsc, to: to, maskClosable: maskClosable, onAfterEnter: this.onAfterEnter, onAfterLeave: handleAfterLeave, closeOnEsc: this.closeOnEsc, blockScroll: this.blockScroll, autoFocus: this.autoFocus, internalAppear: true, internalDialog: true }, {
|
|
113
|
+
return ((0, vue_1.h)(Modal_1.default, { show: show, onUpdateShow: handleUpdateShow, onMaskClick: handleMaskClick, onEsc: handleEsc, to: to, maskClosable: maskClosable, onAfterEnter: this.onAfterEnter, onAfterLeave: handleAfterLeave, closeOnEsc: this.closeOnEsc, blockScroll: this.blockScroll, autoFocus: this.autoFocus, transformOrigin: this.transformOrigin, internalAppear: true, internalDialog: true }, {
|
|
114
114
|
default: () => ((0, vue_1.h)(Dialog_1.NDialog, Object.assign({}, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { style: this.internalStyle, onClose: handleCloseClick, onNegativeClick: handleNegativeClick, onPositiveClick: handlePositiveClick })))
|
|
115
115
|
}));
|
|
116
116
|
}
|
|
@@ -44,6 +44,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
44
44
|
type?: "default" | "error" | "info" | "success" | "warning" | undefined;
|
|
45
45
|
content?: string | (() => import("vue").VNodeChild) | undefined;
|
|
46
46
|
icon?: (() => import("vue").VNodeChild) | undefined;
|
|
47
|
+
transformOrigin?: "center" | "mouse" | undefined;
|
|
47
48
|
onAfterEnter?: (() => void) | undefined;
|
|
48
49
|
onAfterLeave?: (() => void) | undefined;
|
|
49
50
|
title?: string | (() => import("vue").VNodeChild) | undefined;
|
|
@@ -387,6 +388,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
387
388
|
loading?: boolean | undefined;
|
|
388
389
|
bordered?: boolean | undefined;
|
|
389
390
|
textColor?: string | undefined;
|
|
391
|
+
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
390
392
|
tertiary?: boolean | undefined;
|
|
391
393
|
ghost?: boolean | undefined;
|
|
392
394
|
secondary?: boolean | undefined;
|
|
@@ -725,6 +727,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
725
727
|
loading?: boolean | undefined;
|
|
726
728
|
bordered?: boolean | undefined;
|
|
727
729
|
textColor?: string | undefined;
|
|
730
|
+
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
728
731
|
tertiary?: boolean | undefined;
|
|
729
732
|
ghost?: boolean | undefined;
|
|
730
733
|
secondary?: boolean | undefined;
|
|
@@ -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-icon-color
|
|
9
9
|
// --n-bezier
|
|
10
10
|
// --n-icon-margin
|
|
@@ -28,8 +28,6 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
28
28
|
// --n-title-font-weight
|
|
29
29
|
// --n-title-text-color
|
|
30
30
|
// --n-action-space
|
|
31
|
-
|
|
32
|
-
|
|
33
31
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('dialog', `
|
|
34
32
|
word-break: break-word;
|
|
35
33
|
line-height: var(--n-line-height);
|
|
@@ -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-bezier
|
|
9
9
|
// --n-color
|
|
10
10
|
// --n-text-color
|
|
11
11
|
// --n-font-weight
|
|
12
|
-
|
|
13
|
-
|
|
14
12
|
exports.default = (0, cssr_1.cB)('divider', `
|
|
15
13
|
position: relative;
|
|
16
14
|
display: flex;
|
|
@@ -3,18 +3,13 @@
|
|
|
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 slide_in_from_right_1 = require("../../../_styles/transitions/slide-in-from-right");
|
|
10
|
-
|
|
11
8
|
const slide_in_from_left_1 = require("../../../_styles/transitions/slide-in-from-left");
|
|
12
|
-
|
|
13
9
|
const slide_in_from_top_1 = require("../../../_styles/transitions/slide-in-from-top");
|
|
14
|
-
|
|
15
10
|
const slide_in_from_bottom_1 = require("../../../_styles/transitions/slide-in-from-bottom");
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
const fade_in_cssr_1 = require("../../../_styles/transitions/fade-in.cssr");
|
|
12
|
+
// vars:
|
|
18
13
|
// --n-line-height
|
|
19
14
|
// --n-color
|
|
20
15
|
// --n-text-color
|
|
@@ -38,8 +33,6 @@ const fade_in_cssr_1 = require("../../../_styles/transitions/fade-in.cssr"); //
|
|
|
38
33
|
// --n-close-icon-color-pressed
|
|
39
34
|
// --n-close-size
|
|
40
35
|
// --n-close-icon-size
|
|
41
|
-
|
|
42
|
-
|
|
43
36
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('drawer', `
|
|
44
37
|
word-break: break-word;
|
|
45
38
|
line-height: var(--n-line-height);
|
|
@@ -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-font-size
|
|
12
11
|
// --n-padding
|
|
@@ -30,8 +29,6 @@ const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-sc
|
|
|
30
29
|
// --n-option-opacity-disabled
|
|
31
30
|
// shared with popover
|
|
32
31
|
// --n-box-shadow
|
|
33
|
-
|
|
34
|
-
|
|
35
32
|
exports.default = (0, cssr_1.cB)('dropdown-menu', `
|
|
36
33
|
transform-origin: var(--v-transform-origin);
|
|
37
34
|
background-color: var(--n-color);
|
|
@@ -3,11 +3,9 @@
|
|
|
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
|
// --action-margin
|
|
9
|
-
|
|
10
|
-
|
|
11
9
|
exports.default = (0, cssr_1.cB)('dynamic-input', {
|
|
12
10
|
width: '100%'
|
|
13
11
|
}, [(0, cssr_1.cB)('dynamic-input-item', `
|
|
@@ -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)('dynamic-input', [(0, cssr_1.cM)('rtl', `
|
|
10
8
|
direction: rtl;
|
|
11
9
|
`, [(0, cssr_1.cB)('dynamic-input-preset-pair', [(0, cssr_1.cB)('dynamic-input-pair-input', [(0, cssr_1.c)('&:first-child', {
|
|
@@ -3,11 +3,9 @@
|
|
|
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
|
// --input-width
|
|
9
|
-
|
|
10
|
-
|
|
11
9
|
exports.default = (0, cssr_1.cB)('dynamic-tags', [(0, cssr_1.cB)('input', {
|
|
12
10
|
minWidth: 'var(--n-input-width)'
|
|
13
11
|
})]);
|
|
@@ -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-font-size
|
|
9
9
|
// --n-icon-size
|
|
10
10
|
// --n-icon-color
|
|
11
11
|
// --n-bezier
|
|
12
12
|
// --n-text-color
|
|
13
13
|
// --n-extra-text-color
|
|
14
|
-
|
|
15
|
-
|
|
16
14
|
exports.default = (0, cssr_1.cB)('empty', `
|
|
17
15
|
display: flex;
|
|
18
16
|
flex-direction: column;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Equation as NEquation, equationProps } from './src/Equation';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.equationProps = exports.NEquation = void 0;
|
|
4
|
+
var Equation_1 = require("./src/Equation");
|
|
5
|
+
Object.defineProperty(exports, "NEquation", { enumerable: true, get: function () { return Equation_1.Equation; } });
|
|
6
|
+
Object.defineProperty(exports, "equationProps", { enumerable: true, get: function () { return Equation_1.equationProps; } });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { KatexOptions } from 'katex';
|
|
3
|
+
export declare const equationProps: {
|
|
4
|
+
readonly value: StringConstructor;
|
|
5
|
+
readonly katex: PropType<typeof import("katex").default>;
|
|
6
|
+
readonly katexOptions: PropType<KatexOptions>;
|
|
7
|
+
};
|
|
8
|
+
export declare const Equation: import("vue").DefineComponent<{
|
|
9
|
+
readonly value: StringConstructor;
|
|
10
|
+
readonly katex: PropType<typeof import("katex").default>;
|
|
11
|
+
readonly katexOptions: PropType<KatexOptions>;
|
|
12
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
readonly value: StringConstructor;
|
|
16
|
+
readonly katex: PropType<typeof import("katex").default>;
|
|
17
|
+
readonly katexOptions: PropType<KatexOptions>;
|
|
18
|
+
}>>, {}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Equation = exports.equationProps = void 0;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const context_1 = require("../../config-provider/src/context");
|
|
6
|
+
exports.equationProps = {
|
|
7
|
+
value: String,
|
|
8
|
+
katex: Object,
|
|
9
|
+
katexOptions: Object
|
|
10
|
+
};
|
|
11
|
+
exports.Equation = (0, vue_1.defineComponent)({
|
|
12
|
+
name: 'Equation',
|
|
13
|
+
props: exports.equationProps,
|
|
14
|
+
setup(props) {
|
|
15
|
+
const configProviderContext = (0, vue_1.inject)(context_1.configProviderInjectionKey);
|
|
16
|
+
const extractedHtmlInfo = (0, vue_1.computed)(() => {
|
|
17
|
+
var _a;
|
|
18
|
+
const outerHtml = ((_a = (props.katex || (configProviderContext === null || configProviderContext === void 0 ? void 0 : configProviderContext.mergedKatexRef.value))) === null || _a === void 0 ? void 0 : _a.renderToString(props.value || '', Object.assign({ throwOnError: false }, props.katexOptions))) || 'no katex provided';
|
|
19
|
+
const matchResult = outerHtml.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/);
|
|
20
|
+
const wrapperTag = (matchResult === null || matchResult === void 0 ? void 0 : matchResult[1]) || 'span';
|
|
21
|
+
const wrapperClass = matchResult === null || matchResult === void 0 ? void 0 : matchResult[2];
|
|
22
|
+
const innerHtml = outerHtml
|
|
23
|
+
.replace(/^<[a-z]+[^>]*>/, '')
|
|
24
|
+
.replace(/<\/[a-z]+>$/, '');
|
|
25
|
+
return { wrapperTag, innerHtml, wrapperClass };
|
|
26
|
+
});
|
|
27
|
+
return () => {
|
|
28
|
+
const { innerHtml, wrapperClass, wrapperTag } = extractedHtmlInfo.value;
|
|
29
|
+
return (0, vue_1.h)(wrapperTag, { class: wrapperClass, innerHTML: innerHtml });
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_1 = require("../../_styles/common");
|
|
4
|
+
const light_1 = require("./light");
|
|
5
|
+
const equationDark = {
|
|
6
|
+
name: 'Equation',
|
|
7
|
+
common: common_1.commonDark,
|
|
8
|
+
self: light_1.self
|
|
9
|
+
};
|
|
10
|
+
exports.default = equationDark;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
exports.equationLight = exports.equationDark = void 0;
|
|
7
|
+
var dark_1 = require("./dark");
|
|
8
|
+
Object.defineProperty(exports, "equationDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
|
+
var light_1 = require("./light");
|
|
10
|
+
Object.defineProperty(exports, "equationLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Theme } from '../../_mixins';
|
|
2
|
+
export declare const self: () => {};
|
|
3
|
+
export declare type EquationThemeVars = ReturnType<typeof self>;
|
|
4
|
+
declare const equationLight: Theme<'Equation', EquationThemeVars>;
|
|
5
|
+
export default equationLight;
|
|
6
|
+
export declare type EquationTheme = typeof equationLight;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.self = void 0;
|
|
4
|
+
const common_1 = require("../../_styles/common");
|
|
5
|
+
const self = () => ({});
|
|
6
|
+
exports.self = self;
|
|
7
|
+
const equationLight = {
|
|
8
|
+
name: 'Equation',
|
|
9
|
+
common: common_1.commonLight,
|
|
10
|
+
self: exports.self
|
|
11
|
+
};
|
|
12
|
+
exports.default = equationLight;
|
|
@@ -267,8 +267,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
267
267
|
'--n-feedback-text-color-warning': string;
|
|
268
268
|
'--n-feedback-text-color-error': string;
|
|
269
269
|
}> | undefined;
|
|
270
|
-
themeClass: import("vue").Ref<string
|
|
271
|
-
onRender: () => void;
|
|
270
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
271
|
+
onRender: (() => void) | undefined;
|
|
272
272
|
validate: import("./interface").FormItemValidate;
|
|
273
273
|
restoreValidation: () => void;
|
|
274
274
|
path?: string | undefined;
|
|
@@ -292,6 +292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
292
292
|
key: string;
|
|
293
293
|
render: () => VNodeChild;
|
|
294
294
|
}[]>;
|
|
295
|
+
reverseColSpace: import("vue").ComputedRef<boolean>;
|
|
295
296
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
296
297
|
readonly label: StringConstructor;
|
|
297
298
|
readonly labelWidth: PropType<string | number>;
|