@vlrc-fe/components 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/DataTable/DataTable.d.ts.map +1 -1
  3. package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
  4. package/dist/Form/Form.d.ts.map +1 -1
  5. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
  6. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
  7. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +4 -3
  8. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  9. package/dist/Form/FormDatePicker/TimeInput.d.ts +3 -4
  10. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
  11. package/dist/Form/FormDatePicker/TimePicker.d.ts +3 -3
  12. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
  13. package/dist/Form/FormDatePicker/types.d.ts +1 -0
  14. package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
  15. package/dist/Form/FormDatePicker/useFormDatePicker.d.ts +2 -2
  16. package/dist/Form/FormDatePicker/useFormDatePicker.d.ts.map +1 -1
  17. package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
  18. package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -1
  19. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
  20. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
  21. package/dist/MultiSelect/renderers.d.ts +2 -2
  22. package/dist/MultiSelect/renderers.d.ts.map +1 -1
  23. package/dist/assets/stylex.css +450 -0
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +25 -25
  26. package/dist/index101.cjs +1 -1
  27. package/dist/index101.js +120 -91
  28. package/dist/index103.cjs +1 -1
  29. package/dist/index103.js +32 -15
  30. package/dist/index107.cjs +1 -1
  31. package/dist/index107.js +245 -132
  32. package/dist/index109.cjs +1 -1
  33. package/dist/index109.js +319 -138
  34. package/dist/index113.cjs +1 -1
  35. package/dist/index113.js +230 -95
  36. package/dist/index119.cjs +1 -1
  37. package/dist/index119.js +62 -35
  38. package/dist/index120.cjs +1 -1
  39. package/dist/index120.js +71 -32
  40. package/dist/index121.cjs +1 -1
  41. package/dist/index121.js +201 -79
  42. package/dist/index125.cjs +1 -1
  43. package/dist/index125.js +661 -288
  44. package/dist/index129.cjs +1 -1
  45. package/dist/index129.js +6 -5
  46. package/dist/index144.cjs +1 -1
  47. package/dist/index144.js +33 -22
  48. package/dist/index148.cjs +1 -1
  49. package/dist/index148.js +95 -92
  50. package/dist/index151.cjs +1 -1
  51. package/dist/index151.js +56 -56
  52. package/dist/index152.cjs +1 -1
  53. package/dist/index152.js +87 -3
  54. package/dist/index153.cjs +1 -1
  55. package/dist/index153.js +321 -85
  56. package/dist/index154.cjs +1 -1
  57. package/dist/index154.js +160 -287
  58. package/dist/index155.cjs +1 -1
  59. package/dist/index155.js +198 -162
  60. package/dist/index156.cjs +1 -1
  61. package/dist/index156.js +24 -125
  62. package/dist/index157.cjs +1 -1
  63. package/dist/index157.js +8 -25
  64. package/dist/index158.cjs +1 -1
  65. package/dist/index158.js +13 -5
  66. package/dist/index159.cjs +1 -1
  67. package/dist/index159.js +18 -13
  68. package/dist/index160.cjs +1 -1
  69. package/dist/index160.js +12 -16
  70. package/dist/index161.cjs +1 -1
  71. package/dist/index161.js +5 -17
  72. package/dist/index162.cjs +1 -1
  73. package/dist/index162.js +6 -5
  74. package/dist/index163.cjs +1 -1
  75. package/dist/index163.js +6 -5
  76. package/dist/index164.cjs +1 -1
  77. package/dist/index164.js +5 -6
  78. package/dist/index165.cjs +1 -1
  79. package/dist/index165.js +5 -5
  80. package/dist/index166.cjs +1 -1
  81. package/dist/index166.js +7 -5
  82. package/dist/index167.cjs +1 -1
  83. package/dist/index167.js +68 -8
  84. package/dist/index168.cjs +1 -1
  85. package/dist/index168.js +9 -67
  86. package/dist/index169.cjs +1 -1
  87. package/dist/index169.js +201 -10
  88. package/dist/index170.cjs +1 -1
  89. package/dist/index170.js +101 -179
  90. package/dist/index171.cjs +1 -1
  91. package/dist/index171.js +24 -116
  92. package/dist/index172.cjs +1 -1
  93. package/dist/index172.js +18 -30
  94. package/dist/index173.cjs +1 -1
  95. package/dist/index173.js +66 -17
  96. package/dist/index174.cjs +1 -1
  97. package/dist/index174.js +30 -67
  98. package/dist/index175.cjs +1 -1
  99. package/dist/index175.js +10 -31
  100. package/dist/index176.cjs +1 -1
  101. package/dist/index176.js +279 -10
  102. package/dist/index177.cjs +1 -1
  103. package/dist/index177.js +125 -248
  104. package/dist/index178.cjs +1 -1
  105. package/dist/index178.js +18 -155
  106. package/dist/index179.cjs +1 -1
  107. package/dist/index179.js +9 -19
  108. package/dist/index180.cjs +1 -1
  109. package/dist/index180.js +12 -8
  110. package/dist/index181.cjs +1 -1
  111. package/dist/index181.js +6 -12
  112. package/dist/index182.cjs +1 -1
  113. package/dist/index182.js +6 -6
  114. package/dist/index183.cjs +1 -1
  115. package/dist/index183.js +9 -6
  116. package/dist/index184.cjs +1 -1
  117. package/dist/index184.js +8 -9
  118. package/dist/index185.cjs +1 -1
  119. package/dist/index185.js +4 -8
  120. package/dist/index186.cjs +1 -1
  121. package/dist/index186.js +6 -4
  122. package/dist/index187.cjs +1 -1
  123. package/dist/index187.js +6 -6
  124. package/dist/index188.cjs +1 -1
  125. package/dist/index188.js +8 -6
  126. package/dist/index189.cjs +1 -1
  127. package/dist/index189.js +9 -8
  128. package/dist/index190.cjs +1 -1
  129. package/dist/index190.js +12 -8
  130. package/dist/index191.cjs +1 -1
  131. package/dist/index191.js +7 -11
  132. package/dist/index192.cjs +1 -1
  133. package/dist/index192.js +7 -7
  134. package/dist/index193.cjs +1 -1
  135. package/dist/index193.js +4 -9
  136. package/dist/index194.cjs +1 -1
  137. package/dist/index194.js +42 -5
  138. package/dist/index195.cjs +1 -1
  139. package/dist/index195.js +375 -29
  140. package/dist/index196.cjs +1 -1
  141. package/dist/index196.js +35 -386
  142. package/dist/index197.cjs +1 -1
  143. package/dist/index197.js +22 -37
  144. package/dist/index198.cjs +1 -1
  145. package/dist/index198.js +56 -20
  146. package/dist/index199.cjs +1 -1
  147. package/dist/index199.js +36 -54
  148. package/dist/index200.cjs +1 -1
  149. package/dist/index200.js +102 -54
  150. package/dist/index201.cjs +1 -1
  151. package/dist/index201.js +76 -54
  152. package/dist/index202.cjs +1 -1
  153. package/dist/index202.js +68 -66
  154. package/dist/index203.cjs +1 -1
  155. package/dist/index203.js +147 -63
  156. package/dist/index204.cjs +1 -1
  157. package/dist/index204.js +69 -91
  158. package/dist/index205.cjs +9 -1
  159. package/dist/index205.js +585 -62
  160. package/dist/index206.cjs +1 -9
  161. package/dist/index206.js +65 -586
  162. package/dist/index207.cjs +1 -1
  163. package/dist/index207.js +42 -41
  164. package/dist/index208.cjs +1 -1
  165. package/dist/index208.js +64 -46
  166. package/dist/index209.cjs +1 -1
  167. package/dist/index209.js +48 -64
  168. package/dist/index210.cjs +1 -1
  169. package/dist/index210.js +75 -47
  170. package/dist/index211.cjs +1 -1
  171. package/dist/index211.js +173 -69
  172. package/dist/index212.cjs +1 -1
  173. package/dist/index212.js +24 -180
  174. package/dist/index213.cjs +1 -1
  175. package/dist/index213.js +25 -24
  176. package/dist/index214.cjs +1 -1
  177. package/dist/index214.js +61 -24
  178. package/dist/index215.cjs +1 -1
  179. package/dist/index215.js +408 -49
  180. package/dist/index216.cjs +1 -1
  181. package/dist/index216.js +25 -422
  182. package/dist/index37.cjs +1 -1
  183. package/dist/index37.js +123 -65
  184. package/dist/index42.cjs +1 -1
  185. package/dist/index42.js +175 -88
  186. package/dist/index91.cjs +1 -1
  187. package/dist/index91.js +252 -124
  188. package/dist/ui/calendar.d.ts +5 -2
  189. package/dist/ui/calendar.d.ts.map +1 -1
  190. package/dist/ui/carousel.d.ts +19 -5
  191. package/dist/ui/carousel.d.ts.map +1 -1
  192. package/dist/ui/context-menu.d.ts +37 -12
  193. package/dist/ui/context-menu.d.ts.map +1 -1
  194. package/dist/ui/form.d.ts +15 -4
  195. package/dist/ui/form.d.ts.map +1 -1
  196. package/dist/ui/hover-card.d.ts +5 -1
  197. package/dist/ui/hover-card.d.ts.map +1 -1
  198. package/dist/ui/item.d.ts +43 -18
  199. package/dist/ui/item.d.ts.map +1 -1
  200. package/dist/ui/menubar.d.ts +45 -14
  201. package/dist/ui/menubar.d.ts.map +1 -1
  202. package/dist/ui/navigation-menu.d.ts +34 -10
  203. package/dist/ui/navigation-menu.d.ts.map +1 -1
  204. package/dist/ui/resizable.d.ts +9 -3
  205. package/dist/ui/resizable.d.ts.map +1 -1
  206. package/dist/ui/scroll-area.d.ts +9 -2
  207. package/dist/ui/scroll-area.d.ts.map +1 -1
  208. package/dist/ui/select.d.ts +19 -5
  209. package/dist/ui/select.d.ts.map +1 -1
  210. package/dist/ui/sidebar.d.ts +99 -37
  211. package/dist/ui/sidebar.d.ts.map +1 -1
  212. package/dist/ui/sonner.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/dist/index217.cjs +0 -1
  215. package/dist/index217.js +0 -25
