test-stpr-ui-kit 0.5.4 → 0.5.5
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/test-stpr-ui-kit.js
CHANGED
|
@@ -173,21 +173,23 @@ const ve = (e) => {
|
|
|
173
173
|
isOnlyIcon: x = !1,
|
|
174
174
|
noPadding: w = !1,
|
|
175
175
|
classNameRoot: R,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
[we.spButton__iconContainer]: !0,
|
|
176
|
+
classNameTextRoot: A,
|
|
177
|
+
classNameIconContainerRoot: U
|
|
178
|
+
} = e, F = (N) => {
|
|
179
|
+
p || a == null || a(N);
|
|
180
|
+
}, y = () => {
|
|
181
|
+
const N = f({
|
|
182
|
+
[we.spButton__text]: !0,
|
|
184
183
|
...A && { [A]: !0 }
|
|
184
|
+
}), O = f({
|
|
185
|
+
[we.spButton__iconContainer]: !0,
|
|
186
|
+
...U && { [U]: !0 }
|
|
185
187
|
});
|
|
186
188
|
return /* @__PURE__ */ z(At, { children: [
|
|
187
|
-
(r || i || g) && /* @__PURE__ */ c("div", { className:
|
|
188
|
-
!x && u && /* @__PURE__ */ c("div", { className:
|
|
189
|
+
(r || i || g) && /* @__PURE__ */ c("div", { className: O, children: g ? /* @__PURE__ */ c(jt, { size: "md", classNameRoot: we.spButton__spinner }) : i ? /* @__PURE__ */ c(ve, { name: i, rotate: s }) : r || null }),
|
|
190
|
+
!x && u && /* @__PURE__ */ c("div", { className: N, children: u })
|
|
189
191
|
] });
|
|
190
|
-
},
|
|
192
|
+
}, m = f({
|
|
191
193
|
[we.spButton]: !0,
|
|
192
194
|
[we.spButton_noPadding]: w,
|
|
193
195
|
[we.spButton_onlyIcon]: x,
|
|
@@ -202,12 +204,12 @@ const ve = (e) => {
|
|
|
202
204
|
"button",
|
|
203
205
|
{
|
|
204
206
|
style: n,
|
|
205
|
-
className:
|
|
206
|
-
onClick:
|
|
207
|
+
className: m,
|
|
208
|
+
onClick: F,
|
|
207
209
|
disabled: p,
|
|
208
210
|
type: l,
|
|
209
211
|
form: d,
|
|
210
|
-
children:
|
|
212
|
+
children: y()
|
|
211
213
|
}
|
|
212
214
|
);
|
|
213
215
|
}, na = "_spApplyButtons_1l9jg_43", aa = "_spApplyButtons__cancel_1l9jg_73", ia = "_spApplyButtons__submit_1l9jg_76", Oe = {
|
|
@@ -588,11 +590,11 @@ const $e = (e) => {
|
|
|
588
590
|
);
|
|
589
591
|
const m = (T) => {
|
|
590
592
|
n && T.stopPropagation(), !t && (w ? s && s() : r && r(), R((B) => o ? !B : !0));
|
|
591
|
-
}, [N,
|
|
593
|
+
}, [N, O] = ee({
|
|
592
594
|
visibility: "hidden",
|
|
593
595
|
opacity: 0,
|
|
594
596
|
left: "-9999px"
|
|
595
|
-
}), [
|
|
597
|
+
}), [G, J] = ee(!1), ne = xe(() => {
|
|
596
598
|
if (!A.current || !U.current) return;
|
|
597
599
|
const T = A.current.getBoundingClientRect(), B = U.current.getBoundingClientRect();
|
|
598
600
|
let q = 0, V = 0;
|
|
@@ -636,14 +638,14 @@ const $e = (e) => {
|
|
|
636
638
|
default:
|
|
637
639
|
q = T.bottom + window.scrollY, V = T.left + window.scrollX;
|
|
638
640
|
}
|
|
639
|
-
q + B.height > window.innerHeight + window.scrollY && l.includes("bottom") ? q = T.top + window.scrollY - B.height : q < window.scrollY && l.includes("top") && (q = T.bottom + window.scrollY), V + B.width > window.innerWidth + window.scrollX && l.includes("left") ? V = T.left + window.scrollX - B.width + T.width : V < window.scrollX && l.includes("right") && (V = T.right + window.scrollX - T.width),
|
|
641
|
+
q + B.height > window.innerHeight + window.scrollY && l.includes("bottom") ? q = T.top + window.scrollY - B.height : q < window.scrollY && l.includes("top") && (q = T.bottom + window.scrollY), V + B.width > window.innerWidth + window.scrollX && l.includes("left") ? V = T.left + window.scrollX - B.width + T.width : V < window.scrollX && l.includes("right") && (V = T.right + window.scrollX - T.width), O((te) => ({
|
|
640
642
|
...te,
|
|
641
643
|
top: `${q}px`,
|
|
642
644
|
left: `${V}px`,
|
|
643
|
-
visibility: w ||
|
|
644
|
-
opacity: w ||
|
|
645
|
+
visibility: w || G ? "visible" : "hidden",
|
|
646
|
+
opacity: w || G ? 1 : 0
|
|
645
647
|
}));
|
|
646
|
-
}, [l, w,
|
|
648
|
+
}, [l, w, G]);
|
|
647
649
|
re(() => (y(!0), () => y(!1)), []), re(() => {
|
|
648
650
|
F && ne();
|
|
649
651
|
}, [F, ne]), re(() => {
|
|
@@ -757,8 +759,8 @@ const $e = (e) => {
|
|
|
757
759
|
type: "checkbox",
|
|
758
760
|
className: A,
|
|
759
761
|
checked: o,
|
|
760
|
-
onChange: (
|
|
761
|
-
!n && a && a(
|
|
762
|
+
onChange: (O) => {
|
|
763
|
+
!n && a && a(O, { name: i, checked: !o, value: p });
|
|
762
764
|
}
|
|
763
765
|
}
|
|
764
766
|
),
|
|
@@ -1004,12 +1006,12 @@ const $e = (e) => {
|
|
|
1004
1006
|
classNameLabel: y,
|
|
1005
1007
|
classNameBaseTooltipRoot: m,
|
|
1006
1008
|
...N
|
|
1007
|
-
} = e,
|
|
1009
|
+
} = e, O = f({
|
|
1008
1010
|
[ke.spInput]: !0,
|
|
1009
1011
|
[ke.spInput_error]: !!p,
|
|
1010
1012
|
[ke.spInput_absolutePositionError]: s,
|
|
1011
1013
|
...U && { [U]: !0 }
|
|
1012
|
-
}),
|
|
1014
|
+
}), G = f({
|
|
1013
1015
|
[ke.spInput__container]: !0
|
|
1014
1016
|
}), J = f({
|
|
1015
1017
|
[ke.spInput__control]: !0,
|
|
@@ -1030,7 +1032,7 @@ const $e = (e) => {
|
|
|
1030
1032
|
const { value: q, name: V } = B.target;
|
|
1031
1033
|
g && q && !new RegExp(g).test(q) || n(B, { value: q, name: V });
|
|
1032
1034
|
};
|
|
1033
|
-
return /* @__PURE__ */ z("div", { className:
|
|
1035
|
+
return /* @__PURE__ */ z("div", { className: O, children: [
|
|
1034
1036
|
a && /* @__PURE__ */ c(
|
|
1035
1037
|
Dt,
|
|
1036
1038
|
{
|
|
@@ -1042,7 +1044,7 @@ const $e = (e) => {
|
|
|
1042
1044
|
classNameBaseTooltipRoot: m
|
|
1043
1045
|
}
|
|
1044
1046
|
),
|
|
1045
|
-
/* @__PURE__ */ z("div", { className:
|
|
1047
|
+
/* @__PURE__ */ z("div", { className: G, onMouseEnter: h, children: [
|
|
1046
1048
|
/* @__PURE__ */ c(
|
|
1047
1049
|
"input",
|
|
1048
1050
|
{
|
|
@@ -1345,7 +1347,7 @@ function Di() {
|
|
|
1345
1347
|
}
|
|
1346
1348
|
}
|
|
1347
1349
|
}
|
|
1348
|
-
var m = p, N = l,
|
|
1350
|
+
var m = p, N = l, O = s, G = r, J = t, ne = d, me = n, ue = x, le = h, X = o, T = i, B = a, q = u, V = !1;
|
|
1349
1351
|
function te(b) {
|
|
1350
1352
|
return V || (V = !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.")), _(b) || y(b) === p;
|
|
1351
1353
|
}
|
|
@@ -1370,13 +1372,13 @@ function Di() {
|
|
|
1370
1372
|
function D(b) {
|
|
1371
1373
|
return y(b) === x;
|
|
1372
1374
|
}
|
|
1373
|
-
function
|
|
1375
|
+
function W(b) {
|
|
1374
1376
|
return y(b) === h;
|
|
1375
1377
|
}
|
|
1376
1378
|
function H(b) {
|
|
1377
1379
|
return y(b) === o;
|
|
1378
1380
|
}
|
|
1379
|
-
function
|
|
1381
|
+
function K(b) {
|
|
1380
1382
|
return y(b) === i;
|
|
1381
1383
|
}
|
|
1382
1384
|
function $(b) {
|
|
@@ -1385,7 +1387,7 @@ function Di() {
|
|
|
1385
1387
|
function ie(b) {
|
|
1386
1388
|
return y(b) === u;
|
|
1387
1389
|
}
|
|
1388
|
-
Q.AsyncMode = m, Q.ConcurrentMode = N, Q.ContextConsumer =
|
|
1390
|
+
Q.AsyncMode = m, Q.ConcurrentMode = N, Q.ContextConsumer = O, Q.ContextProvider = G, Q.Element = J, Q.ForwardRef = ne, Q.Fragment = me, Q.Lazy = ue, Q.Memo = le, Q.Portal = X, Q.Profiler = T, Q.StrictMode = B, Q.Suspense = q, Q.isAsyncMode = te, Q.isConcurrentMode = _, Q.isContextConsumer = v, Q.isContextProvider = I, Q.isElement = L, Q.isForwardRef = S, Q.isFragment = P, Q.isLazy = D, Q.isMemo = W, Q.isPortal = H, Q.isProfiler = K, Q.isStrictMode = $, Q.isSuspense = ie, Q.isValidElementType = F, Q.typeOf = y;
|
|
1389
1391
|
}()), Q;
|
|
1390
1392
|
}
|
|
1391
1393
|
var Kt;
|
|
@@ -1542,8 +1544,8 @@ function Pi() {
|
|
|
1542
1544
|
elementType: m(),
|
|
1543
1545
|
instanceOf: N,
|
|
1544
1546
|
node: ne(),
|
|
1545
|
-
objectOf:
|
|
1546
|
-
oneOf:
|
|
1547
|
+
objectOf: G,
|
|
1548
|
+
oneOf: O,
|
|
1547
1549
|
oneOfType: J,
|
|
1548
1550
|
shape: ue,
|
|
1549
1551
|
exact: le
|
|
@@ -1558,30 +1560,30 @@ function Pi() {
|
|
|
1558
1560
|
function R(_) {
|
|
1559
1561
|
if (process.env.NODE_ENV !== "production")
|
|
1560
1562
|
var v = {}, I = 0;
|
|
1561
|
-
function L(P, D,
|
|
1562
|
-
if (H = H || g, $ = $ ||
|
|
1563
|
+
function L(P, D, W, H, K, $, ie) {
|
|
1564
|
+
if (H = H || g, $ = $ || W, ie !== o) {
|
|
1563
1565
|
if (p) {
|
|
1564
1566
|
var b = new Error(
|
|
1565
1567
|
"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"
|
|
1566
1568
|
);
|
|
1567
1569
|
throw b.name = "Invariant Violation", b;
|
|
1568
1570
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1569
|
-
var he = H + ":" +
|
|
1571
|
+
var he = H + ":" + W;
|
|
1570
1572
|
!v[he] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1571
1573
|
I < 3 && (i(
|
|
1572
1574
|
"You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + H + "`. 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."
|
|
1573
1575
|
), v[he] = !0, I++);
|
|
1574
1576
|
}
|
|
1575
1577
|
}
|
|
1576
|
-
return D[
|
|
1578
|
+
return D[W] == null ? P ? D[W] === null ? new w("The " + K + " `" + $ + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new w("The " + K + " `" + $ + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : _(D, W, H, K, $);
|
|
1577
1579
|
}
|
|
1578
1580
|
var S = L.bind(null, !1);
|
|
1579
1581
|
return S.isRequired = L.bind(null, !0), S;
|
|
1580
1582
|
}
|
|
1581
1583
|
function A(_) {
|
|
1582
|
-
function v(I, L, S, P, D,
|
|
1583
|
-
var H = I[L],
|
|
1584
|
-
if (
|
|
1584
|
+
function v(I, L, S, P, D, W) {
|
|
1585
|
+
var H = I[L], K = B(H);
|
|
1586
|
+
if (K !== _) {
|
|
1585
1587
|
var $ = q(H);
|
|
1586
1588
|
return new w(
|
|
1587
1589
|
"Invalid " + P + " `" + D + "` of type " + ("`" + $ + "` supplied to `" + S + "`, expected ") + ("`" + _ + "`."),
|
|
@@ -1599,13 +1601,13 @@ function Pi() {
|
|
|
1599
1601
|
function v(I, L, S, P, D) {
|
|
1600
1602
|
if (typeof _ != "function")
|
|
1601
1603
|
return new w("Property `" + D + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
1602
|
-
var
|
|
1603
|
-
if (!Array.isArray(
|
|
1604
|
-
var H = B(
|
|
1604
|
+
var W = I[L];
|
|
1605
|
+
if (!Array.isArray(W)) {
|
|
1606
|
+
var H = B(W);
|
|
1605
1607
|
return new w("Invalid " + P + " `" + D + "` of type " + ("`" + H + "` supplied to `" + S + "`, expected an array."));
|
|
1606
1608
|
}
|
|
1607
|
-
for (var
|
|
1608
|
-
var $ = _(
|
|
1609
|
+
for (var K = 0; K < W.length; K++) {
|
|
1610
|
+
var $ = _(W, K, S, P, D + "[" + K + "]", o);
|
|
1609
1611
|
if ($ instanceof Error)
|
|
1610
1612
|
return $;
|
|
1611
1613
|
}
|
|
@@ -1617,8 +1619,8 @@ function Pi() {
|
|
|
1617
1619
|
function _(v, I, L, S, P) {
|
|
1618
1620
|
var D = v[I];
|
|
1619
1621
|
if (!s(D)) {
|
|
1620
|
-
var
|
|
1621
|
-
return new w("Invalid " + S + " `" + P + "` of type " + ("`" +
|
|
1622
|
+
var W = B(D);
|
|
1623
|
+
return new w("Invalid " + S + " `" + P + "` of type " + ("`" + W + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
1622
1624
|
}
|
|
1623
1625
|
return null;
|
|
1624
1626
|
}
|
|
@@ -1628,8 +1630,8 @@ function Pi() {
|
|
|
1628
1630
|
function _(v, I, L, S, P) {
|
|
1629
1631
|
var D = v[I];
|
|
1630
1632
|
if (!e.isValidElementType(D)) {
|
|
1631
|
-
var
|
|
1632
|
-
return new w("Invalid " + S + " `" + P + "` of type " + ("`" +
|
|
1633
|
+
var W = B(D);
|
|
1634
|
+
return new w("Invalid " + S + " `" + P + "` of type " + ("`" + W + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
1633
1635
|
}
|
|
1634
1636
|
return null;
|
|
1635
1637
|
}
|
|
@@ -1638,40 +1640,40 @@ function Pi() {
|
|
|
1638
1640
|
function N(_) {
|
|
1639
1641
|
function v(I, L, S, P, D) {
|
|
1640
1642
|
if (!(I[L] instanceof _)) {
|
|
1641
|
-
var
|
|
1642
|
-
return new w("Invalid " + P + " `" + D + "` of type " + ("`" + H + "` supplied to `" + S + "`, expected ") + ("instance of `" +
|
|
1643
|
+
var W = _.name || g, H = te(I[L]);
|
|
1644
|
+
return new w("Invalid " + P + " `" + D + "` of type " + ("`" + H + "` supplied to `" + S + "`, expected ") + ("instance of `" + W + "`."));
|
|
1643
1645
|
}
|
|
1644
1646
|
return null;
|
|
1645
1647
|
}
|
|
1646
1648
|
return R(v);
|
|
1647
1649
|
}
|
|
1648
|
-
function
|
|
1650
|
+
function O(_) {
|
|
1649
1651
|
if (!Array.isArray(_))
|
|
1650
1652
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1651
1653
|
"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])."
|
|
1652
1654
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
1653
1655
|
function v(I, L, S, P, D) {
|
|
1654
|
-
for (var
|
|
1655
|
-
if (x(
|
|
1656
|
+
for (var W = I[L], H = 0; H < _.length; H++)
|
|
1657
|
+
if (x(W, _[H]))
|
|
1656
1658
|
return null;
|
|
1657
|
-
var
|
|
1659
|
+
var K = JSON.stringify(_, function(ie, b) {
|
|
1658
1660
|
var he = q(b);
|
|
1659
1661
|
return he === "symbol" ? String(b) : b;
|
|
1660
1662
|
});
|
|
1661
|
-
return new w("Invalid " + P + " `" + D + "` of value `" + String(
|
|
1663
|
+
return new w("Invalid " + P + " `" + D + "` of value `" + String(W) + "` " + ("supplied to `" + S + "`, expected one of " + K + "."));
|
|
1662
1664
|
}
|
|
1663
1665
|
return R(v);
|
|
1664
1666
|
}
|
|
1665
|
-
function
|
|
1667
|
+
function G(_) {
|
|
1666
1668
|
function v(I, L, S, P, D) {
|
|
1667
1669
|
if (typeof _ != "function")
|
|
1668
1670
|
return new w("Property `" + D + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
1669
|
-
var
|
|
1671
|
+
var W = I[L], H = B(W);
|
|
1670
1672
|
if (H !== "object")
|
|
1671
1673
|
return new w("Invalid " + P + " `" + D + "` of type " + ("`" + H + "` supplied to `" + S + "`, expected an object."));
|
|
1672
|
-
for (var
|
|
1673
|
-
if (n(
|
|
1674
|
-
var $ = _(
|
|
1674
|
+
for (var K in W)
|
|
1675
|
+
if (n(W, K)) {
|
|
1676
|
+
var $ = _(W, K, S, P, D + "." + K, o);
|
|
1675
1677
|
if ($ instanceof Error)
|
|
1676
1678
|
return $;
|
|
1677
1679
|
}
|
|
@@ -1689,15 +1691,15 @@ function Pi() {
|
|
|
1689
1691
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + V(I) + " at index " + v + "."
|
|
1690
1692
|
), r;
|
|
1691
1693
|
}
|
|
1692
|
-
function L(S, P, D,
|
|
1693
|
-
for (var
|
|
1694
|
-
var ie = _[$], b = ie(S, P, D,
|
|
1694
|
+
function L(S, P, D, W, H) {
|
|
1695
|
+
for (var K = [], $ = 0; $ < _.length; $++) {
|
|
1696
|
+
var ie = _[$], b = ie(S, P, D, W, H, o);
|
|
1695
1697
|
if (b == null)
|
|
1696
1698
|
return null;
|
|
1697
|
-
b.data && n(b.data, "expectedType") &&
|
|
1699
|
+
b.data && n(b.data, "expectedType") && K.push(b.data.expectedType);
|
|
1698
1700
|
}
|
|
1699
|
-
var he =
|
|
1700
|
-
return new w("Invalid " +
|
|
1701
|
+
var he = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
|
|
1702
|
+
return new w("Invalid " + W + " `" + H + "` supplied to " + ("`" + D + "`" + he + "."));
|
|
1701
1703
|
}
|
|
1702
1704
|
return R(L);
|
|
1703
1705
|
}
|
|
@@ -1714,14 +1716,14 @@ function Pi() {
|
|
|
1714
1716
|
}
|
|
1715
1717
|
function ue(_) {
|
|
1716
1718
|
function v(I, L, S, P, D) {
|
|
1717
|
-
var
|
|
1719
|
+
var W = I[L], H = B(W);
|
|
1718
1720
|
if (H !== "object")
|
|
1719
1721
|
return new w("Invalid " + P + " `" + D + "` of type `" + H + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1720
|
-
for (var
|
|
1721
|
-
var $ = _[
|
|
1722
|
+
for (var K in _) {
|
|
1723
|
+
var $ = _[K];
|
|
1722
1724
|
if (typeof $ != "function")
|
|
1723
|
-
return me(S, P, D,
|
|
1724
|
-
var ie = $(
|
|
1725
|
+
return me(S, P, D, K, q($));
|
|
1726
|
+
var ie = $(W, K, S, P, D + "." + K, o);
|
|
1725
1727
|
if (ie)
|
|
1726
1728
|
return ie;
|
|
1727
1729
|
}
|
|
@@ -1731,11 +1733,11 @@ function Pi() {
|
|
|
1731
1733
|
}
|
|
1732
1734
|
function le(_) {
|
|
1733
1735
|
function v(I, L, S, P, D) {
|
|
1734
|
-
var
|
|
1736
|
+
var W = I[L], H = B(W);
|
|
1735
1737
|
if (H !== "object")
|
|
1736
1738
|
return new w("Invalid " + P + " `" + D + "` of type `" + H + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1737
|
-
var
|
|
1738
|
-
for (var $ in
|
|
1739
|
+
var K = t({}, I[L], _);
|
|
1740
|
+
for (var $ in K) {
|
|
1739
1741
|
var ie = _[$];
|
|
1740
1742
|
if (n(_, $) && typeof ie != "function")
|
|
1741
1743
|
return me(S, P, D, $, q(ie));
|
|
@@ -1744,7 +1746,7 @@ function Pi() {
|
|
|
1744
1746
|
"Invalid " + P + " `" + D + "` key `" + $ + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(I[L], null, " ") + `
|
|
1745
1747
|
Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
1746
1748
|
);
|
|
1747
|
-
var b = ie(
|
|
1749
|
+
var b = ie(W, $, S, P, D + "." + $, o);
|
|
1748
1750
|
if (b)
|
|
1749
1751
|
return b;
|
|
1750
1752
|
}
|
|
@@ -2131,18 +2133,18 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2131
2133
|
classNameError: F,
|
|
2132
2134
|
classNameLabel: y,
|
|
2133
2135
|
classNameBaseTooltipRoot: m
|
|
2134
|
-
} = e, [N,
|
|
2136
|
+
} = e, [N, O] = ee(!1), G = de(null);
|
|
2135
2137
|
Co(
|
|
2136
|
-
[
|
|
2138
|
+
[G],
|
|
2137
2139
|
() => {
|
|
2138
|
-
|
|
2140
|
+
O(!1);
|
|
2139
2141
|
},
|
|
2140
2142
|
N
|
|
2141
2143
|
);
|
|
2142
2144
|
const J = t.find((v) => v.value === n), ne = (v, I) => {
|
|
2143
|
-
r(v, { value: I, name: a }),
|
|
2145
|
+
r(v, { value: I, name: a }), O(!1);
|
|
2144
2146
|
}, me = () => {
|
|
2145
|
-
g ||
|
|
2147
|
+
g || O(!N);
|
|
2146
2148
|
}, ue = f({
|
|
2147
2149
|
[_e.spSelect]: !0,
|
|
2148
2150
|
[_e.spSelect_error]: !!p,
|
|
@@ -2169,7 +2171,7 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2169
2171
|
[_e.spSelect__error_absolutePosition]: A,
|
|
2170
2172
|
...F && { [F]: !0 }
|
|
2171
2173
|
});
|
|
2172
|
-
return /* @__PURE__ */ z("div", { className: ue, ref:
|
|
2174
|
+
return /* @__PURE__ */ z("div", { className: ue, ref: G, children: [
|
|
2173
2175
|
l && /* @__PURE__ */ c(
|
|
2174
2176
|
Dt,
|
|
2175
2177
|
{
|
|
@@ -2298,11 +2300,11 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2298
2300
|
}), d = f({
|
|
2299
2301
|
[ye.spTable__emptyPage]: !0
|
|
2300
2302
|
}), [u, g] = ee(null), h = (y) => {
|
|
2301
|
-
const { text: m, rowIndex: N, colIndex:
|
|
2302
|
-
(u == null ? void 0 : u.rowIndex) === N && (u == null ? void 0 : u.colIndex) ===
|
|
2303
|
-
g({ rowIndex: N, colIndex:
|
|
2304
|
-
}).catch((
|
|
2305
|
-
console.error("Ошибка при копировании:",
|
|
2303
|
+
const { text: m, rowIndex: N, colIndex: O } = y;
|
|
2304
|
+
(u == null ? void 0 : u.rowIndex) === N && (u == null ? void 0 : u.colIndex) === O || navigator.clipboard.writeText(m).then(() => {
|
|
2305
|
+
g({ rowIndex: N, colIndex: O });
|
|
2306
|
+
}).catch((G) => {
|
|
2307
|
+
console.error("Ошибка при копировании:", G);
|
|
2306
2308
|
});
|
|
2307
2309
|
}, x = () => {
|
|
2308
2310
|
g(null);
|
|
@@ -2312,10 +2314,10 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2312
2314
|
}) => {
|
|
2313
2315
|
const N = y[m.key];
|
|
2314
2316
|
if (!N) return null;
|
|
2315
|
-
const [
|
|
2317
|
+
const [O, G] = N.split(/\s*\{\{|}}\s*/).filter(Boolean);
|
|
2316
2318
|
return /* @__PURE__ */ z("span", { children: [
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
+
O,
|
|
2320
|
+
G && /* @__PURE__ */ c("span", { className: l, children: ` ${G}` })
|
|
2319
2321
|
] });
|
|
2320
2322
|
}, A = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ z("table", { className: s, children: [
|
|
2321
2323
|
/* @__PURE__ */ c("colgroup", { children: r.map((y, m, N) => /* @__PURE__ */ c(
|
|
@@ -2328,12 +2330,12 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2328
2330
|
m
|
|
2329
2331
|
)) }),
|
|
2330
2332
|
/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", { children: r.map((y, m) => /* @__PURE__ */ c("th", { children: y.title }, m)) }) }),
|
|
2331
|
-
/* @__PURE__ */ c("tbody", { children: o.map((y, m) => y ? /* @__PURE__ */ c("tr", { children: r.map((N,
|
|
2332
|
-
const
|
|
2333
|
+
/* @__PURE__ */ c("tbody", { children: o.map((y, m) => y ? /* @__PURE__ */ c("tr", { children: r.map((N, O) => {
|
|
2334
|
+
const G = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2333
2335
|
return /* @__PURE__ */ c(
|
|
2334
2336
|
"td",
|
|
2335
2337
|
{
|
|
2336
|
-
onMouseLeave:
|
|
2338
|
+
onMouseLeave: G ? x : void 0,
|
|
2337
2339
|
children: /* @__PURE__ */ z("div", { className: p, children: [
|
|
2338
2340
|
/* @__PURE__ */ c("span", { children: N.isColorContentsCurlyBrackets ? R({ row: y, col: N }) : y[N.key] }),
|
|
2339
2341
|
!Et(y[N.key]) && N.isBeCopiedValue && /* @__PURE__ */ c(
|
|
@@ -2341,23 +2343,23 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2341
2343
|
{
|
|
2342
2344
|
className: f({
|
|
2343
2345
|
[ye.spTable__tdContentCopyIcon]: !0,
|
|
2344
|
-
[ye.spTable__tdContentCopyIcon_copied]:
|
|
2346
|
+
[ye.spTable__tdContentCopyIcon_copied]: G
|
|
2345
2347
|
}),
|
|
2346
|
-
name:
|
|
2348
|
+
name: G ? M.Check : M.Copy,
|
|
2347
2349
|
onClick: () => {
|
|
2348
2350
|
const J = y[N.key];
|
|
2349
2351
|
if (!J) return null;
|
|
2350
2352
|
h({
|
|
2351
2353
|
text: J,
|
|
2352
2354
|
rowIndex: m,
|
|
2353
|
-
colIndex:
|
|
2355
|
+
colIndex: O
|
|
2354
2356
|
});
|
|
2355
2357
|
}
|
|
2356
2358
|
}
|
|
2357
2359
|
)
|
|
2358
2360
|
] })
|
|
2359
2361
|
},
|
|
2360
|
-
`${m}:${
|
|
2362
|
+
`${m}:${O}`
|
|
2361
2363
|
);
|
|
2362
2364
|
}) }, m) : null) })
|
|
2363
2365
|
] }) : w(), U = () => o && Array.isArray(o) && o.length > 0 ? /* @__PURE__ */ c(
|
|
@@ -2366,17 +2368,17 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2366
2368
|
className: f({
|
|
2367
2369
|
[ye.spStringsGroup]: !0
|
|
2368
2370
|
}),
|
|
2369
|
-
children: o.map((y, m) => y ? /* @__PURE__ */ c("div", { children: r.map((N,
|
|
2371
|
+
children: o.map((y, m) => y ? /* @__PURE__ */ c("div", { children: r.map((N, O) => {
|
|
2370
2372
|
if (Et(y[N.key]))
|
|
2371
2373
|
return null;
|
|
2372
|
-
const
|
|
2374
|
+
const G = (u == null ? void 0 : u.rowIndex) === m && (u == null ? void 0 : u.colIndex) === O;
|
|
2373
2375
|
return /* @__PURE__ */ z(
|
|
2374
2376
|
"div",
|
|
2375
2377
|
{
|
|
2376
2378
|
className: f({
|
|
2377
2379
|
[ye.spStringsGroup__groupItem]: !0
|
|
2378
2380
|
}),
|
|
2379
|
-
onMouseLeave:
|
|
2381
|
+
onMouseLeave: G ? x : void 0,
|
|
2380
2382
|
children: [
|
|
2381
2383
|
/* @__PURE__ */ c(
|
|
2382
2384
|
"div",
|
|
@@ -2400,16 +2402,16 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2400
2402
|
{
|
|
2401
2403
|
className: f({
|
|
2402
2404
|
[ye.spStringsGroup__groupItemContentCopyIcon]: !0,
|
|
2403
|
-
[ye.spStringsGroup__groupItemContentCopyIcon_copied]:
|
|
2405
|
+
[ye.spStringsGroup__groupItemContentCopyIcon_copied]: G
|
|
2404
2406
|
}),
|
|
2405
|
-
name:
|
|
2407
|
+
name: G ? M.Check : M.Copy,
|
|
2406
2408
|
onClick: () => {
|
|
2407
2409
|
const J = y[N.key];
|
|
2408
2410
|
if (!J) return null;
|
|
2409
2411
|
h({
|
|
2410
2412
|
text: J,
|
|
2411
2413
|
rowIndex: m,
|
|
2412
|
-
colIndex:
|
|
2414
|
+
colIndex: O
|
|
2413
2415
|
});
|
|
2414
2416
|
}
|
|
2415
2417
|
}
|
|
@@ -2419,7 +2421,7 @@ const Gi = (e) => `not ${e}`, Ki = (e, t) => {
|
|
|
2419
2421
|
)
|
|
2420
2422
|
]
|
|
2421
2423
|
},
|
|
2422
|
-
|
|
2424
|
+
O
|
|
2423
2425
|
);
|
|
2424
2426
|
}) }, m) : null)
|
|
2425
2427
|
}
|
|
@@ -4417,7 +4419,7 @@ var Ft = {
|
|
|
4417
4419
|
fileRejections: []
|
|
4418
4420
|
};
|
|
4419
4421
|
function Ho() {
|
|
4420
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = oe(oe({}, $o), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, d = t.onDragLeave, u = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, x = t.onDropRejected, w = t.onFileDialogCancel, R = t.onFileDialogOpen, A = t.useFsAccessApi, U = t.autoFocus, F = t.preventDropOnDocument, y = t.noClick, m = t.noKeyboard, N = t.noDrag,
|
|
4422
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = oe(oe({}, $o), e), o = t.accept, n = t.disabled, a = t.getFilesFromEvent, i = t.maxSize, r = t.minSize, s = t.multiple, p = t.maxFiles, l = t.onDragEnter, d = t.onDragLeave, u = t.onDragOver, g = t.onDrop, h = t.onDropAccepted, x = t.onDropRejected, w = t.onFileDialogCancel, R = t.onFileDialogOpen, A = t.useFsAccessApi, U = t.autoFocus, F = t.preventDropOnDocument, y = t.noClick, m = t.noKeyboard, N = t.noDrag, O = t.noDragEventsBubbling, G = t.onError, J = t.validator, ne = Me(function() {
|
|
4421
4423
|
return Ss(o);
|
|
4422
4424
|
}, [o]), me = Me(function() {
|
|
4423
4425
|
return Es(o);
|
|
@@ -4452,10 +4454,10 @@ function Ho() {
|
|
|
4452
4454
|
};
|
|
4453
4455
|
}, [X, U, n]);
|
|
4454
4456
|
var D = xe(function(k) {
|
|
4455
|
-
|
|
4456
|
-
}, [
|
|
4457
|
+
G ? G(k) : console.error(k);
|
|
4458
|
+
}, [G]), W = xe(function(k) {
|
|
4457
4459
|
k.preventDefault(), k.persist(), Ve(k), S.current = [].concat(Ds(S.current), [k.target]), Je(k) && Promise.resolve(a(k)).then(function(j) {
|
|
4458
|
-
if (!(ot(k) && !
|
|
4460
|
+
if (!(ot(k) && !O)) {
|
|
4459
4461
|
var ae = j.length, se = ae > 0 && ws({
|
|
4460
4462
|
files: j,
|
|
4461
4463
|
accept: ne,
|
|
@@ -4475,7 +4477,7 @@ function Ho() {
|
|
|
4475
4477
|
}).catch(function(j) {
|
|
4476
4478
|
return D(j);
|
|
4477
4479
|
});
|
|
4478
|
-
}, [a, l, D,
|
|
4480
|
+
}, [a, l, D, O, ne, r, i, s, p, J]), H = xe(function(k) {
|
|
4479
4481
|
k.preventDefault(), k.persist(), Ve(k);
|
|
4480
4482
|
var j = Je(k);
|
|
4481
4483
|
if (j && k.dataTransfer)
|
|
@@ -4484,7 +4486,7 @@ function Ho() {
|
|
|
4484
4486
|
} catch {
|
|
4485
4487
|
}
|
|
4486
4488
|
return j && u && u(k), !1;
|
|
4487
|
-
}, [u,
|
|
4489
|
+
}, [u, O]), K = xe(function(k) {
|
|
4488
4490
|
k.preventDefault(), k.persist(), Ve(k);
|
|
4489
4491
|
var j = S.current.filter(function(se) {
|
|
4490
4492
|
return X.current && X.current.contains(se);
|
|
@@ -4495,7 +4497,7 @@ function Ho() {
|
|
|
4495
4497
|
isDragAccept: !1,
|
|
4496
4498
|
isDragReject: !1
|
|
4497
4499
|
}), Je(k) && d && d(k));
|
|
4498
|
-
}, [X, d,
|
|
4500
|
+
}, [X, d, O]), $ = xe(function(k, j) {
|
|
4499
4501
|
var ae = [], se = [];
|
|
4500
4502
|
k.forEach(function(be) {
|
|
4501
4503
|
var ze = zo(be, ne), De = Tt(ze, 2), rt = De[0], st = De[1], pt = Oo(be, r, i), Ye = Tt(pt, 2), lt = Ye[0], ct = Ye[1], dt = J ? J(be) : null;
|
|
@@ -4523,13 +4525,13 @@ function Ho() {
|
|
|
4523
4525
|
}), g && g(ae, se, j), se.length > 0 && x && x(se, j), ae.length > 0 && h && h(ae, j);
|
|
4524
4526
|
}, [te, s, ne, r, i, p, g, h, x, J]), ie = xe(function(k) {
|
|
4525
4527
|
k.preventDefault(), k.persist(), Ve(k), S.current = [], Je(k) && Promise.resolve(a(k)).then(function(j) {
|
|
4526
|
-
ot(k) && !
|
|
4528
|
+
ot(k) && !O || $(j, k);
|
|
4527
4529
|
}).catch(function(j) {
|
|
4528
4530
|
return D(j);
|
|
4529
4531
|
}), te({
|
|
4530
4532
|
type: "reset"
|
|
4531
4533
|
});
|
|
4532
|
-
}, [a, $, D,
|
|
4534
|
+
}, [a, $, D, O]), b = xe(function() {
|
|
4533
4535
|
if (I.current) {
|
|
4534
4536
|
te({
|
|
4535
4537
|
type: "openDialog"
|
|
@@ -4573,7 +4575,7 @@ function Ho() {
|
|
|
4573
4575
|
}, He = function(j) {
|
|
4574
4576
|
return N ? null : je(j);
|
|
4575
4577
|
}, Ve = function(j) {
|
|
4576
|
-
|
|
4578
|
+
O && j.stopPropagation();
|
|
4577
4579
|
}, Vo = Me(function() {
|
|
4578
4580
|
return function() {
|
|
4579
4581
|
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = k.refKey, ae = j === void 0 ? "ref" : j, se = k.role, be = k.onKeyDown, ze = k.onFocus, De = k.onBlur, rt = k.onClick, st = k.onDragEnter, pt = k.onDragOver, Ye = k.onDragLeave, lt = k.onDrop, ct = nt(k, As);
|
|
@@ -4582,16 +4584,16 @@ function Ho() {
|
|
|
4582
4584
|
onFocus: it(Ne(ze, Ie)),
|
|
4583
4585
|
onBlur: it(Ne(De, Pe)),
|
|
4584
4586
|
onClick: je(Ne(rt, zt)),
|
|
4585
|
-
onDragEnter: He(Ne(st,
|
|
4587
|
+
onDragEnter: He(Ne(st, W)),
|
|
4586
4588
|
onDragOver: He(Ne(pt, H)),
|
|
4587
|
-
onDragLeave: He(Ne(Ye,
|
|
4589
|
+
onDragLeave: He(Ne(Ye, K)),
|
|
4588
4590
|
onDrop: He(Ne(lt, ie)),
|
|
4589
4591
|
role: typeof se == "string" && se !== "" ? se : "presentation"
|
|
4590
4592
|
}, ae, X), !n && !m ? {
|
|
4591
4593
|
tabIndex: 0
|
|
4592
4594
|
} : {}), ct);
|
|
4593
4595
|
};
|
|
4594
|
-
}, [X, he, Ie, Pe, zt,
|
|
4596
|
+
}, [X, he, Ie, Pe, zt, W, H, K, ie, m, N, n]), Yo = xe(function(k) {
|
|
4595
4597
|
k.stopPropagation();
|
|
4596
4598
|
}, []), Go = Me(function() {
|
|
4597
4599
|
return function() {
|
|
@@ -4805,7 +4807,7 @@ const $s = (e) => Ho(e), Hs = (e) => {
|
|
|
4805
4807
|
onDrop: R,
|
|
4806
4808
|
multiple: s,
|
|
4807
4809
|
disabled: r
|
|
4808
|
-
}), F = x ? (x == null ? void 0 : x.length) > 0 : void 0, y = [...p.map((_) => ({ file: _, errors: null })), ...x], m = (y == null ? void 0 : y.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input",
|
|
4810
|
+
}), F = x ? (x == null ? void 0 : x.length) > 0 : void 0, y = [...p.map((_) => ({ file: _, errors: null })), ...x], m = (y == null ? void 0 : y.length) > 0 || (x == null ? void 0 : x.length) > 0, N = o === "input", O = o === "dropzone", G = f({
|
|
4809
4811
|
[Y.spUploadFiles]: !0,
|
|
4810
4812
|
[Y[`spUploadFiles--variant-${o}`]]: o,
|
|
4811
4813
|
[Y.spUploadFiles_error]: F && !s && h && h.length > 0,
|
|
@@ -4943,8 +4945,8 @@ const $s = (e) => Ho(e), Hs = (e) => {
|
|
|
4943
4945
|
getInputProps: U,
|
|
4944
4946
|
disabled: r,
|
|
4945
4947
|
name: n,
|
|
4946
|
-
children: /* @__PURE__ */ z("div", { className:
|
|
4947
|
-
|
|
4948
|
+
children: /* @__PURE__ */ z("div", { className: G, children: [
|
|
4949
|
+
O && /* @__PURE__ */ c(
|
|
4948
4950
|
$e,
|
|
4949
4951
|
{
|
|
4950
4952
|
hover: !0,
|