@sme.up/ketchup2 2.0.0-SNAPSHOT-20250604123630 → 2.0.0-SNAPSHOT-20250606143603
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/basic-components/textfield/textfield-types.d.ts +5 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +10 -10
- package/dist/ketchup2.es.js +200 -198
- package/package.json +6 -6
package/dist/ketchup2.es.js
CHANGED
|
@@ -80,7 +80,7 @@ function Dr() {
|
|
|
80
80
|
case R:
|
|
81
81
|
var m = d.render;
|
|
82
82
|
return d = d.displayName, d || (d = m.displayName || m.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
|
|
83
|
-
case
|
|
83
|
+
case L:
|
|
84
84
|
return m = d.displayName || null, m !== null ? m : r(d.type) || "Memo";
|
|
85
85
|
case V:
|
|
86
86
|
m = d._payload, d = d._init;
|
|
@@ -123,7 +123,7 @@ function Dr() {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function s() {
|
|
126
|
-
var d =
|
|
126
|
+
var d = N.A;
|
|
127
127
|
return d === null ? null : d.getOwner();
|
|
128
128
|
}
|
|
129
129
|
function a() {
|
|
@@ -154,7 +154,7 @@ function Dr() {
|
|
|
154
154
|
"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."
|
|
155
155
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
156
156
|
}
|
|
157
|
-
function c(d, m, S, D, T, P,
|
|
157
|
+
function c(d, m, S, D, T, P, I, _) {
|
|
158
158
|
return S = P.ref, d = {
|
|
159
159
|
$$typeof: g,
|
|
160
160
|
type: d,
|
|
@@ -178,7 +178,7 @@ function Dr() {
|
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
|
-
value:
|
|
181
|
+
value: I
|
|
182
182
|
}), Object.defineProperty(d, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
@@ -186,25 +186,25 @@ function Dr() {
|
|
|
186
186
|
value: _
|
|
187
187
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
188
188
|
}
|
|
189
|
-
function u(d, m, S, D, T, P,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
189
|
+
function u(d, m, S, D, T, P, I, _) {
|
|
190
|
+
var j = m.children;
|
|
191
|
+
if (j !== void 0)
|
|
192
192
|
if (D)
|
|
193
|
-
if (J(
|
|
194
|
-
for (D = 0; D <
|
|
195
|
-
f(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
193
|
+
if (J(j)) {
|
|
194
|
+
for (D = 0; D < j.length; D++)
|
|
195
|
+
f(j[D]);
|
|
196
|
+
Object.freeze && Object.freeze(j);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else f(
|
|
201
|
+
else f(j);
|
|
202
202
|
if (Y.call(m, "key")) {
|
|
203
|
-
|
|
203
|
+
j = r(d);
|
|
204
204
|
var K = Object.keys(m).filter(function(re) {
|
|
205
205
|
return re !== "key";
|
|
206
206
|
});
|
|
207
|
-
D = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", k[
|
|
207
|
+
D = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", k[j + D] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -212,34 +212,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
D,
|
|
215
|
-
|
|
215
|
+
j,
|
|
216
216
|
K,
|
|
217
|
-
|
|
218
|
-
), k[
|
|
217
|
+
j
|
|
218
|
+
), k[j + D] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
220
|
+
if (j = null, S !== void 0 && (t(S), j = "" + S), o(m) && (t(m.key), j = "" + m.key), "key" in m) {
|
|
221
221
|
S = {};
|
|
222
222
|
for (var W in m)
|
|
223
223
|
W !== "key" && (S[W] = m[W]);
|
|
224
224
|
} else S = m;
|
|
225
|
-
return
|
|
225
|
+
return j && i(
|
|
226
226
|
S,
|
|
227
227
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
228
228
|
), c(
|
|
229
229
|
d,
|
|
230
|
-
|
|
230
|
+
j,
|
|
231
231
|
P,
|
|
232
232
|
T,
|
|
233
233
|
s(),
|
|
234
234
|
S,
|
|
235
|
-
|
|
235
|
+
I,
|
|
236
236
|
_
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
239
|
function f(d) {
|
|
240
240
|
typeof d == "object" && d !== null && d.$$typeof === g && d._store && (d._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var p = ar, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"),
|
|
242
|
+
var p = ar, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), N = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, J = Array.isArray, q = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
p = {
|
|
@@ -252,7 +252,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
a
|
|
253
253
|
)(), B = q(n(a)), k = {};
|
|
254
254
|
Pe.Fragment = y, Pe.jsx = function(d, m, S, D, T) {
|
|
255
|
-
var P = 1e4 >
|
|
255
|
+
var P = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
257
257
|
d,
|
|
258
258
|
m,
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
P ? q(n(d)) : B
|
|
265
265
|
);
|
|
266
266
|
}, Pe.jsxs = function(d, m, S, D, T) {
|
|
267
|
-
var P = 1e4 >
|
|
267
|
+
var P = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return u(
|
|
269
269
|
d,
|
|
270
270
|
m,
|
|
@@ -740,22 +740,22 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
740
740
|
path: [],
|
|
741
741
|
pattern: ["fill", "stroke"],
|
|
742
742
|
radialGradient: ["fill", "stroke"]
|
|
743
|
-
}, R, v, $,
|
|
743
|
+
}, R, v, $, L, V;
|
|
744
744
|
Object.keys(O).forEach(function(B) {
|
|
745
745
|
R = B, $ = O[B], v = f.querySelectorAll(R + "[id]");
|
|
746
746
|
for (var k = function(D, T) {
|
|
747
|
-
|
|
747
|
+
L = v[D].id, V = L + "-" + Hr();
|
|
748
748
|
var P;
|
|
749
749
|
Array.prototype.forEach.call($, function(M) {
|
|
750
|
-
P = f.querySelectorAll("[" + M + '*="' +
|
|
750
|
+
P = f.querySelectorAll("[" + M + '*="' + L + '"]');
|
|
751
751
|
for (var G = 0, ee = P.length; G < ee; G++) {
|
|
752
752
|
var te = P[G].getAttribute(M);
|
|
753
|
-
te && !te.match(new RegExp('url\\("?#' +
|
|
753
|
+
te && !te.match(new RegExp('url\\("?#' + L + '"?\\)')) || P[G].setAttribute(M, "url(#" + V + ")");
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
|
-
for (var
|
|
757
|
-
var W =
|
|
758
|
-
W && W.toString() === "#" + v[D].id && _.push(
|
|
756
|
+
for (var I = f.querySelectorAll("[*|href]"), _ = [], j = 0, K = I.length; j < K; j++) {
|
|
757
|
+
var W = I[j].getAttributeNS(tt, "href");
|
|
758
|
+
W && W.toString() === "#" + v[D].id && _.push(I[j]);
|
|
759
759
|
}
|
|
760
760
|
for (var re = 0, A = _.length; re < A; re++)
|
|
761
761
|
_[re].setAttributeNS(tt, "href", "#" + V);
|
|
@@ -765,8 +765,8 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
f.removeAttribute("xmlns:a");
|
|
768
|
-
for (var F = f.querySelectorAll("script"), C = [],
|
|
769
|
-
Y = F[J].getAttribute("type"), (!Y || Y === "application/ecmascript" || Y === "application/javascript" || Y === "text/javascript") && (
|
|
768
|
+
for (var F = f.querySelectorAll("script"), C = [], N, Y, J = 0, q = F.length; J < q; J++)
|
|
769
|
+
Y = F[J].getAttribute("type"), (!Y || Y === "application/ecmascript" || Y === "application/javascript" || Y === "text/javascript") && (N = F[J].innerText || F[J].textContent, N && C.push(N), f.removeChild(F[J]));
|
|
770
770
|
if (C.length > 0 && (t === "always" || t === "once" && !Ot[l])) {
|
|
771
771
|
for (var ne = 0, z = C.length; ne < z; ne++)
|
|
772
772
|
new Function(C[ne])(window);
|
|
@@ -918,7 +918,7 @@ function Gr() {
|
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
var v = l, $ = c,
|
|
921
|
+
var v = l, $ = c, L = i, V = o, F = e, C = u, N = n, Y = h, J = g, q = t, ne = a, z = s, U = f, B = !1;
|
|
922
922
|
function k(A) {
|
|
923
923
|
return B || (B = !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.")), d(A) || R(A) === l;
|
|
924
924
|
}
|
|
@@ -940,13 +940,13 @@ function Gr() {
|
|
|
940
940
|
function P(A) {
|
|
941
941
|
return R(A) === n;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function I(A) {
|
|
944
944
|
return R(A) === h;
|
|
945
945
|
}
|
|
946
946
|
function _(A) {
|
|
947
947
|
return R(A) === g;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function j(A) {
|
|
950
950
|
return R(A) === t;
|
|
951
951
|
}
|
|
952
952
|
function K(A) {
|
|
@@ -958,7 +958,7 @@ function Gr() {
|
|
|
958
958
|
function re(A) {
|
|
959
959
|
return R(A) === f;
|
|
960
960
|
}
|
|
961
|
-
Z.AsyncMode = v, Z.ConcurrentMode = $, Z.ContextConsumer =
|
|
961
|
+
Z.AsyncMode = v, Z.ConcurrentMode = $, Z.ContextConsumer = L, Z.ContextProvider = V, Z.Element = F, Z.ForwardRef = C, Z.Fragment = N, Z.Lazy = Y, Z.Memo = J, Z.Portal = q, Z.Profiler = ne, Z.StrictMode = z, Z.Suspense = U, Z.isAsyncMode = k, Z.isConcurrentMode = d, Z.isContextConsumer = m, Z.isContextProvider = S, Z.isElement = D, Z.isForwardRef = T, Z.isFragment = P, Z.isLazy = I, Z.isMemo = _, Z.isPortal = j, Z.isProfiler = K, Z.isStrictMode = W, Z.isSuspense = re, Z.isValidElementType = O, Z.typeOf = R;
|
|
962
962
|
}()), Z;
|
|
963
963
|
}
|
|
964
964
|
var At;
|
|
@@ -1116,7 +1116,7 @@ function Xr() {
|
|
|
1116
1116
|
instanceOf: $,
|
|
1117
1117
|
node: C(),
|
|
1118
1118
|
objectOf: V,
|
|
1119
|
-
oneOf:
|
|
1119
|
+
oneOf: L,
|
|
1120
1120
|
oneOfType: F,
|
|
1121
1121
|
shape: Y,
|
|
1122
1122
|
exact: J
|
|
@@ -1131,33 +1131,33 @@ function Xr() {
|
|
|
1131
1131
|
function w(d) {
|
|
1132
1132
|
if (process.env.NODE_ENV !== "production")
|
|
1133
1133
|
var m = {}, S = 0;
|
|
1134
|
-
function D(P,
|
|
1135
|
-
if (
|
|
1134
|
+
function D(P, I, _, j, K, W, re) {
|
|
1135
|
+
if (j = j || p, W = W || _, re !== t) {
|
|
1136
1136
|
if (l) {
|
|
1137
1137
|
var A = new Error(
|
|
1138
1138
|
"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"
|
|
1139
1139
|
);
|
|
1140
1140
|
throw A.name = "Invariant Violation", A;
|
|
1141
1141
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1142
|
-
var M =
|
|
1142
|
+
var M = j + ":" + _;
|
|
1143
1143
|
!m[M] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1144
1144
|
S < 3 && (a(
|
|
1145
|
-
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" +
|
|
1145
|
+
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + j + "`. 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."
|
|
1146
1146
|
), m[M] = !0, S++);
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
|
-
return
|
|
1149
|
+
return I[_] == null ? P ? I[_] === null ? new y("The " + K + " `" + W + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new y("The " + K + " `" + W + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : d(I, _, j, K, W);
|
|
1150
1150
|
}
|
|
1151
1151
|
var T = D.bind(null, !1);
|
|
1152
1152
|
return T.isRequired = D.bind(null, !0), T;
|
|
1153
1153
|
}
|
|
1154
1154
|
function E(d) {
|
|
1155
|
-
function m(S, D, T, P,
|
|
1156
|
-
var
|
|
1155
|
+
function m(S, D, T, P, I, _) {
|
|
1156
|
+
var j = S[D], K = z(j);
|
|
1157
1157
|
if (K !== d) {
|
|
1158
|
-
var W = U(
|
|
1158
|
+
var W = U(j);
|
|
1159
1159
|
return new y(
|
|
1160
|
-
"Invalid " + P + " `" +
|
|
1160
|
+
"Invalid " + P + " `" + I + "` of type " + ("`" + W + "` supplied to `" + T + "`, expected ") + ("`" + d + "`."),
|
|
1161
1161
|
{ expectedType: d }
|
|
1162
1162
|
);
|
|
1163
1163
|
}
|
|
@@ -1169,16 +1169,16 @@ function Xr() {
|
|
|
1169
1169
|
return w(o);
|
|
1170
1170
|
}
|
|
1171
1171
|
function O(d) {
|
|
1172
|
-
function m(S, D, T, P,
|
|
1172
|
+
function m(S, D, T, P, I) {
|
|
1173
1173
|
if (typeof d != "function")
|
|
1174
|
-
return new y("Property `" +
|
|
1174
|
+
return new y("Property `" + I + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
|
|
1175
1175
|
var _ = S[D];
|
|
1176
1176
|
if (!Array.isArray(_)) {
|
|
1177
|
-
var
|
|
1178
|
-
return new y("Invalid " + P + " `" +
|
|
1177
|
+
var j = z(_);
|
|
1178
|
+
return new y("Invalid " + P + " `" + I + "` of type " + ("`" + j + "` supplied to `" + T + "`, expected an array."));
|
|
1179
1179
|
}
|
|
1180
1180
|
for (var K = 0; K < _.length; K++) {
|
|
1181
|
-
var W = d(_, K, T, P,
|
|
1181
|
+
var W = d(_, K, T, P, I + "[" + K + "]", t);
|
|
1182
1182
|
if (W instanceof Error)
|
|
1183
1183
|
return W;
|
|
1184
1184
|
}
|
|
@@ -1188,9 +1188,9 @@ function Xr() {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
function R() {
|
|
1190
1190
|
function d(m, S, D, T, P) {
|
|
1191
|
-
var
|
|
1192
|
-
if (!i(
|
|
1193
|
-
var _ = z(
|
|
1191
|
+
var I = m[S];
|
|
1192
|
+
if (!i(I)) {
|
|
1193
|
+
var _ = z(I);
|
|
1194
1194
|
return new y("Invalid " + T + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
1195
1195
|
}
|
|
1196
1196
|
return null;
|
|
@@ -1199,9 +1199,9 @@ function Xr() {
|
|
|
1199
1199
|
}
|
|
1200
1200
|
function v() {
|
|
1201
1201
|
function d(m, S, D, T, P) {
|
|
1202
|
-
var
|
|
1203
|
-
if (!r.isValidElementType(
|
|
1204
|
-
var _ = z(
|
|
1202
|
+
var I = m[S];
|
|
1203
|
+
if (!r.isValidElementType(I)) {
|
|
1204
|
+
var _ = z(I);
|
|
1205
1205
|
return new y("Invalid " + T + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
1206
1206
|
}
|
|
1207
1207
|
return null;
|
|
@@ -1209,42 +1209,42 @@ function Xr() {
|
|
|
1209
1209
|
return w(d);
|
|
1210
1210
|
}
|
|
1211
1211
|
function $(d) {
|
|
1212
|
-
function m(S, D, T, P,
|
|
1212
|
+
function m(S, D, T, P, I) {
|
|
1213
1213
|
if (!(S[D] instanceof d)) {
|
|
1214
|
-
var _ = d.name || p,
|
|
1215
|
-
return new y("Invalid " + P + " `" +
|
|
1214
|
+
var _ = d.name || p, j = k(S[D]);
|
|
1215
|
+
return new y("Invalid " + P + " `" + I + "` of type " + ("`" + j + "` supplied to `" + T + "`, expected ") + ("instance of `" + _ + "`."));
|
|
1216
1216
|
}
|
|
1217
1217
|
return null;
|
|
1218
1218
|
}
|
|
1219
1219
|
return w(m);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function L(d) {
|
|
1222
1222
|
if (!Array.isArray(d))
|
|
1223
1223
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1224
1224
|
"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])."
|
|
1225
1225
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1226
|
-
function m(S, D, T, P,
|
|
1227
|
-
for (var _ = S[D],
|
|
1228
|
-
if (h(_, d[
|
|
1226
|
+
function m(S, D, T, P, I) {
|
|
1227
|
+
for (var _ = S[D], j = 0; j < d.length; j++)
|
|
1228
|
+
if (h(_, d[j]))
|
|
1229
1229
|
return null;
|
|
1230
1230
|
var K = JSON.stringify(d, function(re, A) {
|
|
1231
1231
|
var M = U(A);
|
|
1232
1232
|
return M === "symbol" ? String(A) : A;
|
|
1233
1233
|
});
|
|
1234
|
-
return new y("Invalid " + P + " `" +
|
|
1234
|
+
return new y("Invalid " + P + " `" + I + "` of value `" + String(_) + "` " + ("supplied to `" + T + "`, expected one of " + K + "."));
|
|
1235
1235
|
}
|
|
1236
1236
|
return w(m);
|
|
1237
1237
|
}
|
|
1238
1238
|
function V(d) {
|
|
1239
|
-
function m(S, D, T, P,
|
|
1239
|
+
function m(S, D, T, P, I) {
|
|
1240
1240
|
if (typeof d != "function")
|
|
1241
|
-
return new y("Property `" +
|
|
1242
|
-
var _ = S[D],
|
|
1243
|
-
if (
|
|
1244
|
-
return new y("Invalid " + P + " `" +
|
|
1241
|
+
return new y("Property `" + I + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
|
|
1242
|
+
var _ = S[D], j = z(_);
|
|
1243
|
+
if (j !== "object")
|
|
1244
|
+
return new y("Invalid " + P + " `" + I + "` of type " + ("`" + j + "` supplied to `" + T + "`, expected an object."));
|
|
1245
1245
|
for (var K in _)
|
|
1246
1246
|
if (n(_, K)) {
|
|
1247
|
-
var W = d(_, K, T, P,
|
|
1247
|
+
var W = d(_, K, T, P, I + "." + K, t);
|
|
1248
1248
|
if (W instanceof Error)
|
|
1249
1249
|
return W;
|
|
1250
1250
|
}
|
|
@@ -1262,15 +1262,15 @@ function Xr() {
|
|
|
1262
1262
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(S) + " at index " + m + "."
|
|
1263
1263
|
), o;
|
|
1264
1264
|
}
|
|
1265
|
-
function D(T, P,
|
|
1265
|
+
function D(T, P, I, _, j) {
|
|
1266
1266
|
for (var K = [], W = 0; W < d.length; W++) {
|
|
1267
|
-
var re = d[W], A = re(T, P,
|
|
1267
|
+
var re = d[W], A = re(T, P, I, _, j, t);
|
|
1268
1268
|
if (A == null)
|
|
1269
1269
|
return null;
|
|
1270
1270
|
A.data && n(A.data, "expectedType") && K.push(A.data.expectedType);
|
|
1271
1271
|
}
|
|
1272
1272
|
var M = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
|
|
1273
|
-
return new y("Invalid " + _ + " `" +
|
|
1273
|
+
return new y("Invalid " + _ + " `" + j + "` supplied to " + ("`" + I + "`" + M + "."));
|
|
1274
1274
|
}
|
|
1275
1275
|
return w(D);
|
|
1276
1276
|
}
|
|
@@ -1280,21 +1280,21 @@ function Xr() {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
return w(d);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function N(d, m, S, D, T) {
|
|
1284
1284
|
return new y(
|
|
1285
1285
|
(d || "React class") + ": " + m + " type `" + S + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
|
|
1286
1286
|
);
|
|
1287
1287
|
}
|
|
1288
1288
|
function Y(d) {
|
|
1289
|
-
function m(S, D, T, P,
|
|
1290
|
-
var _ = S[D],
|
|
1291
|
-
if (
|
|
1292
|
-
return new y("Invalid " + P + " `" +
|
|
1289
|
+
function m(S, D, T, P, I) {
|
|
1290
|
+
var _ = S[D], j = z(_);
|
|
1291
|
+
if (j !== "object")
|
|
1292
|
+
return new y("Invalid " + P + " `" + I + "` of type `" + j + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
1293
1293
|
for (var K in d) {
|
|
1294
1294
|
var W = d[K];
|
|
1295
1295
|
if (typeof W != "function")
|
|
1296
|
-
return
|
|
1297
|
-
var re = W(_, K, T, P,
|
|
1296
|
+
return N(T, P, I, K, U(W));
|
|
1297
|
+
var re = W(_, K, T, P, I + "." + K, t);
|
|
1298
1298
|
if (re)
|
|
1299
1299
|
return re;
|
|
1300
1300
|
}
|
|
@@ -1303,21 +1303,21 @@ function Xr() {
|
|
|
1303
1303
|
return w(m);
|
|
1304
1304
|
}
|
|
1305
1305
|
function J(d) {
|
|
1306
|
-
function m(S, D, T, P,
|
|
1307
|
-
var _ = S[D],
|
|
1308
|
-
if (
|
|
1309
|
-
return new y("Invalid " + P + " `" +
|
|
1306
|
+
function m(S, D, T, P, I) {
|
|
1307
|
+
var _ = S[D], j = z(_);
|
|
1308
|
+
if (j !== "object")
|
|
1309
|
+
return new y("Invalid " + P + " `" + I + "` of type `" + j + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
1310
1310
|
var K = e({}, S[D], d);
|
|
1311
1311
|
for (var W in K) {
|
|
1312
1312
|
var re = d[W];
|
|
1313
1313
|
if (n(d, W) && typeof re != "function")
|
|
1314
|
-
return
|
|
1314
|
+
return N(T, P, I, W, U(re));
|
|
1315
1315
|
if (!re)
|
|
1316
1316
|
return new y(
|
|
1317
|
-
"Invalid " + P + " `" +
|
|
1317
|
+
"Invalid " + P + " `" + I + "` key `" + W + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(S[D], null, " ") + `
|
|
1318
1318
|
Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
1319
1319
|
);
|
|
1320
|
-
var A = re(_, W, T, P,
|
|
1320
|
+
var A = re(_, W, T, P, I + "." + W, t);
|
|
1321
1321
|
if (A)
|
|
1322
1322
|
return A;
|
|
1323
1323
|
}
|
|
@@ -1484,9 +1484,9 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1484
1484
|
if (this.reactWrapper instanceof en(this.reactWrapper).Node) {
|
|
1485
1485
|
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, f = a.title, p = a.useRequestCache, g = this.props.onError, h = this.props.beforeInjection, y = this.props.afterInjection, w = this.props.wrapper, E, b;
|
|
1486
1486
|
w === "svg" ? (E = document.createElementNS(Ve, w), E.setAttribute("xmlns", Ve), E.setAttribute("xmlns:xlink", _t), b = document.createElementNS(Ve, w)) : (E = document.createElement(w), b = document.createElement(w)), E.appendChild(b), b.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1487
|
-
var O = function(
|
|
1487
|
+
var O = function(L) {
|
|
1488
1488
|
if (s.removeSVG(), !s._isMounted) {
|
|
1489
|
-
g(
|
|
1489
|
+
g(L);
|
|
1490
1490
|
return;
|
|
1491
1491
|
}
|
|
1492
1492
|
s.setState(function() {
|
|
@@ -1495,11 +1495,11 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1495
1495
|
isLoading: !1
|
|
1496
1496
|
};
|
|
1497
1497
|
}, function() {
|
|
1498
|
-
g(
|
|
1498
|
+
g(L);
|
|
1499
1499
|
});
|
|
1500
|
-
}, R = function(
|
|
1501
|
-
if (
|
|
1502
|
-
O(
|
|
1500
|
+
}, R = function(L, V) {
|
|
1501
|
+
if (L) {
|
|
1502
|
+
O(L);
|
|
1503
1503
|
return;
|
|
1504
1504
|
}
|
|
1505
1505
|
s._isMounted && s.setState(function() {
|
|
@@ -1513,21 +1513,21 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1513
1513
|
O(F);
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
|
-
}, v = function(
|
|
1517
|
-
if (
|
|
1518
|
-
var V =
|
|
1519
|
-
V &&
|
|
1516
|
+
}, v = function(L) {
|
|
1517
|
+
if (L.setAttribute("role", "img"), o) {
|
|
1518
|
+
var V = L.querySelector(":scope > desc");
|
|
1519
|
+
V && L.removeChild(V);
|
|
1520
1520
|
var F = document.createElement("desc");
|
|
1521
|
-
F.innerHTML = o,
|
|
1521
|
+
F.innerHTML = o, L.prepend(F);
|
|
1522
1522
|
}
|
|
1523
1523
|
if (f) {
|
|
1524
|
-
var C =
|
|
1525
|
-
C &&
|
|
1526
|
-
var
|
|
1527
|
-
|
|
1524
|
+
var C = L.querySelector(":scope > title");
|
|
1525
|
+
C && L.removeChild(C);
|
|
1526
|
+
var N = document.createElement("title");
|
|
1527
|
+
N.innerHTML = f, L.prepend(N);
|
|
1528
1528
|
}
|
|
1529
1529
|
try {
|
|
1530
|
-
h(
|
|
1530
|
+
h(L);
|
|
1531
1531
|
} catch (Y) {
|
|
1532
1532
|
O(Y);
|
|
1533
1533
|
}
|
|
@@ -1705,18 +1705,19 @@ const Qn = (r) => {
|
|
|
1705
1705
|
helperText: O = !1,
|
|
1706
1706
|
error: R,
|
|
1707
1707
|
appearance: v = "base",
|
|
1708
|
-
fullWidth: $ = !1
|
|
1708
|
+
fullWidth: $ = !1,
|
|
1709
|
+
_dataComponent: L = "textfield"
|
|
1709
1710
|
}) => {
|
|
1710
|
-
const
|
|
1711
|
-
a == null || a(
|
|
1712
|
-
},
|
|
1711
|
+
const V = R ? "danger" : c, F = R || c == "danger" ? "error" : i, C = O || !!R, N = (J) => {
|
|
1712
|
+
a == null || a(J.target.value);
|
|
1713
|
+
}, Y = {
|
|
1713
1714
|
wrapper: `smp-textfield-wrapper ${$ ? "smp-textfield-fullWidth" : ""}`,
|
|
1714
|
-
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${e ? "smp-textfield-readOnly" : ""} ${o ? "smp-textfield-placeholder" : ""} ${l ? `smp-textfield-${l}` : ""} ${
|
|
1715
|
+
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${e ? "smp-textfield-readOnly" : ""} ${o ? "smp-textfield-placeholder" : ""} ${l ? `smp-textfield-${l}` : ""} ${V ? `smp-textfield-${V}` : ""} ${u ? `smp-textfield-variant-${u}` : ""} ${v ? `smp-textfield-${v}` : ""}`,
|
|
1715
1716
|
input: "smp-textfield-input "
|
|
1716
1717
|
};
|
|
1717
|
-
return /* @__PURE__ */ x.jsxs("div", { className:
|
|
1718
|
+
return /* @__PURE__ */ x.jsxs("div", { className: Y.wrapper, "data-component": L, children: [
|
|
1718
1719
|
b && /* @__PURE__ */ x.jsx(ir, { label: b, disabled: r }),
|
|
1719
|
-
/* @__PURE__ */ x.jsxs("div", { className:
|
|
1720
|
+
/* @__PURE__ */ x.jsxs("div", { className: Y.container, ref: g, children: [
|
|
1720
1721
|
n && /* @__PURE__ */ x.jsx(ge, { icon: n, disabled: r }),
|
|
1721
1722
|
/* @__PURE__ */ x.jsx(
|
|
1722
1723
|
"input",
|
|
@@ -1724,9 +1725,9 @@ const Qn = (r) => {
|
|
|
1724
1725
|
type: w,
|
|
1725
1726
|
value: t,
|
|
1726
1727
|
placeholder: o,
|
|
1727
|
-
onChange:
|
|
1728
|
+
onChange: N,
|
|
1728
1729
|
onBlur: s,
|
|
1729
|
-
className:
|
|
1730
|
+
className: Y.input,
|
|
1730
1731
|
disabled: r,
|
|
1731
1732
|
readOnly: e,
|
|
1732
1733
|
onKeyDown: y,
|
|
@@ -1734,23 +1735,23 @@ const Qn = (r) => {
|
|
|
1734
1735
|
ref: h
|
|
1735
1736
|
}
|
|
1736
1737
|
),
|
|
1737
|
-
|
|
1738
|
+
F && /* @__PURE__ */ x.jsx(
|
|
1738
1739
|
ge,
|
|
1739
1740
|
{
|
|
1740
|
-
icon:
|
|
1741
|
+
icon: F,
|
|
1741
1742
|
disabled: r,
|
|
1742
|
-
state:
|
|
1743
|
+
state: V,
|
|
1743
1744
|
onClick: p,
|
|
1744
1745
|
rotated: f
|
|
1745
1746
|
}
|
|
1746
1747
|
)
|
|
1747
1748
|
] }),
|
|
1748
|
-
|
|
1749
|
+
C && /* @__PURE__ */ x.jsx(
|
|
1749
1750
|
Ir,
|
|
1750
1751
|
{
|
|
1751
1752
|
helperText: R,
|
|
1752
1753
|
disabled: r,
|
|
1753
|
-
state:
|
|
1754
|
+
state: V
|
|
1754
1755
|
}
|
|
1755
1756
|
)
|
|
1756
1757
|
] });
|
|
@@ -1826,9 +1827,9 @@ const sn = 10, fr = ({
|
|
|
1826
1827
|
const [u, f] = Q(""), p = 24, [g, h] = Q(
|
|
1827
1828
|
a !== null ? a : -1
|
|
1828
1829
|
), y = s !== void 0 ? s : e.length > sn, w = u ? e.filter(
|
|
1829
|
-
(
|
|
1830
|
-
) : e, E = (
|
|
1831
|
-
f(
|
|
1830
|
+
(N) => N.label.toLowerCase().includes(u.toLowerCase())
|
|
1831
|
+
) : e, E = (N) => {
|
|
1832
|
+
f(N);
|
|
1832
1833
|
}, { virtualItems: b, containerProps: O, innerProps: R, scrollToIndex: v } = nn({
|
|
1833
1834
|
items: w,
|
|
1834
1835
|
itemHeight: p,
|
|
@@ -1840,17 +1841,17 @@ const sn = 10, fr = ({
|
|
|
1840
1841
|
}, [a]), oe(() => {
|
|
1841
1842
|
g >= 0 && g < w.length && v(g);
|
|
1842
1843
|
}, [g, w]);
|
|
1843
|
-
const $ = (
|
|
1844
|
-
if (
|
|
1845
|
-
|
|
1844
|
+
const $ = (N) => {
|
|
1845
|
+
if (N.key === "ArrowDown" || N.key === "ArrowUp") {
|
|
1846
|
+
N.preventDefault();
|
|
1846
1847
|
let Y = g;
|
|
1847
|
-
|
|
1848
|
-
} else
|
|
1849
|
-
c && c(
|
|
1850
|
-
},
|
|
1851
|
-
$(
|
|
1852
|
-
}, V = (
|
|
1853
|
-
$(
|
|
1848
|
+
N.key === "ArrowDown" ? Y = g < w.length - 1 ? g + 1 : 0 : N.key === "ArrowUp" && (Y = g > 0 ? g - 1 : w.length - 1), h(Y);
|
|
1849
|
+
} else N.key === "Enter" ? g >= 0 && g < w.length && (l == null || l(w[g])) : N.key === "Escape" && (N.preventDefault(), N.stopPropagation());
|
|
1850
|
+
c && c(N);
|
|
1851
|
+
}, L = (N) => {
|
|
1852
|
+
$(N);
|
|
1853
|
+
}, V = (N) => {
|
|
1854
|
+
$(N);
|
|
1854
1855
|
}, F = {
|
|
1855
1856
|
wrapper: "smp-list",
|
|
1856
1857
|
container: "smp-list-container",
|
|
@@ -1874,7 +1875,7 @@ const sn = 10, fr = ({
|
|
|
1874
1875
|
bindValue: u,
|
|
1875
1876
|
placeholder: "Search...",
|
|
1876
1877
|
onChange: E,
|
|
1877
|
-
onKeyDown:
|
|
1878
|
+
onKeyDown: L
|
|
1878
1879
|
}
|
|
1879
1880
|
),
|
|
1880
1881
|
/* @__PURE__ */ x.jsx(
|
|
@@ -1887,19 +1888,19 @@ const sn = 10, fr = ({
|
|
|
1887
1888
|
"aria-label": "List",
|
|
1888
1889
|
onKeyDown: V,
|
|
1889
1890
|
"aria-activedescendant": g >= 0 && g < w.length ? (C = w[g]) == null ? void 0 : C.id : void 0,
|
|
1890
|
-
children: /* @__PURE__ */ x.jsx("div", { ...R, className: F.virtualScroll, children: b.map(({ item:
|
|
1891
|
-
const q = o.includes(
|
|
1891
|
+
children: /* @__PURE__ */ x.jsx("div", { ...R, className: F.virtualScroll, children: b.map(({ item: N, index: Y, offsetTop: J }) => {
|
|
1892
|
+
const q = o.includes(N.id);
|
|
1892
1893
|
return (
|
|
1893
1894
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
1894
1895
|
/* @__PURE__ */ x.jsxs(
|
|
1895
1896
|
"li",
|
|
1896
1897
|
{
|
|
1897
1898
|
role: "option",
|
|
1898
|
-
id:
|
|
1899
|
+
id: N.id,
|
|
1899
1900
|
"aria-selected": g === Y ? "true" : "false",
|
|
1900
1901
|
tabIndex: -1,
|
|
1901
1902
|
className: `${F.listItem} ${g === Y ? "selected-item" : ""}`,
|
|
1902
|
-
"aria-label":
|
|
1903
|
+
"aria-label": N.id + "-" + N.label,
|
|
1903
1904
|
style: {
|
|
1904
1905
|
height: `${p}px`,
|
|
1905
1906
|
lineHeight: `calc(${p}px - 2*2px)`,
|
|
@@ -1907,14 +1908,14 @@ const sn = 10, fr = ({
|
|
|
1907
1908
|
transform: `translateY(${J}px)`
|
|
1908
1909
|
},
|
|
1909
1910
|
onClick: () => {
|
|
1910
|
-
l == null || l(
|
|
1911
|
+
l == null || l(N), h(Y);
|
|
1911
1912
|
},
|
|
1912
1913
|
children: [
|
|
1913
|
-
Ke(
|
|
1914
|
+
Ke(N.id, N.label, t),
|
|
1914
1915
|
q && /* @__PURE__ */ x.jsx(ge, { icon: "check", width: 16 })
|
|
1915
1916
|
]
|
|
1916
1917
|
},
|
|
1917
|
-
|
|
1918
|
+
N.id
|
|
1918
1919
|
)
|
|
1919
1920
|
);
|
|
1920
1921
|
}) })
|
|
@@ -1963,7 +1964,7 @@ const sn = 10, fr = ({
|
|
|
1963
1964
|
_multiActiveIndex: f,
|
|
1964
1965
|
...p
|
|
1965
1966
|
}) => {
|
|
1966
|
-
const [g, h] = Q(r), [y, w] = Q(e), [E, b] = Q(!1), [O, R] = Q(t || []), [v, $] = Q(0), [
|
|
1967
|
+
const [g, h] = Q(r), [y, w] = Q(e), [E, b] = Q(!1), [O, R] = Q(t || []), [v, $] = Q(0), [L, V] = Q([r]), { anchorRef: F, targetRef: C, anchorWidth: N } = gt({
|
|
1967
1968
|
position: "bottom",
|
|
1968
1969
|
enabled: E
|
|
1969
1970
|
});
|
|
@@ -2017,8 +2018,8 @@ const sn = 10, fr = ({
|
|
|
2017
2018
|
onClick: q,
|
|
2018
2019
|
ref: C,
|
|
2019
2020
|
selectedIndex: v,
|
|
2020
|
-
activeIndex: f ||
|
|
2021
|
-
width:
|
|
2021
|
+
activeIndex: f || L,
|
|
2022
|
+
width: N,
|
|
2022
2023
|
showFilter: !1,
|
|
2023
2024
|
onKeyDown: ne
|
|
2024
2025
|
}
|
|
@@ -2231,9 +2232,9 @@ const un = ({
|
|
|
2231
2232
|
qe(R, () => f(!1)), gr(u, R);
|
|
2232
2233
|
const $ = (C) => {
|
|
2233
2234
|
e == null || e(C.id, C.label);
|
|
2234
|
-
const
|
|
2235
|
-
y(
|
|
2236
|
-
},
|
|
2235
|
+
const N = p.findIndex((Y) => Y.id === C.id);
|
|
2236
|
+
y(N), E([C.id]), f(!1);
|
|
2237
|
+
}, L = (C) => {
|
|
2237
2238
|
C.key === "Escape" && (f(!1), y(-1));
|
|
2238
2239
|
}, V = (C) => {
|
|
2239
2240
|
(C.key === "ArrowDown" || C.key === "ArrowUp") && (C.preventDefault(), F());
|
|
@@ -2279,7 +2280,7 @@ const un = ({
|
|
|
2279
2280
|
activeIndex: l || w,
|
|
2280
2281
|
width: v,
|
|
2281
2282
|
onClick: $,
|
|
2282
|
-
onKeyDown:
|
|
2283
|
+
onKeyDown: L
|
|
2283
2284
|
}
|
|
2284
2285
|
)
|
|
2285
2286
|
]
|
|
@@ -2626,13 +2627,13 @@ class Xe extends Ze {
|
|
|
2626
2627
|
} : i;
|
|
2627
2628
|
const g = this.resolve(e, s);
|
|
2628
2629
|
let h = g == null ? void 0 : g.res;
|
|
2629
|
-
const y = (g == null ? void 0 : g.usedKey) || i, w = (g == null ? void 0 : g.exactUsedKey) || i, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, R = s.count !== void 0 && !H(s.count), v = Xe.hasDefaultValue(s), $ = R ? this.pluralResolver.getSuffix(f, s.count, s) : "",
|
|
2630
|
+
const y = (g == null ? void 0 : g.usedKey) || i, w = (g == null ? void 0 : g.exactUsedKey) || i, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, R = s.count !== void 0 && !H(s.count), v = Xe.hasDefaultValue(s), $ = R ? this.pluralResolver.getSuffix(f, s.count, s) : "", L = s.ordinal && R ? this.pluralResolver.getSuffix(f, s.count, {
|
|
2630
2631
|
ordinal: !1
|
|
2631
|
-
}) : "", V = R && !s.ordinal && s.count === 0, F = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${$}`] || s[`defaultValue${
|
|
2632
|
+
}) : "", V = R && !s.ordinal && s.count === 0, F = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${$}`] || s[`defaultValue${L}`] || s.defaultValue;
|
|
2632
2633
|
let C = h;
|
|
2633
2634
|
O && !h && v && (C = F);
|
|
2634
|
-
const
|
|
2635
|
-
if (O && C &&
|
|
2635
|
+
const N = Bt(C), Y = Object.prototype.toString.apply(C);
|
|
2636
|
+
if (O && C && N && E.indexOf(Y) < 0 && !(H(b) && Array.isArray(C))) {
|
|
2636
2637
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2637
2638
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2638
2639
|
const J = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, C, {
|
|
@@ -2756,12 +2757,12 @@ class Xe extends Ze {
|
|
|
2756
2757
|
if (($ = this.i18nFormat) != null && $.addLookupKeys)
|
|
2757
2758
|
this.i18nFormat.addLookupKeys(R, u, O, w, t);
|
|
2758
2759
|
else {
|
|
2759
|
-
let
|
|
2760
|
-
p && (
|
|
2760
|
+
let L;
|
|
2761
|
+
p && (L = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2761
2762
|
const V = `${this.options.pluralSeparator}zero`, F = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2762
|
-
if (p && (R.push(u +
|
|
2763
|
+
if (p && (R.push(u + L), t.ordinal && L.indexOf(F) === 0 && R.push(u + L.replace(F, this.options.pluralSeparator)), g && R.push(u + V)), h) {
|
|
2763
2764
|
const C = `${u}${this.options.contextSeparator}${t.context}`;
|
|
2764
|
-
R.push(C), p && (R.push(C +
|
|
2765
|
+
R.push(C), p && (R.push(C + L), t.ordinal && L.indexOf(F) === 0 && R.push(C + L.replace(F, this.options.pluralSeparator)), g && R.push(C + V));
|
|
2765
2766
|
}
|
|
2766
2767
|
}
|
|
2767
2768
|
let v;
|
|
@@ -3776,7 +3777,7 @@ function Hn({
|
|
|
3776
3777
|
R(k) || (c(k), y(k.getDate()), e && e(kr(k)));
|
|
3777
3778
|
}, $ = () => {
|
|
3778
3779
|
u === 0 ? (f(11), g(p - 1)) : f(u - 1), y(1);
|
|
3779
|
-
},
|
|
3780
|
+
}, L = () => {
|
|
3780
3781
|
u === 11 ? (f(0), g(p + 1)) : f(u + 1), y(1);
|
|
3781
3782
|
}, V = (k, d) => new Date(k, d + 1, 0).getDate(), F = (k, d) => new Date(k, d, 1).getDay(), C = (k) => {
|
|
3782
3783
|
var m;
|
|
@@ -3784,7 +3785,7 @@ function Hn({
|
|
|
3784
3785
|
(S) => S !== null && S.getDate() === k
|
|
3785
3786
|
);
|
|
3786
3787
|
d !== -1 && E.current[d] && ((m = E.current[d]) == null || m.focus(), y(k));
|
|
3787
|
-
},
|
|
3788
|
+
}, N = (k, d) => {
|
|
3788
3789
|
const m = q[d];
|
|
3789
3790
|
if (!m) return;
|
|
3790
3791
|
const S = V(p, u), D = m.getDate();
|
|
@@ -3794,8 +3795,8 @@ function Hn({
|
|
|
3794
3795
|
{
|
|
3795
3796
|
let T = D + 1, P = new Date(p, u, T);
|
|
3796
3797
|
if (T > S) {
|
|
3797
|
-
const
|
|
3798
|
-
T = 1, P = new Date(
|
|
3798
|
+
const I = u === 11 ? p + 1 : p, _ = u === 11 ? 0 : u + 1;
|
|
3799
|
+
T = 1, P = new Date(I, _, T), L(), setTimeout(() => {
|
|
3799
3800
|
Y(1, "forward");
|
|
3800
3801
|
}, 0);
|
|
3801
3802
|
return;
|
|
@@ -3810,9 +3811,9 @@ function Hn({
|
|
|
3810
3811
|
{
|
|
3811
3812
|
let T = D - 1, P = new Date(p, u, T);
|
|
3812
3813
|
if (T < 1) {
|
|
3813
|
-
const
|
|
3814
|
-
T =
|
|
3815
|
-
Y(
|
|
3814
|
+
const I = u === 0 ? p - 1 : p, _ = u === 0 ? 11 : u - 1, j = V(I, _);
|
|
3815
|
+
T = j, P = new Date(I, _, T), $(), setTimeout(() => {
|
|
3816
|
+
Y(j, "backward");
|
|
3816
3817
|
}, 0);
|
|
3817
3818
|
return;
|
|
3818
3819
|
}
|
|
@@ -3824,8 +3825,8 @@ function Hn({
|
|
|
3824
3825
|
{
|
|
3825
3826
|
let T = D - 7, P = new Date(p, u, T);
|
|
3826
3827
|
if (T < 1) {
|
|
3827
|
-
const
|
|
3828
|
-
T = V(
|
|
3828
|
+
const I = u === 0 ? p - 1 : p, _ = u === 0 ? 11 : u - 1;
|
|
3829
|
+
T = V(I, _) + T, P = new Date(I, _, T), $(), setTimeout(() => {
|
|
3829
3830
|
Y(T, "backward");
|
|
3830
3831
|
}, 0);
|
|
3831
3832
|
return;
|
|
@@ -3838,8 +3839,8 @@ function Hn({
|
|
|
3838
3839
|
{
|
|
3839
3840
|
let T = D + 7, P = new Date(p, u, T);
|
|
3840
3841
|
if (T > S) {
|
|
3841
|
-
const
|
|
3842
|
-
T = T - S, P = new Date(
|
|
3842
|
+
const I = u === 11 ? p + 1 : p, _ = u === 11 ? 0 : u + 1;
|
|
3843
|
+
T = T - S, P = new Date(I, _, T), L(), setTimeout(() => {
|
|
3843
3844
|
Y(T, "forward");
|
|
3844
3845
|
}, 0);
|
|
3845
3846
|
return;
|
|
@@ -3863,7 +3864,7 @@ function Hn({
|
|
|
3863
3864
|
}, 0);
|
|
3864
3865
|
break;
|
|
3865
3866
|
case "PageDown":
|
|
3866
|
-
k.preventDefault(),
|
|
3867
|
+
k.preventDefault(), L(), setTimeout(() => {
|
|
3867
3868
|
const T = V(
|
|
3868
3869
|
u === 11 ? p + 1 : p,
|
|
3869
3870
|
u === 11 ? 0 : u + 1
|
|
@@ -3890,13 +3891,13 @@ function Hn({
|
|
|
3890
3891
|
return;
|
|
3891
3892
|
}
|
|
3892
3893
|
}
|
|
3893
|
-
|
|
3894
|
+
L(), setTimeout(() => {
|
|
3894
3895
|
Y(1, "forward");
|
|
3895
3896
|
}, 0);
|
|
3896
3897
|
} else {
|
|
3897
3898
|
for (let P = k; P >= 1; P--) {
|
|
3898
|
-
const
|
|
3899
|
-
if (!R(
|
|
3899
|
+
const I = new Date(p, u, P);
|
|
3900
|
+
if (!R(I)) {
|
|
3900
3901
|
C(P);
|
|
3901
3902
|
return;
|
|
3902
3903
|
}
|
|
@@ -3985,7 +3986,7 @@ function Hn({
|
|
|
3985
3986
|
/* @__PURE__ */ x.jsx(
|
|
3986
3987
|
Ge,
|
|
3987
3988
|
{
|
|
3988
|
-
onClick:
|
|
3989
|
+
onClick: L,
|
|
3989
3990
|
ariaLabel: a(pt.NEXT_MONTH),
|
|
3990
3991
|
bindValue: ">",
|
|
3991
3992
|
appearance: "ghost",
|
|
@@ -4028,25 +4029,25 @@ function Hn({
|
|
|
4028
4029
|
},
|
|
4029
4030
|
`empty-${S}`
|
|
4030
4031
|
);
|
|
4031
|
-
const T = m.getDate() === i.getDate() && m.getMonth() === i.getMonth() && m.getFullYear() === i.getFullYear(), P = l && m.getDate() === l.getDate() && m.getMonth() === l.getMonth() && m.getFullYear() === l.getFullYear(),
|
|
4032
|
+
const T = m.getDate() === i.getDate() && m.getMonth() === i.getMonth() && m.getFullYear() === i.getFullYear(), P = l && m.getDate() === l.getDate() && m.getMonth() === l.getMonth() && m.getFullYear() === l.getFullYear(), I = h === m.getDate(), _ = R(m);
|
|
4032
4033
|
return /* @__PURE__ */ x.jsx(
|
|
4033
4034
|
"td",
|
|
4034
4035
|
{
|
|
4035
4036
|
role: "gridcell",
|
|
4036
4037
|
"aria-selected": P,
|
|
4037
|
-
tabIndex:
|
|
4038
|
+
tabIndex: I ? 0 : -1,
|
|
4038
4039
|
onClick: () => v(m),
|
|
4039
|
-
onKeyDown: (
|
|
4040
|
+
onKeyDown: (j) => N(j, D),
|
|
4040
4041
|
"aria-label": `${m.getDate()} ${b[m.getMonth()]} ${m.getFullYear()}`,
|
|
4041
4042
|
"data-selected": P,
|
|
4042
4043
|
"aria-disabled": _,
|
|
4043
|
-
ref: (
|
|
4044
|
-
E.current[D] =
|
|
4044
|
+
ref: (j) => {
|
|
4045
|
+
E.current[D] = j;
|
|
4045
4046
|
},
|
|
4046
4047
|
className: U.td(
|
|
4047
4048
|
T,
|
|
4048
4049
|
P,
|
|
4049
|
-
|
|
4050
|
+
I,
|
|
4050
4051
|
_
|
|
4051
4052
|
),
|
|
4052
4053
|
children: m.getDate()
|
|
@@ -4085,29 +4086,29 @@ const qn = ({
|
|
|
4085
4086
|
}), gr(a, p);
|
|
4086
4087
|
const { format: g, getCurrentLanguage: h } = Qe(), y = me(
|
|
4087
4088
|
($) => {
|
|
4088
|
-
const
|
|
4089
|
+
const L = $.length > 5 && Cr($, h()) || $, V = g(L, void 0, void 0, {
|
|
4089
4090
|
type: "date"
|
|
4090
|
-
}), F = typeof
|
|
4091
|
+
}), F = typeof L != "string", C = F && L.toISOString().substring(0, 10) || "";
|
|
4091
4092
|
return {
|
|
4092
4093
|
isValid: F,
|
|
4093
4094
|
formattedDate: V,
|
|
4094
4095
|
isoDate: C,
|
|
4095
|
-
normalizedDate:
|
|
4096
|
+
normalizedDate: L
|
|
4096
4097
|
};
|
|
4097
4098
|
},
|
|
4098
4099
|
[h, g]
|
|
4099
4100
|
);
|
|
4100
4101
|
oe(() => {
|
|
4101
|
-
const { formattedDate: $, isoDate:
|
|
4102
|
-
l(V &&
|
|
4102
|
+
const { formattedDate: $, isoDate: L, isValid: V } = y(r);
|
|
4103
|
+
l(V && L || r), u(V && $ || r);
|
|
4103
4104
|
}, [r, g, y]);
|
|
4104
4105
|
const w = () => o(($) => !$), E = () => {
|
|
4105
4106
|
O(c);
|
|
4106
4107
|
}, b = ($) => {
|
|
4107
4108
|
O($), o(!1);
|
|
4108
4109
|
}, O = ($) => {
|
|
4109
|
-
const { isoDate:
|
|
4110
|
-
t && t(V &&
|
|
4110
|
+
const { isoDate: L, isValid: V } = y($);
|
|
4111
|
+
t && t(V && L || $);
|
|
4111
4112
|
}, R = ($) => {
|
|
4112
4113
|
u($);
|
|
4113
4114
|
}, v = ($) => {
|
|
@@ -4228,7 +4229,7 @@ const qn = ({
|
|
|
4228
4229
|
onChange: t,
|
|
4229
4230
|
onKeyDown: s,
|
|
4230
4231
|
ariaLabel: "search bar",
|
|
4231
|
-
|
|
4232
|
+
_dataComponent: "search-bar"
|
|
4232
4233
|
}
|
|
4233
4234
|
);
|
|
4234
4235
|
};
|
|
@@ -4606,9 +4607,9 @@ const Ue = (r, e, t) => ({
|
|
|
4606
4607
|
SelectLayout: b = "1",
|
|
4607
4608
|
onClick: O
|
|
4608
4609
|
}) => {
|
|
4609
|
-
const R = "N/A", v = (e == null ? void 0 : e.columns) || [], $ = (e == null ? void 0 : e.rows) || [],
|
|
4610
|
+
const R = "N/A", v = (e == null ? void 0 : e.columns) || [], $ = (e == null ? void 0 : e.rows) || [], L = $.length > 0, V = "--smp-dashList-color", F = "smp-layout", C = "descr", N = "icon", Y = "um", J = "value", q = o || "1em", ne = "18px", z = "--smp-dashList-columns", U = "--smp-dashList-fontSize", B = {
|
|
4610
4611
|
dash: (M = "1") => {
|
|
4611
|
-
const G = d(M), ee = G, te = m(G, C), ue = m(G,
|
|
4612
|
+
const G = d(M), ee = G, te = m(G, C), ue = m(G, N), ye = m(G, Y), de = m(G, J);
|
|
4612
4613
|
return {
|
|
4613
4614
|
container: ee,
|
|
4614
4615
|
descr: te,
|
|
@@ -4635,7 +4636,7 @@ const Ue = (r, e, t) => ({
|
|
|
4635
4636
|
if (!G) return ue;
|
|
4636
4637
|
const [ye, de] = ue.split(",");
|
|
4637
4638
|
return ye + (de ? `,${de}` : "");
|
|
4638
|
-
}, P = (M) => M.includes(";") ? M.split(";") : [M],
|
|
4639
|
+
}, P = (M) => M.includes(";") ? M.split(";") : [M], I = (M) => {
|
|
4639
4640
|
const G = (te) => {
|
|
4640
4641
|
var ue;
|
|
4641
4642
|
if (te)
|
|
@@ -4653,7 +4654,7 @@ const Ue = (r, e, t) => ({
|
|
|
4653
4654
|
};
|
|
4654
4655
|
}, _ = (M) => {
|
|
4655
4656
|
O == null || O(M);
|
|
4656
|
-
},
|
|
4657
|
+
}, j = (M, G) => {
|
|
4657
4658
|
(M.key === "Enter" || M.key === " ") && (M.preventDefault(), M.stopPropagation(), _(G));
|
|
4658
4659
|
}, W = ((M) => {
|
|
4659
4660
|
const G = B.dash(M);
|
|
@@ -4668,12 +4669,12 @@ const Ue = (r, e, t) => ({
|
|
|
4668
4669
|
icon: ee,
|
|
4669
4670
|
width: ne
|
|
4670
4671
|
}
|
|
4671
|
-
) }, `${M}-${
|
|
4672
|
+
) }, `${M}-${N}`),
|
|
4672
4673
|
um: (ee) => /* @__PURE__ */ x.jsx("div", { className: G.um, children: ee }, `${M}-${Y}`),
|
|
4673
4674
|
value: (ee) => /* @__PURE__ */ x.jsx("div", { className: G.value, children: ee }, `${M}-${J}`)
|
|
4674
4675
|
};
|
|
4675
4676
|
})(b), re = (M) => {
|
|
4676
|
-
const { descr: G, icon: ee, um: te, value: ue } =
|
|
4677
|
+
const { descr: G, icon: ee, um: te, value: ue } = I(M), ye = {
|
|
4677
4678
|
[S(C)]: D(s),
|
|
4678
4679
|
[S(Y)]: D(h),
|
|
4679
4680
|
[S(J)]: D(E)
|
|
@@ -4698,7 +4699,7 @@ const Ue = (r, e, t) => ({
|
|
|
4698
4699
|
style: ye,
|
|
4699
4700
|
tabIndex: 0,
|
|
4700
4701
|
onClick: () => _(M),
|
|
4701
|
-
onKeyDown: (Sr) =>
|
|
4702
|
+
onKeyDown: (Sr) => j(Sr, M),
|
|
4702
4703
|
children: de
|
|
4703
4704
|
},
|
|
4704
4705
|
M.id
|
|
@@ -4707,7 +4708,7 @@ const Ue = (r, e, t) => ({
|
|
|
4707
4708
|
[z]: String(r),
|
|
4708
4709
|
[U]: q
|
|
4709
4710
|
};
|
|
4710
|
-
return /* @__PURE__ */ x.jsx("div", { className: B.dashList, style: A, children:
|
|
4711
|
+
return /* @__PURE__ */ x.jsx("div", { className: B.dashList, style: A, children: L ? $.map((M) => re(M)) : R });
|
|
4711
4712
|
}, rs = ({
|
|
4712
4713
|
data: r,
|
|
4713
4714
|
logo: e,
|
|
@@ -4721,15 +4722,15 @@ const Ue = (r, e, t) => ({
|
|
|
4721
4722
|
var b, O;
|
|
4722
4723
|
const [l, c] = Q(), [u, f] = Q(t ?? !0), p = be(null), g = s.trim() ? s : "100vh", h = me(
|
|
4723
4724
|
(R) => {
|
|
4724
|
-
var $,
|
|
4725
|
-
if (!(($ = R.rows) != null && $.length) || !((
|
|
4725
|
+
var $, L;
|
|
4726
|
+
if (!(($ = R.rows) != null && $.length) || !((L = R.columns) != null && L.length))
|
|
4726
4727
|
return {};
|
|
4727
4728
|
const v = R.rows[0];
|
|
4728
4729
|
return R.columns.filter((V) => V.visible).reduce((V, F) => {
|
|
4729
4730
|
const C = v.cells[F.name];
|
|
4730
4731
|
if (!u && n && C.shape !== le.BUTTON)
|
|
4731
4732
|
return V;
|
|
4732
|
-
const
|
|
4733
|
+
const N = {
|
|
4733
4734
|
...C,
|
|
4734
4735
|
onChange: (Y) => {
|
|
4735
4736
|
c((J) => {
|
|
@@ -4746,9 +4747,9 @@ const Ue = (r, e, t) => ({
|
|
|
4746
4747
|
o && o(Y);
|
|
4747
4748
|
}
|
|
4748
4749
|
};
|
|
4749
|
-
return !u && n && (
|
|
4750
|
+
return !u && n && (N.data = { ...N.data, showText: !1 }), {
|
|
4750
4751
|
...V,
|
|
4751
|
-
[F.name]:
|
|
4752
|
+
[F.name]: N
|
|
4752
4753
|
};
|
|
4753
4754
|
}, {});
|
|
4754
4755
|
},
|
|
@@ -4804,6 +4805,7 @@ const Ue = (r, e, t) => ({
|
|
|
4804
4805
|
className: E.drawer,
|
|
4805
4806
|
style: { height: g },
|
|
4806
4807
|
"aria-label": "Drawer",
|
|
4808
|
+
"smp-id": "drawer",
|
|
4807
4809
|
children: /* @__PURE__ */ x.jsxs("div", { className: E.container, children: [
|
|
4808
4810
|
/* @__PURE__ */ x.jsxs("div", { className: E.containerHeader, children: [
|
|
4809
4811
|
e && /* @__PURE__ */ x.jsx("div", { className: E.containerLogo, children: /* @__PURE__ */ x.jsx(
|