naive-ui 2.21.4 → 2.23.1

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 (388) hide show
  1. package/es/_internal/close/src/styles/index.cssr.js +6 -5
  2. package/es/_internal/scrollbar/src/ScrollBar.d.ts +4 -0
  3. package/es/_internal/scrollbar/src/ScrollBar.js +5 -2
  4. package/es/_internal/selection/src/Selection.js +11 -9
  5. package/es/_internal/selection/src/styles/index.cssr.js +6 -2
  6. package/es/_utils/composable/use-houdini.js +10 -7
  7. package/es/alert/src/Alert.d.ts +20 -20
  8. package/es/alert/src/Alert.js +22 -22
  9. package/es/alert/src/styles/index.cssr.js +45 -45
  10. package/es/anchor/src/AnchorAdapter.js +12 -12
  11. package/es/anchor/src/styles/index.cssr.js +41 -41
  12. package/es/auto-complete/src/AutoComplete.d.ts +2 -2
  13. package/es/auto-complete/src/AutoComplete.js +2 -2
  14. package/es/auto-complete/src/styles/index.cssr.js +4 -4
  15. package/es/avatar/src/Avatar.d.ts +10 -8
  16. package/es/avatar/src/Avatar.js +11 -9
  17. package/es/avatar/src/styles/index.cssr.js +14 -16
  18. package/es/back-top/src/BackTop.d.ts +13 -13
  19. package/es/back-top/src/BackTop.js +13 -13
  20. package/es/back-top/src/styles/index.cssr.js +29 -29
  21. package/es/badge/src/Badge.d.ts +6 -6
  22. package/es/badge/src/Badge.js +6 -6
  23. package/es/badge/src/styles/index.cssr.js +15 -15
  24. package/es/button/src/Button.d.ts +43 -38
  25. package/es/button/src/Button.js +124 -116
  26. package/es/button/src/styles/button.cssr.js +83 -80
  27. package/es/button/styles/light.js +1 -1
  28. package/es/calendar/src/Calendar.d.ts +6 -0
  29. package/es/cascader/src/Cascader.d.ts +135 -0
  30. package/es/cascader/src/Cascader.js +2 -4
  31. package/es/cascader/src/CascaderMenu.d.ts +345 -0
  32. package/es/cascader/src/CascaderMenu.js +6 -5
  33. package/es/cascader/src/CascaderOption.d.ts +18 -0
  34. package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
  35. package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
  36. package/es/cascader/styles/dark.js +3 -1
  37. package/es/cascader/styles/light.d.ts +13 -0
  38. package/es/cascader/styles/light.js +3 -1
  39. package/es/config-provider/src/ConfigProvider.d.ts +18 -0
  40. package/es/data-table/src/DataTable.js +7 -13
  41. package/es/data-table/src/MainTable.js +2 -3
  42. package/es/data-table/src/TableParts/Body.d.ts +15 -4
  43. package/es/data-table/src/TableParts/Body.js +80 -28
  44. package/es/data-table/src/TableParts/Cell.js +2 -3
  45. package/es/data-table/src/TableParts/Header.js +2 -2
  46. package/es/data-table/src/interface.d.ts +4 -1
  47. package/es/data-table/src/styles/index.cssr.js +4 -3
  48. package/es/data-table/src/use-check.js +6 -2
  49. package/es/data-table/src/use-scroll.d.ts +2 -0
  50. package/es/data-table/src/use-scroll.js +34 -4
  51. package/es/data-table/src/use-table-data.js +3 -1
  52. package/es/data-table/styles/_common.js +1 -1
  53. package/es/date-picker/src/DatePicker.d.ts +30 -5
  54. package/es/date-picker/src/DatePicker.js +32 -9
  55. package/es/date-picker/src/config.d.ts +1 -9
  56. package/es/date-picker/src/config.js +0 -8
  57. package/es/date-picker/src/interface.d.ts +2 -1
  58. package/es/date-picker/src/panel/date.d.ts +17 -10
  59. package/es/date-picker/src/panel/date.js +2 -2
  60. package/es/date-picker/src/panel/daterange.d.ts +15 -9
  61. package/es/date-picker/src/panel/daterange.js +2 -2
  62. package/es/date-picker/src/panel/datetime.d.ts +17 -16
  63. package/es/date-picker/src/panel/datetime.js +2 -2
  64. package/es/date-picker/src/panel/datetimerange.d.ts +15 -9
  65. package/es/date-picker/src/panel/datetimerange.js +2 -2
  66. package/es/date-picker/src/panel/month.d.ts +21 -20
  67. package/es/date-picker/src/panel/month.js +23 -12
  68. package/es/date-picker/src/panel/use-calendar.d.ts +17 -39
  69. package/es/date-picker/src/panel/use-calendar.js +41 -23
  70. package/es/date-picker/src/panel/use-dual-calendar.d.ts +13 -36
  71. package/es/date-picker/src/panel/use-dual-calendar.js +35 -21
  72. package/es/date-picker/src/panel/use-panel-common.d.ts +13 -32
  73. package/es/date-picker/src/panel/use-panel-common.js +4 -8
  74. package/es/date-picker/src/utils.d.ts +19 -3
  75. package/es/date-picker/src/utils.js +40 -5
  76. package/es/date-picker/styles/_common.d.ts +2 -0
  77. package/es/date-picker/styles/_common.js +3 -1
  78. package/es/date-picker/styles/light.d.ts +4 -0
  79. package/es/dialog/src/Dialog.d.ts +21 -21
  80. package/es/dialog/src/Dialog.js +23 -23
  81. package/es/dialog/src/styles/index.cssr.js +45 -45
  82. package/es/divider/src/Divider.d.ts +4 -4
  83. package/es/divider/src/Divider.js +4 -4
  84. package/es/divider/src/styles/index.cssr.js +12 -12
  85. package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
  86. package/es/dynamic-tags/src/DynamicTags.js +1 -1
  87. package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
  88. package/es/form/src/Form.d.ts +27 -27
  89. package/es/form/src/FormItem.d.ts +27 -27
  90. package/es/form/src/FormItemCol.d.ts +27 -27
  91. package/es/form/src/FormItemGridItem.d.ts +27 -27
  92. package/es/form/src/FormItemRow.d.ts +27 -27
  93. package/es/form/styles/_common.d.ts +0 -3
  94. package/es/form/styles/_common.js +0 -3
  95. package/es/form/styles/light.d.ts +3 -3
  96. package/es/form/styles/light.js +2 -2
  97. package/es/image/src/Image.js +8 -12
  98. package/es/input/src/Input.js +2 -0
  99. package/es/input-number/src/InputNumber.js +2 -0
  100. package/es/input-number/src/utils.js +1 -1
  101. package/es/locales/common/deDE.js +6 -0
  102. package/es/locales/common/enUS.d.ts +6 -0
  103. package/es/locales/common/enUS.js +7 -1
  104. package/es/locales/common/frFR.d.ts +3 -0
  105. package/es/locales/common/frFR.js +101 -0
  106. package/es/locales/common/idID.d.ts +2 -94
  107. package/es/locales/common/idID.js +6 -0
  108. package/es/locales/common/jaJP.js +6 -0
  109. package/es/locales/common/nbNO.js +6 -0
  110. package/es/locales/common/ruRU.js +6 -0
  111. package/es/locales/common/ukUA.js +6 -0
  112. package/es/locales/common/zhCN.js +6 -0
  113. package/es/locales/common/zhTW.d.ts +3 -0
  114. package/es/locales/common/zhTW.js +100 -0
  115. package/es/locales/date/frFR.d.ts +3 -0
  116. package/es/locales/date/frFR.js +6 -0
  117. package/es/locales/date/idID.d.ts +1 -6
  118. package/es/locales/date/zhTW.d.ts +3 -0
  119. package/es/locales/date/zhTW.js +6 -0
  120. package/es/locales/index.d.ts +4 -0
  121. package/es/locales/index.js +4 -0
  122. package/es/log/src/Log.d.ts +6 -6
  123. package/es/log/src/Log.js +6 -6
  124. package/es/log/src/styles/index.cssr.js +16 -18
  125. package/es/page-header/src/PageHeader.js +3 -3
  126. package/es/page-header/src/styles/index.cssr.js +2 -4
  127. package/es/popover/src/Popover.js +4 -1
  128. package/es/popover/src/PopoverBody.js +3 -3
  129. package/es/popselect/src/Popselect.d.ts +2 -11
  130. package/es/popselect/src/Popselect.js +2 -2
  131. package/es/popselect/src/PopselectPanel.d.ts +3 -11
  132. package/es/popselect/src/PopselectPanel.js +17 -11
  133. package/es/radio/src/Radio.js +3 -3
  134. package/es/radio/src/RadioButton.js +4 -5
  135. package/es/radio/src/styles/radio-group.cssr.js +8 -4
  136. package/es/radio/src/styles/radio.cssr.js +8 -4
  137. package/es/radio/src/use-radio.d.ts +0 -3
  138. package/es/radio/src/use-radio.js +1 -26
  139. package/es/steps/src/Step.d.ts +12 -12
  140. package/es/steps/src/Step.js +12 -12
  141. package/es/steps/src/styles/index.cssr.js +46 -46
  142. package/es/switch/src/Switch.d.ts +19 -19
  143. package/es/switch/src/Switch.js +26 -19
  144. package/es/switch/src/styles/index.cssr.js +59 -57
  145. package/es/tabs/src/styles/index.cssr.js +1 -0
  146. package/es/tag/src/Tag.d.ts +26 -26
  147. package/es/tag/src/Tag.js +26 -26
  148. package/es/tag/src/styles/index.cssr.js +55 -55
  149. package/es/tag/src/styles/rtl.cssr.js +1 -1
  150. package/es/time-picker/src/TimePicker.d.ts +17 -17
  151. package/es/time-picker/src/TimePicker.js +17 -17
  152. package/es/time-picker/src/styles/index.cssr.js +47 -47
  153. package/es/timeline/src/TimelineItem.d.ts +12 -12
  154. package/es/timeline/src/TimelineItem.js +12 -12
  155. package/es/timeline/src/styles/index.cssr.js +44 -44
  156. package/es/transfer/src/styles/index.cssr.js +9 -4
  157. package/es/tree/src/Tree.d.ts +11 -11
  158. package/es/tree/src/Tree.js +11 -11
  159. package/es/tree/src/dnd.js +2 -2
  160. package/es/tree/src/styles/index.cssr.js +33 -33
  161. package/es/tree-select/src/TreeSelect.d.ts +43 -6
  162. package/es/tree-select/src/TreeSelect.js +29 -14
  163. package/es/tree-select/src/styles/index.cssr.js +20 -11
  164. package/es/tree-select/styles/light.d.ts +6 -0
  165. package/es/tree-select/styles/light.js +5 -2
  166. package/es/typography/src/a.d.ts +2 -2
  167. package/es/typography/src/a.js +2 -2
  168. package/es/typography/src/blockquote.d.ts +5 -5
  169. package/es/typography/src/blockquote.js +5 -5
  170. package/es/typography/src/create-header.d.ts +8 -8
  171. package/es/typography/src/create-header.js +8 -8
  172. package/es/typography/src/headers.d.ts +48 -48
  173. package/es/typography/src/hr.d.ts +2 -1
  174. package/es/typography/src/hr.js +3 -1
  175. package/es/typography/src/ol.d.ts +7 -7
  176. package/es/typography/src/ol.js +7 -7
  177. package/es/typography/src/p.d.ts +5 -5
  178. package/es/typography/src/p.js +5 -5
  179. package/es/typography/src/styles/a.cssr.js +6 -6
  180. package/es/typography/src/styles/blockquote.cssr.js +11 -11
  181. package/es/typography/src/styles/header.cssr.js +19 -19
  182. package/es/typography/src/styles/hr.cssr.js +3 -3
  183. package/es/typography/src/styles/list.cssr.js +15 -15
  184. package/es/typography/src/styles/p.cssr.js +10 -10
  185. package/es/typography/src/styles/text.cssr.js +18 -18
  186. package/es/typography/src/text.d.ts +8 -7
  187. package/es/typography/src/text.js +9 -8
  188. package/es/typography/src/ul.d.ts +7 -7
  189. package/es/typography/src/ul.js +7 -7
  190. package/es/upload/src/Upload.js +16 -16
  191. package/es/upload/src/styles/index.cssr.js +36 -36
  192. package/es/version.d.ts +1 -1
  193. package/es/version.js +1 -1
  194. package/lib/_internal/close/src/styles/index.cssr.js +6 -5
  195. package/lib/_internal/scrollbar/src/ScrollBar.d.ts +4 -0
  196. package/lib/_internal/scrollbar/src/ScrollBar.js +5 -2
  197. package/lib/_internal/selection/src/Selection.js +11 -9
  198. package/lib/_internal/selection/src/styles/index.cssr.js +6 -2
  199. package/lib/_utils/composable/use-houdini.js +10 -7
  200. package/lib/alert/src/Alert.d.ts +20 -20
  201. package/lib/alert/src/Alert.js +22 -22
  202. package/lib/alert/src/styles/index.cssr.js +45 -45
  203. package/lib/anchor/src/AnchorAdapter.js +12 -12
  204. package/lib/anchor/src/styles/index.cssr.js +41 -41
  205. package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
  206. package/lib/auto-complete/src/AutoComplete.js +2 -2
  207. package/lib/auto-complete/src/styles/index.cssr.js +4 -4
  208. package/lib/avatar/src/Avatar.d.ts +10 -8
  209. package/lib/avatar/src/Avatar.js +11 -9
  210. package/lib/avatar/src/styles/index.cssr.js +14 -16
  211. package/lib/back-top/src/BackTop.d.ts +13 -13
  212. package/lib/back-top/src/BackTop.js +13 -13
  213. package/lib/back-top/src/styles/index.cssr.js +29 -29
  214. package/lib/badge/src/Badge.d.ts +6 -6
  215. package/lib/badge/src/Badge.js +6 -6
  216. package/lib/badge/src/styles/index.cssr.js +15 -15
  217. package/lib/button/src/Button.d.ts +43 -38
  218. package/lib/button/src/Button.js +123 -115
  219. package/lib/button/src/styles/button.cssr.js +83 -80
  220. package/lib/button/styles/light.js +1 -1
  221. package/lib/calendar/src/Calendar.d.ts +6 -0
  222. package/lib/cascader/src/Cascader.d.ts +135 -0
  223. package/lib/cascader/src/Cascader.js +2 -4
  224. package/lib/cascader/src/CascaderMenu.d.ts +345 -0
  225. package/lib/cascader/src/CascaderMenu.js +6 -5
  226. package/lib/cascader/src/CascaderOption.d.ts +18 -0
  227. package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
  228. package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
  229. package/lib/cascader/styles/dark.js +3 -1
  230. package/lib/cascader/styles/light.d.ts +13 -0
  231. package/lib/cascader/styles/light.js +3 -1
  232. package/lib/config-provider/src/ConfigProvider.d.ts +18 -0
  233. package/lib/data-table/src/DataTable.js +6 -12
  234. package/lib/data-table/src/MainTable.js +1 -2
  235. package/lib/data-table/src/TableParts/Body.d.ts +15 -4
  236. package/lib/data-table/src/TableParts/Body.js +78 -26
  237. package/lib/data-table/src/TableParts/Cell.js +2 -3
  238. package/lib/data-table/src/TableParts/Header.js +2 -2
  239. package/lib/data-table/src/interface.d.ts +4 -1
  240. package/lib/data-table/src/styles/index.cssr.js +4 -3
  241. package/lib/data-table/src/use-check.js +6 -2
  242. package/lib/data-table/src/use-scroll.d.ts +2 -0
  243. package/lib/data-table/src/use-scroll.js +34 -4
  244. package/lib/data-table/src/use-table-data.js +3 -1
  245. package/lib/data-table/styles/_common.js +1 -1
  246. package/lib/date-picker/src/DatePicker.d.ts +30 -5
  247. package/lib/date-picker/src/DatePicker.js +31 -8
  248. package/lib/date-picker/src/config.d.ts +1 -9
  249. package/lib/date-picker/src/config.js +1 -9
  250. package/lib/date-picker/src/interface.d.ts +2 -1
  251. package/lib/date-picker/src/panel/date.d.ts +17 -10
  252. package/lib/date-picker/src/panel/date.js +1 -1
  253. package/lib/date-picker/src/panel/daterange.d.ts +15 -9
  254. package/lib/date-picker/src/panel/daterange.js +1 -1
  255. package/lib/date-picker/src/panel/datetime.d.ts +17 -16
  256. package/lib/date-picker/src/panel/datetime.js +1 -1
  257. package/lib/date-picker/src/panel/datetimerange.d.ts +15 -9
  258. package/lib/date-picker/src/panel/datetimerange.js +2 -2
  259. package/lib/date-picker/src/panel/month.d.ts +21 -20
  260. package/lib/date-picker/src/panel/month.js +23 -12
  261. package/lib/date-picker/src/panel/use-calendar.d.ts +17 -39
  262. package/lib/date-picker/src/panel/use-calendar.js +40 -21
  263. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +13 -36
  264. package/lib/date-picker/src/panel/use-dual-calendar.js +34 -19
  265. package/lib/date-picker/src/panel/use-panel-common.d.ts +13 -32
  266. package/lib/date-picker/src/panel/use-panel-common.js +5 -8
  267. package/lib/date-picker/src/utils.d.ts +19 -3
  268. package/lib/date-picker/src/utils.js +41 -4
  269. package/lib/date-picker/styles/_common.d.ts +2 -0
  270. package/lib/date-picker/styles/_common.js +3 -1
  271. package/lib/date-picker/styles/light.d.ts +4 -0
  272. package/lib/dialog/src/Dialog.d.ts +21 -21
  273. package/lib/dialog/src/Dialog.js +23 -23
  274. package/lib/dialog/src/styles/index.cssr.js +45 -45
  275. package/lib/divider/src/Divider.d.ts +4 -4
  276. package/lib/divider/src/Divider.js +4 -4
  277. package/lib/divider/src/styles/index.cssr.js +12 -12
  278. package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
  279. package/lib/dynamic-tags/src/DynamicTags.js +1 -1
  280. package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
  281. package/lib/form/src/Form.d.ts +27 -27
  282. package/lib/form/src/FormItem.d.ts +27 -27
  283. package/lib/form/src/FormItemCol.d.ts +27 -27
  284. package/lib/form/src/FormItemGridItem.d.ts +27 -27
  285. package/lib/form/src/FormItemRow.d.ts +27 -27
  286. package/lib/form/styles/_common.d.ts +0 -3
  287. package/lib/form/styles/_common.js +0 -3
  288. package/lib/form/styles/light.d.ts +3 -3
  289. package/lib/form/styles/light.js +2 -2
  290. package/lib/image/src/Image.js +7 -11
  291. package/lib/input/src/Input.js +2 -0
  292. package/lib/input-number/src/InputNumber.js +2 -0
  293. package/lib/input-number/src/utils.js +1 -1
  294. package/lib/locales/common/deDE.js +6 -0
  295. package/lib/locales/common/enUS.d.ts +6 -0
  296. package/lib/locales/common/enUS.js +7 -1
  297. package/lib/locales/common/frFR.d.ts +3 -0
  298. package/lib/locales/common/frFR.js +103 -0
  299. package/lib/locales/common/idID.d.ts +2 -94
  300. package/lib/locales/common/idID.js +6 -0
  301. package/lib/locales/common/jaJP.js +6 -0
  302. package/lib/locales/common/nbNO.js +6 -0
  303. package/lib/locales/common/ruRU.js +6 -0
  304. package/lib/locales/common/ukUA.js +6 -0
  305. package/lib/locales/common/zhCN.js +6 -0
  306. package/lib/locales/common/zhTW.d.ts +3 -0
  307. package/lib/locales/common/zhTW.js +102 -0
  308. package/lib/locales/date/frFR.d.ts +3 -0
  309. package/lib/locales/date/frFR.js +11 -0
  310. package/lib/locales/date/idID.d.ts +1 -6
  311. package/lib/locales/date/zhTW.d.ts +3 -0
  312. package/lib/locales/date/zhTW.js +11 -0
  313. package/lib/locales/index.d.ts +4 -0
  314. package/lib/locales/index.js +9 -1
  315. package/lib/log/src/Log.d.ts +6 -6
  316. package/lib/log/src/Log.js +6 -6
  317. package/lib/log/src/styles/index.cssr.js +16 -18
  318. package/lib/page-header/src/PageHeader.js +3 -3
  319. package/lib/page-header/src/styles/index.cssr.js +2 -4
  320. package/lib/popover/src/Popover.js +4 -1
  321. package/lib/popover/src/PopoverBody.js +3 -3
  322. package/lib/popselect/src/Popselect.d.ts +2 -11
  323. package/lib/popselect/src/Popselect.js +2 -2
  324. package/lib/popselect/src/PopselectPanel.d.ts +3 -11
  325. package/lib/popselect/src/PopselectPanel.js +16 -10
  326. package/lib/radio/src/Radio.js +3 -3
  327. package/lib/radio/src/RadioButton.js +4 -5
  328. package/lib/radio/src/styles/radio-group.cssr.js +8 -4
  329. package/lib/radio/src/styles/radio.cssr.js +8 -4
  330. package/lib/radio/src/use-radio.d.ts +0 -3
  331. package/lib/radio/src/use-radio.js +1 -26
  332. package/lib/steps/src/Step.d.ts +12 -12
  333. package/lib/steps/src/Step.js +12 -12
  334. package/lib/steps/src/styles/index.cssr.js +46 -46
  335. package/lib/switch/src/Switch.d.ts +19 -19
  336. package/lib/switch/src/Switch.js +26 -19
  337. package/lib/switch/src/styles/index.cssr.js +59 -57
  338. package/lib/tabs/src/styles/index.cssr.js +1 -0
  339. package/lib/tag/src/Tag.d.ts +26 -26
  340. package/lib/tag/src/Tag.js +26 -26
  341. package/lib/tag/src/styles/index.cssr.js +55 -55
  342. package/lib/tag/src/styles/rtl.cssr.js +1 -1
  343. package/lib/time-picker/src/TimePicker.d.ts +17 -17
  344. package/lib/time-picker/src/TimePicker.js +17 -17
  345. package/lib/time-picker/src/styles/index.cssr.js +47 -47
  346. package/lib/timeline/src/TimelineItem.d.ts +12 -12
  347. package/lib/timeline/src/TimelineItem.js +12 -12
  348. package/lib/timeline/src/styles/index.cssr.js +44 -44
  349. package/lib/transfer/src/styles/index.cssr.js +9 -4
  350. package/lib/tree/src/Tree.d.ts +11 -11
  351. package/lib/tree/src/Tree.js +11 -11
  352. package/lib/tree/src/dnd.js +2 -2
  353. package/lib/tree/src/styles/index.cssr.js +33 -33
  354. package/lib/tree-select/src/TreeSelect.d.ts +43 -6
  355. package/lib/tree-select/src/TreeSelect.js +28 -13
  356. package/lib/tree-select/src/styles/index.cssr.js +20 -11
  357. package/lib/tree-select/styles/light.d.ts +6 -0
  358. package/lib/tree-select/styles/light.js +5 -2
  359. package/lib/typography/src/a.d.ts +2 -2
  360. package/lib/typography/src/a.js +2 -2
  361. package/lib/typography/src/blockquote.d.ts +5 -5
  362. package/lib/typography/src/blockquote.js +5 -5
  363. package/lib/typography/src/create-header.d.ts +8 -8
  364. package/lib/typography/src/create-header.js +8 -8
  365. package/lib/typography/src/headers.d.ts +48 -48
  366. package/lib/typography/src/hr.d.ts +2 -1
  367. package/lib/typography/src/hr.js +3 -1
  368. package/lib/typography/src/ol.d.ts +7 -7
  369. package/lib/typography/src/ol.js +7 -7
  370. package/lib/typography/src/p.d.ts +5 -5
  371. package/lib/typography/src/p.js +5 -5
  372. package/lib/typography/src/styles/a.cssr.js +6 -6
  373. package/lib/typography/src/styles/blockquote.cssr.js +11 -11
  374. package/lib/typography/src/styles/header.cssr.js +19 -19
  375. package/lib/typography/src/styles/hr.cssr.js +3 -3
  376. package/lib/typography/src/styles/list.cssr.js +15 -15
  377. package/lib/typography/src/styles/p.cssr.js +10 -10
  378. package/lib/typography/src/styles/text.cssr.js +18 -18
  379. package/lib/typography/src/text.d.ts +8 -7
  380. package/lib/typography/src/text.js +9 -8
  381. package/lib/typography/src/ul.d.ts +7 -7
  382. package/lib/typography/src/ul.js +7 -7
  383. package/lib/upload/src/Upload.js +16 -16
  384. package/lib/upload/src/styles/index.cssr.js +36 -36
  385. package/lib/version.d.ts +1 -1
  386. package/lib/version.js +1 -1
  387. package/package.json +29 -28
  388. package/web-types.json +25 -7
