@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/index177.js CHANGED
@@ -1,279 +1,156 @@
1
- import { buildLocalizeFn as e } from "./index159.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
- },
1
+ import { buildMatchFn as e } from "./index159.js";
2
+ import { buildMatchPatternFn as t } from "./index160.js";
3
+ var n = {
4
+ ordinalNumber: t({
5
+ matchPattern: /^(\d+)/i,
6
+ parsePattern: /\d+/i,
7
+ valueCallback: (e) => parseInt(e, 10)
8
+ }),
24
9
  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"]
10
+ matchPatterns: {
11
+ narrow: /^(tcn|scn)/i,
12
+ abbreviated: /^(trước CN|sau CN)/i,
13
+ wide: /^(trước Công Nguyên|sau Công Nguyên)/i
29
14
  },
30
- defaultWidth: "wide"
15
+ defaultMatchWidth: "wide",
16
+ parsePatterns: { any: [/^t/i, /^s/i] },
17
+ defaultParseWidth: "any"
31
18
  }),
32
19
  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
- ]
20
+ matchPatterns: {
21
+ narrow: /^([1234]|i{1,3}v?)/i,
22
+ abbreviated: /^q([1234]|i{1,3}v?)/i,
23
+ wide: /^quý ([1234]|i{1,3}v?)/i
73
24
  },
74
- defaultFormattingWidth: "wide",
75
- argumentCallback: (e) => e - 1
25
+ defaultMatchWidth: "wide",
26
+ parsePatterns: { any: [
27
+ /(1|i)$/i,
28
+ /(2|ii)$/i,
29
+ /(3|iii)$/i,
30
+ /(4|iv)$/i
31
+ ] },
32
+ defaultParseWidth: "any",
33
+ valueCallback: (e) => e + 1
76
34
  }),
77
35
  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
- ]
36
+ matchPatterns: {
37
+ narrow: /^(0?[2-9]|10|11|12|0?1)/i,
38
+ abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,
39
+ 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
121
40
  },
122
- defaultWidth: "wide",
123
- formattingValues: {
41
+ defaultMatchWidth: "wide",
42
+ parsePatterns: {
124
43
  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"
44
+ /0?1$/i,
45
+ /0?2/i,
46
+ /3/,
47
+ /4/,
48
+ /5/,
49
+ /6/,
50
+ /7/,
51
+ /8/,
52
+ /9/,
53
+ /10/,
54
+ /11/,
55
+ /12/
137
56
  ],
138
57
  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"
58
+ /^thg[ _]?0?1(?!\d)/i,
59
+ /^thg[ _]?0?2/i,
60
+ /^thg[ _]?0?3/i,
61
+ /^thg[ _]?0?4/i,
62
+ /^thg[ _]?0?5/i,
63
+ /^thg[ _]?0?6/i,
64
+ /^thg[ _]?0?7/i,
65
+ /^thg[ _]?0?8/i,
66
+ /^thg[ _]?0?9/i,
67
+ /^thg[ _]?10/i,
68
+ /^thg[ _]?11/i,
69
+ /^thg[ _]?12/i
151
70
  ],
152
71
  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"
72
+ /^tháng ?(Một|0?1(?!\d))/i,
73
+ /^tháng ?(Hai|0?2)/i,
74
+ /^tháng ?(Ba|0?3)/i,
75
+ /^tháng ?(Tư|0?4)/i,
76
+ /^tháng ?(Năm|0?5)/i,
77
+ /^tháng ?(Sáu|0?6)/i,
78
+ /^tháng ?(Bảy|0?7)/i,
79
+ /^tháng ?(Tám|0?8)/i,
80
+ /^tháng ?(Chín|0?9)/i,
81
+ /^tháng ?(Mười|10)/i,
82
+ /^tháng ?(Mười ?Một|11)/i,
83
+ /^tháng ?(Mười ?Hai|12)/i
165
84
  ]
166
85
  },
167
- defaultFormattingWidth: "wide"
86
+ defaultParseWidth: "wide"
168
87
  }),