package/dist/index174.js CHANGED
@@ -1,68 +1,31 @@
1
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/vi/_lib/formatDistance.js
2
- var e = {
3
- lessThanXSeconds: {
4
- one: "dưới 1 giây",
5
- other: "dưới {{count}} giây"
6
- },
7
- xSeconds: {
8
- one: "1 giây",
9
- other: "{{count}} giây"
10
- },
11
- halfAMinute: "nửa phút",
12
- lessThanXMinutes: {
13
- one: "dưới 1 phút",
14
- other: "dưới {{count}} phút"
15
- },
16
- xMinutes: {
17
- one: "1 phút",
18
- other: "{{count}} phút"
19
- },
20
- aboutXHours: {
21
- one: "khoảng 1 giờ",
22
- other: "khoảng {{count}} giờ"
23
- },
24
- xHours: {
25
- one: "1 giờ",
26
- other: "{{count}} giờ"
27
- },
28
- xDays: {
29
- one: "1 ngày",
30
- other: "{{count}} ngày"
31
- },
32
- aboutXWeeks: {
33
- one: "khoảng 1 tuần",
34
- other: "khoảng {{count}} tuần"
35
- },
36
- xWeeks: {
37
- one: "1 tuần",
38
- other: "{{count}} tuần"
39
- },
40
- aboutXMonths: {
41
- one: "khoảng 1 tháng",
42
- other: "khoảng {{count}} tháng"
43
- },
44
- xMonths: {
45
- one: "1 tháng",
46
- other: "{{count}} tháng"
47
- },
48
- aboutXYears: {
49
- one: "khoảng 1 năm",
50
- other: "khoảng {{count}} năm"
51
- },
52
- xYears: {
53
- one: "1 năm",
54
- other: "{{count}} năm"
55
- },
56
- overXYears: {
57
- one: "hơn 1 năm",
58
- other: "hơn {{count}} năm"
59
- },
60
- almostXYears: {
61
- one: "gần 1 năm",
62
- other: "gần {{count}} năm"
63
- }
64
- }, t = (t, n, r) => {
65
- let i, a = e[t];
66
- return i = typeof a == "string" ? a : n === 1 ? a.one : a.other.replace("{{count}}", String(n)), r?.addSuffix ? r.comparison && r.comparison > 0 ? i + " nữa" : i + " trước" : i;
1
+ import { buildFormatLongFn as e } from "./index157.js";
2
+ var t = {
3
+ date: e({
4
+ formats: {
5
+ full: "EEEE, 'ngày' d MMMM 'năm' y",
6
+ long: "'ngày' d MMMM 'năm' y",
7
+ medium: "d MMM 'năm' y",
8
+ short: "dd/MM/y"
9
+ },
10
+ defaultWidth: "full"
11
+ }),
12
+ time: e({
13
+ formats: {
14
+ full: "HH:mm:ss zzzz",
15
+ long: "HH:mm:ss z",
16
+ medium: "HH:mm:ss",
17
+ short: "HH:mm"
18
+ },
19
+ defaultWidth: "full"
20
+ }),
21
+ dateTime: e({
22
+ formats: {
23
+ full: "{{date}} {{time}}",
24
+ long: "{{date}} {{time}}",
25
+ medium: "{{date}} {{time}}",
26
+ short: "{{date}} {{time}}"
27
+ },
28
+ defaultWidth: "full"
29
+ })
67
30
  };
68
- export { t as formatDistance };
31
+ export { t as formatLong };
package/dist/index175.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index158.cjs");var t={date:e.buildFormatLongFn({formats:{full:`EEEE, 'ngày' d MMMM 'năm' y`,long:`'ngày' d MMMM 'năm' y`,medium:`d MMM 'năm' y`,short:`dd/MM/y`},defaultWidth:`full`}),time:e.buildFormatLongFn({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:e.buildFormatLongFn({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};exports.formatLong=t;
1
+ var e={lastWeek:`eeee 'tuần trước vào lúc' p`,yesterday:`'hôm qua vào lúc' p`,today:`'hôm nay vào lúc' p`,tomorrow:`'ngày mai vào lúc' p`,nextWeek:`eeee 'tới vào lúc' p`,other:`P`},t=(t,n,r,i)=>e[t];exports.formatRelative=t;
package/dist/index175.js CHANGED
@@ -1,31 +1,10 @@
1
- import { buildFormatLongFn as e } from "./index158.js";
2
- var t = {
3
- date: e({
4
- formats: {
5
- full: "EEEE, 'ngày' d MMMM 'năm' y",
6
- long: "'ngày' d MMMM 'năm' y",
7
- medium: "d MMM 'năm' y",
8
- short: "dd/MM/y"
9
- },
10
- defaultWidth: "full"
11
- }),
12
- time: e({
13
- formats: {
14
- full: "HH:mm:ss zzzz",
15
- long: "HH:mm:ss z",
16
- medium: "HH:mm:ss",
17
- short: "HH:mm"
18
- },
19
- defaultWidth: "full"
20
- }),
21
- dateTime: e({
22
- formats: {
23
- full: "{{date}} {{time}}",
24
- long: "{{date}} {{time}}",
25
- medium: "{{date}} {{time}}",
26
- short: "{{date}} {{time}}"
27
- },
28
- defaultWidth: "full"
29
- })
30
- };
31
- export { t as formatLong };
1
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/vi/_lib/formatRelative.js
2
+ var e = {
3
+ lastWeek: "eeee 'tuần trước vào lúc' p",
4
+ yesterday: "'hôm qua vào lúc' p",
5
+ today: "'hôm nay vào lúc' p",
6
+ tomorrow: "'ngày mai vào lúc' p",
7
+ nextWeek: "eeee 'tới vào lúc' p",
8
+ other: "P"
9
+ }, t = (t, n, r, i) => e[t];
10
+ export { t as formatRelative };
package/dist/index176.cjs CHANGED
@@ -1 +1 @@
1
- var e={lastWeek:`eeee 'tuần trước vào lúc' p`,yesterday:`'hôm qua vào lúc' p`,today:`'hôm nay vào lúc' p`,tomorrow:`'ngày mai vào lúc' p`,nextWeek:`eeee 'tới vào lúc' p`,other:`P`},t=(t,n,r,i)=>e[t];exports.formatRelative=t;
1
+ const e=require("./index158.cjs");var t={ordinalNumber:(e,t)=>{let n=Number(e),r=t?.unit;if(r===`quarter`)switch(n){case 1:return`I`;case 2:return`II`;case 3:return`III`;case 4:return`IV`}else if(r===`day`)switch(n){case 1:return`thứ 2`;case 2:return`thứ 3`;case 3:return`thứ 4`;case 4:return`thứ 5`;case 5:return`thứ 6`;case 6:return`thứ 7`;case 7:return`chủ nhật`}else if(r===`week`)return n===1?`thứ nhất`:`thứ `+n;else if(r===`dayOfYear`)return n===1?`đầu tiên`:`thứ `+n;return String(n)},era:e.buildLocalizeFn({values:{narrow:[`TCN`,`SCN`],abbreviated:[`trước CN`,`sau CN`],wide:[`trước Công Nguyên`,`sau Công Nguyên`]},defaultWidth:`wide`}),quarter:e.buildLocalizeFn({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`Quý 1`,`Quý 2`,`Quý 3`,`Quý 4`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`quý I`,`quý II`,`quý III`,`quý IV`]},defaultFormattingWidth:`wide`,argumentCallback:e=>e-1}),month:e.buildLocalizeFn({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`Thg 1`,`Thg 2`,`Thg 3`,`Thg 4`,`Thg 5`,`Thg 6`,`Thg 7`,`Thg 8`,`Thg 9`,`Thg 10`,`Thg 11`,`Thg 12`],wide:[`Tháng Một`,`Tháng Hai`,`Tháng Ba`,`Tháng Tư`,`Tháng Năm`,`Tháng Sáu`,`Tháng Bảy`,`Tháng Tám`,`Tháng Chín`,`Tháng Mười`,`Tháng Mười Một`,`Tháng Mười Hai`]},defaultWidth:`wide`,formattingValues:{narrow:[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`],abbreviated:[`thg 1`,`thg 2`,`thg 3`,`thg 4`,`thg 5`,`thg 6`,`thg 7`,`thg 8`,`thg 9`,`thg 10`,`thg 11`,`thg 12`],wide:[`tháng 01`,`tháng 02`,`tháng 03`,`tháng 04`,`tháng 05`,`tháng 06`,`tháng 07`,`tháng 08`,`tháng 09`,`tháng 10`,`tháng 11`,`tháng 12`]},defaultFormattingWidth:`wide`}),day:e.buildLocalizeFn({values:{narrow:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],short:[`CN`,`Th 2`,`Th 3`,`Th 4`,`Th 5`,`Th 6`,`Th 7`],abbreviated:[`CN`,`Thứ 2`,`Thứ 3`,`Thứ 4`,`Thứ 5`,`Thứ 6`,`Thứ 7`],wide:[`Chủ Nhật`,`Thứ Hai`,`Thứ Ba`,`Thứ Tư`,`Thứ Năm`,`Thứ Sáu`,`Thứ Bảy`]},defaultWidth:`wide`}),dayPeriod:e.buildLocalizeFn({values:{narrow:{am:`am`,pm:`pm`,midnight:`nửa đêm`,noon:`tr`,morning:`sg`,afternoon:`ch`,evening:`tối`,night:`đêm`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`},wide:{am:`SA`,pm:`CH`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`nửa đêm`,noon:`tr`,morning:`sg`,afternoon:`ch`,evening:`tối`,night:`đêm`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`},wide:{am:`SA`,pm:`CH`,midnight:`nửa đêm`,noon:`giữa trưa`,morning:`vào buổi sáng`,afternoon:`vào buổi chiều`,evening:`vào buổi tối`,night:`vào ban đêm`}},defaultFormattingWidth:`wide`})};exports.localize=t;
package/dist/index176.js CHANGED
@@ -1,10 +1,279 @@
1
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/vi/_lib/formatRelative.js
2
- var e = {
3
- lastWeek: "eeee 'tuần trước vào lúc' p",
4
- yesterday: "'hôm qua vào lúc' p",
5
- today: "'hôm nay vào lúc' p",
6
- tomorrow: "'ngày mai vào lúc' p",
7
- nextWeek: "eeee 'tới vào lúc' p",
8
- other: "P"
9
- }, t = (t, n, r, i) => e[t];
10
- export { t as formatRelative };
1
+ import { buildLocalizeFn as e } from "./index158.js";
2
+ var t = {
3
+ ordinalNumber: (e, t) => {
4
+ let n = Number(e), r = t?.unit;
5
+ if (r === "quarter") switch (n) {
6
+ case 1: return "I";
7
+ case 2: return "II";
8
+ case 3: return "III";
9
+ case 4: return "IV";
10
+ }
11
+ else if (r === "day") switch (n) {
12
+ case 1: return "thứ 2";
13
+ case 2: return "thứ 3";
14
+ case 3: return "thứ 4";
15
+ case 4: return "thứ 5";
16
+ case 5: return "thứ 6";
17
+ case 6: return "thứ 7";
18
+ case 7: return "chủ nhật";
19
+ }
20
+ else if (r === "week") return n === 1 ? "thứ nhất" : "thứ " + n;
21
+ else if (r === "dayOfYear") return n === 1 ? "đầu tiên" : "thứ " + n;
22
+ return String(n);
23
+ },
24
+ era: e({
25
+ values: {
26
+ narrow: ["TCN", "SCN"],
27
+ abbreviated: ["trước CN", "sau CN"],
28
+ wide: ["trước Công Nguyên", "sau Công Nguyên"]
29
+ },
30
+ defaultWidth: "wide"
31
+ }),
32
+ quarter: e({
33
+ values: {
34
+ narrow: [
35
+ "1",
36
+ "2",
37
+ "3",
38
+ "4"
39
+ ],
40
+ abbreviated: [
41
+ "Q1",
42
+ "Q2",
43
+ "Q3",
44
+ "Q4"
45
+ ],
46
+ wide: [
47
+ "Quý 1",
48
+ "Quý 2",
49
+ "Quý 3",
50
+ "Quý 4"
51
+ ]
52
+ },
53
+ defaultWidth: "wide",
54
+ formattingValues: {
55
+ narrow: [
56
+ "1",
57
+ "2",
58
+ "3",
59
+ "4"
60
+ ],
61
+ abbreviated: [
62
+ "Q1",
63
+ "Q2",
64
+ "Q3",
65
+ "Q4"
66
+ ],
67
+ wide: [
68
+ "quý I",
69
+ "quý II",
70
+ "quý III",
71
+ "quý IV"
72
+ ]
73
+ },
74
+ defaultFormattingWidth: "wide",
75
+ argumentCallback: (e) => e - 1
76
+ }),
77
+ month: e({
78
+ values: {
79
+ narrow: [
80
+ "1",
81
+ "2",
82
+ "3",
83
+ "4",
84
+ "5",
85
+ "6",
86
+ "7",
87
+ "8",
88
+ "9",
89
+ "10",
90
+ "11",
91
+ "12"
92
+ ],
93
+ abbreviated: [
94
+ "Thg 1",
95
+ "Thg 2",
96
+ "Thg 3",
97
+ "Thg 4",
98
+ "Thg 5",
99
+ "Thg 6",
100
+ "Thg 7",
101
+ "Thg 8",
102
+ "Thg 9",
103
+ "Thg 10",
104
+ "Thg 11",
105
+ "Thg 12"
106
+ ],
107
+ wide: [
108
+ "Tháng Một",
109
+ "Tháng Hai",
110
+ "Tháng Ba",
111
+ "Tháng Tư",
112
+ "Tháng Năm",
113
+ "Tháng Sáu",
114
+ "Tháng Bảy",
115
+ "Tháng Tám",
116
+ "Tháng Chín",
117
+ "Tháng Mười",
118
+ "Tháng Mười Một",
119
+ "Tháng Mười Hai"
120
+ ]
121
+ },
122
+ defaultWidth: "wide",
123
+ formattingValues: {
124
+ narrow: [
125
+ "01",
126
+ "02",
127
+ "03",
128
+ "04",
129
+ "05",
130
+ "06",
131
+ "07",
132
+ "08",
133
+ "09",
134
+ "10",
135
+ "11",
136
+ "12"
137
+ ],
138
+ abbreviated: [
139
+ "thg 1",
140
+ "thg 2",
141
+ "thg 3",
142
+ "thg 4",
143
+ "thg 5",
144
+ "thg 6",
145
+ "thg 7",
146
+ "thg 8",
147
+ "thg 9",
148
+ "thg 10",
149
+ "thg 11",
150
+ "thg 12"
151
+ ],
152
+ wide: [
153
+ "tháng 01",
154
+ "tháng 02",
155
+ "tháng 03",
156
+ "tháng 04",
157
+ "tháng 05",
158
+ "tháng 06",
159
+ "tháng 07",
160
+ "tháng 08",
161
+ "tháng 09",
162
+ "tháng 10",
163
+ "tháng 11",
164
+ "tháng 12"
165
+ ]
166
+ },
167
+ defaultFormattingWidth: "wide"
168
+ }),
169
+ day: e({
170
+ values: {
171
+ narrow: [
172
+ "CN",
173
+ "T2",
174
+ "T3",
175
+ "T4",
176
+ "T5",
177
+ "T6",
178
+ "T7"
179
+ ],
180
+ short: [
181
+ "CN",
182
+ "Th 2",
183
+ "Th 3",
184
+ "Th 4",
185
+ "Th 5",
186
+ "Th 6",
187
+ "Th 7"
188
+ ],
189
+ abbreviated: [
190
+ "CN",
191
+ "Thứ 2",
192
+ "Thứ 3",
193
+ "Thứ 4",
194
+ "Thứ 5",
195
+ "Thứ 6",
196
+ "Thứ 7"
197
+ ],
198
+ wide: [
199
+ "Chủ Nhật",
200
+ "Thứ Hai",
201
+ "Thứ Ba",
202
+ "Thứ Tư",
203
+ "Thứ Năm",
204
+ "Thứ Sáu",
205
+ "Thứ Bảy"
206
+ ]
207
+ },
208
+ defaultWidth: "wide"
209
+ }),
210
+ dayPeriod: e({
211
+ values: {
212
+ narrow: {
213
+ am: "am",
214
+ pm: "pm",
215
+ midnight: "nửa đêm",
216
+ noon: "tr",
217
+ morning: "sg",
218
+ afternoon: "ch",
219
+ evening: "tối",
220
+ night: "đêm"
221
+ },
222
+ abbreviated: {
223
+ am: "AM",
224
+ pm: "PM",
225
+ midnight: "nửa đêm",
226
+ noon: "trưa",
227
+ morning: "sáng",
228
+ afternoon: "chiều",
229
+ evening: "tối",
230
+ night: "đêm"
231
+ },
232
+ wide: {
233
+ am: "SA",
234
+ pm: "CH",
235
+ midnight: "nửa đêm",
236
+ noon: "trưa",
237
+ morning: "sáng",
238
+ afternoon: "chiều",
239
+ evening: "tối",
240
+ night: "đêm"
241
+ }
242
+ },
243
+ defaultWidth: "wide",
244
+ formattingValues: {
245
+ narrow: {
246
+ am: "am",
247
+ pm: "pm",
248
+ midnight: "nửa đêm",
249
+ noon: "tr",
250
+ morning: "sg",
251
+ afternoon: "ch",
252
+ evening: "tối",
253
+ night: "đêm"
254
+ },
255
+ abbreviated: {
256
+ am: "AM",
257
+ pm: "PM",
258
+ midnight: "nửa đêm",
259
+ noon: "trưa",
260
+ morning: "sáng",
261
+ afternoon: "chiều",
262
+ evening: "tối",
263
+ night: "đêm"
264
+ },
265
+ wide: {
266
+ am: "SA",
267
+ pm: "CH",
268
+ midnight: "nửa đêm",
269
+ noon: "giữa trưa",
270
+ morning: "vào buổi sáng",
271
+ afternoon: "vào buổi chiều",
272
+ evening: "vào buổi tối",
273
+ night: "vào ban đêm"
274
+ }
275
+ },
276
+ defaultFormattingWidth: "wide"
277
+ })
278
+ };
279
+ export { t as localize };
package/dist/index177.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index159.cjs");var t={ordinalNumber:(e,t)=>{let n=Number(e),r=t?.unit;if(r===`quarter`)switch(n){case 1:return`I`;case 2:return`II`;case 3:return`III`;case 4:return`IV`}else if(r===`day`)switch(n){case 1:return`thứ 2`;case 2:return`thứ 3`;case 3:return`thứ 4`;case 4:return`thứ 5`;case 5:return`thứ 6`;case 6:return`thứ 7`;case 7:return`chủ nhật`}else if(r===`week`)return n===1?`thứ nhất`:`thứ `+n;else if(r===`dayOfYear`)return n===1?`đầu tiên`:`thứ `+n;return String(n)},era:e.buildLocalizeFn({values:{narrow:[`TCN`,`SCN`],abbreviated:[`trước CN`,`sau CN`],wide:[`trước Công Nguyên`,`sau Công Nguyên`]},defaultWidth:`wide`}),quarter:e.buildLocalizeFn({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`Quý 1`,`Quý 2`,`Quý 3`,`Quý 4`]},defaultWidth:`wide`,formattingValues:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`quý I`,`quý II`,`quý III`,`quý IV`]},defaultFormattingWidth:`wide`,argumentCallback:e=>e-1}),month:e.buildLocalizeFn({values:{narrow:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`10`,`11`,`12`],abbreviated:[`Thg 1`,`Thg 2`,`Thg 3`,`Thg 4`,`Thg 5`,`Thg 6`,`Thg 7`,`Thg 8`,`Thg 9`,`Thg 10`,`Thg 11`,`Thg 12`],wide:[`Tháng Một`,`Tháng Hai`,`Tháng Ba`,`Tháng Tư`,`Tháng Năm`,`Tháng Sáu`,`Tháng Bảy`,`Tháng Tám`,`Tháng Chín`,`Tháng Mười`,`Tháng Mười Một`,`Tháng Mười Hai`]},defaultWidth:`wide`,formattingValues:{narrow:[`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`],abbreviated:[`thg 1`,`thg 2`,`thg 3`,`thg 4`,`thg 5`,`thg 6`,`thg 7`,`thg 8`,`thg 9`,`thg 10`,`thg 11`,`thg 12`],wide:[`tháng 01`,`tháng 02`,`tháng 03`,`tháng 04`,`tháng 05`,`tháng 06`,`tháng 07`,`tháng 08`,`tháng 09`,`tháng 10`,`tháng 11`,`tháng 12`]},defaultFormattingWidth:`wide`}),day:e.buildLocalizeFn({values:{narrow:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],short:[`CN`,`Th 2`,`Th 3`,`Th 4`,`Th 5`,`Th 6`,`Th 7`],abbreviated:[`CN`,`Thứ 2`,`Thứ 3`,`Thứ 4`,`Thứ 5`,`Thứ 6`,`Thứ 7`],wide:[`Chủ Nhật`,`Thứ Hai`,`Thứ Ba`,`Thứ Tư`,`Thứ Năm`,`Thứ Sáu`,`Thứ Bảy`]},defaultWidth:`wide`}),dayPeriod:e.buildLocalizeFn({values:{narrow:{am:`am`,pm:`pm`,midnight:`nửa đêm`,noon:`tr`,morning:`sg`,afternoon:`ch`,evening:`tối`,night:`đêm`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`},wide:{am:`SA`,pm:`CH`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`am`,pm:`pm`,midnight:`nửa đêm`,noon:`tr`,morning:`sg`,afternoon:`ch`,evening:`tối`,night:`đêm`},abbreviated:{am:`AM`,pm:`PM`,midnight:`nửa đêm`,noon:`trưa`,morning:`sáng`,afternoon:`chiều`,evening:`tối`,night:`đêm`},wide:{am:`SA`,pm:`CH`,midnight:`nửa đêm`,noon:`giữa trưa`,morning:`vào buổi sáng`,afternoon:`vào buổi chiều`,evening:`vào buổi tối`,night:`vào ban đêm`}},defaultFormattingWidth:`wide`})};exports.localize=t;
1
+ const e=require("./index159.cjs");var t={ordinalNumber:require("./index160.cjs").buildMatchPatternFn({matchPattern:/^(\d+)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:e.buildMatchFn({matchPatterns:{narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^t/i,/^s/i]},defaultParseWidth:`any`}),quarter:e.buildMatchFn({matchPatterns:{narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:e.buildMatchFn({matchPatterns:{narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},defaultParseWidth:`wide`}),day:e.buildMatchFn({matchPatterns:{narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},defaultParseWidth:`wide`}),dayPeriod:e.buildMatchFn({matchPatterns:{narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},defaultParseWidth:`any`})};exports.match=t;