@@ -1,7 +1,4 @@
1
1
  export default {
2
- blankHeightSmall: '28px',
3
- blankHeightMedium: '34px',
4
- blankHeightLarge: '40px',
5
2
  feedbackPadding: '4px 0 0 2px',
6
3
  feedbackHeightSmall: '24px',
7
4
  feedbackHeightMedium: '24px',
@@ -1,15 +1,15 @@
1
1
  import type { ThemeCommonVars } from '../../_styles/common';
2
2
  import type { Theme } from '../../_mixins';
3
3
  export declare const self: (vars: ThemeCommonVars) => {
4
+ blankHeightSmall: string;
5
+ blankHeightMedium: string;
6
+ blankHeightLarge: string;
4
7
  lineHeight: string;
5
8
  labelTextColor: string;
6
9
  asteriskColor: string;
7
10
  feedbackTextColorError: string;
8
11
  feedbackTextColorWarning: string;
9
12
  feedbackTextColor: string;
10
- blankHeightSmall: string;
11
- blankHeightMedium: string;
12
- blankHeightLarge: string;
13
13
  feedbackPadding: string;
14
14
  feedbackHeightSmall: string;
15
15
  feedbackHeightMedium: string;
@@ -1,8 +1,8 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  import commonVariables from './_common';
3
3
  export const self = (vars) => {
4
- const { textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
5
- return Object.assign(Object.assign({}, commonVariables), { lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
4
+ const { heightSmall, heightMedium, heightLarge, textColor1, errorColor, warningColor, lineHeight, textColor3 } = vars;
5
+ return Object.assign(Object.assign({}, commonVariables), { blankHeightSmall: heightSmall, blankHeightMedium: heightMedium, blankHeightLarge: heightLarge, lineHeight, labelTextColor: textColor1, asteriskColor: errorColor, feedbackTextColorError: errorColor, feedbackTextColorWarning: warningColor, feedbackTextColor: textColor3 });
6
6
  };
7
7
  const formLight = {
8
8
  name: 'Form',
@@ -1,4 +1,4 @@
1
- import { defineComponent, h, inject, ref, toRef, mergeProps, watchEffect } from 'vue';
1
+ import { defineComponent, h, inject, ref, toRef, watchEffect } from 'vue';
2
2
  import NImagePreview from './ImagePreview';
3
3
  import { imageGroupInjectionKey } from './ImageGroup';
4
4
  import { useConfig } from '../../_mixins';
@@ -69,19 +69,15 @@ export default defineComponent({
69
69
  } }, exposedMethods);
70
70
  },
71
71
  render() {
72
- const { mergedClsPrefix, imgProps = {} } = this;
73
- const imgWrapperNode = h('div', mergeProps(this.$attrs, {
74
- role: 'none',
75
- class: [
72
+ const { mergedClsPrefix, imgProps = {}, $attrs } = this;
73
+ const imgNode = (h("img", Object.assign({}, imgProps, { class: [this.groupId, imgProps.class], ref: "imageRef", width: this.width || imgProps.width, height: this.height || imgProps.height, src: this.showError ? this.fallbackSrc : this.src || imgProps.src, alt: this.alt || imgProps.alt, "aria-label": this.alt || imgProps.alt, onClick: this.click, onError: this.mergedOnError, onLoad: this.mergedOnLoad, style: [imgProps.style || '', { objectFit: this.objectFit }], "data-error": this.showError, "data-preview-src": this.previewSrc || this.src })));
74
+ return (h("div", Object.assign({}, $attrs, { role: "none", class: [
75
+ $attrs.class,
76
76
  `${mergedClsPrefix}-image`,
77
77
  (this.previewDisabled || this.showError) &&
78
78
  `${mergedClsPrefix}-image--preview-disabled`
79
- ]
80
- }), [
81
- h("img", Object.assign({}, imgProps, { class: [this.groupId, imgProps.class], ref: "imageRef", width: this.width || imgProps.width, height: this.height || imgProps.height, src: this.showError ? this.fallbackSrc : this.src || imgProps.src, alt: this.alt || imgProps.alt, "aria-label": this.alt || imgProps.alt, onClick: this.click, onError: this.mergedOnError, onLoad: this.mergedOnLoad, style: [imgProps.style || '', { objectFit: this.objectFit }], "data-error": this.showError, "data-preview-src": this.previewSrc || this.src }))
82
- ]);
83
- return this.groupId ? (imgWrapperNode) : (h(NImagePreview, { clsPrefix: mergedClsPrefix, ref: "previewInstRef", showToolbar: this.showToolbar }, {
84
- default: () => imgWrapperNode
85
- }));
79
+ ] }), this.groupId ? (imgNode) : (h(NImagePreview, { clsPrefix: mergedClsPrefix, ref: "previewInstRef", showToolbar: this.showToolbar }, {
80
+ default: () => imgNode
81
+ }))));
86
82
  }
87
83
  });
@@ -390,9 +390,11 @@ export default defineComponent({
390
390
  doClear(e);
391
391
  if (props.pair) {
392
392
  doUpdateValue(['', '']);
393
+ doChange(['', '']);
393
394
  }
394
395
  else {
395
396
  doUpdateValue('');
397
+ doChange('');
396
398
  }
397
399
  }
398
400
  function handleMouseDown(e) {
@@ -309,6 +309,7 @@ export default defineComponent({
309
309
  else if (e.code === 'ArrowUp') {
310
310
  if (props.keyboard.ArrowUp === false)
311
311
  return;
312
+ e.preventDefault();
312
313
  const value = deriveValueFromDisplayedValue();
313
314
  if (value !== false) {
314
315
  doAdd();
@@ -317,6 +318,7 @@ export default defineComponent({
317
318
  else if (e.code === 'ArrowDown') {
318
319
  if (props.keyboard.ArrowDown === false)
319
320
  return;
321
+ e.preventDefault();
320
322
  const value = deriveValueFromDisplayedValue();
321
323
  if (value !== false) {
322
324
  doMinus();
@@ -10,7 +10,7 @@ export function parse(value) {
10
10
  }
11
11
  // can be parsed to number but shouldn't be applied when inputing
12
12
  export function isWipValue(value) {
13
- return /^\d+\.$/.test(value) || /^\.\d+$/.test(value);
13
+ return /^(-)?\d+\.$/.test(value) || /^\.\d+$/.test(value);
14
14
  }
15
15
  // string => boolean (expected, not implemented)
16
16
  // number => boolean (legacy)
@@ -22,6 +22,11 @@ const deDE = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM-yyyy',
27
+ dateFormat: 'dd-MM-yyyy',
28
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'Löschen',
26
31
  now: 'Jetzt',
27
32
  confirm: 'Bestätigen',
@@ -32,6 +37,7 @@ const deDE = {
32
37
  monthPlaceholder: 'Monat auswählen',
33
38
  // FIXME: translation needed
34
39
  yearPlaceholder: 'Select Year',
40
+ quarterPlaceholder: 'Select Quarter',
35
41
  startDatePlaceholder: 'Anfangsdatum',
36
42
  endDatePlaceholder: 'Enddatum',
37
43
  startDatetimePlaceholder: 'Anfangsdatum und Uhrzeit',
@@ -22,6 +22,11 @@ declare const enUS: {
22
22
  yearFormat: string;
23
23
  monthFormat: string;
24
24
  dayFormat: string;
25
+ yearTypeFormat: string;
26
+ monthTypeFormat: string;
27
+ dateFormat: string;
28
+ dateTimeFormat: string;
29
+ quarterFormat: string;
25
30
  clear: string;
26
31
  now: string;
27
32
  confirm: string;
@@ -31,6 +36,7 @@ declare const enUS: {
31
36
  datetimePlaceholder: string;
32
37
  monthPlaceholder: string;
33
38
  yearPlaceholder: string;
39
+ quarterPlaceholder: string;
34
40
  startDatePlaceholder: string;
35
41
  endDatePlaceholder: string;
36
42
  startDatetimePlaceholder: string;
@@ -12,7 +12,7 @@ const enUS = {
12
12
  Cascader: {
13
13
  placeholder: 'Please Select',
14
14
  loading: 'Loading',
15
- loadingRequiredMessage: (label) => `Please load all ${label}'s descedants before checking it.`
15
+ loadingRequiredMessage: (label) => `Please load all ${label}'s descendants before checking it.`
16
16
  },
17
17
  Time: {
18
18
  dateFormat: 'yyyy-MM-dd',
@@ -22,6 +22,11 @@ const enUS = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'Clear',
26
31
  now: 'Now',
27
32
  confirm: 'Confirm',
@@ -31,6 +36,7 @@ const enUS = {
31
36
  datetimePlaceholder: 'Select Date and Time',
32
37
  monthPlaceholder: 'Select Month',
33
38
  yearPlaceholder: 'Select Year',
39
+ quarterPlaceholder: 'Select Quarter',
34
40
  startDatePlaceholder: 'Start Date',
35
41
  endDatePlaceholder: 'End Date',
36
42
  startDatetimePlaceholder: 'Start Date and Time',
@@ -0,0 +1,3 @@
1
+ import type { NLocale } from './enUS';
2
+ declare const frFR: NLocale;
3
+ export default frFR;
@@ -0,0 +1,101 @@
1
+ const frFR = {
2
+ name: 'fr-FR',
3
+ global: {
4
+ undo: 'Défaire',
5
+ redo: 'Refaire',
6
+ confirm: 'Confirmer'
7
+ },
8
+ Popconfirm: {
9
+ positiveText: 'Confirmer',
10
+ negativeText: 'Annuler'
11
+ },
12
+ Cascader: {
13
+ placeholder: 'Sélectionner',
14
+ loading: 'Chargement',
15
+ loadingRequiredMessage: (label) => `Charger tous les enfants de ${label} avant de le sélectionner`
16
+ },
17
+ Time: {
18
+ dateFormat: 'dd-MM-yyyy',
19
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss'
20
+ },
21
+ DatePicker: {
22
+ yearFormat: 'yyyy',
23
+ monthFormat: 'MMM',
24
+ dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM-yyyy',
27
+ dateFormat: 'dd-MM-yyyy',
28
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
30
+ clear: 'Effacer',
31
+ now: 'Maintenant',
32
+ confirm: 'Confirmer',
33
+ selectTime: "Sélectionner l'heure",
34
+ selectDate: 'Sélectionner la date',
35
+ datePlaceholder: 'Sélectionner la date',
36
+ datetimePlaceholder: "Sélectionner la date et l'heure",
37
+ monthPlaceholder: 'Sélectionner le mois',
38
+ yearPlaceholder: "Sélectionner l'année",
39
+ // FIXME: translation needed
40
+ quarterPlaceholder: 'Select Quarter',
41
+ startDatePlaceholder: 'Date de début',
42
+ endDatePlaceholder: 'Date de fin',
43
+ startDatetimePlaceholder: 'Date et heure de début',
44
+ endDatetimePlaceholder: 'Date et heure de fin',
45
+ monthBeforeYear: true,
46
+ firstDayOfWeek: 1,
47
+ today: "Aujourd'hui"
48
+ },
49
+ DataTable: {
50
+ checkTableAll: 'Sélectionner tout',
51
+ uncheckTableAll: 'Désélectionner tout',
52
+ confirm: 'Confirmer',
53
+ clear: 'Effacer'
54
+ },
55
+ Transfer: {
56
+ sourceTitle: 'Source',
57
+ targetTitle: 'Cible'
58
+ },
59
+ Empty: {
60
+ description: 'Aucune donnée'
61
+ },
62
+ Select: {
63
+ placeholder: 'Sélectionner'
64
+ },
65
+ TimePicker: {
66
+ placeholder: "Sélectionner l'heure",
67
+ positiveText: 'OK',
68
+ negativeText: 'Annuler',
69
+ now: 'Maintenant'
70
+ },
71
+ Pagination: {
72
+ goto: 'Aller à',
73
+ selectionSuffix: 'page'
74
+ },
75
+ DynamicTags: {
76
+ add: 'Ajouter'
77
+ },
78
+ Log: {
79
+ loading: 'Chargement'
80
+ },
81
+ Input: {
82
+ placeholder: 'Saisir'
83
+ },
84
+ InputNumber: {
85
+ placeholder: 'Saisir'
86
+ },
87
+ DynamicInput: {
88
+ create: 'Créer'
89
+ },
90
+ ThemeEditor: {
91
+ title: 'Editeur de thème',
92
+ clearAllVars: 'Effacer toutes les variables',
93
+ clearSearch: 'Effacer la recherche',
94
+ filterCompName: 'Filtrer par nom de composant',
95
+ filterVarName: 'Filtrer par nom de variable',
96
+ import: 'Importer',
97
+ export: 'Exporter',
98
+ restore: 'Réinitialiser'
99
+ }
100
+ };
101
+ export default frFR;
@@ -1,95 +1,3 @@
1
- declare const idID: {
2
- name: string;
3
- global: {
4
- undo: string;
5
- redo: string;
6
- confirm: string;
7
- };
8
- Popconfirm: {
9
- positiveText: string;
10
- negativeText: string;
11
- };
12
- Cascader: {
13
- placeholder: string;
14
- loading: string;
15
- loadingRequiredMessage: (label: string) => string;
16
- };
17
- Time: {
18
- dateFormat: string;
19
- dateTimeFormat: string;
20
- };
21
- DatePicker: {
22
- yearFormat: string;
23
- monthFormat: string;
24
- dayFormat: string;
25
- clear: string;
26
- now: string;
27
- confirm: string;
28
- selectTime: string;
29
- selectDate: string;
30
- datePlaceholder: string;
31
- datetimePlaceholder: string;
32
- monthPlaceholder: string;
33
- yearPlaceholder: string;
34
- startDatePlaceholder: string;
35
- endDatePlaceholder: string;
36
- startDatetimePlaceholder: string;
37
- endDatetimePlaceholder: string;
38
- monthBeforeYear: boolean;
39
- firstDayOfWeek: 0 | 2 | 1 | 3 | 4 | 5 | 6;
40
- today: string;
41
- };
42
- DataTable: {
43
- checkTableAll: string;
44
- uncheckTableAll: string;
45
- confirm: string;
46
- clear: string;
47
- };
48
- Transfer: {
49
- sourceTitle: string;
50
- targetTitle: string;
51
- };
52
- Empty: {
53
- description: string;
54
- };
55
- Select: {
56
- placeholder: string;
57
- };
58
- TimePicker: {
59
- placeholder: string;
60
- positiveText: string;
61
- negativeText: string;
62
- now: string;
63
- };
64
- Pagination: {
65
- goto: string;
66
- selectionSuffix: string;
67
- };
68
- DynamicTags: {
69
- add: string;
70
- };
71
- Log: {
72
- loading: string;
73
- };
74
- Input: {
75
- placeholder: string;
76
- };
77
- InputNumber: {
78
- placeholder: string;
79
- };
80
- DynamicInput: {
81
- create: string;
82
- };
83
- ThemeEditor: {
84
- title: string;
85
- clearAllVars: string;
86
- clearSearch: string;
87
- filterCompName: string;
88
- filterVarName: string;
89
- import: string;
90
- export: string;
91
- restore: string;
92
- };
93
- };
94
- export declare type NLocale = typeof idID;
1
+ import type { NLocale } from './enUS';
2
+ declare const idID: NLocale;
95
3
  export default idID;
@@ -22,6 +22,11 @@ const idID = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM-yyyy',
27
+ dateFormat: 'dd-MM-yyyy',
28
+ dateTimeFormat: 'dd-MM-yyyy HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'Bersihkan',
26
31
  now: 'Sekarang',
27
32
  confirm: 'Setuju',
@@ -32,6 +37,7 @@ const idID = {
32
37
  monthPlaceholder: 'Pilih Bulan',
33
38
  // FIXME: translation needed
34
39
  yearPlaceholder: 'Select Year',
40
+ quarterPlaceholder: 'Select Quarter',
35
41
  startDatePlaceholder: 'Tanggal Mulai',
36
42
  endDatePlaceholder: 'Tanggal Selesai',
37
43
  startDatetimePlaceholder: 'Tanggal dan Waktu Mulai',
@@ -22,6 +22,11 @@ const jaJP = {
22
22
  yearFormat: 'yyyy年',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'クリア',
26
31
  now: '現在',
27
32
  confirm: 'OK',
@@ -32,6 +37,7 @@ const jaJP = {
32
37
  monthPlaceholder: '月を選択',
33
38
  // FIXME: translation needed
34
39
  yearPlaceholder: 'Select Year',
40
+ quarterPlaceholder: 'Select Quarter',
35
41
  startDatePlaceholder: '開始日',
36
42
  endDatePlaceholder: '終了日',
37
43
  startDatetimePlaceholder: '開始時間',
@@ -22,6 +22,11 @@ const nbNO = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'MM.yyyy',
27
+ dateFormat: 'dd.MM.yyyy',
28
+ dateTimeFormat: 'dd.MM.yyyy HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'Tøm',
26
31
  now: 'Nå',
27
32
  confirm: 'Bekreft',
@@ -32,6 +37,7 @@ const nbNO = {
32
37
  monthPlaceholder: 'Velg måned',
33
38
  // FIXME: translation needed
34
39
  yearPlaceholder: 'Select Year',
40
+ quarterPlaceholder: 'Select Quarter',
35
41
  startDatePlaceholder: 'Startdato',
36
42
  endDatePlaceholder: 'Sluttdato',
37
43
  startDatetimePlaceholder: 'Startdato og -tid',
@@ -22,6 +22,11 @@ const ruRu = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'Очистить',
26
31
  now: 'Сейчас',
27
32
  confirm: 'Подтвердить',
@@ -32,6 +37,7 @@ const ruRu = {
32
37
  monthPlaceholder: 'Выберите месяц',
33
38
  // FIXME: translation needed
34
39
  yearPlaceholder: 'Select Year',
40
+ quarterPlaceholder: 'Select Quarter',
35
41
  startDatePlaceholder: 'Дата начала',
36
42
  endDatePlaceholder: 'Дата окончания',
37
43
  startDatetimePlaceholder: 'Дата и время начала',
@@ -22,6 +22,11 @@ const ukUA = {
22
22
  yearFormat: 'yyyy',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: 'Стерти',
26
31
  now: 'Зараз',
27
32
  confirm: 'Підтвердити',
@@ -32,6 +37,7 @@ const ukUA = {
32
37
  monthPlaceholder: 'Виберіть місяць',
33
38
  // FIXME: translation needed
34
39
  yearPlaceholder: 'Select Year',
40
+ quarterPlaceholder: 'Select Quarter',
35
41
  startDatePlaceholder: 'Дата початку',
36
42
  endDatePlaceholder: 'Дата завершення',
37
43
  startDatetimePlaceholder: 'Дата і час початку',
@@ -22,6 +22,11 @@ const zhCN = {
22
22
  yearFormat: 'yyyy年',
23
23
  monthFormat: 'MMM',
24
24
  dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
25
30
  clear: '清除',
26
31
  now: '此刻',
27
32
  confirm: '确认',
@@ -31,6 +36,7 @@ const zhCN = {
31
36
  datetimePlaceholder: '选择日期时间',
32
37
  monthPlaceholder: '选择月份',
33
38
  yearPlaceholder: '选择年份',
39
+ quarterPlaceholder: '选择季度',
34
40
  startDatePlaceholder: '开始日期',
35
41
  endDatePlaceholder: '结束日期',
36
42
  startDatetimePlaceholder: '开始日期时间',
@@ -0,0 +1,3 @@
1
+ import type { NLocale } from './enUS';
2
+ declare const zhTW: NLocale;
3
+ export default zhTW;
@@ -0,0 +1,100 @@
1
+ const zhTW = {
2
+ name: 'zh-TW',
3
+ global: {
4
+ undo: '撤銷',
5
+ redo: '重做',
6
+ confirm: '確認'
7
+ },
8
+ Popconfirm: {
9
+ positiveText: '確認',
10
+ negativeText: '取消'
11
+ },
12
+ Cascader: {
13
+ placeholder: '請選擇',
14
+ loading: '載入中',
15
+ loadingRequiredMessage: (label) => `載入全部 ${label} 的子節點後才可選中`
16
+ },
17
+ Time: {
18
+ dateFormat: 'yyyy-MM-dd',
19
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
20
+ },
21
+ DatePicker: {
22
+ yearFormat: 'yyyy年',
23
+ monthFormat: 'MMM',
24
+ dayFormat: 'eeeeee',
25
+ yearTypeFormat: 'yyyy',
26
+ monthTypeFormat: 'yyyy-MM',
27
+ dateFormat: 'yyyy-MM-dd',
28
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
29
+ quarterFormat: 'yyyy-qqq',
30
+ clear: '清除',
31
+ now: '此刻',
32
+ confirm: '確認',
33
+ selectTime: '選擇時間',
34
+ selectDate: '選擇日期',
35
+ datePlaceholder: '選擇日期',
36
+ datetimePlaceholder: '選擇日期時間',
37
+ monthPlaceholder: '選擇月份',
38
+ yearPlaceholder: '選擇年份',
39
+ quarterPlaceholder: '選擇季度',
40
+ startDatePlaceholder: '開始日期',
41
+ endDatePlaceholder: '結束日期',
42
+ startDatetimePlaceholder: '開始日期時間',
43
+ endDatetimePlaceholder: '結束日期時間',
44
+ monthBeforeYear: false,
45
+ firstDayOfWeek: 0,
46
+ today: '今天'
47
+ },
48
+ DataTable: {
49
+ checkTableAll: '選擇全部表格資料',
50
+ uncheckTableAll: '取消選擇全部表格資料',
51
+ confirm: '確認',
52
+ clear: '重置'
53
+ },
54
+ Transfer: {
55
+ sourceTitle: '源項',
56
+ targetTitle: '目標項'
57
+ },
58
+ Empty: {
59
+ description: '無數據'
60
+ },
61
+ Select: {
62
+ placeholder: '請選擇'
63
+ },
64
+ TimePicker: {
65
+ placeholder: '請選擇時間',
66
+ positiveText: '確認',
67
+ negativeText: '取消',
68
+ now: '此刻'
69
+ },
70
+ Pagination: {
71
+ goto: '跳至',
72
+ selectionSuffix: '頁'
73
+ },
74
+ DynamicTags: {
75
+ add: '添加'
76
+ },
77
+ Log: {
78
+ loading: '載入中'
79
+ },
80
+ Input: {
81
+ placeholder: '請輸入'
82
+ },
83
+ InputNumber: {
84
+ placeholder: '請輸入'
85
+ },
86
+ DynamicInput: {
87
+ create: '添加'
88
+ },
89
+ ThemeEditor: {
90
+ title: '主題編輯器',
91
+ clearAllVars: '清除全部變數',
92
+ clearSearch: '清除搜索',
93
+ filterCompName: '過濾組件名',
94
+ filterVarName: '過濾變數名',
95
+ import: '導入',
96
+ export: '匯出',
97
+ restore: '恢復默認'
98
+ }
99
+ };
100
+ export default zhTW;
@@ -0,0 +1,3 @@
1
+ import { NDateLocale } from './enUS';
2
+ declare const dateFrFR: NDateLocale;
3
+ export default dateFrFR;
@@ -0,0 +1,6 @@
1
+ import frFR from 'date-fns/locale/fr';
2
+ const dateFrFR = {
3
+ name: 'fr-FR',
4
+ locale: frFR
5
+ };
6
+ export default dateFrFR;
@@ -1,8 +1,3 @@
1
- import type { Locale } from 'date-fns';
2
- interface NDateLocale {
3
- name: string;
4
- locale: Locale;
5
- }
1
+ import { NDateLocale } from './enUS';
6
2
  declare const dateIdID: NDateLocale;
7
- export { NDateLocale };
8
3
  export default dateIdID;
@@ -0,0 +1,3 @@
1
+ import { NDateLocale } from './enUS';
2
+ declare const datezhTW: NDateLocale;
3
+ export default datezhTW;
@@ -0,0 +1,6 @@
1
+ import zhTW from 'date-fns/locale/zh-TW';
2
+ const datezhTW = {
3
+ name: 'zh-TW',
4
+ locale: zhTW
5
+ };
6
+ export default datezhTW;