@sme.up/ketchup2 2.0.0-SNAPSHOT-20250701135033 → 2.0.0-SNAPSHOT-20250702073631
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/ketchup2.es.js
CHANGED
|
@@ -124,7 +124,7 @@ function Kr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = $.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
@@ -139,7 +139,7 @@ function Kr() {
|
|
|
139
139
|
}
|
|
140
140
|
function o(h, v) {
|
|
141
141
|
function R() {
|
|
142
|
-
|
|
142
|
+
I || (I = !0, console.error(
|
|
143
143
|
"%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)",
|
|
144
144
|
v
|
|
145
145
|
));
|
|
@@ -155,13 +155,13 @@ function Kr() {
|
|
|
155
155
|
"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."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function c(h, v, R, L,
|
|
158
|
+
function c(h, v, R, L, C, N, W, B) {
|
|
159
159
|
return R = N.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
162
|
key: v,
|
|
163
163
|
props: N,
|
|
164
|
-
_owner:
|
|
164
|
+
_owner: C
|
|
165
165
|
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: l
|
|
@@ -179,7 +179,7 @@ function Kr() {
|
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: W
|
|
183
183
|
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
@@ -187,25 +187,25 @@ function Kr() {
|
|
|
187
187
|
value: B
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(h, v, R, L,
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
190
|
+
function f(h, v, R, L, C, N, W, B) {
|
|
191
|
+
var U = v.children;
|
|
192
|
+
if (U !== void 0)
|
|
193
193
|
if (L)
|
|
194
|
-
if (
|
|
195
|
-
for (L = 0; L <
|
|
196
|
-
u(
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
194
|
+
if (P(U)) {
|
|
195
|
+
for (L = 0; L < U.length; L++)
|
|
196
|
+
u(U[L]);
|
|
197
|
+
Object.freeze && Object.freeze(U);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
|
-
else u(
|
|
202
|
+
else u(U);
|
|
203
203
|
if (D.call(v, "key")) {
|
|
204
|
-
|
|
204
|
+
U = r(h);
|
|
205
205
|
var X = Object.keys(v).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[
|
|
208
|
+
L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[U + L] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -213,34 +213,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
215
|
L,
|
|
216
|
-
|
|
216
|
+
U,
|
|
217
217
|
X,
|
|
218
|
-
|
|
219
|
-
), Y[
|
|
218
|
+
U
|
|
219
|
+
), Y[U + L] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (
|
|
221
|
+
if (U = null, R !== void 0 && (t(R), U = "" + R), i(v) && (t(v.key), U = "" + v.key), "key" in v) {
|
|
222
222
|
R = {};
|
|
223
223
|
for (var K in v)
|
|
224
224
|
K !== "key" && (R[K] = v[K]);
|
|
225
225
|
} else R = v;
|
|
226
|
-
return
|
|
226
|
+
return U && o(
|
|
227
227
|
R,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), c(
|
|
230
230
|
h,
|
|
231
|
-
|
|
231
|
+
U,
|
|
232
232
|
N,
|
|
233
|
-
|
|
233
|
+
C,
|
|
234
234
|
s(),
|
|
235
235
|
R,
|
|
236
|
-
|
|
236
|
+
W,
|
|
237
237
|
B
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
function u(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"),
|
|
243
|
+
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), $ = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, P = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
d = {
|
|
@@ -248,31 +248,31 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var I, V = {}, z = d["react-stack-bottom-frame"].bind(
|
|
252
252
|
d,
|
|
253
253
|
a
|
|
254
254
|
)(), J = F(n(a)), Y = {};
|
|
255
|
-
Ye.Fragment = y, Ye.jsx = function(h, v, R, L,
|
|
256
|
-
var N = 1e4 >
|
|
255
|
+
Ye.Fragment = y, Ye.jsx = function(h, v, R, L, C) {
|
|
256
|
+
var N = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
h,
|
|
259
259
|
v,
|
|
260
260
|
R,
|
|
261
261
|
!1,
|
|
262
262
|
L,
|
|
263
|
-
|
|
263
|
+
C,
|
|
264
264
|
N ? Error("react-stack-top-frame") : z,
|
|
265
265
|
N ? F(n(h)) : J
|
|
266
266
|
);
|
|
267
|
-
}, Ye.jsxs = function(h, v, R, L,
|
|
268
|
-
var N = 1e4 >
|
|
267
|
+
}, Ye.jsxs = function(h, v, R, L, C) {
|
|
268
|
+
var N = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
270
|
h,
|
|
271
271
|
v,
|
|
272
272
|
R,
|
|
273
273
|
!0,
|
|
274
274
|
L,
|
|
275
|
-
|
|
275
|
+
C,
|
|
276
276
|
N ? Error("react-stack-top-frame") : z,
|
|
277
277
|
N ? F(n(h)) : J
|
|
278
278
|
);
|
|
@@ -554,7 +554,7 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
554
554
|
}, E, b, j, k, A;
|
|
555
555
|
Object.keys(S).forEach(function(J) {
|
|
556
556
|
E = J, j = S[J], b = u.querySelectorAll(E + "[id]");
|
|
557
|
-
for (var Y = function(L,
|
|
557
|
+
for (var Y = function(L, C) {
|
|
558
558
|
k = b[L].id, A = k + "-" + sn();
|
|
559
559
|
var N;
|
|
560
560
|
Array.prototype.forEach.call(j, function(H) {
|
|
@@ -564,9 +564,9 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
564
564
|
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || N[Z].setAttribute(H, "url(#" + A + ")");
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
|
-
for (var
|
|
568
|
-
var K = U
|
|
569
|
-
K && K.toString() === "#" + b[L].id && B.push(U
|
|
567
|
+
for (var W = u.querySelectorAll("[*|href]"), B = [], U = 0, X = W.length; U < X; U++) {
|
|
568
|
+
var K = W[U].getAttributeNS(vt, "href");
|
|
569
|
+
K && K.toString() === "#" + b[L].id && B.push(W[U]);
|
|
570
570
|
}
|
|
571
571
|
for (var ae = 0, M = B.length; ae < M; ae++)
|
|
572
572
|
B[ae].setAttributeNS(vt, "href", "#" + A);
|
|
@@ -576,11 +576,11 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
u.removeAttribute("xmlns:a");
|
|
579
|
-
for (var O = u.querySelectorAll("script"), T = [],
|
|
580
|
-
D = O[
|
|
579
|
+
for (var O = u.querySelectorAll("script"), T = [], $, D, P = 0, F = O.length; P < F; P++)
|
|
580
|
+
D = O[P].getAttribute("type"), (!D || D === "application/ecmascript" || D === "application/javascript" || D === "text/javascript") && ($ = O[P].innerText || O[P].textContent, $ && T.push($), u.removeChild(O[P]));
|
|
581
581
|
if (T.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
582
|
-
for (var
|
|
583
|
-
new Function(T[
|
|
582
|
+
for (var I = 0, V = T.length; I < V; I++)
|
|
583
|
+
new Function(T[I])(window);
|
|
584
584
|
Gt[l] = !0;
|
|
585
585
|
}
|
|
586
586
|
var z = u.querySelectorAll("style");
|
|
@@ -729,7 +729,7 @@ function cn() {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
var b = l, j = c, k = o, A = i, O = e, T = f,
|
|
732
|
+
var b = l, j = c, k = o, A = i, O = e, T = f, $ = n, D = p, P = m, F = t, I = a, V = s, z = u, J = !1;
|
|
733
733
|
function Y(M) {
|
|
734
734
|
return J || (J = !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) || E(M) === l;
|
|
735
735
|
}
|
|
@@ -745,19 +745,19 @@ function cn() {
|
|
|
745
745
|
function L(M) {
|
|
746
746
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function C(M) {
|
|
749
749
|
return E(M) === f;
|
|
750
750
|
}
|
|
751
751
|
function N(M) {
|
|
752
752
|
return E(M) === n;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function W(M) {
|
|
755
755
|
return E(M) === p;
|
|
756
756
|
}
|
|
757
757
|
function B(M) {
|
|
758
758
|
return E(M) === m;
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function U(M) {
|
|
761
761
|
return E(M) === t;
|
|
762
762
|
}
|
|
763
763
|
function X(M) {
|
|
@@ -769,7 +769,7 @@ function cn() {
|
|
|
769
769
|
function ae(M) {
|
|
770
770
|
return E(M) === u;
|
|
771
771
|
}
|
|
772
|
-
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider = A, ee.Element = O, ee.ForwardRef = T, ee.Fragment =
|
|
772
|
+
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider = A, ee.Element = O, ee.ForwardRef = T, ee.Fragment = $, ee.Lazy = D, ee.Memo = P, ee.Portal = F, ee.Profiler = I, ee.StrictMode = V, ee.Suspense = z, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = v, ee.isContextProvider = R, ee.isElement = L, ee.isForwardRef = C, ee.isFragment = N, ee.isLazy = W, ee.isMemo = B, ee.isPortal = U, ee.isProfiler = X, ee.isStrictMode = K, ee.isSuspense = ae, ee.isValidElementType = S, ee.typeOf = E;
|
|
773
773
|
}()), ee;
|
|
774
774
|
}
|
|
775
775
|
var Jt;
|
|
@@ -930,7 +930,7 @@ function dn() {
|
|
|
930
930
|
oneOf: k,
|
|
931
931
|
oneOfType: O,
|
|
932
932
|
shape: D,
|
|
933
|
-
exact:
|
|
933
|
+
exact: P
|
|
934
934
|
};
|
|
935
935
|
function p(h, v) {
|
|
936
936
|
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
@@ -942,33 +942,33 @@ function dn() {
|
|
|
942
942
|
function x(h) {
|
|
943
943
|
if (process.env.NODE_ENV !== "production")
|
|
944
944
|
var v = {}, R = 0;
|
|
945
|
-
function L(N,
|
|
946
|
-
if (
|
|
945
|
+
function L(N, W, B, U, X, K, ae) {
|
|
946
|
+
if (U = U || d, K = K || B, ae !== t) {
|
|
947
947
|
if (l) {
|
|
948
948
|
var M = new Error(
|
|
949
949
|
"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"
|
|
950
950
|
);
|
|
951
951
|
throw M.name = "Invariant Violation", M;
|
|
952
952
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
953
|
-
var H =
|
|
953
|
+
var H = U + ":" + B;
|
|
954
954
|
!v[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
955
955
|
R < 3 && (a(
|
|
956
|
-
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" +
|
|
956
|
+
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + U + "`. 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."
|
|
957
957
|
), v[H] = !0, R++);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
return
|
|
960
|
+
return W[B] == null ? N ? W[B] === null ? new y("The " + X + " `" + K + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + X + " `" + K + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : h(W, B, U, X, K);
|
|
961
961
|
}
|
|
962
|
-
var
|
|
963
|
-
return
|
|
962
|
+
var C = L.bind(null, !1);
|
|
963
|
+
return C.isRequired = L.bind(null, !0), C;
|
|
964
964
|
}
|
|
965
965
|
function _(h) {
|
|
966
|
-
function v(R, L,
|
|
967
|
-
var
|
|
966
|
+
function v(R, L, C, N, W, B) {
|
|
967
|
+
var U = R[L], X = V(U);
|
|
968
968
|
if (X !== h) {
|
|
969
|
-
var K = z(
|
|
969
|
+
var K = z(U);
|
|
970
970
|
return new y(
|
|
971
|
-
"Invalid " + N + " `" +
|
|
971
|
+
"Invalid " + N + " `" + W + "` of type " + ("`" + K + "` supplied to `" + C + "`, expected ") + ("`" + h + "`."),
|
|
972
972
|
{ expectedType: h }
|
|
973
973
|
);
|
|
974
974
|
}
|
|
@@ -980,16 +980,16 @@ function dn() {
|
|
|
980
980
|
return x(i);
|
|
981
981
|
}
|
|
982
982
|
function S(h) {
|
|
983
|
-
function v(R, L,
|
|
983
|
+
function v(R, L, C, N, W) {
|
|
984
984
|
if (typeof h != "function")
|
|
985
|
-
return new y("Property `" +
|
|
985
|
+
return new y("Property `" + W + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
986
986
|
var B = R[L];
|
|
987
987
|
if (!Array.isArray(B)) {
|
|
988
|
-
var
|
|
989
|
-
return new y("Invalid " + N + " `" +
|
|
988
|
+
var U = V(B);
|
|
989
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + C + "`, expected an array."));
|
|
990
990
|
}
|
|
991
991
|
for (var X = 0; X < B.length; X++) {
|
|
992
|
-
var K = h(B, X,
|
|
992
|
+
var K = h(B, X, C, N, W + "[" + X + "]", t);
|
|
993
993
|
if (K instanceof Error)
|
|
994
994
|
return K;
|
|
995
995
|
}
|
|
@@ -998,32 +998,32 @@ function dn() {
|
|
|
998
998
|
return x(v);
|
|
999
999
|
}
|
|
1000
1000
|
function E() {
|
|
1001
|
-
function h(v, R, L,
|
|
1002
|
-
var
|
|
1003
|
-
if (!o(
|
|
1004
|
-
var B = V(
|
|
1005
|
-
return new y("Invalid " +
|
|
1001
|
+
function h(v, R, L, C, N) {
|
|
1002
|
+
var W = v[R];
|
|
1003
|
+
if (!o(W)) {
|
|
1004
|
+
var B = V(W);
|
|
1005
|
+
return new y("Invalid " + C + " `" + N + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
1006
1006
|
}
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
1009
1009
|
return x(h);
|
|
1010
1010
|
}
|
|
1011
1011
|
function b() {
|
|
1012
|
-
function h(v, R, L,
|
|
1013
|
-
var
|
|
1014
|
-
if (!r.isValidElementType(
|
|
1015
|
-
var B = V(
|
|
1016
|
-
return new y("Invalid " +
|
|
1012
|
+
function h(v, R, L, C, N) {
|
|
1013
|
+
var W = v[R];
|
|
1014
|
+
if (!r.isValidElementType(W)) {
|
|
1015
|
+
var B = V(W);
|
|
1016
|
+
return new y("Invalid " + C + " `" + N + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
1017
1017
|
}
|
|
1018
1018
|
return null;
|
|
1019
1019
|
}
|
|
1020
1020
|
return x(h);
|
|
1021
1021
|
}
|
|
1022
1022
|
function j(h) {
|
|
1023
|
-
function v(R, L,
|
|
1023
|
+
function v(R, L, C, N, W) {
|
|
1024
1024
|
if (!(R[L] instanceof h)) {
|
|
1025
|
-
var B = h.name || d,
|
|
1026
|
-
return new y("Invalid " + N + " `" +
|
|
1025
|
+
var B = h.name || d, U = Y(R[L]);
|
|
1026
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + C + "`, expected ") + ("instance of `" + B + "`."));
|
|
1027
1027
|
}
|
|
1028
1028
|
return null;
|
|
1029
1029
|
}
|
|
@@ -1034,28 +1034,28 @@ function dn() {
|
|
|
1034
1034
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1035
1035
|
"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])."
|
|
1036
1036
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1037
|
-
function v(R, L,
|
|
1038
|
-
for (var B = R[L],
|
|
1039
|
-
if (p(B, h[
|
|
1037
|
+
function v(R, L, C, N, W) {
|
|
1038
|
+
for (var B = R[L], U = 0; U < h.length; U++)
|
|
1039
|
+
if (p(B, h[U]))
|
|
1040
1040
|
return null;
|
|
1041
1041
|
var X = JSON.stringify(h, function(ae, M) {
|
|
1042
1042
|
var H = z(M);
|
|
1043
1043
|
return H === "symbol" ? String(M) : M;
|
|
1044
1044
|
});
|
|
1045
|
-
return new y("Invalid " + N + " `" +
|
|
1045
|
+
return new y("Invalid " + N + " `" + W + "` of value `" + String(B) + "` " + ("supplied to `" + C + "`, expected one of " + X + "."));
|
|
1046
1046
|
}
|
|
1047
1047
|
return x(v);
|
|
1048
1048
|
}
|
|
1049
1049
|
function A(h) {
|
|
1050
|
-
function v(R, L,
|
|
1050
|
+
function v(R, L, C, N, W) {
|
|
1051
1051
|
if (typeof h != "function")
|
|
1052
|
-
return new y("Property `" +
|
|
1053
|
-
var B = R[L],
|
|
1054
|
-
if (
|
|
1055
|
-
return new y("Invalid " + N + " `" +
|
|
1052
|
+
return new y("Property `" + W + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
1053
|
+
var B = R[L], U = V(B);
|
|
1054
|
+
if (U !== "object")
|
|
1055
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + C + "`, expected an object."));
|
|
1056
1056
|
for (var X in B)
|
|
1057
1057
|
if (n(B, X)) {
|
|
1058
|
-
var K = h(B, X,
|
|
1058
|
+
var K = h(B, X, C, N, W + "." + X, t);
|
|
1059
1059
|
if (K instanceof Error)
|
|
1060
1060
|
return K;
|
|
1061
1061
|
}
|
|
@@ -1073,39 +1073,39 @@ function dn() {
|
|
|
1073
1073
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(R) + " at index " + v + "."
|
|
1074
1074
|
), i;
|
|
1075
1075
|
}
|
|
1076
|
-
function L(
|
|
1076
|
+
function L(C, N, W, B, U) {
|
|
1077
1077
|
for (var X = [], K = 0; K < h.length; K++) {
|
|
1078
|
-
var ae = h[K], M = ae(
|
|
1078
|
+
var ae = h[K], M = ae(C, N, W, B, U, t);
|
|
1079
1079
|
if (M == null)
|
|
1080
1080
|
return null;
|
|
1081
1081
|
M.data && n(M.data, "expectedType") && X.push(M.data.expectedType);
|
|
1082
1082
|
}
|
|
1083
1083
|
var H = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1084
|
-
return new y("Invalid " + B + " `" +
|
|
1084
|
+
return new y("Invalid " + B + " `" + U + "` supplied to " + ("`" + W + "`" + H + "."));
|
|
1085
1085
|
}
|
|
1086
1086
|
return x(L);
|
|
1087
1087
|
}
|
|
1088
1088
|
function T() {
|
|
1089
|
-
function h(v, R, L,
|
|
1090
|
-
return F(v[R]) ? null : new y("Invalid " +
|
|
1089
|
+
function h(v, R, L, C, N) {
|
|
1090
|
+
return F(v[R]) ? null : new y("Invalid " + C + " `" + N + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
1091
1091
|
}
|
|
1092
1092
|
return x(h);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function $(h, v, R, L, C) {
|
|
1095
1095
|
return new y(
|
|
1096
|
-
(h || "React class") + ": " + v + " type `" + R + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1096
|
+
(h || "React class") + ": " + v + " type `" + R + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
1099
|
function D(h) {
|
|
1100
|
-
function v(R, L,
|
|
1101
|
-
var B = R[L],
|
|
1102
|
-
if (
|
|
1103
|
-
return new y("Invalid " + N + " `" +
|
|
1100
|
+
function v(R, L, C, N, W) {
|
|
1101
|
+
var B = R[L], U = V(B);
|
|
1102
|
+
if (U !== "object")
|
|
1103
|
+
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
1104
1104
|
for (var X in h) {
|
|
1105
1105
|
var K = h[X];
|
|
1106
1106
|
if (typeof K != "function")
|
|
1107
|
-
return C
|
|
1108
|
-
var ae = K(B, X,
|
|
1107
|
+
return $(C, N, W, X, z(K));
|
|
1108
|
+
var ae = K(B, X, C, N, W + "." + X, t);
|
|
1109
1109
|
if (ae)
|
|
1110
1110
|
return ae;
|
|
1111
1111
|
}
|
|
@@ -1113,22 +1113,22 @@ function dn() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return x(v);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
function v(R, L,
|
|
1118
|
-
var B = R[L],
|
|
1119
|
-
if (
|
|
1120
|
-
return new y("Invalid " + N + " `" +
|
|
1116
|
+
function P(h) {
|
|
1117
|
+
function v(R, L, C, N, W) {
|
|
1118
|
+
var B = R[L], U = V(B);
|
|
1119
|
+
if (U !== "object")
|
|
1120
|
+
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
1121
1121
|
var X = e({}, R[L], h);
|
|
1122
1122
|
for (var K in X) {
|
|
1123
1123
|
var ae = h[K];
|
|
1124
1124
|
if (n(h, K) && typeof ae != "function")
|
|
1125
|
-
return C
|
|
1125
|
+
return $(C, N, W, K, z(ae));
|
|
1126
1126
|
if (!ae)
|
|
1127
1127
|
return new y(
|
|
1128
|
-
"Invalid " + N + " `" +
|
|
1128
|
+
"Invalid " + N + " `" + W + "` key `" + K + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(R[L], null, " ") + `
|
|
1129
1129
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1130
1130
|
);
|
|
1131
|
-
var M = ae(B, K,
|
|
1131
|
+
var M = ae(B, K, C, N, W + "." + K, t);
|
|
1132
1132
|
if (M)
|
|
1133
1133
|
return M;
|
|
1134
1134
|
}
|
|
@@ -1158,8 +1158,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1158
1158
|
return !1;
|
|
1159
1159
|
} else
|
|
1160
1160
|
for (; !(L = R.next()).done; ) {
|
|
1161
|
-
var
|
|
1162
|
-
if (
|
|
1161
|
+
var C = L.value;
|
|
1162
|
+
if (C && !F(C[1]))
|
|
1163
1163
|
return !1;
|
|
1164
1164
|
}
|
|
1165
1165
|
} else
|
|
@@ -1169,12 +1169,12 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function I(h, v) {
|
|
1173
1173
|
return h === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1174
1174
|
}
|
|
1175
1175
|
function V(h) {
|
|
1176
1176
|
var v = typeof h;
|
|
1177
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1177
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : I(v, h) ? "symbol" : v;
|
|
1178
1178
|
}
|
|
1179
1179
|
function z(h) {
|
|
1180
1180
|
if (typeof h > "u" || h === null)
|
|
@@ -1334,8 +1334,8 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1334
1334
|
if (u) {
|
|
1335
1335
|
var T = k.querySelector(":scope > title");
|
|
1336
1336
|
T && k.removeChild(T);
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1337
|
+
var $ = document.createElement("title");
|
|
1338
|
+
$.innerHTML = u, k.prepend($);
|
|
1339
1339
|
}
|
|
1340
1340
|
try {
|
|
1341
1341
|
p(k);
|
|
@@ -1881,7 +1881,7 @@ class lt {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
1883
|
function En(r, e) {
|
|
1884
|
-
if (
|
|
1884
|
+
if (Pt(r)) {
|
|
1885
1885
|
const f = new Date(r);
|
|
1886
1886
|
if (!isNaN(f.getTime()))
|
|
1887
1887
|
return f;
|
|
@@ -1913,7 +1913,7 @@ function En(r, e) {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
return r;
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Pt(r) {
|
|
1917
1917
|
return /^\d{4}-\d{2}-\d{2}$/.test(r) && r.length === 10;
|
|
1918
1918
|
}
|
|
1919
1919
|
function et(r) {
|
|
@@ -1992,7 +1992,7 @@ const lr = /* @__PURE__ */ new Map([
|
|
|
1992
1992
|
return Tn(r) && `${r.substring(0, 4)}-${r.substring(4, 6)}-${r.substring(6, 8)}` || r;
|
|
1993
1993
|
},
|
|
1994
1994
|
isoToLegacy(r) {
|
|
1995
|
-
return
|
|
1995
|
+
return Pt(r) && r.replaceAll("-", "") || r;
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
1998
|
]
|
|
@@ -2113,34 +2113,34 @@ const Fe = (r, e, t) => {
|
|
|
2113
2113
|
inputMode: A = "text",
|
|
2114
2114
|
width: O,
|
|
2115
2115
|
autocomplete: T,
|
|
2116
|
-
size:
|
|
2116
|
+
size: $,
|
|
2117
2117
|
maxLength: D,
|
|
2118
|
-
onBlur:
|
|
2118
|
+
onBlur: P,
|
|
2119
2119
|
onChange: F,
|
|
2120
|
-
onKeyDown:
|
|
2120
|
+
onKeyDown: I,
|
|
2121
2121
|
onShapeIconClick: V,
|
|
2122
2122
|
onClick: z
|
|
2123
2123
|
}) => {
|
|
2124
|
-
const J = Re(), Y = `${J}-helper`, h = _ ? "danger" : o, v =
|
|
2125
|
-
F == null || F(
|
|
2126
|
-
},
|
|
2124
|
+
const J = Re(), Y = `${J}-helper`, h = _ ? "danger" : o, v = x || !!_, R = (N) => {
|
|
2125
|
+
F == null || F(N.target.value);
|
|
2126
|
+
}, L = {
|
|
2127
2127
|
wrapper: `${ye["smp-textfield-wrapper"]} ${S ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
2128
2128
|
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${n ? ye["smp-textfield-placeholder"] : ""} ${i ? ye[`smp-textfield-${i}`] : ""} ${h ? ye[`smp-textfield-${h}`] : ""} ${w ? ye[`smp-textfield-${w}`] : ""} ${s ? "" : ye["smp-textfield-readOnly"]} ${c ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
2129
2129
|
input: `${ye["smp-textfield-input"]}`
|
|
2130
2130
|
};
|
|
2131
2131
|
if (l && (l !== "notSelectable" || s)) {
|
|
2132
|
-
const
|
|
2133
|
-
|
|
2132
|
+
const N = ye[`smp-textfield-variant-${l}`];
|
|
2133
|
+
N && (L.container += ` ${N}`);
|
|
2134
2134
|
}
|
|
2135
|
-
const
|
|
2136
|
-
return /* @__PURE__ */ g.jsxs("div", { className:
|
|
2135
|
+
const C = O ? { "--smp-textField-width-base": O } : void 0;
|
|
2136
|
+
return /* @__PURE__ */ g.jsxs("div", { className: L.wrapper, "data-component": E, children: [
|
|
2137
2137
|
y && /* @__PURE__ */ g.jsx(Ce, { label: y, disabled: r, htmlFor: J }),
|
|
2138
2138
|
/* @__PURE__ */ g.jsxs(
|
|
2139
2139
|
"div",
|
|
2140
2140
|
{
|
|
2141
|
-
className:
|
|
2141
|
+
className: L.container,
|
|
2142
2142
|
ref: u,
|
|
2143
|
-
style:
|
|
2143
|
+
style: C,
|
|
2144
2144
|
children: [
|
|
2145
2145
|
t && /* @__PURE__ */ g.jsx(le, { icon: t, disabled: r }),
|
|
2146
2146
|
/* @__PURE__ */ g.jsx(
|
|
@@ -2150,31 +2150,30 @@ const Fe = (r, e, t) => {
|
|
|
2150
2150
|
type: m,
|
|
2151
2151
|
value: e,
|
|
2152
2152
|
placeholder: n,
|
|
2153
|
-
onChange:
|
|
2154
|
-
onBlur:
|
|
2155
|
-
className:
|
|
2153
|
+
onChange: R,
|
|
2154
|
+
onBlur: P,
|
|
2155
|
+
className: L.input,
|
|
2156
2156
|
disabled: r,
|
|
2157
2157
|
readOnly: !s,
|
|
2158
|
-
onKeyDown:
|
|
2158
|
+
onKeyDown: I,
|
|
2159
2159
|
"aria-label": p,
|
|
2160
2160
|
ref: d,
|
|
2161
|
-
"aria-describedby":
|
|
2161
|
+
"aria-describedby": v ? Y : void 0,
|
|
2162
2162
|
min: b,
|
|
2163
2163
|
max: j,
|
|
2164
2164
|
step: k,
|
|
2165
2165
|
inputMode: A,
|
|
2166
2166
|
autoComplete: T,
|
|
2167
|
-
size:
|
|
2167
|
+
size: $,
|
|
2168
2168
|
maxLength: D,
|
|
2169
2169
|
onClick: z
|
|
2170
2170
|
}
|
|
2171
2171
|
),
|
|
2172
|
-
|
|
2172
|
+
a && /* @__PURE__ */ g.jsx(
|
|
2173
2173
|
le,
|
|
2174
2174
|
{
|
|
2175
|
-
icon:
|
|
2175
|
+
icon: a,
|
|
2176
2176
|
disabled: r,
|
|
2177
|
-
state: h,
|
|
2178
2177
|
onClick: V,
|
|
2179
2178
|
rotated: f,
|
|
2180
2179
|
isInteractable: s,
|
|
@@ -2184,7 +2183,7 @@ const Fe = (r, e, t) => {
|
|
|
2184
2183
|
]
|
|
2185
2184
|
}
|
|
2186
2185
|
),
|
|
2187
|
-
|
|
2186
|
+
v && /* @__PURE__ */ g.jsx(
|
|
2188
2187
|
Lr,
|
|
2189
2188
|
{
|
|
2190
2189
|
helperText: _,
|
|
@@ -2264,7 +2263,7 @@ function Rn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2264
2263
|
}
|
|
2265
2264
|
return Math.ceil(i + n);
|
|
2266
2265
|
}
|
|
2267
|
-
const jn = 10,
|
|
2266
|
+
const jn = 10, Pr = ({
|
|
2268
2267
|
id: r,
|
|
2269
2268
|
options: e,
|
|
2270
2269
|
displayMode: t = "Both",
|
|
@@ -2283,9 +2282,9 @@ const jn = 10, Ir = ({
|
|
|
2283
2282
|
const [u, d] = G(""), m = 40, [p, y] = G(
|
|
2284
2283
|
a !== null ? a : -1
|
|
2285
2284
|
), [x, _] = G(o || 200), w = ce(null), S = s !== void 0 ? s : e.length > jn, E = u ? e.filter(
|
|
2286
|
-
(
|
|
2287
|
-
) : e, b = (
|
|
2288
|
-
d(
|
|
2285
|
+
(I) => I.label.toLowerCase().includes(u.toLowerCase())
|
|
2286
|
+
) : e, b = (I) => {
|
|
2287
|
+
d(I);
|
|
2289
2288
|
}, { virtualItems: j, containerProps: k, innerProps: A, scrollToIndex: O } = Ar({
|
|
2290
2289
|
items: E,
|
|
2291
2290
|
itemHeight: m,
|
|
@@ -2299,21 +2298,21 @@ const jn = 10, Ir = ({
|
|
|
2299
2298
|
}, [p, E]), re(() => {
|
|
2300
2299
|
f && (w != null && w.current) && w.current.focus();
|
|
2301
2300
|
}, [f, w]), re(() => {
|
|
2302
|
-
const
|
|
2303
|
-
_(
|
|
2301
|
+
const I = Rn(e, t);
|
|
2302
|
+
_(I);
|
|
2304
2303
|
}, [e, t]);
|
|
2305
|
-
const T = (
|
|
2306
|
-
if (
|
|
2307
|
-
|
|
2304
|
+
const T = (I) => {
|
|
2305
|
+
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2306
|
+
I.preventDefault();
|
|
2308
2307
|
let V = p;
|
|
2309
|
-
|
|
2310
|
-
} else
|
|
2311
|
-
c && c(
|
|
2312
|
-
},
|
|
2313
|
-
T(
|
|
2314
|
-
}, D = (
|
|
2315
|
-
T(
|
|
2316
|
-
},
|
|
2308
|
+
I.key === "ArrowDown" ? V = p < E.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (V = p > 0 ? p - 1 : E.length - 1), y(V);
|
|
2309
|
+
} else I.key === "Enter" ? p >= 0 && p < E.length && (l == null || l(E[p])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2310
|
+
c && c(I);
|
|
2311
|
+
}, $ = (I) => {
|
|
2312
|
+
T(I);
|
|
2313
|
+
}, D = (I) => {
|
|
2314
|
+
T(I);
|
|
2315
|
+
}, P = {
|
|
2317
2316
|
wrapper: `${tt["smp-list"]}`,
|
|
2318
2317
|
container: `${tt["smp-list-container"]}`,
|
|
2319
2318
|
virtualScroll: `${tt["smp-list-virtualScroll"]}`,
|
|
@@ -2324,7 +2323,7 @@ const jn = 10, Ir = ({
|
|
|
2324
2323
|
{
|
|
2325
2324
|
id: r,
|
|
2326
2325
|
ref: n,
|
|
2327
|
-
className:
|
|
2326
|
+
className: P.wrapper,
|
|
2328
2327
|
"data-component": "list",
|
|
2329
2328
|
style: {
|
|
2330
2329
|
width: x,
|
|
@@ -2338,7 +2337,7 @@ const jn = 10, Ir = ({
|
|
|
2338
2337
|
placeholder: "Search...",
|
|
2339
2338
|
fullWidth: !0,
|
|
2340
2339
|
onChange: b,
|
|
2341
|
-
onKeyDown:
|
|
2340
|
+
onKeyDown: $,
|
|
2342
2341
|
inputRef: w
|
|
2343
2342
|
}
|
|
2344
2343
|
),
|
|
@@ -2346,25 +2345,25 @@ const jn = 10, Ir = ({
|
|
|
2346
2345
|
"div",
|
|
2347
2346
|
{
|
|
2348
2347
|
...k,
|
|
2349
|
-
className:
|
|
2348
|
+
className: P.container,
|
|
2350
2349
|
tabIndex: 0,
|
|
2351
2350
|
role: "listbox",
|
|
2352
2351
|
"aria-label": "List",
|
|
2353
2352
|
onKeyDown: D,
|
|
2354
2353
|
"aria-activedescendant": p >= 0 && p < E.length ? (F = E[p]) == null ? void 0 : F.id : void 0,
|
|
2355
|
-
children: /* @__PURE__ */ g.jsx("div", { ...A, className:
|
|
2356
|
-
const J = i.includes(
|
|
2354
|
+
children: /* @__PURE__ */ g.jsx("div", { ...A, className: P.virtualScroll, children: j.map(({ item: I, index: V, offsetTop: z }) => {
|
|
2355
|
+
const J = i.includes(I.id);
|
|
2357
2356
|
return (
|
|
2358
2357
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2359
2358
|
/* @__PURE__ */ g.jsxs(
|
|
2360
2359
|
"li",
|
|
2361
2360
|
{
|
|
2362
2361
|
role: "option",
|
|
2363
|
-
id:
|
|
2362
|
+
id: I.id,
|
|
2364
2363
|
"aria-selected": p === V ? "true" : "false",
|
|
2365
2364
|
tabIndex: -1,
|
|
2366
|
-
className: `${
|
|
2367
|
-
"aria-label":
|
|
2365
|
+
className: `${P.listItem} ${p === V ? "selected-item" : ""}`,
|
|
2366
|
+
"aria-label": I.id + "-" + I.label,
|
|
2368
2367
|
style: {
|
|
2369
2368
|
height: `${m}px`,
|
|
2370
2369
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
@@ -2372,14 +2371,14 @@ const jn = 10, Ir = ({
|
|
|
2372
2371
|
transform: `translateY(${z}px)`
|
|
2373
2372
|
},
|
|
2374
2373
|
onClick: () => {
|
|
2375
|
-
l == null || l(
|
|
2374
|
+
l == null || l(I), y(V);
|
|
2376
2375
|
},
|
|
2377
2376
|
children: [
|
|
2378
|
-
Fe(
|
|
2377
|
+
Fe(I.id, I.label, t),
|
|
2379
2378
|
J && /* @__PURE__ */ g.jsx(le, { icon: "check", width: 16 })
|
|
2380
2379
|
]
|
|
2381
2380
|
},
|
|
2382
|
-
|
|
2381
|
+
I.id
|
|
2383
2382
|
)
|
|
2384
2383
|
);
|
|
2385
2384
|
}) })
|
|
@@ -2388,7 +2387,7 @@ const jn = 10, Ir = ({
|
|
|
2388
2387
|
]
|
|
2389
2388
|
}
|
|
2390
2389
|
);
|
|
2391
|
-
},
|
|
2390
|
+
}, It = ({
|
|
2392
2391
|
displayMode: r,
|
|
2393
2392
|
bindValue: e,
|
|
2394
2393
|
optionalDisplayValue: t,
|
|
@@ -2488,12 +2487,12 @@ const gt = (r, e, t) => {
|
|
|
2488
2487
|
}, An = (r, e, t) => {
|
|
2489
2488
|
const n = ut(r, t);
|
|
2490
2489
|
return n !== void 0 ? n : ut(e, t);
|
|
2491
|
-
},
|
|
2490
|
+
}, Ir = (r, e, t) => {
|
|
2492
2491
|
for (const n in e)
|
|
2493
|
-
n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) :
|
|
2492
|
+
n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Ir(r[n], e[n], t) : r[n] = e[n]);
|
|
2494
2493
|
return r;
|
|
2495
|
-
},
|
|
2496
|
-
var
|
|
2494
|
+
}, Ie = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2495
|
+
var Pn = {
|
|
2497
2496
|
"&": "&",
|
|
2498
2497
|
"<": "<",
|
|
2499
2498
|
">": ">",
|
|
@@ -2501,7 +2500,7 @@ var In = {
|
|
|
2501
2500
|
"'": "'",
|
|
2502
2501
|
"/": "/"
|
|
2503
2502
|
};
|
|
2504
|
-
const
|
|
2503
|
+
const In = (r) => q(r) ? r.replace(/[&<>"'\/]/g, (e) => Pn[e]) : r;
|
|
2505
2504
|
class Nn {
|
|
2506
2505
|
constructor(e) {
|
|
2507
2506
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -2669,7 +2668,7 @@ class pr extends yt {
|
|
|
2669
2668
|
let o = [e, t];
|
|
2670
2669
|
e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2671
2670
|
let l = ut(this.data, o) || {};
|
|
2672
|
-
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ?
|
|
2671
|
+
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Ir(l, n, a) : l = {
|
|
2673
2672
|
...l,
|
|
2674
2673
|
...n
|
|
2675
2674
|
}, dr(this.data, o, l), i.silent || this.emit("added", e, t, n);
|
|
@@ -2783,21 +2782,21 @@ class dt extends yt {
|
|
|
2783
2782
|
}) : "", A = E && !s.ordinal && s.count === 0, O = A && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2784
2783
|
let T = p;
|
|
2785
2784
|
S && !p && b && (T = O);
|
|
2786
|
-
const
|
|
2787
|
-
if (S && T &&
|
|
2785
|
+
const $ = mr(T), D = Object.prototype.toString.apply(T);
|
|
2786
|
+
if (S && T && $ && _.indexOf(D) < 0 && !(q(w) && Array.isArray(T))) {
|
|
2788
2787
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2789
2788
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2790
|
-
const
|
|
2789
|
+
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, T, {
|
|
2791
2790
|
...s,
|
|
2792
2791
|
ns: l
|
|
2793
2792
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2794
|
-
return a ? (m.res =
|
|
2793
|
+
return a ? (m.res = P, m.usedParams = this.getUsedParamsDetails(s), m) : P;
|
|
2795
2794
|
}
|
|
2796
2795
|
if (i) {
|
|
2797
|
-
const
|
|
2796
|
+
const P = Array.isArray(T), F = P ? [] : {}, I = P ? x : y;
|
|
2798
2797
|
for (const V in T)
|
|
2799
2798
|
if (Object.prototype.hasOwnProperty.call(T, V)) {
|
|
2800
|
-
const z = `${
|
|
2799
|
+
const z = `${I}${i}${V}`;
|
|
2801
2800
|
b && !p ? F[V] = this.translate(z, {
|
|
2802
2801
|
...s,
|
|
2803
2802
|
defaultValue: mr(O) ? O[V] : void 0,
|
|
@@ -2814,10 +2813,10 @@ class dt extends yt {
|
|
|
2814
2813
|
} else if (S && q(w) && Array.isArray(p))
|
|
2815
2814
|
p = p.join(w), p && (p = this.extendTranslation(p, e, s, n));
|
|
2816
2815
|
else {
|
|
2817
|
-
let
|
|
2818
|
-
!this.isValidLookup(p) && b && (
|
|
2816
|
+
let P = !1, F = !1;
|
|
2817
|
+
!this.isValidLookup(p) && b && (P = !0, p = O), this.isValidLookup(p) || (F = !0, p = o);
|
|
2819
2818
|
const V = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p, z = b && O !== p && this.options.updateMissing;
|
|
2820
|
-
if (F ||
|
|
2819
|
+
if (F || P || z) {
|
|
2821
2820
|
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? O : p), i) {
|
|
2822
2821
|
const v = this.resolve(o, {
|
|
2823
2822
|
...s,
|
|
@@ -2833,8 +2832,8 @@ class dt extends yt {
|
|
|
2833
2832
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(s.lng || this.language) : J.push(s.lng || this.language);
|
|
2834
2833
|
const h = (v, R, L) => {
|
|
2835
2834
|
var N;
|
|
2836
|
-
const
|
|
2837
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, R,
|
|
2835
|
+
const C = b && L !== p ? L : V;
|
|
2836
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, R, C, z, s) : (N = this.backendConnector) != null && N.saveMissing && this.backendConnector.saveMissing(v, c, R, C, z, s), this.emit("missingKey", v, c, R, p);
|
|
2838
2837
|
};
|
|
2839
2838
|
this.options.saveMissing && (this.options.saveMissingPlurals && E ? J.forEach((v) => {
|
|
2840
2839
|
const R = this.pluralResolver.getSuffixes(v, s);
|
|
@@ -2843,7 +2842,7 @@ class dt extends yt {
|
|
|
2843
2842
|
});
|
|
2844
2843
|
}) : h(J, o, O));
|
|
2845
2844
|
}
|
|
2846
|
-
p = this.extendTranslation(p, e, s, m, n), F && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (F ||
|
|
2845
|
+
p = this.extendTranslation(p, e, s, m, n), F && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (F || P) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, P ? p : void 0, s));
|
|
2847
2846
|
}
|
|
2848
2847
|
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
2849
2848
|
}
|
|
@@ -3115,7 +3114,7 @@ class Un {
|
|
|
3115
3114
|
maxReplaces: _,
|
|
3116
3115
|
alwaysFormat: w
|
|
3117
3116
|
} = e.interpolation;
|
|
3118
|
-
this.escape = t !== void 0 ? t :
|
|
3117
|
+
this.escape = t !== void 0 ? t : In, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ie(a) : i || "{{", this.suffix = o ? Ie(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Ie(d) : m || Ie("$t("), this.nestingSuffix = p ? Ie(p) : y || Ie(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
|
|
3119
3118
|
}
|
|
3120
3119
|
reset() {
|
|
3121
3120
|
this.options && this.init(this.options);
|
|
@@ -3902,27 +3901,27 @@ const kr = ({
|
|
|
3902
3901
|
_multiActiveIndex: d,
|
|
3903
3902
|
...m
|
|
3904
3903
|
}) => {
|
|
3905
|
-
const p = ce(null), [y, x] = G(r), [_, w] = G(e), { translate: S } = Ae(), [E, b] = G(!1), [j, k] = G(t || []), [A, O] = G(0), [T,
|
|
3904
|
+
const p = ce(null), [y, x] = G(r), [_, w] = G(e), { translate: S } = Ae(), [E, b] = G(!1), [j, k] = G(t || []), [A, O] = G(0), [T, $] = G([r]), { anchorRef: D, targetRef: P, anchorWidth: F } = ht({
|
|
3906
3905
|
position: "bottom",
|
|
3907
3906
|
enabled: E
|
|
3908
|
-
}),
|
|
3907
|
+
}), I = ue(() => {
|
|
3909
3908
|
var R;
|
|
3910
3909
|
b(!1), (R = p == null ? void 0 : p.current) == null || R.focus();
|
|
3911
3910
|
}, []);
|
|
3912
|
-
gt([
|
|
3911
|
+
gt([P], E, () => I());
|
|
3913
3912
|
const V = Dn(400), z = (R) => {
|
|
3914
3913
|
R.length >= a ? o && f && V(async () => {
|
|
3915
3914
|
const L = await f(o, R);
|
|
3916
3915
|
k(L), O(L.length > 0 ? 0 : -1), b(!0);
|
|
3917
|
-
}) :
|
|
3916
|
+
}) : I(), x(R), w(e), l || c == null || c(R, e);
|
|
3918
3917
|
}, J = () => {
|
|
3919
3918
|
E || u == null || u();
|
|
3920
3919
|
}, Y = (R) => {
|
|
3921
3920
|
l ? (x(""), w("")) : (x(R.id), w(R.label)), c == null || c(R.id, R.label);
|
|
3922
|
-
const L = j.findIndex((
|
|
3923
|
-
O(L),
|
|
3921
|
+
const L = j.findIndex((C) => C.id === R.id);
|
|
3922
|
+
O(L), $([R.id]), I();
|
|
3924
3923
|
}, h = (R) => {
|
|
3925
|
-
R.key === "Escape" && (
|
|
3924
|
+
R.key === "Escape" && (I(), O(-1));
|
|
3926
3925
|
}, v = (R) => {
|
|
3927
3926
|
if ((R.key === "ArrowDown" || R.key === "ArrowUp") && (R.preventDefault(), E)) {
|
|
3928
3927
|
const L = R.key === "ArrowDown" ? (A + 1) % j.length : (A - 1 + j.length) % j.length;
|
|
@@ -3930,16 +3929,16 @@ const kr = ({
|
|
|
3930
3929
|
}
|
|
3931
3930
|
switch (R.key) {
|
|
3932
3931
|
case "Enter":
|
|
3933
|
-
A >= 0 && A < j.length ? Y(j[A]) : l && (c == null || c(y, ""),
|
|
3932
|
+
A >= 0 && A < j.length ? Y(j[A]) : l && (c == null || c(y, ""), I(), x(""), w(""));
|
|
3934
3933
|
break;
|
|
3935
3934
|
case "Escape":
|
|
3936
|
-
|
|
3935
|
+
I(), O(-1);
|
|
3937
3936
|
break;
|
|
3938
3937
|
}
|
|
3939
3938
|
};
|
|
3940
3939
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3941
3940
|
/* @__PURE__ */ g.jsx(
|
|
3942
|
-
|
|
3941
|
+
It,
|
|
3943
3942
|
{
|
|
3944
3943
|
...m,
|
|
3945
3944
|
bindValue: y,
|
|
@@ -3959,12 +3958,12 @@ const kr = ({
|
|
|
3959
3958
|
}
|
|
3960
3959
|
),
|
|
3961
3960
|
E && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
3962
|
-
|
|
3961
|
+
Pr,
|
|
3963
3962
|
{
|
|
3964
3963
|
options: j,
|
|
3965
3964
|
displayMode: s,
|
|
3966
3965
|
onClick: Y,
|
|
3967
|
-
ref:
|
|
3966
|
+
ref: P,
|
|
3968
3967
|
selectedIndex: A,
|
|
3969
3968
|
activeIndex: d || T,
|
|
3970
3969
|
width: F,
|
|
@@ -4176,22 +4175,22 @@ const gs = ({
|
|
|
4176
4175
|
position: "bottom",
|
|
4177
4176
|
enabled: d
|
|
4178
4177
|
}), A = ue(() => {
|
|
4179
|
-
var
|
|
4180
|
-
m(!1), (
|
|
4178
|
+
var P;
|
|
4179
|
+
m(!1), (P = u == null ? void 0 : u.current) == null || P.focus();
|
|
4181
4180
|
}, []);
|
|
4182
4181
|
gt([j, b], d, () => A()), kt(d, j);
|
|
4183
|
-
const O = (
|
|
4184
|
-
e == null || e(
|
|
4185
|
-
const F = p.findIndex((
|
|
4186
|
-
_(F), S([
|
|
4187
|
-
}, T = (
|
|
4188
|
-
|
|
4189
|
-
},
|
|
4190
|
-
(
|
|
4182
|
+
const O = (P) => {
|
|
4183
|
+
e == null || e(P.id, P.label);
|
|
4184
|
+
const F = p.findIndex((I) => I.id === P.id);
|
|
4185
|
+
_(F), S([P.id]), A();
|
|
4186
|
+
}, T = (P) => {
|
|
4187
|
+
P.key === "Escape" && (A(), _(-1));
|
|
4188
|
+
}, $ = (P) => {
|
|
4189
|
+
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), D());
|
|
4191
4190
|
}, D = () => {
|
|
4192
|
-
s && (o && l ? d ? m(!1) : l(o, void 0).then((
|
|
4193
|
-
y(
|
|
4194
|
-
}) : m((
|
|
4191
|
+
s && (o && l ? d ? m(!1) : l(o, void 0).then((P) => {
|
|
4192
|
+
y(P), _(P.length > 0 ? 0 : -1), m(!0);
|
|
4193
|
+
}) : m((P) => !P));
|
|
4195
4194
|
};
|
|
4196
4195
|
return /* @__PURE__ */ g.jsxs(
|
|
4197
4196
|
"div",
|
|
@@ -4203,14 +4202,14 @@ const gs = ({
|
|
|
4203
4202
|
"data-component": "combobox",
|
|
4204
4203
|
children: [
|
|
4205
4204
|
/* @__PURE__ */ g.jsx(
|
|
4206
|
-
|
|
4205
|
+
It,
|
|
4207
4206
|
{
|
|
4208
4207
|
...f,
|
|
4209
4208
|
bindValue: r,
|
|
4210
4209
|
optionalDisplayValue: n,
|
|
4211
4210
|
displayMode: a,
|
|
4212
4211
|
onShapeIconClick: D,
|
|
4213
|
-
onKeyDown:
|
|
4212
|
+
onKeyDown: $,
|
|
4214
4213
|
onClick: D,
|
|
4215
4214
|
shapeIcon: "arrow_drop_down",
|
|
4216
4215
|
rotatedShapeIcon: d,
|
|
@@ -4222,7 +4221,7 @@ const gs = ({
|
|
|
4222
4221
|
}
|
|
4223
4222
|
),
|
|
4224
4223
|
d && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4225
|
-
|
|
4224
|
+
Pr,
|
|
4226
4225
|
{
|
|
4227
4226
|
id: E,
|
|
4228
4227
|
options: p,
|
|
@@ -4318,7 +4317,7 @@ function bs({
|
|
|
4318
4317
|
(R) => R !== null && R.getDate() === Y
|
|
4319
4318
|
);
|
|
4320
4319
|
h !== -1 && _.current[h] && ((v = _.current[h]) == null || v.focus(), y(Y));
|
|
4321
|
-
},
|
|
4320
|
+
}, $ = (Y, h) => {
|
|
4322
4321
|
const v = F[h];
|
|
4323
4322
|
if (!v) return;
|
|
4324
4323
|
const R = A(d, f), L = v.getDate();
|
|
@@ -4326,15 +4325,15 @@ function bs({
|
|
|
4326
4325
|
case "ArrowRight":
|
|
4327
4326
|
Y.preventDefault();
|
|
4328
4327
|
{
|
|
4329
|
-
let
|
|
4330
|
-
if (
|
|
4331
|
-
const
|
|
4332
|
-
|
|
4328
|
+
let C = L + 1, N = new Date(d, f, C);
|
|
4329
|
+
if (C > R) {
|
|
4330
|
+
const W = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4331
|
+
C = 1, N = new Date(W, B, C), k(), setTimeout(() => {
|
|
4333
4332
|
D(1, "forward");
|
|
4334
4333
|
}, 0);
|
|
4335
4334
|
return;
|
|
4336
4335
|
}
|
|
4337
|
-
E(N) ? D(
|
|
4336
|
+
E(N) ? D(C, "forward") : T(C);
|
|
4338
4337
|
}
|
|
4339
4338
|
break;
|
|
4340
4339
|
case "Tab":
|
|
@@ -4342,43 +4341,43 @@ function bs({
|
|
|
4342
4341
|
case "ArrowLeft":
|
|
4343
4342
|
Y.preventDefault();
|
|
4344
4343
|
{
|
|
4345
|
-
let
|
|
4346
|
-
if (
|
|
4347
|
-
const
|
|
4348
|
-
|
|
4349
|
-
D(
|
|
4344
|
+
let C = L - 1, N = new Date(d, f, C);
|
|
4345
|
+
if (C < 1) {
|
|
4346
|
+
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1, U = A(W, B);
|
|
4347
|
+
C = U, N = new Date(W, B, C), j(), setTimeout(() => {
|
|
4348
|
+
D(U, "backward");
|
|
4350
4349
|
}, 0);
|
|
4351
4350
|
return;
|
|
4352
4351
|
}
|
|
4353
|
-
E(N) ? D(
|
|
4352
|
+
E(N) ? D(C, "backward") : T(C);
|
|
4354
4353
|
}
|
|
4355
4354
|
break;
|
|
4356
4355
|
case "ArrowUp":
|
|
4357
4356
|
Y.preventDefault();
|
|
4358
4357
|
{
|
|
4359
|
-
let
|
|
4360
|
-
if (
|
|
4361
|
-
const
|
|
4362
|
-
|
|
4363
|
-
D(
|
|
4358
|
+
let C = L - 7, N = new Date(d, f, C);
|
|
4359
|
+
if (C < 1) {
|
|
4360
|
+
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1;
|
|
4361
|
+
C = A(W, B) + C, N = new Date(W, B, C), j(), setTimeout(() => {
|
|
4362
|
+
D(C, "backward");
|
|
4364
4363
|
}, 0);
|
|
4365
4364
|
return;
|
|
4366
4365
|
}
|
|
4367
|
-
E(N) ? D(
|
|
4366
|
+
E(N) ? D(C, "backward") : T(C);
|
|
4368
4367
|
}
|
|
4369
4368
|
break;
|
|
4370
4369
|
case "ArrowDown":
|
|
4371
4370
|
Y.preventDefault();
|
|
4372
4371
|
{
|
|
4373
|
-
let
|
|
4374
|
-
if (
|
|
4375
|
-
const
|
|
4376
|
-
|
|
4377
|
-
D(
|
|
4372
|
+
let C = L + 7, N = new Date(d, f, C);
|
|
4373
|
+
if (C > R) {
|
|
4374
|
+
const W = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4375
|
+
C = C - R, N = new Date(W, B, C), k(), setTimeout(() => {
|
|
4376
|
+
D(C, "forward");
|
|
4378
4377
|
}, 0);
|
|
4379
4378
|
return;
|
|
4380
4379
|
}
|
|
4381
|
-
E(N) ? D(
|
|
4380
|
+
E(N) ? D(C, "forward") : T(C);
|
|
4382
4381
|
}
|
|
4383
4382
|
break;
|
|
4384
4383
|
case "Home":
|
|
@@ -4389,19 +4388,19 @@ function bs({
|
|
|
4389
4388
|
break;
|
|
4390
4389
|
case "PageUp":
|
|
4391
4390
|
Y.preventDefault(), j(), setTimeout(() => {
|
|
4392
|
-
const
|
|
4391
|
+
const C = A(
|
|
4393
4392
|
f === 0 ? d - 1 : d,
|
|
4394
4393
|
f === 0 ? 11 : f - 1
|
|
4395
|
-
), N = Math.min(L,
|
|
4394
|
+
), N = Math.min(L, C);
|
|
4396
4395
|
D(N, "forward");
|
|
4397
4396
|
}, 0);
|
|
4398
4397
|
break;
|
|
4399
4398
|
case "PageDown":
|
|
4400
4399
|
Y.preventDefault(), k(), setTimeout(() => {
|
|
4401
|
-
const
|
|
4400
|
+
const C = A(
|
|
4402
4401
|
f === 11 ? d + 1 : d,
|
|
4403
4402
|
f === 11 ? 0 : f + 1
|
|
4404
|
-
), N = Math.min(L,
|
|
4403
|
+
), N = Math.min(L, C);
|
|
4405
4404
|
D(N, "forward");
|
|
4406
4405
|
}, 0);
|
|
4407
4406
|
break;
|
|
@@ -4429,15 +4428,15 @@ function bs({
|
|
|
4429
4428
|
}, 0);
|
|
4430
4429
|
} else {
|
|
4431
4430
|
for (let N = Y; N >= 1; N--) {
|
|
4432
|
-
const
|
|
4433
|
-
if (!E(
|
|
4431
|
+
const W = new Date(d, f, N);
|
|
4432
|
+
if (!E(W)) {
|
|
4434
4433
|
T(N);
|
|
4435
4434
|
return;
|
|
4436
4435
|
}
|
|
4437
4436
|
}
|
|
4438
|
-
const R = f === 0 ? d - 1 : d, L = f === 0 ? 11 : f - 1,
|
|
4437
|
+
const R = f === 0 ? d - 1 : d, L = f === 0 ? 11 : f - 1, C = A(R, L);
|
|
4439
4438
|
j(), setTimeout(() => {
|
|
4440
|
-
D(
|
|
4439
|
+
D(C, "backward");
|
|
4441
4440
|
}, 0);
|
|
4442
4441
|
}
|
|
4443
4442
|
}, F = (() => {
|
|
@@ -4449,13 +4448,13 @@ function bs({
|
|
|
4449
4448
|
v.push(L);
|
|
4450
4449
|
}
|
|
4451
4450
|
return v;
|
|
4452
|
-
})(),
|
|
4451
|
+
})(), I = [];
|
|
4453
4452
|
let V = [];
|
|
4454
4453
|
F.forEach((Y, h) => {
|
|
4455
4454
|
if (V.push(Y), V.length === 7 || h === F.length - 1) {
|
|
4456
4455
|
for (; V.length < 7; )
|
|
4457
4456
|
V.push(null);
|
|
4458
|
-
|
|
4457
|
+
I.push(V), V = [];
|
|
4459
4458
|
}
|
|
4460
4459
|
}), re(() => {
|
|
4461
4460
|
var Y;
|
|
@@ -4549,7 +4548,7 @@ function bs({
|
|
|
4549
4548
|
},
|
|
4550
4549
|
Y.value
|
|
4551
4550
|
)) }) }),
|
|
4552
|
-
/* @__PURE__ */ g.jsx("tbody", { children:
|
|
4551
|
+
/* @__PURE__ */ g.jsx("tbody", { children: I.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((v, R) => {
|
|
4553
4552
|
const L = h * 7 + R;
|
|
4554
4553
|
if (v === null)
|
|
4555
4554
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -4564,25 +4563,25 @@ function bs({
|
|
|
4564
4563
|
},
|
|
4565
4564
|
`empty-${R}`
|
|
4566
4565
|
);
|
|
4567
|
-
const
|
|
4566
|
+
const C = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), N = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), W = p === v.getDate(), B = E(v);
|
|
4568
4567
|
return /* @__PURE__ */ g.jsx(
|
|
4569
4568
|
"td",
|
|
4570
4569
|
{
|
|
4571
4570
|
role: "gridcell",
|
|
4572
4571
|
"aria-selected": N,
|
|
4573
|
-
tabIndex:
|
|
4572
|
+
tabIndex: W ? 0 : -1,
|
|
4574
4573
|
onClick: () => b(v),
|
|
4575
|
-
onKeyDown: (
|
|
4574
|
+
onKeyDown: (U) => $(U, L),
|
|
4576
4575
|
"aria-label": `${v.getDate()} ${w[v.getMonth()]} ${v.getFullYear()}`,
|
|
4577
4576
|
"data-selected": N,
|
|
4578
4577
|
"aria-disabled": B,
|
|
4579
|
-
ref: (
|
|
4580
|
-
_.current[L] =
|
|
4578
|
+
ref: (U) => {
|
|
4579
|
+
_.current[L] = U;
|
|
4581
4580
|
},
|
|
4582
4581
|
className: z.td(
|
|
4583
|
-
|
|
4582
|
+
C,
|
|
4584
4583
|
N,
|
|
4585
|
-
|
|
4584
|
+
W,
|
|
4586
4585
|
B
|
|
4587
4586
|
),
|
|
4588
4587
|
children: v.getDate()
|
|
@@ -4617,29 +4616,29 @@ const vs = ({
|
|
|
4617
4616
|
}), kt(o, p);
|
|
4618
4617
|
const { format: x, getCurrentLanguage: _ } = Ae(), w = ue(
|
|
4619
4618
|
(O) => {
|
|
4620
|
-
const T = O.length > 5 && En(O, _()) || O,
|
|
4619
|
+
const T = O.length > 5 && En(O, _()) || O, $ = x(T, void 0, void 0, {
|
|
4621
4620
|
type: "date"
|
|
4622
|
-
}), D = typeof T != "string",
|
|
4621
|
+
}), D = typeof T != "string", P = D && T.toISOString().substring(0, 10) || "";
|
|
4623
4622
|
return {
|
|
4624
4623
|
isValid: D,
|
|
4625
|
-
formattedDate:
|
|
4626
|
-
isoDate:
|
|
4624
|
+
formattedDate: $,
|
|
4625
|
+
isoDate: P,
|
|
4627
4626
|
normalizedDate: T
|
|
4628
4627
|
};
|
|
4629
4628
|
},
|
|
4630
4629
|
[_, x]
|
|
4631
4630
|
);
|
|
4632
4631
|
re(() => {
|
|
4633
|
-
const { formattedDate: O, isoDate: T, isValid:
|
|
4634
|
-
f(
|
|
4632
|
+
const { formattedDate: O, isoDate: T, isValid: $ } = w(r);
|
|
4633
|
+
f($ && T || r), d($ && O || r);
|
|
4635
4634
|
}, [r, x, w]);
|
|
4636
4635
|
const S = () => l((O) => !O), E = () => {
|
|
4637
4636
|
j(u);
|
|
4638
4637
|
}, b = (O) => {
|
|
4639
4638
|
j(O), y();
|
|
4640
4639
|
}, j = (O) => {
|
|
4641
|
-
const { isoDate: T, isValid:
|
|
4642
|
-
t && t(
|
|
4640
|
+
const { isoDate: T, isValid: $ } = w(O);
|
|
4641
|
+
t && t($ && T || O);
|
|
4643
4642
|
}, k = (O) => {
|
|
4644
4643
|
d(O);
|
|
4645
4644
|
}, A = (O) => {
|
|
@@ -4669,7 +4668,7 @@ const vs = ({
|
|
|
4669
4668
|
{
|
|
4670
4669
|
disabledDateRanges: n,
|
|
4671
4670
|
onDateChange: b,
|
|
4672
|
-
initialValue:
|
|
4671
|
+
initialValue: Pt(c) && c || "",
|
|
4673
4672
|
targetRef: p
|
|
4674
4673
|
}
|
|
4675
4674
|
) })
|
|
@@ -4865,9 +4864,9 @@ const ke = (r, e, t) => ({
|
|
|
4865
4864
|
() => as(u, s),
|
|
4866
4865
|
[u, s]
|
|
4867
4866
|
), p = ue(
|
|
4868
|
-
(D,
|
|
4869
|
-
minimumFractionDigits:
|
|
4870
|
-
maximumFractionDigits:
|
|
4867
|
+
(D, P) => new Intl.NumberFormat(u, {
|
|
4868
|
+
minimumFractionDigits: P,
|
|
4869
|
+
maximumFractionDigits: P,
|
|
4871
4870
|
useGrouping: !0
|
|
4872
4871
|
}).format(D),
|
|
4873
4872
|
[u]
|
|
@@ -4879,31 +4878,31 @@ const ke = (r, e, t) => ({
|
|
|
4879
4878
|
b(""), j.current = null;
|
|
4880
4879
|
return;
|
|
4881
4880
|
}
|
|
4882
|
-
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0,
|
|
4883
|
-
|
|
4881
|
+
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = D === 0 ? w : D;
|
|
4882
|
+
P !== w && S(P), b(p(a, P)), j.current = a;
|
|
4884
4883
|
}, [a, p]);
|
|
4885
4884
|
const k = ue(
|
|
4886
|
-
(D,
|
|
4885
|
+
(D, P = !1) => {
|
|
4887
4886
|
if (D.trim() === "") {
|
|
4888
|
-
b(""), j.current = null, i == null || i(void 0, ""),
|
|
4887
|
+
b(""), j.current = null, i == null || i(void 0, ""), P && (o == null || o(void 0));
|
|
4889
4888
|
return;
|
|
4890
4889
|
}
|
|
4891
4890
|
const F = y(D, d, m);
|
|
4892
4891
|
if (isNaN(F))
|
|
4893
4892
|
if (j.current != null) {
|
|
4894
|
-
const
|
|
4895
|
-
b(
|
|
4893
|
+
const I = p(j.current, w);
|
|
4894
|
+
b(I);
|
|
4896
4895
|
} else
|
|
4897
4896
|
b("");
|
|
4898
4897
|
else {
|
|
4899
|
-
const
|
|
4898
|
+
const I = x(F, r, e), V = os(
|
|
4900
4899
|
D,
|
|
4901
4900
|
d,
|
|
4902
4901
|
m
|
|
4903
4902
|
);
|
|
4904
4903
|
S(V);
|
|
4905
|
-
const z = p(
|
|
4906
|
-
b(z), j.current =
|
|
4904
|
+
const z = p(I, V);
|
|
4905
|
+
b(z), j.current = I, i == null || i(I, z), P && (o == null || o(I));
|
|
4907
4906
|
}
|
|
4908
4907
|
},
|
|
4909
4908
|
[
|
|
@@ -4925,16 +4924,16 @@ const ke = (r, e, t) => ({
|
|
|
4925
4924
|
}
|
|
4926
4925
|
if (D.key === "ArrowUp" || D.key === "ArrowDown") {
|
|
4927
4926
|
D.preventDefault();
|
|
4928
|
-
const
|
|
4929
|
-
k(p(
|
|
4927
|
+
const P = D.key === "ArrowUp" ? 1 : -1, F = j.current ?? 0, I = x(F + P * t, r, e);
|
|
4928
|
+
k(p(I, w));
|
|
4930
4929
|
}
|
|
4931
|
-
},
|
|
4930
|
+
}, $ = (D) => {
|
|
4932
4931
|
if (!D.currentTarget.contains(document.activeElement)) return;
|
|
4933
4932
|
D.preventDefault();
|
|
4934
|
-
const
|
|
4935
|
-
k(p(
|
|
4933
|
+
const P = D.deltaY < 0 ? 1 : -1, F = j.current ?? 0, I = x(F + P * t, r, e);
|
|
4934
|
+
k(p(I, w));
|
|
4936
4935
|
};
|
|
4937
|
-
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel:
|
|
4936
|
+
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: $, children: /* @__PURE__ */ g.jsx(
|
|
4938
4937
|
Le,
|
|
4939
4938
|
{
|
|
4940
4939
|
...l,
|
|
@@ -5219,7 +5218,7 @@ const We = {
|
|
|
5219
5218
|
};
|
|
5220
5219
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5221
5220
|
/* @__PURE__ */ g.jsx(
|
|
5222
|
-
|
|
5221
|
+
It,
|
|
5223
5222
|
{
|
|
5224
5223
|
...s,
|
|
5225
5224
|
bindValue: f,
|
|
@@ -5321,9 +5320,9 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5321
5320
|
label: o,
|
|
5322
5321
|
isEditable: x,
|
|
5323
5322
|
...n
|
|
5324
|
-
}, E = (T,
|
|
5323
|
+
}, E = (T, $, D) => xn(t) ? ke(T, new ct(t, $).getLegacyValue()) : Sn(t) ? ke(T, new pt(t, $).getLegacyValue()) : ke(T, $, D), b = (T, $) => ke(
|
|
5325
5324
|
T,
|
|
5326
|
-
new Ke(t,
|
|
5325
|
+
new Ke(t, $, _).getLegacyValue()
|
|
5327
5326
|
), j = (T) => ke(w, new lt(t, T).getLegacyValue()), k = (T) => Ts(w, T), A = () => {
|
|
5328
5327
|
switch (e) {
|
|
5329
5328
|
case te.AUTOCOMPLETE: {
|
|
@@ -5331,8 +5330,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5331
5330
|
...S,
|
|
5332
5331
|
bindValue: t.k,
|
|
5333
5332
|
optionalDisplayValue: r,
|
|
5334
|
-
onChange: (
|
|
5335
|
-
f == null || f(E(w,
|
|
5333
|
+
onChange: ($, D) => {
|
|
5334
|
+
f == null || f(E(w, $, D));
|
|
5336
5335
|
}
|
|
5337
5336
|
};
|
|
5338
5337
|
return /* @__PURE__ */ g.jsx(kr, { ...T });
|
|
@@ -5353,9 +5352,9 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5353
5352
|
const T = {
|
|
5354
5353
|
...S,
|
|
5355
5354
|
options: c,
|
|
5356
|
-
onClick: (
|
|
5357
|
-
const
|
|
5358
|
-
u == null || u(E(
|
|
5355
|
+
onClick: ($, D) => {
|
|
5356
|
+
const P = { ...w, fun: D };
|
|
5357
|
+
u == null || u(E(P, $));
|
|
5359
5358
|
}
|
|
5360
5359
|
};
|
|
5361
5360
|
return /* @__PURE__ */ g.jsx(ps, { ...T });
|
|
@@ -5369,7 +5368,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5369
5368
|
}
|
|
5370
5369
|
case te.CHECKBOX:
|
|
5371
5370
|
case te.SWITCH: {
|
|
5372
|
-
const T = e === te.SWITCH,
|
|
5371
|
+
const T = e === te.SWITCH, $ = {
|
|
5373
5372
|
...S,
|
|
5374
5373
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5375
5374
|
optionalDisplayValue: r,
|
|
@@ -5378,15 +5377,15 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5378
5377
|
},
|
|
5379
5378
|
...T && { variant: "switch" }
|
|
5380
5379
|
};
|
|
5381
|
-
return /* @__PURE__ */ g.jsx(ms, {
|
|
5380
|
+
return /* @__PURE__ */ g.jsx(ms, { ...$ });
|
|
5382
5381
|
}
|
|
5383
5382
|
case te.COMBOBOX: {
|
|
5384
5383
|
const T = {
|
|
5385
5384
|
...S,
|
|
5386
5385
|
bindValue: t.k,
|
|
5387
5386
|
optionalDisplayValue: r,
|
|
5388
|
-
onChange: (
|
|
5389
|
-
f == null || f(E(w,
|
|
5387
|
+
onChange: ($, D) => {
|
|
5388
|
+
f == null || f(E(w, $, D));
|
|
5390
5389
|
}
|
|
5391
5390
|
};
|
|
5392
5391
|
return /* @__PURE__ */ g.jsx(gs, { ...T });
|
|
@@ -5395,8 +5394,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5395
5394
|
const T = {
|
|
5396
5395
|
...S,
|
|
5397
5396
|
bindValue: ct.fromDataObj(t).getValue(),
|
|
5398
|
-
onChange: (
|
|
5399
|
-
f == null || f(E(w,
|
|
5397
|
+
onChange: ($) => {
|
|
5398
|
+
f == null || f(E(w, $));
|
|
5400
5399
|
}
|
|
5401
5400
|
};
|
|
5402
5401
|
return /* @__PURE__ */ g.jsx(vs, { ...T });
|
|
@@ -5418,8 +5417,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5418
5417
|
const T = {
|
|
5419
5418
|
...S,
|
|
5420
5419
|
bindValue: Ke.fromDataObj(t, _).getValue(),
|
|
5421
|
-
onChange: (
|
|
5422
|
-
f == null || f(b(w,
|
|
5420
|
+
onChange: ($) => {
|
|
5421
|
+
f == null || f(b(w, $));
|
|
5423
5422
|
}
|
|
5424
5423
|
};
|
|
5425
5424
|
return /* @__PURE__ */ g.jsx(Os, { ...T });
|
|
@@ -5430,8 +5429,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5430
5429
|
...S,
|
|
5431
5430
|
bindValue: t.k,
|
|
5432
5431
|
optionalDisplayValue: r,
|
|
5433
|
-
onChange: (
|
|
5434
|
-
f == null || f(E(w,
|
|
5432
|
+
onChange: ($) => {
|
|
5433
|
+
f == null || f(E(w, $));
|
|
5435
5434
|
}
|
|
5436
5435
|
};
|
|
5437
5436
|
return /* @__PURE__ */ g.jsx(_s, { ...T });
|
|
@@ -5440,8 +5439,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5440
5439
|
const T = {
|
|
5441
5440
|
...S,
|
|
5442
5441
|
elements: Tr(w),
|
|
5443
|
-
onChange: (
|
|
5444
|
-
f == null || f(k(
|
|
5442
|
+
onChange: ($) => {
|
|
5443
|
+
f == null || f(k($));
|
|
5445
5444
|
}
|
|
5446
5445
|
};
|
|
5447
5446
|
return /* @__PURE__ */ g.jsx(xs, { ...T });
|
|
@@ -5450,8 +5449,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5450
5449
|
const T = {
|
|
5451
5450
|
...S,
|
|
5452
5451
|
bindValue: t.k,
|
|
5453
|
-
onChange: (
|
|
5454
|
-
f == null || f(E(w,
|
|
5452
|
+
onChange: ($) => {
|
|
5453
|
+
f == null || f(E(w, $));
|
|
5455
5454
|
}
|
|
5456
5455
|
};
|
|
5457
5456
|
return /* @__PURE__ */ g.jsx(Ss, { ...T });
|
|
@@ -5460,8 +5459,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5460
5459
|
const T = {
|
|
5461
5460
|
...S,
|
|
5462
5461
|
bindValue: t.k,
|
|
5463
|
-
onChange: (
|
|
5464
|
-
f == null || f(E(w,
|
|
5462
|
+
onChange: ($, D) => {
|
|
5463
|
+
f == null || f(E(w, $, D));
|
|
5465
5464
|
}
|
|
5466
5465
|
};
|
|
5467
5466
|
return /* @__PURE__ */ g.jsx(Rs, { ...T });
|
|
@@ -5470,8 +5469,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5470
5469
|
const T = {
|
|
5471
5470
|
...S,
|
|
5472
5471
|
bindValue: t.k,
|
|
5473
|
-
onEnter: (
|
|
5474
|
-
d == null || d(E(w,
|
|
5472
|
+
onEnter: ($) => {
|
|
5473
|
+
d == null || d(E(w, $));
|
|
5475
5474
|
}
|
|
5476
5475
|
};
|
|
5477
5476
|
return /* @__PURE__ */ g.jsx(ws, { ...T });
|
|
@@ -5481,8 +5480,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5481
5480
|
...S,
|
|
5482
5481
|
bindValue: t.k,
|
|
5483
5482
|
optionalDisplayValue: r,
|
|
5484
|
-
onChange: (
|
|
5485
|
-
f == null || f(E(w,
|
|
5483
|
+
onChange: ($) => {
|
|
5484
|
+
f == null || f(E(w, $));
|
|
5486
5485
|
}
|
|
5487
5486
|
};
|
|
5488
5487
|
return /* @__PURE__ */ g.jsx(Le, { ...T });
|
|
@@ -5491,8 +5490,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5491
5490
|
const T = {
|
|
5492
5491
|
...S,
|
|
5493
5492
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5494
|
-
onChange: (
|
|
5495
|
-
f == null || f(E(w,
|
|
5493
|
+
onChange: ($) => {
|
|
5494
|
+
f == null || f(E(w, $));
|
|
5496
5495
|
}
|
|
5497
5496
|
};
|
|
5498
5497
|
return /* @__PURE__ */ g.jsx(Cs, { ...T });
|
|
@@ -5571,7 +5570,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5571
5570
|
return re(() => {
|
|
5572
5571
|
r && a(i(r));
|
|
5573
5572
|
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((l = r.columns) != null && l.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((c) => /* @__PURE__ */ g.jsx(_e, { ...c })) }) });
|
|
5574
|
-
},
|
|
5573
|
+
}, Ps = (r) => {
|
|
5575
5574
|
var e;
|
|
5576
5575
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5577
5576
|
var n, s;
|
|
@@ -5601,17 +5600,17 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5601
5600
|
if (!((A = j == null ? void 0 : j.rows) != null && A.length) || !((O = j == null ? void 0 : j.columns) != null && O.length))
|
|
5602
5601
|
return {};
|
|
5603
5602
|
const k = j.rows[0];
|
|
5604
|
-
return j.columns.filter((T) => T.visible ?? !0).reduce((T,
|
|
5605
|
-
const D = k.cells[
|
|
5603
|
+
return j.columns.filter((T) => T.visible ?? !0).reduce((T, $) => {
|
|
5604
|
+
const D = k.cells[$.name];
|
|
5606
5605
|
if (!D || !d && de(n) && D.shape !== te.BUTTON && D.shape !== te.BUTTON_LIST)
|
|
5607
5606
|
return T;
|
|
5608
|
-
const
|
|
5607
|
+
const P = {
|
|
5609
5608
|
...D,
|
|
5610
|
-
id:
|
|
5609
|
+
id: $.name,
|
|
5611
5610
|
onChange: (F) => {
|
|
5612
|
-
u((
|
|
5613
|
-
const V = { ...
|
|
5614
|
-
return V != null && V[
|
|
5611
|
+
u((I) => {
|
|
5612
|
+
const V = { ...I };
|
|
5613
|
+
return V != null && V[$.name] && (V[$.name].obj.k = F.obj.k), V;
|
|
5615
5614
|
});
|
|
5616
5615
|
},
|
|
5617
5616
|
onClick: (F) => {
|
|
@@ -5620,20 +5619,20 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5620
5619
|
onEnter: (F) => {
|
|
5621
5620
|
i && i(F);
|
|
5622
5621
|
},
|
|
5623
|
-
onContextMenu: (F,
|
|
5624
|
-
c && c(F,
|
|
5622
|
+
onContextMenu: (F, I) => {
|
|
5623
|
+
c && c(F, I);
|
|
5625
5624
|
}
|
|
5626
5625
|
};
|
|
5627
|
-
return l && D.shape == te.BUTTON_LIST && (
|
|
5628
|
-
(V) =>
|
|
5629
|
-
)), !d && de(n) && (
|
|
5630
|
-
...
|
|
5626
|
+
return l && D.shape == te.BUTTON_LIST && (P.onOptionsRequest = (F, I) => l(F, I).then(
|
|
5627
|
+
(V) => Ps(V)
|
|
5628
|
+
)), !d && de(n) && (P.data = {
|
|
5629
|
+
...P.data,
|
|
5631
5630
|
showText: !1,
|
|
5632
5631
|
justify: "center",
|
|
5633
5632
|
squared: !0
|
|
5634
5633
|
}), {
|
|
5635
5634
|
...T,
|
|
5636
|
-
[
|
|
5635
|
+
[$.name]: P
|
|
5637
5636
|
};
|
|
5638
5637
|
}, {});
|
|
5639
5638
|
},
|
|
@@ -5741,9 +5740,9 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5741
5740
|
SelectLayout: w = "1",
|
|
5742
5741
|
onClick: S
|
|
5743
5742
|
}) => {
|
|
5744
|
-
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0, A = "--smp-dashList-color", O = "smp-layout", T = "descr",
|
|
5743
|
+
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0, A = "--smp-dashList-color", O = "smp-layout", T = "descr", $ = "icon", D = "um", P = "value", F = i || "1em", I = "18px", V = "--smp-dashList-columns", z = "--smp-dashList-fontSize", J = {
|
|
5745
5744
|
dash: (H = "1") => {
|
|
5746
|
-
const Z = h(H), ne = Z, se = v(Z, T), he = v(Z,
|
|
5745
|
+
const Z = h(H), ne = Z, se = v(Z, T), he = v(Z, $), we = v(Z, D), be = v(Z, P);
|
|
5747
5746
|
return {
|
|
5748
5747
|
container: ne,
|
|
5749
5748
|
descr: se,
|
|
@@ -5762,15 +5761,15 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5762
5761
|
return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
|
|
5763
5762
|
}
|
|
5764
5763
|
return H;
|
|
5765
|
-
},
|
|
5764
|
+
}, C = (H) => {
|
|
5766
5765
|
if (!u) return H;
|
|
5767
5766
|
const [Z, ne] = N(u).map(
|
|
5768
|
-
(
|
|
5767
|
+
(Pe) => parseInt(Pe || "0")
|
|
5769
5768
|
), se = "0,0" + (ne ? "." + "0".repeat(ne) : ""), he = Y(H, se, "it");
|
|
5770
5769
|
if (!Z) return he;
|
|
5771
5770
|
const [we, be] = he.split(",");
|
|
5772
5771
|
return we + (be ? `,${be}` : "");
|
|
5773
|
-
}, N = (H) => H.includes(";") ? H.split(";") : [H],
|
|
5772
|
+
}, N = (H) => H.includes(";") ? H.split(";") : [H], W = (H) => {
|
|
5774
5773
|
const Z = (se) => {
|
|
5775
5774
|
var he;
|
|
5776
5775
|
if (se)
|
|
@@ -5788,7 +5787,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5788
5787
|
};
|
|
5789
5788
|
}, B = (H) => {
|
|
5790
5789
|
S == null || S(H);
|
|
5791
|
-
},
|
|
5790
|
+
}, U = (H, Z) => {
|
|
5792
5791
|
(H.key === "Enter" || H.key === " ") && (H.preventDefault(), H.stopPropagation(), B(Z));
|
|
5793
5792
|
}, K = ((H) => {
|
|
5794
5793
|
const Z = J.dash(H);
|
|
@@ -5799,30 +5798,30 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5799
5798
|
le,
|
|
5800
5799
|
{
|
|
5801
5800
|
color: f,
|
|
5802
|
-
height:
|
|
5801
|
+
height: I,
|
|
5803
5802
|
icon: ne,
|
|
5804
|
-
width:
|
|
5803
|
+
width: I
|
|
5805
5804
|
}
|
|
5806
|
-
) }, `${H}-${
|
|
5805
|
+
) }, `${H}-${$}`),
|
|
5807
5806
|
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${D}`),
|
|
5808
|
-
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${
|
|
5807
|
+
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${P}`)
|
|
5809
5808
|
};
|
|
5810
5809
|
})(w), ae = (H) => {
|
|
5811
|
-
const { descr: Z, icon: ne, um: se, value: he } =
|
|
5810
|
+
const { descr: Z, icon: ne, um: se, value: he } = W(H), we = {
|
|
5812
5811
|
[R(T)]: L(s),
|
|
5813
5812
|
[R(D)]: L(p),
|
|
5814
|
-
[R(
|
|
5815
|
-
}, be = [],
|
|
5813
|
+
[R(P)]: L(_)
|
|
5814
|
+
}, be = [], Pe = C(he);
|
|
5816
5815
|
switch (w) {
|
|
5817
5816
|
case "2":
|
|
5818
5817
|
ne && be.push(K.icon(ne)), be.push(K.descr(Z)), be.push(
|
|
5819
|
-
K.value(se ?
|
|
5818
|
+
K.value(se ? Pe + " " + se : Pe)
|
|
5820
5819
|
);
|
|
5821
5820
|
break;
|
|
5822
5821
|
default:
|
|
5823
5822
|
case "1":
|
|
5824
5823
|
be.push(K.descr(Z)), be.push(
|
|
5825
|
-
K.value(se ?
|
|
5824
|
+
K.value(se ? Pe + " " + se : Pe)
|
|
5826
5825
|
);
|
|
5827
5826
|
}
|
|
5828
5827
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -5833,7 +5832,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5833
5832
|
style: we,
|
|
5834
5833
|
tabIndex: 0,
|
|
5835
5834
|
onClick: () => B(H),
|
|
5836
|
-
onKeyDown: (Fr) =>
|
|
5835
|
+
onKeyDown: (Fr) => U(Fr, H),
|
|
5837
5836
|
children: be
|
|
5838
5837
|
},
|
|
5839
5838
|
H.rowId
|
|
@@ -5847,8 +5846,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5847
5846
|
"smp-table": "_smp-table_1qmju_1",
|
|
5848
5847
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5849
5848
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5850
|
-
},
|
|
5851
|
-
rowContent:
|
|
5849
|
+
}, Is = "_rowContent_20wit_2", Ns = "_clickable_20wit_21", ks = "_indent_20wit_26", Ms = "_toggle_20wit_32", Fs = "_cell_20wit_38", Vs = "_leftSection_20wit_46", Te = {
|
|
5850
|
+
rowContent: Is,
|
|
5852
5851
|
clickable: Ns,
|
|
5853
5852
|
indent: ks,
|
|
5854
5853
|
toggle: Ms,
|
|
@@ -6173,8 +6172,8 @@ const Ks = ({
|
|
|
6173
6172
|
const O = A.dataTransfer.getData("text/plain");
|
|
6174
6173
|
if (!O || l.some((D) => D.column === O))
|
|
6175
6174
|
return;
|
|
6176
|
-
const
|
|
6177
|
-
c(
|
|
6175
|
+
const $ = [...l, { column: O, visible: !0 }];
|
|
6176
|
+
c($);
|
|
6178
6177
|
}, _ = (A) => {
|
|
6179
6178
|
A.preventDefault();
|
|
6180
6179
|
}, { virtualItems: w, containerProps: S, innerProps: E } = Ar({
|
|
@@ -6183,16 +6182,16 @@ const Ks = ({
|
|
|
6183
6182
|
containerHeight: t,
|
|
6184
6183
|
overscan: 5
|
|
6185
6184
|
}), b = (A, O) => {
|
|
6186
|
-
const T = A.clientX,
|
|
6187
|
-
const
|
|
6185
|
+
const T = A.clientX, $ = m[O], D = (F) => {
|
|
6186
|
+
const I = F.clientX - T, V = Math.max(50, $ + I);
|
|
6188
6187
|
p((z) => ({
|
|
6189
6188
|
...z,
|
|
6190
6189
|
[O]: V
|
|
6191
6190
|
}));
|
|
6192
|
-
},
|
|
6193
|
-
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup",
|
|
6191
|
+
}, P = () => {
|
|
6192
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", P);
|
|
6194
6193
|
};
|
|
6195
|
-
window.addEventListener("mousemove", D), window.addEventListener("mouseup",
|
|
6194
|
+
window.addEventListener("mousemove", D), window.addEventListener("mouseup", P);
|
|
6196
6195
|
}, j = {
|
|
6197
6196
|
smpTable: `${nt["smp-table"]}`,
|
|
6198
6197
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
@@ -6252,7 +6251,7 @@ const Ks = ({
|
|
|
6252
6251
|
)) })
|
|
6253
6252
|
] }),
|
|
6254
6253
|
/* @__PURE__ */ g.jsx("tbody", { ...E, children: w.map(({ item: A, index: O, offsetTop: T }) => {
|
|
6255
|
-
const
|
|
6254
|
+
const $ = A.rowId || A.value || `${A.isGroup ? "group" : "row"}-${O}`;
|
|
6256
6255
|
return A.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6257
6256
|
Ws,
|
|
6258
6257
|
{
|
|
@@ -6262,11 +6261,11 @@ const Ks = ({
|
|
|
6262
6261
|
level: A.level,
|
|
6263
6262
|
onClick: () => {
|
|
6264
6263
|
const D = A.rowId;
|
|
6265
|
-
D && u((
|
|
6264
|
+
D && u((P) => Bs(P, D));
|
|
6266
6265
|
},
|
|
6267
6266
|
isExpanded: A.isExpanded
|
|
6268
6267
|
},
|
|
6269
|
-
`group-${
|
|
6268
|
+
`group-${$}`
|
|
6270
6269
|
) : /* @__PURE__ */ g.jsx(
|
|
6271
6270
|
Mr,
|
|
6272
6271
|
{
|
|
@@ -6276,7 +6275,7 @@ const Ks = ({
|
|
|
6276
6275
|
offsetTop: T,
|
|
6277
6276
|
isGroup: !1
|
|
6278
6277
|
},
|
|
6279
|
-
`row-${
|
|
6278
|
+
`row-${$}`
|
|
6280
6279
|
);
|
|
6281
6280
|
}) }),
|
|
6282
6281
|
/* @__PURE__ */ g.jsx(qs, { columns: i.columns, columnWidths: m })
|
|
@@ -6376,26 +6375,26 @@ const Ks = ({
|
|
|
6376
6375
|
m(E(r));
|
|
6377
6376
|
}, [r]);
|
|
6378
6377
|
const x = (O, T) => {
|
|
6379
|
-
if (m((
|
|
6380
|
-
|
|
6378
|
+
if (m(($) => ({
|
|
6379
|
+
...$,
|
|
6381
6380
|
[O]: {
|
|
6382
|
-
|
|
6381
|
+
...$[O],
|
|
6383
6382
|
obj: {
|
|
6384
|
-
|
|
6383
|
+
...$[O].obj,
|
|
6385
6384
|
k: T.obj.k
|
|
6386
6385
|
},
|
|
6387
6386
|
decode: T.decode,
|
|
6388
6387
|
data: {
|
|
6389
|
-
|
|
6388
|
+
...$[O].data,
|
|
6390
6389
|
error: void 0
|
|
6391
6390
|
},
|
|
6392
6391
|
// FIXME: remove this when webup.js will not use value
|
|
6393
6392
|
value: T.obj.k
|
|
6394
6393
|
}
|
|
6395
6394
|
})), s && (T.shape == te.CHECKBOX || T.shape == te.SWITCH)) {
|
|
6396
|
-
const
|
|
6397
|
-
|
|
6398
|
-
value: b(
|
|
6395
|
+
const $ = structuredClone(d);
|
|
6396
|
+
$[O].obj.k = T.obj.k, $[O].value = T.obj.k, o({
|
|
6397
|
+
value: b($),
|
|
6399
6398
|
cell: O
|
|
6400
6399
|
});
|
|
6401
6400
|
}
|
|
@@ -6420,21 +6419,21 @@ const Ks = ({
|
|
|
6420
6419
|
fun: T || ""
|
|
6421
6420
|
});
|
|
6422
6421
|
}, S = async (O) => {
|
|
6423
|
-
var T,
|
|
6422
|
+
var T, $;
|
|
6424
6423
|
if (d[O].obj.k != r.rows[0].cells[O].obj.k && ((T = d[O].inputSettings) != null && T.checkObject && c && ((await c({
|
|
6425
6424
|
obj: d[O].obj,
|
|
6426
6425
|
fun: d[O].fun,
|
|
6427
6426
|
cellId: O
|
|
6428
|
-
})).valid || m((
|
|
6429
|
-
...
|
|
6427
|
+
})).valid || m((P) => ({
|
|
6428
|
+
...P,
|
|
6430
6429
|
[O]: {
|
|
6431
|
-
...
|
|
6430
|
+
...P[O],
|
|
6432
6431
|
data: {
|
|
6433
|
-
...
|
|
6432
|
+
...P[O].data,
|
|
6434
6433
|
error: p(Oe.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6435
6434
|
}
|
|
6436
6435
|
}
|
|
6437
|
-
}))), (
|
|
6436
|
+
}))), ($ = d[O].inputSettings) != null && $.checkValueOnExit)) {
|
|
6438
6437
|
const D = b(d);
|
|
6439
6438
|
l == null || l({
|
|
6440
6439
|
value: D,
|
|
@@ -6442,24 +6441,24 @@ const Ks = ({
|
|
|
6442
6441
|
});
|
|
6443
6442
|
}
|
|
6444
6443
|
}, E = (O) => {
|
|
6445
|
-
var
|
|
6446
|
-
if (!((
|
|
6444
|
+
var $, D, P;
|
|
6445
|
+
if (!(($ = O.rows) != null && $.length) || !((D = O.columns) != null && D.length))
|
|
6447
6446
|
return {};
|
|
6448
|
-
const T = (
|
|
6449
|
-
return O.columns.filter((F) => F.visible ?? !0).reduce((F,
|
|
6447
|
+
const T = (P = O.rows) == null ? void 0 : P[0];
|
|
6448
|
+
return O.columns.filter((F) => F.visible ?? !0).reduce((F, I) => {
|
|
6450
6449
|
const V = {
|
|
6451
|
-
...T.cells[
|
|
6452
|
-
id:
|
|
6453
|
-
label:
|
|
6450
|
+
...T.cells[I.name],
|
|
6451
|
+
id: I.name,
|
|
6452
|
+
label: I.title,
|
|
6454
6453
|
dSep: a,
|
|
6455
6454
|
data: {
|
|
6456
|
-
...T.cells[
|
|
6455
|
+
...T.cells[I.name].data,
|
|
6457
6456
|
dSep: a
|
|
6458
6457
|
}
|
|
6459
6458
|
};
|
|
6460
6459
|
return V.isEditable == null && (V.isEditable = !0), t && (V.isEditable = !1), V.isEditable && V.shape == null && (V.shape = te.TEXT_FIELD), {
|
|
6461
6460
|
...F,
|
|
6462
|
-
[
|
|
6461
|
+
[I.name]: V
|
|
6463
6462
|
};
|
|
6464
6463
|
}, {});
|
|
6465
6464
|
}, b = (O) => ({
|
|
@@ -6525,8 +6524,8 @@ const Ks = ({
|
|
|
6525
6524
|
_e,
|
|
6526
6525
|
{
|
|
6527
6526
|
...O,
|
|
6528
|
-
onOptionsRequest: O.fun ? async (T,
|
|
6529
|
-
await i(T,
|
|
6527
|
+
onOptionsRequest: O.fun ? async (T, $) => Zs(
|
|
6528
|
+
await i(T, $, r, O.id)
|
|
6530
6529
|
) : void 0,
|
|
6531
6530
|
onChange: (T) => x(O.id, T),
|
|
6532
6531
|
onBlur: () => S(O.id),
|