169
88
  day: e({
170
- values: {
89
+ matchPatterns: {
90
+ narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i,
91
+ short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
92
+ abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
93
+ wide: /^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i
94
+ },
95
+ defaultMatchWidth: "wide",
96
+ parsePatterns: {
171
97
  narrow: [
172
- "CN",
173
- "T2",
174
- "T3",
175
- "T4",
176
- "T5",
177
- "T6",
178
- "T7"
98
+ /CN/i,
99
+ /2/i,
100
+ /3/i,
101
+ /4/i,
102
+ /5/i,
103
+ /6/i,
104
+ /7/i
179
105
  ],
180
106
  short: [
181
- "CN",
182
- "Th 2",
183
- "Th 3",
184
- "Th 4",
185
- "Th 5",
186
- "Th 6",
187
- "Th 7"
107
+ /CN/i,
108
+ /2/i,
109
+ /3/i,
110
+ /4/i,
111
+ /5/i,
112
+ /6/i,
113
+ /7/i
188
114
  ],
189
115
  abbreviated: [
190
- "CN",
191
- "Thứ 2",
192
- "Thứ 3",
193
- "Thứ 4",
194
- "Thứ 5",
195
- "Thứ 6",
196
- "Thứ 7"
116
+ /CN/i,
117
+ /2/i,
118
+ /3/i,
119
+ /4/i,
120
+ /5/i,
121
+ /6/i,
122
+ /7/i
197
123
  ],
198
124
  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"
125
+ /(Chủ|Chúa) ?Nhật/i,
126
+ /Hai/i,
127
+ /Ba/i,
128
+ /Tư/i,
129
+ /Năm/i,
130
+ /Sáu/i,
131
+ /Bảy/i
206
132
  ]
207
133
  },
208
- defaultWidth: "wide"
134
+ defaultParseWidth: "wide"
209
135
  }),
210
136
  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
- }
137
+ matchPatterns: {
138
+ narrow: /^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
139
+ abbreviated: /^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
140
+ wide: /^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i
275
141
  },
276
- defaultFormattingWidth: "wide"
142
+ defaultMatchWidth: "wide",
143
+ parsePatterns: { any: {
144
+ am: /^(a|sa)/i,
145
+ pm: /^(p|ch[^i]*)/i,
146
+ midnight: /nửa đêm/i,
147
+ noon: /trưa/i,
148
+ morning: /sáng/i,
149
+ afternoon: /chiều/i,
150
+ evening: /tối/i,
151
+ night: /^đêm/i
152
+ } },
153
+ defaultParseWidth: "any"
277
154
  })
278
155
  };
