naive-ui 2.23.2 → 2.24.3

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.
Files changed (1067) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/es/_internal/clear/src/Clear.d.ts +8 -10
  4. package/es/_internal/close/src/Close.d.ts +11 -10
  5. package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +10 -20
  6. package/es/_internal/focus-detector/src/FocusDetector.d.ts +4 -7
  7. package/es/_internal/icon/src/Icon.d.ts +19 -20
  8. package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  9. package/es/_internal/icons/Add.d.ts +1 -1
  10. package/es/_internal/icons/ArrowBack.d.ts +1 -1
  11. package/es/_internal/icons/ArrowDown.d.ts +1 -1
  12. package/es/_internal/icons/Attach.d.ts +1 -1
  13. package/es/_internal/icons/Backward.d.ts +1 -1
  14. package/es/_internal/icons/Cancel.d.ts +1 -1
  15. package/es/_internal/icons/Checkmark.d.ts +1 -1
  16. package/es/_internal/icons/ChevronDown.d.ts +1 -1
  17. package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
  18. package/es/_internal/icons/ChevronLeft.d.ts +1 -1
  19. package/es/_internal/icons/ChevronRight.d.ts +1 -1
  20. package/es/_internal/icons/Clear.d.ts +1 -1
  21. package/es/_internal/icons/Close.d.ts +1 -1
  22. package/es/_internal/icons/Date.d.ts +1 -1
  23. package/es/_internal/icons/Download.d.ts +1 -1
  24. package/es/_internal/icons/Empty.d.ts +1 -1
  25. package/es/_internal/icons/Error.d.ts +1 -1
  26. package/es/_internal/icons/Eye.d.ts +1 -1
  27. package/es/_internal/icons/EyeOff.d.ts +1 -1
  28. package/es/_internal/icons/FastBackward.d.ts +1 -1
  29. package/es/_internal/icons/FastForward.d.ts +1 -1
  30. package/es/_internal/icons/File.d.ts +1 -1
  31. package/es/_internal/icons/Filter.d.ts +1 -1
  32. package/es/_internal/icons/Forward.d.ts +1 -1
  33. package/es/_internal/icons/Info.d.ts +1 -1
  34. package/es/_internal/icons/More.d.ts +1 -1
  35. package/es/_internal/icons/Photo.d.ts +1 -1
  36. package/es/_internal/icons/Remove.d.ts +1 -1
  37. package/es/_internal/icons/Retry.d.ts +1 -1
  38. package/es/_internal/icons/RotateClockwise.d.ts +1 -1
  39. package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  40. package/es/_internal/icons/Search.d.ts +1 -1
  41. package/es/_internal/icons/Success.d.ts +1 -1
  42. package/es/_internal/icons/Switcher.d.ts +1 -1
  43. package/es/_internal/icons/Switcher.js +2 -3
  44. package/es/_internal/icons/Time.d.ts +1 -1
  45. package/es/_internal/icons/To.d.ts +1 -1
  46. package/es/_internal/icons/Trash.d.ts +1 -1
  47. package/es/_internal/icons/Warning.d.ts +1 -1
  48. package/es/_internal/icons/ZoomIn.d.ts +1 -1
  49. package/es/_internal/icons/ZoomOut.d.ts +1 -1
  50. package/es/_internal/icons/replaceable.d.ts +1 -1
  51. package/es/_internal/loading/src/Loading.d.ts +26 -16
  52. package/es/_internal/menu-mask/src/MenuMask.d.ts +6 -5
  53. package/es/_internal/scrollbar/src/ScrollBar.d.ts +54 -58
  54. package/es/_internal/scrollbar/src/ScrollBar.js +90 -68
  55. package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +10 -7
  56. package/es/_internal/select-menu/src/SelectMenu.d.ts +67 -63
  57. package/es/_internal/select-menu/src/SelectMenu.js +22 -21
  58. package/es/_internal/select-menu/src/SelectOption.d.ts +10 -7
  59. package/es/_internal/select-menu/src/interface.d.ts +3 -3
  60. package/es/_internal/select-menu/src/interface.js +3 -2
  61. package/es/_internal/selection/src/Selection.d.ts +67 -69
  62. package/es/_internal/selection/src/Selection.js +25 -8
  63. package/es/_internal/selection/src/styles/index.cssr.js +2 -1
  64. package/es/_internal/selection/styles/_common.d.ts +1 -0
  65. package/es/_internal/selection/styles/_common.js +2 -1
  66. package/es/_internal/selection/styles/light.d.ts +2 -0
  67. package/es/_internal/slot-machine/src/SlotMachine.d.ts +18 -12
  68. package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +18 -12
  69. package/es/_internal/suffix/src/Suffix.d.ts +19 -14
  70. package/es/_internal/suffix/src/Suffix.js +7 -2
  71. package/es/_internal/wave/src/Wave.d.ts +6 -5
  72. package/es/_mixins/use-form-item.d.ts +2 -2
  73. package/es/_mixins/use-form-item.js +2 -1
  74. package/es/_mixins/use-locale.d.ts +1 -1
  75. package/es/_mixins/use-locale.js +1 -1
  76. package/es/_utils/index.d.ts +1 -1
  77. package/es/_utils/index.js +1 -1
  78. package/es/_utils/vue/create-injection-key.d.ts +2 -0
  79. package/es/_utils/vue/create-injection-key.js +3 -0
  80. package/es/_utils/vue/index.d.ts +2 -0
  81. package/es/_utils/vue/index.js +2 -0
  82. package/es/_utils/vue/resolve-slot.d.ts +2 -0
  83. package/es/_utils/vue/resolve-slot.js +20 -0
  84. package/es/affix/src/Affix.d.ts +26 -22
  85. package/es/alert/src/Alert.d.ts +34 -27
  86. package/es/alert/src/Alert.js +2 -4
  87. package/es/anchor/src/AnchorAdapter.d.ts +52 -47
  88. package/es/anchor/src/BaseAnchor.d.ts +25 -20
  89. package/es/anchor/src/Link.d.ts +6 -9
  90. package/es/anchor/src/Link.js +6 -5
  91. package/es/auto-complete/src/AutoComplete.d.ts +60 -67
  92. package/es/auto-complete/src/AutoComplete.js +13 -15
  93. package/es/avatar/src/Avatar.d.ts +27 -30
  94. package/es/avatar/src/AvatarGroup.d.ts +13 -17
  95. package/es/avatar/src/AvatarGroup.js +5 -2
  96. package/es/back-top/src/BackTop.d.ts +50 -35
  97. package/es/back-top/src/BackTop.js +2 -4
  98. package/es/badge/src/Badge.d.ts +31 -29
  99. package/es/badge/src/Badge.js +6 -5
  100. package/es/breadcrumb/src/Breadcrumb.d.ts +15 -18
  101. package/es/breadcrumb/src/Breadcrumb.js +2 -1
  102. package/es/breadcrumb/src/BreadcrumbItem.d.ts +4 -7
  103. package/es/button/src/Button.d.ts +53 -61
  104. package/es/button/src/Button.js +5 -2
  105. package/es/button/src/ButtonGroup.d.ts +10 -11
  106. package/es/button/src/ButtonGroup.js +2 -1
  107. package/es/calendar/src/Calendar.d.ts +24 -25
  108. package/es/calendar/src/Calendar.js +31 -6
  109. package/es/calendar/src/interface.d.ts +4 -0
  110. package/es/card/src/Card.d.ts +32 -37
  111. package/es/card/src/Card.js +6 -6
  112. package/es/carousel/index.d.ts +1 -0
  113. package/es/carousel/index.js +1 -0
  114. package/es/carousel/src/Carousel.d.ts +267 -41
  115. package/es/carousel/src/Carousel.js +679 -228
  116. package/es/carousel/src/CarouselArrow.d.ts +9 -0
  117. package/es/carousel/src/CarouselArrow.js +43 -0
  118. package/es/carousel/src/CarouselDots.d.ts +72 -0
  119. package/es/carousel/src/CarouselDots.js +118 -0
  120. package/es/carousel/src/CarouselItem.d.ts +11 -0
  121. package/es/carousel/src/CarouselItem.js +75 -0
  122. package/es/carousel/src/interface.d.ts +35 -0
  123. package/es/carousel/src/interface.js +3 -0
  124. package/es/carousel/src/styles/index.cssr.js +141 -38
  125. package/es/carousel/src/utils.d.ts +12 -0
  126. package/es/carousel/src/utils.js +58 -0
  127. package/es/carousel/styles/light.d.ts +3 -0
  128. package/es/carousel/styles/light.js +5 -2
  129. package/es/cascader/index.d.ts +1 -1
  130. package/es/cascader/src/Cascader.d.ts +109 -84
  131. package/es/cascader/src/Cascader.js +16 -27
  132. package/es/cascader/src/CascaderMenu.d.ts +34 -24
  133. package/es/cascader/src/CascaderMenu.js +2 -4
  134. package/es/cascader/src/CascaderOption.d.ts +8 -5
  135. package/es/cascader/src/CascaderOption.js +7 -4
  136. package/es/cascader/src/CascaderSelectMenu.d.ts +26 -20
  137. package/es/cascader/src/CascaderSubmenu.d.ts +16 -9
  138. package/es/cascader/src/interface.d.ts +7 -2
  139. package/es/cascader/src/interface.js +2 -1
  140. package/es/cascader/styles/light.d.ts +1 -0
  141. package/es/checkbox/index.d.ts +1 -0
  142. package/es/checkbox/src/Checkbox.d.ts +43 -43
  143. package/es/checkbox/src/Checkbox.js +17 -5
  144. package/es/checkbox/src/CheckboxGroup.d.ts +23 -24
  145. package/es/checkbox/src/CheckboxGroup.js +2 -2
  146. package/es/checkbox/src/interface.d.ts +4 -0
  147. package/es/checkbox/src/styles/index.cssr.js +1 -1
  148. package/es/code/src/Code.d.ts +27 -30
  149. package/es/code/src/Code.js +6 -3
  150. package/es/code/src/styles/index.cssr.js +5 -2
  151. package/es/collapse/src/Collapse.d.ts +35 -33
  152. package/es/collapse/src/Collapse.js +2 -2
  153. package/es/collapse/src/CollapseItem.d.ts +5 -9
  154. package/es/collapse/src/CollapseItem.js +8 -15
  155. package/es/collapse/src/CollapseItemContent.d.ts +11 -9
  156. package/es/collapse-transition/src/CollapseTransition.d.ts +18 -19
  157. package/es/color-picker/src/AlphaSlider.d.ts +19 -14
  158. package/es/color-picker/src/ColorInput.d.ts +34 -19
  159. package/es/color-picker/src/ColorInputUnit.d.ts +15 -11
  160. package/es/color-picker/src/ColorInputUnit.js +2 -2
  161. package/es/color-picker/src/ColorPicker.d.ts +55 -52
  162. package/es/color-picker/src/ColorPicker.js +17 -10
  163. package/es/color-picker/src/ColorPickerSwatches.d.ts +18 -11
  164. package/es/color-picker/src/ColorPickerTrigger.d.ts +15 -12
  165. package/es/color-picker/src/ColorPickerTrigger.js +23 -17
  166. package/es/color-picker/src/ColorPreview.d.ts +19 -11
  167. package/es/color-picker/src/HueSlider.d.ts +15 -12
  168. package/es/color-picker/src/Pallete.d.ts +23 -16
  169. package/es/color-picker/src/interface.d.ts +2 -0
  170. package/es/color-picker/src/styles/index.cssr.js +1 -0
  171. package/es/composables/use-theme-vars.d.ts +2 -1
  172. package/es/config-provider/src/ConfigProvider.d.ts +57 -37
  173. package/es/config-provider/src/ConfigProvider.js +6 -5
  174. package/es/config-provider/src/interface.d.ts +4 -1
  175. package/es/countdown/src/Countdown.d.ts +18 -17
  176. package/es/data-table/index.d.ts +1 -1
  177. package/es/data-table/src/DataTable.d.ts +114 -159
  178. package/es/data-table/src/DataTable.js +23 -49
  179. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -7
  180. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +36 -19
  181. package/es/data-table/src/HeaderButton/RenderFilter.d.ts +14 -9
  182. package/es/data-table/src/HeaderButton/RenderSorter.d.ts +10 -7
  183. package/es/data-table/src/HeaderButton/SortButton.d.ts +6 -5
  184. package/es/data-table/src/HeaderButton/SortButton.js +6 -6
  185. package/es/data-table/src/MainTable.d.ts +1 -1
  186. package/es/data-table/src/TableParts/Body.d.ts +13 -14
  187. package/es/data-table/src/TableParts/Body.js +2 -4
  188. package/es/data-table/src/TableParts/BodyCheckbox.d.ts +14 -9
  189. package/es/data-table/src/TableParts/Cell.d.ts +865 -855
  190. package/es/data-table/src/TableParts/ExpandTrigger.d.ts +11 -9
  191. package/es/data-table/src/TableParts/Header.d.ts +8 -5
  192. package/es/data-table/src/TableParts/SelectionMenu.d.ts +6 -5
  193. package/es/data-table/src/interface.d.ts +10 -7
  194. package/es/data-table/src/interface.js +2 -1
  195. package/es/data-table/src/styles/index.cssr.js +11 -8
  196. package/es/data-table/src/utils.js +4 -1
  197. package/es/data-table/styles/light.d.ts +1 -0
  198. package/es/date-picker/index.d.ts +1 -0
  199. package/es/date-picker/src/DatePicker.d.ts +87 -104
  200. package/es/date-picker/src/DatePicker.js +117 -112
  201. package/es/date-picker/src/interface.d.ts +23 -5
  202. package/es/date-picker/src/interface.js +2 -1
  203. package/es/date-picker/src/panel/date.d.ts +77 -34
  204. package/es/date-picker/src/panel/date.js +6 -7
  205. package/es/date-picker/src/panel/daterange.d.ts +31 -26
  206. package/es/date-picker/src/panel/daterange.js +6 -9
  207. package/es/date-picker/src/panel/datetime.d.ts +41 -30
  208. package/es/date-picker/src/panel/datetime.js +4 -5
  209. package/es/date-picker/src/panel/datetimerange.d.ts +31 -26
  210. package/es/date-picker/src/panel/datetimerange.js +5 -8
  211. package/es/date-picker/src/panel/month.d.ts +48 -32
  212. package/es/date-picker/src/panel/month.js +13 -4
  213. package/es/date-picker/src/panel/panelHeader.d.ts +2435 -0
  214. package/es/date-picker/src/panel/panelHeader.js +72 -0
  215. package/es/date-picker/src/panel/use-calendar.d.ts +16 -4
  216. package/es/date-picker/src/panel/use-calendar.js +44 -5
  217. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  218. package/es/date-picker/src/panel/use-dual-calendar.js +10 -1
  219. package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
  220. package/es/date-picker/src/panel/use-panel-common.js +7 -1
  221. package/es/date-picker/src/styles/index.cssr.js +5 -2
  222. package/es/descriptions/src/Descriptions.d.ts +33 -33
  223. package/es/descriptions/src/DescriptionsItem.d.ts +9 -12
  224. package/es/dialog/src/Dialog.d.ts +32 -43
  225. package/es/dialog/src/Dialog.js +27 -20
  226. package/es/dialog/src/DialogEnvironment.d.ts +41 -46
  227. package/es/dialog/src/DialogProvider.d.ts +7 -10
  228. package/es/dialog/src/DialogProvider.js +3 -3
  229. package/es/divider/src/Divider.d.ts +14 -19
  230. package/es/drawer/src/Drawer.d.ts +101 -104
  231. package/es/drawer/src/Drawer.js +43 -49
  232. package/es/drawer/src/DrawerBodyWrapper.d.ts +40 -16
  233. package/es/drawer/src/DrawerBodyWrapper.js +31 -14
  234. package/es/drawer/src/DrawerContent.d.ts +15 -20
  235. package/es/drawer/src/DrawerContent.js +6 -6
  236. package/es/drawer/src/interface.d.ts +3 -3
  237. package/es/drawer/src/interface.js +3 -2
  238. package/es/dropdown/src/Dropdown.d.ts +113 -99
  239. package/es/dropdown/src/Dropdown.js +2 -2
  240. package/es/dropdown/src/DropdownDivider.d.ts +6 -5
  241. package/es/dropdown/src/DropdownGroup.d.ts +14 -9
  242. package/es/dropdown/src/DropdownGroupHeader.d.ts +10 -7
  243. package/es/dropdown/src/DropdownMenu.d.ts +18 -16
  244. package/es/dropdown/src/DropdownMenu.js +2 -1
  245. package/es/dropdown/src/DropdownOption.d.ts +19 -14
  246. package/es/dropdown/src/DropdownOption.js +2 -2
  247. package/es/dropdown/src/DropdownRenderOption.d.ts +6 -5
  248. package/es/dynamic-input/src/DynamicInput.d.ts +50 -45
  249. package/es/dynamic-input/src/DynamicInput.js +2 -2
  250. package/es/dynamic-input/src/InputPreset.d.ts +16 -14
  251. package/es/dynamic-input/src/PairPreset.d.ts +23 -18
  252. package/es/dynamic-input/src/interface.d.ts +2 -2
  253. package/es/dynamic-input/src/interface.js +2 -1
  254. package/es/dynamic-tags/src/DynamicTags.d.ts +41 -41
  255. package/es/element/src/Element.d.ts +9 -12
  256. package/es/ellipsis/src/Ellipsis.d.ts +14 -19
  257. package/es/empty/src/Empty.d.ts +23 -24
  258. package/es/empty/src/Empty.js +5 -9
  259. package/es/form/src/Feedbacks.d.ts +8 -10
  260. package/es/form/src/Feedbacks.js +4 -1
  261. package/es/form/src/Form.d.ts +44 -44
  262. package/es/form/src/Form.js +17 -8
  263. package/es/form/src/FormItem.d.ts +45 -55
  264. package/es/form/src/FormItem.js +30 -14
  265. package/es/form/src/FormItemCol.d.ts +57 -60
  266. package/es/form/src/FormItemGridItem.d.ts +57 -66
  267. package/es/form/src/FormItemRow.d.ts +62 -65
  268. package/es/form/src/interface.d.ts +8 -4
  269. package/es/form/src/interface.js +3 -2
  270. package/es/form/src/styles/form-item.cssr.js +2 -0
  271. package/es/form/src/utils.d.ts +2 -2
  272. package/es/form/src/utils.js +29 -18
  273. package/es/global-style/src/GlobalStyle.d.ts +1 -1
  274. package/es/gradient-text/src/GradientText.d.ts +16 -23
  275. package/es/grid/src/Grid.d.ts +27 -22
  276. package/es/grid/src/Grid.js +2 -2
  277. package/es/grid/src/GridItem.d.ts +18 -18
  278. package/es/grid/src/GridItem.js +3 -2
  279. package/es/icon/src/Icon.d.ts +11 -18
  280. package/es/image/src/Image.d.ts +295 -39
  281. package/es/image/src/Image.js +4 -17
  282. package/es/image/src/ImageGroup.d.ts +274 -8
  283. package/es/image/src/ImageGroup.js +7 -9
  284. package/es/image/src/ImagePreview.d.ts +203 -18
  285. package/es/image/src/ImagePreview.js +59 -36
  286. package/es/image/src/interface.d.ts +94 -0
  287. package/es/image/src/interface.js +2 -1
  288. package/es/image/src/styles/index.cssr.js +8 -4
  289. package/es/image/styles/dark.js +8 -1
  290. package/es/image/styles/light.d.ts +32 -3
  291. package/es/image/styles/light.js +8 -1
  292. package/es/index.d.ts +1 -1
  293. package/es/index.js +1 -1
  294. package/es/input/src/Input.d.ts +108 -110
  295. package/es/input/src/Input.js +75 -34
  296. package/es/input/src/InputGroup.d.ts +5 -9
  297. package/es/input/src/InputGroupLabel.d.ts +16 -17
  298. package/es/input/src/InputGroupLabel.js +4 -3
  299. package/es/input/src/WordCount.d.ts +1 -1
  300. package/es/input/src/interface.d.ts +2 -2
  301. package/es/input/src/interface.js +2 -1
  302. package/es/input/src/styles/input.cssr.js +45 -62
  303. package/es/input-number/src/InputNumber.d.ts +59 -58
  304. package/es/input-number/src/utils.js +2 -2
  305. package/es/layout/src/Layout.d.ts +90 -65
  306. package/es/layout/src/Layout.js +2 -1
  307. package/es/layout/src/LayoutContent.d.ts +33 -31
  308. package/es/layout/src/LayoutFooter.d.ts +14 -19
  309. package/es/layout/src/LayoutHeader.d.ts +17 -19
  310. package/es/layout/src/LayoutSider.d.ts +64 -61
  311. package/es/layout/src/LayoutSider.js +2 -1
  312. package/es/layout/src/ToggleBar.d.ts +7 -8
  313. package/es/layout/src/ToggleButton.d.ts +7 -8
  314. package/es/layout/src/interface.d.ts +2 -2
  315. package/es/layout/src/interface.js +2 -1
  316. package/es/layout/src/styles/layout-sider.cssr.js +15 -7
  317. package/es/legacy-grid/src/Col.d.ts +18 -11
  318. package/es/legacy-grid/src/Row.d.ts +11 -13
  319. package/es/legacy-grid/src/Row.js +2 -2
  320. package/es/list/src/List.d.ts +19 -20
  321. package/es/list/src/List.js +7 -5
  322. package/es/list/src/ListItem.d.ts +1 -1
  323. package/es/list/src/ListItem.js +3 -3
  324. package/es/loading-bar/src/LoadingBar.d.ts +1 -1
  325. package/es/loading-bar/src/LoadingBarProvider.d.ts +22 -23
  326. package/es/loading-bar/src/LoadingBarProvider.js +7 -6
  327. package/es/locales/common/deDE.js +10 -0
  328. package/es/locales/common/enUS.d.ts +9 -0
  329. package/es/locales/common/enUS.js +10 -0
  330. package/es/locales/common/esAR.d.ts +109 -0
  331. package/es/locales/common/esAR.js +110 -0
  332. package/es/locales/common/frFR.js +10 -0
  333. package/es/locales/common/idID.js +10 -0
  334. package/es/locales/common/itIT.d.ts +3 -0
  335. package/es/locales/common/itIT.js +109 -0
  336. package/es/locales/common/jaJP.js +10 -0
  337. package/es/locales/common/nbNO.js +10 -0
  338. package/es/locales/common/ruRU.js +10 -0
  339. package/es/locales/common/ukUA.js +10 -0
  340. package/es/locales/common/zhCN.js +9 -0
  341. package/es/locales/common/zhTW.js +10 -0
  342. package/es/locales/date/esAR.d.ts +3 -0
  343. package/es/locales/date/esAR.js +6 -0
  344. package/es/locales/date/itIT.d.ts +3 -0
  345. package/es/locales/date/itIT.js +6 -0
  346. package/es/locales/index.d.ts +4 -0
  347. package/es/locales/index.js +4 -0
  348. package/es/log/src/Log.d.ts +48 -46
  349. package/es/log/src/Log.js +2 -2
  350. package/es/log/src/LogLine.d.ts +6 -5
  351. package/es/log/src/LogLoader.d.ts +6 -5
  352. package/es/mention/src/Mention.d.ts +55 -56
  353. package/es/mention/src/utils.js +0 -1
  354. package/es/menu/src/Menu.d.ts +87 -88
  355. package/es/menu/src/Menu.js +2 -2
  356. package/es/menu/src/MenuDivider.d.ts +1 -1
  357. package/es/menu/src/MenuOption.d.ts +22 -295
  358. package/es/menu/src/MenuOption.js +2 -1
  359. package/es/menu/src/MenuOptionContent.d.ts +33 -305
  360. package/es/menu/src/MenuOptionGroup.d.ts +20 -20
  361. package/es/menu/src/MenuOptionGroup.js +4 -3
  362. package/es/menu/src/Submenu.d.ts +35 -301
  363. package/es/menu/src/Submenu.js +4 -2
  364. package/es/menu/src/use-menu-child-props.d.ts +2 -1
  365. package/es/menu/src/use-menu-child.d.ts +5 -7
  366. package/es/menu/src/use-menu-child.js +0 -2
  367. package/es/message/index.d.ts +2 -1
  368. package/es/message/src/Message.d.ts +183 -31
  369. package/es/message/src/Message.js +13 -11
  370. package/es/message/src/MessageEnvironment.d.ts +28 -36
  371. package/es/message/src/MessageProvider.d.ts +29 -40
  372. package/es/message/src/MessageProvider.js +9 -9
  373. package/es/message/src/message-props.d.ts +5 -2
  374. package/es/message/src/types.d.ts +15 -0
  375. package/es/message/src/types.js +1 -0
  376. package/es/modal/src/BodyWrapper.d.ts +96 -72
  377. package/es/modal/src/BodyWrapper.js +12 -9
  378. package/es/modal/src/Modal.d.ts +127 -965
  379. package/es/modal/src/Modal.js +18 -5
  380. package/es/modal/src/interface.d.ts +3 -3
  381. package/es/modal/src/interface.js +3 -2
  382. package/es/notification/src/Notification.d.ts +20 -22
  383. package/es/notification/src/NotificationContainer.d.ts +10 -7
  384. package/es/notification/src/NotificationEnvironment.d.ts +32 -40
  385. package/es/notification/src/NotificationProvider.d.ts +32 -35
  386. package/es/notification/src/NotificationProvider.js +8 -8
  387. package/es/number-animation/src/NumberAnimation.d.ts +27 -15
  388. package/es/number-animation/src/NumberAnimation.js +19 -4
  389. package/es/page-header/index.d.ts +1 -1
  390. package/es/page-header/src/PageHeader.d.ts +13 -21
  391. package/es/page-header/src/PageHeader.js +4 -5
  392. package/es/pagination/index.d.ts +1 -1
  393. package/es/pagination/src/Pagination.d.ts +65 -61
  394. package/es/pagination/src/Pagination.js +66 -19
  395. package/es/pagination/src/interface.d.ts +10 -1
  396. package/es/pagination/src/utils.d.ts +2 -2
  397. package/es/pagination/src/utils.js +2 -4
  398. package/es/pagination/styles/light.d.ts +1 -0
  399. package/es/popconfirm/src/Popconfirm.d.ts +93 -85
  400. package/es/popconfirm/src/PopconfirmPanel.d.ts +16 -14
  401. package/es/popconfirm/src/PopconfirmPanel.js +4 -5
  402. package/es/popconfirm/src/interface.d.ts +2 -2
  403. package/es/popconfirm/src/interface.js +2 -1
  404. package/es/popover/src/Popover.d.ts +93 -77
  405. package/es/popover/src/Popover.js +24 -1
  406. package/es/popover/src/PopoverBody.d.ts +35 -51
  407. package/es/popover/src/PopoverBody.js +32 -47
  408. package/es/popover/src/interface.d.ts +2 -2
  409. package/es/popover/src/interface.js +2 -1
  410. package/es/popover/src/styles/index.cssr.js +9 -8
  411. package/es/popselect/src/Popselect.d.ts +139 -155
  412. package/es/popselect/src/Popselect.js +2 -2
  413. package/es/popselect/src/PopselectPanel.d.ts +24 -30
  414. package/es/popselect/src/interface.d.ts +2 -2
  415. package/es/popselect/src/interface.js +2 -1
  416. package/es/progress/src/Circle.d.ts +40 -26
  417. package/es/progress/src/Circle.js +8 -1
  418. package/es/progress/src/Line.d.ts +37 -32
  419. package/es/progress/src/Line.js +4 -1
  420. package/es/progress/src/MultipleCircle.d.ts +38 -21
  421. package/es/progress/src/Progress.d.ts +57 -50
  422. package/es/progress/src/Progress.js +2 -2
  423. package/es/progress/src/styles/index.cssr.js +16 -16
  424. package/es/radio/src/Radio.d.ts +30 -31
  425. package/es/radio/src/RadioButton.d.ts +24 -22
  426. package/es/radio/src/RadioGroup.d.ts +21 -27
  427. package/es/radio/src/styles/radio.cssr.js +4 -1
  428. package/es/radio/src/use-radio.d.ts +2 -2
  429. package/es/radio/src/use-radio.js +2 -2
  430. package/es/rate/src/Rate.d.ts +26 -31
  431. package/es/result/src/Result.d.ts +18 -21
  432. package/es/result/src/Result.js +9 -10
  433. package/es/result/src/styles/index.cssr.js +7 -7
  434. package/es/scrollbar/src/ScrollBar.d.ts +10 -17
  435. package/es/select/index.d.ts +1 -1
  436. package/es/select/src/Select.d.ts +134 -121
  437. package/es/select/src/Select.js +41 -64
  438. package/es/select/src/interface.d.ts +4 -0
  439. package/es/select/styles/light.d.ts +1 -0
  440. package/es/skeleton/src/Skeleton.d.ts +26 -31
  441. package/es/slider/src/Slider.d.ts +51 -51
  442. package/es/slider/src/Slider.js +2 -1
  443. package/es/space/src/Space.d.ts +24 -27
  444. package/es/spin/src/Spin.d.ts +28 -27
  445. package/es/statistic/src/Statistic.d.ts +11 -19
  446. package/es/statistic/src/Statistic.js +3 -3
  447. package/es/steps/src/Step.d.ts +9 -12
  448. package/es/steps/src/Step.js +5 -7
  449. package/es/steps/src/Steps.d.ts +20 -23
  450. package/es/steps/src/Steps.js +2 -2
  451. package/es/switch/src/Switch.d.ts +45 -40
  452. package/es/table/src/Table.d.ts +26 -25
  453. package/es/table/src/Tbody.d.ts +1 -1
  454. package/es/table/src/Td.d.ts +1 -1
  455. package/es/table/src/Th.d.ts +1 -1
  456. package/es/table/src/Thead.d.ts +1 -1
  457. package/es/table/src/Tr.d.ts +1 -1
  458. package/es/tabs/index.d.ts +1 -0
  459. package/es/tabs/src/Tab.d.ts +30 -37
  460. package/es/tabs/src/Tab.js +11 -4
  461. package/es/tabs/src/TabPane.d.ts +32 -38
  462. package/es/tabs/src/TabPane.js +14 -15
  463. package/es/tabs/src/Tabs.d.ts +39 -54
  464. package/es/tabs/src/Tabs.js +27 -24
  465. package/es/tabs/src/interface.d.ts +5 -2
  466. package/es/tabs/src/interface.js +2 -1
  467. package/es/tag/src/Tag.d.ts +42 -47
  468. package/es/tag/src/Tag.js +2 -2
  469. package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
  470. package/es/theme-editor/src/ThemeEditor.js +161 -158
  471. package/es/themes/index.d.ts +1 -0
  472. package/es/themes/index.js +1 -0
  473. package/es/thing/src/Thing.d.ts +16 -23
  474. package/es/thing/src/Thing.js +20 -24
  475. package/es/time/src/Time.d.ts +18 -18
  476. package/es/time-picker/index.d.ts +1 -0
  477. package/es/time-picker/src/Panel.d.ts +75 -72
  478. package/es/time-picker/src/PanelCol.d.ts +15 -12
  479. package/es/time-picker/src/TimePicker.d.ts +110 -77
  480. package/es/time-picker/src/TimePicker.js +76 -70
  481. package/es/time-picker/src/interface.d.ts +10 -4
  482. package/es/time-picker/src/interface.js +2 -1
  483. package/es/timeline/src/Timeline.d.ts +21 -24
  484. package/es/timeline/src/Timeline.js +2 -1
  485. package/es/timeline/src/TimelineItem.d.ts +10 -14
  486. package/es/timeline/src/TimelineItem.js +4 -4
  487. package/es/tooltip/src/Tooltip.d.ts +85 -75
  488. package/es/transfer/src/Transfer.d.ts +39 -43
  489. package/es/transfer/src/TransferFilter.d.ts +17 -16
  490. package/es/transfer/src/TransferHeader.d.ts +11 -10
  491. package/es/transfer/src/TransferList.d.ts +35 -19
  492. package/es/transfer/src/TransferListItem.d.ts +18 -11
  493. package/es/transfer/src/interface.d.ts +2 -2
  494. package/es/transfer/src/interface.js +2 -1
  495. package/es/tree/src/MotionWrapper.d.ts +19 -14
  496. package/es/tree/src/Tree.d.ts +127 -134
  497. package/es/tree/src/Tree.js +4 -2
  498. package/es/tree/src/TreeNode.d.ts +10 -7
  499. package/es/tree/src/TreeNodeCheckbox.d.ts +11 -16
  500. package/es/tree/src/TreeNodeContent.d.ts +15 -18
  501. package/es/tree/src/TreeNodeSwitcher.d.ts +10 -14
  502. package/es/tree/src/TreeNodeSwitcher.js +25 -14
  503. package/es/tree/src/interface.d.ts +4 -2
  504. package/es/tree/src/interface.js +2 -1
  505. package/es/tree/src/styles/index.cssr.js +4 -2
  506. package/es/tree-select/src/TreeSelect.d.ts +112 -97
  507. package/es/tree-select/src/TreeSelect.js +2 -4
  508. package/es/tree-select/src/interface.d.ts +2 -2
  509. package/es/tree-select/src/interface.js +2 -1
  510. package/es/tree-select/styles/light.d.ts +1 -0
  511. package/es/typography/src/a.d.ts +8 -12
  512. package/es/typography/src/blockquote.d.ts +9 -15
  513. package/es/typography/src/create-header.d.ts +14 -19
  514. package/es/typography/src/headers.d.ts +84 -114
  515. package/es/typography/src/hr.d.ts +8 -12
  516. package/es/typography/src/li.d.ts +1 -1
  517. package/es/typography/src/ol.d.ts +9 -15
  518. package/es/typography/src/p.d.ts +9 -14
  519. package/es/typography/src/text.d.ts +24 -31
  520. package/es/typography/src/text.js +4 -3
  521. package/es/typography/src/ul.d.ts +9 -15
  522. package/es/upload/src/Upload.d.ts +95 -85
  523. package/es/upload/src/Upload.js +22 -10
  524. package/es/upload/src/UploadDragger.d.ts +1 -1
  525. package/es/upload/src/UploadFile.d.ts +18 -13
  526. package/es/upload/src/UploadFileList.d.ts +1 -1
  527. package/es/upload/src/UploadFileList.js +2 -2
  528. package/es/upload/src/UploadProgress.d.ts +11 -9
  529. package/es/upload/src/UploadTrigger.d.ts +3 -5
  530. package/es/upload/src/interface.d.ts +14 -6
  531. package/es/upload/src/interface.js +2 -1
  532. package/es/version.d.ts +1 -1
  533. package/es/version.js +1 -1
  534. package/lib/_internal/clear/src/Clear.d.ts +8 -10
  535. package/lib/_internal/close/src/Close.d.ts +11 -10
  536. package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +10 -20
  537. package/lib/_internal/focus-detector/src/FocusDetector.d.ts +4 -7
  538. package/lib/_internal/icon/src/Icon.d.ts +19 -20
  539. package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
  540. package/lib/_internal/icons/Add.d.ts +1 -1
  541. package/lib/_internal/icons/ArrowBack.d.ts +1 -1
  542. package/lib/_internal/icons/ArrowDown.d.ts +1 -1
  543. package/lib/_internal/icons/Attach.d.ts +1 -1
  544. package/lib/_internal/icons/Backward.d.ts +1 -1
  545. package/lib/_internal/icons/Cancel.d.ts +1 -1
  546. package/lib/_internal/icons/Checkmark.d.ts +1 -1
  547. package/lib/_internal/icons/ChevronDown.d.ts +1 -1
  548. package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
  549. package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
  550. package/lib/_internal/icons/ChevronRight.d.ts +1 -1
  551. package/lib/_internal/icons/Clear.d.ts +1 -1
  552. package/lib/_internal/icons/Close.d.ts +1 -1
  553. package/lib/_internal/icons/Date.d.ts +1 -1
  554. package/lib/_internal/icons/Download.d.ts +1 -1
  555. package/lib/_internal/icons/Empty.d.ts +1 -1
  556. package/lib/_internal/icons/Error.d.ts +1 -1
  557. package/lib/_internal/icons/Eye.d.ts +1 -1
  558. package/lib/_internal/icons/EyeOff.d.ts +1 -1
  559. package/lib/_internal/icons/FastBackward.d.ts +1 -1
  560. package/lib/_internal/icons/FastForward.d.ts +1 -1
  561. package/lib/_internal/icons/File.d.ts +1 -1
  562. package/lib/_internal/icons/Filter.d.ts +1 -1
  563. package/lib/_internal/icons/Forward.d.ts +1 -1
  564. package/lib/_internal/icons/Info.d.ts +1 -1
  565. package/lib/_internal/icons/More.d.ts +1 -1
  566. package/lib/_internal/icons/Photo.d.ts +1 -1
  567. package/lib/_internal/icons/Remove.d.ts +1 -1
  568. package/lib/_internal/icons/Retry.d.ts +1 -1
  569. package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
  570. package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
  571. package/lib/_internal/icons/Search.d.ts +1 -1
  572. package/lib/_internal/icons/Success.d.ts +1 -1
  573. package/lib/_internal/icons/Switcher.d.ts +1 -1
  574. package/lib/_internal/icons/Switcher.js +2 -3
  575. package/lib/_internal/icons/Time.d.ts +1 -1
  576. package/lib/_internal/icons/To.d.ts +1 -1
  577. package/lib/_internal/icons/Trash.d.ts +1 -1
  578. package/lib/_internal/icons/Warning.d.ts +1 -1
  579. package/lib/_internal/icons/ZoomIn.d.ts +1 -1
  580. package/lib/_internal/icons/ZoomOut.d.ts +1 -1
  581. package/lib/_internal/icons/replaceable.d.ts +1 -1
  582. package/lib/_internal/loading/src/Loading.d.ts +26 -16
  583. package/lib/_internal/menu-mask/src/MenuMask.d.ts +6 -5
  584. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +54 -58
  585. package/lib/_internal/scrollbar/src/ScrollBar.js +89 -67
  586. package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +10 -7
  587. package/lib/_internal/select-menu/src/SelectMenu.d.ts +67 -63
  588. package/lib/_internal/select-menu/src/SelectMenu.js +21 -20
  589. package/lib/_internal/select-menu/src/SelectOption.d.ts +10 -7
  590. package/lib/_internal/select-menu/src/interface.d.ts +3 -3
  591. package/lib/_internal/select-menu/src/interface.js +3 -2
  592. package/lib/_internal/selection/src/Selection.d.ts +67 -69
  593. package/lib/_internal/selection/src/Selection.js +25 -8
  594. package/lib/_internal/selection/src/styles/index.cssr.js +2 -1
  595. package/lib/_internal/selection/styles/_common.d.ts +1 -0
  596. package/lib/_internal/selection/styles/_common.js +2 -1
  597. package/lib/_internal/selection/styles/light.d.ts +2 -0
  598. package/lib/_internal/slot-machine/src/SlotMachine.d.ts +18 -12
  599. package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +18 -12
  600. package/lib/_internal/suffix/src/Suffix.d.ts +19 -14
  601. package/lib/_internal/suffix/src/Suffix.js +7 -2
  602. package/lib/_internal/wave/src/Wave.d.ts +6 -5
  603. package/lib/_mixins/use-form-item.d.ts +2 -2
  604. package/lib/_mixins/use-form-item.js +2 -1
  605. package/lib/_mixins/use-locale.d.ts +1 -1
  606. package/lib/_mixins/use-locale.js +2 -2
  607. package/lib/_utils/index.d.ts +1 -1
  608. package/lib/_utils/index.js +2 -1
  609. package/lib/_utils/vue/create-injection-key.d.ts +2 -0
  610. package/lib/_utils/vue/create-injection-key.js +7 -0
  611. package/lib/_utils/vue/index.d.ts +2 -0
  612. package/lib/_utils/vue/index.js +5 -1
  613. package/lib/_utils/vue/resolve-slot.d.ts +2 -0
  614. package/lib/_utils/vue/resolve-slot.js +24 -0
  615. package/lib/affix/src/Affix.d.ts +26 -22
  616. package/lib/alert/src/Alert.d.ts +34 -27
  617. package/lib/alert/src/Alert.js +1 -3
  618. package/lib/anchor/src/AnchorAdapter.d.ts +52 -47
  619. package/lib/anchor/src/BaseAnchor.d.ts +25 -20
  620. package/lib/anchor/src/Link.d.ts +6 -9
  621. package/lib/anchor/src/Link.js +4 -3
  622. package/lib/auto-complete/src/AutoComplete.d.ts +60 -67
  623. package/lib/auto-complete/src/AutoComplete.js +14 -16
  624. package/lib/avatar/src/Avatar.d.ts +27 -30
  625. package/lib/avatar/src/AvatarGroup.d.ts +13 -17
  626. package/lib/avatar/src/AvatarGroup.js +5 -2
  627. package/lib/back-top/src/BackTop.d.ts +50 -35
  628. package/lib/back-top/src/BackTop.js +1 -3
  629. package/lib/badge/src/Badge.d.ts +31 -29
  630. package/lib/badge/src/Badge.js +5 -4
  631. package/lib/breadcrumb/src/Breadcrumb.d.ts +15 -18
  632. package/lib/breadcrumb/src/Breadcrumb.js +2 -1
  633. package/lib/breadcrumb/src/BreadcrumbItem.d.ts +4 -7
  634. package/lib/button/src/Button.d.ts +53 -61
  635. package/lib/button/src/Button.js +4 -1
  636. package/lib/button/src/ButtonGroup.d.ts +10 -11
  637. package/lib/button/src/ButtonGroup.js +2 -1
  638. package/lib/calendar/src/Calendar.d.ts +24 -25
  639. package/lib/calendar/src/Calendar.js +30 -5
  640. package/lib/calendar/src/interface.d.ts +4 -0
  641. package/lib/card/src/Card.d.ts +32 -37
  642. package/lib/card/src/Card.js +5 -5
  643. package/lib/carousel/index.d.ts +1 -0
  644. package/lib/carousel/index.js +3 -1
  645. package/lib/carousel/src/Carousel.d.ts +267 -41
  646. package/lib/carousel/src/Carousel.js +677 -226
  647. package/lib/carousel/src/CarouselArrow.d.ts +9 -0
  648. package/lib/carousel/src/CarouselArrow.js +45 -0
  649. package/lib/carousel/src/CarouselDots.d.ts +72 -0
  650. package/lib/carousel/src/CarouselDots.js +120 -0
  651. package/lib/carousel/src/CarouselItem.d.ts +11 -0
  652. package/lib/carousel/src/CarouselItem.js +77 -0
  653. package/lib/carousel/src/interface.d.ts +35 -0
  654. package/lib/carousel/src/interface.js +7 -0
  655. package/lib/carousel/src/styles/index.cssr.js +141 -38
  656. package/lib/carousel/src/utils.d.ts +12 -0
  657. package/lib/carousel/src/utils.js +69 -0
  658. package/lib/carousel/styles/light.d.ts +3 -0
  659. package/lib/carousel/styles/light.js +5 -2
  660. package/lib/cascader/index.d.ts +1 -1
  661. package/lib/cascader/src/Cascader.d.ts +109 -84
  662. package/lib/cascader/src/Cascader.js +16 -27
  663. package/lib/cascader/src/CascaderMenu.d.ts +34 -24
  664. package/lib/cascader/src/CascaderMenu.js +1 -3
  665. package/lib/cascader/src/CascaderOption.d.ts +8 -5
  666. package/lib/cascader/src/CascaderOption.js +7 -4
  667. package/lib/cascader/src/CascaderSelectMenu.d.ts +26 -20
  668. package/lib/cascader/src/CascaderSubmenu.d.ts +16 -9
  669. package/lib/cascader/src/interface.d.ts +7 -2
  670. package/lib/cascader/src/interface.js +2 -1
  671. package/lib/cascader/styles/light.d.ts +1 -0
  672. package/lib/checkbox/index.d.ts +1 -0
  673. package/lib/checkbox/src/Checkbox.d.ts +43 -43
  674. package/lib/checkbox/src/Checkbox.js +16 -4
  675. package/lib/checkbox/src/CheckboxGroup.d.ts +23 -24
  676. package/lib/checkbox/src/CheckboxGroup.js +1 -1
  677. package/lib/checkbox/src/interface.d.ts +4 -0
  678. package/lib/checkbox/src/styles/index.cssr.js +1 -1
  679. package/lib/code/src/Code.d.ts +27 -30
  680. package/lib/code/src/Code.js +6 -3
  681. package/lib/code/src/styles/index.cssr.js +4 -1
  682. package/lib/collapse/src/Collapse.d.ts +35 -33
  683. package/lib/collapse/src/Collapse.js +1 -1
  684. package/lib/collapse/src/CollapseItem.d.ts +5 -9
  685. package/lib/collapse/src/CollapseItem.js +7 -14
  686. package/lib/collapse/src/CollapseItemContent.d.ts +11 -9
  687. package/lib/collapse-transition/src/CollapseTransition.d.ts +18 -19
  688. package/lib/color-picker/src/AlphaSlider.d.ts +19 -14
  689. package/lib/color-picker/src/ColorInput.d.ts +34 -19
  690. package/lib/color-picker/src/ColorInputUnit.d.ts +15 -11
  691. package/lib/color-picker/src/ColorInputUnit.js +1 -1
  692. package/lib/color-picker/src/ColorPicker.d.ts +55 -52
  693. package/lib/color-picker/src/ColorPicker.js +17 -10
  694. package/lib/color-picker/src/ColorPickerSwatches.d.ts +18 -11
  695. package/lib/color-picker/src/ColorPickerTrigger.d.ts +15 -12
  696. package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
  697. package/lib/color-picker/src/ColorPreview.d.ts +19 -11
  698. package/lib/color-picker/src/HueSlider.d.ts +15 -12
  699. package/lib/color-picker/src/Pallete.d.ts +23 -16
  700. package/lib/color-picker/src/interface.d.ts +2 -0
  701. package/lib/color-picker/src/styles/index.cssr.js +1 -0
  702. package/lib/composables/use-theme-vars.d.ts +2 -1
  703. package/lib/config-provider/src/ConfigProvider.d.ts +57 -37
  704. package/lib/config-provider/src/ConfigProvider.js +4 -3
  705. package/lib/config-provider/src/interface.d.ts +4 -1
  706. package/lib/countdown/src/Countdown.d.ts +18 -17
  707. package/lib/data-table/index.d.ts +1 -1
  708. package/lib/data-table/src/DataTable.d.ts +114 -159
  709. package/lib/data-table/src/DataTable.js +21 -47
  710. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -7
  711. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +36 -19
  712. package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +14 -9
  713. package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +10 -7
  714. package/lib/data-table/src/HeaderButton/SortButton.d.ts +6 -5
  715. package/lib/data-table/src/HeaderButton/SortButton.js +6 -6
  716. package/lib/data-table/src/MainTable.d.ts +1 -1
  717. package/lib/data-table/src/TableParts/Body.d.ts +13 -14
  718. package/lib/data-table/src/TableParts/Body.js +1 -3
  719. package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +14 -9
  720. package/lib/data-table/src/TableParts/Cell.d.ts +865 -855
  721. package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +11 -9
  722. package/lib/data-table/src/TableParts/Header.d.ts +8 -5
  723. package/lib/data-table/src/TableParts/SelectionMenu.d.ts +6 -5
  724. package/lib/data-table/src/interface.d.ts +10 -7
  725. package/lib/data-table/src/interface.js +2 -1
  726. package/lib/data-table/src/styles/index.cssr.js +11 -8
  727. package/lib/data-table/src/utils.js +3 -0
  728. package/lib/data-table/styles/light.d.ts +1 -0
  729. package/lib/date-picker/index.d.ts +1 -0
  730. package/lib/date-picker/src/DatePicker.d.ts +87 -104
  731. package/lib/date-picker/src/DatePicker.js +114 -109
  732. package/lib/date-picker/src/interface.d.ts +23 -5
  733. package/lib/date-picker/src/interface.js +2 -1
  734. package/lib/date-picker/src/panel/date.d.ts +77 -34
  735. package/lib/date-picker/src/panel/date.js +8 -6
  736. package/lib/date-picker/src/panel/daterange.d.ts +31 -26
  737. package/lib/date-picker/src/panel/daterange.js +8 -8
  738. package/lib/date-picker/src/panel/datetime.d.ts +41 -30
  739. package/lib/date-picker/src/panel/datetime.js +6 -4
  740. package/lib/date-picker/src/panel/datetimerange.d.ts +31 -26
  741. package/lib/date-picker/src/panel/datetimerange.js +7 -7
  742. package/lib/date-picker/src/panel/month.d.ts +48 -32
  743. package/lib/date-picker/src/panel/month.js +12 -3
  744. package/lib/date-picker/src/panel/panelHeader.d.ts +2435 -0
  745. package/lib/date-picker/src/panel/panelHeader.js +77 -0
  746. package/lib/date-picker/src/panel/use-calendar.d.ts +16 -4
  747. package/lib/date-picker/src/panel/use-calendar.js +43 -4
  748. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  749. package/lib/date-picker/src/panel/use-dual-calendar.js +10 -1
  750. package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
  751. package/lib/date-picker/src/panel/use-panel-common.js +7 -1
  752. package/lib/date-picker/src/styles/index.cssr.js +5 -2
  753. package/lib/descriptions/src/Descriptions.d.ts +33 -33
  754. package/lib/descriptions/src/DescriptionsItem.d.ts +9 -12
  755. package/lib/dialog/src/Dialog.d.ts +32 -43
  756. package/lib/dialog/src/Dialog.js +26 -19
  757. package/lib/dialog/src/DialogEnvironment.d.ts +41 -46
  758. package/lib/dialog/src/DialogProvider.d.ts +7 -10
  759. package/lib/dialog/src/DialogProvider.js +2 -2
  760. package/lib/divider/src/Divider.d.ts +14 -19
  761. package/lib/drawer/src/Drawer.d.ts +101 -104
  762. package/lib/drawer/src/Drawer.js +41 -47
  763. package/lib/drawer/src/DrawerBodyWrapper.d.ts +40 -16
  764. package/lib/drawer/src/DrawerBodyWrapper.js +31 -14
  765. package/lib/drawer/src/DrawerContent.d.ts +15 -20
  766. package/lib/drawer/src/DrawerContent.js +6 -6
  767. package/lib/drawer/src/interface.d.ts +3 -3
  768. package/lib/drawer/src/interface.js +3 -2
  769. package/lib/dropdown/src/Dropdown.d.ts +113 -99
  770. package/lib/dropdown/src/Dropdown.js +1 -1
  771. package/lib/dropdown/src/DropdownDivider.d.ts +6 -5
  772. package/lib/dropdown/src/DropdownGroup.d.ts +14 -9
  773. package/lib/dropdown/src/DropdownGroupHeader.d.ts +10 -7
  774. package/lib/dropdown/src/DropdownMenu.d.ts +18 -16
  775. package/lib/dropdown/src/DropdownMenu.js +2 -1
  776. package/lib/dropdown/src/DropdownOption.d.ts +19 -14
  777. package/lib/dropdown/src/DropdownOption.js +1 -1
  778. package/lib/dropdown/src/DropdownRenderOption.d.ts +6 -5
  779. package/lib/dynamic-input/src/DynamicInput.d.ts +50 -45
  780. package/lib/dynamic-input/src/DynamicInput.js +1 -1
  781. package/lib/dynamic-input/src/InputPreset.d.ts +16 -14
  782. package/lib/dynamic-input/src/PairPreset.d.ts +23 -18
  783. package/lib/dynamic-input/src/interface.d.ts +2 -2
  784. package/lib/dynamic-input/src/interface.js +2 -1
  785. package/lib/dynamic-tags/src/DynamicTags.d.ts +41 -41
  786. package/lib/element/src/Element.d.ts +9 -12
  787. package/lib/ellipsis/src/Ellipsis.d.ts +14 -19
  788. package/lib/empty/src/Empty.d.ts +23 -24
  789. package/lib/empty/src/Empty.js +4 -8
  790. package/lib/form/src/Feedbacks.d.ts +8 -10
  791. package/lib/form/src/Feedbacks.js +4 -1
  792. package/lib/form/src/Form.d.ts +44 -44
  793. package/lib/form/src/Form.js +16 -7
  794. package/lib/form/src/FormItem.d.ts +45 -55
  795. package/lib/form/src/FormItem.js +29 -13
  796. package/lib/form/src/FormItemCol.d.ts +57 -60
  797. package/lib/form/src/FormItemGridItem.d.ts +57 -66
  798. package/lib/form/src/FormItemRow.d.ts +62 -65
  799. package/lib/form/src/interface.d.ts +8 -4
  800. package/lib/form/src/interface.js +3 -2
  801. package/lib/form/src/styles/form-item.cssr.js +2 -0
  802. package/lib/form/src/utils.d.ts +2 -2
  803. package/lib/form/src/utils.js +29 -18
  804. package/lib/global-style/src/GlobalStyle.d.ts +1 -1
  805. package/lib/gradient-text/src/GradientText.d.ts +16 -23
  806. package/lib/grid/src/Grid.d.ts +27 -22
  807. package/lib/grid/src/Grid.js +1 -1
  808. package/lib/grid/src/GridItem.d.ts +18 -18
  809. package/lib/grid/src/GridItem.js +2 -1
  810. package/lib/icon/src/Icon.d.ts +11 -18
  811. package/lib/image/src/Image.d.ts +295 -39
  812. package/lib/image/src/Image.js +4 -17
  813. package/lib/image/src/ImageGroup.d.ts +274 -8
  814. package/lib/image/src/ImageGroup.js +6 -8
  815. package/lib/image/src/ImagePreview.d.ts +203 -18
  816. package/lib/image/src/ImagePreview.js +57 -34
  817. package/lib/image/src/interface.d.ts +94 -0
  818. package/lib/image/src/interface.js +3 -0
  819. package/lib/image/src/styles/index.cssr.js +8 -4
  820. package/lib/image/styles/dark.js +8 -1
  821. package/lib/image/styles/light.d.ts +32 -3
  822. package/lib/image/styles/light.js +8 -1
  823. package/lib/index.d.ts +1 -1
  824. package/lib/index.js +2 -1
  825. package/lib/input/src/Input.d.ts +108 -110
  826. package/lib/input/src/Input.js +74 -33
  827. package/lib/input/src/InputGroup.d.ts +5 -9
  828. package/lib/input/src/InputGroupLabel.d.ts +16 -17
  829. package/lib/input/src/InputGroupLabel.js +3 -2
  830. package/lib/input/src/WordCount.d.ts +1 -1
  831. package/lib/input/src/interface.d.ts +2 -2
  832. package/lib/input/src/interface.js +2 -1
  833. package/lib/input/src/styles/input.cssr.js +45 -62
  834. package/lib/input-number/src/InputNumber.d.ts +59 -58
  835. package/lib/input-number/src/utils.js +2 -2
  836. package/lib/layout/src/Layout.d.ts +90 -65
  837. package/lib/layout/src/Layout.js +2 -1
  838. package/lib/layout/src/LayoutContent.d.ts +33 -31
  839. package/lib/layout/src/LayoutFooter.d.ts +14 -19
  840. package/lib/layout/src/LayoutHeader.d.ts +17 -19
  841. package/lib/layout/src/LayoutSider.d.ts +64 -61
  842. package/lib/layout/src/LayoutSider.js +2 -1
  843. package/lib/layout/src/ToggleBar.d.ts +7 -8
  844. package/lib/layout/src/ToggleButton.d.ts +7 -8
  845. package/lib/layout/src/interface.d.ts +2 -2
  846. package/lib/layout/src/interface.js +2 -1
  847. package/lib/layout/src/styles/layout-sider.cssr.js +15 -7
  848. package/lib/legacy-grid/src/Col.d.ts +18 -11
  849. package/lib/legacy-grid/src/Row.d.ts +11 -13
  850. package/lib/legacy-grid/src/Row.js +1 -1
  851. package/lib/list/src/List.d.ts +19 -20
  852. package/lib/list/src/List.js +6 -4
  853. package/lib/list/src/ListItem.d.ts +1 -1
  854. package/lib/list/src/ListItem.js +2 -2
  855. package/lib/loading-bar/src/LoadingBar.d.ts +1 -1
  856. package/lib/loading-bar/src/LoadingBarProvider.d.ts +22 -23
  857. package/lib/loading-bar/src/LoadingBarProvider.js +6 -5
  858. package/lib/locales/common/deDE.js +10 -0
  859. package/lib/locales/common/enUS.d.ts +9 -0
  860. package/lib/locales/common/enUS.js +10 -0
  861. package/lib/locales/common/esAR.d.ts +109 -0
  862. package/lib/locales/common/esAR.js +112 -0
  863. package/lib/locales/common/frFR.js +10 -0
  864. package/lib/locales/common/idID.js +10 -0
  865. package/lib/locales/common/itIT.d.ts +3 -0
  866. package/lib/locales/common/itIT.js +111 -0
  867. package/lib/locales/common/jaJP.js +10 -0
  868. package/lib/locales/common/nbNO.js +10 -0
  869. package/lib/locales/common/ruRU.js +10 -0
  870. package/lib/locales/common/ukUA.js +10 -0
  871. package/lib/locales/common/zhCN.js +9 -0
  872. package/lib/locales/common/zhTW.js +10 -0
  873. package/lib/locales/date/esAR.d.ts +3 -0
  874. package/lib/locales/date/esAR.js +11 -0
  875. package/lib/locales/date/itIT.d.ts +3 -0
  876. package/lib/locales/date/itIT.js +11 -0
  877. package/lib/locales/index.d.ts +4 -0
  878. package/lib/locales/index.js +9 -1
  879. package/lib/log/src/Log.d.ts +48 -46
  880. package/lib/log/src/Log.js +1 -1
  881. package/lib/log/src/LogLine.d.ts +6 -5
  882. package/lib/log/src/LogLoader.d.ts +6 -5
  883. package/lib/mention/src/Mention.d.ts +55 -56
  884. package/lib/mention/src/utils.js +0 -1
  885. package/lib/menu/src/Menu.d.ts +87 -88
  886. package/lib/menu/src/Menu.js +1 -1
  887. package/lib/menu/src/MenuDivider.d.ts +1 -1
  888. package/lib/menu/src/MenuOption.d.ts +22 -295
  889. package/lib/menu/src/MenuOption.js +2 -1
  890. package/lib/menu/src/MenuOptionContent.d.ts +33 -305
  891. package/lib/menu/src/MenuOptionGroup.d.ts +20 -20
  892. package/lib/menu/src/MenuOptionGroup.js +3 -2
  893. package/lib/menu/src/Submenu.d.ts +35 -301
  894. package/lib/menu/src/Submenu.js +4 -2
  895. package/lib/menu/src/use-menu-child-props.d.ts +2 -1
  896. package/lib/menu/src/use-menu-child.d.ts +5 -7
  897. package/lib/menu/src/use-menu-child.js +1 -3
  898. package/lib/message/index.d.ts +2 -1
  899. package/lib/message/src/Message.d.ts +183 -31
  900. package/lib/message/src/Message.js +13 -11
  901. package/lib/message/src/MessageEnvironment.d.ts +28 -36
  902. package/lib/message/src/MessageProvider.d.ts +29 -40
  903. package/lib/message/src/MessageProvider.js +7 -7
  904. package/lib/message/src/message-props.d.ts +5 -2
  905. package/lib/message/src/types.d.ts +15 -0
  906. package/lib/message/src/types.js +2 -0
  907. package/lib/modal/src/BodyWrapper.d.ts +96 -72
  908. package/lib/modal/src/BodyWrapper.js +12 -9
  909. package/lib/modal/src/Modal.d.ts +127 -965
  910. package/lib/modal/src/Modal.js +18 -5
  911. package/lib/modal/src/interface.d.ts +3 -3
  912. package/lib/modal/src/interface.js +3 -2
  913. package/lib/notification/src/Notification.d.ts +20 -22
  914. package/lib/notification/src/NotificationContainer.d.ts +10 -7
  915. package/lib/notification/src/NotificationEnvironment.d.ts +32 -40
  916. package/lib/notification/src/NotificationProvider.d.ts +32 -35
  917. package/lib/notification/src/NotificationProvider.js +6 -6
  918. package/lib/number-animation/src/NumberAnimation.d.ts +27 -15
  919. package/lib/number-animation/src/NumberAnimation.js +19 -4
  920. package/lib/page-header/index.d.ts +1 -1
  921. package/lib/page-header/src/PageHeader.d.ts +13 -21
  922. package/lib/page-header/src/PageHeader.js +4 -5
  923. package/lib/pagination/index.d.ts +1 -1
  924. package/lib/pagination/src/Pagination.d.ts +65 -61
  925. package/lib/pagination/src/Pagination.js +65 -18
  926. package/lib/pagination/src/interface.d.ts +10 -1
  927. package/lib/pagination/src/utils.d.ts +2 -2
  928. package/lib/pagination/src/utils.js +2 -4
  929. package/lib/pagination/styles/light.d.ts +1 -0
  930. package/lib/popconfirm/src/Popconfirm.d.ts +93 -85
  931. package/lib/popconfirm/src/PopconfirmPanel.d.ts +16 -14
  932. package/lib/popconfirm/src/PopconfirmPanel.js +3 -4
  933. package/lib/popconfirm/src/interface.d.ts +2 -2
  934. package/lib/popconfirm/src/interface.js +2 -1
  935. package/lib/popover/src/Popover.d.ts +93 -77
  936. package/lib/popover/src/Popover.js +23 -0
  937. package/lib/popover/src/PopoverBody.d.ts +35 -51
  938. package/lib/popover/src/PopoverBody.js +30 -45
  939. package/lib/popover/src/interface.d.ts +2 -2
  940. package/lib/popover/src/interface.js +2 -1
  941. package/lib/popover/src/styles/index.cssr.js +9 -8
  942. package/lib/popselect/src/Popselect.d.ts +139 -155
  943. package/lib/popselect/src/Popselect.js +2 -2
  944. package/lib/popselect/src/PopselectPanel.d.ts +24 -30
  945. package/lib/popselect/src/interface.d.ts +2 -2
  946. package/lib/popselect/src/interface.js +2 -1
  947. package/lib/progress/src/Circle.d.ts +40 -26
  948. package/lib/progress/src/Circle.js +8 -1
  949. package/lib/progress/src/Line.d.ts +37 -32
  950. package/lib/progress/src/Line.js +4 -1
  951. package/lib/progress/src/MultipleCircle.d.ts +38 -21
  952. package/lib/progress/src/Progress.d.ts +57 -50
  953. package/lib/progress/src/Progress.js +2 -2
  954. package/lib/progress/src/styles/index.cssr.js +16 -16
  955. package/lib/radio/src/Radio.d.ts +30 -31
  956. package/lib/radio/src/RadioButton.d.ts +24 -22
  957. package/lib/radio/src/RadioGroup.d.ts +21 -27
  958. package/lib/radio/src/styles/radio.cssr.js +4 -1
  959. package/lib/radio/src/use-radio.d.ts +2 -2
  960. package/lib/radio/src/use-radio.js +1 -1
  961. package/lib/rate/src/Rate.d.ts +26 -31
  962. package/lib/result/src/Result.d.ts +18 -21
  963. package/lib/result/src/Result.js +8 -9
  964. package/lib/result/src/styles/index.cssr.js +6 -6
  965. package/lib/scrollbar/src/ScrollBar.d.ts +10 -17
  966. package/lib/select/index.d.ts +1 -1
  967. package/lib/select/src/Select.d.ts +134 -121
  968. package/lib/select/src/Select.js +39 -62
  969. package/lib/select/src/interface.d.ts +4 -0
  970. package/lib/select/styles/light.d.ts +1 -0
  971. package/lib/skeleton/src/Skeleton.d.ts +26 -31
  972. package/lib/slider/src/Slider.d.ts +51 -51
  973. package/lib/slider/src/Slider.js +2 -1
  974. package/lib/space/src/Space.d.ts +24 -27
  975. package/lib/spin/src/Spin.d.ts +28 -27
  976. package/lib/statistic/src/Statistic.d.ts +11 -19
  977. package/lib/statistic/src/Statistic.js +2 -2
  978. package/lib/steps/src/Step.d.ts +9 -12
  979. package/lib/steps/src/Step.js +4 -6
  980. package/lib/steps/src/Steps.d.ts +20 -23
  981. package/lib/steps/src/Steps.js +1 -1
  982. package/lib/switch/src/Switch.d.ts +45 -40
  983. package/lib/table/src/Table.d.ts +26 -25
  984. package/lib/table/src/Tbody.d.ts +1 -1
  985. package/lib/table/src/Td.d.ts +1 -1
  986. package/lib/table/src/Th.d.ts +1 -1
  987. package/lib/table/src/Thead.d.ts +1 -1
  988. package/lib/table/src/Tr.d.ts +1 -1
  989. package/lib/tabs/index.d.ts +1 -0
  990. package/lib/tabs/src/Tab.d.ts +30 -37
  991. package/lib/tabs/src/Tab.js +10 -3
  992. package/lib/tabs/src/TabPane.d.ts +32 -38
  993. package/lib/tabs/src/TabPane.js +12 -13
  994. package/lib/tabs/src/Tabs.d.ts +39 -54
  995. package/lib/tabs/src/Tabs.js +27 -24
  996. package/lib/tabs/src/interface.d.ts +5 -2
  997. package/lib/tabs/src/interface.js +2 -1
  998. package/lib/tag/src/Tag.d.ts +42 -47
  999. package/lib/tag/src/Tag.js +1 -1
  1000. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
  1001. package/lib/theme-editor/src/ThemeEditor.js +160 -157
  1002. package/lib/themes/index.d.ts +1 -0
  1003. package/lib/themes/index.js +3 -1
  1004. package/lib/thing/src/Thing.d.ts +16 -23
  1005. package/lib/thing/src/Thing.js +19 -23
  1006. package/lib/time/src/Time.d.ts +18 -18
  1007. package/lib/time-picker/index.d.ts +1 -0
  1008. package/lib/time-picker/src/Panel.d.ts +75 -72
  1009. package/lib/time-picker/src/PanelCol.d.ts +15 -12
  1010. package/lib/time-picker/src/TimePicker.d.ts +110 -77
  1011. package/lib/time-picker/src/TimePicker.js +76 -70
  1012. package/lib/time-picker/src/interface.d.ts +10 -4
  1013. package/lib/time-picker/src/interface.js +2 -1
  1014. package/lib/timeline/src/Timeline.d.ts +21 -24
  1015. package/lib/timeline/src/Timeline.js +2 -1
  1016. package/lib/timeline/src/TimelineItem.d.ts +10 -14
  1017. package/lib/timeline/src/TimelineItem.js +3 -3
  1018. package/lib/tooltip/src/Tooltip.d.ts +85 -75
  1019. package/lib/transfer/src/Transfer.d.ts +39 -43
  1020. package/lib/transfer/src/TransferFilter.d.ts +17 -16
  1021. package/lib/transfer/src/TransferHeader.d.ts +11 -10
  1022. package/lib/transfer/src/TransferList.d.ts +35 -19
  1023. package/lib/transfer/src/TransferListItem.d.ts +18 -11
  1024. package/lib/transfer/src/interface.d.ts +2 -2
  1025. package/lib/transfer/src/interface.js +2 -1
  1026. package/lib/tree/src/MotionWrapper.d.ts +19 -14
  1027. package/lib/tree/src/Tree.d.ts +127 -134
  1028. package/lib/tree/src/Tree.js +4 -2
  1029. package/lib/tree/src/TreeNode.d.ts +10 -7
  1030. package/lib/tree/src/TreeNodeCheckbox.d.ts +11 -16
  1031. package/lib/tree/src/TreeNodeContent.d.ts +15 -18
  1032. package/lib/tree/src/TreeNodeSwitcher.d.ts +10 -14
  1033. package/lib/tree/src/TreeNodeSwitcher.js +24 -13
  1034. package/lib/tree/src/interface.d.ts +4 -2
  1035. package/lib/tree/src/interface.js +2 -1
  1036. package/lib/tree/src/styles/index.cssr.js +4 -2
  1037. package/lib/tree-select/src/TreeSelect.d.ts +112 -97
  1038. package/lib/tree-select/src/TreeSelect.js +1 -3
  1039. package/lib/tree-select/src/interface.d.ts +2 -2
  1040. package/lib/tree-select/src/interface.js +2 -1
  1041. package/lib/tree-select/styles/light.d.ts +1 -0
  1042. package/lib/typography/src/a.d.ts +8 -12
  1043. package/lib/typography/src/blockquote.d.ts +9 -15
  1044. package/lib/typography/src/create-header.d.ts +14 -19
  1045. package/lib/typography/src/headers.d.ts +84 -114
  1046. package/lib/typography/src/hr.d.ts +8 -12
  1047. package/lib/typography/src/li.d.ts +1 -1
  1048. package/lib/typography/src/ol.d.ts +9 -15
  1049. package/lib/typography/src/p.d.ts +9 -14
  1050. package/lib/typography/src/text.d.ts +24 -31
  1051. package/lib/typography/src/text.js +3 -2
  1052. package/lib/typography/src/ul.d.ts +9 -15
  1053. package/lib/upload/src/Upload.d.ts +95 -85
  1054. package/lib/upload/src/Upload.js +22 -10
  1055. package/lib/upload/src/UploadDragger.d.ts +1 -1
  1056. package/lib/upload/src/UploadFile.d.ts +18 -13
  1057. package/lib/upload/src/UploadFileList.d.ts +1 -1
  1058. package/lib/upload/src/UploadFileList.js +2 -2
  1059. package/lib/upload/src/UploadProgress.d.ts +11 -9
  1060. package/lib/upload/src/UploadTrigger.d.ts +3 -5
  1061. package/lib/upload/src/interface.d.ts +14 -6
  1062. package/lib/upload/src/interface.js +2 -1
  1063. package/lib/version.d.ts +1 -1
  1064. package/lib/version.js +1 -1
  1065. package/package.json +24 -16
  1066. package/volar.d.ts +144 -0
  1067. package/web-types.json +539 -50
