@sme.up/ketchup2 2.0.0-SNAPSHOT-20250708085903 → 2.0.0-SNAPSHOT-20250714085918
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/svg/clear.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete-types.d.ts +1 -0
- package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +5 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.es.js +857 -843
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as He from "react";
|
|
2
|
-
import rt, { useState as G, useRef as
|
|
2
|
+
import rt, { useState as G, useRef as ue, useEffect as ne, useCallback as fe, useLayoutEffect as Fn, useId as we, useMemo as Vn, createElement as Un } from "react";
|
|
3
3
|
import { createPortal as Wn } from "react-dom";
|
|
4
4
|
var qe = { exports: {} }, Fe = {};
|
|
5
5
|
/**
|
|
@@ -60,9 +60,9 @@ function Bn() {
|
|
|
60
60
|
return "StrictMode";
|
|
61
61
|
case y:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case k:
|
|
64
|
-
return "SuspenseList";
|
|
65
63
|
case L:
|
|
64
|
+
return "SuspenseList";
|
|
65
|
+
case k:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
68
|
if (typeof h == "object")
|
|
@@ -75,15 +75,15 @@ function Bn() {
|
|
|
75
75
|
return (h.displayName || "Context") + ".Provider";
|
|
76
76
|
case b:
|
|
77
77
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
78
|
-
case
|
|
79
|
-
var
|
|
80
|
-
return h = h.displayName, h || (h =
|
|
81
|
-
case
|
|
82
|
-
return
|
|
78
|
+
case x:
|
|
79
|
+
var v = h.render;
|
|
80
|
+
return h = h.displayName, h || (h = v.displayName || v.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
|
+
case j:
|
|
82
|
+
return v = h.displayName || null, v !== null ? v : n(h.type) || "Memo";
|
|
83
83
|
case O:
|
|
84
|
-
|
|
84
|
+
v = h._payload, h = h._init;
|
|
85
85
|
try {
|
|
86
|
-
return n(h(
|
|
86
|
+
return n(h(v));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,17 +95,17 @@ function Bn() {
|
|
|
95
95
|
function t(h) {
|
|
96
96
|
try {
|
|
97
97
|
e(h);
|
|
98
|
-
var
|
|
98
|
+
var v = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
v = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var $ =
|
|
102
|
+
if (v) {
|
|
103
|
+
v = console;
|
|
104
|
+
var $ = v.error, A = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
105
|
return $.call(
|
|
106
|
-
|
|
106
|
+
v,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
A
|
|
109
109
|
), e(h);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -114,8 +114,8 @@ function Bn() {
|
|
|
114
114
|
if (typeof h == "object" && h !== null && h.$$typeof === O)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var v = n(h);
|
|
118
|
+
return v ? "<" + v + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
@@ -129,16 +129,16 @@ function Bn() {
|
|
|
129
129
|
}
|
|
130
130
|
function i(h) {
|
|
131
131
|
if (T.call(h, "key")) {
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
132
|
+
var v = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
133
|
+
if (v && v.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return h.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function o(h,
|
|
137
|
+
function o(h, v) {
|
|
138
138
|
function $() {
|
|
139
|
-
|
|
139
|
+
H || (H = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
|
|
141
|
+
v
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
$.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
@@ -148,17 +148,17 @@ function Bn() {
|
|
|
148
148
|
}
|
|
149
149
|
function l() {
|
|
150
150
|
var h = n(this.type);
|
|
151
|
-
return
|
|
151
|
+
return B[h] || (B[h] = !0, console.error(
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
154
154
|
}
|
|
155
|
-
function c(h,
|
|
156
|
-
return $ =
|
|
155
|
+
function c(h, v, $, A, _, I, V, U) {
|
|
156
|
+
return $ = I.ref, h = {
|
|
157
157
|
$$typeof: g,
|
|
158
158
|
type: h,
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
159
|
+
key: v,
|
|
160
|
+
props: I,
|
|
161
|
+
_owner: _
|
|
162
162
|
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: l
|
|
@@ -176,68 +176,68 @@ function Bn() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: V
|
|
180
180
|
}), Object.defineProperty(h, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: U
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function f(h,
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
u(
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function f(h, v, $, A, _, I, V, U) {
|
|
188
|
+
var W = v.children;
|
|
189
|
+
if (W !== void 0)
|
|
190
|
+
if (A)
|
|
191
|
+
if (P(W)) {
|
|
192
|
+
for (A = 0; A < W.length; A++)
|
|
193
|
+
u(W[A]);
|
|
194
|
+
Object.freeze && Object.freeze(W);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else u(
|
|
200
|
-
if (T.call(
|
|
201
|
-
|
|
202
|
-
var J = Object.keys(
|
|
199
|
+
else u(W);
|
|
200
|
+
if (T.call(v, "key")) {
|
|
201
|
+
W = n(h);
|
|
202
|
+
var J = Object.keys(v).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
A = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[W + A] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
A,
|
|
213
|
+
W,
|
|
214
214
|
J,
|
|
215
|
-
|
|
216
|
-
), F[
|
|
215
|
+
W
|
|
216
|
+
), F[W + A] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
218
|
+
if (W = null, $ !== void 0 && (t($), W = "" + $), i(v) && (t(v.key), W = "" + v.key), "key" in v) {
|
|
219
219
|
$ = {};
|
|
220
|
-
for (var q in
|
|
221
|
-
q !== "key" && ($[q] =
|
|
222
|
-
} else $ =
|
|
223
|
-
return
|
|
220
|
+
for (var q in v)
|
|
221
|
+
q !== "key" && ($[q] = v[q]);
|
|
222
|
+
} else $ = v;
|
|
223
|
+
return W && o(
|
|
224
224
|
$,
|
|
225
225
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
226
226
|
), c(
|
|
227
227
|
h,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
W,
|
|
229
|
+
I,
|
|
230
|
+
_,
|
|
231
231
|
s(),
|
|
232
232
|
$,
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
V,
|
|
234
|
+
U
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function u(h) {
|
|
238
238
|
typeof h == "object" && h !== null && h.$$typeof === g && h._store && (h._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var p = rt, g = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), C = Symbol.for("react.context"),
|
|
240
|
+
var p = rt, g = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), C = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), D = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, P = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
p = {
|
|
@@ -245,33 +245,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return h();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var
|
|
248
|
+
var H, B = {}, z = p["react-stack-bottom-frame"].bind(
|
|
249
249
|
p,
|
|
250
250
|
a
|
|
251
|
-
)(),
|
|
252
|
-
Ve.Fragment = w, Ve.jsx = function(h,
|
|
253
|
-
var
|
|
251
|
+
)(), Z = N(r(a)), F = {};
|
|
252
|
+
Ve.Fragment = w, Ve.jsx = function(h, v, $, A, _) {
|
|
253
|
+
var I = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
h,
|
|
256
|
-
|
|
256
|
+
v,
|
|
257
257
|
$,
|
|
258
258
|
!1,
|
|
259
|
+
A,
|
|
259
260
|
_,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
P ? N(r(h)) : X
|
|
261
|
+
I ? Error("react-stack-top-frame") : z,
|
|
262
|
+
I ? N(r(h)) : Z
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h,
|
|
265
|
-
var
|
|
264
|
+
}, Ve.jsxs = function(h, v, $, A, _) {
|
|
265
|
+
var I = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
h,
|
|
268
|
-
|
|
268
|
+
v,
|
|
269
269
|
$,
|
|
270
270
|
!0,
|
|
271
|
+
A,
|
|
271
272
|
_,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
P ? N(r(h)) : X
|
|
273
|
+
I ? Error("react-stack-top-frame") : z,
|
|
274
|
+
I ? N(r(h)) : Z
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), Ve;
|
|
@@ -531,11 +531,11 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
531
531
|
u.setAttribute("class", S);
|
|
532
532
|
var E = e.getAttribute("style");
|
|
533
533
|
E && u.setAttribute("style", E), u.setAttribute("data-src", l);
|
|
534
|
-
var b = [].filter.call(e.attributes, function(
|
|
535
|
-
return /^data-\w[\w-]*$/.test(
|
|
534
|
+
var b = [].filter.call(e.attributes, function(Z) {
|
|
535
|
+
return /^data-\w[\w-]*$/.test(Z.name);
|
|
536
536
|
});
|
|
537
|
-
if (Array.prototype.forEach.call(b, function(
|
|
538
|
-
|
|
537
|
+
if (Array.prototype.forEach.call(b, function(Z) {
|
|
538
|
+
Z.name && Z.value && u.setAttribute(Z.name, Z.value);
|
|
539
539
|
}), r) {
|
|
540
540
|
var C = {
|
|
541
541
|
clipPath: ["clip-path"],
|
|
@@ -548,41 +548,41 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
548
548
|
path: [],
|
|
549
549
|
pattern: ["fill", "stroke"],
|
|
550
550
|
radialGradient: ["fill", "stroke"]
|
|
551
|
-
},
|
|
552
|
-
Object.keys(C).forEach(function(
|
|
553
|
-
|
|
554
|
-
for (var F = function(
|
|
555
|
-
|
|
556
|
-
var
|
|
557
|
-
Array.prototype.forEach.call(
|
|
558
|
-
|
|
559
|
-
for (var
|
|
560
|
-
var ae =
|
|
561
|
-
ae && !ae.match(new RegExp('url\\("?#' +
|
|
551
|
+
}, x, y, L, j, O;
|
|
552
|
+
Object.keys(C).forEach(function(Z) {
|
|
553
|
+
x = Z, L = C[Z], y = u.querySelectorAll(x + "[id]");
|
|
554
|
+
for (var F = function(A, _) {
|
|
555
|
+
j = y[A].id, O = j + "-" + tr();
|
|
556
|
+
var I;
|
|
557
|
+
Array.prototype.forEach.call(L, function(Y) {
|
|
558
|
+
I = u.querySelectorAll("[" + Y + '*="' + j + '"]');
|
|
559
|
+
for (var X = 0, re = I.length; X < re; X++) {
|
|
560
|
+
var ae = I[X].getAttribute(Y);
|
|
561
|
+
ae && !ae.match(new RegExp('url\\("?#' + j + '"?\\)')) || I[X].setAttribute(Y, "url(#" + O + ")");
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
|
-
for (var
|
|
565
|
-
var q =
|
|
566
|
-
q && q.toString() === "#" + y[
|
|
564
|
+
for (var V = u.querySelectorAll("[*|href]"), U = [], W = 0, J = V.length; W < J; W++) {
|
|
565
|
+
var q = V[W].getAttributeNS(yt, "href");
|
|
566
|
+
q && q.toString() === "#" + y[A].id && U.push(V[W]);
|
|
567
567
|
}
|
|
568
|
-
for (var se = 0, M =
|
|
569
|
-
|
|
570
|
-
y[
|
|
571
|
-
}, h = 0,
|
|
568
|
+
for (var se = 0, M = U.length; se < M; se++)
|
|
569
|
+
U[se].setAttributeNS(yt, "href", "#" + O);
|
|
570
|
+
y[A].id = O;
|
|
571
|
+
}, h = 0, v = y.length; h < v; h++)
|
|
572
572
|
F(h);
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
u.removeAttribute("xmlns:a");
|
|
576
|
-
for (var
|
|
577
|
-
T =
|
|
576
|
+
for (var k = u.querySelectorAll("script"), R = [], D, T, P = 0, N = k.length; P < N; P++)
|
|
577
|
+
T = k[P].getAttribute("type"), (!T || T === "application/ecmascript" || T === "application/javascript" || T === "text/javascript") && (D = k[P].innerText || k[P].textContent, D && R.push(D), u.removeChild(k[P]));
|
|
578
578
|
if (R.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
579
|
-
for (var
|
|
580
|
-
new Function(R[
|
|
579
|
+
for (var H = 0, B = R.length; H < B; H++)
|
|
580
|
+
new Function(R[H])(window);
|
|
581
581
|
Gt[l] = !0;
|
|
582
582
|
}
|
|
583
583
|
var z = u.querySelectorAll("style");
|
|
584
|
-
if (Array.prototype.forEach.call(z, function(
|
|
585
|
-
|
|
584
|
+
if (Array.prototype.forEach.call(z, function(Z) {
|
|
585
|
+
Z.textContent += "";
|
|
586
586
|
}), u.setAttribute("xmlns", nr), u.setAttribute("xmlns:xlink", yt), i(u), !e.parentNode) {
|
|
587
587
|
ye.splice(ye.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
588
588
|
return;
|
|
@@ -595,12 +595,12 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
595
595
|
} : i, l = r.beforeEach, c = l === void 0 ? function() {
|
|
596
596
|
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts, g = p === void 0 ? "never" : p, d = r.httpRequestWithCredentials, w = d === void 0 ? !1 : d, S = r.renumerateIRIElements, E = S === void 0 ? !0 : S;
|
|
597
597
|
if (e && "length" in e)
|
|
598
|
-
for (var b = 0, C = 0,
|
|
599
|
-
Ht(e[C], g, E, u, w, c, function(y,
|
|
600
|
-
o(y,
|
|
598
|
+
for (var b = 0, C = 0, x = e.length; C < x; C++)
|
|
599
|
+
Ht(e[C], g, E, u, w, c, function(y, L) {
|
|
600
|
+
o(y, L), e && "length" in e && e.length === ++b && a(b);
|
|
601
601
|
});
|
|
602
|
-
else e ? Ht(e, g, E, u, w, c, function(y,
|
|
603
|
-
o(y,
|
|
602
|
+
else e ? Ht(e, g, E, u, w, c, function(y, L) {
|
|
603
|
+
o(y, L), a(1), e = null;
|
|
604
604
|
}) : a(0);
|
|
605
605
|
}, ze = { exports: {} }, Je = { exports: {} }, Q = {};
|
|
606
606
|
/** @license React v16.13.1
|
|
@@ -618,8 +618,8 @@ function sr() {
|
|
|
618
618
|
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, g = n ? Symbol.for("react.memo") : 60115, d = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
619
619
|
function C(y) {
|
|
620
620
|
if (typeof y == "object" && y !== null) {
|
|
621
|
-
var
|
|
622
|
-
switch (
|
|
621
|
+
var L = y.$$typeof;
|
|
622
|
+
switch (L) {
|
|
623
623
|
case e:
|
|
624
624
|
switch (y = y.type, y) {
|
|
625
625
|
case l:
|
|
@@ -638,20 +638,20 @@ function sr() {
|
|
|
638
638
|
case i:
|
|
639
639
|
return y;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return L;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
case t:
|
|
645
|
-
return
|
|
645
|
+
return L;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function x(y) {
|
|
650
650
|
return C(y) === c;
|
|
651
651
|
}
|
|
652
652
|
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = r, Q.Lazy = d, Q.Memo = g, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(y) {
|
|
653
|
-
return
|
|
654
|
-
}, Q.isConcurrentMode =
|
|
653
|
+
return x(y) || C(y) === l;
|
|
654
|
+
}, Q.isConcurrentMode = x, Q.isContextConsumer = function(y) {
|
|
655
655
|
return C(y) === o;
|
|
656
656
|
}, Q.isContextProvider = function(y) {
|
|
657
657
|
return C(y) === i;
|
|
@@ -694,22 +694,22 @@ function ar() {
|
|
|
694
694
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
695
695
|
M === r || M === c || M === a || M === s || M === u || M === p || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === E || M.$$typeof === b || M.$$typeof === w);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function x(M) {
|
|
698
698
|
if (typeof M == "object" && M !== null) {
|
|
699
699
|
var Y = M.$$typeof;
|
|
700
700
|
switch (Y) {
|
|
701
701
|
case e:
|
|
702
|
-
var
|
|
703
|
-
switch (
|
|
702
|
+
var X = M.type;
|
|
703
|
+
switch (X) {
|
|
704
704
|
case l:
|
|
705
705
|
case c:
|
|
706
706
|
case r:
|
|
707
707
|
case a:
|
|
708
708
|
case s:
|
|
709
709
|
case u:
|
|
710
|
-
return
|
|
710
|
+
return X;
|
|
711
711
|
default:
|
|
712
|
-
var re =
|
|
712
|
+
var re = X && X.$$typeof;
|
|
713
713
|
switch (re) {
|
|
714
714
|
case o:
|
|
715
715
|
case f:
|
|
@@ -726,47 +726,47 @@ function ar() {
|
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
var y = l,
|
|
729
|
+
var y = l, L = c, j = o, O = i, k = e, R = f, D = r, T = d, P = g, N = t, H = a, B = s, z = u, Z = !1;
|
|
730
730
|
function F(M) {
|
|
731
|
-
return
|
|
731
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || x(M) === l;
|
|
732
732
|
}
|
|
733
733
|
function h(M) {
|
|
734
|
-
return
|
|
734
|
+
return x(M) === c;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
return
|
|
736
|
+
function v(M) {
|
|
737
|
+
return x(M) === o;
|
|
738
738
|
}
|
|
739
739
|
function $(M) {
|
|
740
|
-
return
|
|
740
|
+
return x(M) === i;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function A(M) {
|
|
743
743
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
745
|
+
function _(M) {
|
|
746
|
+
return x(M) === f;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return
|
|
748
|
+
function I(M) {
|
|
749
|
+
return x(M) === r;
|
|
750
|
+
}
|
|
751
|
+
function V(M) {
|
|
752
|
+
return x(M) === d;
|
|
750
753
|
}
|
|
751
754
|
function U(M) {
|
|
752
|
-
return
|
|
755
|
+
return x(M) === g;
|
|
753
756
|
}
|
|
754
757
|
function W(M) {
|
|
755
|
-
return
|
|
756
|
-
}
|
|
757
|
-
function V(M) {
|
|
758
|
-
return v(M) === t;
|
|
758
|
+
return x(M) === t;
|
|
759
759
|
}
|
|
760
760
|
function J(M) {
|
|
761
|
-
return
|
|
761
|
+
return x(M) === a;
|
|
762
762
|
}
|
|
763
763
|
function q(M) {
|
|
764
|
-
return
|
|
764
|
+
return x(M) === s;
|
|
765
765
|
}
|
|
766
766
|
function se(M) {
|
|
767
|
-
return
|
|
767
|
+
return x(M) === u;
|
|
768
768
|
}
|
|
769
|
-
ee.AsyncMode = y, ee.ConcurrentMode =
|
|
769
|
+
ee.AsyncMode = y, ee.ConcurrentMode = L, ee.ContextConsumer = j, ee.ContextProvider = O, ee.Element = k, ee.ForwardRef = R, ee.Fragment = D, ee.Lazy = T, ee.Memo = P, ee.Portal = N, ee.Profiler = H, ee.StrictMode = B, ee.Suspense = z, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = v, ee.isContextProvider = $, ee.isElement = A, ee.isForwardRef = _, ee.isFragment = I, ee.isLazy = V, ee.isMemo = U, ee.isPortal = W, ee.isProfiler = J, ee.isStrictMode = q, ee.isSuspense = se, ee.isValidElementType = C, ee.typeOf = x;
|
|
770
770
|
}()), ee;
|
|
771
771
|
}
|
|
772
772
|
var zt;
|
|
@@ -904,9 +904,9 @@ function lr() {
|
|
|
904
904
|
return St = function(o, l) {
|
|
905
905
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
906
906
|
function u(h) {
|
|
907
|
-
var
|
|
908
|
-
if (typeof
|
|
909
|
-
return
|
|
907
|
+
var v = h && (c && h[c] || h[f]);
|
|
908
|
+
if (typeof v == "function")
|
|
909
|
+
return v;
|
|
910
910
|
}
|
|
911
911
|
var p = "<<anonymous>>", g = {
|
|
912
912
|
array: E("array"),
|
|
@@ -919,219 +919,219 @@ function lr() {
|
|
|
919
919
|
symbol: E("symbol"),
|
|
920
920
|
any: b(),
|
|
921
921
|
arrayOf: C,
|
|
922
|
-
element:
|
|
922
|
+
element: x(),
|
|
923
923
|
elementType: y(),
|
|
924
|
-
instanceOf:
|
|
924
|
+
instanceOf: L,
|
|
925
925
|
node: R(),
|
|
926
926
|
objectOf: O,
|
|
927
|
-
oneOf:
|
|
928
|
-
oneOfType:
|
|
927
|
+
oneOf: j,
|
|
928
|
+
oneOfType: k,
|
|
929
929
|
shape: T,
|
|
930
|
-
exact:
|
|
930
|
+
exact: P
|
|
931
931
|
};
|
|
932
|
-
function d(h,
|
|
933
|
-
return h ===
|
|
932
|
+
function d(h, v) {
|
|
933
|
+
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
934
934
|
}
|
|
935
|
-
function w(h,
|
|
936
|
-
this.message = h, this.data =
|
|
935
|
+
function w(h, v) {
|
|
936
|
+
this.message = h, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
937
937
|
}
|
|
938
938
|
w.prototype = Error.prototype;
|
|
939
939
|
function S(h) {
|
|
940
940
|
if (process.env.NODE_ENV !== "production")
|
|
941
|
-
var
|
|
942
|
-
function
|
|
943
|
-
if (
|
|
941
|
+
var v = {}, $ = 0;
|
|
942
|
+
function A(I, V, U, W, J, q, se) {
|
|
943
|
+
if (W = W || p, q = q || U, se !== t) {
|
|
944
944
|
if (l) {
|
|
945
945
|
var M = new Error(
|
|
946
946
|
"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"
|
|
947
947
|
);
|
|
948
948
|
throw M.name = "Invariant Violation", M;
|
|
949
949
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
950
|
-
var Y =
|
|
951
|
-
!
|
|
950
|
+
var Y = W + ":" + U;
|
|
951
|
+
!v[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
952
952
|
$ < 3 && (a(
|
|
953
|
-
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" +
|
|
954
|
-
),
|
|
953
|
+
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + W + "`. 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."
|
|
954
|
+
), v[Y] = !0, $++);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
return U
|
|
957
|
+
return V[U] == null ? I ? V[U] === null ? new w("The " + J + " `" + q + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new w("The " + J + " `" + q + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : h(V, U, W, J, q);
|
|
958
958
|
}
|
|
959
|
-
var
|
|
960
|
-
return
|
|
959
|
+
var _ = A.bind(null, !1);
|
|
960
|
+
return _.isRequired = A.bind(null, !0), _;
|
|
961
961
|
}
|
|
962
962
|
function E(h) {
|
|
963
|
-
function
|
|
964
|
-
var
|
|
963
|
+
function v($, A, _, I, V, U) {
|
|
964
|
+
var W = $[A], J = B(W);
|
|
965
965
|
if (J !== h) {
|
|
966
|
-
var q = z(
|
|
966
|
+
var q = z(W);
|
|
967
967
|
return new w(
|
|
968
|
-
"Invalid " +
|
|
968
|
+
"Invalid " + I + " `" + V + "` of type " + ("`" + q + "` supplied to `" + _ + "`, expected ") + ("`" + h + "`."),
|
|
969
969
|
{ expectedType: h }
|
|
970
970
|
);
|
|
971
971
|
}
|
|
972
972
|
return null;
|
|
973
973
|
}
|
|
974
|
-
return S(
|
|
974
|
+
return S(v);
|
|
975
975
|
}
|
|
976
976
|
function b() {
|
|
977
977
|
return S(i);
|
|
978
978
|
}
|
|
979
979
|
function C(h) {
|
|
980
|
-
function
|
|
980
|
+
function v($, A, _, I, V) {
|
|
981
981
|
if (typeof h != "function")
|
|
982
|
-
return new w("Property `" +
|
|
983
|
-
var
|
|
984
|
-
if (!Array.isArray(
|
|
985
|
-
var
|
|
986
|
-
return new w("Invalid " +
|
|
982
|
+
return new w("Property `" + V + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
983
|
+
var U = $[A];
|
|
984
|
+
if (!Array.isArray(U)) {
|
|
985
|
+
var W = B(U);
|
|
986
|
+
return new w("Invalid " + I + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected an array."));
|
|
987
987
|
}
|
|
988
|
-
for (var J = 0; J <
|
|
989
|
-
var q = h(
|
|
988
|
+
for (var J = 0; J < U.length; J++) {
|
|
989
|
+
var q = h(U, J, _, I, V + "[" + J + "]", t);
|
|
990
990
|
if (q instanceof Error)
|
|
991
991
|
return q;
|
|
992
992
|
}
|
|
993
993
|
return null;
|
|
994
994
|
}
|
|
995
|
-
return S(
|
|
996
|
-
}
|
|
997
|
-
function
|
|
998
|
-
function h(
|
|
999
|
-
var
|
|
1000
|
-
if (!o(
|
|
1001
|
-
var
|
|
1002
|
-
return new w("Invalid " +
|
|
995
|
+
return S(v);
|
|
996
|
+
}
|
|
997
|
+
function x() {
|
|
998
|
+
function h(v, $, A, _, I) {
|
|
999
|
+
var V = v[$];
|
|
1000
|
+
if (!o(V)) {
|
|
1001
|
+
var U = B(V);
|
|
1002
|
+
return new w("Invalid " + _ + " `" + I + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1003
1003
|
}
|
|
1004
1004
|
return null;
|
|
1005
1005
|
}
|
|
1006
1006
|
return S(h);
|
|
1007
1007
|
}
|
|
1008
1008
|
function y() {
|
|
1009
|
-
function h(
|
|
1010
|
-
var
|
|
1011
|
-
if (!n.isValidElementType(
|
|
1012
|
-
var
|
|
1013
|
-
return new w("Invalid " +
|
|
1009
|
+
function h(v, $, A, _, I) {
|
|
1010
|
+
var V = v[$];
|
|
1011
|
+
if (!n.isValidElementType(V)) {
|
|
1012
|
+
var U = B(V);
|
|
1013
|
+
return new w("Invalid " + _ + " `" + I + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1014
1014
|
}
|
|
1015
1015
|
return null;
|
|
1016
1016
|
}
|
|
1017
1017
|
return S(h);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
function
|
|
1021
|
-
if (!($[
|
|
1022
|
-
var
|
|
1023
|
-
return new w("Invalid " +
|
|
1019
|
+
function L(h) {
|
|
1020
|
+
function v($, A, _, I, V) {
|
|
1021
|
+
if (!($[A] instanceof h)) {
|
|
1022
|
+
var U = h.name || p, W = F($[A]);
|
|
1023
|
+
return new w("Invalid " + I + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected ") + ("instance of `" + U + "`."));
|
|
1024
1024
|
}
|
|
1025
1025
|
return null;
|
|
1026
1026
|
}
|
|
1027
|
-
return S(
|
|
1027
|
+
return S(v);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function j(h) {
|
|
1030
1030
|
if (!Array.isArray(h))
|
|
1031
1031
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1032
1032
|
"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])."
|
|
1033
1033
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1034
|
-
function
|
|
1035
|
-
for (var
|
|
1036
|
-
if (d(
|
|
1034
|
+
function v($, A, _, I, V) {
|
|
1035
|
+
for (var U = $[A], W = 0; W < h.length; W++)
|
|
1036
|
+
if (d(U, h[W]))
|
|
1037
1037
|
return null;
|
|
1038
1038
|
var J = JSON.stringify(h, function(se, M) {
|
|
1039
1039
|
var Y = z(M);
|
|
1040
1040
|
return Y === "symbol" ? String(M) : M;
|
|
1041
1041
|
});
|
|
1042
|
-
return new w("Invalid " +
|
|
1042
|
+
return new w("Invalid " + I + " `" + V + "` of value `" + String(U) + "` " + ("supplied to `" + _ + "`, expected one of " + J + "."));
|
|
1043
1043
|
}
|
|
1044
|
-
return S(
|
|
1044
|
+
return S(v);
|
|
1045
1045
|
}
|
|
1046
1046
|
function O(h) {
|
|
1047
|
-
function
|
|
1047
|
+
function v($, A, _, I, V) {
|
|
1048
1048
|
if (typeof h != "function")
|
|
1049
|
-
return new w("Property `" +
|
|
1050
|
-
var
|
|
1051
|
-
if (
|
|
1052
|
-
return new w("Invalid " +
|
|
1053
|
-
for (var J in
|
|
1054
|
-
if (r(
|
|
1055
|
-
var q = h(
|
|
1049
|
+
return new w("Property `" + V + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
1050
|
+
var U = $[A], W = B(U);
|
|
1051
|
+
if (W !== "object")
|
|
1052
|
+
return new w("Invalid " + I + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected an object."));
|
|
1053
|
+
for (var J in U)
|
|
1054
|
+
if (r(U, J)) {
|
|
1055
|
+
var q = h(U, J, _, I, V + "." + J, t);
|
|
1056
1056
|
if (q instanceof Error)
|
|
1057
1057
|
return q;
|
|
1058
1058
|
}
|
|
1059
1059
|
return null;
|
|
1060
1060
|
}
|
|
1061
|
-
return S(
|
|
1061
|
+
return S(v);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function k(h) {
|
|
1064
1064
|
if (!Array.isArray(h))
|
|
1065
1065
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1066
|
-
for (var
|
|
1067
|
-
var $ = h[
|
|
1066
|
+
for (var v = 0; v < h.length; v++) {
|
|
1067
|
+
var $ = h[v];
|
|
1068
1068
|
if (typeof $ != "function")
|
|
1069
1069
|
return a(
|
|
1070
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1070
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z($) + " at index " + v + "."
|
|
1071
1071
|
), i;
|
|
1072
1072
|
}
|
|
1073
|
-
function _
|
|
1073
|
+
function A(_, I, V, U, W) {
|
|
1074
1074
|
for (var J = [], q = 0; q < h.length; q++) {
|
|
1075
|
-
var se = h[q], M = se(
|
|
1075
|
+
var se = h[q], M = se(_, I, V, U, W, t);
|
|
1076
1076
|
if (M == null)
|
|
1077
1077
|
return null;
|
|
1078
1078
|
M.data && r(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
1079
1079
|
}
|
|
1080
1080
|
var Y = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1081
|
-
return new w("Invalid " +
|
|
1081
|
+
return new w("Invalid " + U + " `" + W + "` supplied to " + ("`" + V + "`" + Y + "."));
|
|
1082
1082
|
}
|
|
1083
|
-
return S(
|
|
1083
|
+
return S(A);
|
|
1084
1084
|
}
|
|
1085
1085
|
function R() {
|
|
1086
|
-
function h(
|
|
1087
|
-
return N(
|
|
1086
|
+
function h(v, $, A, _, I) {
|
|
1087
|
+
return N(v[$]) ? null : new w("Invalid " + _ + " `" + I + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1088
1088
|
}
|
|
1089
1089
|
return S(h);
|
|
1090
1090
|
}
|
|
1091
|
-
function D(h,
|
|
1091
|
+
function D(h, v, $, A, _) {
|
|
1092
1092
|
return new w(
|
|
1093
|
-
(h || "React class") + ": " +
|
|
1093
|
+
(h || "React class") + ": " + v + " type `" + $ + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
1096
|
function T(h) {
|
|
1097
|
-
function
|
|
1098
|
-
var
|
|
1099
|
-
if (
|
|
1100
|
-
return new w("Invalid " +
|
|
1097
|
+
function v($, A, _, I, V) {
|
|
1098
|
+
var U = $[A], W = B(U);
|
|
1099
|
+
if (W !== "object")
|
|
1100
|
+
return new w("Invalid " + I + " `" + V + "` of type `" + W + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1101
1101
|
for (var J in h) {
|
|
1102
1102
|
var q = h[J];
|
|
1103
1103
|
if (typeof q != "function")
|
|
1104
|
-
return D(
|
|
1105
|
-
var se = q(
|
|
1104
|
+
return D(_, I, V, J, z(q));
|
|
1105
|
+
var se = q(U, J, _, I, V + "." + J, t);
|
|
1106
1106
|
if (se)
|
|
1107
1107
|
return se;
|
|
1108
1108
|
}
|
|
1109
1109
|
return null;
|
|
1110
1110
|
}
|
|
1111
|
-
return S(
|
|
1112
|
-
}
|
|
1113
|
-
function
|
|
1114
|
-
function
|
|
1115
|
-
var
|
|
1116
|
-
if (
|
|
1117
|
-
return new w("Invalid " +
|
|
1118
|
-
var J = e({}, $[
|
|
1111
|
+
return S(v);
|
|
1112
|
+
}
|
|
1113
|
+
function P(h) {
|
|
1114
|
+
function v($, A, _, I, V) {
|
|
1115
|
+
var U = $[A], W = B(U);
|
|
1116
|
+
if (W !== "object")
|
|
1117
|
+
return new w("Invalid " + I + " `" + V + "` of type `" + W + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1118
|
+
var J = e({}, $[A], h);
|
|
1119
1119
|
for (var q in J) {
|
|
1120
1120
|
var se = h[q];
|
|
1121
1121
|
if (r(h, q) && typeof se != "function")
|
|
1122
|
-
return D(
|
|
1122
|
+
return D(_, I, V, q, z(se));
|
|
1123
1123
|
if (!se)
|
|
1124
1124
|
return new w(
|
|
1125
|
-
"Invalid " +
|
|
1125
|
+
"Invalid " + I + " `" + V + "` key `" + q + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify($[A], null, " ") + `
|
|
1126
1126
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1127
1127
|
);
|
|
1128
|
-
var M = se(
|
|
1128
|
+
var M = se(U, q, _, I, V + "." + q, t);
|
|
1129
1129
|
if (M)
|
|
1130
1130
|
return M;
|
|
1131
1131
|
}
|
|
1132
1132
|
return null;
|
|
1133
1133
|
}
|
|
1134
|
-
return S(
|
|
1134
|
+
return S(v);
|
|
1135
1135
|
}
|
|
1136
1136
|
function N(h) {
|
|
1137
1137
|
switch (typeof h) {
|
|
@@ -1146,17 +1146,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1146
1146
|
return h.every(N);
|
|
1147
1147
|
if (h === null || o(h))
|
|
1148
1148
|
return !0;
|
|
1149
|
-
var
|
|
1150
|
-
if (
|
|
1151
|
-
var $ =
|
|
1152
|
-
if (
|
|
1153
|
-
for (; !(
|
|
1154
|
-
if (!N(
|
|
1149
|
+
var v = u(h);
|
|
1150
|
+
if (v) {
|
|
1151
|
+
var $ = v.call(h), A;
|
|
1152
|
+
if (v !== h.entries) {
|
|
1153
|
+
for (; !(A = $.next()).done; )
|
|
1154
|
+
if (!N(A.value))
|
|
1155
1155
|
return !1;
|
|
1156
1156
|
} else
|
|
1157
|
-
for (; !(
|
|
1158
|
-
var
|
|
1159
|
-
if (
|
|
1157
|
+
for (; !(A = $.next()).done; ) {
|
|
1158
|
+
var _ = A.value;
|
|
1159
|
+
if (_ && !N(_[1]))
|
|
1160
1160
|
return !1;
|
|
1161
1161
|
}
|
|
1162
1162
|
} else
|
|
@@ -1166,37 +1166,37 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1166
1166
|
return !1;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return h === "symbol" ? !0 :
|
|
1169
|
+
function H(h, v) {
|
|
1170
|
+
return h === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var
|
|
1174
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1172
|
+
function B(h) {
|
|
1173
|
+
var v = typeof h;
|
|
1174
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : H(v, h) ? "symbol" : v;
|
|
1175
1175
|
}
|
|
1176
1176
|
function z(h) {
|
|
1177
1177
|
if (typeof h > "u" || h === null)
|
|
1178
1178
|
return "" + h;
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1179
|
+
var v = B(h);
|
|
1180
|
+
if (v === "object") {
|
|
1181
1181
|
if (h instanceof Date)
|
|
1182
1182
|
return "date";
|
|
1183
1183
|
if (h instanceof RegExp)
|
|
1184
1184
|
return "regexp";
|
|
1185
1185
|
}
|
|
1186
|
-
return
|
|
1186
|
+
return v;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
var
|
|
1190
|
-
switch (
|
|
1188
|
+
function Z(h) {
|
|
1189
|
+
var v = z(h);
|
|
1190
|
+
switch (v) {
|
|
1191
1191
|
case "array":
|
|
1192
1192
|
case "object":
|
|
1193
|
-
return "an " +
|
|
1193
|
+
return "an " + v;
|
|
1194
1194
|
case "boolean":
|
|
1195
1195
|
case "date":
|
|
1196
1196
|
case "regexp":
|
|
1197
|
-
return "a " +
|
|
1197
|
+
return "a " + v;
|
|
1198
1198
|
default:
|
|
1199
|
-
return
|
|
1199
|
+
return v;
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
function F(h) {
|
|
@@ -1292,9 +1292,9 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1292
1292
|
if (this.reactWrapper instanceof fr(this.reactWrapper).Node) {
|
|
1293
1293
|
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache, g = this.props.onError, d = this.props.beforeInjection, w = this.props.afterInjection, S = this.props.wrapper, E, b;
|
|
1294
1294
|
S === "svg" ? (E = document.createElementNS(Xe, S), E.setAttribute("xmlns", Xe), E.setAttribute("xmlns:xlink", rn), b = document.createElementNS(Xe, S)) : (E = document.createElement(S), b = document.createElement(S)), E.appendChild(b), b.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1295
|
-
var C = function(
|
|
1295
|
+
var C = function(j) {
|
|
1296
1296
|
if (s.removeSVG(), !s._isMounted) {
|
|
1297
|
-
g(
|
|
1297
|
+
g(j);
|
|
1298
1298
|
return;
|
|
1299
1299
|
}
|
|
1300
1300
|
s.setState(function() {
|
|
@@ -1303,11 +1303,11 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1303
1303
|
isLoading: !1
|
|
1304
1304
|
};
|
|
1305
1305
|
}, function() {
|
|
1306
|
-
g(
|
|
1306
|
+
g(j);
|
|
1307
1307
|
});
|
|
1308
|
-
},
|
|
1309
|
-
if (
|
|
1310
|
-
C(
|
|
1308
|
+
}, x = function(j, O) {
|
|
1309
|
+
if (j) {
|
|
1310
|
+
C(j);
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
1313
|
s._isMounted && s.setState(function() {
|
|
@@ -1317,31 +1317,31 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1317
1317
|
}, function() {
|
|
1318
1318
|
try {
|
|
1319
1319
|
w(O);
|
|
1320
|
-
} catch (
|
|
1321
|
-
C(
|
|
1320
|
+
} catch (k) {
|
|
1321
|
+
C(k);
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
|
-
}, y = function(
|
|
1325
|
-
if (
|
|
1326
|
-
var O =
|
|
1327
|
-
O &&
|
|
1328
|
-
var
|
|
1329
|
-
|
|
1324
|
+
}, y = function(j) {
|
|
1325
|
+
if (j.setAttribute("role", "img"), i) {
|
|
1326
|
+
var O = j.querySelector(":scope > desc");
|
|
1327
|
+
O && j.removeChild(O);
|
|
1328
|
+
var k = document.createElement("desc");
|
|
1329
|
+
k.innerHTML = i, j.prepend(k);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (u) {
|
|
1332
|
-
var R =
|
|
1333
|
-
R &&
|
|
1332
|
+
var R = j.querySelector(":scope > title");
|
|
1333
|
+
R && j.removeChild(R);
|
|
1334
1334
|
var D = document.createElement("title");
|
|
1335
|
-
D.innerHTML = u,
|
|
1335
|
+
D.innerHTML = u, j.prepend(D);
|
|
1336
1336
|
}
|
|
1337
1337
|
try {
|
|
1338
|
-
d(
|
|
1338
|
+
d(j);
|
|
1339
1339
|
} catch (T) {
|
|
1340
1340
|
C(T);
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
1343
|
rr(b, {
|
|
1344
|
-
afterEach:
|
|
1344
|
+
afterEach: x,
|
|
1345
1345
|
beforeEach: y,
|
|
1346
1346
|
cacheRequests: p,
|
|
1347
1347
|
evalScripts: o,
|
|
@@ -1420,7 +1420,7 @@ const ta = (n) => {
|
|
|
1420
1420
|
}, hr = (n) => {
|
|
1421
1421
|
const e = `${Ot.assets}/${n}`.replace(/\/+/g, "/");
|
|
1422
1422
|
return e.endsWith(".svg") ? e : e + ".svg";
|
|
1423
|
-
},
|
|
1423
|
+
}, ce = rt.memo(
|
|
1424
1424
|
({
|
|
1425
1425
|
icon: n,
|
|
1426
1426
|
width: e,
|
|
@@ -1443,11 +1443,11 @@ const ta = (n) => {
|
|
|
1443
1443
|
!a && c && l && l(R);
|
|
1444
1444
|
}, C = (R) => {
|
|
1445
1445
|
!a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), b(R));
|
|
1446
|
-
},
|
|
1446
|
+
}, x = g ? r : n, y = w(x), j = S(x) ? x : hr(`assets/svg/${x}`);
|
|
1447
1447
|
return y ? /* @__PURE__ */ m.jsx(
|
|
1448
1448
|
kt,
|
|
1449
1449
|
{
|
|
1450
|
-
src:
|
|
1450
|
+
src: j,
|
|
1451
1451
|
onError: () => d(!0),
|
|
1452
1452
|
width: e || "1rem",
|
|
1453
1453
|
height: t || "1rem",
|
|
@@ -1464,7 +1464,7 @@ const ta = (n) => {
|
|
|
1464
1464
|
) : /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */ /* @__PURE__ */ m.jsx(
|
|
1465
1465
|
"img",
|
|
1466
1466
|
{
|
|
1467
|
-
src:
|
|
1467
|
+
src: x,
|
|
1468
1468
|
width: e || "16px",
|
|
1469
1469
|
height: t || "auto",
|
|
1470
1470
|
alt: u,
|
|
@@ -1510,7 +1510,7 @@ const ta = (n) => {
|
|
|
1510
1510
|
active: b = !1,
|
|
1511
1511
|
buttonExt: C
|
|
1512
1512
|
}) => {
|
|
1513
|
-
const
|
|
1513
|
+
const x = {
|
|
1514
1514
|
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${g} ${S && !f ? "smp-button-squared" : ""} ${b ? "smp-buttonActive" : ""} ${C ? `smp-buttonExt-${C}` : ""}`
|
|
1515
1515
|
};
|
|
1516
1516
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -1518,15 +1518,15 @@ const ta = (n) => {
|
|
|
1518
1518
|
{
|
|
1519
1519
|
"data-component": "button",
|
|
1520
1520
|
type: E ? "submit" : "button",
|
|
1521
|
-
className:
|
|
1521
|
+
className: x.container,
|
|
1522
1522
|
onClick: e,
|
|
1523
1523
|
"aria-label": t,
|
|
1524
1524
|
disabled: a,
|
|
1525
1525
|
"aria-busy": p,
|
|
1526
1526
|
title: d || w,
|
|
1527
|
-
children: p ? /* @__PURE__ */ m.jsx(
|
|
1527
|
+
children: p ? /* @__PURE__ */ m.jsx(ce, { icon: "spinner", state: an(o), spin: !0 }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
1528
1528
|
r && c && /* @__PURE__ */ m.jsx(
|
|
1529
|
-
|
|
1529
|
+
ce,
|
|
1530
1530
|
{
|
|
1531
1531
|
icon: r,
|
|
1532
1532
|
placeholderIcon: s,
|
|
@@ -1586,7 +1586,7 @@ const ta = (n) => {
|
|
|
1586
1586
|
selectedIndex: r,
|
|
1587
1587
|
onTabChange: s
|
|
1588
1588
|
}) => {
|
|
1589
|
-
const [a, i] = G(r ?? 0), [o, l] = G(!1), [c, f] = G(!1), u =
|
|
1589
|
+
const [a, i] = G(r ?? 0), [o, l] = G(!1), [c, f] = G(!1), u = ue(null);
|
|
1590
1590
|
if (ne(() => {
|
|
1591
1591
|
const b = u.current;
|
|
1592
1592
|
if (!b) return;
|
|
@@ -1647,7 +1647,7 @@ const ta = (n) => {
|
|
|
1647
1647
|
},
|
|
1648
1648
|
children: [
|
|
1649
1649
|
b.icon && /* @__PURE__ */ m.jsx(
|
|
1650
|
-
|
|
1650
|
+
ce,
|
|
1651
1651
|
{
|
|
1652
1652
|
icon: b.icon,
|
|
1653
1653
|
placeholderIcon: b.placeholderIcon
|
|
@@ -1661,12 +1661,12 @@ const ta = (n) => {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
),
|
|
1663
1663
|
t && (a === C ? /* @__PURE__ */ m.jsx(
|
|
1664
|
-
|
|
1664
|
+
ce,
|
|
1665
1665
|
{
|
|
1666
1666
|
icon: "more_vert",
|
|
1667
1667
|
isInteractable: !0,
|
|
1668
|
-
onClick: (
|
|
1669
|
-
|
|
1668
|
+
onClick: (x) => {
|
|
1669
|
+
x.stopPropagation(), console.log("clicked icon");
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
) : /* @__PURE__ */ m.jsx("span", { style: { width: "1rem" } }))
|
|
@@ -1714,20 +1714,20 @@ const ta = (n) => {
|
|
|
1714
1714
|
e.sections ?? [],
|
|
1715
1715
|
Object.keys(s)
|
|
1716
1716
|
), l = (d) => d.reduce((w, S) => {
|
|
1717
|
-
let E = "", b = {}, C = {},
|
|
1718
|
-
return S.sections?.length ? (E = pe["smp-layout-section-grid"], b = l(S.sections), S.gridCols === void 0 && (
|
|
1717
|
+
let E = "", b = {}, C = {}, x = "";
|
|
1718
|
+
return S.sections?.length ? (E = pe["smp-layout-section-grid"], b = l(S.sections), S.gridCols === void 0 && (x = pe[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], S.horizontal || Ut(S.sections) ? C = Vt(
|
|
1719
1719
|
S.sections,
|
|
1720
1720
|
S.horizontal ? a : i
|
|
1721
1721
|
) : C = {
|
|
1722
1722
|
[a]: "auto",
|
|
1723
1723
|
[i]: "auto"
|
|
1724
|
-
})) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = pe["smp-layout-section-grid"],
|
|
1724
|
+
})) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = pe["smp-layout-section-grid"], x = pe["smp-grid-template-cols"], C = {
|
|
1725
1725
|
[a]: `repeat(${S.gridCols}, 1fr)`
|
|
1726
1726
|
}) : E = pe["smp-layout-section-flex"]), {
|
|
1727
1727
|
...w,
|
|
1728
1728
|
...b,
|
|
1729
1729
|
[S.id]: {
|
|
1730
|
-
classes: `${E} ${pe[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${
|
|
1730
|
+
classes: `${E} ${pe[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${x} ${S.justify ? `smp-justifyContent-${S.justify}` : ""} ${S.align ? `smp-alignItems-${S.align}` : ""}`,
|
|
1731
1731
|
styles: C
|
|
1732
1732
|
}
|
|
1733
1733
|
};
|
|
@@ -1773,11 +1773,11 @@ const ta = (n) => {
|
|
|
1773
1773
|
const C = {
|
|
1774
1774
|
gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
|
|
1775
1775
|
gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
|
|
1776
|
-
},
|
|
1776
|
+
}, x = `${pe["smp-layout-cell-container"]} ${w ? `smp-justifyContent-${w}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
|
|
1777
1777
|
return /* @__PURE__ */ m.jsx(
|
|
1778
1778
|
"div",
|
|
1779
1779
|
{
|
|
1780
|
-
className:
|
|
1780
|
+
className: x,
|
|
1781
1781
|
style: C,
|
|
1782
1782
|
"smp-id": d.id,
|
|
1783
1783
|
children: E
|
|
@@ -1989,7 +1989,7 @@ function dt({
|
|
|
1989
1989
|
position: n = "bottom",
|
|
1990
1990
|
enabled: e = !0
|
|
1991
1991
|
}) {
|
|
1992
|
-
const t =
|
|
1992
|
+
const t = ue(null), r = ue(null), [s, a] = G(0), i = fe(() => {
|
|
1993
1993
|
const o = t.current, l = r.current;
|
|
1994
1994
|
if (!o || !l) return;
|
|
1995
1995
|
const { top: c, left: f, width: u, height: p } = o.getBoundingClientRect();
|
|
@@ -2000,8 +2000,8 @@ function dt({
|
|
|
2000
2000
|
return;
|
|
2001
2001
|
}
|
|
2002
2002
|
const w = window.scrollY, S = window.scrollX, E = window.innerWidth, b = window.innerHeight;
|
|
2003
|
-
let C = c + w,
|
|
2004
|
-
const
|
|
2003
|
+
let C = c + w, x = f + S, y = n;
|
|
2004
|
+
const L = {
|
|
2005
2005
|
top: c - g < 0,
|
|
2006
2006
|
bottom: c + p + g > b,
|
|
2007
2007
|
left: f - d < 0,
|
|
@@ -2009,16 +2009,16 @@ function dt({
|
|
|
2009
2009
|
};
|
|
2010
2010
|
switch (n) {
|
|
2011
2011
|
case "top":
|
|
2012
|
-
|
|
2012
|
+
L.top && !L.bottom && (y = "bottom");
|
|
2013
2013
|
break;
|
|
2014
2014
|
case "bottom":
|
|
2015
|
-
|
|
2015
|
+
L.bottom && !L.top && (y = "top");
|
|
2016
2016
|
break;
|
|
2017
2017
|
case "left":
|
|
2018
|
-
|
|
2018
|
+
L.left && !L.right && (y = "right");
|
|
2019
2019
|
break;
|
|
2020
2020
|
case "right":
|
|
2021
|
-
|
|
2021
|
+
L.right && !L.left && (y = "left");
|
|
2022
2022
|
break;
|
|
2023
2023
|
}
|
|
2024
2024
|
switch (y) {
|
|
@@ -2029,20 +2029,20 @@ function dt({
|
|
|
2029
2029
|
C = c + w + p;
|
|
2030
2030
|
break;
|
|
2031
2031
|
case "left":
|
|
2032
|
-
|
|
2032
|
+
x = f + S - d;
|
|
2033
2033
|
break;
|
|
2034
2034
|
case "right":
|
|
2035
|
-
|
|
2035
|
+
x = f + S + u;
|
|
2036
2036
|
break;
|
|
2037
2037
|
}
|
|
2038
2038
|
C = Math.max(
|
|
2039
2039
|
w,
|
|
2040
2040
|
Math.min(C, w + b - g)
|
|
2041
|
-
),
|
|
2041
|
+
), x = Math.max(
|
|
2042
2042
|
S,
|
|
2043
|
-
Math.min(
|
|
2043
|
+
Math.min(x, S + E - d)
|
|
2044
2044
|
), requestAnimationFrame(() => {
|
|
2045
|
-
l.style.transform = `translate(${
|
|
2045
|
+
l.style.transform = `translate(${x}px, ${C}px)`, l.style.opacity = "1";
|
|
2046
2046
|
});
|
|
2047
2047
|
}, [n]);
|
|
2048
2048
|
return Fn(() => {
|
|
@@ -2120,76 +2120,88 @@ const Re = (n, e, t) => {
|
|
|
2120
2120
|
helperText: S = !1,
|
|
2121
2121
|
error: E,
|
|
2122
2122
|
appearance: b = "base",
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2123
|
+
isClearable: C = !1,
|
|
2124
|
+
fullWidth: x = !1,
|
|
2125
|
+
_dataComponent: y = "textfield",
|
|
2126
|
+
min: L,
|
|
2127
|
+
max: j,
|
|
2128
|
+
step: O,
|
|
2129
|
+
inputMode: k = "text",
|
|
2130
|
+
width: R,
|
|
2131
|
+
autocomplete: D,
|
|
2132
|
+
size: T,
|
|
2133
|
+
maxLength: P,
|
|
2134
|
+
onBlur: N,
|
|
2135
|
+
onChange: H,
|
|
2135
2136
|
onKeyDown: B,
|
|
2136
|
-
onShapeIconClick:
|
|
2137
|
-
onClick:
|
|
2137
|
+
onShapeIconClick: z,
|
|
2138
|
+
onClick: Z
|
|
2138
2139
|
}) => {
|
|
2139
|
-
const
|
|
2140
|
-
|
|
2141
|
-
}, _ = {
|
|
2142
|
-
|
|
2143
|
-
|
|
2140
|
+
const F = we(), h = `${F}-helper`, v = E ? "danger" : o, $ = S || !!E, A = (U) => {
|
|
2141
|
+
H?.(U.target.value);
|
|
2142
|
+
}, _ = () => {
|
|
2143
|
+
e && e != "" && H?.("");
|
|
2144
|
+
}, I = {
|
|
2145
|
+
wrapper: `${me["smp-textfield-wrapper"]} ${x ? me["smp-textfield-fullWidth"] : ""}`,
|
|
2146
|
+
container: `${me["smp-textfield"]} ${n ? me["smp-textfield-disabled"] : ""} ${r ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${v ? me[`smp-textfield-${v}`] : ""} ${b ? me[`smp-textfield-${b}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
|
|
2144
2147
|
input: `${me["smp-textfield-input"]}`
|
|
2145
2148
|
};
|
|
2146
2149
|
if (l && (l !== "notSelectable" || s)) {
|
|
2147
|
-
const
|
|
2148
|
-
|
|
2150
|
+
const U = me[`smp-textfield-variant-${l}`];
|
|
2151
|
+
U && (I.container += ` ${U}`);
|
|
2149
2152
|
}
|
|
2150
|
-
const
|
|
2151
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
2152
|
-
w && /* @__PURE__ */ m.jsx(Ee, { label: w, disabled: n, htmlFor:
|
|
2153
|
+
const V = R ? { "--smp-textField-width-base": R } : void 0;
|
|
2154
|
+
return /* @__PURE__ */ m.jsxs("div", { className: I.wrapper, "data-component": y, children: [
|
|
2155
|
+
w && /* @__PURE__ */ m.jsx(Ee, { label: w, disabled: n, htmlFor: F }),
|
|
2153
2156
|
/* @__PURE__ */ m.jsxs(
|
|
2154
2157
|
"div",
|
|
2155
2158
|
{
|
|
2156
|
-
className:
|
|
2159
|
+
className: I.container,
|
|
2157
2160
|
ref: u,
|
|
2158
|
-
style:
|
|
2161
|
+
style: V,
|
|
2159
2162
|
children: [
|
|
2160
|
-
t && /* @__PURE__ */ m.jsx(
|
|
2163
|
+
t && /* @__PURE__ */ m.jsx(ce, { icon: t, disabled: n }),
|
|
2161
2164
|
/* @__PURE__ */ m.jsx(
|
|
2162
2165
|
"input",
|
|
2163
2166
|
{
|
|
2164
|
-
id:
|
|
2167
|
+
id: F,
|
|
2165
2168
|
type: g,
|
|
2166
2169
|
value: e,
|
|
2167
2170
|
placeholder: r,
|
|
2168
|
-
onChange:
|
|
2169
|
-
onBlur:
|
|
2170
|
-
className:
|
|
2171
|
+
onChange: A,
|
|
2172
|
+
onBlur: N,
|
|
2173
|
+
className: I.input,
|
|
2171
2174
|
disabled: n,
|
|
2172
2175
|
readOnly: !s,
|
|
2173
2176
|
onKeyDown: B,
|
|
2174
2177
|
"aria-label": d,
|
|
2175
2178
|
ref: p,
|
|
2176
|
-
"aria-describedby":
|
|
2177
|
-
min:
|
|
2178
|
-
max:
|
|
2179
|
-
step:
|
|
2180
|
-
inputMode:
|
|
2181
|
-
autoComplete:
|
|
2182
|
-
size:
|
|
2183
|
-
maxLength:
|
|
2184
|
-
onClick:
|
|
2179
|
+
"aria-describedby": $ ? h : void 0,
|
|
2180
|
+
min: L,
|
|
2181
|
+
max: j,
|
|
2182
|
+
step: O,
|
|
2183
|
+
inputMode: k,
|
|
2184
|
+
autoComplete: D,
|
|
2185
|
+
size: T,
|
|
2186
|
+
maxLength: P,
|
|
2187
|
+
onClick: Z
|
|
2188
|
+
}
|
|
2189
|
+
),
|
|
2190
|
+
C && /* @__PURE__ */ m.jsx(
|
|
2191
|
+
ce,
|
|
2192
|
+
{
|
|
2193
|
+
icon: "clear",
|
|
2194
|
+
onClick: () => _(),
|
|
2195
|
+
tabIndex: 0,
|
|
2196
|
+
isInteractable: !0
|
|
2185
2197
|
}
|
|
2186
2198
|
),
|
|
2187
2199
|
a && /* @__PURE__ */ m.jsx(
|
|
2188
|
-
|
|
2200
|
+
ce,
|
|
2189
2201
|
{
|
|
2190
2202
|
icon: a,
|
|
2191
2203
|
disabled: n,
|
|
2192
|
-
onClick:
|
|
2204
|
+
onClick: z,
|
|
2193
2205
|
rotated: f,
|
|
2194
2206
|
isInteractable: s,
|
|
2195
2207
|
tabIndex: 0
|
|
@@ -2198,13 +2210,13 @@ const Re = (n, e, t) => {
|
|
|
2198
2210
|
]
|
|
2199
2211
|
}
|
|
2200
2212
|
),
|
|
2201
|
-
|
|
2213
|
+
$ && /* @__PURE__ */ m.jsx(
|
|
2202
2214
|
$n,
|
|
2203
2215
|
{
|
|
2204
2216
|
helperText: E,
|
|
2205
2217
|
disabled: n,
|
|
2206
|
-
state:
|
|
2207
|
-
id:
|
|
2218
|
+
state: v,
|
|
2219
|
+
id: h
|
|
2208
2220
|
}
|
|
2209
2221
|
)
|
|
2210
2222
|
] });
|
|
@@ -2215,7 +2227,7 @@ function kn({
|
|
|
2215
2227
|
containerHeight: t,
|
|
2216
2228
|
overscan: r = 5
|
|
2217
2229
|
}) {
|
|
2218
|
-
const [s, a] = G(0), i =
|
|
2230
|
+
const [s, a] = G(0), i = ue(null), o = n.length * e, l = Math.max(0, Math.floor(s / e) - r), c = Math.min(
|
|
2219
2231
|
n.length - 1,
|
|
2220
2232
|
Math.floor((s + t) / e) + r
|
|
2221
2233
|
), f = [];
|
|
@@ -2225,7 +2237,7 @@ function kn({
|
|
|
2225
2237
|
index: g,
|
|
2226
2238
|
offsetTop: g * e
|
|
2227
2239
|
});
|
|
2228
|
-
const u =
|
|
2240
|
+
const u = fe((g) => {
|
|
2229
2241
|
const d = g.target.scrollTop;
|
|
2230
2242
|
a(d);
|
|
2231
2243
|
}, []), p = (g) => {
|
|
@@ -2295,12 +2307,12 @@ const Tr = 10, Ln = ({
|
|
|
2295
2307
|
}) => {
|
|
2296
2308
|
const [u, p] = G(""), g = 40, [d, w] = G(
|
|
2297
2309
|
a !== null ? a : -1
|
|
2298
|
-
), [S, E] = G(o || 200), b =
|
|
2310
|
+
), [S, E] = G(o || 200), b = ue(null), C = s !== void 0 ? s : e.length > Tr, x = u ? e.filter(
|
|
2299
2311
|
(N) => N.label.toLowerCase().includes(u.toLowerCase())
|
|
2300
2312
|
) : e, y = (N) => {
|
|
2301
2313
|
p(N);
|
|
2302
|
-
}, { virtualItems:
|
|
2303
|
-
items:
|
|
2314
|
+
}, { virtualItems: L, containerProps: j, innerProps: O, scrollToIndex: k } = kn({
|
|
2315
|
+
items: x,
|
|
2304
2316
|
itemHeight: g,
|
|
2305
2317
|
containerHeight: 200,
|
|
2306
2318
|
overscan: 5
|
|
@@ -2308,8 +2320,8 @@ const Tr = 10, Ln = ({
|
|
|
2308
2320
|
ne(() => {
|
|
2309
2321
|
a !== null && a !== d && w(a);
|
|
2310
2322
|
}, [a]), ne(() => {
|
|
2311
|
-
d >= 0 && d <
|
|
2312
|
-
}, [d,
|
|
2323
|
+
d >= 0 && d < x.length && k(d);
|
|
2324
|
+
}, [d, x]), ne(() => {
|
|
2313
2325
|
f && b?.current && b.current.focus();
|
|
2314
2326
|
}, [f, b]), ne(() => {
|
|
2315
2327
|
const N = Cr(e, t);
|
|
@@ -2318,15 +2330,15 @@ const Tr = 10, Ln = ({
|
|
|
2318
2330
|
const R = (N) => {
|
|
2319
2331
|
if (N.key === "ArrowDown" || N.key === "ArrowUp") {
|
|
2320
2332
|
N.preventDefault();
|
|
2321
|
-
let
|
|
2322
|
-
N.key === "ArrowDown" ?
|
|
2323
|
-
} else N.key === "Enter" ? d >= 0 && d <
|
|
2333
|
+
let H = d;
|
|
2334
|
+
N.key === "ArrowDown" ? H = d < x.length - 1 ? d + 1 : 0 : N.key === "ArrowUp" && (H = d > 0 ? d - 1 : x.length - 1), w(H);
|
|
2335
|
+
} else N.key === "Enter" ? d >= 0 && d < x.length && l?.(x[d]) : N.key === "Escape" && (N.preventDefault(), N.stopPropagation());
|
|
2324
2336
|
c && c(N);
|
|
2325
2337
|
}, D = (N) => {
|
|
2326
2338
|
R(N);
|
|
2327
2339
|
}, T = (N) => {
|
|
2328
2340
|
R(N);
|
|
2329
|
-
},
|
|
2341
|
+
}, P = {
|
|
2330
2342
|
wrapper: `${Qe["smp-list"]}`,
|
|
2331
2343
|
container: `${Qe["smp-list-container"]}`,
|
|
2332
2344
|
virtualScroll: `${Qe["smp-list-virtualScroll"]}`,
|
|
@@ -2337,7 +2349,7 @@ const Tr = 10, Ln = ({
|
|
|
2337
2349
|
{
|
|
2338
2350
|
id: n,
|
|
2339
2351
|
ref: r,
|
|
2340
|
-
className:
|
|
2352
|
+
className: P.wrapper,
|
|
2341
2353
|
"data-component": "list",
|
|
2342
2354
|
style: {
|
|
2343
2355
|
width: S,
|
|
@@ -2358,14 +2370,14 @@ const Tr = 10, Ln = ({
|
|
|
2358
2370
|
/* @__PURE__ */ m.jsx(
|
|
2359
2371
|
"div",
|
|
2360
2372
|
{
|
|
2361
|
-
...
|
|
2362
|
-
className:
|
|
2373
|
+
...j,
|
|
2374
|
+
className: P.container,
|
|
2363
2375
|
tabIndex: 0,
|
|
2364
2376
|
role: "listbox",
|
|
2365
2377
|
"aria-label": "List",
|
|
2366
2378
|
onKeyDown: T,
|
|
2367
|
-
"aria-activedescendant": d >= 0 && d <
|
|
2368
|
-
children: /* @__PURE__ */ m.jsx("div", { ...O, className:
|
|
2379
|
+
"aria-activedescendant": d >= 0 && d < x.length ? x[d]?.id : void 0,
|
|
2380
|
+
children: /* @__PURE__ */ m.jsx("div", { ...O, className: P.virtualScroll, children: L.map(({ item: N, index: H, offsetTop: B }) => {
|
|
2369
2381
|
const z = i.includes(N.id);
|
|
2370
2382
|
return (
|
|
2371
2383
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2374,22 +2386,22 @@ const Tr = 10, Ln = ({
|
|
|
2374
2386
|
{
|
|
2375
2387
|
role: "option",
|
|
2376
2388
|
id: N.id,
|
|
2377
|
-
"aria-selected": d ===
|
|
2389
|
+
"aria-selected": d === H ? "true" : "false",
|
|
2378
2390
|
tabIndex: -1,
|
|
2379
|
-
className: `${
|
|
2391
|
+
className: `${P.listItem} ${d === H ? "selected-item" : ""}`,
|
|
2380
2392
|
"aria-label": N.id + "-" + N.label,
|
|
2381
2393
|
style: {
|
|
2382
2394
|
height: `${g}px`,
|
|
2383
2395
|
lineHeight: `calc(${g}px - 2*2px)`,
|
|
2384
2396
|
// lineHeight - 2*padding
|
|
2385
|
-
transform: `translateY(${
|
|
2397
|
+
transform: `translateY(${B}px)`
|
|
2386
2398
|
},
|
|
2387
2399
|
onClick: () => {
|
|
2388
|
-
l?.(N), w(
|
|
2400
|
+
l?.(N), w(H);
|
|
2389
2401
|
},
|
|
2390
2402
|
children: [
|
|
2391
2403
|
Re(N.id, N.label, t),
|
|
2392
|
-
z && /* @__PURE__ */ m.jsx(
|
|
2404
|
+
z && /* @__PURE__ */ m.jsx(ce, { icon: "check", width: 16 })
|
|
2393
2405
|
]
|
|
2394
2406
|
},
|
|
2395
2407
|
N.id
|
|
@@ -2418,7 +2430,7 @@ const Tr = 10, Ln = ({
|
|
|
2418
2430
|
);
|
|
2419
2431
|
}, [t, n]), /* @__PURE__ */ m.jsx(je, { ...r, bindValue: s });
|
|
2420
2432
|
}, Or = (n) => {
|
|
2421
|
-
const e =
|
|
2433
|
+
const e = ue(null);
|
|
2422
2434
|
return ne(() => () => {
|
|
2423
2435
|
e.current && clearTimeout(e.current);
|
|
2424
2436
|
}, []), (r) => {
|
|
@@ -2786,71 +2798,71 @@ class ut extends mt {
|
|
|
2786
2798
|
} : o;
|
|
2787
2799
|
const g = this.resolve(e, s);
|
|
2788
2800
|
let d = g?.res;
|
|
2789
|
-
const w = g?.usedKey || o, S = g?.exactUsedKey || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject,
|
|
2801
|
+
const w = g?.usedKey || o, S = g?.exactUsedKey || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, x = s.count !== void 0 && !K(s.count), y = ut.hasDefaultValue(s), L = x ? this.pluralResolver.getSuffix(u, s.count, s) : "", j = s.ordinal && x ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2790
2802
|
ordinal: !1
|
|
2791
|
-
}) : "", O =
|
|
2803
|
+
}) : "", O = x && !s.ordinal && s.count === 0, k = O && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${j}`] || s.defaultValue;
|
|
2792
2804
|
let R = d;
|
|
2793
|
-
C && !d && y && (R =
|
|
2805
|
+
C && !d && y && (R = k);
|
|
2794
2806
|
const D = hn(R), T = Object.prototype.toString.apply(R);
|
|
2795
2807
|
if (C && R && D && E.indexOf(T) < 0 && !(K(b) && Array.isArray(R))) {
|
|
2796
2808
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2797
2809
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2798
|
-
const
|
|
2810
|
+
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(w, R, {
|
|
2799
2811
|
...s,
|
|
2800
2812
|
ns: l
|
|
2801
2813
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2802
|
-
return a ? (g.res =
|
|
2814
|
+
return a ? (g.res = P, g.usedParams = this.getUsedParamsDetails(s), g) : P;
|
|
2803
2815
|
}
|
|
2804
2816
|
if (i) {
|
|
2805
|
-
const
|
|
2806
|
-
for (const
|
|
2807
|
-
if (Object.prototype.hasOwnProperty.call(R,
|
|
2808
|
-
const z = `${
|
|
2809
|
-
y && !d ? N[
|
|
2817
|
+
const P = Array.isArray(R), N = P ? [] : {}, H = P ? S : w;
|
|
2818
|
+
for (const B in R)
|
|
2819
|
+
if (Object.prototype.hasOwnProperty.call(R, B)) {
|
|
2820
|
+
const z = `${H}${i}${B}`;
|
|
2821
|
+
y && !d ? N[B] = this.translate(z, {
|
|
2810
2822
|
...s,
|
|
2811
|
-
defaultValue: hn(
|
|
2823
|
+
defaultValue: hn(k) ? k[B] : void 0,
|
|
2812
2824
|
joinArrays: !1,
|
|
2813
2825
|
ns: l
|
|
2814
|
-
}) : N[
|
|
2826
|
+
}) : N[B] = this.translate(z, {
|
|
2815
2827
|
...s,
|
|
2816
2828
|
joinArrays: !1,
|
|
2817
2829
|
ns: l
|
|
2818
|
-
}), N[
|
|
2830
|
+
}), N[B] === z && (N[B] = R[B]);
|
|
2819
2831
|
}
|
|
2820
2832
|
d = N;
|
|
2821
2833
|
}
|
|
2822
2834
|
} else if (C && K(b) && Array.isArray(d))
|
|
2823
2835
|
d = d.join(b), d && (d = this.extendTranslation(d, e, s, r));
|
|
2824
2836
|
else {
|
|
2825
|
-
let
|
|
2826
|
-
!this.isValidLookup(d) && y && (
|
|
2827
|
-
const
|
|
2828
|
-
if (N ||
|
|
2829
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ?
|
|
2830
|
-
const
|
|
2837
|
+
let P = !1, N = !1;
|
|
2838
|
+
!this.isValidLookup(d) && y && (P = !0, d = k), this.isValidLookup(d) || (N = !0, d = o);
|
|
2839
|
+
const B = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : d, z = y && k !== d && this.options.updateMissing;
|
|
2840
|
+
if (N || P || z) {
|
|
2841
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? k : d), i) {
|
|
2842
|
+
const v = this.resolve(o, {
|
|
2831
2843
|
...s,
|
|
2832
2844
|
keySeparator: !1
|
|
2833
2845
|
});
|
|
2834
|
-
|
|
2846
|
+
v && v.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2835
2847
|
}
|
|
2836
|
-
let
|
|
2848
|
+
let Z = [];
|
|
2837
2849
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2838
2850
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
|
2839
|
-
for (let
|
|
2840
|
-
|
|
2841
|
-
else this.options.saveMissingTo === "all" ?
|
|
2842
|
-
const h = (
|
|
2843
|
-
const
|
|
2844
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2851
|
+
for (let v = 0; v < F.length; v++)
|
|
2852
|
+
Z.push(F[v]);
|
|
2853
|
+
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
|
|
2854
|
+
const h = (v, $, A) => {
|
|
2855
|
+
const _ = y && A !== d ? A : B;
|
|
2856
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, $, _, z, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(v, c, $, _, z, s), this.emit("missingKey", v, c, $, d);
|
|
2845
2857
|
};
|
|
2846
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2847
|
-
const $ = this.pluralResolver.getSuffixes(
|
|
2848
|
-
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((
|
|
2849
|
-
h([
|
|
2858
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((v) => {
|
|
2859
|
+
const $ = this.pluralResolver.getSuffixes(v, s);
|
|
2860
|
+
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((A) => {
|
|
2861
|
+
h([v], o + A, s[`defaultValue${A}`] || k);
|
|
2850
2862
|
});
|
|
2851
|
-
}) : h(
|
|
2863
|
+
}) : h(Z, o, k));
|
|
2852
2864
|
}
|
|
2853
|
-
d = this.extendTranslation(d, e, s, g, r), N && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (N ||
|
|
2865
|
+
d = this.extendTranslation(d, e, s, g, r), N && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (N || P) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, P ? d : void 0, s));
|
|
2854
2866
|
}
|
|
2855
2867
|
return a ? (g.res = d, g.usedParams = this.getUsedParamsDetails(s), g) : d;
|
|
2856
2868
|
}
|
|
@@ -2912,12 +2924,12 @@ class ut extends mt {
|
|
|
2912
2924
|
if (this.i18nFormat?.addLookupKeys)
|
|
2913
2925
|
this.i18nFormat.addLookupKeys(b, f, E, S, t);
|
|
2914
2926
|
else {
|
|
2915
|
-
let
|
|
2916
|
-
p && (
|
|
2917
|
-
const y = `${this.options.pluralSeparator}zero`,
|
|
2918
|
-
if (p && (b.push(f +
|
|
2919
|
-
const
|
|
2920
|
-
b.push(
|
|
2927
|
+
let x;
|
|
2928
|
+
p && (x = this.pluralResolver.getSuffix(E, t.count, t));
|
|
2929
|
+
const y = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2930
|
+
if (p && (b.push(f + x), t.ordinal && x.indexOf(L) === 0 && b.push(f + x.replace(L, this.options.pluralSeparator)), g && b.push(f + y)), d) {
|
|
2931
|
+
const j = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2932
|
+
b.push(j), p && (b.push(j + x), t.ordinal && x.indexOf(L) === 0 && b.push(j + x.replace(L, this.options.pluralSeparator)), g && b.push(j + y));
|
|
2921
2933
|
}
|
|
2922
2934
|
}
|
|
2923
2935
|
let C;
|
|
@@ -3868,10 +3880,10 @@ oe.init({
|
|
|
3868
3880
|
});
|
|
3869
3881
|
const ls = (n, e, t, r) => oe.format(n, e, t || oe.language, r), cs = (n, e) => oe.t(n, e);
|
|
3870
3882
|
function $e() {
|
|
3871
|
-
const n =
|
|
3883
|
+
const n = fe(
|
|
3872
3884
|
(r, s, a, i) => ls(r, s, a || void 0, i),
|
|
3873
3885
|
[]
|
|
3874
|
-
), e =
|
|
3886
|
+
), e = fe(() => oe.languages[0], []), t = fe(
|
|
3875
3887
|
(r, s) => cs(r, s),
|
|
3876
3888
|
[]
|
|
3877
3889
|
);
|
|
@@ -3884,51 +3896,52 @@ const Pn = ({
|
|
|
3884
3896
|
options: t,
|
|
3885
3897
|
displayMode: r,
|
|
3886
3898
|
listDisplayMode: s = "Both",
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3899
|
+
isClearable: a = !1,
|
|
3900
|
+
minimumChars: i = 3,
|
|
3901
|
+
isEditable: o = !0,
|
|
3902
|
+
fun: l,
|
|
3903
|
+
_changeOnEnter: c = !1,
|
|
3904
|
+
onChange: f,
|
|
3905
|
+
onOptionsRequest: u,
|
|
3906
|
+
onBlur: p,
|
|
3907
|
+
_multiActiveIndex: g,
|
|
3908
|
+
...d
|
|
3896
3909
|
}) => {
|
|
3897
|
-
const
|
|
3910
|
+
const w = ue(null), [S, E] = G(n), [b, C] = G(e), { translate: x } = $e(), [y, L] = G(!1), [j, O] = G(t || []), [k, R] = G(0), [D, T] = G([n]), { anchorRef: P, targetRef: N, anchorWidth: H } = dt({
|
|
3898
3911
|
position: "bottom",
|
|
3899
|
-
enabled:
|
|
3900
|
-
}), B =
|
|
3901
|
-
|
|
3912
|
+
enabled: y
|
|
3913
|
+
}), B = fe(() => {
|
|
3914
|
+
L(!1), w?.current?.focus();
|
|
3902
3915
|
}, []);
|
|
3903
|
-
ht([
|
|
3904
|
-
const
|
|
3905
|
-
_.length >=
|
|
3906
|
-
},
|
|
3907
|
-
|
|
3908
|
-
if (
|
|
3909
|
-
const
|
|
3910
|
-
|
|
3916
|
+
ht([N], y, () => B());
|
|
3917
|
+
const z = Or(400), Z = (_) => {
|
|
3918
|
+
_.length >= i ? F(_) : B(), E(_), C(e), c || f?.(_, e);
|
|
3919
|
+
}, F = (_) => {
|
|
3920
|
+
z(async () => {
|
|
3921
|
+
if (l && u) {
|
|
3922
|
+
const I = await u(l, _);
|
|
3923
|
+
O(I), R(I.length > 0 ? 0 : -1), L(!0);
|
|
3911
3924
|
}
|
|
3912
3925
|
});
|
|
3913
|
-
},
|
|
3914
|
-
|
|
3915
|
-
},
|
|
3916
|
-
|
|
3917
|
-
const
|
|
3918
|
-
|
|
3919
|
-
}, x = (_) => {
|
|
3920
|
-
_.key === "Escape" && (B(), L(-1));
|
|
3926
|
+
}, h = () => {
|
|
3927
|
+
y || p?.();
|
|
3928
|
+
}, v = (_) => {
|
|
3929
|
+
c ? (E(""), C("")) : (E(_.id), C(_.label)), f?.(_.id, _.label);
|
|
3930
|
+
const I = j.findIndex((V) => V.id === _.id);
|
|
3931
|
+
R(I), T([_.id]), B();
|
|
3921
3932
|
}, $ = (_) => {
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3933
|
+
_.key === "Escape" && (B(), R(-1));
|
|
3934
|
+
}, A = (_) => {
|
|
3935
|
+
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), y)) {
|
|
3936
|
+
const I = _.key === "ArrowDown" ? (k + 1) % j.length : (k - 1 + j.length) % j.length;
|
|
3937
|
+
R(I);
|
|
3925
3938
|
}
|
|
3926
3939
|
switch (_.key) {
|
|
3927
3940
|
case "Enter":
|
|
3928
|
-
|
|
3941
|
+
k >= 0 && k < j.length ? v(j[k]) : c && (f?.(S, ""), B(), E(""), C(""));
|
|
3929
3942
|
break;
|
|
3930
3943
|
case "Escape":
|
|
3931
|
-
B(),
|
|
3944
|
+
B(), R(-1);
|
|
3932
3945
|
break;
|
|
3933
3946
|
}
|
|
3934
3947
|
};
|
|
@@ -3936,37 +3949,38 @@ const Pn = ({
|
|
|
3936
3949
|
/* @__PURE__ */ m.jsx(
|
|
3937
3950
|
At,
|
|
3938
3951
|
{
|
|
3939
|
-
...
|
|
3940
|
-
bindValue:
|
|
3941
|
-
optionalDisplayValue:
|
|
3952
|
+
...d,
|
|
3953
|
+
bindValue: S,
|
|
3954
|
+
optionalDisplayValue: b,
|
|
3942
3955
|
displayMode: r,
|
|
3943
|
-
isEditable:
|
|
3956
|
+
isEditable: o,
|
|
3944
3957
|
shapeIcon: "magnify",
|
|
3945
|
-
placeholder:
|
|
3958
|
+
placeholder: x(
|
|
3946
3959
|
Te.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3947
3960
|
),
|
|
3948
|
-
ref:
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3961
|
+
ref: P,
|
|
3962
|
+
isClearable: a,
|
|
3963
|
+
inputRef: w,
|
|
3964
|
+
onChange: Z,
|
|
3965
|
+
onKeyDown: A,
|
|
3966
|
+
onBlur: h,
|
|
3967
|
+
onShapeIconClick: () => F(S),
|
|
3954
3968
|
"aria-autocomplete": "list"
|
|
3955
3969
|
}
|
|
3956
3970
|
),
|
|
3957
|
-
|
|
3971
|
+
y && /* @__PURE__ */ m.jsx(pt, { children: /* @__PURE__ */ m.jsx(
|
|
3958
3972
|
Ln,
|
|
3959
3973
|
{
|
|
3960
|
-
options:
|
|
3974
|
+
options: j,
|
|
3961
3975
|
displayMode: s,
|
|
3962
|
-
onClick:
|
|
3963
|
-
ref:
|
|
3964
|
-
selectedIndex:
|
|
3965
|
-
activeIndex:
|
|
3966
|
-
width:
|
|
3976
|
+
onClick: v,
|
|
3977
|
+
ref: N,
|
|
3978
|
+
selectedIndex: k,
|
|
3979
|
+
activeIndex: g || D,
|
|
3980
|
+
width: H,
|
|
3967
3981
|
showFilter: !1,
|
|
3968
|
-
onKeyDown:
|
|
3969
|
-
isOpen:
|
|
3982
|
+
onKeyDown: $,
|
|
3983
|
+
isOpen: y
|
|
3970
3984
|
}
|
|
3971
3985
|
) })
|
|
3972
3986
|
] });
|
|
@@ -3998,7 +4012,7 @@ const Pn = ({
|
|
|
3998
4012
|
}, [w, e, d]);
|
|
3999
4013
|
const E = {
|
|
4000
4014
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${r}`
|
|
4001
|
-
}, b = w?.map((C,
|
|
4015
|
+
}, b = w?.map((C, x) => {
|
|
4002
4016
|
const y = {
|
|
4003
4017
|
bindValue: C.id,
|
|
4004
4018
|
optionalDisplayValue: C.label,
|
|
@@ -4017,7 +4031,7 @@ const Pn = ({
|
|
|
4017
4031
|
g?.(C.id, C.fun);
|
|
4018
4032
|
}
|
|
4019
4033
|
};
|
|
4020
|
-
return /* @__PURE__ */ m.jsx(Se, { ...y }, `button-${
|
|
4034
|
+
return /* @__PURE__ */ m.jsx(Se, { ...y }, `button-${x}`);
|
|
4021
4035
|
});
|
|
4022
4036
|
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: b });
|
|
4023
4037
|
}, fs = {
|
|
@@ -4091,10 +4105,10 @@ const Pn = ({
|
|
|
4091
4105
|
"--smp-chips-backgroundColor-base": a
|
|
4092
4106
|
},
|
|
4093
4107
|
children: [
|
|
4094
|
-
i && /* @__PURE__ */ m.jsx(
|
|
4108
|
+
i && /* @__PURE__ */ m.jsx(ce, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4095
4109
|
/* @__PURE__ */ m.jsx(_e, { variant: "label", bindValue: w, color: s }),
|
|
4096
4110
|
e && /* @__PURE__ */ m.jsx(
|
|
4097
|
-
|
|
4111
|
+
ce,
|
|
4098
4112
|
{
|
|
4099
4113
|
icon: "close",
|
|
4100
4114
|
isInteractable: !0,
|
|
@@ -4106,7 +4120,7 @@ const Pn = ({
|
|
|
4106
4120
|
},
|
|
4107
4121
|
`chip-${d}`
|
|
4108
4122
|
), E = i && d < n.length - 1 ? /* @__PURE__ */ m.jsx(
|
|
4109
|
-
|
|
4123
|
+
ce,
|
|
4110
4124
|
{
|
|
4111
4125
|
icon: "chevron-right",
|
|
4112
4126
|
color: s
|
|
@@ -4117,7 +4131,7 @@ const Pn = ({
|
|
|
4117
4131
|
}) });
|
|
4118
4132
|
};
|
|
4119
4133
|
function Pt(n, e) {
|
|
4120
|
-
const t =
|
|
4134
|
+
const t = ue(null);
|
|
4121
4135
|
ne(() => {
|
|
4122
4136
|
if (!n) return;
|
|
4123
4137
|
const r = typeof e == "object" && e !== null && "current" in e ? e.current : null;
|
|
@@ -4167,33 +4181,33 @@ const ps = ({
|
|
|
4167
4181
|
multiActiveIndex: c,
|
|
4168
4182
|
...f
|
|
4169
4183
|
}) => {
|
|
4170
|
-
const u =
|
|
4184
|
+
const u = ue(null), [p, g] = G(!1), [d, w] = G(t), [S, E] = G(-1), [b, C] = G([n]), x = we(), { anchorRef: y, targetRef: L, anchorWidth: j } = dt({
|
|
4171
4185
|
position: "bottom",
|
|
4172
4186
|
enabled: p
|
|
4173
|
-
}), O =
|
|
4187
|
+
}), O = fe(() => {
|
|
4174
4188
|
g(!1), u?.current?.focus();
|
|
4175
4189
|
}, []);
|
|
4176
|
-
ht([
|
|
4177
|
-
const
|
|
4178
|
-
e?.(
|
|
4179
|
-
const N = d.findIndex((
|
|
4180
|
-
E(N), C([
|
|
4181
|
-
}, R = (
|
|
4182
|
-
|
|
4183
|
-
}, D = (
|
|
4184
|
-
(
|
|
4190
|
+
ht([L, y], p, () => O()), Pt(p, L);
|
|
4191
|
+
const k = (P) => {
|
|
4192
|
+
e?.(P.id, P.label);
|
|
4193
|
+
const N = d.findIndex((H) => H.id === P.id);
|
|
4194
|
+
E(N), C([P.id]), O();
|
|
4195
|
+
}, R = (P) => {
|
|
4196
|
+
P.key === "Escape" && (O(), E(-1));
|
|
4197
|
+
}, D = (P) => {
|
|
4198
|
+
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), T());
|
|
4185
4199
|
}, T = () => {
|
|
4186
|
-
s && (o && l ? p ? g(!1) : l(o, void 0).then((
|
|
4187
|
-
w(
|
|
4188
|
-
}) : g((
|
|
4200
|
+
s && (o && l ? p ? g(!1) : l(o, void 0).then((P) => {
|
|
4201
|
+
w(P), E(P.length > 0 ? 0 : -1), g(!0);
|
|
4202
|
+
}) : g((P) => !P));
|
|
4189
4203
|
};
|
|
4190
4204
|
return /* @__PURE__ */ m.jsxs(
|
|
4191
4205
|
"div",
|
|
4192
4206
|
{
|
|
4193
4207
|
role: "combobox",
|
|
4194
4208
|
"aria-expanded": p,
|
|
4195
|
-
"aria-controls":
|
|
4196
|
-
"aria-owns":
|
|
4209
|
+
"aria-controls": x,
|
|
4210
|
+
"aria-owns": x,
|
|
4197
4211
|
"data-component": "combobox",
|
|
4198
4212
|
children: [
|
|
4199
4213
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4218,15 +4232,15 @@ const ps = ({
|
|
|
4218
4232
|
p && /* @__PURE__ */ m.jsx(pt, { children: /* @__PURE__ */ m.jsx(
|
|
4219
4233
|
Ln,
|
|
4220
4234
|
{
|
|
4221
|
-
id:
|
|
4235
|
+
id: x,
|
|
4222
4236
|
options: d,
|
|
4223
4237
|
displayMode: i,
|
|
4224
|
-
ref:
|
|
4238
|
+
ref: L,
|
|
4225
4239
|
isOpen: p,
|
|
4226
4240
|
selectedIndex: S,
|
|
4227
4241
|
activeIndex: c || b,
|
|
4228
|
-
width:
|
|
4229
|
-
onClick:
|
|
4242
|
+
width: j,
|
|
4243
|
+
onClick: k,
|
|
4230
4244
|
onKeyDown: R
|
|
4231
4245
|
}
|
|
4232
4246
|
) })
|
|
@@ -4255,7 +4269,7 @@ function ms({
|
|
|
4255
4269
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4256
4270
|
), [d, w] = G(
|
|
4257
4271
|
l ? l.getDate() : null
|
|
4258
|
-
), S =
|
|
4272
|
+
), S = ue(null), E = ue([]), b = [
|
|
4259
4273
|
a(he.JANUARY),
|
|
4260
4274
|
a(he.FEBRUARY),
|
|
4261
4275
|
a(he.MARCH),
|
|
@@ -4297,37 +4311,37 @@ function ms({
|
|
|
4297
4311
|
value: a(de.SATURDAY_SHORT),
|
|
4298
4312
|
full: a(de.SATURDAY)
|
|
4299
4313
|
}
|
|
4300
|
-
],
|
|
4301
|
-
const
|
|
4302
|
-
return
|
|
4314
|
+
], x = (F) => t.some((h) => {
|
|
4315
|
+
const v = h.start.getTime(), $ = h.end.getTime(), A = F.getTime();
|
|
4316
|
+
return A >= v && A <= $;
|
|
4303
4317
|
}), y = (F) => {
|
|
4304
|
-
|
|
4305
|
-
},
|
|
4318
|
+
x(F) || (c(F), w(F.getDate()), e && e(Er(F)));
|
|
4319
|
+
}, L = () => {
|
|
4306
4320
|
f === 0 ? (u(11), g(p - 1)) : u(f - 1), w(1);
|
|
4307
|
-
},
|
|
4321
|
+
}, j = () => {
|
|
4308
4322
|
f === 11 ? (u(0), g(p + 1)) : u(f + 1), w(1);
|
|
4309
|
-
}, O = (F, h) => new Date(F, h + 1, 0).getDate(),
|
|
4323
|
+
}, O = (F, h) => new Date(F, h + 1, 0).getDate(), k = (F, h) => new Date(F, h, 1).getDay(), R = (F) => {
|
|
4310
4324
|
const h = N.findIndex(
|
|
4311
|
-
(
|
|
4325
|
+
(v) => v !== null && v.getDate() === F
|
|
4312
4326
|
);
|
|
4313
4327
|
h !== -1 && E.current[h] && (E.current[h]?.focus(), w(F));
|
|
4314
4328
|
}, D = (F, h) => {
|
|
4315
|
-
const
|
|
4316
|
-
if (!
|
|
4317
|
-
const $ = O(p, f),
|
|
4329
|
+
const v = N[h];
|
|
4330
|
+
if (!v) return;
|
|
4331
|
+
const $ = O(p, f), A = v.getDate();
|
|
4318
4332
|
switch (F.key) {
|
|
4319
4333
|
case "ArrowRight":
|
|
4320
4334
|
F.preventDefault();
|
|
4321
4335
|
{
|
|
4322
|
-
let
|
|
4323
|
-
if (
|
|
4324
|
-
const
|
|
4325
|
-
|
|
4336
|
+
let _ = A + 1, I = new Date(p, f, _);
|
|
4337
|
+
if (_ > $) {
|
|
4338
|
+
const V = f === 11 ? p + 1 : p, U = f === 11 ? 0 : f + 1;
|
|
4339
|
+
_ = 1, I = new Date(V, U, _), j(), setTimeout(() => {
|
|
4326
4340
|
T(1, "forward");
|
|
4327
4341
|
}, 0);
|
|
4328
4342
|
return;
|
|
4329
4343
|
}
|
|
4330
|
-
|
|
4344
|
+
x(I) ? T(_, "forward") : R(_);
|
|
4331
4345
|
}
|
|
4332
4346
|
break;
|
|
4333
4347
|
case "Tab":
|
|
@@ -4335,43 +4349,43 @@ function ms({
|
|
|
4335
4349
|
case "ArrowLeft":
|
|
4336
4350
|
F.preventDefault();
|
|
4337
4351
|
{
|
|
4338
|
-
let
|
|
4339
|
-
if (
|
|
4340
|
-
const
|
|
4341
|
-
|
|
4342
|
-
T(
|
|
4352
|
+
let _ = A - 1, I = new Date(p, f, _);
|
|
4353
|
+
if (_ < 1) {
|
|
4354
|
+
const V = f === 0 ? p - 1 : p, U = f === 0 ? 11 : f - 1, W = O(V, U);
|
|
4355
|
+
_ = W, I = new Date(V, U, _), L(), setTimeout(() => {
|
|
4356
|
+
T(W, "backward");
|
|
4343
4357
|
}, 0);
|
|
4344
4358
|
return;
|
|
4345
4359
|
}
|
|
4346
|
-
|
|
4360
|
+
x(I) ? T(_, "backward") : R(_);
|
|
4347
4361
|
}
|
|
4348
4362
|
break;
|
|
4349
4363
|
case "ArrowUp":
|
|
4350
4364
|
F.preventDefault();
|
|
4351
4365
|
{
|
|
4352
|
-
let
|
|
4353
|
-
if (
|
|
4354
|
-
const
|
|
4355
|
-
|
|
4356
|
-
T(
|
|
4366
|
+
let _ = A - 7, I = new Date(p, f, _);
|
|
4367
|
+
if (_ < 1) {
|
|
4368
|
+
const V = f === 0 ? p - 1 : p, U = f === 0 ? 11 : f - 1;
|
|
4369
|
+
_ = O(V, U) + _, I = new Date(V, U, _), L(), setTimeout(() => {
|
|
4370
|
+
T(_, "backward");
|
|
4357
4371
|
}, 0);
|
|
4358
4372
|
return;
|
|
4359
4373
|
}
|
|
4360
|
-
|
|
4374
|
+
x(I) ? T(_, "backward") : R(_);
|
|
4361
4375
|
}
|
|
4362
4376
|
break;
|
|
4363
4377
|
case "ArrowDown":
|
|
4364
4378
|
F.preventDefault();
|
|
4365
4379
|
{
|
|
4366
|
-
let
|
|
4367
|
-
if (
|
|
4368
|
-
const
|
|
4369
|
-
|
|
4370
|
-
T(
|
|
4380
|
+
let _ = A + 7, I = new Date(p, f, _);
|
|
4381
|
+
if (_ > $) {
|
|
4382
|
+
const V = f === 11 ? p + 1 : p, U = f === 11 ? 0 : f + 1;
|
|
4383
|
+
_ = _ - $, I = new Date(V, U, _), j(), setTimeout(() => {
|
|
4384
|
+
T(_, "forward");
|
|
4371
4385
|
}, 0);
|
|
4372
4386
|
return;
|
|
4373
4387
|
}
|
|
4374
|
-
|
|
4388
|
+
x(I) ? T(_, "forward") : R(_);
|
|
4375
4389
|
}
|
|
4376
4390
|
break;
|
|
4377
4391
|
case "Home":
|
|
@@ -4381,74 +4395,74 @@ function ms({
|
|
|
4381
4395
|
F.preventDefault(), T($, "backward");
|
|
4382
4396
|
break;
|
|
4383
4397
|
case "PageUp":
|
|
4384
|
-
F.preventDefault(),
|
|
4385
|
-
const
|
|
4398
|
+
F.preventDefault(), L(), setTimeout(() => {
|
|
4399
|
+
const _ = O(
|
|
4386
4400
|
f === 0 ? p - 1 : p,
|
|
4387
4401
|
f === 0 ? 11 : f - 1
|
|
4388
|
-
),
|
|
4389
|
-
T(
|
|
4402
|
+
), I = Math.min(A, _);
|
|
4403
|
+
T(I, "forward");
|
|
4390
4404
|
}, 0);
|
|
4391
4405
|
break;
|
|
4392
4406
|
case "PageDown":
|
|
4393
|
-
F.preventDefault(),
|
|
4394
|
-
const
|
|
4407
|
+
F.preventDefault(), j(), setTimeout(() => {
|
|
4408
|
+
const _ = O(
|
|
4395
4409
|
f === 11 ? p + 1 : p,
|
|
4396
4410
|
f === 11 ? 0 : f + 1
|
|
4397
|
-
),
|
|
4398
|
-
T(
|
|
4411
|
+
), I = Math.min(A, _);
|
|
4412
|
+
T(I, "forward");
|
|
4399
4413
|
}, 0);
|
|
4400
4414
|
break;
|
|
4401
4415
|
case " ":
|
|
4402
4416
|
case "Space":
|
|
4403
|
-
if (v
|
|
4404
|
-
w(
|
|
4417
|
+
if (x(v)) return;
|
|
4418
|
+
w(v.getDate()), c(v);
|
|
4405
4419
|
break;
|
|
4406
4420
|
case "Enter":
|
|
4407
|
-
F.preventDefault(), y(
|
|
4421
|
+
F.preventDefault(), y(v);
|
|
4408
4422
|
break;
|
|
4409
4423
|
}
|
|
4410
4424
|
}, T = (F, h) => {
|
|
4411
|
-
const
|
|
4425
|
+
const v = O(p, f);
|
|
4412
4426
|
if (h === "forward") {
|
|
4413
|
-
for (let $ = F; $ <=
|
|
4414
|
-
const
|
|
4415
|
-
if (!
|
|
4427
|
+
for (let $ = F; $ <= v; $++) {
|
|
4428
|
+
const A = new Date(p, f, $);
|
|
4429
|
+
if (!x(A)) {
|
|
4416
4430
|
R($);
|
|
4417
4431
|
return;
|
|
4418
4432
|
}
|
|
4419
4433
|
}
|
|
4420
|
-
|
|
4434
|
+
j(), setTimeout(() => {
|
|
4421
4435
|
T(1, "forward");
|
|
4422
4436
|
}, 0);
|
|
4423
4437
|
} else {
|
|
4424
|
-
for (let
|
|
4425
|
-
const
|
|
4426
|
-
if (!
|
|
4427
|
-
R(
|
|
4438
|
+
for (let I = F; I >= 1; I--) {
|
|
4439
|
+
const V = new Date(p, f, I);
|
|
4440
|
+
if (!x(V)) {
|
|
4441
|
+
R(I);
|
|
4428
4442
|
return;
|
|
4429
4443
|
}
|
|
4430
4444
|
}
|
|
4431
|
-
const $ = f === 0 ? p - 1 : p,
|
|
4432
|
-
|
|
4433
|
-
T(
|
|
4445
|
+
const $ = f === 0 ? p - 1 : p, A = f === 0 ? 11 : f - 1, _ = O($, A);
|
|
4446
|
+
L(), setTimeout(() => {
|
|
4447
|
+
T(_, "backward");
|
|
4434
4448
|
}, 0);
|
|
4435
4449
|
}
|
|
4436
4450
|
}, N = (() => {
|
|
4437
|
-
const F = O(p, f), h =
|
|
4451
|
+
const F = O(p, f), h = k(p, f), v = [];
|
|
4438
4452
|
for (let $ = 0; $ < h; $++)
|
|
4439
|
-
|
|
4453
|
+
v.push(null);
|
|
4440
4454
|
for (let $ = 1; $ <= F; $++) {
|
|
4441
|
-
const
|
|
4442
|
-
|
|
4455
|
+
const A = new Date(p, f, $);
|
|
4456
|
+
v.push(A);
|
|
4443
4457
|
}
|
|
4444
|
-
return
|
|
4445
|
-
})(),
|
|
4446
|
-
let
|
|
4458
|
+
return v;
|
|
4459
|
+
})(), H = [];
|
|
4460
|
+
let B = [];
|
|
4447
4461
|
N.forEach((F, h) => {
|
|
4448
|
-
if (
|
|
4449
|
-
for (;
|
|
4450
|
-
|
|
4451
|
-
|
|
4462
|
+
if (B.push(F), B.length === 7 || h === N.length - 1) {
|
|
4463
|
+
for (; B.length < 7; )
|
|
4464
|
+
B.push(null);
|
|
4465
|
+
H.push(B), B = [];
|
|
4452
4466
|
}
|
|
4453
4467
|
}), ne(() => {
|
|
4454
4468
|
if (d !== null) {
|
|
@@ -4464,12 +4478,12 @@ function ms({
|
|
|
4464
4478
|
calendar: "smp-datepickercalendar",
|
|
4465
4479
|
table: "smp-datepickercalendar-table",
|
|
4466
4480
|
th: "smp-datepickercalendar-th",
|
|
4467
|
-
td: (F, h,
|
|
4481
|
+
td: (F, h, v, $) => `smp-datepickercalendar-td
|
|
4468
4482
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4469
4483
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4470
|
-
${
|
|
4484
|
+
${v ? "smp-datepickercalendar-td-focused" : ""}
|
|
4471
4485
|
${$ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4472
|
-
},
|
|
4486
|
+
}, Z = () => `${b[f]} ${p.toString()}`;
|
|
4473
4487
|
return /* @__PURE__ */ m.jsxs(
|
|
4474
4488
|
"div",
|
|
4475
4489
|
{
|
|
@@ -4493,7 +4507,7 @@ function ms({
|
|
|
4493
4507
|
/* @__PURE__ */ m.jsx(
|
|
4494
4508
|
Se,
|
|
4495
4509
|
{
|
|
4496
|
-
onClick:
|
|
4510
|
+
onClick: L,
|
|
4497
4511
|
ariaLabel: a(Dt.PREVIOUS_MONTH),
|
|
4498
4512
|
optionalDisplayValue: "<",
|
|
4499
4513
|
appearance: "ghost",
|
|
@@ -4504,15 +4518,15 @@ function ms({
|
|
|
4504
4518
|
/* @__PURE__ */ m.jsx(
|
|
4505
4519
|
"div",
|
|
4506
4520
|
{
|
|
4507
|
-
"aria-label":
|
|
4521
|
+
"aria-label": Z(),
|
|
4508
4522
|
className: z.label,
|
|
4509
|
-
children:
|
|
4523
|
+
children: Z()
|
|
4510
4524
|
}
|
|
4511
4525
|
),
|
|
4512
4526
|
/* @__PURE__ */ m.jsx(
|
|
4513
4527
|
Se,
|
|
4514
4528
|
{
|
|
4515
|
-
onClick:
|
|
4529
|
+
onClick: j,
|
|
4516
4530
|
ariaLabel: a(Dt.NEXT_MONTH),
|
|
4517
4531
|
bindValue: ">",
|
|
4518
4532
|
optionalDisplayValue: ">",
|
|
@@ -4541,9 +4555,9 @@ function ms({
|
|
|
4541
4555
|
},
|
|
4542
4556
|
F.value
|
|
4543
4557
|
)) }) }),
|
|
4544
|
-
/* @__PURE__ */ m.jsx("tbody", { children:
|
|
4545
|
-
const
|
|
4546
|
-
if (
|
|
4558
|
+
/* @__PURE__ */ m.jsx("tbody", { children: H.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((v, $) => {
|
|
4559
|
+
const A = h * 7 + $;
|
|
4560
|
+
if (v === null)
|
|
4547
4561
|
return /* @__PURE__ */ m.jsx(
|
|
4548
4562
|
"td",
|
|
4549
4563
|
{
|
|
@@ -4556,28 +4570,28 @@ function ms({
|
|
|
4556
4570
|
},
|
|
4557
4571
|
`empty-${$}`
|
|
4558
4572
|
);
|
|
4559
|
-
const
|
|
4573
|
+
const _ = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), I = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), V = d === v.getDate(), U = x(v);
|
|
4560
4574
|
return /* @__PURE__ */ m.jsx(
|
|
4561
4575
|
"td",
|
|
4562
4576
|
{
|
|
4563
4577
|
role: "gridcell",
|
|
4564
|
-
"aria-selected":
|
|
4565
|
-
tabIndex:
|
|
4566
|
-
onClick: () => y(
|
|
4567
|
-
onKeyDown: (
|
|
4568
|
-
"aria-label": `${
|
|
4569
|
-
"data-selected":
|
|
4570
|
-
"aria-disabled":
|
|
4571
|
-
ref: (
|
|
4572
|
-
E.current[
|
|
4578
|
+
"aria-selected": I,
|
|
4579
|
+
tabIndex: V ? 0 : -1,
|
|
4580
|
+
onClick: () => y(v),
|
|
4581
|
+
onKeyDown: (W) => D(W, A),
|
|
4582
|
+
"aria-label": `${v.getDate()} ${b[v.getMonth()]} ${v.getFullYear()}`,
|
|
4583
|
+
"data-selected": I,
|
|
4584
|
+
"aria-disabled": U,
|
|
4585
|
+
ref: (W) => {
|
|
4586
|
+
E.current[A] = W;
|
|
4573
4587
|
},
|
|
4574
4588
|
className: z.td(
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4589
|
+
_,
|
|
4590
|
+
I,
|
|
4591
|
+
V,
|
|
4592
|
+
U
|
|
4579
4593
|
),
|
|
4580
|
-
children:
|
|
4594
|
+
children: v.getDate()
|
|
4581
4595
|
},
|
|
4582
4596
|
`day-${$}`
|
|
4583
4597
|
);
|
|
@@ -4597,44 +4611,44 @@ const gs = ({
|
|
|
4597
4611
|
isEditable: s = !0,
|
|
4598
4612
|
...a
|
|
4599
4613
|
}) => {
|
|
4600
|
-
const i =
|
|
4614
|
+
const i = ue(null), [o, l] = G(!1), [c, f] = G(n || ""), [u, p] = G(""), { anchorRef: g, targetRef: d } = dt({
|
|
4601
4615
|
position: "bottom",
|
|
4602
4616
|
enabled: o
|
|
4603
|
-
}), w =
|
|
4617
|
+
}), w = fe(() => {
|
|
4604
4618
|
l(!1), i?.current?.focus();
|
|
4605
4619
|
}, []);
|
|
4606
4620
|
ht([d, g], o, () => {
|
|
4607
4621
|
w();
|
|
4608
4622
|
}), Pt(o, d);
|
|
4609
|
-
const { format: S, getCurrentLanguage: E } = $e(), b =
|
|
4610
|
-
(
|
|
4611
|
-
const R =
|
|
4623
|
+
const { format: S, getCurrentLanguage: E } = $e(), b = fe(
|
|
4624
|
+
(k) => {
|
|
4625
|
+
const R = k.length > 5 && xr(k, E()) || k, D = S(R, void 0, void 0, {
|
|
4612
4626
|
type: "date"
|
|
4613
|
-
}), T = typeof R != "string",
|
|
4627
|
+
}), T = typeof R != "string", P = T && R.toISOString().substring(0, 10) || "";
|
|
4614
4628
|
return {
|
|
4615
4629
|
isValid: T,
|
|
4616
4630
|
formattedDate: D,
|
|
4617
|
-
isoDate:
|
|
4631
|
+
isoDate: P,
|
|
4618
4632
|
normalizedDate: R
|
|
4619
4633
|
};
|
|
4620
4634
|
},
|
|
4621
4635
|
[E, S]
|
|
4622
4636
|
);
|
|
4623
4637
|
ne(() => {
|
|
4624
|
-
const { formattedDate:
|
|
4625
|
-
f(D && R || n), p(D &&
|
|
4638
|
+
const { formattedDate: k, isoDate: R, isValid: D } = b(n);
|
|
4639
|
+
f(D && R || n), p(D && k || n);
|
|
4626
4640
|
}, [n, S, b]);
|
|
4627
|
-
const C = () => l((
|
|
4628
|
-
|
|
4629
|
-
}, y = (
|
|
4630
|
-
k
|
|
4631
|
-
},
|
|
4632
|
-
const { isoDate: R, isValid: D } = b(
|
|
4633
|
-
t && t(D && R ||
|
|
4634
|
-
},
|
|
4635
|
-
p(
|
|
4636
|
-
}, O = (
|
|
4637
|
-
|
|
4641
|
+
const C = () => l((k) => !k), x = () => {
|
|
4642
|
+
L(u);
|
|
4643
|
+
}, y = (k) => {
|
|
4644
|
+
L(k), w();
|
|
4645
|
+
}, L = (k) => {
|
|
4646
|
+
const { isoDate: R, isValid: D } = b(k);
|
|
4647
|
+
t && t(D && R || k);
|
|
4648
|
+
}, j = (k) => {
|
|
4649
|
+
p(k);
|
|
4650
|
+
}, O = (k) => {
|
|
4651
|
+
k.key === "Enter" && (k.preventDefault(), L(u));
|
|
4638
4652
|
};
|
|
4639
4653
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
|
|
4640
4654
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4643,8 +4657,8 @@ const gs = ({
|
|
|
4643
4657
|
...a,
|
|
4644
4658
|
bindValue: u,
|
|
4645
4659
|
placeholder: e,
|
|
4646
|
-
onBlur:
|
|
4647
|
-
onChange:
|
|
4660
|
+
onBlur: x,
|
|
4661
|
+
onChange: j,
|
|
4648
4662
|
onKeyDown: O,
|
|
4649
4663
|
shapeIcon: "calendar",
|
|
4650
4664
|
onShapeIconClick: C,
|
|
@@ -4686,10 +4700,10 @@ const gs = ({
|
|
|
4686
4700
|
if (E == "")
|
|
4687
4701
|
C.pop();
|
|
4688
4702
|
else {
|
|
4689
|
-
const
|
|
4703
|
+
const x = C.findIndex(
|
|
4690
4704
|
(y) => y.bindValue === E && y.optionalDisplayValue === b
|
|
4691
4705
|
);
|
|
4692
|
-
|
|
4706
|
+
x >= 0 ? C.splice(x, 1) : C.push({
|
|
4693
4707
|
bindValue: E,
|
|
4694
4708
|
optionalDisplayValue: b
|
|
4695
4709
|
});
|
|
@@ -4865,49 +4879,49 @@ const Ne = (n, e, t) => ({
|
|
|
4865
4879
|
onEnter: o,
|
|
4866
4880
|
...l
|
|
4867
4881
|
}) => {
|
|
4868
|
-
const { getCurrentLanguage: c } = $e(), f =
|
|
4882
|
+
const { getCurrentLanguage: c } = $e(), f = ue(null), u = c(), { groupingChar: p, decimalChar: g } = Vn(
|
|
4869
4883
|
() => ns(u, s),
|
|
4870
4884
|
[u, s]
|
|
4871
|
-
), d =
|
|
4872
|
-
(T,
|
|
4873
|
-
minimumFractionDigits:
|
|
4874
|
-
maximumFractionDigits:
|
|
4885
|
+
), d = fe(
|
|
4886
|
+
(T, P) => new Intl.NumberFormat(u, {
|
|
4887
|
+
minimumFractionDigits: P,
|
|
4888
|
+
maximumFractionDigits: P,
|
|
4875
4889
|
useGrouping: !0
|
|
4876
4890
|
}).format(T),
|
|
4877
4891
|
[u]
|
|
4878
|
-
), w =
|
|
4892
|
+
), w = fe(as, [p, g]), S = fe(ts, [n, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, C] = G(E), [x, y] = G(
|
|
4879
4893
|
a != null ? d(a, b) : ""
|
|
4880
|
-
),
|
|
4894
|
+
), L = ue(a ?? null);
|
|
4881
4895
|
ne(() => {
|
|
4882
4896
|
if (a == null) {
|
|
4883
|
-
y(""),
|
|
4897
|
+
y(""), L.current = null;
|
|
4884
4898
|
return;
|
|
4885
4899
|
}
|
|
4886
|
-
const T = a.toString().includes(".") ? a.toString().split(".")[1].length : 0,
|
|
4887
|
-
|
|
4900
|
+
const T = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = T === 0 ? b : T;
|
|
4901
|
+
P !== b && C(P), y(d(a, P)), L.current = a;
|
|
4888
4902
|
}, [a, d]);
|
|
4889
|
-
const
|
|
4890
|
-
(T,
|
|
4903
|
+
const j = fe(
|
|
4904
|
+
(T, P = !1) => {
|
|
4891
4905
|
if (T.trim() === "") {
|
|
4892
|
-
y(""),
|
|
4906
|
+
y(""), L.current = null, i?.(void 0, ""), P && o?.(void 0);
|
|
4893
4907
|
return;
|
|
4894
4908
|
}
|
|
4895
4909
|
const N = w(T, p, g);
|
|
4896
4910
|
if (isNaN(N))
|
|
4897
|
-
if (
|
|
4898
|
-
const
|
|
4899
|
-
y(
|
|
4911
|
+
if (L.current != null) {
|
|
4912
|
+
const H = d(L.current, b);
|
|
4913
|
+
y(H);
|
|
4900
4914
|
} else
|
|
4901
4915
|
y("");
|
|
4902
4916
|
else {
|
|
4903
|
-
const
|
|
4917
|
+
const H = S(N, n, e), B = ss(
|
|
4904
4918
|
T,
|
|
4905
4919
|
p,
|
|
4906
4920
|
g
|
|
4907
4921
|
);
|
|
4908
|
-
C(
|
|
4909
|
-
const z = d(
|
|
4910
|
-
y(z),
|
|
4922
|
+
C(B);
|
|
4923
|
+
const z = d(H, B);
|
|
4924
|
+
y(z), L.current = H, i?.(H, z), P && o?.(H);
|
|
4911
4925
|
}
|
|
4912
4926
|
},
|
|
4913
4927
|
[
|
|
@@ -4922,21 +4936,21 @@ const Ne = (n, e, t) => ({
|
|
|
4922
4936
|
o,
|
|
4923
4937
|
b
|
|
4924
4938
|
]
|
|
4925
|
-
), O = (T) => y(T),
|
|
4939
|
+
), O = (T) => y(T), k = () => j(x), R = (T) => {
|
|
4926
4940
|
if (T.key === "Enter") {
|
|
4927
|
-
T.preventDefault(),
|
|
4941
|
+
T.preventDefault(), j(x, !0);
|
|
4928
4942
|
return;
|
|
4929
4943
|
}
|
|
4930
4944
|
if (T.key === "ArrowUp" || T.key === "ArrowDown") {
|
|
4931
4945
|
T.preventDefault();
|
|
4932
|
-
const
|
|
4933
|
-
|
|
4946
|
+
const P = T.key === "ArrowUp" ? 1 : -1, N = L.current ?? 0, H = S(N + P * t, n, e);
|
|
4947
|
+
j(d(H, b));
|
|
4934
4948
|
}
|
|
4935
4949
|
}, D = (T) => {
|
|
4936
4950
|
if (!T.currentTarget.contains(document.activeElement)) return;
|
|
4937
4951
|
T.preventDefault();
|
|
4938
|
-
const
|
|
4939
|
-
|
|
4952
|
+
const P = T.deltaY < 0 ? 1 : -1, N = L.current ?? 0, H = S(N + P * t, n, e);
|
|
4953
|
+
j(d(H, b));
|
|
4940
4954
|
};
|
|
4941
4955
|
return /* @__PURE__ */ m.jsx("div", { ref: f, "data-component": "input-number", onWheel: D, children: /* @__PURE__ */ m.jsx(
|
|
4942
4956
|
je,
|
|
@@ -4944,15 +4958,15 @@ const Ne = (n, e, t) => ({
|
|
|
4944
4958
|
...l,
|
|
4945
4959
|
"aria-valuemin": n,
|
|
4946
4960
|
"aria-valuemax": e,
|
|
4947
|
-
"aria-valuenow":
|
|
4948
|
-
bindValue:
|
|
4961
|
+
"aria-valuenow": L.current ?? void 0,
|
|
4962
|
+
bindValue: x,
|
|
4949
4963
|
inputType: "text",
|
|
4950
4964
|
inputMode: r,
|
|
4951
4965
|
min: n,
|
|
4952
4966
|
max: e,
|
|
4953
4967
|
step: t,
|
|
4954
4968
|
onChange: O,
|
|
4955
|
-
onBlur:
|
|
4969
|
+
onBlur: k,
|
|
4956
4970
|
onKeyDown: R
|
|
4957
4971
|
}
|
|
4958
4972
|
) });
|
|
@@ -5019,11 +5033,11 @@ const Cs = ({
|
|
|
5019
5033
|
}) => {
|
|
5020
5034
|
const w = we(), S = `${w}-helper`, E = f ? "danger" : s, b = c || !!f, C = (y) => {
|
|
5021
5035
|
t?.(y.target.value);
|
|
5022
|
-
},
|
|
5036
|
+
}, x = {
|
|
5023
5037
|
wrapper: "smp-textarea-wrapper",
|
|
5024
5038
|
container: `smp-textarea ${n ? "smp-textarea-disabled" : ""} ${r ? "smp-textarea-placeholder" : ""} ${E ? `smp-textarea-${E}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
5025
5039
|
};
|
|
5026
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
5040
|
+
return /* @__PURE__ */ m.jsxs("div", { className: x.wrapper, "data-component": "textarea", children: [
|
|
5027
5041
|
o && /* @__PURE__ */ m.jsx(Ee, { htmlFor: w, label: o, disabled: n }),
|
|
5028
5042
|
/* @__PURE__ */ m.jsx(
|
|
5029
5043
|
"textarea",
|
|
@@ -5033,7 +5047,7 @@ const Cs = ({
|
|
|
5033
5047
|
placeholder: r,
|
|
5034
5048
|
onChange: C,
|
|
5035
5049
|
onBlur: u,
|
|
5036
|
-
className:
|
|
5050
|
+
className: x.container,
|
|
5037
5051
|
disabled: n,
|
|
5038
5052
|
readOnly: !i,
|
|
5039
5053
|
onKeyDown: p,
|
|
@@ -5088,15 +5102,15 @@ const Ie = {
|
|
|
5088
5102
|
n || l.onBlur?.();
|
|
5089
5103
|
}, C = (y) => {
|
|
5090
5104
|
n || l.onChange?.(y.id, y.label);
|
|
5091
|
-
},
|
|
5105
|
+
}, x = we();
|
|
5092
5106
|
return /* @__PURE__ */ m.jsxs("div", { "smp-id": "radio-container", className: E.container, id: u, children: [
|
|
5093
5107
|
o && /* @__PURE__ */ m.jsx(Ee, { label: o, disabled: n, htmlFor: u }),
|
|
5094
|
-
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((y,
|
|
5108
|
+
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((y, L) => /* @__PURE__ */ m.jsxs("label", { className: E.option, children: [
|
|
5095
5109
|
/* @__PURE__ */ m.jsx(
|
|
5096
5110
|
"input",
|
|
5097
5111
|
{
|
|
5098
5112
|
type: "radio",
|
|
5099
|
-
name:
|
|
5113
|
+
name: x,
|
|
5100
5114
|
value: y.id,
|
|
5101
5115
|
disabled: n,
|
|
5102
5116
|
checked: y.id === l.bindValue,
|
|
@@ -5115,7 +5129,7 @@ const Ie = {
|
|
|
5115
5129
|
)
|
|
5116
5130
|
}
|
|
5117
5131
|
)
|
|
5118
|
-
] },
|
|
5132
|
+
] }, L)) })
|
|
5119
5133
|
] });
|
|
5120
5134
|
}, Os = ({
|
|
5121
5135
|
value: n,
|
|
@@ -5123,7 +5137,7 @@ const Ie = {
|
|
|
5123
5137
|
targetRef: t,
|
|
5124
5138
|
isOpen: r
|
|
5125
5139
|
}) => {
|
|
5126
|
-
const s =
|
|
5140
|
+
const s = ue(null);
|
|
5127
5141
|
ne(() => {
|
|
5128
5142
|
r && s?.current && s.current.focus();
|
|
5129
5143
|
}, [r, s]);
|
|
@@ -5185,18 +5199,18 @@ const Ie = {
|
|
|
5185
5199
|
isEditable: r = !0,
|
|
5186
5200
|
...s
|
|
5187
5201
|
}) => {
|
|
5188
|
-
const a =
|
|
5202
|
+
const a = ue(null), [i, o] = G(!1), [l, c] = G(n || ""), [f, u] = G(""), { anchorRef: p, targetRef: g } = dt({
|
|
5189
5203
|
position: "bottom",
|
|
5190
5204
|
enabled: i
|
|
5191
|
-
}), d =
|
|
5205
|
+
}), d = fe(() => {
|
|
5192
5206
|
o(!1), a?.current?.focus();
|
|
5193
5207
|
}, []);
|
|
5194
5208
|
ht([g, p], i, () => o(!1)), Pt(i, g), ne(() => {
|
|
5195
|
-
const y = n || "",
|
|
5196
|
-
c(y), u(
|
|
5209
|
+
const y = n || "", L = Cn(y) ? y : n || "";
|
|
5210
|
+
c(y), u(L);
|
|
5197
5211
|
}, [n]), ne(() => {
|
|
5198
|
-
const y = (
|
|
5199
|
-
|
|
5212
|
+
const y = (L) => {
|
|
5213
|
+
L.key === "Escape" && o(!1);
|
|
5200
5214
|
};
|
|
5201
5215
|
return i && document.addEventListener("keydown", y), () => {
|
|
5202
5216
|
document.removeEventListener("keydown", y);
|
|
@@ -5206,14 +5220,14 @@ const Ie = {
|
|
|
5206
5220
|
r && o((y) => !y);
|
|
5207
5221
|
}, S = (y) => {
|
|
5208
5222
|
u(y);
|
|
5209
|
-
}, E = (y,
|
|
5210
|
-
const O = Rs(y,
|
|
5223
|
+
}, E = (y, L, j) => {
|
|
5224
|
+
const O = Rs(y, L, j);
|
|
5211
5225
|
c(O), u(O), t?.(O), d();
|
|
5212
5226
|
}, b = () => {
|
|
5213
|
-
|
|
5227
|
+
x(f);
|
|
5214
5228
|
}, C = (y) => {
|
|
5215
|
-
y.key === "Enter" && (y.preventDefault(),
|
|
5216
|
-
},
|
|
5229
|
+
y.key === "Enter" && (y.preventDefault(), x(f));
|
|
5230
|
+
}, x = (y) => {
|
|
5217
5231
|
if (y.trim() === "") {
|
|
5218
5232
|
c(""), u(""), t?.("");
|
|
5219
5233
|
return;
|
|
@@ -5370,7 +5384,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5370
5384
|
icon: s,
|
|
5371
5385
|
fun: a,
|
|
5372
5386
|
data: r
|
|
5373
|
-
}, C = b.data && b.data.size && b.data.size >= 256 && (e === "ITX" || !e) ? "MEM" : e,
|
|
5387
|
+
}, C = b.data && b.data.size && b.data.size >= 256 && (e === "ITX" || !e) ? "MEM" : e, x = {
|
|
5374
5388
|
onBlur: g,
|
|
5375
5389
|
onOptionsRequest: d,
|
|
5376
5390
|
fun: a,
|
|
@@ -5381,25 +5395,25 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5381
5395
|
isEditable: S,
|
|
5382
5396
|
size: b.data && b.data.size ? b.data.size : b.data?.displayMode && Ss(b.data.displayMode || "CodeOnly"),
|
|
5383
5397
|
...r
|
|
5384
|
-
}, y = (D, T,
|
|
5398
|
+
}, y = (D, T, P) => yr(t) ? Ne(D, new it(t, T).getLegacyValue()) : br(t) ? Ne(D, new ft(t, T).getLegacyValue()) : Ne(D, T, P), L = (D, T) => Ne(
|
|
5385
5399
|
D,
|
|
5386
5400
|
new Ge(t, T, E).getLegacyValue()
|
|
5387
|
-
),
|
|
5401
|
+
), j = (D) => Ne(b, new ot(t, D).getLegacyValue()), O = (D) => ws(b, D), k = () => {
|
|
5388
5402
|
switch (C) {
|
|
5389
5403
|
case te.AUTOCOMPLETE: {
|
|
5390
5404
|
const D = {
|
|
5391
|
-
...
|
|
5405
|
+
...x,
|
|
5392
5406
|
bindValue: t.k,
|
|
5393
5407
|
optionalDisplayValue: n,
|
|
5394
|
-
onChange: (T,
|
|
5395
|
-
f?.(y(b, T,
|
|
5408
|
+
onChange: (T, P) => {
|
|
5409
|
+
f?.(y(b, T, P));
|
|
5396
5410
|
}
|
|
5397
5411
|
};
|
|
5398
5412
|
return /* @__PURE__ */ m.jsx(Pn, { ...D });
|
|
5399
5413
|
}
|
|
5400
5414
|
case te.BUTTON: {
|
|
5401
5415
|
const D = r?.label && typeof r.label == "string" ? r.label : void 0, T = {
|
|
5402
|
-
...
|
|
5416
|
+
...x,
|
|
5403
5417
|
bindValue: D || "",
|
|
5404
5418
|
showText: !!D,
|
|
5405
5419
|
title: n,
|
|
@@ -5411,10 +5425,10 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5411
5425
|
}
|
|
5412
5426
|
case te.BUTTON_LIST: {
|
|
5413
5427
|
const D = {
|
|
5414
|
-
...
|
|
5428
|
+
...x,
|
|
5415
5429
|
options: c,
|
|
5416
|
-
onClick: (T,
|
|
5417
|
-
const N = { ...b, fun:
|
|
5430
|
+
onClick: (T, P) => {
|
|
5431
|
+
const N = { ...b, fun: P };
|
|
5418
5432
|
u?.(y(N, T));
|
|
5419
5433
|
}
|
|
5420
5434
|
};
|
|
@@ -5422,7 +5436,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5422
5436
|
}
|
|
5423
5437
|
case te.CHIP: {
|
|
5424
5438
|
const D = {
|
|
5425
|
-
...
|
|
5439
|
+
...x,
|
|
5426
5440
|
elements: En(b)
|
|
5427
5441
|
};
|
|
5428
5442
|
return /* @__PURE__ */ m.jsx(It, { ...D });
|
|
@@ -5430,11 +5444,11 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5430
5444
|
case te.CHECKBOX:
|
|
5431
5445
|
case te.SWITCH: {
|
|
5432
5446
|
const D = e === te.SWITCH, T = {
|
|
5433
|
-
...
|
|
5447
|
+
...x,
|
|
5434
5448
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5435
5449
|
optionalDisplayValue: n,
|
|
5436
|
-
onChange: (
|
|
5437
|
-
f?.(
|
|
5450
|
+
onChange: (P) => {
|
|
5451
|
+
f?.(j(P));
|
|
5438
5452
|
},
|
|
5439
5453
|
...D && { variant: "switch" }
|
|
5440
5454
|
};
|
|
@@ -5442,18 +5456,18 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5442
5456
|
}
|
|
5443
5457
|
case te.COMBOBOX: {
|
|
5444
5458
|
const D = {
|
|
5445
|
-
...
|
|
5459
|
+
...x,
|
|
5446
5460
|
bindValue: t.k,
|
|
5447
5461
|
optionalDisplayValue: n,
|
|
5448
|
-
onChange: (T,
|
|
5449
|
-
f?.(y(b, T,
|
|
5462
|
+
onChange: (T, P) => {
|
|
5463
|
+
f?.(y(b, T, P));
|
|
5450
5464
|
}
|
|
5451
5465
|
};
|
|
5452
5466
|
return /* @__PURE__ */ m.jsx(ps, { ...D });
|
|
5453
5467
|
}
|
|
5454
5468
|
case te.DATE: {
|
|
5455
5469
|
const D = {
|
|
5456
|
-
...
|
|
5470
|
+
...x,
|
|
5457
5471
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5458
5472
|
onChange: (T) => {
|
|
5459
5473
|
f?.(y(b, T));
|
|
@@ -5464,21 +5478,21 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5464
5478
|
case te.ICON:
|
|
5465
5479
|
case te.IMAGE: {
|
|
5466
5480
|
const D = {
|
|
5467
|
-
...
|
|
5481
|
+
...x,
|
|
5468
5482
|
icon: s,
|
|
5469
|
-
isInteractable: !!
|
|
5483
|
+
isInteractable: !!x.fun,
|
|
5470
5484
|
onClick: () => {
|
|
5471
5485
|
u?.(y(b, t.k));
|
|
5472
5486
|
}
|
|
5473
5487
|
};
|
|
5474
|
-
return /* @__PURE__ */ m.jsx(
|
|
5488
|
+
return /* @__PURE__ */ m.jsx(ce, { ...D });
|
|
5475
5489
|
}
|
|
5476
5490
|
case te.INPUT_NUMBER: {
|
|
5477
5491
|
const D = {
|
|
5478
|
-
...
|
|
5492
|
+
...x,
|
|
5479
5493
|
bindValue: Ge.fromDataObj(t, E).getValue(),
|
|
5480
5494
|
onChange: (T) => {
|
|
5481
|
-
f?.(
|
|
5495
|
+
f?.(L(b, T));
|
|
5482
5496
|
}
|
|
5483
5497
|
};
|
|
5484
5498
|
return /* @__PURE__ */ m.jsx(Es, { ...D });
|
|
@@ -5486,7 +5500,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5486
5500
|
case te.EDITOR:
|
|
5487
5501
|
case te.MEMO: {
|
|
5488
5502
|
const D = {
|
|
5489
|
-
...
|
|
5503
|
+
...x,
|
|
5490
5504
|
bindValue: t.k,
|
|
5491
5505
|
optionalDisplayValue: n,
|
|
5492
5506
|
onChange: (T) => {
|
|
@@ -5497,7 +5511,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5497
5511
|
}
|
|
5498
5512
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5499
5513
|
const D = {
|
|
5500
|
-
...
|
|
5514
|
+
...x,
|
|
5501
5515
|
elements: En(b),
|
|
5502
5516
|
onChange: (T) => {
|
|
5503
5517
|
f?.(O(T));
|
|
@@ -5507,7 +5521,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5507
5521
|
}
|
|
5508
5522
|
case te.PASSWORD: {
|
|
5509
5523
|
const D = {
|
|
5510
|
-
...
|
|
5524
|
+
...x,
|
|
5511
5525
|
bindValue: t.k,
|
|
5512
5526
|
onChange: (T) => {
|
|
5513
5527
|
f?.(y(b, T));
|
|
@@ -5517,17 +5531,17 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5517
5531
|
}
|
|
5518
5532
|
case te.RADIO: {
|
|
5519
5533
|
const D = {
|
|
5520
|
-
...
|
|
5534
|
+
...x,
|
|
5521
5535
|
bindValue: t.k,
|
|
5522
|
-
onChange: (T,
|
|
5523
|
-
f?.(y(b, T,
|
|
5536
|
+
onChange: (T, P) => {
|
|
5537
|
+
f?.(y(b, T, P));
|
|
5524
5538
|
}
|
|
5525
5539
|
};
|
|
5526
5540
|
return /* @__PURE__ */ m.jsx(Ts, { ...D });
|
|
5527
5541
|
}
|
|
5528
5542
|
case te.SPOTLIGHT: {
|
|
5529
5543
|
const D = {
|
|
5530
|
-
...
|
|
5544
|
+
...x,
|
|
5531
5545
|
bindValue: t.k,
|
|
5532
5546
|
onEnter: (T) => {
|
|
5533
5547
|
p?.(y(b, T));
|
|
@@ -5537,7 +5551,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5537
5551
|
}
|
|
5538
5552
|
case te.TEXT_FIELD: {
|
|
5539
5553
|
const D = {
|
|
5540
|
-
...
|
|
5554
|
+
...x,
|
|
5541
5555
|
bindValue: t.k,
|
|
5542
5556
|
optionalDisplayValue: n,
|
|
5543
5557
|
onChange: (T) => {
|
|
@@ -5548,17 +5562,17 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5548
5562
|
}
|
|
5549
5563
|
case te.BUTTON_GROUP: {
|
|
5550
5564
|
const D = {
|
|
5551
|
-
...
|
|
5565
|
+
...x,
|
|
5552
5566
|
bindValue: t.k,
|
|
5553
|
-
onChange: (T,
|
|
5554
|
-
f?.(y(b, T,
|
|
5567
|
+
onChange: (T, P) => {
|
|
5568
|
+
f?.(y(b, T, P));
|
|
5555
5569
|
}
|
|
5556
5570
|
};
|
|
5557
5571
|
return /* @__PURE__ */ m.jsx(ks, { ...D });
|
|
5558
5572
|
}
|
|
5559
5573
|
case te.TIME: {
|
|
5560
5574
|
const D = {
|
|
5561
|
-
...
|
|
5575
|
+
...x,
|
|
5562
5576
|
bindValue: ft.fromDataObj(t).getValue(),
|
|
5563
5577
|
onChange: (T) => {
|
|
5564
5578
|
f?.(y(b, T));
|
|
@@ -5568,7 +5582,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5568
5582
|
}
|
|
5569
5583
|
default: {
|
|
5570
5584
|
const D = {
|
|
5571
|
-
...
|
|
5585
|
+
...x,
|
|
5572
5586
|
bindValue: t.k,
|
|
5573
5587
|
optionalDisplayValue: n
|
|
5574
5588
|
};
|
|
@@ -5585,7 +5599,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5585
5599
|
onContextMenu: (D) => {
|
|
5586
5600
|
w && l && (D.preventDefault(), w(b, D.currentTarget));
|
|
5587
5601
|
},
|
|
5588
|
-
children:
|
|
5602
|
+
children: k()
|
|
5589
5603
|
}
|
|
5590
5604
|
);
|
|
5591
5605
|
}, na = ({
|
|
@@ -5594,7 +5608,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5594
5608
|
onEnter: t,
|
|
5595
5609
|
onContextMenu: r
|
|
5596
5610
|
}) => {
|
|
5597
|
-
const [s, a] = G(), i =
|
|
5611
|
+
const [s, a] = G(), i = fe(
|
|
5598
5612
|
(o) => {
|
|
5599
5613
|
if (!o.rows?.length || !o.columns?.length)
|
|
5600
5614
|
return {};
|
|
@@ -5655,22 +5669,22 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5655
5669
|
loadOptions: l,
|
|
5656
5670
|
onContextMenu: c
|
|
5657
5671
|
}) => {
|
|
5658
|
-
const [f, u] = G(), [p, g] = G(t ?? !0), d =
|
|
5659
|
-
(
|
|
5660
|
-
if (!
|
|
5672
|
+
const [f, u] = G(), [p, g] = G(t ?? !0), d = ue(null), w = s.trim() ? s : "100vh", S = fe(
|
|
5673
|
+
(x) => {
|
|
5674
|
+
if (!x?.rows?.length || !x?.columns?.length)
|
|
5661
5675
|
return {};
|
|
5662
|
-
const y =
|
|
5663
|
-
return
|
|
5664
|
-
const O = y.cells[
|
|
5676
|
+
const y = x.rows[0];
|
|
5677
|
+
return x.columns.filter((L) => L.visible ?? !0).reduce((L, j) => {
|
|
5678
|
+
const O = y.cells[j.name];
|
|
5665
5679
|
if (!O || !p && le(r) && O.shape !== te.BUTTON && O.shape !== te.BUTTON_LIST)
|
|
5666
|
-
return
|
|
5667
|
-
const
|
|
5680
|
+
return L;
|
|
5681
|
+
const k = {
|
|
5668
5682
|
...O,
|
|
5669
|
-
id:
|
|
5683
|
+
id: j.name,
|
|
5670
5684
|
onChange: (R) => {
|
|
5671
5685
|
u((D) => {
|
|
5672
5686
|
const T = { ...D };
|
|
5673
|
-
return T?.[
|
|
5687
|
+
return T?.[j.name] && (T[j.name].obj.k = R.obj.k), T;
|
|
5674
5688
|
});
|
|
5675
5689
|
},
|
|
5676
5690
|
onClick: (R) => {
|
|
@@ -5683,24 +5697,24 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5683
5697
|
c && c(R, D);
|
|
5684
5698
|
}
|
|
5685
5699
|
};
|
|
5686
|
-
return l && O.shape == te.BUTTON_LIST && (
|
|
5700
|
+
return l && O.shape == te.BUTTON_LIST && (k.onOptionsRequest = (R, D) => l(R, D).then(
|
|
5687
5701
|
(T) => Ls(T)
|
|
5688
|
-
)), !p && le(r) && (
|
|
5689
|
-
...
|
|
5702
|
+
)), !p && le(r) && (k.data = {
|
|
5703
|
+
...k.data,
|
|
5690
5704
|
showText: !1,
|
|
5691
5705
|
justify: "center",
|
|
5692
5706
|
squared: !0
|
|
5693
5707
|
}), {
|
|
5694
|
-
...
|
|
5695
|
-
[
|
|
5708
|
+
...L,
|
|
5709
|
+
[j.name]: k
|
|
5696
5710
|
};
|
|
5697
5711
|
}, {});
|
|
5698
5712
|
},
|
|
5699
5713
|
[p, r, a, i, l, c]
|
|
5700
|
-
), E =
|
|
5714
|
+
), E = fe(() => {
|
|
5701
5715
|
o?.();
|
|
5702
5716
|
}, [o]), b = () => {
|
|
5703
|
-
le(r) ? g((
|
|
5717
|
+
le(r) ? g((x) => !x) : (g(!1), o?.());
|
|
5704
5718
|
};
|
|
5705
5719
|
if (ne(() => {
|
|
5706
5720
|
u(S(n));
|
|
@@ -5711,11 +5725,11 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5711
5725
|
u(S(n));
|
|
5712
5726
|
return;
|
|
5713
5727
|
}
|
|
5714
|
-
const
|
|
5728
|
+
const x = getComputedStyle(d.current).getPropertyValue(
|
|
5715
5729
|
"--smp-drawer-slide-transition"
|
|
5716
5730
|
);
|
|
5717
|
-
let y = Number(
|
|
5718
|
-
|
|
5731
|
+
let y = Number(x);
|
|
5732
|
+
x.endsWith("ms") ? y = parseFloat(x) : x.endsWith("s") && (y = parseFloat(x) * 1e3), setTimeout(() => {
|
|
5719
5733
|
u(S(n));
|
|
5720
5734
|
}, y / 2);
|
|
5721
5735
|
}, [p, r]), ne(() => {
|
|
@@ -5752,7 +5766,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5752
5766
|
children: /* @__PURE__ */ m.jsxs("div", { className: C.container, children: [
|
|
5753
5767
|
/* @__PURE__ */ m.jsxs("div", { className: C.containerHeader, children: [
|
|
5754
5768
|
e && /* @__PURE__ */ m.jsx("div", { className: C.containerLogo, children: /* @__PURE__ */ m.jsx(
|
|
5755
|
-
|
|
5769
|
+
ce,
|
|
5756
5770
|
{
|
|
5757
5771
|
icon: e,
|
|
5758
5772
|
title: "drawer_logo",
|
|
@@ -5761,7 +5775,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5761
5775
|
}
|
|
5762
5776
|
) }),
|
|
5763
5777
|
/* @__PURE__ */ m.jsx("div", { className: C.containerIcon, children: /* @__PURE__ */ m.jsx(
|
|
5764
|
-
|
|
5778
|
+
ce,
|
|
5765
5779
|
{
|
|
5766
5780
|
icon: le(r) ? "menu_close" : "close",
|
|
5767
5781
|
title: "drawer_icon",
|
|
@@ -5773,7 +5787,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5773
5787
|
}
|
|
5774
5788
|
) })
|
|
5775
5789
|
] }),
|
|
5776
|
-
/* @__PURE__ */ m.jsx("div", { className: C.containerLayout, children: /* @__PURE__ */ m.jsx(at, { layout: n.rows[0].layout, children: Object.values(f).map((
|
|
5790
|
+
/* @__PURE__ */ m.jsx("div", { className: C.containerLayout, children: /* @__PURE__ */ m.jsx(at, { layout: n.rows[0].layout, children: Object.values(f).map((x) => /* @__PURE__ */ m.jsx(Oe, { ...x })) }) })
|
|
5777
5791
|
] })
|
|
5778
5792
|
}
|
|
5779
5793
|
)
|
|
@@ -5800,9 +5814,9 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5800
5814
|
SelectLayout: b = "1",
|
|
5801
5815
|
onClick: C
|
|
5802
5816
|
}) => {
|
|
5803
|
-
const
|
|
5817
|
+
const x = "N/A", y = e?.columns || [], L = e?.rows || [], j = L.length > 0, O = "--smp-dashList-color", k = "smp-layout", R = "descr", D = "icon", T = "um", P = "value", N = i || "1em", H = "18px", B = "--smp-dashList-columns", z = "--smp-dashList-fontSize", Z = {
|
|
5804
5818
|
dash: (Y = "1") => {
|
|
5805
|
-
const
|
|
5819
|
+
const X = h(Y), re = X, ae = v(X, R), ke = v(X, D), Me = v(X, T), ge = v(X, P);
|
|
5806
5820
|
return {
|
|
5807
5821
|
container: re,
|
|
5808
5822
|
descr: ae,
|
|
@@ -5813,24 +5827,24 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5813
5827
|
},
|
|
5814
5828
|
dashList: `smp-dash-list ${le(a) ? "smp-dash-list-fill-space" : ""}
|
|
5815
5829
|
${le(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5816
|
-
}, { format: F } = $e(), h = (Y) => `${
|
|
5817
|
-
const
|
|
5818
|
-
if (
|
|
5819
|
-
const ae = Y.match(
|
|
5830
|
+
}, { format: F } = $e(), h = (Y) => `${k}-${Y}`, v = (Y, X) => `${Y}__${X}`, $ = (Y) => `${O}-${Y}`, A = (Y) => {
|
|
5831
|
+
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5832
|
+
if (X.test(Y)) {
|
|
5833
|
+
const ae = Y.match(X) || [];
|
|
5820
5834
|
if (ae?.length > 3)
|
|
5821
5835
|
return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
|
|
5822
5836
|
}
|
|
5823
5837
|
return Y;
|
|
5824
|
-
},
|
|
5838
|
+
}, _ = (Y) => {
|
|
5825
5839
|
if (!u) return Y;
|
|
5826
|
-
const [
|
|
5840
|
+
const [X, re] = I(u).map(
|
|
5827
5841
|
(Le) => parseInt(Le || "0")
|
|
5828
5842
|
), ae = "0,0" + (re ? "." + "0".repeat(re) : ""), ke = F(Y, ae, "it");
|
|
5829
|
-
if (!
|
|
5843
|
+
if (!X) return ke;
|
|
5830
5844
|
const [Me, ge] = ke.split(",");
|
|
5831
5845
|
return Me + (ge ? `,${ge}` : "");
|
|
5832
|
-
},
|
|
5833
|
-
const
|
|
5846
|
+
}, I = (Y) => Y.includes(";") ? Y.split(";") : [Y], V = (Y) => {
|
|
5847
|
+
const X = (ae) => {
|
|
5834
5848
|
if (ae)
|
|
5835
5849
|
return Y?.cells[ae]?.obj.k;
|
|
5836
5850
|
}, re = (ae) => {
|
|
@@ -5838,47 +5852,47 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5838
5852
|
return Y?.cells[y[ae].name]?.obj?.k;
|
|
5839
5853
|
};
|
|
5840
5854
|
return {
|
|
5841
|
-
descr: t ||
|
|
5842
|
-
icon: l ||
|
|
5843
|
-
um: p ||
|
|
5844
|
-
value: w ||
|
|
5855
|
+
descr: t || X(r) || re(2) || "",
|
|
5856
|
+
icon: l || X(c) || re(3) || "",
|
|
5857
|
+
um: p || X(g) || re(1) || "",
|
|
5858
|
+
value: w || X(S) || re(0) || ""
|
|
5845
5859
|
};
|
|
5846
|
-
},
|
|
5860
|
+
}, U = (Y) => {
|
|
5847
5861
|
C?.(Y);
|
|
5848
|
-
},
|
|
5849
|
-
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(),
|
|
5862
|
+
}, W = (Y, X) => {
|
|
5863
|
+
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(), U(X));
|
|
5850
5864
|
}, q = ((Y) => {
|
|
5851
|
-
const
|
|
5865
|
+
const X = Z.dash(Y);
|
|
5852
5866
|
return {
|
|
5853
|
-
className:
|
|
5854
|
-
descr: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5855
|
-
icon: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5856
|
-
|
|
5867
|
+
className: X,
|
|
5868
|
+
descr: (re) => /* @__PURE__ */ m.jsx("div", { className: X.descr, children: re }, `${Y}-${R}`),
|
|
5869
|
+
icon: (re) => /* @__PURE__ */ m.jsx("div", { className: X.icon, children: /* @__PURE__ */ m.jsx(
|
|
5870
|
+
ce,
|
|
5857
5871
|
{
|
|
5858
5872
|
color: f,
|
|
5859
|
-
height:
|
|
5873
|
+
height: H,
|
|
5860
5874
|
icon: re,
|
|
5861
|
-
width:
|
|
5875
|
+
width: H
|
|
5862
5876
|
}
|
|
5863
5877
|
) }, `${Y}-${D}`),
|
|
5864
|
-
um: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5865
|
-
value: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5878
|
+
um: (re) => /* @__PURE__ */ m.jsx("div", { className: X.um, children: re }, `${Y}-${T}`),
|
|
5879
|
+
value: (re) => /* @__PURE__ */ m.jsx("div", { className: X.value, children: re }, `${Y}-${P}`)
|
|
5866
5880
|
};
|
|
5867
5881
|
})(b), se = (Y) => {
|
|
5868
|
-
const { descr:
|
|
5869
|
-
[$(R)]:
|
|
5870
|
-
[$(T)]:
|
|
5871
|
-
[$(
|
|
5872
|
-
}, ge = [], Le =
|
|
5882
|
+
const { descr: X, icon: re, um: ae, value: ke } = V(Y), Me = {
|
|
5883
|
+
[$(R)]: A(s),
|
|
5884
|
+
[$(T)]: A(d),
|
|
5885
|
+
[$(P)]: A(E)
|
|
5886
|
+
}, ge = [], Le = _(ke);
|
|
5873
5887
|
switch (b) {
|
|
5874
5888
|
case "2":
|
|
5875
|
-
re && ge.push(q.icon(re)), ge.push(q.descr(
|
|
5889
|
+
re && ge.push(q.icon(re)), ge.push(q.descr(X)), ge.push(
|
|
5876
5890
|
q.value(ae ? Le + " " + ae : Le)
|
|
5877
5891
|
);
|
|
5878
5892
|
break;
|
|
5879
5893
|
default:
|
|
5880
5894
|
case "1":
|
|
5881
|
-
ge.push(q.descr(
|
|
5895
|
+
ge.push(q.descr(X)), ge.push(
|
|
5882
5896
|
q.value(ae ? Le + " " + ae : Le)
|
|
5883
5897
|
);
|
|
5884
5898
|
}
|
|
@@ -5889,17 +5903,17 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5889
5903
|
role: "button",
|
|
5890
5904
|
style: Me,
|
|
5891
5905
|
tabIndex: 0,
|
|
5892
|
-
onClick: () =>
|
|
5893
|
-
onKeyDown: (Mn) =>
|
|
5906
|
+
onClick: () => U(Y),
|
|
5907
|
+
onKeyDown: (Mn) => W(Mn, Y),
|
|
5894
5908
|
children: ge
|
|
5895
5909
|
},
|
|
5896
5910
|
Y.rowId
|
|
5897
5911
|
);
|
|
5898
5912
|
}, M = {
|
|
5899
|
-
[
|
|
5913
|
+
[B]: String(n),
|
|
5900
5914
|
[z]: N
|
|
5901
5915
|
};
|
|
5902
|
-
return /* @__PURE__ */ m.jsx("div", { className:
|
|
5916
|
+
return /* @__PURE__ */ m.jsx("div", { className: Z.dashList, style: M, children: j ? L.map((Y) => se(Y)) : x });
|
|
5903
5917
|
}, tt = {
|
|
5904
5918
|
"smp-table": "_smp-table_1qmju_1",
|
|
5905
5919
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
@@ -5941,7 +5955,7 @@ const Nn = ({
|
|
|
5941
5955
|
indent: `${Ce.indent}`,
|
|
5942
5956
|
cell: `${Ce.cell}`
|
|
5943
5957
|
}, g = (b) => /* @__PURE__ */ m.jsx(Oe, { ...b }), d = () => /* @__PURE__ */ m.jsx("span", { className: p.toggle, children: c && /* @__PURE__ */ m.jsx(
|
|
5944
|
-
|
|
5958
|
+
ce,
|
|
5945
5959
|
{
|
|
5946
5960
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5947
5961
|
width: 16
|
|
@@ -5982,21 +5996,21 @@ const Nn = ({
|
|
|
5982
5996
|
]
|
|
5983
5997
|
}
|
|
5984
5998
|
),
|
|
5985
|
-
n.cells && Object.keys(n.cells).length > 0 && Object.entries(n.cells).map(([
|
|
5999
|
+
n.cells && Object.keys(n.cells).length > 0 && Object.entries(n.cells).map(([x, y]) => /* @__PURE__ */ m.jsx(
|
|
5986
6000
|
"td",
|
|
5987
6001
|
{
|
|
5988
6002
|
className: p.cell,
|
|
5989
6003
|
style: {
|
|
5990
|
-
width: e[
|
|
5991
|
-
minWidth: e[
|
|
6004
|
+
width: e[x],
|
|
6005
|
+
minWidth: e[x],
|
|
5992
6006
|
height: `${r}px`
|
|
5993
6007
|
},
|
|
5994
6008
|
children: g({
|
|
5995
6009
|
...y,
|
|
5996
|
-
id:
|
|
6010
|
+
id: x
|
|
5997
6011
|
})
|
|
5998
6012
|
},
|
|
5999
|
-
Us(y) ||
|
|
6013
|
+
Us(y) || x
|
|
6000
6014
|
))
|
|
6001
6015
|
]
|
|
6002
6016
|
}
|
|
@@ -6037,7 +6051,7 @@ const Nn = ({
|
|
|
6037
6051
|
},
|
|
6038
6052
|
children: [
|
|
6039
6053
|
/* @__PURE__ */ m.jsx(
|
|
6040
|
-
|
|
6054
|
+
ce,
|
|
6041
6055
|
{
|
|
6042
6056
|
icon: a ? "arrow_drop_down" : "arrow_drop_right",
|
|
6043
6057
|
width: 16
|
|
@@ -6074,8 +6088,8 @@ function Gs(n, e, t, r) {
|
|
|
6074
6088
|
}
|
|
6075
6089
|
const d = e[p].column, w = o(u, d);
|
|
6076
6090
|
for (const [S, E] of w) {
|
|
6077
|
-
const b = [...g, S], C = l(b, p),
|
|
6078
|
-
s.push(c(S, C, p,
|
|
6091
|
+
const b = [...g, S], C = l(b, p), x = r.has(C);
|
|
6092
|
+
s.push(c(S, C, p, x)), a += t, x && i(E, p + 1, b);
|
|
6079
6093
|
}
|
|
6080
6094
|
}
|
|
6081
6095
|
function o(u, p) {
|
|
@@ -6124,7 +6138,7 @@ const Hs = ({
|
|
|
6124
6138
|
onDragOver: a,
|
|
6125
6139
|
onDrop: s,
|
|
6126
6140
|
children: [
|
|
6127
|
-
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6141
|
+
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(ce, { icon: "groups" }) }),
|
|
6128
6142
|
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6129
6143
|
It,
|
|
6130
6144
|
{
|
|
@@ -6195,7 +6209,7 @@ const Hs = ({
|
|
|
6195
6209
|
}) => {
|
|
6196
6210
|
const [i, o] = G(
|
|
6197
6211
|
n ?? { columns: [], rows: [] }
|
|
6198
|
-
), [l, c] = G(r || []), [f, u] = G(/* @__PURE__ */ new Set()), p =
|
|
6212
|
+
), [l, c] = G(r || []), [f, u] = G(/* @__PURE__ */ new Set()), p = ue(null), [g, d] = Ks({
|
|
6199
6213
|
columns: i?.columns ?? [],
|
|
6200
6214
|
rows: i?.rows ?? [],
|
|
6201
6215
|
containerRef: p,
|
|
@@ -6203,44 +6217,44 @@ const Hs = ({
|
|
|
6203
6217
|
});
|
|
6204
6218
|
ne(() => {
|
|
6205
6219
|
if (l?.length && n.rows) {
|
|
6206
|
-
const { flatRows:
|
|
6220
|
+
const { flatRows: j } = Gs(
|
|
6207
6221
|
n.rows,
|
|
6208
6222
|
l,
|
|
6209
6223
|
e,
|
|
6210
6224
|
f
|
|
6211
6225
|
);
|
|
6212
|
-
o({ ...n, rows:
|
|
6226
|
+
o({ ...n, rows: j });
|
|
6213
6227
|
} else
|
|
6214
6228
|
o(n);
|
|
6215
6229
|
}, [n, l, f, e]);
|
|
6216
|
-
const w = (
|
|
6217
|
-
c(Bs(
|
|
6218
|
-
}, S = (
|
|
6219
|
-
|
|
6220
|
-
const O =
|
|
6230
|
+
const w = (j) => {
|
|
6231
|
+
c(Bs(j, l));
|
|
6232
|
+
}, S = (j) => {
|
|
6233
|
+
j.preventDefault();
|
|
6234
|
+
const O = j.dataTransfer.getData("text/plain");
|
|
6221
6235
|
if (!O || l.some((D) => D.column === O))
|
|
6222
6236
|
return;
|
|
6223
6237
|
const R = [...l, { column: O, visible: !0 }];
|
|
6224
6238
|
c(R);
|
|
6225
|
-
}, E = (
|
|
6226
|
-
|
|
6227
|
-
}, { virtualItems: b, containerProps: C, innerProps:
|
|
6239
|
+
}, E = (j) => {
|
|
6240
|
+
j.preventDefault();
|
|
6241
|
+
}, { virtualItems: b, containerProps: C, innerProps: x } = kn({
|
|
6228
6242
|
items: i?.rows ?? [],
|
|
6229
6243
|
itemHeight: e,
|
|
6230
6244
|
containerHeight: t,
|
|
6231
6245
|
overscan: 5
|
|
6232
|
-
}), y = (
|
|
6233
|
-
const
|
|
6234
|
-
const N =
|
|
6235
|
-
d((
|
|
6236
|
-
...
|
|
6237
|
-
[O]:
|
|
6246
|
+
}), y = (j, O) => {
|
|
6247
|
+
const k = j.clientX, R = g[O], D = (P) => {
|
|
6248
|
+
const N = P.clientX - k, H = Math.max(50, R + N);
|
|
6249
|
+
d((B) => ({
|
|
6250
|
+
...B,
|
|
6251
|
+
[O]: H
|
|
6238
6252
|
}));
|
|
6239
6253
|
}, T = () => {
|
|
6240
6254
|
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", T);
|
|
6241
6255
|
};
|
|
6242
6256
|
window.addEventListener("mousemove", D), window.addEventListener("mouseup", T);
|
|
6243
|
-
},
|
|
6257
|
+
}, L = {
|
|
6244
6258
|
smpTable: `${tt["smp-table"]}`,
|
|
6245
6259
|
headerCell: `${tt["smp-headerCell"]}`,
|
|
6246
6260
|
resizer: `${tt["smp-resizer"]}`
|
|
@@ -6248,7 +6262,7 @@ const Hs = ({
|
|
|
6248
6262
|
return i && /* @__PURE__ */ m.jsx(
|
|
6249
6263
|
"div",
|
|
6250
6264
|
{
|
|
6251
|
-
className:
|
|
6265
|
+
className: L.smpTable,
|
|
6252
6266
|
...C,
|
|
6253
6267
|
ref: p,
|
|
6254
6268
|
children: /* @__PURE__ */ m.jsxs("table", { children: [
|
|
@@ -6263,64 +6277,64 @@ const Hs = ({
|
|
|
6263
6277
|
}
|
|
6264
6278
|
),
|
|
6265
6279
|
/* @__PURE__ */ m.jsx("tr", { children: i.columns && i.columns?.map(
|
|
6266
|
-
(
|
|
6280
|
+
(j) => j.visible && /* @__PURE__ */ m.jsxs(
|
|
6267
6281
|
"th",
|
|
6268
6282
|
{
|
|
6269
|
-
className:
|
|
6283
|
+
className: L.headerCell,
|
|
6270
6284
|
draggable: !0,
|
|
6271
6285
|
onDragStart: (O) => {
|
|
6272
|
-
O.dataTransfer.setData("text/plain",
|
|
6286
|
+
O.dataTransfer.setData("text/plain", j.name);
|
|
6273
6287
|
},
|
|
6274
6288
|
style: {
|
|
6275
|
-
width: g[
|
|
6276
|
-
minWidth: g[
|
|
6277
|
-
maxWidth: g[
|
|
6289
|
+
width: g[j.name],
|
|
6290
|
+
minWidth: g[j.name],
|
|
6291
|
+
maxWidth: g[j.name]
|
|
6278
6292
|
},
|
|
6279
6293
|
children: [
|
|
6280
6294
|
/* @__PURE__ */ m.jsx(
|
|
6281
6295
|
_e,
|
|
6282
6296
|
{
|
|
6283
6297
|
variant: "title",
|
|
6284
|
-
bindValue:
|
|
6298
|
+
bindValue: j.title
|
|
6285
6299
|
}
|
|
6286
6300
|
),
|
|
6287
6301
|
/* @__PURE__ */ m.jsx(
|
|
6288
6302
|
"div",
|
|
6289
6303
|
{
|
|
6290
|
-
className:
|
|
6291
|
-
onMouseDown: (O) => y(O,
|
|
6304
|
+
className: L.resizer,
|
|
6305
|
+
onMouseDown: (O) => y(O, j.name),
|
|
6292
6306
|
role: "region"
|
|
6293
6307
|
}
|
|
6294
6308
|
)
|
|
6295
6309
|
]
|
|
6296
6310
|
},
|
|
6297
|
-
|
|
6311
|
+
j.name
|
|
6298
6312
|
)
|
|
6299
6313
|
) })
|
|
6300
6314
|
] }),
|
|
6301
|
-
/* @__PURE__ */ m.jsx("tbody", { ...
|
|
6302
|
-
const R =
|
|
6303
|
-
return
|
|
6315
|
+
/* @__PURE__ */ m.jsx("tbody", { ...x, children: b.map(({ item: j, index: O, offsetTop: k }) => {
|
|
6316
|
+
const R = j.rowId || j.value || `${j.isGroup ? "group" : "row"}-${O}`;
|
|
6317
|
+
return j.isGroup ? /* @__PURE__ */ m.jsx(
|
|
6304
6318
|
Ws,
|
|
6305
6319
|
{
|
|
6306
|
-
label:
|
|
6320
|
+
label: j.value || "",
|
|
6307
6321
|
rowHeight: e,
|
|
6308
|
-
offsetTop:
|
|
6309
|
-
level:
|
|
6322
|
+
offsetTop: k,
|
|
6323
|
+
level: j.level,
|
|
6310
6324
|
onClick: () => {
|
|
6311
|
-
const D =
|
|
6325
|
+
const D = j.rowId;
|
|
6312
6326
|
D && u((T) => Ys(T, D));
|
|
6313
6327
|
},
|
|
6314
|
-
isExpanded:
|
|
6328
|
+
isExpanded: j.isExpanded
|
|
6315
6329
|
},
|
|
6316
6330
|
`group-${R}`
|
|
6317
6331
|
) : /* @__PURE__ */ m.jsx(
|
|
6318
6332
|
Nn,
|
|
6319
6333
|
{
|
|
6320
|
-
row:
|
|
6334
|
+
row: j,
|
|
6321
6335
|
columnWidths: g,
|
|
6322
6336
|
rowHeight: e,
|
|
6323
|
-
offsetTop:
|
|
6337
|
+
offsetTop: k,
|
|
6324
6338
|
isGroup: !1
|
|
6325
6339
|
},
|
|
6326
6340
|
`row-${R}`
|
|
@@ -6421,39 +6435,39 @@ const Hs = ({
|
|
|
6421
6435
|
}) => {
|
|
6422
6436
|
const [p, g] = G({}), { translate: d } = $e(), w = we();
|
|
6423
6437
|
ne(() => {
|
|
6424
|
-
g(
|
|
6438
|
+
g(x(n));
|
|
6425
6439
|
}, [n]);
|
|
6426
|
-
const S = (O,
|
|
6440
|
+
const S = (O, k) => {
|
|
6427
6441
|
if (g((R) => ({
|
|
6428
6442
|
...R,
|
|
6429
6443
|
[O]: {
|
|
6430
6444
|
...R[O],
|
|
6431
6445
|
obj: {
|
|
6432
6446
|
...R[O].obj,
|
|
6433
|
-
k:
|
|
6447
|
+
k: k.obj.k
|
|
6434
6448
|
},
|
|
6435
|
-
decode:
|
|
6449
|
+
decode: k.decode,
|
|
6436
6450
|
data: {
|
|
6437
6451
|
...R[O].data,
|
|
6438
6452
|
error: void 0
|
|
6439
6453
|
},
|
|
6440
6454
|
// FIXME: remove this when webup.js will not use value
|
|
6441
|
-
value:
|
|
6455
|
+
value: k.obj.k
|
|
6442
6456
|
}
|
|
6443
|
-
})), s && (
|
|
6457
|
+
})), s && (k.shape == te.CHECKBOX || k.shape == te.SWITCH)) {
|
|
6444
6458
|
const R = structuredClone(p);
|
|
6445
|
-
R[O].obj.k =
|
|
6459
|
+
R[O].obj.k = k.obj.k, R[O].value = k.obj.k, o({
|
|
6446
6460
|
value: y(R),
|
|
6447
6461
|
cell: O
|
|
6448
6462
|
});
|
|
6449
6463
|
}
|
|
6450
6464
|
}, E = (O) => {
|
|
6451
|
-
const
|
|
6465
|
+
const k = y(p);
|
|
6452
6466
|
o({
|
|
6453
|
-
value:
|
|
6467
|
+
value: k,
|
|
6454
6468
|
cell: O
|
|
6455
6469
|
});
|
|
6456
|
-
}, b = (O,
|
|
6470
|
+
}, b = (O, k) => {
|
|
6457
6471
|
u?.({
|
|
6458
6472
|
cellId: O,
|
|
6459
6473
|
currentState: {
|
|
@@ -6465,7 +6479,7 @@ const Hs = ({
|
|
|
6465
6479
|
}
|
|
6466
6480
|
]
|
|
6467
6481
|
},
|
|
6468
|
-
fun:
|
|
6482
|
+
fun: k || ""
|
|
6469
6483
|
});
|
|
6470
6484
|
}, C = async (O) => {
|
|
6471
6485
|
if (p[O].obj.k != n.rows[0].cells[O].obj.k && (p[O].inputSettings?.checkObject && c && ((await c({
|
|
@@ -6482,24 +6496,24 @@ const Hs = ({
|
|
|
6482
6496
|
}
|
|
6483
6497
|
}
|
|
6484
6498
|
}))), p[O].inputSettings?.checkValueOnExit)) {
|
|
6485
|
-
const
|
|
6499
|
+
const k = y(p);
|
|
6486
6500
|
l?.({
|
|
6487
|
-
value:
|
|
6501
|
+
value: k,
|
|
6488
6502
|
cell: O
|
|
6489
6503
|
});
|
|
6490
6504
|
}
|
|
6491
|
-
},
|
|
6505
|
+
}, x = (O) => {
|
|
6492
6506
|
if (!O.rows?.length || !O.columns?.length)
|
|
6493
6507
|
return {};
|
|
6494
|
-
const
|
|
6508
|
+
const k = O.rows?.[0];
|
|
6495
6509
|
return O.columns.filter((R) => R.visible ?? !0).reduce((R, D) => {
|
|
6496
6510
|
const T = {
|
|
6497
|
-
...
|
|
6511
|
+
...k.cells[D.name],
|
|
6498
6512
|
id: D.name,
|
|
6499
6513
|
label: D.title,
|
|
6500
6514
|
dSep: a,
|
|
6501
6515
|
data: {
|
|
6502
|
-
...
|
|
6516
|
+
...k.cells[D.name].data,
|
|
6503
6517
|
dSep: a
|
|
6504
6518
|
}
|
|
6505
6519
|
};
|
|
@@ -6519,7 +6533,7 @@ const Hs = ({
|
|
|
6519
6533
|
}
|
|
6520
6534
|
]
|
|
6521
6535
|
}
|
|
6522
|
-
}),
|
|
6536
|
+
}), L = n.setup?.commands?.map((O, k) => /* @__PURE__ */ Un(
|
|
6523
6537
|
Oe,
|
|
6524
6538
|
{
|
|
6525
6539
|
...O,
|
|
@@ -6527,13 +6541,13 @@ const Hs = ({
|
|
|
6527
6541
|
data: {
|
|
6528
6542
|
label: O.value
|
|
6529
6543
|
},
|
|
6530
|
-
id: `command-${
|
|
6531
|
-
key: `command-${
|
|
6544
|
+
id: `command-${k}`,
|
|
6545
|
+
key: `command-${k}`,
|
|
6532
6546
|
shape: te.BUTTON,
|
|
6533
6547
|
onClick: () => E(O.obj.k)
|
|
6534
6548
|
}
|
|
6535
6549
|
)) || [];
|
|
6536
|
-
r ||
|
|
6550
|
+
r || L.unshift(
|
|
6537
6551
|
/* @__PURE__ */ m.jsx(
|
|
6538
6552
|
Oe,
|
|
6539
6553
|
{
|
|
@@ -6553,14 +6567,14 @@ const Hs = ({
|
|
|
6553
6567
|
"submit-command"
|
|
6554
6568
|
)
|
|
6555
6569
|
);
|
|
6556
|
-
const
|
|
6570
|
+
const j = {
|
|
6557
6571
|
smpForm: `${Zs["smp-form"]}`
|
|
6558
6572
|
};
|
|
6559
6573
|
return p && /* @__PURE__ */ m.jsxs(
|
|
6560
6574
|
"form",
|
|
6561
6575
|
{
|
|
6562
6576
|
"data-component": "input-panel",
|
|
6563
|
-
className:
|
|
6577
|
+
className: j.smpForm,
|
|
6564
6578
|
id: e || w,
|
|
6565
6579
|
onSubmit: (O) => {
|
|
6566
6580
|
O.preventDefault(), E();
|
|
@@ -6570,10 +6584,10 @@ const Hs = ({
|
|
|
6570
6584
|
Oe,
|
|
6571
6585
|
{
|
|
6572
6586
|
...O,
|
|
6573
|
-
onOptionsRequest: O.fun ? async (
|
|
6574
|
-
await i(
|
|
6587
|
+
onOptionsRequest: O.fun ? async (k, R) => Xs(
|
|
6588
|
+
await i(k, R, n, O.id)
|
|
6575
6589
|
) : void 0,
|
|
6576
|
-
onChange: (
|
|
6590
|
+
onChange: (k) => S(O.id, k),
|
|
6577
6591
|
onBlur: () => C(O.id),
|
|
6578
6592
|
onContextMenu: f,
|
|
6579
6593
|
onClick: () => {
|
|
@@ -6585,7 +6599,7 @@ const Hs = ({
|
|
|
6585
6599
|
}
|
|
6586
6600
|
}
|
|
6587
6601
|
)) }),
|
|
6588
|
-
|
|
6602
|
+
L.length > 0 && /* @__PURE__ */ m.jsx(
|
|
6589
6603
|
at,
|
|
6590
6604
|
{
|
|
6591
6605
|
layout: {
|
|
@@ -6594,13 +6608,13 @@ const Hs = ({
|
|
|
6594
6608
|
id: "1",
|
|
6595
6609
|
horizontal: !0,
|
|
6596
6610
|
justify: "start",
|
|
6597
|
-
content:
|
|
6611
|
+
content: L.map((O) => ({
|
|
6598
6612
|
id: O.props.id
|
|
6599
6613
|
}))
|
|
6600
6614
|
}
|
|
6601
6615
|
]
|
|
6602
6616
|
},
|
|
6603
|
-
children:
|
|
6617
|
+
children: L
|
|
6604
6618
|
}
|
|
6605
6619
|
)
|
|
6606
6620
|
]
|
|
@@ -6619,7 +6633,7 @@ export {
|
|
|
6619
6633
|
gs as DatePicker,
|
|
6620
6634
|
ra as Drawer,
|
|
6621
6635
|
oa as Field,
|
|
6622
|
-
|
|
6636
|
+
ce as Icon,
|
|
6623
6637
|
ia as InputPanel,
|
|
6624
6638
|
bs as Password,
|
|
6625
6639
|
gr as TabBar,
|