@sme.up/ketchup2 2.0.0-SNAPSHOT-20250702100417 → 2.0.0-SNAPSHOT-20250702102617
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
|
@@ -80,7 +80,7 @@ function Br() {
|
|
|
80
80
|
return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
81
|
case E:
|
|
82
82
|
return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
|
|
83
|
-
case
|
|
83
|
+
case $:
|
|
84
84
|
x = h._payload, h = h._init;
|
|
85
85
|
try {
|
|
86
86
|
return r(h(x));
|
|
@@ -101,17 +101,17 @@ function Br() {
|
|
|
101
101
|
}
|
|
102
102
|
if (x) {
|
|
103
103
|
x = console;
|
|
104
|
-
var
|
|
105
|
-
return
|
|
104
|
+
var j = x.error, _ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
|
+
return j.call(
|
|
106
106
|
x,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
_
|
|
109
109
|
), e(h);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function n(h) {
|
|
113
113
|
if (h === b) return "<>";
|
|
114
|
-
if (typeof h == "object" && h !== null && h.$$typeof ===
|
|
114
|
+
if (typeof h == "object" && h !== null && h.$$typeof === $)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
117
|
var x = r(h);
|
|
@@ -135,14 +135,14 @@ function Br() {
|
|
|
135
135
|
return h.key !== void 0;
|
|
136
136
|
}
|
|
137
137
|
function o(h, x) {
|
|
138
|
-
function
|
|
138
|
+
function j() {
|
|
139
139
|
B || (B = !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
|
x
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
get:
|
|
144
|
+
j.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
145
|
+
get: j,
|
|
146
146
|
configurable: !0
|
|
147
147
|
});
|
|
148
148
|
}
|
|
@@ -152,14 +152,14 @@ function Br() {
|
|
|
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, x, _,
|
|
156
|
-
return
|
|
155
|
+
function c(h, x, j, _, D, P, W, Y) {
|
|
156
|
+
return j = P.ref, h = {
|
|
157
157
|
$$typeof: g,
|
|
158
158
|
type: h,
|
|
159
159
|
key: x,
|
|
160
160
|
props: P,
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
161
|
+
_owner: D
|
|
162
|
+
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: l
|
|
165
165
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
@@ -184,13 +184,13 @@ function Br() {
|
|
|
184
184
|
value: Y
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function f(h, x, _,
|
|
187
|
+
function f(h, x, j, _, D, P, W, Y) {
|
|
188
188
|
var V = x.children;
|
|
189
189
|
if (V !== void 0)
|
|
190
|
-
if (
|
|
190
|
+
if (_)
|
|
191
191
|
if (N(V)) {
|
|
192
|
-
for (
|
|
193
|
-
u(V[
|
|
192
|
+
for (_ = 0; _ < V.length; _++)
|
|
193
|
+
u(V[_]);
|
|
194
194
|
Object.freeze && Object.freeze(V);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
@@ -202,34 +202,34 @@ function Br() {
|
|
|
202
202
|
var J = Object.keys(x).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
_ = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[V + _] || (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
|
-
|
|
212
|
+
_,
|
|
213
213
|
V,
|
|
214
214
|
J,
|
|
215
215
|
V
|
|
216
|
-
), F[V +
|
|
216
|
+
), F[V + _] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (V = null,
|
|
219
|
-
|
|
218
|
+
if (V = null, j !== void 0 && (t(j), V = "" + j), i(x) && (t(x.key), V = "" + x.key), "key" in x) {
|
|
219
|
+
j = {};
|
|
220
220
|
for (var K in x)
|
|
221
|
-
K !== "key" && (
|
|
222
|
-
} else
|
|
221
|
+
K !== "key" && (j[K] = x[K]);
|
|
222
|
+
} else j = x;
|
|
223
223
|
return V && o(
|
|
224
|
-
|
|
224
|
+
j,
|
|
225
225
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
226
226
|
), c(
|
|
227
227
|
h,
|
|
228
228
|
V,
|
|
229
229
|
P,
|
|
230
|
-
|
|
230
|
+
D,
|
|
231
231
|
s(),
|
|
232
|
-
|
|
232
|
+
j,
|
|
233
233
|
W,
|
|
234
234
|
Y
|
|
235
235
|
);
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
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 d = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), T = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"),
|
|
240
|
+
var d = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), T = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), A = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, N = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
d = {
|
|
@@ -248,30 +248,30 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
var B, G = {}, q = d["react-stack-bottom-frame"].bind(
|
|
249
249
|
d,
|
|
250
250
|
a
|
|
251
|
-
)(),
|
|
252
|
-
Ve.Fragment = b, Ve.jsx = function(h, x, _,
|
|
251
|
+
)(), X = I(n(a)), F = {};
|
|
252
|
+
Ve.Fragment = b, Ve.jsx = function(h, x, j, _, D) {
|
|
253
253
|
var P = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
h,
|
|
256
256
|
x,
|
|
257
|
-
_,
|
|
258
|
-
!1,
|
|
259
|
-
$,
|
|
260
257
|
j,
|
|
258
|
+
!1,
|
|
259
|
+
_,
|
|
260
|
+
D,
|
|
261
261
|
P ? Error("react-stack-top-frame") : q,
|
|
262
|
-
P ? I(n(h)) :
|
|
262
|
+
P ? I(n(h)) : X
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h, x, _,
|
|
264
|
+
}, Ve.jsxs = function(h, x, j, _, D) {
|
|
265
265
|
var P = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
h,
|
|
268
268
|
x,
|
|
269
|
-
_,
|
|
270
|
-
!0,
|
|
271
|
-
$,
|
|
272
269
|
j,
|
|
270
|
+
!0,
|
|
271
|
+
_,
|
|
272
|
+
D,
|
|
273
273
|
P ? Error("react-stack-top-frame") : q,
|
|
274
|
-
P ? I(n(h)) :
|
|
274
|
+
P ? I(n(h)) : X
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), Ve;
|
|
@@ -530,11 +530,11 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
530
530
|
u.setAttribute("class", S);
|
|
531
531
|
var O = e.getAttribute("style");
|
|
532
532
|
O && u.setAttribute("style", O), u.setAttribute("data-src", l);
|
|
533
|
-
var w = [].filter.call(e.attributes, function(
|
|
534
|
-
return /^data-\w[\w-]*$/.test(
|
|
533
|
+
var w = [].filter.call(e.attributes, function(X) {
|
|
534
|
+
return /^data-\w[\w-]*$/.test(X.name);
|
|
535
535
|
});
|
|
536
|
-
if (Array.prototype.forEach.call(w, function(
|
|
537
|
-
|
|
536
|
+
if (Array.prototype.forEach.call(w, function(X) {
|
|
537
|
+
X.name && X.value && u.setAttribute(X.name, X.value);
|
|
538
538
|
}), n) {
|
|
539
539
|
var T = {
|
|
540
540
|
clipPath: ["clip-path"],
|
|
@@ -547,26 +547,26 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
547
547
|
path: [],
|
|
548
548
|
pattern: ["fill", "stroke"],
|
|
549
549
|
radialGradient: ["fill", "stroke"]
|
|
550
|
-
}, v, y, R, E,
|
|
551
|
-
Object.keys(T).forEach(function(
|
|
552
|
-
v =
|
|
553
|
-
for (var F = function(
|
|
554
|
-
E = y[
|
|
550
|
+
}, v, y, R, E, $;
|
|
551
|
+
Object.keys(T).forEach(function(X) {
|
|
552
|
+
v = X, R = T[X], y = u.querySelectorAll(v + "[id]");
|
|
553
|
+
for (var F = function(_, D) {
|
|
554
|
+
E = y[_].id, $ = E + "-" + tn();
|
|
555
555
|
var P;
|
|
556
556
|
Array.prototype.forEach.call(R, function(U) {
|
|
557
557
|
P = u.querySelectorAll("[" + U + '*="' + E + '"]');
|
|
558
|
-
for (var
|
|
559
|
-
var ae = P[
|
|
560
|
-
ae && !ae.match(new RegExp('url\\("?#' + E + '"?\\)')) || P[
|
|
558
|
+
for (var Z = 0, ne = P.length; Z < ne; Z++) {
|
|
559
|
+
var ae = P[Z].getAttribute(U);
|
|
560
|
+
ae && !ae.match(new RegExp('url\\("?#' + E + '"?\\)')) || P[Z].setAttribute(U, "url(#" + $ + ")");
|
|
561
561
|
}
|
|
562
562
|
});
|
|
563
563
|
for (var W = u.querySelectorAll("[*|href]"), Y = [], V = 0, J = W.length; V < J; V++) {
|
|
564
564
|
var K = W[V].getAttributeNS(bt, "href");
|
|
565
|
-
K && K.toString() === "#" + y[
|
|
565
|
+
K && K.toString() === "#" + y[_].id && Y.push(W[V]);
|
|
566
566
|
}
|
|
567
567
|
for (var se = 0, M = Y.length; se < M; se++)
|
|
568
|
-
Y[se].setAttributeNS(bt, "href", "#" +
|
|
569
|
-
y[
|
|
568
|
+
Y[se].setAttributeNS(bt, "href", "#" + $);
|
|
569
|
+
y[_].id = $;
|
|
570
570
|
}, h = 0, x = y.length; h < x; h++)
|
|
571
571
|
F(h);
|
|
572
572
|
});
|
|
@@ -580,8 +580,8 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
580
580
|
Ht[l] = !0;
|
|
581
581
|
}
|
|
582
582
|
var q = u.querySelectorAll("style");
|
|
583
|
-
if (Array.prototype.forEach.call(q, function(
|
|
584
|
-
|
|
583
|
+
if (Array.prototype.forEach.call(q, function(X) {
|
|
584
|
+
X.textContent += "";
|
|
585
585
|
}), u.setAttribute("xmlns", rn), u.setAttribute("xmlns:xlink", bt), i(u), !e.parentNode) {
|
|
586
586
|
ye.splice(ye.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
587
587
|
return;
|
|
@@ -698,17 +698,17 @@ function an() {
|
|
|
698
698
|
var U = M.$$typeof;
|
|
699
699
|
switch (U) {
|
|
700
700
|
case e:
|
|
701
|
-
var
|
|
702
|
-
switch (
|
|
701
|
+
var Z = M.type;
|
|
702
|
+
switch (Z) {
|
|
703
703
|
case l:
|
|
704
704
|
case c:
|
|
705
705
|
case n:
|
|
706
706
|
case a:
|
|
707
707
|
case s:
|
|
708
708
|
case u:
|
|
709
|
-
return
|
|
709
|
+
return Z;
|
|
710
710
|
default:
|
|
711
|
-
var ne =
|
|
711
|
+
var ne = Z && Z.$$typeof;
|
|
712
712
|
switch (ne) {
|
|
713
713
|
case o:
|
|
714
714
|
case f:
|
|
@@ -725,9 +725,9 @@ function an() {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
var y = l, R = c, E = o,
|
|
728
|
+
var y = l, R = c, E = o, $ = i, L = e, C = f, A = n, k = p, N = g, I = t, B = a, G = s, q = u, X = !1;
|
|
729
729
|
function F(M) {
|
|
730
|
-
return
|
|
730
|
+
return X || (X = !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) || v(M) === l;
|
|
731
731
|
}
|
|
732
732
|
function h(M) {
|
|
733
733
|
return v(M) === c;
|
|
@@ -735,13 +735,13 @@ function an() {
|
|
|
735
735
|
function x(M) {
|
|
736
736
|
return v(M) === o;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function j(M) {
|
|
739
739
|
return v(M) === i;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function _(M) {
|
|
742
742
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function D(M) {
|
|
745
745
|
return v(M) === f;
|
|
746
746
|
}
|
|
747
747
|
function P(M) {
|
|
@@ -765,7 +765,7 @@ function an() {
|
|
|
765
765
|
function se(M) {
|
|
766
766
|
return v(M) === u;
|
|
767
767
|
}
|
|
768
|
-
ee.AsyncMode = y, ee.ConcurrentMode = R, ee.ContextConsumer = E, ee.ContextProvider =
|
|
768
|
+
ee.AsyncMode = y, ee.ConcurrentMode = R, ee.ContextConsumer = E, ee.ContextProvider = $, ee.Element = L, ee.ForwardRef = C, ee.Fragment = A, ee.Lazy = k, ee.Memo = N, ee.Portal = I, ee.Profiler = B, ee.StrictMode = G, ee.Suspense = q, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = j, ee.isElement = _, ee.isForwardRef = D, ee.isFragment = P, ee.isLazy = W, ee.isMemo = Y, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = K, ee.isSuspense = se, ee.isValidElementType = T, ee.typeOf = v;
|
|
769
769
|
}()), ee;
|
|
770
770
|
}
|
|
771
771
|
var qt;
|
|
@@ -922,7 +922,7 @@ function cn() {
|
|
|
922
922
|
elementType: y(),
|
|
923
923
|
instanceOf: R,
|
|
924
924
|
node: C(),
|
|
925
|
-
objectOf:
|
|
925
|
+
objectOf: $,
|
|
926
926
|
oneOf: E,
|
|
927
927
|
oneOfType: L,
|
|
928
928
|
shape: k,
|
|
@@ -937,8 +937,8 @@ function cn() {
|
|
|
937
937
|
b.prototype = Error.prototype;
|
|
938
938
|
function S(h) {
|
|
939
939
|
if (process.env.NODE_ENV !== "production")
|
|
940
|
-
var x = {},
|
|
941
|
-
function
|
|
940
|
+
var x = {}, j = 0;
|
|
941
|
+
function _(P, W, Y, V, J, K, se) {
|
|
942
942
|
if (V = V || d, K = K || Y, se !== t) {
|
|
943
943
|
if (l) {
|
|
944
944
|
var M = new Error(
|
|
@@ -948,23 +948,23 @@ function cn() {
|
|
|
948
948
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
949
949
|
var U = V + ":" + Y;
|
|
950
950
|
!x[U] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
951
|
-
|
|
951
|
+
j < 3 && (a(
|
|
952
952
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + V + "`. 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."
|
|
953
|
-
), x[U] = !0,
|
|
953
|
+
), x[U] = !0, j++);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
return W[Y] == null ? P ? W[Y] === null ? new b("The " + J + " `" + K + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + J + " `" + K + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(W, Y, V, J, K);
|
|
957
957
|
}
|
|
958
|
-
var
|
|
959
|
-
return
|
|
958
|
+
var D = _.bind(null, !1);
|
|
959
|
+
return D.isRequired = _.bind(null, !0), D;
|
|
960
960
|
}
|
|
961
961
|
function O(h) {
|
|
962
|
-
function x(_,
|
|
963
|
-
var V = _
|
|
962
|
+
function x(j, _, D, P, W, Y) {
|
|
963
|
+
var V = j[_], J = G(V);
|
|
964
964
|
if (J !== h) {
|
|
965
965
|
var K = q(V);
|
|
966
966
|
return new b(
|
|
967
|
-
"Invalid " + P + " `" + W + "` of type " + ("`" + K + "` supplied to `" +
|
|
967
|
+
"Invalid " + P + " `" + W + "` of type " + ("`" + K + "` supplied to `" + D + "`, expected ") + ("`" + h + "`."),
|
|
968
968
|
{ expectedType: h }
|
|
969
969
|
);
|
|
970
970
|
}
|
|
@@ -976,16 +976,16 @@ function cn() {
|
|
|
976
976
|
return S(i);
|
|
977
977
|
}
|
|
978
978
|
function T(h) {
|
|
979
|
-
function x(_,
|
|
979
|
+
function x(j, _, D, P, W) {
|
|
980
980
|
if (typeof h != "function")
|
|
981
|
-
return new b("Property `" + W + "` of component `" +
|
|
982
|
-
var Y = _
|
|
981
|
+
return new b("Property `" + W + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
|
|
982
|
+
var Y = j[_];
|
|
983
983
|
if (!Array.isArray(Y)) {
|
|
984
984
|
var V = G(Y);
|
|
985
|
-
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" +
|
|
985
|
+
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected an array."));
|
|
986
986
|
}
|
|
987
987
|
for (var J = 0; J < Y.length; J++) {
|
|
988
|
-
var K = h(Y, J,
|
|
988
|
+
var K = h(Y, J, D, P, W + "[" + J + "]", t);
|
|
989
989
|
if (K instanceof Error)
|
|
990
990
|
return K;
|
|
991
991
|
}
|
|
@@ -994,32 +994,32 @@ function cn() {
|
|
|
994
994
|
return S(x);
|
|
995
995
|
}
|
|
996
996
|
function v() {
|
|
997
|
-
function h(x, _,
|
|
998
|
-
var W = x[
|
|
997
|
+
function h(x, j, _, D, P) {
|
|
998
|
+
var W = x[j];
|
|
999
999
|
if (!o(W)) {
|
|
1000
1000
|
var Y = G(W);
|
|
1001
|
-
return new b("Invalid " +
|
|
1001
|
+
return new b("Invalid " + D + " `" + P + "` of type " + ("`" + Y + "` supplied to `" + _ + "`, expected a single ReactElement."));
|
|
1002
1002
|
}
|
|
1003
1003
|
return null;
|
|
1004
1004
|
}
|
|
1005
1005
|
return S(h);
|
|
1006
1006
|
}
|
|
1007
1007
|
function y() {
|
|
1008
|
-
function h(x, _,
|
|
1009
|
-
var W = x[
|
|
1008
|
+
function h(x, j, _, D, P) {
|
|
1009
|
+
var W = x[j];
|
|
1010
1010
|
if (!r.isValidElementType(W)) {
|
|
1011
1011
|
var Y = G(W);
|
|
1012
|
-
return new b("Invalid " +
|
|
1012
|
+
return new b("Invalid " + D + " `" + P + "` of type " + ("`" + Y + "` supplied to `" + _ + "`, expected a single ReactElement type."));
|
|
1013
1013
|
}
|
|
1014
1014
|
return null;
|
|
1015
1015
|
}
|
|
1016
1016
|
return S(h);
|
|
1017
1017
|
}
|
|
1018
1018
|
function R(h) {
|
|
1019
|
-
function x(_,
|
|
1020
|
-
if (!(_
|
|
1021
|
-
var Y = h.name || d, V = F(_
|
|
1022
|
-
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" +
|
|
1019
|
+
function x(j, _, D, P, W) {
|
|
1020
|
+
if (!(j[_] instanceof h)) {
|
|
1021
|
+
var Y = h.name || d, V = F(j[_]);
|
|
1022
|
+
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1023
1023
|
}
|
|
1024
1024
|
return null;
|
|
1025
1025
|
}
|
|
@@ -1030,28 +1030,28 @@ function cn() {
|
|
|
1030
1030
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1031
1031
|
"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])."
|
|
1032
1032
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1033
|
-
function x(_,
|
|
1034
|
-
for (var Y = _
|
|
1033
|
+
function x(j, _, D, P, W) {
|
|
1034
|
+
for (var Y = j[_], V = 0; V < h.length; V++)
|
|
1035
1035
|
if (p(Y, h[V]))
|
|
1036
1036
|
return null;
|
|
1037
1037
|
var J = JSON.stringify(h, function(se, M) {
|
|
1038
1038
|
var U = q(M);
|
|
1039
1039
|
return U === "symbol" ? String(M) : M;
|
|
1040
1040
|
});
|
|
1041
|
-
return new b("Invalid " + P + " `" + W + "` of value `" + String(Y) + "` " + ("supplied to `" +
|
|
1041
|
+
return new b("Invalid " + P + " `" + W + "` of value `" + String(Y) + "` " + ("supplied to `" + D + "`, expected one of " + J + "."));
|
|
1042
1042
|
}
|
|
1043
1043
|
return S(x);
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1046
|
-
function x(_,
|
|
1045
|
+
function $(h) {
|
|
1046
|
+
function x(j, _, D, P, W) {
|
|
1047
1047
|
if (typeof h != "function")
|
|
1048
|
-
return new b("Property `" + W + "` of component `" +
|
|
1049
|
-
var Y = _
|
|
1048
|
+
return new b("Property `" + W + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
|
|
1049
|
+
var Y = j[_], V = G(Y);
|
|
1050
1050
|
if (V !== "object")
|
|
1051
|
-
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" +
|
|
1051
|
+
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected an object."));
|
|
1052
1052
|
for (var J in Y)
|
|
1053
1053
|
if (n(Y, J)) {
|
|
1054
|
-
var K = h(Y, J,
|
|
1054
|
+
var K = h(Y, J, D, P, W + "." + J, t);
|
|
1055
1055
|
if (K instanceof Error)
|
|
1056
1056
|
return K;
|
|
1057
1057
|
}
|
|
@@ -1063,15 +1063,15 @@ function cn() {
|
|
|
1063
1063
|
if (!Array.isArray(h))
|
|
1064
1064
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1065
1065
|
for (var x = 0; x < h.length; x++) {
|
|
1066
|
-
var
|
|
1067
|
-
if (typeof
|
|
1066
|
+
var j = h[x];
|
|
1067
|
+
if (typeof j != "function")
|
|
1068
1068
|
return a(
|
|
1069
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1069
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(j) + " at index " + x + "."
|
|
1070
1070
|
), i;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function _(D, P, W, Y, V) {
|
|
1073
1073
|
for (var J = [], K = 0; K < h.length; K++) {
|
|
1074
|
-
var se = h[K], M = se(
|
|
1074
|
+
var se = h[K], M = se(D, P, W, Y, V, t);
|
|
1075
1075
|
if (M == null)
|
|
1076
1076
|
return null;
|
|
1077
1077
|
M.data && n(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
@@ -1079,29 +1079,29 @@ function cn() {
|
|
|
1079
1079
|
var U = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1080
1080
|
return new b("Invalid " + Y + " `" + V + "` supplied to " + ("`" + W + "`" + U + "."));
|
|
1081
1081
|
}
|
|
1082
|
-
return S(
|
|
1082
|
+
return S(_);
|
|
1083
1083
|
}
|
|
1084
1084
|
function C() {
|
|
1085
|
-
function h(x, _,
|
|
1086
|
-
return I(x[
|
|
1085
|
+
function h(x, j, _, D, P) {
|
|
1086
|
+
return I(x[j]) ? null : new b("Invalid " + D + " `" + P + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
|
|
1087
1087
|
}
|
|
1088
1088
|
return S(h);
|
|
1089
1089
|
}
|
|
1090
|
-
function A(h, x, _,
|
|
1090
|
+
function A(h, x, j, _, D) {
|
|
1091
1091
|
return new b(
|
|
1092
|
-
(h || "React class") + ": " + x + " type `" +
|
|
1092
|
+
(h || "React class") + ": " + x + " type `" + j + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
1093
1093
|
);
|
|
1094
1094
|
}
|
|
1095
1095
|
function k(h) {
|
|
1096
|
-
function x(_,
|
|
1097
|
-
var Y = _
|
|
1096
|
+
function x(j, _, D, P, W) {
|
|
1097
|
+
var Y = j[_], V = G(Y);
|
|
1098
1098
|
if (V !== "object")
|
|
1099
|
-
return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" +
|
|
1099
|
+
return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1100
1100
|
for (var J in h) {
|
|
1101
1101
|
var K = h[J];
|
|
1102
1102
|
if (typeof K != "function")
|
|
1103
|
-
return A(
|
|
1104
|
-
var se = K(Y, J,
|
|
1103
|
+
return A(D, P, W, J, q(K));
|
|
1104
|
+
var se = K(Y, J, D, P, W + "." + J, t);
|
|
1105
1105
|
if (se)
|
|
1106
1106
|
return se;
|
|
1107
1107
|
}
|
|
@@ -1110,21 +1110,21 @@ function cn() {
|
|
|
1110
1110
|
return S(x);
|
|
1111
1111
|
}
|
|
1112
1112
|
function N(h) {
|
|
1113
|
-
function x(_,
|
|
1114
|
-
var Y = _
|
|
1113
|
+
function x(j, _, D, P, W) {
|
|
1114
|
+
var Y = j[_], V = G(Y);
|
|
1115
1115
|
if (V !== "object")
|
|
1116
|
-
return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" +
|
|
1117
|
-
var J = e({}, _
|
|
1116
|
+
return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1117
|
+
var J = e({}, j[_], h);
|
|
1118
1118
|
for (var K in J) {
|
|
1119
1119
|
var se = h[K];
|
|
1120
1120
|
if (n(h, K) && typeof se != "function")
|
|
1121
|
-
return A(
|
|
1121
|
+
return A(D, P, W, K, q(se));
|
|
1122
1122
|
if (!se)
|
|
1123
1123
|
return new b(
|
|
1124
|
-
"Invalid " + P + " `" + W + "` key `" + K + "` supplied to `" +
|
|
1124
|
+
"Invalid " + P + " `" + W + "` key `" + K + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(j[_], null, " ") + `
|
|
1125
1125
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1126
1126
|
);
|
|
1127
|
-
var M = se(Y, K,
|
|
1127
|
+
var M = se(Y, K, D, P, W + "." + K, t);
|
|
1128
1128
|
if (M)
|
|
1129
1129
|
return M;
|
|
1130
1130
|
}
|
|
@@ -1147,15 +1147,15 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1147
1147
|
return !0;
|
|
1148
1148
|
var x = u(h);
|
|
1149
1149
|
if (x) {
|
|
1150
|
-
var
|
|
1150
|
+
var j = x.call(h), _;
|
|
1151
1151
|
if (x !== h.entries) {
|
|
1152
|
-
for (; !(
|
|
1153
|
-
if (!I(
|
|
1152
|
+
for (; !(_ = j.next()).done; )
|
|
1153
|
+
if (!I(_.value))
|
|
1154
1154
|
return !1;
|
|
1155
1155
|
} else
|
|
1156
|
-
for (; !(
|
|
1157
|
-
var
|
|
1158
|
-
if (
|
|
1156
|
+
for (; !(_ = j.next()).done; ) {
|
|
1157
|
+
var D = _.value;
|
|
1158
|
+
if (D && !I(D[1]))
|
|
1159
1159
|
return !1;
|
|
1160
1160
|
}
|
|
1161
1161
|
} else
|
|
@@ -1184,7 +1184,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1184
1184
|
}
|
|
1185
1185
|
return x;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function X(h) {
|
|
1188
1188
|
var x = q(h);
|
|
1189
1189
|
switch (x) {
|
|
1190
1190
|
case "array":
|
|
@@ -1304,7 +1304,7 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
|
|
|
1304
1304
|
}, function() {
|
|
1305
1305
|
g(E);
|
|
1306
1306
|
});
|
|
1307
|
-
}, v = function(E,
|
|
1307
|
+
}, v = function(E, $) {
|
|
1308
1308
|
if (E) {
|
|
1309
1309
|
T(E);
|
|
1310
1310
|
return;
|
|
@@ -1315,15 +1315,15 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
|
|
|
1315
1315
|
};
|
|
1316
1316
|
}, function() {
|
|
1317
1317
|
try {
|
|
1318
|
-
b(
|
|
1318
|
+
b($);
|
|
1319
1319
|
} catch (L) {
|
|
1320
1320
|
T(L);
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
1323
1323
|
}, y = function(E) {
|
|
1324
1324
|
if (E.setAttribute("role", "img"), i) {
|
|
1325
|
-
var
|
|
1326
|
-
|
|
1325
|
+
var $ = E.querySelector(":scope > desc");
|
|
1326
|
+
$ && E.removeChild($);
|
|
1327
1327
|
var L = document.createElement("desc");
|
|
1328
1328
|
L.innerHTML = i, E.prepend(L);
|
|
1329
1329
|
}
|
|
@@ -2128,7 +2128,7 @@ const Ne = (r, e, t) => {
|
|
|
2128
2128
|
min: y,
|
|
2129
2129
|
max: R,
|
|
2130
2130
|
step: E,
|
|
2131
|
-
inputMode:
|
|
2131
|
+
inputMode: $ = "text",
|
|
2132
2132
|
width: L,
|
|
2133
2133
|
autocomplete: C,
|
|
2134
2134
|
size: A,
|
|
@@ -2139,38 +2139,38 @@ const Ne = (r, e, t) => {
|
|
|
2139
2139
|
onShapeIconClick: G,
|
|
2140
2140
|
onClick: q
|
|
2141
2141
|
}) => {
|
|
2142
|
-
const
|
|
2142
|
+
const X = Te(), F = `${X}-helper`, h = O ? "danger" : o, x = S || !!O, j = (P) => {
|
|
2143
2143
|
I?.(P.target.value);
|
|
2144
|
-
},
|
|
2144
|
+
}, _ = {
|
|
2145
2145
|
wrapper: `${me["smp-textfield-wrapper"]} ${T ? me["smp-textfield-fullWidth"] : ""}`,
|
|
2146
2146
|
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${w ? me[`smp-textfield-${w}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
|
|
2147
2147
|
input: `${me["smp-textfield-input"]}`
|
|
2148
2148
|
};
|
|
2149
2149
|
if (l && (l !== "notSelectable" || s)) {
|
|
2150
2150
|
const P = me[`smp-textfield-variant-${l}`];
|
|
2151
|
-
P && (
|
|
2151
|
+
P && (_.container += ` ${P}`);
|
|
2152
2152
|
}
|
|
2153
|
-
const
|
|
2154
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
2155
|
-
b && /* @__PURE__ */ m.jsx(Re, { label: b, disabled: r, htmlFor:
|
|
2153
|
+
const D = L ? { "--smp-textField-width-base": L } : void 0;
|
|
2154
|
+
return /* @__PURE__ */ m.jsxs("div", { className: _.wrapper, "data-component": v, children: [
|
|
2155
|
+
b && /* @__PURE__ */ m.jsx(Re, { label: b, disabled: r, htmlFor: X }),
|
|
2156
2156
|
/* @__PURE__ */ m.jsxs(
|
|
2157
2157
|
"div",
|
|
2158
2158
|
{
|
|
2159
|
-
className:
|
|
2159
|
+
className: _.container,
|
|
2160
2160
|
ref: u,
|
|
2161
|
-
style:
|
|
2161
|
+
style: D,
|
|
2162
2162
|
children: [
|
|
2163
2163
|
t && /* @__PURE__ */ m.jsx(le, { icon: t, disabled: r }),
|
|
2164
2164
|
/* @__PURE__ */ m.jsx(
|
|
2165
2165
|
"input",
|
|
2166
2166
|
{
|
|
2167
|
-
id:
|
|
2167
|
+
id: X,
|
|
2168
2168
|
type: g,
|
|
2169
2169
|
value: e,
|
|
2170
2170
|
placeholder: n,
|
|
2171
|
-
onChange:
|
|
2171
|
+
onChange: j,
|
|
2172
2172
|
onBlur: N,
|
|
2173
|
-
className:
|
|
2173
|
+
className: _.input,
|
|
2174
2174
|
disabled: r,
|
|
2175
2175
|
readOnly: !s,
|
|
2176
2176
|
onKeyDown: B,
|
|
@@ -2180,7 +2180,7 @@ const Ne = (r, e, t) => {
|
|
|
2180
2180
|
min: y,
|
|
2181
2181
|
max: R,
|
|
2182
2182
|
step: E,
|
|
2183
|
-
inputMode:
|
|
2183
|
+
inputMode: $,
|
|
2184
2184
|
autoComplete: C,
|
|
2185
2185
|
size: A,
|
|
2186
2186
|
maxLength: k,
|
|
@@ -2302,7 +2302,7 @@ const Cn = 10, Lr = ({
|
|
|
2302
2302
|
(I) => I.label.toLowerCase().includes(u.toLowerCase())
|
|
2303
2303
|
) : e, y = (I) => {
|
|
2304
2304
|
d(I);
|
|
2305
|
-
}, { virtualItems: R, containerProps: E, innerProps:
|
|
2305
|
+
}, { virtualItems: R, containerProps: E, innerProps: $, scrollToIndex: L } = kr({
|
|
2306
2306
|
items: v,
|
|
2307
2307
|
itemHeight: g,
|
|
2308
2308
|
containerHeight: 200,
|
|
@@ -2368,7 +2368,7 @@ const Cn = 10, Lr = ({
|
|
|
2368
2368
|
"aria-label": "List",
|
|
2369
2369
|
onKeyDown: k,
|
|
2370
2370
|
"aria-activedescendant": p >= 0 && p < v.length ? v[p]?.id : void 0,
|
|
2371
|
-
children: /* @__PURE__ */ m.jsx("div", {
|
|
2371
|
+
children: /* @__PURE__ */ m.jsx("div", { ...$, className: N.virtualScroll, children: R.map(({ item: I, index: B, offsetTop: G }) => {
|
|
2372
2372
|
const q = i.includes(I.id);
|
|
2373
2373
|
return (
|
|
2374
2374
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2791,7 +2791,7 @@ class ft extends gt {
|
|
|
2791
2791
|
let p = g?.res;
|
|
2792
2792
|
const b = g?.usedKey || o, S = g?.exactUsedKey || o, O = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, v = s.count !== void 0 && !z(s.count), y = ft.hasDefaultValue(s), R = v ? this.pluralResolver.getSuffix(u, s.count, s) : "", E = s.ordinal && v ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2793
2793
|
ordinal: !1
|
|
2794
|
-
}) : "",
|
|
2794
|
+
}) : "", $ = v && !s.ordinal && s.count === 0, L = $ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${E}`] || s.defaultValue;
|
|
2795
2795
|
let C = p;
|
|
2796
2796
|
T && !p && y && (C = L);
|
|
2797
2797
|
const A = hr(C), k = Object.prototype.toString.apply(C);
|
|
@@ -2836,22 +2836,22 @@ class ft extends gt {
|
|
|
2836
2836
|
});
|
|
2837
2837
|
x && x.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.");
|
|
2838
2838
|
}
|
|
2839
|
-
let
|
|
2839
|
+
let X = [];
|
|
2840
2840
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2841
2841
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
|
2842
2842
|
for (let x = 0; x < F.length; x++)
|
|
2843
|
-
|
|
2844
|
-
else this.options.saveMissingTo === "all" ?
|
|
2845
|
-
const h = (x,
|
|
2846
|
-
const
|
|
2847
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c,
|
|
2843
|
+
X.push(F[x]);
|
|
2844
|
+
else this.options.saveMissingTo === "all" ? X = this.languageUtils.toResolveHierarchy(s.lng || this.language) : X.push(s.lng || this.language);
|
|
2845
|
+
const h = (x, j, _) => {
|
|
2846
|
+
const D = y && _ !== p ? _ : G;
|
|
2847
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, j, D, q, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(x, c, j, D, q, s), this.emit("missingKey", x, c, j, p);
|
|
2848
2848
|
};
|
|
2849
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && v ?
|
|
2850
|
-
const
|
|
2851
|
-
|
|
2852
|
-
h([x], o +
|
|
2849
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && v ? X.forEach((x) => {
|
|
2850
|
+
const j = this.pluralResolver.getSuffixes(x, s);
|
|
2851
|
+
$ && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((_) => {
|
|
2852
|
+
h([x], o + _, s[`defaultValue${_}`] || L);
|
|
2853
2853
|
});
|
|
2854
|
-
}) : h(
|
|
2854
|
+
}) : h(X, o, L));
|
|
2855
2855
|
}
|
|
2856
2856
|
p = this.extendTranslation(p, e, s, g, n), I && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (I || N) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, N ? p : void 0, s));
|
|
2857
2857
|
}
|
|
@@ -3894,7 +3894,7 @@ const Ir = ({
|
|
|
3894
3894
|
_multiActiveIndex: d,
|
|
3895
3895
|
...g
|
|
3896
3896
|
}) => {
|
|
3897
|
-
const p = ce(null), [b, S] = H(r), [O, w] = H(e), { translate: T } = je(), [v, y] = H(!1), [R, E] = H(t || []), [
|
|
3897
|
+
const p = ce(null), [b, S] = H(r), [O, w] = H(e), { translate: T } = je(), [v, y] = H(!1), [R, E] = H(t || []), [$, L] = H(0), [C, A] = H([r]), { anchorRef: k, targetRef: N, anchorWidth: I } = pt({
|
|
3898
3898
|
position: "bottom",
|
|
3899
3899
|
enabled: v
|
|
3900
3900
|
}), B = ue(() => {
|
|
@@ -3902,26 +3902,30 @@ const Ir = ({
|
|
|
3902
3902
|
}, []);
|
|
3903
3903
|
mt([N], v, () => B());
|
|
3904
3904
|
const G = On(400), q = (_) => {
|
|
3905
|
-
_.length >= a ?
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3905
|
+
_.length >= a ? X(_) : B(), S(_), w(e), l || c?.(_, e);
|
|
3906
|
+
}, X = (_) => {
|
|
3907
|
+
G(async () => {
|
|
3908
|
+
if (o && f) {
|
|
3909
|
+
const D = await f(o, _);
|
|
3910
|
+
E(D), L(D.length > 0 ? 0 : -1), y(!0);
|
|
3911
|
+
}
|
|
3912
|
+
});
|
|
3913
|
+
}, F = () => {
|
|
3910
3914
|
v || u?.();
|
|
3911
|
-
}, F = (_) => {
|
|
3912
|
-
l ? (S(""), w("")) : (S(_.id), w(_.label)), c?.(_.id, _.label);
|
|
3913
|
-
const $ = R.findIndex((j) => j.id === _.id);
|
|
3914
|
-
L($), A([_.id]), B();
|
|
3915
3915
|
}, h = (_) => {
|
|
3916
|
-
|
|
3916
|
+
l ? (S(""), w("")) : (S(_.id), w(_.label)), c?.(_.id, _.label);
|
|
3917
|
+
const D = R.findIndex((P) => P.id === _.id);
|
|
3918
|
+
L(D), A([_.id]), B();
|
|
3917
3919
|
}, x = (_) => {
|
|
3920
|
+
_.key === "Escape" && (B(), L(-1));
|
|
3921
|
+
}, j = (_) => {
|
|
3918
3922
|
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), v)) {
|
|
3919
|
-
const
|
|
3920
|
-
L(
|
|
3923
|
+
const D = _.key === "ArrowDown" ? ($ + 1) % R.length : ($ - 1 + R.length) % R.length;
|
|
3924
|
+
L(D);
|
|
3921
3925
|
}
|
|
3922
3926
|
switch (_.key) {
|
|
3923
3927
|
case "Enter":
|
|
3924
|
-
|
|
3928
|
+
$ >= 0 && $ < R.length ? h(R[$]) : l && (c?.(b, ""), B(), S(""), w(""));
|
|
3925
3929
|
break;
|
|
3926
3930
|
case "Escape":
|
|
3927
3931
|
B(), L(-1);
|
|
@@ -3944,8 +3948,9 @@ const Ir = ({
|
|
|
3944
3948
|
ref: k,
|
|
3945
3949
|
inputRef: p,
|
|
3946
3950
|
onChange: q,
|
|
3947
|
-
onKeyDown:
|
|
3948
|
-
onBlur:
|
|
3951
|
+
onKeyDown: j,
|
|
3952
|
+
onBlur: F,
|
|
3953
|
+
onShapeIconClick: () => X(b),
|
|
3949
3954
|
"aria-autocomplete": "list"
|
|
3950
3955
|
}
|
|
3951
3956
|
),
|
|
@@ -3954,13 +3959,13 @@ const Ir = ({
|
|
|
3954
3959
|
{
|
|
3955
3960
|
options: R,
|
|
3956
3961
|
displayMode: s,
|
|
3957
|
-
onClick:
|
|
3962
|
+
onClick: h,
|
|
3958
3963
|
ref: N,
|
|
3959
|
-
selectedIndex:
|
|
3964
|
+
selectedIndex: $,
|
|
3960
3965
|
activeIndex: d || C,
|
|
3961
3966
|
width: I,
|
|
3962
3967
|
showFilter: !1,
|
|
3963
|
-
onKeyDown:
|
|
3968
|
+
onKeyDown: x,
|
|
3964
3969
|
isOpen: v
|
|
3965
3970
|
}
|
|
3966
3971
|
) })
|
|
@@ -4165,16 +4170,16 @@ const ps = ({
|
|
|
4165
4170
|
const u = ce(null), [d, g] = H(!1), [p, b] = H(t), [S, O] = H(-1), [w, T] = H([r]), v = Te(), { anchorRef: y, targetRef: R, anchorWidth: E } = pt({
|
|
4166
4171
|
position: "bottom",
|
|
4167
4172
|
enabled: d
|
|
4168
|
-
}),
|
|
4173
|
+
}), $ = ue(() => {
|
|
4169
4174
|
g(!1), u?.current?.focus();
|
|
4170
4175
|
}, []);
|
|
4171
|
-
mt([R, y], d, () =>
|
|
4176
|
+
mt([R, y], d, () => $()), It(d, R);
|
|
4172
4177
|
const L = (N) => {
|
|
4173
4178
|
e?.(N.id, N.label);
|
|
4174
4179
|
const I = p.findIndex((B) => B.id === N.id);
|
|
4175
|
-
O(I), T([N.id]),
|
|
4180
|
+
O(I), T([N.id]), $();
|
|
4176
4181
|
}, C = (N) => {
|
|
4177
|
-
N.key === "Escape" && (
|
|
4182
|
+
N.key === "Escape" && ($(), O(-1));
|
|
4178
4183
|
}, A = (N) => {
|
|
4179
4184
|
(N.key === "ArrowDown" || N.key === "ArrowUp") && (N.preventDefault(), k());
|
|
4180
4185
|
}, k = () => {
|
|
@@ -4293,15 +4298,15 @@ function ms({
|
|
|
4293
4298
|
full: a(fe.SATURDAY)
|
|
4294
4299
|
}
|
|
4295
4300
|
], v = (F) => t.some((h) => {
|
|
4296
|
-
const x = h.start.getTime(),
|
|
4297
|
-
return
|
|
4301
|
+
const x = h.start.getTime(), j = h.end.getTime(), _ = F.getTime();
|
|
4302
|
+
return _ >= x && _ <= j;
|
|
4298
4303
|
}), y = (F) => {
|
|
4299
4304
|
v(F) || (c(F), b(F.getDate()), e && e(En(F)));
|
|
4300
4305
|
}, R = () => {
|
|
4301
4306
|
f === 0 ? (u(11), g(d - 1)) : u(f - 1), b(1);
|
|
4302
4307
|
}, E = () => {
|
|
4303
4308
|
f === 11 ? (u(0), g(d + 1)) : u(f + 1), b(1);
|
|
4304
|
-
},
|
|
4309
|
+
}, $ = (F, h) => new Date(F, h + 1, 0).getDate(), L = (F, h) => new Date(F, h, 1).getDay(), C = (F) => {
|
|
4305
4310
|
const h = I.findIndex(
|
|
4306
4311
|
(x) => x !== null && x.getDate() === F
|
|
4307
4312
|
);
|
|
@@ -4309,20 +4314,20 @@ function ms({
|
|
|
4309
4314
|
}, A = (F, h) => {
|
|
4310
4315
|
const x = I[h];
|
|
4311
4316
|
if (!x) return;
|
|
4312
|
-
const
|
|
4317
|
+
const j = $(d, f), _ = x.getDate();
|
|
4313
4318
|
switch (F.key) {
|
|
4314
4319
|
case "ArrowRight":
|
|
4315
4320
|
F.preventDefault();
|
|
4316
4321
|
{
|
|
4317
|
-
let
|
|
4318
|
-
if (
|
|
4322
|
+
let D = _ + 1, P = new Date(d, f, D);
|
|
4323
|
+
if (D > j) {
|
|
4319
4324
|
const W = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
|
|
4320
|
-
|
|
4325
|
+
D = 1, P = new Date(W, Y, D), E(), setTimeout(() => {
|
|
4321
4326
|
k(1, "forward");
|
|
4322
4327
|
}, 0);
|
|
4323
4328
|
return;
|
|
4324
4329
|
}
|
|
4325
|
-
v(P) ? k(
|
|
4330
|
+
v(P) ? k(D, "forward") : C(D);
|
|
4326
4331
|
}
|
|
4327
4332
|
break;
|
|
4328
4333
|
case "Tab":
|
|
@@ -4330,66 +4335,66 @@ function ms({
|
|
|
4330
4335
|
case "ArrowLeft":
|
|
4331
4336
|
F.preventDefault();
|
|
4332
4337
|
{
|
|
4333
|
-
let
|
|
4334
|
-
if (
|
|
4335
|
-
const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1, V =
|
|
4336
|
-
|
|
4338
|
+
let D = _ - 1, P = new Date(d, f, D);
|
|
4339
|
+
if (D < 1) {
|
|
4340
|
+
const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1, V = $(W, Y);
|
|
4341
|
+
D = V, P = new Date(W, Y, D), R(), setTimeout(() => {
|
|
4337
4342
|
k(V, "backward");
|
|
4338
4343
|
}, 0);
|
|
4339
4344
|
return;
|
|
4340
4345
|
}
|
|
4341
|
-
v(P) ? k(
|
|
4346
|
+
v(P) ? k(D, "backward") : C(D);
|
|
4342
4347
|
}
|
|
4343
4348
|
break;
|
|
4344
4349
|
case "ArrowUp":
|
|
4345
4350
|
F.preventDefault();
|
|
4346
4351
|
{
|
|
4347
|
-
let
|
|
4348
|
-
if (
|
|
4352
|
+
let D = _ - 7, P = new Date(d, f, D);
|
|
4353
|
+
if (D < 1) {
|
|
4349
4354
|
const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1;
|
|
4350
|
-
|
|
4351
|
-
k(
|
|
4355
|
+
D = $(W, Y) + D, P = new Date(W, Y, D), R(), setTimeout(() => {
|
|
4356
|
+
k(D, "backward");
|
|
4352
4357
|
}, 0);
|
|
4353
4358
|
return;
|
|
4354
4359
|
}
|
|
4355
|
-
v(P) ? k(
|
|
4360
|
+
v(P) ? k(D, "backward") : C(D);
|
|
4356
4361
|
}
|
|
4357
4362
|
break;
|
|
4358
4363
|
case "ArrowDown":
|
|
4359
4364
|
F.preventDefault();
|
|
4360
4365
|
{
|
|
4361
|
-
let
|
|
4362
|
-
if (
|
|
4366
|
+
let D = _ + 7, P = new Date(d, f, D);
|
|
4367
|
+
if (D > j) {
|
|
4363
4368
|
const W = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
|
|
4364
|
-
|
|
4365
|
-
k(
|
|
4369
|
+
D = D - j, P = new Date(W, Y, D), E(), setTimeout(() => {
|
|
4370
|
+
k(D, "forward");
|
|
4366
4371
|
}, 0);
|
|
4367
4372
|
return;
|
|
4368
4373
|
}
|
|
4369
|
-
v(P) ? k(
|
|
4374
|
+
v(P) ? k(D, "forward") : C(D);
|
|
4370
4375
|
}
|
|
4371
4376
|
break;
|
|
4372
4377
|
case "Home":
|
|
4373
4378
|
F.preventDefault(), k(1, "forward");
|
|
4374
4379
|
break;
|
|
4375
4380
|
case "End":
|
|
4376
|
-
F.preventDefault(), k(
|
|
4381
|
+
F.preventDefault(), k(j, "backward");
|
|
4377
4382
|
break;
|
|
4378
4383
|
case "PageUp":
|
|
4379
4384
|
F.preventDefault(), R(), setTimeout(() => {
|
|
4380
|
-
const
|
|
4385
|
+
const D = $(
|
|
4381
4386
|
f === 0 ? d - 1 : d,
|
|
4382
4387
|
f === 0 ? 11 : f - 1
|
|
4383
|
-
), P = Math.min(
|
|
4388
|
+
), P = Math.min(_, D);
|
|
4384
4389
|
k(P, "forward");
|
|
4385
4390
|
}, 0);
|
|
4386
4391
|
break;
|
|
4387
4392
|
case "PageDown":
|
|
4388
4393
|
F.preventDefault(), E(), setTimeout(() => {
|
|
4389
|
-
const
|
|
4394
|
+
const D = $(
|
|
4390
4395
|
f === 11 ? d + 1 : d,
|
|
4391
4396
|
f === 11 ? 0 : f + 1
|
|
4392
|
-
), P = Math.min(
|
|
4397
|
+
), P = Math.min(_, D);
|
|
4393
4398
|
k(P, "forward");
|
|
4394
4399
|
}, 0);
|
|
4395
4400
|
break;
|
|
@@ -4403,12 +4408,12 @@ function ms({
|
|
|
4403
4408
|
break;
|
|
4404
4409
|
}
|
|
4405
4410
|
}, k = (F, h) => {
|
|
4406
|
-
const x =
|
|
4411
|
+
const x = $(d, f);
|
|
4407
4412
|
if (h === "forward") {
|
|
4408
|
-
for (let
|
|
4409
|
-
const
|
|
4410
|
-
if (!v(
|
|
4411
|
-
C(
|
|
4413
|
+
for (let j = F; j <= x; j++) {
|
|
4414
|
+
const _ = new Date(d, f, j);
|
|
4415
|
+
if (!v(_)) {
|
|
4416
|
+
C(j);
|
|
4412
4417
|
return;
|
|
4413
4418
|
}
|
|
4414
4419
|
}
|
|
@@ -4423,18 +4428,18 @@ function ms({
|
|
|
4423
4428
|
return;
|
|
4424
4429
|
}
|
|
4425
4430
|
}
|
|
4426
|
-
const
|
|
4431
|
+
const j = f === 0 ? d - 1 : d, _ = f === 0 ? 11 : f - 1, D = $(j, _);
|
|
4427
4432
|
R(), setTimeout(() => {
|
|
4428
|
-
k(
|
|
4433
|
+
k(D, "backward");
|
|
4429
4434
|
}, 0);
|
|
4430
4435
|
}
|
|
4431
4436
|
}, I = (() => {
|
|
4432
|
-
const F =
|
|
4433
|
-
for (let
|
|
4437
|
+
const F = $(d, f), h = L(d, f), x = [];
|
|
4438
|
+
for (let j = 0; j < h; j++)
|
|
4434
4439
|
x.push(null);
|
|
4435
|
-
for (let
|
|
4436
|
-
const
|
|
4437
|
-
x.push(
|
|
4440
|
+
for (let j = 1; j <= F; j++) {
|
|
4441
|
+
const _ = new Date(d, f, j);
|
|
4442
|
+
x.push(_);
|
|
4438
4443
|
}
|
|
4439
4444
|
return x;
|
|
4440
4445
|
})(), B = [];
|
|
@@ -4459,12 +4464,12 @@ function ms({
|
|
|
4459
4464
|
calendar: "smp-datepickercalendar",
|
|
4460
4465
|
table: "smp-datepickercalendar-table",
|
|
4461
4466
|
th: "smp-datepickercalendar-th",
|
|
4462
|
-
td: (F, h, x,
|
|
4467
|
+
td: (F, h, x, j) => `smp-datepickercalendar-td
|
|
4463
4468
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4464
4469
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4465
4470
|
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4466
|
-
${
|
|
4467
|
-
},
|
|
4471
|
+
${j ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4472
|
+
}, X = () => `${w[f]} ${d.toString()}`;
|
|
4468
4473
|
return /* @__PURE__ */ m.jsxs(
|
|
4469
4474
|
"div",
|
|
4470
4475
|
{
|
|
@@ -4499,9 +4504,9 @@ function ms({
|
|
|
4499
4504
|
/* @__PURE__ */ m.jsx(
|
|
4500
4505
|
"div",
|
|
4501
4506
|
{
|
|
4502
|
-
"aria-label":
|
|
4507
|
+
"aria-label": X(),
|
|
4503
4508
|
className: q.label,
|
|
4504
|
-
children:
|
|
4509
|
+
children: X()
|
|
4505
4510
|
}
|
|
4506
4511
|
),
|
|
4507
4512
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4536,8 +4541,8 @@ function ms({
|
|
|
4536
4541
|
},
|
|
4537
4542
|
F.value
|
|
4538
4543
|
)) }) }),
|
|
4539
|
-
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x,
|
|
4540
|
-
const
|
|
4544
|
+
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x, j) => {
|
|
4545
|
+
const _ = h * 7 + j;
|
|
4541
4546
|
if (x === null)
|
|
4542
4547
|
return /* @__PURE__ */ m.jsx(
|
|
4543
4548
|
"td",
|
|
@@ -4549,9 +4554,9 @@ function ms({
|
|
|
4549
4554
|
!0
|
|
4550
4555
|
)
|
|
4551
4556
|
},
|
|
4552
|
-
`empty-${
|
|
4557
|
+
`empty-${j}`
|
|
4553
4558
|
);
|
|
4554
|
-
const
|
|
4559
|
+
const D = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), P = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), W = p === x.getDate(), Y = v(x);
|
|
4555
4560
|
return /* @__PURE__ */ m.jsx(
|
|
4556
4561
|
"td",
|
|
4557
4562
|
{
|
|
@@ -4559,22 +4564,22 @@ function ms({
|
|
|
4559
4564
|
"aria-selected": P,
|
|
4560
4565
|
tabIndex: W ? 0 : -1,
|
|
4561
4566
|
onClick: () => y(x),
|
|
4562
|
-
onKeyDown: (V) => A(V,
|
|
4567
|
+
onKeyDown: (V) => A(V, _),
|
|
4563
4568
|
"aria-label": `${x.getDate()} ${w[x.getMonth()]} ${x.getFullYear()}`,
|
|
4564
4569
|
"data-selected": P,
|
|
4565
4570
|
"aria-disabled": Y,
|
|
4566
4571
|
ref: (V) => {
|
|
4567
|
-
O.current[
|
|
4572
|
+
O.current[_] = V;
|
|
4568
4573
|
},
|
|
4569
4574
|
className: q.td(
|
|
4570
|
-
|
|
4575
|
+
D,
|
|
4571
4576
|
P,
|
|
4572
4577
|
W,
|
|
4573
4578
|
Y
|
|
4574
4579
|
),
|
|
4575
4580
|
children: x.getDate()
|
|
4576
4581
|
},
|
|
4577
|
-
`day-${
|
|
4582
|
+
`day-${j}`
|
|
4578
4583
|
);
|
|
4579
4584
|
}) }, `week-${h}`)) })
|
|
4580
4585
|
]
|
|
@@ -4628,7 +4633,7 @@ const gs = ({
|
|
|
4628
4633
|
t && t(A && C || L);
|
|
4629
4634
|
}, E = (L) => {
|
|
4630
4635
|
d(L);
|
|
4631
|
-
},
|
|
4636
|
+
}, $ = (L) => {
|
|
4632
4637
|
L.key === "Enter" && (L.preventDefault(), R(u));
|
|
4633
4638
|
};
|
|
4634
4639
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
|
|
@@ -4640,7 +4645,7 @@ const gs = ({
|
|
|
4640
4645
|
placeholder: e,
|
|
4641
4646
|
onBlur: v,
|
|
4642
4647
|
onChange: E,
|
|
4643
|
-
onKeyDown:
|
|
4648
|
+
onKeyDown: $,
|
|
4644
4649
|
shapeIcon: "calendar",
|
|
4645
4650
|
onShapeIconClick: T,
|
|
4646
4651
|
ref: g,
|
|
@@ -4915,7 +4920,7 @@ const Pe = (r, e, t) => ({
|
|
|
4915
4920
|
o,
|
|
4916
4921
|
w
|
|
4917
4922
|
]
|
|
4918
|
-
),
|
|
4923
|
+
), $ = (k) => y(k), L = () => E(v), C = (k) => {
|
|
4919
4924
|
if (k.key === "Enter") {
|
|
4920
4925
|
k.preventDefault(), E(v, !0);
|
|
4921
4926
|
return;
|
|
@@ -4944,7 +4949,7 @@ const Pe = (r, e, t) => ({
|
|
|
4944
4949
|
min: r,
|
|
4945
4950
|
max: e,
|
|
4946
4951
|
step: t,
|
|
4947
|
-
onChange:
|
|
4952
|
+
onChange: $,
|
|
4948
4953
|
onBlur: L,
|
|
4949
4954
|
onKeyDown: C
|
|
4950
4955
|
}
|
|
@@ -5198,8 +5203,8 @@ const Ye = {
|
|
|
5198
5203
|
}, S = (y) => {
|
|
5199
5204
|
u(y);
|
|
5200
5205
|
}, O = (y, R, E) => {
|
|
5201
|
-
const
|
|
5202
|
-
c(
|
|
5206
|
+
const $ = Rs(y, R, E);
|
|
5207
|
+
c($), u($), t?.($), p();
|
|
5203
5208
|
}, w = () => {
|
|
5204
5209
|
v(f);
|
|
5205
5210
|
}, T = (y) => {
|
|
@@ -5320,7 +5325,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5320
5325
|
}, v = (C, A, k) => yn(t) ? Pe(C, new lt(t, A).getLegacyValue()) : bn(t) ? Pe(C, new dt(t, A).getLegacyValue()) : Pe(C, A, k), y = (C, A) => Pe(
|
|
5321
5326
|
C,
|
|
5322
5327
|
new Ge(t, A, O).getLegacyValue()
|
|
5323
|
-
), R = (C) => Pe(w, new it(t, C).getLegacyValue()), E = (C) => Ss(w, C),
|
|
5328
|
+
), R = (C) => Pe(w, new it(t, C).getLegacyValue()), E = (C) => Ss(w, C), $ = () => {
|
|
5324
5329
|
switch (e) {
|
|
5325
5330
|
case te.AUTOCOMPLETE: {
|
|
5326
5331
|
const C = {
|
|
@@ -5512,7 +5517,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5512
5517
|
onContextMenu: (C) => {
|
|
5513
5518
|
b && l && (C.preventDefault(), b(w, C.currentTarget));
|
|
5514
5519
|
},
|
|
5515
|
-
children:
|
|
5520
|
+
children: $()
|
|
5516
5521
|
}
|
|
5517
5522
|
);
|
|
5518
5523
|
}, ea = ({
|
|
@@ -5588,11 +5593,11 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5588
5593
|
return {};
|
|
5589
5594
|
const y = v.rows[0];
|
|
5590
5595
|
return v.columns.filter((R) => R.visible ?? !0).reduce((R, E) => {
|
|
5591
|
-
const
|
|
5592
|
-
if (
|
|
5596
|
+
const $ = y.cells[E.name];
|
|
5597
|
+
if (!$ || !d && de(n) && $.shape !== te.BUTTON && $.shape !== te.BUTTON_LIST)
|
|
5593
5598
|
return R;
|
|
5594
5599
|
const L = {
|
|
5595
|
-
|
|
5600
|
+
...$,
|
|
5596
5601
|
id: E.name,
|
|
5597
5602
|
onChange: (C) => {
|
|
5598
5603
|
u((A) => {
|
|
@@ -5610,7 +5615,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5610
5615
|
c && c(C, A);
|
|
5611
5616
|
}
|
|
5612
5617
|
};
|
|
5613
|
-
return l &&
|
|
5618
|
+
return l && $.shape == te.BUTTON_LIST && (L.onOptionsRequest = (C, A) => l(C, A).then(
|
|
5614
5619
|
(k) => ks(k)
|
|
5615
5620
|
)), !d && de(n) && (L.data = {
|
|
5616
5621
|
...L.data,
|
|
@@ -5727,9 +5732,9 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5727
5732
|
SelectLayout: w = "1",
|
|
5728
5733
|
onClick: T
|
|
5729
5734
|
}) => {
|
|
5730
|
-
const v = "N/A", y = e?.columns || [], R = e?.rows || [], E = R.length > 0,
|
|
5735
|
+
const v = "N/A", y = e?.columns || [], R = e?.rows || [], E = R.length > 0, $ = "--smp-dashList-color", L = "smp-layout", C = "descr", A = "icon", k = "um", N = "value", I = i || "1em", B = "18px", G = "--smp-dashList-columns", q = "--smp-dashList-fontSize", X = {
|
|
5731
5736
|
dash: (U = "1") => {
|
|
5732
|
-
const
|
|
5737
|
+
const Z = h(U), ne = Z, ae = x(Z, C), $e = x(Z, A), Me = x(Z, k), ge = x(Z, N);
|
|
5733
5738
|
return {
|
|
5734
5739
|
container: ne,
|
|
5735
5740
|
descr: ae,
|
|
@@ -5740,24 +5745,24 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5740
5745
|
},
|
|
5741
5746
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5742
5747
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5743
|
-
}, { format: F } = je(), h = (U) => `${L}-${U}`, x = (U,
|
|
5744
|
-
const
|
|
5745
|
-
if (
|
|
5746
|
-
const ae = U.match(
|
|
5748
|
+
}, { format: F } = je(), h = (U) => `${L}-${U}`, x = (U, Z) => `${U}__${Z}`, j = (U) => `${$}-${U}`, _ = (U) => {
|
|
5749
|
+
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5750
|
+
if (Z.test(U)) {
|
|
5751
|
+
const ae = U.match(Z) || [];
|
|
5747
5752
|
if (ae?.length > 3)
|
|
5748
5753
|
return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
|
|
5749
5754
|
}
|
|
5750
5755
|
return U;
|
|
5751
|
-
},
|
|
5756
|
+
}, D = (U) => {
|
|
5752
5757
|
if (!u) return U;
|
|
5753
|
-
const [
|
|
5758
|
+
const [Z, ne] = P(u).map(
|
|
5754
5759
|
(ke) => parseInt(ke || "0")
|
|
5755
5760
|
), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""), $e = F(U, ae, "it");
|
|
5756
|
-
if (!
|
|
5761
|
+
if (!Z) return $e;
|
|
5757
5762
|
const [Me, ge] = $e.split(",");
|
|
5758
5763
|
return Me + (ge ? `,${ge}` : "");
|
|
5759
5764
|
}, P = (U) => U.includes(";") ? U.split(";") : [U], W = (U) => {
|
|
5760
|
-
const
|
|
5765
|
+
const Z = (ae) => {
|
|
5761
5766
|
if (ae)
|
|
5762
5767
|
return U?.cells[ae]?.obj.k;
|
|
5763
5768
|
}, ne = (ae) => {
|
|
@@ -5765,21 +5770,21 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5765
5770
|
return U?.cells[y[ae].name]?.obj?.k;
|
|
5766
5771
|
};
|
|
5767
5772
|
return {
|
|
5768
|
-
descr: t ||
|
|
5769
|
-
icon: l ||
|
|
5770
|
-
um: d ||
|
|
5771
|
-
value: b ||
|
|
5773
|
+
descr: t || Z(n) || ne(2) || "",
|
|
5774
|
+
icon: l || Z(c) || ne(3) || "",
|
|
5775
|
+
um: d || Z(g) || ne(1) || "",
|
|
5776
|
+
value: b || Z(S) || ne(0) || ""
|
|
5772
5777
|
};
|
|
5773
5778
|
}, Y = (U) => {
|
|
5774
5779
|
T?.(U);
|
|
5775
|
-
}, V = (U,
|
|
5776
|
-
(U.key === "Enter" || U.key === " ") && (U.preventDefault(), U.stopPropagation(), Y(
|
|
5780
|
+
}, V = (U, Z) => {
|
|
5781
|
+
(U.key === "Enter" || U.key === " ") && (U.preventDefault(), U.stopPropagation(), Y(Z));
|
|
5777
5782
|
}, K = ((U) => {
|
|
5778
|
-
const
|
|
5783
|
+
const Z = X.dash(U);
|
|
5779
5784
|
return {
|
|
5780
|
-
className:
|
|
5781
|
-
descr: (ne) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5782
|
-
icon: (ne) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5785
|
+
className: Z,
|
|
5786
|
+
descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.descr, children: ne }, `${U}-${C}`),
|
|
5787
|
+
icon: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.icon, children: /* @__PURE__ */ m.jsx(
|
|
5783
5788
|
le,
|
|
5784
5789
|
{
|
|
5785
5790
|
color: f,
|
|
@@ -5788,24 +5793,24 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5788
5793
|
width: B
|
|
5789
5794
|
}
|
|
5790
5795
|
) }, `${U}-${A}`),
|
|
5791
|
-
um: (ne) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5792
|
-
value: (ne) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5796
|
+
um: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.um, children: ne }, `${U}-${k}`),
|
|
5797
|
+
value: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.value, children: ne }, `${U}-${N}`)
|
|
5793
5798
|
};
|
|
5794
5799
|
})(w), se = (U) => {
|
|
5795
|
-
const { descr:
|
|
5796
|
-
[
|
|
5797
|
-
[
|
|
5798
|
-
[
|
|
5799
|
-
}, ge = [], ke =
|
|
5800
|
+
const { descr: Z, icon: ne, um: ae, value: $e } = W(U), Me = {
|
|
5801
|
+
[j(C)]: _(s),
|
|
5802
|
+
[j(k)]: _(p),
|
|
5803
|
+
[j(N)]: _(O)
|
|
5804
|
+
}, ge = [], ke = D($e);
|
|
5800
5805
|
switch (w) {
|
|
5801
5806
|
case "2":
|
|
5802
|
-
ne && ge.push(K.icon(ne)), ge.push(K.descr(
|
|
5807
|
+
ne && ge.push(K.icon(ne)), ge.push(K.descr(Z)), ge.push(
|
|
5803
5808
|
K.value(ae ? ke + " " + ae : ke)
|
|
5804
5809
|
);
|
|
5805
5810
|
break;
|
|
5806
5811
|
default:
|
|
5807
5812
|
case "1":
|
|
5808
|
-
ge.push(K.descr(
|
|
5813
|
+
ge.push(K.descr(Z)), ge.push(
|
|
5809
5814
|
K.value(ae ? ke + " " + ae : ke)
|
|
5810
5815
|
);
|
|
5811
5816
|
}
|
|
@@ -5826,7 +5831,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5826
5831
|
[G]: String(r),
|
|
5827
5832
|
[q]: I
|
|
5828
5833
|
};
|
|
5829
|
-
return /* @__PURE__ */ m.jsx("div", { className:
|
|
5834
|
+
return /* @__PURE__ */ m.jsx("div", { className: X.dashList, style: M, children: E ? R.map((U) => se(U)) : v });
|
|
5830
5835
|
}, rt = {
|
|
5831
5836
|
"smp-table": "_smp-table_1qmju_1",
|
|
5832
5837
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
@@ -6144,10 +6149,10 @@ const Hs = ({
|
|
|
6144
6149
|
c(Us(E, l));
|
|
6145
6150
|
}, S = (E) => {
|
|
6146
6151
|
E.preventDefault();
|
|
6147
|
-
const
|
|
6148
|
-
if (
|
|
6152
|
+
const $ = E.dataTransfer.getData("text/plain");
|
|
6153
|
+
if (!$ || l.some((A) => A.column === $))
|
|
6149
6154
|
return;
|
|
6150
|
-
const C = [...l, { column:
|
|
6155
|
+
const C = [...l, { column: $, visible: !0 }];
|
|
6151
6156
|
c(C);
|
|
6152
6157
|
}, O = (E) => {
|
|
6153
6158
|
E.preventDefault();
|
|
@@ -6156,12 +6161,12 @@ const Hs = ({
|
|
|
6156
6161
|
itemHeight: e,
|
|
6157
6162
|
containerHeight: t,
|
|
6158
6163
|
overscan: 5
|
|
6159
|
-
}), y = (E,
|
|
6160
|
-
const L = E.clientX, C = g[
|
|
6164
|
+
}), y = (E, $) => {
|
|
6165
|
+
const L = E.clientX, C = g[$], A = (N) => {
|
|
6161
6166
|
const I = N.clientX - L, B = Math.max(50, C + I);
|
|
6162
6167
|
p((G) => ({
|
|
6163
6168
|
...G,
|
|
6164
|
-
[
|
|
6169
|
+
[$]: B
|
|
6165
6170
|
}));
|
|
6166
6171
|
}, k = () => {
|
|
6167
6172
|
window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", k);
|
|
@@ -6195,8 +6200,8 @@ const Hs = ({
|
|
|
6195
6200
|
{
|
|
6196
6201
|
className: R.headerCell,
|
|
6197
6202
|
draggable: !0,
|
|
6198
|
-
onDragStart: (
|
|
6199
|
-
|
|
6203
|
+
onDragStart: ($) => {
|
|
6204
|
+
$.dataTransfer.setData("text/plain", E.name);
|
|
6200
6205
|
},
|
|
6201
6206
|
style: {
|
|
6202
6207
|
width: g[E.name],
|
|
@@ -6215,7 +6220,7 @@ const Hs = ({
|
|
|
6215
6220
|
"div",
|
|
6216
6221
|
{
|
|
6217
6222
|
className: R.resizer,
|
|
6218
|
-
onMouseDown: (
|
|
6223
|
+
onMouseDown: ($) => y($, E.name),
|
|
6219
6224
|
role: "region"
|
|
6220
6225
|
}
|
|
6221
6226
|
)
|
|
@@ -6225,8 +6230,8 @@ const Hs = ({
|
|
|
6225
6230
|
)
|
|
6226
6231
|
) })
|
|
6227
6232
|
] }),
|
|
6228
|
-
/* @__PURE__ */ m.jsx("tbody", { ...v, children: w.map(({ item: E, index:
|
|
6229
|
-
const C = E.rowId || E.value || `${E.isGroup ? "group" : "row"}-${
|
|
6233
|
+
/* @__PURE__ */ m.jsx("tbody", { ...v, children: w.map(({ item: E, index: $, offsetTop: L }) => {
|
|
6234
|
+
const C = E.rowId || E.value || `${E.isGroup ? "group" : "row"}-${$}`;
|
|
6230
6235
|
return E.isGroup ? /* @__PURE__ */ m.jsx(
|
|
6231
6236
|
Ws,
|
|
6232
6237
|
{
|
|
@@ -6348,37 +6353,37 @@ const Hs = ({
|
|
|
6348
6353
|
re(() => {
|
|
6349
6354
|
g(v(r));
|
|
6350
6355
|
}, [r]);
|
|
6351
|
-
const S = (E,
|
|
6356
|
+
const S = (E, $) => {
|
|
6352
6357
|
if (g((L) => ({
|
|
6353
6358
|
...L,
|
|
6354
6359
|
[E]: {
|
|
6355
6360
|
...L[E],
|
|
6356
6361
|
obj: {
|
|
6357
6362
|
...L[E].obj,
|
|
6358
|
-
k:
|
|
6363
|
+
k: $.obj.k
|
|
6359
6364
|
},
|
|
6360
|
-
decode:
|
|
6365
|
+
decode: $.decode,
|
|
6361
6366
|
data: {
|
|
6362
6367
|
...L[E].data,
|
|
6363
6368
|
error: void 0
|
|
6364
6369
|
},
|
|
6365
6370
|
// FIXME: remove this when webup.js will not use value
|
|
6366
|
-
value:
|
|
6371
|
+
value: $.obj.k
|
|
6367
6372
|
}
|
|
6368
|
-
})), s && (
|
|
6373
|
+
})), s && ($.shape == te.CHECKBOX || $.shape == te.SWITCH)) {
|
|
6369
6374
|
const L = structuredClone(d);
|
|
6370
|
-
L[E].obj.k =
|
|
6375
|
+
L[E].obj.k = $.obj.k, L[E].value = $.obj.k, o({
|
|
6371
6376
|
value: y(L),
|
|
6372
6377
|
cell: E
|
|
6373
6378
|
});
|
|
6374
6379
|
}
|
|
6375
6380
|
}, O = (E) => {
|
|
6376
|
-
const
|
|
6381
|
+
const $ = y(d);
|
|
6377
6382
|
o({
|
|
6378
|
-
value:
|
|
6383
|
+
value: $,
|
|
6379
6384
|
cell: E
|
|
6380
6385
|
});
|
|
6381
|
-
}, w = (E,
|
|
6386
|
+
}, w = (E, $) => {
|
|
6382
6387
|
u?.({
|
|
6383
6388
|
cellId: E,
|
|
6384
6389
|
currentState: {
|
|
@@ -6390,7 +6395,7 @@ const Hs = ({
|
|
|
6390
6395
|
}
|
|
6391
6396
|
]
|
|
6392
6397
|
},
|
|
6393
|
-
fun:
|
|
6398
|
+
fun: $ || ""
|
|
6394
6399
|
});
|
|
6395
6400
|
}, T = async (E) => {
|
|
6396
6401
|
if (d[E].obj.k != r.rows[0].cells[E].obj.k && (d[E].inputSettings?.checkObject && c && ((await c({
|
|
@@ -6407,24 +6412,24 @@ const Hs = ({
|
|
|
6407
6412
|
}
|
|
6408
6413
|
}
|
|
6409
6414
|
}))), d[E].inputSettings?.checkValueOnExit)) {
|
|
6410
|
-
const
|
|
6415
|
+
const $ = y(d);
|
|
6411
6416
|
l?.({
|
|
6412
|
-
value:
|
|
6417
|
+
value: $,
|
|
6413
6418
|
cell: E
|
|
6414
6419
|
});
|
|
6415
6420
|
}
|
|
6416
6421
|
}, v = (E) => {
|
|
6417
6422
|
if (!E.rows?.length || !E.columns?.length)
|
|
6418
6423
|
return {};
|
|
6419
|
-
const
|
|
6424
|
+
const $ = E.rows?.[0];
|
|
6420
6425
|
return E.columns.filter((L) => L.visible ?? !0).reduce((L, C) => {
|
|
6421
6426
|
const A = {
|
|
6422
|
-
|
|
6427
|
+
...$.cells[C.name],
|
|
6423
6428
|
id: C.name,
|
|
6424
6429
|
label: C.title,
|
|
6425
6430
|
dSep: a,
|
|
6426
6431
|
data: {
|
|
6427
|
-
|
|
6432
|
+
...$.cells[C.name].data,
|
|
6428
6433
|
dSep: a
|
|
6429
6434
|
}
|
|
6430
6435
|
};
|
|
@@ -6444,7 +6449,7 @@ const Hs = ({
|
|
|
6444
6449
|
}
|
|
6445
6450
|
]
|
|
6446
6451
|
}
|
|
6447
|
-
}), R = r.setup?.commands?.map((E,
|
|
6452
|
+
}), R = r.setup?.commands?.map((E, $) => /* @__PURE__ */ Wr(
|
|
6448
6453
|
Ee,
|
|
6449
6454
|
{
|
|
6450
6455
|
...E,
|
|
@@ -6452,8 +6457,8 @@ const Hs = ({
|
|
|
6452
6457
|
data: {
|
|
6453
6458
|
label: E.value
|
|
6454
6459
|
},
|
|
6455
|
-
id: `command-${
|
|
6456
|
-
key: `command-${
|
|
6460
|
+
id: `command-${$}`,
|
|
6461
|
+
key: `command-${$}`,
|
|
6457
6462
|
shape: te.BUTTON,
|
|
6458
6463
|
onClick: () => O(E.obj.k)
|
|
6459
6464
|
}
|
|
@@ -6496,10 +6501,10 @@ const Hs = ({
|
|
|
6496
6501
|
Ee,
|
|
6497
6502
|
{
|
|
6498
6503
|
...E,
|
|
6499
|
-
onOptionsRequest: E.fun ? async (
|
|
6500
|
-
await i(
|
|
6504
|
+
onOptionsRequest: E.fun ? async ($, L) => Js(
|
|
6505
|
+
await i($, L, r, E.id)
|
|
6501
6506
|
) : void 0,
|
|
6502
|
-
onChange: (
|
|
6507
|
+
onChange: ($) => S(E.id, $),
|
|
6503
6508
|
onBlur: () => T(E.id),
|
|
6504
6509
|
onContextMenu: f,
|
|
6505
6510
|
onClick: () => {
|