@@ -22,9 +22,18 @@ const modalProps = Object.assign(Object.assign(Object.assign(Object.assign({}, u
22
22
  }, transformOrigin: {
23
23
  type: String,
24
24
  default: 'mouse'
25
+ }, zIndex: Number, autoFocus: {
26
+ type: Boolean,
27
+ default: true
28
+ }, trapFocus: {
29
+ type: Boolean,
30
+ default: true
31
+ }, closeOnEsc: {
32
+ type: Boolean,
33
+ default: true
25
34
  } }), presetProps), {
26
35
  // events
27
- 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
36
+ onEsc: Function, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
28
37
  // private
29
38
  dialog: Boolean, appear: {
30
39
  type: Boolean,
@@ -137,8 +146,10 @@ export default defineComponent({
137
146
  }
138
147
  }
139
148
  }
140
- function handleKeyup(e) {
141
- if (e.code === 'Escape') {
149
+ function handleEsc(e) {
150
+ var _a;
151
+ (_a = props.onEsc) === null || _a === void 0 ? void 0 : _a.call(props);
152
+ if (props.closeOnEsc) {
142
153
  doUpdateShow(false);
143
154
  }
144
155
  }
@@ -168,9 +179,10 @@ export default defineComponent({
168
179
  containerRef,
169
180
  presetProps: computed(() => {
170
181
  const pickedProps = keep(props, presetPropsKeys);
182
+ // TODO: remove as any after vue fix the issue introduced in 3.2.27
171
183
  return pickedProps;
172
184
  }),
173
- handleKeyup,
185
+ handleEsc,
174
186
  handleAfterLeave,
175
187
  handleClickoutside,
176
188
  handleBeforeLeave,
@@ -201,10 +213,11 @@ export default defineComponent({
201
213
  return this.show ? (h("div", { "aria-hidden": true, ref: "containerRef", class: `${mergedClsPrefix}-modal-mask` })) : null;
202
214
  }
203
215
  })) : null,
204
- h(NModalBodyWrapper, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: 'bodyWrapper', displayDirective: this.displayDirective, show: this.show, preset: this.preset }, this.presetProps, { onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: this.handleClickoutside, onKeyup: this.handleKeyup }), this.$slots)), [
216
+ h(NModalBodyWrapper, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: 'bodyWrapper', displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus }, this.presetProps, { onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: this.handleClickoutside }), this.$slots)), [
205
217
  [
206
218
  zindexable,
207
219
  {
220
+ zIndex: this.zIndex,
208
221
  enabled: this.show
209
222
  }
210
223
  ]
@@ -1,8 +1,8 @@
1
- import { Ref, ComponentPublicInstance, InjectionKey } from 'vue';
1
+ import { Ref, ComponentPublicInstance } from 'vue';
2
2
  import type { MergedTheme } from '../../_mixins';
3
3
  import type { ModalTheme } from '../styles';
4
4
  export declare type ModalBodyInjection = Ref<HTMLElement | ComponentPublicInstance | null> | null;
5
- export declare const modalBodyInjectionKey: InjectionKey<ModalBodyInjection>;
5
+ export declare const modalBodyInjectionKey: import("vue").InjectionKey<ModalBodyInjection>;
6
6
  export interface ModalInjection {
7
7
  getMousePosition: () => {
8
8
  x: number;
@@ -14,4 +14,4 @@ export interface ModalInjection {
14
14
  appearRef: Ref<boolean | undefined>;
15
15
  transformOriginRef: Ref<'mouse' | 'center'>;
16
16
  }
17
- export declare const modalInjectionKey: InjectionKey<ModalInjection>;
17
+ export declare const modalInjectionKey: import("vue").InjectionKey<ModalInjection>;
@@ -1,2 +1,3 @@
1
- export const modalBodyInjectionKey = Symbol('modalBody');
2
- export const modalInjectionKey = Symbol('modal');
1
+ import { createInjectionKey } from '../../_utils/vue/create-injection-key';
2
+ export const modalBodyInjectionKey = createInjectionKey('n-modal-body');
3
+ export const modalInjectionKey = createInjectionKey('n-modal');
@@ -69,28 +69,26 @@ declare const _default: import("vue").DefineComponent<{
69
69
  '--n-padding-top': string;
70
70
  '--n-padding-bottom': string;
71
71
  }>;
72
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
73
- readonly closable?: unknown;
74
- readonly type?: unknown;
75
- readonly avatar?: unknown;
76
- readonly title?: unknown;
77
- readonly description?: unknown;
78
- readonly content?: unknown;
79
- readonly meta?: unknown;
80
- readonly action?: unknown;
81
- readonly onClose?: unknown;
82
- } & {
83
- type: "default" | "error" | "info" | "success" | "warning";
84
- onClose: () => void;
85
- closable: boolean;
86
- } & {
87
- meta?: string | (() => VNodeChild) | undefined;
88
- content?: string | (() => VNodeChild) | undefined;
89
- description?: string | (() => VNodeChild) | undefined;
90
- title?: string | (() => VNodeChild) | undefined;
91
- action?: string | (() => VNodeChild) | undefined;
92
- avatar?: (() => VNodeChild) | undefined;
93
- }>, {
72
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
73
+ readonly closable: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: true;
76
+ };
77
+ readonly type: {
78
+ readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
79
+ readonly default: "default";
80
+ };
81
+ readonly avatar: PropType<() => VNodeChild>;
82
+ readonly title: PropType<string | (() => VNodeChild)>;
83
+ readonly description: PropType<string | (() => VNodeChild)>;
84
+ readonly content: PropType<string | (() => VNodeChild)>;
85
+ readonly meta: PropType<string | (() => VNodeChild)>;
86
+ readonly action: PropType<string | (() => VNodeChild)>;
87
+ readonly onClose: {
88
+ readonly type: PropType<() => void>;
89
+ readonly required: true;
90
+ };
91
+ }>>, {
94
92
  type: "default" | "error" | "info" | "success" | "warning";
95
93
  closable: boolean;
96
94
  }>;
@@ -152,11 +152,14 @@ declare const _default: import("vue").DefineComponent<{
152
152
  };
153
153
  }>;
