@amateescu/portal-ui-components 0.0.17 → 0.0.19
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/{EllipsisOutlined-CbXvjafK.js → EllipsisOutlined-CtmB5yDB.js} +1 -1
- package/dist/InvencoGVR-qnTq-d6S.js +5 -0
- package/dist/{PurePanel-Dm4YQiOw.js → PurePanel-CfZ1n-M8.js} +83 -83
- package/dist/{Skeleton-BUGeiKb5.js → Skeleton-XFbjx7LJ.js} +1 -1
- package/dist/{UserInfoDropdown-B_eReI1p.js → UserInfoDropdown-Cd1W3wRj.js} +89 -89
- package/dist/assets/ConfirmationModal.css +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +16 -16
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +18 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +36 -0
- package/dist/components/CustomButton/CustomButton.stories.d.ts +19 -0
- package/dist/components/CustomButton/CustomButton.stories.js +28 -0
- package/dist/components/CustomFooter/CustomFooter.stories.d.ts +18 -0
- package/dist/components/CustomFooter/CustomFooter.stories.js +39 -0
- package/dist/components/CustomPagination/CustomPagination.d.ts +2 -1
- package/dist/components/CustomPagination/CustomPagination.js +2 -1
- package/dist/components/CustomPagination/CustomPagination.stories.d.ts +20 -0
- package/dist/components/CustomPagination/CustomPagination.stories.js +25 -0
- package/dist/components/ErrorModal/ErrorModal.js +1 -1
- package/dist/components/ErrorModal/ErrorModal.stories.d.ts +18 -0
- package/dist/components/ErrorModal/ErrorModal.stories.js +33 -0
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +1 -3
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.d.ts +18 -0
- package/dist/components/InfoModal/InfoModal.stories.js +33 -0
- package/dist/components/KpiCard/KpiCard.js +3 -3
- package/dist/components/KpiCard/KpiCard.stories.d.ts +20 -0
- package/dist/components/KpiCard/KpiCard.stories.js +26 -0
- package/dist/components/KpiWrapper/KpiWrapper.d.ts +1 -6
- package/dist/components/KpiWrapper/KpiWrapper.stories.d.ts +22 -0
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +55 -0
- package/dist/components/KpiWrapper/KpiWrapper.types.d.ts +5 -0
- package/dist/components/KpiWrapper/KpiWrapper.types.js +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts +14 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.js +14 -0
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/Login/Login.stories.d.ts +25 -0
- package/dist/components/Login/Login.stories.js +23261 -0
- package/dist/components/SideMenu/SideMenu.js +37 -35
- package/dist/components/SideMenu/SideMenu.stories.d.ts +34 -0
- package/dist/components/SideMenu/SideMenu.stories.js +81 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts +25 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.js +23 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts +24 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +36 -0
- package/dist/components/index.js +1 -1
- package/dist/{index-BUkgekw_.js → index-DsP9yT3s.js} +166 -166
- package/dist/main.js +1 -1
- package/dist/mock.d.ts +22 -0
- package/dist/mock.js +64 -0
- package/dist/portal-utils/formatters.js +94 -65
- package/dist/types/CultureStore.d.ts +4 -0
- package/dist/{useId-twUOzmH-.js → useId-DbfH3PlN.js} +32 -32
- package/package.json +21 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as Kr, W as Tr, X as Lr, Y as Ar, Z as $n,
|
|
1
|
+
import { V as Kr, W as Tr, X as Lr, Y as Ar, Z as $n, k as lr, $ as Gn, f as $r, d as T, t as zr, G as Jn, E as ya, K as Lt, l as ke, c as Ke, w as Ht, b as O, j as Kt, a0 as ot, n as ur, a1 as cr, a2 as ba, a3 as Zn, a4 as Vr, _ as Rt, a5 as Qn, H as pa, P as Wr, i as lt, h as me, a6 as Ca, a7 as Fr, p as un, q as Dn, o as fr, I as wa } from "./useId-DbfH3PlN.js";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import qe, { useState as qn, useMemo as Yn, useCallback as Tt, forwardRef as Ma, useRef as xn, useImperativeHandle as Ra } from "react";
|
|
4
4
|
import { a as ne } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (C) => /* @__PURE__ */ e.createElement("svg", { width: 84, height: 27, viewBox: "0 0 84 27", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.47082 2.15013V4.63516C5.47082 4.90965 5.2483 5.13217 4.97381 5.13217H2.48878L3.4828 6.12618H4.97381C5.79728 6.12618 6.46483 5.45863 6.46483 4.63516V3.14415L5.47082 2.15013Z", fill: "#12121A" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.4828 3.14415V0.162109L4.47681 1.15612V4.01391C4.47681 4.08253 4.42118 4.13816 4.35256 4.13816H1.49477L0.50076 3.14415H3.4828Z", fill: "#12121A" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94986 2.15013V4.63516C8.94986 4.90965 9.17238 5.13217 9.44687 5.13217H11.9319L10.9379 6.12618H9.44687C8.6234 6.12618 7.95585 5.45863 7.95585 4.63516V3.14415L8.94986 2.15013Z", fill: "#12121A" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.9379 3.14415V0.162109L9.94387 1.15612V4.01391C9.94387 4.08253 9.9995 4.13816 10.0681 4.13816H12.9259L13.9199 3.14415H10.9379Z", fill: "#12121A" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.47082 11.5932V9.10822C5.47082 8.83373 5.2483 8.61121 4.97381 8.61121H2.48878L3.4828 7.6172H4.97381C5.79728 7.6172 6.46483 8.28475 6.46483 9.10822V10.5992L5.47082 11.5932Z", fill: "#12121A" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.4828 10.5992V13.5813L4.47681 12.5873V9.72948C4.47681 9.66085 4.42118 9.60522 4.35256 9.60522H1.49477L0.50076 10.5992H3.4828Z", fill: "#12121A" }), /* @__PURE__ */ e.createElement("path", { d: "M63.2949 25.0081V25.4531H62.5568V20.9663H63.3832V22.6741C63.5041 22.5415 63.6505 22.4348 63.8138 22.3603C63.9771 22.2857 64.1537 22.245 64.3332 22.2405C64.624 22.2576 64.908 22.3587 65.1435 22.5278C65.5722 22.8358 65.8175 23.357 65.7818 23.8829C65.8084 24.4002 65.5596 24.9209 65.1435 25.2259C64.7262 25.5317 64.1987 25.6174 63.7356 25.3736C63.566 25.2844 63.4172 25.1605 63.2987 25.01L63.2949 25.0081ZM65.1435 23.8829C65.1432 23.4277 64.7837 23.027 64.3332 22.9756C63.8047 22.9154 63.3333 23.3393 63.3139 23.8829C63.2931 24.4655 63.7835 24.8458 64.3332 24.7831C64.7855 24.7314 65.1437 24.3478 65.1435 23.8829ZM65.9813 26.5717V25.8696C66.1653 25.955 66.3665 25.9969 66.5693 25.992C66.8923 26.0051 67.2069 25.8032 67.3292 25.5043L65.9157 22.3022H66.8381L67.7178 24.6049L68.4198 22.3022H69.3308L68.1281 25.4569C67.8166 26.2861 67.3131 26.7159 66.6291 26.7159C66.4041 26.7185 66.1816 26.6684 65.9794 26.5698L65.9813 26.5717ZM70.8459 23.306C70.8393 22.7085 71.0879 22.1181 71.5202 21.705C72.2996 20.9602 73.5129 20.9612 74.4537 21.379V22.2329C73.7808 21.8399 72.7883 21.7222 72.1698 22.278C71.8751 22.5429 71.7014 22.9318 71.7008 23.3278C71.6971 23.7183 71.8648 24.1036 72.1534 24.3671C72.6055 24.78 73.3347 24.8378 73.8838 24.5897V23.7415H73.0383V23.0157H74.6893V25.1153C73.7131 25.683 72.3512 25.7408 71.5039 24.9177C71.0762 24.5023 70.8335 23.9112 70.8459 23.3155V23.306ZM74.923 21.176H75.8729L77.0946 24.511L78.2554 21.176H79.2053L77.5391 25.53H76.5892L74.923 21.176ZM79.6071 21.176H81.2439C82.0509 21.1805 82.785 21.7111 82.8151 22.5498C82.7969 23.0893 82.46 23.5971 81.9696 23.824L83.0345 25.5243H82.039L81.089 23.9701H80.4393V25.5243H79.609V21.1741L79.6071 21.176ZM81.1907 23.2633C81.5892 23.2746 81.9552 23.0288 81.9592 22.5991C81.9546 22.1689 81.5904 21.9207 81.1907 21.9274H80.4374V23.2633H81.1907ZM45.212 12.0907C45.132 10.7855 43.9649 9.74532 42.6766 9.70981C41.3684 9.73551 40.1665 10.7685 40.0481 12.0907H45.2167H45.212ZM37.2848 13.4063C37.2848 10.0855 39.5646 7.36914 42.7801 7.36914C45.9957 7.36914 47.9715 9.68704 47.9715 13.5363C47.9754 13.7412 47.9678 13.8747 47.9487 14.0787H39.9978C40.1089 15.5019 41.3999 16.6445 43.372 16.6445C44.7648 16.6347 46.1093 16.1743 47.2182 15.3323V17.9112C46.0418 18.7275 44.6504 19.163 43.2181 19.1588C41.6607 19.2489 40.1051 18.6708 38.9851 17.5848C37.8663 16.4999 37.2407 14.9643 37.2848 13.4063ZM77.6512 16.5145C79.3666 16.4375 80.5711 14.96 80.6065 13.2792C80.6428 11.5523 79.4618 10.0125 77.6391 10.0195C75.8663 10.0264 74.656 11.5807 74.6969 13.3019C74.7366 14.9694 75.8676 16.456 77.6522 16.5183L77.6512 16.5145ZM71.8025 13.2564C71.8372 10.113 74.4901 7.47851 77.6522 7.4792C80.7916 7.47988 83.4653 10.1375 83.4993 13.2573C83.5342 16.4664 80.7495 19.2362 77.5355 19.1611C74.3804 19.0873 71.7771 16.3796 71.8025 13.2516V13.2564ZM7.95508 9.10866C7.95486 8.28619 8.62068 7.62223 9.44315 7.6206L10.9367 7.61764L10.9367 19.0488H7.95773L7.95508 9.10866ZM18.7601 9.97452C17.4226 9.97452 16.4038 11.1131 16.4038 12.8418V19.0488H13.4218L13.4217 7.61764H16.4038V9.63844C17.0639 8.23101 18.4387 7.32765 20.0084 7.37673C22.4411 7.37673 23.8589 9.12725 23.8589 12.1017V19.0488H20.8768V12.8418C20.8768 11.0267 20.2059 9.97452 18.763 9.97452H18.7601ZM24.6773 7.61764H28.002L30.817 15.8182L33.7225 7.61764H37.0312L32.308 19.0488H29.3259L24.6811 7.61764H24.6773ZM54.9801 9.97452C53.6426 9.97452 52.6822 11.1131 52.6822 12.8418V19.0488H49.7004V7.61764H52.6852V9.60639C53.3425 8.20515 54.6546 7.32761 56.2255 7.37673C58.6583 7.37673 60.1403 9.12725 60.1403 12.1017V19.0488H57.1583V12.8418C57.1583 11.0267 56.4231 9.97452 54.9801 9.97452ZM61.8928 13.2564C61.854 10.9035 63.3113 8.69287 65.4983 7.80198C67.1336 7.13583 68.9739 7.29038 70.5793 7.96498V10.6131C69.4647 10.1088 68.0519 9.76557 66.8531 10.1871C65.5825 10.6338 64.7252 11.8983 64.7768 13.2384C64.7249 14.6025 65.6001 15.879 66.8815 16.3294C68.0621 16.7443 69.4605 16.427 70.5774 15.9709V18.619C68.9682 19.2525 67.1131 19.4007 65.4865 18.7407C63.2973 17.8523 61.8311 15.6291 61.8909 13.2573L61.8928 13.2564Z", fill: "#12121A" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S
|
|
5
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as $ from "react";
|
|
2
2
|
import L, { useContext as Oe, useRef as ce, forwardRef as ke, useState as Ke, useEffect as Me, useMemo as be, createRef as nn, Children as an } from "react";
|
|
3
|
-
import { I as on, R as Nt,
|
|
3
|
+
import { I as on, R as Nt, s as Vt, f as ee, d as T, ad as sn, ae as ln, w as Ye, n as Fr, c as ne, a1 as _t, a as _e, j as It, a4 as cn, Z as un, g as Er, m as Be, A as wr, t as Sr, h as m, V as Lt, W as Ce, X as Ht, l as De, Y as Fe, b as de, q as xr, E as dn, K as ue, af as ot, y as fn, u as je, Q as gn, ag as hn, o as mn, p as re, ah as vn, ai as pn, _ as B, aj as He, ak as pe, al as ve, a7 as tr, C as yn } from "./useId-DbfH3PlN.js";
|
|
4
4
|
import { R as bn } from "./index-1vDmwq0E.js";
|
|
5
5
|
import { a as $e } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
6
6
|
import { _ as Or, a as W } from "./assertThisInitialized-BUtkG-md.js";
|
|
@@ -199,7 +199,7 @@ function ie() {
|
|
|
199
199
|
};
|
|
200
200
|
1 in F && (y.catchLoc = F[1]), 2 in F && (y.finallyLoc = F[2], y.afterLoc = F[3]), this.tryEntries.push(y);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function j(F) {
|
|
203
203
|
var y = F.completion || {};
|
|
204
204
|
y.type = "normal", delete y.arg, F.completion = y;
|
|
205
205
|
}
|
|
@@ -263,7 +263,7 @@ function ie() {
|
|
|
263
263
|
}, t.values = K, A.prototype = {
|
|
264
264
|
constructor: A,
|
|
265
265
|
reset: function(y) {
|
|
266
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(
|
|
266
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(j), !y) for (var E in this) E.charAt(0) === "t" && i.call(this, E) && !isNaN(+E.slice(1)) && (this[E] = e);
|
|
267
267
|
},
|
|
268
268
|
stop: function() {
|
|
269
269
|
this.done = !0;
|
|
@@ -313,7 +313,7 @@ function ie() {
|
|
|
313
313
|
finish: function(y) {
|
|
314
314
|
for (var E = this.tryEntries.length - 1; E >= 0; --E) {
|
|
315
315
|
var x = this.tryEntries[E];
|
|
316
|
-
if (x.finallyLoc === y) return this.complete(x.completion, x.afterLoc),
|
|
316
|
+
if (x.finallyLoc === y) return this.complete(x.completion, x.afterLoc), j(x), d;
|
|
317
317
|
}
|
|
318
318
|
},
|
|
319
319
|
catch: function(y) {
|
|
@@ -323,7 +323,7 @@ function ie() {
|
|
|
323
323
|
var H = x.completion;
|
|
324
324
|
if (H.type === "throw") {
|
|
325
325
|
var N = H.arg;
|
|
326
|
-
|
|
326
|
+
j(x);
|
|
327
327
|
}
|
|
328
328
|
return N;
|
|
329
329
|
}
|
|
@@ -432,7 +432,7 @@ function pt() {
|
|
|
432
432
|
}, e);
|
|
433
433
|
})), pt.apply(this, arguments);
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const jn = (e) => {
|
|
436
436
|
const {
|
|
437
437
|
componentCls: t,
|
|
438
438
|
colorPrimary: r
|
|
@@ -459,7 +459,7 @@ const Bn = (e) => {
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
|
-
},
|
|
462
|
+
}, Bn = sn("Wave", (e) => [jn(e)]), Vr = `${ln}-wave-target`;
|
|
463
463
|
function st(e) {
|
|
464
464
|
return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
|
|
465
465
|
e !== "transparent";
|
|
@@ -500,9 +500,9 @@ const zn = (e) => {
|
|
|
500
500
|
borderTopLeftRadius: I,
|
|
501
501
|
borderTopRightRadius: M,
|
|
502
502
|
borderBottomLeftRadius: z,
|
|
503
|
-
borderBottomRightRadius:
|
|
503
|
+
borderBottomRightRadius: j
|
|
504
504
|
} = V;
|
|
505
|
-
c([I, M,
|
|
505
|
+
c([I, M, j, z].map((A) => lt(parseFloat(A))));
|
|
506
506
|
}
|
|
507
507
|
if ($.useEffect(() => {
|
|
508
508
|
if (r) {
|
|
@@ -585,7 +585,7 @@ const zn = (e) => {
|
|
|
585
585
|
component: i
|
|
586
586
|
} = e, {
|
|
587
587
|
getPrefixCls: n
|
|
588
|
-
} = Oe(_e), a = ce(null), o = n("wave"), [, s] =
|
|
588
|
+
} = Oe(_e), a = ce(null), o = n("wave"), [, s] = Bn(o), c = qn(a, ne(o, s), i);
|
|
589
589
|
if (L.useEffect(() => {
|
|
590
590
|
const l = a.current;
|
|
591
591
|
if (!l || l.nodeType !== 1 || r)
|
|
@@ -685,7 +685,7 @@ const Gn = (e) => {
|
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
}, Yn = Er("Space", (e) => {
|
|
688
|
-
const t =
|
|
688
|
+
const t = Be(e, {
|
|
689
689
|
spaceGapSmallSize: e.paddingXS,
|
|
690
690
|
spaceGapMiddleSize: e.padding,
|
|
691
691
|
spaceGapLargeSize: e.paddingLG
|
|
@@ -1407,7 +1407,7 @@ function Mr(e) {
|
|
|
1407
1407
|
};
|
|
1408
1408
|
}, []);
|
|
1409
1409
|
var p = function(S) {
|
|
1410
|
-
var w = ui(S), V = w.pageX, R = w.pageY, _ = r.current.getBoundingClientRect(), P = _.x, I = _.y, M = _.width, z = _.height,
|
|
1410
|
+
var w = ui(S), V = w.pageX, R = w.pageY, _ = r.current.getBoundingClientRect(), P = _.x, I = _.y, M = _.width, z = _.height, j = t.current.getBoundingClientRect(), A = j.width, K = j.height, F = A / 2, y = K / 2, E = Math.max(0, Math.min(V - P, M)) - F, x = Math.max(0, Math.min(R - I, z)) - y, H = {
|
|
1411
1411
|
x: E,
|
|
1412
1412
|
y: i === "x" ? f.y : x
|
|
1413
1413
|
};
|
|
@@ -1423,7 +1423,7 @@ function Mr(e) {
|
|
|
1423
1423
|
};
|
|
1424
1424
|
return [f, h];
|
|
1425
1425
|
}
|
|
1426
|
-
var
|
|
1426
|
+
var jr = function(t) {
|
|
1427
1427
|
var r = t.size, i = r === void 0 ? "default" : r, n = t.color, a = t.prefixCls;
|
|
1428
1428
|
return /* @__PURE__ */ L.createElement("div", {
|
|
1429
1429
|
className: ne("".concat(a, "-handler"), m({}, "".concat(a, "-handler-sm"), i === "small")),
|
|
@@ -1431,7 +1431,7 @@ var Br = function(t) {
|
|
|
1431
1431
|
backgroundColor: n
|
|
1432
1432
|
}
|
|
1433
1433
|
});
|
|
1434
|
-
},
|
|
1434
|
+
}, Br = function(t) {
|
|
1435
1435
|
var r = t.children, i = t.style, n = t.prefixCls;
|
|
1436
1436
|
return /* @__PURE__ */ L.createElement("div", {
|
|
1437
1437
|
className: "".concat(n, "-palette"),
|
|
@@ -1478,13 +1478,13 @@ var Br = function(t) {
|
|
|
1478
1478
|
className: "".concat(n, "-select"),
|
|
1479
1479
|
onMouseDown: v,
|
|
1480
1480
|
onTouchStart: v
|
|
1481
|
-
}, /* @__PURE__ */ L.createElement(
|
|
1481
|
+
}, /* @__PURE__ */ L.createElement(Br, {
|
|
1482
1482
|
prefixCls: n
|
|
1483
1483
|
}, /* @__PURE__ */ L.createElement(Dr, {
|
|
1484
1484
|
x: O.x,
|
|
1485
1485
|
y: O.y,
|
|
1486
1486
|
ref: c
|
|
1487
|
-
}, /* @__PURE__ */ L.createElement(
|
|
1487
|
+
}, /* @__PURE__ */ L.createElement(jr, {
|
|
1488
1488
|
color: r.toRgbString(),
|
|
1489
1489
|
prefixCls: n
|
|
1490
1490
|
})), /* @__PURE__ */ L.createElement("div", {
|
|
@@ -1559,13 +1559,13 @@ var Br = function(t) {
|
|
|
1559
1559
|
className: ne("".concat(r, "-slider"), "".concat(r, "-slider-").concat(c)),
|
|
1560
1560
|
onMouseDown: C,
|
|
1561
1561
|
onTouchStart: C
|
|
1562
|
-
}, /* @__PURE__ */ L.createElement(
|
|
1562
|
+
}, /* @__PURE__ */ L.createElement(Br, {
|
|
1563
1563
|
prefixCls: r
|
|
1564
1564
|
}, /* @__PURE__ */ L.createElement(Dr, {
|
|
1565
1565
|
x: d.x,
|
|
1566
1566
|
y: d.y,
|
|
1567
1567
|
ref: l
|
|
1568
|
-
}, /* @__PURE__ */ L.createElement(
|
|
1568
|
+
}, /* @__PURE__ */ L.createElement(jr, {
|
|
1569
1569
|
size: "small",
|
|
1570
1570
|
color: h.toHexString(),
|
|
1571
1571
|
prefixCls: r
|
|
@@ -1621,7 +1621,7 @@ var vi = [{
|
|
|
1621
1621
|
type: "alpha",
|
|
1622
1622
|
value: x
|
|
1623
1623
|
});
|
|
1624
|
-
},
|
|
1624
|
+
}, j = function(x) {
|
|
1625
1625
|
s && s(P(x));
|
|
1626
1626
|
}, A = function(x) {
|
|
1627
1627
|
s && s(I(x));
|
|
@@ -1644,7 +1644,7 @@ var vi = [{
|
|
|
1644
1644
|
max: 359,
|
|
1645
1645
|
value: w.getHue(),
|
|
1646
1646
|
onChange: M,
|
|
1647
|
-
onChangeComplete:
|
|
1647
|
+
onChangeComplete: j
|
|
1648
1648
|
})), !g && /* @__PURE__ */ L.createElement(h, $e({}, F, {
|
|
1649
1649
|
type: "alpha",
|
|
1650
1650
|
colors: [{
|
|
@@ -1935,7 +1935,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
1935
1935
|
onlyIconSize: r,
|
|
1936
1936
|
paddingBlock: i
|
|
1937
1937
|
} = e;
|
|
1938
|
-
return
|
|
1938
|
+
return Be(e, {
|
|
1939
1939
|
buttonPaddingHorizontal: t,
|
|
1940
1940
|
buttonPaddingVertical: i,
|
|
1941
1941
|
buttonIconOnlyFontSize: r
|
|
@@ -2006,7 +2006,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2006
2006
|
textAlign: "center",
|
|
2007
2007
|
backgroundImage: "none",
|
|
2008
2008
|
background: "transparent",
|
|
2009
|
-
border: `${
|
|
2009
|
+
border: `${je(e.lineWidth)} ${e.lineType} transparent`,
|
|
2010
2010
|
cursor: "pointer",
|
|
2011
2011
|
transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
|
|
2012
2012
|
userSelect: "none",
|
|
@@ -2095,11 +2095,11 @@ const Fi = new ue("antZoomIn", {
|
|
|
2095
2095
|
borderColor: t,
|
|
2096
2096
|
background: r
|
|
2097
2097
|
}, tt(e, i, n))
|
|
2098
|
-
}),
|
|
2098
|
+
}), jt = (e) => ({
|
|
2099
2099
|
[`&${e.componentCls}-variant-dashed`]: {
|
|
2100
2100
|
borderStyle: "dashed"
|
|
2101
2101
|
}
|
|
2102
|
-
}),
|
|
2102
|
+
}), Bt = (e, t, r, i) => ({
|
|
2103
2103
|
[`&${e.componentCls}-variant-filled`]: Object.assign({
|
|
2104
2104
|
boxShadow: "none",
|
|
2105
2105
|
background: t
|
|
@@ -2109,14 +2109,14 @@ const Fi = new ue("antZoomIn", {
|
|
|
2109
2109
|
color: t,
|
|
2110
2110
|
boxShadow: "none"
|
|
2111
2111
|
}, tt(e, i, n, r))
|
|
2112
|
-
}),
|
|
2112
|
+
}), ji = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
2113
2113
|
color: e.defaultColor,
|
|
2114
2114
|
boxShadow: e.defaultShadow
|
|
2115
2115
|
}, At(e, e.solidTextColor, e.colorBgSolid, {
|
|
2116
2116
|
background: e.colorBgSolidHover
|
|
2117
2117
|
}, {
|
|
2118
2118
|
background: e.colorBgSolidActive
|
|
2119
|
-
})),
|
|
2119
|
+
})), jt(e)), Bt(e, e.colorFillTertiary, {
|
|
2120
2120
|
background: e.colorFillSecondary
|
|
2121
2121
|
}, {
|
|
2122
2122
|
background: e.colorFill
|
|
@@ -2125,7 +2125,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2125
2125
|
background: e.linkHoverBg
|
|
2126
2126
|
}, {
|
|
2127
2127
|
color: e.colorLinkActive
|
|
2128
|
-
})), Tt(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)),
|
|
2128
|
+
})), Tt(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)), Bi = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
2129
2129
|
color: e.colorPrimary,
|
|
2130
2130
|
boxShadow: e.primaryShadow
|
|
2131
2131
|
}, Mt(e, e.colorPrimary, e.colorBgContainer, {
|
|
@@ -2136,7 +2136,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2136
2136
|
color: e.colorPrimaryTextActive,
|
|
2137
2137
|
borderColor: e.colorPrimaryActive,
|
|
2138
2138
|
background: e.colorBgContainer
|
|
2139
|
-
})),
|
|
2139
|
+
})), jt(e)), Bt(e, e.colorPrimaryBg, {
|
|
2140
2140
|
background: e.colorPrimaryBgHover
|
|
2141
2141
|
}, {
|
|
2142
2142
|
background: e.colorPrimaryBorder
|
|
@@ -2165,7 +2165,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2165
2165
|
}, {
|
|
2166
2166
|
color: e.colorErrorActive,
|
|
2167
2167
|
borderColor: e.colorErrorActive
|
|
2168
|
-
})),
|
|
2168
|
+
})), jt(e)), Bt(e, e.colorErrorBg, {
|
|
2169
2169
|
background: e.colorErrorBgFilledHover
|
|
2170
2170
|
}, {
|
|
2171
2171
|
background: e.colorErrorBgActive
|
|
@@ -2190,8 +2190,8 @@ const Fi = new ue("antZoomIn", {
|
|
|
2190
2190
|
componentCls: t
|
|
2191
2191
|
} = e;
|
|
2192
2192
|
return {
|
|
2193
|
-
[`${t}-color-default`]:
|
|
2194
|
-
[`${t}-color-primary`]:
|
|
2193
|
+
[`${t}-color-default`]: ji(e),
|
|
2194
|
+
[`${t}-color-primary`]: Bi(e),
|
|
2195
2195
|
[`${t}-color-dangerous`]: Di(e)
|
|
2196
2196
|
};
|
|
2197
2197
|
}, Wi = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, Mt(e, e.defaultBorderColor, e.defaultBg, {
|
|
@@ -2237,7 +2237,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2237
2237
|
fontSize: n,
|
|
2238
2238
|
lineHeight: a,
|
|
2239
2239
|
height: i,
|
|
2240
|
-
padding: `${
|
|
2240
|
+
padding: `${je(u)} ${je(s)}`,
|
|
2241
2241
|
borderRadius: o,
|
|
2242
2242
|
[`&${l}`]: {
|
|
2243
2243
|
width: i,
|
|
@@ -2272,13 +2272,13 @@ const Fi = new ue("antZoomIn", {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
];
|
|
2274
2274
|
}, qi = (e) => {
|
|
2275
|
-
const t =
|
|
2275
|
+
const t = Be(e, {
|
|
2276
2276
|
fontSize: e.contentFontSize,
|
|
2277
2277
|
lineHeight: e.contentLineHeight
|
|
2278
2278
|
});
|
|
2279
2279
|
return Dt(t, e.componentCls);
|
|
2280
2280
|
}, Gi = (e) => {
|
|
2281
|
-
const t =
|
|
2281
|
+
const t = Be(e, {
|
|
2282
2282
|
controlHeight: e.controlHeightSM,
|
|
2283
2283
|
fontSize: e.contentFontSizeSM,
|
|
2284
2284
|
lineHeight: e.contentLineHeightSM,
|
|
@@ -2290,7 +2290,7 @@ const Fi = new ue("antZoomIn", {
|
|
|
2290
2290
|
});
|
|
2291
2291
|
return Dt(t, `${e.componentCls}-sm`);
|
|
2292
2292
|
}, Ui = (e) => {
|
|
2293
|
-
const t =
|
|
2293
|
+
const t = Be(e, {
|
|
2294
2294
|
controlHeight: e.controlHeightLG,
|
|
2295
2295
|
fontSize: e.contentFontSizeLG,
|
|
2296
2296
|
lineHeight: e.contentLineHeightLG,
|
|
@@ -2453,7 +2453,7 @@ const ta = (e) => {
|
|
|
2453
2453
|
insetInlineStart: r(e.lineWidth).mul(-1).equal(),
|
|
2454
2454
|
display: "inline-block",
|
|
2455
2455
|
width: e.lineWidth,
|
|
2456
|
-
height: `calc(100% + ${
|
|
2456
|
+
height: `calc(100% + ${je(e.lineWidth)} * 2)`,
|
|
2457
2457
|
backgroundColor: e.colorPrimaryHover,
|
|
2458
2458
|
content: '""'
|
|
2459
2459
|
}
|
|
@@ -2469,7 +2469,7 @@ const ta = (e) => {
|
|
|
2469
2469
|
top: r(e.lineWidth).mul(-1).equal(),
|
|
2470
2470
|
insetInlineStart: r(e.lineWidth).mul(-1).equal(),
|
|
2471
2471
|
display: "inline-block",
|
|
2472
|
-
width: `calc(100% + ${
|
|
2472
|
+
width: `calc(100% + ${je(e.lineWidth)} * 2)`,
|
|
2473
2473
|
height: e.lineWidth,
|
|
2474
2474
|
backgroundColor: e.colorPrimaryHover,
|
|
2475
2475
|
content: '""'
|
|
@@ -2539,12 +2539,12 @@ const aa = {
|
|
|
2539
2539
|
classNames: _,
|
|
2540
2540
|
style: P = {},
|
|
2541
2541
|
autoInsertSpace: I
|
|
2542
|
-
} = e, M = na(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), z = l || "default", [
|
|
2542
|
+
} = e, M = na(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace"]), z = l || "default", [j, A] = be(() => {
|
|
2543
2543
|
if (c && u)
|
|
2544
2544
|
return [c, u];
|
|
2545
2545
|
const J = aa[z] || [];
|
|
2546
2546
|
return f ? ["danger", J[1]] : J;
|
|
2547
|
-
}, [l, c, u, f]), F =
|
|
2547
|
+
}, [l, c, u, f]), F = j === "danger" ? "dangerous" : j, {
|
|
2548
2548
|
getPrefixCls: y,
|
|
2549
2549
|
direction: E,
|
|
2550
2550
|
button: x
|
|
@@ -2827,7 +2827,7 @@ function X(e, t) {
|
|
|
2827
2827
|
function fa(e, t, r) {
|
|
2828
2828
|
var i = [], n = 0, a = e.length;
|
|
2829
2829
|
function o(s) {
|
|
2830
|
-
i.push.apply(i,
|
|
2830
|
+
i.push.apply(i, B(s || [])), n++, n === a && r(i);
|
|
2831
2831
|
}
|
|
2832
2832
|
e.forEach(function(s) {
|
|
2833
2833
|
t(s, o);
|
|
@@ -2848,7 +2848,7 @@ function dr(e, t, r) {
|
|
|
2848
2848
|
function ga(e) {
|
|
2849
2849
|
var t = [];
|
|
2850
2850
|
return Object.keys(e).forEach(function(r) {
|
|
2851
|
-
t.push.apply(t,
|
|
2851
|
+
t.push.apply(t, B(e[r] || []));
|
|
2852
2852
|
}), t;
|
|
2853
2853
|
}
|
|
2854
2854
|
var fr = /* @__PURE__ */ function(e) {
|
|
@@ -3207,7 +3207,7 @@ var We = /* @__PURE__ */ function() {
|
|
|
3207
3207
|
function C(b) {
|
|
3208
3208
|
if (Array.isArray(b)) {
|
|
3209
3209
|
var S;
|
|
3210
|
-
p = (S = p).concat.apply(S,
|
|
3210
|
+
p = (S = p).concat.apply(S, B(b));
|
|
3211
3211
|
} else
|
|
3212
3212
|
p.push(b);
|
|
3213
3213
|
}
|
|
@@ -3242,7 +3242,7 @@ var We = /* @__PURE__ */ function() {
|
|
|
3242
3242
|
function h(R, _) {
|
|
3243
3243
|
return T(T({}, _), {}, {
|
|
3244
3244
|
fullField: "".concat(d.fullField, ".").concat(R),
|
|
3245
|
-
fullFields: d.fullFields ? [].concat(
|
|
3245
|
+
fullFields: d.fullFields ? [].concat(B(d.fullFields), [R]) : [R]
|
|
3246
3246
|
});
|
|
3247
3247
|
}
|
|
3248
3248
|
function b() {
|
|
@@ -3257,18 +3257,18 @@ var We = /* @__PURE__ */ function() {
|
|
|
3257
3257
|
if (d.required && !v.value)
|
|
3258
3258
|
return d.message !== void 0 ? P = [].concat(d.message).map(gr(d, o)) : s.error && (P = [s.error(d, se(s.messages.required, d.field))]), p(P);
|
|
3259
3259
|
var I = {};
|
|
3260
|
-
d.defaultField && Object.keys(v.value).map(function(
|
|
3261
|
-
I[
|
|
3260
|
+
d.defaultField && Object.keys(v.value).map(function(j) {
|
|
3261
|
+
I[j] = d.defaultField;
|
|
3262
3262
|
}), I = T(T({}, I), v.rule.fields);
|
|
3263
3263
|
var M = {};
|
|
3264
|
-
Object.keys(I).forEach(function(
|
|
3265
|
-
var A = I[
|
|
3266
|
-
M[
|
|
3264
|
+
Object.keys(I).forEach(function(j) {
|
|
3265
|
+
var A = I[j], K = Array.isArray(A) ? A : [A];
|
|
3266
|
+
M[j] = K.map(h.bind(null, j));
|
|
3267
3267
|
});
|
|
3268
3268
|
var z = new e(M);
|
|
3269
|
-
z.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), z.validate(v.value, v.rule.options || s, function(
|
|
3269
|
+
z.messages(s.messages), v.rule.options && (v.rule.options.messages = s.messages, v.rule.options.error = s.error), z.validate(v.value, v.rule.options || s, function(j) {
|
|
3270
3270
|
var A = [];
|
|
3271
|
-
P && P.length && A.push.apply(A,
|
|
3271
|
+
P && P.length && A.push.apply(A, B(P)), j && j.length && A.push.apply(A, B(j)), p(A.length ? A : null);
|
|
3272
3272
|
});
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
@@ -3416,7 +3416,7 @@ function xt() {
|
|
|
3416
3416
|
}));
|
|
3417
3417
|
case 21:
|
|
3418
3418
|
return g = d.sent, d.abrupt("return", g.reduce(function(C, h) {
|
|
3419
|
-
return [].concat(
|
|
3419
|
+
return [].concat(B(C), B(h));
|
|
3420
3420
|
}, []));
|
|
3421
3421
|
case 23:
|
|
3422
3422
|
return O = T(T({}, i), {}, {
|
|
@@ -3432,7 +3432,7 @@ function xt() {
|
|
|
3432
3432
|
}, e, null, [[10, 15]]);
|
|
3433
3433
|
})), xt.apply(this, arguments);
|
|
3434
3434
|
}
|
|
3435
|
-
function
|
|
3435
|
+
function ja(e, t, r, i, n, a) {
|
|
3436
3436
|
var o = e.join("."), s = r.map(function(l, f) {
|
|
3437
3437
|
var g = l.validator, O = T(T({}, l), {}, {
|
|
3438
3438
|
ruleIndex: f
|
|
@@ -3502,7 +3502,7 @@ function Ba(e, t, r, i, n, a) {
|
|
|
3502
3502
|
};
|
|
3503
3503
|
});
|
|
3504
3504
|
});
|
|
3505
|
-
c = (n ? Da(u) :
|
|
3505
|
+
c = (n ? Da(u) : Ba(u)).then(function(l) {
|
|
3506
3506
|
return Promise.reject(l);
|
|
3507
3507
|
});
|
|
3508
3508
|
}
|
|
@@ -3510,7 +3510,7 @@ function Ba(e, t, r, i, n, a) {
|
|
|
3510
3510
|
return l;
|
|
3511
3511
|
}), c;
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function Ba(e) {
|
|
3514
3514
|
return Ot.apply(this, arguments);
|
|
3515
3515
|
}
|
|
3516
3516
|
function Ot() {
|
|
@@ -3519,7 +3519,7 @@ function Ot() {
|
|
|
3519
3519
|
for (; ; ) switch (i.prev = i.next) {
|
|
3520
3520
|
case 0:
|
|
3521
3521
|
return i.abrupt("return", Promise.all(t).then(function(n) {
|
|
3522
|
-
var a, o = (a = []).concat.apply(a,
|
|
3522
|
+
var a, o = (a = []).concat.apply(a, B(n));
|
|
3523
3523
|
return o;
|
|
3524
3524
|
}));
|
|
3525
3525
|
case 1:
|
|
@@ -3580,7 +3580,7 @@ function za(e, t) {
|
|
|
3580
3580
|
if (!e && t || e && !t || !e || !t || ee(e) !== "object" || ee(t) !== "object")
|
|
3581
3581
|
return !1;
|
|
3582
3582
|
var r = Object.keys(e), i = Object.keys(t), n = new Set([].concat(r, i));
|
|
3583
|
-
return
|
|
3583
|
+
return B(n).every(function(a) {
|
|
3584
3584
|
var o = e[a], s = t[a];
|
|
3585
3585
|
return typeof o == "function" && typeof s == "function" ? !0 : o === s;
|
|
3586
3586
|
});
|
|
@@ -3594,7 +3594,7 @@ function br(e, t, r) {
|
|
|
3594
3594
|
if (t < 0 || t >= i || r < 0 || r >= i)
|
|
3595
3595
|
return e;
|
|
3596
3596
|
var n = e[t], a = t - r;
|
|
3597
|
-
return a > 0 ? [].concat(
|
|
3597
|
+
return a > 0 ? [].concat(B(e.slice(0, r)), [n], B(e.slice(r, t)), B(e.slice(t + 1, i))) : a < 0 ? [].concat(B(e.slice(0, t)), B(e.slice(t + 1, r + 1)), [n], B(e.slice(r + 1, i))) : e;
|
|
3598
3598
|
}
|
|
3599
3599
|
var qa = ["name"], le = [];
|
|
3600
3600
|
function ht(e, t, r, i, n, a) {
|
|
@@ -3614,7 +3614,7 @@ var Wt = /* @__PURE__ */ function(e) {
|
|
|
3614
3614
|
n.cancelRegisterFunc && n.cancelRegisterFunc(l, u, Z(f)), n.cancelRegisterFunc = null;
|
|
3615
3615
|
}), m(W(n), "getNamePath", function() {
|
|
3616
3616
|
var c = n.props, u = c.name, l = c.fieldContext, f = l.prefixName, g = f === void 0 ? [] : f;
|
|
3617
|
-
return u !== void 0 ? [].concat(
|
|
3617
|
+
return u !== void 0 ? [].concat(B(g), B(u)) : [];
|
|
3618
3618
|
}), m(W(n), "getRules", function() {
|
|
3619
3619
|
var c = n.props, u = c.rules, l = u === void 0 ? [] : u, f = c.fieldContext;
|
|
3620
3620
|
return l.map(function(g) {
|
|
@@ -3719,18 +3719,18 @@ var Wt = /* @__PURE__ */ function(e) {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
return P.abrupt("return", []);
|
|
3721
3721
|
case 10:
|
|
3722
|
-
return R =
|
|
3722
|
+
return R = ja(u, l, V, c, b, S), R.catch(function(I) {
|
|
3723
3723
|
return I;
|
|
3724
3724
|
}).then(function() {
|
|
3725
3725
|
var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : le;
|
|
3726
3726
|
if (n.validatePromise === p) {
|
|
3727
3727
|
var M;
|
|
3728
3728
|
n.validatePromise = null;
|
|
3729
|
-
var z = [],
|
|
3729
|
+
var z = [], j = [];
|
|
3730
3730
|
(M = I.forEach) === null || M === void 0 || M.call(I, function(A) {
|
|
3731
3731
|
var K = A.rule.warningOnly, F = A.errors, y = F === void 0 ? le : F;
|
|
3732
|
-
K ?
|
|
3733
|
-
}), n.errors = z, n.warnings =
|
|
3732
|
+
K ? j.push.apply(j, B(y)) : z.push.apply(z, B(y));
|
|
3733
|
+
}), n.errors = z, n.warnings = j, n.triggerMetaEvent(), n.reRender();
|
|
3734
3734
|
}
|
|
3735
3735
|
}), P.abrupt("return", R);
|
|
3736
3736
|
case 13:
|
|
@@ -3806,8 +3806,8 @@ var Wt = /* @__PURE__ */ function(e) {
|
|
|
3806
3806
|
value: A
|
|
3807
3807
|
}), I && I.apply(void 0, F);
|
|
3808
3808
|
};
|
|
3809
|
-
var
|
|
3810
|
-
return
|
|
3809
|
+
var j = bt(h || []);
|
|
3810
|
+
return j.forEach(function(A) {
|
|
3811
3811
|
var K = z[A];
|
|
3812
3812
|
z[A] = function() {
|
|
3813
3813
|
K && K.apply(void 0, arguments);
|
|
@@ -3876,7 +3876,7 @@ function Ga(e) {
|
|
|
3876
3876
|
id: 0
|
|
3877
3877
|
}), l = u.current, f = $.useMemo(function() {
|
|
3878
3878
|
var p = Z(s.prefixName) || [];
|
|
3879
|
-
return [].concat(
|
|
3879
|
+
return [].concat(B(p), B(Z(t)));
|
|
3880
3880
|
}, [s.prefixName, t]), g = $.useMemo(function() {
|
|
3881
3881
|
return T(T({}, s), {}, {
|
|
3882
3882
|
prefixName: f
|
|
@@ -3914,14 +3914,14 @@ function Ga(e) {
|
|
|
3914
3914
|
}, V = {
|
|
3915
3915
|
add: function(P, I) {
|
|
3916
3916
|
var M = w();
|
|
3917
|
-
I >= 0 && I <= M.length ? (l.keys = [].concat(
|
|
3917
|
+
I >= 0 && I <= M.length ? (l.keys = [].concat(B(l.keys.slice(0, I)), [l.id], B(l.keys.slice(I))), b([].concat(B(M.slice(0, I)), [P], B(M.slice(I))))) : (process.env.NODE_ENV !== "production" && (I < 0 || I > M.length) && re(!1, "The second parameter of the add function should be a valid positive number."), l.keys = [].concat(B(l.keys), [l.id]), b([].concat(B(M), [P]))), l.id += 1;
|
|
3918
3918
|
},
|
|
3919
3919
|
remove: function(P) {
|
|
3920
3920
|
var I = w(), M = new Set(Array.isArray(P) ? P : [P]);
|
|
3921
|
-
M.size <= 0 || (l.keys = l.keys.filter(function(z,
|
|
3922
|
-
return !M.has(
|
|
3923
|
-
}), b(I.filter(function(z,
|
|
3924
|
-
return !M.has(
|
|
3921
|
+
M.size <= 0 || (l.keys = l.keys.filter(function(z, j) {
|
|
3922
|
+
return !M.has(j);
|
|
3923
|
+
}), b(I.filter(function(z, j) {
|
|
3924
|
+
return !M.has(j);
|
|
3925
3925
|
})));
|
|
3926
3926
|
},
|
|
3927
3927
|
move: function(P, I) {
|
|
@@ -3988,7 +3988,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
3988
3988
|
}, {
|
|
3989
3989
|
key: "map",
|
|
3990
3990
|
value: function(r) {
|
|
3991
|
-
return
|
|
3991
|
+
return B(this.kvs.entries()).map(function(i) {
|
|
3992
3992
|
var n = de(i, 2), a = n[0], o = n[1], s = a.split(Xr);
|
|
3993
3993
|
return r({
|
|
3994
3994
|
key: s.map(function(c) {
|
|
@@ -4184,7 +4184,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
4184
4184
|
C.every(function(h, b) {
|
|
4185
4185
|
return d[b] === h;
|
|
4186
4186
|
}) && g.update(C, function(h) {
|
|
4187
|
-
return [].concat(
|
|
4187
|
+
return [].concat(B(h), [p]);
|
|
4188
4188
|
});
|
|
4189
4189
|
});
|
|
4190
4190
|
});
|
|
@@ -4236,7 +4236,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
4236
4236
|
re(!1, "Multiple Field with path '".concat(g.join("."), "' set 'initialValue'. Can not decide which one to pick."));
|
|
4237
4237
|
else if (v) {
|
|
4238
4238
|
var p = r.getFieldValue(g), d = l.isListField();
|
|
4239
|
-
!d && (!i.skipExist || p === void 0) && r.updateStore(ve(r.store, g,
|
|
4239
|
+
!d && (!i.skipExist || p === void 0) && r.updateStore(ve(r.store, g, B(v)[0].value));
|
|
4240
4240
|
}
|
|
4241
4241
|
}
|
|
4242
4242
|
}
|
|
@@ -4246,7 +4246,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
4246
4246
|
var u = n.get(c);
|
|
4247
4247
|
if (u) {
|
|
4248
4248
|
var l;
|
|
4249
|
-
(l = s).push.apply(l,
|
|
4249
|
+
(l = s).push.apply(l, B(B(u).map(function(f) {
|
|
4250
4250
|
return f.entity;
|
|
4251
4251
|
})));
|
|
4252
4252
|
}
|
|
@@ -4362,7 +4362,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
4362
4362
|
var a = r.getDependencyChildrenFields(n);
|
|
4363
4363
|
return a.length && r.validateFields(a), r.notifyObservers(i, a, {
|
|
4364
4364
|
type: "dependenciesUpdate",
|
|
4365
|
-
relatedFields: [n].concat(
|
|
4365
|
+
relatedFields: [n].concat(B(a))
|
|
4366
4366
|
}), a;
|
|
4367
4367
|
}), m(this, "updateValue", function(i, n) {
|
|
4368
4368
|
var a = Z(i), o = r.store;
|
|
@@ -4375,7 +4375,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
4375
4375
|
var u = yr(r.store, [a]);
|
|
4376
4376
|
c(u, r.getFieldsValue());
|
|
4377
4377
|
}
|
|
4378
|
-
r.triggerOnFieldsChange([a].concat(
|
|
4378
|
+
r.triggerOnFieldsChange([a].concat(B(s)));
|
|
4379
4379
|
}), m(this, "setFieldsValue", function(i) {
|
|
4380
4380
|
r.warningUnhooked();
|
|
4381
4381
|
var n = r.store;
|
|
@@ -4456,7 +4456,7 @@ var xe = /* @__PURE__ */ function() {
|
|
|
4456
4456
|
var V, R = [], _ = [];
|
|
4457
4457
|
return (V = w.forEach) === null || V === void 0 || V.call(w, function(P) {
|
|
4458
4458
|
var I = P.rule.warningOnly, M = P.errors;
|
|
4459
|
-
I ? _.push.apply(_,
|
|
4459
|
+
I ? _.push.apply(_, B(M)) : R.push.apply(R, B(M));
|
|
4460
4460
|
}), R.length ? Promise.reject({
|
|
4461
4461
|
name: b,
|
|
4462
4462
|
errors: R,
|
|
@@ -4568,7 +4568,7 @@ var Pt = /* @__PURE__ */ $.createContext({
|
|
|
4568
4568
|
})
|
|
4569
4569
|
}, a);
|
|
4570
4570
|
}, Xa = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"], ka = function(t, r) {
|
|
4571
|
-
var i = t.name, n = t.initialValues, a = t.fields, o = t.form, s = t.preserve, c = t.children, u = t.component, l = u === void 0 ? "form" : u, f = t.validateMessages, g = t.validateTrigger, O = g === void 0 ? "onChange" : g, v = t.onValuesChange, p = t.onFieldsChange, d = t.onFinish, C = t.onFinishFailed, h = t.clearOnDestroy, b = De(t, Xa), S = $.useRef(null), w = $.useContext(Pt), V = kr(o), R = de(V, 1), _ = R[0], P = _.getInternalHooks(ye), I = P.useSubscribe, M = P.setInitialValues, z = P.setCallbacks,
|
|
4571
|
+
var i = t.name, n = t.initialValues, a = t.fields, o = t.form, s = t.preserve, c = t.children, u = t.component, l = u === void 0 ? "form" : u, f = t.validateMessages, g = t.validateTrigger, O = g === void 0 ? "onChange" : g, v = t.onValuesChange, p = t.onFieldsChange, d = t.onFinish, C = t.onFinishFailed, h = t.clearOnDestroy, b = De(t, Xa), S = $.useRef(null), w = $.useContext(Pt), V = kr(o), R = de(V, 1), _ = R[0], P = _.getInternalHooks(ye), I = P.useSubscribe, M = P.setInitialValues, z = P.setCallbacks, j = P.setValidateMessages, A = P.setPreserve, K = P.destroyForm;
|
|
4572
4572
|
$.useImperativeHandle(r, function() {
|
|
4573
4573
|
return T(T({}, _), {}, {
|
|
4574
4574
|
nativeElement: S.current
|
|
@@ -4577,7 +4577,7 @@ var Pt = /* @__PURE__ */ $.createContext({
|
|
|
4577
4577
|
return w.registerForm(i, _), function() {
|
|
4578
4578
|
w.unregisterForm(i);
|
|
4579
4579
|
};
|
|
4580
|
-
}, [w, _, i]),
|
|
4580
|
+
}, [w, _, i]), j(T(T({}, w.validateMessages), f)), z({
|
|
4581
4581
|
onValuesChange: v,
|
|
4582
4582
|
onFieldsChange: function(q) {
|
|
4583
4583
|
if (w.triggerFormChange(i, q), p) {
|
|
@@ -4660,11 +4660,11 @@ function Qa() {
|
|
|
4660
4660
|
function() {
|
|
4661
4661
|
if (d) {
|
|
4662
4662
|
var b = p.getFieldsValue, S = p.getInternalHooks, w = S(ye), V = w.registerWatch, R = function(M, z) {
|
|
4663
|
-
var
|
|
4664
|
-
return typeof i == "function" ? i(
|
|
4663
|
+
var j = o.preserve ? z : M;
|
|
4664
|
+
return typeof i == "function" ? i(j) : pe(j, h.current);
|
|
4665
4665
|
}, _ = V(function(I, M) {
|
|
4666
|
-
var z = R(I, M),
|
|
4667
|
-
O.current !==
|
|
4666
|
+
var z = R(I, M), j = Cr(z);
|
|
4667
|
+
O.current !== j && (O.current = j, f(z));
|
|
4668
4668
|
}), P = R(b(), b(!0));
|
|
4669
4669
|
return l !== P && f(P), _;
|
|
4670
4670
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as F } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { I as G, c as p, g as W, m as _, K as D, u as X,
|
|
3
|
+
import { I as G, c as p, g as W, m as _, K as D, u as X, a as k, o as z, _ as K } from "./useId-DbfH3PlN.js";
|
|
4
4
|
var J = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, Q = function(t, s) {
|
|
5
5
|
return /* @__PURE__ */ i.createElement(G, F({}, t, {
|
|
6
6
|
ref: s,
|