@blofin/blofin-ui 0.6.87
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/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/Badge.d.ts +1 -0
- package/dist/Badge.es.js +56 -0
- package/dist/Button.d.ts +1 -0
- package/dist/Button.es.js +377 -0
- package/dist/Dialog.d.ts +1 -0
- package/dist/Dialog.es.js +159 -0
- package/dist/Divider.d.ts +1 -0
- package/dist/Divider.es.js +25 -0
- package/dist/Drawer.d.ts +1 -0
- package/dist/Drawer.es.js +90 -0
- package/dist/Form.d.ts +1 -0
- package/dist/Form.es.js +752 -0
- package/dist/Slider.d.ts +1 -0
- package/dist/Slider.es.js +242 -0
- package/dist/blofin.css +1 -0
- package/dist/close-c67ec245.js +5 -0
- package/dist/components/Alert/Alert.d.ts +12 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/styles.d.ts +7 -0
- package/dist/components/Badge/Badge.d.ts +21 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/styles.d.ts +7 -0
- package/dist/components/Button/Button.d.ts +35 -0
- package/dist/components/Button/Loading/index.d.ts +8 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/styles.d.ts +13 -0
- package/dist/components/Button/types.d.ts +5 -0
- package/dist/components/Calendar/Calendar.d.ts +12 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Calendar/styles.d.ts +39 -0
- package/dist/components/Checkbox/Checkbox.d.ts +8 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/styles.d.ts +22 -0
- package/dist/components/CssDropdown/CssDropdown.d.ts +18 -0
- package/dist/components/CssDropdown/styles.d.ts +7 -0
- package/dist/components/DatePickerRange/DatePickerRange.d.ts +32 -0
- package/dist/components/DatePickerRange/styles.d.ts +6 -0
- package/dist/components/DateTimePicker/Calendar.d.ts +10 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +18 -0
- package/dist/components/DateTimePicker/ScrollableList.d.ts +12 -0
- package/dist/components/DateTimePicker/hooks/useDateTimePicker.d.ts +35 -0
- package/dist/components/DateTimePicker/styles.d.ts +48 -0
- package/dist/components/Dialog/Dialog.d.ts +30 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/styles.d.ts +13 -0
- package/dist/components/Divider/Divider.d.ts +8 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/styles.d.ts +7 -0
- package/dist/components/Drawer/Drawer.d.ts +13 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/styles.d.ts +6 -0
- package/dist/components/Dropdown/Dropdown.d.ts +14 -0
- package/dist/components/Dropdown/style.d.ts +9 -0
- package/dist/components/Empty/index.d.ts +5 -0
- package/dist/components/Form/Control.d.ts +13 -0
- package/dist/components/Form/Form.d.ts +3 -0
- package/dist/components/Form/FormItem.d.ts +4 -0
- package/dist/components/Form/FormLabel.d.ts +4 -0
- package/dist/components/Form/context.d.ts +5 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Form/interface.d.ts +48 -0
- package/dist/components/Form/store.d.ts +16 -0
- package/dist/components/Form/styles/item.d.ts +5 -0
- package/dist/components/Form/useForm.d.ts +3 -0
- package/dist/components/LabelTextField/LabelTextField.d.ts +17 -0
- package/dist/components/LabelTextField/index.d.ts +2 -0
- package/dist/components/LabelTextField/styles.d.ts +34 -0
- package/dist/components/MonthPicker/index.d.ts +17 -0
- package/dist/components/Notification/Notification.d.ts +2 -0
- package/dist/components/Notification/style.d.ts +15 -0
- package/dist/components/Pagination/PageOptions.d.ts +12 -0
- package/dist/components/Pagination/Pagination.d.ts +34 -0
- package/dist/components/Pagination/styles.d.ts +6 -0
- package/dist/components/Picker/hooks/usePickerMethod.d.ts +9 -0
- package/dist/components/Picker/index.d.ts +10 -0
- package/dist/components/Picker/styles.d.ts +4 -0
- package/dist/components/Popover/Popover.d.ts +17 -0
- package/dist/components/Popup/index.d.ts +15 -0
- package/dist/components/Popup/styles.d.ts +3 -0
- package/dist/components/RadioButton/RadioButton.d.ts +10 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RadioButton/styles.d.ts +12 -0
- package/dist/components/Select/Select.d.ts +38 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/styles.d.ts +24 -0
- package/dist/components/Slider/Slider.d.ts +20 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/styles.d.ts +31 -0
- package/dist/components/Sort/SortButton.d.ts +14 -0
- package/dist/components/Sort/SortGroup.d.ts +8 -0
- package/dist/components/Sort/reducer.d.ts +36 -0
- package/dist/components/Sortable/SortItem.d.ts +6 -0
- package/dist/components/Sortable/index.d.ts +10 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/styles.d.ts +12 -0
- package/dist/components/Tab/Tab.d.ts +21 -0
- package/dist/components/Tab/styles.d.ts +20 -0
- package/dist/components/Table/Pagination/index.d.ts +8 -0
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/Table/Tbody/index.d.ts +14 -0
- package/dist/components/Table/Thead/index.d.ts +17 -0
- package/dist/components/Table/context.d.ts +17 -0
- package/dist/components/Table/css.d.ts +12 -0
- package/dist/components/Table/hooks/useStickyClassName.d.ts +3 -0
- package/dist/components/Table/hooks/useStickyOffset.d.ts +15 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/interface.d.ts +48 -0
- package/dist/components/TextField/TextField.d.ts +15 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextSelect/TextSelect.d.ts +50 -0
- package/dist/components/TextSelect/styles.d.ts +27 -0
- package/dist/components/Textarea/index.d.ts +15 -0
- package/dist/components/Textarea/style.d.ts +13 -0
- package/dist/components/Toast/Toast.d.ts +2 -0
- package/dist/components/Toast/styles.d.ts +13 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip/enum.d.ts +21 -0
- package/dist/components/Tooltip/styles.d.ts +10 -0
- package/dist/components/Tooltip/type.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +35 -0
- package/dist/components/Typography/styles.d.ts +10 -0
- package/dist/config/tailwind.js +9 -0
- package/dist/config/theme.js +318 -0
- package/dist/hooks/useAlign.d.ts +20 -0
- package/dist/hooks/useClient.d.ts +4 -0
- package/dist/hooks/useDelayEvent.d.ts +2 -0
- package/dist/hooks/useLatest.d.ts +1 -0
- package/dist/hooks/useNotification.d.ts +10 -0
- package/dist/hooks/useOutsideClick.d.ts +2 -0
- package/dist/hooks/useToast.d.ts +9 -0
- package/dist/index-0055aace.js +338 -0
- package/dist/index-0171eaca.js +436 -0
- package/dist/index-03ecf4ec.js +400 -0
- package/dist/index-04d10294.js +298 -0
- package/dist/index-0a1520d4.js +287 -0
- package/dist/index-0f855a91.js +14 -0
- package/dist/index-114820db.js +354 -0
- package/dist/index-1388dfff.js +336 -0
- package/dist/index-15b50a21.js +298 -0
- package/dist/index-17308ac1.js +298 -0
- package/dist/index-17afe366.js +298 -0
- package/dist/index-1d78221c.js +339 -0
- package/dist/index-1dc85776.js +437 -0
- package/dist/index-20e881af.js +354 -0
- package/dist/index-20f2adc4.js +398 -0
- package/dist/index-21539629.js +478 -0
- package/dist/index-21f85e78.js +377 -0
- package/dist/index-236e0579.js +71 -0
- package/dist/index-250f50e2.js +502 -0
- package/dist/index-356291b2.js +450 -0
- package/dist/index-38216e9e.js +340 -0
- package/dist/index-3c058c26.js +606 -0
- package/dist/index-3c3ba437.js +341 -0
- package/dist/index-3cd72a27.js +61 -0
- package/dist/index-3dcefa10.js +328 -0
- package/dist/index-3f70b1d4.js +331 -0
- package/dist/index-40ad0dd1.js +287 -0
- package/dist/index-42fb4fd5.js +334 -0
- package/dist/index-45696efa.js +438 -0
- package/dist/index-4b6824f2.js +61 -0
- package/dist/index-4b7924c1.js +354 -0
- package/dist/index-4c8ef561.js +337 -0
- package/dist/index-4ced47cd.js +359 -0
- package/dist/index-4eb29fd9.js +313 -0
- package/dist/index-4f2d4e0d.js +342 -0
- package/dist/index-51847d07.js +363 -0
- package/dist/index-51c1e00d.js +9 -0
- package/dist/index-51cf15b2.js +11054 -0
- package/dist/index-5357c173.js +336 -0
- package/dist/index-572ed179.js +353 -0
- package/dist/index-580c6bf2.js +362 -0
- package/dist/index-6817d9c1.js +363 -0
- package/dist/index-682656f7.js +62 -0
- package/dist/index-6834d6cf.js +330 -0
- package/dist/index-6a5829bd.js +387 -0
- package/dist/index-739cb389.js +332 -0
- package/dist/index-7601ed24.js +332 -0
- package/dist/index-76c2d21a.js +362 -0
- package/dist/index-7871c2fa.js +397 -0
- package/dist/index-7a871a23.js +362 -0
- package/dist/index-7aae1d07.js +298 -0
- package/dist/index-80121226.js +443 -0
- package/dist/index-872a50e8.js +353 -0
- package/dist/index-88fdaa89.js +437 -0
- package/dist/index-8a4c6daa.js +302 -0
- package/dist/index-8fb7d88b.js +360 -0
- package/dist/index-9412ffa1.js +346 -0
- package/dist/index-95d62350.js +427 -0
- package/dist/index-96a8d125.js +65 -0
- package/dist/index-9d0a665d.js +298 -0
- package/dist/index-a8c0dd3b.js +500 -0
- package/dist/index-aa90be0a.js +146 -0
- package/dist/index-aac5376e.js +331 -0
- package/dist/index-ac48594f.js +364 -0
- package/dist/index-acc7a626.js +146 -0
- package/dist/index-af6965cc.js +332 -0
- package/dist/index-b523f554.js +61 -0
- package/dist/index-b5aa671f.js +463 -0
- package/dist/index-b7612310.js +333 -0
- package/dist/index-babf632c.js +332 -0
- package/dist/index-baf0849c.js +346 -0
- package/dist/index-bb65c72e.js +514 -0
- package/dist/index-bb84ad8c.js +514 -0
- package/dist/index-c1e6e7ba.js +340 -0
- package/dist/index-cb4b8e2c.js +341 -0
- package/dist/index-d9848a76.js +545 -0
- package/dist/index-dc4bbb59.js +332 -0
- package/dist/index-dfc0fb0e.js +364 -0
- package/dist/index-e27e30cc.js +345 -0
- package/dist/index-e8380fcb.js +335 -0
- package/dist/index-ea4a8872.js +311 -0
- package/dist/index-eb696d64.js +436 -0
- package/dist/index-ebd469fd.js +297 -0
- package/dist/index-ed48cf75.js +383 -0
- package/dist/index-f3092738.js +308 -0
- package/dist/index-f41bdf2a.js +238 -0
- package/dist/index-f5c25d06.js +458 -0
- package/dist/index-f7e0a67b.js +511 -0
- package/dist/index-fafae16f.js +337 -0
- package/dist/index-ffe656da.js +332 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.es.js +51 -0
- package/dist/isObjectLike-1b8bbac2.js +44 -0
- package/dist/jsx-runtime-944c88e2.js +631 -0
- package/dist/provider/NoticeProvider.d.ts +41 -0
- package/dist/provider/ThemeProvider.d.ts +7 -0
- package/dist/provider/useTheme.d.ts +4 -0
- package/dist/types/component.d.ts +16 -0
- package/dist/types/svg.d.ts +4 -0
- package/dist/utils/format.d.ts +7 -0
- package/dist/utils/helper.d.ts +7 -0
- package/dist/utils/locales.d.ts +1 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils-7e50508b.js +2304 -0
- package/dist/vite.svg +1 -0
- package/package.json +117 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { a as m, b as r, c as u, d as h } from "./index-51cf15b2.js";
|
|
2
|
+
import "./Badge.es.js";
|
|
3
|
+
import "./jsx-runtime-944c88e2.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./index-96a8d125.js";
|
|
6
|
+
import "./utils-7e50508b.js";
|
|
7
|
+
import "./Button.es.js";
|
|
8
|
+
import "./isObjectLike-1b8bbac2.js";
|
|
9
|
+
import "./Dialog.es.js";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "./close-c67ec245.js";
|
|
12
|
+
import "./Drawer.es.js";
|
|
13
|
+
import "./Slider.es.js";
|
|
14
|
+
import "./Divider.es.js";
|
|
15
|
+
var g = {
|
|
16
|
+
lessThanXSeconds: {
|
|
17
|
+
one: "dưới 1 giây",
|
|
18
|
+
other: "dưới {{count}} giây"
|
|
19
|
+
},
|
|
20
|
+
xSeconds: {
|
|
21
|
+
one: "1 giây",
|
|
22
|
+
other: "{{count}} giây"
|
|
23
|
+
},
|
|
24
|
+
halfAMinute: "nửa phút",
|
|
25
|
+
lessThanXMinutes: {
|
|
26
|
+
one: "dưới 1 phút",
|
|
27
|
+
other: "dưới {{count}} phút"
|
|
28
|
+
},
|
|
29
|
+
xMinutes: {
|
|
30
|
+
one: "1 phút",
|
|
31
|
+
other: "{{count}} phút"
|
|
32
|
+
},
|
|
33
|
+
aboutXHours: {
|
|
34
|
+
one: "khoảng 1 giờ",
|
|
35
|
+
other: "khoảng {{count}} giờ"
|
|
36
|
+
},
|
|
37
|
+
xHours: {
|
|
38
|
+
one: "1 giờ",
|
|
39
|
+
other: "{{count}} giờ"
|
|
40
|
+
},
|
|
41
|
+
xDays: {
|
|
42
|
+
one: "1 ngày",
|
|
43
|
+
other: "{{count}} ngày"
|
|
44
|
+
},
|
|
45
|
+
aboutXWeeks: {
|
|
46
|
+
one: "khoảng 1 tuần",
|
|
47
|
+
other: "khoảng {{count}} tuần"
|
|
48
|
+
},
|
|
49
|
+
xWeeks: {
|
|
50
|
+
one: "1 tuần",
|
|
51
|
+
other: "{{count}} tuần"
|
|
52
|
+
},
|
|
53
|
+
aboutXMonths: {
|
|
54
|
+
one: "khoảng 1 tháng",
|
|
55
|
+
other: "khoảng {{count}} tháng"
|
|
56
|
+
},
|
|
57
|
+
xMonths: {
|
|
58
|
+
one: "1 tháng",
|
|
59
|
+
other: "{{count}} tháng"
|
|
60
|
+
},
|
|
61
|
+
aboutXYears: {
|
|
62
|
+
one: "khoảng 1 năm",
|
|
63
|
+
other: "khoảng {{count}} năm"
|
|
64
|
+
},
|
|
65
|
+
xYears: {
|
|
66
|
+
one: "1 năm",
|
|
67
|
+
other: "{{count}} năm"
|
|
68
|
+
},
|
|
69
|
+
overXYears: {
|
|
70
|
+
one: "hơn 1 năm",
|
|
71
|
+
other: "hơn {{count}} năm"
|
|
72
|
+
},
|
|
73
|
+
almostXYears: {
|
|
74
|
+
one: "gần 1 năm",
|
|
75
|
+
other: "gần {{count}} năm"
|
|
76
|
+
}
|
|
77
|
+
}, d = function(e, n, t) {
|
|
78
|
+
var a, o = g[e];
|
|
79
|
+
return typeof o == "string" ? a = o : n === 1 ? a = o.one : a = o.other.replace("{{count}}", String(n)), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? a + " nữa" : a + " trước" : a;
|
|
80
|
+
};
|
|
81
|
+
const s = d;
|
|
82
|
+
var l = {
|
|
83
|
+
// thứ Sáu, ngày 25 tháng 08 năm 2017
|
|
84
|
+
full: "EEEE, 'ngày' d MMMM 'năm' y",
|
|
85
|
+
// ngày 25 tháng 08 năm 2017
|
|
86
|
+
long: "'ngày' d MMMM 'năm' y",
|
|
87
|
+
// 25 thg 08 năm 2017
|
|
88
|
+
medium: "d MMM 'năm' y",
|
|
89
|
+
// 25/08/2017
|
|
90
|
+
short: "dd/MM/y"
|
|
91
|
+
}, c = {
|
|
92
|
+
full: "HH:mm:ss zzzz",
|
|
93
|
+
long: "HH:mm:ss z",
|
|
94
|
+
medium: "HH:mm:ss",
|
|
95
|
+
short: "HH:mm"
|
|
96
|
+
}, v = {
|
|
97
|
+
// thứ Sáu, ngày 25 tháng 08 năm 2017 23:25:59
|
|
98
|
+
full: "{{date}} {{time}}",
|
|
99
|
+
// ngày 25 tháng 08 năm 2017 23:25
|
|
100
|
+
long: "{{date}} {{time}}",
|
|
101
|
+
medium: "{{date}} {{time}}",
|
|
102
|
+
short: "{{date}} {{time}}"
|
|
103
|
+
}, f = {
|
|
104
|
+
date: m({
|
|
105
|
+
formats: l,
|
|
106
|
+
defaultWidth: "full"
|
|
107
|
+
}),
|
|
108
|
+
time: m({
|
|
109
|
+
formats: c,
|
|
110
|
+
defaultWidth: "full"
|
|
111
|
+
}),
|
|
112
|
+
dateTime: m({
|
|
113
|
+
formats: v,
|
|
114
|
+
defaultWidth: "full"
|
|
115
|
+
})
|
|
116
|
+
};
|
|
117
|
+
const T = f;
|
|
118
|
+
var b = {
|
|
119
|
+
lastWeek: "eeee 'tuần trước vào lúc' p",
|
|
120
|
+
yesterday: "'hôm qua vào lúc' p",
|
|
121
|
+
today: "'hôm nay vào lúc' p",
|
|
122
|
+
tomorrow: "'ngày mai vào lúc' p",
|
|
123
|
+
nextWeek: "eeee 'tới vào lúc' p",
|
|
124
|
+
other: "P"
|
|
125
|
+
}, p = function(e, n, t, a) {
|
|
126
|
+
return b[e];
|
|
127
|
+
};
|
|
128
|
+
const w = p;
|
|
129
|
+
var y = {
|
|
130
|
+
narrow: ["TCN", "SCN"],
|
|
131
|
+
abbreviated: ["trước CN", "sau CN"],
|
|
132
|
+
wide: ["trước Công Nguyên", "sau Công Nguyên"]
|
|
133
|
+
}, M = {
|
|
134
|
+
narrow: ["1", "2", "3", "4"],
|
|
135
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
136
|
+
wide: ["Quý 1", "Quý 2", "Quý 3", "Quý 4"]
|
|
137
|
+
}, P = {
|
|
138
|
+
narrow: ["1", "2", "3", "4"],
|
|
139
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
140
|
+
// I notice many news outlet use this "quý II/2018"
|
|
141
|
+
wide: ["quý I", "quý II", "quý III", "quý IV"]
|
|
142
|
+
}, C = {
|
|
143
|
+
narrow: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"],
|
|
144
|
+
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"],
|
|
145
|
+
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"]
|
|
146
|
+
}, N = {
|
|
147
|
+
narrow: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"],
|
|
148
|
+
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"],
|
|
149
|
+
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"]
|
|
150
|
+
}, W = {
|
|
151
|
+
narrow: ["CN", "T2", "T3", "T4", "T5", "T6", "T7"],
|
|
152
|
+
short: ["CN", "Th 2", "Th 3", "Th 4", "Th 5", "Th 6", "Th 7"],
|
|
153
|
+
abbreviated: ["CN", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7"],
|
|
154
|
+
wide: ["Chủ Nhật", "Thứ Hai", "Thứ Ba", "Thứ Tư", "Thứ Năm", "Thứ Sáu", "Thứ Bảy"]
|
|
155
|
+
}, k = {
|
|
156
|
+
// narrow date period is extremely rare in Vietnamese
|
|
157
|
+
// I used abbreviated form for noon, morning and afternoon
|
|
158
|
+
// which are regconizable by Vietnamese, others cannot be any shorter
|
|
159
|
+
narrow: {
|
|
160
|
+
am: "am",
|
|
161
|
+
pm: "pm",
|
|
162
|
+
midnight: "nửa đêm",
|
|
163
|
+
noon: "tr",
|
|
164
|
+
morning: "sg",
|
|
165
|
+
afternoon: "ch",
|
|
166
|
+
evening: "tối",
|
|
167
|
+
night: "đêm"
|
|
168
|
+
},
|
|
169
|
+
abbreviated: {
|
|
170
|
+
am: "AM",
|
|
171
|
+
pm: "PM",
|
|
172
|
+
midnight: "nửa đêm",
|
|
173
|
+
noon: "trưa",
|
|
174
|
+
morning: "sáng",
|
|
175
|
+
afternoon: "chiều",
|
|
176
|
+
evening: "tối",
|
|
177
|
+
night: "đêm"
|
|
178
|
+
},
|
|
179
|
+
wide: {
|
|
180
|
+
am: "SA",
|
|
181
|
+
pm: "CH",
|
|
182
|
+
midnight: "nửa đêm",
|
|
183
|
+
noon: "trưa",
|
|
184
|
+
morning: "sáng",
|
|
185
|
+
afternoon: "chiều",
|
|
186
|
+
evening: "tối",
|
|
187
|
+
night: "đêm"
|
|
188
|
+
}
|
|
189
|
+
}, H = {
|
|
190
|
+
narrow: {
|
|
191
|
+
am: "am",
|
|
192
|
+
pm: "pm",
|
|
193
|
+
midnight: "nửa đêm",
|
|
194
|
+
noon: "tr",
|
|
195
|
+
morning: "sg",
|
|
196
|
+
afternoon: "ch",
|
|
197
|
+
evening: "tối",
|
|
198
|
+
night: "đêm"
|
|
199
|
+
},
|
|
200
|
+
abbreviated: {
|
|
201
|
+
am: "AM",
|
|
202
|
+
pm: "PM",
|
|
203
|
+
midnight: "nửa đêm",
|
|
204
|
+
noon: "trưa",
|
|
205
|
+
morning: "sáng",
|
|
206
|
+
afternoon: "chiều",
|
|
207
|
+
evening: "tối",
|
|
208
|
+
night: "đêm"
|
|
209
|
+
},
|
|
210
|
+
wide: {
|
|
211
|
+
am: "SA",
|
|
212
|
+
pm: "CH",
|
|
213
|
+
midnight: "nửa đêm",
|
|
214
|
+
noon: "giữa trưa",
|
|
215
|
+
morning: "vào buổi sáng",
|
|
216
|
+
afternoon: "vào buổi chiều",
|
|
217
|
+
evening: "vào buổi tối",
|
|
218
|
+
night: "vào ban đêm"
|
|
219
|
+
}
|
|
220
|
+
}, _ = function(e, n) {
|
|
221
|
+
var t = Number(e), a = n == null ? void 0 : n.unit;
|
|
222
|
+
if (a === "quarter")
|
|
223
|
+
switch (t) {
|
|
224
|
+
case 1:
|
|
225
|
+
return "I";
|
|
226
|
+
case 2:
|
|
227
|
+
return "II";
|
|
228
|
+
case 3:
|
|
229
|
+
return "III";
|
|
230
|
+
case 4:
|
|
231
|
+
return "IV";
|
|
232
|
+
}
|
|
233
|
+
else if (a === "day")
|
|
234
|
+
switch (t) {
|
|
235
|
+
case 1:
|
|
236
|
+
return "thứ 2";
|
|
237
|
+
case 2:
|
|
238
|
+
return "thứ 3";
|
|
239
|
+
case 3:
|
|
240
|
+
return "thứ 4";
|
|
241
|
+
case 4:
|
|
242
|
+
return "thứ 5";
|
|
243
|
+
case 5:
|
|
244
|
+
return "thứ 6";
|
|
245
|
+
case 6:
|
|
246
|
+
return "thứ 7";
|
|
247
|
+
case 7:
|
|
248
|
+
return "chủ nhật";
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
if (a === "week")
|
|
252
|
+
return t === 1 ? "thứ nhất" : "thứ " + t;
|
|
253
|
+
if (a === "dayOfYear")
|
|
254
|
+
return t === 1 ? "đầu tiên" : "thứ " + t;
|
|
255
|
+
}
|
|
256
|
+
return String(t);
|
|
257
|
+
}, I = {
|
|
258
|
+
ordinalNumber: _,
|
|
259
|
+
era: r({
|
|
260
|
+
values: y,
|
|
261
|
+
defaultWidth: "wide"
|
|
262
|
+
}),
|
|
263
|
+
quarter: r({
|
|
264
|
+
values: M,
|
|
265
|
+
defaultWidth: "wide",
|
|
266
|
+
formattingValues: P,
|
|
267
|
+
defaultFormattingWidth: "wide",
|
|
268
|
+
argumentCallback: function(e) {
|
|
269
|
+
return e - 1;
|
|
270
|
+
}
|
|
271
|
+
}),
|
|
272
|
+
month: r({
|
|
273
|
+
values: C,
|
|
274
|
+
defaultWidth: "wide",
|
|
275
|
+
formattingValues: N,
|
|
276
|
+
defaultFormattingWidth: "wide"
|
|
277
|
+
}),
|
|
278
|
+
day: r({
|
|
279
|
+
values: W,
|
|
280
|
+
defaultWidth: "wide"
|
|
281
|
+
}),
|
|
282
|
+
dayPeriod: r({
|
|
283
|
+
values: k,
|
|
284
|
+
defaultWidth: "wide",
|
|
285
|
+
formattingValues: H,
|
|
286
|
+
defaultFormattingWidth: "wide"
|
|
287
|
+
})
|
|
288
|
+
};
|
|
289
|
+
const Q = I;
|
|
290
|
+
var S = /^(\d+)/i, V = /\d+/i, D = {
|
|
291
|
+
narrow: /^(tcn|scn)/i,
|
|
292
|
+
abbreviated: /^(trước CN|sau CN)/i,
|
|
293
|
+
wide: /^(trước Công Nguyên|sau Công Nguyên)/i
|
|
294
|
+
}, B = {
|
|
295
|
+
any: [/^t/i, /^s/i]
|
|
296
|
+
}, q = {
|
|
297
|
+
narrow: /^([1234]|i{1,3}v?)/i,
|
|
298
|
+
abbreviated: /^q([1234]|i{1,3}v?)/i,
|
|
299
|
+
wide: /^quý ([1234]|i{1,3}v?)/i
|
|
300
|
+
}, F = {
|
|
301
|
+
any: [/(1|i)$/i, /(2|ii)$/i, /(3|iii)$/i, /(4|iv)$/i]
|
|
302
|
+
}, x = {
|
|
303
|
+
// month number may contain leading 0, 'thg' prefix may have space, underscore or empty before number
|
|
304
|
+
// note the order of '1' since it is a sub-string of '10', so must be lower priority
|
|
305
|
+
narrow: /^(0?[2-9]|10|11|12|0?1)/i,
|
|
306
|
+
// note the order of 'thg 1' since it is sub-string of 'thg 10', so must be lower priority
|
|
307
|
+
abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,
|
|
308
|
+
// note the order of 'Mười' since it is sub-string of Mười Một, so must be lower priority
|
|
309
|
+
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
|
|
310
|
+
}, $ = {
|
|
311
|
+
narrow: [/0?1$/i, /0?2/i, /3/, /4/, /5/, /6/, /7/, /8/, /9/, /10/, /11/, /12/],
|
|
312
|
+
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],
|
|
313
|
+
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]
|
|
314
|
+
}, z = {
|
|
315
|
+
narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i,
|
|
316
|
+
short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
|
|
317
|
+
abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,
|
|
318
|
+
wide: /^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i
|
|
319
|
+
}, X = {
|
|
320
|
+
narrow: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i],
|
|
321
|
+
short: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i],
|
|
322
|
+
abbreviated: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i],
|
|
323
|
+
wide: [/(Chủ|Chúa) ?Nhật/i, /Hai/i, /Ba/i, /Tư/i, /Năm/i, /Sáu/i, /Bảy/i]
|
|
324
|
+
}, L = {
|
|
325
|
+
narrow: /^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
|
|
326
|
+
abbreviated: /^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,
|
|
327
|
+
wide: /^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i
|
|
328
|
+
}, E = {
|
|
329
|
+
any: {
|
|
330
|
+
am: /^(a|sa)/i,
|
|
331
|
+
pm: /^(p|ch[^i]*)/i,
|
|
332
|
+
midnight: /nửa đêm/i,
|
|
333
|
+
noon: /trưa/i,
|
|
334
|
+
morning: /sáng/i,
|
|
335
|
+
afternoon: /chiều/i,
|
|
336
|
+
evening: /tối/i,
|
|
337
|
+
night: /^đêm/i
|
|
338
|
+
}
|
|
339
|
+
}, A = {
|
|
340
|
+
ordinalNumber: u({
|
|
341
|
+
matchPattern: S,
|
|
342
|
+
parsePattern: V,
|
|
343
|
+
valueCallback: function(e) {
|
|
344
|
+
return parseInt(e, 10);
|
|
345
|
+
}
|
|
346
|
+
}),
|
|
347
|
+
era: h({
|
|
348
|
+
matchPatterns: D,
|
|
349
|
+
defaultMatchWidth: "wide",
|
|
350
|
+
parsePatterns: B,
|
|
351
|
+
defaultParseWidth: "any"
|
|
352
|
+
}),
|
|
353
|
+
quarter: h({
|
|
354
|
+
matchPatterns: q,
|
|
355
|
+
defaultMatchWidth: "wide",
|
|
356
|
+
parsePatterns: F,
|
|
357
|
+
defaultParseWidth: "any",
|
|
358
|
+
valueCallback: function(e) {
|
|
359
|
+
return e + 1;
|
|
360
|
+
}
|
|
361
|
+
}),
|
|
362
|
+
month: h({
|
|
363
|
+
matchPatterns: x,
|
|
364
|
+
defaultMatchWidth: "wide",
|
|
365
|
+
parsePatterns: $,
|
|
366
|
+
defaultParseWidth: "wide"
|
|
367
|
+
}),
|
|
368
|
+
day: h({
|
|
369
|
+
matchPatterns: z,
|
|
370
|
+
defaultMatchWidth: "wide",
|
|
371
|
+
parsePatterns: X,
|
|
372
|
+
defaultParseWidth: "wide"
|
|
373
|
+
}),
|
|
374
|
+
dayPeriod: h({
|
|
375
|
+
matchPatterns: L,
|
|
376
|
+
defaultMatchWidth: "wide",
|
|
377
|
+
parsePatterns: E,
|
|
378
|
+
defaultParseWidth: "any"
|
|
379
|
+
})
|
|
380
|
+
};
|
|
381
|
+
const R = A;
|
|
382
|
+
var ht = {
|
|
383
|
+
code: "vi",
|
|
384
|
+
formatDistance: s,
|
|
385
|
+
formatLong: T,
|
|
386
|
+
formatRelative: w,
|
|
387
|
+
localize: Q,
|
|
388
|
+
match: R,
|
|
389
|
+
options: {
|
|
390
|
+
weekStartsOn: 1,
|
|
391
|
+
firstWeekContainsDate: 1
|
|
392
|
+
/* First week of new year contains Jan 1st */
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
export {
|
|
396
|
+
ht as default
|
|
397
|
+
};
|