154
154
  mergedClsPrefix: import("vue").Ref<string>;
155
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
156
- scrollable?: unknown;
157
- placement?: unknown;
158
- } & {
159
- placement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
160
- scrollable: boolean;
161
- } & {}>, {}>;
155
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
156
+ scrollable: {
157
+ type: BooleanConstructor;
158
+ required: true;
159
+ };
160
+ placement: {
161
+ type: PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
162
+ required: true;
163
+ };
164
+ }>>, {}>;
162
165
  export default _default;
@@ -66,46 +66,38 @@ declare const _default: import("vue").DefineComponent<{
66
66
  handleBeforeLeave: (el: HTMLElement) => void;
67
67
  handleAfterEnter: (el: HTMLElement) => void;
68
68
  handleBeforeEnter: (el: HTMLElement) => void;
69
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
70
- internalKey?: unknown;
71
- onInternalAfterLeave?: unknown;
72
- duration?: unknown;
73
- onClose?: unknown;
74
- onLeave?: unknown;
75
- onAfterEnter?: unknown;
76
- onAfterLeave?: unknown;
77
- onHide?: unknown;
78
- onAfterShow?: unknown;
79
- onAfterHide?: unknown;
80
- closable?: unknown;
81
- type?: unknown;
82
- avatar?: unknown;
83
- title?: unknown;
84
- description?: unknown;
85
- content?: unknown;
86
- meta?: unknown;
87
- action?: unknown;
88
- } & {
89
- type: "default" | "error" | "info" | "success" | "warning";
90
- closable: boolean;
91
- internalKey: string;
92
- onInternalAfterLeave: (key: string) => void;
93
- } & {
94
- meta?: string | (() => import("vue").VNodeChild) | undefined;
95
- content?: string | (() => import("vue").VNodeChild) | undefined;
96
- description?: string | (() => import("vue").VNodeChild) | undefined;
97
- duration?: number | undefined;
98
- onAfterEnter?: (() => void) | undefined;
99
- onLeave?: (() => void) | undefined;
100
- onAfterLeave?: (() => void) | undefined;
101
- title?: string | (() => import("vue").VNodeChild) | undefined;
102
- action?: string | (() => import("vue").VNodeChild) | undefined;
103
- avatar?: (() => import("vue").VNodeChild) | undefined;
104
- onClose?: (() => any) | undefined;
105
- onHide?: (() => void) | undefined;
106
- onAfterHide?: (() => void) | undefined;
107
- onAfterShow?: (() => void) | undefined;
108
- }>, {
69
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
+ internalKey: {
71
+ type: StringConstructor;
72
+ required: true;
73
+ };
74
+ onInternalAfterLeave: {
75
+ type: PropType<(key: string) => void>;
76
+ required: true;
77
+ };
78
+ duration: NumberConstructor;
79
+ onClose: PropType<() => any>;
80
+ onLeave: PropType<() => void>;
81
+ onAfterEnter: PropType<() => void>;
82
+ onAfterLeave: PropType<() => void>;
83
+ onHide: PropType<() => void>;
84
+ onAfterShow: PropType<() => void>;
85
+ onAfterHide: PropType<() => void>;
86
+ closable: {
87
+ readonly type: BooleanConstructor;
88
+ readonly default: true;
89
+ };
90
+ type: {
91
+ readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
92
+ readonly default: "default";
93
+ };
94
+ avatar: PropType<() => import("vue").VNodeChild>;
95
+ title: PropType<string | (() => import("vue").VNodeChild)>;
96
+ description: PropType<string | (() => import("vue").VNodeChild)>;
97
+ content: PropType<string | (() => import("vue").VNodeChild)>;
98
+ meta: PropType<string | (() => import("vue").VNodeChild)>;
99
+ action: PropType<string | (() => import("vue").VNodeChild)>;
100
+ }>>, {
109
101
  type: "default" | "error" | "info" | "success" | "warning";
110
102
  closable: boolean;
111
103
  }>;
