gasp-components 1.0.7 → 1.0.8
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/dist/assets/index.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/components/ag-grid-table/index.js +5551 -5550
- package/dist/components/button/index.js +23 -34
- package/dist/components/checklist/checklist-item.js +11 -16
- package/dist/components/checklist/index.js +7 -13
- package/dist/components/date-picker/index.js +2 -9
- package/dist/components/dragger/index.js +64 -91
- package/dist/components/dropdown/index.js +12 -40
- package/dist/components/form/index.js +18 -45
- package/dist/components/form-item/index.js +23 -50
- package/dist/components/input/index.js +11 -32
- package/dist/components/modal/index.js +27 -52
- package/dist/components/password-input/index.js +8 -29
- package/dist/components/progress/index.js +22 -53
- package/dist/components/progress-circle/index.js +12 -32
- package/dist/components/radio-button/index.js +13 -40
- package/dist/components/radio-button-group/index.js +23 -52
- package/dist/components/result-popup/index.js +21 -59
- package/dist/components/select/index.js +12 -40
- package/dist/components/side-menu/index.js +3 -35
- package/dist/components/side-menu/menu-item.js +2 -29
- package/dist/components/table/index.js +2 -17
- package/dist/components/tabs/index.js +28 -58
- package/dist/components/tabs/tab.js +30 -57
- package/dist/components/tag/index.js +2 -6
- package/dist/components/timeline-horizontal/index.js +19 -46
- package/dist/components/upload/index.js +52 -79
- package/dist/main.js +193 -255
- package/package.json +3 -2
- package/dist/assets/style.css +0 -1
package/dist/main.js
CHANGED
|
@@ -1,154 +1,92 @@
|
|
|
1
|
+
import "./assets/main.css";
|
|
1
2
|
import { jsx as L } from "react/jsx-runtime";
|
|
2
3
|
import "./index-s3u4YBl4.js";
|
|
3
|
-
import { AgGridTable as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { CheckList as
|
|
6
|
-
import { DatePicker as
|
|
7
|
-
import { Dragger as
|
|
8
|
-
import { Dropdown as
|
|
9
|
-
import { Form as
|
|
10
|
-
import { FormItem as
|
|
11
|
-
import { Input as
|
|
12
|
-
import { Modal as
|
|
13
|
-
import { PasswordInput as
|
|
14
|
-
import { Progress as
|
|
15
|
-
import { ProgressCircle as
|
|
16
|
-
import { RadioButton as
|
|
17
|
-
import { RadioButtonGroup as
|
|
18
|
-
import { ResultPopup as
|
|
19
|
-
import { Select as
|
|
20
|
-
import { S as
|
|
21
|
-
import { Steps as
|
|
22
|
-
import { Table as
|
|
23
|
-
import { Tabs as
|
|
24
|
-
import { Tag as
|
|
25
|
-
import { TimelineHorizontal as
|
|
26
|
-
import { Upload as
|
|
27
|
-
import { libTheme as
|
|
28
|
-
import { i as q, T as W, b as
|
|
4
|
+
import { AgGridTable as Br } from "./components/ag-grid-table/index.js";
|
|
5
|
+
import { Button as Gr } from "./components/button/index.js";
|
|
6
|
+
import { CheckList as $r } from "./components/checklist/index.js";
|
|
7
|
+
import { DatePicker as qr } from "./components/date-picker/index.js";
|
|
8
|
+
import { Dragger as zr } from "./components/dragger/index.js";
|
|
9
|
+
import { Dropdown as Yr } from "./components/dropdown/index.js";
|
|
10
|
+
import { Form as Hr } from "./components/form/index.js";
|
|
11
|
+
import { FormItem as Qr } from "./components/form-item/index.js";
|
|
12
|
+
import { Input as rt } from "./components/input/index.js";
|
|
13
|
+
import { Modal as et } from "./components/modal/index.js";
|
|
14
|
+
import { PasswordInput as ot } from "./components/password-input/index.js";
|
|
15
|
+
import { Progress as it } from "./components/progress/index.js";
|
|
16
|
+
import { ProgressCircle as st } from "./components/progress-circle/index.js";
|
|
17
|
+
import { RadioButton as ft } from "./components/radio-button/index.js";
|
|
18
|
+
import { RadioButtonGroup as ct } from "./components/radio-button-group/index.js";
|
|
19
|
+
import { ResultPopup as gt } from "./components/result-popup/index.js";
|
|
20
|
+
import { Select as pt } from "./components/select/index.js";
|
|
21
|
+
import { S as Et } from "./index-BFgxz47K.js";
|
|
22
|
+
import { Steps as Ft } from "./components/steps/index.js";
|
|
23
|
+
import { Table as It } from "./components/table/index.js";
|
|
24
|
+
import { Tabs as ht } from "./components/tabs/index.js";
|
|
25
|
+
import { Tag as xt } from "./components/tag/index.js";
|
|
26
|
+
import { TimelineHorizontal as Ot } from "./components/timeline-horizontal/index.js";
|
|
27
|
+
import { Upload as Mt } from "./components/upload/index.js";
|
|
28
|
+
import { libTheme as Lt } from "./theme.js";
|
|
29
|
+
import { i as q, T as W, b as m, M as z, d as P, I as X, e as c, f as E, g as w, h as I, E as S, j as Y, D as K, k as H, l as N, _ as J, m as Z, n as Q, o as V, p as rr, q as tr, s as er, r as ar, P as or, t as nr } from "./createFormattedComponent-FcpICAm8.js";
|
|
29
30
|
import * as D from "react";
|
|
30
31
|
import { A as ir } from "./index-1KQbTQJ2.js";
|
|
31
|
-
|
|
32
|
-
import "./index-vtDVJV8q.js";
|
|
33
|
-
import "./button-LN5ZDad8.js";
|
|
34
|
-
import "./omit-ylWA0ZLZ.js";
|
|
35
|
-
import "./index-ZT64Ec6u.js";
|
|
36
|
-
import "./isVisible-Qi9l15Ty.js";
|
|
37
|
-
import "./reactNode-R20zZQk1.js";
|
|
38
|
-
import "./asyncToGenerator-t4sKr8R4.js";
|
|
39
|
-
import "./Compact-fdEKV_mF.js";
|
|
40
|
-
import "./LoadingOutlined-6Ipqn0og.js";
|
|
41
|
-
import "./compact-item-jjuVmDBH.js";
|
|
42
|
-
import "./components/checklist/checklist-item.js";
|
|
43
|
-
import "./icons/check-icon/index.js";
|
|
44
|
-
import "./index-ELHBhuK9.js";
|
|
45
|
-
import "./PurePanel-hLGnXbul.js";
|
|
46
|
-
import "./useMergedState-qUafLuUa.js";
|
|
47
|
-
import "./CloseCircleFilled-bIgIULWb.js";
|
|
48
|
-
import "./KeyCode-qFRXB1-n.js";
|
|
49
|
-
import "./index-L-MzVDcK.js";
|
|
50
|
-
import "./motion-0ToOu81j.js";
|
|
51
|
-
import "./index--6VfGMUo.js";
|
|
52
|
-
import "./pickAttrs-zaQzRTqh.js";
|
|
53
|
-
import "./useVariants-s0IcneBD.js";
|
|
54
|
-
import "./context-h3WSVDPz.js";
|
|
55
|
-
import "./index-GgkQrebz.js";
|
|
56
|
-
import "./slide-mFXPRHku.js";
|
|
57
|
-
import "./roundedArrow-p1Pmd9av.js";
|
|
58
|
-
import "./useCSSVarCls-GwZT_WiF.js";
|
|
59
|
-
import "./useLocale-eThlLZJw.js";
|
|
60
|
-
import "./icons/file-icon/index.js";
|
|
61
|
-
import "./icons/upload-icon/index.js";
|
|
62
|
-
import "./UploadOutlined-D8jfLEgv.js";
|
|
63
|
-
import "./index-0mpuHoS5.js";
|
|
64
|
-
import "./CheckOutlined-EgxCAgj_.js";
|
|
65
|
-
import "./styleChecker-pZ3k2IiY.js";
|
|
66
|
-
import "./index-5Uo03BMk.js";
|
|
67
|
-
import "./motion-NQme0FJ_.js";
|
|
68
|
-
import "./zoom-Ps8y0jNW.js";
|
|
69
|
-
import "./colors-opGg9oSz.js";
|
|
70
|
-
import "./TextArea-n3dknzTq.js";
|
|
71
|
-
import "./index-DVS_nWxv.js";
|
|
72
|
-
import "./Overflow-JFdXKgCr.js";
|
|
73
|
-
import "./collapse-ilv4Tji1.js";
|
|
74
|
-
import "./index-D3LMPWyJ.js";
|
|
75
|
-
import "./row-sPFiFm0C.js";
|
|
76
|
-
import "./responsiveObserver-V1_1G14X.js";
|
|
77
|
-
import "./CheckCircleFilled-xt-0R96Z.js";
|
|
78
|
-
import "./ExclamationCircleFilled-XzDBEGmA.js";
|
|
79
|
-
import "./index-M3WnMjiA.js";
|
|
80
|
-
import "./SearchOutlined-rJTFGXUi.js";
|
|
81
|
-
import "./icons/close-outlined-icon/index.js";
|
|
82
|
-
import "./index-k04G4nlS.js";
|
|
83
|
-
import "./CloseOutlined-Q3kC3EZS.js";
|
|
84
|
-
import "./useClosable-4G12n4Bp.js";
|
|
85
|
-
import "./progress-a1_pwKVT.js";
|
|
86
|
-
import "./components/radio-button-group/context.js";
|
|
87
|
-
import "./icons/success-icon/index.js";
|
|
88
|
-
import "./icons/failed-icon/index.js";
|
|
89
|
-
import "./index-aawDqn9q.js";
|
|
90
|
-
import "./icons/dashboard-icon/index.js";
|
|
91
|
-
import "./index-Fn8q8B3V.js";
|
|
92
|
-
import "./components/tabs/tab.js";
|
|
93
|
-
import "./components/tabs/context.js";
|
|
94
|
-
function b(r, o) {
|
|
32
|
+
function b(r, a) {
|
|
95
33
|
return Object.keys(r).reduce(function(e, t) {
|
|
96
|
-
return e[t] =
|
|
34
|
+
return e[t] = m({ timeZone: a }, r[t]), e;
|
|
97
35
|
}, {});
|
|
98
36
|
}
|
|
99
|
-
function C(r,
|
|
100
|
-
var e = Object.keys(
|
|
37
|
+
function C(r, a) {
|
|
38
|
+
var e = Object.keys(m(m({}, r), a));
|
|
101
39
|
return e.reduce(function(t, n) {
|
|
102
|
-
return t[n] =
|
|
40
|
+
return t[n] = m(m({}, r[n] || {}), a[n] || {}), t;
|
|
103
41
|
}, {});
|
|
104
42
|
}
|
|
105
|
-
function A(r,
|
|
106
|
-
if (!
|
|
43
|
+
function A(r, a) {
|
|
44
|
+
if (!a)
|
|
107
45
|
return r;
|
|
108
46
|
var e = X.formats;
|
|
109
|
-
return
|
|
47
|
+
return m(m(m({}, e), r), { date: C(b(e.date, a), b(r.date || {}, a)), time: C(b(e.time, a), b(r.time || {}, a)) });
|
|
110
48
|
}
|
|
111
|
-
var O = function(r,
|
|
112
|
-
var
|
|
49
|
+
var O = function(r, a, e, t, n) {
|
|
50
|
+
var o = r.locale, i = r.formats, l = r.messages, s = r.defaultLocale, d = r.defaultFormats, f = r.fallbackOnEmptyString, v = r.onError, y = r.timeZone, M = r.defaultRichTextElements;
|
|
113
51
|
e === void 0 && (e = { id: "" });
|
|
114
|
-
var R = e.id,
|
|
52
|
+
var R = e.id, g = e.defaultMessage;
|
|
115
53
|
q(!!R, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
116
|
-
var
|
|
54
|
+
var p = String(R), u = (
|
|
117
55
|
// In case messages is Object.create(null)
|
|
118
56
|
// e.g import('foo.json') from webpack)
|
|
119
57
|
// See https://github.com/formatjs/formatjs/issues/1914
|
|
120
|
-
l && Object.prototype.hasOwnProperty.call(l,
|
|
58
|
+
l && Object.prototype.hasOwnProperty.call(l, p) && l[p]
|
|
121
59
|
);
|
|
122
60
|
if (Array.isArray(u) && u.length === 1 && u[0].type === W.literal)
|
|
123
61
|
return u[0].value;
|
|
124
62
|
if (!t && u && typeof u == "string" && !M)
|
|
125
63
|
return u.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
126
|
-
if (t =
|
|
64
|
+
if (t = m(m({}, M), t || {}), i = A(i, y), d = A(d, y), !u) {
|
|
127
65
|
if (f === !1 && u === "")
|
|
128
66
|
return u;
|
|
129
|
-
if ((!
|
|
67
|
+
if ((!g || o && o.toLowerCase() !== s.toLowerCase()) && v(new z(e, o)), g)
|
|
130
68
|
try {
|
|
131
|
-
var T =
|
|
69
|
+
var T = a.getMessageFormat(g, s, d, n);
|
|
132
70
|
return T.format(t);
|
|
133
71
|
} catch (F) {
|
|
134
|
-
return
|
|
72
|
+
return v(new P('Error formatting default message for: "'.concat(p, '", rendering default message verbatim'), o, e, F)), typeof g == "string" ? g : p;
|
|
135
73
|
}
|
|
136
|
-
return
|
|
74
|
+
return p;
|
|
137
75
|
}
|
|
138
76
|
try {
|
|
139
|
-
var T =
|
|
77
|
+
var T = a.getMessageFormat(u, o, i, m({ formatters: a }, n || {}));
|
|
140
78
|
return T.format(t);
|
|
141
79
|
} catch (F) {
|
|
142
|
-
|
|
80
|
+
v(new P('Error formatting message: "'.concat(p, '", using ').concat(g ? "default message" : "id", " as fallback."), o, e, F));
|
|
143
81
|
}
|
|
144
|
-
if (
|
|
82
|
+
if (g)
|
|
145
83
|
try {
|
|
146
|
-
var T =
|
|
84
|
+
var T = a.getMessageFormat(g, s, d, n);
|
|
147
85
|
return T.format(t);
|
|
148
86
|
} catch (F) {
|
|
149
|
-
|
|
87
|
+
v(new P('Error formatting the default message for: "'.concat(p, '", rendering message verbatim'), o, e, F));
|
|
150
88
|
}
|
|
151
|
-
return typeof u == "string" ? u : typeof
|
|
89
|
+
return typeof u == "string" ? u : typeof g == "string" ? g : p;
|
|
152
90
|
}, G = [
|
|
153
91
|
"formatMatcher",
|
|
154
92
|
"timeZone",
|
|
@@ -170,64 +108,64 @@ var O = function(r, o, e, t, n) {
|
|
|
170
108
|
"numberingSystem",
|
|
171
109
|
"fractionalSecondDigits"
|
|
172
110
|
];
|
|
173
|
-
function h(r,
|
|
174
|
-
var n = r.locale,
|
|
111
|
+
function h(r, a, e, t) {
|
|
112
|
+
var n = r.locale, o = r.formats, i = r.onError, l = r.timeZone;
|
|
175
113
|
t === void 0 && (t = {});
|
|
176
|
-
var
|
|
177
|
-
return
|
|
114
|
+
var s = t.format, d = m(m({}, l && { timeZone: l }), s && w(o, a, s, i)), f = E(t, G, d);
|
|
115
|
+
return a === "time" && !f.hour && !f.minute && !f.second && !f.timeStyle && !f.dateStyle && (f = m(m({}, f), { hour: "numeric", minute: "numeric" })), e(n, f);
|
|
178
116
|
}
|
|
179
|
-
function lr(r,
|
|
117
|
+
function lr(r, a) {
|
|
180
118
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
181
119
|
e[t - 2] = arguments[t];
|
|
182
|
-
var n = e[0],
|
|
120
|
+
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
183
121
|
try {
|
|
184
|
-
return h(r, "date",
|
|
185
|
-
} catch (
|
|
186
|
-
r.onError(new c("Error formatting date.", r.locale,
|
|
122
|
+
return h(r, "date", a, i).format(l);
|
|
123
|
+
} catch (s) {
|
|
124
|
+
r.onError(new c("Error formatting date.", r.locale, s));
|
|
187
125
|
}
|
|
188
126
|
return String(l);
|
|
189
127
|
}
|
|
190
|
-
function
|
|
128
|
+
function sr(r, a) {
|
|
191
129
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
192
130
|
e[t - 2] = arguments[t];
|
|
193
|
-
var n = e[0],
|
|
131
|
+
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
194
132
|
try {
|
|
195
|
-
return h(r, "time",
|
|
196
|
-
} catch (
|
|
197
|
-
r.onError(new c("Error formatting time.", r.locale,
|
|
133
|
+
return h(r, "time", a, i).format(l);
|
|
134
|
+
} catch (s) {
|
|
135
|
+
r.onError(new c("Error formatting time.", r.locale, s));
|
|
198
136
|
}
|
|
199
137
|
return String(l);
|
|
200
138
|
}
|
|
201
|
-
function
|
|
139
|
+
function mr(r, a) {
|
|
202
140
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
203
141
|
e[t - 2] = arguments[t];
|
|
204
|
-
var n = e[0],
|
|
142
|
+
var n = e[0], o = e[1], i = e[2], l = i === void 0 ? {} : i, s = r.timeZone, d = r.locale, f = r.onError, v = E(l, G, s ? { timeZone: s } : {});
|
|
205
143
|
try {
|
|
206
|
-
return
|
|
144
|
+
return a(d, v).formatRange(n, o);
|
|
207
145
|
} catch (y) {
|
|
208
146
|
f(new c("Error formatting date time range.", r.locale, y));
|
|
209
147
|
}
|
|
210
148
|
return String(n);
|
|
211
149
|
}
|
|
212
|
-
function fr(r,
|
|
150
|
+
function fr(r, a) {
|
|
213
151
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
214
152
|
e[t - 2] = arguments[t];
|
|
215
|
-
var n = e[0],
|
|
153
|
+
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
216
154
|
try {
|
|
217
|
-
return h(r, "date",
|
|
218
|
-
} catch (
|
|
219
|
-
r.onError(new c("Error formatting date.", r.locale,
|
|
155
|
+
return h(r, "date", a, i).formatToParts(l);
|
|
156
|
+
} catch (s) {
|
|
157
|
+
r.onError(new c("Error formatting date.", r.locale, s));
|
|
220
158
|
}
|
|
221
159
|
return [];
|
|
222
160
|
}
|
|
223
|
-
function ur(r,
|
|
161
|
+
function ur(r, a) {
|
|
224
162
|
for (var e = [], t = 2; t < arguments.length; t++)
|
|
225
163
|
e[t - 2] = arguments[t];
|
|
226
|
-
var n = e[0],
|
|
164
|
+
var n = e[0], o = e[1], i = o === void 0 ? {} : o, l = typeof n == "string" ? new Date(n || 0) : n;
|
|
227
165
|
try {
|
|
228
|
-
return h(r, "time",
|
|
229
|
-
} catch (
|
|
230
|
-
r.onError(new c("Error formatting time.", r.locale,
|
|
166
|
+
return h(r, "time", a, i).formatToParts(l);
|
|
167
|
+
} catch (s) {
|
|
168
|
+
r.onError(new c("Error formatting time.", r.locale, s));
|
|
231
169
|
}
|
|
232
170
|
return [];
|
|
233
171
|
}
|
|
@@ -237,86 +175,86 @@ var cr = [
|
|
|
237
175
|
"fallback",
|
|
238
176
|
"languageDisplay"
|
|
239
177
|
];
|
|
240
|
-
function
|
|
241
|
-
var n = r.locale,
|
|
242
|
-
i ||
|
|
178
|
+
function dr(r, a, e, t) {
|
|
179
|
+
var n = r.locale, o = r.onError, i = Intl.DisplayNames;
|
|
180
|
+
i || o(new I(`Intl.DisplayNames is not available in this environment.
|
|
243
181
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
244
182
|
`, S.MISSING_INTL_API));
|
|
245
183
|
var l = E(t, cr);
|
|
246
184
|
try {
|
|
247
|
-
return
|
|
248
|
-
} catch (
|
|
249
|
-
|
|
185
|
+
return a(n, l).of(e);
|
|
186
|
+
} catch (s) {
|
|
187
|
+
o(new c("Error formatting display name.", n, s));
|
|
250
188
|
}
|
|
251
189
|
}
|
|
252
|
-
var
|
|
190
|
+
var gr = [
|
|
253
191
|
"type",
|
|
254
192
|
"style"
|
|
255
193
|
], j = Date.now();
|
|
256
|
-
function
|
|
194
|
+
function vr(r) {
|
|
257
195
|
return "".concat(j, "_").concat(r, "_").concat(j);
|
|
258
196
|
}
|
|
259
|
-
function
|
|
197
|
+
function pr(r, a, e, t) {
|
|
260
198
|
t === void 0 && (t = {});
|
|
261
|
-
var n = U(r,
|
|
199
|
+
var n = U(r, a, e, t).reduce(function(o, i) {
|
|
262
200
|
var l = i.value;
|
|
263
|
-
return typeof l != "string" ?
|
|
201
|
+
return typeof l != "string" ? o.push(l) : typeof o[o.length - 1] == "string" ? o[o.length - 1] += l : o.push(l), o;
|
|
264
202
|
}, []);
|
|
265
203
|
return n.length === 1 ? n[0] : n.length === 0 ? "" : n;
|
|
266
204
|
}
|
|
267
|
-
function U(r,
|
|
268
|
-
var n = r.locale,
|
|
205
|
+
function U(r, a, e, t) {
|
|
206
|
+
var n = r.locale, o = r.onError;
|
|
269
207
|
t === void 0 && (t = {});
|
|
270
208
|
var i = Intl.ListFormat;
|
|
271
|
-
i ||
|
|
209
|
+
i || o(new I(`Intl.ListFormat is not available in this environment.
|
|
272
210
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
273
211
|
`, S.MISSING_INTL_API));
|
|
274
|
-
var l = E(t,
|
|
212
|
+
var l = E(t, gr);
|
|
275
213
|
try {
|
|
276
|
-
var
|
|
214
|
+
var s = {}, d = e.map(function(f, v) {
|
|
277
215
|
if (typeof f == "object") {
|
|
278
|
-
var y =
|
|
279
|
-
return
|
|
216
|
+
var y = vr(v);
|
|
217
|
+
return s[y] = f, y;
|
|
280
218
|
}
|
|
281
219
|
return String(f);
|
|
282
220
|
});
|
|
283
|
-
return
|
|
284
|
-
return f.type === "literal" ? f :
|
|
221
|
+
return a(n, l).formatToParts(d).map(function(f) {
|
|
222
|
+
return f.type === "literal" ? f : m(m({}, f), { value: s[f.value] || f.value });
|
|
285
223
|
});
|
|
286
224
|
} catch (f) {
|
|
287
|
-
|
|
225
|
+
o(new c("Error formatting list.", n, f));
|
|
288
226
|
}
|
|
289
227
|
return e;
|
|
290
228
|
}
|
|
291
229
|
var yr = ["type"];
|
|
292
|
-
function Er(r,
|
|
293
|
-
var n = r.locale,
|
|
294
|
-
t === void 0 && (t = {}), Intl.PluralRules ||
|
|
230
|
+
function Er(r, a, e, t) {
|
|
231
|
+
var n = r.locale, o = r.onError;
|
|
232
|
+
t === void 0 && (t = {}), Intl.PluralRules || o(new I(`Intl.PluralRules is not available in this environment.
|
|
295
233
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
296
234
|
`, S.MISSING_INTL_API));
|
|
297
235
|
var i = E(t, yr);
|
|
298
236
|
try {
|
|
299
|
-
return
|
|
237
|
+
return a(n, i).select(e);
|
|
300
238
|
} catch (l) {
|
|
301
|
-
|
|
239
|
+
o(new c("Error formatting plural.", n, l));
|
|
302
240
|
}
|
|
303
241
|
return "other";
|
|
304
242
|
}
|
|
305
243
|
var Tr = ["numeric", "style"];
|
|
306
|
-
function Fr(r,
|
|
307
|
-
var t = r.locale, n = r.formats,
|
|
244
|
+
function Fr(r, a, e) {
|
|
245
|
+
var t = r.locale, n = r.formats, o = r.onError;
|
|
308
246
|
e === void 0 && (e = {});
|
|
309
|
-
var i = e.format, l = !!i && w(n, "relative", i,
|
|
310
|
-
return
|
|
247
|
+
var i = e.format, l = !!i && w(n, "relative", i, o) || {}, s = E(e, Tr, l);
|
|
248
|
+
return a(t, s);
|
|
311
249
|
}
|
|
312
|
-
function br(r,
|
|
250
|
+
function br(r, a, e, t, n) {
|
|
313
251
|
n === void 0 && (n = {}), t || (t = "second");
|
|
314
|
-
var
|
|
315
|
-
|
|
252
|
+
var o = Intl.RelativeTimeFormat;
|
|
253
|
+
o || r.onError(new I(`Intl.RelativeTimeFormat is not available in this environment.
|
|
316
254
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
317
255
|
`, S.MISSING_INTL_API));
|
|
318
256
|
try {
|
|
319
|
-
return Fr(r,
|
|
257
|
+
return Fr(r, a, n).format(e, t);
|
|
320
258
|
} catch (i) {
|
|
321
259
|
r.onError(new c("Error formatting relative time.", r.locale, i));
|
|
322
260
|
}
|
|
@@ -344,98 +282,98 @@ var Ir = [
|
|
|
344
282
|
"unitDisplay",
|
|
345
283
|
"numberingSystem"
|
|
346
284
|
];
|
|
347
|
-
function $(r,
|
|
348
|
-
var t = r.locale, n = r.formats,
|
|
285
|
+
function $(r, a, e) {
|
|
286
|
+
var t = r.locale, n = r.formats, o = r.onError;
|
|
349
287
|
e === void 0 && (e = {});
|
|
350
|
-
var i = e.format, l = i && w(n, "number", i,
|
|
351
|
-
return
|
|
288
|
+
var i = e.format, l = i && w(n, "number", i, o) || {}, s = E(e, Ir, l);
|
|
289
|
+
return a(t, s);
|
|
352
290
|
}
|
|
353
|
-
function Sr(r,
|
|
291
|
+
function Sr(r, a, e, t) {
|
|
354
292
|
t === void 0 && (t = {});
|
|
355
293
|
try {
|
|
356
|
-
return $(r,
|
|
294
|
+
return $(r, a, t).format(e);
|
|
357
295
|
} catch (n) {
|
|
358
296
|
r.onError(new c("Error formatting number.", r.locale, n));
|
|
359
297
|
}
|
|
360
298
|
return String(e);
|
|
361
299
|
}
|
|
362
|
-
function hr(r,
|
|
300
|
+
function hr(r, a, e, t) {
|
|
363
301
|
t === void 0 && (t = {});
|
|
364
302
|
try {
|
|
365
|
-
return $(r,
|
|
303
|
+
return $(r, a, t).formatToParts(e);
|
|
366
304
|
} catch (n) {
|
|
367
305
|
r.onError(new c("Error formatting number.", r.locale, n));
|
|
368
306
|
}
|
|
369
307
|
return [];
|
|
370
308
|
}
|
|
371
309
|
function Pr(r) {
|
|
372
|
-
var
|
|
373
|
-
return typeof
|
|
310
|
+
var a = r ? r[Object.keys(r)[0]] : void 0;
|
|
311
|
+
return typeof a == "string";
|
|
374
312
|
}
|
|
375
313
|
function xr(r) {
|
|
376
314
|
r.onWarn && r.defaultRichTextElements && Pr(r.messages || {}) && r.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
377
315
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
378
316
|
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
|
379
317
|
}
|
|
380
|
-
function Dr(r,
|
|
381
|
-
var e = Y(
|
|
382
|
-
return n ? !Intl.NumberFormat.supportedLocalesOf(n).length && i ? i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.NumberFormat. Using default locale: "').concat(
|
|
318
|
+
function Dr(r, a) {
|
|
319
|
+
var e = Y(a), t = m(m({}, K), r), n = t.locale, o = t.defaultLocale, i = t.onError;
|
|
320
|
+
return n ? !Intl.NumberFormat.supportedLocalesOf(n).length && i ? i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.NumberFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(n).length && i && i(new N('Missing locale data for locale: "'.concat(n, '" in Intl.DateTimeFormat. Using default locale: "').concat(o, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (i && i(new H('"locale" was not configured, using "'.concat(o, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), t.locale = t.defaultLocale || "en"), xr(t), m(m({}, t), {
|
|
383
321
|
formatters: e,
|
|
384
322
|
formatNumber: Sr.bind(null, t, e.getNumberFormat),
|
|
385
323
|
formatNumberToParts: hr.bind(null, t, e.getNumberFormat),
|
|
386
324
|
formatRelativeTime: br.bind(null, t, e.getRelativeTimeFormat),
|
|
387
325
|
formatDate: lr.bind(null, t, e.getDateTimeFormat),
|
|
388
326
|
formatDateToParts: fr.bind(null, t, e.getDateTimeFormat),
|
|
389
|
-
formatTime:
|
|
390
|
-
formatDateTimeRange:
|
|
327
|
+
formatTime: sr.bind(null, t, e.getDateTimeFormat),
|
|
328
|
+
formatDateTimeRange: mr.bind(null, t, e.getDateTimeFormat),
|
|
391
329
|
formatTimeToParts: ur.bind(null, t, e.getDateTimeFormat),
|
|
392
330
|
formatPlural: Er.bind(null, t, e.getPluralRules),
|
|
393
331
|
// @ts-expect-error TODO: will get to this later
|
|
394
332
|
formatMessage: O.bind(null, t, e),
|
|
395
333
|
// @ts-expect-error TODO: will get to this later
|
|
396
334
|
$t: O.bind(null, t, e),
|
|
397
|
-
formatList:
|
|
335
|
+
formatList: pr.bind(null, t, e.getListFormat),
|
|
398
336
|
formatListToParts: U.bind(null, t, e.getListFormat),
|
|
399
|
-
formatDisplayName:
|
|
337
|
+
formatDisplayName: dr.bind(null, t, e.getDisplayNames)
|
|
400
338
|
});
|
|
401
339
|
}
|
|
402
340
|
function _(r) {
|
|
403
|
-
return r && Object.keys(r).reduce(function(
|
|
341
|
+
return r && Object.keys(r).reduce(function(a, e) {
|
|
404
342
|
var t = r[e];
|
|
405
|
-
return
|
|
343
|
+
return a[e] = Q(t) ? V(t) : t, a;
|
|
406
344
|
}, {});
|
|
407
345
|
}
|
|
408
|
-
var k = function(r,
|
|
409
|
-
for (var n = [],
|
|
410
|
-
n[
|
|
346
|
+
var k = function(r, a, e, t) {
|
|
347
|
+
for (var n = [], o = 4; o < arguments.length; o++)
|
|
348
|
+
n[o - 4] = arguments[o];
|
|
411
349
|
var i = _(t), l = O.apply(void 0, rr([
|
|
412
350
|
r,
|
|
413
|
-
|
|
351
|
+
a,
|
|
414
352
|
e,
|
|
415
353
|
i
|
|
416
354
|
], n, !1));
|
|
417
355
|
return Array.isArray(l) ? D.Children.toArray(l) : l;
|
|
418
|
-
}, B = function(r,
|
|
419
|
-
var e = r.defaultRichTextElements, t = J(r, ["defaultRichTextElements"]), n = _(e),
|
|
420
|
-
locale:
|
|
421
|
-
timeZone:
|
|
422
|
-
fallbackOnEmptyString:
|
|
423
|
-
formats:
|
|
424
|
-
defaultLocale:
|
|
425
|
-
defaultFormats:
|
|
426
|
-
messages:
|
|
427
|
-
onError:
|
|
356
|
+
}, B = function(r, a) {
|
|
357
|
+
var e = r.defaultRichTextElements, t = J(r, ["defaultRichTextElements"]), n = _(e), o = Dr(m(m(m({}, Z), t), { defaultRichTextElements: n }), a), i = {
|
|
358
|
+
locale: o.locale,
|
|
359
|
+
timeZone: o.timeZone,
|
|
360
|
+
fallbackOnEmptyString: o.fallbackOnEmptyString,
|
|
361
|
+
formats: o.formats,
|
|
362
|
+
defaultLocale: o.defaultLocale,
|
|
363
|
+
defaultFormats: o.defaultFormats,
|
|
364
|
+
messages: o.messages,
|
|
365
|
+
onError: o.onError,
|
|
428
366
|
defaultRichTextElements: n
|
|
429
367
|
};
|
|
430
|
-
return
|
|
368
|
+
return m(m({}, o), {
|
|
431
369
|
formatMessage: k.bind(
|
|
432
370
|
null,
|
|
433
371
|
i,
|
|
434
372
|
// @ts-expect-error fix this
|
|
435
|
-
|
|
373
|
+
o.formatters
|
|
436
374
|
),
|
|
437
375
|
// @ts-expect-error fix this
|
|
438
|
-
$t: k.bind(null, i,
|
|
376
|
+
$t: k.bind(null, i, o.formatters)
|
|
439
377
|
});
|
|
440
378
|
};
|
|
441
379
|
function x(r) {
|
|
@@ -457,8 +395,8 @@ function x(r) {
|
|
|
457
395
|
var Or = (
|
|
458
396
|
/** @class */
|
|
459
397
|
function(r) {
|
|
460
|
-
tr(
|
|
461
|
-
function
|
|
398
|
+
tr(a, r);
|
|
399
|
+
function a() {
|
|
462
400
|
var e = r !== null && r.apply(this, arguments) || this;
|
|
463
401
|
return e.cache = nr(), e.state = {
|
|
464
402
|
cache: e.cache,
|
|
@@ -466,29 +404,29 @@ var Or = (
|
|
|
466
404
|
prevConfig: x(e.props)
|
|
467
405
|
}, e;
|
|
468
406
|
}
|
|
469
|
-
return
|
|
470
|
-
var n = t.prevConfig,
|
|
407
|
+
return a.getDerivedStateFromProps = function(e, t) {
|
|
408
|
+
var n = t.prevConfig, o = t.cache, i = x(e);
|
|
471
409
|
return er(n, i) ? null : {
|
|
472
|
-
intl: B(i,
|
|
410
|
+
intl: B(i, o),
|
|
473
411
|
prevConfig: i
|
|
474
412
|
};
|
|
475
|
-
},
|
|
476
|
-
return
|
|
477
|
-
},
|
|
413
|
+
}, a.prototype.render = function() {
|
|
414
|
+
return ar(this.state.intl), D.createElement(or, { value: this.state.intl }, this.props.children);
|
|
415
|
+
}, a.displayName = "IntlProvider", a.defaultProps = Z, a;
|
|
478
416
|
}(D.PureComponent)
|
|
479
417
|
);
|
|
480
|
-
const wr = Or,
|
|
418
|
+
const wr = Or, Ar = ({
|
|
481
419
|
locale: r,
|
|
482
|
-
theme:
|
|
420
|
+
theme: a,
|
|
483
421
|
...e
|
|
484
422
|
}) => {
|
|
485
|
-
var t, n,
|
|
423
|
+
var t, n, o, i, l;
|
|
486
424
|
return /* @__PURE__ */ L(wr, { locale: (r == null ? void 0 : r.locale) || "en", children: /* @__PURE__ */ L(
|
|
487
425
|
ir,
|
|
488
426
|
{
|
|
489
427
|
...e,
|
|
490
428
|
theme: {
|
|
491
|
-
...
|
|
429
|
+
...a,
|
|
492
430
|
token: {
|
|
493
431
|
fontFamily: "Inter, Noto Sans Arabic, sans-serif",
|
|
494
432
|
borderRadius: 8,
|
|
@@ -506,34 +444,34 @@ const wr = Or, _t = ({
|
|
|
506
444
|
fontSizeSM: 14,
|
|
507
445
|
fontSizeLG: 16,
|
|
508
446
|
fontSizeXL: 18,
|
|
509
|
-
...
|
|
447
|
+
...a == null ? void 0 : a.token
|
|
510
448
|
},
|
|
511
449
|
components: {
|
|
512
|
-
...
|
|
450
|
+
...a == null ? void 0 : a.components,
|
|
513
451
|
Progress: {
|
|
514
452
|
defaultColor: "#1B7DC7",
|
|
515
453
|
remainingColor: "#E2E8F0",
|
|
516
454
|
lineBorderRadius: 50,
|
|
517
|
-
...(t =
|
|
455
|
+
...(t = a == null ? void 0 : a.components) == null ? void 0 : t.Progress
|
|
518
456
|
},
|
|
519
457
|
Input: {
|
|
520
458
|
colorBorder: "#E2E8F0",
|
|
521
459
|
colorText: "#94A3B8",
|
|
522
|
-
...(n =
|
|
460
|
+
...(n = a == null ? void 0 : a.components) == null ? void 0 : n.Input
|
|
523
461
|
},
|
|
524
462
|
Select: {
|
|
525
463
|
colorText: "#94A3B8",
|
|
526
|
-
...(
|
|
464
|
+
...(o = a == null ? void 0 : a.components) == null ? void 0 : o.Select
|
|
527
465
|
},
|
|
528
466
|
DatePicker: {
|
|
529
467
|
colorText: "#94A3B8",
|
|
530
|
-
...(i =
|
|
468
|
+
...(i = a == null ? void 0 : a.components) == null ? void 0 : i.DatePicker
|
|
531
469
|
},
|
|
532
470
|
Modal: {
|
|
533
471
|
titleColor: "#0F172A",
|
|
534
472
|
headerBg: "#fff",
|
|
535
473
|
contentBg: "#fff",
|
|
536
|
-
...(l =
|
|
474
|
+
...(l = a == null ? void 0 : a.components) == null ? void 0 : l.Modal
|
|
537
475
|
}
|
|
538
476
|
}
|
|
539
477
|
},
|
|
@@ -542,30 +480,30 @@ const wr = Or, _t = ({
|
|
|
542
480
|
) });
|
|
543
481
|
};
|
|
544
482
|
export {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
483
|
+
Br as AgGridTable,
|
|
484
|
+
Gr as Button,
|
|
485
|
+
$r as CheckList,
|
|
486
|
+
Ar as ConfigProvider,
|
|
487
|
+
qr as DatePicker,
|
|
488
|
+
zr as Dragger,
|
|
489
|
+
Yr as Dropdown,
|
|
490
|
+
Hr as Form,
|
|
491
|
+
Qr as FormItem,
|
|
492
|
+
rt as Input,
|
|
493
|
+
et as Modal,
|
|
494
|
+
ot as PasswordInput,
|
|
495
|
+
it as Progress,
|
|
496
|
+
st as ProgressCircle,
|
|
497
|
+
ft as RadioButton,
|
|
498
|
+
ct as RadioButtonGroup,
|
|
499
|
+
gt as ResultPopup,
|
|
500
|
+
pt as Select,
|
|
501
|
+
Et as SideMenu,
|
|
502
|
+
Ft as Steps,
|
|
503
|
+
It as Table,
|
|
504
|
+
ht as Tabs,
|
|
505
|
+
xt as Tag,
|
|
506
|
+
Ot as TimelineHorizontal,
|
|
507
|
+
Mt as Upload,
|
|
508
|
+
Lt as theme
|
|
571
509
|
};
|