@gisce/react-ooui 1.1.27-rc.0 → 1.1.28-rc.0
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/react-ooui.es.js
CHANGED
|
@@ -531,29 +531,33 @@ const {
|
|
|
531
531
|
STOCK_PREFERENCES: "Setting"
|
|
532
532
|
}, iconMapper = (e) => {
|
|
533
533
|
if (e.indexOf("gtk-") !== -1) {
|
|
534
|
-
const r = `STOCK_${e.replace("gtk-", "").replace(
|
|
534
|
+
const r = `STOCK_${e.replace("gtk-", "").replace(/\-/g, "_").toUpperCase()}`;
|
|
535
535
|
return getIconForKey(iconMapping[r]);
|
|
536
536
|
}
|
|
537
537
|
return iconMapping.hasOwnProperty(e) ? getIconForKey(iconMapping[e]) : getIconForKey(e);
|
|
538
538
|
};
|
|
539
|
-
function
|
|
540
|
-
|
|
541
|
-
(
|
|
539
|
+
function toCamelCase(e) {
|
|
540
|
+
return `${e.split("-").map(
|
|
541
|
+
(t) => t.replace(
|
|
542
542
|
/\w\S*/g,
|
|
543
|
-
(
|
|
543
|
+
(r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()
|
|
544
544
|
)
|
|
545
|
-
).join("")}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
545
|
+
).join("")}`;
|
|
546
|
+
}
|
|
547
|
+
function getIconForKey(e) {
|
|
548
|
+
e.indexOf("-") !== -1 && (e = toCamelCase(e));
|
|
549
|
+
const t = `${e}Outlined`;
|
|
550
|
+
if (AntIcons[t])
|
|
551
|
+
return AntIcons[t];
|
|
552
|
+
const r = `Icon${e}`;
|
|
553
|
+
if (TablerIcons[r]) {
|
|
554
|
+
const n = () => React__default.createElement(TablerIcons[r], {
|
|
551
555
|
fill: "transparent",
|
|
552
556
|
height: 17,
|
|
553
557
|
width: 17
|
|
554
558
|
});
|
|
555
559
|
return () => React__default.createElement(AntIcons__default, {
|
|
556
|
-
component:
|
|
560
|
+
component: n
|
|
557
561
|
});
|
|
558
562
|
}
|
|
559
563
|
}
|
|
@@ -644,8 +648,8 @@ const Button = (e) => {
|
|
|
644
648
|
if (b)
|
|
645
649
|
return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
|
|
646
650
|
if (c) {
|
|
647
|
-
const
|
|
648
|
-
return
|
|
651
|
+
const O = iconMapper(c);
|
|
652
|
+
return O && /* @__PURE__ */ jsx(O, {});
|
|
649
653
|
}
|
|
650
654
|
}
|
|
651
655
|
async function _() {
|
|
@@ -1138,8 +1142,8 @@ function requireReactIs_production_min() {
|
|
|
1138
1142
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
1139
1143
|
function x(C) {
|
|
1140
1144
|
if (typeof C == "object" && C !== null) {
|
|
1141
|
-
var
|
|
1142
|
-
switch (
|
|
1145
|
+
var O = C.$$typeof;
|
|
1146
|
+
switch (O) {
|
|
1143
1147
|
case t:
|
|
1144
1148
|
switch (C = C.type, C) {
|
|
1145
1149
|
case l:
|
|
@@ -1158,11 +1162,11 @@ function requireReactIs_production_min() {
|
|
|
1158
1162
|
case s:
|
|
1159
1163
|
return C;
|
|
1160
1164
|
default:
|
|
1161
|
-
return
|
|
1165
|
+
return O;
|
|
1162
1166
|
}
|
|
1163
1167
|
}
|
|
1164
1168
|
case r:
|
|
1165
|
-
return
|
|
1169
|
+
return O;
|
|
1166
1170
|
}
|
|
1167
1171
|
}
|
|
1168
1172
|
}
|
|
@@ -1210,15 +1214,15 @@ var hasRequiredReactIs_development;
|
|
|
1210
1214
|
function requireReactIs_development() {
|
|
1211
1215
|
return hasRequiredReactIs_development || (hasRequiredReactIs_development = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1212
1216
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
1213
|
-
function x(
|
|
1214
|
-
return typeof
|
|
1217
|
+
function x(E) {
|
|
1218
|
+
return typeof E == "string" || typeof E == "function" || E === n || E === c || E === o || E === a || E === f || E === p || typeof E == "object" && E !== null && (E.$$typeof === m || E.$$typeof === h || E.$$typeof === s || E.$$typeof === u || E.$$typeof === d || E.$$typeof === b || E.$$typeof === g || E.$$typeof === v || E.$$typeof === y);
|
|
1215
1219
|
}
|
|
1216
|
-
function _(
|
|
1217
|
-
if (typeof
|
|
1218
|
-
var X =
|
|
1220
|
+
function _(E) {
|
|
1221
|
+
if (typeof E == "object" && E !== null) {
|
|
1222
|
+
var X = E.$$typeof;
|
|
1219
1223
|
switch (X) {
|
|
1220
1224
|
case t:
|
|
1221
|
-
var J =
|
|
1225
|
+
var J = E.type;
|
|
1222
1226
|
switch (J) {
|
|
1223
1227
|
case l:
|
|
1224
1228
|
case c:
|
|
@@ -1245,47 +1249,47 @@ function requireReactIs_development() {
|
|
|
1245
1249
|
}
|
|
1246
1250
|
}
|
|
1247
1251
|
}
|
|
1248
|
-
var C = l,
|
|
1249
|
-
function W(
|
|
1250
|
-
return A || (A = !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.")), Y(
|
|
1252
|
+
var C = l, O = c, F = u, w = s, S = t, T = d, I = n, q = m, M = h, D = r, j = o, N = a, V = f, A = !1;
|
|
1253
|
+
function W(E) {
|
|
1254
|
+
return A || (A = !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.")), Y(E) || _(E) === l;
|
|
1251
1255
|
}
|
|
1252
|
-
function Y(
|
|
1253
|
-
return _(
|
|
1256
|
+
function Y(E) {
|
|
1257
|
+
return _(E) === c;
|
|
1254
1258
|
}
|
|
1255
|
-
function z(
|
|
1256
|
-
return _(
|
|
1259
|
+
function z(E) {
|
|
1260
|
+
return _(E) === u;
|
|
1257
1261
|
}
|
|
1258
|
-
function H(
|
|
1259
|
-
return _(
|
|
1262
|
+
function H(E) {
|
|
1263
|
+
return _(E) === s;
|
|
1260
1264
|
}
|
|
1261
|
-
function K(
|
|
1262
|
-
return typeof
|
|
1265
|
+
function K(E) {
|
|
1266
|
+
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
1263
1267
|
}
|
|
1264
|
-
function U(
|
|
1265
|
-
return _(
|
|
1268
|
+
function U(E) {
|
|
1269
|
+
return _(E) === d;
|
|
1266
1270
|
}
|
|
1267
|
-
function B(
|
|
1268
|
-
return _(
|
|
1271
|
+
function B(E) {
|
|
1272
|
+
return _(E) === n;
|
|
1269
1273
|
}
|
|
1270
|
-
function k(
|
|
1271
|
-
return _(
|
|
1274
|
+
function k(E) {
|
|
1275
|
+
return _(E) === m;
|
|
1272
1276
|
}
|
|
1273
|
-
function $(
|
|
1274
|
-
return _(
|
|
1277
|
+
function $(E) {
|
|
1278
|
+
return _(E) === h;
|
|
1275
1279
|
}
|
|
1276
|
-
function L(
|
|
1277
|
-
return _(
|
|
1280
|
+
function L(E) {
|
|
1281
|
+
return _(E) === r;
|
|
1278
1282
|
}
|
|
1279
|
-
function G(
|
|
1280
|
-
return _(
|
|
1283
|
+
function G(E) {
|
|
1284
|
+
return _(E) === o;
|
|
1281
1285
|
}
|
|
1282
|
-
function Z(
|
|
1283
|
-
return _(
|
|
1286
|
+
function Z(E) {
|
|
1287
|
+
return _(E) === a;
|
|
1284
1288
|
}
|
|
1285
|
-
function P(
|
|
1286
|
-
return _(
|
|
1289
|
+
function P(E) {
|
|
1290
|
+
return _(E) === f;
|
|
1287
1291
|
}
|
|
1288
|
-
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode =
|
|
1292
|
+
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = F, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = I, reactIs_development.Lazy = q, reactIs_development.Memo = M, reactIs_development.Portal = D, reactIs_development.Profiler = j, reactIs_development.StrictMode = N, reactIs_development.Suspense = V, reactIs_development.isAsyncMode = W, reactIs_development.isConcurrentMode = Y, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = U, reactIs_development.isFragment = B, reactIs_development.isLazy = k, reactIs_development.isMemo = $, reactIs_development.isPortal = L, reactIs_development.isProfiler = G, reactIs_development.isStrictMode = Z, reactIs_development.isSuspense = P, reactIs_development.isValidElementType = x, reactIs_development.typeOf = _;
|
|
1289
1293
|
}()), reactIs_development;
|
|
1290
1294
|
}
|
|
1291
1295
|
var hasRequiredReactIs;
|
|
@@ -2776,12 +2780,12 @@ function requireUtils() {
|
|
|
2776
2780
|
function p(v, x, _) {
|
|
2777
2781
|
return _ ? /* @__PURE__ */ o.default.createElement(v.tag, (0, r.default)((0, r.default)({
|
|
2778
2782
|
key: x
|
|
2779
|
-
}, f(v.attrs)), _), (v.children || []).map(function(C,
|
|
2780
|
-
return p(C, "".concat(x, "-").concat(v.tag, "-").concat(
|
|
2783
|
+
}, f(v.attrs)), _), (v.children || []).map(function(C, O) {
|
|
2784
|
+
return p(C, "".concat(x, "-").concat(v.tag, "-").concat(O));
|
|
2781
2785
|
})) : /* @__PURE__ */ o.default.createElement(v.tag, (0, r.default)({
|
|
2782
2786
|
key: x
|
|
2783
|
-
}, f(v.attrs)), (v.children || []).map(function(C,
|
|
2784
|
-
return p(C, "".concat(x, "-").concat(v.tag, "-").concat(
|
|
2787
|
+
}, f(v.attrs)), (v.children || []).map(function(C, O) {
|
|
2788
|
+
return p(C, "".concat(x, "-").concat(v.tag, "-").concat(O));
|
|
2785
2789
|
}));
|
|
2786
2790
|
}
|
|
2787
2791
|
function h(v) {
|
|
@@ -2946,7 +2950,7 @@ function requireAntdIcon() {
|
|
|
2946
2950
|
var r = e(requireObjectSpread2()), n = e(requireSlicedToArray()), a = e(requireDefineProperty()), o = e(requireObjectWithoutProperties()), s = t(React__default), u = e(requireClassnames()), l = e(requireContext$2()), c = e(requireIconBase()), d = requireTwoTonePrimaryColor(), f = requireUtils(), p = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
2947
2951
|
(0, d.setTwoToneColor)("#1890ff");
|
|
2948
2952
|
var h = /* @__PURE__ */ s.forwardRef(function(y, b) {
|
|
2949
|
-
var g, v = y.className, x = y.icon, _ = y.spin, C = y.rotate,
|
|
2953
|
+
var g, v = y.className, x = y.icon, _ = y.spin, C = y.rotate, O = y.tabIndex, F = y.onClick, w = y.twoToneColor, S = (0, o.default)(y, p), T = s.useContext(l.default), I = T.prefixCls, q = I === void 0 ? "anticon" : I, M = (0, u.default)(q, (g = {}, (0, a.default)(g, "".concat(q, "-").concat(x.name), !!x.name), (0, a.default)(g, "".concat(q, "-spin"), !!_ || x.name === "loading"), g), v), D = O;
|
|
2950
2954
|
D === void 0 && F && (D = -1);
|
|
2951
2955
|
var j = C ? {
|
|
2952
2956
|
msTransform: "rotate(".concat(C, "deg)"),
|
|
@@ -3214,7 +3218,7 @@ function requireRegeneratorRuntime() {
|
|
|
3214
3218
|
});
|
|
3215
3219
|
});
|
|
3216
3220
|
}
|
|
3217
|
-
function
|
|
3221
|
+
function O(M, D) {
|
|
3218
3222
|
function j(V, A, W, Y) {
|
|
3219
3223
|
var z = p(M[V], M, A);
|
|
3220
3224
|
if (z.type !== "throw") {
|
|
@@ -3308,11 +3312,11 @@ function requireRegeneratorRuntime() {
|
|
|
3308
3312
|
return {
|
|
3309
3313
|
__await: M
|
|
3310
3314
|
};
|
|
3311
|
-
}, C(
|
|
3315
|
+
}, C(O.prototype), d(O.prototype, l, function() {
|
|
3312
3316
|
return this;
|
|
3313
|
-
}), n.AsyncIterator =
|
|
3317
|
+
}), n.AsyncIterator = O, n.async = function(M, D, j, N, V) {
|
|
3314
3318
|
V === void 0 && (V = Promise);
|
|
3315
|
-
var A = new
|
|
3319
|
+
var A = new O(f(M, D, j, N), V);
|
|
3316
3320
|
return n.isGeneratorFunction(D) ? A : A.next().then(function(W) {
|
|
3317
3321
|
return W.done ? W.value : A.next();
|
|
3318
3322
|
});
|
|
@@ -4025,14 +4029,14 @@ Schema.prototype = {
|
|
|
4025
4029
|
return asyncMap(p, s, function(y, b) {
|
|
4026
4030
|
var g = y.rule, v = (g.type === "object" || g.type === "array") && (typeof g.fields == "object" || typeof g.defaultField == "object");
|
|
4027
4031
|
v = v && (g.required || !g.required && y.value), g.field = y.field;
|
|
4028
|
-
function x(
|
|
4032
|
+
function x(O, F) {
|
|
4029
4033
|
return _extends(_extends({}, F), {}, {
|
|
4030
|
-
fullField: g.fullField + "." +
|
|
4034
|
+
fullField: g.fullField + "." + O
|
|
4031
4035
|
});
|
|
4032
4036
|
}
|
|
4033
|
-
function _(
|
|
4034
|
-
|
|
4035
|
-
var F =
|
|
4037
|
+
function _(O) {
|
|
4038
|
+
O === void 0 && (O = []);
|
|
4039
|
+
var F = O;
|
|
4036
4040
|
if (Array.isArray(F) || (F = [F]), !s.suppressWarning && F.length && Schema.warning("async-validator:", F), F.length && g.message !== void 0 && (F = [].concat(g.message)), F = F.map(complementError(g)), s.first && F.length)
|
|
4037
4041
|
return m[g.field] = 1, b(F);
|
|
4038
4042
|
if (!v)
|
|
@@ -4060,8 +4064,8 @@ Schema.prototype = {
|
|
|
4060
4064
|
var C;
|
|
4061
4065
|
g.asyncValidator ? C = g.asyncValidator(g, y.value, _, y.source, s) : g.validator && (C = g.validator(g, y.value, _, y.source, s), C === !0 ? _() : C === !1 ? _(g.message || g.field + " fails") : C instanceof Array ? _(C) : C instanceof Error && _(C.message)), C && C.then && C.then(function() {
|
|
4062
4066
|
return _();
|
|
4063
|
-
}, function(
|
|
4064
|
-
return _(
|
|
4067
|
+
}, function(O) {
|
|
4068
|
+
return _(O);
|
|
4065
4069
|
});
|
|
4066
4070
|
}, function(y) {
|
|
4067
4071
|
l(y);
|
|
@@ -4323,8 +4327,8 @@ function validateRules(e, t, r, n, a, o) {
|
|
|
4323
4327
|
return f ? _objectSpread2$1(_objectSpread2$1({}, d), {}, {
|
|
4324
4328
|
validator: function(h, m, y) {
|
|
4325
4329
|
var b = !1, g = function() {
|
|
4326
|
-
for (var _ = arguments.length, C = new Array(_),
|
|
4327
|
-
C[
|
|
4330
|
+
for (var _ = arguments.length, C = new Array(_), O = 0; O < _; O++)
|
|
4331
|
+
C[O] = arguments[O];
|
|
4328
4332
|
Promise.resolve().then(function() {
|
|
4329
4333
|
warningOnce(!b, "Your validator function has already return a promise. `callback` will be ignored."), b || y.apply(void 0, C);
|
|
4330
4334
|
});
|
|
@@ -4481,8 +4485,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4481
4485
|
break;
|
|
4482
4486
|
}
|
|
4483
4487
|
case "dependenciesUpdate": {
|
|
4484
|
-
var
|
|
4485
|
-
if (
|
|
4488
|
+
var O = m.map(getNamePath);
|
|
4489
|
+
if (O.some(function(F) {
|
|
4486
4490
|
return containsNamePath(d.relatedFields, F);
|
|
4487
4491
|
})) {
|
|
4488
4492
|
a.reRender();
|
|
@@ -4507,8 +4511,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4507
4511
|
var C = _.validateTrigger;
|
|
4508
4512
|
if (!C)
|
|
4509
4513
|
return !0;
|
|
4510
|
-
var
|
|
4511
|
-
return
|
|
4514
|
+
var O = toArray$2(C);
|
|
4515
|
+
return O.includes(g);
|
|
4512
4516
|
}));
|
|
4513
4517
|
var x = validateRules(c, d, v, l, m, y);
|
|
4514
4518
|
return x.catch(function(_) {
|
|
@@ -4561,14 +4565,14 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4561
4565
|
var c = a.props.fieldContext.getFieldsValue, d = a.getNamePath();
|
|
4562
4566
|
return getValue(l || c(!0), d);
|
|
4563
4567
|
}, a.getControlled = function() {
|
|
4564
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, d = c.trigger, f = c.validateTrigger, p = c.getValueFromEvent, h = c.normalize, m = c.valuePropName, y = c.getValueProps, b = c.fieldContext, g = f !== void 0 ? f : b.validateTrigger, v = a.getNamePath(), x = b.getInternalHooks, _ = b.getFieldsValue, C = x(HOOK_MARK),
|
|
4568
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = a.props, d = c.trigger, f = c.validateTrigger, p = c.getValueFromEvent, h = c.normalize, m = c.valuePropName, y = c.getValueProps, b = c.fieldContext, g = f !== void 0 ? f : b.validateTrigger, v = a.getNamePath(), x = b.getInternalHooks, _ = b.getFieldsValue, C = x(HOOK_MARK), O = C.dispatch, F = a.getValue(), w = y || function(q) {
|
|
4565
4569
|
return _defineProperty$1({}, m, q);
|
|
4566
4570
|
}, S = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), w(F));
|
|
4567
4571
|
T[d] = function() {
|
|
4568
4572
|
a.touched = !0, a.dirty = !0;
|
|
4569
4573
|
for (var q, M = arguments.length, D = new Array(M), j = 0; j < M; j++)
|
|
4570
4574
|
D[j] = arguments[j];
|
|
4571
|
-
p ? q = p.apply(void 0, D) : q = defaultGetValueFromEvent.apply(void 0, [m].concat(D)), h && (q = h(q, F, _(!0))),
|
|
4575
|
+
p ? q = p.apply(void 0, D) : q = defaultGetValueFromEvent.apply(void 0, [m].concat(D)), h && (q = h(q, F, _(!0))), O({
|
|
4572
4576
|
type: "updateValue",
|
|
4573
4577
|
namePath: v,
|
|
4574
4578
|
value: q
|
|
@@ -4580,7 +4584,7 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4580
4584
|
T[q] = function() {
|
|
4581
4585
|
M && M.apply(void 0, arguments);
|
|
4582
4586
|
var D = a.props.rules;
|
|
4583
|
-
D && D.length &&
|
|
4587
|
+
D && D.length && O({
|
|
4584
4588
|
type: "validateField",
|
|
4585
4589
|
namePath: v,
|
|
4586
4590
|
triggerName: q
|
|
@@ -4683,7 +4687,7 @@ var List = function(t) {
|
|
|
4683
4687
|
}
|
|
4684
4688
|
}
|
|
4685
4689
|
}, C = b || [];
|
|
4686
|
-
return Array.isArray(C) || (C = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), a(C.map(function(
|
|
4690
|
+
return Array.isArray(C) || (C = [], process.env.NODE_ENV !== "production" && warningOnce(!1, "Current value of '".concat(f.join(" > "), "' is not an array type."))), a(C.map(function(O, F) {
|
|
4687
4691
|
var w = c.keys[F];
|
|
4688
4692
|
return w === void 0 && (c.keys[F] = c.id, w = c.keys[F], c.id += 1), {
|
|
4689
4693
|
name: F,
|
|
@@ -5258,14 +5262,14 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
5258
5262
|
children: o
|
|
5259
5263
|
});
|
|
5260
5264
|
}, Form$2 = function(t, r) {
|
|
5261
|
-
var n = t.name, a = t.initialValues, o = t.fields, s = t.form, u = t.preserve, l = t.children, c = t.component, d = c === void 0 ? "form" : c, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, y = t.onFieldsChange, b = t.onFinish, g = t.onFinishFailed, v = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), x = React.useContext(FormContext), _ = useForm(s), C = _slicedToArray(_, 1),
|
|
5265
|
+
var n = t.name, a = t.initialValues, o = t.fields, s = t.form, u = t.preserve, l = t.children, c = t.component, d = c === void 0 ? "form" : c, f = t.validateMessages, p = t.validateTrigger, h = p === void 0 ? "onChange" : p, m = t.onValuesChange, y = t.onFieldsChange, b = t.onFinish, g = t.onFinishFailed, v = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), x = React.useContext(FormContext), _ = useForm(s), C = _slicedToArray(_, 1), O = C[0], F = O.getInternalHooks(HOOK_MARK), w = F.useSubscribe, S = F.setInitialValues, T = F.setCallbacks, I = F.setValidateMessages, q = F.setPreserve;
|
|
5262
5266
|
React.useImperativeHandle(r, function() {
|
|
5263
|
-
return
|
|
5267
|
+
return O;
|
|
5264
5268
|
}), React.useEffect(function() {
|
|
5265
|
-
return x.registerForm(n,
|
|
5269
|
+
return x.registerForm(n, O), function() {
|
|
5266
5270
|
x.unregisterForm(n);
|
|
5267
5271
|
};
|
|
5268
|
-
}, [x,
|
|
5272
|
+
}, [x, O, n]), I(_objectSpread2$1(_objectSpread2$1({}, x.validateMessages), f)), T({
|
|
5269
5273
|
onValuesChange: m,
|
|
5270
5274
|
onFieldsChange: function(z) {
|
|
5271
5275
|
if (x.triggerFormChange(n, z), y) {
|
|
@@ -5283,26 +5287,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
5283
5287
|
S(a, !M.current), M.current || (M.current = !0);
|
|
5284
5288
|
var D = l, j = typeof l == "function";
|
|
5285
5289
|
if (j) {
|
|
5286
|
-
var N =
|
|
5287
|
-
D = l(N,
|
|
5290
|
+
var N = O.getFieldsValue(!0);
|
|
5291
|
+
D = l(N, O);
|
|
5288
5292
|
}
|
|
5289
5293
|
w(!j);
|
|
5290
5294
|
var V = React.useRef();
|
|
5291
5295
|
React.useEffect(function() {
|
|
5292
|
-
isSimilar(V.current || [], o || []) ||
|
|
5293
|
-
}, [o,
|
|
5296
|
+
isSimilar(V.current || [], o || []) || O.setFields(o || []), V.current = o;
|
|
5297
|
+
}, [o, O]);
|
|
5294
5298
|
var A = React.useMemo(function() {
|
|
5295
|
-
return _objectSpread2$1(_objectSpread2$1({},
|
|
5299
|
+
return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
|
|
5296
5300
|
validateTrigger: h
|
|
5297
5301
|
});
|
|
5298
|
-
}, [
|
|
5302
|
+
}, [O, h]), W = /* @__PURE__ */ jsx(Context.Provider, {
|
|
5299
5303
|
value: A,
|
|
5300
5304
|
children: D
|
|
5301
5305
|
});
|
|
5302
5306
|
return d === !1 ? W : /* @__PURE__ */ jsx(d, {
|
|
5303
5307
|
...v,
|
|
5304
5308
|
onSubmit: function(z) {
|
|
5305
|
-
z.preventDefault(), z.stopPropagation(),
|
|
5309
|
+
z.preventDefault(), z.stopPropagation(), O.submit();
|
|
5306
5310
|
},
|
|
5307
5311
|
children: W
|
|
5308
5312
|
});
|
|
@@ -5721,8 +5725,8 @@ function requireLocaleReceiver() {
|
|
|
5721
5725
|
return (0, o.default)(y, [{
|
|
5722
5726
|
key: "getLocale",
|
|
5723
5727
|
value: function() {
|
|
5724
|
-
var g = this.props, v = g.componentName, x = g.defaultLocale, _ = x || c.default[v || "global"], C = this.context,
|
|
5725
|
-
return (0, n.default)((0, n.default)({}, typeof _ == "function" ? _() : _),
|
|
5728
|
+
var g = this.props, v = g.componentName, x = g.defaultLocale, _ = x || c.default[v || "global"], C = this.context, O = v && C ? C[v] : {};
|
|
5729
|
+
return (0, n.default)((0, n.default)({}, typeof _ == "function" ? _() : _), O || {});
|
|
5726
5730
|
}
|
|
5727
5731
|
}, {
|
|
5728
5732
|
key: "getLocaleCode",
|
|
@@ -5860,11 +5864,11 @@ function requireEmpty() {
|
|
|
5860
5864
|
g.indexOf(x[_]) < 0 && Object.prototype.propertyIsEnumerable.call(b, x[_]) && (v[x[_]] = b[x[_]]);
|
|
5861
5865
|
return v;
|
|
5862
5866
|
}, p = /* @__PURE__ */ o.createElement(c.default, null), h = /* @__PURE__ */ o.createElement(d.default, null), m = function(g) {
|
|
5863
|
-
var v = g.className, x = g.prefixCls, _ = g.image, C = _ === void 0 ? p : _,
|
|
5867
|
+
var v = g.className, x = g.prefixCls, _ = g.image, C = _ === void 0 ? p : _, O = g.description, F = g.children, w = g.imageStyle, S = f(g, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = o.useContext(u.ConfigContext), I = T.getPrefixCls, q = T.direction;
|
|
5864
5868
|
return /* @__PURE__ */ o.createElement(l.default, {
|
|
5865
5869
|
componentName: "Empty"
|
|
5866
5870
|
}, function(M) {
|
|
5867
|
-
var D, j = I("empty", x), N = typeof
|
|
5871
|
+
var D, j = I("empty", x), N = typeof O < "u" ? O : M.description, V = typeof N == "string" ? N : "empty", A = null;
|
|
5868
5872
|
return typeof C == "string" ? A = /* @__PURE__ */ o.createElement("img", {
|
|
5869
5873
|
alt: V,
|
|
5870
5874
|
src: C
|
|
@@ -6108,7 +6112,7 @@ const useStepQueue = function(e, t) {
|
|
|
6108
6112
|
}, []), [o, a];
|
|
6109
6113
|
};
|
|
6110
6114
|
function useStatus(e, t, r, n) {
|
|
6111
|
-
var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, h = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, b = n.onEnterStart, g = n.onLeaveStart, v = n.onAppearActive, x = n.onEnterActive, _ = n.onLeaveActive, C = n.onAppearEnd,
|
|
6115
|
+
var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, h = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, b = n.onEnterStart, g = n.onLeaveStart, v = n.onAppearActive, x = n.onEnterActive, _ = n.onLeaveActive, C = n.onAppearEnd, O = n.onEnterEnd, F = n.onLeaveEnd, w = n.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), I = T[0], q = T[1], M = useMountStatus(STATUS_NONE), D = _slicedToArray(M, 2), j = D[0], N = D[1], V = useMountStatus(null), A = _slicedToArray(V, 2), W = A[0], Y = A[1], z = useRef(!1), H = useRef(null), K = useRef(!1), U = useRef(null);
|
|
6112
6116
|
function B() {
|
|
6113
6117
|
var te = r();
|
|
6114
6118
|
return te || U.current;
|
|
@@ -6118,7 +6122,7 @@ function useStatus(e, t, r, n) {
|
|
|
6118
6122
|
var oe = B();
|
|
6119
6123
|
if (!(te && !te.deadline && te.target !== oe)) {
|
|
6120
6124
|
var se;
|
|
6121
|
-
j === STATUS_APPEAR && k.current ? se = C == null ? void 0 : C(oe, te) : j === STATUS_ENTER && k.current ? se =
|
|
6125
|
+
j === STATUS_APPEAR && k.current ? se = C == null ? void 0 : C(oe, te) : j === STATUS_ENTER && k.current ? se = O == null ? void 0 : O(oe, te) : j === STATUS_LEAVE && k.current && (se = F == null ? void 0 : F(oe, te)), se !== !1 && !K.current && (N(STATUS_NONE), Y(null));
|
|
6122
6126
|
}
|
|
6123
6127
|
}
|
|
6124
6128
|
var L = useDomMotionEvents($), G = _slicedToArray(L, 1), Z = G[0], P = React.useMemo(function() {
|
|
@@ -6133,7 +6137,7 @@ function useStatus(e, t, r, n) {
|
|
|
6133
6137
|
default:
|
|
6134
6138
|
return {};
|
|
6135
6139
|
}
|
|
6136
|
-
}, [j]),
|
|
6140
|
+
}, [j]), E = useStepQueue(j, function(te) {
|
|
6137
6141
|
if (te === STEP_PREPARE) {
|
|
6138
6142
|
var oe = P[STEP_PREPARE];
|
|
6139
6143
|
return oe ? oe(B()) : SkipStep;
|
|
@@ -6147,7 +6151,7 @@ function useStatus(e, t, r, n) {
|
|
|
6147
6151
|
deadline: !0
|
|
6148
6152
|
});
|
|
6149
6153
|
}, d))), DoStep;
|
|
6150
|
-
}), X = _slicedToArray(
|
|
6154
|
+
}), X = _slicedToArray(E, 2), J = X[0], ee = X[1], Q = isActive(ee);
|
|
6151
6155
|
k.current = Q, useIsomorphicLayoutEffect(function() {
|
|
6152
6156
|
if (q(t), !!e) {
|
|
6153
6157
|
var te = z.current;
|
|
@@ -6197,7 +6201,7 @@ function genCSSMotion(e) {
|
|
|
6197
6201
|
return null;
|
|
6198
6202
|
}
|
|
6199
6203
|
}
|
|
6200
|
-
var x = useStatus(y, u, v, a), _ = _slicedToArray(x, 4), C = _[0],
|
|
6204
|
+
var x = useStatus(y, u, v, a), _ = _slicedToArray(x, 4), C = _[0], O = _[1], F = _[2], w = _[3], S = useRef(o);
|
|
6201
6205
|
S.current = o;
|
|
6202
6206
|
var T = React.useCallback(function(j) {
|
|
6203
6207
|
b.current = j, fillRef(S.current, j);
|
|
@@ -6216,7 +6220,7 @@ function genCSSMotion(e) {
|
|
|
6216
6220
|
}), T);
|
|
6217
6221
|
else {
|
|
6218
6222
|
var M, D;
|
|
6219
|
-
|
|
6223
|
+
O === STEP_PREPARE ? D = "prepare" : isActive(O) ? D = "active" : O === STEP_START && (D = "start"), I = f(_objectSpread2$1(_objectSpread2$1({}, q), {}, {
|
|
6220
6224
|
className: classnamesExports(getTransitionName$1(p, C), (M = {}, _defineProperty$1(M, getTransitionName$1(p, "".concat(C, "-").concat(D)), D), _defineProperty$1(M, p, typeof p == "string"), M)),
|
|
6221
6225
|
style: F
|
|
6222
6226
|
}), T);
|
|
@@ -6505,8 +6509,8 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
6505
6509
|
noticeKey: v || g,
|
|
6506
6510
|
updateMark: b,
|
|
6507
6511
|
onClose: function(C) {
|
|
6508
|
-
var
|
|
6509
|
-
a.remove(C), (
|
|
6512
|
+
var O;
|
|
6513
|
+
a.remove(C), (O = m.onClose) === null || O === void 0 || O.call(m);
|
|
6510
6514
|
},
|
|
6511
6515
|
onClick: m.onClick,
|
|
6512
6516
|
children: m.content
|
|
@@ -6809,14 +6813,14 @@ function requireNotice() {
|
|
|
6809
6813
|
}, {
|
|
6810
6814
|
key: "render",
|
|
6811
6815
|
value: function() {
|
|
6812
|
-
var y = this, b = this.props, g = b.prefixCls, v = b.className, x = b.closable, _ = b.closeIcon, C = b.style,
|
|
6816
|
+
var y = this, b = this.props, g = b.prefixCls, v = b.className, x = b.closable, _ = b.closeIcon, C = b.style, O = b.onClick, F = b.children, w = b.holder, S = "".concat(g, "-notice"), T = Object.keys(this.props).reduce(function(q, M) {
|
|
6813
6817
|
return (M.substr(0, 5) === "data-" || M.substr(0, 5) === "aria-" || M === "role") && (q[M] = y.props[M]), q;
|
|
6814
6818
|
}, {}), I = u.createElement("div", Object.assign({
|
|
6815
6819
|
className: (0, c.default)(S, v, (0, r.default)({}, "".concat(S, "-closable"), x)),
|
|
6816
6820
|
style: C,
|
|
6817
6821
|
onMouseEnter: this.clearCloseTimer,
|
|
6818
6822
|
onMouseLeave: this.startCloseTimer,
|
|
6819
|
-
onClick:
|
|
6823
|
+
onClick: O
|
|
6820
6824
|
}, T), u.createElement("div", {
|
|
6821
6825
|
className: "".concat(S, "-content")
|
|
6822
6826
|
}, F), x ? u.createElement("a", {
|
|
@@ -6901,10 +6905,10 @@ function requireUseMessage() {
|
|
|
6901
6905
|
return I.then(M, D);
|
|
6902
6906
|
}, q.promise = I, q;
|
|
6903
6907
|
}
|
|
6904
|
-
var
|
|
6905
|
-
return
|
|
6906
|
-
return (0, l.attachTypeApi)(
|
|
6907
|
-
}), [
|
|
6908
|
+
var O = o.useRef({});
|
|
6909
|
+
return O.current.open = C, ["success", "info", "warning", "error", "loading"].forEach(function(F) {
|
|
6910
|
+
return (0, l.attachTypeApi)(O.current, F);
|
|
6911
|
+
}), [O.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
|
|
6908
6912
|
key: "holder"
|
|
6909
6913
|
}, function(F) {
|
|
6910
6914
|
return m = F.getPrefixCls, _;
|
|
@@ -6921,12 +6925,12 @@ function requireMessage() {
|
|
|
6921
6925
|
Object.defineProperty(e, "__esModule", {
|
|
6922
6926
|
value: !0
|
|
6923
6927
|
}), e.getKeyThenIncreaseKey = F, e.attachTypeApi = j, e.default = e.getInstance = void 0;
|
|
6924
|
-
var n = r(require_extends()), a = r(requireDefineProperty()), o = t(React__default), s = r(requireClassnames()), u = r(require$$6$1), l = r(requireLoadingOutlined()), c = r(requireExclamationCircleFilled()), d = r(requireCloseCircleFilled()), f = r(requireCheckCircleFilled()), p = r(requireInfoCircleFilled()), h = r(requireUseMessage()), m, y = 3, b, g = 1, v = "ant-message", x = "move-up", _, C,
|
|
6928
|
+
var n = r(require_extends()), a = r(requireDefineProperty()), o = t(React__default), s = r(requireClassnames()), u = r(require$$6$1), l = r(requireLoadingOutlined()), c = r(requireExclamationCircleFilled()), d = r(requireCloseCircleFilled()), f = r(requireCheckCircleFilled()), p = r(requireInfoCircleFilled()), h = r(requireUseMessage()), m, y = 3, b, g = 1, v = "ant-message", x = "move-up", _, C, O = !1;
|
|
6925
6929
|
function F() {
|
|
6926
6930
|
return g++;
|
|
6927
6931
|
}
|
|
6928
6932
|
function w(A) {
|
|
6929
|
-
A.top !== void 0 && (b = A.top, m = null), A.duration !== void 0 && (y = A.duration), A.prefixCls !== void 0 && (v = A.prefixCls), A.getContainer !== void 0 && (_ = A.getContainer), A.transitionName !== void 0 && (x = A.transitionName, m = null), A.maxCount !== void 0 && (C = A.maxCount, m = null), A.rtl !== void 0 && (
|
|
6933
|
+
A.top !== void 0 && (b = A.top, m = null), A.duration !== void 0 && (y = A.duration), A.prefixCls !== void 0 && (v = A.prefixCls), A.getContainer !== void 0 && (_ = A.getContainer), A.transitionName !== void 0 && (x = A.transitionName, m = null), A.maxCount !== void 0 && (C = A.maxCount, m = null), A.rtl !== void 0 && (O = A.rtl);
|
|
6930
6934
|
}
|
|
6931
6935
|
function S(A, W) {
|
|
6932
6936
|
var Y = A.prefixCls || v;
|
|
@@ -6967,7 +6971,7 @@ function requireMessage() {
|
|
|
6967
6971
|
loading: l.default
|
|
6968
6972
|
};
|
|
6969
6973
|
function I(A, W) {
|
|
6970
|
-
var Y, z = A.duration !== void 0 ? A.duration : y, H = T[A.type], K = (0, s.default)("".concat(W, "-custom-content"), (Y = {}, (0, a.default)(Y, "".concat(W, "-").concat(A.type), A.type), (0, a.default)(Y, "".concat(W, "-rtl"),
|
|
6974
|
+
var Y, z = A.duration !== void 0 ? A.duration : y, H = T[A.type], K = (0, s.default)("".concat(W, "-custom-content"), (Y = {}, (0, a.default)(Y, "".concat(W, "-").concat(A.type), A.type), (0, a.default)(Y, "".concat(W, "-rtl"), O === !0), Y));
|
|
6971
6975
|
return {
|
|
6972
6976
|
key: A.key,
|
|
6973
6977
|
duration: z,
|
|
@@ -7259,26 +7263,26 @@ function requireUseNotification() {
|
|
|
7259
7263
|
m == null || m.component.add(F, w);
|
|
7260
7264
|
}
|
|
7261
7265
|
}, b = (0, s.default)(y), g = (0, a.default)(b, 2), v = g[0], x = g[1];
|
|
7262
|
-
function _(
|
|
7263
|
-
var F =
|
|
7264
|
-
c((0, n.default)((0, n.default)({},
|
|
7266
|
+
function _(O) {
|
|
7267
|
+
var F = O.prefixCls, w = h("notification", F);
|
|
7268
|
+
c((0, n.default)((0, n.default)({}, O), {
|
|
7265
7269
|
prefixCls: w
|
|
7266
7270
|
}), function(S) {
|
|
7267
7271
|
var T = S.prefixCls, I = S.instance;
|
|
7268
|
-
m = I, v(d(
|
|
7272
|
+
m = I, v(d(O, T));
|
|
7269
7273
|
});
|
|
7270
7274
|
}
|
|
7271
7275
|
var C = o.useRef({});
|
|
7272
|
-
return C.current.open = _, ["success", "info", "warning", "error"].forEach(function(
|
|
7273
|
-
C.current[
|
|
7276
|
+
return C.current.open = _, ["success", "info", "warning", "error"].forEach(function(O) {
|
|
7277
|
+
C.current[O] = function(F) {
|
|
7274
7278
|
return C.current.open((0, n.default)((0, n.default)({}, F), {
|
|
7275
|
-
type:
|
|
7279
|
+
type: O
|
|
7276
7280
|
}));
|
|
7277
7281
|
};
|
|
7278
7282
|
}), [C.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
|
|
7279
7283
|
key: "holder"
|
|
7280
|
-
}, function(
|
|
7281
|
-
return h =
|
|
7284
|
+
}, function(O) {
|
|
7285
|
+
return h = O.getPrefixCls, x;
|
|
7282
7286
|
})];
|
|
7283
7287
|
};
|
|
7284
7288
|
return f;
|
|
@@ -7318,10 +7322,10 @@ function requireNotification() {
|
|
|
7318
7322
|
}
|
|
7319
7323
|
$((z = z.apply(A, W || [])).next());
|
|
7320
7324
|
});
|
|
7321
|
-
}, b = {}, g = 4.5, v = 24, x = 24, _ = "ant-notification", C = "topRight",
|
|
7325
|
+
}, b = {}, g = 4.5, v = 24, x = 24, _ = "ant-notification", C = "topRight", O, F, w = !1;
|
|
7322
7326
|
function S(A) {
|
|
7323
7327
|
var W = A.duration, Y = A.placement, z = A.bottom, H = A.top, K = A.getContainer, U = A.closeIcon, B = A.prefixCls;
|
|
7324
|
-
B !== void 0 && (_ = B), W !== void 0 && (g = W), Y !== void 0 ? C = Y : A.rtl && (C = "topLeft"), z !== void 0 && (x = z), H !== void 0 && (v = H), K !== void 0 && (
|
|
7328
|
+
B !== void 0 && (_ = B), W !== void 0 && (g = W), Y !== void 0 ? C = Y : A.rtl && (C = "topLeft"), z !== void 0 && (x = z), H !== void 0 && (v = H), K !== void 0 && (O = K), U !== void 0 && (F = U), A.rtl !== void 0 && (w = A.rtl);
|
|
7325
7329
|
}
|
|
7326
7330
|
function T(A) {
|
|
7327
7331
|
var W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v, Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : x, z;
|
|
@@ -7358,7 +7362,7 @@ function requireNotification() {
|
|
|
7358
7362
|
return z;
|
|
7359
7363
|
}
|
|
7360
7364
|
function I(A, W) {
|
|
7361
|
-
var Y = A.placement, z = Y === void 0 ? C : Y, H = A.top, K = A.bottom, U = A.getContainer, B = U === void 0 ?
|
|
7365
|
+
var Y = A.placement, z = Y === void 0 ? C : Y, H = A.top, K = A.bottom, U = A.getContainer, B = U === void 0 ? O : U, k = A.closeIcon, $ = k === void 0 ? F : k, L = A.prefixCls || _, G = "".concat(L, "-notice"), Z = "".concat(L, "-").concat(z), P = b[Z];
|
|
7362
7366
|
if (P) {
|
|
7363
7367
|
Promise.resolve(P).then(function(J) {
|
|
7364
7368
|
W({
|
|
@@ -7368,7 +7372,7 @@ function requireNotification() {
|
|
|
7368
7372
|
});
|
|
7369
7373
|
return;
|
|
7370
7374
|
}
|
|
7371
|
-
var
|
|
7375
|
+
var E = /* @__PURE__ */ s.createElement("span", {
|
|
7372
7376
|
className: "".concat(L, "-close-x")
|
|
7373
7377
|
}, $ || /* @__PURE__ */ s.createElement(l.default, {
|
|
7374
7378
|
className: "".concat(L, "-close-icon")
|
|
@@ -7379,7 +7383,7 @@ function requireNotification() {
|
|
|
7379
7383
|
className: X,
|
|
7380
7384
|
style: T(z, H, K),
|
|
7381
7385
|
getContainer: B,
|
|
7382
|
-
closeIcon:
|
|
7386
|
+
closeIcon: E
|
|
7383
7387
|
}, function(ee) {
|
|
7384
7388
|
J(ee), W({
|
|
7385
7389
|
prefixCls: G,
|
|
@@ -7494,14 +7498,14 @@ function requireConfigProvider() {
|
|
|
7494
7498
|
var n = r(require_extends()), a = t(React__default), o = r(requireContext$2()), s = require$$5, u = r(requireUseMemo()), l = t(requireLocaleProvider()), c = r(requireLocaleReceiver()), d = requireContext(), f = t(requireSizeContext()), p = r(requireMessage()), h = r(requireNotification()), m = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
|
|
7495
7499
|
e.configConsumerProps = m;
|
|
7496
7500
|
var y = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], b = function(_) {
|
|
7497
|
-
var C = _.children,
|
|
7501
|
+
var C = _.children, O = _.csp, F = _.autoInsertSpaceInButton, w = _.form, S = _.locale, T = _.componentSize, I = _.direction, q = _.space, M = _.virtual, D = _.dropdownMatchSelectWidth, j = _.legacyLocale, N = _.parentContext, V = _.iconPrefixCls, A = a.useCallback(function(U, B) {
|
|
7498
7502
|
var k = _.prefixCls;
|
|
7499
7503
|
if (B)
|
|
7500
7504
|
return B;
|
|
7501
7505
|
var $ = k || N.getPrefixCls("");
|
|
7502
7506
|
return U ? "".concat($, "-").concat(U) : $;
|
|
7503
7507
|
}, [N.getPrefixCls]), W = (0, n.default)((0, n.default)({}, N), {
|
|
7504
|
-
csp:
|
|
7508
|
+
csp: O,
|
|
7505
7509
|
autoInsertSpaceInButton: F,
|
|
7506
7510
|
locale: S || j,
|
|
7507
7511
|
direction: I,
|
|
@@ -7545,7 +7549,7 @@ function requireConfigProvider() {
|
|
|
7545
7549
|
}), h.default.config({
|
|
7546
7550
|
rtl: _.direction === "rtl"
|
|
7547
7551
|
}));
|
|
7548
|
-
}, [_.direction]), /* @__PURE__ */ a.createElement(c.default, null, function(C,
|
|
7552
|
+
}, [_.direction]), /* @__PURE__ */ a.createElement(c.default, null, function(C, O, F) {
|
|
7549
7553
|
return /* @__PURE__ */ a.createElement(d.ConfigConsumer, null, function(w) {
|
|
7550
7554
|
return /* @__PURE__ */ a.createElement(b, (0, n.default)({
|
|
7551
7555
|
parentContext: w,
|
|
@@ -7567,46 +7571,46 @@ function requireInput() {
|
|
|
7567
7571
|
value: !0
|
|
7568
7572
|
}), e.fixControlledValue = b, e.resolveOnChange = g, e.getInputClassName = v, e.triggerFocus = x, e.default = void 0;
|
|
7569
7573
|
var n = r(require_extends()), a = r(requireClassCallCheck()), o = r(requireCreateClass()), s = r(requireInherits()), u = r(requireCreateSuper()), l = r(requireDefineProperty()), c = t(React__default), d = r(requireClassnames()), f = r(requireOmit()), p = t(requireClearableLabeledInput()), h = requireConfigProvider(), m = r(requireSizeContext()), y = r(requireDevWarning());
|
|
7570
|
-
function b(
|
|
7571
|
-
return typeof
|
|
7574
|
+
function b(O) {
|
|
7575
|
+
return typeof O > "u" || O === null ? "" : O;
|
|
7572
7576
|
}
|
|
7573
|
-
function g(
|
|
7577
|
+
function g(O, F, w) {
|
|
7574
7578
|
if (w) {
|
|
7575
7579
|
var S = F;
|
|
7576
7580
|
if (F.type === "click") {
|
|
7577
|
-
S = Object.create(F), S.target =
|
|
7578
|
-
var T =
|
|
7579
|
-
|
|
7581
|
+
S = Object.create(F), S.target = O, S.currentTarget = O;
|
|
7582
|
+
var T = O.value;
|
|
7583
|
+
O.value = "", w(S), O.value = T;
|
|
7580
7584
|
return;
|
|
7581
7585
|
}
|
|
7582
7586
|
w(S);
|
|
7583
7587
|
}
|
|
7584
7588
|
}
|
|
7585
|
-
function v(
|
|
7589
|
+
function v(O, F, w, S, T) {
|
|
7586
7590
|
var I;
|
|
7587
|
-
return (0, d.default)(
|
|
7591
|
+
return (0, d.default)(O, (I = {}, (0, l.default)(I, "".concat(O, "-sm"), w === "small"), (0, l.default)(I, "".concat(O, "-lg"), w === "large"), (0, l.default)(I, "".concat(O, "-disabled"), S), (0, l.default)(I, "".concat(O, "-rtl"), T === "rtl"), (0, l.default)(I, "".concat(O, "-borderless"), !F), I));
|
|
7588
7592
|
}
|
|
7589
|
-
function x(
|
|
7590
|
-
if (!!
|
|
7591
|
-
|
|
7593
|
+
function x(O, F) {
|
|
7594
|
+
if (!!O) {
|
|
7595
|
+
O.focus(F);
|
|
7592
7596
|
var w = F || {}, S = w.cursor;
|
|
7593
7597
|
if (S) {
|
|
7594
|
-
var T =
|
|
7598
|
+
var T = O.value.length;
|
|
7595
7599
|
switch (S) {
|
|
7596
7600
|
case "start":
|
|
7597
|
-
|
|
7601
|
+
O.setSelectionRange(0, 0);
|
|
7598
7602
|
break;
|
|
7599
7603
|
case "end":
|
|
7600
|
-
|
|
7604
|
+
O.setSelectionRange(T, T);
|
|
7601
7605
|
break;
|
|
7602
7606
|
default:
|
|
7603
|
-
|
|
7607
|
+
O.setSelectionRange(0, T);
|
|
7604
7608
|
}
|
|
7605
7609
|
}
|
|
7606
7610
|
}
|
|
7607
7611
|
}
|
|
7608
|
-
var _ = /* @__PURE__ */ function(
|
|
7609
|
-
(0, s.default)(w,
|
|
7612
|
+
var _ = /* @__PURE__ */ function(O) {
|
|
7613
|
+
(0, s.default)(w, O);
|
|
7610
7614
|
var F = (0, u.default)(w);
|
|
7611
7615
|
function w(S) {
|
|
7612
7616
|
var T;
|
|
@@ -7789,14 +7793,14 @@ function requireClearableLabeledInput() {
|
|
|
7789
7793
|
(0, s.default)(C, x);
|
|
7790
7794
|
var _ = (0, u.default)(C);
|
|
7791
7795
|
function C() {
|
|
7792
|
-
var
|
|
7793
|
-
return (0, a.default)(this, C),
|
|
7796
|
+
var O;
|
|
7797
|
+
return (0, a.default)(this, C), O = _.apply(this, arguments), O.containerRef = /* @__PURE__ */ l.createRef(), O.onInputMouseUp = function(F) {
|
|
7794
7798
|
var w;
|
|
7795
|
-
if (!((w =
|
|
7796
|
-
var S =
|
|
7799
|
+
if (!((w = O.containerRef.current) === null || w === void 0) && w.contains(F.target)) {
|
|
7800
|
+
var S = O.props.triggerFocus;
|
|
7797
7801
|
S == null || S();
|
|
7798
7802
|
}
|
|
7799
|
-
},
|
|
7803
|
+
}, O;
|
|
7800
7804
|
}
|
|
7801
7805
|
return (0, o.default)(C, [{
|
|
7802
7806
|
key: "renderClearIcon",
|
|
@@ -7895,15 +7899,15 @@ function requireClearableLabeledInput() {
|
|
|
7895
7899
|
value: !0
|
|
7896
7900
|
}), e.default = void 0;
|
|
7897
7901
|
var n = r(_typeof$2.exports), a = r(requireToConsumableArray()), o = r(require_extends()), s = r(requireDefineProperty()), u = r(requireSlicedToArray()), l = t(React__default), c = r(require$$8), d = r(requireOmit()), f = r(requireClassnames()), p = r(requireUseMergedState()), h = r(requireClearableLabeledInput()), m = requireConfigProvider(), y = requireInput(), b = r(requireSizeContext()), g = function(_, C) {
|
|
7898
|
-
var
|
|
7902
|
+
var O = {};
|
|
7899
7903
|
for (var F in _)
|
|
7900
|
-
Object.prototype.hasOwnProperty.call(_, F) && C.indexOf(F) < 0 && (
|
|
7904
|
+
Object.prototype.hasOwnProperty.call(_, F) && C.indexOf(F) < 0 && (O[F] = _[F]);
|
|
7901
7905
|
if (_ != null && typeof Object.getOwnPropertySymbols == "function")
|
|
7902
7906
|
for (var w = 0, F = Object.getOwnPropertySymbols(_); w < F.length; w++)
|
|
7903
|
-
C.indexOf(F[w]) < 0 && Object.prototype.propertyIsEnumerable.call(_, F[w]) && (
|
|
7904
|
-
return
|
|
7907
|
+
C.indexOf(F[w]) < 0 && Object.prototype.propertyIsEnumerable.call(_, F[w]) && (O[F[w]] = _[F[w]]);
|
|
7908
|
+
return O;
|
|
7905
7909
|
}, v = /* @__PURE__ */ l.forwardRef(function(_, C) {
|
|
7906
|
-
var
|
|
7910
|
+
var O, F = _.prefixCls, w = _.bordered, S = w === void 0 ? !0 : w, T = _.showCount, I = T === void 0 ? !1 : T, q = _.maxLength, M = _.className, D = _.style, j = _.size, N = g(_, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), V = l.useContext(m.ConfigContext), A = V.getPrefixCls, W = V.direction, Y = l.useContext(b.default), z = l.useRef(null), H = l.useRef(null), K = (0, p.default)(N.defaultValue, {
|
|
7907
7911
|
value: N.value
|
|
7908
7912
|
}), U = (0, u.default)(K, 2), B = U[0], k = U[1], $ = l.useRef(N.value);
|
|
7909
7913
|
l.useEffect(function() {
|
|
@@ -7933,9 +7937,9 @@ function requireClearableLabeledInput() {
|
|
|
7933
7937
|
}
|
|
7934
7938
|
};
|
|
7935
7939
|
});
|
|
7936
|
-
var
|
|
7940
|
+
var E = /* @__PURE__ */ l.createElement(c.default, (0, o.default)({}, (0, d.default)(N, ["allowClear"]), {
|
|
7937
7941
|
maxLength: q,
|
|
7938
|
-
className: (0, f.default)((
|
|
7942
|
+
className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(P, "-borderless"), !S), (0, s.default)(O, M, M && !I), (0, s.default)(O, "".concat(P, "-sm"), Y === "small" || j === "small"), (0, s.default)(O, "".concat(P, "-lg"), Y === "large" || j === "large"), O)),
|
|
7939
7943
|
style: I ? void 0 : D,
|
|
7940
7944
|
prefixCls: P,
|
|
7941
7945
|
onChange: G,
|
|
@@ -7947,7 +7951,7 @@ function requireClearableLabeledInput() {
|
|
|
7947
7951
|
direction: W,
|
|
7948
7952
|
inputType: "text",
|
|
7949
7953
|
value: X,
|
|
7950
|
-
element:
|
|
7954
|
+
element: E,
|
|
7951
7955
|
handleReset: Z,
|
|
7952
7956
|
ref: H,
|
|
7953
7957
|
bordered: S
|
|
@@ -8068,7 +8072,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
8068
8072
|
})]
|
|
8069
8073
|
}, S));
|
|
8070
8074
|
}
|
|
8071
|
-
async function
|
|
8075
|
+
async function O() {
|
|
8072
8076
|
m(!0);
|
|
8073
8077
|
try {
|
|
8074
8078
|
for (const w of Object.keys(y))
|
|
@@ -8101,7 +8105,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
8101
8105
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
8102
8106
|
icon: h ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
|
|
8103
8107
|
disabled: h,
|
|
8104
|
-
onClick:
|
|
8108
|
+
onClick: O,
|
|
8105
8109
|
style: {
|
|
8106
8110
|
marginLeft: 15
|
|
8107
8111
|
},
|
|
@@ -8403,29 +8407,29 @@ function debounce(e, t, r) {
|
|
|
8403
8407
|
if (typeof e != "function")
|
|
8404
8408
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
8405
8409
|
t = toNumber(t) || 0, isObject$1(r) && (d = !!r.leading, f = "maxWait" in r, o = f ? nativeMax(toNumber(r.maxWait) || 0, t) : o, p = "trailing" in r ? !!r.trailing : p);
|
|
8406
|
-
function h(
|
|
8410
|
+
function h(O) {
|
|
8407
8411
|
var F = n, w = a;
|
|
8408
|
-
return n = a = void 0, c =
|
|
8412
|
+
return n = a = void 0, c = O, s = e.apply(w, F), s;
|
|
8409
8413
|
}
|
|
8410
|
-
function m(
|
|
8411
|
-
return c =
|
|
8414
|
+
function m(O) {
|
|
8415
|
+
return c = O, u = setTimeout(g, t), d ? h(O) : s;
|
|
8412
8416
|
}
|
|
8413
|
-
function y(
|
|
8414
|
-
var F =
|
|
8417
|
+
function y(O) {
|
|
8418
|
+
var F = O - l, w = O - c, S = t - F;
|
|
8415
8419
|
return f ? nativeMin(S, o - w) : S;
|
|
8416
8420
|
}
|
|
8417
|
-
function b(
|
|
8418
|
-
var F =
|
|
8421
|
+
function b(O) {
|
|
8422
|
+
var F = O - l, w = O - c;
|
|
8419
8423
|
return l === void 0 || F >= t || F < 0 || f && w >= o;
|
|
8420
8424
|
}
|
|
8421
8425
|
function g() {
|
|
8422
|
-
var
|
|
8423
|
-
if (b(
|
|
8424
|
-
return v(
|
|
8425
|
-
u = setTimeout(g, y(
|
|
8426
|
+
var O = now$1();
|
|
8427
|
+
if (b(O))
|
|
8428
|
+
return v(O);
|
|
8429
|
+
u = setTimeout(g, y(O));
|
|
8426
8430
|
}
|
|
8427
|
-
function v(
|
|
8428
|
-
return u = void 0, p && n ? h(
|
|
8431
|
+
function v(O) {
|
|
8432
|
+
return u = void 0, p && n ? h(O) : (n = a = void 0, s);
|
|
8429
8433
|
}
|
|
8430
8434
|
function x() {
|
|
8431
8435
|
u !== void 0 && clearTimeout(u), c = 0, n = l = a = u = void 0;
|
|
@@ -8434,8 +8438,8 @@ function debounce(e, t, r) {
|
|
|
8434
8438
|
return u === void 0 ? s : v(now$1());
|
|
8435
8439
|
}
|
|
8436
8440
|
function C() {
|
|
8437
|
-
var
|
|
8438
|
-
if (n = arguments, a = this, l =
|
|
8441
|
+
var O = now$1(), F = b(O);
|
|
8442
|
+
if (n = arguments, a = this, l = O, F) {
|
|
8439
8443
|
if (u === void 0)
|
|
8440
8444
|
return m(l);
|
|
8441
8445
|
if (f)
|
|
@@ -8990,7 +8994,7 @@ function require_stream_writable() {
|
|
|
8990
8994
|
};
|
|
8991
8995
|
}
|
|
8992
8996
|
var t;
|
|
8993
|
-
w.WritableState =
|
|
8997
|
+
w.WritableState = O;
|
|
8994
8998
|
var r = {
|
|
8995
8999
|
deprecate: browser
|
|
8996
9000
|
}, n = streamBrowser, a = require$$0.Buffer, o = commonjsGlobal.Uint8Array || function() {
|
|
@@ -9005,20 +9009,20 @@ function require_stream_writable() {
|
|
|
9005
9009
|
inherits_browser.exports(w, n);
|
|
9006
9010
|
function C() {
|
|
9007
9011
|
}
|
|
9008
|
-
function
|
|
9012
|
+
function O(k, $, L) {
|
|
9009
9013
|
t = t || require_stream_duplex(), k = k || {}, typeof L != "boolean" && (L = $ instanceof t), this.objectMode = !!k.objectMode, L && (this.objectMode = this.objectMode || !!k.writableObjectMode), this.highWaterMark = d(this, k, "writableHighWaterMark", L), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
9010
9014
|
var G = k.decodeStrings === !1;
|
|
9011
9015
|
this.decodeStrings = !G, this.defaultEncoding = k.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Z) {
|
|
9012
9016
|
N($, Z);
|
|
9013
9017
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = k.emitClose !== !1, this.autoDestroy = !!k.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
9014
9018
|
}
|
|
9015
|
-
|
|
9019
|
+
O.prototype.getBuffer = function() {
|
|
9016
9020
|
for (var $ = this.bufferedRequest, L = []; $; )
|
|
9017
9021
|
L.push($), $ = $.next;
|
|
9018
9022
|
return L;
|
|
9019
9023
|
}, function() {
|
|
9020
9024
|
try {
|
|
9021
|
-
Object.defineProperty(
|
|
9025
|
+
Object.defineProperty(O.prototype, "buffer", {
|
|
9022
9026
|
get: r.deprecate(function() {
|
|
9023
9027
|
return this.getBuffer();
|
|
9024
9028
|
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
@@ -9029,7 +9033,7 @@ function require_stream_writable() {
|
|
|
9029
9033
|
var F;
|
|
9030
9034
|
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (F = Function.prototype[Symbol.hasInstance], Object.defineProperty(w, Symbol.hasInstance, {
|
|
9031
9035
|
value: function($) {
|
|
9032
|
-
return F.call(this, $) ? !0 : this !== w ? !1 : $ && $._writableState instanceof
|
|
9036
|
+
return F.call(this, $) ? !0 : this !== w ? !1 : $ && $._writableState instanceof O;
|
|
9033
9037
|
}
|
|
9034
9038
|
})) : F = function($) {
|
|
9035
9039
|
return $ instanceof this;
|
|
@@ -9039,7 +9043,7 @@ function require_stream_writable() {
|
|
|
9039
9043
|
var $ = this instanceof t;
|
|
9040
9044
|
if (!$ && !F.call(w, this))
|
|
9041
9045
|
return new w(k);
|
|
9042
|
-
this._writableState = new
|
|
9046
|
+
this._writableState = new O(k, this, $), this.writable = !0, k && (typeof k.write == "function" && (this._write = k.write), typeof k.writev == "function" && (this._writev = k.writev), typeof k.destroy == "function" && (this._destroy = k.destroy), typeof k.final == "function" && (this._final = k.final)), n.call(this);
|
|
9043
9047
|
}
|
|
9044
9048
|
w.prototype.pipe = function() {
|
|
9045
9049
|
_(this, new y());
|
|
@@ -9081,8 +9085,8 @@ function require_stream_writable() {
|
|
|
9081
9085
|
});
|
|
9082
9086
|
function q(k, $, L, G, Z, P) {
|
|
9083
9087
|
if (!L) {
|
|
9084
|
-
var
|
|
9085
|
-
G !==
|
|
9088
|
+
var E = I($, G, Z);
|
|
9089
|
+
G !== E && (L = !0, Z = "buffer", G = E);
|
|
9086
9090
|
}
|
|
9087
9091
|
var X = $.objectMode ? 1 : G.length;
|
|
9088
9092
|
$.length += X;
|
|
@@ -9100,8 +9104,8 @@ function require_stream_writable() {
|
|
|
9100
9104
|
M(k, $, !1, X, G, Z, P);
|
|
9101
9105
|
return J;
|
|
9102
9106
|
}
|
|
9103
|
-
function M(k, $, L, G, Z, P,
|
|
9104
|
-
$.writelen = G, $.writecb =
|
|
9107
|
+
function M(k, $, L, G, Z, P, E) {
|
|
9108
|
+
$.writelen = G, $.writecb = E, $.writing = !0, $.sync = !0, $.destroyed ? $.onwrite(new b("write")) : L ? k._writev(Z, $.onwrite) : k._write(Z, P, $.onwrite), $.sync = !1;
|
|
9105
9109
|
}
|
|
9106
9110
|
function D(k, $, L, G, Z) {
|
|
9107
9111
|
--$.pendingcb, L ? (process.nextTick(Z, G), process.nextTick(K, k, $), k._writableState.errorEmitted = !0, _(k, G)) : (Z(G), k._writableState.errorEmitted = !0, _(k, G), K(k, $));
|
|
@@ -9132,8 +9136,8 @@ function require_stream_writable() {
|
|
|
9132
9136
|
if (k._writev && L && L.next) {
|
|
9133
9137
|
var G = $.bufferedRequestCount, Z = new Array(G), P = $.corkedRequestsFree;
|
|
9134
9138
|
P.entry = L;
|
|
9135
|
-
for (var
|
|
9136
|
-
Z[
|
|
9139
|
+
for (var E = 0, X = !0; L; )
|
|
9140
|
+
Z[E] = L, L.isBuf || (X = !1), L = L.next, E += 1;
|
|
9137
9141
|
Z.allBuffers = X, M(k, $, !0, $.length, Z, "", P.finish), $.pendingcb++, $.lastBufferedRequest = null, P.next ? ($.corkedRequestsFree = P.next, P.next = null) : $.corkedRequestsFree = new e($), $.bufferedRequestCount = 0;
|
|
9138
9142
|
} else {
|
|
9139
9143
|
for (; L; ) {
|
|
@@ -9552,9 +9556,9 @@ function requireAsync_iterator() {
|
|
|
9552
9556
|
if (_)
|
|
9553
9557
|
C = new Promise(h(_, this));
|
|
9554
9558
|
else {
|
|
9555
|
-
var
|
|
9556
|
-
if (
|
|
9557
|
-
return Promise.resolve(d(
|
|
9559
|
+
var O = this[c].read();
|
|
9560
|
+
if (O !== null)
|
|
9561
|
+
return Promise.resolve(d(O, !1));
|
|
9558
9562
|
C = new Promise(this[l]);
|
|
9559
9563
|
}
|
|
9560
9564
|
return this[u] = C, C;
|
|
@@ -9589,16 +9593,16 @@ function requireAsync_iterator() {
|
|
|
9589
9593
|
value: v._readableState.endEmitted,
|
|
9590
9594
|
writable: !0
|
|
9591
9595
|
}), t(x, l, {
|
|
9592
|
-
value: function(
|
|
9596
|
+
value: function(O, F) {
|
|
9593
9597
|
var w = _[c].read();
|
|
9594
|
-
w ? (_[u] = null, _[n] = null, _[a] = null,
|
|
9598
|
+
w ? (_[u] = null, _[n] = null, _[a] = null, O(d(w, !1))) : (_[n] = O, _[a] = F);
|
|
9595
9599
|
},
|
|
9596
9600
|
writable: !0
|
|
9597
9601
|
}), x));
|
|
9598
9602
|
return _[u] = null, r(v, function(C) {
|
|
9599
9603
|
if (C && C.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
9600
|
-
var
|
|
9601
|
-
|
|
9604
|
+
var O = _[a];
|
|
9605
|
+
O !== null && (_[u] = null, _[n] = null, _[a] = null, O(C)), _[o] = C;
|
|
9602
9606
|
return;
|
|
9603
9607
|
}
|
|
9604
9608
|
var F = _[n];
|
|
@@ -9620,8 +9624,8 @@ function require_stream_readable() {
|
|
|
9620
9624
|
hasRequired_stream_readable = 1, _stream_readable = S;
|
|
9621
9625
|
var e;
|
|
9622
9626
|
S.ReadableState = w, events.exports.EventEmitter;
|
|
9623
|
-
var t = function(
|
|
9624
|
-
return
|
|
9627
|
+
var t = function(E, X) {
|
|
9628
|
+
return E.listeners(X).length;
|
|
9625
9629
|
}, r = streamBrowser, n = require$$0.Buffer, a = commonjsGlobal.Uint8Array || function() {
|
|
9626
9630
|
};
|
|
9627
9631
|
function o(P) {
|
|
@@ -9635,128 +9639,128 @@ function require_stream_readable() {
|
|
|
9635
9639
|
};
|
|
9636
9640
|
var c = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, y = h.ERR_STREAM_PUSH_AFTER_EOF, b = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, x, _;
|
|
9637
9641
|
inherits_browser.exports(S, r);
|
|
9638
|
-
var C = d.errorOrDestroy,
|
|
9639
|
-
function F(P,
|
|
9642
|
+
var C = d.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
|
|
9643
|
+
function F(P, E, X) {
|
|
9640
9644
|
if (typeof P.prependListener == "function")
|
|
9641
|
-
return P.prependListener(
|
|
9642
|
-
!P._events || !P._events[
|
|
9645
|
+
return P.prependListener(E, X);
|
|
9646
|
+
!P._events || !P._events[E] ? P.on(E, X) : Array.isArray(P._events[E]) ? P._events[E].unshift(X) : P._events[E] = [X, P._events[E]];
|
|
9643
9647
|
}
|
|
9644
|
-
function w(P,
|
|
9645
|
-
e = e || require_stream_duplex(), P = P || {}, typeof X != "boolean" && (X =
|
|
9648
|
+
function w(P, E, X) {
|
|
9649
|
+
e = e || require_stream_duplex(), P = P || {}, typeof X != "boolean" && (X = E instanceof e), this.objectMode = !!P.objectMode, X && (this.objectMode = this.objectMode || !!P.readableObjectMode), this.highWaterMark = p(this, P, "readableHighWaterMark", X), this.buffer = new c(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = P.emitClose !== !1, this.autoDestroy = !!P.autoDestroy, this.destroyed = !1, this.defaultEncoding = P.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, P.encoding && (v || (v = requireString_decoder().StringDecoder), this.decoder = new v(P.encoding), this.encoding = P.encoding);
|
|
9646
9650
|
}
|
|
9647
9651
|
function S(P) {
|
|
9648
9652
|
if (e = e || require_stream_duplex(), !(this instanceof S))
|
|
9649
9653
|
return new S(P);
|
|
9650
|
-
var
|
|
9651
|
-
this._readableState = new w(P, this,
|
|
9654
|
+
var E = this instanceof e;
|
|
9655
|
+
this._readableState = new w(P, this, E), this.readable = !0, P && (typeof P.read == "function" && (this._read = P.read), typeof P.destroy == "function" && (this._destroy = P.destroy)), r.call(this);
|
|
9652
9656
|
}
|
|
9653
9657
|
Object.defineProperty(S.prototype, "destroyed", {
|
|
9654
9658
|
enumerable: !1,
|
|
9655
9659
|
get: function() {
|
|
9656
9660
|
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
9657
9661
|
},
|
|
9658
|
-
set: function(
|
|
9659
|
-
!this._readableState || (this._readableState.destroyed =
|
|
9662
|
+
set: function(E) {
|
|
9663
|
+
!this._readableState || (this._readableState.destroyed = E);
|
|
9660
9664
|
}
|
|
9661
|
-
}), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(P,
|
|
9662
|
-
|
|
9663
|
-
}, S.prototype.push = function(P,
|
|
9665
|
+
}), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(P, E) {
|
|
9666
|
+
E(P);
|
|
9667
|
+
}, S.prototype.push = function(P, E) {
|
|
9664
9668
|
var X = this._readableState, J;
|
|
9665
|
-
return X.objectMode ? J = !0 : typeof P == "string" && (
|
|
9669
|
+
return X.objectMode ? J = !0 : typeof P == "string" && (E = E || X.defaultEncoding, E !== X.encoding && (P = n.from(P, E), E = ""), J = !0), T(this, P, E, !1, J);
|
|
9666
9670
|
}, S.prototype.unshift = function(P) {
|
|
9667
9671
|
return T(this, P, null, !0, !1);
|
|
9668
9672
|
};
|
|
9669
|
-
function T(P,
|
|
9670
|
-
l("readableAddChunk",
|
|
9673
|
+
function T(P, E, X, J, ee) {
|
|
9674
|
+
l("readableAddChunk", E);
|
|
9671
9675
|
var Q = P._readableState;
|
|
9672
|
-
if (
|
|
9676
|
+
if (E === null)
|
|
9673
9677
|
Q.reading = !1, N(P, Q);
|
|
9674
9678
|
else {
|
|
9675
9679
|
var ie;
|
|
9676
|
-
if (ee || (ie = q(Q,
|
|
9680
|
+
if (ee || (ie = q(Q, E)), ie)
|
|
9677
9681
|
C(P, ie);
|
|
9678
|
-
else if (Q.objectMode ||
|
|
9679
|
-
if (typeof
|
|
9680
|
-
Q.endEmitted ? C(P, new g()) : I(P, Q,
|
|
9682
|
+
else if (Q.objectMode || E && E.length > 0)
|
|
9683
|
+
if (typeof E != "string" && !Q.objectMode && Object.getPrototypeOf(E) !== n.prototype && (E = o(E)), J)
|
|
9684
|
+
Q.endEmitted ? C(P, new g()) : I(P, Q, E, !0);
|
|
9681
9685
|
else if (Q.ended)
|
|
9682
9686
|
C(P, new y());
|
|
9683
9687
|
else {
|
|
9684
9688
|
if (Q.destroyed)
|
|
9685
9689
|
return !1;
|
|
9686
|
-
Q.reading = !1, Q.decoder && !X ? (
|
|
9690
|
+
Q.reading = !1, Q.decoder && !X ? (E = Q.decoder.write(E), Q.objectMode || E.length !== 0 ? I(P, Q, E, !1) : W(P, Q)) : I(P, Q, E, !1);
|
|
9687
9691
|
}
|
|
9688
9692
|
else
|
|
9689
9693
|
J || (Q.reading = !1, W(P, Q));
|
|
9690
9694
|
}
|
|
9691
9695
|
return !Q.ended && (Q.length < Q.highWaterMark || Q.length === 0);
|
|
9692
9696
|
}
|
|
9693
|
-
function I(P,
|
|
9694
|
-
|
|
9697
|
+
function I(P, E, X, J) {
|
|
9698
|
+
E.flowing && E.length === 0 && !E.sync ? (E.awaitDrain = 0, P.emit("data", X)) : (E.length += E.objectMode ? 1 : X.length, J ? E.buffer.unshift(X) : E.buffer.push(X), E.needReadable && V(P)), W(P, E);
|
|
9695
9699
|
}
|
|
9696
|
-
function q(P,
|
|
9700
|
+
function q(P, E) {
|
|
9697
9701
|
var X;
|
|
9698
|
-
return !s(
|
|
9702
|
+
return !s(E) && typeof E != "string" && E !== void 0 && !P.objectMode && (X = new m("chunk", ["string", "Buffer", "Uint8Array"], E)), X;
|
|
9699
9703
|
}
|
|
9700
9704
|
S.prototype.isPaused = function() {
|
|
9701
9705
|
return this._readableState.flowing === !1;
|
|
9702
9706
|
}, S.prototype.setEncoding = function(P) {
|
|
9703
9707
|
v || (v = requireString_decoder().StringDecoder);
|
|
9704
|
-
var
|
|
9705
|
-
this._readableState.decoder =
|
|
9708
|
+
var E = new v(P);
|
|
9709
|
+
this._readableState.decoder = E, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
9706
9710
|
for (var X = this._readableState.buffer.head, J = ""; X !== null; )
|
|
9707
|
-
J +=
|
|
9711
|
+
J += E.write(X.data), X = X.next;
|
|
9708
9712
|
return this._readableState.buffer.clear(), J !== "" && this._readableState.buffer.push(J), this._readableState.length = J.length, this;
|
|
9709
9713
|
};
|
|
9710
9714
|
var M = 1073741824;
|
|
9711
9715
|
function D(P) {
|
|
9712
9716
|
return P >= M ? P = M : (P--, P |= P >>> 1, P |= P >>> 2, P |= P >>> 4, P |= P >>> 8, P |= P >>> 16, P++), P;
|
|
9713
9717
|
}
|
|
9714
|
-
function j(P,
|
|
9715
|
-
return P <= 0 ||
|
|
9718
|
+
function j(P, E) {
|
|
9719
|
+
return P <= 0 || E.length === 0 && E.ended ? 0 : E.objectMode ? 1 : P !== P ? E.flowing && E.length ? E.buffer.head.data.length : E.length : (P > E.highWaterMark && (E.highWaterMark = D(P)), P <= E.length ? P : E.ended ? E.length : (E.needReadable = !0, 0));
|
|
9716
9720
|
}
|
|
9717
9721
|
S.prototype.read = function(P) {
|
|
9718
9722
|
l("read", P), P = parseInt(P, 10);
|
|
9719
|
-
var
|
|
9720
|
-
if (P !== 0 && (
|
|
9721
|
-
return l("read: emitReadable",
|
|
9722
|
-
if (P = j(P,
|
|
9723
|
-
return
|
|
9724
|
-
var J =
|
|
9725
|
-
l("need readable", J), (
|
|
9723
|
+
var E = this._readableState, X = P;
|
|
9724
|
+
if (P !== 0 && (E.emittedReadable = !1), P === 0 && E.needReadable && ((E.highWaterMark !== 0 ? E.length >= E.highWaterMark : E.length > 0) || E.ended))
|
|
9725
|
+
return l("read: emitReadable", E.length, E.ended), E.length === 0 && E.ended ? L(this) : V(this), null;
|
|
9726
|
+
if (P = j(P, E), P === 0 && E.ended)
|
|
9727
|
+
return E.length === 0 && L(this), null;
|
|
9728
|
+
var J = E.needReadable;
|
|
9729
|
+
l("need readable", J), (E.length === 0 || E.length - P < E.highWaterMark) && (J = !0, l("length less than watermark", J)), E.ended || E.reading ? (J = !1, l("reading or ended", J)) : J && (l("do read"), E.reading = !0, E.sync = !0, E.length === 0 && (E.needReadable = !0), this._read(E.highWaterMark), E.sync = !1, E.reading || (P = j(X, E)));
|
|
9726
9730
|
var ee;
|
|
9727
|
-
return P > 0 ? ee = $(P,
|
|
9731
|
+
return P > 0 ? ee = $(P, E) : ee = null, ee === null ? (E.needReadable = E.length <= E.highWaterMark, P = 0) : (E.length -= P, E.awaitDrain = 0), E.length === 0 && (E.ended || (E.needReadable = !0), X !== P && E.ended && L(this)), ee !== null && this.emit("data", ee), ee;
|
|
9728
9732
|
};
|
|
9729
|
-
function N(P,
|
|
9730
|
-
if (l("onEofChunk"), !
|
|
9731
|
-
if (
|
|
9732
|
-
var X =
|
|
9733
|
-
X && X.length && (
|
|
9733
|
+
function N(P, E) {
|
|
9734
|
+
if (l("onEofChunk"), !E.ended) {
|
|
9735
|
+
if (E.decoder) {
|
|
9736
|
+
var X = E.decoder.end();
|
|
9737
|
+
X && X.length && (E.buffer.push(X), E.length += E.objectMode ? 1 : X.length);
|
|
9734
9738
|
}
|
|
9735
|
-
|
|
9739
|
+
E.ended = !0, E.sync ? V(P) : (E.needReadable = !1, E.emittedReadable || (E.emittedReadable = !0, A(P)));
|
|
9736
9740
|
}
|
|
9737
9741
|
}
|
|
9738
9742
|
function V(P) {
|
|
9739
|
-
var
|
|
9740
|
-
l("emitReadable",
|
|
9743
|
+
var E = P._readableState;
|
|
9744
|
+
l("emitReadable", E.needReadable, E.emittedReadable), E.needReadable = !1, E.emittedReadable || (l("emitReadable", E.flowing), E.emittedReadable = !0, process.nextTick(A, P));
|
|
9741
9745
|
}
|
|
9742
9746
|
function A(P) {
|
|
9743
|
-
var
|
|
9744
|
-
l("emitReadable_",
|
|
9747
|
+
var E = P._readableState;
|
|
9748
|
+
l("emitReadable_", E.destroyed, E.length, E.ended), !E.destroyed && (E.length || E.ended) && (P.emit("readable"), E.emittedReadable = !1), E.needReadable = !E.flowing && !E.ended && E.length <= E.highWaterMark, k(P);
|
|
9745
9749
|
}
|
|
9746
|
-
function W(P,
|
|
9747
|
-
|
|
9750
|
+
function W(P, E) {
|
|
9751
|
+
E.readingMore || (E.readingMore = !0, process.nextTick(Y, P, E));
|
|
9748
9752
|
}
|
|
9749
|
-
function Y(P,
|
|
9750
|
-
for (; !
|
|
9751
|
-
var X =
|
|
9752
|
-
if (l("maybeReadMore read 0"), P.read(0), X ===
|
|
9753
|
+
function Y(P, E) {
|
|
9754
|
+
for (; !E.reading && !E.ended && (E.length < E.highWaterMark || E.flowing && E.length === 0); ) {
|
|
9755
|
+
var X = E.length;
|
|
9756
|
+
if (l("maybeReadMore read 0"), P.read(0), X === E.length)
|
|
9753
9757
|
break;
|
|
9754
9758
|
}
|
|
9755
|
-
|
|
9759
|
+
E.readingMore = !1;
|
|
9756
9760
|
}
|
|
9757
9761
|
S.prototype._read = function(P) {
|
|
9758
9762
|
C(this, new b("_read()"));
|
|
9759
|
-
}, S.prototype.pipe = function(P,
|
|
9763
|
+
}, S.prototype.pipe = function(P, E) {
|
|
9760
9764
|
var X = this, J = this._readableState;
|
|
9761
9765
|
switch (J.pipesCount) {
|
|
9762
9766
|
case 0:
|
|
@@ -9769,8 +9773,8 @@ function require_stream_readable() {
|
|
|
9769
9773
|
J.pipes.push(P);
|
|
9770
9774
|
break;
|
|
9771
9775
|
}
|
|
9772
|
-
J.pipesCount += 1, l("pipe count=%d opts=%j", J.pipesCount,
|
|
9773
|
-
var ee = (!
|
|
9776
|
+
J.pipesCount += 1, l("pipe count=%d opts=%j", J.pipesCount, E);
|
|
9777
|
+
var ee = (!E || E.end !== !1) && P !== process.stdout && P !== process.stderr, Q = ee ? te : he;
|
|
9774
9778
|
J.endEmitted ? process.nextTick(Q) : X.once("end", Q), P.on("unpipe", ie);
|
|
9775
9779
|
function ie(ge, pe) {
|
|
9776
9780
|
l("onunpipe"), ge === X && pe && pe.hasUnpiped === !1 && (pe.hasUnpiped = !0, _e());
|
|
@@ -9814,37 +9818,37 @@ function require_stream_readable() {
|
|
|
9814
9818
|
};
|
|
9815
9819
|
}
|
|
9816
9820
|
S.prototype.unpipe = function(P) {
|
|
9817
|
-
var
|
|
9821
|
+
var E = this._readableState, X = {
|
|
9818
9822
|
hasUnpiped: !1
|
|
9819
9823
|
};
|
|
9820
|
-
if (
|
|
9824
|
+
if (E.pipesCount === 0)
|
|
9821
9825
|
return this;
|
|
9822
|
-
if (
|
|
9823
|
-
return P && P !==
|
|
9826
|
+
if (E.pipesCount === 1)
|
|
9827
|
+
return P && P !== E.pipes ? this : (P || (P = E.pipes), E.pipes = null, E.pipesCount = 0, E.flowing = !1, P && P.emit("unpipe", this, X), this);
|
|
9824
9828
|
if (!P) {
|
|
9825
|
-
var J =
|
|
9826
|
-
|
|
9829
|
+
var J = E.pipes, ee = E.pipesCount;
|
|
9830
|
+
E.pipes = null, E.pipesCount = 0, E.flowing = !1;
|
|
9827
9831
|
for (var Q = 0; Q < ee; Q++)
|
|
9828
9832
|
J[Q].emit("unpipe", this, {
|
|
9829
9833
|
hasUnpiped: !1
|
|
9830
9834
|
});
|
|
9831
9835
|
return this;
|
|
9832
9836
|
}
|
|
9833
|
-
var ie = Z(
|
|
9834
|
-
return ie === -1 ? this : (
|
|
9835
|
-
}, S.prototype.on = function(P,
|
|
9836
|
-
var X = r.prototype.on.call(this, P,
|
|
9837
|
+
var ie = Z(E.pipes, P);
|
|
9838
|
+
return ie === -1 ? this : (E.pipes.splice(ie, 1), E.pipesCount -= 1, E.pipesCount === 1 && (E.pipes = E.pipes[0]), P.emit("unpipe", this, X), this);
|
|
9839
|
+
}, S.prototype.on = function(P, E) {
|
|
9840
|
+
var X = r.prototype.on.call(this, P, E), J = this._readableState;
|
|
9837
9841
|
return P === "data" ? (J.readableListening = this.listenerCount("readable") > 0, J.flowing !== !1 && this.resume()) : P === "readable" && !J.endEmitted && !J.readableListening && (J.readableListening = J.needReadable = !0, J.flowing = !1, J.emittedReadable = !1, l("on readable", J.length, J.reading), J.length ? V(this) : J.reading || process.nextTick(K, this)), X;
|
|
9838
|
-
}, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(P,
|
|
9839
|
-
var X = r.prototype.removeListener.call(this, P,
|
|
9842
|
+
}, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(P, E) {
|
|
9843
|
+
var X = r.prototype.removeListener.call(this, P, E);
|
|
9840
9844
|
return P === "readable" && process.nextTick(H, this), X;
|
|
9841
9845
|
}, S.prototype.removeAllListeners = function(P) {
|
|
9842
|
-
var
|
|
9843
|
-
return (P === "readable" || P === void 0) && process.nextTick(H, this),
|
|
9846
|
+
var E = r.prototype.removeAllListeners.apply(this, arguments);
|
|
9847
|
+
return (P === "readable" || P === void 0) && process.nextTick(H, this), E;
|
|
9844
9848
|
};
|
|
9845
9849
|
function H(P) {
|
|
9846
|
-
var
|
|
9847
|
-
|
|
9850
|
+
var E = P._readableState;
|
|
9851
|
+
E.readableListening = P.listenerCount("readable") > 0, E.resumeScheduled && !E.paused ? E.flowing = !0 : P.listenerCount("data") > 0 && P.resume();
|
|
9848
9852
|
}
|
|
9849
9853
|
function K(P) {
|
|
9850
9854
|
l("readable nexttick read 0"), P.read(0);
|
|
@@ -9853,31 +9857,31 @@ function require_stream_readable() {
|
|
|
9853
9857
|
var P = this._readableState;
|
|
9854
9858
|
return P.flowing || (l("resume"), P.flowing = !P.readableListening, U(this, P)), P.paused = !1, this;
|
|
9855
9859
|
};
|
|
9856
|
-
function U(P,
|
|
9857
|
-
|
|
9860
|
+
function U(P, E) {
|
|
9861
|
+
E.resumeScheduled || (E.resumeScheduled = !0, process.nextTick(B, P, E));
|
|
9858
9862
|
}
|
|
9859
|
-
function B(P,
|
|
9860
|
-
l("resume",
|
|
9863
|
+
function B(P, E) {
|
|
9864
|
+
l("resume", E.reading), E.reading || P.read(0), E.resumeScheduled = !1, P.emit("resume"), k(P), E.flowing && !E.reading && P.read(0);
|
|
9861
9865
|
}
|
|
9862
9866
|
S.prototype.pause = function() {
|
|
9863
9867
|
return l("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (l("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
9864
9868
|
};
|
|
9865
9869
|
function k(P) {
|
|
9866
|
-
var
|
|
9867
|
-
for (l("flow",
|
|
9870
|
+
var E = P._readableState;
|
|
9871
|
+
for (l("flow", E.flowing); E.flowing && P.read() !== null; )
|
|
9868
9872
|
;
|
|
9869
9873
|
}
|
|
9870
9874
|
S.prototype.wrap = function(P) {
|
|
9871
|
-
var
|
|
9875
|
+
var E = this, X = this._readableState, J = !1;
|
|
9872
9876
|
P.on("end", function() {
|
|
9873
9877
|
if (l("wrapped end"), X.decoder && !X.ended) {
|
|
9874
9878
|
var ie = X.decoder.end();
|
|
9875
|
-
ie && ie.length &&
|
|
9879
|
+
ie && ie.length && E.push(ie);
|
|
9876
9880
|
}
|
|
9877
|
-
|
|
9881
|
+
E.push(null);
|
|
9878
9882
|
}), P.on("data", function(ie) {
|
|
9879
9883
|
if (l("wrapped data"), X.decoder && (ie = X.decoder.write(ie)), !(X.objectMode && ie == null) && !(!X.objectMode && (!ie || !ie.length))) {
|
|
9880
|
-
var te =
|
|
9884
|
+
var te = E.push(ie);
|
|
9881
9885
|
te || (J = !0, P.pause());
|
|
9882
9886
|
}
|
|
9883
9887
|
});
|
|
@@ -9887,8 +9891,8 @@ function require_stream_readable() {
|
|
|
9887
9891
|
return P[te].apply(P, arguments);
|
|
9888
9892
|
};
|
|
9889
9893
|
}(ee));
|
|
9890
|
-
for (var Q = 0; Q <
|
|
9891
|
-
P.on(
|
|
9894
|
+
for (var Q = 0; Q < O.length; Q++)
|
|
9895
|
+
P.on(O[Q], this.emit.bind(this, O[Q]));
|
|
9892
9896
|
return this._read = function(ie) {
|
|
9893
9897
|
l("wrapped _read", ie), J && (J = !1, P.resume());
|
|
9894
9898
|
}, this;
|
|
@@ -9909,8 +9913,8 @@ function require_stream_readable() {
|
|
|
9909
9913
|
get: function() {
|
|
9910
9914
|
return this._readableState.flowing;
|
|
9911
9915
|
},
|
|
9912
|
-
set: function(
|
|
9913
|
-
this._readableState && (this._readableState.flowing =
|
|
9916
|
+
set: function(E) {
|
|
9917
|
+
this._readableState && (this._readableState.flowing = E);
|
|
9914
9918
|
}
|
|
9915
9919
|
}), S._fromList = $, Object.defineProperty(S.prototype, "readableLength", {
|
|
9916
9920
|
enumerable: !1,
|
|
@@ -9918,28 +9922,28 @@ function require_stream_readable() {
|
|
|
9918
9922
|
return this._readableState.length;
|
|
9919
9923
|
}
|
|
9920
9924
|
});
|
|
9921
|
-
function $(P,
|
|
9922
|
-
if (
|
|
9925
|
+
function $(P, E) {
|
|
9926
|
+
if (E.length === 0)
|
|
9923
9927
|
return null;
|
|
9924
9928
|
var X;
|
|
9925
|
-
return
|
|
9929
|
+
return E.objectMode ? X = E.buffer.shift() : !P || P >= E.length ? (E.decoder ? X = E.buffer.join("") : E.buffer.length === 1 ? X = E.buffer.first() : X = E.buffer.concat(E.length), E.buffer.clear()) : X = E.buffer.consume(P, E.decoder), X;
|
|
9926
9930
|
}
|
|
9927
9931
|
function L(P) {
|
|
9928
|
-
var
|
|
9929
|
-
l("endReadable",
|
|
9932
|
+
var E = P._readableState;
|
|
9933
|
+
l("endReadable", E.endEmitted), E.endEmitted || (E.ended = !0, process.nextTick(G, E, P));
|
|
9930
9934
|
}
|
|
9931
|
-
function G(P,
|
|
9932
|
-
if (l("endReadableNT", P.endEmitted, P.length), !P.endEmitted && P.length === 0 && (P.endEmitted = !0,
|
|
9933
|
-
var X =
|
|
9934
|
-
(!X || X.autoDestroy && X.finished) &&
|
|
9935
|
+
function G(P, E) {
|
|
9936
|
+
if (l("endReadableNT", P.endEmitted, P.length), !P.endEmitted && P.length === 0 && (P.endEmitted = !0, E.readable = !1, E.emit("end"), P.autoDestroy)) {
|
|
9937
|
+
var X = E._writableState;
|
|
9938
|
+
(!X || X.autoDestroy && X.finished) && E.destroy();
|
|
9935
9939
|
}
|
|
9936
9940
|
}
|
|
9937
|
-
typeof Symbol == "function" && (S.from = function(P,
|
|
9938
|
-
return _ === void 0 && (_ = requireFromBrowser()), _(S, P,
|
|
9941
|
+
typeof Symbol == "function" && (S.from = function(P, E) {
|
|
9942
|
+
return _ === void 0 && (_ = requireFromBrowser()), _(S, P, E);
|
|
9939
9943
|
});
|
|
9940
|
-
function Z(P,
|
|
9944
|
+
function Z(P, E) {
|
|
9941
9945
|
for (var X = 0, J = P.length; X < J; X++)
|
|
9942
|
-
if (P[X] ===
|
|
9946
|
+
if (P[X] === E)
|
|
9943
9947
|
return X;
|
|
9944
9948
|
return -1;
|
|
9945
9949
|
}
|
|
@@ -12269,7 +12273,7 @@ const Image = (e) => {
|
|
|
12269
12273
|
useDeepCompareEffect(() => {
|
|
12270
12274
|
F();
|
|
12271
12275
|
}, [o]);
|
|
12272
|
-
const
|
|
12276
|
+
const O = (w) => {
|
|
12273
12277
|
a == null || a({
|
|
12274
12278
|
items: w
|
|
12275
12279
|
});
|
|
@@ -12287,7 +12291,7 @@ const Image = (e) => {
|
|
|
12287
12291
|
...y
|
|
12288
12292
|
}
|
|
12289
12293
|
});
|
|
12290
|
-
|
|
12294
|
+
O(w);
|
|
12291
12295
|
} catch (w) {
|
|
12292
12296
|
c(w);
|
|
12293
12297
|
} finally {
|
|
@@ -12534,7 +12538,7 @@ const transformPlainMany2Ones = ({
|
|
|
12534
12538
|
onChange: n
|
|
12535
12539
|
} = e, {
|
|
12536
12540
|
items: a = []
|
|
12537
|
-
} = t || {}, o = a.filter((
|
|
12541
|
+
} = t || {}, o = a.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [s, u] = useState([]), [l, c] = useState(), [d, f] = useState(!1), {
|
|
12538
12542
|
relation: p,
|
|
12539
12543
|
context: h,
|
|
12540
12544
|
readOnly: m,
|
|
@@ -12545,16 +12549,16 @@ const transformPlainMany2Ones = ({
|
|
|
12545
12549
|
useDeepCompareEffect(() => {
|
|
12546
12550
|
x();
|
|
12547
12551
|
}, [a]);
|
|
12548
|
-
const v = (
|
|
12552
|
+
const v = (O) => {
|
|
12549
12553
|
n == null || n({
|
|
12550
|
-
items:
|
|
12554
|
+
items: O
|
|
12551
12555
|
});
|
|
12552
12556
|
};
|
|
12553
12557
|
async function x() {
|
|
12554
12558
|
f(!0);
|
|
12555
|
-
let
|
|
12559
|
+
let O = [];
|
|
12556
12560
|
try {
|
|
12557
|
-
if (m && (
|
|
12561
|
+
if (m && (O = [["id", "in", o]]), r.domain) {
|
|
12558
12562
|
const S = await ConnectionProvider.getHandler().evalDomain({
|
|
12559
12563
|
domain: r.domain,
|
|
12560
12564
|
values: transformPlainMany2Ones({
|
|
@@ -12564,11 +12568,11 @@ const transformPlainMany2Ones = ({
|
|
|
12564
12568
|
fields: b == null ? void 0 : b.getFields(),
|
|
12565
12569
|
context: b.getContext()
|
|
12566
12570
|
});
|
|
12567
|
-
|
|
12571
|
+
O = [...O, ...S];
|
|
12568
12572
|
}
|
|
12569
12573
|
const w = (await ConnectionProvider.getHandler().search({
|
|
12570
12574
|
model: p,
|
|
12571
|
-
params:
|
|
12575
|
+
params: O,
|
|
12572
12576
|
fields: [y],
|
|
12573
12577
|
context: {
|
|
12574
12578
|
...g == null ? void 0 : g(),
|
|
@@ -12589,26 +12593,26 @@ const transformPlainMany2Ones = ({
|
|
|
12589
12593
|
f(!1);
|
|
12590
12594
|
}
|
|
12591
12595
|
}
|
|
12592
|
-
const _ = (
|
|
12593
|
-
const F = a.map((S) =>
|
|
12596
|
+
const _ = (O) => {
|
|
12597
|
+
const F = a.map((S) => O.includes(S.id) ? S.operation == "pendingRemove" ? {
|
|
12594
12598
|
...S,
|
|
12595
12599
|
operation: "pendingLink"
|
|
12596
12600
|
} : S : {
|
|
12597
12601
|
id: S.id,
|
|
12598
12602
|
operation: "pendingRemove"
|
|
12599
12603
|
}), w = F.map((S) => S.id);
|
|
12600
|
-
|
|
12604
|
+
O.filter((S) => !w.includes(S)).map((S) => {
|
|
12601
12605
|
F.push({
|
|
12602
12606
|
id: S,
|
|
12603
12607
|
operation: "pendingLink"
|
|
12604
12608
|
});
|
|
12605
12609
|
}), v(F);
|
|
12606
|
-
}, C = (
|
|
12610
|
+
}, C = (O) => {
|
|
12607
12611
|
const {
|
|
12608
12612
|
label: F,
|
|
12609
12613
|
closable: w,
|
|
12610
12614
|
onClose: S
|
|
12611
|
-
} =
|
|
12615
|
+
} = O, T = (I) => {
|
|
12612
12616
|
I.preventDefault(), I.stopPropagation();
|
|
12613
12617
|
};
|
|
12614
12618
|
return /* @__PURE__ */ jsx(Tag, {
|
|
@@ -13009,7 +13013,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13009
13013
|
currentId: x,
|
|
13010
13014
|
limit: _,
|
|
13011
13015
|
setLimit: C,
|
|
13012
|
-
searchParams:
|
|
13016
|
+
searchParams: O = [],
|
|
13013
13017
|
setSearchValues: F
|
|
13014
13018
|
} = e, [w, S] = useState(!1), [T, I] = useState(!1), [q, M] = useState(), [D, j] = useState(1), [N, V] = useState(0), [A, W] = useState(), [Y, z] = useState([]), [H, K] = useState(void 0), U = useRef(_ || DEFAULT_SEARCH_LIMIT$1), B = useRef([]), k = useCallback((Q) => {
|
|
13015
13019
|
b == null || b([...Q]), z([...Q]);
|
|
@@ -13056,7 +13060,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13056
13060
|
d
|
|
13057
13061
|
]), G = useCallback(
|
|
13058
13062
|
async (Q) => {
|
|
13059
|
-
const { params: ie, newOffset: te } = Q || {}, oe = mergeParams(ie ||
|
|
13063
|
+
const { params: ie, newOffset: te } = Q || {}, oe = mergeParams(ie || O, v), { colors: se } = getTree(f), { totalItems: _e, results: Ce, attrsEvaluated: ae } = await ConnectionProvider.getHandler().searchForTree({
|
|
13060
13064
|
params: oe,
|
|
13061
13065
|
limit: U.current,
|
|
13062
13066
|
offset: te || N,
|
|
@@ -13095,7 +13099,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13095
13099
|
d,
|
|
13096
13100
|
_,
|
|
13097
13101
|
N,
|
|
13098
|
-
|
|
13102
|
+
O
|
|
13099
13103
|
]
|
|
13100
13104
|
), Z = useCallback(
|
|
13101
13105
|
async (Q) => {
|
|
@@ -13139,7 +13143,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13139
13143
|
k(ie);
|
|
13140
13144
|
},
|
|
13141
13145
|
[m, $, f, p, k]
|
|
13142
|
-
),
|
|
13146
|
+
), E = useCallback(
|
|
13143
13147
|
(Q) => {
|
|
13144
13148
|
const { params: ie, searchValues: te, limit: oe, offset: se } = Q;
|
|
13145
13149
|
w || (r == null || r(void 0), n == null || n([]), F == null || F(te), a == null || a(ie), o == null || o(!1), I(!0), M(void 0), j(1), oe && (U.current = oe, C == null || C(oe)), se && V(se), Z({
|
|
@@ -13189,7 +13193,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13189
13193
|
[f, t, c, $, k]
|
|
13190
13194
|
);
|
|
13191
13195
|
return {
|
|
13192
|
-
submit:
|
|
13196
|
+
submit: E,
|
|
13193
13197
|
clear: J,
|
|
13194
13198
|
fetchResults: Z,
|
|
13195
13199
|
tableRefreshing: w,
|
|
@@ -13228,11 +13232,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13228
13232
|
setTotalItems: x,
|
|
13229
13233
|
setSelectedRowItems: _,
|
|
13230
13234
|
selectedRowItems: C,
|
|
13231
|
-
searchTreeNameSearch:
|
|
13235
|
+
searchTreeNameSearch: O,
|
|
13232
13236
|
setSearchTreeNameSearch: F,
|
|
13233
13237
|
goToResourceId: w,
|
|
13234
13238
|
limit: S
|
|
13235
|
-
} = e, [T, I] = useState(!1), [q, M] = useState(!1), [D, j] = useState(!1), [N, V] = useState(!0), [A, W] = useState(!0), [Y, z] = useState([]), [H, K] = useState(!1), [U, B] = useState([]), [k, $] = useState(!1), [L, G] = useState(!0), [Z, P] = useState(), [
|
|
13239
|
+
} = e, [T, I] = useState(!1), [q, M] = useState(!1), [D, j] = useState(!1), [N, V] = useState(!0), [A, W] = useState(!0), [Y, z] = useState([]), [H, K] = useState(!1), [U, B] = useState([]), [k, $] = useState(!1), [L, G] = useState(!0), [Z, P] = useState(), [E, X] = useState({}), [J, ee] = useState(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1), [Q, ie] = useState(n);
|
|
13236
13240
|
useEffect(() => {
|
|
13237
13241
|
p && p.length > 0 && !h && (m == null || m(0), d == null || d(p[0].id));
|
|
13238
13242
|
}, [p]), useEffect(() => {
|
|
@@ -13287,14 +13291,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13287
13291
|
setSorter: g,
|
|
13288
13292
|
totalItems: v,
|
|
13289
13293
|
setTotalItems: x,
|
|
13290
|
-
searchTreeNameSearch:
|
|
13294
|
+
searchTreeNameSearch: O,
|
|
13291
13295
|
setSearchTreeNameSearch: F,
|
|
13292
13296
|
setGraphIsLoading: G,
|
|
13293
13297
|
graphIsLoading: L,
|
|
13294
13298
|
previousView: Z,
|
|
13295
13299
|
setPreviousView: P,
|
|
13296
13300
|
goToResourceId: w,
|
|
13297
|
-
searchValues:
|
|
13301
|
+
searchValues: E,
|
|
13298
13302
|
setSearchValues: X,
|
|
13299
13303
|
limit: J,
|
|
13300
13304
|
setLimit: ee,
|
|
@@ -13559,7 +13563,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13559
13563
|
actionData: I
|
|
13560
13564
|
}), h(!0);
|
|
13561
13565
|
}
|
|
13562
|
-
async function
|
|
13566
|
+
async function O() {
|
|
13563
13567
|
callRefreshValues(d.current), d.current = [], h(!1), y({
|
|
13564
13568
|
domain: void 0,
|
|
13565
13569
|
model: void 0,
|
|
@@ -13589,7 +13593,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
13589
13593
|
model: m.model,
|
|
13590
13594
|
formView: m.formView,
|
|
13591
13595
|
visible: p,
|
|
13592
|
-
onSubmitSucceed:
|
|
13596
|
+
onSubmitSucceed: O,
|
|
13593
13597
|
onCancel: () => {
|
|
13594
13598
|
callRefreshValues(d.current), d.current = [], h(!1), y({
|
|
13595
13599
|
domain: void 0,
|
|
@@ -13630,12 +13634,12 @@ function Form(e, t) {
|
|
|
13630
13634
|
visible: x = !0,
|
|
13631
13635
|
rootForm: _ = !1,
|
|
13632
13636
|
defaultValues: C,
|
|
13633
|
-
forcedValues:
|
|
13637
|
+
forcedValues: O = {}
|
|
13634
13638
|
} = e, {
|
|
13635
13639
|
t: F,
|
|
13636
13640
|
lang: w
|
|
13637
13641
|
} = useContext(LocaleContext), [S, T] = useState(!1), [I, q] = useState(), [M, D] = useState(), [j] = Form$3.useForm(), [N, V] = useState(), [A, W] = useState(), Y = useContext(FormModalContext), [z, H] = useState(), [K, U] = useState(!1), B = useRef(), k = useRef({}), $ = useRef({}), L = useRef(!1), G = useRef(!1), Z = z < WIDTH_BREAKPOINT, P = useContext(FormContext$1), {
|
|
13638
|
-
activeId:
|
|
13642
|
+
activeId: E,
|
|
13639
13643
|
getPlainValues: X
|
|
13640
13644
|
} = P || {}, J = useContext(ActionViewContext), {
|
|
13641
13645
|
setFormIsSaving: ee = void 0,
|
|
@@ -13688,7 +13692,7 @@ function Form(e, t) {
|
|
|
13688
13692
|
}
|
|
13689
13693
|
function be() {
|
|
13690
13694
|
const ne = {
|
|
13691
|
-
...
|
|
13695
|
+
...Oe(A),
|
|
13692
13696
|
...ve()
|
|
13693
13697
|
};
|
|
13694
13698
|
for (const re in ne)
|
|
@@ -13705,7 +13709,7 @@ function Form(e, t) {
|
|
|
13705
13709
|
}
|
|
13706
13710
|
function ue() {
|
|
13707
13711
|
const ne = {
|
|
13708
|
-
...
|
|
13712
|
+
...Oe(A)
|
|
13709
13713
|
};
|
|
13710
13714
|
for (const re in ne)
|
|
13711
13715
|
ne[re] === void 0 && delete ne[re];
|
|
@@ -13722,7 +13726,7 @@ function Form(e, t) {
|
|
|
13722
13726
|
id: pe(),
|
|
13723
13727
|
active_id: pe(),
|
|
13724
13728
|
active_ids: [pe()],
|
|
13725
|
-
parent_id:
|
|
13729
|
+
parent_id: E,
|
|
13726
13730
|
...me
|
|
13727
13731
|
};
|
|
13728
13732
|
}
|
|
@@ -13739,9 +13743,9 @@ function Form(e, t) {
|
|
|
13739
13743
|
});
|
|
13740
13744
|
}, Re = () => Object.keys(getTouchedValues({
|
|
13741
13745
|
source: k.current,
|
|
13742
|
-
target:
|
|
13746
|
+
target: Oe(A),
|
|
13743
13747
|
fields: A
|
|
13744
|
-
})).length !== 0,
|
|
13748
|
+
})).length !== 0, Oe = (ne) => {
|
|
13745
13749
|
const re = j.getFieldsValue(!0);
|
|
13746
13750
|
return processValues(re, ne);
|
|
13747
13751
|
}, $e = (ne, re) => {
|
|
@@ -13754,7 +13758,7 @@ function Form(e, t) {
|
|
|
13754
13758
|
reset: !1
|
|
13755
13759
|
});
|
|
13756
13760
|
}, Se = (ne) => j.getFieldsValue(!0)[ne];
|
|
13757
|
-
async function
|
|
13761
|
+
async function Ee() {
|
|
13758
13762
|
try {
|
|
13759
13763
|
return await j.validateFields(), !1;
|
|
13760
13764
|
} catch {
|
|
@@ -13878,7 +13882,7 @@ function Form(e, t) {
|
|
|
13878
13882
|
if (pe()) {
|
|
13879
13883
|
const ce = getTouchedValues({
|
|
13880
13884
|
source: k.current,
|
|
13881
|
-
target:
|
|
13885
|
+
target: Oe(A),
|
|
13882
13886
|
fields: A
|
|
13883
13887
|
});
|
|
13884
13888
|
await ConnectionProvider.getHandler().update({
|
|
@@ -13886,20 +13890,20 @@ function Form(e, t) {
|
|
|
13886
13890
|
id: pe(),
|
|
13887
13891
|
values: {
|
|
13888
13892
|
...ce,
|
|
13889
|
-
...
|
|
13893
|
+
...O
|
|
13890
13894
|
},
|
|
13891
13895
|
fields: A,
|
|
13892
13896
|
context: {
|
|
13893
13897
|
...g,
|
|
13894
13898
|
...M == null ? void 0 : M.context
|
|
13895
13899
|
}
|
|
13896
|
-
}), k.current =
|
|
13900
|
+
}), k.current = Oe(A);
|
|
13897
13901
|
} else {
|
|
13898
|
-
const ce =
|
|
13902
|
+
const ce = Oe(A), de = await ConnectionProvider.getHandler().create({
|
|
13899
13903
|
model: r,
|
|
13900
13904
|
values: {
|
|
13901
13905
|
...ce,
|
|
13902
|
-
...
|
|
13906
|
+
...O
|
|
13903
13907
|
},
|
|
13904
13908
|
fields: A,
|
|
13905
13909
|
context: {
|
|
@@ -13922,7 +13926,7 @@ function Form(e, t) {
|
|
|
13922
13926
|
} = ne || {};
|
|
13923
13927
|
if (G.current = !0, q(void 0), !Re() && pe() && ce)
|
|
13924
13928
|
return G.current = !1, Q == null || Q(!1), he == null || he(), !0;
|
|
13925
|
-
if (await
|
|
13929
|
+
if (await Ee())
|
|
13926
13930
|
return G.current = !1, showDialog$5(w), !1;
|
|
13927
13931
|
T(!0), ee == null || ee(!0);
|
|
13928
13932
|
try {
|
|
@@ -13958,7 +13962,7 @@ function Form(e, t) {
|
|
|
13958
13962
|
return;
|
|
13959
13963
|
const re = getTouchedValues({
|
|
13960
13964
|
source: $.current,
|
|
13961
|
-
target:
|
|
13965
|
+
target: Oe(A),
|
|
13962
13966
|
fields: A
|
|
13963
13967
|
}), ce = Object.keys(re);
|
|
13964
13968
|
if (ce.length !== 0) {
|
|
@@ -13988,13 +13992,13 @@ function Form(e, t) {
|
|
|
13988
13992
|
Ie({
|
|
13989
13993
|
fields: A,
|
|
13990
13994
|
arch: N,
|
|
13991
|
-
values:
|
|
13995
|
+
values: Oe(A)
|
|
13992
13996
|
});
|
|
13993
13997
|
return;
|
|
13994
13998
|
}
|
|
13995
13999
|
const ce = getOnChangePayload({
|
|
13996
14000
|
values: {
|
|
13997
|
-
...
|
|
14001
|
+
...Oe(A),
|
|
13998
14002
|
context: {
|
|
13999
14003
|
...g,
|
|
14000
14004
|
...M == null ? void 0 : M.context
|
|
@@ -14011,7 +14015,7 @@ function Form(e, t) {
|
|
|
14011
14015
|
});
|
|
14012
14016
|
if (de.value) {
|
|
14013
14017
|
const xe = {
|
|
14014
|
-
...
|
|
14018
|
+
...Oe(A),
|
|
14015
14019
|
...de.value
|
|
14016
14020
|
};
|
|
14017
14021
|
Ie({
|
|
@@ -14041,7 +14045,7 @@ function Form(e, t) {
|
|
|
14041
14045
|
Ie({
|
|
14042
14046
|
fields: xe,
|
|
14043
14047
|
arch: N,
|
|
14044
|
-
values:
|
|
14048
|
+
values: Oe(xe)
|
|
14045
14049
|
}), W(xe);
|
|
14046
14050
|
}
|
|
14047
14051
|
};
|
|
@@ -14138,7 +14142,7 @@ function Form(e, t) {
|
|
|
14138
14142
|
he == null || he();
|
|
14139
14143
|
return;
|
|
14140
14144
|
}
|
|
14141
|
-
if (await
|
|
14145
|
+
if (await Ee()) {
|
|
14142
14146
|
showDialog$5(w);
|
|
14143
14147
|
return;
|
|
14144
14148
|
}
|
|
@@ -14254,11 +14258,11 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
14254
14258
|
action_id: x,
|
|
14255
14259
|
res_id: _,
|
|
14256
14260
|
action_type: C,
|
|
14257
|
-
view_id:
|
|
14261
|
+
view_id: O
|
|
14258
14262
|
} = u, F = await ConnectionProvider.getHandler().isShortcutFavorite({
|
|
14259
14263
|
action_id: x,
|
|
14260
14264
|
action_type: C,
|
|
14261
|
-
view_id:
|
|
14265
|
+
view_id: O,
|
|
14262
14266
|
res_id: _ || !1
|
|
14263
14267
|
});
|
|
14264
14268
|
h(F !== !1), F !== !1 && y(F);
|
|
@@ -14273,12 +14277,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
14273
14277
|
action_id: x,
|
|
14274
14278
|
res_id: _,
|
|
14275
14279
|
action_type: C,
|
|
14276
|
-
view_id:
|
|
14280
|
+
view_id: O
|
|
14277
14281
|
} = u;
|
|
14278
14282
|
await ConnectionProvider.getHandler().addFavourite({
|
|
14279
14283
|
action_id: x,
|
|
14280
14284
|
action_type: C,
|
|
14281
|
-
view_id:
|
|
14285
|
+
view_id: O,
|
|
14282
14286
|
res_id: _ || !1
|
|
14283
14287
|
});
|
|
14284
14288
|
}
|
|
@@ -14724,7 +14728,7 @@ function SearchFilter(e) {
|
|
|
14724
14728
|
const w = new SearchFilter$1(r, t);
|
|
14725
14729
|
w.parse(), y(w._simpleSearchContainer), g(w._advancedSearchContainer);
|
|
14726
14730
|
}, [t, r]);
|
|
14727
|
-
const
|
|
14731
|
+
const O = C(), F = (w) => {
|
|
14728
14732
|
const {
|
|
14729
14733
|
limit: S,
|
|
14730
14734
|
offset: T
|
|
@@ -14760,7 +14764,7 @@ function SearchFilter(e) {
|
|
|
14760
14764
|
offset: s,
|
|
14761
14765
|
limit: u
|
|
14762
14766
|
},
|
|
14763
|
-
children: [
|
|
14767
|
+
children: [O, v && h && /* @__PURE__ */ jsx(SearchParams, {
|
|
14764
14768
|
onLimitChange: l
|
|
14765
14769
|
}), /* @__PURE__ */ jsx(SearchBottomBar, {
|
|
14766
14770
|
advancedFilter: v,
|
|
@@ -15001,7 +15005,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
15001
15005
|
});
|
|
15002
15006
|
}
|
|
15003
15007
|
}
|
|
15004
|
-
function
|
|
15008
|
+
function O(T) {
|
|
15005
15009
|
o(!1), v == null || v({
|
|
15006
15010
|
actionData: T,
|
|
15007
15011
|
values: p,
|
|
@@ -15040,7 +15044,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
15040
15044
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
15041
15045
|
visible: a,
|
|
15042
15046
|
items: (w = d == null ? void 0 : d.toolbar) == null ? void 0 : w.action,
|
|
15043
|
-
onItemClicked:
|
|
15047
|
+
onItemClicked: O,
|
|
15044
15048
|
onCancel: () => o(!1)
|
|
15045
15049
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
15046
15050
|
visible: s,
|
|
@@ -15156,7 +15160,7 @@ function Tree(e) {
|
|
|
15156
15160
|
childField: b,
|
|
15157
15161
|
rootTree: g = !1,
|
|
15158
15162
|
context: v
|
|
15159
|
-
} = e, [x, _] = useState([]), [C,
|
|
15163
|
+
} = e, [x, _] = useState([]), [C, O] = useState([]), F = useRef(!1), w = useRef(null), {
|
|
15160
15164
|
t: S
|
|
15161
15165
|
} = useContext(LocaleContext), T = useRef(r), I = useContext(ActionViewContext), {
|
|
15162
15166
|
title: q = void 0,
|
|
@@ -15177,7 +15181,7 @@ function Tree(e) {
|
|
|
15177
15181
|
float: numberComponent,
|
|
15178
15182
|
reference: referenceComponent
|
|
15179
15183
|
}, v);
|
|
15180
|
-
|
|
15184
|
+
O(z), w.current.string && q !== w.current.string && (M == null || M(w.current.string));
|
|
15181
15185
|
}, [a]), useEffect(() => {
|
|
15182
15186
|
F.current = !1;
|
|
15183
15187
|
const z = getTableItems(w.current, o);
|
|
@@ -15268,7 +15272,7 @@ function SearchTree(e, t) {
|
|
|
15268
15272
|
rootTree: d = !1,
|
|
15269
15273
|
parentContext: f = {},
|
|
15270
15274
|
onChangeSelectedRowKeys: p
|
|
15271
|
-
} = e, [h, m] = useState(!1), [y, b] = useState(!1), g = useRef(!1), [v, x] = useState(), [_, C] = useState(), [
|
|
15275
|
+
} = e, [h, m] = useState(!1), [y, b] = useState(!1), g = useRef(!1), [v, x] = useState(), [_, C] = useState(), [O, F] = useState(), [w, S] = useState(), [T, I] = useState(200), q = useRef(), {
|
|
15272
15276
|
height: M
|
|
15273
15277
|
} = useWindowDimensions(), D = useContext(ContentRootContext), {
|
|
15274
15278
|
processAction: j
|
|
@@ -15288,7 +15292,7 @@ function SearchTree(e, t) {
|
|
|
15288
15292
|
setTotalItems: G = void 0,
|
|
15289
15293
|
setSearchTreeNameSearch: Z = void 0,
|
|
15290
15294
|
setTreeIsLoading: P = void 0,
|
|
15291
|
-
searchValues:
|
|
15295
|
+
searchValues: E = {},
|
|
15292
15296
|
setSearchValues: X = void 0,
|
|
15293
15297
|
limit: J = DEFAULT_SEARCH_LIMIT$1,
|
|
15294
15298
|
setLimit: ee = void 0
|
|
@@ -15319,7 +15323,7 @@ function SearchTree(e, t) {
|
|
|
15319
15323
|
nameSearch: s,
|
|
15320
15324
|
searchNameGetDoneRef: g,
|
|
15321
15325
|
context: f,
|
|
15322
|
-
formView:
|
|
15326
|
+
formView: O,
|
|
15323
15327
|
treeView: _,
|
|
15324
15328
|
sorter: $,
|
|
15325
15329
|
setSorter: L,
|
|
@@ -15356,12 +15360,12 @@ function SearchTree(e, t) {
|
|
|
15356
15360
|
type: "form",
|
|
15357
15361
|
context: f
|
|
15358
15362
|
}));
|
|
15359
|
-
let
|
|
15360
|
-
a || (
|
|
15363
|
+
let Ee = a;
|
|
15364
|
+
a || (Ee = await ConnectionProvider.getHandler().getView({
|
|
15361
15365
|
model: r,
|
|
15362
15366
|
type: "tree",
|
|
15363
15367
|
context: f
|
|
15364
|
-
})), F(Se), C(
|
|
15368
|
+
})), F(Se), C(Ee);
|
|
15365
15369
|
};
|
|
15366
15370
|
useEffect(() => {
|
|
15367
15371
|
be();
|
|
@@ -15370,7 +15374,7 @@ function SearchTree(e, t) {
|
|
|
15370
15374
|
ee == null || ee(Se);
|
|
15371
15375
|
}, ye = async (Se) => {
|
|
15372
15376
|
const {
|
|
15373
|
-
id:
|
|
15377
|
+
id: Ee
|
|
15374
15378
|
} = Se;
|
|
15375
15379
|
q.current || (q.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
15376
15380
|
id: _.view_id,
|
|
@@ -15382,14 +15386,14 @@ function SearchTree(e, t) {
|
|
|
15382
15386
|
actionData: Pe,
|
|
15383
15387
|
fields: _.fields,
|
|
15384
15388
|
values: {
|
|
15385
|
-
active_id:
|
|
15389
|
+
active_id: Ee,
|
|
15386
15390
|
...Se
|
|
15387
15391
|
},
|
|
15388
15392
|
context: f
|
|
15389
15393
|
}));
|
|
15390
15394
|
}, ve = async (Se) => {
|
|
15391
15395
|
const {
|
|
15392
|
-
id:
|
|
15396
|
+
id: Ee
|
|
15393
15397
|
} = Se;
|
|
15394
15398
|
if (_ != null && _.isExpandable) {
|
|
15395
15399
|
try {
|
|
@@ -15400,26 +15404,26 @@ function SearchTree(e, t) {
|
|
|
15400
15404
|
return;
|
|
15401
15405
|
}
|
|
15402
15406
|
o({
|
|
15403
|
-
id:
|
|
15407
|
+
id: Ee,
|
|
15404
15408
|
model: v,
|
|
15405
|
-
formView:
|
|
15409
|
+
formView: O,
|
|
15406
15410
|
treeView: _
|
|
15407
15411
|
});
|
|
15408
15412
|
};
|
|
15409
15413
|
function we(Se) {
|
|
15410
|
-
const
|
|
15411
|
-
H == null || H(
|
|
15414
|
+
const Ee = me().filter((Pe) => Se.includes(Pe.id));
|
|
15415
|
+
H == null || H(Ee), p == null || p(Se);
|
|
15412
15416
|
}
|
|
15413
15417
|
function Re() {
|
|
15414
15418
|
return _ != null && _.isExpandable ? M - 160 : M - (T + 210);
|
|
15415
15419
|
}
|
|
15416
|
-
const
|
|
15420
|
+
const Oe = () => !_ || !O ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
15417
15421
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
15418
15422
|
fields: {
|
|
15419
15423
|
..._.fields,
|
|
15420
|
-
...
|
|
15424
|
+
...O.fields
|
|
15421
15425
|
},
|
|
15422
|
-
searchFields: mergeSearchFields([
|
|
15426
|
+
searchFields: mergeSearchFields([O.search_fields, _.search_fields]),
|
|
15423
15427
|
onClear: ie,
|
|
15424
15428
|
limit: J,
|
|
15425
15429
|
offset: ae,
|
|
@@ -15429,7 +15433,7 @@ function SearchTree(e, t) {
|
|
|
15429
15433
|
setSearchFilterHeight: I,
|
|
15430
15434
|
searchError: _e,
|
|
15431
15435
|
searchVisible: B,
|
|
15432
|
-
searchValues:
|
|
15436
|
+
searchValues: E
|
|
15433
15437
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
15434
15438
|
context: f,
|
|
15435
15439
|
total: Te,
|
|
@@ -15462,7 +15466,7 @@ function SearchTree(e, t) {
|
|
|
15462
15466
|
style: c ? {} : {
|
|
15463
15467
|
display: "none"
|
|
15464
15468
|
},
|
|
15465
|
-
children: h ? /* @__PURE__ */ jsx(Spin, {}) :
|
|
15469
|
+
children: h ? /* @__PURE__ */ jsx(Spin, {}) : Oe()
|
|
15466
15470
|
});
|
|
15467
15471
|
}
|
|
15468
15472
|
const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
@@ -15596,7 +15600,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
15596
15600
|
context: u,
|
|
15597
15601
|
id: l,
|
|
15598
15602
|
domain: c
|
|
15599
|
-
} = n, d = a && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [y, b] = useState(!1), [g, v] = useState(), x = useRef(!1), [_, C] = useState(""),
|
|
15603
|
+
} = n, d = a && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, m] = useState(!1), [y, b] = useState(!1), [g, v] = useState(), x = useRef(!1), [_, C] = useState(""), O = useRef(), F = useContext(FormContext$1), {
|
|
15600
15604
|
domain: w,
|
|
15601
15605
|
getValues: S,
|
|
15602
15606
|
getFields: T,
|
|
@@ -15607,12 +15611,12 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
15607
15611
|
useEffect(() => {
|
|
15608
15612
|
!Array.isArray(t) && t && K(t);
|
|
15609
15613
|
}, [t]), useEffect(() => {
|
|
15610
|
-
V && A.length === 0 ? K(V) : V && A.length > 0 ? C(A) : !V && !A && C(
|
|
15614
|
+
V && A.length === 0 ? K(V) : V && A.length > 0 ? C(A) : !V && !A && C(O.current || "");
|
|
15611
15615
|
}, [t]);
|
|
15612
15616
|
const W = ($) => {
|
|
15613
15617
|
r == null || r($), M == null || M();
|
|
15614
15618
|
}, Y = ($) => {
|
|
15615
|
-
|
|
15619
|
+
O.current = $.target.value, W([void 0, ""]);
|
|
15616
15620
|
}, z = async () => {
|
|
15617
15621
|
if (!y && _ !== A) {
|
|
15618
15622
|
if (await new Promise(($) => setTimeout($, 100)), x.current) {
|
|
@@ -15622,17 +15626,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
15622
15626
|
b(!0);
|
|
15623
15627
|
try {
|
|
15624
15628
|
if (D.current && D.current.length > 0)
|
|
15625
|
-
H(
|
|
15629
|
+
H(O.current);
|
|
15626
15630
|
else {
|
|
15627
15631
|
const $ = await ConnectionProvider.getHandler().nameSearch({
|
|
15628
15632
|
model: o,
|
|
15629
|
-
payload:
|
|
15633
|
+
payload: O.current,
|
|
15630
15634
|
context: {
|
|
15631
15635
|
...I == null ? void 0 : I(),
|
|
15632
15636
|
...u
|
|
15633
15637
|
}
|
|
15634
15638
|
});
|
|
15635
|
-
$.length === 1 ? (
|
|
15639
|
+
$.length === 1 ? (O.current = void 0, W($[0])) : H(O.current);
|
|
15636
15640
|
}
|
|
15637
15641
|
} catch ($) {
|
|
15638
15642
|
showDialog$3($);
|
|
@@ -15743,7 +15747,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
15743
15747
|
visible: f,
|
|
15744
15748
|
nameSearch: V ? void 0 : g,
|
|
15745
15749
|
onSelectValues: ($) => {
|
|
15746
|
-
p(!1), K($[0]), x.current = !1,
|
|
15750
|
+
p(!1), K($[0]), x.current = !1, O.current = void 0;
|
|
15747
15751
|
},
|
|
15748
15752
|
onCloseModal: () => {
|
|
15749
15753
|
p(!1), x.current = !1;
|
|
@@ -16201,8 +16205,8 @@ function requireTransButton() {
|
|
|
16201
16205
|
var C = _.keyCode;
|
|
16202
16206
|
C === o.default.ENTER && _.preventDefault();
|
|
16203
16207
|
}, h = function(_) {
|
|
16204
|
-
var C = _.keyCode,
|
|
16205
|
-
C === o.default.ENTER &&
|
|
16208
|
+
var C = _.keyCode, O = d.onClick;
|
|
16209
|
+
C === o.default.ENTER && O && O();
|
|
16206
16210
|
}, m = d.style, y = d.noStyle, b = d.disabled, g = s(d, ["style", "noStyle", "disabled"]), v = {};
|
|
16207
16211
|
return y || (v = (0, n.default)({}, u)), b && (v.pointerEvents = "none"), v = (0, n.default)((0, n.default)({}, v), m), /* @__PURE__ */ a.createElement("div", (0, n.default)({
|
|
16208
16212
|
role: "button",
|
|
@@ -16899,8 +16903,8 @@ function doAlign(e, t, r, n) {
|
|
|
16899
16903
|
var _ = flip(a, /[tb]/gi, {
|
|
16900
16904
|
t: "b",
|
|
16901
16905
|
b: "t"
|
|
16902
|
-
}), C = flipOffset(o, 1),
|
|
16903
|
-
isCompleteFailY(F, h, p) || (d = 1, a = _, o = C, s =
|
|
16906
|
+
}), C = flipOffset(o, 1), O = flipOffset(s, 1), F = getElFuturePos(h, t, _, C, O);
|
|
16907
|
+
isCompleteFailY(F, h, p) || (d = 1, a = _, o = C, s = O);
|
|
16904
16908
|
}
|
|
16905
16909
|
d && (m = getElFuturePos(h, t, a, o, s), utils.mix(y, m));
|
|
16906
16910
|
var w = isFailX(m, h, p), S = isFailY(m, h, p);
|
|
@@ -17010,7 +17014,7 @@ var Align = function e(t, r) {
|
|
|
17010
17014
|
var n = t.children, a = t.disabled, o = t.target, s = t.align, u = t.onAlign, l = t.monitorWindowResize, c = t.monitorBufferTime, d = c === void 0 ? 0 : c, f = React__default.useRef({}), p = React__default.useRef(), h = React__default.Children.only(n), m = React__default.useRef({});
|
|
17011
17015
|
m.current.disabled = a, m.current.target = o, m.current.onAlign = u;
|
|
17012
17016
|
var y = useBuffer(function() {
|
|
17013
|
-
var
|
|
17017
|
+
var O = m.current, F = O.disabled, w = O.target, S = O.onAlign;
|
|
17014
17018
|
if (!F && w) {
|
|
17015
17019
|
var T = p.current, I, q = getElement(w), M = getPoint(w);
|
|
17016
17020
|
f.current.element = q, f.current.point = M;
|
|
@@ -17026,8 +17030,8 @@ var Align = function e(t, r) {
|
|
|
17026
17030
|
}
|
|
17027
17031
|
});
|
|
17028
17032
|
React__default.useEffect(function() {
|
|
17029
|
-
var
|
|
17030
|
-
p.current !== _.current.element && (_.current.cancel(), _.current.element = p.current, _.current.cancel = monitorResize(p.current, g)), (f.current.element !==
|
|
17033
|
+
var O = getElement(o), F = getPoint(o);
|
|
17034
|
+
p.current !== _.current.element && (_.current.cancel(), _.current.element = p.current, _.current.cancel = monitorResize(p.current, g)), (f.current.element !== O || !isSamePoint(f.current.point, F)) && (g(), x.current.element !== O && (x.current.cancel(), x.current.element = O, x.current.cancel = monitorResize(O, g)));
|
|
17031
17035
|
}), React__default.useEffect(function() {
|
|
17032
17036
|
a ? v() : g();
|
|
17033
17037
|
}, [a]);
|
|
@@ -17119,7 +17123,7 @@ const useVisibleStatus = function(e, t) {
|
|
|
17119
17123
|
return [s, o];
|
|
17120
17124
|
};
|
|
17121
17125
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
17122
|
-
var r = e.visible, n = e.prefixCls, a = e.className, o = e.style, s = e.children, u = e.zIndex, l = e.stretch, c = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, y = e.onMouseEnter, b = e.onMouseLeave, g = e.onMouseDown, v = e.onTouchStart, x = useRef(), _ = useRef(), C = useState(),
|
|
17126
|
+
var r = e.visible, n = e.prefixCls, a = e.className, o = e.style, s = e.children, u = e.zIndex, l = e.stretch, c = e.destroyPopupOnHide, d = e.align, f = e.point, p = e.getRootDomNode, h = e.getClassNameFromAlign, m = e.onAlign, y = e.onMouseEnter, b = e.onMouseLeave, g = e.onMouseDown, v = e.onTouchStart, x = useRef(), _ = useRef(), C = useState(), O = _slicedToArray(C, 2), F = O[0], w = O[1], S = useStretchStyle(l), T = _slicedToArray(S, 2), I = T[0], q = T[1];
|
|
17123
17127
|
function M() {
|
|
17124
17128
|
l && q(p());
|
|
17125
17129
|
}
|
|
@@ -17342,7 +17346,7 @@ function generateTrigger(e) {
|
|
|
17342
17346
|
var c = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, m = d.alignPoint, y = d.getPopupClassNameFromAlign;
|
|
17343
17347
|
return f && p && c.push(getAlignPopupClassName(p, h, l, m)), y && c.push(y(l)), c.join(" ");
|
|
17344
17348
|
}, s.getComponent = function() {
|
|
17345
|
-
var l = s.props, c = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, y = l.popupTransitionName, b = l.popupStyle, g = l.mask, v = l.maskAnimation, x = l.maskTransitionName, _ = l.maskMotion, C = l.zIndex,
|
|
17349
|
+
var l = s.props, c = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, m = l.popupAnimation, y = l.popupTransitionName, b = l.popupStyle, g = l.mask, v = l.maskAnimation, x = l.maskTransitionName, _ = l.maskMotion, C = l.zIndex, O = l.popup, F = l.stretch, w = l.alignPoint, S = l.mobile, T = s.state, I = T.popupVisible, q = T.point, M = s.getPopupAlign(), D = {};
|
|
17346
17350
|
return s.isMouseEnterToShow() && (D.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (D.onMouseLeave = s.onPopupMouseLeave), D.onMouseDown = s.onPopupMouseDown, D.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
17347
17351
|
prefixCls: c,
|
|
17348
17352
|
destroyPopupOnHide: d,
|
|
@@ -17366,7 +17370,7 @@ function generateTrigger(e) {
|
|
|
17366
17370
|
ref: s.popupRef,
|
|
17367
17371
|
motion: h,
|
|
17368
17372
|
mobile: S,
|
|
17369
|
-
children: typeof
|
|
17373
|
+
children: typeof O == "function" ? O() : O
|
|
17370
17374
|
});
|
|
17371
17375
|
}, s.attachParent = function(l) {
|
|
17372
17376
|
wrapperRaf.cancel(s.attachId);
|
|
@@ -17676,7 +17680,7 @@ var autoAdjustOverflow = {
|
|
|
17676
17680
|
children: typeof r == "function" ? r() : r
|
|
17677
17681
|
});
|
|
17678
17682
|
}, Tooltip = function e(t, r) {
|
|
17679
|
-
var n = t.overlayClassName, a = t.trigger, o = a === void 0 ? ["hover"] : a, s = t.mouseEnterDelay, u = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, y = t.afterVisibleChange, b = t.transitionName, g = t.animation, v = t.placement, x = v === void 0 ? "right" : v, _ = t.align, C = _ === void 0 ? {} : _,
|
|
17683
|
+
var n = t.overlayClassName, a = t.trigger, o = a === void 0 ? ["hover"] : a, s = t.mouseEnterDelay, u = s === void 0 ? 0 : s, l = t.mouseLeaveDelay, c = l === void 0 ? 0.1 : l, d = t.overlayStyle, f = t.prefixCls, p = f === void 0 ? "rc-tooltip" : f, h = t.children, m = t.onVisibleChange, y = t.afterVisibleChange, b = t.transitionName, g = t.animation, v = t.placement, x = v === void 0 ? "right" : v, _ = t.align, C = _ === void 0 ? {} : _, O = t.destroyTooltipOnHide, F = O === void 0 ? !1 : O, w = t.defaultVisible, S = t.getTooltipContainer, T = t.overlayInnerStyle, I = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), q = useRef(null);
|
|
17680
17684
|
useImperativeHandle(r, function() {
|
|
17681
17685
|
return q.current;
|
|
17682
17686
|
});
|
|
@@ -17919,20 +17923,20 @@ function requireTooltip() {
|
|
|
17919
17923
|
value: !0
|
|
17920
17924
|
}), e.default = void 0;
|
|
17921
17925
|
var n = r(requireDefineProperty()), a = r(requireSlicedToArray()), o = r(require_extends()), s = t(React__default), u = r(require$$6), l = r(requireClassnames()), c = r(requirePlacements()), d = requireReactNode(), f = requireConfigProvider(), p = requireColors(), h = function(x, _) {
|
|
17922
|
-
var C = {},
|
|
17926
|
+
var C = {}, O = (0, o.default)({}, x);
|
|
17923
17927
|
return _.forEach(function(F) {
|
|
17924
|
-
x && F in x && (C[F] = x[F], delete
|
|
17928
|
+
x && F in x && (C[F] = x[F], delete O[F]);
|
|
17925
17929
|
}), {
|
|
17926
17930
|
picked: C,
|
|
17927
|
-
omitted:
|
|
17931
|
+
omitted: O
|
|
17928
17932
|
};
|
|
17929
17933
|
}, m = new RegExp("^(".concat(p.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
17930
17934
|
function y(v, x) {
|
|
17931
17935
|
var _ = v.type;
|
|
17932
17936
|
if ((_.__ANT_BUTTON === !0 || _.__ANT_SWITCH === !0 || _.__ANT_CHECKBOX === !0 || v.type === "button") && v.props.disabled) {
|
|
17933
|
-
var C = h(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]),
|
|
17937
|
+
var C = h(v.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), O = C.picked, F = C.omitted, w = (0, o.default)((0, o.default)({
|
|
17934
17938
|
display: "inline-block"
|
|
17935
|
-
},
|
|
17939
|
+
}, O), {
|
|
17936
17940
|
cursor: "not-allowed",
|
|
17937
17941
|
width: v.props.block ? "100%" : null
|
|
17938
17942
|
}), S = (0, o.default)((0, o.default)({}, F), {
|
|
@@ -17949,7 +17953,7 @@ function requireTooltip() {
|
|
|
17949
17953
|
return v;
|
|
17950
17954
|
}
|
|
17951
17955
|
var b = /* @__PURE__ */ s.forwardRef(function(v, x) {
|
|
17952
|
-
var _, C = s.useContext(f.ConfigContext),
|
|
17956
|
+
var _, C = s.useContext(f.ConfigContext), O = C.getPopupContainer, F = C.getPrefixCls, w = C.direction, S = s.useState(!!v.visible || !!v.defaultVisible), T = (0, a.default)(S, 2), I = T[0], q = T[1];
|
|
17953
17957
|
s.useEffect(function() {
|
|
17954
17958
|
"visible" in v && q(v.visible);
|
|
17955
17959
|
}, [v.visible]);
|
|
@@ -17980,22 +17984,22 @@ function requireTooltip() {
|
|
|
17980
17984
|
return ee === 0 ? ee : Q || ee || "";
|
|
17981
17985
|
}, A = v.prefixCls, W = v.openClassName, Y = v.getPopupContainer, z = v.getTooltipContainer, H = v.overlayClassName, K = v.color, U = v.overlayInnerStyle, B = v.children, k = F("tooltip", A), $ = I;
|
|
17982
17986
|
!("visible" in v) && M() && ($ = !1);
|
|
17983
|
-
var L = y((0, d.isValidElement)(B) ? B : /* @__PURE__ */ s.createElement("span", null, B), k), G = L.props, Z = (0, l.default)(G.className, (0, n.default)({}, W || "".concat(k, "-open"), !0)), P = (0, l.default)(H, (_ = {}, (0, n.default)(_, "".concat(k, "-rtl"), w === "rtl"), (0, n.default)(_, "".concat(k, "-").concat(K), K && m.test(K)), _)),
|
|
17984
|
-
return K && !m.test(K) && (
|
|
17987
|
+
var L = y((0, d.isValidElement)(B) ? B : /* @__PURE__ */ s.createElement("span", null, B), k), G = L.props, Z = (0, l.default)(G.className, (0, n.default)({}, W || "".concat(k, "-open"), !0)), P = (0, l.default)(H, (_ = {}, (0, n.default)(_, "".concat(k, "-rtl"), w === "rtl"), (0, n.default)(_, "".concat(k, "-").concat(K), K && m.test(K)), _)), E = U, X;
|
|
17988
|
+
return K && !m.test(K) && (E = (0, o.default)((0, o.default)({}, U), {
|
|
17985
17989
|
background: K
|
|
17986
17990
|
}), X = {
|
|
17987
17991
|
background: K
|
|
17988
17992
|
}), /* @__PURE__ */ s.createElement(u.default, (0, o.default)({}, v, {
|
|
17989
17993
|
prefixCls: k,
|
|
17990
17994
|
overlayClassName: P,
|
|
17991
|
-
getTooltipContainer: Y || z ||
|
|
17995
|
+
getTooltipContainer: Y || z || O,
|
|
17992
17996
|
ref: x,
|
|
17993
17997
|
builtinPlacements: j(),
|
|
17994
17998
|
overlay: V(),
|
|
17995
17999
|
visible: $,
|
|
17996
18000
|
onVisibleChange: D,
|
|
17997
18001
|
onPopupAlign: N,
|
|
17998
|
-
overlayInnerStyle:
|
|
18002
|
+
overlayInnerStyle: E,
|
|
17999
18003
|
arrowContent: /* @__PURE__ */ s.createElement("span", {
|
|
18000
18004
|
className: "".concat(k, "-arrow-content"),
|
|
18001
18005
|
style: X
|
|
@@ -18060,12 +18064,12 @@ function requireTypography() {
|
|
|
18060
18064
|
b.indexOf(v[x]) < 0 && Object.prototype.propertyIsEnumerable.call(y, v[x]) && (g[v[x]] = y[v[x]]);
|
|
18061
18065
|
return g;
|
|
18062
18066
|
}, f = function(b, g) {
|
|
18063
|
-
var v = b.prefixCls, x = b.component, _ = x === void 0 ? "article" : x, C = b.className,
|
|
18067
|
+
var v = b.prefixCls, x = b.component, _ = x === void 0 ? "article" : x, C = b.className, O = b["aria-label"], F = b.setContentRef, w = b.children, S = d(b, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = g;
|
|
18064
18068
|
return F && ((0, c.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, u.composeRef)(g, F)), /* @__PURE__ */ o.createElement(l.ConfigConsumer, null, function(I) {
|
|
18065
18069
|
var q = I.getPrefixCls, M = I.direction, D = _, j = q("typography", v), N = (0, s.default)(j, (0, a.default)({}, "".concat(j, "-rtl"), M === "rtl"), C);
|
|
18066
18070
|
return /* @__PURE__ */ o.createElement(D, (0, n.default)({
|
|
18067
18071
|
className: N,
|
|
18068
|
-
"aria-label":
|
|
18072
|
+
"aria-label": O,
|
|
18069
18073
|
ref: T
|
|
18070
18074
|
}, S), w);
|
|
18071
18075
|
});
|
|
@@ -18124,10 +18128,10 @@ function requireEditable() {
|
|
|
18124
18128
|
value: !0
|
|
18125
18129
|
}), e.default = void 0;
|
|
18126
18130
|
var n = r(requireDefineProperty()), a = r(requireSlicedToArray()), o = t(React__default), s = r(requireClassnames()), u = r(requireKeyCode()), l = r(requireEnterOutlined()), c = r(TextArea$3), d = function(h) {
|
|
18127
|
-
var m = h.prefixCls, y = h["aria-label"], b = h.className, g = h.style, v = h.direction, x = h.maxLength, _ = h.autoSize, C = _ === void 0 ? !0 : _,
|
|
18131
|
+
var m = h.prefixCls, y = h["aria-label"], b = h.className, g = h.style, v = h.direction, x = h.maxLength, _ = h.autoSize, C = _ === void 0 ? !0 : _, O = h.value, F = h.onSave, w = h.onCancel, S = o.useRef(), T = o.useRef(!1), I = o.useRef(), q = o.useState(O), M = (0, a.default)(q, 2), D = M[0], j = M[1];
|
|
18128
18132
|
o.useEffect(function() {
|
|
18129
|
-
j(
|
|
18130
|
-
}, [
|
|
18133
|
+
j(O);
|
|
18134
|
+
}, [O]), o.useEffect(function() {
|
|
18131
18135
|
if (S.current && S.current.resizableTextArea) {
|
|
18132
18136
|
var U = S.current.resizableTextArea.textArea;
|
|
18133
18137
|
U.focus();
|
|
@@ -18209,7 +18213,7 @@ function requireUtil() {
|
|
|
18209
18213
|
}
|
|
18210
18214
|
var m = function(b, g, v, x, _) {
|
|
18211
18215
|
c || (c = document.createElement("div"), c.setAttribute("aria-hidden", "true"), document.body.appendChild(c));
|
|
18212
|
-
var C = g.rows,
|
|
18216
|
+
var C = g.rows, O = g.suffix, F = O === void 0 ? "" : O, w = window.getComputedStyle(b), S = p(w), T = f(w.lineHeight), I = Math.round(T * (C + 1) + f(w.paddingTop) + f(w.paddingBottom));
|
|
18213
18217
|
c.setAttribute("style", S), c.style.position = "fixed", c.style.left = "0", c.style.height = "auto", c.style.minHeight = "auto", c.style.maxHeight = "auto", c.style.top = "-999999px", c.style.zIndex = "-1000", c.style.textOverflow = "clip", c.style.whiteSpace = "normal", c.style.webkitLineClamp = "none";
|
|
18214
18218
|
var q = h((0, o.default)(v));
|
|
18215
18219
|
(0, n.render)(/* @__PURE__ */ a.createElement("div", {
|
|
@@ -18298,7 +18302,7 @@ function requireBase() {
|
|
|
18298
18302
|
Object.defineProperty(e, "__esModule", {
|
|
18299
18303
|
value: !0
|
|
18300
18304
|
}), e.default = void 0;
|
|
18301
|
-
var n = r(requireDefineProperty()), a = r(requireToConsumableArray()), o = r(_typeof$2.exports), s = r(require_extends()), u = r(requireClassCallCheck()), l = r(requireCreateClass()), c = r(requireInherits()), d = r(requireCreateSuper()), f = t(React__default), p = r(requireClassnames()), h = r(requireToArray()), m = r(requireCopyToClipboard()), y = r(requireOmit()), b = r(requireEditOutlined()), g = r(requireCheckOutlined()), v = r(requireCopyOutlined()), x = r(require$$18), _ = requireConfigProvider(), C = r(requireLocaleReceiver()),
|
|
18305
|
+
var n = r(requireDefineProperty()), a = r(requireToConsumableArray()), o = r(_typeof$2.exports), s = r(require_extends()), u = r(requireClassCallCheck()), l = r(requireCreateClass()), c = r(requireInherits()), d = r(requireCreateSuper()), f = t(React__default), p = r(requireClassnames()), h = r(requireToArray()), m = r(requireCopyToClipboard()), y = r(requireOmit()), b = r(requireEditOutlined()), g = r(requireCheckOutlined()), v = r(requireCopyOutlined()), x = r(require$$18), _ = requireConfigProvider(), C = r(requireLocaleReceiver()), O = r(requireDevWarning()), F = r(requireTransButton()), w = r(requireRaf()), S = requireStyleChecker(), T = r(requireTooltip()), I = r(requireTypography()), q = r(requireEditable()), M = r(requireUtil()), D = function(z, H) {
|
|
18302
18306
|
var K = {};
|
|
18303
18307
|
for (var U in z)
|
|
18304
18308
|
Object.prototype.hasOwnProperty.call(z, U) && H.indexOf(U) < 0 && (K[U] = z[U]);
|
|
@@ -18309,8 +18313,8 @@ function requireBase() {
|
|
|
18309
18313
|
}, j = (0, S.isStyleSupport)("webkitLineClamp"), N = (0, S.isStyleSupport)("textOverflow");
|
|
18310
18314
|
function V(z, H) {
|
|
18311
18315
|
var K = z.mark, U = z.code, B = z.underline, k = z.delete, $ = z.strong, L = z.keyboard, G = H;
|
|
18312
|
-
function Z(P,
|
|
18313
|
-
!P || (G = /* @__PURE__ */ f.createElement(
|
|
18316
|
+
function Z(P, E) {
|
|
18317
|
+
!P || (G = /* @__PURE__ */ f.createElement(E, {}, G));
|
|
18314
18318
|
}
|
|
18315
18319
|
return Z($, "strong"), Z(B, "u"), Z(k, "del"), Z(U, "code"), Z(K, "mark"), Z(L, "kbd"), G;
|
|
18316
18320
|
}
|
|
@@ -18409,15 +18413,15 @@ function requireBase() {
|
|
|
18409
18413
|
}, {
|
|
18410
18414
|
key: "canUseCSSEllipsis",
|
|
18411
18415
|
value: function() {
|
|
18412
|
-
var B = this.state.clientRendered, k = this.props, $ = k.editable, L = k.copyable, G = this.getEllipsis(), Z = G.rows, P = G.expandable,
|
|
18413
|
-
return
|
|
18416
|
+
var B = this.state.clientRendered, k = this.props, $ = k.editable, L = k.copyable, G = this.getEllipsis(), Z = G.rows, P = G.expandable, E = G.suffix, X = G.onEllipsis, J = G.tooltip;
|
|
18417
|
+
return E || J || $ || L || P || !B || X ? !1 : Z === 1 ? N : j;
|
|
18414
18418
|
}
|
|
18415
18419
|
}, {
|
|
18416
18420
|
key: "syncEllipsis",
|
|
18417
18421
|
value: function() {
|
|
18418
|
-
var B = this.state, k = B.ellipsisText, $ = B.isEllipsis, L = B.expanded, G = this.getEllipsis(), Z = G.rows, P = G.suffix,
|
|
18422
|
+
var B = this.state, k = B.ellipsisText, $ = B.isEllipsis, L = B.expanded, G = this.getEllipsis(), Z = G.rows, P = G.suffix, E = G.onEllipsis, X = this.props.children;
|
|
18419
18423
|
if (!(!Z || Z < 0 || !this.contentRef.current || L) && !this.canUseCSSEllipsis()) {
|
|
18420
|
-
(0,
|
|
18424
|
+
(0, O.default)((0, h.default)(X).every(function(te) {
|
|
18421
18425
|
return typeof te == "string";
|
|
18422
18426
|
}), "Typography", "`ellipsis` should use string as children only.");
|
|
18423
18427
|
var J = (0, M.default)(this.contentRef.current, {
|
|
@@ -18428,7 +18432,7 @@ function requireBase() {
|
|
|
18428
18432
|
ellipsisText: Q,
|
|
18429
18433
|
ellipsisContent: ee,
|
|
18430
18434
|
isEllipsis: ie
|
|
18431
|
-
}), $ !== ie &&
|
|
18435
|
+
}), $ !== ie && E && E(ie));
|
|
18432
18436
|
}
|
|
18433
18437
|
}
|
|
18434
18438
|
}, {
|
|
@@ -18437,13 +18441,13 @@ function requireBase() {
|
|
|
18437
18441
|
var k = this.getEllipsis(), $ = k.expandable, L = k.symbol, G = this.state, Z = G.expanded, P = G.isEllipsis;
|
|
18438
18442
|
if (!$ || !B && (Z || !P))
|
|
18439
18443
|
return null;
|
|
18440
|
-
var
|
|
18441
|
-
return L ?
|
|
18444
|
+
var E;
|
|
18445
|
+
return L ? E = L : E = this.expandStr, /* @__PURE__ */ f.createElement("a", {
|
|
18442
18446
|
key: "expand",
|
|
18443
18447
|
className: "".concat(this.getPrefixCls(), "-expand"),
|
|
18444
18448
|
onClick: this.onExpandClick,
|
|
18445
18449
|
"aria-label": this.expandStr
|
|
18446
|
-
},
|
|
18450
|
+
}, E);
|
|
18447
18451
|
}
|
|
18448
18452
|
}, {
|
|
18449
18453
|
key: "renderEdit",
|
|
@@ -18471,7 +18475,7 @@ function requireBase() {
|
|
|
18471
18475
|
if (!!k) {
|
|
18472
18476
|
var $ = this.getPrefixCls(), L = k.tooltips, G = (0, h.default)(L);
|
|
18473
18477
|
G.length === 0 && (G = [this.copyStr, this.copiedStr]);
|
|
18474
|
-
var Z = B ? G[1] : G[0], P = typeof Z == "string" ? Z : "",
|
|
18478
|
+
var Z = B ? G[1] : G[0], P = typeof Z == "string" ? Z : "", E = (0, h.default)(k.icon);
|
|
18475
18479
|
return /* @__PURE__ */ f.createElement(T.default, {
|
|
18476
18480
|
key: "copy",
|
|
18477
18481
|
title: L === !1 ? "" : Z
|
|
@@ -18479,13 +18483,13 @@ function requireBase() {
|
|
|
18479
18483
|
className: (0, p.default)("".concat($, "-copy"), B && "".concat($, "-copy-success")),
|
|
18480
18484
|
onClick: this.onCopyClick,
|
|
18481
18485
|
"aria-label": P
|
|
18482
|
-
}, B ?
|
|
18486
|
+
}, B ? E[1] || /* @__PURE__ */ f.createElement(g.default, null) : E[0] || /* @__PURE__ */ f.createElement(v.default, null)));
|
|
18483
18487
|
}
|
|
18484
18488
|
}
|
|
18485
18489
|
}, {
|
|
18486
18490
|
key: "renderEditInput",
|
|
18487
18491
|
value: function() {
|
|
18488
|
-
var B = this.props, k = B.children, $ = B.className, L = B.style, G = this.context.direction, Z = this.getEditable(), P = Z.maxLength,
|
|
18492
|
+
var B = this.props, k = B.children, $ = B.className, L = B.style, G = this.context.direction, Z = this.getEditable(), P = Z.maxLength, E = Z.autoSize;
|
|
18489
18493
|
return /* @__PURE__ */ f.createElement(q.default, {
|
|
18490
18494
|
value: typeof k == "string" ? k : "",
|
|
18491
18495
|
onSave: this.onEditChange,
|
|
@@ -18495,7 +18499,7 @@ function requireBase() {
|
|
|
18495
18499
|
style: L,
|
|
18496
18500
|
direction: G,
|
|
18497
18501
|
maxLength: P,
|
|
18498
|
-
autoSize:
|
|
18502
|
+
autoSize: E
|
|
18499
18503
|
});
|
|
18500
18504
|
}
|
|
18501
18505
|
}, {
|
|
@@ -18508,17 +18512,17 @@ function requireBase() {
|
|
|
18508
18512
|
}, {
|
|
18509
18513
|
key: "renderContent",
|
|
18510
18514
|
value: function() {
|
|
18511
|
-
var B = this, k = this.state, $ = k.ellipsisContent, L = k.isEllipsis, G = k.expanded, Z = this.props, P = Z.component,
|
|
18515
|
+
var B = this, k = this.state, $ = k.ellipsisContent, L = k.isEllipsis, G = k.expanded, Z = this.props, P = Z.component, E = Z.children, X = Z.className, J = Z.type, ee = Z.disabled, Q = Z.style, ie = D(Z, ["component", "children", "className", "type", "disabled", "style"]), te = this.context.direction, oe = this.getEllipsis(), se = oe.rows, _e = oe.suffix, Ce = oe.tooltip, ae = this.getPrefixCls(), me = (0, y.default)(ie, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, a.default)(_.configConsumerProps))), fe = this.canUseCSSEllipsis(), he = se === 1 && fe, ge = se && se > 1 && fe, pe = E;
|
|
18512
18516
|
if (se && L && !G && !fe) {
|
|
18513
18517
|
var Te = ie.title, be = Te || "";
|
|
18514
|
-
!Te && (typeof
|
|
18518
|
+
!Te && (typeof E == "string" || typeof E == "number") && (be = String(E)), be = be == null ? void 0 : be.slice(String($ || "").length), pe = /* @__PURE__ */ f.createElement(f.Fragment, null, $, /* @__PURE__ */ f.createElement("span", {
|
|
18515
18519
|
title: be,
|
|
18516
18520
|
"aria-hidden": "true"
|
|
18517
18521
|
}, A), _e), Ce && (pe = /* @__PURE__ */ f.createElement(T.default, {
|
|
18518
|
-
title: Ce === !0 ?
|
|
18522
|
+
title: Ce === !0 ? E : Ce
|
|
18519
18523
|
}, /* @__PURE__ */ f.createElement("span", null, pe)));
|
|
18520
18524
|
} else
|
|
18521
|
-
pe = /* @__PURE__ */ f.createElement(f.Fragment, null,
|
|
18525
|
+
pe = /* @__PURE__ */ f.createElement(f.Fragment, null, E, _e);
|
|
18522
18526
|
return pe = V(this.props, pe), /* @__PURE__ */ f.createElement(C.default, {
|
|
18523
18527
|
componentName: "Text"
|
|
18524
18528
|
}, function(le) {
|
|
@@ -18547,7 +18551,7 @@ function requireBase() {
|
|
|
18547
18551
|
key: "getDerivedStateFromProps",
|
|
18548
18552
|
value: function(B) {
|
|
18549
18553
|
var k = B.children, $ = B.editable;
|
|
18550
|
-
return (0,
|
|
18554
|
+
return (0, O.default)(!$ || typeof k == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
|
|
18551
18555
|
}
|
|
18552
18556
|
}]), K;
|
|
18553
18557
|
}(f.Component);
|
|
@@ -18594,7 +18598,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
18594
18598
|
field: c,
|
|
18595
18599
|
operator: d,
|
|
18596
18600
|
manualIds: f
|
|
18597
|
-
} = e, [p, h] = useState(!1), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(), [_, C] = useState(0), [
|
|
18601
|
+
} = e, [p, h] = useState(!1), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(), [_, C] = useState(0), [O, F] = useState(0), [w, S] = useState(), [T, I] = useState(), [q, M] = useState();
|
|
18598
18602
|
useEffect(() => {
|
|
18599
18603
|
N();
|
|
18600
18604
|
}, [t, a]);
|
|
@@ -18729,7 +18733,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
18729
18733
|
percent: b,
|
|
18730
18734
|
measureRef: V,
|
|
18731
18735
|
height: _,
|
|
18732
|
-
width:
|
|
18736
|
+
width: O,
|
|
18733
18737
|
color: w,
|
|
18734
18738
|
icon: T,
|
|
18735
18739
|
suffix: l
|
|
@@ -18738,7 +18742,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
18738
18742
|
total: v,
|
|
18739
18743
|
measureRef: V,
|
|
18740
18744
|
height: _,
|
|
18741
|
-
width:
|
|
18745
|
+
width: O,
|
|
18742
18746
|
color: w,
|
|
18743
18747
|
icon: T,
|
|
18744
18748
|
suffix: l
|
|
@@ -18939,8 +18943,8 @@ const DefaultGraphOptions = {
|
|
|
18939
18943
|
fields: x,
|
|
18940
18944
|
manualIds: u
|
|
18941
18945
|
}));
|
|
18942
|
-
} catch (
|
|
18943
|
-
f("Error fetching graph data values: " + JSON.stringify(
|
|
18946
|
+
} catch (O) {
|
|
18947
|
+
f("Error fetching graph data values: " + JSON.stringify(O)), c(!1);
|
|
18944
18948
|
return;
|
|
18945
18949
|
}
|
|
18946
18950
|
try {
|
|
@@ -18949,7 +18953,7 @@ const DefaultGraphOptions = {
|
|
|
18949
18953
|
return;
|
|
18950
18954
|
}
|
|
18951
18955
|
y(_);
|
|
18952
|
-
const
|
|
18956
|
+
const O = processGraphData({
|
|
18953
18957
|
ooui: v,
|
|
18954
18958
|
values: _,
|
|
18955
18959
|
fields: C,
|
|
@@ -18957,9 +18961,9 @@ const DefaultGraphOptions = {
|
|
|
18957
18961
|
uninformedString: s
|
|
18958
18962
|
}
|
|
18959
18963
|
});
|
|
18960
|
-
h(
|
|
18961
|
-
} catch (
|
|
18962
|
-
f("Error processing graph data: " +
|
|
18964
|
+
h(O);
|
|
18965
|
+
} catch (O) {
|
|
18966
|
+
f("Error processing graph data: " + O), c(!1);
|
|
18963
18967
|
return;
|
|
18964
18968
|
}
|
|
18965
18969
|
c(!1);
|
|
@@ -19341,7 +19345,7 @@ const One2manyInput = (e) => {
|
|
|
19341
19345
|
} = d || {}, {
|
|
19342
19346
|
lang: b,
|
|
19343
19347
|
t: g
|
|
19344
|
-
} = useContext(LocaleContext), v = useRef(), [x, _] = useState(!1), [C,
|
|
19348
|
+
} = useContext(LocaleContext), v = useRef(), [x, _] = useState(!1), [C, O] = useState(!1), [F, w] = useState(), [S, T] = useState(!1), [I, q] = useState(!1), [M, D] = useState(), [j, N] = useState([]), [V, A] = useState(!1), W = useRef([]), [Y, z] = useState(), H = useRef(), {
|
|
19345
19349
|
readOnly: K,
|
|
19346
19350
|
relation: U,
|
|
19347
19351
|
context: B,
|
|
@@ -19361,10 +19365,10 @@ const One2manyInput = (e) => {
|
|
|
19361
19365
|
items: filterDuplicateItems(le)
|
|
19362
19366
|
});
|
|
19363
19367
|
}, P = async () => {
|
|
19364
|
-
await
|
|
19365
|
-
},
|
|
19368
|
+
await E(), l > G.length - 1 && l !== 0 && c(0);
|
|
19369
|
+
}, E = async () => {
|
|
19366
19370
|
var le;
|
|
19367
|
-
|
|
19371
|
+
O(!0), _(!1), w(void 0);
|
|
19368
19372
|
try {
|
|
19369
19373
|
const ue = await readObjectValues({
|
|
19370
19374
|
treeFields: a.get("tree").fields,
|
|
@@ -19380,7 +19384,7 @@ const One2manyInput = (e) => {
|
|
|
19380
19384
|
} catch (ue) {
|
|
19381
19385
|
w(ue);
|
|
19382
19386
|
} finally {
|
|
19383
|
-
|
|
19387
|
+
O(!1);
|
|
19384
19388
|
}
|
|
19385
19389
|
};
|
|
19386
19390
|
async function X() {
|
|
@@ -19480,7 +19484,7 @@ const One2manyInput = (e) => {
|
|
|
19480
19484
|
q(!0);
|
|
19481
19485
|
}) : q(!0);
|
|
19482
19486
|
}, Ce = async () => {
|
|
19483
|
-
|
|
19487
|
+
O(!0), _(!1), w(void 0);
|
|
19484
19488
|
try {
|
|
19485
19489
|
if (G[l].id > 0) {
|
|
19486
19490
|
const le = o.map((ue) => ue.id === G[l].id ? {
|
|
@@ -19493,10 +19497,10 @@ const One2manyInput = (e) => {
|
|
|
19493
19497
|
} catch (le) {
|
|
19494
19498
|
w(le);
|
|
19495
19499
|
}
|
|
19496
|
-
c(0),
|
|
19500
|
+
c(0), O(!1);
|
|
19497
19501
|
}, ae = async () => {
|
|
19498
19502
|
const le = G.filter((ue) => j.includes(ue.id));
|
|
19499
|
-
|
|
19503
|
+
O(!0), _(!1), w(void 0);
|
|
19500
19504
|
try {
|
|
19501
19505
|
const ue = le.map((ve) => ve.id), ye = o.filter((ve) => !(ue.includes(ve.id) && ve.id < 0)).map((ve) => ue.includes(ve.id) ? {
|
|
19502
19506
|
...ve,
|
|
@@ -19506,7 +19510,7 @@ const One2manyInput = (e) => {
|
|
|
19506
19510
|
} catch (ue) {
|
|
19507
19511
|
w(ue);
|
|
19508
19512
|
}
|
|
19509
|
-
c(0),
|
|
19513
|
+
c(0), O(!1);
|
|
19510
19514
|
}, me = (le, ue, ye) => {
|
|
19511
19515
|
let ve;
|
|
19512
19516
|
if (le)
|
|
@@ -19544,7 +19548,7 @@ const One2manyInput = (e) => {
|
|
|
19544
19548
|
} = le;
|
|
19545
19549
|
D(o.find((ye) => ye.id === ue)), A(!1), T(!0);
|
|
19546
19550
|
}, he = async (le) => {
|
|
19547
|
-
|
|
19551
|
+
O(!0);
|
|
19548
19552
|
let ue = o;
|
|
19549
19553
|
const ye = le.filter((ve) => !o.find((we) => we.id === ve));
|
|
19550
19554
|
try {
|
|
@@ -19577,7 +19581,7 @@ const One2manyInput = (e) => {
|
|
|
19577
19581
|
} catch (ve) {
|
|
19578
19582
|
w(ve);
|
|
19579
19583
|
} finally {
|
|
19580
|
-
|
|
19584
|
+
O(!1);
|
|
19581
19585
|
}
|
|
19582
19586
|
};
|
|
19583
19587
|
function ge() {
|
|
@@ -19605,18 +19609,18 @@ const One2manyInput = (e) => {
|
|
|
19605
19609
|
submitMode: "values",
|
|
19606
19610
|
onFieldsChange: (Re) => {
|
|
19607
19611
|
var Se;
|
|
19608
|
-
const
|
|
19609
|
-
...
|
|
19610
|
-
operation:
|
|
19612
|
+
const Oe = (Se = G[l]) == null ? void 0 : Se.id, $e = o.map((Ee) => Ee.id === Oe ? {
|
|
19613
|
+
...Ee,
|
|
19614
|
+
operation: Ee.operation === "original" ? "pendingUpdate" : Ee.operation,
|
|
19611
19615
|
values: {
|
|
19612
19616
|
...Re,
|
|
19613
|
-
id:
|
|
19617
|
+
id: Oe
|
|
19614
19618
|
},
|
|
19615
19619
|
treeValues: {
|
|
19616
19620
|
...Re,
|
|
19617
|
-
id:
|
|
19621
|
+
id: Oe
|
|
19618
19622
|
}
|
|
19619
|
-
} :
|
|
19623
|
+
} : Ee);
|
|
19620
19624
|
Z($e), _(!0);
|
|
19621
19625
|
},
|
|
19622
19626
|
readOnly: K
|
|
@@ -22703,8 +22707,8 @@ const DatePickerConfig = {
|
|
|
22703
22707
|
n == null || n(v);
|
|
22704
22708
|
};
|
|
22705
22709
|
async function m() {
|
|
22706
|
-
const v = await getMimeType(r), x = `data:${v == null ? void 0 : v.mime};base64,${r}`, _ = document.createElement("a"), C = d(s),
|
|
22707
|
-
_.href = x, _.download = C ||
|
|
22710
|
+
const v = await getMimeType(r), x = `data:${v == null ? void 0 : v.mime};base64,${r}`, _ = document.createElement("a"), C = d(s), O = d("name");
|
|
22711
|
+
_.href = x, _.download = C || O, _.click();
|
|
22708
22712
|
}
|
|
22709
22713
|
async function y() {
|
|
22710
22714
|
const v = await getMimeType(r);
|
|
@@ -23195,7 +23199,7 @@ function FormActionBar({
|
|
|
23195
23199
|
attachments: x,
|
|
23196
23200
|
formRef: _,
|
|
23197
23201
|
setFormHasChanges: C,
|
|
23198
|
-
previousView:
|
|
23202
|
+
previousView: O,
|
|
23199
23203
|
setPreviousView: F,
|
|
23200
23204
|
goToResourceId: w
|
|
23201
23205
|
} = useContext(ActionViewContext), {
|
|
@@ -23336,7 +23340,7 @@ function FormActionBar({
|
|
|
23336
23340
|
}
|
|
23337
23341
|
}), separator$2(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
23338
23342
|
currentView: r,
|
|
23339
|
-
previousView:
|
|
23343
|
+
previousView: O,
|
|
23340
23344
|
availableViews: t,
|
|
23341
23345
|
onChangeView: (k) => {
|
|
23342
23346
|
F == null || F(r), C == null || C(!1), n == null || n(k);
|
|
@@ -23555,17 +23559,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23555
23559
|
}
|
|
23556
23560
|
function f(v, x) {
|
|
23557
23561
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(v)))) {
|
|
23558
|
-
var _ = [], C = !0,
|
|
23562
|
+
var _ = [], C = !0, O = !1, F = void 0;
|
|
23559
23563
|
try {
|
|
23560
23564
|
for (var w = v[Symbol.iterator](), S; !(C = (S = w.next()).done) && (_.push(S.value), !(x && _.length === x)); C = !0)
|
|
23561
23565
|
;
|
|
23562
23566
|
} catch (T) {
|
|
23563
|
-
|
|
23567
|
+
O = !0, F = T;
|
|
23564
23568
|
} finally {
|
|
23565
23569
|
try {
|
|
23566
23570
|
!C && w.return != null && w.return();
|
|
23567
23571
|
} finally {
|
|
23568
|
-
if (
|
|
23572
|
+
if (O)
|
|
23569
23573
|
throw F;
|
|
23570
23574
|
}
|
|
23571
23575
|
}
|
|
@@ -23604,7 +23608,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23604
23608
|
function g(v, x) {
|
|
23605
23609
|
if ((0, r.default)(v), !v || /[\s<>]/.test(v) || v.indexOf("mailto:") === 0 || (x = (0, o.default)(x, h), x.validate_length && v.length >= 2083) || !x.allow_fragments && v.includes("#") || !x.allow_query_components && (v.includes("?") || v.includes("&")))
|
|
23606
23610
|
return !1;
|
|
23607
|
-
var _, C,
|
|
23611
|
+
var _, C, O, F, w, S, T, I;
|
|
23608
23612
|
if (T = v.split("#"), v = T.shift(), T = v.split("?"), v = T.shift(), T = v.split("://"), T.length > 1) {
|
|
23609
23613
|
if (_ = T.shift().toLowerCase(), x.require_valid_protocol && x.protocols.indexOf(_) === -1)
|
|
23610
23614
|
return !1;
|
|
@@ -23630,12 +23634,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23630
23634
|
}
|
|
23631
23635
|
F = T.join("@"), S = null, I = null;
|
|
23632
23636
|
var N = F.match(m);
|
|
23633
|
-
if (N ? (
|
|
23637
|
+
if (N ? (O = "", I = N[1], S = N[2] || null) : (T = F.split(":"), O = T.shift(), T.length && (S = T.join(":"))), S !== null && S.length > 0) {
|
|
23634
23638
|
if (w = parseInt(S, 10), !/^[0-9]+$/.test(S) || w <= 0 || w > 65535)
|
|
23635
23639
|
return !1;
|
|
23636
23640
|
} else if (x.require_port)
|
|
23637
23641
|
return !1;
|
|
23638
|
-
return x.host_whitelist ? b(
|
|
23642
|
+
return x.host_whitelist ? b(O, x.host_whitelist) : !(!(0, a.default)(O) && !(0, n.default)(O, x) && (!I || !(0, a.default)(I, 6)) || (O = O || I, x.host_blacklist && b(O, x.host_blacklist)));
|
|
23639
23643
|
}
|
|
23640
23644
|
e.exports = t.default, e.exports.default = t.default;
|
|
23641
23645
|
})(isURL$1, isURL$1.exports);
|
|
@@ -23780,10 +23784,10 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
23780
23784
|
}
|
|
23781
23785
|
if (!x.ignore_max_length && v.length > y)
|
|
23782
23786
|
return !1;
|
|
23783
|
-
var
|
|
23787
|
+
var O = v.split("@"), F = O.pop(), w = F.toLowerCase();
|
|
23784
23788
|
if (x.host_blacklist.includes(w))
|
|
23785
23789
|
return !1;
|
|
23786
|
-
var S =
|
|
23790
|
+
var S = O.join("@");
|
|
23787
23791
|
if (x.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
|
|
23788
23792
|
S = S.toLowerCase();
|
|
23789
23793
|
var T = S.split("+")[0];
|
|
@@ -24098,7 +24102,7 @@ const GraphActionView = (e) => {
|
|
|
24098
24102
|
setSorter: x = void 0,
|
|
24099
24103
|
setTotalItems: _ = void 0,
|
|
24100
24104
|
setSearchTreeNameSearch: C = void 0,
|
|
24101
|
-
setTreeIsLoading:
|
|
24105
|
+
setTreeIsLoading: O = void 0,
|
|
24102
24106
|
limit: F,
|
|
24103
24107
|
setLimit: w,
|
|
24104
24108
|
searchParams: S,
|
|
@@ -24126,7 +24130,7 @@ const GraphActionView = (e) => {
|
|
|
24126
24130
|
setSearchValues: I,
|
|
24127
24131
|
setSearchParams: y,
|
|
24128
24132
|
setSearchVisible: g,
|
|
24129
|
-
setTreeIsLoading:
|
|
24133
|
+
setTreeIsLoading: O,
|
|
24130
24134
|
context: a,
|
|
24131
24135
|
formView: s,
|
|
24132
24136
|
treeView: u,
|
|
@@ -24295,7 +24299,7 @@ function TreeActionBar(e) {
|
|
|
24295
24299
|
previousView: _
|
|
24296
24300
|
} = useContext(ActionViewContext), {
|
|
24297
24301
|
parentContext: C = {},
|
|
24298
|
-
treeExpandable:
|
|
24302
|
+
treeExpandable: O,
|
|
24299
24303
|
toolbar: F
|
|
24300
24304
|
} = e, {
|
|
24301
24305
|
t: w,
|
|
@@ -24364,7 +24368,7 @@ function TreeActionBar(e) {
|
|
|
24364
24368
|
}
|
|
24365
24369
|
return /* @__PURE__ */ jsxs(Space, {
|
|
24366
24370
|
wrap: !0,
|
|
24367
|
-
children: [
|
|
24371
|
+
children: [O ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
24368
24372
|
children: [/* @__PURE__ */ jsx(SearchBar, {
|
|
24369
24373
|
disabled: u || s || v,
|
|
24370
24374
|
searchText: g,
|
|
@@ -24386,7 +24390,7 @@ function TreeActionBar(e) {
|
|
|
24386
24390
|
loading: s,
|
|
24387
24391
|
onClick: q
|
|
24388
24392
|
}), separator$1()]
|
|
24389
|
-
}), !
|
|
24393
|
+
}), !O && /* @__PURE__ */ jsx(ButtonWithBadge, {
|
|
24390
24394
|
icon: /* @__PURE__ */ jsx(FilterOutlined, {
|
|
24391
24395
|
style: {
|
|
24392
24396
|
color: m ? "white" : void 0
|
|
@@ -24416,7 +24420,7 @@ function TreeActionBar(e) {
|
|
|
24416
24420
|
var N;
|
|
24417
24421
|
(N = d == null ? void 0 : d.current) == null || N.refreshResults();
|
|
24418
24422
|
}
|
|
24419
|
-
}), !
|
|
24423
|
+
}), !O && /* @__PURE__ */ jsxs(Fragment, {
|
|
24420
24424
|
children: [separator$1(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
24421
24425
|
currentView: r,
|
|
24422
24426
|
availableViews: t,
|
|
@@ -24608,18 +24612,18 @@ function ActionView(e, t) {
|
|
|
24608
24612
|
action_type: m,
|
|
24609
24613
|
treeExpandable: y = !1,
|
|
24610
24614
|
limit: b
|
|
24611
|
-
} = e, [g, v] = useState(), [x, _] = useState([]), [C,
|
|
24615
|
+
} = e, [g, v] = useState(), [x, _] = useState([]), [C, O] = useState(!0), F = p || void 0, [w, S] = useState(F), [T, I] = useState([]), [q, M] = useState(), [D, j] = useState([]), [N, V] = useState(), [A, W] = useState(0), [Y, z] = useState(!1), [H, K] = useState(!1), [U, B] = useState(), {
|
|
24612
24616
|
t: k
|
|
24613
24617
|
} = useContext(LocaleContext), $ = useRef(), L = useRef(), G = useContext(TabManagerContext), {
|
|
24614
24618
|
setCurrentView: Z,
|
|
24615
24619
|
setCurrentId: P,
|
|
24616
|
-
tabs:
|
|
24620
|
+
tabs: E,
|
|
24617
24621
|
activeKey: X,
|
|
24618
24622
|
openAction: J
|
|
24619
24623
|
} = G || {};
|
|
24620
24624
|
useHotkeys("ctrl+g,command+g", (ae) => {
|
|
24621
24625
|
ae.preventDefault(), oe();
|
|
24622
|
-
}, [X,
|
|
24626
|
+
}, [X, E, g, q, D]);
|
|
24623
24627
|
function ee(ae) {
|
|
24624
24628
|
S(ae), P == null || P(ae);
|
|
24625
24629
|
}
|
|
@@ -24630,7 +24634,7 @@ function ActionView(e, t) {
|
|
|
24630
24634
|
canWeClose: te
|
|
24631
24635
|
}));
|
|
24632
24636
|
const ie = async () => {
|
|
24633
|
-
|
|
24637
|
+
O(!0);
|
|
24634
24638
|
const ae = [];
|
|
24635
24639
|
for (const fe of o) {
|
|
24636
24640
|
const [he, ge] = fe;
|
|
@@ -24696,7 +24700,7 @@ function ActionView(e, t) {
|
|
|
24696
24700
|
}
|
|
24697
24701
|
let me;
|
|
24698
24702
|
!c && ae.find((fe) => fe.type === "tree") ? me = ae.find((he) => he.type === "tree") : c ? me = ae.find((he) => c.id ? he.type === c.type && he.view_id === c.id : he.type === c.type) : me = ae.find((he) => he.type === "form"), me || showDialog$8(`Error determining the first view to show.
|
|
24699
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), Q(me), _(ae),
|
|
24703
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), Q(me), _(ae), O(!1);
|
|
24700
24704
|
};
|
|
24701
24705
|
u({
|
|
24702
24706
|
tabKey: l,
|
|
@@ -24706,7 +24710,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
24706
24710
|
Q(me || ae), p ? P == null || P(F) : (ee(void 0), M(void 0)), ie();
|
|
24707
24711
|
}, [n, o, p]), useEffect(() => {
|
|
24708
24712
|
X === l && (P == null || P(w), Z == null || Z(g));
|
|
24709
|
-
}, [
|
|
24713
|
+
}, [E, X]);
|
|
24710
24714
|
async function te() {
|
|
24711
24715
|
return g.type === "form" ? await $.current.cancelUnsavedChanges() : !0;
|
|
24712
24716
|
}
|
|
@@ -25036,18 +25040,18 @@ function DashboardTree(e) {
|
|
|
25036
25040
|
domain: o = [],
|
|
25037
25041
|
visible: s = !0,
|
|
25038
25042
|
parentContext: u = {}
|
|
25039
|
-
} = e, [l, c] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(1), [_, C] = useState(0),
|
|
25040
|
-
z(!0), x(P), C((P - 1) *
|
|
25043
|
+
} = e, [l, c] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, y] = useState(), [b, g] = useState(), [v, x] = useState(1), [_, C] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), F = useRef([]), [w, S] = useState(0), [T, I] = useState([]), [q, M] = useState(void 0), [D, j] = useState(), [N, V] = useState(), [A, W] = useState(), [Y, z] = useState(!1), H = useRef([]), K = (P) => {
|
|
25044
|
+
z(!0), x(P), C((P - 1) * O.current);
|
|
25041
25045
|
}, U = async () => {
|
|
25042
|
-
const P = H.current.length > 0 ? H.current : o,
|
|
25046
|
+
const P = H.current.length > 0 ? H.current : o, E = mergeParams(F.current, P), {
|
|
25043
25047
|
colors: X
|
|
25044
25048
|
} = getTree(m), {
|
|
25045
25049
|
totalItems: J,
|
|
25046
25050
|
results: ee,
|
|
25047
25051
|
attrsEvaluated: Q
|
|
25048
25052
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
25049
|
-
params:
|
|
25050
|
-
limit:
|
|
25053
|
+
params: E,
|
|
25054
|
+
limit: O.current,
|
|
25051
25055
|
offset: _,
|
|
25052
25056
|
model: p,
|
|
25053
25057
|
fields: m.fields,
|
|
@@ -25082,8 +25086,8 @@ function DashboardTree(e) {
|
|
|
25082
25086
|
f(!1), c(!0), W(void 0);
|
|
25083
25087
|
try {
|
|
25084
25088
|
P === "action" ? await $() : await L(), f(!0);
|
|
25085
|
-
} catch (
|
|
25086
|
-
W(
|
|
25089
|
+
} catch (E) {
|
|
25090
|
+
W(E);
|
|
25087
25091
|
} finally {
|
|
25088
25092
|
c(!1);
|
|
25089
25093
|
}
|
|
@@ -25092,7 +25096,7 @@ function DashboardTree(e) {
|
|
|
25092
25096
|
action: t,
|
|
25093
25097
|
context: u
|
|
25094
25098
|
});
|
|
25095
|
-
H.current = P.domain, g(P.views.get("form")), y(P.views.get("tree")), h(P.model),
|
|
25099
|
+
H.current = P.domain, g(P.views.get("form")), y(P.views.get("tree")), h(P.model), O.current = P.limit;
|
|
25096
25100
|
}, L = async () => {
|
|
25097
25101
|
h(r);
|
|
25098
25102
|
const P = await ConnectionProvider.getHandler().getView({
|
|
@@ -25101,23 +25105,23 @@ function DashboardTree(e) {
|
|
|
25101
25105
|
context: u
|
|
25102
25106
|
});
|
|
25103
25107
|
g(P);
|
|
25104
|
-
const
|
|
25108
|
+
const E = await ConnectionProvider.getHandler().getView({
|
|
25105
25109
|
model: r,
|
|
25106
25110
|
type: "tree",
|
|
25107
25111
|
id: n,
|
|
25108
25112
|
context: u
|
|
25109
25113
|
});
|
|
25110
|
-
y(
|
|
25114
|
+
y(E);
|
|
25111
25115
|
};
|
|
25112
25116
|
useEffect(() => {
|
|
25113
25117
|
t ? k("action") : r && k("model");
|
|
25114
25118
|
}, [t, r]);
|
|
25115
25119
|
const G = (P) => {
|
|
25116
25120
|
const {
|
|
25117
|
-
id:
|
|
25121
|
+
id: E
|
|
25118
25122
|
} = P;
|
|
25119
25123
|
a({
|
|
25120
|
-
id:
|
|
25124
|
+
id: E,
|
|
25121
25125
|
model: p,
|
|
25122
25126
|
treeView: m
|
|
25123
25127
|
});
|
|
@@ -25133,7 +25137,7 @@ function DashboardTree(e) {
|
|
|
25133
25137
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
25134
25138
|
showPagination: !1,
|
|
25135
25139
|
total: w,
|
|
25136
|
-
limit:
|
|
25140
|
+
limit: O.current,
|
|
25137
25141
|
page: v,
|
|
25138
25142
|
treeView: m,
|
|
25139
25143
|
results: T,
|
|
@@ -25144,7 +25148,7 @@ function DashboardTree(e) {
|
|
|
25144
25148
|
sorter: D,
|
|
25145
25149
|
onChangeSort: (P) => {
|
|
25146
25150
|
j == null || j(P);
|
|
25147
|
-
const
|
|
25151
|
+
const E = sortResults({
|
|
25148
25152
|
resultsToSort: T,
|
|
25149
25153
|
sorter: P,
|
|
25150
25154
|
fields: {
|
|
@@ -25152,7 +25156,7 @@ function DashboardTree(e) {
|
|
|
25152
25156
|
...b.fields
|
|
25153
25157
|
}
|
|
25154
25158
|
});
|
|
25155
|
-
I(
|
|
25159
|
+
I(E);
|
|
25156
25160
|
},
|
|
25157
25161
|
context: u
|
|
25158
25162
|
})]
|
|
@@ -25281,7 +25285,7 @@ function Dashboard(e, t) {
|
|
|
25281
25285
|
}
|
|
25282
25286
|
return S;
|
|
25283
25287
|
}
|
|
25284
|
-
async function
|
|
25288
|
+
async function O(w) {
|
|
25285
25289
|
if (!m)
|
|
25286
25290
|
return;
|
|
25287
25291
|
const S = w.filter((M) => {
|
|
@@ -25335,7 +25339,7 @@ function Dashboard(e, t) {
|
|
|
25335
25339
|
type: "error",
|
|
25336
25340
|
banner: !0
|
|
25337
25341
|
}) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
|
|
25338
|
-
onPositionItemsChanged:
|
|
25342
|
+
onPositionItemsChanged: O,
|
|
25339
25343
|
children: s.map((w, S) => {
|
|
25340
25344
|
const {
|
|
25341
25345
|
actionData: T,
|
|
@@ -25392,12 +25396,12 @@ function Dashboard(e, t) {
|
|
|
25392
25396
|
});
|
|
25393
25397
|
if (G) {
|
|
25394
25398
|
const [Z, P] = G, {
|
|
25395
|
-
actionId:
|
|
25399
|
+
actionId: E,
|
|
25396
25400
|
actionType: X,
|
|
25397
25401
|
title: J,
|
|
25398
25402
|
model: ee
|
|
25399
25403
|
} = T, Q = {
|
|
25400
|
-
action_id:
|
|
25404
|
+
action_id: E,
|
|
25401
25405
|
action_type: X,
|
|
25402
25406
|
name: J,
|
|
25403
25407
|
res_id: L.id,
|
|
@@ -25438,13 +25442,13 @@ function Dashboard(e, t) {
|
|
|
25438
25442
|
const [L, G] = $, {
|
|
25439
25443
|
actionId: Z,
|
|
25440
25444
|
actionType: P,
|
|
25441
|
-
title:
|
|
25445
|
+
title: E,
|
|
25442
25446
|
model: X
|
|
25443
25447
|
} = T;
|
|
25444
25448
|
k = {
|
|
25445
25449
|
action_id: Z,
|
|
25446
25450
|
action_type: P,
|
|
25447
|
-
name:
|
|
25451
|
+
name: E,
|
|
25448
25452
|
res_id: !1,
|
|
25449
25453
|
res_model: X,
|
|
25450
25454
|
view_id: L,
|
|
@@ -25545,7 +25549,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
25545
25549
|
}
|
|
25546
25550
|
const C = () => {
|
|
25547
25551
|
F(s.map((w) => w.value));
|
|
25548
|
-
},
|
|
25552
|
+
}, O = () => {
|
|
25549
25553
|
F([]);
|
|
25550
25554
|
}, F = (w) => {
|
|
25551
25555
|
const S = a.map((I) => w.includes(I.id) ? I.operation == "pendingRemove" ? {
|
|
@@ -25587,7 +25591,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
25587
25591
|
disabled: o.length == s.length,
|
|
25588
25592
|
children: "Check all"
|
|
25589
25593
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
25590
|
-
onClick:
|
|
25594
|
+
onClick: O,
|
|
25591
25595
|
disabled: o.length === 0,
|
|
25592
25596
|
children: "Uncheck all"
|
|
25593
25597
|
})]
|
|
@@ -25748,7 +25752,7 @@ function RootView(e, t) {
|
|
|
25748
25752
|
}));
|
|
25749
25753
|
function p(_) {
|
|
25750
25754
|
if (_ === s) {
|
|
25751
|
-
const C = l.findIndex((
|
|
25755
|
+
const C = l.findIndex((O) => O.key === _);
|
|
25752
25756
|
l[C - 1] && u(l[C - 1].key), l[C + 1] && u(l[C + 1].key);
|
|
25753
25757
|
}
|
|
25754
25758
|
c(l.filter((C) => C.key !== _)), d.current.delete(_);
|
|
@@ -25762,7 +25766,7 @@ function RootView(e, t) {
|
|
|
25762
25766
|
async function m({
|
|
25763
25767
|
action: _,
|
|
25764
25768
|
values: C,
|
|
25765
|
-
forced_values:
|
|
25769
|
+
forced_values: O,
|
|
25766
25770
|
initialViewType: F,
|
|
25767
25771
|
res_id: w,
|
|
25768
25772
|
domain: S = []
|
|
@@ -25843,7 +25847,7 @@ function RootView(e, t) {
|
|
|
25843
25847
|
action_type: I,
|
|
25844
25848
|
action_id: M,
|
|
25845
25849
|
values: C,
|
|
25846
|
-
forced_values:
|
|
25850
|
+
forced_values: O,
|
|
25847
25851
|
res_id: w,
|
|
25848
25852
|
treeExpandable: H,
|
|
25849
25853
|
limit: z
|
|
@@ -25852,22 +25856,22 @@ function RootView(e, t) {
|
|
|
25852
25856
|
function y({
|
|
25853
25857
|
title: _,
|
|
25854
25858
|
content: C,
|
|
25855
|
-
key:
|
|
25859
|
+
key: O,
|
|
25856
25860
|
action: F
|
|
25857
25861
|
}) {
|
|
25858
25862
|
let w = [...l];
|
|
25859
25863
|
l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((S) => S.key !== "welcome")]), c([...w, {
|
|
25860
25864
|
title: _,
|
|
25861
|
-
key:
|
|
25865
|
+
key: O,
|
|
25862
25866
|
closable: !0,
|
|
25863
25867
|
content: C,
|
|
25864
25868
|
action: F
|
|
25865
|
-
}]), u(
|
|
25869
|
+
}]), u(O);
|
|
25866
25870
|
}
|
|
25867
25871
|
async function b({
|
|
25868
25872
|
relateData: _,
|
|
25869
25873
|
fields: C,
|
|
25870
|
-
values:
|
|
25874
|
+
values: O,
|
|
25871
25875
|
action_id: F,
|
|
25872
25876
|
action_type: w
|
|
25873
25877
|
}) {
|
|
@@ -25885,7 +25889,7 @@ function RootView(e, t) {
|
|
|
25885
25889
|
}, W = parseContext({
|
|
25886
25890
|
context: T,
|
|
25887
25891
|
values: {
|
|
25888
|
-
...
|
|
25892
|
+
...O,
|
|
25889
25893
|
...n
|
|
25890
25894
|
},
|
|
25891
25895
|
fields: C
|
|
@@ -25894,7 +25898,7 @@ function RootView(e, t) {
|
|
|
25894
25898
|
values: transformPlainMany2Ones({
|
|
25895
25899
|
fields: C,
|
|
25896
25900
|
values: {
|
|
25897
|
-
...
|
|
25901
|
+
...O,
|
|
25898
25902
|
...n
|
|
25899
25903
|
}
|
|
25900
25904
|
}),
|
|
@@ -25923,10 +25927,10 @@ function RootView(e, t) {
|
|
|
25923
25927
|
async function g(_) {
|
|
25924
25928
|
const {
|
|
25925
25929
|
action_id: C,
|
|
25926
|
-
action_type:
|
|
25930
|
+
action_type: O,
|
|
25927
25931
|
res_id: F,
|
|
25928
25932
|
view_id: w
|
|
25929
|
-
} = _, S = `${
|
|
25933
|
+
} = _, S = `${O},${C}`, T = await ConnectionProvider.getHandler().getActionData({
|
|
25930
25934
|
action: S,
|
|
25931
25935
|
context: a
|
|
25932
25936
|
}), I = parseContext({
|
|
@@ -25991,7 +25995,7 @@ function RootView(e, t) {
|
|
|
25991
25995
|
target: N,
|
|
25992
25996
|
initialView: K,
|
|
25993
25997
|
action_id: C,
|
|
25994
|
-
action_type:
|
|
25998
|
+
action_type: O,
|
|
25995
25999
|
res_id: F,
|
|
25996
26000
|
treeExpandable: W,
|
|
25997
26001
|
limit: A
|
|
@@ -26000,7 +26004,7 @@ function RootView(e, t) {
|
|
|
26000
26004
|
async function v({
|
|
26001
26005
|
model: _,
|
|
26002
26006
|
values: C,
|
|
26003
|
-
forced_values:
|
|
26007
|
+
forced_values: O,
|
|
26004
26008
|
initialViewType: F,
|
|
26005
26009
|
res_id: w,
|
|
26006
26010
|
domain: S
|
|
@@ -26009,7 +26013,7 @@ function RootView(e, t) {
|
|
|
26009
26013
|
await m({
|
|
26010
26014
|
action: T,
|
|
26011
26015
|
values: C,
|
|
26012
|
-
forced_values:
|
|
26016
|
+
forced_values: O,
|
|
26013
26017
|
initialViewType: F,
|
|
26014
26018
|
res_id: w,
|
|
26015
26019
|
domain: S
|
|
@@ -26018,7 +26022,7 @@ function RootView(e, t) {
|
|
|
26018
26022
|
async function x({
|
|
26019
26023
|
domain: _,
|
|
26020
26024
|
context: C,
|
|
26021
|
-
model:
|
|
26025
|
+
model: O,
|
|
26022
26026
|
views: F,
|
|
26023
26027
|
title: w,
|
|
26024
26028
|
target: S,
|
|
@@ -26034,7 +26038,7 @@ function RootView(e, t) {
|
|
|
26034
26038
|
const A = v4();
|
|
26035
26039
|
if (S !== "current") {
|
|
26036
26040
|
const W = await ConnectionProvider.getHandler().getView({
|
|
26037
|
-
model:
|
|
26041
|
+
model: O,
|
|
26038
26042
|
type: "form",
|
|
26039
26043
|
id: T.type === "form" ? T.id : void 0,
|
|
26040
26044
|
context: {
|
|
@@ -26044,7 +26048,7 @@ function RootView(e, t) {
|
|
|
26044
26048
|
});
|
|
26045
26049
|
f.current.openActionModal({
|
|
26046
26050
|
domain: _,
|
|
26047
|
-
model:
|
|
26051
|
+
model: O,
|
|
26048
26052
|
formView: W,
|
|
26049
26053
|
context: {
|
|
26050
26054
|
...a,
|
|
@@ -26074,7 +26078,7 @@ function RootView(e, t) {
|
|
|
26074
26078
|
tabKey: A,
|
|
26075
26079
|
title: w,
|
|
26076
26080
|
views: F,
|
|
26077
|
-
model:
|
|
26081
|
+
model: O,
|
|
26078
26082
|
context: {
|
|
26079
26083
|
...a,
|
|
26080
26084
|
...C
|
|
@@ -26233,7 +26237,7 @@ const FavouriteButton = (e) => {
|
|
|
26233
26237
|
activeKey: x,
|
|
26234
26238
|
currentView: _,
|
|
26235
26239
|
currentId: C,
|
|
26236
|
-
openDefaultActionForModel:
|
|
26240
|
+
openDefaultActionForModel: O
|
|
26237
26241
|
} = b || {};
|
|
26238
26242
|
useEffect(() => {
|
|
26239
26243
|
F();
|
|
@@ -26283,7 +26287,7 @@ const FavouriteButton = (e) => {
|
|
|
26283
26287
|
Y !== !1 && m(Y), s(Y !== !1);
|
|
26284
26288
|
}
|
|
26285
26289
|
async function I() {
|
|
26286
|
-
l(!1),
|
|
26290
|
+
l(!1), O == null || O({
|
|
26287
26291
|
model: "ir.ui.view_sc"
|
|
26288
26292
|
});
|
|
26289
26293
|
}
|