@@ -1,4 +1,4 @@
1
- import { PropType, ExtractPropTypes, InjectionKey, Ref } from 'vue';
1
+ import { PropType, ExtractPropTypes, Ref } from 'vue';
2
2
  import type { MergedTheme } from '../../_mixins';
3
3
  import { ExtractPublicPropTypes, Mutable } from '../../_utils';
4
4
  import { NotificationTheme } from '../styles';
@@ -8,7 +8,7 @@ export interface NotificationProviderInjection {
8
8
  mergedClsPrefixRef: Ref<string>;
9
9
  mergedThemeRef: Ref<MergedTheme<NotificationTheme>>;
10
10
  }
11
- export declare const notificationProviderInjectionKey: InjectionKey<NotificationProviderInjection>;
11
+ export declare const notificationProviderInjectionKey: import("vue").InjectionKey<NotificationProviderInjection>;
12
12
  declare type Create = (options: NotificationOptions) => NotificationReactive;
13
13
  declare type TypedCreate = (options: Omit<NotificationOptions, 'type'>) => NotificationReactive;
14
14
  export interface NotificationApiInjection {
@@ -22,7 +22,7 @@ export interface NotificationApiInjection {
22
22
  destroyAll: () => void;
23
23
  }
24
24
  export declare type NotificationProviderInst = NotificationApiInjection;
25
- export declare const notificationApiInjectionKey: InjectionKey<NotificationApiInjection>;
25
+ export declare const notificationApiInjectionKey: import("vue").InjectionKey<NotificationApiInjection>;
26
26
  export declare type NotificationReactive = {
27
27
  readonly key: string;
28
28
  readonly destroy: () => void;
@@ -239,22 +239,22 @@ declare const _default: import("vue").DefineComponent<{
239
239
  readonly destroy: () => void;
240
240
  readonly hide: () => void;
241
241
  readonly deactivate: () => void;
242
+ type?: "default" | "error" | "info" | "success" | "warning" | undefined;
243
+ closable?: boolean | undefined;
244
+ meta?: string | (() => import("vue").VNodeChild) | undefined;
245
+ content?: string | (() => import("vue").VNodeChild) | undefined;
246
+ description?: string | (() => import("vue").VNodeChild) | undefined;
242
247
  duration?: number | undefined;
243
- onClose?: (() => any) | undefined;
244
- onLeave?: (() => void) | undefined;
245
248
  onAfterEnter?: (() => void) | undefined;
249
+ onLeave?: (() => void) | undefined;
246
250
  onAfterLeave?: (() => void) | undefined;
247
- onHide?: (() => void) | undefined;
248
- onAfterShow?: (() => void) | undefined;
249
- onAfterHide?: (() => void) | undefined;
250
- closable?: boolean | undefined;
251
- type?: "default" | "error" | "info" | "success" | "warning" | undefined;
252
- avatar?: (() => import("vue").VNodeChild) | undefined;
253
251
  title?: string | (() => import("vue").VNodeChild) | undefined;
254
- description?: string | (() => import("vue").VNodeChild) | undefined;
255
- content?: string | (() => import("vue").VNodeChild) | undefined;
256
- meta?: string | (() => import("vue").VNodeChild) | undefined;
257
252
  action?: string | (() => import("vue").VNodeChild) | undefined;
253
+ avatar?: (() => import("vue").VNodeChild) | undefined;
254
+ onClose?: (() => any) | undefined;
255
+ onHide?: (() => void) | undefined;
256
+ onAfterHide?: (() => void) | undefined;
257
+ onAfterShow?: (() => void) | undefined;
258
258
  }[]>;
259
259
  notificationRefs: Record<string, NotificationRef>;
260
260
  handleAfterLeave: (key: string) => void;
@@ -266,21 +266,18 @@ declare const _default: import("vue").DefineComponent<{
266
266
  error: (options: Omit<NotificationOptions, 'type'>) => NotificationReactive;
267
267
  open: (options: NotificationOptions) => NotificationReactive;
268
268
  destroyAll: () => void;
269
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
270
- to?: unknown;
271
- scrollable?: unknown;
272
- max?: unknown;
273
- placement?: unknown;
274
- theme?: unknown;
275
- themeOverrides?: unknown;
276
- builtinThemeOverrides?: unknown;
277
- } & {
278
- placement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
279
- scrollable: boolean;
280
- } & {
281
- max?: number | undefined;
282
- to?: string | HTMLElement | undefined;
283
- theme?: import("../../_mixins").Theme<"Notification", {
269
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
270
+ to: PropType<string | HTMLElement>;
271
+ scrollable: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ max: NumberConstructor;
276
+ placement: {
277
+ type: PropType<"top-left" | "top-right" | "bottom-left" | "bottom-right">;
278
+ default: string;
279
+ };
280
+ theme: PropType<import("../../_mixins").Theme<"Notification", {
284
281
  borderRadius: string;
285
282
  lineHeight: string;
286
283
  fontSize: string;
@@ -308,8 +305,8 @@ declare const _default: import("vue").DefineComponent<{
308
305
  color: string;
309
306
  colorHover: string;
310
307
  }, any>;
311
- }> | undefined;
312
- themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
308
+ }>>;
309
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
313
310
  borderRadius: string;
314
311
  lineHeight: string;
315
312
  fontSize: string;
@@ -337,8 +334,8 @@ declare const _default: import("vue").DefineComponent<{
337
334
  color: string;
338
335
  colorHover: string;
339
336
  }, any>;
340
- }>> | undefined;
341
- builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
337
+ }>>>;
338
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Notification", {
342
339
  borderRadius: string;
343
340
  lineHeight: string;
344
341
  fontSize: string;
@@ -366,8 +363,8 @@ declare const _default: import("vue").DefineComponent<{
366
363
  color: string;
367
364
  colorHover: string;
368
365
  }, any>;
369
- }>> | undefined;
370
- }>, {
366
+ }>>>;
367
+ }>>, {
371
368
  placement: "top-left" | "top-right" | "bottom-left" | "bottom-right";
372
369
  scrollable: boolean;
373
370
  }>;
