@akad/design-system 0.2.0-beta.5 → 0.2.0-beta.7
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/css/aon-theme.css +1 -1
- package/css/bees-theme.css +1 -1
- package/css/bmc-theme.css +1 -1
- package/css/default-theme.css +1 -1
- package/css/linker-theme.css +1 -1
- package/css/oggi-theme.css +1 -1
- package/css/streetgo-theme.css +1 -1
- package/package.json +1 -1
- package/react/components/bosons/Container/Container.config.d.ts +5 -0
- package/react/components/bosons/Container/Container.d.ts +3 -1
- package/react/react-lib.js +449 -436
- package/react/react-lib.umd.cjs +5 -5
package/react/react-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import ke, { useMemo as be, useState as U, useEffect as J, useRef as
|
|
1
|
+
import { jsx as c, jsxs as O, Fragment as Je } from "react/jsx-runtime";
|
|
2
|
+
import ke, { useMemo as be, useState as U, useEffect as J, useRef as ut, useCallback as xe, useLayoutEffect as gn, createElement as mn } from "react";
|
|
3
3
|
function yn(a) {
|
|
4
4
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
5
5
|
}
|
|
@@ -17,7 +17,7 @@ function _n() {
|
|
|
17
17
|
if (Mt)
|
|
18
18
|
return H;
|
|
19
19
|
Mt = 1;
|
|
20
|
-
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, S = a ? Symbol.for("react.memo") : 60115, v = a ? Symbol.for("react.lazy") : 60116,
|
|
20
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, S = a ? Symbol.for("react.memo") : 60115, v = a ? Symbol.for("react.lazy") : 60116, m = a ? Symbol.for("react.block") : 60121, k = a ? Symbol.for("react.fundamental") : 60117, F = a ? Symbol.for("react.responder") : 60118, P = a ? Symbol.for("react.scope") : 60119;
|
|
21
21
|
function T(p) {
|
|
22
22
|
if (typeof p == "object" && p !== null) {
|
|
23
23
|
var C = p.$$typeof;
|
|
@@ -76,7 +76,7 @@ function _n() {
|
|
|
76
76
|
}, H.isSuspense = function(p) {
|
|
77
77
|
return T(p) === f;
|
|
78
78
|
}, H.isValidElementType = function(p) {
|
|
79
|
-
return typeof p == "string" || typeof p == "function" || p === s || p === d || p === i || p === n || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === S || p.$$typeof === r || p.$$typeof === l || p.$$typeof === h || p.$$typeof ===
|
|
79
|
+
return typeof p == "string" || typeof p == "function" || p === s || p === d || p === i || p === n || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === S || p.$$typeof === r || p.$$typeof === l || p.$$typeof === h || p.$$typeof === k || p.$$typeof === F || p.$$typeof === P || p.$$typeof === m);
|
|
80
80
|
}, H.typeOf = T, H;
|
|
81
81
|
}
|
|
82
82
|
var W = {};
|
|
@@ -91,10 +91,10 @@ var W = {};
|
|
|
91
91
|
var $t;
|
|
92
92
|
function vn() {
|
|
93
93
|
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
94
|
-
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, S = a ? Symbol.for("react.memo") : 60115, v = a ? Symbol.for("react.lazy") : 60116,
|
|
94
|
+
var a = typeof Symbol == "function" && Symbol.for, e = a ? Symbol.for("react.element") : 60103, t = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, n = a ? Symbol.for("react.strict_mode") : 60108, i = a ? Symbol.for("react.profiler") : 60114, r = a ? Symbol.for("react.provider") : 60109, l = a ? Symbol.for("react.context") : 60110, u = a ? Symbol.for("react.async_mode") : 60111, d = a ? Symbol.for("react.concurrent_mode") : 60111, h = a ? Symbol.for("react.forward_ref") : 60112, f = a ? Symbol.for("react.suspense") : 60113, _ = a ? Symbol.for("react.suspense_list") : 60120, S = a ? Symbol.for("react.memo") : 60115, v = a ? Symbol.for("react.lazy") : 60116, m = a ? Symbol.for("react.block") : 60121, k = a ? Symbol.for("react.fundamental") : 60117, F = a ? Symbol.for("react.responder") : 60118, P = a ? Symbol.for("react.scope") : 60119;
|
|
95
95
|
function T(y) {
|
|
96
96
|
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
97
|
-
y === s || y === d || y === i || y === n || y === f || y === _ || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === S || y.$$typeof === r || y.$$typeof === l || y.$$typeof === h || y.$$typeof ===
|
|
97
|
+
y === s || y === d || y === i || y === n || y === f || y === _ || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === S || y.$$typeof === r || y.$$typeof === l || y.$$typeof === h || y.$$typeof === k || y.$$typeof === F || y.$$typeof === P || y.$$typeof === m);
|
|
98
98
|
}
|
|
99
99
|
function x(y) {
|
|
100
100
|
if (typeof y == "object" && y !== null) {
|
|
@@ -135,7 +135,7 @@ function vn() {
|
|
|
135
135
|
function g(y) {
|
|
136
136
|
return x(y) === d;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function b(y) {
|
|
139
139
|
return x(y) === l;
|
|
140
140
|
}
|
|
141
141
|
function $(y) {
|
|
@@ -144,7 +144,7 @@ function vn() {
|
|
|
144
144
|
function R(y) {
|
|
145
145
|
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function D(y) {
|
|
148
148
|
return x(y) === h;
|
|
149
149
|
}
|
|
150
150
|
function A(y) {
|
|
@@ -162,13 +162,13 @@ function vn() {
|
|
|
162
162
|
function w(y) {
|
|
163
163
|
return x(y) === i;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function j(y) {
|
|
166
166
|
return x(y) === n;
|
|
167
167
|
}
|
|
168
168
|
function Q(y) {
|
|
169
169
|
return x(y) === f;
|
|
170
170
|
}
|
|
171
|
-
W.AsyncMode = p, W.ConcurrentMode = C, W.ContextConsumer = B, W.ContextProvider = z, W.Element = V, W.ForwardRef = ae, W.Fragment = ce, W.Lazy = de, W.Memo = we, W.Portal = ge, W.Profiler = Le, W.StrictMode = oe, W.Suspense = me, W.isAsyncMode = Re, W.isConcurrentMode = g, W.isContextConsumer =
|
|
171
|
+
W.AsyncMode = p, W.ConcurrentMode = C, W.ContextConsumer = B, W.ContextProvider = z, W.Element = V, W.ForwardRef = ae, W.Fragment = ce, W.Lazy = de, W.Memo = we, W.Portal = ge, W.Profiler = Le, W.StrictMode = oe, W.Suspense = me, W.isAsyncMode = Re, W.isConcurrentMode = g, W.isContextConsumer = b, W.isContextProvider = $, W.isElement = R, W.isForwardRef = D, W.isFragment = A, W.isLazy = N, W.isMemo = L, W.isPortal = q, W.isProfiler = w, W.isStrictMode = j, W.isSuspense = Q, W.isValidElementType = T, W.typeOf = x;
|
|
172
172
|
}()), W;
|
|
173
173
|
}
|
|
174
174
|
var Vt;
|
|
@@ -180,10 +180,10 @@ object-assign
|
|
|
180
180
|
(c) Sindre Sorhus
|
|
181
181
|
@license MIT
|
|
182
182
|
*/
|
|
183
|
-
var
|
|
183
|
+
var yt, Lt;
|
|
184
184
|
function kn() {
|
|
185
185
|
if (Lt)
|
|
186
|
-
return
|
|
186
|
+
return yt;
|
|
187
187
|
Lt = 1;
|
|
188
188
|
var a = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
189
189
|
function s(i) {
|
|
@@ -213,7 +213,7 @@ function kn() {
|
|
|
213
213
|
return !1;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
return
|
|
216
|
+
return yt = n() ? Object.assign : function(i, r) {
|
|
217
217
|
for (var l, u = s(i), d, h = 1; h < arguments.length; h++) {
|
|
218
218
|
l = Object(arguments[h]);
|
|
219
219
|
for (var f in l)
|
|
@@ -225,24 +225,24 @@ function kn() {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
return u;
|
|
228
|
-
},
|
|
228
|
+
}, yt;
|
|
229
229
|
}
|
|
230
|
-
var
|
|
230
|
+
var _t, Pt;
|
|
231
231
|
function It() {
|
|
232
232
|
if (Pt)
|
|
233
|
-
return
|
|
233
|
+
return _t;
|
|
234
234
|
Pt = 1;
|
|
235
235
|
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
236
|
-
return
|
|
236
|
+
return _t = a, _t;
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var vt, jt;
|
|
239
239
|
function js() {
|
|
240
|
-
return jt || (jt = 1,
|
|
240
|
+
return jt || (jt = 1, vt = Function.call.bind(Object.prototype.hasOwnProperty)), vt;
|
|
241
241
|
}
|
|
242
|
-
var
|
|
242
|
+
var kt, zt;
|
|
243
243
|
function bn() {
|
|
244
244
|
if (zt)
|
|
245
|
-
return
|
|
245
|
+
return kt;
|
|
246
246
|
zt = 1;
|
|
247
247
|
var a = function() {
|
|
248
248
|
};
|
|
@@ -287,12 +287,12 @@ function bn() {
|
|
|
287
287
|
}
|
|
288
288
|
return n.resetWarningCache = function() {
|
|
289
289
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
290
|
-
},
|
|
290
|
+
}, kt = n, kt;
|
|
291
291
|
}
|
|
292
|
-
var
|
|
292
|
+
var bt, qt;
|
|
293
293
|
function Sn() {
|
|
294
294
|
if (qt)
|
|
295
|
-
return
|
|
295
|
+
return bt;
|
|
296
296
|
qt = 1;
|
|
297
297
|
var a = Ps(), e = kn(), t = It(), s = js(), n = bn(), i = function() {
|
|
298
298
|
};
|
|
@@ -307,23 +307,23 @@ function Sn() {
|
|
|
307
307
|
function r() {
|
|
308
308
|
return null;
|
|
309
309
|
}
|
|
310
|
-
return
|
|
310
|
+
return bt = function(l, u) {
|
|
311
311
|
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
312
312
|
function f(g) {
|
|
313
|
-
var
|
|
314
|
-
if (typeof
|
|
315
|
-
return
|
|
313
|
+
var b = g && (d && g[d] || g[h]);
|
|
314
|
+
if (typeof b == "function")
|
|
315
|
+
return b;
|
|
316
316
|
}
|
|
317
317
|
var _ = "<<anonymous>>", S = {
|
|
318
|
-
array:
|
|
319
|
-
bigint:
|
|
320
|
-
bool:
|
|
321
|
-
func:
|
|
322
|
-
number:
|
|
323
|
-
object:
|
|
324
|
-
string:
|
|
325
|
-
symbol:
|
|
326
|
-
any:
|
|
318
|
+
array: F("array"),
|
|
319
|
+
bigint: F("bigint"),
|
|
320
|
+
bool: F("boolean"),
|
|
321
|
+
func: F("function"),
|
|
322
|
+
number: F("number"),
|
|
323
|
+
object: F("object"),
|
|
324
|
+
string: F("string"),
|
|
325
|
+
symbol: F("symbol"),
|
|
326
|
+
any: P(),
|
|
327
327
|
arrayOf: T,
|
|
328
328
|
element: x(),
|
|
329
329
|
elementType: p(),
|
|
@@ -335,18 +335,18 @@ function Sn() {
|
|
|
335
335
|
shape: de,
|
|
336
336
|
exact: we
|
|
337
337
|
};
|
|
338
|
-
function v(g,
|
|
339
|
-
return g ===
|
|
338
|
+
function v(g, b) {
|
|
339
|
+
return g === b ? g !== 0 || 1 / g === 1 / b : g !== g && b !== b;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
this.message = g, this.data =
|
|
341
|
+
function m(g, b) {
|
|
342
|
+
this.message = g, this.data = b && typeof b == "object" ? b : {}, this.stack = "";
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
function
|
|
344
|
+
m.prototype = Error.prototype;
|
|
345
|
+
function k(g) {
|
|
346
346
|
if (process.env.NODE_ENV !== "production")
|
|
347
|
-
var
|
|
348
|
-
function R(A, N, L, q, w,
|
|
349
|
-
if (q = q || _,
|
|
347
|
+
var b = {}, $ = 0;
|
|
348
|
+
function R(A, N, L, q, w, j, Q) {
|
|
349
|
+
if (q = q || _, j = j || L, Q !== t) {
|
|
350
350
|
if (u) {
|
|
351
351
|
var y = new Error(
|
|
352
352
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -354,90 +354,90 @@ function Sn() {
|
|
|
354
354
|
throw y.name = "Invariant Violation", y;
|
|
355
355
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
356
356
|
var Se = q + ":" + L;
|
|
357
|
-
!
|
|
357
|
+
!b[Se] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
358
358
|
$ < 3 && (i(
|
|
359
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
360
|
-
),
|
|
359
|
+
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
360
|
+
), b[Se] = !0, $++);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
return N[L] == null ? A ? N[L] === null ? new
|
|
363
|
+
return N[L] == null ? A ? N[L] === null ? new m("The " + w + " `" + j + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new m("The " + w + " `" + j + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : g(N, L, q, w, j);
|
|
364
364
|
}
|
|
365
|
-
var
|
|
366
|
-
return
|
|
365
|
+
var D = R.bind(null, !1);
|
|
366
|
+
return D.isRequired = R.bind(null, !0), D;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
function
|
|
368
|
+
function F(g) {
|
|
369
|
+
function b($, R, D, A, N, L) {
|
|
370
370
|
var q = $[R], w = oe(q);
|
|
371
371
|
if (w !== g) {
|
|
372
|
-
var
|
|
373
|
-
return new
|
|
374
|
-
"Invalid " + A + " `" + N + "` of type " + ("`" +
|
|
372
|
+
var j = me(q);
|
|
373
|
+
return new m(
|
|
374
|
+
"Invalid " + A + " `" + N + "` of type " + ("`" + j + "` supplied to `" + D + "`, expected ") + ("`" + g + "`."),
|
|
375
375
|
{ expectedType: g }
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
378
|
return null;
|
|
379
379
|
}
|
|
380
|
-
return
|
|
380
|
+
return k(b);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
382
|
+
function P() {
|
|
383
|
+
return k(r);
|
|
384
384
|
}
|
|
385
385
|
function T(g) {
|
|
386
|
-
function
|
|
386
|
+
function b($, R, D, A, N) {
|
|
387
387
|
if (typeof g != "function")
|
|
388
|
-
return new
|
|
388
|
+
return new m("Property `" + N + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
|
|
389
389
|
var L = $[R];
|
|
390
390
|
if (!Array.isArray(L)) {
|
|
391
391
|
var q = oe(L);
|
|
392
|
-
return new
|
|
392
|
+
return new m("Invalid " + A + " `" + N + "` of type " + ("`" + q + "` supplied to `" + D + "`, expected an array."));
|
|
393
393
|
}
|
|
394
394
|
for (var w = 0; w < L.length; w++) {
|
|
395
|
-
var
|
|
396
|
-
if (
|
|
397
|
-
return
|
|
395
|
+
var j = g(L, w, D, A, N + "[" + w + "]", t);
|
|
396
|
+
if (j instanceof Error)
|
|
397
|
+
return j;
|
|
398
398
|
}
|
|
399
399
|
return null;
|
|
400
400
|
}
|
|
401
|
-
return
|
|
401
|
+
return k(b);
|
|
402
402
|
}
|
|
403
403
|
function x() {
|
|
404
|
-
function g(
|
|
405
|
-
var N =
|
|
404
|
+
function g(b, $, R, D, A) {
|
|
405
|
+
var N = b[$];
|
|
406
406
|
if (!l(N)) {
|
|
407
407
|
var L = oe(N);
|
|
408
|
-
return new
|
|
408
|
+
return new m("Invalid " + D + " `" + A + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
409
409
|
}
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
412
|
-
return
|
|
412
|
+
return k(g);
|
|
413
413
|
}
|
|
414
414
|
function p() {
|
|
415
|
-
function g(
|
|
416
|
-
var N =
|
|
415
|
+
function g(b, $, R, D, A) {
|
|
416
|
+
var N = b[$];
|
|
417
417
|
if (!a.isValidElementType(N)) {
|
|
418
418
|
var L = oe(N);
|
|
419
|
-
return new
|
|
419
|
+
return new m("Invalid " + D + " `" + A + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
420
420
|
}
|
|
421
421
|
return null;
|
|
422
422
|
}
|
|
423
|
-
return
|
|
423
|
+
return k(g);
|
|
424
424
|
}
|
|
425
425
|
function C(g) {
|
|
426
|
-
function
|
|
426
|
+
function b($, R, D, A, N) {
|
|
427
427
|
if (!($[R] instanceof g)) {
|
|
428
428
|
var L = g.name || _, q = Re($[R]);
|
|
429
|
-
return new
|
|
429
|
+
return new m("Invalid " + A + " `" + N + "` of type " + ("`" + q + "` supplied to `" + D + "`, expected ") + ("instance of `" + L + "`."));
|
|
430
430
|
}
|
|
431
431
|
return null;
|
|
432
432
|
}
|
|
433
|
-
return
|
|
433
|
+
return k(b);
|
|
434
434
|
}
|
|
435
435
|
function B(g) {
|
|
436
436
|
if (!Array.isArray(g))
|
|
437
437
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
438
438
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
439
439
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
440
|
-
function
|
|
440
|
+
function b($, R, D, A, N) {
|
|
441
441
|
for (var L = $[R], q = 0; q < g.length; q++)
|
|
442
442
|
if (v(L, g[q]))
|
|
443
443
|
return null;
|
|
@@ -445,99 +445,99 @@ function Sn() {
|
|
|
445
445
|
var Se = me(y);
|
|
446
446
|
return Se === "symbol" ? String(y) : y;
|
|
447
447
|
});
|
|
448
|
-
return new
|
|
448
|
+
return new m("Invalid " + A + " `" + N + "` of value `" + String(L) + "` " + ("supplied to `" + D + "`, expected one of " + w + "."));
|
|
449
449
|
}
|
|
450
|
-
return
|
|
450
|
+
return k(b);
|
|
451
451
|
}
|
|
452
452
|
function z(g) {
|
|
453
|
-
function
|
|
453
|
+
function b($, R, D, A, N) {
|
|
454
454
|
if (typeof g != "function")
|
|
455
|
-
return new
|
|
455
|
+
return new m("Property `" + N + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
|
|
456
456
|
var L = $[R], q = oe(L);
|
|
457
457
|
if (q !== "object")
|
|
458
|
-
return new
|
|
458
|
+
return new m("Invalid " + A + " `" + N + "` of type " + ("`" + q + "` supplied to `" + D + "`, expected an object."));
|
|
459
459
|
for (var w in L)
|
|
460
460
|
if (s(L, w)) {
|
|
461
|
-
var
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
461
|
+
var j = g(L, w, D, A, N + "." + w, t);
|
|
462
|
+
if (j instanceof Error)
|
|
463
|
+
return j;
|
|
464
464
|
}
|
|
465
465
|
return null;
|
|
466
466
|
}
|
|
467
|
-
return
|
|
467
|
+
return k(b);
|
|
468
468
|
}
|
|
469
469
|
function V(g) {
|
|
470
470
|
if (!Array.isArray(g))
|
|
471
471
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
472
|
-
for (var
|
|
473
|
-
var $ = g[
|
|
472
|
+
for (var b = 0; b < g.length; b++) {
|
|
473
|
+
var $ = g[b];
|
|
474
474
|
if (typeof $ != "function")
|
|
475
475
|
return i(
|
|
476
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Fe($) + " at index " +
|
|
476
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Fe($) + " at index " + b + "."
|
|
477
477
|
), r;
|
|
478
478
|
}
|
|
479
|
-
function R(
|
|
480
|
-
for (var w = [],
|
|
481
|
-
var Q = g[
|
|
479
|
+
function R(D, A, N, L, q) {
|
|
480
|
+
for (var w = [], j = 0; j < g.length; j++) {
|
|
481
|
+
var Q = g[j], y = Q(D, A, N, L, q, t);
|
|
482
482
|
if (y == null)
|
|
483
483
|
return null;
|
|
484
484
|
y.data && s(y.data, "expectedType") && w.push(y.data.expectedType);
|
|
485
485
|
}
|
|
486
486
|
var Se = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
|
|
487
|
-
return new
|
|
487
|
+
return new m("Invalid " + L + " `" + q + "` supplied to " + ("`" + N + "`" + Se + "."));
|
|
488
488
|
}
|
|
489
|
-
return
|
|
489
|
+
return k(R);
|
|
490
490
|
}
|
|
491
491
|
function ae() {
|
|
492
|
-
function g(
|
|
493
|
-
return ge(
|
|
492
|
+
function g(b, $, R, D, A) {
|
|
493
|
+
return ge(b[$]) ? null : new m("Invalid " + D + " `" + A + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
494
494
|
}
|
|
495
|
-
return
|
|
495
|
+
return k(g);
|
|
496
496
|
}
|
|
497
|
-
function ce(g,
|
|
498
|
-
return new
|
|
499
|
-
(g || "React class") + ": " +
|
|
497
|
+
function ce(g, b, $, R, D) {
|
|
498
|
+
return new m(
|
|
499
|
+
(g || "React class") + ": " + b + " type `" + $ + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
502
|
function de(g) {
|
|
503
|
-
function
|
|
503
|
+
function b($, R, D, A, N) {
|
|
504
504
|
var L = $[R], q = oe(L);
|
|
505
505
|
if (q !== "object")
|
|
506
|
-
return new
|
|
506
|
+
return new m("Invalid " + A + " `" + N + "` of type `" + q + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
507
507
|
for (var w in g) {
|
|
508
|
-
var
|
|
509
|
-
if (typeof
|
|
510
|
-
return ce(
|
|
511
|
-
var Q =
|
|
508
|
+
var j = g[w];
|
|
509
|
+
if (typeof j != "function")
|
|
510
|
+
return ce(D, A, N, w, me(j));
|
|
511
|
+
var Q = j(L, w, D, A, N + "." + w, t);
|
|
512
512
|
if (Q)
|
|
513
513
|
return Q;
|
|
514
514
|
}
|
|
515
515
|
return null;
|
|
516
516
|
}
|
|
517
|
-
return
|
|
517
|
+
return k(b);
|
|
518
518
|
}
|
|
519
519
|
function we(g) {
|
|
520
|
-
function
|
|
520
|
+
function b($, R, D, A, N) {
|
|
521
521
|
var L = $[R], q = oe(L);
|
|
522
522
|
if (q !== "object")
|
|
523
|
-
return new
|
|
523
|
+
return new m("Invalid " + A + " `" + N + "` of type `" + q + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
524
524
|
var w = e({}, $[R], g);
|
|
525
|
-
for (var
|
|
526
|
-
var Q = g[
|
|
527
|
-
if (s(g,
|
|
528
|
-
return ce(
|
|
525
|
+
for (var j in w) {
|
|
526
|
+
var Q = g[j];
|
|
527
|
+
if (s(g, j) && typeof Q != "function")
|
|
528
|
+
return ce(D, A, N, j, me(Q));
|
|
529
529
|
if (!Q)
|
|
530
|
-
return new
|
|
531
|
-
"Invalid " + A + " `" + N + "` key `" +
|
|
530
|
+
return new m(
|
|
531
|
+
"Invalid " + A + " `" + N + "` key `" + j + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify($[R], null, " ") + `
|
|
532
532
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
533
533
|
);
|
|
534
|
-
var y = Q(L,
|
|
534
|
+
var y = Q(L, j, D, A, N + "." + j, t);
|
|
535
535
|
if (y)
|
|
536
536
|
return y;
|
|
537
537
|
}
|
|
538
538
|
return null;
|
|
539
539
|
}
|
|
540
|
-
return
|
|
540
|
+
return k(b);
|
|
541
541
|
}
|
|
542
542
|
function ge(g) {
|
|
543
543
|
switch (typeof g) {
|
|
@@ -552,17 +552,17 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
552
552
|
return g.every(ge);
|
|
553
553
|
if (g === null || l(g))
|
|
554
554
|
return !0;
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
557
|
-
var $ =
|
|
558
|
-
if (
|
|
555
|
+
var b = f(g);
|
|
556
|
+
if (b) {
|
|
557
|
+
var $ = b.call(g), R;
|
|
558
|
+
if (b !== g.entries) {
|
|
559
559
|
for (; !(R = $.next()).done; )
|
|
560
560
|
if (!ge(R.value))
|
|
561
561
|
return !1;
|
|
562
562
|
} else
|
|
563
563
|
for (; !(R = $.next()).done; ) {
|
|
564
|
-
var
|
|
565
|
-
if (
|
|
564
|
+
var D = R.value;
|
|
565
|
+
if (D && !ge(D[1]))
|
|
566
566
|
return !1;
|
|
567
567
|
}
|
|
568
568
|
} else
|
|
@@ -572,56 +572,56 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
572
572
|
return !1;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function Le(g,
|
|
576
|
-
return g === "symbol" ? !0 :
|
|
575
|
+
function Le(g, b) {
|
|
576
|
+
return g === "symbol" ? !0 : b ? b["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && b instanceof Symbol : !1;
|
|
577
577
|
}
|
|
578
578
|
function oe(g) {
|
|
579
|
-
var
|
|
580
|
-
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Le(
|
|
579
|
+
var b = typeof g;
|
|
580
|
+
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Le(b, g) ? "symbol" : b;
|
|
581
581
|
}
|
|
582
582
|
function me(g) {
|
|
583
583
|
if (typeof g > "u" || g === null)
|
|
584
584
|
return "" + g;
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
585
|
+
var b = oe(g);
|
|
586
|
+
if (b === "object") {
|
|
587
587
|
if (g instanceof Date)
|
|
588
588
|
return "date";
|
|
589
589
|
if (g instanceof RegExp)
|
|
590
590
|
return "regexp";
|
|
591
591
|
}
|
|
592
|
-
return
|
|
592
|
+
return b;
|
|
593
593
|
}
|
|
594
594
|
function Fe(g) {
|
|
595
|
-
var
|
|
596
|
-
switch (
|
|
595
|
+
var b = me(g);
|
|
596
|
+
switch (b) {
|
|
597
597
|
case "array":
|
|
598
598
|
case "object":
|
|
599
|
-
return "an " +
|
|
599
|
+
return "an " + b;
|
|
600
600
|
case "boolean":
|
|
601
601
|
case "date":
|
|
602
602
|
case "regexp":
|
|
603
|
-
return "a " +
|
|
603
|
+
return "a " + b;
|
|
604
604
|
default:
|
|
605
|
-
return
|
|
605
|
+
return b;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
function Re(g) {
|
|
609
609
|
return !g.constructor || !g.constructor.name ? _ : g.constructor.name;
|
|
610
610
|
}
|
|
611
611
|
return S.checkPropTypes = n, S.resetWarningCache = n.resetWarningCache, S.PropTypes = S, S;
|
|
612
|
-
},
|
|
612
|
+
}, bt;
|
|
613
613
|
}
|
|
614
|
-
var
|
|
614
|
+
var St, Ut;
|
|
615
615
|
function Cn() {
|
|
616
616
|
if (Ut)
|
|
617
|
-
return
|
|
617
|
+
return St;
|
|
618
618
|
Ut = 1;
|
|
619
619
|
var a = It();
|
|
620
620
|
function e() {
|
|
621
621
|
}
|
|
622
622
|
function t() {
|
|
623
623
|
}
|
|
624
|
-
return t.resetWarningCache = e,
|
|
624
|
+
return t.resetWarningCache = e, St = function() {
|
|
625
625
|
function s(r, l, u, d, h, f) {
|
|
626
626
|
if (f !== a) {
|
|
627
627
|
var _ = new Error(
|
|
@@ -658,7 +658,7 @@ function Cn() {
|
|
|
658
658
|
resetWarningCache: e
|
|
659
659
|
};
|
|
660
660
|
return i.PropTypes = i, i;
|
|
661
|
-
},
|
|
661
|
+
}, St;
|
|
662
662
|
}
|
|
663
663
|
if (process.env.NODE_ENV !== "production") {
|
|
664
664
|
var En = Ps(), xn = !0;
|
|
@@ -894,7 +894,7 @@ K.propTypes = {
|
|
|
894
894
|
onClick: o.func
|
|
895
895
|
};
|
|
896
896
|
K.displayName = "DsIcon";
|
|
897
|
-
const
|
|
897
|
+
const ct = ({
|
|
898
898
|
children: a,
|
|
899
899
|
className: e,
|
|
900
900
|
onClick: t,
|
|
@@ -910,26 +910,26 @@ const ut = ({
|
|
|
910
910
|
iconPosition: _ = Y.props.iconPosition.default,
|
|
911
911
|
fullSize: S = Y.props.fullSize.default
|
|
912
912
|
}) => {
|
|
913
|
-
const v = s && Y.props.size.options.find((C) => C === s) ? `${Y.class}--${s}` : `${Y.class}__${Y.props.size.default}`,
|
|
913
|
+
const v = s && Y.props.size.options.find((C) => C === s) ? `${Y.class}--${s}` : `${Y.class}__${Y.props.size.default}`, m = n && `${Y.class}--disabled`, k = `${Y.class}__${h}--${d}`, F = u && `${Y.class}--elevation-${u}`, P = i && `${Y.class}--with-icon`, T = S ? `${Y.class}--full-size` : "", x = _ === "right" ? `${Y.class}__icon` : `${Y.class}__icon--left`, p = _ === "right" ? `${Y.class}__text` : `${Y.class}__text--reversed`;
|
|
914
914
|
return /* @__PURE__ */ c(
|
|
915
915
|
"button",
|
|
916
916
|
{
|
|
917
917
|
className: [
|
|
918
918
|
Y.class,
|
|
919
919
|
T,
|
|
920
|
-
b,
|
|
921
|
-
j,
|
|
922
|
-
v,
|
|
923
920
|
m,
|
|
924
|
-
|
|
925
|
-
|
|
921
|
+
P,
|
|
922
|
+
v,
|
|
923
|
+
k,
|
|
924
|
+
F,
|
|
925
|
+
P,
|
|
926
926
|
e && e
|
|
927
927
|
].filter((C) => C).join(" "),
|
|
928
928
|
"data-testid": l,
|
|
929
929
|
disabled: n,
|
|
930
930
|
id: r,
|
|
931
931
|
onClick: n ? void 0 : t,
|
|
932
|
-
children: /* @__PURE__ */
|
|
932
|
+
children: /* @__PURE__ */ O("span", { className: ["ds-button__text", p].join(" "), children: [
|
|
933
933
|
a,
|
|
934
934
|
i && /* @__PURE__ */ c(
|
|
935
935
|
K,
|
|
@@ -944,7 +944,7 @@ const ut = ({
|
|
|
944
944
|
}
|
|
945
945
|
);
|
|
946
946
|
};
|
|
947
|
-
|
|
947
|
+
ct.propTypes = {
|
|
948
948
|
color: o.oneOf(Y.props.color.options),
|
|
949
949
|
variant: o.oneOf(Y.props.variant.options),
|
|
950
950
|
size: o.oneOf(Y.props.size.options),
|
|
@@ -956,7 +956,7 @@ ut.propTypes = {
|
|
|
956
956
|
id: o.string,
|
|
957
957
|
fullSize: o.bool
|
|
958
958
|
};
|
|
959
|
-
|
|
959
|
+
ct.displayName = "DsButton";
|
|
960
960
|
const wn = {
|
|
961
961
|
name: "Caption",
|
|
962
962
|
class: "ds-caption"
|
|
@@ -1128,20 +1128,20 @@ const re = {
|
|
|
1128
1128
|
changeByChecked: u = re.props.changeByChecked.default,
|
|
1129
1129
|
onChangeHandler: d
|
|
1130
1130
|
}, h) => {
|
|
1131
|
-
const f = u || !1, _ = r || !1, [S, v] = U(_),
|
|
1131
|
+
const f = u || !1, _ = r || !1, [S, v] = U(_), m = {
|
|
1132
1132
|
image: S ? "check_box" : "check_box_outline_blank",
|
|
1133
1133
|
class: S ? `${re.class}__icon--checked` : `${re.class}__icon--unchecked`
|
|
1134
|
-
},
|
|
1135
|
-
l || (v((T) => !T), d && d(
|
|
1134
|
+
}, k = l && `${re.class}--disabled`, F = (P) => {
|
|
1135
|
+
l || (v((T) => !T), d && d(P));
|
|
1136
1136
|
};
|
|
1137
1137
|
return J(() => {
|
|
1138
1138
|
f && v(r);
|
|
1139
|
-
}, [r, f]), /* @__PURE__ */
|
|
1139
|
+
}, [r, f]), /* @__PURE__ */ O(
|
|
1140
1140
|
"label",
|
|
1141
1141
|
{
|
|
1142
1142
|
className: [
|
|
1143
1143
|
re.class,
|
|
1144
|
-
|
|
1144
|
+
k,
|
|
1145
1145
|
e && e
|
|
1146
1146
|
].join(" "),
|
|
1147
1147
|
htmlFor: a || t,
|
|
@@ -1154,7 +1154,7 @@ const re = {
|
|
|
1154
1154
|
"data-testid": s,
|
|
1155
1155
|
id: a || t,
|
|
1156
1156
|
name: t,
|
|
1157
|
-
onChange:
|
|
1157
|
+
onChange: F,
|
|
1158
1158
|
ref: h,
|
|
1159
1159
|
type: "checkbox"
|
|
1160
1160
|
}
|
|
@@ -1162,14 +1162,14 @@ const re = {
|
|
|
1162
1162
|
/* @__PURE__ */ c(
|
|
1163
1163
|
K,
|
|
1164
1164
|
{
|
|
1165
|
-
className: `${re.class}__icon ${
|
|
1165
|
+
className: `${re.class}__icon ${m.class}`,
|
|
1166
1166
|
fill: !0,
|
|
1167
|
-
image:
|
|
1167
|
+
image: m.image,
|
|
1168
1168
|
size: "xxl",
|
|
1169
1169
|
testId: `${s}-icon`
|
|
1170
1170
|
}
|
|
1171
1171
|
),
|
|
1172
|
-
(i || n) && /* @__PURE__ */
|
|
1172
|
+
(i || n) && /* @__PURE__ */ O("div", { className: `${re.class}__label`, children: [
|
|
1173
1173
|
n && /* @__PURE__ */ c(
|
|
1174
1174
|
"label",
|
|
1175
1175
|
{
|
|
@@ -1323,10 +1323,10 @@ function Fn(a) {
|
|
|
1323
1323
|
return a;
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Ct(a) {
|
|
1327
1327
|
return a.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function dt(a, e) {
|
|
1330
1330
|
if (e === a)
|
|
1331
1331
|
return !0;
|
|
1332
1332
|
const t = Array.isArray(e), s = Array.isArray(a);
|
|
@@ -1335,7 +1335,7 @@ function ct(a, e) {
|
|
|
1335
1335
|
if (e.length != a.length)
|
|
1336
1336
|
return !1;
|
|
1337
1337
|
for (n = 0; n < e.length; n++)
|
|
1338
|
-
if (!
|
|
1338
|
+
if (!dt(e[n], a[n]))
|
|
1339
1339
|
return !1;
|
|
1340
1340
|
return !0;
|
|
1341
1341
|
}
|
|
@@ -1357,7 +1357,7 @@ function ct(a, e) {
|
|
|
1357
1357
|
if (!Object.prototype.hasOwnProperty.call(a, d[n]))
|
|
1358
1358
|
return !1;
|
|
1359
1359
|
for (n = 0; n < d.length; n++)
|
|
1360
|
-
if (!
|
|
1360
|
+
if (!dt(a[d[n]], e[d[n]]))
|
|
1361
1361
|
return !1;
|
|
1362
1362
|
return !0;
|
|
1363
1363
|
} else if (e && a && typeof e == "function" && typeof a == "function")
|
|
@@ -1411,28 +1411,28 @@ class In {
|
|
|
1411
1411
|
this.oldSelection.end === this.oldSelection.start ? E.RIGHT : E.LEFT;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
return new
|
|
1414
|
+
function I(a, e) {
|
|
1415
|
+
return new I.InputMask(a, e);
|
|
1416
1416
|
}
|
|
1417
1417
|
function Gs(a) {
|
|
1418
1418
|
if (a == null)
|
|
1419
1419
|
throw new Error("mask property should be defined");
|
|
1420
|
-
return a instanceof RegExp ?
|
|
1420
|
+
return a instanceof RegExp ? I.MaskedRegExp : Me(a) ? I.MaskedPattern : a === Date ? I.MaskedDate : a === Number ? I.MaskedNumber : Array.isArray(a) || a === Array ? I.MaskedDynamic : I.Masked && a.prototype instanceof I.Masked ? a : I.Masked && a instanceof I.Masked ? a.constructor : a instanceof Function ? I.MaskedFunction : (console.warn("Mask not found for mask", a), I.Masked);
|
|
1421
1421
|
}
|
|
1422
1422
|
function Ke(a) {
|
|
1423
1423
|
if (!a)
|
|
1424
1424
|
throw new Error("Options in not defined");
|
|
1425
|
-
if (
|
|
1426
|
-
if (a.prototype instanceof
|
|
1425
|
+
if (I.Masked) {
|
|
1426
|
+
if (a.prototype instanceof I.Masked)
|
|
1427
1427
|
return {
|
|
1428
1428
|
mask: a
|
|
1429
1429
|
};
|
|
1430
1430
|
const {
|
|
1431
1431
|
mask: e = void 0,
|
|
1432
1432
|
...t
|
|
1433
|
-
} = a instanceof
|
|
1433
|
+
} = a instanceof I.Masked ? {
|
|
1434
1434
|
mask: a
|
|
1435
|
-
} : ns(a) && a.mask instanceof
|
|
1435
|
+
} : ns(a) && a.mask instanceof I.Masked ? a : {};
|
|
1436
1436
|
if (e) {
|
|
1437
1437
|
const s = e.mask;
|
|
1438
1438
|
return {
|
|
@@ -1450,14 +1450,14 @@ function Ke(a) {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
}
|
|
1452
1452
|
function Be(a) {
|
|
1453
|
-
if (
|
|
1453
|
+
if (I.Masked && a instanceof I.Masked)
|
|
1454
1454
|
return a;
|
|
1455
1455
|
const e = Ke(a), t = Gs(e.mask);
|
|
1456
1456
|
if (!t)
|
|
1457
1457
|
throw new Error("Masked class is not found for provided mask " + e.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
1458
1458
|
return e.mask === t && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new t(e);
|
|
1459
1459
|
}
|
|
1460
|
-
|
|
1460
|
+
I.createMask = Be;
|
|
1461
1461
|
class Dt {
|
|
1462
1462
|
/** */
|
|
1463
1463
|
/** */
|
|
@@ -1496,9 +1496,9 @@ class Dt {
|
|
|
1496
1496
|
/** */
|
|
1497
1497
|
/** */
|
|
1498
1498
|
}
|
|
1499
|
-
|
|
1499
|
+
I.MaskElement = Dt;
|
|
1500
1500
|
const is = 90, Dn = 89;
|
|
1501
|
-
class
|
|
1501
|
+
class ht extends Dt {
|
|
1502
1502
|
/** HTMLElement to use mask on */
|
|
1503
1503
|
constructor(e) {
|
|
1504
1504
|
super(), this.input = e, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
|
|
@@ -1539,8 +1539,8 @@ class pt extends Dt {
|
|
|
1539
1539
|
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
|
|
1543
|
-
class On extends
|
|
1542
|
+
I.HTMLMaskElement = ht;
|
|
1543
|
+
class On extends ht {
|
|
1544
1544
|
/** InputElement to use mask on */
|
|
1545
1545
|
constructor(e) {
|
|
1546
1546
|
super(e), this.input = e;
|
|
@@ -1564,8 +1564,8 @@ class On extends pt {
|
|
|
1564
1564
|
this.input.value = e;
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
|
|
1568
|
-
class Xs extends
|
|
1567
|
+
I.HTMLMaskElement = ht;
|
|
1568
|
+
class Xs extends ht {
|
|
1569
1569
|
/** Returns HTMLElement selection start */
|
|
1570
1570
|
get _unsafeSelectionStart() {
|
|
1571
1571
|
const e = this.rootElement, t = e.getSelection && e.getSelection(), s = t && t.anchorOffset, n = t && t.focusOffset;
|
|
@@ -1593,8 +1593,8 @@ class Xs extends pt {
|
|
|
1593
1593
|
this.input.textContent = e;
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
|
|
1597
|
-
class
|
|
1596
|
+
I.HTMLContenteditableMaskElement = Xs;
|
|
1597
|
+
class ft {
|
|
1598
1598
|
constructor() {
|
|
1599
1599
|
this.states = [], this.currentIndex = 0;
|
|
1600
1600
|
}
|
|
@@ -1605,7 +1605,7 @@ class ht {
|
|
|
1605
1605
|
return this.states.length === 0;
|
|
1606
1606
|
}
|
|
1607
1607
|
push(e) {
|
|
1608
|
-
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(e), this.states.length >
|
|
1608
|
+
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(e), this.states.length > ft.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
|
|
1609
1609
|
}
|
|
1610
1610
|
go(e) {
|
|
1611
1611
|
return this.currentIndex = Math.min(Math.max(this.currentIndex + e, 0), this.states.length - 1), this.currentState;
|
|
@@ -1620,14 +1620,14 @@ class ht {
|
|
|
1620
1620
|
this.states.length = 0, this.currentIndex = 0;
|
|
1621
1621
|
}
|
|
1622
1622
|
}
|
|
1623
|
-
|
|
1623
|
+
ft.MAX_LENGTH = 100;
|
|
1624
1624
|
class Bn {
|
|
1625
1625
|
/**
|
|
1626
1626
|
View element
|
|
1627
1627
|
*/
|
|
1628
1628
|
/** Internal {@link Masked} model */
|
|
1629
1629
|
constructor(e, t) {
|
|
1630
|
-
this.el = e instanceof Dt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new Xs(e) : new On(e), this.masked = Be(t), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new
|
|
1630
|
+
this.el = e instanceof Dt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new Xs(e) : new On(e), this.masked = Be(t), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ft(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this._onChange();
|
|
1631
1631
|
}
|
|
1632
1632
|
maskEquals(e) {
|
|
1633
1633
|
var t;
|
|
@@ -1640,13 +1640,13 @@ class Bn {
|
|
|
1640
1640
|
set mask(e) {
|
|
1641
1641
|
if (this.maskEquals(e))
|
|
1642
1642
|
return;
|
|
1643
|
-
if (!(e instanceof
|
|
1643
|
+
if (!(e instanceof I.Masked) && this.masked.constructor === Gs(e)) {
|
|
1644
1644
|
this.masked.updateOptions({
|
|
1645
1645
|
mask: e
|
|
1646
1646
|
});
|
|
1647
1647
|
return;
|
|
1648
1648
|
}
|
|
1649
|
-
const t = e instanceof
|
|
1649
|
+
const t = e instanceof I.Masked ? e : Be({
|
|
1650
1650
|
mask: e
|
|
1651
1651
|
});
|
|
1652
1652
|
t.unmaskedValue = this.masked.unmaskedValue, this.masked = t;
|
|
@@ -1832,7 +1832,7 @@ class Bn {
|
|
|
1832
1832
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
|
-
|
|
1835
|
+
I.InputMask = Bn;
|
|
1836
1836
|
class M {
|
|
1837
1837
|
/** Inserted symbols */
|
|
1838
1838
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -1864,7 +1864,7 @@ class M {
|
|
|
1864
1864
|
return this.inserted === e.inserted && this.tailShift === e.tailShift && this.rawInserted === e.rawInserted && this.skip === e.skip;
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
1867
|
-
|
|
1867
|
+
I.ChangeDetails = M;
|
|
1868
1868
|
class Ae {
|
|
1869
1869
|
/** Tail value as string */
|
|
1870
1870
|
/** Tail start position */
|
|
@@ -2141,7 +2141,7 @@ class ne {
|
|
|
2141
2141
|
return this.mask === e;
|
|
2142
2142
|
}
|
|
2143
2143
|
optionsIsChanged(e) {
|
|
2144
|
-
return !
|
|
2144
|
+
return !dt(this, e);
|
|
2145
2145
|
}
|
|
2146
2146
|
typedValueEquals(e) {
|
|
2147
2147
|
const t = this.typedValue;
|
|
@@ -2155,7 +2155,7 @@ ne.DEFAULTS = {
|
|
|
2155
2155
|
skipInvalid: !0
|
|
2156
2156
|
};
|
|
2157
2157
|
ne.EMPTY_VALUES = [void 0, null, ""];
|
|
2158
|
-
|
|
2158
|
+
I.Masked = ne;
|
|
2159
2159
|
class qe {
|
|
2160
2160
|
/** */
|
|
2161
2161
|
constructor(e, t) {
|
|
@@ -2183,7 +2183,7 @@ class qe {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
2185
|
appendTo(e) {
|
|
2186
|
-
if (!(e instanceof
|
|
2186
|
+
if (!(e instanceof I.MaskedPattern))
|
|
2187
2187
|
return new Ae(this.toString()).appendTo(e);
|
|
2188
2188
|
const t = new M();
|
|
2189
2189
|
for (let s = 0; s < this.chunks.length; ++s) {
|
|
@@ -2454,7 +2454,7 @@ class Ks {
|
|
|
2454
2454
|
return this._appendPlaceholder();
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
class
|
|
2457
|
+
class pt {
|
|
2458
2458
|
/** */
|
|
2459
2459
|
/** */
|
|
2460
2460
|
/** */
|
|
@@ -2576,7 +2576,7 @@ class dt {
|
|
|
2576
2576
|
return new M();
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
|
-
|
|
2579
|
+
pt.DEFAULT_DEFINITIONS = {
|
|
2580
2580
|
0: /\d/,
|
|
2581
2581
|
a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
|
2582
2582
|
// http://stackoverflow.com/a/22075070
|
|
@@ -2596,7 +2596,7 @@ class Nn extends ne {
|
|
|
2596
2596
|
t && (e.validate = (s) => s.search(t) >= 0), super._update(e);
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
|
-
|
|
2599
|
+
I.MaskedRegExp = Nn;
|
|
2600
2600
|
class ie extends ne {
|
|
2601
2601
|
/** */
|
|
2602
2602
|
/** */
|
|
@@ -2611,7 +2611,7 @@ class ie extends ne {
|
|
|
2611
2611
|
super({
|
|
2612
2612
|
...ie.DEFAULTS,
|
|
2613
2613
|
...e,
|
|
2614
|
-
definitions: Object.assign({},
|
|
2614
|
+
definitions: Object.assign({}, pt.DEFAULT_DEFINITIONS, e == null ? void 0 : e.definitions)
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
|
2617
2617
|
updateOptions(e) {
|
|
@@ -2637,7 +2637,7 @@ class ie extends ne {
|
|
|
2637
2637
|
expose: _,
|
|
2638
2638
|
repeat: S,
|
|
2639
2639
|
...v
|
|
2640
|
-
} = Ke(this.blocks[f]),
|
|
2640
|
+
} = Ke(this.blocks[f]), m = {
|
|
2641
2641
|
lazy: this.lazy,
|
|
2642
2642
|
eager: this.eager,
|
|
2643
2643
|
placeholderChar: this.placeholderChar,
|
|
@@ -2647,11 +2647,11 @@ class ie extends ne {
|
|
|
2647
2647
|
...v,
|
|
2648
2648
|
repeat: S,
|
|
2649
2649
|
parent: this
|
|
2650
|
-
},
|
|
2651
|
-
|
|
2650
|
+
}, k = S != null ? new I.RepeatBlock(
|
|
2651
|
+
m
|
|
2652
2652
|
/* TODO */
|
|
2653
|
-
) : Be(
|
|
2654
|
-
|
|
2653
|
+
) : Be(m);
|
|
2654
|
+
k && (this._blocks.push(k), _ && (this.exposeBlock = k), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), i += f.length - 1;
|
|
2655
2655
|
continue;
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
@@ -2673,7 +2673,7 @@ class ie extends ne {
|
|
|
2673
2673
|
break;
|
|
2674
2674
|
l = !1;
|
|
2675
2675
|
}
|
|
2676
|
-
const u = l ? new
|
|
2676
|
+
const u = l ? new pt({
|
|
2677
2677
|
isOptional: n,
|
|
2678
2678
|
lazy: this.lazy,
|
|
2679
2679
|
eager: this.eager,
|
|
@@ -2920,10 +2920,10 @@ ie.DEFAULTS = {
|
|
|
2920
2920
|
};
|
|
2921
2921
|
ie.STOP_CHAR = "`";
|
|
2922
2922
|
ie.ESCAPE_CHAR = "\\";
|
|
2923
|
-
ie.InputDefinition =
|
|
2923
|
+
ie.InputDefinition = pt;
|
|
2924
2924
|
ie.FixedDefinition = Ks;
|
|
2925
|
-
|
|
2926
|
-
class
|
|
2925
|
+
I.MaskedPattern = ie;
|
|
2926
|
+
class ot extends ie {
|
|
2927
2927
|
/**
|
|
2928
2928
|
Optionally sets max length of pattern.
|
|
2929
2929
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -2994,7 +2994,7 @@ class rt extends ie {
|
|
|
2994
2994
|
return t;
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
|
-
|
|
2997
|
+
I.MaskedRange = ot;
|
|
2998
2998
|
class Oe extends ie {
|
|
2999
2999
|
static extractPatternOptions(e) {
|
|
3000
3000
|
const {
|
|
@@ -3067,19 +3067,19 @@ class Oe extends ie {
|
|
|
3067
3067
|
}
|
|
3068
3068
|
Oe.GET_DEFAULT_BLOCKS = () => ({
|
|
3069
3069
|
d: {
|
|
3070
|
-
mask:
|
|
3070
|
+
mask: ot,
|
|
3071
3071
|
from: 1,
|
|
3072
3072
|
to: 31,
|
|
3073
3073
|
maxLength: 2
|
|
3074
3074
|
},
|
|
3075
3075
|
m: {
|
|
3076
|
-
mask:
|
|
3076
|
+
mask: ot,
|
|
3077
3077
|
from: 1,
|
|
3078
3078
|
to: 12,
|
|
3079
3079
|
maxLength: 2
|
|
3080
3080
|
},
|
|
3081
3081
|
Y: {
|
|
3082
|
-
mask:
|
|
3082
|
+
mask: ot,
|
|
3083
3083
|
from: 1900,
|
|
3084
3084
|
to: 9999
|
|
3085
3085
|
}
|
|
@@ -3099,11 +3099,11 @@ Oe.DEFAULTS = {
|
|
|
3099
3099
|
return new Date(n, s - 1, t);
|
|
3100
3100
|
}
|
|
3101
3101
|
};
|
|
3102
|
-
|
|
3103
|
-
class
|
|
3102
|
+
I.MaskedDate = Oe;
|
|
3103
|
+
class gt extends ne {
|
|
3104
3104
|
constructor(e) {
|
|
3105
3105
|
super({
|
|
3106
|
-
...
|
|
3106
|
+
...gt.DEFAULTS,
|
|
3107
3107
|
...e
|
|
3108
3108
|
}), this.currentMask = void 0;
|
|
3109
3109
|
}
|
|
@@ -3289,7 +3289,7 @@ class ft extends ne {
|
|
|
3289
3289
|
mask: n,
|
|
3290
3290
|
...i
|
|
3291
3291
|
} = e[s];
|
|
3292
|
-
return
|
|
3292
|
+
return dt(t, i) && t.maskEquals(n);
|
|
3293
3293
|
}) : super.maskEquals(e);
|
|
3294
3294
|
}
|
|
3295
3295
|
typedValueEquals(e) {
|
|
@@ -3297,7 +3297,7 @@ class ft extends ne {
|
|
|
3297
3297
|
return !!((t = this.currentMask) != null && t.typedValueEquals(e));
|
|
3298
3298
|
}
|
|
3299
3299
|
}
|
|
3300
|
-
|
|
3300
|
+
gt.DEFAULTS = {
|
|
3301
3301
|
...ne.DEFAULTS,
|
|
3302
3302
|
dispatch: (a, e, t, s) => {
|
|
3303
3303
|
if (!e.compiledMasks.length)
|
|
@@ -3315,11 +3315,11 @@ ft.DEFAULTS = {
|
|
|
3315
3315
|
return i.sort((r, l) => l.weight - r.weight || l.totalInputPositions - r.totalInputPositions), e.compiledMasks[i[0].index];
|
|
3316
3316
|
}
|
|
3317
3317
|
};
|
|
3318
|
-
|
|
3319
|
-
class
|
|
3318
|
+
I.MaskedDynamic = gt;
|
|
3319
|
+
class mt extends ie {
|
|
3320
3320
|
constructor(e) {
|
|
3321
3321
|
super({
|
|
3322
|
-
...
|
|
3322
|
+
...mt.DEFAULTS,
|
|
3323
3323
|
...e
|
|
3324
3324
|
});
|
|
3325
3325
|
}
|
|
@@ -3369,11 +3369,11 @@ class gt extends ie {
|
|
|
3369
3369
|
return this.enum.indexOf(this.value) >= 0;
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
|
-
|
|
3372
|
+
mt.DEFAULTS = {
|
|
3373
3373
|
...ie.DEFAULTS,
|
|
3374
3374
|
matchValue: (a, e, t) => a.indexOf(e, t) === t
|
|
3375
3375
|
};
|
|
3376
|
-
|
|
3376
|
+
I.MaskedEnum = mt;
|
|
3377
3377
|
class Mn extends ne {
|
|
3378
3378
|
/** */
|
|
3379
3379
|
/** Enable characters overwriting */
|
|
@@ -3390,7 +3390,7 @@ class Mn extends ne {
|
|
|
3390
3390
|
});
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
|
-
|
|
3393
|
+
I.MaskedFunction = Mn;
|
|
3394
3394
|
var Zs;
|
|
3395
3395
|
class he extends ne {
|
|
3396
3396
|
/** Single char */
|
|
@@ -3420,8 +3420,8 @@ class he extends ne {
|
|
|
3420
3420
|
super._update(e), this._updateRegExps();
|
|
3421
3421
|
}
|
|
3422
3422
|
_updateRegExps() {
|
|
3423
|
-
const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), t = "\\d*", s = (this.scale ? "(" +
|
|
3424
|
-
this._numberRegExp = new RegExp(e + t + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(
|
|
3423
|
+
const e = "^" + (this.allowNegative ? "[+|\\-]?" : ""), t = "\\d*", s = (this.scale ? "(" + Ct(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
|
|
3424
|
+
this._numberRegExp = new RegExp(e + t + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(Ct).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(Ct(this.thousandsSeparator), "g");
|
|
3425
3425
|
}
|
|
3426
3426
|
_removeThousandsSeparators(e) {
|
|
3427
3427
|
return e.replace(this._thousandsSeparatorRegExp, "");
|
|
@@ -3598,7 +3598,7 @@ he.DEFAULTS = {
|
|
|
3598
3598
|
maximumFractionDigits: 20
|
|
3599
3599
|
})
|
|
3600
3600
|
};
|
|
3601
|
-
|
|
3601
|
+
I.MaskedNumber = he;
|
|
3602
3602
|
const Ft = {
|
|
3603
3603
|
MASKED: "value",
|
|
3604
3604
|
UNMASKED: "unmaskedValue",
|
|
@@ -3612,9 +3612,9 @@ function Js(a, e, t) {
|
|
|
3612
3612
|
function $n(a, e, t, s) {
|
|
3613
3613
|
return Js(e, t, s)(a);
|
|
3614
3614
|
}
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3615
|
+
I.PIPE_TYPE = Ft;
|
|
3616
|
+
I.createPipe = Js;
|
|
3617
|
+
I.pipe = $n;
|
|
3618
3618
|
class Vn extends ie {
|
|
3619
3619
|
get repeatFrom() {
|
|
3620
3620
|
var e;
|
|
@@ -3710,14 +3710,14 @@ class Vn extends ie {
|
|
|
3710
3710
|
this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
|
-
|
|
3713
|
+
I.RepeatBlock = Vn;
|
|
3714
3714
|
try {
|
|
3715
|
-
globalThis.IMask =
|
|
3715
|
+
globalThis.IMask = I;
|
|
3716
3716
|
} catch {
|
|
3717
3717
|
}
|
|
3718
3718
|
const Qs = {
|
|
3719
3719
|
// common
|
|
3720
|
-
mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number,
|
|
3720
|
+
mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, I.Masked]), o.instanceOf(I.Masked)]),
|
|
3721
3721
|
value: o.any,
|
|
3722
3722
|
unmask: o.oneOfType([o.bool, o.oneOf(["typed"])]),
|
|
3723
3723
|
prepare: o.func,
|
|
@@ -3788,7 +3788,7 @@ function jn(a) {
|
|
|
3788
3788
|
this.element = i, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = i : this.props.inputRef(i));
|
|
3789
3789
|
}
|
|
3790
3790
|
initMask(i) {
|
|
3791
|
-
i === void 0 && (i = this._extractMaskOptionsFromProps(this.props)), this.maskRef =
|
|
3791
|
+
i === void 0 && (i = this._extractMaskOptionsFromProps(this.props)), this.maskRef = I(this.element, i).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
|
|
3792
3792
|
}
|
|
3793
3793
|
destroyMask() {
|
|
3794
3794
|
this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
|
|
@@ -3851,24 +3851,24 @@ function Un(a, e) {
|
|
|
3851
3851
|
let {
|
|
3852
3852
|
onAccept: t,
|
|
3853
3853
|
onComplete: s,
|
|
3854
|
-
ref: n =
|
|
3854
|
+
ref: n = ut(null),
|
|
3855
3855
|
defaultValue: i,
|
|
3856
3856
|
defaultUnmaskedValue: r,
|
|
3857
3857
|
defaultTypedValue: l
|
|
3858
3858
|
} = e === void 0 ? {} : e;
|
|
3859
|
-
const u =
|
|
3859
|
+
const u = ut(null), [d, h] = U({}), [f, _] = U(""), [S, v] = U(""), [m, k] = U(), F = xe(() => {
|
|
3860
3860
|
var p;
|
|
3861
3861
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3862
|
-
}, []),
|
|
3862
|
+
}, []), P = xe(() => {
|
|
3863
3863
|
const p = u.current;
|
|
3864
3864
|
p && (h({
|
|
3865
3865
|
value: p.value,
|
|
3866
3866
|
unmaskedValue: p.unmaskedValue,
|
|
3867
3867
|
typedValue: p.typedValue
|
|
3868
|
-
}),
|
|
3868
|
+
}), k(p.typedValue), v(p.unmaskedValue), _(p.value));
|
|
3869
3869
|
}, []), T = xe((p) => {
|
|
3870
3870
|
const C = u.current;
|
|
3871
|
-
C && (
|
|
3871
|
+
C && (P(), t == null || t(C.value, C, p));
|
|
3872
3872
|
}, [t]), x = xe((p) => u.current && (s == null ? void 0 : s(u.current.value, u.current, p)), [s]);
|
|
3873
3873
|
return J(() => {
|
|
3874
3874
|
const {
|
|
@@ -3887,29 +3887,29 @@ function Un(a, e) {
|
|
|
3887
3887
|
typedValue: p,
|
|
3888
3888
|
...C
|
|
3889
3889
|
} = d, B = u.current;
|
|
3890
|
-
!B ||
|
|
3891
|
-
}, [
|
|
3890
|
+
!B || m === void 0 || (p !== m && (B.typedValue = m, B.masked.typedValueEquals(m) || T()), h(C));
|
|
3891
|
+
}, [m]), J(() => {
|
|
3892
3892
|
const p = n.current;
|
|
3893
3893
|
if (!p || !(a != null && a.mask))
|
|
3894
|
-
return
|
|
3894
|
+
return F();
|
|
3895
3895
|
const C = u.current;
|
|
3896
|
-
C ? C == null || C.updateOptions(a) : p && a != null && a.mask && (u.current =
|
|
3897
|
-
}, [a,
|
|
3896
|
+
C ? C == null || C.updateOptions(a) : p && a != null && a.mask && (u.current = I(p, a), P(), i !== void 0 && _(i), r !== void 0 && v(r), l !== void 0 && k(l));
|
|
3897
|
+
}, [a, F, T]), J(() => {
|
|
3898
3898
|
if (!u.current)
|
|
3899
3899
|
return;
|
|
3900
3900
|
const p = u.current;
|
|
3901
3901
|
return p.on("accept", T), p.on("complete", x), () => {
|
|
3902
3902
|
p.off("accept", T), p.off("complete", x);
|
|
3903
3903
|
};
|
|
3904
|
-
}, [T, x]), J(() =>
|
|
3904
|
+
}, [T, x]), J(() => F, [F]), {
|
|
3905
3905
|
ref: n,
|
|
3906
3906
|
maskRef: u,
|
|
3907
3907
|
value: f,
|
|
3908
3908
|
setValue: _,
|
|
3909
3909
|
unmaskedValue: S,
|
|
3910
3910
|
setUnmaskedValue: v,
|
|
3911
|
-
typedValue:
|
|
3912
|
-
setTypedValue:
|
|
3911
|
+
typedValue: m,
|
|
3912
|
+
setTypedValue: k
|
|
3913
3913
|
};
|
|
3914
3914
|
}
|
|
3915
3915
|
const as = {
|
|
@@ -4105,71 +4105,77 @@ const as = {
|
|
|
4105
4105
|
text: s = Ie.props.text.default,
|
|
4106
4106
|
className: n
|
|
4107
4107
|
}) => {
|
|
4108
|
-
const i =
|
|
4109
|
-
(
|
|
4108
|
+
const i = ut(null), [r, l] = U(0), [u, d] = U(0), [h, f] = U(!1), _ = e && Ie.props.position.options.find(
|
|
4109
|
+
(F) => F === e
|
|
4110
4110
|
) && `${Ie.class}--${e}`, S = t && Ie.props.placement.options.find(
|
|
4111
|
-
(
|
|
4111
|
+
(F) => F === t
|
|
4112
4112
|
) && `${Ie.class}--${t}`;
|
|
4113
4113
|
let v;
|
|
4114
|
-
|
|
4115
|
-
var
|
|
4116
|
-
i.current && (l((
|
|
4117
|
-
}, []), J(() => (document.addEventListener("mousedown",
|
|
4118
|
-
document.removeEventListener("mousedown",
|
|
4119
|
-
}), [])
|
|
4114
|
+
gn(() => {
|
|
4115
|
+
var F, P;
|
|
4116
|
+
i.current && (l((F = i == null ? void 0 : i.current) == null ? void 0 : F.offsetHeight), d((P = i == null ? void 0 : i.current) == null ? void 0 : P.offsetWidth));
|
|
4117
|
+
}, []), J(() => (document.addEventListener("mousedown", k), () => {
|
|
4118
|
+
document.removeEventListener("mousedown", k);
|
|
4119
|
+
}), []);
|
|
4120
|
+
const m = 9;
|
|
4121
|
+
switch (e) {
|
|
4120
4122
|
case "top":
|
|
4121
4123
|
t === "initial" ? v = {
|
|
4122
|
-
bottom: r +
|
|
4123
|
-
left:
|
|
4124
|
+
bottom: r + m,
|
|
4125
|
+
left: -m
|
|
4124
4126
|
} : t === "end" ? v = {
|
|
4125
|
-
bottom: r +
|
|
4126
|
-
right:
|
|
4127
|
+
bottom: r + m,
|
|
4128
|
+
right: -m
|
|
4127
4129
|
} : v = {
|
|
4128
|
-
bottom: r +
|
|
4129
|
-
left:
|
|
4130
|
+
bottom: r + m,
|
|
4131
|
+
left: "50%",
|
|
4132
|
+
transform: "translateX(-50%)"
|
|
4130
4133
|
};
|
|
4131
4134
|
break;
|
|
4132
4135
|
case "bottom":
|
|
4133
4136
|
t === "initial" ? v = {
|
|
4134
|
-
top: r +
|
|
4135
|
-
left:
|
|
4137
|
+
top: r + m,
|
|
4138
|
+
left: -m
|
|
4136
4139
|
} : t === "end" ? v = {
|
|
4137
|
-
top: r +
|
|
4138
|
-
right:
|
|
4140
|
+
top: r + m,
|
|
4141
|
+
right: -m
|
|
4139
4142
|
} : v = {
|
|
4140
|
-
top: r +
|
|
4141
|
-
left:
|
|
4143
|
+
top: r + m,
|
|
4144
|
+
left: "50%",
|
|
4145
|
+
transform: "translateX(-50%)"
|
|
4142
4146
|
};
|
|
4143
4147
|
break;
|
|
4144
4148
|
case "left":
|
|
4145
4149
|
t === "initial" ? v = {
|
|
4146
|
-
right: u +
|
|
4147
|
-
top:
|
|
4150
|
+
right: u + m,
|
|
4151
|
+
top: -m
|
|
4148
4152
|
} : t === "end" ? v = {
|
|
4149
|
-
right: u +
|
|
4150
|
-
bottom:
|
|
4153
|
+
right: u + m,
|
|
4154
|
+
bottom: -m
|
|
4151
4155
|
} : v = {
|
|
4152
|
-
right: u +
|
|
4153
|
-
top:
|
|
4156
|
+
right: u + m,
|
|
4157
|
+
top: "50%",
|
|
4158
|
+
transform: "translateY(-50%)"
|
|
4154
4159
|
};
|
|
4155
4160
|
break;
|
|
4156
4161
|
case "right":
|
|
4157
4162
|
t === "initial" ? v = {
|
|
4158
|
-
left: u +
|
|
4159
|
-
top:
|
|
4163
|
+
left: u + m,
|
|
4164
|
+
top: -m
|
|
4160
4165
|
} : t === "end" ? v = {
|
|
4161
|
-
left: u +
|
|
4162
|
-
bottom:
|
|
4166
|
+
left: u + m,
|
|
4167
|
+
bottom: -m
|
|
4163
4168
|
} : v = {
|
|
4164
|
-
left: u +
|
|
4165
|
-
top:
|
|
4169
|
+
left: u + m,
|
|
4170
|
+
top: "50%",
|
|
4171
|
+
transform: "translateY(-50%)"
|
|
4166
4172
|
};
|
|
4167
4173
|
break;
|
|
4168
4174
|
}
|
|
4169
|
-
const
|
|
4170
|
-
i.current && i.current.contains(
|
|
4175
|
+
const k = ({ target: F }) => {
|
|
4176
|
+
i.current && i.current.contains(F) || f(!1);
|
|
4171
4177
|
};
|
|
4172
|
-
return /* @__PURE__ */
|
|
4178
|
+
return /* @__PURE__ */ O(
|
|
4173
4179
|
"span",
|
|
4174
4180
|
{
|
|
4175
4181
|
className: [Ie.class, n].join(" "),
|
|
@@ -4181,7 +4187,7 @@ const as = {
|
|
|
4181
4187
|
h && /* @__PURE__ */ c(
|
|
4182
4188
|
"span",
|
|
4183
4189
|
{
|
|
4184
|
-
className: [_, S].filter((
|
|
4190
|
+
className: [_, S].filter((F) => F).join(" "),
|
|
4185
4191
|
children: /* @__PURE__ */ c(
|
|
4186
4192
|
"span",
|
|
4187
4193
|
{
|
|
@@ -4220,10 +4226,10 @@ const Ze = ke.forwardRef(
|
|
|
4220
4226
|
tooltipPlacement: _ = X.props.tooltipPlacement.default,
|
|
4221
4227
|
icon: S = X.props.icon.default,
|
|
4222
4228
|
status: v = X.props.status.default,
|
|
4223
|
-
feedback:
|
|
4224
|
-
hasFeedback:
|
|
4225
|
-
noMargin:
|
|
4226
|
-
disabled:
|
|
4229
|
+
feedback: m,
|
|
4230
|
+
hasFeedback: k = X.props.hasFeedback.default,
|
|
4231
|
+
noMargin: F = X.props.noMargin.default,
|
|
4232
|
+
disabled: P = X.props.disabled.default,
|
|
4227
4233
|
className: T,
|
|
4228
4234
|
mask: x,
|
|
4229
4235
|
onChangeHandler: p = X.props.onChangeHandler.default,
|
|
@@ -4231,7 +4237,7 @@ const Ze = ke.forwardRef(
|
|
|
4231
4237
|
onKeyDownHandler: B,
|
|
4232
4238
|
onFocusHandler: z
|
|
4233
4239
|
}, V) => {
|
|
4234
|
-
const [ae, ce] = U(!1), [de, we] = U(!1), ge = !!p && !!x, Le = (w,
|
|
4240
|
+
const [ae, ce] = U(!1), [de, we] = U(!1), ge = !!p && !!x, Le = (w, j, Q) => {
|
|
4235
4241
|
if (ge && Q) {
|
|
4236
4242
|
const y = {
|
|
4237
4243
|
...Q,
|
|
@@ -4239,7 +4245,7 @@ const Ze = ke.forwardRef(
|
|
|
4239
4245
|
...Q.target,
|
|
4240
4246
|
name: a,
|
|
4241
4247
|
maskedValue: w,
|
|
4242
|
-
value:
|
|
4248
|
+
value: j.unmaskedValue,
|
|
4243
4249
|
type: "text"
|
|
4244
4250
|
}
|
|
4245
4251
|
};
|
|
@@ -4259,48 +4265,48 @@ const Ze = ke.forwardRef(
|
|
|
4259
4265
|
p && !ge && p(w);
|
|
4260
4266
|
}, g = (w) => {
|
|
4261
4267
|
B && B(w);
|
|
4262
|
-
},
|
|
4268
|
+
}, b = (w) => {
|
|
4263
4269
|
ce(!1), C && C(w);
|
|
4264
4270
|
}, $ = (w) => {
|
|
4265
4271
|
ce(!0), z && z(w);
|
|
4266
4272
|
}, R = () => {
|
|
4267
4273
|
we((w) => !w);
|
|
4268
|
-
},
|
|
4274
|
+
}, D = be(() => de && t === "password" ? "text" : t, [de, t]), A = () => {
|
|
4269
4275
|
const w = [`${X.class}`];
|
|
4270
|
-
return n && w.push(`${X.class}--${n}`), s && w.push(`${X.class}--animated`),
|
|
4276
|
+
return n && w.push(`${X.class}--${n}`), s && w.push(`${X.class}--animated`), F && w.push(`${X.class}--no-margin`), S && w.push(`${X.class}--with-icon`), v && w.push(`${X.class}--${v}`), T && w.push(T), w.join(" ");
|
|
4271
4277
|
}, N = be(() => {
|
|
4272
4278
|
const w = [`${X.class}__label`];
|
|
4273
4279
|
return (ae || l) && w.push(`${X.class}__label--active`), w.join(" ");
|
|
4274
4280
|
}, [l, ae]), L = () => !s && r ? r : "", q = () => v && v === "error" ? "info" : "check_circle";
|
|
4275
4281
|
return J(() => {
|
|
4276
4282
|
x && Fe(l || "");
|
|
4277
|
-
}, [l, x, Fe]), /* @__PURE__ */
|
|
4278
|
-
|
|
4283
|
+
}, [l, x, Fe]), /* @__PURE__ */ O("div", { className: A(), ref: V, children: [
|
|
4284
|
+
k && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: m && /* @__PURE__ */ O(Je, { children: [
|
|
4279
4285
|
/* @__PURE__ */ c(K, { image: q() }),
|
|
4280
|
-
|
|
4286
|
+
m
|
|
4281
4287
|
] }) }),
|
|
4282
4288
|
/* @__PURE__ */ c(
|
|
4283
4289
|
"input",
|
|
4284
4290
|
{
|
|
4285
4291
|
className: "ds-input__input",
|
|
4286
4292
|
"data-testid": e,
|
|
4287
|
-
disabled:
|
|
4293
|
+
disabled: P,
|
|
4288
4294
|
id: a,
|
|
4289
4295
|
max: d,
|
|
4290
4296
|
min: u,
|
|
4291
4297
|
name: a,
|
|
4292
|
-
onBlur:
|
|
4298
|
+
onBlur: b,
|
|
4293
4299
|
onChange: Re,
|
|
4294
4300
|
onFocus: $,
|
|
4295
4301
|
onInput: Re,
|
|
4296
4302
|
onKeyDown: g,
|
|
4297
4303
|
placeholder: L(),
|
|
4298
4304
|
ref: me,
|
|
4299
|
-
type:
|
|
4305
|
+
type: D,
|
|
4300
4306
|
...!x && { value: l || "" }
|
|
4301
4307
|
}
|
|
4302
4308
|
),
|
|
4303
|
-
/* @__PURE__ */
|
|
4309
|
+
/* @__PURE__ */ O("label", { className: N, htmlFor: a, children: [
|
|
4304
4310
|
i,
|
|
4305
4311
|
h && /* @__PURE__ */ c(
|
|
4306
4312
|
He,
|
|
@@ -4404,7 +4410,7 @@ const hs = {
|
|
|
4404
4410
|
const l = !i && `${pe.class}--absolute`, u = s && `${pe.class}__dots--${s}`, d = r && pe.props.backgroundColor.options.find(
|
|
4405
4411
|
(f) => f === r
|
|
4406
4412
|
) && `${pe.class}__background--${r}`, h = n && `${pe.class}__background--opacity`;
|
|
4407
|
-
return /* @__PURE__ */
|
|
4413
|
+
return /* @__PURE__ */ O(
|
|
4408
4414
|
"div",
|
|
4409
4415
|
{
|
|
4410
4416
|
className: [pe.class, t, l].filter((f) => f).join(" "),
|
|
@@ -4494,7 +4500,7 @@ const De = {
|
|
|
4494
4500
|
onChangeHandler: u = De.props.onChangeHandler.default
|
|
4495
4501
|
}) => {
|
|
4496
4502
|
const [d] = U(Math.random());
|
|
4497
|
-
return /* @__PURE__ */
|
|
4503
|
+
return /* @__PURE__ */ O("div", { className: (() => {
|
|
4498
4504
|
const f = [De.class];
|
|
4499
4505
|
return i && f.push(`${De.class}--disabled`), f.join(" ");
|
|
4500
4506
|
})(), children: [
|
|
@@ -4519,7 +4525,7 @@ const De = {
|
|
|
4519
4525
|
size: "xxl"
|
|
4520
4526
|
}
|
|
4521
4527
|
),
|
|
4522
|
-
/* @__PURE__ */
|
|
4528
|
+
/* @__PURE__ */ O("div", { className: `${De.class}__text-container`, children: [
|
|
4523
4529
|
e && /* @__PURE__ */ c(
|
|
4524
4530
|
"label",
|
|
4525
4531
|
{
|
|
@@ -4555,7 +4561,7 @@ const gs = {
|
|
|
4555
4561
|
Default: "",
|
|
4556
4562
|
Large: "large",
|
|
4557
4563
|
Small: "small"
|
|
4558
|
-
},
|
|
4564
|
+
}, lt = {
|
|
4559
4565
|
name: "Paragraph",
|
|
4560
4566
|
class: "ds-paragraph",
|
|
4561
4567
|
props: {
|
|
@@ -4569,13 +4575,13 @@ const gs = {
|
|
|
4569
4575
|
children: a,
|
|
4570
4576
|
className: e,
|
|
4571
4577
|
testId: t = "ds-paragraph-test",
|
|
4572
|
-
type: s =
|
|
4578
|
+
type: s = lt.props.type.default
|
|
4573
4579
|
}) => {
|
|
4574
|
-
const n = s && `${
|
|
4580
|
+
const n = s && `${lt.class}--${s}`;
|
|
4575
4581
|
return /* @__PURE__ */ c(
|
|
4576
4582
|
"p",
|
|
4577
4583
|
{
|
|
4578
|
-
className: [
|
|
4584
|
+
className: [lt.class, n, e && e].filter((i) => i).join(" "),
|
|
4579
4585
|
"data-testid": t,
|
|
4580
4586
|
children: a
|
|
4581
4587
|
}
|
|
@@ -4584,7 +4590,7 @@ const gs = {
|
|
|
4584
4590
|
$e.propTypes = {
|
|
4585
4591
|
className: o.string,
|
|
4586
4592
|
testId: o.string,
|
|
4587
|
-
type: o.oneOf(
|
|
4593
|
+
type: o.oneOf(lt.props.type.options)
|
|
4588
4594
|
};
|
|
4589
4595
|
$e.displayName = "DsParagraph";
|
|
4590
4596
|
const ms = {
|
|
@@ -4610,7 +4616,7 @@ const ms = {
|
|
|
4610
4616
|
options: Object.values(ms)
|
|
4611
4617
|
}
|
|
4612
4618
|
}
|
|
4613
|
-
},
|
|
4619
|
+
}, Et = {
|
|
4614
4620
|
name: "Flex-Element",
|
|
4615
4621
|
class: "ds-flex-element",
|
|
4616
4622
|
props: {
|
|
@@ -4627,10 +4633,10 @@ const ms = {
|
|
|
4627
4633
|
}
|
|
4628
4634
|
}, se = ({
|
|
4629
4635
|
children: a,
|
|
4630
|
-
flex: e =
|
|
4631
|
-
className: t =
|
|
4636
|
+
flex: e = Et.props.flex.default,
|
|
4637
|
+
className: t = Et.props.className.default
|
|
4632
4638
|
}) => {
|
|
4633
|
-
const s = () => [
|
|
4639
|
+
const s = () => [Et.class, t].join(" "), n = () => ({
|
|
4634
4640
|
flex: e
|
|
4635
4641
|
});
|
|
4636
4642
|
return /* @__PURE__ */ c("div", { className: s(), style: n(), children: a });
|
|
@@ -4809,7 +4815,7 @@ const sn = ({
|
|
|
4809
4815
|
() => `ds-progress__progress--${t}`,
|
|
4810
4816
|
[t]
|
|
4811
4817
|
), i = be(() => t === "success-dark" ? "color__success--dark" : t === "warning" ? "color__warning--dark" : `color__${t}--default`, [t]);
|
|
4812
|
-
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */
|
|
4818
|
+
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ O(Ve, { flexDirection: "column", children: [
|
|
4813
4819
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
4814
4820
|
"div",
|
|
4815
4821
|
{
|
|
@@ -4828,7 +4834,7 @@ const sn = ({
|
|
|
4828
4834
|
)
|
|
4829
4835
|
}
|
|
4830
4836
|
) }),
|
|
4831
|
-
/* @__PURE__ */ c(se, { children: /* @__PURE__ */
|
|
4837
|
+
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ O(
|
|
4832
4838
|
Ve,
|
|
4833
4839
|
{
|
|
4834
4840
|
alignItems: "flex-end",
|
|
@@ -4954,10 +4960,10 @@ const Ss = {
|
|
|
4954
4960
|
size: _ = Z.props.size.default,
|
|
4955
4961
|
status: S = Z.props.status.default,
|
|
4956
4962
|
tooltip: v,
|
|
4957
|
-
tooltipPosition:
|
|
4958
|
-
tooltipPlacement:
|
|
4959
|
-
feedback:
|
|
4960
|
-
...
|
|
4963
|
+
tooltipPosition: m = Z.props.tooltipPosition.default,
|
|
4964
|
+
tooltipPlacement: k = Z.props.tooltipPlacement.default,
|
|
4965
|
+
feedback: F,
|
|
4966
|
+
...P
|
|
4961
4967
|
}, T) => {
|
|
4962
4968
|
const [x, p] = U(!1), C = (V) => {
|
|
4963
4969
|
p(!1), h && h(V, V.target.value), f && f(V, V.target.value);
|
|
@@ -4968,8 +4974,8 @@ const Ss = {
|
|
|
4968
4974
|
const V = [`${Z.class}__label`];
|
|
4969
4975
|
return !s && V.push(`${Z.class}__label--not-animated`), u && V.push(`${Z.class}__label--has-value`), s && !u && !v && V.push(`${Z.class}__label--hidden`), V.join(" ");
|
|
4970
4976
|
}, [u]);
|
|
4971
|
-
return /* @__PURE__ */
|
|
4972
|
-
/* @__PURE__ */
|
|
4977
|
+
return /* @__PURE__ */ O("div", { className: B(), "data-testid": "ds-select-component", children: [
|
|
4978
|
+
/* @__PURE__ */ O(
|
|
4973
4979
|
"label",
|
|
4974
4980
|
{
|
|
4975
4981
|
className: z,
|
|
@@ -4981,8 +4987,8 @@ const Ss = {
|
|
|
4981
4987
|
He,
|
|
4982
4988
|
{
|
|
4983
4989
|
className: `${Z.class}__tooltip`,
|
|
4984
|
-
placement:
|
|
4985
|
-
position:
|
|
4990
|
+
placement: k,
|
|
4991
|
+
position: m,
|
|
4986
4992
|
text: v,
|
|
4987
4993
|
children: /* @__PURE__ */ c(K, { className: `${Z.class}__icon`, image: "info" })
|
|
4988
4994
|
}
|
|
@@ -4990,7 +4996,7 @@ const Ss = {
|
|
|
4990
4996
|
]
|
|
4991
4997
|
}
|
|
4992
4998
|
),
|
|
4993
|
-
/* @__PURE__ */
|
|
4999
|
+
/* @__PURE__ */ O(
|
|
4994
5000
|
"select",
|
|
4995
5001
|
{
|
|
4996
5002
|
"data-testid": i,
|
|
@@ -5000,7 +5006,7 @@ const Ss = {
|
|
|
5000
5006
|
name: r,
|
|
5001
5007
|
onChange: (V) => C(V),
|
|
5002
5008
|
value: u || "",
|
|
5003
|
-
...
|
|
5009
|
+
...P,
|
|
5004
5010
|
onBlur: () => p(!1),
|
|
5005
5011
|
onFocus: () => p(!0),
|
|
5006
5012
|
ref: T,
|
|
@@ -5030,7 +5036,7 @@ const Ss = {
|
|
|
5030
5036
|
]
|
|
5031
5037
|
}
|
|
5032
5038
|
),
|
|
5033
|
-
|
|
5039
|
+
F && /* @__PURE__ */ O("div", { className: "ds-select__feedback-container", children: [
|
|
5034
5040
|
/* @__PURE__ */ c(
|
|
5035
5041
|
K,
|
|
5036
5042
|
{
|
|
@@ -5038,7 +5044,7 @@ const Ss = {
|
|
|
5038
5044
|
image: S === "success" ? "check_circle" : "info"
|
|
5039
5045
|
}
|
|
5040
5046
|
),
|
|
5041
|
-
/* @__PURE__ */ c("span", { className: "ds-select__feedback", children:
|
|
5047
|
+
/* @__PURE__ */ c("span", { className: "ds-select__feedback", children: F })
|
|
5042
5048
|
] })
|
|
5043
5049
|
] });
|
|
5044
5050
|
}
|
|
@@ -5067,7 +5073,7 @@ nn.displayName = "DsSelect";
|
|
|
5067
5073
|
const As = {
|
|
5068
5074
|
Large: "large",
|
|
5069
5075
|
Small: "small"
|
|
5070
|
-
},
|
|
5076
|
+
}, xt = {
|
|
5071
5077
|
name: "Subtitle",
|
|
5072
5078
|
class: "ds-subtitle",
|
|
5073
5079
|
props: {
|
|
@@ -5083,11 +5089,11 @@ const As = {
|
|
|
5083
5089
|
testId: t = "ds-subtitle-test",
|
|
5084
5090
|
type: s
|
|
5085
5091
|
}) => {
|
|
5086
|
-
const n =
|
|
5092
|
+
const n = xt.props.type.options.find((i) => i === s) && `${xt.class}--${s}`;
|
|
5087
5093
|
return /* @__PURE__ */ c(
|
|
5088
5094
|
"p",
|
|
5089
5095
|
{
|
|
5090
|
-
className: [
|
|
5096
|
+
className: [xt.class, n, e && e].filter((i) => i).join(" "),
|
|
5091
5097
|
"data-testid": t,
|
|
5092
5098
|
children: a
|
|
5093
5099
|
}
|
|
@@ -5214,10 +5220,10 @@ const Ts = {
|
|
|
5214
5220
|
feedback: _,
|
|
5215
5221
|
disabled: S = te.props.disabled.default,
|
|
5216
5222
|
required: v,
|
|
5217
|
-
className:
|
|
5218
|
-
resize:
|
|
5219
|
-
onChangeHandler:
|
|
5220
|
-
onBlurHandler:
|
|
5223
|
+
className: m,
|
|
5224
|
+
resize: k = te.props.resize.default,
|
|
5225
|
+
onChangeHandler: F,
|
|
5226
|
+
onBlurHandler: P,
|
|
5221
5227
|
onKeyDownHandler: T,
|
|
5222
5228
|
onFocusHandler: x,
|
|
5223
5229
|
rows: p = te.props.rows.default,
|
|
@@ -5230,26 +5236,26 @@ const Ts = {
|
|
|
5230
5236
|
r == null && Le(Math.random());
|
|
5231
5237
|
}, [r]);
|
|
5232
5238
|
const oe = (A) => {
|
|
5233
|
-
we(A.target.value.length),
|
|
5239
|
+
we(A.target.value.length), F && F(A);
|
|
5234
5240
|
}, me = (A) => {
|
|
5235
5241
|
T && T(A);
|
|
5236
5242
|
}, Fe = (A) => {
|
|
5237
|
-
ce(!1),
|
|
5243
|
+
ce(!1), P && P(A);
|
|
5238
5244
|
}, Re = (A) => {
|
|
5239
5245
|
ce(!0), x && x(A);
|
|
5240
5246
|
}, g = () => {
|
|
5241
5247
|
const A = [`${te.class}`];
|
|
5242
|
-
return s && A.push(`${te.class}--${s}`), t && A.push(`${te.class}--animated`), d && A.push(`${te.class}--with-icon`), f && A.push(`${te.class}--${f}`),
|
|
5243
|
-
},
|
|
5248
|
+
return s && A.push(`${te.class}--${s}`), t && A.push(`${te.class}--animated`), d && A.push(`${te.class}--with-icon`), f && A.push(`${te.class}--${f}`), m && A.push(m), A.join(" ");
|
|
5249
|
+
}, b = be(() => {
|
|
5244
5250
|
const A = [`${te.class}__label`];
|
|
5245
5251
|
return (ae || r) && A.push(`${te.class}__label--active`), A.join(" ");
|
|
5246
|
-
}, [r, ae]), $ = () => !t && i ? i : "", R = () => f && f === "error" ? "info" : "check_circle",
|
|
5247
|
-
resize:
|
|
5252
|
+
}, [r, ae]), $ = () => !t && i ? i : "", R = () => f && f === "error" ? "info" : "check_circle", D = {
|
|
5253
|
+
resize: k,
|
|
5248
5254
|
...z || {}
|
|
5249
5255
|
};
|
|
5250
|
-
return /* @__PURE__ */
|
|
5256
|
+
return /* @__PURE__ */ O("div", { className: g(), children: [
|
|
5251
5257
|
B && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: B }),
|
|
5252
|
-
_ && /* @__PURE__ */
|
|
5258
|
+
_ && /* @__PURE__ */ O("div", { className: "ds-textarea__feedback", children: [
|
|
5253
5259
|
/* @__PURE__ */ c(K, { image: R() }),
|
|
5254
5260
|
_
|
|
5255
5261
|
] }),
|
|
@@ -5273,11 +5279,11 @@ const Ts = {
|
|
|
5273
5279
|
ref: V,
|
|
5274
5280
|
required: v,
|
|
5275
5281
|
rows: p,
|
|
5276
|
-
style:
|
|
5282
|
+
style: D
|
|
5277
5283
|
}
|
|
5278
5284
|
),
|
|
5279
|
-
/* @__PURE__ */ c("label", { className:
|
|
5280
|
-
u && /* @__PURE__ */
|
|
5285
|
+
/* @__PURE__ */ c("label", { className: b, htmlFor: a, children: n }),
|
|
5286
|
+
u && /* @__PURE__ */ O("span", { className: "ds-textarea__count", children: [
|
|
5281
5287
|
de,
|
|
5282
5288
|
"/",
|
|
5283
5289
|
u
|
|
@@ -5322,26 +5328,32 @@ an.propTypes = {
|
|
|
5322
5328
|
style: o.object
|
|
5323
5329
|
};
|
|
5324
5330
|
an.displayName = "DsTextArea";
|
|
5325
|
-
const
|
|
5331
|
+
const nt = {
|
|
5326
5332
|
name: "Container",
|
|
5327
5333
|
class: "ds-container",
|
|
5328
5334
|
props: {
|
|
5329
5335
|
fluid: {
|
|
5330
5336
|
type: Boolean,
|
|
5331
5337
|
default: !1
|
|
5338
|
+
},
|
|
5339
|
+
testId: {
|
|
5340
|
+
type: String,
|
|
5341
|
+
default: "ds-container-test"
|
|
5332
5342
|
}
|
|
5333
5343
|
}
|
|
5334
5344
|
}, Bt = ({
|
|
5335
5345
|
children: a,
|
|
5336
|
-
fluid: e =
|
|
5346
|
+
fluid: e = nt.props.fluid.default,
|
|
5337
5347
|
className: t,
|
|
5338
|
-
style: s
|
|
5348
|
+
style: s,
|
|
5349
|
+
testId: n = nt.props.testId.default
|
|
5339
5350
|
}) => {
|
|
5340
|
-
const
|
|
5351
|
+
const i = e ? `${nt.class}--fluid` : nt.class;
|
|
5341
5352
|
return /* @__PURE__ */ c(
|
|
5342
5353
|
"div",
|
|
5343
5354
|
{
|
|
5344
|
-
className: [
|
|
5355
|
+
className: [i, t].filter((r) => r).join(" "),
|
|
5356
|
+
"data-testid": n,
|
|
5345
5357
|
style: s,
|
|
5346
5358
|
children: a
|
|
5347
5359
|
}
|
|
@@ -5351,7 +5363,8 @@ Bt.propTypes = {
|
|
|
5351
5363
|
children: o.node,
|
|
5352
5364
|
fluid: o.bool,
|
|
5353
5365
|
className: o.string,
|
|
5354
|
-
style: o.object
|
|
5366
|
+
style: o.object,
|
|
5367
|
+
testId: o.string
|
|
5355
5368
|
};
|
|
5356
5369
|
Bt.displayName = "DsContainer";
|
|
5357
5370
|
const Ds = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, Yn = ({ children: a, grid: e }) => {
|
|
@@ -5380,7 +5393,7 @@ const Os = {
|
|
|
5380
5393
|
Small: "sm",
|
|
5381
5394
|
Medium: "md",
|
|
5382
5395
|
Large: "lg"
|
|
5383
|
-
},
|
|
5396
|
+
}, it = {
|
|
5384
5397
|
Start: "start",
|
|
5385
5398
|
End: "end",
|
|
5386
5399
|
Center: "center",
|
|
@@ -5420,13 +5433,13 @@ const Os = {
|
|
|
5420
5433
|
},
|
|
5421
5434
|
horizontalAlign: {
|
|
5422
5435
|
type: String,
|
|
5423
|
-
default:
|
|
5424
|
-
options: Object.values(
|
|
5436
|
+
default: it.Start,
|
|
5437
|
+
options: Object.values(it)
|
|
5425
5438
|
},
|
|
5426
5439
|
verticalAlign: {
|
|
5427
5440
|
type: String,
|
|
5428
|
-
default:
|
|
5429
|
-
options: Object.values(
|
|
5441
|
+
default: it.Start,
|
|
5442
|
+
options: Object.values(it)
|
|
5430
5443
|
}
|
|
5431
5444
|
}
|
|
5432
5445
|
};
|
|
@@ -5463,11 +5476,11 @@ const rn = ({
|
|
|
5463
5476
|
(T) => T === i
|
|
5464
5477
|
) ? `${ee.class}--h-${i}` : null, _ = r && ee.props.verticalAlign.options.find(
|
|
5465
5478
|
(T) => T === r
|
|
5466
|
-
) ? `${ee.class}--v-${r}` : null, { width: S } = Gn(), [v,
|
|
5479
|
+
) ? `${ee.class}--v-${r}` : null, { width: S } = Gn(), [v, m] = U("auto");
|
|
5467
5480
|
J(() => {
|
|
5468
|
-
S <= 768 ?
|
|
5481
|
+
S <= 768 ? m("6") : m("12");
|
|
5469
5482
|
}, [S]);
|
|
5470
|
-
const
|
|
5483
|
+
const k = (T) => /^[+-]?\d+$/.test(T), F = () => e.split(",").map((x) => (x = x.trim(), x === "0" || x === "*" || x === "auto" ? "auto" : k(x) ? x + "fr" : x)).join(" "), P = () => `repeat(${v}, minmax(0, 1fr))`;
|
|
5471
5484
|
return /* @__PURE__ */ c(
|
|
5472
5485
|
"div",
|
|
5473
5486
|
{
|
|
@@ -5481,8 +5494,8 @@ const rn = ({
|
|
|
5481
5494
|
style: {
|
|
5482
5495
|
width: l,
|
|
5483
5496
|
height: u,
|
|
5484
|
-
gridTemplateColumns:
|
|
5485
|
-
gridTemplateRows:
|
|
5497
|
+
gridTemplateColumns: P(),
|
|
5498
|
+
gridTemplateRows: F()
|
|
5486
5499
|
},
|
|
5487
5500
|
children: a
|
|
5488
5501
|
}
|
|
@@ -5613,12 +5626,12 @@ const At = {
|
|
|
5613
5626
|
disabled: n = Ue.props.disabled.default
|
|
5614
5627
|
}) => {
|
|
5615
5628
|
const i = s && `${Ue.class}--active`;
|
|
5616
|
-
return /* @__PURE__ */
|
|
5629
|
+
return /* @__PURE__ */ O(
|
|
5617
5630
|
"li",
|
|
5618
5631
|
{
|
|
5619
5632
|
className: [Ue.class, i].filter((r) => r).join(" "),
|
|
5620
5633
|
children: [
|
|
5621
|
-
/* @__PURE__ */
|
|
5634
|
+
/* @__PURE__ */ O(
|
|
5622
5635
|
"button",
|
|
5623
5636
|
{
|
|
5624
5637
|
className: `${Ue.class}__button`,
|
|
@@ -5691,19 +5704,19 @@ const Xn = ({
|
|
|
5691
5704
|
title: a,
|
|
5692
5705
|
activeTags: e,
|
|
5693
5706
|
handleTagClose: t
|
|
5694
|
-
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */
|
|
5707
|
+
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ O(Je, { children: [
|
|
5695
5708
|
/* @__PURE__ */ c($e, { className: "active-tags__title", children: a }),
|
|
5696
5709
|
/* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((s, n) => /* @__PURE__ */ c(
|
|
5697
5710
|
He,
|
|
5698
5711
|
{
|
|
5699
5712
|
text: `Filtro ${s.text} aplicado`,
|
|
5700
|
-
children: /* @__PURE__ */
|
|
5713
|
+
children: /* @__PURE__ */ O(
|
|
5701
5714
|
"div",
|
|
5702
5715
|
{
|
|
5703
5716
|
className: `active-tags__item ${s.hiddenClose && "active-tags__item--no-close"}`,
|
|
5704
5717
|
"data-testid": `ds-active-tag-${n}`,
|
|
5705
5718
|
children: [
|
|
5706
|
-
/* @__PURE__ */
|
|
5719
|
+
/* @__PURE__ */ O(Ve, { alignItems: "center", gap: "nano", children: [
|
|
5707
5720
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
5708
5721
|
K,
|
|
5709
5722
|
{
|
|
@@ -5729,7 +5742,7 @@ const Xn = ({
|
|
|
5729
5742
|
n
|
|
5730
5743
|
)
|
|
5731
5744
|
},
|
|
5732
|
-
`ds-tooltip-key-${s.id}`
|
|
5745
|
+
`ds-tooltip-key-${s.id}-${s.text}`
|
|
5733
5746
|
)) })
|
|
5734
5747
|
] }) });
|
|
5735
5748
|
Xn.displayName = "DsActiveTags";
|
|
@@ -5830,16 +5843,16 @@ const Rs = {
|
|
|
5830
5843
|
onBlurHandler: _ = G.props.onBlurHandler.default,
|
|
5831
5844
|
onFocusHandler: S = G.props.onFocusHandler.default,
|
|
5832
5845
|
animated: v = G.props.animated.default,
|
|
5833
|
-
placeholder:
|
|
5834
|
-
loading:
|
|
5846
|
+
placeholder: m = G.props.placeholder.default,
|
|
5847
|
+
loading: k
|
|
5835
5848
|
}) => {
|
|
5836
|
-
const [
|
|
5837
|
-
r(z), (
|
|
5849
|
+
const [F, P] = U(!1), [T, x] = U(s), p = (z) => {
|
|
5850
|
+
r(z), (k == null && z.currentTarget.value.length || !k && z.currentTarget.value.length > 2) && P(!0);
|
|
5838
5851
|
}, C = (z) => {
|
|
5839
|
-
l(z), _(), x(Math.random().toString()),
|
|
5852
|
+
l(z), _(), x(Math.random().toString()), P(!1);
|
|
5840
5853
|
};
|
|
5841
5854
|
J(() => {
|
|
5842
|
-
s.length === 0 &&
|
|
5855
|
+
s.length === 0 && P(!1);
|
|
5843
5856
|
}, [s]);
|
|
5844
5857
|
const B = () => n.length > 0 ? n.map((z, V) => /* @__PURE__ */ c(
|
|
5845
5858
|
"option",
|
|
@@ -5859,7 +5872,7 @@ const Rs = {
|
|
|
5859
5872
|
},
|
|
5860
5873
|
"no_option"
|
|
5861
5874
|
);
|
|
5862
|
-
return /* @__PURE__ */
|
|
5875
|
+
return /* @__PURE__ */ O("div", { className: `${G.class}__container`, children: [
|
|
5863
5876
|
/* @__PURE__ */ c(
|
|
5864
5877
|
Ze,
|
|
5865
5878
|
{
|
|
@@ -5871,7 +5884,7 @@ const Rs = {
|
|
|
5871
5884
|
onBlurHandler: _,
|
|
5872
5885
|
onChangeHandler: p,
|
|
5873
5886
|
onFocusHandler: S,
|
|
5874
|
-
placeholder:
|
|
5887
|
+
placeholder: m,
|
|
5875
5888
|
size: i,
|
|
5876
5889
|
status: f,
|
|
5877
5890
|
testId: t,
|
|
@@ -5879,7 +5892,7 @@ const Rs = {
|
|
|
5879
5892
|
},
|
|
5880
5893
|
T
|
|
5881
5894
|
),
|
|
5882
|
-
(u ||
|
|
5895
|
+
(u || k) && (k ? /* @__PURE__ */ c(
|
|
5883
5896
|
"div",
|
|
5884
5897
|
{
|
|
5885
5898
|
className: `${G.class}__loading ${G.class}__loading--${i}`,
|
|
@@ -5893,7 +5906,7 @@ const Rs = {
|
|
|
5893
5906
|
image: u
|
|
5894
5907
|
}
|
|
5895
5908
|
)),
|
|
5896
|
-
|
|
5909
|
+
F && /* @__PURE__ */ c(
|
|
5897
5910
|
"div",
|
|
5898
5911
|
{
|
|
5899
5912
|
className: `${G.class}__list`,
|
|
@@ -5981,21 +5994,21 @@ const We = {
|
|
|
5981
5994
|
max: i,
|
|
5982
5995
|
onChangeHandler: r
|
|
5983
5996
|
}) => {
|
|
5984
|
-
const l =
|
|
5997
|
+
const l = ut(null), [u, d] = U(!1), [h, f] = U("");
|
|
5985
5998
|
J(() => {
|
|
5986
5999
|
f(e ?? "");
|
|
5987
6000
|
}, [e]);
|
|
5988
|
-
const _ = (
|
|
5989
|
-
|
|
6001
|
+
const _ = (k) => {
|
|
6002
|
+
k.key === "Enter" && S(k);
|
|
5990
6003
|
};
|
|
5991
|
-
function S(
|
|
5992
|
-
d(!1), r && (n && parseInt(n) >= parseInt(h === "" ? n : h) ? (
|
|
5993
|
-
}
|
|
5994
|
-
const v = (
|
|
5995
|
-
f(
|
|
5996
|
-
},
|
|
5997
|
-
var
|
|
5998
|
-
await d(!0), (
|
|
6004
|
+
function S(k) {
|
|
6005
|
+
d(!1), r && (n && parseInt(n) >= parseInt(h === "" ? n : h) ? (k.currentTarget.value = n, f(n)) : i && parseInt(i) < parseInt(h) ? (k.currentTarget.value = i, f(i)) : k.currentTarget.value = h, r(k));
|
|
6006
|
+
}
|
|
6007
|
+
const v = (k) => {
|
|
6008
|
+
f(k.currentTarget.value);
|
|
6009
|
+
}, m = async () => {
|
|
6010
|
+
var k;
|
|
6011
|
+
await d(!0), (k = l.current) == null || k.focus();
|
|
5999
6012
|
};
|
|
6000
6013
|
return /* @__PURE__ */ c("div", { className: Zn.class, children: u ? /* @__PURE__ */ c(
|
|
6001
6014
|
"input",
|
|
@@ -6016,9 +6029,9 @@ const We = {
|
|
|
6016
6029
|
"div",
|
|
6017
6030
|
{
|
|
6018
6031
|
"data-testid": "ds-inline-editible-div-click",
|
|
6019
|
-
onClick:
|
|
6020
|
-
children: /* @__PURE__ */
|
|
6021
|
-
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c($e, { children: /* @__PURE__ */
|
|
6032
|
+
onClick: m,
|
|
6033
|
+
children: /* @__PURE__ */ O(Ve, { alignItems: "center", gap: "nano", children: [
|
|
6034
|
+
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c($e, { children: /* @__PURE__ */ O("b", { children: [
|
|
6022
6035
|
t,
|
|
6023
6036
|
e,
|
|
6024
6037
|
s
|
|
@@ -6075,15 +6088,15 @@ const Jn = [1, 2, 3, 4], Ns = {
|
|
|
6075
6088
|
onConfirm: h,
|
|
6076
6089
|
...f
|
|
6077
6090
|
}) => {
|
|
6078
|
-
const _ = i && fe.props.variant.options.find((
|
|
6079
|
-
(
|
|
6080
|
-
|
|
6091
|
+
const _ = i && fe.props.variant.options.find((k) => k === i) ? `${fe.class}--${i}` : `${fe.class}--${fe.props.variant.default}`, S = r && `${fe.class}--elevation-${r}`, v = h || d, m = xe(
|
|
6092
|
+
(k) => {
|
|
6093
|
+
k.keyCode === 27 && u();
|
|
6081
6094
|
},
|
|
6082
6095
|
[u]
|
|
6083
6096
|
);
|
|
6084
|
-
return J(() => (l && window && !v && window.addEventListener("keyup",
|
|
6085
|
-
window.removeEventListener("keyup",
|
|
6086
|
-
}), [v,
|
|
6097
|
+
return J(() => (l && window && !v && window.addEventListener("keyup", m), () => {
|
|
6098
|
+
window.removeEventListener("keyup", m);
|
|
6099
|
+
}), [v, m]), l ? /* @__PURE__ */ O(Je, { children: [
|
|
6087
6100
|
/* @__PURE__ */ c(
|
|
6088
6101
|
"div",
|
|
6089
6102
|
{
|
|
@@ -6094,7 +6107,7 @@ const Jn = [1, 2, 3, 4], Ns = {
|
|
|
6094
6107
|
} : u()
|
|
6095
6108
|
}
|
|
6096
6109
|
),
|
|
6097
|
-
/* @__PURE__ */
|
|
6110
|
+
/* @__PURE__ */ O(
|
|
6098
6111
|
"div",
|
|
6099
6112
|
{
|
|
6100
6113
|
className: [
|
|
@@ -6102,7 +6115,7 @@ const Jn = [1, 2, 3, 4], Ns = {
|
|
|
6102
6115
|
_,
|
|
6103
6116
|
S,
|
|
6104
6117
|
a && a
|
|
6105
|
-
].filter((
|
|
6118
|
+
].filter((k) => k).join(" "),
|
|
6106
6119
|
"data-testid": "ds-modal",
|
|
6107
6120
|
children: [
|
|
6108
6121
|
!v && /* @__PURE__ */ c(
|
|
@@ -6114,16 +6127,16 @@ const Jn = [1, 2, 3, 4], Ns = {
|
|
|
6114
6127
|
children: /* @__PURE__ */ c(K, { image: "close", size: "lg" })
|
|
6115
6128
|
}
|
|
6116
6129
|
),
|
|
6117
|
-
/* @__PURE__ */
|
|
6130
|
+
/* @__PURE__ */ O("div", { className: "ds-modal__content", children: [
|
|
6118
6131
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__title", children: e }),
|
|
6119
6132
|
e && /* @__PURE__ */ c(Te, { vertical: "xxxs" }),
|
|
6120
6133
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: t })
|
|
6121
6134
|
] }),
|
|
6122
6135
|
v && /* @__PURE__ */ c(Te, { vertical: "sm" }),
|
|
6123
6136
|
!v && /* @__PURE__ */ c(Te, { vertical: "xxs" }),
|
|
6124
|
-
/* @__PURE__ */
|
|
6137
|
+
/* @__PURE__ */ O("div", { className: "ds-modal__cta", children: [
|
|
6125
6138
|
d && /* @__PURE__ */ c(
|
|
6126
|
-
|
|
6139
|
+
ct,
|
|
6127
6140
|
{
|
|
6128
6141
|
onClick: () => {
|
|
6129
6142
|
u(), d();
|
|
@@ -6132,7 +6145,7 @@ const Jn = [1, 2, 3, 4], Ns = {
|
|
|
6132
6145
|
}
|
|
6133
6146
|
),
|
|
6134
6147
|
h && /* @__PURE__ */ c(
|
|
6135
|
-
|
|
6148
|
+
ct,
|
|
6136
6149
|
{
|
|
6137
6150
|
onClick: () => {
|
|
6138
6151
|
u(), h();
|
|
@@ -6227,28 +6240,28 @@ const Ms = {
|
|
|
6227
6240
|
handleClose: f,
|
|
6228
6241
|
testId: _ = le.props.testId.default
|
|
6229
6242
|
}) => {
|
|
6230
|
-
const [S, v] = U(l), [
|
|
6243
|
+
const [S, v] = U(l), [m, k] = U(!1), [F, P] = U(!0), T = [
|
|
6231
6244
|
le.class,
|
|
6232
6245
|
e && `${le.class}--${e}`,
|
|
6233
6246
|
t && `${le.class}--${t}`,
|
|
6234
6247
|
d && `${le.class}--elevation-${d}`,
|
|
6235
6248
|
a && a
|
|
6236
|
-
].join(" "), x = () => v((z) => (z === 0 &&
|
|
6249
|
+
].join(" "), x = () => v((z) => (z === 0 && P(!1), z - 100));
|
|
6237
6250
|
J(() => {
|
|
6238
|
-
!r && !u &&
|
|
6251
|
+
!r && !u && P(!0);
|
|
6239
6252
|
let z;
|
|
6240
|
-
return !
|
|
6253
|
+
return !m && r && (z = setInterval(x, 100)), () => {
|
|
6241
6254
|
clearInterval(z);
|
|
6242
6255
|
};
|
|
6243
|
-
}, [
|
|
6256
|
+
}, [m, r, l, F, u]);
|
|
6244
6257
|
const p = () => {
|
|
6245
|
-
|
|
6258
|
+
k(!0);
|
|
6246
6259
|
}, C = () => {
|
|
6247
|
-
|
|
6260
|
+
k(!1);
|
|
6248
6261
|
}, B = (z) => {
|
|
6249
|
-
|
|
6262
|
+
P(!1), f && f(z);
|
|
6250
6263
|
};
|
|
6251
|
-
return
|
|
6264
|
+
return F ? /* @__PURE__ */ O(
|
|
6252
6265
|
"div",
|
|
6253
6266
|
{
|
|
6254
6267
|
className: T,
|
|
@@ -6257,7 +6270,7 @@ const Ms = {
|
|
|
6257
6270
|
onMouseEnter: p,
|
|
6258
6271
|
onMouseLeave: C,
|
|
6259
6272
|
children: [
|
|
6260
|
-
/* @__PURE__ */ c(Xe, { bottom: "nano", top: "nano", children: /* @__PURE__ */
|
|
6273
|
+
/* @__PURE__ */ c(Xe, { bottom: "nano", top: "nano", children: /* @__PURE__ */ O(Ve, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6261
6274
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
6262
6275
|
K,
|
|
6263
6276
|
{
|
|
@@ -6331,7 +6344,7 @@ const Tt = {
|
|
|
6331
6344
|
default: "ds-password-confirmation"
|
|
6332
6345
|
}
|
|
6333
6346
|
}
|
|
6334
|
-
},
|
|
6347
|
+
}, at = {
|
|
6335
6348
|
strong: "Forte",
|
|
6336
6349
|
good: "Boa",
|
|
6337
6350
|
medium: "Médio",
|
|
@@ -6354,7 +6367,7 @@ const Tt = {
|
|
|
6354
6367
|
return d(C), C;
|
|
6355
6368
|
},
|
|
6356
6369
|
[e]
|
|
6357
|
-
),
|
|
6370
|
+
), m = xe(
|
|
6358
6371
|
(p) => {
|
|
6359
6372
|
i(p.currentTarget.value);
|
|
6360
6373
|
const C = v(p.currentTarget.value), B = T(C);
|
|
@@ -6366,7 +6379,7 @@ const Tt = {
|
|
|
6366
6379
|
});
|
|
6367
6380
|
},
|
|
6368
6381
|
[r, a, v]
|
|
6369
|
-
),
|
|
6382
|
+
), k = xe(
|
|
6370
6383
|
(p) => {
|
|
6371
6384
|
l(p.currentTarget.value);
|
|
6372
6385
|
const C = v(n), B = T(C);
|
|
@@ -6378,14 +6391,14 @@ const Tt = {
|
|
|
6378
6391
|
});
|
|
6379
6392
|
},
|
|
6380
6393
|
[n, a, v]
|
|
6381
|
-
),
|
|
6394
|
+
), F = be(() => n !== r && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [n, r, _]), P = xe(
|
|
6382
6395
|
(p) => {
|
|
6383
6396
|
const C = {
|
|
6384
6397
|
score: p,
|
|
6385
6398
|
color: "danger",
|
|
6386
|
-
label:
|
|
6399
|
+
label: at.weak
|
|
6387
6400
|
};
|
|
6388
|
-
return p > 30 && p < 75 ? (C.color = "warning", C.label =
|
|
6401
|
+
return p > 30 && p < 75 ? (C.color = "warning", C.label = at.medium) : p >= 75 && p < 100 ? (C.color = "success", C.label = at.good) : p === 100 && (C.color = "success-dark", C.label = at.strong), C;
|
|
6389
6402
|
},
|
|
6390
6403
|
[]
|
|
6391
6404
|
), T = xe(
|
|
@@ -6396,15 +6409,15 @@ const Tt = {
|
|
|
6396
6409
|
return V ? (ae++, ae) : z;
|
|
6397
6410
|
},
|
|
6398
6411
|
0
|
|
6399
|
-
), B =
|
|
6412
|
+
), B = P(
|
|
6400
6413
|
C * 100 / p.length
|
|
6401
6414
|
);
|
|
6402
6415
|
return f(B), B;
|
|
6403
6416
|
},
|
|
6404
|
-
[
|
|
6417
|
+
[P]
|
|
6405
6418
|
), x = () => /* @__PURE__ */ c("ul", { children: e.map((p, C) => {
|
|
6406
6419
|
const B = u[C] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6407
|
-
return /* @__PURE__ */
|
|
6420
|
+
return /* @__PURE__ */ O("li", { className: B, children: [
|
|
6408
6421
|
u[C] ? /* @__PURE__ */ c(
|
|
6409
6422
|
K,
|
|
6410
6423
|
{
|
|
@@ -6417,13 +6430,13 @@ const Tt = {
|
|
|
6417
6430
|
/* @__PURE__ */ c($e, { children: p.title })
|
|
6418
6431
|
] }, C + p.title);
|
|
6419
6432
|
}) });
|
|
6420
|
-
return /* @__PURE__ */
|
|
6433
|
+
return /* @__PURE__ */ O(Ve, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
6421
6434
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
6422
6435
|
Ze,
|
|
6423
6436
|
{
|
|
6424
6437
|
label: "Senha",
|
|
6425
6438
|
name: "password",
|
|
6426
|
-
onChangeHandler:
|
|
6439
|
+
onChangeHandler: m,
|
|
6427
6440
|
testId: `${s}-main-input`,
|
|
6428
6441
|
type: "password",
|
|
6429
6442
|
value: n
|
|
@@ -6443,13 +6456,13 @@ const Tt = {
|
|
|
6443
6456
|
/* @__PURE__ */ c(se, { children: /* @__PURE__ */ c(
|
|
6444
6457
|
Ze,
|
|
6445
6458
|
{
|
|
6446
|
-
feedback:
|
|
6459
|
+
feedback: F.feedback,
|
|
6447
6460
|
label: "Confirme a senha",
|
|
6448
6461
|
name: "confirmPassword",
|
|
6449
6462
|
onBlurHandler: () => S(!0),
|
|
6450
|
-
onChangeHandler:
|
|
6463
|
+
onChangeHandler: k,
|
|
6451
6464
|
onFocusHandler: () => S(!0),
|
|
6452
|
-
status:
|
|
6465
|
+
status: F.status,
|
|
6453
6466
|
testId: `${s}-confirm-input`,
|
|
6454
6467
|
type: "password",
|
|
6455
6468
|
value: r
|
|
@@ -6490,8 +6503,8 @@ const _e = {
|
|
|
6490
6503
|
n(e);
|
|
6491
6504
|
}, [e]), J(() => {
|
|
6492
6505
|
t(s);
|
|
6493
|
-
}, [s]), /* @__PURE__ */
|
|
6494
|
-
/* @__PURE__ */
|
|
6506
|
+
}, [s]), /* @__PURE__ */ O("div", { className: _e.class, children: [
|
|
6507
|
+
/* @__PURE__ */ O("span", { className: `${_e.class}__step-counter`, children: [
|
|
6495
6508
|
"Etapa ",
|
|
6496
6509
|
s + 1,
|
|
6497
6510
|
" de ",
|
|
@@ -6504,7 +6517,7 @@ const _e = {
|
|
|
6504
6517
|
"data-testid": `ds-button-${l}`,
|
|
6505
6518
|
disabled: r.disabled,
|
|
6506
6519
|
onClick: () => n(l),
|
|
6507
|
-
children: /* @__PURE__ */
|
|
6520
|
+
children: /* @__PURE__ */ O("span", { className: `${_e.class}__text`, children: [
|
|
6508
6521
|
s === l ? /* @__PURE__ */ c(Xe, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
|
|
6509
6522
|
K,
|
|
6510
6523
|
{
|
|
@@ -6561,7 +6574,7 @@ const Ee = {
|
|
|
6561
6574
|
) }, s);
|
|
6562
6575
|
}) });
|
|
6563
6576
|
pn.displayName = "DsTableRow";
|
|
6564
|
-
const ti = ({ columns: a, data: e, className: t }) => /* @__PURE__ */ c("div", { className: `${Ee.class}__wrapper`, children: /* @__PURE__ */
|
|
6577
|
+
const ti = ({ columns: a, data: e, className: t }) => /* @__PURE__ */ c("div", { className: `${Ee.class}__wrapper`, children: /* @__PURE__ */ O(
|
|
6565
6578
|
"table",
|
|
6566
6579
|
{
|
|
6567
6580
|
className: [`${Ee.class}`, t].filter((s) => s).join(" "),
|
|
@@ -6656,7 +6669,7 @@ const Vs = {
|
|
|
6656
6669
|
const [i, r] = U(t), l = (u) => {
|
|
6657
6670
|
r(u), n && n(u);
|
|
6658
6671
|
};
|
|
6659
|
-
return J(() => r(t), [t]), /* @__PURE__ */
|
|
6672
|
+
return J(() => r(t), [t]), /* @__PURE__ */ O(
|
|
6660
6673
|
"div",
|
|
6661
6674
|
{
|
|
6662
6675
|
className: [Ne.class, s && s].join(" "),
|
|
@@ -6752,7 +6765,7 @@ hn.propTypes = {
|
|
|
6752
6765
|
removeNotification: o.func
|
|
6753
6766
|
};
|
|
6754
6767
|
hn.displayName = "DsNotificationList";
|
|
6755
|
-
const
|
|
6768
|
+
const rt = {
|
|
6756
6769
|
name: "TwoColumns",
|
|
6757
6770
|
class: "ds-two-columns",
|
|
6758
6771
|
props: {}
|
|
@@ -6761,18 +6774,18 @@ const at = {
|
|
|
6761
6774
|
main: e,
|
|
6762
6775
|
sidebar: t,
|
|
6763
6776
|
breadcrumb: s
|
|
6764
|
-
}) => /* @__PURE__ */
|
|
6765
|
-
/* @__PURE__ */
|
|
6777
|
+
}) => /* @__PURE__ */ O(Bt, { children: [
|
|
6778
|
+
/* @__PURE__ */ O("div", { className: "ds-grid", children: [
|
|
6766
6779
|
/* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: s }) }),
|
|
6767
|
-
/* @__PURE__ */
|
|
6768
|
-
/* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: /* @__PURE__ */
|
|
6769
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6770
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6780
|
+
/* @__PURE__ */ O("div", { className: `${rt.class}__content ds-grid__row`, children: [
|
|
6781
|
+
/* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: /* @__PURE__ */ O(Je, { children: [
|
|
6782
|
+
/* @__PURE__ */ c("div", { className: `${rt.class}__header`, children: a }),
|
|
6783
|
+
/* @__PURE__ */ c("div", { className: `${rt.class}__main`, children: e })
|
|
6771
6784
|
] }) }),
|
|
6772
6785
|
/* @__PURE__ */ c(
|
|
6773
6786
|
"div",
|
|
6774
6787
|
{
|
|
6775
|
-
className: `${
|
|
6788
|
+
className: `${rt.class}__sidebar ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12`,
|
|
6776
6789
|
children: t
|
|
6777
6790
|
}
|
|
6778
6791
|
)
|
|
@@ -6790,7 +6803,7 @@ fn.displayName = "DsTwoColumns";
|
|
|
6790
6803
|
export {
|
|
6791
6804
|
on as DsAccordion,
|
|
6792
6805
|
Xn as DsActiveTags,
|
|
6793
|
-
|
|
6806
|
+
ct as DsButton,
|
|
6794
6807
|
zs as DsCaption,
|
|
6795
6808
|
qs as DsCard,
|
|
6796
6809
|
Us as DsCheckbox,
|