279
- export { t as localize };
156
+ export { n as match };
package/dist/index178.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index160.cjs");var t={ordinalNumber:require("./index161.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;
1
+ const e=require("./index173.cjs"),t=require("./index174.cjs"),n=require("./index175.cjs"),r=require("./index176.cjs"),i=require("./index177.cjs");var a={code:`vi`,formatDistance:e.formatDistance,formatLong:t.formatLong,formatRelative:n.formatRelative,localize:r.localize,match:i.match,options:{weekStartsOn:1,firstWeekContainsDate:1}};exports.default=a,exports.vi=a;
package/dist/index178.js CHANGED
@@ -1,156 +1,19 @@
1
- import { buildMatchFn as e } from "./index160.js";
2
- import { buildMatchPatternFn as t } from "./index161.js";
3
- var n = {
4
- ordinalNumber: t({
5
- matchPattern: /^(\d+)/i,
6
- parsePattern: /\d+/i,
7
- valueCallback: (e) => parseInt(e, 10)
8
- }),
9
- era: e({
10
- matchPatterns: {
11
- narrow: /^(tcn|scn)/i,
12
- abbreviated: /^(trước CN|sau CN)/i,
13
- wide: /^(trước Công Nguyên|sau Công Nguyên)/i
14
- },
15
- defaultMatchWidth: "wide",
16
- parsePatterns: { any: [/^t/i, /^s/i] },
17
- defaultParseWidth: "any"
18
- }),
19
- quarter: e({
20
- matchPatterns: {
21
- narrow: /^([1234]|i{1,3}v?)/i,
22
- abbreviated: /^q([1234]|i{1,3}v?)/i,
23
- wide: /^quý ([1234]|i{1,3}v?)/i
24
- },
25
- defaultMatchWidth: "wide",
26
- parsePatterns: { any: [
27
- /(1|i)$/i,
28
- /(2|ii)$/i,
29
- /(3|iii)$/i,
30
- /(4|iv)$/i
31
- ] },
32
- defaultParseWidth: "any",
33
- valueCallback: (e) => e + 1
34
- }),
35
- month: e({
36
- matchPatterns: {
37
- narrow: /^(0?[2-9]|10|11|12|0?1)/i,
38
- abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,
39
- 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
40
- },
41
- defaultMatchWidth: "wide",
42
- parsePatterns: {
43
- narrow: [
44
- /0?1$/i,
45
- /0?2/i,
46
- /3/,
47
- /4/,
48
- /5/,
49
- /6/,
50
- /7/,
51
- /8/,
52
- /9/,
53
- /10/,
54
- /11/,
55
- /12/
56
- ],
57
- abbreviated: [
58
- /^thg[ _]?0?1(?!\d)/i,
59
- /^thg[ _]?0?2/i,
60
- /^thg[ _]?0?3/i,
61
- /^thg[ _]?0?4/i,
62
- /^thg[ _]?0?5/i,
63
- /^thg[ _]?0?6/i,
64
- /^thg[ _]?0?7/i,
65
- /^thg[ _]?0?8/i,
66
- /^thg[ _]?0?9/i,
67
- /^thg[ _]?10/i,
68
- /^thg[ _]?11/i,
69
- /^thg[ _]?12/i
70
- ],
71
- wide: [
72
- /^tháng ?(Một|0?1(?!\d))/i,
73
- /^tháng ?(Hai|0?2)/i,
74
- /^tháng ?(Ba|0?3)/i,
75
- /^tháng ?(Tư|0?4)/i,
76
- /^tháng ?(Năm|0?5)/i,
77
- /^tháng ?(Sáu|0?6)/i,
78
- /^tháng ?(Bảy|0?7)/i,
79
- /^tháng ?(Tám|0?8)/i,
80
- /^tháng ?(Chín|0?9)/i,
81
- /^tháng ?(Mười|10)/i,
82
- /^tháng ?(Mười ?Một|11)/i,
83
- /^tháng ?(Mười ?Hai|12)/i
84
- ]
85
- },
86
- defaultParseWidth: "wide"
87
- }),
88
- day: e({
89
- matchPatterns: {
90
- narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i,
91
- short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
92
- abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
93
- wide: /^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i
94
- },
95
- defaultMatchWidth: "wide",
96
- parsePatterns: {
97
- narrow: [
98
- /CN/i,
99
- /2/i,
100
- /3/i,
101
- /4/i,
102
- /5/i,
103
- /6/i,
104
- /7/i
105
- ],
106
- short: [
107
- /CN/i,
108
- /2/i,
109
- /3/i,
110
- /4/i,
111
- /5/i,
112
- /6/i,
113
- /7/i
114
- ],
115
- abbreviated: [
116
- /CN/i,
117
- /2/i,
118
- /3/i,
119
- /4/i,
120
- /5/i,
121
- /6/i,
122
- /7/i
123
- ],
124
- wide: [
125
- /(Chủ|Chúa) ?Nhật/i,
126
- /Hai/i,
127
- /Ba/i,
128
- /Tư/i,
129
- /Năm/i,
130
- /Sáu/i,
131
- /Bảy/i
132
- ]
133
- },
134
- defaultParseWidth: "wide"
135
- }),
136
- dayPeriod: e({
137
- matchPatterns: {
138
- narrow: /^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
139
- abbreviated: /^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
140
- wide: /^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i
141
- },
142
- defaultMatchWidth: "wide",
143
- parsePatterns: { any: {
144
- am: /^(a|sa)/i,
145
- pm: /^(p|ch[^i]*)/i,
146
- midnight: /nửa đêm/i,
147
- noon: /trưa/i,
148
- morning: /sáng/i,
149
- afternoon: /chiều/i,
150
- evening: /tối/i,
151
- night: /^đêm/i
152
- } },
153
- defaultParseWidth: "any"
154
- })
1
+ import { formatDistance as e } from "./index173.js";
2
+ import { formatLong as t } from "./index174.js";
3
+ import { formatRelative as n } from "./index175.js";
4
+ import { localize as r } from "./index176.js";
5
+ import { match as i } from "./index177.js";
6
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/vi.js
7
+ var a = {
8
+ code: "vi",
9
+ formatDistance: e,
10
+ formatLong: t,
11
+ formatRelative: n,
12
+ localize: r,
13
+ match: i,
14
+ options: {
15
+ weekStartsOn: 1,
16
+ firstWeekContainsDate: 1
17
+ }
155
18
  };
156
- export { n as match };
19
+ export { a as default, a as vi };
package/dist/index179.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index174.cjs"),t=require("./index175.cjs"),n=require("./index176.cjs"),r=require("./index177.cjs"),i=require("./index178.cjs");var a={code:`vi`,formatDistance:e.formatDistance,formatLong:t.formatLong,formatRelative:n.formatRelative,localize:r.localize,match:i.match,options:{weekStartsOn:1,firstWeekContainsDate:1}};exports.default=a,exports.vi=a;
1
+ const e=require("./index166.cjs");function t(t,n){return e.default(t,{...n,weekStartsOn:1})}exports.default=t,exports.startOfISOWeek=t;
package/dist/index179.js CHANGED
@@ -1,19 +1,9 @@
1
- import { formatDistance as e } from "./index174.js";
2
- import { formatLong as t } from "./index175.js";
3
- import { formatRelative as n } from "./index176.js";
4
- import { localize as r } from "./index177.js";
5
- import { match as i } from "./index178.js";
6
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/vi.js
7
- var a = {
8
- code: "vi",
9
- formatDistance: e,
10
- formatLong: t,
11
- formatRelative: n,
12
- localize: r,
13
- match: i,
14
- options: {
15
- weekStartsOn: 1,
16
- firstWeekContainsDate: 1
17
- }
18
- };
19
- export { a as default, a as vi };
1
+ import e from "./index166.js";
2
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
3
+ function t(t, n) {
4
+ return e(t, {
5
+ ...n,
6
+ weekStartsOn: 1
7
+ });
8
+ }
9
+ export { t as default, t as startOfISOWeek };
package/dist/index180.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index167.cjs");function t(t,n){return e.default(t,{...n,weekStartsOn:1})}exports.default=t,exports.startOfISOWeek=t;
1
+ const e=require("./index162.cjs"),t=require("./index165.cjs"),n=require("./index179.cjs");function r(r,i){let a=t.default(r,i?.in),o=a.getFullYear(),s=e.constructFrom(a,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);let c=n.default(s),l=e.constructFrom(a,0);l.setFullYear(o,0,4),l.setHours(0,0,0,0);let u=n.default(l);return a.getTime()>=c.getTime()?o+1:a.getTime()>=u.getTime()?o:o-1}exports.default=r,exports.getISOWeekYear=r;
package/dist/index180.js CHANGED
@@ -1,9 +1,13 @@
1
- import e from "./index167.js";
2
- // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
3
- function t(t, n) {
4
- return e(t, {
5
- ...n,
6
- weekStartsOn: 1
7
- });
1
+ import { constructFrom as e } from "./index162.js";
2
+ import t from "./index165.js";
3
+ import n from "./index179.js";
4
+ // ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
5
+ function r(r, i) {
6
+ let a = t(r, i?.in), o = a.getFullYear(), s = e(a, 0);
7
+ s.setFullYear(o + 1, 0, 4), s.setHours(0, 0, 0, 0);
8
+ let c = n(s), l = e(a, 0);
9
+ l.setFullYear(o, 0, 4), l.setHours(0, 0, 0, 0);
10
+ let u = n(l);
11
+ return a.getTime() >= c.getTime() ? o + 1 : a.getTime() >= u.getTime() ? o : o - 1;
8
12
  }
9
- export { t as default, t as startOfISOWeek };
13
+ export { r as default, r as getISOWeekYear };
package/dist/index181.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index163.cjs"),t=require("./index166.cjs"),n=require("./index180.cjs");function r(r,i){let a=t.default(r,i?.in),o=a.getFullYear(),s=e.constructFrom(a,0);s.setFullYear(o+1,0,4),s.setHours(0,0,0,0);let c=n.default(s),l=e.constructFrom(a,0);l.setFullYear(o,0,4),l.setHours(0,0,0,0);let u=n.default(l);return a.getTime()>=c.getTime()?o+1:a.getTime()>=u.getTime()?o:o-1}exports.default=r,exports.getISOWeekYear=r;
1
+ const e=require("./index165.cjs");function t(t){let n=e.default(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-r}exports.getTimezoneOffsetInMilliseconds=t;