@@ -1,14 +1,14 @@
1
1
  /* eslint-disable @typescript-eslint/no-dynamic-delete */
2
- import { Fragment, h, reactive, ref, Teleport, defineComponent, provide, renderSlot } from 'vue';
2
+ import { Fragment, h, reactive, ref, Teleport, defineComponent, provide } from 'vue';
3
3
  import { createId } from 'seemly';
4
4
  import { useConfig, useTheme } from '../../_mixins';
5
- import { omit } from '../../_utils';
5
+ import { omit, createInjectionKey } from '../../_utils';
6
6
  import { notificationLight } from '../styles';
7
7
  import NotificationContainer from './NotificationContainer';
8
8
  import NotificationEnvironment from './NotificationEnvironment';
9
9
  import style from './styles/index.cssr';
10
- export const notificationProviderInjectionKey = Symbol('notificationProvider');
11
- export const notificationApiInjectionKey = Symbol('notificationApi');
10
+ export const notificationProviderInjectionKey = createInjectionKey('n-notification-provider');
11
+ export const notificationApiInjectionKey = createInjectionKey('n-notification-api');
12
12
  const notificationProviderProps = Object.assign(Object.assign({}, useTheme.props), { to: [String, Object], scrollable: {
13
13
  type: Boolean,
14
14
  default: true
@@ -95,10 +95,10 @@ export default defineComponent({
95
95
  }, api);
96
96
  },
97
97
  render() {
98
- var _a;
99
- return (h(Fragment, null,
100
- renderSlot(this.$slots, 'default'),
101
- this.notificationList.length ? (h(Teleport, { to: (_a = this.to) !== null && _a !== void 0 ? _a : 'body' },
98
+ var _a, _b, _c;
99
+ return (h(Fragment, null, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 :
100
+ _b.call(_a),
101
+ this.notificationList.length ? (h(Teleport, { to: (_c = this.to) !== null && _c !== void 0 ? _c : 'body' },
102
102
  h(NotificationContainer, { scrollable: this.scrollable, placement: this.placement }, {
103
103
  default: () => {
104
104
  return this.notificationList.map((notification) => {
@@ -9,6 +9,7 @@ declare const numberAnimationProps: {
9
9
  default: number;
10
10
  };
11
11
  showSeparator: BooleanConstructor;
12
+ locale: StringConstructor;
12
13
  from: {
13
14
  type: NumberConstructor;
14
15
  default: number;
@@ -36,6 +37,7 @@ declare const _default: import("vue").DefineComponent<{
36
37
  default: number;
37
38
  };
38
39
  showSeparator: BooleanConstructor;
40
+ locale: StringConstructor;
39
41
  from: {
40
42
  type: NumberConstructor;
41
43
  default: number;
@@ -53,22 +55,32 @@ declare const _default: import("vue").DefineComponent<{
53
55
  formattedValue: import("vue").ComputedRef<{
54
56
  integer: string;
55
57
  decimal: string;
58
+ decimalSeparator: string | undefined;
56
59
  }>;
57
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
58
- to?: unknown;
59
- precision?: unknown;
60
- showSeparator?: unknown;
61
- from?: unknown;
62
- active?: unknown;
63
- duration?: unknown;
64
- } & {
65
- active: boolean;
66
- duration: number;
67
- from: number;
68
- to: number;
69
- precision: number;
70
- showSeparator: boolean;
71
- } & {}>, {
60
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
+ to: {
62
+ type: NumberConstructor;
63
+ default: number;
64
+ };
65
+ precision: {
66
+ type: NumberConstructor;
67
+ default: number;
68
+ };
69
+ showSeparator: BooleanConstructor;
70
+ locale: StringConstructor;
71
+ from: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ active: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ duration: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ }>>, {
72
84
  active: boolean;
73
85
  duration: number;
74
86
  from: number;
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, computed, onMounted, ref, watchEffect } from 'vue';
2
2
  import { round } from 'lodash-es';
3
3
  import { tween } from './utils';
4
+ import { useLocale } from '../../_mixins';
4
5
  const numberAnimationProps = {
5
6
  to: {
6
7
  type: Number,
@@ -11,6 +12,7 @@ const numberAnimationProps = {
11
12
  default: 0
12
13
  },
13
14
  showSeparator: Boolean,
15
+ locale: String,
14
16
  from: { type: Number, default: 0 },
15
17
  active: {
16
18
  type: Boolean,
@@ -25,8 +27,15 @@ export default defineComponent({
25
27
  name: 'NumberAnimation',
26
28
  props: numberAnimationProps,
27
29
  setup(props) {
30
+ const { localeRef } = useLocale('name');
28
31
  const { duration } = props;
29
32
  const displayedValueRef = ref(props.from);
33
+ const mergedLocaleRef = computed(() => {
34
+ const { locale } = props;
35
+ if (locale !== undefined)
36
+ return locale;
37
+ return localeRef.value;
38
+ });
30
39
  let animating = false;
31
40
  const onUpdate = (currentValue) => {
32
41
  displayedValueRef.value = currentValue;
@@ -49,15 +58,21 @@ export default defineComponent({
49
58
  }
50
59
  };
51
60
  const formattedValueRef = computed(() => {
61
+ var _a;
52
62
  const formatted = round(displayedValueRef.value, props.precision).toFixed(props.precision);
53
63
  const splitValue = formatted.split('.');
64
+ const numberFormatter = new Intl.NumberFormat(mergedLocaleRef.value);
65
+ const decimalSeparator = (_a = numberFormatter
66
+ .formatToParts(0.5)
67
+ .find((part) => part.type === 'decimal')) === null || _a === void 0 ? void 0 : _a.value;
54
68
  const integer = props.showSeparator
55
- ? Number(splitValue[0]).toLocaleString('en-US')
69
+ ? numberFormatter.format(Number(splitValue[0]))
56
70
  : splitValue[0];
57
71
  const decimal = splitValue[1];
58
72
  return {
59
73
  integer,
60
- decimal
74
+ decimal,
75
+ decimalSeparator
61
76
  };
62
77
  });
63
78
  function play() {
@@ -75,7 +90,7 @@ export default defineComponent({
75
90
  return Object.assign({ formattedValue: formattedValueRef }, exposedMethods);
76
91
  },
77
92
  render() {
78
- const { formattedValue: { integer, decimal } } = this;
79
- return [integer, decimal ? '.' : null, decimal];
93
+ const { formattedValue: { integer, decimal, decimalSeparator } } = this;
94
+ return [integer, decimal ? decimalSeparator : null, decimal];
80
95
  }
81
96
  });
@@ -1,2 +1,2 @@
1
1
  export { default as NPageHeader } from './src/PageHeader';
2
- export type { PageHeaderPorps } from './src/PageHeader';
2
+ export type { PageHeaderProps } from './src/PageHeader';
@@ -39,7 +39,7 @@ declare const pageHeaderProps: {
39
39
  backSize: string;
40
40
  }, unknown>>>;
41
41
  };
42
- export declare type PageHeaderPorps = ExtractPublicPropTypes<typeof pageHeaderProps>;
42
+ export declare type PageHeaderProps = ExtractPublicPropTypes<typeof pageHeaderProps>;
43
43
  declare const _default: import("vue").DefineComponent<{
44
44
  title: StringConstructor;
45
45
  subtitle: StringConstructor;
@@ -93,18 +93,12 @@ declare const _default: import("vue").DefineComponent<{
93
93
  '--n-back-color-pressed': string;
94
94
  '--n-bezier': string;
95
95
  }>;
96
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
97
- title?: unknown;
98
- subtitle?: unknown;
99
- extra?: unknown;
100
- onBack?: unknown;
101
- theme?: unknown;
102
- themeOverrides?: unknown;
103
- builtinThemeOverrides?: unknown;
104
- } & {} & {
105
- extra?: string | undefined;
106
- title?: string | undefined;
107
- theme?: import("../../_mixins").Theme<"PageHeader", {
96
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
97
+ title: StringConstructor;
98
+ subtitle: StringConstructor;
99
+ extra: StringConstructor;
100
+ onBack: PropType<() => void>;
101
+ theme: PropType<import("../../_mixins").Theme<"PageHeader", {
108
102
  titleFontWeight: string;
109
103
  fontSize: string;
110
104
  titleTextColor: string;
@@ -114,8 +108,8 @@ declare const _default: import("vue").DefineComponent<{
114
108
  subtitleTextColor: string;
115
109
  titleFontSize: string;
116
110
  backSize: string;
117
- }, unknown> | undefined;
118
- themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"PageHeader", {
111
+ }, unknown>>;
112
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"PageHeader", {
119
113
  titleFontWeight: string;
120
114
  fontSize: string;
121
115
  titleTextColor: string;
@@ -125,8 +119,8 @@ declare const _default: import("vue").DefineComponent<{
125
119
  subtitleTextColor: string;
126
120
  titleFontSize: string;
127
121
  backSize: string;
128
- }, unknown>> | undefined;
129
- builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"PageHeader", {
122
+ }, unknown>>>;
123
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"PageHeader", {
130
124
  titleFontWeight: string;
131
125
  fontSize: string;
132
126
  titleTextColor: string;
@@ -136,8 +130,6 @@ declare const _default: import("vue").DefineComponent<{
136
130
  subtitleTextColor: string;
137
131
  titleFontSize: string;
138
132
  backSize: string;
139
- }, unknown>> | undefined;
140
- subtitle?: string | undefined;
141
- onBack?: (() => void) | undefined;
142
- }>, {}>;
133
+ }, unknown>>>;
134
+ }>>, {}>;
143
135
  export default _default;
@@ -36,7 +36,7 @@ export default defineComponent({
36
36
  },
37
37
  render() {
38
38
  const { onBack, title, subtitle, extra, mergedClsPrefix, cssVars, $slots } = this;
39
- const { title: titleSlot, subtitle: subtitleSlot, extra: extraSlot, default: defaultSlot, header: headerSlot, avatar: avatarSlot, footer: footerSlot } = $slots;
39
+ const { title: titleSlot, subtitle: subtitleSlot, extra: extraSlot, default: defaultSlot, header: headerSlot, avatar: avatarSlot, footer: footerSlot, back: backSlot } = $slots;
40
40
  const showBack = onBack;
41
41
  const showTitle = title || titleSlot;
42
42
  const showSubtitle = subtitle || subtitleSlot;
@@ -48,10 +48,9 @@ export default defineComponent({
48
48
  headerSlot ? (h("div", { class: `${mergedClsPrefix}-page-header-header`, key: "breadcrumb" }, headerSlot())) : null,
49
49
  (showBack || avatarSlot || showTitle || showSubtitle || showExtra) && (h("div", { class: `${mergedClsPrefix}-page-header`, key: "header" },
50
50
  h("div", { class: `${mergedClsPrefix}-page-header__main`, key: "back" },
51
- showBack ? (h("div", { class: `${mergedClsPrefix}-page-header__back`, onClick: onBack },
52
- h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
53
- default: () => h(ArrowBackIcon, null)
54
- }))) : null,
51
+ showBack ? (h("div", { class: `${mergedClsPrefix}-page-header__back`, onClick: onBack }, backSlot ? (backSlot()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, {
52
+ default: () => h(ArrowBackIcon, null)
53
+ })))) : null,
55
54
  avatarSlot ? (h("div", { class: `${mergedClsPrefix}-page-header__avatar` }, avatarSlot())) : null,
56
55
  showTitle ? (h("div", { class: `${mergedClsPrefix}-page-header__title`, key: "title" }, title || titleSlot())) : null,
57
56
  showSubtitle ? (h("div", { class: `${mergedClsPrefix}-page-header__subtitle`, key: "subtitle" }, subtitle || subtitleSlot())) : null),
@@ -1,3 +1,3 @@
1
1
  export { default as NPagination } from './src/Pagination';
2
2
  export type { PaginationProps } from './src/Pagination';
3
- export type { PaginationInfo, PaginationSizeOption } from './src/interface';
3
+ export type { PaginationInfo, PaginationSizeOption, PaginationRenderLabel } from './src/interface';