@gisce/react-ooui 1.1.56-rc.0 → 1.1.56-rc.2
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 +827 -785
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +8 -8
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/widgets/views/Graph/GraphDefaults.ts +53 -0
package/dist/react-ooui.es.js
CHANGED
|
@@ -644,8 +644,8 @@ const Button = (e) => {
|
|
|
644
644
|
if (_)
|
|
645
645
|
return /* @__PURE__ */ jsx(LoadingOutlined$3, {});
|
|
646
646
|
if (c) {
|
|
647
|
-
const
|
|
648
|
-
return
|
|
647
|
+
const O = iconMapper(c);
|
|
648
|
+
return O && /* @__PURE__ */ jsx(O, {});
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
async function b() {
|
|
@@ -1138,8 +1138,8 @@ function requireReactIs_production_min() {
|
|
|
1138
1138
|
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, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, g = e ? Symbol.for("react.scope") : 60119;
|
|
1139
1139
|
function x(C) {
|
|
1140
1140
|
if (typeof C == "object" && C !== null) {
|
|
1141
|
-
var
|
|
1142
|
-
switch (
|
|
1141
|
+
var O = C.$$typeof;
|
|
1142
|
+
switch (O) {
|
|
1143
1143
|
case t:
|
|
1144
1144
|
switch (C = C.type, C) {
|
|
1145
1145
|
case l:
|
|
@@ -1158,11 +1158,11 @@ function requireReactIs_production_min() {
|
|
|
1158
1158
|
case s:
|
|
1159
1159
|
return C;
|
|
1160
1160
|
default:
|
|
1161
|
-
return
|
|
1161
|
+
return O;
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
case r:
|
|
1165
|
-
return
|
|
1165
|
+
return O;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
@@ -1245,14 +1245,14 @@ function requireReactIs_development() {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
var C = l,
|
|
1248
|
+
var C = l, O = c, k = u, w = s, E = t, T = d, A = n, q = v, $ = h, D = r, j = o, N = a, L = f, I = !1;
|
|
1249
1249
|
function W(P) {
|
|
1250
|
-
return I || (I = !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.")),
|
|
1250
|
+
return I || (I = !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.")), z(P) || b(P) === l;
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function z(P) {
|
|
1253
1253
|
return b(P) === c;
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function Y(P) {
|
|
1256
1256
|
return b(P) === u;
|
|
1257
1257
|
}
|
|
1258
1258
|
function H(P) {
|
|
@@ -1285,7 +1285,7 @@ function requireReactIs_development() {
|
|
|
1285
1285
|
function F(P) {
|
|
1286
1286
|
return b(P) === f;
|
|
1287
1287
|
}
|
|
1288
|
-
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode =
|
|
1288
|
+
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = k, reactIs_development.ContextProvider = w, reactIs_development.Element = E, reactIs_development.ForwardRef = T, reactIs_development.Fragment = A, reactIs_development.Lazy = q, reactIs_development.Memo = $, reactIs_development.Portal = D, reactIs_development.Profiler = j, reactIs_development.StrictMode = N, reactIs_development.Suspense = L, reactIs_development.isAsyncMode = W, reactIs_development.isConcurrentMode = z, reactIs_development.isContextConsumer = Y, reactIs_development.isContextProvider = H, reactIs_development.isElement = K, reactIs_development.isForwardRef = U, reactIs_development.isFragment = B, reactIs_development.isLazy = S, reactIs_development.isMemo = M, reactIs_development.isPortal = V, reactIs_development.isProfiler = X, reactIs_development.isStrictMode = Z, reactIs_development.isSuspense = F, reactIs_development.isValidElementType = x, reactIs_development.typeOf = b;
|
|
1289
1289
|
}()), reactIs_development;
|
|
1290
1290
|
}
|
|
1291
1291
|
var hasRequiredReactIs;
|
|
@@ -2776,12 +2776,12 @@ function requireUtils() {
|
|
|
2776
2776
|
function p(g, x, b) {
|
|
2777
2777
|
return b ? /* @__PURE__ */ o.default.createElement(g.tag, (0, r.default)((0, r.default)({
|
|
2778
2778
|
key: x
|
|
2779
|
-
}, f(g.attrs)), b), (g.children || []).map(function(C,
|
|
2780
|
-
return p(C, "".concat(x, "-").concat(g.tag, "-").concat(
|
|
2779
|
+
}, f(g.attrs)), b), (g.children || []).map(function(C, O) {
|
|
2780
|
+
return p(C, "".concat(x, "-").concat(g.tag, "-").concat(O));
|
|
2781
2781
|
})) : /* @__PURE__ */ o.default.createElement(g.tag, (0, r.default)({
|
|
2782
2782
|
key: x
|
|
2783
|
-
}, f(g.attrs)), (g.children || []).map(function(C,
|
|
2784
|
-
return p(C, "".concat(x, "-").concat(g.tag, "-").concat(
|
|
2783
|
+
}, f(g.attrs)), (g.children || []).map(function(C, O) {
|
|
2784
|
+
return p(C, "".concat(x, "-").concat(g.tag, "-").concat(O));
|
|
2785
2785
|
}));
|
|
2786
2786
|
}
|
|
2787
2787
|
function h(g) {
|
|
@@ -2946,7 +2946,7 @@ function requireAntdIcon() {
|
|
|
2946
2946
|
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
2947
|
(0, d.setTwoToneColor)("#1890ff");
|
|
2948
2948
|
var h = /* @__PURE__ */ s.forwardRef(function(y, _) {
|
|
2949
|
-
var m, g = y.className, x = y.icon, b = y.spin, C = y.rotate,
|
|
2949
|
+
var m, g = y.className, x = y.icon, b = y.spin, C = y.rotate, O = y.tabIndex, k = y.onClick, w = y.twoToneColor, E = (0, o.default)(y, p), T = s.useContext(l.default), A = T.prefixCls, q = A === void 0 ? "anticon" : A, $ = (0, u.default)(q, (m = {}, (0, a.default)(m, "".concat(q, "-").concat(x.name), !!x.name), (0, a.default)(m, "".concat(q, "-spin"), !!b || x.name === "loading"), m), g), D = O;
|
|
2950
2950
|
D === void 0 && k && (D = -1);
|
|
2951
2951
|
var j = C ? {
|
|
2952
2952
|
msTransform: "rotate(".concat(C, "deg)"),
|
|
@@ -3135,8 +3135,8 @@ function requireRegeneratorRuntime() {
|
|
|
3135
3135
|
};
|
|
3136
3136
|
}
|
|
3137
3137
|
function f($, D, j, N) {
|
|
3138
|
-
var L = D && D.prototype instanceof v ? D : v, I = Object.create(L.prototype), W = new
|
|
3139
|
-
return I._invoke = function(
|
|
3138
|
+
var L = D && D.prototype instanceof v ? D : v, I = Object.create(L.prototype), W = new T(N || []);
|
|
3139
|
+
return I._invoke = function(z, Y, H) {
|
|
3140
3140
|
var K = "suspendedStart";
|
|
3141
3141
|
return function(U, B) {
|
|
3142
3142
|
if (K === "executing")
|
|
@@ -3165,7 +3165,7 @@ function requireRegeneratorRuntime() {
|
|
|
3165
3165
|
} else
|
|
3166
3166
|
H.method === "return" && H.abrupt("return", H.arg);
|
|
3167
3167
|
K = "executing";
|
|
3168
|
-
var V = p(
|
|
3168
|
+
var V = p(z, Y, H);
|
|
3169
3169
|
if (V.type === "normal") {
|
|
3170
3170
|
if (K = H.done ? "completed" : "suspendedYield", V.arg === h)
|
|
3171
3171
|
continue;
|
|
@@ -3214,28 +3214,28 @@ function requireRegeneratorRuntime() {
|
|
|
3214
3214
|
});
|
|
3215
3215
|
});
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3218
|
-
function j(L, I, W,
|
|
3219
|
-
var
|
|
3220
|
-
if (
|
|
3221
|
-
var H =
|
|
3217
|
+
function O($, D) {
|
|
3218
|
+
function j(L, I, W, z) {
|
|
3219
|
+
var Y = p($[L], $, I);
|
|
3220
|
+
if (Y.type !== "throw") {
|
|
3221
|
+
var H = Y.arg, K = H.value;
|
|
3222
3222
|
return K && t(K) == "object" && o.call(K, "__await") ? D.resolve(K.__await).then(function(U) {
|
|
3223
|
-
j("next", U, W,
|
|
3223
|
+
j("next", U, W, z);
|
|
3224
3224
|
}, function(U) {
|
|
3225
|
-
j("throw", U, W,
|
|
3225
|
+
j("throw", U, W, z);
|
|
3226
3226
|
}) : D.resolve(K).then(function(U) {
|
|
3227
3227
|
H.value = U, W(H);
|
|
3228
3228
|
}, function(U) {
|
|
3229
|
-
return j("throw", U, W,
|
|
3229
|
+
return j("throw", U, W, z);
|
|
3230
3230
|
});
|
|
3231
3231
|
}
|
|
3232
|
-
Y
|
|
3232
|
+
z(Y.arg);
|
|
3233
3233
|
}
|
|
3234
3234
|
var N;
|
|
3235
3235
|
this._invoke = function(L, I) {
|
|
3236
3236
|
function W() {
|
|
3237
|
-
return new D(function(
|
|
3238
|
-
j(L, I,
|
|
3237
|
+
return new D(function(z, Y) {
|
|
3238
|
+
j(L, I, z, Y);
|
|
3239
3239
|
});
|
|
3240
3240
|
}
|
|
3241
3241
|
return N = N ? N.then(W, W) : W();
|
|
@@ -3267,7 +3267,7 @@ function requireRegeneratorRuntime() {
|
|
|
3267
3267
|
var D = $.completion || {};
|
|
3268
3268
|
D.type = "normal", delete D.arg, $.completion = D;
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function T($) {
|
|
3271
3271
|
this.tryEntries = [{
|
|
3272
3272
|
tryLoc: "root"
|
|
3273
3273
|
}], $.forEach(w, this), this.reset(!0);
|
|
@@ -3308,11 +3308,11 @@ function requireRegeneratorRuntime() {
|
|
|
3308
3308
|
return {
|
|
3309
3309
|
__await: $
|
|
3310
3310
|
};
|
|
3311
|
-
}, C(
|
|
3311
|
+
}, C(O.prototype), d(O.prototype, l, function() {
|
|
3312
3312
|
return this;
|
|
3313
|
-
}), n.AsyncIterator =
|
|
3313
|
+
}), n.AsyncIterator = O, n.async = function($, D, j, N, L) {
|
|
3314
3314
|
L === void 0 && (L = Promise);
|
|
3315
|
-
var I = new
|
|
3315
|
+
var I = new O(f($, D, j, N), L);
|
|
3316
3316
|
return n.isGeneratorFunction(D) ? I : I.next().then(function(W) {
|
|
3317
3317
|
return W.done ? W.value : I.next();
|
|
3318
3318
|
});
|
|
@@ -3332,8 +3332,8 @@ function requireRegeneratorRuntime() {
|
|
|
3332
3332
|
}
|
|
3333
3333
|
return N.done = !0, N;
|
|
3334
3334
|
};
|
|
3335
|
-
}, n.values = A,
|
|
3336
|
-
constructor:
|
|
3335
|
+
}, n.values = A, T.prototype = {
|
|
3336
|
+
constructor: T,
|
|
3337
3337
|
reset: function(D) {
|
|
3338
3338
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(E), !D)
|
|
3339
3339
|
for (var j in this)
|
|
@@ -3358,17 +3358,17 @@ function requireRegeneratorRuntime() {
|
|
|
3358
3358
|
if (I.tryLoc === "root")
|
|
3359
3359
|
return N("end");
|
|
3360
3360
|
if (I.tryLoc <= this.prev) {
|
|
3361
|
-
var
|
|
3362
|
-
if (
|
|
3361
|
+
var z = o.call(I, "catchLoc"), Y = o.call(I, "finallyLoc");
|
|
3362
|
+
if (z && Y) {
|
|
3363
3363
|
if (this.prev < I.catchLoc)
|
|
3364
3364
|
return N(I.catchLoc, !0);
|
|
3365
3365
|
if (this.prev < I.finallyLoc)
|
|
3366
3366
|
return N(I.finallyLoc);
|
|
3367
|
-
} else if (
|
|
3367
|
+
} else if (z) {
|
|
3368
3368
|
if (this.prev < I.catchLoc)
|
|
3369
3369
|
return N(I.catchLoc, !0);
|
|
3370
3370
|
} else {
|
|
3371
|
-
if (!
|
|
3371
|
+
if (!Y)
|
|
3372
3372
|
throw new Error("try statement without catch or finally");
|
|
3373
3373
|
if (this.prev < I.finallyLoc)
|
|
3374
3374
|
return N(I.finallyLoc);
|
|
@@ -4025,14 +4025,14 @@ Schema.prototype = {
|
|
|
4025
4025
|
return asyncMap(p, s, function(y, _) {
|
|
4026
4026
|
var m = y.rule, g = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
|
|
4027
4027
|
g = g && (m.required || !m.required && y.value), m.field = y.field;
|
|
4028
|
-
function x(
|
|
4028
|
+
function x(O, k) {
|
|
4029
4029
|
return _extends(_extends({}, k), {}, {
|
|
4030
|
-
fullField: m.fullField + "." +
|
|
4030
|
+
fullField: m.fullField + "." + O
|
|
4031
4031
|
});
|
|
4032
4032
|
}
|
|
4033
|
-
function b(
|
|
4034
|
-
|
|
4035
|
-
var k =
|
|
4033
|
+
function b(O) {
|
|
4034
|
+
O === void 0 && (O = []);
|
|
4035
|
+
var k = O;
|
|
4036
4036
|
if (Array.isArray(k) || (k = [k]), !s.suppressWarning && k.length && Schema.warning("async-validator:", k), k.length && m.message !== void 0 && (k = [].concat(m.message)), k = k.map(complementError(m)), s.first && k.length)
|
|
4037
4037
|
return v[m.field] = 1, _(k);
|
|
4038
4038
|
if (!g)
|
|
@@ -4045,10 +4045,10 @@ Schema.prototype = {
|
|
|
4045
4045
|
for (var E in y.value)
|
|
4046
4046
|
y.value.hasOwnProperty(E) && (w[E] = m.defaultField);
|
|
4047
4047
|
w = _extends(_extends({}, w), y.rule.fields);
|
|
4048
|
-
for (var
|
|
4049
|
-
if (w.hasOwnProperty(
|
|
4050
|
-
var A = Array.isArray(w[
|
|
4051
|
-
w[
|
|
4048
|
+
for (var T in w)
|
|
4049
|
+
if (w.hasOwnProperty(T)) {
|
|
4050
|
+
var A = Array.isArray(w[T]) ? w[T] : [w[T]];
|
|
4051
|
+
w[T] = A.map(x.bind(null, T));
|
|
4052
4052
|
}
|
|
4053
4053
|
var q = new Schema(w);
|
|
4054
4054
|
q.messages(s.messages), y.rule.options && (y.rule.options.messages = s.messages, y.rule.options.error = s.error), q.validate(y.value, y.rule.options || s, function($) {
|
|
@@ -4060,8 +4060,8 @@ Schema.prototype = {
|
|
|
4060
4060
|
var C;
|
|
4061
4061
|
m.asyncValidator ? C = m.asyncValidator(m, y.value, b, y.source, s) : m.validator && (C = m.validator(m, y.value, b, y.source, s), C === !0 ? b() : C === !1 ? b(m.message || m.field + " fails") : C instanceof Array ? b(C) : C instanceof Error && b(C.message)), C && C.then && C.then(function() {
|
|
4062
4062
|
return b();
|
|
4063
|
-
}, function(
|
|
4064
|
-
return b(
|
|
4063
|
+
}, function(O) {
|
|
4064
|
+
return b(O);
|
|
4065
4065
|
});
|
|
4066
4066
|
}, function(y) {
|
|
4067
4067
|
l(y);
|
|
@@ -4323,8 +4323,8 @@ function validateRules(e, t, r, n, a, o) {
|
|
|
4323
4323
|
return f ? _objectSpread2$1(_objectSpread2$1({}, d), {}, {
|
|
4324
4324
|
validator: function(h, v, y) {
|
|
4325
4325
|
var _ = !1, m = function() {
|
|
4326
|
-
for (var b = arguments.length, C = new Array(b),
|
|
4327
|
-
C[
|
|
4326
|
+
for (var b = arguments.length, C = new Array(b), O = 0; O < b; O++)
|
|
4327
|
+
C[O] = arguments[O];
|
|
4328
4328
|
Promise.resolve().then(function() {
|
|
4329
4329
|
warningOnce(!_, "Your validator function has already return a promise. `callback` will be ignored."), _ || y.apply(void 0, C);
|
|
4330
4330
|
});
|
|
@@ -4481,8 +4481,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4481
4481
|
break;
|
|
4482
4482
|
}
|
|
4483
4483
|
case "dependenciesUpdate": {
|
|
4484
|
-
var
|
|
4485
|
-
if (
|
|
4484
|
+
var O = v.map(getNamePath);
|
|
4485
|
+
if (O.some(function(k) {
|
|
4486
4486
|
return containsNamePath(d.relatedFields, k);
|
|
4487
4487
|
})) {
|
|
4488
4488
|
a.reRender();
|
|
@@ -4507,8 +4507,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4507
4507
|
var C = b.validateTrigger;
|
|
4508
4508
|
if (!C)
|
|
4509
4509
|
return !0;
|
|
4510
|
-
var
|
|
4511
|
-
return
|
|
4510
|
+
var O = toArray$2(C);
|
|
4511
|
+
return O.includes(m);
|
|
4512
4512
|
}));
|
|
4513
4513
|
var x = validateRules(c, d, g, l, v, y);
|
|
4514
4514
|
return x.catch(function(b) {
|
|
@@ -4561,14 +4561,14 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4561
4561
|
var c = a.props.fieldContext.getFieldsValue, d = a.getNamePath();
|
|
4562
4562
|
return getValue(l || c(!0), d);
|
|
4563
4563
|
}, 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, v = c.valuePropName, y = c.getValueProps, _ = c.fieldContext, m = f !== void 0 ? f : _.validateTrigger, g = a.getNamePath(), x = _.getInternalHooks, b = _.getFieldsValue, C = x(HOOK_MARK),
|
|
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, v = c.valuePropName, y = c.getValueProps, _ = c.fieldContext, m = f !== void 0 ? f : _.validateTrigger, g = a.getNamePath(), x = _.getInternalHooks, b = _.getFieldsValue, C = x(HOOK_MARK), O = C.dispatch, k = a.getValue(), w = y || function(q) {
|
|
4565
4565
|
return _defineProperty$1({}, v, q);
|
|
4566
|
-
}, E = l[d],
|
|
4567
|
-
|
|
4566
|
+
}, E = l[d], T = _objectSpread2$1(_objectSpread2$1({}, l), w(k));
|
|
4567
|
+
T[d] = function() {
|
|
4568
4568
|
a.touched = !0, a.dirty = !0;
|
|
4569
4569
|
for (var q, $ = arguments.length, D = new Array($), j = 0; j < $; j++)
|
|
4570
4570
|
D[j] = arguments[j];
|
|
4571
|
-
p ? q = p.apply(void 0, D) : q = defaultGetValueFromEvent.apply(void 0, [v].concat(D)), h && (q = h(q, k, b(!0))),
|
|
4571
|
+
p ? q = p.apply(void 0, D) : q = defaultGetValueFromEvent.apply(void 0, [v].concat(D)), h && (q = h(q, k, b(!0))), O({
|
|
4572
4572
|
type: "updateValue",
|
|
4573
4573
|
namePath: g,
|
|
4574
4574
|
value: q
|
|
@@ -4576,17 +4576,17 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
4576
4576
|
};
|
|
4577
4577
|
var A = toArray$2(m || []);
|
|
4578
4578
|
return A.forEach(function(q) {
|
|
4579
|
-
var $ =
|
|
4580
|
-
|
|
4579
|
+
var $ = T[q];
|
|
4580
|
+
T[q] = function() {
|
|
4581
4581
|
$ && $.apply(void 0, arguments);
|
|
4582
4582
|
var D = a.props.rules;
|
|
4583
|
-
D && D.length &&
|
|
4583
|
+
D && D.length && O({
|
|
4584
4584
|
type: "validateField",
|
|
4585
4585
|
namePath: g,
|
|
4586
4586
|
triggerName: q
|
|
4587
4587
|
});
|
|
4588
4588
|
};
|
|
4589
|
-
}),
|
|
4589
|
+
}), T;
|
|
4590
4590
|
}, n.fieldContext) {
|
|
4591
4591
|
var o = n.fieldContext.getInternalHooks, s = o(HOOK_MARK), u = s.initEntityValue;
|
|
4592
4592
|
u(_assertThisInitialized(a));
|
|
@@ -4670,9 +4670,9 @@ var List = function(t) {
|
|
|
4670
4670
|
},
|
|
4671
4671
|
remove: function(k) {
|
|
4672
4672
|
var w = x(), E = new Set(Array.isArray(k) ? k : [k]);
|
|
4673
|
-
E.size <= 0 || (c.keys = c.keys.filter(function(
|
|
4673
|
+
E.size <= 0 || (c.keys = c.keys.filter(function(T, A) {
|
|
4674
4674
|
return !E.has(A);
|
|
4675
|
-
}), m(w.filter(function(
|
|
4675
|
+
}), m(w.filter(function(T, A) {
|
|
4676
4676
|
return !E.has(A);
|
|
4677
4677
|
})));
|
|
4678
4678
|
},
|
|
@@ -4683,7 +4683,7 @@ var List = function(t) {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
4685
|
}, C = _ || [];
|
|
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(
|
|
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(O, k) {
|
|
4687
4687
|
var w = c.keys[k];
|
|
4688
4688
|
return w === void 0 && (c.keys[k] = c.id, w = c.keys[k], c.id += 1), {
|
|
4689
4689
|
name: k,
|
|
@@ -5258,24 +5258,24 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
5258
5258
|
children: o
|
|
5259
5259
|
});
|
|
5260
5260
|
}, 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, v = t.onValuesChange, y = t.onFieldsChange, _ = t.onFinish, m = t.onFinishFailed, g = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), x = React.useContext(FormContext), b = useForm(s), C = _slicedToArray(b, 1),
|
|
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, v = t.onValuesChange, y = t.onFieldsChange, _ = t.onFinish, m = t.onFinishFailed, g = _objectWithoutProperties(t, ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"]), x = React.useContext(FormContext), b = useForm(s), C = _slicedToArray(b, 1), O = C[0], k = O.getInternalHooks(HOOK_MARK), w = k.useSubscribe, E = k.setInitialValues, T = k.setCallbacks, A = k.setValidateMessages, q = k.setPreserve;
|
|
5262
5262
|
React.useImperativeHandle(r, function() {
|
|
5263
|
-
return
|
|
5263
|
+
return O;
|
|
5264
5264
|
}), React.useEffect(function() {
|
|
5265
|
-
return x.registerForm(n,
|
|
5265
|
+
return x.registerForm(n, O), function() {
|
|
5266
5266
|
x.unregisterForm(n);
|
|
5267
5267
|
};
|
|
5268
|
-
}, [x,
|
|
5268
|
+
}, [x, O, n]), A(_objectSpread2$1(_objectSpread2$1({}, x.validateMessages), f)), T({
|
|
5269
5269
|
onValuesChange: v,
|
|
5270
|
-
onFieldsChange: function(
|
|
5271
|
-
if (x.triggerFormChange(n,
|
|
5270
|
+
onFieldsChange: function(Y) {
|
|
5271
|
+
if (x.triggerFormChange(n, Y), y) {
|
|
5272
5272
|
for (var H = arguments.length, K = new Array(H > 1 ? H - 1 : 0), U = 1; U < H; U++)
|
|
5273
5273
|
K[U - 1] = arguments[U];
|
|
5274
|
-
y.apply(void 0, [
|
|
5274
|
+
y.apply(void 0, [Y].concat(K));
|
|
5275
5275
|
}
|
|
5276
5276
|
},
|
|
5277
|
-
onFinish: function(
|
|
5278
|
-
x.triggerFormFinish(n,
|
|
5277
|
+
onFinish: function(Y) {
|
|
5278
|
+
x.triggerFormFinish(n, Y), _ && _(Y);
|
|
5279
5279
|
},
|
|
5280
5280
|
onFinishFailed: m
|
|
5281
5281
|
}), q(u);
|
|
@@ -5283,26 +5283,26 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
5283
5283
|
E(a, !$.current), $.current || ($.current = !0);
|
|
5284
5284
|
var D = l, j = typeof l == "function";
|
|
5285
5285
|
if (j) {
|
|
5286
|
-
var N =
|
|
5287
|
-
D = l(N,
|
|
5286
|
+
var N = O.getFieldsValue(!0);
|
|
5287
|
+
D = l(N, O);
|
|
5288
5288
|
}
|
|
5289
5289
|
w(!j);
|
|
5290
5290
|
var L = React.useRef();
|
|
5291
5291
|
React.useEffect(function() {
|
|
5292
|
-
isSimilar(L.current || [], o || []) ||
|
|
5293
|
-
}, [o,
|
|
5292
|
+
isSimilar(L.current || [], o || []) || O.setFields(o || []), L.current = o;
|
|
5293
|
+
}, [o, O]);
|
|
5294
5294
|
var I = React.useMemo(function() {
|
|
5295
|
-
return _objectSpread2$1(_objectSpread2$1({},
|
|
5295
|
+
return _objectSpread2$1(_objectSpread2$1({}, O), {}, {
|
|
5296
5296
|
validateTrigger: h
|
|
5297
5297
|
});
|
|
5298
|
-
}, [
|
|
5298
|
+
}, [O, h]), W = /* @__PURE__ */ jsx(Context.Provider, {
|
|
5299
5299
|
value: I,
|
|
5300
5300
|
children: D
|
|
5301
5301
|
});
|
|
5302
5302
|
return d === !1 ? W : /* @__PURE__ */ jsx(d, {
|
|
5303
5303
|
...g,
|
|
5304
|
-
onSubmit: function(
|
|
5305
|
-
|
|
5304
|
+
onSubmit: function(Y) {
|
|
5305
|
+
Y.preventDefault(), Y.stopPropagation(), O.submit();
|
|
5306
5306
|
},
|
|
5307
5307
|
children: W
|
|
5308
5308
|
});
|
|
@@ -5721,8 +5721,8 @@ function requireLocaleReceiver() {
|
|
|
5721
5721
|
return (0, o.default)(y, [{
|
|
5722
5722
|
key: "getLocale",
|
|
5723
5723
|
value: function() {
|
|
5724
|
-
var m = this.props, g = m.componentName, x = m.defaultLocale, b = x || c.default[g || "global"], C = this.context,
|
|
5725
|
-
return (0, n.default)((0, n.default)({}, typeof b == "function" ? b() : b),
|
|
5724
|
+
var m = this.props, g = m.componentName, x = m.defaultLocale, b = x || c.default[g || "global"], C = this.context, O = g && C ? C[g] : {};
|
|
5725
|
+
return (0, n.default)((0, n.default)({}, typeof b == "function" ? b() : b), O || {});
|
|
5726
5726
|
}
|
|
5727
5727
|
}, {
|
|
5728
5728
|
key: "getLocaleCode",
|
|
@@ -5860,11 +5860,11 @@ function requireEmpty() {
|
|
|
5860
5860
|
m.indexOf(x[b]) < 0 && Object.prototype.propertyIsEnumerable.call(_, x[b]) && (g[x[b]] = _[x[b]]);
|
|
5861
5861
|
return g;
|
|
5862
5862
|
}, p = /* @__PURE__ */ o.createElement(c.default, null), h = /* @__PURE__ */ o.createElement(d.default, null), v = function(m) {
|
|
5863
|
-
var g = m.className, x = m.prefixCls, b = m.image, C = b === void 0 ? p : b,
|
|
5863
|
+
var g = m.className, x = m.prefixCls, b = m.image, C = b === void 0 ? p : b, O = m.description, k = m.children, w = m.imageStyle, E = f(m, ["className", "prefixCls", "image", "description", "children", "imageStyle"]), T = o.useContext(u.ConfigContext), A = T.getPrefixCls, q = T.direction;
|
|
5864
5864
|
return /* @__PURE__ */ o.createElement(l.default, {
|
|
5865
5865
|
componentName: "Empty"
|
|
5866
5866
|
}, function($) {
|
|
5867
|
-
var D, j = A("empty", x), N = typeof
|
|
5867
|
+
var D, j = A("empty", x), N = typeof O < "u" ? O : $.description, L = typeof N == "string" ? N : "empty", I = null;
|
|
5868
5868
|
return typeof C == "string" ? I = /* @__PURE__ */ o.createElement("img", {
|
|
5869
5869
|
alt: L,
|
|
5870
5870
|
src: C
|
|
@@ -6108,7 +6108,7 @@ const useStepQueue = function(e, t) {
|
|
|
6108
6108
|
}, []), [o, a];
|
|
6109
6109
|
};
|
|
6110
6110
|
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, v = n.onLeavePrepare, y = n.onAppearStart, _ = n.onEnterStart, m = n.onLeaveStart, g = n.onAppearActive, x = n.onEnterActive, b = n.onLeaveActive, C = n.onAppearEnd,
|
|
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, v = n.onLeavePrepare, y = n.onAppearStart, _ = n.onEnterStart, m = n.onLeaveStart, g = n.onAppearActive, x = n.onEnterActive, b = n.onLeaveActive, C = n.onAppearEnd, O = n.onEnterEnd, k = n.onLeaveEnd, w = n.onVisibleChanged, E = useMountStatus(), T = _slicedToArray(E, 2), A = T[0], q = T[1], $ = useMountStatus(STATUS_NONE), D = _slicedToArray($, 2), j = D[0], N = D[1], L = useMountStatus(null), I = _slicedToArray(L, 2), W = I[0], z = I[1], Y = useRef(!1), H = useRef(null), K = useRef(!1), U = useRef(null);
|
|
6112
6112
|
function B() {
|
|
6113
6113
|
var te = r();
|
|
6114
6114
|
return te || U.current;
|
|
@@ -6118,7 +6118,7 @@ function useStatus(e, t, r, n) {
|
|
|
6118
6118
|
var oe = B();
|
|
6119
6119
|
if (!(te && !te.deadline && te.target !== oe)) {
|
|
6120
6120
|
var se;
|
|
6121
|
-
j === STATUS_APPEAR && S.current ? se = C == null ? void 0 : C(oe, te) : j === STATUS_ENTER && S.current ? se =
|
|
6121
|
+
j === STATUS_APPEAR && S.current ? se = C == null ? void 0 : C(oe, te) : j === STATUS_ENTER && S.current ? se = O == null ? void 0 : O(oe, te) : j === STATUS_LEAVE && S.current && (se = k == null ? void 0 : k(oe, te)), se !== !1 && !K.current && (N(STATUS_NONE), z(null));
|
|
6122
6122
|
}
|
|
6123
6123
|
}
|
|
6124
6124
|
var V = useDomMotionEvents(M), X = _slicedToArray(V, 1), Z = X[0], F = React.useMemo(function() {
|
|
@@ -6140,7 +6140,7 @@ function useStatus(e, t, r, n) {
|
|
|
6140
6140
|
}
|
|
6141
6141
|
if (ee in F) {
|
|
6142
6142
|
var se;
|
|
6143
|
-
|
|
6143
|
+
z(((se = F[ee]) === null || se === void 0 ? void 0 : se.call(F, B(), null)) || null);
|
|
6144
6144
|
}
|
|
6145
6145
|
return ee === STEP_ACTIVE && (Z(B()), d > 0 && (clearTimeout(H.current), H.current = setTimeout(function() {
|
|
6146
6146
|
M({
|
|
@@ -6150,8 +6150,8 @@ function useStatus(e, t, r, n) {
|
|
|
6150
6150
|
}), G = _slicedToArray(P, 2), Q = G[0], ee = G[1], J = isActive(ee);
|
|
6151
6151
|
S.current = J, useIsomorphicLayoutEffect(function() {
|
|
6152
6152
|
if (q(t), !!e) {
|
|
6153
|
-
var te =
|
|
6154
|
-
|
|
6153
|
+
var te = Y.current;
|
|
6154
|
+
Y.current = !0;
|
|
6155
6155
|
var oe;
|
|
6156
6156
|
!te && t && u && (oe = STATUS_APPEAR), te && t && o && (oe = STATUS_ENTER), (te && !t && c || !te && f && !t && c) && (oe = STATUS_LEAVE), oe && (N(oe), Q());
|
|
6157
6157
|
}
|
|
@@ -6197,9 +6197,9 @@ function genCSSMotion(e) {
|
|
|
6197
6197
|
return null;
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
6200
|
-
var x = useStatus(y, u, g, a), b = _slicedToArray(x, 4), C = b[0],
|
|
6200
|
+
var x = useStatus(y, u, g, a), b = _slicedToArray(x, 4), C = b[0], O = b[1], k = b[2], w = b[3], E = useRef(o);
|
|
6201
6201
|
E.current = o;
|
|
6202
|
-
var
|
|
6202
|
+
var T = React.useCallback(function(j) {
|
|
6203
6203
|
_.current = j, fillRef(E.current, j);
|
|
6204
6204
|
}, []), A, q = _objectSpread2$1(_objectSpread2$1({}, v), {}, {
|
|
6205
6205
|
visible: u
|
|
@@ -6207,19 +6207,19 @@ function genCSSMotion(e) {
|
|
|
6207
6207
|
if (!f)
|
|
6208
6208
|
A = null;
|
|
6209
6209
|
else if (C === STATUS_NONE || !r(a))
|
|
6210
|
-
w ? A = f(_objectSpread2$1({}, q),
|
|
6210
|
+
w ? A = f(_objectSpread2$1({}, q), T) : c ? d ? A = f(_objectSpread2$1(_objectSpread2$1({}, q), {}, {
|
|
6211
6211
|
style: {
|
|
6212
6212
|
display: "none"
|
|
6213
6213
|
}
|
|
6214
|
-
}),
|
|
6214
|
+
}), T) : A = null : A = f(_objectSpread2$1(_objectSpread2$1({}, q), {}, {
|
|
6215
6215
|
className: h
|
|
6216
|
-
}),
|
|
6216
|
+
}), T);
|
|
6217
6217
|
else {
|
|
6218
6218
|
var $, D;
|
|
6219
|
-
|
|
6219
|
+
O === STEP_PREPARE ? D = "prepare" : isActive(O) ? D = "active" : O === STEP_START && (D = "start"), A = f(_objectSpread2$1(_objectSpread2$1({}, q), {}, {
|
|
6220
6220
|
className: classnamesExports(getTransitionName$1(p, C), ($ = {}, _defineProperty$1($, getTransitionName$1(p, "".concat(C, "-").concat(D)), D), _defineProperty$1($, p, typeof p == "string"), $)),
|
|
6221
6221
|
style: k
|
|
6222
|
-
}),
|
|
6222
|
+
}), T);
|
|
6223
6223
|
}
|
|
6224
6224
|
return /* @__PURE__ */ jsx(DomWrapper, {
|
|
6225
6225
|
ref: m,
|
|
@@ -6505,8 +6505,8 @@ var Notification = /* @__PURE__ */ function(e) {
|
|
|
6505
6505
|
noticeKey: g || m,
|
|
6506
6506
|
updateMark: _,
|
|
6507
6507
|
onClose: function(C) {
|
|
6508
|
-
var
|
|
6509
|
-
a.remove(C), (
|
|
6508
|
+
var O;
|
|
6509
|
+
a.remove(C), (O = v.onClose) === null || O === void 0 || O.call(v);
|
|
6510
6510
|
},
|
|
6511
6511
|
onClick: v.onClick,
|
|
6512
6512
|
children: v.content
|
|
@@ -6809,15 +6809,15 @@ function requireNotice() {
|
|
|
6809
6809
|
}, {
|
|
6810
6810
|
key: "render",
|
|
6811
6811
|
value: function() {
|
|
6812
|
-
var y = this, _ = this.props, m = _.prefixCls, g = _.className, x = _.closable, b = _.closeIcon, C = _.style,
|
|
6812
|
+
var y = this, _ = this.props, m = _.prefixCls, g = _.className, x = _.closable, b = _.closeIcon, C = _.style, O = _.onClick, k = _.children, w = _.holder, E = "".concat(m, "-notice"), T = Object.keys(this.props).reduce(function(q, $) {
|
|
6813
6813
|
return ($.substr(0, 5) === "data-" || $.substr(0, 5) === "aria-" || $ === "role") && (q[$] = y.props[$]), q;
|
|
6814
6814
|
}, {}), A = u.createElement("div", Object.assign({
|
|
6815
6815
|
className: (0, c.default)(E, g, (0, r.default)({}, "".concat(E, "-closable"), x)),
|
|
6816
6816
|
style: C,
|
|
6817
6817
|
onMouseEnter: this.clearCloseTimer,
|
|
6818
6818
|
onMouseLeave: this.startCloseTimer,
|
|
6819
|
-
onClick:
|
|
6820
|
-
},
|
|
6819
|
+
onClick: O
|
|
6820
|
+
}, T), u.createElement("div", {
|
|
6821
6821
|
className: "".concat(E, "-content")
|
|
6822
6822
|
}, k), x ? u.createElement("a", {
|
|
6823
6823
|
tabIndex: 0,
|
|
@@ -6881,7 +6881,7 @@ function requireUseMessage() {
|
|
|
6881
6881
|
}
|
|
6882
6882
|
}, m = (0, s.default)(_), g = (0, a.default)(m, 2), x = g[0], b = g[1];
|
|
6883
6883
|
function C(k) {
|
|
6884
|
-
var w = k.prefixCls, E = v("message", w),
|
|
6884
|
+
var w = k.prefixCls, E = v("message", w), T = k.key || (0, l.getKeyThenIncreaseKey)(), A = new Promise(function($) {
|
|
6885
6885
|
var D = function() {
|
|
6886
6886
|
return typeof k.onClose == "function" && k.onClose(), $(!0);
|
|
6887
6887
|
};
|
|
@@ -6890,21 +6890,21 @@ function requireUseMessage() {
|
|
|
6890
6890
|
}), function(j) {
|
|
6891
6891
|
var N = j.prefixCls, L = j.instance;
|
|
6892
6892
|
y = L, x(f((0, n.default)((0, n.default)({}, k), {
|
|
6893
|
-
key:
|
|
6893
|
+
key: T,
|
|
6894
6894
|
onClose: D
|
|
6895
6895
|
}), N));
|
|
6896
6896
|
});
|
|
6897
6897
|
}), q = function() {
|
|
6898
|
-
y && y.removeNotice(
|
|
6898
|
+
y && y.removeNotice(T);
|
|
6899
6899
|
};
|
|
6900
6900
|
return q.then = function($, D) {
|
|
6901
6901
|
return A.then($, D);
|
|
6902
6902
|
}, q.promise = A, q;
|
|
6903
6903
|
}
|
|
6904
|
-
var
|
|
6905
|
-
return
|
|
6906
|
-
return (0, l.attachTypeApi)(
|
|
6907
|
-
}), [
|
|
6904
|
+
var O = o.useRef({});
|
|
6905
|
+
return O.current.open = C, ["success", "info", "warning", "error", "loading"].forEach(function(k) {
|
|
6906
|
+
return (0, l.attachTypeApi)(O.current, k);
|
|
6907
|
+
}), [O.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
|
|
6908
6908
|
key: "holder"
|
|
6909
6909
|
}, function(k) {
|
|
6910
6910
|
return v = k.getPrefixCls, b;
|
|
@@ -6921,45 +6921,45 @@ function requireMessage() {
|
|
|
6921
6921
|
Object.defineProperty(e, "__esModule", {
|
|
6922
6922
|
value: !0
|
|
6923
6923
|
}), e.getKeyThenIncreaseKey = k, 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()), v, y = 3, _, m = 1, g = "ant-message", x = "move-up", b, C,
|
|
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()), v, y = 3, _, m = 1, g = "ant-message", x = "move-up", b, C, O = !1;
|
|
6925
6925
|
function k() {
|
|
6926
6926
|
return m++;
|
|
6927
6927
|
}
|
|
6928
6928
|
function w(I) {
|
|
6929
|
-
I.top !== void 0 && (_ = I.top, v = null), I.duration !== void 0 && (y = I.duration), I.prefixCls !== void 0 && (g = I.prefixCls), I.getContainer !== void 0 && (b = I.getContainer), I.transitionName !== void 0 && (x = I.transitionName, v = null), I.maxCount !== void 0 && (C = I.maxCount, v = null), I.rtl !== void 0 && (
|
|
6929
|
+
I.top !== void 0 && (_ = I.top, v = null), I.duration !== void 0 && (y = I.duration), I.prefixCls !== void 0 && (g = I.prefixCls), I.getContainer !== void 0 && (b = I.getContainer), I.transitionName !== void 0 && (x = I.transitionName, v = null), I.maxCount !== void 0 && (C = I.maxCount, v = null), I.rtl !== void 0 && (O = I.rtl);
|
|
6930
6930
|
}
|
|
6931
6931
|
function E(I, W) {
|
|
6932
|
-
var
|
|
6932
|
+
var z = I.prefixCls || g;
|
|
6933
6933
|
if (v) {
|
|
6934
6934
|
W({
|
|
6935
|
-
prefixCls:
|
|
6935
|
+
prefixCls: z,
|
|
6936
6936
|
instance: v
|
|
6937
6937
|
});
|
|
6938
6938
|
return;
|
|
6939
6939
|
}
|
|
6940
6940
|
u.default.newInstance({
|
|
6941
|
-
prefixCls:
|
|
6941
|
+
prefixCls: z,
|
|
6942
6942
|
transitionName: x,
|
|
6943
6943
|
style: {
|
|
6944
6944
|
top: _
|
|
6945
6945
|
},
|
|
6946
6946
|
getContainer: b,
|
|
6947
6947
|
maxCount: C
|
|
6948
|
-
}, function(
|
|
6948
|
+
}, function(Y) {
|
|
6949
6949
|
if (v) {
|
|
6950
6950
|
W({
|
|
6951
|
-
prefixCls:
|
|
6951
|
+
prefixCls: z,
|
|
6952
6952
|
instance: v
|
|
6953
6953
|
});
|
|
6954
6954
|
return;
|
|
6955
6955
|
}
|
|
6956
|
-
v =
|
|
6957
|
-
prefixCls:
|
|
6958
|
-
instance:
|
|
6956
|
+
v = Y, W({
|
|
6957
|
+
prefixCls: z,
|
|
6958
|
+
instance: Y
|
|
6959
6959
|
});
|
|
6960
6960
|
});
|
|
6961
6961
|
}
|
|
6962
|
-
var
|
|
6962
|
+
var T = {
|
|
6963
6963
|
info: p.default,
|
|
6964
6964
|
success: f.default,
|
|
6965
6965
|
error: d.default,
|
|
@@ -6967,10 +6967,10 @@ function requireMessage() {
|
|
|
6967
6967
|
loading: l.default
|
|
6968
6968
|
};
|
|
6969
6969
|
function A(I, W) {
|
|
6970
|
-
var
|
|
6970
|
+
var z, Y = I.duration !== void 0 ? I.duration : y, H = T[I.type], K = (0, s.default)("".concat(W, "-custom-content"), (z = {}, (0, a.default)(z, "".concat(W, "-").concat(I.type), I.type), (0, a.default)(z, "".concat(W, "-rtl"), O === !0), z));
|
|
6971
6971
|
return {
|
|
6972
6972
|
key: I.key,
|
|
6973
|
-
duration:
|
|
6973
|
+
duration: Y,
|
|
6974
6974
|
style: I.style || {},
|
|
6975
6975
|
className: I.className,
|
|
6976
6976
|
content: /* @__PURE__ */ o.createElement("div", {
|
|
@@ -6981,7 +6981,7 @@ function requireMessage() {
|
|
|
6981
6981
|
};
|
|
6982
6982
|
}
|
|
6983
6983
|
function q(I) {
|
|
6984
|
-
var W = I.key || m++,
|
|
6984
|
+
var W = I.key || m++, z = new Promise(function(H) {
|
|
6985
6985
|
var K = function() {
|
|
6986
6986
|
return typeof I.onClose == "function" && I.onClose(), H(!0);
|
|
6987
6987
|
};
|
|
@@ -6992,12 +6992,12 @@ function requireMessage() {
|
|
|
6992
6992
|
onClose: K
|
|
6993
6993
|
}), B));
|
|
6994
6994
|
});
|
|
6995
|
-
}),
|
|
6995
|
+
}), Y = function() {
|
|
6996
6996
|
v && v.removeNotice(W);
|
|
6997
6997
|
};
|
|
6998
|
-
return
|
|
6999
|
-
return
|
|
7000
|
-
},
|
|
6998
|
+
return Y.then = function(H, K) {
|
|
6999
|
+
return z.then(H, K);
|
|
7000
|
+
}, Y.promise = z, Y;
|
|
7001
7001
|
}
|
|
7002
7002
|
function $(I) {
|
|
7003
7003
|
return Object.prototype.toString.call(I) === "[object Object]" && !!I.content;
|
|
@@ -7008,8 +7008,8 @@ function requireMessage() {
|
|
|
7008
7008
|
destroy: function(W) {
|
|
7009
7009
|
if (v)
|
|
7010
7010
|
if (W) {
|
|
7011
|
-
var
|
|
7012
|
-
|
|
7011
|
+
var z = v, Y = z.removeNotice;
|
|
7012
|
+
Y(W);
|
|
7013
7013
|
} else {
|
|
7014
7014
|
var H = v, K = H.destroy;
|
|
7015
7015
|
K(), v = null;
|
|
@@ -7017,12 +7017,12 @@ function requireMessage() {
|
|
|
7017
7017
|
}
|
|
7018
7018
|
};
|
|
7019
7019
|
function j(I, W) {
|
|
7020
|
-
I[W] = function(
|
|
7021
|
-
return $(
|
|
7020
|
+
I[W] = function(z, Y, H) {
|
|
7021
|
+
return $(z) ? I.open((0, n.default)((0, n.default)({}, z), {
|
|
7022
7022
|
type: W
|
|
7023
|
-
})) : (typeof
|
|
7024
|
-
content:
|
|
7025
|
-
duration:
|
|
7023
|
+
})) : (typeof Y == "function" && (H = Y, Y = void 0), I.open({
|
|
7024
|
+
content: z,
|
|
7025
|
+
duration: Y,
|
|
7026
7026
|
type: W,
|
|
7027
7027
|
onClose: H
|
|
7028
7028
|
}));
|
|
@@ -7259,26 +7259,26 @@ function requireUseNotification() {
|
|
|
7259
7259
|
v == null || v.component.add(k, w);
|
|
7260
7260
|
}
|
|
7261
7261
|
}, _ = (0, s.default)(y), m = (0, a.default)(_, 2), g = m[0], x = m[1];
|
|
7262
|
-
function b(
|
|
7263
|
-
var k =
|
|
7264
|
-
c((0, n.default)((0, n.default)({},
|
|
7262
|
+
function b(O) {
|
|
7263
|
+
var k = O.prefixCls, w = h("notification", k);
|
|
7264
|
+
c((0, n.default)((0, n.default)({}, O), {
|
|
7265
7265
|
prefixCls: w
|
|
7266
7266
|
}), function(E) {
|
|
7267
|
-
var
|
|
7268
|
-
v = A, g(d(
|
|
7267
|
+
var T = E.prefixCls, A = E.instance;
|
|
7268
|
+
v = A, g(d(O, T));
|
|
7269
7269
|
});
|
|
7270
7270
|
}
|
|
7271
7271
|
var C = o.useRef({});
|
|
7272
|
-
return C.current.open = b, ["success", "info", "warning", "error"].forEach(function(
|
|
7273
|
-
C.current[
|
|
7272
|
+
return C.current.open = b, ["success", "info", "warning", "error"].forEach(function(O) {
|
|
7273
|
+
C.current[O] = function(k) {
|
|
7274
7274
|
return C.current.open((0, n.default)((0, n.default)({}, k), {
|
|
7275
|
-
type:
|
|
7275
|
+
type: O
|
|
7276
7276
|
}));
|
|
7277
7277
|
};
|
|
7278
7278
|
}), [C.current, /* @__PURE__ */ o.createElement(u.ConfigConsumer, {
|
|
7279
7279
|
key: "holder"
|
|
7280
|
-
}, function(
|
|
7281
|
-
return h =
|
|
7280
|
+
}, function(O) {
|
|
7281
|
+
return h = O.getPrefixCls, x;
|
|
7282
7282
|
})];
|
|
7283
7283
|
};
|
|
7284
7284
|
return f;
|
|
@@ -7292,23 +7292,23 @@ function requireNotification() {
|
|
|
7292
7292
|
Object.defineProperty(e, "__esModule", {
|
|
7293
7293
|
value: !0
|
|
7294
7294
|
}), e.default = e.getInstance = void 0;
|
|
7295
|
-
var n = r(requireRegenerator()), a = r(require_extends()), o = r(requireDefineProperty()), s = t(React__default), u = r(require$$6$1), l = r(requireCloseOutlined()), c = r(requireClassnames()), d = r(requireCheckCircleOutlined()), f = r(requireCloseCircleOutlined()), p = r(requireExclamationCircleOutlined()), h = r(requireInfoCircleOutlined()), v = r(requireUseNotification()), y = function(I, W,
|
|
7295
|
+
var n = r(requireRegenerator()), a = r(require_extends()), o = r(requireDefineProperty()), s = t(React__default), u = r(require$$6$1), l = r(requireCloseOutlined()), c = r(requireClassnames()), d = r(requireCheckCircleOutlined()), f = r(requireCloseCircleOutlined()), p = r(requireExclamationCircleOutlined()), h = r(requireInfoCircleOutlined()), v = r(requireUseNotification()), y = function(I, W, z, Y) {
|
|
7296
7296
|
function H(K) {
|
|
7297
|
-
return K instanceof
|
|
7297
|
+
return K instanceof z ? K : new z(function(U) {
|
|
7298
7298
|
U(K);
|
|
7299
7299
|
});
|
|
7300
7300
|
}
|
|
7301
|
-
return new (
|
|
7301
|
+
return new (z || (z = Promise))(function(K, U) {
|
|
7302
7302
|
function B(V) {
|
|
7303
7303
|
try {
|
|
7304
|
-
M(
|
|
7304
|
+
M(Y.next(V));
|
|
7305
7305
|
} catch (X) {
|
|
7306
7306
|
U(X);
|
|
7307
7307
|
}
|
|
7308
7308
|
}
|
|
7309
7309
|
function S(V) {
|
|
7310
7310
|
try {
|
|
7311
|
-
M(
|
|
7311
|
+
M(Y.throw(V));
|
|
7312
7312
|
} catch (X) {
|
|
7313
7313
|
U(X);
|
|
7314
7314
|
}
|
|
@@ -7316,49 +7316,49 @@ function requireNotification() {
|
|
|
7316
7316
|
function M(V) {
|
|
7317
7317
|
V.done ? K(V.value) : H(V.value).then(B, S);
|
|
7318
7318
|
}
|
|
7319
|
-
M((
|
|
7319
|
+
M((Y = Y.apply(I, W || [])).next());
|
|
7320
7320
|
});
|
|
7321
|
-
}, _ = {}, m = 4.5, g = 24, x = 24, b = "ant-notification", C = "topRight",
|
|
7321
|
+
}, _ = {}, m = 4.5, g = 24, x = 24, b = "ant-notification", C = "topRight", O, k, w = !1;
|
|
7322
7322
|
function E(I) {
|
|
7323
|
-
var W = I.duration,
|
|
7324
|
-
B !== void 0 && (b = B), W !== void 0 && (m = W),
|
|
7323
|
+
var W = I.duration, z = I.placement, Y = I.bottom, H = I.top, K = I.getContainer, U = I.closeIcon, B = I.prefixCls;
|
|
7324
|
+
B !== void 0 && (b = B), W !== void 0 && (m = W), z !== void 0 ? C = z : I.rtl && (C = "topLeft"), Y !== void 0 && (x = Y), H !== void 0 && (g = H), K !== void 0 && (O = K), U !== void 0 && (k = U), I.rtl !== void 0 && (w = I.rtl);
|
|
7325
7325
|
}
|
|
7326
|
-
function
|
|
7327
|
-
var W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g,
|
|
7326
|
+
function T(I) {
|
|
7327
|
+
var W = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g, z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : x, Y;
|
|
7328
7328
|
switch (I) {
|
|
7329
7329
|
case "topLeft":
|
|
7330
|
-
|
|
7330
|
+
Y = {
|
|
7331
7331
|
left: 0,
|
|
7332
7332
|
top: W,
|
|
7333
7333
|
bottom: "auto"
|
|
7334
7334
|
};
|
|
7335
7335
|
break;
|
|
7336
7336
|
case "topRight":
|
|
7337
|
-
|
|
7337
|
+
Y = {
|
|
7338
7338
|
right: 0,
|
|
7339
7339
|
top: W,
|
|
7340
7340
|
bottom: "auto"
|
|
7341
7341
|
};
|
|
7342
7342
|
break;
|
|
7343
7343
|
case "bottomLeft":
|
|
7344
|
-
|
|
7344
|
+
Y = {
|
|
7345
7345
|
left: 0,
|
|
7346
7346
|
top: "auto",
|
|
7347
|
-
bottom:
|
|
7347
|
+
bottom: z
|
|
7348
7348
|
};
|
|
7349
7349
|
break;
|
|
7350
7350
|
default:
|
|
7351
|
-
|
|
7351
|
+
Y = {
|
|
7352
7352
|
right: 0,
|
|
7353
7353
|
top: "auto",
|
|
7354
|
-
bottom:
|
|
7354
|
+
bottom: z
|
|
7355
7355
|
};
|
|
7356
7356
|
break;
|
|
7357
7357
|
}
|
|
7358
|
-
return
|
|
7358
|
+
return Y;
|
|
7359
7359
|
}
|
|
7360
7360
|
function A(I, W) {
|
|
7361
|
-
var
|
|
7361
|
+
var z = I.placement, Y = z === void 0 ? C : z, H = I.top, K = I.bottom, U = I.getContainer, B = U === void 0 ? O : U, S = I.closeIcon, M = S === void 0 ? k : S, V = I.prefixCls || b, X = "".concat(V, "-notice"), Z = "".concat(V, "-").concat(Y), F = _[Z];
|
|
7362
7362
|
if (F) {
|
|
7363
7363
|
Promise.resolve(F).then(function(Q) {
|
|
7364
7364
|
W({
|
|
@@ -7372,12 +7372,12 @@ function requireNotification() {
|
|
|
7372
7372
|
className: "".concat(V, "-close-x")
|
|
7373
7373
|
}, M || /* @__PURE__ */ s.createElement(l.default, {
|
|
7374
7374
|
className: "".concat(V, "-close-icon")
|
|
7375
|
-
})), G = (0, c.default)("".concat(V, "-").concat(
|
|
7375
|
+
})), G = (0, c.default)("".concat(V, "-").concat(Y), (0, o.default)({}, "".concat(V, "-rtl"), w === !0));
|
|
7376
7376
|
_[Z] = new Promise(function(Q) {
|
|
7377
7377
|
u.default.newInstance({
|
|
7378
7378
|
prefixCls: V,
|
|
7379
7379
|
className: G,
|
|
7380
|
-
style:
|
|
7380
|
+
style: T(Y, H, K),
|
|
7381
7381
|
getContainer: B,
|
|
7382
7382
|
closeIcon: P
|
|
7383
7383
|
}, function(ee) {
|
|
@@ -7395,27 +7395,27 @@ function requireNotification() {
|
|
|
7395
7395
|
warning: p.default
|
|
7396
7396
|
};
|
|
7397
7397
|
function $(I, W) {
|
|
7398
|
-
var
|
|
7399
|
-
I.icon ?
|
|
7398
|
+
var z = I.duration === void 0 ? m : I.duration, Y = null;
|
|
7399
|
+
I.icon ? Y = /* @__PURE__ */ s.createElement("span", {
|
|
7400
7400
|
className: "".concat(W, "-icon")
|
|
7401
|
-
}, I.icon) : I.type && (
|
|
7401
|
+
}, I.icon) : I.type && (Y = /* @__PURE__ */ s.createElement(q[I.type] || null, {
|
|
7402
7402
|
className: "".concat(W, "-icon ").concat(W, "-icon-").concat(I.type)
|
|
7403
7403
|
}));
|
|
7404
|
-
var H = !I.description &&
|
|
7404
|
+
var H = !I.description && Y ? /* @__PURE__ */ s.createElement("span", {
|
|
7405
7405
|
className: "".concat(W, "-message-single-line-auto-margin")
|
|
7406
7406
|
}) : null;
|
|
7407
7407
|
return {
|
|
7408
7408
|
content: /* @__PURE__ */ s.createElement("div", {
|
|
7409
|
-
className:
|
|
7409
|
+
className: Y ? "".concat(W, "-with-icon") : "",
|
|
7410
7410
|
role: "alert"
|
|
7411
|
-
},
|
|
7411
|
+
}, Y, /* @__PURE__ */ s.createElement("div", {
|
|
7412
7412
|
className: "".concat(W, "-message")
|
|
7413
7413
|
}, H, I.message), /* @__PURE__ */ s.createElement("div", {
|
|
7414
7414
|
className: "".concat(W, "-description")
|
|
7415
7415
|
}, I.description), I.btn ? /* @__PURE__ */ s.createElement("span", {
|
|
7416
7416
|
className: "".concat(W, "-btn")
|
|
7417
7417
|
}, I.btn) : null),
|
|
7418
|
-
duration:
|
|
7418
|
+
duration: z,
|
|
7419
7419
|
closable: !0,
|
|
7420
7420
|
onClose: I.onClose,
|
|
7421
7421
|
onClick: I.onClick,
|
|
@@ -7426,24 +7426,24 @@ function requireNotification() {
|
|
|
7426
7426
|
}
|
|
7427
7427
|
function D(I) {
|
|
7428
7428
|
A(I, function(W) {
|
|
7429
|
-
var
|
|
7430
|
-
|
|
7429
|
+
var z = W.prefixCls, Y = W.instance;
|
|
7430
|
+
Y.notice($(I, z));
|
|
7431
7431
|
});
|
|
7432
7432
|
}
|
|
7433
7433
|
var j = {
|
|
7434
7434
|
open: D,
|
|
7435
7435
|
close: function(W) {
|
|
7436
|
-
Object.keys(_).forEach(function(
|
|
7437
|
-
return Promise.resolve(_[
|
|
7438
|
-
|
|
7436
|
+
Object.keys(_).forEach(function(z) {
|
|
7437
|
+
return Promise.resolve(_[z]).then(function(Y) {
|
|
7438
|
+
Y.removeNotice(W);
|
|
7439
7439
|
});
|
|
7440
7440
|
});
|
|
7441
7441
|
},
|
|
7442
7442
|
config: E,
|
|
7443
7443
|
destroy: function() {
|
|
7444
7444
|
Object.keys(_).forEach(function(W) {
|
|
7445
|
-
Promise.resolve(_[W]).then(function(
|
|
7446
|
-
|
|
7445
|
+
Promise.resolve(_[W]).then(function(z) {
|
|
7446
|
+
z.destroy();
|
|
7447
7447
|
}), delete _[W];
|
|
7448
7448
|
});
|
|
7449
7449
|
}
|
|
@@ -7456,7 +7456,7 @@ function requireNotification() {
|
|
|
7456
7456
|
};
|
|
7457
7457
|
}), j.warn = j.warning, j.useNotification = (0, v.default)(A, $);
|
|
7458
7458
|
var N = function(W) {
|
|
7459
|
-
return y(void 0, void 0, void 0, /* @__PURE__ */ n.default.mark(function
|
|
7459
|
+
return y(void 0, void 0, void 0, /* @__PURE__ */ n.default.mark(function z() {
|
|
7460
7460
|
return n.default.wrap(function(H) {
|
|
7461
7461
|
for (; ; )
|
|
7462
7462
|
switch (H.prev = H.next) {
|
|
@@ -7466,7 +7466,7 @@ function requireNotification() {
|
|
|
7466
7466
|
case "end":
|
|
7467
7467
|
return H.stop();
|
|
7468
7468
|
}
|
|
7469
|
-
},
|
|
7469
|
+
}, z);
|
|
7470
7470
|
}));
|
|
7471
7471
|
};
|
|
7472
7472
|
e.getInstance = N;
|
|
@@ -7494,14 +7494,14 @@ function requireConfigProvider() {
|
|
|
7494
7494
|
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()), v = ["getTargetContainer", "getPopupContainer", "rootPrefixCls", "getPrefixCls", "renderEmpty", "csp", "autoInsertSpaceInButton", "locale", "pageHeader"];
|
|
7495
7495
|
e.configConsumerProps = v;
|
|
7496
7496
|
var y = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "form"], _ = function(b) {
|
|
7497
|
-
var C = b.children,
|
|
7497
|
+
var C = b.children, O = b.csp, k = b.autoInsertSpaceInButton, w = b.form, E = b.locale, T = b.componentSize, A = b.direction, q = b.space, $ = b.virtual, D = b.dropdownMatchSelectWidth, j = b.legacyLocale, N = b.parentContext, L = b.iconPrefixCls, I = a.useCallback(function(U, B) {
|
|
7498
7498
|
var S = b.prefixCls;
|
|
7499
7499
|
if (B)
|
|
7500
7500
|
return B;
|
|
7501
7501
|
var M = S || N.getPrefixCls("");
|
|
7502
7502
|
return U ? "".concat(M, "-").concat(U) : M;
|
|
7503
7503
|
}, [N.getPrefixCls]), W = (0, n.default)((0, n.default)({}, N), {
|
|
7504
|
-
csp:
|
|
7504
|
+
csp: O,
|
|
7505
7505
|
autoInsertSpaceInButton: k,
|
|
7506
7506
|
locale: E || j,
|
|
7507
7507
|
direction: A,
|
|
@@ -7514,14 +7514,14 @@ function requireConfigProvider() {
|
|
|
7514
7514
|
var B = b[U];
|
|
7515
7515
|
B && (W[U] = B);
|
|
7516
7516
|
});
|
|
7517
|
-
var
|
|
7517
|
+
var z = (0, u.default)(function() {
|
|
7518
7518
|
return W;
|
|
7519
7519
|
}, W, function(U, B) {
|
|
7520
7520
|
var S = Object.keys(U), M = Object.keys(B);
|
|
7521
7521
|
return S.length !== M.length || S.some(function(V) {
|
|
7522
7522
|
return U[V] !== B[V];
|
|
7523
7523
|
});
|
|
7524
|
-
}),
|
|
7524
|
+
}), Y = a.useMemo(function() {
|
|
7525
7525
|
return {
|
|
7526
7526
|
prefixCls: L
|
|
7527
7527
|
};
|
|
@@ -7532,11 +7532,11 @@ function requireConfigProvider() {
|
|
|
7532
7532
|
locale: E,
|
|
7533
7533
|
_ANT_MARK__: l.ANT_MARK
|
|
7534
7534
|
}, H)), L && (H = /* @__PURE__ */ a.createElement(o.default.Provider, {
|
|
7535
|
-
value: z
|
|
7536
|
-
}, H)), O && (H = /* @__PURE__ */ a.createElement(f.SizeContextProvider, {
|
|
7537
|
-
size: O
|
|
7538
|
-
}, H)), /* @__PURE__ */ a.createElement(d.ConfigContext.Provider, {
|
|
7539
7535
|
value: Y
|
|
7536
|
+
}, H)), T && (H = /* @__PURE__ */ a.createElement(f.SizeContextProvider, {
|
|
7537
|
+
size: T
|
|
7538
|
+
}, H)), /* @__PURE__ */ a.createElement(d.ConfigContext.Provider, {
|
|
7539
|
+
value: z
|
|
7540
7540
|
}, H);
|
|
7541
7541
|
}, m = function(b) {
|
|
7542
7542
|
return a.useEffect(function() {
|
|
@@ -7545,7 +7545,7 @@ function requireConfigProvider() {
|
|
|
7545
7545
|
}), h.default.config({
|
|
7546
7546
|
rtl: b.direction === "rtl"
|
|
7547
7547
|
}));
|
|
7548
|
-
}, [b.direction]), /* @__PURE__ */ a.createElement(c.default, null, function(C,
|
|
7548
|
+
}, [b.direction]), /* @__PURE__ */ a.createElement(c.default, null, function(C, O, k) {
|
|
7549
7549
|
return /* @__PURE__ */ a.createElement(d.ConfigConsumer, null, function(w) {
|
|
7550
7550
|
return /* @__PURE__ */ a.createElement(_, (0, n.default)({
|
|
7551
7551
|
parentContext: w,
|
|
@@ -7567,71 +7567,71 @@ function requireInput() {
|
|
|
7567
7567
|
value: !0
|
|
7568
7568
|
}), e.fixControlledValue = _, e.resolveOnChange = m, e.getInputClassName = g, e.triggerFocus = x, e.default = void 0;
|
|
7569
7569
|
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(), v = r(requireSizeContext()), y = r(requireDevWarning());
|
|
7570
|
-
function _(
|
|
7571
|
-
return typeof
|
|
7570
|
+
function _(O) {
|
|
7571
|
+
return typeof O > "u" || O === null ? "" : O;
|
|
7572
7572
|
}
|
|
7573
|
-
function m(
|
|
7573
|
+
function m(O, k, w) {
|
|
7574
7574
|
if (w) {
|
|
7575
7575
|
var E = k;
|
|
7576
7576
|
if (k.type === "click") {
|
|
7577
|
-
E = Object.create(k), E.target =
|
|
7578
|
-
var
|
|
7579
|
-
|
|
7577
|
+
E = Object.create(k), E.target = O, E.currentTarget = O;
|
|
7578
|
+
var T = O.value;
|
|
7579
|
+
O.value = "", w(E), O.value = T;
|
|
7580
7580
|
return;
|
|
7581
7581
|
}
|
|
7582
7582
|
w(E);
|
|
7583
7583
|
}
|
|
7584
7584
|
}
|
|
7585
|
-
function g(
|
|
7585
|
+
function g(O, k, w, E, T) {
|
|
7586
7586
|
var A;
|
|
7587
|
-
return (0, d.default)(
|
|
7587
|
+
return (0, d.default)(O, (A = {}, (0, l.default)(A, "".concat(O, "-sm"), w === "small"), (0, l.default)(A, "".concat(O, "-lg"), w === "large"), (0, l.default)(A, "".concat(O, "-disabled"), E), (0, l.default)(A, "".concat(O, "-rtl"), T === "rtl"), (0, l.default)(A, "".concat(O, "-borderless"), !k), A));
|
|
7588
7588
|
}
|
|
7589
|
-
function x(
|
|
7590
|
-
if (!!
|
|
7591
|
-
|
|
7589
|
+
function x(O, k) {
|
|
7590
|
+
if (!!O) {
|
|
7591
|
+
O.focus(k);
|
|
7592
7592
|
var w = k || {}, E = w.cursor;
|
|
7593
7593
|
if (E) {
|
|
7594
|
-
var
|
|
7594
|
+
var T = O.value.length;
|
|
7595
7595
|
switch (E) {
|
|
7596
7596
|
case "start":
|
|
7597
|
-
|
|
7597
|
+
O.setSelectionRange(0, 0);
|
|
7598
7598
|
break;
|
|
7599
7599
|
case "end":
|
|
7600
|
-
|
|
7600
|
+
O.setSelectionRange(T, T);
|
|
7601
7601
|
break;
|
|
7602
7602
|
default:
|
|
7603
|
-
|
|
7603
|
+
O.setSelectionRange(0, T);
|
|
7604
7604
|
}
|
|
7605
7605
|
}
|
|
7606
7606
|
}
|
|
7607
7607
|
}
|
|
7608
|
-
var b = /* @__PURE__ */ function(
|
|
7609
|
-
(0, s.default)(w,
|
|
7608
|
+
var b = /* @__PURE__ */ function(O) {
|
|
7609
|
+
(0, s.default)(w, O);
|
|
7610
7610
|
var k = (0, u.default)(w);
|
|
7611
7611
|
function w(E) {
|
|
7612
|
-
var
|
|
7613
|
-
(0, a.default)(this, w),
|
|
7614
|
-
x(
|
|
7615
|
-
},
|
|
7616
|
-
|
|
7617
|
-
},
|
|
7618
|
-
|
|
7619
|
-
},
|
|
7620
|
-
var $ =
|
|
7621
|
-
|
|
7612
|
+
var T;
|
|
7613
|
+
(0, a.default)(this, w), T = k.call(this, E), T.direction = "ltr", T.focus = function(q) {
|
|
7614
|
+
x(T.input, q);
|
|
7615
|
+
}, T.saveClearableInput = function(q) {
|
|
7616
|
+
T.clearableInput = q;
|
|
7617
|
+
}, T.saveInput = function(q) {
|
|
7618
|
+
T.input = q;
|
|
7619
|
+
}, T.onFocus = function(q) {
|
|
7620
|
+
var $ = T.props.onFocus;
|
|
7621
|
+
T.setState({
|
|
7622
7622
|
focused: !0
|
|
7623
|
-
},
|
|
7624
|
-
},
|
|
7625
|
-
var $ =
|
|
7626
|
-
|
|
7623
|
+
}, T.clearPasswordValueAttribute), $ && $(q);
|
|
7624
|
+
}, T.onBlur = function(q) {
|
|
7625
|
+
var $ = T.props.onBlur;
|
|
7626
|
+
T.setState({
|
|
7627
7627
|
focused: !1
|
|
7628
|
-
},
|
|
7629
|
-
},
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
}), m(
|
|
7633
|
-
},
|
|
7634
|
-
var j = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, N =
|
|
7628
|
+
}, T.clearPasswordValueAttribute), $ && $(q);
|
|
7629
|
+
}, T.handleReset = function(q) {
|
|
7630
|
+
T.setValue("", function() {
|
|
7631
|
+
T.focus();
|
|
7632
|
+
}), m(T.input, q, T.props.onChange);
|
|
7633
|
+
}, T.renderInput = function(q, $, D) {
|
|
7634
|
+
var j = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, N = T.props, L = N.className, I = N.addonBefore, W = N.addonAfter, z = N.size, Y = N.disabled, H = (0, f.default)(T.props, [
|
|
7635
7635
|
"prefixCls",
|
|
7636
7636
|
"onPressEnter",
|
|
7637
7637
|
"addonBefore",
|
|
@@ -7647,47 +7647,47 @@ function requireInput() {
|
|
|
7647
7647
|
return /* @__PURE__ */ c.createElement("input", (0, n.default)({
|
|
7648
7648
|
autoComplete: j.autoComplete
|
|
7649
7649
|
}, H, {
|
|
7650
|
-
onChange:
|
|
7651
|
-
onFocus:
|
|
7652
|
-
onBlur:
|
|
7653
|
-
onKeyDown:
|
|
7654
|
-
className: (0, d.default)(g(q, D,
|
|
7655
|
-
ref:
|
|
7650
|
+
onChange: T.handleChange,
|
|
7651
|
+
onFocus: T.onFocus,
|
|
7652
|
+
onBlur: T.onBlur,
|
|
7653
|
+
onKeyDown: T.handleKeyDown,
|
|
7654
|
+
className: (0, d.default)(g(q, D, z || $, Y, T.direction), (0, l.default)({}, L, L && !I && !W)),
|
|
7655
|
+
ref: T.saveInput
|
|
7656
7656
|
}));
|
|
7657
|
-
},
|
|
7658
|
-
|
|
7659
|
-
|
|
7657
|
+
}, T.clearPasswordValueAttribute = function() {
|
|
7658
|
+
T.removePasswordTimeout = setTimeout(function() {
|
|
7659
|
+
T.input && T.input.getAttribute("type") === "password" && T.input.hasAttribute("value") && T.input.removeAttribute("value");
|
|
7660
7660
|
});
|
|
7661
|
-
},
|
|
7662
|
-
|
|
7663
|
-
},
|
|
7664
|
-
var $ =
|
|
7661
|
+
}, T.handleChange = function(q) {
|
|
7662
|
+
T.setValue(q.target.value, T.clearPasswordValueAttribute), m(T.input, q, T.props.onChange);
|
|
7663
|
+
}, T.handleKeyDown = function(q) {
|
|
7664
|
+
var $ = T.props, D = $.onPressEnter, j = $.onKeyDown;
|
|
7665
7665
|
q.keyCode === 13 && D && D(q), j && j(q);
|
|
7666
|
-
},
|
|
7667
|
-
var $ = q.getPrefixCls, D = q.direction, j = q.input, N =
|
|
7668
|
-
return
|
|
7666
|
+
}, T.renderComponent = function(q) {
|
|
7667
|
+
var $ = q.getPrefixCls, D = q.direction, j = q.input, N = T.state, L = N.value, I = N.focused, W = T.props, z = W.prefixCls, Y = W.bordered, H = Y === void 0 ? !0 : Y, K = $("input", z);
|
|
7668
|
+
return T.direction = D, /* @__PURE__ */ c.createElement(v.default.Consumer, null, function(U) {
|
|
7669
7669
|
return /* @__PURE__ */ c.createElement(p.default, (0, n.default)({
|
|
7670
7670
|
size: U
|
|
7671
|
-
},
|
|
7671
|
+
}, T.props, {
|
|
7672
7672
|
prefixCls: K,
|
|
7673
7673
|
inputType: "input",
|
|
7674
7674
|
value: _(L),
|
|
7675
|
-
element:
|
|
7676
|
-
handleReset:
|
|
7677
|
-
ref:
|
|
7675
|
+
element: T.renderInput(K, U, H, j),
|
|
7676
|
+
handleReset: T.handleReset,
|
|
7677
|
+
ref: T.saveClearableInput,
|
|
7678
7678
|
direction: D,
|
|
7679
7679
|
focused: I,
|
|
7680
|
-
triggerFocus:
|
|
7680
|
+
triggerFocus: T.focus,
|
|
7681
7681
|
bordered: H
|
|
7682
7682
|
}));
|
|
7683
7683
|
});
|
|
7684
7684
|
};
|
|
7685
7685
|
var A = typeof E.value > "u" ? E.defaultValue : E.value;
|
|
7686
|
-
return
|
|
7686
|
+
return T.state = {
|
|
7687
7687
|
value: A,
|
|
7688
7688
|
focused: !1,
|
|
7689
7689
|
prevValue: E.value
|
|
7690
|
-
},
|
|
7690
|
+
}, T;
|
|
7691
7691
|
}
|
|
7692
7692
|
return (0, o.default)(w, [{
|
|
7693
7693
|
key: "componentDidMount",
|
|
@@ -7700,8 +7700,8 @@ function requireInput() {
|
|
|
7700
7700
|
}
|
|
7701
7701
|
}, {
|
|
7702
7702
|
key: "getSnapshotBeforeUpdate",
|
|
7703
|
-
value: function(
|
|
7704
|
-
return (0, p.hasPrefixSuffix)(
|
|
7703
|
+
value: function(T) {
|
|
7704
|
+
return (0, p.hasPrefixSuffix)(T) !== (0, p.hasPrefixSuffix)(this.props) && (0, y.default)(this.input !== document.activeElement, "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), null;
|
|
7705
7705
|
}
|
|
7706
7706
|
}, {
|
|
7707
7707
|
key: "componentWillUnmount",
|
|
@@ -7715,8 +7715,8 @@ function requireInput() {
|
|
|
7715
7715
|
}
|
|
7716
7716
|
}, {
|
|
7717
7717
|
key: "setSelectionRange",
|
|
7718
|
-
value: function(
|
|
7719
|
-
this.input.setSelectionRange(
|
|
7718
|
+
value: function(T, A, q) {
|
|
7719
|
+
this.input.setSelectionRange(T, A, q);
|
|
7720
7720
|
}
|
|
7721
7721
|
}, {
|
|
7722
7722
|
key: "select",
|
|
@@ -7725,9 +7725,9 @@ function requireInput() {
|
|
|
7725
7725
|
}
|
|
7726
7726
|
}, {
|
|
7727
7727
|
key: "setValue",
|
|
7728
|
-
value: function(
|
|
7728
|
+
value: function(T, A) {
|
|
7729
7729
|
this.props.value === void 0 ? this.setState({
|
|
7730
|
-
value:
|
|
7730
|
+
value: T
|
|
7731
7731
|
}, A) : A == null || A();
|
|
7732
7732
|
}
|
|
7733
7733
|
}, {
|
|
@@ -7737,11 +7737,11 @@ function requireInput() {
|
|
|
7737
7737
|
}
|
|
7738
7738
|
}], [{
|
|
7739
7739
|
key: "getDerivedStateFromProps",
|
|
7740
|
-
value: function(
|
|
7740
|
+
value: function(T, A) {
|
|
7741
7741
|
var q = A.prevValue, $ = {
|
|
7742
|
-
prevValue:
|
|
7742
|
+
prevValue: T.value
|
|
7743
7743
|
};
|
|
7744
|
-
return (
|
|
7744
|
+
return (T.value !== void 0 || q !== T.value) && ($.value = T.value), $;
|
|
7745
7745
|
}
|
|
7746
7746
|
}]), w;
|
|
7747
7747
|
}(c.Component);
|
|
@@ -7789,22 +7789,22 @@ function requireClearableLabeledInput() {
|
|
|
7789
7789
|
(0, s.default)(C, x);
|
|
7790
7790
|
var b = (0, u.default)(C);
|
|
7791
7791
|
function C() {
|
|
7792
|
-
var
|
|
7793
|
-
return (0, a.default)(this, C),
|
|
7792
|
+
var O;
|
|
7793
|
+
return (0, a.default)(this, C), O = b.apply(this, arguments), O.containerRef = /* @__PURE__ */ l.createRef(), O.onInputMouseUp = function(k) {
|
|
7794
7794
|
var w;
|
|
7795
|
-
if (!((w =
|
|
7796
|
-
var E =
|
|
7795
|
+
if (!((w = O.containerRef.current) === null || w === void 0) && w.contains(k.target)) {
|
|
7796
|
+
var E = O.props.triggerFocus;
|
|
7797
7797
|
E == null || E();
|
|
7798
7798
|
}
|
|
7799
|
-
},
|
|
7799
|
+
}, O;
|
|
7800
7800
|
}
|
|
7801
7801
|
return (0, o.default)(C, [{
|
|
7802
7802
|
key: "renderClearIcon",
|
|
7803
7803
|
value: function(k) {
|
|
7804
|
-
var w = this.props, E = w.allowClear,
|
|
7804
|
+
var w = this.props, E = w.allowClear, T = w.value, A = w.disabled, q = w.readOnly, $ = w.handleReset;
|
|
7805
7805
|
if (!E)
|
|
7806
7806
|
return null;
|
|
7807
|
-
var D = !A && !q &&
|
|
7807
|
+
var D = !A && !q && T, j = "".concat(k, "-clear-icon");
|
|
7808
7808
|
return /* @__PURE__ */ l.createElement(d.default, {
|
|
7809
7809
|
onClick: $,
|
|
7810
7810
|
className: (0, c.default)((0, n.default)({}, "".concat(j, "-hidden"), !D), j),
|
|
@@ -7814,26 +7814,26 @@ function requireClearableLabeledInput() {
|
|
|
7814
7814
|
}, {
|
|
7815
7815
|
key: "renderSuffix",
|
|
7816
7816
|
value: function(k) {
|
|
7817
|
-
var w = this.props, E = w.suffix,
|
|
7818
|
-
return E ||
|
|
7817
|
+
var w = this.props, E = w.suffix, T = w.allowClear;
|
|
7818
|
+
return E || T ? /* @__PURE__ */ l.createElement("span", {
|
|
7819
7819
|
className: "".concat(k, "-suffix")
|
|
7820
7820
|
}, this.renderClearIcon(k), E) : null;
|
|
7821
7821
|
}
|
|
7822
7822
|
}, {
|
|
7823
7823
|
key: "renderLabeledIcon",
|
|
7824
7824
|
value: function(k, w) {
|
|
7825
|
-
var E,
|
|
7825
|
+
var E, T = this.props, A = T.focused, q = T.value, $ = T.prefix, D = T.className, j = T.size, N = T.suffix, L = T.disabled, I = T.allowClear, W = T.direction, z = T.style, Y = T.readOnly, H = T.bordered, K = this.renderSuffix(k);
|
|
7826
7826
|
if (!y(this.props))
|
|
7827
7827
|
return (0, h.cloneElement)(w, {
|
|
7828
7828
|
value: q
|
|
7829
7829
|
});
|
|
7830
7830
|
var U = $ ? /* @__PURE__ */ l.createElement("span", {
|
|
7831
7831
|
className: "".concat(k, "-prefix")
|
|
7832
|
-
}, $) : null, B = (0, c.default)("".concat(k, "-affix-wrapper"), (E = {}, (0, n.default)(E, "".concat(k, "-affix-wrapper-focused"), A), (0, n.default)(E, "".concat(k, "-affix-wrapper-disabled"), L), (0, n.default)(E, "".concat(k, "-affix-wrapper-sm"), j === "small"), (0, n.default)(E, "".concat(k, "-affix-wrapper-lg"), j === "large"), (0, n.default)(E, "".concat(k, "-affix-wrapper-input-with-clear-btn"), N && I && q), (0, n.default)(E, "".concat(k, "-affix-wrapper-rtl"), W === "rtl"), (0, n.default)(E, "".concat(k, "-affix-wrapper-readonly"),
|
|
7832
|
+
}, $) : null, B = (0, c.default)("".concat(k, "-affix-wrapper"), (E = {}, (0, n.default)(E, "".concat(k, "-affix-wrapper-focused"), A), (0, n.default)(E, "".concat(k, "-affix-wrapper-disabled"), L), (0, n.default)(E, "".concat(k, "-affix-wrapper-sm"), j === "small"), (0, n.default)(E, "".concat(k, "-affix-wrapper-lg"), j === "large"), (0, n.default)(E, "".concat(k, "-affix-wrapper-input-with-clear-btn"), N && I && q), (0, n.default)(E, "".concat(k, "-affix-wrapper-rtl"), W === "rtl"), (0, n.default)(E, "".concat(k, "-affix-wrapper-readonly"), Y), (0, n.default)(E, "".concat(k, "-affix-wrapper-borderless"), !H), (0, n.default)(E, "".concat(D), !_(this.props) && D), E));
|
|
7833
7833
|
return /* @__PURE__ */ l.createElement("span", {
|
|
7834
7834
|
ref: this.containerRef,
|
|
7835
7835
|
className: B,
|
|
7836
|
-
style:
|
|
7836
|
+
style: z,
|
|
7837
7837
|
onMouseUp: this.onInputMouseUp
|
|
7838
7838
|
}, U, (0, h.cloneElement)(w, {
|
|
7839
7839
|
style: null,
|
|
@@ -7844,27 +7844,27 @@ function requireClearableLabeledInput() {
|
|
|
7844
7844
|
}, {
|
|
7845
7845
|
key: "renderInputWithLabel",
|
|
7846
7846
|
value: function(k, w) {
|
|
7847
|
-
var E,
|
|
7847
|
+
var E, T = this.props, A = T.addonBefore, q = T.addonAfter, $ = T.style, D = T.size, j = T.className, N = T.direction;
|
|
7848
7848
|
if (!_(this.props))
|
|
7849
7849
|
return w;
|
|
7850
7850
|
var L = "".concat(k, "-group"), I = "".concat(L, "-addon"), W = A ? /* @__PURE__ */ l.createElement("span", {
|
|
7851
7851
|
className: I
|
|
7852
|
-
}, A) : null,
|
|
7852
|
+
}, A) : null, z = q ? /* @__PURE__ */ l.createElement("span", {
|
|
7853
7853
|
className: I
|
|
7854
|
-
}, q) : null,
|
|
7854
|
+
}, q) : null, Y = (0, c.default)("".concat(k, "-wrapper"), L, (0, n.default)({}, "".concat(L, "-rtl"), N === "rtl")), H = (0, c.default)("".concat(k, "-group-wrapper"), (E = {}, (0, n.default)(E, "".concat(k, "-group-wrapper-sm"), D === "small"), (0, n.default)(E, "".concat(k, "-group-wrapper-lg"), D === "large"), (0, n.default)(E, "".concat(k, "-group-wrapper-rtl"), N === "rtl"), E), j);
|
|
7855
7855
|
return /* @__PURE__ */ l.createElement("span", {
|
|
7856
7856
|
className: H,
|
|
7857
7857
|
style: $
|
|
7858
7858
|
}, /* @__PURE__ */ l.createElement("span", {
|
|
7859
|
-
className:
|
|
7859
|
+
className: Y
|
|
7860
7860
|
}, W, (0, h.cloneElement)(w, {
|
|
7861
7861
|
style: null
|
|
7862
|
-
}),
|
|
7862
|
+
}), z));
|
|
7863
7863
|
}
|
|
7864
7864
|
}, {
|
|
7865
7865
|
key: "renderTextAreaWithClearIcon",
|
|
7866
7866
|
value: function(k, w) {
|
|
7867
|
-
var E,
|
|
7867
|
+
var E, T = this.props, A = T.value, q = T.allowClear, $ = T.className, D = T.style, j = T.direction, N = T.bordered;
|
|
7868
7868
|
if (!q)
|
|
7869
7869
|
return (0, h.cloneElement)(w, {
|
|
7870
7870
|
value: A
|
|
@@ -7881,8 +7881,8 @@ function requireClearableLabeledInput() {
|
|
|
7881
7881
|
}, {
|
|
7882
7882
|
key: "render",
|
|
7883
7883
|
value: function() {
|
|
7884
|
-
var k = this.props, w = k.prefixCls, E = k.inputType,
|
|
7885
|
-
return E === v[0] ? this.renderTextAreaWithClearIcon(w,
|
|
7884
|
+
var k = this.props, w = k.prefixCls, E = k.inputType, T = k.element;
|
|
7885
|
+
return E === v[0] ? this.renderTextAreaWithClearIcon(w, T) : this.renderInputWithLabel(w, this.renderLabeledIcon(w, T));
|
|
7886
7886
|
}
|
|
7887
7887
|
}]), C;
|
|
7888
7888
|
}(l.Component), g = m;
|
|
@@ -7895,15 +7895,15 @@ function requireClearableLabeledInput() {
|
|
|
7895
7895
|
value: !0
|
|
7896
7896
|
}), e.default = void 0;
|
|
7897
7897
|
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()), v = requireConfigProvider(), y = requireInput(), _ = r(requireSizeContext()), m = function(b, C) {
|
|
7898
|
-
var
|
|
7898
|
+
var O = {};
|
|
7899
7899
|
for (var k in b)
|
|
7900
|
-
Object.prototype.hasOwnProperty.call(b, k) && C.indexOf(k) < 0 && (
|
|
7900
|
+
Object.prototype.hasOwnProperty.call(b, k) && C.indexOf(k) < 0 && (O[k] = b[k]);
|
|
7901
7901
|
if (b != null && typeof Object.getOwnPropertySymbols == "function")
|
|
7902
7902
|
for (var w = 0, k = Object.getOwnPropertySymbols(b); w < k.length; w++)
|
|
7903
|
-
C.indexOf(k[w]) < 0 && Object.prototype.propertyIsEnumerable.call(b, k[w]) && (
|
|
7904
|
-
return
|
|
7903
|
+
C.indexOf(k[w]) < 0 && Object.prototype.propertyIsEnumerable.call(b, k[w]) && (O[k[w]] = b[k[w]]);
|
|
7904
|
+
return O;
|
|
7905
7905
|
}, g = /* @__PURE__ */ l.forwardRef(function(b, C) {
|
|
7906
|
-
var
|
|
7906
|
+
var O, k = b.prefixCls, w = b.bordered, E = w === void 0 ? !0 : w, T = b.showCount, A = T === void 0 ? !1 : T, q = b.maxLength, $ = b.className, D = b.style, j = b.size, N = m(b, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), L = l.useContext(v.ConfigContext), I = L.getPrefixCls, W = L.direction, z = l.useContext(_.default), Y = l.useRef(null), H = l.useRef(null), K = (0, p.default)(N.defaultValue, {
|
|
7907
7907
|
value: N.value
|
|
7908
7908
|
}), U = (0, u.default)(K, 2), B = U[0], S = U[1], M = l.useRef(N.value);
|
|
7909
7909
|
l.useEffect(function() {
|
|
@@ -7912,34 +7912,34 @@ function requireClearableLabeledInput() {
|
|
|
7912
7912
|
var V = function(oe, se) {
|
|
7913
7913
|
N.value === void 0 && (S(oe), se == null || se());
|
|
7914
7914
|
}, X = function(oe) {
|
|
7915
|
-
V(oe.target.value), (0, y.resolveOnChange)(
|
|
7915
|
+
V(oe.target.value), (0, y.resolveOnChange)(Y.current, oe, N.onChange);
|
|
7916
7916
|
}, Z = function(oe) {
|
|
7917
7917
|
V("", function() {
|
|
7918
7918
|
var se;
|
|
7919
|
-
(se =
|
|
7920
|
-
}), (0, y.resolveOnChange)(
|
|
7919
|
+
(se = Y.current) === null || se === void 0 || se.focus();
|
|
7920
|
+
}), (0, y.resolveOnChange)(Y.current, oe, N.onChange);
|
|
7921
7921
|
}, F = I("input", k);
|
|
7922
7922
|
l.useImperativeHandle(C, function() {
|
|
7923
7923
|
var te;
|
|
7924
7924
|
return {
|
|
7925
|
-
resizableTextArea: (te =
|
|
7925
|
+
resizableTextArea: (te = Y.current) === null || te === void 0 ? void 0 : te.resizableTextArea,
|
|
7926
7926
|
focus: function(se) {
|
|
7927
7927
|
var xe, Se;
|
|
7928
|
-
(0, y.triggerFocus)((Se = (xe =
|
|
7928
|
+
(0, y.triggerFocus)((Se = (xe = Y.current) === null || xe === void 0 ? void 0 : xe.resizableTextArea) === null || Se === void 0 ? void 0 : Se.textArea, se);
|
|
7929
7929
|
},
|
|
7930
7930
|
blur: function() {
|
|
7931
7931
|
var se;
|
|
7932
|
-
return (se =
|
|
7932
|
+
return (se = Y.current) === null || se === void 0 ? void 0 : se.blur();
|
|
7933
7933
|
}
|
|
7934
7934
|
};
|
|
7935
7935
|
});
|
|
7936
7936
|
var P = /* @__PURE__ */ l.createElement(c.default, (0, o.default)({}, (0, d.default)(N, ["allowClear"]), {
|
|
7937
7937
|
maxLength: q,
|
|
7938
|
-
className: (0, f.default)((
|
|
7938
|
+
className: (0, f.default)((O = {}, (0, s.default)(O, "".concat(F, "-borderless"), !E), (0, s.default)(O, $, $ && !A), (0, s.default)(O, "".concat(F, "-sm"), z === "small" || j === "small"), (0, s.default)(O, "".concat(F, "-lg"), z === "large" || j === "large"), O)),
|
|
7939
7939
|
style: A ? void 0 : D,
|
|
7940
7940
|
prefixCls: F,
|
|
7941
7941
|
onChange: X,
|
|
7942
|
-
ref:
|
|
7942
|
+
ref: Y
|
|
7943
7943
|
})), G = (0, y.fixControlledValue)(B), Q = Number(q) > 0;
|
|
7944
7944
|
G = Q ? (0, a.default)(G).slice(0, q).join("") : G;
|
|
7945
7945
|
var ee = /* @__PURE__ */ l.createElement(h.default, (0, o.default)({}, N, {
|
|
@@ -8020,24 +8020,24 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
8020
8020
|
params: [["translatable", "=", "1"]],
|
|
8021
8021
|
fields: ["code", "name"],
|
|
8022
8022
|
model: "res.lang"
|
|
8023
|
-
})).map((
|
|
8024
|
-
code:
|
|
8025
|
-
name:
|
|
8023
|
+
})).map((T) => ({
|
|
8024
|
+
code: T.code,
|
|
8025
|
+
name: T.name
|
|
8026
8026
|
}));
|
|
8027
8027
|
return d == null || d(E), E;
|
|
8028
8028
|
}
|
|
8029
8029
|
async function b(w) {
|
|
8030
8030
|
const E = {};
|
|
8031
|
-
for (const
|
|
8031
|
+
for (const T of w) {
|
|
8032
8032
|
const A = (await ConnectionProvider.getHandler().readObjects({
|
|
8033
8033
|
model: n,
|
|
8034
8034
|
ids: [a],
|
|
8035
8035
|
fieldsToRetrieve: [o],
|
|
8036
8036
|
context: {
|
|
8037
|
-
lang:
|
|
8037
|
+
lang: T.code
|
|
8038
8038
|
}
|
|
8039
8039
|
}))[0];
|
|
8040
|
-
E[
|
|
8040
|
+
E[T.code] = A[o] || "";
|
|
8041
8041
|
}
|
|
8042
8042
|
m.current = E, _(E);
|
|
8043
8043
|
}
|
|
@@ -8057,10 +8057,10 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
8057
8057
|
children: /* @__PURE__ */ jsx(TextArea$1, {
|
|
8058
8058
|
rows: 4,
|
|
8059
8059
|
value: y[w.code] || "",
|
|
8060
|
-
onChange: (
|
|
8060
|
+
onChange: (T) => {
|
|
8061
8061
|
_({
|
|
8062
8062
|
...y,
|
|
8063
|
-
[w.code]:
|
|
8063
|
+
[w.code]: T.target.value
|
|
8064
8064
|
});
|
|
8065
8065
|
},
|
|
8066
8066
|
disabled: h
|
|
@@ -8068,7 +8068,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
8068
8068
|
})]
|
|
8069
8069
|
}, E));
|
|
8070
8070
|
}
|
|
8071
|
-
async function
|
|
8071
|
+
async function O() {
|
|
8072
8072
|
v(!0);
|
|
8073
8073
|
try {
|
|
8074
8074
|
for (const w of Object.keys(y))
|
|
@@ -8101,7 +8101,7 @@ const TextArea$1 = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$3), {
|
|
|
8101
8101
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
8102
8102
|
icon: h ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(CheckOutlined$3, {}),
|
|
8103
8103
|
disabled: h,
|
|
8104
|
-
onClick:
|
|
8104
|
+
onClick: O,
|
|
8105
8105
|
style: {
|
|
8106
8106
|
marginLeft: 15
|
|
8107
8107
|
},
|
|
@@ -8403,29 +8403,29 @@ function debounce(e, t, r) {
|
|
|
8403
8403
|
if (typeof e != "function")
|
|
8404
8404
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
8405
8405
|
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(
|
|
8406
|
+
function h(O) {
|
|
8407
8407
|
var k = n, w = a;
|
|
8408
|
-
return n = a = void 0, c =
|
|
8408
|
+
return n = a = void 0, c = O, s = e.apply(w, k), s;
|
|
8409
8409
|
}
|
|
8410
|
-
function v(
|
|
8411
|
-
return c =
|
|
8410
|
+
function v(O) {
|
|
8411
|
+
return c = O, u = setTimeout(m, t), d ? h(O) : s;
|
|
8412
8412
|
}
|
|
8413
|
-
function y(
|
|
8414
|
-
var k =
|
|
8413
|
+
function y(O) {
|
|
8414
|
+
var k = O - l, w = O - c, E = t - k;
|
|
8415
8415
|
return f ? nativeMin(E, o - w) : E;
|
|
8416
8416
|
}
|
|
8417
|
-
function _(
|
|
8418
|
-
var k =
|
|
8417
|
+
function _(O) {
|
|
8418
|
+
var k = O - l, w = O - c;
|
|
8419
8419
|
return l === void 0 || k >= t || k < 0 || f && w >= o;
|
|
8420
8420
|
}
|
|
8421
8421
|
function m() {
|
|
8422
|
-
var
|
|
8423
|
-
if (_(
|
|
8424
|
-
return g(
|
|
8425
|
-
u = setTimeout(m, y(
|
|
8422
|
+
var O = now$1();
|
|
8423
|
+
if (_(O))
|
|
8424
|
+
return g(O);
|
|
8425
|
+
u = setTimeout(m, y(O));
|
|
8426
8426
|
}
|
|
8427
|
-
function g(
|
|
8428
|
-
return u = void 0, p && n ? h(
|
|
8427
|
+
function g(O) {
|
|
8428
|
+
return u = void 0, p && n ? h(O) : (n = a = void 0, s);
|
|
8429
8429
|
}
|
|
8430
8430
|
function x() {
|
|
8431
8431
|
u !== void 0 && clearTimeout(u), c = 0, n = l = a = u = void 0;
|
|
@@ -8434,8 +8434,8 @@ function debounce(e, t, r) {
|
|
|
8434
8434
|
return u === void 0 ? s : g(now$1());
|
|
8435
8435
|
}
|
|
8436
8436
|
function C() {
|
|
8437
|
-
var
|
|
8438
|
-
if (n = arguments, a = this, l =
|
|
8437
|
+
var O = now$1(), k = _(O);
|
|
8438
|
+
if (n = arguments, a = this, l = O, k) {
|
|
8439
8439
|
if (u === void 0)
|
|
8440
8440
|
return v(l);
|
|
8441
8441
|
if (f)
|
|
@@ -8990,7 +8990,7 @@ function require_stream_writable() {
|
|
|
8990
8990
|
};
|
|
8991
8991
|
}
|
|
8992
8992
|
var t;
|
|
8993
|
-
w.WritableState =
|
|
8993
|
+
w.WritableState = O;
|
|
8994
8994
|
var r = {
|
|
8995
8995
|
deprecate: browser
|
|
8996
8996
|
}, n = streamBrowser, a = require$$0.Buffer, o = commonjsGlobal.Uint8Array || function() {
|
|
@@ -9005,20 +9005,20 @@ function require_stream_writable() {
|
|
|
9005
9005
|
inherits_browser.exports(w, n);
|
|
9006
9006
|
function C() {
|
|
9007
9007
|
}
|
|
9008
|
-
function
|
|
9008
|
+
function O(S, M, V) {
|
|
9009
9009
|
t = t || require_stream_duplex(), S = S || {}, typeof V != "boolean" && (V = M instanceof t), this.objectMode = !!S.objectMode, V && (this.objectMode = this.objectMode || !!S.writableObjectMode), this.highWaterMark = d(this, S, "writableHighWaterMark", V), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
9010
9010
|
var X = S.decodeStrings === !1;
|
|
9011
9011
|
this.decodeStrings = !X, this.defaultEncoding = S.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Z) {
|
|
9012
9012
|
N(M, Z);
|
|
9013
9013
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = S.emitClose !== !1, this.autoDestroy = !!S.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
9014
9014
|
}
|
|
9015
|
-
|
|
9015
|
+
O.prototype.getBuffer = function() {
|
|
9016
9016
|
for (var M = this.bufferedRequest, V = []; M; )
|
|
9017
9017
|
V.push(M), M = M.next;
|
|
9018
9018
|
return V;
|
|
9019
9019
|
}, function() {
|
|
9020
9020
|
try {
|
|
9021
|
-
Object.defineProperty(
|
|
9021
|
+
Object.defineProperty(O.prototype, "buffer", {
|
|
9022
9022
|
get: r.deprecate(function() {
|
|
9023
9023
|
return this.getBuffer();
|
|
9024
9024
|
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
@@ -9029,7 +9029,7 @@ function require_stream_writable() {
|
|
|
9029
9029
|
var k;
|
|
9030
9030
|
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (k = Function.prototype[Symbol.hasInstance], Object.defineProperty(w, Symbol.hasInstance, {
|
|
9031
9031
|
value: function(M) {
|
|
9032
|
-
return k.call(this, M) ? !0 : this !== w ? !1 : M && M._writableState instanceof
|
|
9032
|
+
return k.call(this, M) ? !0 : this !== w ? !1 : M && M._writableState instanceof O;
|
|
9033
9033
|
}
|
|
9034
9034
|
})) : k = function(M) {
|
|
9035
9035
|
return M instanceof this;
|
|
@@ -9039,7 +9039,7 @@ function require_stream_writable() {
|
|
|
9039
9039
|
var M = this instanceof t;
|
|
9040
9040
|
if (!M && !k.call(w, this))
|
|
9041
9041
|
return new w(S);
|
|
9042
|
-
this._writableState = new
|
|
9042
|
+
this._writableState = new O(S, this, M), this.writable = !0, S && (typeof S.write == "function" && (this._write = S.write), typeof S.writev == "function" && (this._writev = S.writev), typeof S.destroy == "function" && (this._destroy = S.destroy), typeof S.final == "function" && (this._final = S.final)), n.call(this);
|
|
9043
9043
|
}
|
|
9044
9044
|
w.prototype.pipe = function() {
|
|
9045
9045
|
b(this, new y());
|
|
@@ -9048,13 +9048,13 @@ function require_stream_writable() {
|
|
|
9048
9048
|
var V = new g();
|
|
9049
9049
|
b(S, V), process.nextTick(M, V);
|
|
9050
9050
|
}
|
|
9051
|
-
function
|
|
9051
|
+
function T(S, M, V, X) {
|
|
9052
9052
|
var Z;
|
|
9053
9053
|
return V === null ? Z = new m() : typeof V != "string" && !M.objectMode && (Z = new p("chunk", ["string", "Buffer"], V)), Z ? (b(S, Z), process.nextTick(X, Z), !1) : !0;
|
|
9054
9054
|
}
|
|
9055
9055
|
w.prototype.write = function(S, M, V) {
|
|
9056
9056
|
var X = this._writableState, Z = !1, F = !X.objectMode && u(S);
|
|
9057
|
-
return F && !a.isBuffer(S) && (S = s(S)), typeof M == "function" && (V = M, M = null), F ? M = "buffer" : M || (M = X.defaultEncoding), typeof V != "function" && (V = C), X.ending ? E(this, V) : (F ||
|
|
9057
|
+
return F && !a.isBuffer(S) && (S = s(S)), typeof M == "function" && (V = M, M = null), F ? M = "buffer" : M || (M = X.defaultEncoding), typeof V != "function" && (V = C), X.ending ? E(this, V) : (F || T(this, X, S, V)) && (X.pendingcb++, Z = q(this, X, F, S, M, V)), Z;
|
|
9058
9058
|
}, w.prototype.cork = function() {
|
|
9059
9059
|
this._writableState.corked++;
|
|
9060
9060
|
}, w.prototype.uncork = function() {
|
|
@@ -9116,7 +9116,7 @@ function require_stream_writable() {
|
|
|
9116
9116
|
if (j(V), M)
|
|
9117
9117
|
D(S, V, X, M, Z);
|
|
9118
9118
|
else {
|
|
9119
|
-
var F =
|
|
9119
|
+
var F = z(V) || S.destroyed;
|
|
9120
9120
|
!F && !V.corked && !V.bufferProcessing && V.bufferedRequest && W(S, V), X ? process.nextTick(L, S, V, F, Z) : L(S, V, F, Z);
|
|
9121
9121
|
}
|
|
9122
9122
|
}
|
|
@@ -9156,19 +9156,19 @@ function require_stream_writable() {
|
|
|
9156
9156
|
return this._writableState.length;
|
|
9157
9157
|
}
|
|
9158
9158
|
});
|
|
9159
|
-
function
|
|
9159
|
+
function z(S) {
|
|
9160
9160
|
return S.ending && S.length === 0 && S.bufferedRequest === null && !S.finished && !S.writing;
|
|
9161
9161
|
}
|
|
9162
|
-
function
|
|
9162
|
+
function Y(S, M) {
|
|
9163
9163
|
S._final(function(V) {
|
|
9164
9164
|
M.pendingcb--, V && b(S, V), M.prefinished = !0, S.emit("prefinish"), K(S, M);
|
|
9165
9165
|
});
|
|
9166
9166
|
}
|
|
9167
9167
|
function H(S, M) {
|
|
9168
|
-
!M.prefinished && !M.finalCalled && (typeof S._final == "function" && !M.destroyed ? (M.pendingcb++, M.finalCalled = !0, process.nextTick(
|
|
9168
|
+
!M.prefinished && !M.finalCalled && (typeof S._final == "function" && !M.destroyed ? (M.pendingcb++, M.finalCalled = !0, process.nextTick(Y, S, M)) : (M.prefinished = !0, S.emit("prefinish")));
|
|
9169
9169
|
}
|
|
9170
9170
|
function K(S, M) {
|
|
9171
|
-
var V =
|
|
9171
|
+
var V = z(M);
|
|
9172
9172
|
if (V && (H(S, M), M.pendingcb === 0 && (M.finished = !0, S.emit("finish"), M.autoDestroy))) {
|
|
9173
9173
|
var X = S._readableState;
|
|
9174
9174
|
(!X || X.autoDestroy && X.endEmitted) && S.destroy();
|
|
@@ -9552,9 +9552,9 @@ function requireAsync_iterator() {
|
|
|
9552
9552
|
if (b)
|
|
9553
9553
|
C = new Promise(h(b, this));
|
|
9554
9554
|
else {
|
|
9555
|
-
var
|
|
9556
|
-
if (
|
|
9557
|
-
return Promise.resolve(d(
|
|
9555
|
+
var O = this[c].read();
|
|
9556
|
+
if (O !== null)
|
|
9557
|
+
return Promise.resolve(d(O, !1));
|
|
9558
9558
|
C = new Promise(this[l]);
|
|
9559
9559
|
}
|
|
9560
9560
|
return this[u] = C, C;
|
|
@@ -9589,16 +9589,16 @@ function requireAsync_iterator() {
|
|
|
9589
9589
|
value: g._readableState.endEmitted,
|
|
9590
9590
|
writable: !0
|
|
9591
9591
|
}), t(x, l, {
|
|
9592
|
-
value: function(
|
|
9592
|
+
value: function(O, k) {
|
|
9593
9593
|
var w = b[c].read();
|
|
9594
|
-
w ? (b[u] = null, b[n] = null, b[a] = null,
|
|
9594
|
+
w ? (b[u] = null, b[n] = null, b[a] = null, O(d(w, !1))) : (b[n] = O, b[a] = k);
|
|
9595
9595
|
},
|
|
9596
9596
|
writable: !0
|
|
9597
9597
|
}), x));
|
|
9598
9598
|
return b[u] = null, r(g, function(C) {
|
|
9599
9599
|
if (C && C.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
9600
|
-
var
|
|
9601
|
-
|
|
9600
|
+
var O = b[a];
|
|
9601
|
+
O !== null && (b[u] = null, b[n] = null, b[a] = null, O(C)), b[o] = C;
|
|
9602
9602
|
return;
|
|
9603
9603
|
}
|
|
9604
9604
|
var k = b[n];
|
|
@@ -9635,7 +9635,7 @@ function require_stream_readable() {
|
|
|
9635
9635
|
};
|
|
9636
9636
|
var c = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, v = h.ERR_INVALID_ARG_TYPE, y = h.ERR_STREAM_PUSH_AFTER_EOF, _ = h.ERR_METHOD_NOT_IMPLEMENTED, m = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, g, x, b;
|
|
9637
9637
|
inherits_browser.exports(E, r);
|
|
9638
|
-
var C = d.errorOrDestroy,
|
|
9638
|
+
var C = d.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
|
|
9639
9639
|
function k(F, P, G) {
|
|
9640
9640
|
if (typeof F.prependListener == "function")
|
|
9641
9641
|
return F.prependListener(P, G);
|
|
@@ -9662,11 +9662,11 @@ function require_stream_readable() {
|
|
|
9662
9662
|
P(F);
|
|
9663
9663
|
}, E.prototype.push = function(F, P) {
|
|
9664
9664
|
var G = this._readableState, Q;
|
|
9665
|
-
return G.objectMode ? Q = !0 : typeof F == "string" && (P = P || G.defaultEncoding, P !== G.encoding && (F = n.from(F, P), P = ""), Q = !0),
|
|
9665
|
+
return G.objectMode ? Q = !0 : typeof F == "string" && (P = P || G.defaultEncoding, P !== G.encoding && (F = n.from(F, P), P = ""), Q = !0), T(this, F, P, !1, Q);
|
|
9666
9666
|
}, E.prototype.unshift = function(F) {
|
|
9667
|
-
return
|
|
9667
|
+
return T(this, F, null, !0, !1);
|
|
9668
9668
|
};
|
|
9669
|
-
function
|
|
9669
|
+
function T(F, P, G, Q, ee) {
|
|
9670
9670
|
l("readableAddChunk", P);
|
|
9671
9671
|
var J = F._readableState;
|
|
9672
9672
|
if (P === null)
|
|
@@ -9744,9 +9744,9 @@ function require_stream_readable() {
|
|
|
9744
9744
|
l("emitReadable_", P.destroyed, P.length, P.ended), !P.destroyed && (P.length || P.ended) && (F.emit("readable"), P.emittedReadable = !1), P.needReadable = !P.flowing && !P.ended && P.length <= P.highWaterMark, S(F);
|
|
9745
9745
|
}
|
|
9746
9746
|
function W(F, P) {
|
|
9747
|
-
P.readingMore || (P.readingMore = !0, process.nextTick(
|
|
9747
|
+
P.readingMore || (P.readingMore = !0, process.nextTick(z, F, P));
|
|
9748
9748
|
}
|
|
9749
|
-
function
|
|
9749
|
+
function z(F, P) {
|
|
9750
9750
|
for (; !P.reading && !P.ended && (P.length < P.highWaterMark || P.flowing && P.length === 0); ) {
|
|
9751
9751
|
var G = P.length;
|
|
9752
9752
|
if (l("maybeReadMore read 0"), F.read(0), G === P.length)
|
|
@@ -9778,7 +9778,7 @@ function require_stream_readable() {
|
|
|
9778
9778
|
function te() {
|
|
9779
9779
|
l("onend"), F.end();
|
|
9780
9780
|
}
|
|
9781
|
-
var oe =
|
|
9781
|
+
var oe = Y(G);
|
|
9782
9782
|
F.on("drain", oe);
|
|
9783
9783
|
var se = !1;
|
|
9784
9784
|
function xe() {
|
|
@@ -9807,7 +9807,7 @@ function require_stream_readable() {
|
|
|
9807
9807
|
}
|
|
9808
9808
|
return F.emit("pipe", G), Q.flowing || (l("pipe resume"), G.resume()), F;
|
|
9809
9809
|
};
|
|
9810
|
-
function
|
|
9810
|
+
function Y(F) {
|
|
9811
9811
|
return function() {
|
|
9812
9812
|
var G = F._readableState;
|
|
9813
9813
|
l("pipeOnDrain", G.awaitDrain), G.awaitDrain && G.awaitDrain--, G.awaitDrain === 0 && t(F, "data") && (G.flowing = !0, S(F));
|
|
@@ -9887,8 +9887,8 @@ function require_stream_readable() {
|
|
|
9887
9887
|
return F[te].apply(F, arguments);
|
|
9888
9888
|
};
|
|
9889
9889
|
}(ee));
|
|
9890
|
-
for (var J = 0; J <
|
|
9891
|
-
F.on(
|
|
9890
|
+
for (var J = 0; J < O.length; J++)
|
|
9891
|
+
F.on(O[J], this.emit.bind(this, O[J]));
|
|
9892
9892
|
return this._read = function(ie) {
|
|
9893
9893
|
l("wrapped _read", ie), Q && (Q = !1, F.resume());
|
|
9894
9894
|
}, this;
|
|
@@ -12344,7 +12344,7 @@ const readObjectValues = async (e) => {
|
|
|
12344
12344
|
useDeepCompareEffect(() => {
|
|
12345
12345
|
k();
|
|
12346
12346
|
}, [o]);
|
|
12347
|
-
const
|
|
12347
|
+
const O = (w) => {
|
|
12348
12348
|
a == null || a({
|
|
12349
12349
|
items: w
|
|
12350
12350
|
});
|
|
@@ -12368,7 +12368,7 @@ const readObjectValues = async (e) => {
|
|
|
12368
12368
|
},
|
|
12369
12369
|
currentView: "form"
|
|
12370
12370
|
});
|
|
12371
|
-
|
|
12371
|
+
O(w);
|
|
12372
12372
|
} catch (w) {
|
|
12373
12373
|
c(w);
|
|
12374
12374
|
} finally {
|
|
@@ -12386,7 +12386,7 @@ const readObjectValues = async (e) => {
|
|
|
12386
12386
|
padding: "1rem"
|
|
12387
12387
|
},
|
|
12388
12388
|
children: x.map((w, E) => {
|
|
12389
|
-
var
|
|
12389
|
+
var T, A;
|
|
12390
12390
|
return /* @__PURE__ */ jsx("div", {
|
|
12391
12391
|
children: /* @__PURE__ */ jsxs(Timeline$1.Item, {
|
|
12392
12392
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -12398,7 +12398,7 @@ const readObjectValues = async (e) => {
|
|
|
12398
12398
|
h(x.find((q) => w.id === q.id)), f(!0);
|
|
12399
12399
|
},
|
|
12400
12400
|
children: /* @__PURE__ */ jsx("strong", {
|
|
12401
|
-
children: (
|
|
12401
|
+
children: (T = w.values) == null ? void 0 : T[g]
|
|
12402
12402
|
})
|
|
12403
12403
|
}), /* @__PURE__ */ jsx("br", {}), /* @__PURE__ */ jsx("div", {
|
|
12404
12404
|
style: {
|
|
@@ -12615,7 +12615,7 @@ const transformPlainMany2Ones = ({
|
|
|
12615
12615
|
onChange: n
|
|
12616
12616
|
} = e, {
|
|
12617
12617
|
items: a = []
|
|
12618
|
-
} = t || {}, o = a.filter((
|
|
12618
|
+
} = t || {}, o = a.filter((O) => O.operation !== "pendingRemove").map((O) => O.id), [s, u] = useState([]), [l, c] = useState(), [d, f] = useState(!1), {
|
|
12619
12619
|
relation: p,
|
|
12620
12620
|
context: h,
|
|
12621
12621
|
readOnly: v,
|
|
@@ -12626,16 +12626,16 @@ const transformPlainMany2Ones = ({
|
|
|
12626
12626
|
useDeepCompareEffect(() => {
|
|
12627
12627
|
x();
|
|
12628
12628
|
}, [a]);
|
|
12629
|
-
const g = (
|
|
12629
|
+
const g = (O) => {
|
|
12630
12630
|
n == null || n({
|
|
12631
|
-
items:
|
|
12631
|
+
items: O
|
|
12632
12632
|
});
|
|
12633
12633
|
};
|
|
12634
12634
|
async function x() {
|
|
12635
12635
|
f(!0);
|
|
12636
|
-
let
|
|
12636
|
+
let O = [];
|
|
12637
12637
|
try {
|
|
12638
|
-
if (v && (
|
|
12638
|
+
if (v && (O = [["id", "in", o]]), r.domain) {
|
|
12639
12639
|
const E = await ConnectionProvider.getHandler().evalDomain({
|
|
12640
12640
|
domain: r.domain,
|
|
12641
12641
|
values: transformPlainMany2Ones({
|
|
@@ -12645,20 +12645,20 @@ const transformPlainMany2Ones = ({
|
|
|
12645
12645
|
fields: _ == null ? void 0 : _.getFields(),
|
|
12646
12646
|
context: _.getContext()
|
|
12647
12647
|
});
|
|
12648
|
-
|
|
12648
|
+
O = [...O, ...E];
|
|
12649
12649
|
}
|
|
12650
12650
|
const w = (await ConnectionProvider.getHandler().search({
|
|
12651
12651
|
model: p,
|
|
12652
|
-
params:
|
|
12652
|
+
params: O,
|
|
12653
12653
|
fields: [y],
|
|
12654
12654
|
context: {
|
|
12655
12655
|
...m == null ? void 0 : m(),
|
|
12656
12656
|
...h
|
|
12657
12657
|
}
|
|
12658
12658
|
})).map((E) => {
|
|
12659
|
-
const
|
|
12660
|
-
let A =
|
|
12661
|
-
return Array.isArray(
|
|
12659
|
+
const T = E[y];
|
|
12660
|
+
let A = T;
|
|
12661
|
+
return Array.isArray(T) && (A = T[1]), {
|
|
12662
12662
|
label: A,
|
|
12663
12663
|
value: E.id
|
|
12664
12664
|
};
|
|
@@ -12670,31 +12670,31 @@ const transformPlainMany2Ones = ({
|
|
|
12670
12670
|
f(!1);
|
|
12671
12671
|
}
|
|
12672
12672
|
}
|
|
12673
|
-
const b = (
|
|
12674
|
-
const k = a.map((E) =>
|
|
12673
|
+
const b = (O) => {
|
|
12674
|
+
const k = a.map((E) => O.includes(E.id) ? E.operation == "pendingRemove" ? {
|
|
12675
12675
|
...E,
|
|
12676
12676
|
operation: "pendingLink"
|
|
12677
12677
|
} : E : {
|
|
12678
12678
|
id: E.id,
|
|
12679
12679
|
operation: "pendingRemove"
|
|
12680
12680
|
}), w = k.map((E) => E.id);
|
|
12681
|
-
|
|
12681
|
+
O.filter((E) => !w.includes(E)).map((E) => {
|
|
12682
12682
|
k.push({
|
|
12683
12683
|
id: E,
|
|
12684
12684
|
operation: "pendingLink"
|
|
12685
12685
|
});
|
|
12686
12686
|
}), g(k);
|
|
12687
|
-
}, C = (
|
|
12687
|
+
}, C = (O) => {
|
|
12688
12688
|
const {
|
|
12689
12689
|
label: k,
|
|
12690
12690
|
closable: w,
|
|
12691
12691
|
onClose: E
|
|
12692
|
-
} =
|
|
12692
|
+
} = O, T = (A) => {
|
|
12693
12693
|
A.preventDefault(), A.stopPropagation();
|
|
12694
12694
|
};
|
|
12695
12695
|
return /* @__PURE__ */ jsx(Tag$1, {
|
|
12696
12696
|
color: colorFromString(k),
|
|
12697
|
-
onMouseDown:
|
|
12697
|
+
onMouseDown: T,
|
|
12698
12698
|
style: {
|
|
12699
12699
|
margin: "5px"
|
|
12700
12700
|
},
|
|
@@ -13036,11 +13036,11 @@ const transformPlainMany2Ones = ({
|
|
|
13036
13036
|
currentId: x,
|
|
13037
13037
|
limit: b,
|
|
13038
13038
|
setLimit: C,
|
|
13039
|
-
searchParams:
|
|
13039
|
+
searchParams: O = [],
|
|
13040
13040
|
setSearchValues: k
|
|
13041
|
-
} = e, [w, E] = useState(!1), [
|
|
13042
|
-
_ == null || _([...J]),
|
|
13043
|
-
}, []), M = useCallback(() => m ||
|
|
13041
|
+
} = e, [w, E] = useState(!1), [T, A] = useState(!1), [q, $] = useState(), [D, j] = useState(1), [N, L] = useState(0), [I, W] = useState(), [z, Y] = useState([]), [H, K] = useState(void 0), U = useRef(b || DEFAULT_SEARCH_LIMIT$1), B = useRef([]), S = useCallback((J) => {
|
|
13042
|
+
_ == null || _([...J]), Y([...J]);
|
|
13043
|
+
}, []), M = useCallback(() => m || z, [m, z]), V = useCallback(async () => {
|
|
13044
13044
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
13045
13045
|
model: t,
|
|
13046
13046
|
payload: u,
|
|
@@ -13083,7 +13083,7 @@ const transformPlainMany2Ones = ({
|
|
|
13083
13083
|
d
|
|
13084
13084
|
]), X = useCallback(
|
|
13085
13085
|
async (J) => {
|
|
13086
|
-
const { params: ie, newOffset: te } = J || {}, oe = mergeParams(ie ||
|
|
13086
|
+
const { params: ie, newOffset: te } = J || {}, oe = mergeParams(ie || O, g), { colors: se } = getTree(f), { totalItems: xe, results: Se, attrsEvaluated: ae } = await ConnectionProvider.getHandler().searchForTree({
|
|
13087
13087
|
params: oe,
|
|
13088
13088
|
limit: U.current,
|
|
13089
13089
|
offset: te || N,
|
|
@@ -13122,7 +13122,7 @@ const transformPlainMany2Ones = ({
|
|
|
13122
13122
|
d,
|
|
13123
13123
|
b,
|
|
13124
13124
|
N,
|
|
13125
|
-
|
|
13125
|
+
O
|
|
13126
13126
|
]
|
|
13127
13127
|
), Z = useCallback(
|
|
13128
13128
|
async (J) => {
|
|
@@ -13220,7 +13220,7 @@ const transformPlainMany2Ones = ({
|
|
|
13220
13220
|
clear: Q,
|
|
13221
13221
|
fetchResults: Z,
|
|
13222
13222
|
tableRefreshing: w,
|
|
13223
|
-
searchFilterLoading:
|
|
13223
|
+
searchFilterLoading: T,
|
|
13224
13224
|
searchError: q,
|
|
13225
13225
|
page: D,
|
|
13226
13226
|
offset: N,
|
|
@@ -13255,11 +13255,11 @@ const transformPlainMany2Ones = ({
|
|
|
13255
13255
|
setTotalItems: x,
|
|
13256
13256
|
setSelectedRowItems: b,
|
|
13257
13257
|
selectedRowItems: C,
|
|
13258
|
-
searchTreeNameSearch:
|
|
13258
|
+
searchTreeNameSearch: O,
|
|
13259
13259
|
setSearchTreeNameSearch: k,
|
|
13260
13260
|
goToResourceId: w,
|
|
13261
13261
|
limit: E
|
|
13262
|
-
} = e, [
|
|
13262
|
+
} = e, [T, A] = useState(!1), [q, $] = useState(!1), [D, j] = useState(!1), [N, L] = useState(!0), [I, W] = useState(!0), [z, Y] = useState([]), [H, K] = useState(!1), [U, B] = useState([]), [S, M] = useState(!1), [V, X] = useState(!0), [Z, F] = useState(), [P, G] = useState({}), [Q, ee] = useState(E !== void 0 ? E : DEFAULT_SEARCH_LIMIT$1), [J, ie] = useState(n);
|
|
13263
13263
|
useEffect(() => {
|
|
13264
13264
|
p && p.length > 0 && !h && (v == null || v(0), d == null || d(p[0].id));
|
|
13265
13265
|
}, [p]), useEffect(() => {
|
|
@@ -13279,7 +13279,7 @@ const transformPlainMany2Ones = ({
|
|
|
13279
13279
|
currentView: r,
|
|
13280
13280
|
setCurrentView: a,
|
|
13281
13281
|
availableViews: o,
|
|
13282
|
-
formIsSaving:
|
|
13282
|
+
formIsSaving: T,
|
|
13283
13283
|
setFormIsSaving: A,
|
|
13284
13284
|
formHasChanges: q,
|
|
13285
13285
|
setFormHasChanges: $,
|
|
@@ -13300,8 +13300,8 @@ const transformPlainMany2Ones = ({
|
|
|
13300
13300
|
setFormIsLoading: L,
|
|
13301
13301
|
treeIsLoading: I,
|
|
13302
13302
|
setTreeIsLoading: W,
|
|
13303
|
-
attachments:
|
|
13304
|
-
setAttachments:
|
|
13303
|
+
attachments: z,
|
|
13304
|
+
setAttachments: Y,
|
|
13305
13305
|
selectedRowItems: C,
|
|
13306
13306
|
setSelectedRowItems: b,
|
|
13307
13307
|
duplicatingItem: H,
|
|
@@ -13314,7 +13314,7 @@ const transformPlainMany2Ones = ({
|
|
|
13314
13314
|
setSorter: m,
|
|
13315
13315
|
totalItems: g,
|
|
13316
13316
|
setTotalItems: x,
|
|
13317
|
-
searchTreeNameSearch:
|
|
13317
|
+
searchTreeNameSearch: O,
|
|
13318
13318
|
setSearchTreeNameSearch: k,
|
|
13319
13319
|
setGraphIsLoading: X,
|
|
13320
13320
|
graphIsLoading: V,
|
|
@@ -13381,7 +13381,7 @@ const transformPlainMany2Ones = ({
|
|
|
13381
13381
|
const {
|
|
13382
13382
|
reportData: w,
|
|
13383
13383
|
fields: E,
|
|
13384
|
-
values:
|
|
13384
|
+
values: T,
|
|
13385
13385
|
context: A = {}
|
|
13386
13386
|
} = k, {
|
|
13387
13387
|
context: q,
|
|
@@ -13401,10 +13401,10 @@ const transformPlainMany2Ones = ({
|
|
|
13401
13401
|
const W = typeof q == "string" ? parseContext({
|
|
13402
13402
|
context: q,
|
|
13403
13403
|
fields: E,
|
|
13404
|
-
values:
|
|
13404
|
+
values: T
|
|
13405
13405
|
}) : q;
|
|
13406
13406
|
try {
|
|
13407
|
-
const
|
|
13407
|
+
const z = await ConnectionProvider.getHandler().createReport({
|
|
13408
13408
|
model: $,
|
|
13409
13409
|
name: j,
|
|
13410
13410
|
datas: D,
|
|
@@ -13415,10 +13415,10 @@ const transformPlainMany2Ones = ({
|
|
|
13415
13415
|
}
|
|
13416
13416
|
});
|
|
13417
13417
|
u(!0), o.current = !0, a.current = setInterval(() => {
|
|
13418
|
-
m(
|
|
13418
|
+
m(z);
|
|
13419
13419
|
}, 1e3);
|
|
13420
|
-
} catch (
|
|
13421
|
-
o.current = !1, clearInterval(a.current), showDialog$8(
|
|
13420
|
+
} catch (z) {
|
|
13421
|
+
o.current = !1, clearInterval(a.current), showDialog$8(z), u(!1);
|
|
13422
13422
|
}
|
|
13423
13423
|
}
|
|
13424
13424
|
async function m(k) {
|
|
@@ -13439,7 +13439,7 @@ const transformPlainMany2Ones = ({
|
|
|
13439
13439
|
actionData: k,
|
|
13440
13440
|
fields: w,
|
|
13441
13441
|
values: E,
|
|
13442
|
-
context:
|
|
13442
|
+
context: T,
|
|
13443
13443
|
onRefreshParentValues: A
|
|
13444
13444
|
}) {
|
|
13445
13445
|
const {
|
|
@@ -13449,26 +13449,26 @@ const transformPlainMany2Ones = ({
|
|
|
13449
13449
|
reportData: k,
|
|
13450
13450
|
fields: w,
|
|
13451
13451
|
values: E,
|
|
13452
|
-
context:
|
|
13452
|
+
context: T
|
|
13453
13453
|
}) : q === "ir.actions.act_window" ? await x({
|
|
13454
13454
|
actionData: k,
|
|
13455
13455
|
fields: w,
|
|
13456
13456
|
values: E,
|
|
13457
|
-
context:
|
|
13457
|
+
context: T
|
|
13458
13458
|
}) : (showDialog$8(`${q} action not supported`), {});
|
|
13459
13459
|
}
|
|
13460
13460
|
async function x({
|
|
13461
13461
|
actionData: k,
|
|
13462
13462
|
fields: w = {},
|
|
13463
13463
|
values: E = {},
|
|
13464
|
-
context:
|
|
13464
|
+
context: T = {}
|
|
13465
13465
|
}) {
|
|
13466
13466
|
var j;
|
|
13467
13467
|
let A = k;
|
|
13468
13468
|
k.res_model || (A = (await ConnectionProvider.getHandler().readObjects({
|
|
13469
13469
|
model: "ir.actions.act_window",
|
|
13470
13470
|
ids: [parseInt(k.id)],
|
|
13471
|
-
context:
|
|
13471
|
+
context: T
|
|
13472
13472
|
}))[0]);
|
|
13473
13473
|
const $ = {
|
|
13474
13474
|
...typeof (A == null ? void 0 : A.context) == "string" ? parseContext({
|
|
@@ -13479,7 +13479,7 @@ const transformPlainMany2Ones = ({
|
|
|
13479
13479
|
...n
|
|
13480
13480
|
}
|
|
13481
13481
|
}) : A.context,
|
|
13482
|
-
...
|
|
13482
|
+
...T
|
|
13483
13483
|
};
|
|
13484
13484
|
let D = [];
|
|
13485
13485
|
if (A.domain && (D = await ConnectionProvider.getHandler().evalDomain({
|
|
@@ -13510,12 +13510,12 @@ const transformPlainMany2Ones = ({
|
|
|
13510
13510
|
let N;
|
|
13511
13511
|
const L = A.view_mode.split(","), I = [];
|
|
13512
13512
|
for (const W of L) {
|
|
13513
|
-
const
|
|
13513
|
+
const z = await ConnectionProvider.getHandler().getView({
|
|
13514
13514
|
model: A.res_model,
|
|
13515
13515
|
type: W,
|
|
13516
13516
|
context: $
|
|
13517
13517
|
});
|
|
13518
|
-
I.push([
|
|
13518
|
+
I.push([z.view_id, W]);
|
|
13519
13519
|
}
|
|
13520
13520
|
if (A.view_id)
|
|
13521
13521
|
N = {
|
|
@@ -13523,9 +13523,9 @@ const transformPlainMany2Ones = ({
|
|
|
13523
13523
|
type: A.view_mode.split(",")[0]
|
|
13524
13524
|
};
|
|
13525
13525
|
else {
|
|
13526
|
-
const W = A.view_mode.split(",")[0], [
|
|
13526
|
+
const W = A.view_mode.split(",")[0], [z] = I.find(([Y, H]) => H === W);
|
|
13527
13527
|
N = {
|
|
13528
|
-
id:
|
|
13528
|
+
id: z,
|
|
13529
13529
|
type: W
|
|
13530
13530
|
};
|
|
13531
13531
|
}
|
|
@@ -13548,19 +13548,19 @@ const transformPlainMany2Ones = ({
|
|
|
13548
13548
|
domain: k,
|
|
13549
13549
|
model: w,
|
|
13550
13550
|
formView: E,
|
|
13551
|
-
context:
|
|
13551
|
+
context: T,
|
|
13552
13552
|
actionData: A
|
|
13553
13553
|
}) {
|
|
13554
13554
|
p ? C({
|
|
13555
13555
|
domain: k,
|
|
13556
13556
|
model: w,
|
|
13557
13557
|
formView: E,
|
|
13558
|
-
context:
|
|
13558
|
+
context: T,
|
|
13559
13559
|
actionData: A
|
|
13560
13560
|
}) : (y({
|
|
13561
13561
|
domain: k,
|
|
13562
13562
|
model: w,
|
|
13563
|
-
context:
|
|
13563
|
+
context: T,
|
|
13564
13564
|
formView: E,
|
|
13565
13565
|
actionData: A
|
|
13566
13566
|
}), h(!0));
|
|
@@ -13569,7 +13569,7 @@ const transformPlainMany2Ones = ({
|
|
|
13569
13569
|
domain: k,
|
|
13570
13570
|
model: w,
|
|
13571
13571
|
formView: E,
|
|
13572
|
-
context:
|
|
13572
|
+
context: T,
|
|
13573
13573
|
actionData: A
|
|
13574
13574
|
}) {
|
|
13575
13575
|
y({
|
|
@@ -13581,12 +13581,12 @@ const transformPlainMany2Ones = ({
|
|
|
13581
13581
|
}), h(!1), await new Promise((q) => setTimeout(q, 300)), y({
|
|
13582
13582
|
domain: k,
|
|
13583
13583
|
model: w,
|
|
13584
|
-
context:
|
|
13584
|
+
context: T,
|
|
13585
13585
|
formView: E,
|
|
13586
13586
|
actionData: A
|
|
13587
13587
|
}), h(!0);
|
|
13588
13588
|
}
|
|
13589
|
-
async function
|
|
13589
|
+
async function O() {
|
|
13590
13590
|
callRefreshValues(d.current), d.current = [], h(!1), y({
|
|
13591
13591
|
domain: void 0,
|
|
13592
13592
|
model: void 0,
|
|
@@ -13616,7 +13616,7 @@ const transformPlainMany2Ones = ({
|
|
|
13616
13616
|
model: v.model,
|
|
13617
13617
|
formView: v.formView,
|
|
13618
13618
|
visible: p,
|
|
13619
|
-
onSubmitSucceed:
|
|
13619
|
+
onSubmitSucceed: O,
|
|
13620
13620
|
onCancel: () => {
|
|
13621
13621
|
callRefreshValues(d.current), d.current = [], h(!1), y({
|
|
13622
13622
|
domain: void 0,
|
|
@@ -13657,11 +13657,11 @@ function Form(e, t) {
|
|
|
13657
13657
|
visible: x = !0,
|
|
13658
13658
|
rootForm: b = !1,
|
|
13659
13659
|
defaultValues: C,
|
|
13660
|
-
forcedValues:
|
|
13660
|
+
forcedValues: O = {}
|
|
13661
13661
|
} = e, {
|
|
13662
13662
|
t: k,
|
|
13663
13663
|
lang: w
|
|
13664
|
-
} = useContext(LocaleContext), [E,
|
|
13664
|
+
} = useContext(LocaleContext), [E, T] = useState(!1), [A, q] = useState(), [$, D] = useState(), [j] = Form$3.useForm(), [N, L] = useState(), [I, W] = useState(), z = useContext(FormModalContext), [Y, H] = useState(), [K, U] = useState(!1), B = useRef(), S = useRef({}), M = useRef({}), V = useRef(!1), X = useRef(!1), Z = Y < WIDTH_BREAKPOINT, F = useContext(FormContext$1), {
|
|
13665
13665
|
activeId: P,
|
|
13666
13666
|
getPlainValues: G
|
|
13667
13667
|
} = F || {}, Q = useContext(ActionViewContext), {
|
|
@@ -13678,9 +13678,9 @@ function Form(e, t) {
|
|
|
13678
13678
|
} = Se || {};
|
|
13679
13679
|
useImperativeHandle(t, () => ({
|
|
13680
13680
|
submitForm: Ie,
|
|
13681
|
-
getFields:
|
|
13681
|
+
getFields: Te,
|
|
13682
13682
|
getValues: we,
|
|
13683
|
-
getPlainValues:
|
|
13683
|
+
getPlainValues: Oe,
|
|
13684
13684
|
getContext: Pe,
|
|
13685
13685
|
fetchValues: ke,
|
|
13686
13686
|
cancelUnsavedChanges: $e,
|
|
@@ -13710,7 +13710,7 @@ function Form(e, t) {
|
|
|
13710
13710
|
function de() {
|
|
13711
13711
|
return n || B.current;
|
|
13712
13712
|
}
|
|
13713
|
-
function
|
|
13713
|
+
function Te() {
|
|
13714
13714
|
return I;
|
|
13715
13715
|
}
|
|
13716
13716
|
function we() {
|
|
@@ -13722,8 +13722,8 @@ function Form(e, t) {
|
|
|
13722
13722
|
ne[re] === void 0 && delete ne[re];
|
|
13723
13723
|
return ne;
|
|
13724
13724
|
}
|
|
13725
|
-
function
|
|
13726
|
-
const ne = we(), re =
|
|
13725
|
+
function Oe() {
|
|
13726
|
+
const ne = we(), re = Te();
|
|
13727
13727
|
let ue = {};
|
|
13728
13728
|
return Object.keys(ne).forEach((ce) => {
|
|
13729
13729
|
const Ce = ne[ce];
|
|
@@ -13909,7 +13909,7 @@ function Form(e, t) {
|
|
|
13909
13909
|
id: de(),
|
|
13910
13910
|
values: {
|
|
13911
13911
|
...ue,
|
|
13912
|
-
...
|
|
13912
|
+
...O
|
|
13913
13913
|
},
|
|
13914
13914
|
fields: I,
|
|
13915
13915
|
context: {
|
|
@@ -13922,7 +13922,7 @@ function Form(e, t) {
|
|
|
13922
13922
|
model: r,
|
|
13923
13923
|
values: {
|
|
13924
13924
|
...ue,
|
|
13925
|
-
...
|
|
13925
|
+
...O
|
|
13926
13926
|
},
|
|
13927
13927
|
fields: I,
|
|
13928
13928
|
context: {
|
|
@@ -13953,7 +13953,7 @@ function Form(e, t) {
|
|
|
13953
13953
|
succeed: !1,
|
|
13954
13954
|
id: de()
|
|
13955
13955
|
};
|
|
13956
|
-
|
|
13956
|
+
T(!0), ee == null || ee(!0);
|
|
13957
13957
|
try {
|
|
13958
13958
|
p === "api" ? await We(ne) : await Be(ne), f && (B.current = void 0, Ae({
|
|
13959
13959
|
values: {},
|
|
@@ -13961,9 +13961,9 @@ function Form(e, t) {
|
|
|
13961
13961
|
reset: !0
|
|
13962
13962
|
})), await ke(), re = !0;
|
|
13963
13963
|
} catch (ce) {
|
|
13964
|
-
X.current = !1,
|
|
13964
|
+
X.current = !1, T(!1), ee == null || ee(!1), _e == null || _e(ce), message$1.error(k("errorWhileSavingForm")), q(ce != null && ce.message ? ce.message : ce);
|
|
13965
13965
|
} finally {
|
|
13966
|
-
X.current = !1, ee == null || ee(!1),
|
|
13966
|
+
X.current = !1, ee == null || ee(!1), T(!1);
|
|
13967
13967
|
}
|
|
13968
13968
|
return {
|
|
13969
13969
|
succeed: re,
|
|
@@ -13982,7 +13982,7 @@ function Form(e, t) {
|
|
|
13982
13982
|
...ue,
|
|
13983
13983
|
...le()
|
|
13984
13984
|
}
|
|
13985
|
-
}), D(ce), ce.string && ce.string !== se && (xe == null || xe(ce.string)),
|
|
13985
|
+
}), D(ce), ce.string && ce.string !== se && (xe == null || xe(ce.string)), z && ce.string && ((Ce = z.setTitle) == null || Ce.call(z, ce.string));
|
|
13986
13986
|
}, je = async ({
|
|
13987
13987
|
elementHasLostFocus: ne = !1
|
|
13988
13988
|
}) => {
|
|
@@ -14002,19 +14002,19 @@ function Form(e, t) {
|
|
|
14002
14002
|
return;
|
|
14003
14003
|
{
|
|
14004
14004
|
const ce = processValues(j.getFieldsValue(!0), I);
|
|
14005
|
-
M.current = ce, l == null || l(ce), J == null || J(!0),
|
|
14005
|
+
M.current = ce, l == null || l(ce), J == null || J(!0), Ye(ue);
|
|
14006
14006
|
}
|
|
14007
14007
|
}
|
|
14008
|
-
}, He = debounce_1(je, 100),
|
|
14008
|
+
}, He = debounce_1(je, 100), Ye = async (ne) => {
|
|
14009
14009
|
try {
|
|
14010
14010
|
for (let re = 0; re < ne.length; re += 1) {
|
|
14011
14011
|
const ue = ne[re];
|
|
14012
|
-
await
|
|
14012
|
+
await ze(ue);
|
|
14013
14013
|
}
|
|
14014
14014
|
} catch (re) {
|
|
14015
14015
|
showDialog$8(re);
|
|
14016
14016
|
}
|
|
14017
|
-
},
|
|
14017
|
+
}, ze = async (ne) => {
|
|
14018
14018
|
const re = $ == null ? void 0 : $.onChangeFields[ne];
|
|
14019
14019
|
if (!re) {
|
|
14020
14020
|
De({
|
|
@@ -14193,8 +14193,8 @@ function Form(e, t) {
|
|
|
14193
14193
|
const Je = () => !$ && !A ? /* @__PURE__ */ jsx(Spin, {}) : !r && !v || !x ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
14194
14194
|
children: /* @__PURE__ */ jsx(FormProvider$1, {
|
|
14195
14195
|
getValues: we,
|
|
14196
|
-
getPlainValues:
|
|
14197
|
-
getFields:
|
|
14196
|
+
getPlainValues: Oe,
|
|
14197
|
+
getFields: Te,
|
|
14198
14198
|
domain: g,
|
|
14199
14199
|
activeId: n,
|
|
14200
14200
|
activeModel: r,
|
|
@@ -14285,11 +14285,11 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
14285
14285
|
action_id: x,
|
|
14286
14286
|
res_id: b,
|
|
14287
14287
|
action_type: C,
|
|
14288
|
-
view_id:
|
|
14288
|
+
view_id: O
|
|
14289
14289
|
} = u, k = await ConnectionProvider.getHandler().isShortcutFavorite({
|
|
14290
14290
|
action_id: x,
|
|
14291
14291
|
action_type: C,
|
|
14292
|
-
view_id:
|
|
14292
|
+
view_id: O,
|
|
14293
14293
|
res_id: b || !1
|
|
14294
14294
|
});
|
|
14295
14295
|
h(k !== !1), k !== !1 && y(k);
|
|
@@ -14304,12 +14304,12 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
14304
14304
|
action_id: x,
|
|
14305
14305
|
res_id: b,
|
|
14306
14306
|
action_type: C,
|
|
14307
|
-
view_id:
|
|
14307
|
+
view_id: O
|
|
14308
14308
|
} = u;
|
|
14309
14309
|
await ConnectionProvider.getHandler().addFavourite({
|
|
14310
14310
|
action_id: x,
|
|
14311
14311
|
action_type: C,
|
|
14312
|
-
view_id:
|
|
14312
|
+
view_id: O,
|
|
14313
14313
|
res_id: b || !1
|
|
14314
14314
|
});
|
|
14315
14315
|
}
|
|
@@ -14732,14 +14732,14 @@ function SearchFilter(e) {
|
|
|
14732
14732
|
searchValues: p,
|
|
14733
14733
|
showLimitOptions: h = !0,
|
|
14734
14734
|
formXml: v
|
|
14735
|
-
} = e, [y, _] = useState(), [m, g] = useState(), [x, b] = useState(!1), C = useRef(), [
|
|
14735
|
+
} = e, [y, _] = useState(), [m, g] = useState(), [x, b] = useState(!1), C = useRef(), [O] = Form$3.useForm();
|
|
14736
14736
|
useEffect(() => {
|
|
14737
|
-
|
|
14737
|
+
O.setFieldsValue(p);
|
|
14738
14738
|
}, [p]);
|
|
14739
14739
|
const k = () => {
|
|
14740
14740
|
if (!m)
|
|
14741
14741
|
return;
|
|
14742
|
-
const
|
|
14742
|
+
const T = x ? m : y, A = T == null ? void 0 : T.rows;
|
|
14743
14743
|
return A == null ? void 0 : A.map((q, $) => /* @__PURE__ */ jsx(Row, {
|
|
14744
14744
|
children: q.map((D, j) => /* @__PURE__ */ jsx(Col, {
|
|
14745
14745
|
xs: 24,
|
|
@@ -14754,38 +14754,38 @@ function SearchFilter(e) {
|
|
|
14754
14754
|
useDeepCompareEffect(() => {
|
|
14755
14755
|
b(!1), C.current = new SearchFilter$1(r, t, v), C.current.parse(), _(C.current._simpleSearchContainer), g(C.current._advancedSearchContainer);
|
|
14756
14756
|
}, [t, r]);
|
|
14757
|
-
const w = k(), E = (
|
|
14757
|
+
const w = k(), E = (T) => {
|
|
14758
14758
|
var D;
|
|
14759
14759
|
const {
|
|
14760
14760
|
limit: A,
|
|
14761
14761
|
offset: q
|
|
14762
|
-
} =
|
|
14763
|
-
delete
|
|
14764
|
-
const $ = getParamsForFields(
|
|
14762
|
+
} = T;
|
|
14763
|
+
delete T.offset, delete T.limit;
|
|
14764
|
+
const $ = getParamsForFields(T, (D = C.current) == null ? void 0 : D._advancedSearchContainer);
|
|
14765
14765
|
a({
|
|
14766
14766
|
params: $,
|
|
14767
14767
|
offset: q,
|
|
14768
14768
|
limit: A,
|
|
14769
|
-
searchValues:
|
|
14769
|
+
searchValues: T
|
|
14770
14770
|
});
|
|
14771
14771
|
};
|
|
14772
14772
|
return /* @__PURE__ */ jsx(Measure, {
|
|
14773
14773
|
bounds: !0,
|
|
14774
|
-
onResize: (
|
|
14774
|
+
onResize: (T) => {
|
|
14775
14775
|
var A;
|
|
14776
|
-
d == null || d((A =
|
|
14776
|
+
d == null || d((A = T.bounds) == null ? void 0 : A.height);
|
|
14777
14777
|
},
|
|
14778
14778
|
children: ({
|
|
14779
|
-
measureRef:
|
|
14779
|
+
measureRef: T
|
|
14780
14780
|
}) => /* @__PURE__ */ jsx("div", {
|
|
14781
|
-
ref:
|
|
14781
|
+
ref: T,
|
|
14782
14782
|
children: /* @__PURE__ */ jsxs("div", {
|
|
14783
14783
|
style: {
|
|
14784
14784
|
display: c ? "block" : "none"
|
|
14785
14785
|
},
|
|
14786
14786
|
children: [/* @__PURE__ */ jsxs(Form$3, {
|
|
14787
14787
|
className: "p-3 rounded shadow-md bg-gray-50",
|
|
14788
|
-
form:
|
|
14788
|
+
form: O,
|
|
14789
14789
|
onFinish: E,
|
|
14790
14790
|
initialValues: {
|
|
14791
14791
|
offset: s,
|
|
@@ -14799,7 +14799,7 @@ function SearchFilter(e) {
|
|
|
14799
14799
|
b(!x);
|
|
14800
14800
|
},
|
|
14801
14801
|
onClear: () => {
|
|
14802
|
-
|
|
14802
|
+
O.resetFields(), n();
|
|
14803
14803
|
},
|
|
14804
14804
|
isSearching: o
|
|
14805
14805
|
})]
|
|
@@ -14954,16 +14954,16 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
14954
14954
|
async function x() {
|
|
14955
14955
|
c(!0);
|
|
14956
14956
|
try {
|
|
14957
|
-
const
|
|
14957
|
+
const T = await ConnectionProvider.getHandler().getView({
|
|
14958
14958
|
model: r,
|
|
14959
14959
|
type: "form",
|
|
14960
14960
|
context: n
|
|
14961
14961
|
});
|
|
14962
|
-
f(
|
|
14962
|
+
f(T);
|
|
14963
14963
|
const {
|
|
14964
14964
|
fields: A,
|
|
14965
14965
|
arch: q
|
|
14966
|
-
} =
|
|
14966
|
+
} = T, $ = (await ConnectionProvider.getHandler().readObjects({
|
|
14967
14967
|
model: r,
|
|
14968
14968
|
ids: [t],
|
|
14969
14969
|
fields: A,
|
|
@@ -14973,8 +14973,8 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
14973
14973
|
...processValues($, A),
|
|
14974
14974
|
active_id: t
|
|
14975
14975
|
}), c(!1);
|
|
14976
|
-
} catch (
|
|
14977
|
-
c(!1), showDialog$8(
|
|
14976
|
+
} catch (T) {
|
|
14977
|
+
c(!1), showDialog$8(T);
|
|
14978
14978
|
return;
|
|
14979
14979
|
}
|
|
14980
14980
|
}
|
|
@@ -14991,7 +14991,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
14991
14991
|
});
|
|
14992
14992
|
if (!d || !d.toolbar)
|
|
14993
14993
|
return /* @__PURE__ */ jsx(Menu, {});
|
|
14994
|
-
const
|
|
14994
|
+
const T = (A = d == null ? void 0 : d.toolbar) == null ? void 0 : A.relate.map((q) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
14995
14995
|
children: q.name
|
|
14996
14996
|
}, q.id));
|
|
14997
14997
|
return /* @__PURE__ */ jsx(Menu, {
|
|
@@ -15010,17 +15010,17 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
15010
15010
|
children: [" ", v("related")]
|
|
15011
15011
|
})]
|
|
15012
15012
|
}),
|
|
15013
|
-
children:
|
|
15013
|
+
children: T
|
|
15014
15014
|
})]
|
|
15015
15015
|
});
|
|
15016
15016
|
}
|
|
15017
|
-
function C(
|
|
15018
|
-
if (
|
|
15017
|
+
function C(T) {
|
|
15018
|
+
if (T.key === "action")
|
|
15019
15019
|
o(!0);
|
|
15020
|
-
else if (
|
|
15020
|
+
else if (T.key === "print")
|
|
15021
15021
|
u(!0);
|
|
15022
15022
|
else {
|
|
15023
|
-
const A = d.toolbar.relate.find((q) => q.id === parseInt(
|
|
15023
|
+
const A = d.toolbar.relate.find((q) => q.id === parseInt(T.key));
|
|
15024
15024
|
if (!A)
|
|
15025
15025
|
return;
|
|
15026
15026
|
_({
|
|
@@ -15032,9 +15032,9 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
15032
15032
|
});
|
|
15033
15033
|
}
|
|
15034
15034
|
}
|
|
15035
|
-
function T
|
|
15035
|
+
function O(T) {
|
|
15036
15036
|
o(!1), g == null || g({
|
|
15037
|
-
actionData:
|
|
15037
|
+
actionData: T,
|
|
15038
15038
|
values: p,
|
|
15039
15039
|
fields: d.fields,
|
|
15040
15040
|
context: {
|
|
@@ -15043,12 +15043,12 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
15043
15043
|
}
|
|
15044
15044
|
});
|
|
15045
15045
|
}
|
|
15046
|
-
function k(
|
|
15046
|
+
function k(T) {
|
|
15047
15047
|
u(!1), g == null || g({
|
|
15048
15048
|
actionData: {
|
|
15049
|
-
...
|
|
15049
|
+
...T,
|
|
15050
15050
|
datas: {
|
|
15051
|
-
...
|
|
15051
|
+
...T.datas || {},
|
|
15052
15052
|
ids: [t]
|
|
15053
15053
|
}
|
|
15054
15054
|
},
|
|
@@ -15064,14 +15064,14 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
15064
15064
|
style: {
|
|
15065
15065
|
color: "rgba(0,0,0,.45)"
|
|
15066
15066
|
},
|
|
15067
|
-
onClick: (
|
|
15068
|
-
|
|
15067
|
+
onClick: (T) => {
|
|
15068
|
+
T.preventDefault(), x();
|
|
15069
15069
|
}
|
|
15070
15070
|
})
|
|
15071
15071
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
15072
15072
|
visible: a,
|
|
15073
15073
|
items: (w = d == null ? void 0 : d.toolbar) == null ? void 0 : w.action,
|
|
15074
|
-
onItemClicked:
|
|
15074
|
+
onItemClicked: O,
|
|
15075
15075
|
onCancel: () => o(!1)
|
|
15076
15076
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
15077
15077
|
visible: s,
|
|
@@ -17769,15 +17769,15 @@ function Tree(e) {
|
|
|
17769
17769
|
childField: _,
|
|
17770
17770
|
rootTree: m = !1,
|
|
17771
17771
|
context: g
|
|
17772
|
-
} = e, [x, b] = useState([]), [C,
|
|
17772
|
+
} = e, [x, b] = useState([]), [C, O] = useState([]), k = useRef(!1), w = useRef(null), {
|
|
17773
17773
|
t: E
|
|
17774
|
-
} = useContext(LocaleContext),
|
|
17774
|
+
} = useContext(LocaleContext), T = useRef(r), A = useContext(ActionViewContext), {
|
|
17775
17775
|
title: q = void 0,
|
|
17776
17776
|
setTitle: $ = void 0
|
|
17777
17777
|
} = (m ? A : {}) || {};
|
|
17778
17778
|
useEffect(() => {
|
|
17779
17779
|
w.current = getTree(a);
|
|
17780
|
-
const
|
|
17780
|
+
const Y = getTableColumns(w.current, {
|
|
17781
17781
|
boolean: booleanComponentFn,
|
|
17782
17782
|
many2one: many2OneComponentFn,
|
|
17783
17783
|
text: textComponentFn,
|
|
@@ -17794,20 +17794,20 @@ function Tree(e) {
|
|
|
17794
17794
|
date: dateComponentFn,
|
|
17795
17795
|
datetime: dateTimeComponentFn
|
|
17796
17796
|
}, g);
|
|
17797
|
-
|
|
17797
|
+
O(Y), w.current.string && q !== w.current.string && ($ == null || $(w.current.string));
|
|
17798
17798
|
}, [a]), useEffect(() => {
|
|
17799
17799
|
k.current = !1;
|
|
17800
|
-
const
|
|
17801
|
-
b(
|
|
17800
|
+
const Y = getTableItems(w.current, o);
|
|
17801
|
+
b(Y), T.current = r;
|
|
17802
17802
|
}, [o]);
|
|
17803
|
-
const D = (t - 1) *
|
|
17803
|
+
const D = (t - 1) * T.current + 1, j = D - 1 + x.length, N = n === void 0 ? null : n === 0 ? E("no_results") : E("summary").replace("{from}", D == null ? void 0 : D.toString()).replace("{to}", j == null ? void 0 : j.toString()).replace("{total}", n == null ? void 0 : n.toString()), L = () => !c || a.isExpandable || u ? null : n === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
|
|
17804
17804
|
align: "bottom",
|
|
17805
17805
|
className: "pb-4",
|
|
17806
17806
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
17807
17807
|
span: 12,
|
|
17808
17808
|
children: /* @__PURE__ */ jsx(Pagination, {
|
|
17809
17809
|
total: n,
|
|
17810
|
-
pageSize:
|
|
17810
|
+
pageSize: T.current === 0 ? n : T.current,
|
|
17811
17811
|
current: t,
|
|
17812
17812
|
showSizeChanger: !1,
|
|
17813
17813
|
onChange: s
|
|
@@ -17835,11 +17835,11 @@ function Tree(e) {
|
|
|
17835
17835
|
children: K.join(", ")
|
|
17836
17836
|
});
|
|
17837
17837
|
}
|
|
17838
|
-
let W,
|
|
17838
|
+
let W, z = f;
|
|
17839
17839
|
if (w.current !== null) {
|
|
17840
17840
|
W = calculateColumnsWidth(C, x, 600);
|
|
17841
17841
|
const H = w.current;
|
|
17842
|
-
f && H.columns.some((K) => K.sum !== void 0) && (
|
|
17842
|
+
f && H.columns.some((K) => K.sum !== void 0) && (z = f - 30);
|
|
17843
17843
|
}
|
|
17844
17844
|
return w.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
17845
17845
|
style: {
|
|
@@ -17847,15 +17847,15 @@ function Tree(e) {
|
|
|
17847
17847
|
}
|
|
17848
17848
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
17849
17849
|
children: [L(), /* @__PURE__ */ jsx(Table, {
|
|
17850
|
-
height:
|
|
17850
|
+
height: z,
|
|
17851
17851
|
columns: W.columns,
|
|
17852
17852
|
dataSource: x,
|
|
17853
17853
|
loading: u,
|
|
17854
17854
|
loadingComponent: /* @__PURE__ */ jsx(Spin, {}),
|
|
17855
|
-
onRowStyle: (
|
|
17856
|
-
if (p[
|
|
17855
|
+
onRowStyle: (Y) => {
|
|
17856
|
+
if (p[Y.id])
|
|
17857
17857
|
return {
|
|
17858
|
-
color: p[
|
|
17858
|
+
color: p[Y.id]
|
|
17859
17859
|
};
|
|
17860
17860
|
},
|
|
17861
17861
|
onRowDoubleClick: l,
|
|
@@ -17885,7 +17885,7 @@ function SearchTree(e, t) {
|
|
|
17885
17885
|
rootTree: d = !1,
|
|
17886
17886
|
parentContext: f = {},
|
|
17887
17887
|
onChangeSelectedRowKeys: p
|
|
17888
|
-
} = e, [h, v] = useState(!1), [y, _] = useState(!1), m = useRef(!1), [g, x] = useState(), [b, C] = useState(), [
|
|
17888
|
+
} = e, [h, v] = useState(!1), [y, _] = useState(!1), m = useRef(!1), [g, x] = useState(), [b, C] = useState(), [O, k] = useState(), [w, E] = useState(), [T, A] = useState(200), q = useRef(), {
|
|
17889
17889
|
height: $
|
|
17890
17890
|
} = useWindowDimensions(), D = useContext(ContentRootContext), {
|
|
17891
17891
|
processAction: j
|
|
@@ -17893,8 +17893,8 @@ function SearchTree(e, t) {
|
|
|
17893
17893
|
setResults: L = void 0,
|
|
17894
17894
|
setCurrentItemIndex: I = void 0,
|
|
17895
17895
|
currentId: W = void 0,
|
|
17896
|
-
results:
|
|
17897
|
-
selectedRowItems:
|
|
17896
|
+
results: z = void 0,
|
|
17897
|
+
selectedRowItems: Y = void 0,
|
|
17898
17898
|
setSelectedRowItems: H = void 0,
|
|
17899
17899
|
searchParams: K = [],
|
|
17900
17900
|
setSearchParams: U = void 0,
|
|
@@ -17923,7 +17923,7 @@ function SearchTree(e, t) {
|
|
|
17923
17923
|
changeSort: me,
|
|
17924
17924
|
fetchChildrenForRecord: _e,
|
|
17925
17925
|
colorsForResults: de,
|
|
17926
|
-
totalItems:
|
|
17926
|
+
totalItems: Te
|
|
17927
17927
|
} = useSearch({
|
|
17928
17928
|
model: g,
|
|
17929
17929
|
setSearchTreeNameSearch: Z,
|
|
@@ -17936,13 +17936,13 @@ function SearchTree(e, t) {
|
|
|
17936
17936
|
nameSearch: s,
|
|
17937
17937
|
searchNameGetDoneRef: m,
|
|
17938
17938
|
context: f,
|
|
17939
|
-
formView:
|
|
17939
|
+
formView: O,
|
|
17940
17940
|
treeView: b,
|
|
17941
17941
|
sorter: M,
|
|
17942
17942
|
setSorter: V,
|
|
17943
17943
|
setCurrentItemIndex: I,
|
|
17944
17944
|
setResultsActionView: L,
|
|
17945
|
-
resultsActionView:
|
|
17945
|
+
resultsActionView: z,
|
|
17946
17946
|
domain: l,
|
|
17947
17947
|
currentId: W,
|
|
17948
17948
|
setActionViewTotalItems: X,
|
|
@@ -17959,13 +17959,13 @@ function SearchTree(e, t) {
|
|
|
17959
17959
|
const we = async () => {
|
|
17960
17960
|
_(!1), v(!0), E(void 0), F == null || F(!0);
|
|
17961
17961
|
try {
|
|
17962
|
-
await
|
|
17962
|
+
await Oe(), _(!0);
|
|
17963
17963
|
} catch (ve) {
|
|
17964
17964
|
E(ve);
|
|
17965
17965
|
} finally {
|
|
17966
17966
|
v(!1), F == null || F(!1);
|
|
17967
17967
|
}
|
|
17968
|
-
},
|
|
17968
|
+
}, Oe = async () => {
|
|
17969
17969
|
x(r);
|
|
17970
17970
|
let ve = n;
|
|
17971
17971
|
n || (ve = await ConnectionProvider.getHandler().getView({
|
|
@@ -18019,7 +18019,7 @@ function SearchTree(e, t) {
|
|
|
18019
18019
|
o({
|
|
18020
18020
|
id: Ee,
|
|
18021
18021
|
model: g,
|
|
18022
|
-
formView:
|
|
18022
|
+
formView: O,
|
|
18023
18023
|
treeView: b
|
|
18024
18024
|
});
|
|
18025
18025
|
};
|
|
@@ -18028,16 +18028,16 @@ function SearchTree(e, t) {
|
|
|
18028
18028
|
H == null || H(Ee), p == null || p(ve);
|
|
18029
18029
|
}
|
|
18030
18030
|
function be() {
|
|
18031
|
-
return b != null && b.isExpandable ? $ - 160 : $ - (
|
|
18031
|
+
return b != null && b.isExpandable ? $ - 160 : $ - (T + 210);
|
|
18032
18032
|
}
|
|
18033
|
-
const pe = () => !b || !
|
|
18033
|
+
const pe = () => !b || !O ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
18034
18034
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
18035
18035
|
fields: {
|
|
18036
18036
|
...b.fields,
|
|
18037
|
-
...
|
|
18037
|
+
...O.fields
|
|
18038
18038
|
},
|
|
18039
|
-
searchFields: mergeSearchFields([
|
|
18040
|
-
formXml:
|
|
18039
|
+
searchFields: mergeSearchFields([O.search_fields, b.search_fields]),
|
|
18040
|
+
formXml: O.arch,
|
|
18041
18041
|
onClear: ie,
|
|
18042
18042
|
limit: Q,
|
|
18043
18043
|
offset: ae,
|
|
@@ -18050,7 +18050,7 @@ function SearchTree(e, t) {
|
|
|
18050
18050
|
searchValues: P
|
|
18051
18051
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
18052
18052
|
context: f,
|
|
18053
|
-
total:
|
|
18053
|
+
total: Te,
|
|
18054
18054
|
limit: Q,
|
|
18055
18055
|
page: Se,
|
|
18056
18056
|
treeView: b,
|
|
@@ -18061,7 +18061,7 @@ function SearchTree(e, t) {
|
|
|
18061
18061
|
scrollY: u || be(),
|
|
18062
18062
|
colorsForResults: de,
|
|
18063
18063
|
rowSelection: {
|
|
18064
|
-
selectedRowKeys:
|
|
18064
|
+
selectedRowKeys: Y == null ? void 0 : Y.map((ve) => ve.id),
|
|
18065
18065
|
onChange: he
|
|
18066
18066
|
},
|
|
18067
18067
|
sorter: M,
|
|
@@ -18214,23 +18214,23 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18214
18214
|
context: u,
|
|
18215
18215
|
id: l,
|
|
18216
18216
|
domain: c
|
|
18217
|
-
} = n, d = a && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, v] = useState(!1), [y, _] = useState(!1), [m, g] = useState(), x = useRef(!1), [b, C] = useState(""),
|
|
18217
|
+
} = n, d = a && !s ? Config.requiredClass : void 0, [f, p] = useState(!1), [h, v] = useState(!1), [y, _] = useState(!1), [m, g] = useState(), x = useRef(!1), [b, C] = useState(""), O = useRef(), k = useContext(FormContext$1), {
|
|
18218
18218
|
domain: w,
|
|
18219
18219
|
getValues: E,
|
|
18220
|
-
getFields:
|
|
18220
|
+
getFields: T,
|
|
18221
18221
|
getContext: A,
|
|
18222
18222
|
elementHasLostFocus: q
|
|
18223
18223
|
} = k || {}, $ = useRef([]), [D, j] = useState([]), N = t && t[0] || void 0, L = t && t[1] || "";
|
|
18224
18224
|
useEffect(() => {
|
|
18225
18225
|
!Array.isArray(t) && t && H(t);
|
|
18226
18226
|
}, [t]), useEffect(() => {
|
|
18227
|
-
N && L.length === 0 ? H(N) : N && L.length > 0 ? C(L) : !N && !L && C(
|
|
18227
|
+
N && L.length === 0 ? H(N) : N && L.length > 0 ? C(L) : !N && !L && C(O.current || "");
|
|
18228
18228
|
}, [t]);
|
|
18229
18229
|
const I = (S) => {
|
|
18230
18230
|
r == null || r(S), q == null || q();
|
|
18231
18231
|
}, W = (S) => {
|
|
18232
|
-
|
|
18233
|
-
},
|
|
18232
|
+
O.current = S.target.value, I([void 0, ""]);
|
|
18233
|
+
}, z = async () => {
|
|
18234
18234
|
if (!y && b !== L) {
|
|
18235
18235
|
if (await new Promise((S) => setTimeout(S, 100)), x.current) {
|
|
18236
18236
|
I([void 0, ""]);
|
|
@@ -18239,17 +18239,17 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18239
18239
|
_(!0);
|
|
18240
18240
|
try {
|
|
18241
18241
|
if ($.current && $.current.length > 0)
|
|
18242
|
-
|
|
18242
|
+
Y(O.current);
|
|
18243
18243
|
else {
|
|
18244
18244
|
const S = await ConnectionProvider.getHandler().nameSearch({
|
|
18245
18245
|
model: o,
|
|
18246
|
-
payload:
|
|
18246
|
+
payload: O.current,
|
|
18247
18247
|
context: {
|
|
18248
18248
|
...A == null ? void 0 : A(),
|
|
18249
18249
|
...u
|
|
18250
18250
|
}
|
|
18251
18251
|
});
|
|
18252
|
-
S.length === 1 ? (
|
|
18252
|
+
S.length === 1 ? (O.current = void 0, I(S[0])) : Y(O.current);
|
|
18253
18253
|
}
|
|
18254
18254
|
} catch (S) {
|
|
18255
18255
|
showDialog$3(S);
|
|
@@ -18257,7 +18257,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18257
18257
|
_(!1);
|
|
18258
18258
|
}
|
|
18259
18259
|
}
|
|
18260
|
-
},
|
|
18260
|
+
}, Y = async (S) => {
|
|
18261
18261
|
if (await K(), $.current && $.current.length > 0) {
|
|
18262
18262
|
const M = await ConnectionProvider.getHandler().searchAllIds({
|
|
18263
18263
|
params: $.current,
|
|
@@ -18295,10 +18295,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18295
18295
|
c && ($.current = await ConnectionProvider.getHandler().evalDomain({
|
|
18296
18296
|
domain: c,
|
|
18297
18297
|
values: transformPlainMany2Ones({
|
|
18298
|
-
fields:
|
|
18298
|
+
fields: T(),
|
|
18299
18299
|
values: E()
|
|
18300
18300
|
}),
|
|
18301
|
-
fields:
|
|
18301
|
+
fields: T(),
|
|
18302
18302
|
context: A()
|
|
18303
18303
|
})), w && w.length > 0 && ($.current = $.current.concat(transformDomainForChildWidget({
|
|
18304
18304
|
domain: w,
|
|
@@ -18306,7 +18306,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18306
18306
|
}))), j($.current);
|
|
18307
18307
|
}
|
|
18308
18308
|
async function U(S) {
|
|
18309
|
-
S.keyCode === 13 ? (S.preventDefault(), S.stopPropagation(), await
|
|
18309
|
+
S.keyCode === 13 ? (S.preventDefault(), S.stopPropagation(), await z()) : S.code === "Backspace" && N !== void 0 && (S.preventDefault(), S.stopPropagation(), I([void 0, ""]));
|
|
18310
18310
|
}
|
|
18311
18311
|
return /* @__PURE__ */ jsxs(Row, {
|
|
18312
18312
|
gutter: 8,
|
|
@@ -18319,7 +18319,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18319
18319
|
disabled: s,
|
|
18320
18320
|
onChange: W,
|
|
18321
18321
|
className: d,
|
|
18322
|
-
onBlur:
|
|
18322
|
+
onBlur: z,
|
|
18323
18323
|
onKeyDown: U,
|
|
18324
18324
|
suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
18325
18325
|
id: N,
|
|
@@ -18346,7 +18346,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18346
18346
|
icon: y ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(SearchOutlined, {}),
|
|
18347
18347
|
disabled: s || y,
|
|
18348
18348
|
onClick: () => {
|
|
18349
|
-
x.current = !0,
|
|
18349
|
+
x.current = !0, Y(L);
|
|
18350
18350
|
},
|
|
18351
18351
|
tabIndex: -1
|
|
18352
18352
|
})
|
|
@@ -18360,7 +18360,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
18360
18360
|
visible: f,
|
|
18361
18361
|
nameSearch: N ? void 0 : m,
|
|
18362
18362
|
onSelectValues: (S) => {
|
|
18363
|
-
p(!1), H(S[0]), x.current = !1,
|
|
18363
|
+
p(!1), H(S[0]), x.current = !1, O.current = void 0;
|
|
18364
18364
|
},
|
|
18365
18365
|
onCloseModal: () => {
|
|
18366
18366
|
p(!1), x.current = !1;
|
|
@@ -18818,8 +18818,8 @@ function requireTransButton() {
|
|
|
18818
18818
|
var C = b.keyCode;
|
|
18819
18819
|
C === o.default.ENTER && b.preventDefault();
|
|
18820
18820
|
}, h = function(b) {
|
|
18821
|
-
var C = b.keyCode,
|
|
18822
|
-
C === o.default.ENTER &&
|
|
18821
|
+
var C = b.keyCode, O = d.onClick;
|
|
18822
|
+
C === o.default.ENTER && O && O();
|
|
18823
18823
|
}, v = d.style, y = d.noStyle, _ = d.disabled, m = s(d, ["style", "noStyle", "disabled"]), g = {};
|
|
18824
18824
|
return y || (g = (0, n.default)({}, u)), _ && (g.pointerEvents = "none"), g = (0, n.default)((0, n.default)({}, g), v), /* @__PURE__ */ a.createElement("div", (0, n.default)({
|
|
18825
18825
|
role: "button",
|
|
@@ -19516,20 +19516,20 @@ function doAlign(e, t, r, n) {
|
|
|
19516
19516
|
var b = flip(a, /[tb]/gi, {
|
|
19517
19517
|
t: "b",
|
|
19518
19518
|
b: "t"
|
|
19519
|
-
}), C = flipOffset(o, 1),
|
|
19520
|
-
isCompleteFailY(k, h, p) || (d = 1, a = b, o = C, s =
|
|
19519
|
+
}), C = flipOffset(o, 1), O = flipOffset(s, 1), k = getElFuturePos(h, t, b, C, O);
|
|
19520
|
+
isCompleteFailY(k, h, p) || (d = 1, a = b, o = C, s = O);
|
|
19521
19521
|
}
|
|
19522
19522
|
d && (v = getElFuturePos(h, t, a, o, s), utils.mix(y, v));
|
|
19523
19523
|
var w = isFailX(v, h, p), E = isFailY(v, h, p);
|
|
19524
19524
|
if (w || E) {
|
|
19525
|
-
var
|
|
19526
|
-
w && (
|
|
19525
|
+
var T = a;
|
|
19526
|
+
w && (T = flip(a, /[lr]/gi, {
|
|
19527
19527
|
l: "r",
|
|
19528
19528
|
r: "l"
|
|
19529
|
-
})), E && (
|
|
19529
|
+
})), E && (T = flip(a, /[tb]/gi, {
|
|
19530
19530
|
t: "b",
|
|
19531
19531
|
b: "t"
|
|
19532
|
-
})), a =
|
|
19532
|
+
})), a = T, o = r.offset || [0, 0], s = r.targetOffset || [0, 0];
|
|
19533
19533
|
}
|
|
19534
19534
|
c.adjustX = u.adjustX && w, c.adjustY = u.adjustY && E, (c.adjustX || c.adjustY) && (y = adjustForViewport(v, h, p, c));
|
|
19535
19535
|
}
|
|
@@ -19627,12 +19627,12 @@ var Align = function e(t, r) {
|
|
|
19627
19627
|
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), v = React__default.useRef({});
|
|
19628
19628
|
v.current.disabled = a, v.current.target = o, v.current.onAlign = u;
|
|
19629
19629
|
var y = useBuffer(function() {
|
|
19630
|
-
var
|
|
19630
|
+
var O = v.current, k = O.disabled, w = O.target, E = O.onAlign;
|
|
19631
19631
|
if (!k && w) {
|
|
19632
|
-
var
|
|
19632
|
+
var T = p.current, A, q = getElement(w), $ = getPoint(w);
|
|
19633
19633
|
f.current.element = q, f.current.point = $;
|
|
19634
19634
|
var D = document, j = D.activeElement;
|
|
19635
|
-
return q && isVisible(q) ? A = alignElement(
|
|
19635
|
+
return q && isVisible(q) ? A = alignElement(T, q, s) : $ && (A = alignPoint(T, $, s)), restoreFocus(j, T), E && A && E(T, A), !0;
|
|
19636
19636
|
}
|
|
19637
19637
|
return !1;
|
|
19638
19638
|
}, d), _ = _slicedToArray(y, 2), m = _[0], g = _[1], x = React__default.useRef({
|
|
@@ -19643,8 +19643,8 @@ var Align = function e(t, r) {
|
|
|
19643
19643
|
}
|
|
19644
19644
|
});
|
|
19645
19645
|
React__default.useEffect(function() {
|
|
19646
|
-
var
|
|
19647
|
-
p.current !== b.current.element && (b.current.cancel(), b.current.element = p.current, b.current.cancel = monitorResize(p.current, m)), (f.current.element !==
|
|
19646
|
+
var O = getElement(o), k = getPoint(o);
|
|
19647
|
+
p.current !== b.current.element && (b.current.cancel(), b.current.element = p.current, b.current.cancel = monitorResize(p.current, m)), (f.current.element !== O || !isSamePoint(f.current.point, k)) && (m(), x.current.element !== O && (x.current.cancel(), x.current.element = O, x.current.cancel = monitorResize(O, m)));
|
|
19648
19648
|
}), React__default.useEffect(function() {
|
|
19649
19649
|
a ? g() : m();
|
|
19650
19650
|
}, [a]);
|
|
@@ -19736,7 +19736,7 @@ const useVisibleStatus = function(e, t) {
|
|
|
19736
19736
|
return [s, o];
|
|
19737
19737
|
};
|
|
19738
19738
|
var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
19739
|
-
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, v = e.onAlign, y = e.onMouseEnter, _ = e.onMouseLeave, m = e.onMouseDown, g = e.onTouchStart, x = useRef(), b = useRef(), C = useState(),
|
|
19739
|
+
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, v = e.onAlign, y = e.onMouseEnter, _ = e.onMouseLeave, m = e.onMouseDown, g = e.onTouchStart, x = useRef(), b = useRef(), C = useState(), O = _slicedToArray(C, 2), k = O[0], w = O[1], E = useStretchStyle(l), T = _slicedToArray(E, 2), A = T[0], q = T[1];
|
|
19740
19740
|
function $() {
|
|
19741
19741
|
l && q(p());
|
|
19742
19742
|
}
|
|
@@ -19744,15 +19744,15 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
19744
19744
|
function W() {
|
|
19745
19745
|
return f || p;
|
|
19746
19746
|
}
|
|
19747
|
-
function
|
|
19747
|
+
function z() {
|
|
19748
19748
|
var M;
|
|
19749
19749
|
(M = x.current) === null || M === void 0 || M.forceAlign();
|
|
19750
19750
|
}
|
|
19751
|
-
function
|
|
19751
|
+
function Y(M, V) {
|
|
19752
19752
|
if (N === "align") {
|
|
19753
19753
|
var X = h(V);
|
|
19754
19754
|
w(X), k !== X ? Promise.resolve().then(function() {
|
|
19755
|
-
|
|
19755
|
+
z();
|
|
19756
19756
|
}) : L(function() {
|
|
19757
19757
|
var Z;
|
|
19758
19758
|
(Z = I.current) === null || Z === void 0 || Z.call(I);
|
|
@@ -19775,7 +19775,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
19775
19775
|
!H.motionName && N === "motion" && L();
|
|
19776
19776
|
}, [H.motionName, N]), React.useImperativeHandle(t, function() {
|
|
19777
19777
|
return {
|
|
19778
|
-
forceAlign:
|
|
19778
|
+
forceAlign: z,
|
|
19779
19779
|
getElement: function() {
|
|
19780
19780
|
return b.current;
|
|
19781
19781
|
}
|
|
@@ -19808,7 +19808,7 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
19808
19808
|
monitorWindowResize: !0,
|
|
19809
19809
|
disabled: B,
|
|
19810
19810
|
align: d,
|
|
19811
|
-
onAlign:
|
|
19811
|
+
onAlign: Y,
|
|
19812
19812
|
children: /* @__PURE__ */ jsx("div", {
|
|
19813
19813
|
ref: V,
|
|
19814
19814
|
className: F,
|
|
@@ -19959,7 +19959,7 @@ function generateTrigger(e) {
|
|
|
19959
19959
|
var c = [], d = s.props, f = d.popupPlacement, p = d.builtinPlacements, h = d.prefixCls, v = d.alignPoint, y = d.getPopupClassNameFromAlign;
|
|
19960
19960
|
return f && p && c.push(getAlignPopupClassName(p, h, l, v)), y && c.push(y(l)), c.join(" ");
|
|
19961
19961
|
}, s.getComponent = function() {
|
|
19962
|
-
var l = s.props, c = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, v = l.popupAnimation, y = l.popupTransitionName, _ = l.popupStyle, m = l.mask, g = l.maskAnimation, x = l.maskTransitionName, b = l.maskMotion, C = l.zIndex,
|
|
19962
|
+
var l = s.props, c = l.prefixCls, d = l.destroyPopupOnHide, f = l.popupClassName, p = l.onPopupAlign, h = l.popupMotion, v = l.popupAnimation, y = l.popupTransitionName, _ = l.popupStyle, m = l.mask, g = l.maskAnimation, x = l.maskTransitionName, b = l.maskMotion, C = l.zIndex, O = l.popup, k = l.stretch, w = l.alignPoint, E = l.mobile, T = s.state, A = T.popupVisible, q = T.point, $ = s.getPopupAlign(), D = {};
|
|
19963
19963
|
return s.isMouseEnterToShow() && (D.onMouseEnter = s.onPopupMouseEnter), s.isMouseLeaveToHide() && (D.onMouseLeave = s.onPopupMouseLeave), D.onMouseDown = s.onPopupMouseDown, D.onTouchStart = s.onPopupMouseDown, /* @__PURE__ */ jsx(Popup, {
|
|
19964
19964
|
prefixCls: c,
|
|
19965
19965
|
destroyPopupOnHide: d,
|
|
@@ -19983,7 +19983,7 @@ function generateTrigger(e) {
|
|
|
19983
19983
|
ref: s.popupRef,
|
|
19984
19984
|
motion: h,
|
|
19985
19985
|
mobile: E,
|
|
19986
|
-
children: typeof
|
|
19986
|
+
children: typeof O == "function" ? O() : O
|
|
19987
19987
|
});
|
|
19988
19988
|
}, s.attachParent = function(l) {
|
|
19989
19989
|
wrapperRaf.cancel(s.attachId);
|
|
@@ -20293,24 +20293,24 @@ var autoAdjustOverflow = {
|
|
|
20293
20293
|
children: typeof r == "function" ? r() : r
|
|
20294
20294
|
});
|
|
20295
20295
|
}, Tooltip = function e(t, r) {
|
|
20296
|
-
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, v = t.onVisibleChange, y = t.afterVisibleChange, _ = t.transitionName, m = t.animation, g = t.placement, x = g === void 0 ? "right" : g, b = t.align, C = b === void 0 ? {} : b,
|
|
20296
|
+
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, v = t.onVisibleChange, y = t.afterVisibleChange, _ = t.transitionName, m = t.animation, g = t.placement, x = g === void 0 ? "right" : g, b = t.align, C = b === void 0 ? {} : b, O = t.destroyTooltipOnHide, k = O === void 0 ? !1 : O, w = t.defaultVisible, E = t.getTooltipContainer, T = t.overlayInnerStyle, A = _objectWithoutProperties(t, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle"]), q = useRef(null);
|
|
20297
20297
|
useImperativeHandle(r, function() {
|
|
20298
20298
|
return q.current;
|
|
20299
20299
|
});
|
|
20300
20300
|
var $ = _objectSpread2$1({}, A);
|
|
20301
20301
|
"visible" in t && ($.popupVisible = t.visible);
|
|
20302
20302
|
var D = function() {
|
|
20303
|
-
var W = t.arrowContent,
|
|
20303
|
+
var W = t.arrowContent, z = W === void 0 ? null : W, Y = t.overlay, H = t.id;
|
|
20304
20304
|
return [
|
|
20305
20305
|
/* @__PURE__ */ jsx("div", {
|
|
20306
20306
|
className: "".concat(p, "-arrow"),
|
|
20307
|
-
children:
|
|
20307
|
+
children: z
|
|
20308
20308
|
}, "arrow"),
|
|
20309
20309
|
/* @__PURE__ */ jsx(Content$2, {
|
|
20310
20310
|
prefixCls: p,
|
|
20311
20311
|
id: H,
|
|
20312
|
-
overlay:
|
|
20313
|
-
overlayInnerStyle:
|
|
20312
|
+
overlay: Y,
|
|
20313
|
+
overlayInnerStyle: T
|
|
20314
20314
|
}, "content")
|
|
20315
20315
|
];
|
|
20316
20316
|
}, j = !1, N = !1;
|
|
@@ -20536,37 +20536,37 @@ function requireTooltip() {
|
|
|
20536
20536
|
value: !0
|
|
20537
20537
|
}), e.default = void 0;
|
|
20538
20538
|
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, b) {
|
|
20539
|
-
var C = {},
|
|
20539
|
+
var C = {}, O = (0, o.default)({}, x);
|
|
20540
20540
|
return b.forEach(function(k) {
|
|
20541
|
-
x && k in x && (C[k] = x[k], delete
|
|
20541
|
+
x && k in x && (C[k] = x[k], delete O[k]);
|
|
20542
20542
|
}), {
|
|
20543
20543
|
picked: C,
|
|
20544
|
-
omitted:
|
|
20544
|
+
omitted: O
|
|
20545
20545
|
};
|
|
20546
20546
|
}, v = new RegExp("^(".concat(p.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
20547
20547
|
function y(g, x) {
|
|
20548
20548
|
var b = g.type;
|
|
20549
20549
|
if ((b.__ANT_BUTTON === !0 || b.__ANT_SWITCH === !0 || b.__ANT_CHECKBOX === !0 || g.type === "button") && g.props.disabled) {
|
|
20550
|
-
var C = h(g.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]),
|
|
20550
|
+
var C = h(g.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), O = C.picked, k = C.omitted, w = (0, o.default)((0, o.default)({
|
|
20551
20551
|
display: "inline-block"
|
|
20552
|
-
},
|
|
20552
|
+
}, O), {
|
|
20553
20553
|
cursor: "not-allowed",
|
|
20554
20554
|
width: g.props.block ? "100%" : null
|
|
20555
20555
|
}), E = (0, o.default)((0, o.default)({}, k), {
|
|
20556
20556
|
pointerEvents: "none"
|
|
20557
|
-
}),
|
|
20557
|
+
}), T = (0, d.cloneElement)(g, {
|
|
20558
20558
|
style: E,
|
|
20559
20559
|
className: null
|
|
20560
20560
|
});
|
|
20561
20561
|
return /* @__PURE__ */ s.createElement("span", {
|
|
20562
20562
|
style: w,
|
|
20563
20563
|
className: (0, l.default)(g.props.className, "".concat(x, "-disabled-compatible-wrapper"))
|
|
20564
|
-
},
|
|
20564
|
+
}, T);
|
|
20565
20565
|
}
|
|
20566
20566
|
return g;
|
|
20567
20567
|
}
|
|
20568
20568
|
var _ = /* @__PURE__ */ s.forwardRef(function(g, x) {
|
|
20569
|
-
var b, C = s.useContext(f.ConfigContext),
|
|
20569
|
+
var b, C = s.useContext(f.ConfigContext), O = C.getPopupContainer, k = C.getPrefixCls, w = C.direction, E = s.useState(!!g.visible || !!g.defaultVisible), T = (0, a.default)(E, 2), A = T[0], q = T[1];
|
|
20570
20570
|
s.useEffect(function() {
|
|
20571
20571
|
"visible" in g && q(g.visible);
|
|
20572
20572
|
}, [g.visible]);
|
|
@@ -20595,7 +20595,7 @@ function requireTooltip() {
|
|
|
20595
20595
|
}, L = function() {
|
|
20596
20596
|
var ee = g.title, J = g.overlay;
|
|
20597
20597
|
return ee === 0 ? ee : J || ee || "";
|
|
20598
|
-
}, I = g.prefixCls, W = g.openClassName,
|
|
20598
|
+
}, I = g.prefixCls, W = g.openClassName, z = g.getPopupContainer, Y = g.getTooltipContainer, H = g.overlayClassName, K = g.color, U = g.overlayInnerStyle, B = g.children, S = k("tooltip", I), M = A;
|
|
20599
20599
|
!("visible" in g) && $() && (M = !1);
|
|
20600
20600
|
var V = y((0, d.isValidElement)(B) ? B : /* @__PURE__ */ s.createElement("span", null, B), S), X = V.props, Z = (0, l.default)(X.className, (0, n.default)({}, W || "".concat(S, "-open"), !0)), F = (0, l.default)(H, (b = {}, (0, n.default)(b, "".concat(S, "-rtl"), w === "rtl"), (0, n.default)(b, "".concat(S, "-").concat(K), K && v.test(K)), b)), P = U, G;
|
|
20601
20601
|
return K && !v.test(K) && (P = (0, o.default)((0, o.default)({}, U), {
|
|
@@ -20605,7 +20605,7 @@ function requireTooltip() {
|
|
|
20605
20605
|
}), /* @__PURE__ */ s.createElement(u.default, (0, o.default)({}, g, {
|
|
20606
20606
|
prefixCls: S,
|
|
20607
20607
|
overlayClassName: F,
|
|
20608
|
-
getTooltipContainer:
|
|
20608
|
+
getTooltipContainer: z || Y || O,
|
|
20609
20609
|
ref: x,
|
|
20610
20610
|
builtinPlacements: j(),
|
|
20611
20611
|
overlay: L(),
|
|
@@ -20677,13 +20677,13 @@ function requireTypography() {
|
|
|
20677
20677
|
_.indexOf(g[x]) < 0 && Object.prototype.propertyIsEnumerable.call(y, g[x]) && (m[g[x]] = y[g[x]]);
|
|
20678
20678
|
return m;
|
|
20679
20679
|
}, f = function(_, m) {
|
|
20680
|
-
var g = _.prefixCls, x = _.component, b = x === void 0 ? "article" : x, C = _.className,
|
|
20681
|
-
return k && ((0, c.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."),
|
|
20680
|
+
var g = _.prefixCls, x = _.component, b = x === void 0 ? "article" : x, C = _.className, O = _["aria-label"], k = _.setContentRef, w = _.children, E = d(_, ["prefixCls", "component", "className", "aria-label", "setContentRef", "children"]), T = m;
|
|
20681
|
+
return k && ((0, c.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), T = (0, u.composeRef)(m, k)), /* @__PURE__ */ o.createElement(l.ConfigConsumer, null, function(A) {
|
|
20682
20682
|
var q = A.getPrefixCls, $ = A.direction, D = b, j = q("typography", g), N = (0, s.default)(j, (0, a.default)({}, "".concat(j, "-rtl"), $ === "rtl"), C);
|
|
20683
20683
|
return /* @__PURE__ */ o.createElement(D, (0, n.default)({
|
|
20684
20684
|
className: N,
|
|
20685
|
-
"aria-label":
|
|
20686
|
-
ref:
|
|
20685
|
+
"aria-label": O,
|
|
20686
|
+
ref: T
|
|
20687
20687
|
}, E), w);
|
|
20688
20688
|
});
|
|
20689
20689
|
}, p = /* @__PURE__ */ o.forwardRef(f);
|
|
@@ -20741,10 +20741,10 @@ function requireEditable() {
|
|
|
20741
20741
|
value: !0
|
|
20742
20742
|
}), e.default = void 0;
|
|
20743
20743
|
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) {
|
|
20744
|
-
var v = h.prefixCls, y = h["aria-label"], _ = h.className, m = h.style, g = h.direction, x = h.maxLength, b = h.autoSize, C = b === void 0 ? !0 : b,
|
|
20744
|
+
var v = h.prefixCls, y = h["aria-label"], _ = h.className, m = h.style, g = h.direction, x = h.maxLength, b = h.autoSize, C = b === void 0 ? !0 : b, O = h.value, k = h.onSave, w = h.onCancel, E = o.useRef(), T = o.useRef(!1), A = o.useRef(), q = o.useState(O), $ = (0, a.default)(q, 2), D = $[0], j = $[1];
|
|
20745
20745
|
o.useEffect(function() {
|
|
20746
|
-
j(
|
|
20747
|
-
}, [
|
|
20746
|
+
j(O);
|
|
20747
|
+
}, [O]), o.useEffect(function() {
|
|
20748
20748
|
if (E.current && E.current.resizableTextArea) {
|
|
20749
20749
|
var U = E.current.resizableTextArea.textArea;
|
|
20750
20750
|
U.focus();
|
|
@@ -20756,19 +20756,19 @@ function requireEditable() {
|
|
|
20756
20756
|
var S = B.target;
|
|
20757
20757
|
j(S.value.replace(/[\n\r]/g, ""));
|
|
20758
20758
|
}, L = function() {
|
|
20759
|
-
|
|
20759
|
+
T.current = !0;
|
|
20760
20760
|
}, I = function() {
|
|
20761
|
-
|
|
20761
|
+
T.current = !1;
|
|
20762
20762
|
}, W = function(B) {
|
|
20763
20763
|
var S = B.keyCode;
|
|
20764
|
-
|
|
20765
|
-
},
|
|
20764
|
+
T.current || (A.current = S);
|
|
20765
|
+
}, z = function() {
|
|
20766
20766
|
k(D.trim());
|
|
20767
|
-
},
|
|
20767
|
+
}, Y = function(B) {
|
|
20768
20768
|
var S = B.keyCode, M = B.ctrlKey, V = B.altKey, X = B.metaKey, Z = B.shiftKey;
|
|
20769
|
-
A.current === S && !
|
|
20769
|
+
A.current === S && !T.current && !M && !V && !X && !Z && (S === u.default.ENTER ? z() : S === u.default.ESC && w());
|
|
20770
20770
|
}, H = function() {
|
|
20771
|
-
|
|
20771
|
+
z();
|
|
20772
20772
|
}, K = (0, s.default)(v, "".concat(v, "-edit-content"), (0, n.default)({}, "".concat(v, "-rtl"), g === "rtl"), _);
|
|
20773
20773
|
return /* @__PURE__ */ o.createElement("div", {
|
|
20774
20774
|
className: K,
|
|
@@ -20779,7 +20779,7 @@ function requireEditable() {
|
|
|
20779
20779
|
value: D,
|
|
20780
20780
|
onChange: N,
|
|
20781
20781
|
onKeyDown: W,
|
|
20782
|
-
onKeyUp:
|
|
20782
|
+
onKeyUp: Y,
|
|
20783
20783
|
onCompositionStart: L,
|
|
20784
20784
|
onCompositionEnd: I,
|
|
20785
20785
|
onBlur: H,
|
|
@@ -20826,7 +20826,7 @@ function requireUtil() {
|
|
|
20826
20826
|
}
|
|
20827
20827
|
var v = function(_, m, g, x, b) {
|
|
20828
20828
|
c || (c = document.createElement("div"), c.setAttribute("aria-hidden", "true"), document.body.appendChild(c));
|
|
20829
|
-
var C = m.rows,
|
|
20829
|
+
var C = m.rows, O = m.suffix, k = O === void 0 ? "" : O, w = window.getComputedStyle(_), E = p(w), T = f(w.lineHeight), A = Math.round(T * (C + 1) + f(w.paddingTop) + f(w.paddingBottom));
|
|
20830
20830
|
c.setAttribute("style", E), 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";
|
|
20831
20831
|
var q = h((0, o.default)(g));
|
|
20832
20832
|
(0, n.render)(/* @__PURE__ */ a.createElement("div", {
|
|
@@ -20861,7 +20861,7 @@ function requireUtil() {
|
|
|
20861
20861
|
function W(H) {
|
|
20862
20862
|
L.insertBefore(H, I);
|
|
20863
20863
|
}
|
|
20864
|
-
function
|
|
20864
|
+
function z(H, K) {
|
|
20865
20865
|
var U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, B = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : K.length, S = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, M = Math.floor((U + B) / 2), V = K.slice(0, M);
|
|
20866
20866
|
if (H.textContent = V, U >= B - 1)
|
|
20867
20867
|
for (var X = B; X >= U; X -= 1) {
|
|
@@ -20875,9 +20875,9 @@ function requireUtil() {
|
|
|
20875
20875
|
reactNode: Z
|
|
20876
20876
|
};
|
|
20877
20877
|
}
|
|
20878
|
-
return $() ?
|
|
20878
|
+
return $() ? z(H, K, M, B, M) : z(H, K, U, M, S);
|
|
20879
20879
|
}
|
|
20880
|
-
function
|
|
20880
|
+
function Y(H, K) {
|
|
20881
20881
|
var U = H.nodeType;
|
|
20882
20882
|
if (U === s)
|
|
20883
20883
|
return W(H), $() ? {
|
|
@@ -20889,7 +20889,7 @@ function requireUtil() {
|
|
|
20889
20889
|
});
|
|
20890
20890
|
if (U === u) {
|
|
20891
20891
|
var B = H.textContent || "", S = document.createTextNode(B);
|
|
20892
|
-
return W(S),
|
|
20892
|
+
return W(S), z(S, B);
|
|
20893
20893
|
}
|
|
20894
20894
|
return {
|
|
20895
20895
|
finished: !1,
|
|
@@ -20897,7 +20897,7 @@ function requireUtil() {
|
|
|
20897
20897
|
};
|
|
20898
20898
|
}
|
|
20899
20899
|
return D.some(function(H, K) {
|
|
20900
|
-
var U =
|
|
20900
|
+
var U = Y(H, K), B = U.finished, S = U.reactNode;
|
|
20901
20901
|
return S && N.push(S), B;
|
|
20902
20902
|
}), {
|
|
20903
20903
|
content: N,
|
|
@@ -20915,24 +20915,24 @@ function requireBase() {
|
|
|
20915
20915
|
Object.defineProperty(e, "__esModule", {
|
|
20916
20916
|
value: !0
|
|
20917
20917
|
}), e.default = void 0;
|
|
20918
|
-
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()), v = r(requireCopyToClipboard()), y = r(requireOmit()), _ = r(requireEditOutlined()), m = r(requireCheckOutlined()), g = r(requireCopyOutlined()), x = r(require$$18), b = requireConfigProvider(), C = r(requireLocaleReceiver()),
|
|
20918
|
+
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()), v = r(requireCopyToClipboard()), y = r(requireOmit()), _ = r(requireEditOutlined()), m = r(requireCheckOutlined()), g = r(requireCopyOutlined()), x = r(require$$18), b = requireConfigProvider(), C = r(requireLocaleReceiver()), O = r(requireDevWarning()), k = r(requireTransButton()), w = r(requireRaf()), E = requireStyleChecker(), T = r(requireTooltip()), A = r(requireTypography()), q = r(requireEditable()), $ = r(requireUtil()), D = function(Y, H) {
|
|
20919
20919
|
var K = {};
|
|
20920
|
-
for (var U in
|
|
20921
|
-
Object.prototype.hasOwnProperty.call(
|
|
20922
|
-
if (
|
|
20923
|
-
for (var B = 0, U = Object.getOwnPropertySymbols(
|
|
20924
|
-
H.indexOf(U[B]) < 0 && Object.prototype.propertyIsEnumerable.call(
|
|
20920
|
+
for (var U in Y)
|
|
20921
|
+
Object.prototype.hasOwnProperty.call(Y, U) && H.indexOf(U) < 0 && (K[U] = Y[U]);
|
|
20922
|
+
if (Y != null && typeof Object.getOwnPropertySymbols == "function")
|
|
20923
|
+
for (var B = 0, U = Object.getOwnPropertySymbols(Y); B < U.length; B++)
|
|
20924
|
+
H.indexOf(U[B]) < 0 && Object.prototype.propertyIsEnumerable.call(Y, U[B]) && (K[U[B]] = Y[U[B]]);
|
|
20925
20925
|
return K;
|
|
20926
20926
|
}, j = (0, E.isStyleSupport)("webkitLineClamp"), N = (0, E.isStyleSupport)("textOverflow");
|
|
20927
|
-
function L(
|
|
20928
|
-
var K =
|
|
20927
|
+
function L(Y, H) {
|
|
20928
|
+
var K = Y.mark, U = Y.code, B = Y.underline, S = Y.delete, M = Y.strong, V = Y.keyboard, X = H;
|
|
20929
20929
|
function Z(F, P) {
|
|
20930
20930
|
!F || (X = /* @__PURE__ */ f.createElement(P, {}, X));
|
|
20931
20931
|
}
|
|
20932
20932
|
return Z(M, "strong"), Z(B, "u"), Z(S, "del"), Z(U, "code"), Z(K, "mark"), Z(V, "kbd"), X;
|
|
20933
20933
|
}
|
|
20934
|
-
var I = "...", W = /* @__PURE__ */ function(
|
|
20935
|
-
(0, c.default)(K,
|
|
20934
|
+
var I = "...", W = /* @__PURE__ */ function(Y) {
|
|
20935
|
+
(0, c.default)(K, Y);
|
|
20936
20936
|
var H = (0, d.default)(K);
|
|
20937
20937
|
function K() {
|
|
20938
20938
|
var U;
|
|
@@ -21034,7 +21034,7 @@ function requireBase() {
|
|
|
21034
21034
|
value: function() {
|
|
21035
21035
|
var B = this.state, S = B.ellipsisText, M = B.isEllipsis, V = B.expanded, X = this.getEllipsis(), Z = X.rows, F = X.suffix, P = X.onEllipsis, G = this.props.children;
|
|
21036
21036
|
if (!(!Z || Z < 0 || !this.contentRef.current || V) && !this.canUseCSSEllipsis()) {
|
|
21037
|
-
(0,
|
|
21037
|
+
(0, O.default)((0, h.default)(G).every(function(te) {
|
|
21038
21038
|
return typeof te == "string";
|
|
21039
21039
|
}), "Typography", "`ellipsis` should use string as children only.");
|
|
21040
21040
|
var Q = (0, $.default)(this.contentRef.current, {
|
|
@@ -21068,7 +21068,7 @@ function requireBase() {
|
|
|
21068
21068
|
var B = this.props.editable;
|
|
21069
21069
|
if (!!B) {
|
|
21070
21070
|
var S = B.icon, M = B.tooltip, V = (0, h.default)(M)[0] || this.editStr, X = typeof V == "string" ? V : "";
|
|
21071
|
-
return /* @__PURE__ */ f.createElement(
|
|
21071
|
+
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21072
21072
|
key: "edit",
|
|
21073
21073
|
title: M === !1 ? "" : V
|
|
21074
21074
|
}, /* @__PURE__ */ f.createElement(k.default, {
|
|
@@ -21089,7 +21089,7 @@ function requireBase() {
|
|
|
21089
21089
|
var M = this.getPrefixCls(), V = S.tooltips, X = (0, h.default)(V);
|
|
21090
21090
|
X.length === 0 && (X = [this.copyStr, this.copiedStr]);
|
|
21091
21091
|
var Z = B ? X[1] : X[0], F = typeof Z == "string" ? Z : "", P = (0, h.default)(S.icon);
|
|
21092
|
-
return /* @__PURE__ */ f.createElement(
|
|
21092
|
+
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21093
21093
|
key: "copy",
|
|
21094
21094
|
title: V === !1 ? "" : Z
|
|
21095
21095
|
}, /* @__PURE__ */ f.createElement(k.default, {
|
|
@@ -21127,19 +21127,19 @@ function requireBase() {
|
|
|
21127
21127
|
value: function() {
|
|
21128
21128
|
var B = this, S = this.state, M = S.ellipsisContent, V = S.isEllipsis, X = S.expanded, Z = this.props, F = Z.component, P = Z.children, G = Z.className, Q = Z.type, ee = Z.disabled, J = Z.style, ie = D(Z, ["component", "children", "className", "type", "disabled", "style"]), te = this.context.direction, oe = this.getEllipsis(), se = oe.rows, xe = oe.suffix, Se = oe.tooltip, ae = this.getPrefixCls(), ge = (0, y.default)(ie, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, a.default)(b.configConsumerProps))), fe = this.canUseCSSEllipsis(), me = se === 1 && fe, _e = se && se > 1 && fe, de = P;
|
|
21129
21129
|
if (se && V && !X && !fe) {
|
|
21130
|
-
var
|
|
21131
|
-
!
|
|
21130
|
+
var Te = ie.title, we = Te || "";
|
|
21131
|
+
!Te && (typeof P == "string" || typeof P == "number") && (we = String(P)), we = we == null ? void 0 : we.slice(String(M || "").length), de = /* @__PURE__ */ f.createElement(f.Fragment, null, M, /* @__PURE__ */ f.createElement("span", {
|
|
21132
21132
|
title: we,
|
|
21133
21133
|
"aria-hidden": "true"
|
|
21134
|
-
}, I), xe), Se && (de = /* @__PURE__ */ f.createElement(
|
|
21134
|
+
}, I), xe), Se && (de = /* @__PURE__ */ f.createElement(T.default, {
|
|
21135
21135
|
title: Se === !0 ? P : Se
|
|
21136
21136
|
}, /* @__PURE__ */ f.createElement("span", null, de)));
|
|
21137
21137
|
} else
|
|
21138
21138
|
de = /* @__PURE__ */ f.createElement(f.Fragment, null, P, xe);
|
|
21139
21139
|
return de = L(this.props, de), /* @__PURE__ */ f.createElement(C.default, {
|
|
21140
21140
|
componentName: "Text"
|
|
21141
|
-
}, function(
|
|
21142
|
-
var Re, Pe =
|
|
21141
|
+
}, function(Oe) {
|
|
21142
|
+
var Re, Pe = Oe.edit, le = Oe.copy, he = Oe.copied, be = Oe.expand;
|
|
21143
21143
|
return B.editStr = Pe, B.copyStr = le, B.copiedStr = he, B.expandStr = be, /* @__PURE__ */ f.createElement(x.default, {
|
|
21144
21144
|
onResize: B.resizeOnNextFrame,
|
|
21145
21145
|
disabled: !se
|
|
@@ -21164,15 +21164,15 @@ function requireBase() {
|
|
|
21164
21164
|
key: "getDerivedStateFromProps",
|
|
21165
21165
|
value: function(B) {
|
|
21166
21166
|
var S = B.children, M = B.editable;
|
|
21167
|
-
return (0,
|
|
21167
|
+
return (0, O.default)(!M || typeof S == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
|
|
21168
21168
|
}
|
|
21169
21169
|
}]), K;
|
|
21170
21170
|
}(f.Component);
|
|
21171
21171
|
W.contextType = b.ConfigContext, W.defaultProps = {
|
|
21172
21172
|
children: ""
|
|
21173
21173
|
};
|
|
21174
|
-
var
|
|
21175
|
-
e.default =
|
|
21174
|
+
var z = W;
|
|
21175
|
+
e.default = z;
|
|
21176
21176
|
}(Base)), Base;
|
|
21177
21177
|
}
|
|
21178
21178
|
(function(e) {
|
|
@@ -21211,7 +21211,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21211
21211
|
field: c,
|
|
21212
21212
|
operator: d,
|
|
21213
21213
|
manualIds: f
|
|
21214
|
-
} = e, [p, h] = useState(!1), [v, y] = useState(), [_, m] = useState(), [g, x] = useState(), [b, C] = useState(0), [
|
|
21214
|
+
} = e, [p, h] = useState(!1), [v, y] = useState(), [_, m] = useState(), [g, x] = useState(), [b, C] = useState(0), [O, k] = useState(0), [w, E] = useState(), [T, A] = useState(), [q, $] = useState();
|
|
21215
21215
|
useEffect(() => {
|
|
21216
21216
|
N();
|
|
21217
21217
|
}, [t, a]);
|
|
@@ -21228,14 +21228,14 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21228
21228
|
params: L,
|
|
21229
21229
|
model: t,
|
|
21230
21230
|
context: n
|
|
21231
|
-
}),
|
|
21231
|
+
}), z = await ConnectionProvider.getHandler().readObjects({
|
|
21232
21232
|
model: t,
|
|
21233
21233
|
ids: W,
|
|
21234
21234
|
fieldsToRetrieve: [c],
|
|
21235
21235
|
context: n
|
|
21236
21236
|
});
|
|
21237
21237
|
return getValueForOperator({
|
|
21238
|
-
values:
|
|
21238
|
+
values: z.map((Y) => Y[c]),
|
|
21239
21239
|
operator: d
|
|
21240
21240
|
});
|
|
21241
21241
|
} else
|
|
@@ -21260,7 +21260,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21260
21260
|
context: n
|
|
21261
21261
|
});
|
|
21262
21262
|
return getValueForOperator({
|
|
21263
|
-
values: W.map((
|
|
21263
|
+
values: W.map((z) => z[c]),
|
|
21264
21264
|
operator: d
|
|
21265
21265
|
});
|
|
21266
21266
|
} else
|
|
@@ -21279,18 +21279,18 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21279
21279
|
isTotal: !1
|
|
21280
21280
|
});
|
|
21281
21281
|
if (y(W), o) {
|
|
21282
|
-
const
|
|
21282
|
+
const z = await ConnectionProvider.getHandler().evalDomain({
|
|
21283
21283
|
domain: o,
|
|
21284
21284
|
values: {},
|
|
21285
21285
|
context: n
|
|
21286
21286
|
});
|
|
21287
21287
|
L = await D({
|
|
21288
|
-
domain:
|
|
21288
|
+
domain: z,
|
|
21289
21289
|
isTotal: !0
|
|
21290
21290
|
}), x(L);
|
|
21291
21291
|
}
|
|
21292
21292
|
if (L ? (I = Math.round(W / L * 100 * 100) / 100, m(I)) : m(0), a) {
|
|
21293
|
-
const
|
|
21293
|
+
const z = await ConnectionProvider.getHandler().parseCondition({
|
|
21294
21294
|
condition: a,
|
|
21295
21295
|
values: {
|
|
21296
21296
|
value: W,
|
|
@@ -21298,11 +21298,11 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21298
21298
|
},
|
|
21299
21299
|
context: n
|
|
21300
21300
|
});
|
|
21301
|
-
E(
|
|
21301
|
+
E(z);
|
|
21302
21302
|
}
|
|
21303
21303
|
if (u)
|
|
21304
21304
|
if (u.indexOf(":") !== -1) {
|
|
21305
|
-
const
|
|
21305
|
+
const z = await ConnectionProvider.getHandler().parseCondition({
|
|
21306
21306
|
condition: u,
|
|
21307
21307
|
values: {
|
|
21308
21308
|
value: W,
|
|
@@ -21310,7 +21310,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21310
21310
|
},
|
|
21311
21311
|
context: n
|
|
21312
21312
|
});
|
|
21313
|
-
A(
|
|
21313
|
+
A(z);
|
|
21314
21314
|
} else
|
|
21315
21315
|
A(u);
|
|
21316
21316
|
} catch (W) {
|
|
@@ -21346,18 +21346,18 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
21346
21346
|
percent: _,
|
|
21347
21347
|
measureRef: L,
|
|
21348
21348
|
height: b,
|
|
21349
|
-
width:
|
|
21349
|
+
width: O,
|
|
21350
21350
|
color: w,
|
|
21351
|
-
icon:
|
|
21351
|
+
icon: T,
|
|
21352
21352
|
suffix: l
|
|
21353
21353
|
}) : /* @__PURE__ */ jsx(CommonIndicator, {
|
|
21354
21354
|
value: v,
|
|
21355
21355
|
total: g,
|
|
21356
21356
|
measureRef: L,
|
|
21357
21357
|
height: b,
|
|
21358
|
-
width:
|
|
21358
|
+
width: O,
|
|
21359
21359
|
color: w,
|
|
21360
|
-
icon:
|
|
21360
|
+
icon: T,
|
|
21361
21361
|
suffix: l
|
|
21362
21362
|
})
|
|
21363
21363
|
});
|
|
@@ -21483,11 +21483,23 @@ const formatter = (e) => (t) => {
|
|
|
21483
21483
|
useGrouping: !0
|
|
21484
21484
|
});
|
|
21485
21485
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
21486
|
-
}, axisFormatter = (e) =>
|
|
21487
|
-
|
|
21488
|
-
|
|
21489
|
-
|
|
21490
|
-
})
|
|
21486
|
+
}, axisFormatter = (e) => {
|
|
21487
|
+
if (typeof e == "string" && stringIsValidNumeric(e))
|
|
21488
|
+
return parseFloat(e).toLocaleString("es-ES", {
|
|
21489
|
+
useGrouping: !0
|
|
21490
|
+
});
|
|
21491
|
+
if (isNumber(e))
|
|
21492
|
+
return e.toLocaleString("es-ES", {
|
|
21493
|
+
useGrouping: !0
|
|
21494
|
+
});
|
|
21495
|
+
if (isValidDateString(e)) {
|
|
21496
|
+
const t = getDateType(e);
|
|
21497
|
+
return t === null ? e : hooks(e, dateFormats.input[t]).format(
|
|
21498
|
+
dateFormats.output[t]
|
|
21499
|
+
);
|
|
21500
|
+
} else
|
|
21501
|
+
return e;
|
|
21502
|
+
}, stringIsValidNumeric = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), isNumber = (e) => typeof e == "number" && !isNaN(e), DefaultGraphOptions = {
|
|
21491
21503
|
default: {
|
|
21492
21504
|
padding: "auto",
|
|
21493
21505
|
xAxis: {
|
|
@@ -21568,7 +21580,37 @@ const formatter = (e) => (t) => {
|
|
|
21568
21580
|
]
|
|
21569
21581
|
}
|
|
21570
21582
|
}
|
|
21571
|
-
}
|
|
21583
|
+
};
|
|
21584
|
+
function isValidDateString(e) {
|
|
21585
|
+
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
21586
|
+
}
|
|
21587
|
+
const dateFormats = {
|
|
21588
|
+
input: {
|
|
21589
|
+
hours: "YYYY-MM-DD HH:mm",
|
|
21590
|
+
days: "YYYY-MM-DD",
|
|
21591
|
+
weeks: "YYYY-[W]WW",
|
|
21592
|
+
months: "YYYY-MM",
|
|
21593
|
+
years: "YYYY"
|
|
21594
|
+
},
|
|
21595
|
+
output: {
|
|
21596
|
+
hours: "DD/MM/YYYY HH:mm",
|
|
21597
|
+
days: "DD/MM/YYYY",
|
|
21598
|
+
weeks: "[W]WW/YYYY",
|
|
21599
|
+
months: "MM/YYYY",
|
|
21600
|
+
years: "YYYY"
|
|
21601
|
+
}
|
|
21602
|
+
};
|
|
21603
|
+
function getDateType(e) {
|
|
21604
|
+
for (const t in dateFormats.input)
|
|
21605
|
+
if (hooks(
|
|
21606
|
+
e,
|
|
21607
|
+
dateFormats.input[t],
|
|
21608
|
+
!0
|
|
21609
|
+
).isValid())
|
|
21610
|
+
return t;
|
|
21611
|
+
return null;
|
|
21612
|
+
}
|
|
21613
|
+
const {
|
|
21572
21614
|
processGraphData
|
|
21573
21615
|
} = graphProcessor, {
|
|
21574
21616
|
getFieldsToRetrieve
|
|
@@ -21604,8 +21646,8 @@ const formatter = (e) => (t) => {
|
|
|
21604
21646
|
fields: x,
|
|
21605
21647
|
manualIds: u
|
|
21606
21648
|
}));
|
|
21607
|
-
} catch (
|
|
21608
|
-
f("Error fetching graph data values: " + JSON.stringify(
|
|
21649
|
+
} catch (O) {
|
|
21650
|
+
f("Error fetching graph data values: " + JSON.stringify(O)), c(!1);
|
|
21609
21651
|
return;
|
|
21610
21652
|
}
|
|
21611
21653
|
try {
|
|
@@ -21614,7 +21656,7 @@ const formatter = (e) => (t) => {
|
|
|
21614
21656
|
return;
|
|
21615
21657
|
}
|
|
21616
21658
|
y(b);
|
|
21617
|
-
const
|
|
21659
|
+
const O = processGraphData({
|
|
21618
21660
|
ooui: g,
|
|
21619
21661
|
values: b,
|
|
21620
21662
|
fields: C,
|
|
@@ -21622,9 +21664,9 @@ const formatter = (e) => (t) => {
|
|
|
21622
21664
|
uninformedString: s
|
|
21623
21665
|
}
|
|
21624
21666
|
});
|
|
21625
|
-
h(
|
|
21626
|
-
} catch (
|
|
21627
|
-
f("Error processing graph data: " +
|
|
21667
|
+
h(O);
|
|
21668
|
+
} catch (O) {
|
|
21669
|
+
f("Error processing graph data: " + O), c(!1);
|
|
21628
21670
|
return;
|
|
21629
21671
|
}
|
|
21630
21672
|
c(!1);
|
|
@@ -22009,7 +22051,7 @@ const One2manyInput = (e) => {
|
|
|
22009
22051
|
} = d || {}, {
|
|
22010
22052
|
lang: _,
|
|
22011
22053
|
t: m
|
|
22012
|
-
} = useContext(LocaleContext), [g, x] = useState(!1), [b, C] = useState(!1), [
|
|
22054
|
+
} = useContext(LocaleContext), [g, x] = useState(!1), [b, C] = useState(!1), [O, k] = useState(), [w, E] = useState(!1), [T, A] = useState(!1), [q, $] = useState(), [D, j] = useState([]), [N, L] = useState(!1), I = useRef([]), [W, z] = useState(), Y = useRef(), [H, K] = useState(void 0), {
|
|
22013
22055
|
readOnly: U,
|
|
22014
22056
|
relation: B,
|
|
22015
22057
|
context: S,
|
|
@@ -22058,7 +22100,7 @@ const One2manyInput = (e) => {
|
|
|
22058
22100
|
},
|
|
22059
22101
|
currentView: le || s
|
|
22060
22102
|
});
|
|
22061
|
-
return
|
|
22103
|
+
return Y.current || (Y.current = ye.map((Ee) => Ee.id)), (s || le) === "tree" && ve && K(ve), G(ye), ye;
|
|
22062
22104
|
} catch (ye) {
|
|
22063
22105
|
k(ye);
|
|
22064
22106
|
} finally {
|
|
@@ -22227,7 +22269,7 @@ const One2manyInput = (e) => {
|
|
|
22227
22269
|
let be = o;
|
|
22228
22270
|
const pe = o.find((ye) => ye.id === he);
|
|
22229
22271
|
(pe == null ? void 0 : pe.values) === void 0 && (be = await ee("form")), $(be.find((ye) => ye.id === he)), L(!1), E(!0);
|
|
22230
|
-
},
|
|
22272
|
+
}, Te = async (le) => {
|
|
22231
22273
|
C(!0);
|
|
22232
22274
|
let he = o;
|
|
22233
22275
|
const be = le.filter((pe) => !o.find((ye) => ye.id === pe));
|
|
@@ -22273,7 +22315,7 @@ const One2manyInput = (e) => {
|
|
|
22273
22315
|
return he.parse(a.get(s).arch), he.string;
|
|
22274
22316
|
}
|
|
22275
22317
|
}
|
|
22276
|
-
const
|
|
22318
|
+
const Oe = () => {
|
|
22277
22319
|
var he, be, pe, ye;
|
|
22278
22320
|
if (s === "form")
|
|
22279
22321
|
return Z.length === 0 ? m("noCurrentEntries") : s !== F.current && o.some((ve) => !ve.values) ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Form$1, {
|
|
@@ -22326,7 +22368,7 @@ const One2manyInput = (e) => {
|
|
|
22326
22368
|
onChange: j
|
|
22327
22369
|
},
|
|
22328
22370
|
sorter: W,
|
|
22329
|
-
onChangeSort:
|
|
22371
|
+
onChangeSort: z,
|
|
22330
22372
|
context: {
|
|
22331
22373
|
...v == null ? void 0 : v(),
|
|
22332
22374
|
...S
|
|
@@ -22347,10 +22389,10 @@ const One2manyInput = (e) => {
|
|
|
22347
22389
|
});
|
|
22348
22390
|
}
|
|
22349
22391
|
};
|
|
22350
|
-
if (
|
|
22392
|
+
if (O)
|
|
22351
22393
|
return /* @__PURE__ */ jsx(Alert, {
|
|
22352
22394
|
className: "mt-10",
|
|
22353
|
-
message:
|
|
22395
|
+
message: O,
|
|
22354
22396
|
type: "error",
|
|
22355
22397
|
banner: !0
|
|
22356
22398
|
});
|
|
@@ -22373,7 +22415,7 @@ const One2manyInput = (e) => {
|
|
|
22373
22415
|
selectedRowKeys: D,
|
|
22374
22416
|
showCreateButton: ((Pe = a.get("form")) == null ? void 0 : Pe.fields) !== void 0,
|
|
22375
22417
|
showToggleButton: a.size > 1
|
|
22376
|
-
}),
|
|
22418
|
+
}), Oe(), /* @__PURE__ */ jsx(FormModal, {
|
|
22377
22419
|
formView: a.get("form"),
|
|
22378
22420
|
model: B,
|
|
22379
22421
|
id: q == null ? void 0 : q.id,
|
|
@@ -22398,9 +22440,9 @@ const One2manyInput = (e) => {
|
|
|
22398
22440
|
...v == null ? void 0 : v(),
|
|
22399
22441
|
...S
|
|
22400
22442
|
},
|
|
22401
|
-
visible:
|
|
22443
|
+
visible: T,
|
|
22402
22444
|
onSelectValues: async (le) => {
|
|
22403
|
-
A(!1),
|
|
22445
|
+
A(!1), Te(le);
|
|
22404
22446
|
},
|
|
22405
22447
|
onCloseModal: () => {
|
|
22406
22448
|
A(!1);
|
|
@@ -22837,8 +22879,8 @@ const {
|
|
|
22837
22879
|
n == null || n(g);
|
|
22838
22880
|
};
|
|
22839
22881
|
async function v() {
|
|
22840
|
-
const g = await getMimeType(r), x = `data:${g == null ? void 0 : g.mime};base64,${r}`, b = document.createElement("a"), C = d(s),
|
|
22841
|
-
b.href = x, b.download = C ||
|
|
22882
|
+
const g = await getMimeType(r), x = `data:${g == null ? void 0 : g.mime};base64,${r}`, b = document.createElement("a"), C = d(s), O = d("name");
|
|
22883
|
+
b.href = x, b.download = C || O, b.click();
|
|
22842
22884
|
}
|
|
22843
22885
|
async function y() {
|
|
22844
22886
|
const g = await getMimeType(r);
|
|
@@ -23329,12 +23371,12 @@ function FormActionBar({
|
|
|
23329
23371
|
attachments: x,
|
|
23330
23372
|
formRef: b,
|
|
23331
23373
|
setFormHasChanges: C,
|
|
23332
|
-
previousView:
|
|
23374
|
+
previousView: O,
|
|
23333
23375
|
setPreviousView: k,
|
|
23334
23376
|
goToResourceId: w
|
|
23335
23377
|
} = useContext(ActionViewContext), {
|
|
23336
23378
|
t: E,
|
|
23337
|
-
lang:
|
|
23379
|
+
lang: T
|
|
23338
23380
|
} = useContext(LocaleContext), A = useContext(ContentRootContext), {
|
|
23339
23381
|
processAction: q
|
|
23340
23382
|
} = A || {}, $ = useContext(TabManagerContext), {
|
|
@@ -23347,7 +23389,7 @@ function FormActionBar({
|
|
|
23347
23389
|
function L(S) {
|
|
23348
23390
|
if (o) {
|
|
23349
23391
|
showDialog({
|
|
23350
|
-
lang:
|
|
23392
|
+
lang: T,
|
|
23351
23393
|
onOk: () => {
|
|
23352
23394
|
S();
|
|
23353
23395
|
}
|
|
@@ -23359,7 +23401,7 @@ function FormActionBar({
|
|
|
23359
23401
|
function I(S) {
|
|
23360
23402
|
if (o) {
|
|
23361
23403
|
showDialog$6({
|
|
23362
|
-
lang:
|
|
23404
|
+
lang: T,
|
|
23363
23405
|
onOk: () => {
|
|
23364
23406
|
S();
|
|
23365
23407
|
}
|
|
@@ -23371,13 +23413,13 @@ function FormActionBar({
|
|
|
23371
23413
|
function W() {
|
|
23372
23414
|
l && l.length > d + 1 ? (c == null || c(d + 1), f == null || f(l[d + 1].id)) : l && d + 1 === l.length && (c == null || c(0), f == null || f(l[0].id));
|
|
23373
23415
|
}
|
|
23374
|
-
function
|
|
23416
|
+
function z() {
|
|
23375
23417
|
l && d > 0 ? (c == null || c(d - 1), f == null || f(l[d - 1].id)) : l && d === 0 && (c == null || c(l.length - 1), f == null || f(l[l.length - 1].id));
|
|
23376
23418
|
}
|
|
23377
|
-
function
|
|
23419
|
+
function Y() {
|
|
23378
23420
|
showDialog$9({
|
|
23379
23421
|
confirmMessage: E("confirmRemoveItem"),
|
|
23380
|
-
lang:
|
|
23422
|
+
lang: T,
|
|
23381
23423
|
onOk: () => {
|
|
23382
23424
|
H();
|
|
23383
23425
|
}
|
|
@@ -23449,7 +23491,7 @@ function FormActionBar({
|
|
|
23449
23491
|
tooltip: E("delete"),
|
|
23450
23492
|
disabled: s || u === void 0 || v || y || g,
|
|
23451
23493
|
loading: v,
|
|
23452
|
-
onClick:
|
|
23494
|
+
onClick: Y
|
|
23453
23495
|
}), separator$2(), /* @__PURE__ */ jsx(ActionButton, {
|
|
23454
23496
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$3, {}),
|
|
23455
23497
|
tooltip: E("showLogs"),
|
|
@@ -23470,7 +23512,7 @@ function FormActionBar({
|
|
|
23470
23512
|
}
|
|
23471
23513
|
}), separator$2(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
23472
23514
|
currentView: r,
|
|
23473
|
-
previousView:
|
|
23515
|
+
previousView: O,
|
|
23474
23516
|
availableViews: t,
|
|
23475
23517
|
onChangeView: (S) => {
|
|
23476
23518
|
k == null || k(r), C == null || C(!1), n == null || n(S);
|
|
@@ -23484,7 +23526,7 @@ function FormActionBar({
|
|
|
23484
23526
|
disabled: U,
|
|
23485
23527
|
loading: !1,
|
|
23486
23528
|
onClick: () => {
|
|
23487
|
-
I(
|
|
23529
|
+
I(z);
|
|
23488
23530
|
}
|
|
23489
23531
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
23490
23532
|
icon: /* @__PURE__ */ jsx(RightOutlined, {}),
|
|
@@ -23722,17 +23764,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23722
23764
|
}
|
|
23723
23765
|
function f(g, x) {
|
|
23724
23766
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(g)))) {
|
|
23725
|
-
var b = [], C = !0,
|
|
23767
|
+
var b = [], C = !0, O = !1, k = void 0;
|
|
23726
23768
|
try {
|
|
23727
23769
|
for (var w = g[Symbol.iterator](), E; !(C = (E = w.next()).done) && (b.push(E.value), !(x && b.length === x)); C = !0)
|
|
23728
23770
|
;
|
|
23729
|
-
} catch (
|
|
23730
|
-
|
|
23771
|
+
} catch (T) {
|
|
23772
|
+
O = !0, k = T;
|
|
23731
23773
|
} finally {
|
|
23732
23774
|
try {
|
|
23733
23775
|
!C && w.return != null && w.return();
|
|
23734
23776
|
} finally {
|
|
23735
|
-
if (
|
|
23777
|
+
if (O)
|
|
23736
23778
|
throw k;
|
|
23737
23779
|
}
|
|
23738
23780
|
}
|
|
@@ -23771,9 +23813,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23771
23813
|
function m(g, x) {
|
|
23772
23814
|
if ((0, r.default)(g), !g || /[\s<>]/.test(g) || g.indexOf("mailto:") === 0 || (x = (0, o.default)(x, h), x.validate_length && g.length >= 2083) || !x.allow_fragments && g.includes("#") || !x.allow_query_components && (g.includes("?") || g.includes("&")))
|
|
23773
23815
|
return !1;
|
|
23774
|
-
var b, C,
|
|
23775
|
-
if (
|
|
23776
|
-
if (b =
|
|
23816
|
+
var b, C, O, k, w, E, T, A;
|
|
23817
|
+
if (T = g.split("#"), g = T.shift(), T = g.split("?"), g = T.shift(), T = g.split("://"), T.length > 1) {
|
|
23818
|
+
if (b = T.shift().toLowerCase(), x.require_valid_protocol && x.protocols.indexOf(b) === -1)
|
|
23777
23819
|
return !1;
|
|
23778
23820
|
} else {
|
|
23779
23821
|
if (x.require_protocol)
|
|
@@ -23781,28 +23823,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
23781
23823
|
if (g.substr(0, 2) === "//") {
|
|
23782
23824
|
if (!x.allow_protocol_relative_urls)
|
|
23783
23825
|
return !1;
|
|
23784
|
-
|
|
23826
|
+
T[0] = g.substr(2);
|
|
23785
23827
|
}
|
|
23786
23828
|
}
|
|
23787
|
-
if (g =
|
|
23829
|
+
if (g = T.join("://"), g === "")
|
|
23788
23830
|
return !1;
|
|
23789
|
-
if (
|
|
23831
|
+
if (T = g.split("/"), g = T.shift(), g === "" && !x.require_host)
|
|
23790
23832
|
return !0;
|
|
23791
|
-
if (
|
|
23792
|
-
if (x.disallow_auth ||
|
|
23833
|
+
if (T = g.split("@"), T.length > 1) {
|
|
23834
|
+
if (x.disallow_auth || T[0] === "" || (C = T.shift(), C.indexOf(":") >= 0 && C.split(":").length > 2))
|
|
23793
23835
|
return !1;
|
|
23794
23836
|
var q = C.split(":"), $ = u(q, 2), D = $[0], j = $[1];
|
|
23795
23837
|
if (D === "" && j === "")
|
|
23796
23838
|
return !1;
|
|
23797
23839
|
}
|
|
23798
|
-
k =
|
|
23840
|
+
k = T.join("@"), E = null, A = null;
|
|
23799
23841
|
var N = k.match(v);
|
|
23800
|
-
if (N ? (
|
|
23842
|
+
if (N ? (O = "", A = N[1], E = N[2] || null) : (T = k.split(":"), O = T.shift(), T.length && (E = T.join(":"))), E !== null && E.length > 0) {
|
|
23801
23843
|
if (w = parseInt(E, 10), !/^[0-9]+$/.test(E) || w <= 0 || w > 65535)
|
|
23802
23844
|
return !1;
|
|
23803
23845
|
} else if (x.require_port)
|
|
23804
23846
|
return !1;
|
|
23805
|
-
return x.host_whitelist ? _(
|
|
23847
|
+
return x.host_whitelist ? _(O, x.host_whitelist) : !(!(0, a.default)(O) && !(0, n.default)(O, x) && (!A || !(0, a.default)(A, 6)) || (O = O || A, x.host_blacklist && _(O, x.host_blacklist)));
|
|
23806
23848
|
}
|
|
23807
23849
|
e.exports = t.default, e.exports.default = t.default;
|
|
23808
23850
|
})(isURL$1, isURL$1.exports);
|
|
@@ -23947,19 +23989,19 @@ var isEmail$1 = { exports: {} }, isByteLength = { exports: {} };
|
|
|
23947
23989
|
}
|
|
23948
23990
|
if (!x.ignore_max_length && g.length > y)
|
|
23949
23991
|
return !1;
|
|
23950
|
-
var
|
|
23992
|
+
var O = g.split("@"), k = O.pop(), w = k.toLowerCase();
|
|
23951
23993
|
if (x.host_blacklist.includes(w))
|
|
23952
23994
|
return !1;
|
|
23953
|
-
var E =
|
|
23995
|
+
var E = O.join("@");
|
|
23954
23996
|
if (x.domain_specific_validation && (w === "gmail.com" || w === "googlemail.com")) {
|
|
23955
23997
|
E = E.toLowerCase();
|
|
23956
|
-
var
|
|
23957
|
-
if (!(0, a.default)(
|
|
23998
|
+
var T = E.split("+")[0];
|
|
23999
|
+
if (!(0, a.default)(T.replace(/\./g, ""), {
|
|
23958
24000
|
min: 6,
|
|
23959
24001
|
max: 30
|
|
23960
24002
|
}))
|
|
23961
24003
|
return !1;
|
|
23962
|
-
for (var A =
|
|
24004
|
+
for (var A = T.split("."), q = 0; q < A.length; q++)
|
|
23963
24005
|
if (!f.test(A[q]))
|
|
23964
24006
|
return !1;
|
|
23965
24007
|
}
|
|
@@ -24265,17 +24307,17 @@ const GraphActionView = (e) => {
|
|
|
24265
24307
|
setSorter: x = void 0,
|
|
24266
24308
|
setTotalItems: b = void 0,
|
|
24267
24309
|
setSearchTreeNameSearch: C = void 0,
|
|
24268
|
-
setTreeIsLoading:
|
|
24310
|
+
setTreeIsLoading: O = void 0,
|
|
24269
24311
|
limit: k,
|
|
24270
24312
|
setLimit: w,
|
|
24271
24313
|
searchParams: E,
|
|
24272
|
-
searchValues:
|
|
24314
|
+
searchValues: T,
|
|
24273
24315
|
setSearchValues: A,
|
|
24274
24316
|
currentView: q
|
|
24275
24317
|
} = c || {}, [$, D] = useState(!0);
|
|
24276
24318
|
useEffect(() => {
|
|
24277
|
-
var
|
|
24278
|
-
(
|
|
24319
|
+
var z;
|
|
24320
|
+
(z = l.current) == null || z.refresh();
|
|
24279
24321
|
}, [E]), useEffect(() => {
|
|
24280
24322
|
t.view_id !== q.view_id && D(!0);
|
|
24281
24323
|
}, [q]);
|
|
@@ -24293,7 +24335,7 @@ const GraphActionView = (e) => {
|
|
|
24293
24335
|
setSearchValues: A,
|
|
24294
24336
|
setSearchParams: y,
|
|
24295
24337
|
setSearchVisible: m,
|
|
24296
|
-
setTreeIsLoading:
|
|
24338
|
+
setTreeIsLoading: O,
|
|
24297
24339
|
context: a,
|
|
24298
24340
|
formView: s,
|
|
24299
24341
|
treeView: u,
|
|
@@ -24327,12 +24369,12 @@ const GraphActionView = (e) => {
|
|
|
24327
24369
|
onClear: j,
|
|
24328
24370
|
offset: I,
|
|
24329
24371
|
isSearching: N,
|
|
24330
|
-
onSubmit: (
|
|
24331
|
-
D(!1), y == null || y(
|
|
24372
|
+
onSubmit: (z) => {
|
|
24373
|
+
D(!1), y == null || y(z.params), m == null || m(!1);
|
|
24332
24374
|
},
|
|
24333
24375
|
searchError: L,
|
|
24334
24376
|
searchVisible: _,
|
|
24335
|
-
searchValues:
|
|
24377
|
+
searchValues: T,
|
|
24336
24378
|
showLimitOptions: !1
|
|
24337
24379
|
}), W ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsx(Graph, {
|
|
24338
24380
|
ref: l,
|
|
@@ -24341,7 +24383,7 @@ const GraphActionView = (e) => {
|
|
|
24341
24383
|
context: a,
|
|
24342
24384
|
domain: mergeParams(E || [], o),
|
|
24343
24385
|
limit: $ ? k : void 0,
|
|
24344
|
-
manualIds: $ ? h == null ? void 0 : h.map((
|
|
24386
|
+
manualIds: $ ? h == null ? void 0 : h.map((z) => z.id) : void 0
|
|
24345
24387
|
})]
|
|
24346
24388
|
});
|
|
24347
24389
|
}, FormActionView = (e) => {
|
|
@@ -24463,14 +24505,14 @@ function TreeActionBar(e) {
|
|
|
24463
24505
|
previousView: b
|
|
24464
24506
|
} = useContext(ActionViewContext), {
|
|
24465
24507
|
parentContext: C = {},
|
|
24466
|
-
treeExpandable:
|
|
24508
|
+
treeExpandable: O,
|
|
24467
24509
|
toolbar: k
|
|
24468
24510
|
} = e, {
|
|
24469
24511
|
t: w,
|
|
24470
24512
|
lang: E
|
|
24471
|
-
} = useContext(LocaleContext),
|
|
24513
|
+
} = useContext(LocaleContext), T = useContext(ContentRootContext), {
|
|
24472
24514
|
processAction: A
|
|
24473
|
-
} =
|
|
24515
|
+
} = T || {};
|
|
24474
24516
|
function q() {
|
|
24475
24517
|
showDialog$9({
|
|
24476
24518
|
confirmMessage: w("confirmRemove"),
|
|
@@ -24532,14 +24574,14 @@ function TreeActionBar(e) {
|
|
|
24532
24574
|
}
|
|
24533
24575
|
return /* @__PURE__ */ jsxs(Space, {
|
|
24534
24576
|
wrap: !0,
|
|
24535
|
-
children: [
|
|
24577
|
+
children: [O ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
24536
24578
|
children: [/* @__PURE__ */ jsx(SearchBar, {
|
|
24537
24579
|
disabled: u || s || g,
|
|
24538
24580
|
searchText: m,
|
|
24539
24581
|
onSearch: (N) => {
|
|
24540
24582
|
N && N.trim().length > 0 ? _ == null || _(N) : _ == null || _(void 0);
|
|
24541
24583
|
}
|
|
24542
|
-
}), !
|
|
24584
|
+
}), !O && /* @__PURE__ */ jsx(ButtonWithBadge, {
|
|
24543
24585
|
icon: /* @__PURE__ */ jsx(FilterOutlined, {
|
|
24544
24586
|
style: {
|
|
24545
24587
|
color: v ? "white" : void 0
|
|
@@ -24584,7 +24626,7 @@ function TreeActionBar(e) {
|
|
|
24584
24626
|
var N;
|
|
24585
24627
|
(N = d == null ? void 0 : d.current) == null || N.refreshResults();
|
|
24586
24628
|
}
|
|
24587
|
-
}), !
|
|
24629
|
+
}), !O && /* @__PURE__ */ jsxs(Fragment, {
|
|
24588
24630
|
children: [separator$1(), /* @__PURE__ */ jsx(ChangeViewButton, {
|
|
24589
24631
|
currentView: r,
|
|
24590
24632
|
availableViews: t,
|
|
@@ -24776,7 +24818,7 @@ function ActionView(e, t) {
|
|
|
24776
24818
|
action_type: v,
|
|
24777
24819
|
treeExpandable: y = !1,
|
|
24778
24820
|
limit: _
|
|
24779
|
-
} = e, [m, g] = useState(), [x, b] = useState([]), [C,
|
|
24821
|
+
} = e, [m, g] = useState(), [x, b] = useState([]), [C, O] = useState(!0), k = p || void 0, [w, E] = useState(k), [T, A] = useState([]), [q, $] = useState(), [D, j] = useState([]), [N, L] = useState(), [I, W] = useState(0), [z, Y] = useState(!1), [H, K] = useState(!1), [U, B] = useState(), {
|
|
24780
24822
|
t: S
|
|
24781
24823
|
} = useContext(LocaleContext), M = useRef(), V = useRef(), X = useContext(TabManagerContext), {
|
|
24782
24824
|
setCurrentView: Z,
|
|
@@ -24798,7 +24840,7 @@ function ActionView(e, t) {
|
|
|
24798
24840
|
canWeClose: te
|
|
24799
24841
|
}));
|
|
24800
24842
|
const ie = async () => {
|
|
24801
|
-
|
|
24843
|
+
O(!0);
|
|
24802
24844
|
const ae = [];
|
|
24803
24845
|
for (const fe of o) {
|
|
24804
24846
|
const [me, _e] = fe;
|
|
@@ -24810,25 +24852,25 @@ function ActionView(e, t) {
|
|
|
24810
24852
|
id: me,
|
|
24811
24853
|
context: a
|
|
24812
24854
|
}));
|
|
24813
|
-
} catch (
|
|
24814
|
-
console.error(`${n} - ${_e}\xA0- ${JSON.stringify(
|
|
24855
|
+
} catch (Te) {
|
|
24856
|
+
console.error(`${n} - ${_e}\xA0- ${JSON.stringify(Te, null, 2)}`);
|
|
24815
24857
|
continue;
|
|
24816
24858
|
}
|
|
24817
24859
|
switch (_e) {
|
|
24818
24860
|
case "dashboard": {
|
|
24819
|
-
const
|
|
24820
|
-
const [, Re] =
|
|
24861
|
+
const Te = o.find((Oe) => {
|
|
24862
|
+
const [, Re] = Oe;
|
|
24821
24863
|
return Re === "form";
|
|
24822
24864
|
});
|
|
24823
24865
|
let we;
|
|
24824
|
-
|
|
24866
|
+
Te && (we = {
|
|
24825
24867
|
action_id: h,
|
|
24826
24868
|
action_type: v,
|
|
24827
24869
|
name: s,
|
|
24828
24870
|
res_id: a.active_id,
|
|
24829
24871
|
res_model: n,
|
|
24830
|
-
view_id:
|
|
24831
|
-
view_type:
|
|
24872
|
+
view_id: Te[0],
|
|
24873
|
+
view_type: Te[1]
|
|
24832
24874
|
}), ae.push({
|
|
24833
24875
|
type: "dashboard",
|
|
24834
24876
|
id: a.active_id,
|
|
@@ -24864,7 +24906,7 @@ function ActionView(e, t) {
|
|
|
24864
24906
|
}
|
|
24865
24907
|
let ge;
|
|
24866
24908
|
!c && ae.find((fe) => fe.type === "tree") ? ge = ae.find((me) => me.type === "tree") : c ? ge = ae.find((me) => c.id ? me.type === c.type && me.view_id === c.id : me.type === c.type) : ge = ae.find((me) => me.type === "form"), ge || showDialog$8(`Error determining the first view to show.
|
|
24867
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), J(ge), b(ae),
|
|
24909
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), J(ge), b(ae), O(!1);
|
|
24868
24910
|
};
|
|
24869
24911
|
u({
|
|
24870
24912
|
tabKey: l,
|
|
@@ -24879,7 +24921,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
24879
24921
|
return m.type === "form" ? await M.current.cancelUnsavedChanges() : !0;
|
|
24880
24922
|
}
|
|
24881
24923
|
async function oe() {
|
|
24882
|
-
G === l && (m.type === "form" && !await M.current.cancelUnsavedChanges() ||
|
|
24924
|
+
G === l && (m.type === "form" && !await M.current.cancelUnsavedChanges() || Y(!0));
|
|
24883
24925
|
}
|
|
24884
24926
|
async function se(ae) {
|
|
24885
24927
|
var _e;
|
|
@@ -24896,12 +24938,12 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
24896
24938
|
} catch {
|
|
24897
24939
|
}
|
|
24898
24940
|
if (!fe) {
|
|
24899
|
-
K(!1),
|
|
24941
|
+
K(!1), Y(!1), showDialog$7(S("idNotFound"));
|
|
24900
24942
|
return;
|
|
24901
24943
|
}
|
|
24902
24944
|
} else
|
|
24903
24945
|
fe = D[ge];
|
|
24904
|
-
K(!1),
|
|
24946
|
+
K(!1), Y(!1);
|
|
24905
24947
|
const me = o.find((de) => de[1] === "form");
|
|
24906
24948
|
Q({
|
|
24907
24949
|
domain: [],
|
|
@@ -24999,18 +25041,18 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
24999
25041
|
setSorter: L,
|
|
25000
25042
|
totalItems: I,
|
|
25001
25043
|
setTotalItems: W,
|
|
25002
|
-
selectedRowItems:
|
|
25044
|
+
selectedRowItems: T,
|
|
25003
25045
|
setSelectedRowItems: A,
|
|
25004
25046
|
setSearchTreeNameSearch: B,
|
|
25005
25047
|
searchTreeNameSearch: U,
|
|
25006
25048
|
goToResourceId: se,
|
|
25007
25049
|
limit: _,
|
|
25008
25050
|
children: [xe(), /* @__PURE__ */ jsx(GoToResourceModal, {
|
|
25009
|
-
visible:
|
|
25051
|
+
visible: z,
|
|
25010
25052
|
onIdSubmitted: se,
|
|
25011
25053
|
isSearching: H,
|
|
25012
25054
|
onCancel: () => {
|
|
25013
|
-
|
|
25055
|
+
Y(!1);
|
|
25014
25056
|
}
|
|
25015
25057
|
})]
|
|
25016
25058
|
}) : null;
|
|
@@ -25204,8 +25246,8 @@ function DashboardTree(e) {
|
|
|
25204
25246
|
domain: o = [],
|
|
25205
25247
|
visible: s = !0,
|
|
25206
25248
|
parentContext: u = {}
|
|
25207
|
-
} = e, [l, c] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [v, y] = useState(), [_, m] = useState(), [g, x] = useState(1), [b, C] = useState(0),
|
|
25208
|
-
|
|
25249
|
+
} = e, [l, c] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [v, y] = useState(), [_, m] = useState(), [g, x] = useState(1), [b, C] = useState(0), O = useRef(DEFAULT_SEARCH_LIMIT), k = useRef([]), [w, E] = useState(0), [T, A] = useState([]), [q, $] = useState(void 0), [D, j] = useState(), [N, L] = useState(), [I, W] = useState(), [z, Y] = useState(!1), H = useRef([]), K = (F) => {
|
|
25250
|
+
Y(!0), x(F), C((F - 1) * O.current);
|
|
25209
25251
|
}, U = async () => {
|
|
25210
25252
|
const F = H.current.length > 0 ? H.current : o, P = mergeParams(k.current, F), {
|
|
25211
25253
|
colors: G
|
|
@@ -25215,7 +25257,7 @@ function DashboardTree(e) {
|
|
|
25215
25257
|
attrsEvaluated: J
|
|
25216
25258
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
25217
25259
|
params: P,
|
|
25218
|
-
limit:
|
|
25260
|
+
limit: O.current,
|
|
25219
25261
|
offset: b,
|
|
25220
25262
|
model: p,
|
|
25221
25263
|
fields: v.fields,
|
|
@@ -25236,11 +25278,11 @@ function DashboardTree(e) {
|
|
|
25236
25278
|
A(te);
|
|
25237
25279
|
}, B = async () => {
|
|
25238
25280
|
try {
|
|
25239
|
-
|
|
25281
|
+
Y(!0), await U();
|
|
25240
25282
|
} catch (F) {
|
|
25241
25283
|
L(JSON.stringify(F));
|
|
25242
25284
|
} finally {
|
|
25243
|
-
|
|
25285
|
+
Y(!1);
|
|
25244
25286
|
}
|
|
25245
25287
|
};
|
|
25246
25288
|
useEffect(() => {
|
|
@@ -25260,7 +25302,7 @@ function DashboardTree(e) {
|
|
|
25260
25302
|
action: t,
|
|
25261
25303
|
context: u
|
|
25262
25304
|
});
|
|
25263
|
-
H.current = F.domain, m(F.views.get("form")), y(F.views.get("tree")), h(F.model),
|
|
25305
|
+
H.current = F.domain, m(F.views.get("form")), y(F.views.get("tree")), h(F.model), O.current = F.limit;
|
|
25264
25306
|
}, V = async () => {
|
|
25265
25307
|
h(r);
|
|
25266
25308
|
const F = await ConnectionProvider.getHandler().getView({
|
|
@@ -25301,19 +25343,19 @@ function DashboardTree(e) {
|
|
|
25301
25343
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
25302
25344
|
showPagination: !1,
|
|
25303
25345
|
total: w,
|
|
25304
|
-
limit:
|
|
25346
|
+
limit: O.current,
|
|
25305
25347
|
page: g,
|
|
25306
25348
|
treeView: v,
|
|
25307
|
-
results:
|
|
25349
|
+
results: T,
|
|
25308
25350
|
onRequestPageChange: K,
|
|
25309
|
-
loading:
|
|
25351
|
+
loading: z,
|
|
25310
25352
|
onRowClicked: X,
|
|
25311
25353
|
colorsForResults: q,
|
|
25312
25354
|
sorter: D,
|
|
25313
25355
|
onChangeSort: (F) => {
|
|
25314
25356
|
j == null || j(F);
|
|
25315
25357
|
const P = sortResults({
|
|
25316
|
-
resultsToSort:
|
|
25358
|
+
resultsToSort: T,
|
|
25317
25359
|
sorter: F,
|
|
25318
25360
|
fields: {
|
|
25319
25361
|
...v.fields,
|
|
@@ -25386,11 +25428,11 @@ function Dashboard(e, t) {
|
|
|
25386
25428
|
async function m() {
|
|
25387
25429
|
c(!0), p(!0), f(void 0);
|
|
25388
25430
|
try {
|
|
25389
|
-
const w = await g(), E = await b(w),
|
|
25431
|
+
const w = await g(), E = await b(w), T = w.fields[itemsField].relation, A = E[itemsField].items;
|
|
25390
25432
|
_.current = w.fields;
|
|
25391
25433
|
const q = await x({
|
|
25392
25434
|
items: A,
|
|
25393
|
-
model:
|
|
25435
|
+
model: T,
|
|
25394
25436
|
context: n
|
|
25395
25437
|
}), $ = await C(q);
|
|
25396
25438
|
u($), c(!1), p(!1);
|
|
@@ -25408,12 +25450,12 @@ function Dashboard(e, t) {
|
|
|
25408
25450
|
async function x({
|
|
25409
25451
|
items: w,
|
|
25410
25452
|
model: E,
|
|
25411
|
-
context:
|
|
25453
|
+
context: T
|
|
25412
25454
|
}) {
|
|
25413
25455
|
y.current = (await ConnectionProvider.getHandler().getView({
|
|
25414
25456
|
model: E,
|
|
25415
25457
|
type: "form",
|
|
25416
|
-
context:
|
|
25458
|
+
context: T
|
|
25417
25459
|
})).fields;
|
|
25418
25460
|
const [A] = await readObjectValues({
|
|
25419
25461
|
treeView: {
|
|
@@ -25424,7 +25466,7 @@ function Dashboard(e, t) {
|
|
|
25424
25466
|
},
|
|
25425
25467
|
model: E,
|
|
25426
25468
|
items: w,
|
|
25427
|
-
context:
|
|
25469
|
+
context: T,
|
|
25428
25470
|
currentView: "form"
|
|
25429
25471
|
});
|
|
25430
25472
|
return A;
|
|
@@ -25439,24 +25481,24 @@ function Dashboard(e, t) {
|
|
|
25439
25481
|
}
|
|
25440
25482
|
async function C(w) {
|
|
25441
25483
|
const E = [];
|
|
25442
|
-
for (const
|
|
25484
|
+
for (const T of w) {
|
|
25443
25485
|
const {
|
|
25444
25486
|
values: A
|
|
25445
|
-
} =
|
|
25487
|
+
} = T;
|
|
25446
25488
|
if (A.action_id && A.action_id.length > 0) {
|
|
25447
25489
|
const q = parseInt(A.action_id[0], 10), $ = await fetchAction({
|
|
25448
25490
|
actionId: q,
|
|
25449
25491
|
rootContext: n
|
|
25450
25492
|
});
|
|
25451
25493
|
E.push({
|
|
25452
|
-
...
|
|
25494
|
+
...T,
|
|
25453
25495
|
actionData: $
|
|
25454
25496
|
});
|
|
25455
25497
|
}
|
|
25456
25498
|
}
|
|
25457
25499
|
return E;
|
|
25458
25500
|
}
|
|
25459
|
-
async function
|
|
25501
|
+
async function O(w) {
|
|
25460
25502
|
if (!v)
|
|
25461
25503
|
return;
|
|
25462
25504
|
const E = w.filter(($) => {
|
|
@@ -25510,10 +25552,10 @@ function Dashboard(e, t) {
|
|
|
25510
25552
|
type: "error",
|
|
25511
25553
|
banner: !0
|
|
25512
25554
|
})) : l ? /* @__PURE__ */ jsx(LoadingOutlined$3, {}) : /* @__PURE__ */ jsx(DashboardGrid, {
|
|
25513
|
-
onPositionItemsChanged:
|
|
25555
|
+
onPositionItemsChanged: O,
|
|
25514
25556
|
children: s.map((w, E) => {
|
|
25515
25557
|
const {
|
|
25516
|
-
actionData:
|
|
25558
|
+
actionData: T,
|
|
25517
25559
|
values: A
|
|
25518
25560
|
} = w, {
|
|
25519
25561
|
position: q,
|
|
@@ -25525,11 +25567,11 @@ function Dashboard(e, t) {
|
|
|
25525
25567
|
title: L,
|
|
25526
25568
|
views: I,
|
|
25527
25569
|
model: W,
|
|
25528
|
-
context:
|
|
25529
|
-
domain:
|
|
25570
|
+
context: z,
|
|
25571
|
+
domain: Y,
|
|
25530
25572
|
initialView: H,
|
|
25531
25573
|
limit: K
|
|
25532
|
-
} =
|
|
25574
|
+
} = T;
|
|
25533
25575
|
let U = {};
|
|
25534
25576
|
try {
|
|
25535
25577
|
U = JSON.parse(q.replace(/'/g, '"'));
|
|
@@ -25546,19 +25588,19 @@ function Dashboard(e, t) {
|
|
|
25546
25588
|
B = /* @__PURE__ */ jsx(Graph, {
|
|
25547
25589
|
view_id: I.filter((V) => V[1] === "graph")[0][0],
|
|
25548
25590
|
model: W,
|
|
25549
|
-
context:
|
|
25550
|
-
domain:
|
|
25591
|
+
context: z,
|
|
25592
|
+
domain: Y,
|
|
25551
25593
|
limit: K
|
|
25552
25594
|
});
|
|
25553
25595
|
else if ((H == null ? void 0 : H.type) === "form")
|
|
25554
25596
|
B = /* @__PURE__ */ jsx(DashboardForm, {
|
|
25555
25597
|
model: W,
|
|
25556
|
-
actionDomain:
|
|
25598
|
+
actionDomain: Y
|
|
25557
25599
|
});
|
|
25558
25600
|
else if ((H == null ? void 0 : H.type) === "tree")
|
|
25559
25601
|
B = /* @__PURE__ */ jsx(DashboardTree, {
|
|
25560
25602
|
model: W,
|
|
25561
|
-
domain:
|
|
25603
|
+
domain: Y,
|
|
25562
25604
|
view_id: I.filter((V) => V[1] === "tree")[0][0],
|
|
25563
25605
|
onRowClicked: (V) => {
|
|
25564
25606
|
const X = I.find((Z) => {
|
|
@@ -25571,7 +25613,7 @@ function Dashboard(e, t) {
|
|
|
25571
25613
|
actionType: G,
|
|
25572
25614
|
title: Q,
|
|
25573
25615
|
model: ee
|
|
25574
|
-
} =
|
|
25616
|
+
} = T, J = {
|
|
25575
25617
|
action_id: P,
|
|
25576
25618
|
action_type: G,
|
|
25577
25619
|
name: Q,
|
|
@@ -25596,8 +25638,8 @@ function Dashboard(e, t) {
|
|
|
25596
25638
|
title: L,
|
|
25597
25639
|
views: I,
|
|
25598
25640
|
model: W,
|
|
25599
|
-
context:
|
|
25600
|
-
domain:
|
|
25641
|
+
context: z,
|
|
25642
|
+
domain: Y,
|
|
25601
25643
|
setCanWeClose: () => {
|
|
25602
25644
|
},
|
|
25603
25645
|
initialView: V,
|
|
@@ -25615,7 +25657,7 @@ function Dashboard(e, t) {
|
|
|
25615
25657
|
actionType: F,
|
|
25616
25658
|
title: P,
|
|
25617
25659
|
model: G
|
|
25618
|
-
} =
|
|
25660
|
+
} = T;
|
|
25619
25661
|
S = {
|
|
25620
25662
|
action_id: Z,
|
|
25621
25663
|
action_type: F,
|
|
@@ -25705,7 +25747,7 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
25705
25747
|
w = [...w, ...E];
|
|
25706
25748
|
}
|
|
25707
25749
|
try {
|
|
25708
|
-
const
|
|
25750
|
+
const T = (await ConnectionProvider.getHandler().search({
|
|
25709
25751
|
model: p,
|
|
25710
25752
|
params: w,
|
|
25711
25753
|
fields: [y],
|
|
@@ -25721,7 +25763,7 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
25721
25763
|
value: A.id
|
|
25722
25764
|
};
|
|
25723
25765
|
});
|
|
25724
|
-
u(
|
|
25766
|
+
u(T);
|
|
25725
25767
|
} catch (E) {
|
|
25726
25768
|
c(E);
|
|
25727
25769
|
} finally {
|
|
@@ -25737,7 +25779,7 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
25737
25779
|
}
|
|
25738
25780
|
const C = () => {
|
|
25739
25781
|
k(s.map((w) => w.value));
|
|
25740
|
-
},
|
|
25782
|
+
}, O = () => {
|
|
25741
25783
|
k([]);
|
|
25742
25784
|
}, k = (w) => {
|
|
25743
25785
|
const E = a.map((A) => w.includes(A.id) ? A.operation == "pendingRemove" ? {
|
|
@@ -25746,8 +25788,8 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
25746
25788
|
} : A : {
|
|
25747
25789
|
id: A.id,
|
|
25748
25790
|
operation: "pendingRemove"
|
|
25749
|
-
}),
|
|
25750
|
-
w.filter((A) => !
|
|
25791
|
+
}), T = E.map((A) => A.id);
|
|
25792
|
+
w.filter((A) => !T.includes(A)).map((A) => {
|
|
25751
25793
|
E.push({
|
|
25752
25794
|
id: A,
|
|
25753
25795
|
operation: "pendingLink"
|
|
@@ -25779,7 +25821,7 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
25779
25821
|
disabled: o.length == s.length,
|
|
25780
25822
|
children: "Check all"
|
|
25781
25823
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
25782
|
-
onClick:
|
|
25824
|
+
onClick: O,
|
|
25783
25825
|
disabled: o.length === 0,
|
|
25784
25826
|
children: "Uncheck all"
|
|
25785
25827
|
})]
|
|
@@ -25940,7 +25982,7 @@ function RootView(e, t) {
|
|
|
25940
25982
|
}));
|
|
25941
25983
|
function p(b) {
|
|
25942
25984
|
if (b === s) {
|
|
25943
|
-
const C = l.findIndex((
|
|
25985
|
+
const C = l.findIndex((O) => O.key === b);
|
|
25944
25986
|
l[C - 1] && u(l[C - 1].key), l[C + 1] && u(l[C + 1].key);
|
|
25945
25987
|
}
|
|
25946
25988
|
c(l.filter((C) => C.key !== b)), d.current.delete(b);
|
|
@@ -25954,25 +25996,25 @@ function RootView(e, t) {
|
|
|
25954
25996
|
async function v({
|
|
25955
25997
|
action: b,
|
|
25956
25998
|
values: C,
|
|
25957
|
-
forced_values:
|
|
25999
|
+
forced_values: O,
|
|
25958
26000
|
initialViewType: k,
|
|
25959
26001
|
res_id: w,
|
|
25960
26002
|
domain: E = []
|
|
25961
26003
|
}) {
|
|
25962
|
-
const
|
|
26004
|
+
const T = await ConnectionProvider.getHandler().getActionData({
|
|
25963
26005
|
action: b,
|
|
25964
26006
|
context: a
|
|
25965
26007
|
});
|
|
25966
|
-
if (
|
|
26008
|
+
if (T.type === "ir.actions.wizard") {
|
|
25967
26009
|
showDialog$8("Action type not supported");
|
|
25968
26010
|
return;
|
|
25969
26011
|
}
|
|
25970
26012
|
const [A, q] = b.split(","), $ = parseInt(q), D = parseContext({
|
|
25971
|
-
context:
|
|
26013
|
+
context: T.context,
|
|
25972
26014
|
values: n,
|
|
25973
26015
|
fields: {}
|
|
25974
|
-
}), j =
|
|
25975
|
-
domain:
|
|
26016
|
+
}), j = T.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
26017
|
+
domain: T.domain,
|
|
25976
26018
|
values: n,
|
|
25977
26019
|
context: {
|
|
25978
26020
|
...a,
|
|
@@ -25983,9 +26025,9 @@ function RootView(e, t) {
|
|
|
25983
26025
|
views: L,
|
|
25984
26026
|
name: I,
|
|
25985
26027
|
target: W,
|
|
25986
|
-
view_type:
|
|
25987
|
-
limit:
|
|
25988
|
-
} =
|
|
26028
|
+
view_type: z,
|
|
26029
|
+
limit: Y
|
|
26030
|
+
} = T, H = z === "tree", K = [];
|
|
25989
26031
|
for (const B of L) {
|
|
25990
26032
|
const [S, M] = B;
|
|
25991
26033
|
if (S)
|
|
@@ -26035,37 +26077,37 @@ function RootView(e, t) {
|
|
|
26035
26077
|
action_type: A,
|
|
26036
26078
|
action_id: $,
|
|
26037
26079
|
values: C,
|
|
26038
|
-
forced_values:
|
|
26080
|
+
forced_values: O,
|
|
26039
26081
|
res_id: w,
|
|
26040
26082
|
treeExpandable: H,
|
|
26041
|
-
limit:
|
|
26083
|
+
limit: Y
|
|
26042
26084
|
});
|
|
26043
26085
|
}
|
|
26044
26086
|
function y({
|
|
26045
26087
|
title: b,
|
|
26046
26088
|
content: C,
|
|
26047
|
-
key:
|
|
26089
|
+
key: O,
|
|
26048
26090
|
action: k
|
|
26049
26091
|
}) {
|
|
26050
26092
|
let w = [...l];
|
|
26051
26093
|
l.length === 1 && l[0].key === "welcome" && (w = [...l.filter((E) => E.key !== "welcome")]), c([...w, {
|
|
26052
26094
|
title: b,
|
|
26053
|
-
key:
|
|
26095
|
+
key: O,
|
|
26054
26096
|
closable: !0,
|
|
26055
26097
|
content: C,
|
|
26056
26098
|
action: k
|
|
26057
|
-
}]), u(
|
|
26099
|
+
}]), u(O);
|
|
26058
26100
|
}
|
|
26059
26101
|
async function _({
|
|
26060
26102
|
relateData: b,
|
|
26061
26103
|
fields: C,
|
|
26062
|
-
values:
|
|
26104
|
+
values: O,
|
|
26063
26105
|
action_id: k,
|
|
26064
26106
|
action_type: w
|
|
26065
26107
|
}) {
|
|
26066
26108
|
const {
|
|
26067
26109
|
res_model: E,
|
|
26068
|
-
context:
|
|
26110
|
+
context: T,
|
|
26069
26111
|
domain: A,
|
|
26070
26112
|
views: q,
|
|
26071
26113
|
target: $,
|
|
@@ -26075,18 +26117,18 @@ function RootView(e, t) {
|
|
|
26075
26117
|
id: N,
|
|
26076
26118
|
type: L
|
|
26077
26119
|
}, W = parseContext({
|
|
26078
|
-
context:
|
|
26120
|
+
context: T,
|
|
26079
26121
|
values: {
|
|
26080
|
-
...
|
|
26122
|
+
...O,
|
|
26081
26123
|
...n
|
|
26082
26124
|
},
|
|
26083
26125
|
fields: C
|
|
26084
|
-
}),
|
|
26126
|
+
}), z = A ? await ConnectionProvider.getHandler().evalDomain({
|
|
26085
26127
|
domain: A,
|
|
26086
26128
|
values: transformPlainMany2Ones({
|
|
26087
26129
|
fields: C,
|
|
26088
26130
|
values: {
|
|
26089
|
-
...
|
|
26131
|
+
...O,
|
|
26090
26132
|
...n
|
|
26091
26133
|
}
|
|
26092
26134
|
}),
|
|
@@ -26104,7 +26146,7 @@ function RootView(e, t) {
|
|
|
26104
26146
|
...a,
|
|
26105
26147
|
...W
|
|
26106
26148
|
},
|
|
26107
|
-
domain:
|
|
26149
|
+
domain: z,
|
|
26108
26150
|
title: D,
|
|
26109
26151
|
initialView: I,
|
|
26110
26152
|
action_id: k,
|
|
@@ -26115,18 +26157,18 @@ function RootView(e, t) {
|
|
|
26115
26157
|
async function m(b) {
|
|
26116
26158
|
const {
|
|
26117
26159
|
action_id: C,
|
|
26118
|
-
action_type:
|
|
26160
|
+
action_type: O,
|
|
26119
26161
|
res_id: k,
|
|
26120
26162
|
view_id: w
|
|
26121
|
-
} = b, E = `${
|
|
26163
|
+
} = b, E = `${O},${C}`, T = await ConnectionProvider.getHandler().getActionData({
|
|
26122
26164
|
action: E,
|
|
26123
26165
|
context: a
|
|
26124
26166
|
}), A = parseContext({
|
|
26125
|
-
context:
|
|
26167
|
+
context: T.context,
|
|
26126
26168
|
values: n,
|
|
26127
26169
|
fields: {}
|
|
26128
|
-
}), q =
|
|
26129
|
-
domain:
|
|
26170
|
+
}), q = T.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
26171
|
+
domain: T.domain,
|
|
26130
26172
|
values: n,
|
|
26131
26173
|
context: {
|
|
26132
26174
|
...a,
|
|
@@ -26139,13 +26181,13 @@ function RootView(e, t) {
|
|
|
26139
26181
|
target: N,
|
|
26140
26182
|
view_type: L,
|
|
26141
26183
|
limit: I
|
|
26142
|
-
} =
|
|
26184
|
+
} = T, W = L === "tree", z = [];
|
|
26143
26185
|
for (const U of D) {
|
|
26144
26186
|
const [B, S] = U;
|
|
26145
26187
|
if (B)
|
|
26146
|
-
|
|
26188
|
+
z.push(U);
|
|
26147
26189
|
else if (S === "dashboard")
|
|
26148
|
-
|
|
26190
|
+
z.push([void 0, "dashboard"]);
|
|
26149
26191
|
else {
|
|
26150
26192
|
const {
|
|
26151
26193
|
view_id: M
|
|
@@ -26158,17 +26200,17 @@ function RootView(e, t) {
|
|
|
26158
26200
|
...A
|
|
26159
26201
|
}
|
|
26160
26202
|
});
|
|
26161
|
-
|
|
26203
|
+
z.push([M, S]);
|
|
26162
26204
|
}
|
|
26163
26205
|
}
|
|
26164
|
-
let
|
|
26206
|
+
let Y, H;
|
|
26165
26207
|
if (w == null) {
|
|
26166
|
-
const U =
|
|
26167
|
-
|
|
26208
|
+
const U = z.find((B) => B[0] === void 0);
|
|
26209
|
+
Y = void 0, H = U[1];
|
|
26168
26210
|
} else
|
|
26169
|
-
[
|
|
26211
|
+
[Y, H] = z.find((U) => U[0] === void 0 ? !1 : U[0] === w);
|
|
26170
26212
|
const K = {
|
|
26171
|
-
id:
|
|
26213
|
+
id: Y,
|
|
26172
26214
|
type: H
|
|
26173
26215
|
};
|
|
26174
26216
|
x({
|
|
@@ -26178,12 +26220,12 @@ function RootView(e, t) {
|
|
|
26178
26220
|
...A
|
|
26179
26221
|
},
|
|
26180
26222
|
model: $,
|
|
26181
|
-
views:
|
|
26223
|
+
views: z,
|
|
26182
26224
|
title: j,
|
|
26183
26225
|
target: N,
|
|
26184
26226
|
initialView: K,
|
|
26185
26227
|
action_id: C,
|
|
26186
|
-
action_type:
|
|
26228
|
+
action_type: O,
|
|
26187
26229
|
res_id: k,
|
|
26188
26230
|
treeExpandable: W,
|
|
26189
26231
|
limit: I
|
|
@@ -26192,16 +26234,16 @@ function RootView(e, t) {
|
|
|
26192
26234
|
async function g({
|
|
26193
26235
|
model: b,
|
|
26194
26236
|
values: C,
|
|
26195
|
-
forced_values:
|
|
26237
|
+
forced_values: O,
|
|
26196
26238
|
initialViewType: k,
|
|
26197
26239
|
res_id: w,
|
|
26198
26240
|
domain: E
|
|
26199
26241
|
}) {
|
|
26200
|
-
const
|
|
26242
|
+
const T = await ConnectionProvider.getHandler().getActionStringForModel(b);
|
|
26201
26243
|
await v({
|
|
26202
|
-
action:
|
|
26244
|
+
action: T,
|
|
26203
26245
|
values: C,
|
|
26204
|
-
forced_values:
|
|
26246
|
+
forced_values: O,
|
|
26205
26247
|
initialViewType: k,
|
|
26206
26248
|
res_id: w,
|
|
26207
26249
|
domain: E
|
|
@@ -26210,11 +26252,11 @@ function RootView(e, t) {
|
|
|
26210
26252
|
async function x({
|
|
26211
26253
|
domain: b,
|
|
26212
26254
|
context: C,
|
|
26213
|
-
model:
|
|
26255
|
+
model: O,
|
|
26214
26256
|
views: k,
|
|
26215
26257
|
title: w,
|
|
26216
26258
|
target: E,
|
|
26217
|
-
initialView:
|
|
26259
|
+
initialView: T,
|
|
26218
26260
|
action_id: A,
|
|
26219
26261
|
action_type: q,
|
|
26220
26262
|
res_id: $,
|
|
@@ -26226,9 +26268,9 @@ function RootView(e, t) {
|
|
|
26226
26268
|
const I = v4();
|
|
26227
26269
|
if (E !== "current") {
|
|
26228
26270
|
const W = await ConnectionProvider.getHandler().getView({
|
|
26229
|
-
model:
|
|
26271
|
+
model: O,
|
|
26230
26272
|
type: "form",
|
|
26231
|
-
id:
|
|
26273
|
+
id: T.type === "form" ? T.id : void 0,
|
|
26232
26274
|
context: {
|
|
26233
26275
|
...a,
|
|
26234
26276
|
...C
|
|
@@ -26236,7 +26278,7 @@ function RootView(e, t) {
|
|
|
26236
26278
|
});
|
|
26237
26279
|
f.current.openActionModal({
|
|
26238
26280
|
domain: b,
|
|
26239
|
-
model:
|
|
26281
|
+
model: O,
|
|
26240
26282
|
formView: W,
|
|
26241
26283
|
context: {
|
|
26242
26284
|
...a,
|
|
@@ -26250,10 +26292,10 @@ function RootView(e, t) {
|
|
|
26250
26292
|
}
|
|
26251
26293
|
});
|
|
26252
26294
|
} else {
|
|
26253
|
-
const W =
|
|
26254
|
-
...
|
|
26255
|
-
id:
|
|
26256
|
-
} :
|
|
26295
|
+
const W = T && Array.isArray(T.id) ? {
|
|
26296
|
+
...T,
|
|
26297
|
+
id: T.id[0]
|
|
26298
|
+
} : T;
|
|
26257
26299
|
y({
|
|
26258
26300
|
title: w,
|
|
26259
26301
|
action: {
|
|
@@ -26266,7 +26308,7 @@ function RootView(e, t) {
|
|
|
26266
26308
|
tabKey: I,
|
|
26267
26309
|
title: w,
|
|
26268
26310
|
views: k,
|
|
26269
|
-
model:
|
|
26311
|
+
model: O,
|
|
26270
26312
|
context: {
|
|
26271
26313
|
...a,
|
|
26272
26314
|
...C
|
|
@@ -26425,12 +26467,12 @@ const FavouriteButton = (e) => {
|
|
|
26425
26467
|
activeKey: x,
|
|
26426
26468
|
currentView: b,
|
|
26427
26469
|
currentId: C,
|
|
26428
|
-
openDefaultActionForModel:
|
|
26470
|
+
openDefaultActionForModel: O
|
|
26429
26471
|
} = _ || {};
|
|
26430
26472
|
useEffect(() => {
|
|
26431
26473
|
k();
|
|
26432
26474
|
}, []), useEffect(() => {
|
|
26433
|
-
|
|
26475
|
+
T();
|
|
26434
26476
|
}, [g, x, b, C]);
|
|
26435
26477
|
async function k() {
|
|
26436
26478
|
try {
|
|
@@ -26452,10 +26494,10 @@ const FavouriteButton = (e) => {
|
|
|
26452
26494
|
function E(j) {
|
|
26453
26495
|
j && k(), l(j);
|
|
26454
26496
|
}
|
|
26455
|
-
async function
|
|
26497
|
+
async function T() {
|
|
26456
26498
|
if (!b)
|
|
26457
26499
|
return;
|
|
26458
|
-
const j = g.find((
|
|
26500
|
+
const j = g.find((Y) => Y.key === x), {
|
|
26459
26501
|
id: N,
|
|
26460
26502
|
type: L
|
|
26461
26503
|
} = (j == null ? void 0 : j.action) || {};
|
|
@@ -26466,16 +26508,16 @@ const FavouriteButton = (e) => {
|
|
|
26466
26508
|
const I = b.view_id;
|
|
26467
26509
|
let W = !1;
|
|
26468
26510
|
b.type === "form" && (W = C || !1);
|
|
26469
|
-
const
|
|
26511
|
+
const z = await r({
|
|
26470
26512
|
action_id: N,
|
|
26471
26513
|
action_type: L,
|
|
26472
26514
|
view_id: I,
|
|
26473
26515
|
res_id: W
|
|
26474
26516
|
});
|
|
26475
|
-
|
|
26517
|
+
z !== !1 && v(z), s(z !== !1);
|
|
26476
26518
|
}
|
|
26477
26519
|
async function A() {
|
|
26478
|
-
l(!1),
|
|
26520
|
+
l(!1), O == null || O({
|
|
26479
26521
|
model: "ir.ui.view_sc"
|
|
26480
26522
|
});
|
|
26481
26523
|
}
|
|
@@ -26553,7 +26595,7 @@ const FavouriteButton = (e) => {
|
|
|
26553
26595
|
else {
|
|
26554
26596
|
if (!b)
|
|
26555
26597
|
return;
|
|
26556
|
-
const j = g.find((
|
|
26598
|
+
const j = g.find((z) => z.key === x), {
|
|
26557
26599
|
id: N,
|
|
26558
26600
|
type: L
|
|
26559
26601
|
} = (j == null ? void 0 : j.action) || {}, I = b.view_id;
|