@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.
- package/CHANGELOG.md +27 -0
- package/dist/DataTable/DataTable.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableTable.d.ts.map +1 -1
- package/dist/Form/Form.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +4 -3
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimeInput.d.ts +3 -4
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.d.ts +3 -3
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/types.d.ts +1 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/useFormDatePicker.d.ts +2 -2
- package/dist/Form/FormDatePicker/useFormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.d.ts +2 -2
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/assets/stylex.css +450 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -25
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +120 -91
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +32 -15
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +245 -132
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +319 -138
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +230 -95
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +62 -35
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +71 -32
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +201 -79
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +661 -288
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -5
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +33 -22
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +95 -92
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +56 -56
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +87 -3
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +321 -85
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +160 -287
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +198 -162
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +24 -125
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +8 -25
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +13 -5
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +18 -13
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +12 -16
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +5 -17
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +6 -5
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -5
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +5 -6
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +5 -5
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +7 -5
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +68 -8
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +9 -67
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +201 -10
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +101 -179
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +24 -116
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +18 -30
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +66 -17
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +30 -67
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +10 -31
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +279 -10
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +125 -248
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +18 -155
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +9 -19
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +12 -8
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +6 -12
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +6 -6
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +9 -6
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +8 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +4 -8
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +6 -4
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +6 -6
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +8 -6
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +9 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +12 -8
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -11
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +7 -7
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +4 -9
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +42 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +375 -29
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +35 -386
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +22 -37
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +56 -20
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +36 -54
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +102 -54
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +76 -54
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +68 -66
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +147 -63
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +69 -91
- package/dist/index205.cjs +9 -1
- package/dist/index205.js +585 -62
- package/dist/index206.cjs +1 -9
- package/dist/index206.js +65 -586
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +42 -41
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +64 -46
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +48 -64
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +75 -47
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +173 -69
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +24 -180
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +25 -24
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +61 -24
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +408 -49
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +25 -422
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +123 -65
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +175 -88
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +252 -124
- package/dist/ui/calendar.d.ts +5 -2
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/carousel.d.ts +19 -5
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +37 -12
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/form.d.ts +15 -4
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/hover-card.d.ts +5 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/item.d.ts +43 -18
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts +45 -14
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/navigation-menu.d.ts +34 -10
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/resizable.d.ts +9 -3
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/scroll-area.d.ts +9 -2
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/select.d.ts +19 -5
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/sidebar.d.ts +99 -37
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sonner.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index217.cjs +0 -1
- package/dist/index217.js +0 -25
package/dist/index177.js
CHANGED
|
@@ -1,279 +1,156 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
26
|
-
narrow:
|
|
27
|
-
abbreviated:
|
|
28
|
-
wide:
|
|
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
|
-
|
|
15
|
+
defaultMatchWidth: "wide",
|
|
16
|
+
parsePatterns: { any: [/^t/i, /^s/i] },
|
|
17
|
+
defaultParseWidth: "any"
|
|
31
18
|
}),
|
|
32
19
|
quarter: e({
|
|
33
|
-
|
|
34
|
-
narrow: [
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
75
|
-
|
|
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
|
-
|
|
79
|
-
narrow: [
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
123
|
-
|
|
41
|
+
defaultMatchWidth: "wide",
|
|
42
|
+
parsePatterns: {
|
|
124
43
|
narrow: [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
-
|
|
86
|
+
defaultParseWidth: "wide"
|
|
168
87
|
}),
|
|
169
88
|
day: e({
|
|
170
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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
|
-
|
|
134
|
+
defaultParseWidth: "wide"
|
|
209
135
|
}),
|
|
210
136
|
dayPeriod: e({
|
|
211
|
-
|
|
212
|
-
narrow:
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
|
|
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 {
|
|
156
|
+
export { n as match };
|
package/dist/index178.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 {
|
|
19
|
+
export { a as default, a as vi };
|
package/dist/index179.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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("./
|
|
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 "./
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 {
|
|
13
|
+
export { r as default, r as getISOWeekYear };
|
package/dist/index181.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
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;
|