@gisce/react-ooui 1.2.0-rc.41 → 1.2.0-rc.43
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/actionbar/FormActionBar.d.ts.map +1 -1
- package/dist/helpers/searchHelper.d.ts +1 -1
- package/dist/helpers/searchHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +743 -750
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +16 -16
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/SearchTree.d.ts.map +1 -1
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts +1 -0
- package/dist/widgets/views/searchFilter/SearchFilter.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actionbar/FormActionBar.tsx +7 -19
- package/src/helpers/searchHelper.ts +8 -7
- package/src/widgets/views/SearchTree.tsx +1 -0
- package/src/widgets/views/searchFilter/SearchFilter.tsx +12 -6
package/dist/react-ooui.es.js
CHANGED
|
@@ -1334,7 +1334,7 @@ function requireReactIs_development() {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
var E = d, O = f, G = c, P = u, M = r, L = p,
|
|
1337
|
+
var E = d, O = f, G = c, P = u, M = r, L = p, U = o, W = v, N = g, J = a, B = l, H = s, K = h, re = !1;
|
|
1338
1338
|
function ie(I) {
|
|
1339
1339
|
return re || (re = !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.")), ne(I) || T(I) === d;
|
|
1340
1340
|
}
|
|
@@ -1374,7 +1374,7 @@ function requireReactIs_development() {
|
|
|
1374
1374
|
function D(I) {
|
|
1375
1375
|
return T(I) === h;
|
|
1376
1376
|
}
|
|
1377
|
-
reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = G, reactIs_development.ContextProvider = P, reactIs_development.Element = M, reactIs_development.ForwardRef = L, reactIs_development.Fragment =
|
|
1377
|
+
reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = G, reactIs_development.ContextProvider = P, reactIs_development.Element = M, reactIs_development.ForwardRef = L, reactIs_development.Fragment = U, reactIs_development.Lazy = W, reactIs_development.Memo = N, reactIs_development.Portal = J, reactIs_development.Profiler = B, reactIs_development.StrictMode = H, reactIs_development.Suspense = K, reactIs_development.isAsyncMode = ie, reactIs_development.isConcurrentMode = ne, reactIs_development.isContextConsumer = Q, reactIs_development.isContextProvider = ae, reactIs_development.isElement = oe, reactIs_development.isForwardRef = ce, reactIs_development.isFragment = me, reactIs_development.isLazy = z, reactIs_development.isMemo = te, reactIs_development.isPortal = he, reactIs_development.isProfiler = ge, reactIs_development.isStrictMode = Te, reactIs_development.isSuspense = D, reactIs_development.isValidElementType = w, reactIs_development.typeOf = T;
|
|
1378
1378
|
}()), reactIs_development;
|
|
1379
1379
|
}
|
|
1380
1380
|
(function(e) {
|
|
@@ -1751,12 +1751,12 @@ function SingleObserver(e) {
|
|
|
1751
1751
|
offsetHeight: O
|
|
1752
1752
|
};
|
|
1753
1753
|
d.current = M;
|
|
1754
|
-
var L = E === Math.round(w) ? w : E,
|
|
1754
|
+
var L = E === Math.round(w) ? w : E, U = O === Math.round(T) ? T : O, W = _objectSpread2$g(_objectSpread2$g({}, M), {}, {
|
|
1755
1755
|
offsetWidth: L,
|
|
1756
|
-
offsetHeight:
|
|
1756
|
+
offsetHeight: U
|
|
1757
1757
|
});
|
|
1758
|
-
l == null || l(
|
|
1759
|
-
S(
|
|
1758
|
+
l == null || l(W, v, y), S && Promise.resolve().then(function() {
|
|
1759
|
+
S(W, v);
|
|
1760
1760
|
});
|
|
1761
1761
|
}
|
|
1762
1762
|
}, []);
|
|
@@ -1959,24 +1959,24 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1959
1959
|
}
|
|
1960
1960
|
} catch {
|
|
1961
1961
|
}
|
|
1962
|
-
}, L = React$n.useState(RESIZE_STABLE),
|
|
1962
|
+
}, L = React$n.useState(RESIZE_STABLE), U = _slicedToArray(L, 2), W = U[0], N = U[1], J = React$n.useState(), B = _slicedToArray(J, 2), H = B[0], K = B[1], re = function() {
|
|
1963
1963
|
N(RESIZE_START), process.env.NODE_ENV === "test" && (m == null || m());
|
|
1964
1964
|
};
|
|
1965
1965
|
useLayoutEffect$2(function() {
|
|
1966
1966
|
P && re();
|
|
1967
1967
|
}, [l, O, G, P]), useLayoutEffect$2(function() {
|
|
1968
|
-
if (
|
|
1968
|
+
if (W === RESIZE_START)
|
|
1969
1969
|
N(RESIZE_MEASURING);
|
|
1970
|
-
else if (
|
|
1970
|
+
else if (W === RESIZE_MEASURING) {
|
|
1971
1971
|
var ce = calculateAutoSizeStyle(w.current, !1, O, G);
|
|
1972
1972
|
N(RESIZE_STABLE), K(ce);
|
|
1973
1973
|
} else
|
|
1974
1974
|
M();
|
|
1975
|
-
}, [
|
|
1975
|
+
}, [W]);
|
|
1976
1976
|
var ie = React$n.useRef(), ne = function() {
|
|
1977
1977
|
wrapperRaf.cancel(ie.current);
|
|
1978
1978
|
}, Q = function(me) {
|
|
1979
|
-
|
|
1979
|
+
W === RESIZE_STABLE && (c == null || c(me), u && (ne(), ie.current = wrapperRaf(function() {
|
|
1980
1980
|
re();
|
|
1981
1981
|
})));
|
|
1982
1982
|
};
|
|
@@ -1984,7 +1984,7 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1984
1984
|
return ne;
|
|
1985
1985
|
}, []);
|
|
1986
1986
|
var ae = P ? H : null, oe = _objectSpread2$g(_objectSpread2$g({}, f), ae);
|
|
1987
|
-
return (
|
|
1987
|
+
return (W === RESIZE_START || W === RESIZE_MEASURING) && (oe.overflowY = "hidden", oe.overflowX = "hidden"), /* @__PURE__ */ jsx(ResizeObserver, {
|
|
1988
1988
|
onResize: Q,
|
|
1989
1989
|
disabled: !(u || c),
|
|
1990
1990
|
children: /* @__PURE__ */ jsx("textarea", {
|
|
@@ -2255,40 +2255,40 @@ function _regeneratorRuntime() {
|
|
|
2255
2255
|
_regeneratorRuntime = function() {
|
|
2256
2256
|
return e;
|
|
2257
2257
|
};
|
|
2258
|
-
var e = {}, r = Object.prototype, a = r.hasOwnProperty, o = Object.defineProperty || function(
|
|
2259
|
-
|
|
2258
|
+
var e = {}, r = Object.prototype, a = r.hasOwnProperty, o = Object.defineProperty || function(W, N, J) {
|
|
2259
|
+
W[N] = J.value;
|
|
2260
2260
|
}, s = typeof Symbol == "function" ? Symbol : {}, l = s.iterator || "@@iterator", u = s.asyncIterator || "@@asyncIterator", c = s.toStringTag || "@@toStringTag";
|
|
2261
|
-
function d(
|
|
2262
|
-
return Object.defineProperty(
|
|
2261
|
+
function d(W, N, J) {
|
|
2262
|
+
return Object.defineProperty(W, N, {
|
|
2263
2263
|
value: J,
|
|
2264
2264
|
enumerable: !0,
|
|
2265
2265
|
configurable: !0,
|
|
2266
2266
|
writable: !0
|
|
2267
|
-
}),
|
|
2267
|
+
}), W[N];
|
|
2268
2268
|
}
|
|
2269
2269
|
try {
|
|
2270
2270
|
d({}, "");
|
|
2271
2271
|
} catch {
|
|
2272
|
-
d = function(J,
|
|
2273
|
-
return J[
|
|
2272
|
+
d = function(J, B, H) {
|
|
2273
|
+
return J[B] = H;
|
|
2274
2274
|
};
|
|
2275
2275
|
}
|
|
2276
|
-
function f(
|
|
2277
|
-
var H = N && N.prototype instanceof m ? N : m, K = Object.create(H.prototype), re = new M(
|
|
2276
|
+
function f(W, N, J, B) {
|
|
2277
|
+
var H = N && N.prototype instanceof m ? N : m, K = Object.create(H.prototype), re = new M(B || []);
|
|
2278
2278
|
return o(K, "_invoke", {
|
|
2279
|
-
value: E(
|
|
2279
|
+
value: E(W, J, re)
|
|
2280
2280
|
}), K;
|
|
2281
2281
|
}
|
|
2282
|
-
function p(
|
|
2282
|
+
function p(W, N, J) {
|
|
2283
2283
|
try {
|
|
2284
2284
|
return {
|
|
2285
2285
|
type: "normal",
|
|
2286
|
-
arg:
|
|
2286
|
+
arg: W.call(N, J)
|
|
2287
2287
|
};
|
|
2288
|
-
} catch (
|
|
2288
|
+
} catch (B) {
|
|
2289
2289
|
return {
|
|
2290
2290
|
type: "throw",
|
|
2291
|
-
arg:
|
|
2291
|
+
arg: B
|
|
2292
2292
|
};
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
@@ -2307,16 +2307,16 @@ function _regeneratorRuntime() {
|
|
|
2307
2307
|
var S = Object.getPrototypeOf, y = S && S(S(L([])));
|
|
2308
2308
|
y && y !== r && a.call(y, l) && (C = y);
|
|
2309
2309
|
var x = v.prototype = m.prototype = Object.create(C);
|
|
2310
|
-
function w(
|
|
2310
|
+
function w(W) {
|
|
2311
2311
|
["next", "throw", "return"].forEach(function(N) {
|
|
2312
|
-
d(
|
|
2312
|
+
d(W, N, function(J) {
|
|
2313
2313
|
return this._invoke(N, J);
|
|
2314
2314
|
});
|
|
2315
2315
|
});
|
|
2316
2316
|
}
|
|
2317
|
-
function T(
|
|
2317
|
+
function T(W, N) {
|
|
2318
2318
|
function J(H, K, re, ie) {
|
|
2319
|
-
var ne = p(
|
|
2319
|
+
var ne = p(W[H], W, K);
|
|
2320
2320
|
if (ne.type !== "throw") {
|
|
2321
2321
|
var Q = ne.arg, ae = Q.value;
|
|
2322
2322
|
return ae && _typeof$2(ae) == "object" && a.call(ae, "__await") ? N.resolve(ae.__await).then(function(oe) {
|
|
@@ -2331,7 +2331,7 @@ function _regeneratorRuntime() {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
ie(ne.arg);
|
|
2333
2333
|
}
|
|
2334
|
-
var
|
|
2334
|
+
var B;
|
|
2335
2335
|
o(this, "_invoke", {
|
|
2336
2336
|
value: function(K, re) {
|
|
2337
2337
|
function ie() {
|
|
@@ -2339,19 +2339,19 @@ function _regeneratorRuntime() {
|
|
|
2339
2339
|
J(K, re, ne, Q);
|
|
2340
2340
|
});
|
|
2341
2341
|
}
|
|
2342
|
-
return
|
|
2342
|
+
return B = B ? B.then(ie, ie) : ie();
|
|
2343
2343
|
}
|
|
2344
2344
|
});
|
|
2345
2345
|
}
|
|
2346
|
-
function E(
|
|
2347
|
-
var
|
|
2346
|
+
function E(W, N, J) {
|
|
2347
|
+
var B = "suspendedStart";
|
|
2348
2348
|
return function(H, K) {
|
|
2349
|
-
if (
|
|
2349
|
+
if (B === "executing")
|
|
2350
2350
|
throw new Error("Generator is already running");
|
|
2351
|
-
if (
|
|
2351
|
+
if (B === "completed") {
|
|
2352
2352
|
if (H === "throw")
|
|
2353
2353
|
throw K;
|
|
2354
|
-
return
|
|
2354
|
+
return U();
|
|
2355
2355
|
}
|
|
2356
2356
|
for (J.method = H, J.arg = K; ; ) {
|
|
2357
2357
|
var re = J.delegate;
|
|
@@ -2366,78 +2366,78 @@ function _regeneratorRuntime() {
|
|
|
2366
2366
|
if (J.method === "next")
|
|
2367
2367
|
J.sent = J._sent = J.arg;
|
|
2368
2368
|
else if (J.method === "throw") {
|
|
2369
|
-
if (
|
|
2370
|
-
throw
|
|
2369
|
+
if (B === "suspendedStart")
|
|
2370
|
+
throw B = "completed", J.arg;
|
|
2371
2371
|
J.dispatchException(J.arg);
|
|
2372
2372
|
} else
|
|
2373
2373
|
J.method === "return" && J.abrupt("return", J.arg);
|
|
2374
|
-
|
|
2375
|
-
var ne = p(
|
|
2374
|
+
B = "executing";
|
|
2375
|
+
var ne = p(W, N, J);
|
|
2376
2376
|
if (ne.type === "normal") {
|
|
2377
|
-
if (
|
|
2377
|
+
if (B = J.done ? "completed" : "suspendedYield", ne.arg === h)
|
|
2378
2378
|
continue;
|
|
2379
2379
|
return {
|
|
2380
2380
|
value: ne.arg,
|
|
2381
2381
|
done: J.done
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
|
-
ne.type === "throw" && (
|
|
2384
|
+
ne.type === "throw" && (B = "completed", J.method = "throw", J.arg = ne.arg);
|
|
2385
2385
|
}
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
|
-
function O(
|
|
2389
|
-
var J =
|
|
2388
|
+
function O(W, N) {
|
|
2389
|
+
var J = W.iterator[N.method];
|
|
2390
2390
|
if (J === void 0) {
|
|
2391
2391
|
if (N.delegate = null, N.method === "throw") {
|
|
2392
|
-
if (
|
|
2392
|
+
if (W.iterator.return && (N.method = "return", N.arg = void 0, O(W, N), N.method === "throw"))
|
|
2393
2393
|
return h;
|
|
2394
2394
|
N.method = "throw", N.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
2395
2395
|
}
|
|
2396
2396
|
return h;
|
|
2397
2397
|
}
|
|
2398
|
-
var
|
|
2399
|
-
if (
|
|
2400
|
-
return N.method = "throw", N.arg =
|
|
2401
|
-
var H =
|
|
2402
|
-
return H ? H.done ? (N[
|
|
2398
|
+
var B = p(J, W.iterator, N.arg);
|
|
2399
|
+
if (B.type === "throw")
|
|
2400
|
+
return N.method = "throw", N.arg = B.arg, N.delegate = null, h;
|
|
2401
|
+
var H = B.arg;
|
|
2402
|
+
return H ? H.done ? (N[W.resultName] = H.value, N.next = W.nextLoc, N.method !== "return" && (N.method = "next", N.arg = void 0), N.delegate = null, h) : H : (N.method = "throw", N.arg = new TypeError("iterator result is not an object"), N.delegate = null, h);
|
|
2403
2403
|
}
|
|
2404
|
-
function G(
|
|
2404
|
+
function G(W) {
|
|
2405
2405
|
var N = {
|
|
2406
|
-
tryLoc:
|
|
2406
|
+
tryLoc: W[0]
|
|
2407
2407
|
};
|
|
2408
|
-
1 in
|
|
2408
|
+
1 in W && (N.catchLoc = W[1]), 2 in W && (N.finallyLoc = W[2], N.afterLoc = W[3]), this.tryEntries.push(N);
|
|
2409
2409
|
}
|
|
2410
|
-
function P(
|
|
2411
|
-
var N =
|
|
2412
|
-
N.type = "normal", delete N.arg,
|
|
2410
|
+
function P(W) {
|
|
2411
|
+
var N = W.completion || {};
|
|
2412
|
+
N.type = "normal", delete N.arg, W.completion = N;
|
|
2413
2413
|
}
|
|
2414
|
-
function M(
|
|
2414
|
+
function M(W) {
|
|
2415
2415
|
this.tryEntries = [{
|
|
2416
2416
|
tryLoc: "root"
|
|
2417
|
-
}],
|
|
2417
|
+
}], W.forEach(G, this), this.reset(!0);
|
|
2418
2418
|
}
|
|
2419
|
-
function L(
|
|
2420
|
-
if (
|
|
2421
|
-
var N =
|
|
2419
|
+
function L(W) {
|
|
2420
|
+
if (W) {
|
|
2421
|
+
var N = W[l];
|
|
2422
2422
|
if (N)
|
|
2423
|
-
return N.call(
|
|
2424
|
-
if (typeof
|
|
2425
|
-
return
|
|
2426
|
-
if (!isNaN(
|
|
2427
|
-
var J = -1,
|
|
2428
|
-
for (; ++J <
|
|
2429
|
-
if (a.call(
|
|
2430
|
-
return H.value =
|
|
2423
|
+
return N.call(W);
|
|
2424
|
+
if (typeof W.next == "function")
|
|
2425
|
+
return W;
|
|
2426
|
+
if (!isNaN(W.length)) {
|
|
2427
|
+
var J = -1, B = function H() {
|
|
2428
|
+
for (; ++J < W.length; )
|
|
2429
|
+
if (a.call(W, J))
|
|
2430
|
+
return H.value = W[J], H.done = !1, H;
|
|
2431
2431
|
return H.value = void 0, H.done = !0, H;
|
|
2432
2432
|
};
|
|
2433
|
-
return
|
|
2433
|
+
return B.next = B;
|
|
2434
2434
|
}
|
|
2435
2435
|
}
|
|
2436
2436
|
return {
|
|
2437
|
-
next:
|
|
2437
|
+
next: U
|
|
2438
2438
|
};
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2440
|
+
function U() {
|
|
2441
2441
|
return {
|
|
2442
2442
|
value: void 0,
|
|
2443
2443
|
done: !0
|
|
@@ -2449,20 +2449,20 @@ function _regeneratorRuntime() {
|
|
|
2449
2449
|
}), o(v, "constructor", {
|
|
2450
2450
|
value: g,
|
|
2451
2451
|
configurable: !0
|
|
2452
|
-
}), g.displayName = d(v, c, "GeneratorFunction"), e.isGeneratorFunction = function(
|
|
2453
|
-
var N = typeof
|
|
2452
|
+
}), g.displayName = d(v, c, "GeneratorFunction"), e.isGeneratorFunction = function(W) {
|
|
2453
|
+
var N = typeof W == "function" && W.constructor;
|
|
2454
2454
|
return !!N && (N === g || (N.displayName || N.name) === "GeneratorFunction");
|
|
2455
|
-
}, e.mark = function(
|
|
2456
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
2457
|
-
}, e.awrap = function(
|
|
2455
|
+
}, e.mark = function(W) {
|
|
2456
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(W, v) : (W.__proto__ = v, d(W, c, "GeneratorFunction")), W.prototype = Object.create(x), W;
|
|
2457
|
+
}, e.awrap = function(W) {
|
|
2458
2458
|
return {
|
|
2459
|
-
__await:
|
|
2459
|
+
__await: W
|
|
2460
2460
|
};
|
|
2461
2461
|
}, w(T.prototype), d(T.prototype, u, function() {
|
|
2462
2462
|
return this;
|
|
2463
|
-
}), e.AsyncIterator = T, e.async = function(
|
|
2463
|
+
}), e.AsyncIterator = T, e.async = function(W, N, J, B, H) {
|
|
2464
2464
|
H === void 0 && (H = Promise);
|
|
2465
|
-
var K = new T(f(
|
|
2465
|
+
var K = new T(f(W, N, J, B), H);
|
|
2466
2466
|
return e.isGeneratorFunction(N) ? K : K.next().then(function(re) {
|
|
2467
2467
|
return re.done ? re.value : K.next();
|
|
2468
2468
|
});
|
|
@@ -2470,10 +2470,10 @@ function _regeneratorRuntime() {
|
|
|
2470
2470
|
return this;
|
|
2471
2471
|
}), d(x, "toString", function() {
|
|
2472
2472
|
return "[object Generator]";
|
|
2473
|
-
}), e.keys = function(
|
|
2474
|
-
var N = Object(
|
|
2475
|
-
for (var
|
|
2476
|
-
J.push(
|
|
2473
|
+
}), e.keys = function(W) {
|
|
2474
|
+
var N = Object(W), J = [];
|
|
2475
|
+
for (var B in N)
|
|
2476
|
+
J.push(B);
|
|
2477
2477
|
return J.reverse(), function H() {
|
|
2478
2478
|
for (; J.length; ) {
|
|
2479
2479
|
var K = J.pop();
|
|
@@ -2500,35 +2500,35 @@ function _regeneratorRuntime() {
|
|
|
2500
2500
|
if (this.done)
|
|
2501
2501
|
throw N;
|
|
2502
2502
|
var J = this;
|
|
2503
|
-
function
|
|
2503
|
+
function B(Q, ae) {
|
|
2504
2504
|
return re.type = "throw", re.arg = N, J.next = Q, ae && (J.method = "next", J.arg = void 0), !!ae;
|
|
2505
2505
|
}
|
|
2506
2506
|
for (var H = this.tryEntries.length - 1; H >= 0; --H) {
|
|
2507
2507
|
var K = this.tryEntries[H], re = K.completion;
|
|
2508
2508
|
if (K.tryLoc === "root")
|
|
2509
|
-
return
|
|
2509
|
+
return B("end");
|
|
2510
2510
|
if (K.tryLoc <= this.prev) {
|
|
2511
2511
|
var ie = a.call(K, "catchLoc"), ne = a.call(K, "finallyLoc");
|
|
2512
2512
|
if (ie && ne) {
|
|
2513
2513
|
if (this.prev < K.catchLoc)
|
|
2514
|
-
return
|
|
2514
|
+
return B(K.catchLoc, !0);
|
|
2515
2515
|
if (this.prev < K.finallyLoc)
|
|
2516
|
-
return
|
|
2516
|
+
return B(K.finallyLoc);
|
|
2517
2517
|
} else if (ie) {
|
|
2518
2518
|
if (this.prev < K.catchLoc)
|
|
2519
|
-
return
|
|
2519
|
+
return B(K.catchLoc, !0);
|
|
2520
2520
|
} else {
|
|
2521
2521
|
if (!ne)
|
|
2522
2522
|
throw new Error("try statement without catch or finally");
|
|
2523
2523
|
if (this.prev < K.finallyLoc)
|
|
2524
|
-
return
|
|
2524
|
+
return B(K.finallyLoc);
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
},
|
|
2529
2529
|
abrupt: function(N, J) {
|
|
2530
|
-
for (var
|
|
2531
|
-
var H = this.tryEntries[
|
|
2530
|
+
for (var B = this.tryEntries.length - 1; B >= 0; --B) {
|
|
2531
|
+
var H = this.tryEntries[B];
|
|
2532
2532
|
if (H.tryLoc <= this.prev && a.call(H, "finallyLoc") && this.prev < H.finallyLoc) {
|
|
2533
2533
|
var K = H;
|
|
2534
2534
|
break;
|
|
@@ -2545,30 +2545,30 @@ function _regeneratorRuntime() {
|
|
|
2545
2545
|
},
|
|
2546
2546
|
finish: function(N) {
|
|
2547
2547
|
for (var J = this.tryEntries.length - 1; J >= 0; --J) {
|
|
2548
|
-
var
|
|
2549
|
-
if (
|
|
2550
|
-
return this.complete(
|
|
2548
|
+
var B = this.tryEntries[J];
|
|
2549
|
+
if (B.finallyLoc === N)
|
|
2550
|
+
return this.complete(B.completion, B.afterLoc), P(B), h;
|
|
2551
2551
|
}
|
|
2552
2552
|
},
|
|
2553
2553
|
catch: function(N) {
|
|
2554
2554
|
for (var J = this.tryEntries.length - 1; J >= 0; --J) {
|
|
2555
|
-
var
|
|
2556
|
-
if (
|
|
2557
|
-
var H =
|
|
2555
|
+
var B = this.tryEntries[J];
|
|
2556
|
+
if (B.tryLoc === N) {
|
|
2557
|
+
var H = B.completion;
|
|
2558
2558
|
if (H.type === "throw") {
|
|
2559
2559
|
var K = H.arg;
|
|
2560
|
-
P(
|
|
2560
|
+
P(B);
|
|
2561
2561
|
}
|
|
2562
2562
|
return K;
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
2565
|
throw new Error("illegal catch attempt");
|
|
2566
2566
|
},
|
|
2567
|
-
delegateYield: function(N, J,
|
|
2567
|
+
delegateYield: function(N, J, B) {
|
|
2568
2568
|
return this.delegate = {
|
|
2569
2569
|
iterator: L(N),
|
|
2570
2570
|
resultName: J,
|
|
2571
|
-
nextLoc:
|
|
2571
|
+
nextLoc: B
|
|
2572
2572
|
}, this.method === "next" && (this.arg = void 0), h;
|
|
2573
2573
|
}
|
|
2574
2574
|
}, e;
|
|
@@ -3187,18 +3187,18 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
3187
3187
|
if (y.required && !C.value)
|
|
3188
3188
|
return y.message !== void 0 ? P = [].concat(y.message).map(complementError(y, c)) : d.error && (P = [d.error(y, format$2(d.messages.required, y.field))]), S(P);
|
|
3189
3189
|
var M = {};
|
|
3190
|
-
y.defaultField && Object.keys(C.value).map(function(
|
|
3191
|
-
M[
|
|
3190
|
+
y.defaultField && Object.keys(C.value).map(function(W) {
|
|
3191
|
+
M[W] = y.defaultField;
|
|
3192
3192
|
}), M = _extends({}, M, C.rule.fields);
|
|
3193
3193
|
var L = {};
|
|
3194
|
-
Object.keys(M).forEach(function(
|
|
3195
|
-
var N = M[
|
|
3196
|
-
L[
|
|
3194
|
+
Object.keys(M).forEach(function(W) {
|
|
3195
|
+
var N = M[W], J = Array.isArray(N) ? N : [N];
|
|
3196
|
+
L[W] = J.map(w.bind(null, W));
|
|
3197
3197
|
});
|
|
3198
|
-
var
|
|
3199
|
-
|
|
3198
|
+
var U = new e(L);
|
|
3199
|
+
U.messages(d.messages), C.rule.options && (C.rule.options.messages = d.messages, C.rule.options.error = d.error), U.validate(C.value, C.rule.options || d, function(W) {
|
|
3200
3200
|
var N = [];
|
|
3201
|
-
P && P.length && N.push.apply(N, P),
|
|
3201
|
+
P && P.length && N.push.apply(N, P), W && W.length && N.push.apply(N, W), S(N.length ? N : null);
|
|
3202
3202
|
});
|
|
3203
3203
|
}
|
|
3204
3204
|
}
|
|
@@ -3684,8 +3684,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3684
3684
|
s.validatePromise = null;
|
|
3685
3685
|
var O = [], G = [];
|
|
3686
3686
|
(E = T.forEach) === null || E === void 0 || E.call(T, function(P) {
|
|
3687
|
-
var M = P.rule.warningOnly, L = P.errors,
|
|
3688
|
-
M ? G.push.apply(G, _toConsumableArray(
|
|
3687
|
+
var M = P.rule.warningOnly, L = P.errors, U = L === void 0 ? EMPTY_ERRORS : L;
|
|
3688
|
+
M ? G.push.apply(G, _toConsumableArray(U)) : O.push.apply(O, _toConsumableArray(U));
|
|
3689
3689
|
}), s.errors = O, s.warnings = G, s.triggerMetaEvent(), s.reRender();
|
|
3690
3690
|
}
|
|
3691
3691
|
}), w;
|
|
@@ -3739,29 +3739,29 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3739
3739
|
var f = s.props.fieldContext.getFieldsValue, p = s.getNamePath();
|
|
3740
3740
|
return getValue$3(d || f(!0), p);
|
|
3741
3741
|
}, s.getControlled = function() {
|
|
3742
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, m = f.getValueFromEvent, g = f.normalize, v = f.valuePropName, C = f.getValueProps, S = f.fieldContext, y = h !== void 0 ? h : S.validateTrigger, x = s.getNamePath(), w = S.getInternalHooks, T = S.getFieldsValue, E = w(HOOK_MARK), O = E.dispatch, G = s.getValue(), P = C || function(
|
|
3743
|
-
return _defineProperty$1({}, v,
|
|
3742
|
+
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = s.props, p = f.trigger, h = f.validateTrigger, m = f.getValueFromEvent, g = f.normalize, v = f.valuePropName, C = f.getValueProps, S = f.fieldContext, y = h !== void 0 ? h : S.validateTrigger, x = s.getNamePath(), w = S.getInternalHooks, T = S.getFieldsValue, E = w(HOOK_MARK), O = E.dispatch, G = s.getValue(), P = C || function(W) {
|
|
3743
|
+
return _defineProperty$1({}, v, W);
|
|
3744
3744
|
}, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(G));
|
|
3745
3745
|
L[p] = function() {
|
|
3746
3746
|
s.touched = !0, s.dirty = !0, s.triggerMetaEvent();
|
|
3747
|
-
for (var
|
|
3748
|
-
J[
|
|
3749
|
-
m ?
|
|
3747
|
+
for (var W, N = arguments.length, J = new Array(N), B = 0; B < N; B++)
|
|
3748
|
+
J[B] = arguments[B];
|
|
3749
|
+
m ? W = m.apply(void 0, J) : W = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (W = g(W, G, T(!0))), O({
|
|
3750
3750
|
type: "updateValue",
|
|
3751
3751
|
namePath: x,
|
|
3752
|
-
value:
|
|
3752
|
+
value: W
|
|
3753
3753
|
}), M && M.apply(void 0, J);
|
|
3754
3754
|
};
|
|
3755
|
-
var
|
|
3756
|
-
return
|
|
3757
|
-
var N = L[
|
|
3758
|
-
L[
|
|
3755
|
+
var U = toArray$3(y || []);
|
|
3756
|
+
return U.forEach(function(W) {
|
|
3757
|
+
var N = L[W];
|
|
3758
|
+
L[W] = function() {
|
|
3759
3759
|
N && N.apply(void 0, arguments);
|
|
3760
3760
|
var J = s.props.rules;
|
|
3761
3761
|
J && J.length && O({
|
|
3762
3762
|
type: "validateField",
|
|
3763
3763
|
namePath: x,
|
|
3764
|
-
triggerName:
|
|
3764
|
+
triggerName: W
|
|
3765
3765
|
});
|
|
3766
3766
|
};
|
|
3767
3767
|
}), L;
|
|
@@ -3862,10 +3862,10 @@ var ListContext = /* @__PURE__ */ React$n.createContext(null), List = function(r
|
|
|
3862
3862
|
},
|
|
3863
3863
|
remove: function(P) {
|
|
3864
3864
|
var M = T(), L = new Set(Array.isArray(P) ? P : [P]);
|
|
3865
|
-
L.size <= 0 || (f.keys = f.keys.filter(function(
|
|
3866
|
-
return !L.has(
|
|
3867
|
-
}), x(M.filter(function(
|
|
3868
|
-
return !L.has(
|
|
3865
|
+
L.size <= 0 || (f.keys = f.keys.filter(function(U, W) {
|
|
3866
|
+
return !L.has(W);
|
|
3867
|
+
}), x(M.filter(function(U, W) {
|
|
3868
|
+
return !L.has(W);
|
|
3869
3869
|
})));
|
|
3870
3870
|
},
|
|
3871
3871
|
move: function(P, M) {
|
|
@@ -4498,14 +4498,14 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4498
4498
|
children: l
|
|
4499
4499
|
});
|
|
4500
4500
|
}, _excluded$4 = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"], Form$2 = function(r, a) {
|
|
4501
|
-
var o = r.name, s = r.initialValues, l = r.fields, u = r.form, c = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, m = r.validateTrigger, g = m === void 0 ? "onChange" : m, v = r.onValuesChange, C = r.onFieldsChange, S = r.onFinish, y = r.onFinishFailed, x = _objectWithoutProperties(r, _excluded$4), w = React$n.useContext(FormContext$1), T = useForm(u), E = _slicedToArray(T, 1), O = E[0], G = O.getInternalHooks(HOOK_MARK), P = G.useSubscribe, M = G.setInitialValues, L = G.setCallbacks,
|
|
4501
|
+
var o = r.name, s = r.initialValues, l = r.fields, u = r.form, c = r.preserve, d = r.children, f = r.component, p = f === void 0 ? "form" : f, h = r.validateMessages, m = r.validateTrigger, g = m === void 0 ? "onChange" : m, v = r.onValuesChange, C = r.onFieldsChange, S = r.onFinish, y = r.onFinishFailed, x = _objectWithoutProperties(r, _excluded$4), w = React$n.useContext(FormContext$1), T = useForm(u), E = _slicedToArray(T, 1), O = E[0], G = O.getInternalHooks(HOOK_MARK), P = G.useSubscribe, M = G.setInitialValues, L = G.setCallbacks, U = G.setValidateMessages, W = G.setPreserve, N = G.destroyForm;
|
|
4502
4502
|
React$n.useImperativeHandle(a, function() {
|
|
4503
4503
|
return O;
|
|
4504
4504
|
}), React$n.useEffect(function() {
|
|
4505
4505
|
return w.registerForm(o, O), function() {
|
|
4506
4506
|
w.unregisterForm(o);
|
|
4507
4507
|
};
|
|
4508
|
-
}, [w, O, o]),
|
|
4508
|
+
}, [w, O, o]), U(_objectSpread2$g(_objectSpread2$g({}, w.validateMessages), h)), L({
|
|
4509
4509
|
onValuesChange: v,
|
|
4510
4510
|
onFieldsChange: function(ae) {
|
|
4511
4511
|
if (w.triggerFormChange(o, ae), C) {
|
|
@@ -4518,7 +4518,7 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4518
4518
|
w.triggerFormFinish(o, ae), S && S(ae);
|
|
4519
4519
|
},
|
|
4520
4520
|
onFinishFailed: y
|
|
4521
|
-
}),
|
|
4521
|
+
}), W(c);
|
|
4522
4522
|
var J = React$n.useRef(null);
|
|
4523
4523
|
M(s, !J.current), J.current || (J.current = !0), React$n.useEffect(
|
|
4524
4524
|
function() {
|
|
@@ -4526,12 +4526,12 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4526
4526
|
},
|
|
4527
4527
|
[]
|
|
4528
4528
|
);
|
|
4529
|
-
var
|
|
4529
|
+
var B, H = typeof d == "function";
|
|
4530
4530
|
if (H) {
|
|
4531
4531
|
var K = O.getFieldsValue(!0);
|
|
4532
|
-
|
|
4532
|
+
B = d(K, O);
|
|
4533
4533
|
} else
|
|
4534
|
-
|
|
4534
|
+
B = d;
|
|
4535
4535
|
P(!H);
|
|
4536
4536
|
var re = React$n.useRef();
|
|
4537
4537
|
React$n.useEffect(function() {
|
|
@@ -4543,7 +4543,7 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4543
4543
|
});
|
|
4544
4544
|
}, [O, g]), ne = /* @__PURE__ */ jsx(Context.Provider, {
|
|
4545
4545
|
value: ie,
|
|
4546
|
-
children:
|
|
4546
|
+
children: B
|
|
4547
4547
|
});
|
|
4548
4548
|
return p === !1 ? ne : /* @__PURE__ */ jsx(p, {
|
|
4549
4549
|
...x,
|
|
@@ -6258,9 +6258,9 @@ function requireAntdIcon() {
|
|
|
6258
6258
|
var a = e(objectSpread2.exports), o = e(slicedToArray.exports), s = e(defineProperty.exports), l = e(requireObjectWithoutProperties()), u = r(React__default), c = e(classnames.exports), d = e(Context$1), f = e(requireIconBase()), p = requireTwoTonePrimaryColor(), h = requireUtils(), m = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6259
6259
|
(0, p.setTwoToneColor)("#1890ff");
|
|
6260
6260
|
var g = /* @__PURE__ */ u.forwardRef(function(C, S) {
|
|
6261
|
-
var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex, G = C.onClick, P = C.twoToneColor, M = (0, l.default)(C, m), L = u.useContext(d.default),
|
|
6261
|
+
var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex, G = C.onClick, P = C.twoToneColor, M = (0, l.default)(C, m), L = u.useContext(d.default), U = L.prefixCls, W = U === void 0 ? "anticon" : U, N = (0, c.default)(W, (y = {}, (0, s.default)(y, "".concat(W, "-").concat(w.name), !!w.name), (0, s.default)(y, "".concat(W, "-spin"), !!T || w.name === "loading"), y), x), J = O;
|
|
6262
6262
|
J === void 0 && G && (J = -1);
|
|
6263
|
-
var
|
|
6263
|
+
var B = E ? {
|
|
6264
6264
|
msTransform: "rotate(".concat(E, "deg)"),
|
|
6265
6265
|
transform: "rotate(".concat(E, "deg)")
|
|
6266
6266
|
} : void 0, H = (0, h.normalizeTwoToneColors)(P), K = (0, o.default)(H, 2), re = K[0], ie = K[1];
|
|
@@ -6276,7 +6276,7 @@ function requireAntdIcon() {
|
|
|
6276
6276
|
icon: w,
|
|
6277
6277
|
primaryColor: re,
|
|
6278
6278
|
secondaryColor: ie,
|
|
6279
|
-
style:
|
|
6279
|
+
style: B
|
|
6280
6280
|
}));
|
|
6281
6281
|
});
|
|
6282
6282
|
g.displayName = "AntdIcon", g.getTwoToneColor = p.getTwoToneColor, g.setTwoToneColor = p.setTwoToneColor;
|
|
@@ -6620,7 +6620,7 @@ const useStepQueue = function(e, r) {
|
|
|
6620
6620
|
}, []), [l, s];
|
|
6621
6621
|
};
|
|
6622
6622
|
function useStatus(e, r, a, o) {
|
|
6623
|
-
var s = o.motionEnter, l = s === void 0 ? !0 : s, u = o.motionAppear, c = u === void 0 ? !0 : u, d = o.motionLeave, f = d === void 0 ? !0 : d, p = o.motionDeadline, h = o.motionLeaveImmediately, m = o.onAppearPrepare, g = o.onEnterPrepare, v = o.onLeavePrepare, C = o.onAppearStart, S = o.onEnterStart, y = o.onLeaveStart, x = o.onAppearActive, w = o.onEnterActive, T = o.onLeaveActive, E = o.onAppearEnd, O = o.onEnterEnd, G = o.onLeaveEnd, P = o.onVisibleChanged, M = useSafeState$1(), L = _slicedToArray(M, 2),
|
|
6623
|
+
var s = o.motionEnter, l = s === void 0 ? !0 : s, u = o.motionAppear, c = u === void 0 ? !0 : u, d = o.motionLeave, f = d === void 0 ? !0 : d, p = o.motionDeadline, h = o.motionLeaveImmediately, m = o.onAppearPrepare, g = o.onEnterPrepare, v = o.onLeavePrepare, C = o.onAppearStart, S = o.onEnterStart, y = o.onLeaveStart, x = o.onAppearActive, w = o.onEnterActive, T = o.onLeaveActive, E = o.onAppearEnd, O = o.onEnterEnd, G = o.onLeaveEnd, P = o.onVisibleChanged, M = useSafeState$1(), L = _slicedToArray(M, 2), U = L[0], W = L[1], N = useSafeState$1(STATUS_NONE), J = _slicedToArray(N, 2), B = J[0], H = J[1], K = useSafeState$1(null), re = _slicedToArray(K, 2), ie = re[0], ne = re[1], Q = useRef(!1), ae = useRef(null);
|
|
6624
6624
|
function oe() {
|
|
6625
6625
|
return a();
|
|
6626
6626
|
}
|
|
@@ -6629,12 +6629,12 @@ function useStatus(e, r, a, o) {
|
|
|
6629
6629
|
var Fe = oe();
|
|
6630
6630
|
if (!(Pe && !Pe.deadline && Pe.target !== Fe)) {
|
|
6631
6631
|
var et = ce.current, Xt;
|
|
6632
|
-
|
|
6632
|
+
B === STATUS_APPEAR && et ? Xt = E == null ? void 0 : E(Fe, Pe) : B === STATUS_ENTER && et ? Xt = O == null ? void 0 : O(Fe, Pe) : B === STATUS_LEAVE && et && (Xt = G == null ? void 0 : G(Fe, Pe)), B !== STATUS_NONE && et && Xt !== !1 && (H(STATUS_NONE, !0), ne(null, !0));
|
|
6633
6633
|
}
|
|
6634
6634
|
}
|
|
6635
6635
|
var z = useDomMotionEvents(me), te = _slicedToArray(z, 1), he = te[0], ge = React$n.useMemo(function() {
|
|
6636
6636
|
var Pe, Fe, et;
|
|
6637
|
-
switch (
|
|
6637
|
+
switch (B) {
|
|
6638
6638
|
case STATUS_APPEAR:
|
|
6639
6639
|
return Pe = {}, _defineProperty$1(Pe, STEP_PREPARE, m), _defineProperty$1(Pe, STEP_START, C), _defineProperty$1(Pe, STEP_ACTIVE, x), Pe;
|
|
6640
6640
|
case STATUS_ENTER:
|
|
@@ -6644,7 +6644,7 @@ function useStatus(e, r, a, o) {
|
|
|
6644
6644
|
default:
|
|
6645
6645
|
return {};
|
|
6646
6646
|
}
|
|
6647
|
-
}, [
|
|
6647
|
+
}, [B]), Te = useStepQueue(B, function(Pe) {
|
|
6648
6648
|
if (Pe === STEP_PREPARE) {
|
|
6649
6649
|
var Fe = ge[STEP_PREPARE];
|
|
6650
6650
|
return Fe ? Fe(oe()) : SkipStep;
|
|
@@ -6660,14 +6660,14 @@ function useStatus(e, r, a, o) {
|
|
|
6660
6660
|
}, p))), DoStep;
|
|
6661
6661
|
}), D = _slicedToArray(Te, 2), I = D[0], pe = D[1], Re = isActive(pe);
|
|
6662
6662
|
ce.current = Re, useIsomorphicLayoutEffect(function() {
|
|
6663
|
-
|
|
6663
|
+
W(r);
|
|
6664
6664
|
var Pe = Q.current;
|
|
6665
6665
|
if (Q.current = !0, !!e) {
|
|
6666
6666
|
var Fe;
|
|
6667
6667
|
!Pe && r && c && (Fe = STATUS_APPEAR), Pe && r && l && (Fe = STATUS_ENTER), (Pe && !r && f || !Pe && h && !r && f) && (Fe = STATUS_LEAVE), Fe && (H(Fe), I());
|
|
6668
6668
|
}
|
|
6669
6669
|
}, [r]), useEffect(function() {
|
|
6670
|
-
(
|
|
6670
|
+
(B === STATUS_APPEAR && !c || B === STATUS_ENTER && !l || B === STATUS_LEAVE && !f) && H(STATUS_NONE);
|
|
6671
6671
|
}, [c, l, f]), useEffect(function() {
|
|
6672
6672
|
return function() {
|
|
6673
6673
|
Q.current = !1, clearTimeout(ae.current);
|
|
@@ -6675,12 +6675,12 @@ function useStatus(e, r, a, o) {
|
|
|
6675
6675
|
}, []);
|
|
6676
6676
|
var Oe = React$n.useRef(!1);
|
|
6677
6677
|
useEffect(function() {
|
|
6678
|
-
|
|
6679
|
-
}, [
|
|
6678
|
+
U && (Oe.current = !0), U !== void 0 && B === STATUS_NONE && ((Oe.current || U) && (P == null || P(U)), Oe.current = !0);
|
|
6679
|
+
}, [U, B]);
|
|
6680
6680
|
var ve = ie;
|
|
6681
6681
|
return ge[STEP_PREPARE] && pe === STEP_START && (ve = _objectSpread2$g({
|
|
6682
6682
|
transition: "none"
|
|
6683
|
-
}, ve)), [
|
|
6683
|
+
}, ve)), [B, pe, ve, U != null ? U : r];
|
|
6684
6684
|
}
|
|
6685
6685
|
var DomWrapper = /* @__PURE__ */ function(e) {
|
|
6686
6686
|
_inherits(a, e);
|
|
@@ -6714,35 +6714,35 @@ function genCSSMotion(e) {
|
|
|
6714
6714
|
P && (M.current = !0);
|
|
6715
6715
|
var L = React$n.useCallback(function(K) {
|
|
6716
6716
|
S.current = K, fillRef$1(l, K);
|
|
6717
|
-
}, [l]),
|
|
6717
|
+
}, [l]), U, W = _objectSpread2$g(_objectSpread2$g({}, v), {}, {
|
|
6718
6718
|
visible: c
|
|
6719
6719
|
});
|
|
6720
6720
|
if (!h)
|
|
6721
|
-
|
|
6721
|
+
U = null;
|
|
6722
6722
|
else if (E === STATUS_NONE || !a(s))
|
|
6723
|
-
P ?
|
|
6723
|
+
P ? U = h(_objectSpread2$g({}, W), L) : !f && M.current ? U = h(_objectSpread2$g(_objectSpread2$g({}, W), {}, {
|
|
6724
6724
|
className: g
|
|
6725
|
-
}), L) : p ?
|
|
6725
|
+
}), L) : p ? U = h(_objectSpread2$g(_objectSpread2$g({}, W), {}, {
|
|
6726
6726
|
style: {
|
|
6727
6727
|
display: "none"
|
|
6728
6728
|
}
|
|
6729
|
-
}), L) :
|
|
6729
|
+
}), L) : U = null;
|
|
6730
6730
|
else {
|
|
6731
6731
|
var N, J;
|
|
6732
|
-
O === STEP_PREPARE ? J = "prepare" : isActive(O) ? J = "active" : O === STEP_START && (J = "start"),
|
|
6732
|
+
O === STEP_PREPARE ? J = "prepare" : isActive(O) ? J = "active" : O === STEP_START && (J = "start"), U = h(_objectSpread2$g(_objectSpread2$g({}, W), {}, {
|
|
6733
6733
|
className: classNames(getTransitionName$1(m, E), (N = {}, _defineProperty$1(N, getTransitionName$1(m, "".concat(E, "-").concat(J)), J), _defineProperty$1(N, m, typeof m == "string"), N)),
|
|
6734
6734
|
style: G
|
|
6735
6735
|
}), L);
|
|
6736
6736
|
}
|
|
6737
|
-
if (/* @__PURE__ */ React$n.isValidElement(
|
|
6738
|
-
var
|
|
6739
|
-
H || (
|
|
6737
|
+
if (/* @__PURE__ */ React$n.isValidElement(U) && supportRef$1(U)) {
|
|
6738
|
+
var B = U, H = B.ref;
|
|
6739
|
+
H || (U = /* @__PURE__ */ React$n.cloneElement(U, {
|
|
6740
6740
|
ref: L
|
|
6741
6741
|
}));
|
|
6742
6742
|
}
|
|
6743
6743
|
return /* @__PURE__ */ jsx(DomWrapper, {
|
|
6744
6744
|
ref: y,
|
|
6745
|
-
children:
|
|
6745
|
+
children: U
|
|
6746
6746
|
});
|
|
6747
6747
|
});
|
|
6748
6748
|
return o.displayName = "CSSMotion", o;
|
|
@@ -7326,24 +7326,24 @@ function requireNotice() {
|
|
|
7326
7326
|
}, {
|
|
7327
7327
|
key: "render",
|
|
7328
7328
|
value: function() {
|
|
7329
|
-
var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable, G = w.closeIcon, P = w.style, M = w.onClick, L = w.children,
|
|
7330
|
-
return (H.substr(0, 5) === "data-" || H.substr(0, 5) === "aria-" || H === "role") && (
|
|
7329
|
+
var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable, G = w.closeIcon, P = w.style, M = w.onClick, L = w.children, U = w.holder, W = "".concat(T, "-notice"), N = Object.keys(this.props).reduce(function(B, H) {
|
|
7330
|
+
return (H.substr(0, 5) === "data-" || H.substr(0, 5) === "aria-" || H === "role") && (B[H] = x.props[H]), B;
|
|
7331
7331
|
}, {}), J = /* @__PURE__ */ d.createElement("div", (0, a.default)({
|
|
7332
|
-
className: (0, p.default)(
|
|
7332
|
+
className: (0, p.default)(W, E, (0, o.default)({}, "".concat(W, "-closable"), O)),
|
|
7333
7333
|
style: P,
|
|
7334
7334
|
onMouseEnter: this.clearCloseTimer,
|
|
7335
7335
|
onMouseLeave: this.startCloseTimer,
|
|
7336
7336
|
onClick: M
|
|
7337
7337
|
}, N), /* @__PURE__ */ d.createElement("div", {
|
|
7338
|
-
className: "".concat(
|
|
7338
|
+
className: "".concat(W, "-content")
|
|
7339
7339
|
}, L), O ? /* @__PURE__ */ d.createElement("a", {
|
|
7340
7340
|
tabIndex: 0,
|
|
7341
7341
|
onClick: this.close,
|
|
7342
|
-
className: "".concat(
|
|
7342
|
+
className: "".concat(W, "-close")
|
|
7343
7343
|
}, G || /* @__PURE__ */ d.createElement("span", {
|
|
7344
|
-
className: "".concat(
|
|
7344
|
+
className: "".concat(W, "-close-x")
|
|
7345
7345
|
})) : null);
|
|
7346
|
-
return
|
|
7346
|
+
return U ? /* @__PURE__ */ f.default.createPortal(J, U) : J;
|
|
7347
7347
|
}
|
|
7348
7348
|
}]), S;
|
|
7349
7349
|
}(d.Component);
|
|
@@ -7424,26 +7424,26 @@ function requireUseMessage() {
|
|
|
7424
7424
|
}
|
|
7425
7425
|
}, x = (0, l.default)(y), w = (0, s.default)(x, 2), T = w[0], E = w[1];
|
|
7426
7426
|
function O(P) {
|
|
7427
|
-
var M = P.prefixCls, L = v("message", M),
|
|
7427
|
+
var M = P.prefixCls, L = v("message", M), U = v(), W = P.key || (0, c.getKeyThenIncreaseKey)(), N = new Promise(function(B) {
|
|
7428
7428
|
var H = function() {
|
|
7429
|
-
return typeof P.onClose == "function" && P.onClose(),
|
|
7429
|
+
return typeof P.onClose == "function" && P.onClose(), B(!0);
|
|
7430
7430
|
};
|
|
7431
7431
|
p((0, o.default)((0, o.default)({}, P), {
|
|
7432
7432
|
prefixCls: L,
|
|
7433
|
-
rootPrefixCls:
|
|
7433
|
+
rootPrefixCls: U,
|
|
7434
7434
|
getPopupContainer: C
|
|
7435
7435
|
}), function(K) {
|
|
7436
7436
|
var re = K.prefixCls, ie = K.instance;
|
|
7437
7437
|
S = ie, T(h((0, o.default)((0, o.default)({}, P), {
|
|
7438
|
-
key:
|
|
7438
|
+
key: W,
|
|
7439
7439
|
onClose: H
|
|
7440
7440
|
}), re));
|
|
7441
7441
|
});
|
|
7442
7442
|
}), J = function() {
|
|
7443
|
-
S && S.removeNotice(
|
|
7443
|
+
S && S.removeNotice(W);
|
|
7444
7444
|
};
|
|
7445
|
-
return J.then = function(
|
|
7446
|
-
return N.then(
|
|
7445
|
+
return J.then = function(B, H) {
|
|
7446
|
+
return N.then(B, H);
|
|
7447
7447
|
}, J.promise = N, J;
|
|
7448
7448
|
}
|
|
7449
7449
|
var G = u.useRef({});
|
|
@@ -7473,7 +7473,7 @@ function requireMessage() {
|
|
|
7473
7473
|
function L(Q) {
|
|
7474
7474
|
Q.top !== void 0 && (y = Q.top, C = null), Q.duration !== void 0 && (S = Q.duration), Q.prefixCls !== void 0 && (w = Q.prefixCls), Q.getContainer !== void 0 && (O = Q.getContainer, C = null), Q.transitionName !== void 0 && (T = Q.transitionName, C = null, E = !0), Q.maxCount !== void 0 && (G = Q.maxCount, C = null), Q.rtl !== void 0 && (P = Q.rtl);
|
|
7475
7475
|
}
|
|
7476
|
-
function
|
|
7476
|
+
function U(Q, ae) {
|
|
7477
7477
|
var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(), z = me.getPrefixCls, te = me.getRootPrefixCls, he = me.getIconPrefixCls, ge = z("message", oe || w), Te = te(Q.rootPrefixCls, ge), D = he();
|
|
7478
7478
|
if (C) {
|
|
7479
7479
|
ae({
|
|
@@ -7511,16 +7511,16 @@ function requireMessage() {
|
|
|
7511
7511
|
});
|
|
7512
7512
|
});
|
|
7513
7513
|
}
|
|
7514
|
-
var
|
|
7514
|
+
var W = {
|
|
7515
7515
|
info: d.default,
|
|
7516
7516
|
success: l.default,
|
|
7517
7517
|
error: u.default,
|
|
7518
7518
|
warning: c.default,
|
|
7519
7519
|
loading: f.default
|
|
7520
|
-
}, N = Object.keys(
|
|
7520
|
+
}, N = Object.keys(W);
|
|
7521
7521
|
e.typeList = N;
|
|
7522
7522
|
function J(Q, ae, oe) {
|
|
7523
|
-
var ce, me = Q.duration !== void 0 ? Q.duration : S, z =
|
|
7523
|
+
var ce, me = Q.duration !== void 0 ? Q.duration : S, z = W[Q.type], te = (0, p.default)("".concat(ae, "-custom-content"), (ce = {}, (0, s.default)(ce, "".concat(ae, "-").concat(Q.type), Q.type), (0, s.default)(ce, "".concat(ae, "-rtl"), P === !0), ce));
|
|
7524
7524
|
return {
|
|
7525
7525
|
key: Q.key,
|
|
7526
7526
|
duration: me,
|
|
@@ -7535,12 +7535,12 @@ function requireMessage() {
|
|
|
7535
7535
|
onClick: Q.onClick
|
|
7536
7536
|
};
|
|
7537
7537
|
}
|
|
7538
|
-
function
|
|
7538
|
+
function B(Q) {
|
|
7539
7539
|
var ae = Q.key || M(), oe = new Promise(function(me) {
|
|
7540
7540
|
var z = function() {
|
|
7541
7541
|
return typeof Q.onClose == "function" && Q.onClose(), me(!0);
|
|
7542
7542
|
};
|
|
7543
|
-
|
|
7543
|
+
U(Q, function(te) {
|
|
7544
7544
|
var he = te.prefixCls, ge = te.iconPrefixCls, Te = te.instance;
|
|
7545
7545
|
Te.notice(J((0, o.default)((0, o.default)({}, Q), {
|
|
7546
7546
|
key: ae,
|
|
@@ -7558,7 +7558,7 @@ function requireMessage() {
|
|
|
7558
7558
|
return Object.prototype.toString.call(Q) === "[object Object]" && !!Q.content;
|
|
7559
7559
|
}
|
|
7560
7560
|
var K = {
|
|
7561
|
-
open:
|
|
7561
|
+
open: B,
|
|
7562
7562
|
config: L,
|
|
7563
7563
|
destroy: function(ae) {
|
|
7564
7564
|
if (C)
|
|
@@ -7585,7 +7585,7 @@ function requireMessage() {
|
|
|
7585
7585
|
}
|
|
7586
7586
|
N.forEach(function(Q) {
|
|
7587
7587
|
return re(K, Q);
|
|
7588
|
-
}), K.warn = K.warning, K.useMessage = (0, v.default)(
|
|
7588
|
+
}), K.warn = K.warning, K.useMessage = (0, v.default)(U, J);
|
|
7589
7589
|
var ie = function() {
|
|
7590
7590
|
return process.env.NODE_ENV === "test" ? C : null;
|
|
7591
7591
|
};
|
|
@@ -7601,16 +7601,16 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7601
7601
|
e.exports = a = function() {
|
|
7602
7602
|
return o;
|
|
7603
7603
|
}, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
7604
|
-
var o = {}, s = Object.prototype, l = s.hasOwnProperty, u = Object.defineProperty || function(
|
|
7605
|
-
|
|
7604
|
+
var o = {}, s = Object.prototype, l = s.hasOwnProperty, u = Object.defineProperty || function(B, H, K) {
|
|
7605
|
+
B[H] = K.value;
|
|
7606
7606
|
}, c = typeof Symbol == "function" ? Symbol : {}, d = c.iterator || "@@iterator", f = c.asyncIterator || "@@asyncIterator", p = c.toStringTag || "@@toStringTag";
|
|
7607
|
-
function h(
|
|
7608
|
-
return Object.defineProperty(
|
|
7607
|
+
function h(B, H, K) {
|
|
7608
|
+
return Object.defineProperty(B, H, {
|
|
7609
7609
|
value: K,
|
|
7610
7610
|
enumerable: !0,
|
|
7611
7611
|
configurable: !0,
|
|
7612
7612
|
writable: !0
|
|
7613
|
-
}),
|
|
7613
|
+
}), B[H];
|
|
7614
7614
|
}
|
|
7615
7615
|
try {
|
|
7616
7616
|
h({}, "");
|
|
@@ -7619,17 +7619,17 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7619
7619
|
return K[re] = ie;
|
|
7620
7620
|
};
|
|
7621
7621
|
}
|
|
7622
|
-
function m(
|
|
7623
|
-
var ie = H && H.prototype instanceof C ? H : C, ne = Object.create(ie.prototype), Q = new
|
|
7622
|
+
function m(B, H, K, re) {
|
|
7623
|
+
var ie = H && H.prototype instanceof C ? H : C, ne = Object.create(ie.prototype), Q = new W(re || []);
|
|
7624
7624
|
return u(ne, "_invoke", {
|
|
7625
|
-
value: P(
|
|
7625
|
+
value: P(B, K, Q)
|
|
7626
7626
|
}), ne;
|
|
7627
7627
|
}
|
|
7628
|
-
function g(
|
|
7628
|
+
function g(B, H, K) {
|
|
7629
7629
|
try {
|
|
7630
7630
|
return {
|
|
7631
7631
|
type: "normal",
|
|
7632
|
-
arg:
|
|
7632
|
+
arg: B.call(H, K)
|
|
7633
7633
|
};
|
|
7634
7634
|
} catch (re) {
|
|
7635
7635
|
return {
|
|
@@ -7653,16 +7653,16 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7653
7653
|
var w = Object.getPrototypeOf, T = w && w(w(N([])));
|
|
7654
7654
|
T && T !== s && l.call(T, d) && (x = T);
|
|
7655
7655
|
var E = y.prototype = C.prototype = Object.create(x);
|
|
7656
|
-
function O(
|
|
7656
|
+
function O(B) {
|
|
7657
7657
|
["next", "throw", "return"].forEach(function(H) {
|
|
7658
|
-
h(
|
|
7658
|
+
h(B, H, function(K) {
|
|
7659
7659
|
return this._invoke(H, K);
|
|
7660
7660
|
});
|
|
7661
7661
|
});
|
|
7662
7662
|
}
|
|
7663
|
-
function G(
|
|
7663
|
+
function G(B, H) {
|
|
7664
7664
|
function K(ie, ne, Q, ae) {
|
|
7665
|
-
var oe = g(
|
|
7665
|
+
var oe = g(B[ie], B, ne);
|
|
7666
7666
|
if (oe.type !== "throw") {
|
|
7667
7667
|
var ce = oe.arg, me = ce.value;
|
|
7668
7668
|
return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(z) {
|
|
@@ -7689,7 +7689,7 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7689
7689
|
}
|
|
7690
7690
|
});
|
|
7691
7691
|
}
|
|
7692
|
-
function P(
|
|
7692
|
+
function P(B, H, K) {
|
|
7693
7693
|
var re = "suspendedStart";
|
|
7694
7694
|
return function(ie, ne) {
|
|
7695
7695
|
if (re === "executing")
|
|
@@ -7718,7 +7718,7 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7718
7718
|
} else
|
|
7719
7719
|
K.method === "return" && K.abrupt("return", K.arg);
|
|
7720
7720
|
re = "executing";
|
|
7721
|
-
var oe = g(
|
|
7721
|
+
var oe = g(B, H, K);
|
|
7722
7722
|
if (oe.type === "normal") {
|
|
7723
7723
|
if (re = K.done ? "completed" : "suspendedYield", oe.arg === v)
|
|
7724
7724
|
continue;
|
|
@@ -7731,49 +7731,49 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7731
7731
|
}
|
|
7732
7732
|
};
|
|
7733
7733
|
}
|
|
7734
|
-
function M(
|
|
7735
|
-
var K =
|
|
7734
|
+
function M(B, H) {
|
|
7735
|
+
var K = B.iterator[H.method];
|
|
7736
7736
|
if (K === void 0) {
|
|
7737
7737
|
if (H.delegate = null, H.method === "throw") {
|
|
7738
|
-
if (
|
|
7738
|
+
if (B.iterator.return && (H.method = "return", H.arg = void 0, M(B, H), H.method === "throw"))
|
|
7739
7739
|
return v;
|
|
7740
7740
|
H.method = "throw", H.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
7741
7741
|
}
|
|
7742
7742
|
return v;
|
|
7743
7743
|
}
|
|
7744
|
-
var re = g(K,
|
|
7744
|
+
var re = g(K, B.iterator, H.arg);
|
|
7745
7745
|
if (re.type === "throw")
|
|
7746
7746
|
return H.method = "throw", H.arg = re.arg, H.delegate = null, v;
|
|
7747
7747
|
var ie = re.arg;
|
|
7748
|
-
return ie ? ie.done ? (H[
|
|
7748
|
+
return ie ? ie.done ? (H[B.resultName] = ie.value, H.next = B.nextLoc, H.method !== "return" && (H.method = "next", H.arg = void 0), H.delegate = null, v) : ie : (H.method = "throw", H.arg = new TypeError("iterator result is not an object"), H.delegate = null, v);
|
|
7749
7749
|
}
|
|
7750
|
-
function L(
|
|
7750
|
+
function L(B) {
|
|
7751
7751
|
var H = {
|
|
7752
|
-
tryLoc:
|
|
7752
|
+
tryLoc: B[0]
|
|
7753
7753
|
};
|
|
7754
|
-
1 in
|
|
7754
|
+
1 in B && (H.catchLoc = B[1]), 2 in B && (H.finallyLoc = B[2], H.afterLoc = B[3]), this.tryEntries.push(H);
|
|
7755
7755
|
}
|
|
7756
|
-
function
|
|
7757
|
-
var H =
|
|
7758
|
-
H.type = "normal", delete H.arg,
|
|
7756
|
+
function U(B) {
|
|
7757
|
+
var H = B.completion || {};
|
|
7758
|
+
H.type = "normal", delete H.arg, B.completion = H;
|
|
7759
7759
|
}
|
|
7760
|
-
function B
|
|
7760
|
+
function W(B) {
|
|
7761
7761
|
this.tryEntries = [{
|
|
7762
7762
|
tryLoc: "root"
|
|
7763
|
-
}],
|
|
7763
|
+
}], B.forEach(L, this), this.reset(!0);
|
|
7764
7764
|
}
|
|
7765
|
-
function N(
|
|
7766
|
-
if (
|
|
7767
|
-
var H =
|
|
7765
|
+
function N(B) {
|
|
7766
|
+
if (B) {
|
|
7767
|
+
var H = B[d];
|
|
7768
7768
|
if (H)
|
|
7769
|
-
return H.call(
|
|
7770
|
-
if (typeof
|
|
7771
|
-
return
|
|
7772
|
-
if (!isNaN(
|
|
7769
|
+
return H.call(B);
|
|
7770
|
+
if (typeof B.next == "function")
|
|
7771
|
+
return B;
|
|
7772
|
+
if (!isNaN(B.length)) {
|
|
7773
7773
|
var K = -1, re = function ie() {
|
|
7774
|
-
for (; ++K <
|
|
7775
|
-
if (l.call(
|
|
7776
|
-
return ie.value =
|
|
7774
|
+
for (; ++K < B.length; )
|
|
7775
|
+
if (l.call(B, K))
|
|
7776
|
+
return ie.value = B[K], ie.done = !1, ie;
|
|
7777
7777
|
return ie.value = void 0, ie.done = !0, ie;
|
|
7778
7778
|
};
|
|
7779
7779
|
return re.next = re;
|
|
@@ -7795,20 +7795,20 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7795
7795
|
}), u(y, "constructor", {
|
|
7796
7796
|
value: S,
|
|
7797
7797
|
configurable: !0
|
|
7798
|
-
}), S.displayName = h(y, p, "GeneratorFunction"), o.isGeneratorFunction = function(
|
|
7799
|
-
var H = typeof
|
|
7798
|
+
}), S.displayName = h(y, p, "GeneratorFunction"), o.isGeneratorFunction = function(B) {
|
|
7799
|
+
var H = typeof B == "function" && B.constructor;
|
|
7800
7800
|
return !!H && (H === S || (H.displayName || H.name) === "GeneratorFunction");
|
|
7801
|
-
}, o.mark = function(
|
|
7802
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
7803
|
-
}, o.awrap = function(
|
|
7801
|
+
}, o.mark = function(B) {
|
|
7802
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(B, y) : (B.__proto__ = y, h(B, p, "GeneratorFunction")), B.prototype = Object.create(E), B;
|
|
7803
|
+
}, o.awrap = function(B) {
|
|
7804
7804
|
return {
|
|
7805
|
-
__await:
|
|
7805
|
+
__await: B
|
|
7806
7806
|
};
|
|
7807
7807
|
}, O(G.prototype), h(G.prototype, f, function() {
|
|
7808
7808
|
return this;
|
|
7809
|
-
}), o.AsyncIterator = G, o.async = function(
|
|
7809
|
+
}), o.AsyncIterator = G, o.async = function(B, H, K, re, ie) {
|
|
7810
7810
|
ie === void 0 && (ie = Promise);
|
|
7811
|
-
var ne = new G(m(
|
|
7811
|
+
var ne = new G(m(B, H, K, re), ie);
|
|
7812
7812
|
return o.isGeneratorFunction(H) ? ne : ne.next().then(function(Q) {
|
|
7813
7813
|
return Q.done ? Q.value : ne.next();
|
|
7814
7814
|
});
|
|
@@ -7816,8 +7816,8 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7816
7816
|
return this;
|
|
7817
7817
|
}), h(E, "toString", function() {
|
|
7818
7818
|
return "[object Generator]";
|
|
7819
|
-
}), o.keys = function(
|
|
7820
|
-
var H = Object(
|
|
7819
|
+
}), o.keys = function(B) {
|
|
7820
|
+
var H = Object(B), K = [];
|
|
7821
7821
|
for (var re in H)
|
|
7822
7822
|
K.push(re);
|
|
7823
7823
|
return K.reverse(), function ie() {
|
|
@@ -7828,10 +7828,10 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7828
7828
|
}
|
|
7829
7829
|
return ie.done = !0, ie;
|
|
7830
7830
|
};
|
|
7831
|
-
}, o.values = N,
|
|
7832
|
-
constructor:
|
|
7831
|
+
}, o.values = N, W.prototype = {
|
|
7832
|
+
constructor: W,
|
|
7833
7833
|
reset: function(H) {
|
|
7834
|
-
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(
|
|
7834
|
+
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(U), !H)
|
|
7835
7835
|
for (var K in this)
|
|
7836
7836
|
K.charAt(0) === "t" && l.call(this, K) && !isNaN(+K.slice(1)) && (this[K] = void 0);
|
|
7837
7837
|
},
|
|
@@ -7893,7 +7893,7 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7893
7893
|
for (var K = this.tryEntries.length - 1; K >= 0; --K) {
|
|
7894
7894
|
var re = this.tryEntries[K];
|
|
7895
7895
|
if (re.finallyLoc === H)
|
|
7896
|
-
return this.complete(re.completion, re.afterLoc),
|
|
7896
|
+
return this.complete(re.completion, re.afterLoc), U(re), v;
|
|
7897
7897
|
}
|
|
7898
7898
|
},
|
|
7899
7899
|
catch: function(H) {
|
|
@@ -7903,7 +7903,7 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7903
7903
|
var ie = re.completion;
|
|
7904
7904
|
if (ie.type === "throw") {
|
|
7905
7905
|
var ne = ie.arg;
|
|
7906
|
-
|
|
7906
|
+
U(re);
|
|
7907
7907
|
}
|
|
7908
7908
|
return ne;
|
|
7909
7909
|
}
|
|
@@ -8106,8 +8106,8 @@ function requireUseNotification() {
|
|
|
8106
8106
|
f((0, o.default)((0, o.default)({}, O), {
|
|
8107
8107
|
prefixCls: P
|
|
8108
8108
|
}), function(M) {
|
|
8109
|
-
var L = M.prefixCls,
|
|
8110
|
-
v =
|
|
8109
|
+
var L = M.prefixCls, U = M.instance;
|
|
8110
|
+
v = U, x(p(O, L));
|
|
8111
8111
|
});
|
|
8112
8112
|
}
|
|
8113
8113
|
var E = u.useRef({});
|
|
@@ -8161,11 +8161,11 @@ function requireNotification() {
|
|
|
8161
8161
|
ge((oe = oe.apply(ne, Q || [])).next());
|
|
8162
8162
|
});
|
|
8163
8163
|
}, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight", G, P, M = !1, L;
|
|
8164
|
-
function
|
|
8164
|
+
function U(ne) {
|
|
8165
8165
|
var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer, z = ne.closeIcon, te = ne.prefixCls;
|
|
8166
8166
|
te !== void 0 && (E = te), Q !== void 0 && (x = Q), ae !== void 0 ? O = ae : ne.rtl && (O = "topLeft"), oe !== void 0 && (T = oe), ce !== void 0 && (w = ce), me !== void 0 && (G = me), z !== void 0 && (P = z), ne.rtl !== void 0 && (M = ne.rtl), ne.maxCount !== void 0 && (L = ne.maxCount);
|
|
8167
8167
|
}
|
|
8168
|
-
function
|
|
8168
|
+
function W(ne) {
|
|
8169
8169
|
var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : w, ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : T, oe;
|
|
8170
8170
|
switch (ne) {
|
|
8171
8171
|
case "top":
|
|
@@ -8234,7 +8234,7 @@ function requireNotification() {
|
|
|
8234
8234
|
m.default.newInstance({
|
|
8235
8235
|
prefixCls: I,
|
|
8236
8236
|
className: ve,
|
|
8237
|
-
style:
|
|
8237
|
+
style: W(oe, ce, me),
|
|
8238
8238
|
getContainer: te,
|
|
8239
8239
|
maxCount: L
|
|
8240
8240
|
}, function(Fe) {
|
|
@@ -8252,7 +8252,7 @@ function requireNotification() {
|
|
|
8252
8252
|
error: c.default,
|
|
8253
8253
|
warning: f.default
|
|
8254
8254
|
};
|
|
8255
|
-
function
|
|
8255
|
+
function B(ne, Q, ae) {
|
|
8256
8256
|
var oe = ne.duration, ce = ne.icon, me = ne.type, z = ne.description, te = ne.message, he = ne.btn, ge = ne.onClose, Te = ne.onClick, D = ne.key, I = ne.style, pe = ne.className, Re = ne.closeIcon, Oe = Re === void 0 ? P : Re, ve = ne.props, Pe = oe === void 0 ? x : oe, Fe = null;
|
|
8257
8257
|
ce ? Fe = /* @__PURE__ */ g.createElement("span", {
|
|
8258
8258
|
className: "".concat(Q, "-icon")
|
|
@@ -8293,7 +8293,7 @@ function requireNotification() {
|
|
|
8293
8293
|
function H(ne) {
|
|
8294
8294
|
N(ne, function(Q) {
|
|
8295
8295
|
var ae = Q.prefixCls, oe = Q.iconPrefixCls, ce = Q.instance;
|
|
8296
|
-
ce.notice(
|
|
8296
|
+
ce.notice(B(ne, ae, oe));
|
|
8297
8297
|
});
|
|
8298
8298
|
}
|
|
8299
8299
|
var K = {
|
|
@@ -8305,7 +8305,7 @@ function requireNotification() {
|
|
|
8305
8305
|
});
|
|
8306
8306
|
});
|
|
8307
8307
|
},
|
|
8308
|
-
config:
|
|
8308
|
+
config: U,
|
|
8309
8309
|
destroy: function() {
|
|
8310
8310
|
Object.keys(y).forEach(function(Q) {
|
|
8311
8311
|
Promise.resolve(y[Q]).then(function(ae) {
|
|
@@ -8320,7 +8320,7 @@ function requireNotification() {
|
|
|
8320
8320
|
type: ne
|
|
8321
8321
|
}));
|
|
8322
8322
|
};
|
|
8323
|
-
}), K.warn = K.warning, K.useNotification = (0, C.default)(N,
|
|
8323
|
+
}), K.warn = K.warning, K.useNotification = (0, C.default)(N, B);
|
|
8324
8324
|
var re = function(Q) {
|
|
8325
8325
|
return S(void 0, void 0, void 0, /* @__PURE__ */ (0, o.default)().mark(function ae() {
|
|
8326
8326
|
return (0, o.default)().wrap(function(ce) {
|
|
@@ -8486,8 +8486,8 @@ function requireConfigProvider() {
|
|
|
8486
8486
|
function P() {
|
|
8487
8487
|
return O || T;
|
|
8488
8488
|
}
|
|
8489
|
-
var M = function(
|
|
8490
|
-
var H =
|
|
8489
|
+
var M = function(B) {
|
|
8490
|
+
var H = B.prefixCls, K = B.iconPrefixCls, re = B.theme;
|
|
8491
8491
|
H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(G(), re);
|
|
8492
8492
|
}, L = function() {
|
|
8493
8493
|
return {
|
|
@@ -8501,14 +8501,14 @@ function requireConfigProvider() {
|
|
|
8501
8501
|
};
|
|
8502
8502
|
};
|
|
8503
8503
|
e.globalConfig = L;
|
|
8504
|
-
var
|
|
8505
|
-
var H, K, re =
|
|
8506
|
-
var Xt =
|
|
8504
|
+
var U = function(B) {
|
|
8505
|
+
var H, K, re = B.children, ie = B.csp, ne = B.autoInsertSpaceInButton, Q = B.form, ae = B.locale, oe = B.componentSize, ce = B.direction, me = B.space, z = B.virtual, te = B.dropdownMatchSelectWidth, he = B.legacyLocale, ge = B.parentContext, Te = B.iconPrefixCls, D = B.componentDisabled, I = c.useCallback(function(Fe, et) {
|
|
8506
|
+
var Xt = B.prefixCls;
|
|
8507
8507
|
if (et)
|
|
8508
8508
|
return et;
|
|
8509
8509
|
var Zt = Xt || ge.getPrefixCls("");
|
|
8510
8510
|
return Fe ? "".concat(Zt, "-").concat(Fe) : Zt;
|
|
8511
|
-
}, [ge.getPrefixCls,
|
|
8511
|
+
}, [ge.getPrefixCls, B.prefixCls]), pe = (0, o.default)((0, o.default)({}, ge), {
|
|
8512
8512
|
csp: ie,
|
|
8513
8513
|
autoInsertSpaceInButton: ne,
|
|
8514
8514
|
locale: ae || he,
|
|
@@ -8519,7 +8519,7 @@ function requireConfigProvider() {
|
|
|
8519
8519
|
getPrefixCls: I
|
|
8520
8520
|
});
|
|
8521
8521
|
x.forEach(function(Fe) {
|
|
8522
|
-
var et =
|
|
8522
|
+
var et = B[Fe];
|
|
8523
8523
|
et && (pe[Fe] = et);
|
|
8524
8524
|
});
|
|
8525
8525
|
var Re = (0, u.default)(function() {
|
|
@@ -8549,24 +8549,24 @@ function requireConfigProvider() {
|
|
|
8549
8549
|
}, ve)), /* @__PURE__ */ c.createElement(g.ConfigContext.Provider, {
|
|
8550
8550
|
value: Re
|
|
8551
8551
|
}, ve);
|
|
8552
|
-
},
|
|
8552
|
+
}, W = function(B) {
|
|
8553
8553
|
return c.useEffect(function() {
|
|
8554
|
-
|
|
8555
|
-
rtl:
|
|
8554
|
+
B.direction && (h.default.config({
|
|
8555
|
+
rtl: B.direction === "rtl"
|
|
8556
8556
|
}), m.default.config({
|
|
8557
|
-
rtl:
|
|
8557
|
+
rtl: B.direction === "rtl"
|
|
8558
8558
|
}));
|
|
8559
|
-
}, [
|
|
8559
|
+
}, [B.direction]), /* @__PURE__ */ c.createElement(f.default, null, function(H, K, re) {
|
|
8560
8560
|
return /* @__PURE__ */ c.createElement(g.ConfigConsumer, null, function(ie) {
|
|
8561
|
-
return /* @__PURE__ */ c.createElement(
|
|
8561
|
+
return /* @__PURE__ */ c.createElement(U, (0, o.default)({
|
|
8562
8562
|
parentContext: ie,
|
|
8563
8563
|
legacyLocale: re
|
|
8564
|
-
},
|
|
8564
|
+
}, B));
|
|
8565
8565
|
});
|
|
8566
8566
|
});
|
|
8567
8567
|
};
|
|
8568
|
-
|
|
8569
|
-
var N =
|
|
8568
|
+
W.ConfigContext = g.ConfigContext, W.SizeContext = S.default, W.config = M;
|
|
8569
|
+
var N = W;
|
|
8570
8570
|
e.default = N;
|
|
8571
8571
|
}(configProvider)), configProvider;
|
|
8572
8572
|
}
|
|
@@ -8675,32 +8675,32 @@ function cloneElement(e, r) {
|
|
|
8675
8675
|
return (0, l.default)(E, [{
|
|
8676
8676
|
key: "renderClearIcon",
|
|
8677
8677
|
value: function(G) {
|
|
8678
|
-
var P, M = this.props, L = M.value,
|
|
8678
|
+
var P, M = this.props, L = M.value, U = M.disabled, W = M.readOnly, N = M.handleReset, J = M.suffix, B = !U && !W && L, H = "".concat(G, "-clear-icon");
|
|
8679
8679
|
return /* @__PURE__ */ p.createElement(d.default, {
|
|
8680
8680
|
onClick: N,
|
|
8681
8681
|
onMouseDown: function(re) {
|
|
8682
8682
|
return re.preventDefault();
|
|
8683
8683
|
},
|
|
8684
|
-
className: (0, f.default)((P = {}, (0, o.default)(P, "".concat(H, "-hidden"), !
|
|
8684
|
+
className: (0, f.default)((P = {}, (0, o.default)(P, "".concat(H, "-hidden"), !B), (0, o.default)(P, "".concat(H, "-has-suffix"), !!J), P), H),
|
|
8685
8685
|
role: "button"
|
|
8686
8686
|
});
|
|
8687
8687
|
}
|
|
8688
8688
|
}, {
|
|
8689
8689
|
key: "renderTextAreaWithClearIcon",
|
|
8690
8690
|
value: function(G, P, M) {
|
|
8691
|
-
var L,
|
|
8691
|
+
var L, U = this.props, W = U.value, N = U.allowClear, J = U.className, B = U.style, H = U.direction, K = U.bordered, re = U.hidden, ie = U.status, ne = M.status, Q = M.hasFeedback;
|
|
8692
8692
|
if (!N)
|
|
8693
8693
|
return (0, m.cloneElement)(P, {
|
|
8694
|
-
value:
|
|
8694
|
+
value: W
|
|
8695
8695
|
});
|
|
8696
8696
|
var ae = (0, f.default)("".concat(G, "-affix-wrapper"), "".concat(G, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(G, "-affix-wrapper"), (0, g.getMergedStatus)(ne, ie), Q), (L = {}, (0, o.default)(L, "".concat(G, "-affix-wrapper-rtl"), H === "rtl"), (0, o.default)(L, "".concat(G, "-affix-wrapper-borderless"), !K), (0, o.default)(L, "".concat(J), !S(this.props) && J), L));
|
|
8697
8697
|
return /* @__PURE__ */ p.createElement("span", {
|
|
8698
8698
|
className: ae,
|
|
8699
|
-
style:
|
|
8699
|
+
style: B,
|
|
8700
8700
|
hidden: re
|
|
8701
8701
|
}, (0, m.cloneElement)(P, {
|
|
8702
8702
|
style: null,
|
|
8703
|
-
value:
|
|
8703
|
+
value: W
|
|
8704
8704
|
}), this.renderClearIcon(G));
|
|
8705
8705
|
}
|
|
8706
8706
|
}, {
|
|
@@ -8708,9 +8708,9 @@ function cloneElement(e, r) {
|
|
|
8708
8708
|
value: function() {
|
|
8709
8709
|
var G = this;
|
|
8710
8710
|
return /* @__PURE__ */ p.createElement(h.FormItemInputContext.Consumer, null, function(P) {
|
|
8711
|
-
var M = G.props, L = M.prefixCls,
|
|
8712
|
-
if (
|
|
8713
|
-
return G.renderTextAreaWithClearIcon(L,
|
|
8711
|
+
var M = G.props, L = M.prefixCls, U = M.inputType, W = M.element;
|
|
8712
|
+
if (U === C[0])
|
|
8713
|
+
return G.renderTextAreaWithClearIcon(L, W, P);
|
|
8714
8714
|
});
|
|
8715
8715
|
}
|
|
8716
8716
|
}]), E;
|
|
@@ -8799,12 +8799,12 @@ var BaseInput = function(r) {
|
|
|
8799
8799
|
hidden: T
|
|
8800
8800
|
});
|
|
8801
8801
|
if (hasPrefixSuffix$1(r)) {
|
|
8802
|
-
var M, L = "".concat(o, "-affix-wrapper"),
|
|
8802
|
+
var M, L = "".concat(o, "-affix-wrapper"), U = classNames(L, (M = {}, _defineProperty$1(M, "".concat(L, "-disabled"), g), _defineProperty$1(M, "".concat(L, "-focused"), C), _defineProperty$1(M, "".concat(L, "-readonly"), v), _defineProperty$1(M, "".concat(L, "-input-with-clear-btn"), l && y && x), M), !hasAddon(r) && d, p), W = (l || y) && /* @__PURE__ */ jsxs("span", {
|
|
8803
8803
|
className: "".concat(o, "-suffix"),
|
|
8804
8804
|
children: [G(), l]
|
|
8805
8805
|
});
|
|
8806
8806
|
P = /* @__PURE__ */ jsxs("span", {
|
|
8807
|
-
className:
|
|
8807
|
+
className: U,
|
|
8808
8808
|
style: f,
|
|
8809
8809
|
hidden: !hasAddon(r) && T,
|
|
8810
8810
|
onClick: O,
|
|
@@ -8816,17 +8816,17 @@ var BaseInput = function(r) {
|
|
|
8816
8816
|
style: null,
|
|
8817
8817
|
value: x,
|
|
8818
8818
|
hidden: null
|
|
8819
|
-
}),
|
|
8819
|
+
}), W]
|
|
8820
8820
|
});
|
|
8821
8821
|
}
|
|
8822
8822
|
if (hasAddon(r)) {
|
|
8823
|
-
var N = "".concat(o, "-group"), J = "".concat(N, "-addon"),
|
|
8823
|
+
var N = "".concat(o, "-group"), J = "".concat(N, "-addon"), B = classNames("".concat(o, "-wrapper"), N, m), H = classNames("".concat(o, "-group-wrapper"), d, h);
|
|
8824
8824
|
return /* @__PURE__ */ jsx("span", {
|
|
8825
8825
|
className: H,
|
|
8826
8826
|
style: f,
|
|
8827
8827
|
hidden: T,
|
|
8828
8828
|
children: /* @__PURE__ */ jsxs("span", {
|
|
8829
|
-
className:
|
|
8829
|
+
className: B,
|
|
8830
8830
|
children: [u && /* @__PURE__ */ jsx("span", {
|
|
8831
8831
|
className: J,
|
|
8832
8832
|
children: u
|
|
@@ -8851,41 +8851,41 @@ function omit(e, r) {
|
|
|
8851
8851
|
var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "type", "inputClassName"], Input = /* @__PURE__ */ forwardRef(function(e, r) {
|
|
8852
8852
|
var a = e.autoComplete, o = e.onChange, s = e.onFocus, l = e.onBlur, u = e.onPressEnter, c = e.onKeyDown, d = e.prefixCls, f = d === void 0 ? "rc-input" : d, p = e.disabled, h = e.htmlSize, m = e.className, g = e.maxLength, v = e.suffix, C = e.showCount, S = e.type, y = S === void 0 ? "text" : S, x = e.inputClassName, w = _objectWithoutProperties(e, _excluded$1), T = useMergedState$2(e.defaultValue, {
|
|
8853
8853
|
value: e.value
|
|
8854
|
-
}), E = _slicedToArray(T, 2), O = E[0], G = E[1], P = useState$1(!1), M = _slicedToArray(P, 2), L = M[0],
|
|
8855
|
-
|
|
8854
|
+
}), E = _slicedToArray(T, 2), O = E[0], G = E[1], P = useState$1(!1), M = _slicedToArray(P, 2), L = M[0], U = M[1], W = useRef(null), N = function(ae) {
|
|
8855
|
+
W.current && triggerFocus(W.current, ae);
|
|
8856
8856
|
};
|
|
8857
8857
|
useImperativeHandle(r, function() {
|
|
8858
8858
|
return {
|
|
8859
8859
|
focus: N,
|
|
8860
8860
|
blur: function() {
|
|
8861
8861
|
var ae;
|
|
8862
|
-
(ae =
|
|
8862
|
+
(ae = W.current) === null || ae === void 0 || ae.blur();
|
|
8863
8863
|
},
|
|
8864
8864
|
setSelectionRange: function(ae, oe, ce) {
|
|
8865
8865
|
var me;
|
|
8866
|
-
(me =
|
|
8866
|
+
(me = W.current) === null || me === void 0 || me.setSelectionRange(ae, oe, ce);
|
|
8867
8867
|
},
|
|
8868
8868
|
select: function() {
|
|
8869
8869
|
var ae;
|
|
8870
|
-
(ae =
|
|
8870
|
+
(ae = W.current) === null || ae === void 0 || ae.select();
|
|
8871
8871
|
},
|
|
8872
|
-
input:
|
|
8872
|
+
input: W.current
|
|
8873
8873
|
};
|
|
8874
8874
|
}), useEffect(function() {
|
|
8875
|
-
|
|
8875
|
+
U(function(Q) {
|
|
8876
8876
|
return Q && p ? !1 : Q;
|
|
8877
8877
|
});
|
|
8878
8878
|
}, [p]);
|
|
8879
8879
|
var J = function(ae) {
|
|
8880
|
-
e.value === void 0 && G(ae.target.value),
|
|
8881
|
-
},
|
|
8880
|
+
e.value === void 0 && G(ae.target.value), W.current && resolveOnChange(W.current, ae, o);
|
|
8881
|
+
}, B = function(ae) {
|
|
8882
8882
|
u && ae.key === "Enter" && u(ae), c == null || c(ae);
|
|
8883
8883
|
}, H = function(ae) {
|
|
8884
|
-
|
|
8884
|
+
U(!0), s == null || s(ae);
|
|
8885
8885
|
}, K = function(ae) {
|
|
8886
|
-
|
|
8886
|
+
U(!1), l == null || l(ae);
|
|
8887
8887
|
}, re = function(ae) {
|
|
8888
|
-
G(""), N(),
|
|
8888
|
+
G(""), N(), W.current && resolveOnChange(W.current, ae, o);
|
|
8889
8889
|
}, ie = function() {
|
|
8890
8890
|
var ae = omit(e, [
|
|
8891
8891
|
"prefixCls",
|
|
@@ -8909,9 +8909,9 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8909
8909
|
onChange: J,
|
|
8910
8910
|
onFocus: H,
|
|
8911
8911
|
onBlur: K,
|
|
8912
|
-
onKeyDown:
|
|
8912
|
+
onKeyDown: B,
|
|
8913
8913
|
className: classNames(f, _defineProperty$1({}, "".concat(f, "-disabled"), p), x, !hasAddon(e) && !hasPrefixSuffix$1(e) && m),
|
|
8914
|
-
ref:
|
|
8914
|
+
ref: W,
|
|
8915
8915
|
size: h,
|
|
8916
8916
|
type: y
|
|
8917
8917
|
});
|
|
@@ -9044,7 +9044,7 @@ function toArray$1(e) {
|
|
|
9044
9044
|
value: w
|
|
9045
9045
|
}, x);
|
|
9046
9046
|
}, v = function(y) {
|
|
9047
|
-
var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size, G = O === void 0 ? "middle" : O, P = y.direction, M = y.block, L = y.prefixCls,
|
|
9047
|
+
var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size, G = O === void 0 ? "middle" : O, P = y.direction, M = y.block, L = y.prefixCls, U = y.className, W = y.children, N = f(y, ["size", "direction", "block", "prefixCls", "className", "children"]), J = T("space-compact", L), B = (0, l.default)(J, (x = {}, (0, s.default)(x, "".concat(J, "-rtl"), E === "rtl"), (0, s.default)(x, "".concat(J, "-block"), M), (0, s.default)(x, "".concat(J, "-vertical"), P === "vertical"), x), U), H = c.useContext(p), K = (0, u.default)(W), re = c.useMemo(function() {
|
|
9048
9048
|
return K.map(function(ie, ne) {
|
|
9049
9049
|
var Q = ie && ie.key || "".concat(J, "-item-").concat(ne);
|
|
9050
9050
|
return /* @__PURE__ */ c.createElement(g, {
|
|
@@ -9057,7 +9057,7 @@ function toArray$1(e) {
|
|
|
9057
9057
|
});
|
|
9058
9058
|
}, [G, K, H]);
|
|
9059
9059
|
return K.length === 0 ? null : /* @__PURE__ */ c.createElement("div", (0, o.default)({
|
|
9060
|
-
className:
|
|
9060
|
+
className: B
|
|
9061
9061
|
}, N), re);
|
|
9062
9062
|
}, C = v;
|
|
9063
9063
|
e.default = C;
|
|
@@ -9097,51 +9097,51 @@ function hasPrefixSuffix(e) {
|
|
|
9097
9097
|
Object.defineProperty(e, "__esModule", {
|
|
9098
9098
|
value: !0
|
|
9099
9099
|
}), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus = G;
|
|
9100
|
-
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(CloseCircleFilled$3.exports), c = a(classnames.exports), d = a(require$$7), f = ref, p = r(React__default), h = requireConfigProvider(), m = a(DisabledContext), g = a(SizeContext), v = context, C = Compact, S = statusUtils, y = a(warning$4), x = a(useRemovePasswordTimeout), w = utils$1, T = function(L,
|
|
9101
|
-
var
|
|
9100
|
+
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(CloseCircleFilled$3.exports), c = a(classnames.exports), d = a(require$$7), f = ref, p = r(React__default), h = requireConfigProvider(), m = a(DisabledContext), g = a(SizeContext), v = context, C = Compact, S = statusUtils, y = a(warning$4), x = a(useRemovePasswordTimeout), w = utils$1, T = function(L, U) {
|
|
9101
|
+
var W = {};
|
|
9102
9102
|
for (var N in L)
|
|
9103
|
-
Object.prototype.hasOwnProperty.call(L, N) &&
|
|
9103
|
+
Object.prototype.hasOwnProperty.call(L, N) && U.indexOf(N) < 0 && (W[N] = L[N]);
|
|
9104
9104
|
if (L != null && typeof Object.getOwnPropertySymbols == "function")
|
|
9105
9105
|
for (var J = 0, N = Object.getOwnPropertySymbols(L); J < N.length; J++)
|
|
9106
|
-
|
|
9107
|
-
return
|
|
9106
|
+
U.indexOf(N[J]) < 0 && Object.prototype.propertyIsEnumerable.call(L, N[J]) && (W[N[J]] = L[N[J]]);
|
|
9107
|
+
return W;
|
|
9108
9108
|
};
|
|
9109
9109
|
function E(L) {
|
|
9110
9110
|
return typeof L > "u" || L === null ? "" : String(L);
|
|
9111
9111
|
}
|
|
9112
|
-
function O(L,
|
|
9113
|
-
if (!!
|
|
9114
|
-
var J =
|
|
9115
|
-
if (
|
|
9116
|
-
var
|
|
9117
|
-
J = Object.create(
|
|
9112
|
+
function O(L, U, W, N) {
|
|
9113
|
+
if (!!W) {
|
|
9114
|
+
var J = U;
|
|
9115
|
+
if (U.type === "click") {
|
|
9116
|
+
var B = L.cloneNode(!0);
|
|
9117
|
+
J = Object.create(U, {
|
|
9118
9118
|
target: {
|
|
9119
|
-
value:
|
|
9119
|
+
value: B
|
|
9120
9120
|
},
|
|
9121
9121
|
currentTarget: {
|
|
9122
|
-
value:
|
|
9122
|
+
value: B
|
|
9123
9123
|
}
|
|
9124
|
-
}),
|
|
9124
|
+
}), B.value = "", W(J);
|
|
9125
9125
|
return;
|
|
9126
9126
|
}
|
|
9127
9127
|
if (N !== void 0) {
|
|
9128
|
-
J = Object.create(
|
|
9128
|
+
J = Object.create(U, {
|
|
9129
9129
|
target: {
|
|
9130
9130
|
value: L
|
|
9131
9131
|
},
|
|
9132
9132
|
currentTarget: {
|
|
9133
9133
|
value: L
|
|
9134
9134
|
}
|
|
9135
|
-
}), L.value = N,
|
|
9135
|
+
}), L.value = N, W(J);
|
|
9136
9136
|
return;
|
|
9137
9137
|
}
|
|
9138
|
-
|
|
9138
|
+
W(J);
|
|
9139
9139
|
}
|
|
9140
9140
|
}
|
|
9141
|
-
function G(L,
|
|
9141
|
+
function G(L, U) {
|
|
9142
9142
|
if (!!L) {
|
|
9143
|
-
L.focus(
|
|
9144
|
-
var
|
|
9143
|
+
L.focus(U);
|
|
9144
|
+
var W = U || {}, N = W.cursor;
|
|
9145
9145
|
if (N) {
|
|
9146
9146
|
var J = L.value.length;
|
|
9147
9147
|
switch (N) {
|
|
@@ -9158,8 +9158,8 @@ function hasPrefixSuffix(e) {
|
|
|
9158
9158
|
}
|
|
9159
9159
|
}
|
|
9160
9160
|
}
|
|
9161
|
-
var P = /* @__PURE__ */ (0, p.forwardRef)(function(L,
|
|
9162
|
-
var
|
|
9161
|
+
var P = /* @__PURE__ */ (0, p.forwardRef)(function(L, U) {
|
|
9162
|
+
var W, N, J, B = L.prefixCls, H = L.bordered, K = H === void 0 ? !0 : H, re = L.status, ie = L.size, ne = L.disabled, Q = L.onBlur, ae = L.onFocus, oe = L.suffix, ce = L.allowClear, me = L.addonAfter, z = L.addonBefore, te = L.className, he = L.onChange, ge = T(L, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]), Te = p.default.useContext(h.ConfigContext), D = Te.getPrefixCls, I = Te.direction, pe = Te.input, Re = D("input", B), Oe = (0, p.useRef)(null), ve = (0, C.useCompactItemContext)(Re, I), Pe = ve.compactSize, Fe = ve.compactItemClassnames, et = p.default.useContext(g.default), Xt = Pe || ie || et, Zt = p.default.useContext(m.default), er = ne != null ? ne : Zt, qe = (0, p.useContext)(v.FormItemInputContext), Ht = qe.status, _t = qe.hasFeedback, qt = qe.feedbackIcon, kt = (0, S.getMergedStatus)(Ht, re), Ze = (0, w.hasPrefixSuffix)(L) || !!_t, Yt = (0, p.useRef)(Ze);
|
|
9163
9163
|
(0, p.useEffect)(function() {
|
|
9164
9164
|
var or;
|
|
9165
9165
|
Ze && !Yt.current && process.env.NODE_ENV !== "production" && (0, y.default)(document.activeElement === ((or = Oe.current) === null || or === void 0 ? void 0 : or.input), "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"), Yt.current = Ze;
|
|
@@ -9174,7 +9174,7 @@ function hasPrefixSuffix(e) {
|
|
|
9174
9174
|
return (0, l.default)(ce) === "object" && (ce == null ? void 0 : ce.clearIcon) ? rr = ce : ce && (rr = {
|
|
9175
9175
|
clearIcon: /* @__PURE__ */ p.default.createElement(u.default, null)
|
|
9176
9176
|
}), /* @__PURE__ */ p.default.createElement(d.default, (0, s.default)({
|
|
9177
|
-
ref: (0, f.composeRef)(
|
|
9177
|
+
ref: (0, f.composeRef)(U, Oe),
|
|
9178
9178
|
prefixCls: Re,
|
|
9179
9179
|
autoComplete: pe == null ? void 0 : pe.autoComplete
|
|
9180
9180
|
}, ge, {
|
|
@@ -9193,7 +9193,7 @@ function hasPrefixSuffix(e) {
|
|
|
9193
9193
|
override: !0,
|
|
9194
9194
|
status: !0
|
|
9195
9195
|
}, z)),
|
|
9196
|
-
inputClassName: (0, c.default)((
|
|
9196
|
+
inputClassName: (0, c.default)((W = {}, (0, o.default)(W, "".concat(Re, "-sm"), Xt === "small"), (0, o.default)(W, "".concat(Re, "-lg"), Xt === "large"), (0, o.default)(W, "".concat(Re, "-rtl"), I === "rtl"), (0, o.default)(W, "".concat(Re, "-borderless"), !K), W), !Ze && (0, S.getStatusClassNames)(Re, kt)),
|
|
9197
9197
|
affixWrapperClassName: (0, c.default)((N = {}, (0, o.default)(N, "".concat(Re, "-affix-wrapper-sm"), Xt === "small"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-lg"), Xt === "large"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-rtl"), I === "rtl"), (0, o.default)(N, "".concat(Re, "-affix-wrapper-borderless"), !K), N), (0, S.getStatusClassNames)("".concat(Re, "-affix-wrapper"), kt, _t)),
|
|
9198
9198
|
wrapperClassName: (0, c.default)((0, o.default)({}, "".concat(Re, "-group-rtl"), I === "rtl")),
|
|
9199
9199
|
groupClassName: (0, c.default)((J = {}, (0, o.default)(J, "".concat(Re, "-group-wrapper-sm"), Xt === "small"), (0, o.default)(J, "".concat(Re, "-group-wrapper-lg"), Xt === "large"), (0, o.default)(J, "".concat(Re, "-group-wrapper-rtl"), I === "rtl"), J), (0, S.getStatusClassNames)("".concat(Re, "-group-wrapper"), kt, _t))
|
|
@@ -9207,23 +9207,23 @@ function hasPrefixSuffix(e) {
|
|
|
9207
9207
|
value: !0
|
|
9208
9208
|
}), e.default = void 0;
|
|
9209
9209
|
var o = a(_typeof$3.exports), s = a(defineProperty.exports), l = a(_extends$1.exports), u = a(slicedToArray.exports), c = a(toConsumableArray.exports), d = a(classnames.exports), f = a(require$$8), p = a(useMergedState$1), h = a(omit$2), m = r(React__default), g = requireConfigProvider(), v = a(DisabledContext), C = a(SizeContext), S = context, y = statusUtils, x = a(ClearableLabeledInput), w = Input$1, T = function(M, L) {
|
|
9210
|
-
var
|
|
9211
|
-
for (var
|
|
9212
|
-
Object.prototype.hasOwnProperty.call(M,
|
|
9210
|
+
var U = {};
|
|
9211
|
+
for (var W in M)
|
|
9212
|
+
Object.prototype.hasOwnProperty.call(M, W) && L.indexOf(W) < 0 && (U[W] = M[W]);
|
|
9213
9213
|
if (M != null && typeof Object.getOwnPropertySymbols == "function")
|
|
9214
|
-
for (var N = 0,
|
|
9215
|
-
L.indexOf(
|
|
9216
|
-
return
|
|
9214
|
+
for (var N = 0, W = Object.getOwnPropertySymbols(M); N < W.length; N++)
|
|
9215
|
+
L.indexOf(W[N]) < 0 && Object.prototype.propertyIsEnumerable.call(M, W[N]) && (U[W[N]] = M[W[N]]);
|
|
9216
|
+
return U;
|
|
9217
9217
|
};
|
|
9218
9218
|
function E(M, L) {
|
|
9219
9219
|
return (0, c.default)(M || "").slice(0, L).join("");
|
|
9220
9220
|
}
|
|
9221
|
-
function O(M, L,
|
|
9222
|
-
var N =
|
|
9223
|
-
return M ? N = E(
|
|
9221
|
+
function O(M, L, U, W) {
|
|
9222
|
+
var N = U;
|
|
9223
|
+
return M ? N = E(U, W) : (0, c.default)(L || "").length < U.length && (0, c.default)(U || "").length > W && (N = L), N;
|
|
9224
9224
|
}
|
|
9225
9225
|
var G = /* @__PURE__ */ m.forwardRef(function(M, L) {
|
|
9226
|
-
var
|
|
9226
|
+
var U, W = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, B = M.showCount, H = B === void 0 ? !1 : B, K = M.maxLength, re = M.className, ie = M.style, ne = M.size, Q = M.disabled, ae = M.onCompositionStart, oe = M.onCompositionEnd, ce = M.onChange, me = M.status, z = T(M, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "status"]), te = m.useContext(g.ConfigContext), he = te.getPrefixCls, ge = te.direction, Te = m.useContext(C.default), D = m.useContext(v.default), I = Q != null ? Q : D, pe = m.useContext(S.FormItemInputContext), Re = pe.status, Oe = pe.hasFeedback, ve = pe.isFormItemInput, Pe = pe.feedbackIcon, Fe = (0, y.getMergedStatus)(Re, me), et = m.useRef(null), Xt = m.useRef(null), Zt = m.useState(!1), er = (0, u.default)(Zt, 2), qe = er[0], Ht = er[1], _t = m.useRef(), qt = m.useRef(0), kt = (0, p.default)(z.defaultValue, {
|
|
9227
9227
|
value: z.value
|
|
9228
9228
|
}), Ze = (0, u.default)(kt, 2), Yt = Ze[0], tr = Ze[1], it = z.hidden, xt = function(_r, Pr) {
|
|
9229
9229
|
z.value === void 0 && (tr(_r), Pr == null || Pr());
|
|
@@ -9248,7 +9248,7 @@ function hasPrefixSuffix(e) {
|
|
|
9248
9248
|
}, $r = function(_r) {
|
|
9249
9249
|
var Pr, Hr, Xr;
|
|
9250
9250
|
xt(""), (Pr = et.current) === null || Pr === void 0 || Pr.focus(), (0, w.resolveOnChange)((Xr = (Hr = et.current) === null || Hr === void 0 ? void 0 : Hr.resizableTextArea) === null || Xr === void 0 ? void 0 : Xr.textArea, _r, ce);
|
|
9251
|
-
}, Wr = he("input",
|
|
9251
|
+
}, Wr = he("input", W);
|
|
9252
9252
|
m.useImperativeHandle(L, function() {
|
|
9253
9253
|
var Zr;
|
|
9254
9254
|
return {
|
|
@@ -9265,7 +9265,7 @@ function hasPrefixSuffix(e) {
|
|
|
9265
9265
|
});
|
|
9266
9266
|
var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(z, ["allowClear"]), {
|
|
9267
9267
|
disabled: I,
|
|
9268
|
-
className: (0, d.default)((
|
|
9268
|
+
className: (0, d.default)((U = {}, (0, s.default)(U, "".concat(Wr, "-borderless"), !J), (0, s.default)(U, re, re && !H), (0, s.default)(U, "".concat(Wr, "-sm"), Te === "small" || ne === "small"), (0, s.default)(U, "".concat(Wr, "-lg"), Te === "large" || ne === "large"), U), (0, y.getStatusClassNames)(Wr, Fe)),
|
|
9269
9269
|
style: H ? {
|
|
9270
9270
|
resize: ie == null ? void 0 : ie.resize
|
|
9271
9271
|
} : ie,
|
|
@@ -9371,7 +9371,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
9371
9371
|
async function T(P) {
|
|
9372
9372
|
const M = {};
|
|
9373
9373
|
for (const L of P) {
|
|
9374
|
-
const
|
|
9374
|
+
const U = (await ConnectionProvider.getHandler().readObjects({
|
|
9375
9375
|
model: o,
|
|
9376
9376
|
ids: [s],
|
|
9377
9377
|
fieldsToRetrieve: [l],
|
|
@@ -9379,7 +9379,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
9379
9379
|
lang: L.code
|
|
9380
9380
|
}
|
|
9381
9381
|
}))[0];
|
|
9382
|
-
M[L.code] =
|
|
9382
|
+
M[L.code] = U[l] || "";
|
|
9383
9383
|
}
|
|
9384
9384
|
y.current = M, S(M);
|
|
9385
9385
|
}
|
|
@@ -10396,7 +10396,7 @@ function require_stream_writable() {
|
|
|
10396
10396
|
}
|
|
10397
10397
|
P.prototype.write = function(z, te, he) {
|
|
10398
10398
|
var ge = this._writableState, Te = !1, D = !ge.objectMode && c(z);
|
|
10399
|
-
return D && !s.isBuffer(z) && (z = u(z)), typeof te == "function" && (he = te, te = null), D ? te = "buffer" : te || (te = ge.defaultEncoding), typeof he != "function" && (he = E), ge.ending ? M(this, he) : (D || L(this, ge, z, he)) && (ge.pendingcb++, Te =
|
|
10399
|
+
return D && !s.isBuffer(z) && (z = u(z)), typeof te == "function" && (he = te, te = null), D ? te = "buffer" : te || (te = ge.defaultEncoding), typeof he != "function" && (he = E), ge.ending ? M(this, he) : (D || L(this, ge, z, he)) && (ge.pendingcb++, Te = W(this, ge, D, z, te, he)), Te;
|
|
10400
10400
|
}, P.prototype.cork = function() {
|
|
10401
10401
|
this._writableState.corked++;
|
|
10402
10402
|
}, P.prototype.uncork = function() {
|
|
@@ -10412,7 +10412,7 @@ function require_stream_writable() {
|
|
|
10412
10412
|
return this._writableState && this._writableState.getBuffer();
|
|
10413
10413
|
}
|
|
10414
10414
|
});
|
|
10415
|
-
function
|
|
10415
|
+
function U(z, te, he) {
|
|
10416
10416
|
return !z.objectMode && z.decodeStrings !== !1 && typeof te == "string" && (te = s.from(te, he)), te;
|
|
10417
10417
|
}
|
|
10418
10418
|
Object.defineProperty(P.prototype, "writableHighWaterMark", {
|
|
@@ -10421,9 +10421,9 @@ function require_stream_writable() {
|
|
|
10421
10421
|
return this._writableState.highWaterMark;
|
|
10422
10422
|
}
|
|
10423
10423
|
});
|
|
10424
|
-
function
|
|
10424
|
+
function W(z, te, he, ge, Te, D) {
|
|
10425
10425
|
if (!he) {
|
|
10426
|
-
var I =
|
|
10426
|
+
var I = U(te, ge, Te);
|
|
10427
10427
|
ge !== I && (he = !0, Te = "buffer", ge = I);
|
|
10428
10428
|
}
|
|
10429
10429
|
var pe = te.objectMode ? 1 : ge.length;
|
|
@@ -10448,14 +10448,14 @@ function require_stream_writable() {
|
|
|
10448
10448
|
function J(z, te, he, ge, Te) {
|
|
10449
10449
|
--te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe, z, te), z._writableState.errorEmitted = !0, T(z, ge)) : (Te(ge), z._writableState.errorEmitted = !0, T(z, ge), oe(z, te));
|
|
10450
10450
|
}
|
|
10451
|
-
function
|
|
10451
|
+
function B(z) {
|
|
10452
10452
|
z.writing = !1, z.writecb = null, z.length -= z.writelen, z.writelen = 0;
|
|
10453
10453
|
}
|
|
10454
10454
|
function H(z, te) {
|
|
10455
10455
|
var he = z._writableState, ge = he.sync, Te = he.writecb;
|
|
10456
10456
|
if (typeof Te != "function")
|
|
10457
10457
|
throw new v();
|
|
10458
|
-
if (
|
|
10458
|
+
if (B(he), te)
|
|
10459
10459
|
J(z, he, ge, te, Te);
|
|
10460
10460
|
else {
|
|
10461
10461
|
var D = ne(he) || z.destroyed;
|
|
@@ -11015,27 +11015,27 @@ function require_stream_readable() {
|
|
|
11015
11015
|
ve.reading = !1, H(D, ve);
|
|
11016
11016
|
else {
|
|
11017
11017
|
var Pe;
|
|
11018
|
-
if (Oe || (Pe =
|
|
11018
|
+
if (Oe || (Pe = W(ve, I)), Pe)
|
|
11019
11019
|
E(D, Pe);
|
|
11020
11020
|
else if (ve.objectMode || I && I.length > 0)
|
|
11021
11021
|
if (typeof I != "string" && !ve.objectMode && Object.getPrototypeOf(I) !== o.prototype && (I = l(I)), Re)
|
|
11022
|
-
ve.endEmitted ? E(D, new y()) :
|
|
11022
|
+
ve.endEmitted ? E(D, new y()) : U(D, ve, I, !0);
|
|
11023
11023
|
else if (ve.ended)
|
|
11024
11024
|
E(D, new C());
|
|
11025
11025
|
else {
|
|
11026
11026
|
if (ve.destroyed)
|
|
11027
11027
|
return !1;
|
|
11028
|
-
ve.reading = !1, ve.decoder && !pe ? (I = ve.decoder.write(I), ve.objectMode || I.length !== 0 ?
|
|
11028
|
+
ve.reading = !1, ve.decoder && !pe ? (I = ve.decoder.write(I), ve.objectMode || I.length !== 0 ? U(D, ve, I, !1) : ie(D, ve)) : U(D, ve, I, !1);
|
|
11029
11029
|
}
|
|
11030
11030
|
else
|
|
11031
11031
|
Re || (ve.reading = !1, ie(D, ve));
|
|
11032
11032
|
}
|
|
11033
11033
|
return !ve.ended && (ve.length < ve.highWaterMark || ve.length === 0);
|
|
11034
11034
|
}
|
|
11035
|
-
function
|
|
11035
|
+
function U(D, I, pe, Re) {
|
|
11036
11036
|
I.flowing && I.length === 0 && !I.sync ? (I.awaitDrain = 0, D.emit("data", pe)) : (I.length += I.objectMode ? 1 : pe.length, Re ? I.buffer.unshift(pe) : I.buffer.push(pe), I.needReadable && K(D)), ie(D, I);
|
|
11037
11037
|
}
|
|
11038
|
-
function
|
|
11038
|
+
function W(D, I) {
|
|
11039
11039
|
var pe;
|
|
11040
11040
|
return !u(I) && typeof I != "string" && I !== void 0 && !D.objectMode && (pe = new v("chunk", ["string", "Buffer", "Uint8Array"], I)), pe;
|
|
11041
11041
|
}
|
|
@@ -11053,7 +11053,7 @@ function require_stream_readable() {
|
|
|
11053
11053
|
function J(D) {
|
|
11054
11054
|
return D >= N ? D = N : (D--, D |= D >>> 1, D |= D >>> 2, D |= D >>> 4, D |= D >>> 8, D |= D >>> 16, D++), D;
|
|
11055
11055
|
}
|
|
11056
|
-
function
|
|
11056
|
+
function B(D, I) {
|
|
11057
11057
|
return D <= 0 || I.length === 0 && I.ended ? 0 : I.objectMode ? 1 : D !== D ? I.flowing && I.length ? I.buffer.head.data.length : I.length : (D > I.highWaterMark && (I.highWaterMark = J(D)), D <= I.length ? D : I.ended ? I.length : (I.needReadable = !0, 0));
|
|
11058
11058
|
}
|
|
11059
11059
|
M.prototype.read = function(D) {
|
|
@@ -11061,10 +11061,10 @@ function require_stream_readable() {
|
|
|
11061
11061
|
var I = this._readableState, pe = D;
|
|
11062
11062
|
if (D !== 0 && (I.emittedReadable = !1), D === 0 && I.needReadable && ((I.highWaterMark !== 0 ? I.length >= I.highWaterMark : I.length > 0) || I.ended))
|
|
11063
11063
|
return d("read: emitReadable", I.length, I.ended), I.length === 0 && I.ended ? he(this) : K(this), null;
|
|
11064
|
-
if (D =
|
|
11064
|
+
if (D = B(D, I), D === 0 && I.ended)
|
|
11065
11065
|
return I.length === 0 && he(this), null;
|
|
11066
11066
|
var Re = I.needReadable;
|
|
11067
|
-
d("need readable", Re), (I.length === 0 || I.length - D < I.highWaterMark) && (Re = !0, d("length less than watermark", Re)), I.ended || I.reading ? (Re = !1, d("reading or ended", Re)) : Re && (d("do read"), I.reading = !0, I.sync = !0, I.length === 0 && (I.needReadable = !0), this._read(I.highWaterMark), I.sync = !1, I.reading || (D =
|
|
11067
|
+
d("need readable", Re), (I.length === 0 || I.length - D < I.highWaterMark) && (Re = !0, d("length less than watermark", Re)), I.ended || I.reading ? (Re = !1, d("reading or ended", Re)) : Re && (d("do read"), I.reading = !0, I.sync = !0, I.length === 0 && (I.needReadable = !0), this._read(I.highWaterMark), I.sync = !1, I.reading || (D = B(pe, I)));
|
|
11068
11068
|
var Oe;
|
|
11069
11069
|
return D > 0 ? Oe = te(D, I) : Oe = null, Oe === null ? (I.needReadable = I.length <= I.highWaterMark, D = 0) : (I.length -= D, I.awaitDrain = 0), I.length === 0 && (I.ended || (I.needReadable = !0), pe !== D && I.ended && he(this)), Oe !== null && this.emit("data", Oe), Oe;
|
|
11070
11070
|
};
|
|
@@ -13655,7 +13655,7 @@ const Image = (e) => {
|
|
|
13655
13655
|
padding: "1rem"
|
|
13656
13656
|
},
|
|
13657
13657
|
children: w.map((P, M) => {
|
|
13658
|
-
var L,
|
|
13658
|
+
var L, U;
|
|
13659
13659
|
return /* @__PURE__ */ jsx("div", {
|
|
13660
13660
|
children: /* @__PURE__ */ jsxs(Timeline$1.Item, {
|
|
13661
13661
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -13664,7 +13664,7 @@ const Image = (e) => {
|
|
|
13664
13664
|
cursor: "pointer"
|
|
13665
13665
|
},
|
|
13666
13666
|
onClick: () => {
|
|
13667
|
-
g(w.find((
|
|
13667
|
+
g(w.find((W) => P.id === W.id)), h(!0);
|
|
13668
13668
|
},
|
|
13669
13669
|
children: /* @__PURE__ */ jsx("strong", {
|
|
13670
13670
|
children: (L = P.values) == null ? void 0 : L[x]
|
|
@@ -13675,9 +13675,9 @@ const Image = (e) => {
|
|
|
13675
13675
|
cursor: "pointer"
|
|
13676
13676
|
},
|
|
13677
13677
|
onClick: () => {
|
|
13678
|
-
g(w.find((
|
|
13678
|
+
g(w.find((W) => P.id === W.id)), h(!0);
|
|
13679
13679
|
},
|
|
13680
|
-
children: (
|
|
13680
|
+
children: (U = P.values) == null ? void 0 : U[y]
|
|
13681
13681
|
})]
|
|
13682
13682
|
}, M)
|
|
13683
13683
|
}, M);
|
|
@@ -13926,9 +13926,9 @@ const transformPlainMany2Ones = ({
|
|
|
13926
13926
|
}
|
|
13927
13927
|
})).map((M) => {
|
|
13928
13928
|
const L = M[C];
|
|
13929
|
-
let
|
|
13930
|
-
return Array.isArray(L) && (
|
|
13931
|
-
label:
|
|
13929
|
+
let U = L;
|
|
13930
|
+
return Array.isArray(L) && (U = L[1]), {
|
|
13931
|
+
label: U,
|
|
13932
13932
|
value: M.id
|
|
13933
13933
|
};
|
|
13934
13934
|
});
|
|
@@ -13958,8 +13958,8 @@ const transformPlainMany2Ones = ({
|
|
|
13958
13958
|
label: G,
|
|
13959
13959
|
closable: P,
|
|
13960
13960
|
onClose: M
|
|
13961
|
-
} = O, L = (
|
|
13962
|
-
|
|
13961
|
+
} = O, L = (U) => {
|
|
13962
|
+
U.preventDefault(), U.stopPropagation();
|
|
13963
13963
|
};
|
|
13964
13964
|
return /* @__PURE__ */ jsx(Tag$1, {
|
|
13965
13965
|
color: colorFromString(G),
|
|
@@ -14217,24 +14217,25 @@ const transformPlainMany2Ones = ({
|
|
|
14217
14217
|
...Object.keys(s).map((c) => getParamForField(c, s[c], r))
|
|
14218
14218
|
].reduce((c, d) => Array.isArray(d[0]) ? c.concat(d) : [...c, d], []);
|
|
14219
14219
|
}, getParamForField = (e, r, a) => {
|
|
14220
|
-
|
|
14220
|
+
var l;
|
|
14221
|
+
const o = e.split("#")[0], s = (l = a.findById(o)) == null ? void 0 : l.type;
|
|
14221
14222
|
if (s === "char" || s === "text" || s === "many2one" || s === "many2many" || s === "one2many")
|
|
14222
14223
|
return [e, "ilike", r];
|
|
14223
14224
|
if (s === "float" || s === "integer" || s === "float_time" || s === "progressbar") {
|
|
14224
|
-
const
|
|
14225
|
-
return [o,
|
|
14225
|
+
const u = e.indexOf("#from") !== -1 ? ">=" : "<=";
|
|
14226
|
+
return [o, u, r];
|
|
14226
14227
|
} else if (s === "date") {
|
|
14227
|
-
const
|
|
14228
|
-
return [o,
|
|
14228
|
+
const u = e.indexOf("#from") !== -1 ? ">=" : "<=";
|
|
14229
|
+
return [o, u, r.format("YYYY-MM-DD")];
|
|
14229
14230
|
} else if (s === "datetime") {
|
|
14230
|
-
const
|
|
14231
|
-
return r[0] &&
|
|
14231
|
+
const u = [];
|
|
14232
|
+
return r[0] && u.push([o, ">=", r[0]]), r[1] && u.push([o, "<=", r[1]]), u;
|
|
14232
14233
|
} else
|
|
14233
14234
|
return s === "selection" ? [
|
|
14234
14235
|
e,
|
|
14235
14236
|
"in",
|
|
14236
14237
|
r.map(
|
|
14237
|
-
(
|
|
14238
|
+
(u) => convertBooleanParamIfNeeded(u)
|
|
14238
14239
|
)
|
|
14239
14240
|
] : [e, "=", convertBooleanParamIfNeeded(r)];
|
|
14240
14241
|
}, getDatetimeDateFields = (e) => Object.keys(e).filter((r) => r.indexOf("#date") !== -1), removeDateTimeSingleFields = (e) => {
|
|
@@ -14258,7 +14259,10 @@ const transformPlainMany2Ones = ({
|
|
|
14258
14259
|
r[l + "#datetime"] = [d, f];
|
|
14259
14260
|
}), r;
|
|
14260
14261
|
}, ungroupDateValuesIfNeeded = (e, r) => {
|
|
14261
|
-
const a = Object.keys(e).filter((s) =>
|
|
14262
|
+
const a = Object.keys(e).filter((s) => {
|
|
14263
|
+
const l = r.findById(s);
|
|
14264
|
+
return l && l.type === "date";
|
|
14265
|
+
});
|
|
14262
14266
|
let o = { ...e };
|
|
14263
14267
|
return a.forEach((s) => {
|
|
14264
14268
|
delete o[s], e[s][0] !== null && (o[s + "#from"] = e[s][0]), e[s][1] !== null && (o[s + "#to"] = e[s][1]);
|
|
@@ -14357,7 +14361,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14357
14361
|
setLimit: E,
|
|
14358
14362
|
searchParams: O = [],
|
|
14359
14363
|
setSearchValues: G
|
|
14360
|
-
} = e, [P, M] = useState$1(!1), [L,
|
|
14364
|
+
} = e, [P, M] = useState$1(!1), [L, U] = useState$1(!1), [W, N] = useState$1(), [J, B] = useState$1(1), [H, K] = useState$1(0), [re, ie] = useState$1(), [ne, Q] = useState$1([]), [ae, oe] = useState$1(void 0), ce = useRef(T || DEFAULT_SEARCH_LIMIT$1), me = useRef([]), z = useCallback((ve) => {
|
|
14361
14365
|
S == null || S([...ve]), Q([...ve]);
|
|
14362
14366
|
}, []), te = useCallback(() => y || ne, [y, ne]), he = useCallback(async () => {
|
|
14363
14367
|
const ve = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -14450,7 +14454,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14450
14454
|
} catch (Pe) {
|
|
14451
14455
|
N(Pe.message);
|
|
14452
14456
|
} finally {
|
|
14453
|
-
M(!1),
|
|
14457
|
+
M(!1), U(!1), u == null || u(!1);
|
|
14454
14458
|
}
|
|
14455
14459
|
},
|
|
14456
14460
|
[
|
|
@@ -14468,7 +14472,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14468
14472
|
C,
|
|
14469
14473
|
z,
|
|
14470
14474
|
N,
|
|
14471
|
-
|
|
14475
|
+
U,
|
|
14472
14476
|
M,
|
|
14473
14477
|
u,
|
|
14474
14478
|
g,
|
|
@@ -14488,7 +14492,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14488
14492
|
), I = useCallback(
|
|
14489
14493
|
(ve) => {
|
|
14490
14494
|
const { params: Pe, searchValues: Fe, limit: et, offset: Xt } = ve;
|
|
14491
|
-
P || (a == null || a(void 0), o == null || o([]), G == null || G(Fe), s == null || s(Pe), l == null || l(!1),
|
|
14495
|
+
P || (a == null || a(void 0), o == null || o([]), G == null || G(Fe), s == null || s(Pe), l == null || l(!1), U(!0), N(void 0), B(1), et && (ce.current = et, E == null || E(et)), Xt && K(Xt), Te({
|
|
14492
14496
|
params: Pe,
|
|
14493
14497
|
newOffset: Xt
|
|
14494
14498
|
}));
|
|
@@ -14499,27 +14503,27 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14499
14503
|
o,
|
|
14500
14504
|
s,
|
|
14501
14505
|
l,
|
|
14502
|
-
W,
|
|
14503
|
-
N,
|
|
14504
14506
|
U,
|
|
14507
|
+
N,
|
|
14508
|
+
B,
|
|
14505
14509
|
E,
|
|
14506
14510
|
K,
|
|
14507
14511
|
Te
|
|
14508
14512
|
]
|
|
14509
14513
|
), pe = useCallback(
|
|
14510
14514
|
(ve) => {
|
|
14511
|
-
M(!0),
|
|
14515
|
+
M(!0), B(ve), K((ve - 1) * T);
|
|
14512
14516
|
},
|
|
14513
|
-
[M, T, K,
|
|
14517
|
+
[M, T, K, B]
|
|
14514
14518
|
), Re = useCallback(() => {
|
|
14515
|
-
P || (a == null || a(void 0), s == null || s([]), G == null || G({}), N(void 0), K(0),
|
|
14519
|
+
P || (a == null || a(void 0), s == null || s([]), G == null || G({}), N(void 0), K(0), B(1), E == null || E(T || DEFAULT_SEARCH_LIMIT$1));
|
|
14516
14520
|
}, [
|
|
14517
14521
|
P,
|
|
14518
14522
|
a,
|
|
14519
14523
|
s,
|
|
14520
14524
|
N,
|
|
14521
14525
|
K,
|
|
14522
|
-
|
|
14526
|
+
B,
|
|
14523
14527
|
E,
|
|
14524
14528
|
T
|
|
14525
14529
|
]), Oe = useCallback(
|
|
@@ -14540,7 +14544,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14540
14544
|
fetchResults: Te,
|
|
14541
14545
|
tableRefreshing: P,
|
|
14542
14546
|
searchFilterLoading: L,
|
|
14543
|
-
searchError:
|
|
14547
|
+
searchError: W,
|
|
14544
14548
|
page: J,
|
|
14545
14549
|
offset: H,
|
|
14546
14550
|
limit: T,
|
|
@@ -14578,7 +14582,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14578
14582
|
setSearchTreeNameSearch: G,
|
|
14579
14583
|
goToResourceId: P,
|
|
14580
14584
|
limit: M
|
|
14581
|
-
} = e, [L,
|
|
14585
|
+
} = e, [L, U] = useState$1(!1), [W, N] = useState$1(!1), [J, B] = useState$1(!1), [H, K] = useState$1(!0), [re, ie] = useState$1(!0), [ne, Q] = useState$1([]), [ae, oe] = useState$1(!1), [ce, me] = useState$1([]), [z, te] = useState$1(!1), [he, ge] = useState$1(!0), [Te, D] = useState$1(), [I, pe] = useState$1({}), [Re, Oe] = useState$1(M !== void 0 ? M : DEFAULT_SEARCH_LIMIT$1), [ve, Pe] = useState$1(o);
|
|
14582
14586
|
useEffect(() => {
|
|
14583
14587
|
m && m.length > 0 && !g && (v == null || v(0), p == null || p(m[0].id));
|
|
14584
14588
|
}, [m]), useEffect(() => {
|
|
@@ -14599,8 +14603,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14599
14603
|
setCurrentView: s,
|
|
14600
14604
|
availableViews: l,
|
|
14601
14605
|
formIsSaving: L,
|
|
14602
|
-
setFormIsSaving:
|
|
14603
|
-
formHasChanges:
|
|
14606
|
+
setFormIsSaving: U,
|
|
14607
|
+
formHasChanges: W,
|
|
14604
14608
|
setFormHasChanges: N,
|
|
14605
14609
|
formRef: u,
|
|
14606
14610
|
searchTreeRef: c,
|
|
@@ -14614,7 +14618,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14614
14618
|
setResults: h,
|
|
14615
14619
|
currentModel: C,
|
|
14616
14620
|
removingItem: J,
|
|
14617
|
-
setRemovingItem:
|
|
14621
|
+
setRemovingItem: B,
|
|
14618
14622
|
formIsLoading: H,
|
|
14619
14623
|
setFormIsLoading: K,
|
|
14620
14624
|
treeIsLoading: re,
|
|
@@ -14701,12 +14705,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14701
14705
|
reportData: P,
|
|
14702
14706
|
fields: M,
|
|
14703
14707
|
values: L,
|
|
14704
|
-
context:
|
|
14708
|
+
context: U = {}
|
|
14705
14709
|
} = G, {
|
|
14706
|
-
context:
|
|
14710
|
+
context: W,
|
|
14707
14711
|
model: N,
|
|
14708
14712
|
datas: J = {},
|
|
14709
|
-
report_name:
|
|
14713
|
+
report_name: B,
|
|
14710
14714
|
type: H
|
|
14711
14715
|
} = P;
|
|
14712
14716
|
if (H !== "ir.actions.report.xml") {
|
|
@@ -14717,19 +14721,19 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14717
14721
|
ids: K
|
|
14718
14722
|
} = J || {};
|
|
14719
14723
|
let re = K || [];
|
|
14720
|
-
const ie = typeof
|
|
14721
|
-
context:
|
|
14724
|
+
const ie = typeof W == "string" ? parseContext({
|
|
14725
|
+
context: W,
|
|
14722
14726
|
fields: M,
|
|
14723
14727
|
values: L
|
|
14724
|
-
}) :
|
|
14728
|
+
}) : W;
|
|
14725
14729
|
try {
|
|
14726
14730
|
const ne = await ConnectionProvider.getHandler().createReport({
|
|
14727
14731
|
model: N,
|
|
14728
|
-
name:
|
|
14732
|
+
name: B,
|
|
14729
14733
|
datas: J,
|
|
14730
14734
|
ids: re,
|
|
14731
14735
|
context: {
|
|
14732
|
-
...
|
|
14736
|
+
...U,
|
|
14733
14737
|
...ie
|
|
14734
14738
|
}
|
|
14735
14739
|
});
|
|
@@ -14759,22 +14763,22 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14759
14763
|
fields: P,
|
|
14760
14764
|
values: M,
|
|
14761
14765
|
context: L,
|
|
14762
|
-
onRefreshParentValues:
|
|
14766
|
+
onRefreshParentValues: U
|
|
14763
14767
|
}) {
|
|
14764
14768
|
const {
|
|
14765
|
-
type:
|
|
14769
|
+
type: W
|
|
14766
14770
|
} = G;
|
|
14767
|
-
return p.current.push(
|
|
14771
|
+
return p.current.push(U), W === "ir.actions.report.xml" ? await S({
|
|
14768
14772
|
reportData: G,
|
|
14769
14773
|
fields: P,
|
|
14770
14774
|
values: M,
|
|
14771
14775
|
context: L
|
|
14772
|
-
}) :
|
|
14776
|
+
}) : W === "ir.actions.act_window" ? await w({
|
|
14773
14777
|
actionData: G,
|
|
14774
14778
|
fields: P,
|
|
14775
14779
|
values: M,
|
|
14776
14780
|
context: L
|
|
14777
|
-
}) : (showDialog$8(`${
|
|
14781
|
+
}) : (showDialog$8(`${W} action not supported`), {});
|
|
14778
14782
|
}
|
|
14779
14783
|
async function w({
|
|
14780
14784
|
actionData: G,
|
|
@@ -14782,27 +14786,27 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14782
14786
|
values: M = {},
|
|
14783
14787
|
context: L = {}
|
|
14784
14788
|
}) {
|
|
14785
|
-
var
|
|
14786
|
-
let
|
|
14787
|
-
G.res_model || (
|
|
14789
|
+
var B;
|
|
14790
|
+
let U = G;
|
|
14791
|
+
G.res_model || (U = (await ConnectionProvider.getHandler().readObjects({
|
|
14788
14792
|
model: "ir.actions.act_window",
|
|
14789
14793
|
ids: [parseInt(G.id)],
|
|
14790
14794
|
context: L
|
|
14791
14795
|
}))[0]);
|
|
14792
14796
|
const N = {
|
|
14793
|
-
...typeof (
|
|
14794
|
-
context:
|
|
14797
|
+
...typeof (U == null ? void 0 : U.context) == "string" ? parseContext({
|
|
14798
|
+
context: U.context,
|
|
14795
14799
|
fields: P,
|
|
14796
14800
|
values: {
|
|
14797
14801
|
...M,
|
|
14798
14802
|
...o
|
|
14799
14803
|
}
|
|
14800
|
-
}) :
|
|
14804
|
+
}) : U.context,
|
|
14801
14805
|
...L
|
|
14802
14806
|
};
|
|
14803
14807
|
let J = [];
|
|
14804
|
-
if (
|
|
14805
|
-
domain:
|
|
14808
|
+
if (U.domain && (J = await ConnectionProvider.getHandler().evalDomain({
|
|
14809
|
+
domain: U.domain,
|
|
14806
14810
|
values: transformPlainMany2Ones({
|
|
14807
14811
|
fields: P,
|
|
14808
14812
|
values: {
|
|
@@ -14812,37 +14816,37 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14812
14816
|
}),
|
|
14813
14817
|
fields: P,
|
|
14814
14818
|
context: N
|
|
14815
|
-
})),
|
|
14819
|
+
})), U.target === "new") {
|
|
14816
14820
|
const H = await ConnectionProvider.getHandler().getView({
|
|
14817
|
-
model:
|
|
14821
|
+
model: U.res_model,
|
|
14818
14822
|
type: "form",
|
|
14819
|
-
id: ((
|
|
14823
|
+
id: ((B = U == null ? void 0 : U.view_id) == null ? void 0 : B[0]) || void 0,
|
|
14820
14824
|
context: N
|
|
14821
14825
|
});
|
|
14822
14826
|
return T({
|
|
14823
14827
|
domain: J,
|
|
14824
|
-
model:
|
|
14828
|
+
model: U.res_model,
|
|
14825
14829
|
formView: H,
|
|
14826
14830
|
context: N
|
|
14827
14831
|
}), {};
|
|
14828
14832
|
} else {
|
|
14829
14833
|
let H;
|
|
14830
|
-
const K =
|
|
14834
|
+
const K = U.view_mode.split(","), re = [];
|
|
14831
14835
|
for (const ie of K) {
|
|
14832
14836
|
const ne = await ConnectionProvider.getHandler().getView({
|
|
14833
|
-
model:
|
|
14837
|
+
model: U.res_model,
|
|
14834
14838
|
type: ie,
|
|
14835
14839
|
context: N
|
|
14836
14840
|
});
|
|
14837
14841
|
re.push([ne.view_id, ie]);
|
|
14838
14842
|
}
|
|
14839
|
-
if (
|
|
14843
|
+
if (U.view_id)
|
|
14840
14844
|
H = {
|
|
14841
|
-
id:
|
|
14842
|
-
type:
|
|
14845
|
+
id: U.view_id,
|
|
14846
|
+
type: U.view_mode.split(",")[0]
|
|
14843
14847
|
};
|
|
14844
14848
|
else {
|
|
14845
|
-
const ie =
|
|
14849
|
+
const ie = U.view_mode.split(",")[0], [ne] = re.find(([Q, ae]) => ae === ie);
|
|
14846
14850
|
H = {
|
|
14847
14851
|
id: ne,
|
|
14848
14852
|
type: ie
|
|
@@ -14852,12 +14856,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14852
14856
|
target: "current",
|
|
14853
14857
|
context: N,
|
|
14854
14858
|
domain: J,
|
|
14855
|
-
model:
|
|
14859
|
+
model: U.res_model,
|
|
14856
14860
|
views: re,
|
|
14857
|
-
title:
|
|
14861
|
+
title: U.name,
|
|
14858
14862
|
initialView: H,
|
|
14859
|
-
action_id:
|
|
14860
|
-
action_type:
|
|
14863
|
+
action_id: U.id,
|
|
14864
|
+
action_type: U.type
|
|
14861
14865
|
}), {
|
|
14862
14866
|
closeParent: !0
|
|
14863
14867
|
};
|
|
@@ -14868,20 +14872,20 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14868
14872
|
model: P,
|
|
14869
14873
|
formView: M,
|
|
14870
14874
|
context: L,
|
|
14871
|
-
actionData:
|
|
14875
|
+
actionData: U
|
|
14872
14876
|
}) {
|
|
14873
14877
|
m ? E({
|
|
14874
14878
|
domain: G,
|
|
14875
14879
|
model: P,
|
|
14876
14880
|
formView: M,
|
|
14877
14881
|
context: L,
|
|
14878
|
-
actionData:
|
|
14882
|
+
actionData: U
|
|
14879
14883
|
}) : (C({
|
|
14880
14884
|
domain: G,
|
|
14881
14885
|
model: P,
|
|
14882
14886
|
context: L,
|
|
14883
14887
|
formView: M,
|
|
14884
|
-
actionData:
|
|
14888
|
+
actionData: U
|
|
14885
14889
|
}), g(!0));
|
|
14886
14890
|
}
|
|
14887
14891
|
async function E({
|
|
@@ -14889,7 +14893,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14889
14893
|
model: P,
|
|
14890
14894
|
formView: M,
|
|
14891
14895
|
context: L,
|
|
14892
|
-
actionData:
|
|
14896
|
+
actionData: U
|
|
14893
14897
|
}) {
|
|
14894
14898
|
C({
|
|
14895
14899
|
domain: void 0,
|
|
@@ -14897,12 +14901,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14897
14901
|
context: {},
|
|
14898
14902
|
formView: void 0,
|
|
14899
14903
|
actionData: void 0
|
|
14900
|
-
}), g(!1), await new Promise((
|
|
14904
|
+
}), g(!1), await new Promise((W) => setTimeout(W, 300)), C({
|
|
14901
14905
|
domain: G,
|
|
14902
14906
|
model: P,
|
|
14903
14907
|
context: L,
|
|
14904
14908
|
formView: M,
|
|
14905
|
-
actionData:
|
|
14909
|
+
actionData: U
|
|
14906
14910
|
}), g(!0);
|
|
14907
14911
|
}
|
|
14908
14912
|
async function O() {
|
|
@@ -14980,7 +14984,7 @@ function Form(e, r) {
|
|
|
14980
14984
|
} = e, {
|
|
14981
14985
|
t: G,
|
|
14982
14986
|
lang: P
|
|
14983
|
-
} = useContext(LocaleContext), [M, L] = useState$1(!1), [
|
|
14987
|
+
} = useContext(LocaleContext), [M, L] = useState$1(!1), [U, W] = useState$1(), [N, J] = useState$1(), [B] = Form$3.useForm(), [H, K] = useState$1(), [re, ie] = useState$1(), ne = useContext(FormModalContext), [Q, ae] = useState$1(), [oe, ce] = useState$1(!1), me = useRef(), z = useRef({}), te = useRef({}), he = useRef(!1), ge = useRef(!1), Te = Q < WIDTH_BREAKPOINT, D = useContext(FormContext$2), {
|
|
14984
14988
|
activeId: I,
|
|
14985
14989
|
getPlainValues: pe
|
|
14986
14990
|
} = D || {}, Re = useContext(ActionViewContext), {
|
|
@@ -15007,7 +15011,7 @@ function Form(e, r) {
|
|
|
15007
15011
|
me.current = void 0, J(void 0), Kr();
|
|
15008
15012
|
}
|
|
15009
15013
|
})), useEffect(() => {
|
|
15010
|
-
if (
|
|
15014
|
+
if (W(void 0), !(!a && !v)) {
|
|
15011
15015
|
if (!w) {
|
|
15012
15016
|
me.current = void 0, J(void 0);
|
|
15013
15017
|
return;
|
|
@@ -15088,27 +15092,27 @@ function Form(e, r) {
|
|
|
15088
15092
|
target: $r(re),
|
|
15089
15093
|
fields: re
|
|
15090
15094
|
})).length !== 0, $r = (Le) => {
|
|
15091
|
-
const Ae =
|
|
15095
|
+
const Ae = B.getFieldsValue(!0);
|
|
15092
15096
|
return processValues(Ae, Le);
|
|
15093
15097
|
}, Wr = (Le, Ae) => {
|
|
15094
15098
|
_r({
|
|
15095
15099
|
values: {
|
|
15096
|
-
...processValues(
|
|
15100
|
+
...processValues(B.getFieldsValue(!0), re),
|
|
15097
15101
|
[Le]: Ae
|
|
15098
15102
|
},
|
|
15099
15103
|
fields: re,
|
|
15100
15104
|
reset: !1
|
|
15101
15105
|
});
|
|
15102
|
-
}, Ar = (Le) =>
|
|
15106
|
+
}, Ar = (Le) => B.getFieldsValue(!0)[Le];
|
|
15103
15107
|
async function Ur() {
|
|
15104
15108
|
try {
|
|
15105
|
-
return await
|
|
15109
|
+
return await B.validateFields(), !1;
|
|
15106
15110
|
} catch {
|
|
15107
15111
|
return message$1.error(G("fillRequiredFields")), !0;
|
|
15108
15112
|
}
|
|
15109
15113
|
}
|
|
15110
15114
|
const Kr = async () => {
|
|
15111
|
-
|
|
15115
|
+
W(void 0), Fe == null || Fe(!0);
|
|
15112
15116
|
let Le;
|
|
15113
15117
|
try {
|
|
15114
15118
|
v ? Le = {
|
|
@@ -15124,11 +15128,11 @@ function Form(e, r) {
|
|
|
15124
15128
|
arch: Tt
|
|
15125
15129
|
});
|
|
15126
15130
|
} catch (Ae) {
|
|
15127
|
-
|
|
15131
|
+
W(Ae != null && Ae.message ? Ae.message + Ae.stack : Ae), Fe == null || Fe(!1);
|
|
15128
15132
|
}
|
|
15129
15133
|
}, Yr = async (Le) => {
|
|
15130
15134
|
let Ae, Tt, Pt, Rr;
|
|
15131
|
-
Fe == null || Fe(!0),
|
|
15135
|
+
Fe == null || Fe(!0), W(void 0), Le ? (Tt = Le.fields, Pt = Le.arch) : (Tt = re, Pt = H), g ? Ae = g : {
|
|
15132
15136
|
values: Ae,
|
|
15133
15137
|
defaultGetCalled: Rr
|
|
15134
15138
|
} = await Pr({
|
|
@@ -15181,7 +15185,7 @@ function Form(e, r) {
|
|
|
15181
15185
|
isDefaultGet: Pt = !1
|
|
15182
15186
|
}) => {
|
|
15183
15187
|
const an = {
|
|
15184
|
-
...Tt ? {} :
|
|
15188
|
+
...Tt ? {} : B.getFieldsValue(!0),
|
|
15185
15189
|
...Le
|
|
15186
15190
|
}, fn = processValues(an, Ae), Bn = Object.keys(Ae).map((gn) => {
|
|
15187
15191
|
const Fn = fn[gn] !== void 0 ? fn[gn] : void 0;
|
|
@@ -15191,7 +15195,7 @@ function Form(e, r) {
|
|
|
15191
15195
|
value: Fn
|
|
15192
15196
|
};
|
|
15193
15197
|
});
|
|
15194
|
-
Pt || (te.current = fn),
|
|
15198
|
+
Pt || (te.current = fn), B.setFields(Bn);
|
|
15195
15199
|
}, Pr = async ({
|
|
15196
15200
|
fields: Le,
|
|
15197
15201
|
arch: Ae
|
|
@@ -15266,7 +15270,7 @@ function Form(e, r) {
|
|
|
15266
15270
|
const {
|
|
15267
15271
|
callOnSubmitSucceed: Tt = !0
|
|
15268
15272
|
} = Le || {};
|
|
15269
|
-
if (ge.current = !0,
|
|
15273
|
+
if (ge.current = !0, W(void 0), !or() && Ze() && Tt)
|
|
15270
15274
|
return ge.current = !1, ve == null || ve(!1), qt == null || qt(), {
|
|
15271
15275
|
succeed: !0,
|
|
15272
15276
|
id: Ze()
|
|
@@ -15284,7 +15288,7 @@ function Form(e, r) {
|
|
|
15284
15288
|
reset: !0
|
|
15285
15289
|
})), await Yr(), Ae = !0;
|
|
15286
15290
|
} catch (Pt) {
|
|
15287
|
-
ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(G("errorWhileSavingForm")),
|
|
15291
|
+
ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(G("errorWhileSavingForm")), W(Pt != null && Pt.message ? Pt.message : Pt);
|
|
15288
15292
|
} finally {
|
|
15289
15293
|
ge.current = !1, Oe == null || Oe(!1), L(!1);
|
|
15290
15294
|
}
|
|
@@ -15324,7 +15328,7 @@ function Form(e, r) {
|
|
|
15324
15328
|
}) && Le !== !0)
|
|
15325
15329
|
return;
|
|
15326
15330
|
{
|
|
15327
|
-
const Pt = processValues(
|
|
15331
|
+
const Pt = processValues(B.getFieldsValue(!0), re);
|
|
15328
15332
|
te.current = Pt, d == null || d(Pt), ve == null || ve(!0), _n(Tt);
|
|
15329
15333
|
}
|
|
15330
15334
|
}
|
|
@@ -15513,7 +15517,7 @@ function Form(e, r) {
|
|
|
15513
15517
|
showDialog$8(Pt);
|
|
15514
15518
|
}
|
|
15515
15519
|
}
|
|
15516
|
-
const qn = () => !N && !
|
|
15520
|
+
const qn = () => !N && !U ? /* @__PURE__ */ jsx(Spin, {}) : !a && !v || !w ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
15517
15521
|
children: /* @__PURE__ */ jsx(FormProvider$2, {
|
|
15518
15522
|
getValues: tr,
|
|
15519
15523
|
getPlainValues: it,
|
|
@@ -15531,7 +15535,7 @@ function Form(e, r) {
|
|
|
15531
15535
|
formHasChanges: or,
|
|
15532
15536
|
elementHasLostFocus: Vn,
|
|
15533
15537
|
children: /* @__PURE__ */ jsx(Form$3, {
|
|
15534
|
-
form:
|
|
15538
|
+
form: B,
|
|
15535
15539
|
onFieldsChange: () => {
|
|
15536
15540
|
yn({
|
|
15537
15541
|
elementHasLostFocus: !1
|
|
@@ -15579,9 +15583,9 @@ function Form(e, r) {
|
|
|
15579
15583
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
15580
15584
|
className: "pb-2",
|
|
15581
15585
|
ref: Le,
|
|
15582
|
-
children: [
|
|
15586
|
+
children: [U && /* @__PURE__ */ jsx(Alert, {
|
|
15583
15587
|
className: "mt-10 mb-20",
|
|
15584
|
-
message: JSON.stringify(
|
|
15588
|
+
message: JSON.stringify(U),
|
|
15585
15589
|
type: "error",
|
|
15586
15590
|
banner: !0
|
|
15587
15591
|
}), qn(), u && Un()]
|
|
@@ -16054,76 +16058,76 @@ function SearchFilter(e) {
|
|
|
16054
16058
|
setSearchFilterHeight: p,
|
|
16055
16059
|
searchError: h,
|
|
16056
16060
|
searchValues: m,
|
|
16057
|
-
showLimitOptions: g = !0
|
|
16058
|
-
|
|
16061
|
+
showLimitOptions: g = !0,
|
|
16062
|
+
formXml: v
|
|
16063
|
+
} = e, [C, S] = useState$1(), [y, x] = useState$1(), [w, T] = useState$1(!1), E = useRef(), [O] = Form$3.useForm();
|
|
16059
16064
|
useEffect(() => {
|
|
16060
|
-
|
|
16065
|
+
O.setFieldsValue(m);
|
|
16061
16066
|
}, [m]);
|
|
16062
|
-
const
|
|
16063
|
-
if (!
|
|
16067
|
+
const G = () => {
|
|
16068
|
+
if (!y)
|
|
16064
16069
|
return;
|
|
16065
|
-
const
|
|
16066
|
-
return
|
|
16067
|
-
children:
|
|
16070
|
+
const L = w ? y : C, U = L == null ? void 0 : L.rows;
|
|
16071
|
+
return U == null ? void 0 : U.map((W, N) => /* @__PURE__ */ jsx(Row, {
|
|
16072
|
+
children: W.map((J, B) => /* @__PURE__ */ jsx(Col, {
|
|
16068
16073
|
xs: 24,
|
|
16069
16074
|
className: "p-2",
|
|
16070
16075
|
xl: 6,
|
|
16071
16076
|
children: /* @__PURE__ */ jsx(SearchField, {
|
|
16072
|
-
field:
|
|
16077
|
+
field: J
|
|
16073
16078
|
})
|
|
16074
|
-
},
|
|
16075
|
-
},
|
|
16079
|
+
}, B))
|
|
16080
|
+
}, N));
|
|
16076
16081
|
};
|
|
16077
16082
|
useDeepCompareEffect(() => {
|
|
16078
|
-
|
|
16079
|
-
const P = new SearchFilter$1(a, r);
|
|
16080
|
-
P.parse(), C(P._simpleSearchContainer), y(P._advancedSearchContainer);
|
|
16083
|
+
T(!1), E.current = new SearchFilter$1(a, r, v), E.current.parse(), S(E.current._simpleSearchContainer), x(E.current._advancedSearchContainer);
|
|
16081
16084
|
}, [r, a]);
|
|
16082
|
-
const
|
|
16085
|
+
const P = G(), M = (L) => {
|
|
16086
|
+
var J;
|
|
16083
16087
|
const {
|
|
16084
|
-
limit:
|
|
16085
|
-
offset:
|
|
16086
|
-
} =
|
|
16087
|
-
delete
|
|
16088
|
-
const
|
|
16088
|
+
limit: U,
|
|
16089
|
+
offset: W
|
|
16090
|
+
} = L;
|
|
16091
|
+
delete L.offset, delete L.limit;
|
|
16092
|
+
const N = getParamsForFields(L, (J = E.current) == null ? void 0 : J._advancedSearchContainer);
|
|
16089
16093
|
s({
|
|
16090
|
-
params:
|
|
16091
|
-
offset:
|
|
16092
|
-
limit:
|
|
16093
|
-
searchValues:
|
|
16094
|
+
params: N,
|
|
16095
|
+
offset: W,
|
|
16096
|
+
limit: U,
|
|
16097
|
+
searchValues: L
|
|
16094
16098
|
});
|
|
16095
16099
|
};
|
|
16096
16100
|
return /* @__PURE__ */ jsx(Measure, {
|
|
16097
16101
|
bounds: !0,
|
|
16098
|
-
onResize: (
|
|
16099
|
-
var
|
|
16100
|
-
p == null || p((
|
|
16102
|
+
onResize: (L) => {
|
|
16103
|
+
var U;
|
|
16104
|
+
p == null || p((U = L.bounds) == null ? void 0 : U.height);
|
|
16101
16105
|
},
|
|
16102
16106
|
children: ({
|
|
16103
|
-
measureRef:
|
|
16107
|
+
measureRef: L
|
|
16104
16108
|
}) => /* @__PURE__ */ jsx("div", {
|
|
16105
|
-
ref:
|
|
16109
|
+
ref: L,
|
|
16106
16110
|
children: /* @__PURE__ */ jsxs("div", {
|
|
16107
16111
|
style: {
|
|
16108
16112
|
display: f ? "block" : "none"
|
|
16109
16113
|
},
|
|
16110
16114
|
children: [/* @__PURE__ */ jsxs(Form$3, {
|
|
16111
16115
|
className: "p-3 rounded shadow-md bg-gray-50",
|
|
16112
|
-
form:
|
|
16113
|
-
onFinish:
|
|
16116
|
+
form: O,
|
|
16117
|
+
onFinish: M,
|
|
16114
16118
|
initialValues: {
|
|
16115
16119
|
offset: u,
|
|
16116
16120
|
limit: c
|
|
16117
16121
|
},
|
|
16118
|
-
children: [
|
|
16122
|
+
children: [P, w && g && /* @__PURE__ */ jsx(SearchParams, {
|
|
16119
16123
|
onLimitChange: d
|
|
16120
16124
|
}), /* @__PURE__ */ jsx(SearchBottomBar, {
|
|
16121
|
-
advancedFilter:
|
|
16125
|
+
advancedFilter: w,
|
|
16122
16126
|
onAdvancedFilterToggle: () => {
|
|
16123
|
-
|
|
16127
|
+
T(!w);
|
|
16124
16128
|
},
|
|
16125
16129
|
onClear: () => {
|
|
16126
|
-
|
|
16130
|
+
O.resetFields(), o();
|
|
16127
16131
|
},
|
|
16128
16132
|
isSearching: l
|
|
16129
16133
|
})]
|
|
@@ -16285,16 +16289,16 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16285
16289
|
});
|
|
16286
16290
|
h(L);
|
|
16287
16291
|
const {
|
|
16288
|
-
fields:
|
|
16289
|
-
arch:
|
|
16292
|
+
fields: U,
|
|
16293
|
+
arch: W
|
|
16290
16294
|
} = L, N = (await ConnectionProvider.getHandler().readObjects({
|
|
16291
16295
|
model: a,
|
|
16292
16296
|
ids: [r],
|
|
16293
|
-
fields:
|
|
16297
|
+
fields: U,
|
|
16294
16298
|
context: o
|
|
16295
16299
|
}))[0];
|
|
16296
16300
|
g({
|
|
16297
|
-
...processValues(N,
|
|
16301
|
+
...processValues(N, U),
|
|
16298
16302
|
active_id: r
|
|
16299
16303
|
}), f(!1);
|
|
16300
16304
|
} catch (L) {
|
|
@@ -16303,7 +16307,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16303
16307
|
}
|
|
16304
16308
|
}
|
|
16305
16309
|
function T() {
|
|
16306
|
-
var
|
|
16310
|
+
var U;
|
|
16307
16311
|
if (d)
|
|
16308
16312
|
return /* @__PURE__ */ jsx(Menu, {
|
|
16309
16313
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -16315,9 +16319,9 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16315
16319
|
});
|
|
16316
16320
|
if (!p || !p.toolbar)
|
|
16317
16321
|
return /* @__PURE__ */ jsx(Menu, {});
|
|
16318
|
-
const L = (
|
|
16319
|
-
children:
|
|
16320
|
-
},
|
|
16322
|
+
const L = (U = p == null ? void 0 : p.toolbar) == null ? void 0 : U.relate.map((W) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
16323
|
+
children: W.name
|
|
16324
|
+
}, W.id));
|
|
16321
16325
|
return /* @__PURE__ */ jsx(Menu, {
|
|
16322
16326
|
onClick: E,
|
|
16323
16327
|
children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
@@ -16344,15 +16348,15 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16344
16348
|
else if (L.key === "print")
|
|
16345
16349
|
c(!0);
|
|
16346
16350
|
else {
|
|
16347
|
-
const
|
|
16348
|
-
if (!
|
|
16351
|
+
const U = p.toolbar.relate.find((W) => W.id === parseInt(L.key));
|
|
16352
|
+
if (!U)
|
|
16349
16353
|
return;
|
|
16350
16354
|
S({
|
|
16351
|
-
relateData:
|
|
16355
|
+
relateData: U,
|
|
16352
16356
|
values: m,
|
|
16353
16357
|
fields: p.fields,
|
|
16354
|
-
action_id:
|
|
16355
|
-
action_type:
|
|
16358
|
+
action_id: U.id,
|
|
16359
|
+
action_type: U.type
|
|
16356
16360
|
});
|
|
16357
16361
|
}
|
|
16358
16362
|
}
|
|
@@ -16520,10 +16524,10 @@ function Tree(e) {
|
|
|
16520
16524
|
context: x
|
|
16521
16525
|
} = e, [w, T] = useState$1([]), [E, O] = useState$1([]), G = useRef(!1), P = useRef(null), {
|
|
16522
16526
|
t: M
|
|
16523
|
-
} = useContext(LocaleContext), L = useRef(a),
|
|
16524
|
-
title:
|
|
16527
|
+
} = useContext(LocaleContext), L = useRef(a), U = useContext(ActionViewContext), {
|
|
16528
|
+
title: W = void 0,
|
|
16525
16529
|
setTitle: N = void 0
|
|
16526
|
-
} = (y ?
|
|
16530
|
+
} = (y ? U : {}) || {};
|
|
16527
16531
|
useEffect(() => {
|
|
16528
16532
|
P.current = getTree(s);
|
|
16529
16533
|
const Q = getTableColumns(P.current, {
|
|
@@ -16541,13 +16545,13 @@ function Tree(e) {
|
|
|
16541
16545
|
tag: TagComponent,
|
|
16542
16546
|
selection: SelectionComponent
|
|
16543
16547
|
}, x);
|
|
16544
|
-
O(Q), P.current.string &&
|
|
16548
|
+
O(Q), P.current.string && W !== P.current.string && (N == null || N(P.current.string));
|
|
16545
16549
|
}, [s]), useEffect(() => {
|
|
16546
16550
|
G.current = !1;
|
|
16547
16551
|
const Q = getTableItems(P.current, l);
|
|
16548
16552
|
T(Q), L.current = a;
|
|
16549
16553
|
}, [l]);
|
|
16550
|
-
const J = (r - 1) * L.current + 1,
|
|
16554
|
+
const J = (r - 1) * L.current + 1, B = J - 1 + w.length, H = o === void 0 ? null : o === 0 ? M("no_results") : M("summary").replace("{from}", J == null ? void 0 : J.toString()).replace("{to}", B == null ? void 0 : B.toString()).replace("{total}", o == null ? void 0 : o.toString()), K = () => !f || s.isExpandable || c ? null : o === void 0 ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Row, {
|
|
16551
16555
|
align: "bottom",
|
|
16552
16556
|
className: "pb-4",
|
|
16553
16557
|
children: [/* @__PURE__ */ jsx(Col, {
|
|
@@ -16632,10 +16636,10 @@ function SearchTree(e, r) {
|
|
|
16632
16636
|
rootTree: p = !1,
|
|
16633
16637
|
parentContext: h = {},
|
|
16634
16638
|
onChangeSelectedRowKeys: m
|
|
16635
|
-
} = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O, G] = useState$1(), [P, M] = useState$1(), [L,
|
|
16639
|
+
} = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O, G] = useState$1(), [P, M] = useState$1(), [L, U] = useState$1(200), W = useRef(), {
|
|
16636
16640
|
height: N
|
|
16637
16641
|
} = useWindowDimensions(), J = useContext(ContentRootContext), {
|
|
16638
|
-
processAction:
|
|
16642
|
+
processAction: B
|
|
16639
16643
|
} = J || {}, H = useContext(ActionViewContext), {
|
|
16640
16644
|
setResults: K = void 0,
|
|
16641
16645
|
setCurrentItemIndex: re = void 0,
|
|
@@ -16738,13 +16742,13 @@ function SearchTree(e, r) {
|
|
|
16738
16742
|
const {
|
|
16739
16743
|
id: Ur
|
|
16740
16744
|
} = Ar;
|
|
16741
|
-
|
|
16745
|
+
W.current || (W.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
16742
16746
|
id: T.view_id,
|
|
16743
16747
|
model: x,
|
|
16744
16748
|
context: h
|
|
16745
16749
|
}));
|
|
16746
|
-
const Kr =
|
|
16747
|
-
await (
|
|
16750
|
+
const Kr = W.current[0][2];
|
|
16751
|
+
await (B == null ? void 0 : B({
|
|
16748
16752
|
actionData: Kr,
|
|
16749
16753
|
fields: T.fields,
|
|
16750
16754
|
values: {
|
|
@@ -16786,13 +16790,14 @@ function SearchTree(e, r) {
|
|
|
16786
16790
|
...O.fields
|
|
16787
16791
|
},
|
|
16788
16792
|
searchFields: mergeSearchFields([O.search_fields, T.search_fields]),
|
|
16793
|
+
formXml: O.arch,
|
|
16789
16794
|
onClear: Pe,
|
|
16790
16795
|
limit: Re,
|
|
16791
16796
|
offset: qe,
|
|
16792
16797
|
isSearching: Xt,
|
|
16793
16798
|
onSubmit: ve,
|
|
16794
16799
|
onLimitChange: xt,
|
|
16795
|
-
setSearchFilterHeight:
|
|
16800
|
+
setSearchFilterHeight: U,
|
|
16796
16801
|
searchError: Zt,
|
|
16797
16802
|
searchVisible: me,
|
|
16798
16803
|
searchValues: I
|
|
@@ -16966,10 +16971,10 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
16966
16971
|
domain: P,
|
|
16967
16972
|
getValues: M,
|
|
16968
16973
|
getFields: L,
|
|
16969
|
-
getContext:
|
|
16970
|
-
setOriginalValue:
|
|
16974
|
+
getContext: U,
|
|
16975
|
+
setOriginalValue: W,
|
|
16971
16976
|
elementHasLostFocus: N
|
|
16972
|
-
} = G || {}, J = useRef([]), [
|
|
16977
|
+
} = G || {}, J = useRef([]), [B, H] = useState$1([]), K = r && r[0] || void 0, re = r && r[1] || "";
|
|
16973
16978
|
useEffect(() => {
|
|
16974
16979
|
!Array.isArray(r) && r && oe(r);
|
|
16975
16980
|
}, [r]), useEffect(() => {
|
|
@@ -16994,7 +16999,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
16994
16999
|
model: l,
|
|
16995
17000
|
payload: O.current,
|
|
16996
17001
|
context: {
|
|
16997
|
-
...
|
|
17002
|
+
...U == null ? void 0 : U(),
|
|
16998
17003
|
...c
|
|
16999
17004
|
}
|
|
17000
17005
|
});
|
|
@@ -17012,7 +17017,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
17012
17017
|
params: J.current,
|
|
17013
17018
|
model: l,
|
|
17014
17019
|
context: {
|
|
17015
|
-
...
|
|
17020
|
+
...U == null ? void 0 : U(),
|
|
17016
17021
|
...c
|
|
17017
17022
|
},
|
|
17018
17023
|
totalItems: 2
|
|
@@ -17029,11 +17034,11 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
17029
17034
|
payload: [te],
|
|
17030
17035
|
model: l,
|
|
17031
17036
|
context: {
|
|
17032
|
-
...
|
|
17037
|
+
...U == null ? void 0 : U(),
|
|
17033
17038
|
...c
|
|
17034
17039
|
}
|
|
17035
17040
|
});
|
|
17036
|
-
ie([te, ge[0][1]]), he &&
|
|
17041
|
+
ie([te, ge[0][1]]), he && W(o.id, [te, ge[0][1]]);
|
|
17037
17042
|
} catch (ge) {
|
|
17038
17043
|
showDialog$3(ge);
|
|
17039
17044
|
} finally {
|
|
@@ -17048,7 +17053,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
17048
17053
|
values: M()
|
|
17049
17054
|
}),
|
|
17050
17055
|
fields: L(),
|
|
17051
|
-
context:
|
|
17056
|
+
context: U()
|
|
17052
17057
|
})), P && P.length > 0 && (J.current = J.current.concat(transformDomainForChildWidget({
|
|
17053
17058
|
domain: P,
|
|
17054
17059
|
widgetFieldName: d
|
|
@@ -17074,7 +17079,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
17074
17079
|
id: K,
|
|
17075
17080
|
model: l,
|
|
17076
17081
|
context: {
|
|
17077
|
-
...
|
|
17082
|
+
...U == null ? void 0 : U(),
|
|
17078
17083
|
...c
|
|
17079
17084
|
}
|
|
17080
17085
|
})
|
|
@@ -17101,9 +17106,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
17101
17106
|
})
|
|
17102
17107
|
}), /* @__PURE__ */ jsx(SearchModal, {
|
|
17103
17108
|
model: l,
|
|
17104
|
-
domain:
|
|
17109
|
+
domain: B,
|
|
17105
17110
|
context: {
|
|
17106
|
-
...
|
|
17111
|
+
...U == null ? void 0 : U(),
|
|
17107
17112
|
...c
|
|
17108
17113
|
},
|
|
17109
17114
|
visible: h,
|
|
@@ -17117,7 +17122,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
17117
17122
|
}), /* @__PURE__ */ jsx(FormModal, {
|
|
17118
17123
|
model: l,
|
|
17119
17124
|
parentContext: {
|
|
17120
|
-
...
|
|
17125
|
+
...U == null ? void 0 : U(),
|
|
17121
17126
|
...c
|
|
17122
17127
|
},
|
|
17123
17128
|
id: r && r[0],
|
|
@@ -18820,10 +18825,10 @@ var Align = function e(r, a) {
|
|
|
18820
18825
|
var C = useBuffer(function() {
|
|
18821
18826
|
var O = v.current, G = O.disabled, P = O.target, M = O.align, L = O.onAlign;
|
|
18822
18827
|
if (!G && P) {
|
|
18823
|
-
var
|
|
18828
|
+
var U = m.current, W, N = getElement(P), J = getPoint(P);
|
|
18824
18829
|
h.current.element = N, h.current.point = J, h.current.align = M;
|
|
18825
|
-
var
|
|
18826
|
-
return N && isVisible(N) ?
|
|
18830
|
+
var B = document, H = B.activeElement;
|
|
18831
|
+
return N && isVisible(N) ? W = alignElement(U, N, M) : J && (W = alignPoint(U, J, M)), restoreFocus(H, U), L && W && L(U, W), !0;
|
|
18827
18832
|
}
|
|
18828
18833
|
return !1;
|
|
18829
18834
|
}, p), S = _slicedToArray(C, 2), y = S[0], x = S[1], w = React__default.useRef({
|
|
@@ -18928,11 +18933,11 @@ const useVisibleStatus = function(e, r) {
|
|
|
18928
18933
|
return [u, l];
|
|
18929
18934
|
};
|
|
18930
18935
|
var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
18931
|
-
var a = e.visible, o = e.prefixCls, s = e.className, l = e.style, u = e.children, c = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.forceRender, h = e.align, m = e.point, g = e.getRootDomNode, v = e.getClassNameFromAlign, C = e.onAlign, S = e.onMouseEnter, y = e.onMouseLeave, x = e.onMouseDown, w = e.onTouchStart, T = e.onClick, E = useRef(), O = useRef(), G = useState$1(), P = _slicedToArray(G, 2), M = P[0], L = P[1],
|
|
18932
|
-
function
|
|
18936
|
+
var a = e.visible, o = e.prefixCls, s = e.className, l = e.style, u = e.children, c = e.zIndex, d = e.stretch, f = e.destroyPopupOnHide, p = e.forceRender, h = e.align, m = e.point, g = e.getRootDomNode, v = e.getClassNameFromAlign, C = e.onAlign, S = e.onMouseEnter, y = e.onMouseLeave, x = e.onMouseDown, w = e.onTouchStart, T = e.onClick, E = useRef(), O = useRef(), G = useState$1(), P = _slicedToArray(G, 2), M = P[0], L = P[1], U = useStretchStyle(d), W = _slicedToArray(U, 2), N = W[0], J = W[1];
|
|
18937
|
+
function B() {
|
|
18933
18938
|
d && J(g());
|
|
18934
18939
|
}
|
|
18935
|
-
var H = useVisibleStatus(a,
|
|
18940
|
+
var H = useVisibleStatus(a, B), K = _slicedToArray(H, 2), re = K[0], ie = K[1], ne = useState$1(0), Q = _slicedToArray(ne, 2), ae = Q[0], oe = Q[1], ce = useRef();
|
|
18936
18941
|
useLayoutEffect$2(function() {
|
|
18937
18942
|
re === "alignPre" && oe(0);
|
|
18938
18943
|
}, [re]);
|
|
@@ -19157,14 +19162,14 @@ function generateTrigger(e) {
|
|
|
19157
19162
|
var f = [], p = u.props, h = p.popupPlacement, m = p.builtinPlacements, g = p.prefixCls, v = p.alignPoint, C = p.getPopupClassNameFromAlign;
|
|
19158
19163
|
return h && m && f.push(getAlignPopupClassName(m, g, d, v)), C && f.push(C(d)), f.join(" ");
|
|
19159
19164
|
}), _defineProperty$1(_assertThisInitialized(u), "getComponent", function() {
|
|
19160
|
-
var d = u.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, m = d.onPopupAlign, g = d.popupMotion, v = d.popupAnimation, C = d.popupTransitionName, S = d.popupStyle, y = d.mask, x = d.maskAnimation, w = d.maskTransitionName, T = d.maskMotion, E = d.zIndex, O = d.popup, G = d.stretch, P = d.alignPoint, M = d.mobile, L = d.forceRender,
|
|
19165
|
+
var d = u.props, f = d.prefixCls, p = d.destroyPopupOnHide, h = d.popupClassName, m = d.onPopupAlign, g = d.popupMotion, v = d.popupAnimation, C = d.popupTransitionName, S = d.popupStyle, y = d.mask, x = d.maskAnimation, w = d.maskTransitionName, T = d.maskMotion, E = d.zIndex, O = d.popup, G = d.stretch, P = d.alignPoint, M = d.mobile, L = d.forceRender, U = d.onPopupClick, W = u.state, N = W.popupVisible, J = W.point, B = u.getPopupAlign(), H = {};
|
|
19161
19166
|
return u.isMouseEnterToShow() && (H.onMouseEnter = u.onPopupMouseEnter), u.isMouseLeaveToHide() && (H.onMouseLeave = u.onPopupMouseLeave), H.onMouseDown = u.onPopupMouseDown, H.onTouchStart = u.onPopupMouseDown, /* @__PURE__ */ jsx(Popup$1, {
|
|
19162
19167
|
prefixCls: f,
|
|
19163
19168
|
destroyPopupOnHide: p,
|
|
19164
19169
|
visible: N,
|
|
19165
19170
|
point: P && J,
|
|
19166
19171
|
className: h,
|
|
19167
|
-
align:
|
|
19172
|
+
align: B,
|
|
19168
19173
|
onAlign: m,
|
|
19169
19174
|
animation: v,
|
|
19170
19175
|
getClassNameFromAlign: u.getPopupClassNameFromAlign,
|
|
@@ -19182,7 +19187,7 @@ function generateTrigger(e) {
|
|
|
19182
19187
|
motion: g,
|
|
19183
19188
|
mobile: M,
|
|
19184
19189
|
forceRender: L,
|
|
19185
|
-
onClick:
|
|
19190
|
+
onClick: U,
|
|
19186
19191
|
children: typeof O == "function" ? O() : O
|
|
19187
19192
|
});
|
|
19188
19193
|
}), _defineProperty$1(_assertThisInitialized(u), "attachParent", function(d) {
|
|
@@ -19511,7 +19516,7 @@ function Popup(e) {
|
|
|
19511
19516
|
});
|
|
19512
19517
|
}
|
|
19513
19518
|
var Tooltip = function e(r, a) {
|
|
19514
|
-
var o = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, u = r.mouseEnterDelay, c = u === void 0 ? 0 : u, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, m = h === void 0 ? "rc-tooltip" : h, g = r.children, v = r.onVisibleChange, C = r.afterVisibleChange, S = r.transitionName, y = r.animation, x = r.motion, w = r.placement, T = w === void 0 ? "right" : w, E = r.align, O = E === void 0 ? {} : E, G = r.destroyTooltipOnHide, P = G === void 0 ? !1 : G, M = r.defaultVisible, L = r.getTooltipContainer,
|
|
19519
|
+
var o = r.overlayClassName, s = r.trigger, l = s === void 0 ? ["hover"] : s, u = r.mouseEnterDelay, c = u === void 0 ? 0 : u, d = r.mouseLeaveDelay, f = d === void 0 ? 0.1 : d, p = r.overlayStyle, h = r.prefixCls, m = h === void 0 ? "rc-tooltip" : h, g = r.children, v = r.onVisibleChange, C = r.afterVisibleChange, S = r.transitionName, y = r.animation, x = r.motion, w = r.placement, T = w === void 0 ? "right" : w, E = r.align, O = E === void 0 ? {} : E, G = r.destroyTooltipOnHide, P = G === void 0 ? !1 : G, M = r.defaultVisible, L = r.getTooltipContainer, U = r.overlayInnerStyle, W = r.arrowContent, N = r.overlay, J = r.id, B = r.showArrow, H = _objectWithoutProperties(r, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]), K = useRef(null);
|
|
19515
19520
|
useImperativeHandle(a, function() {
|
|
19516
19521
|
return K.current;
|
|
19517
19522
|
});
|
|
@@ -19519,11 +19524,11 @@ var Tooltip = function e(r, a) {
|
|
|
19519
19524
|
"visible" in r && (re.popupVisible = r.visible);
|
|
19520
19525
|
var ie = function() {
|
|
19521
19526
|
return /* @__PURE__ */ jsx(Popup, {
|
|
19522
|
-
showArrow:
|
|
19523
|
-
arrowContent:
|
|
19527
|
+
showArrow: B,
|
|
19528
|
+
arrowContent: W,
|
|
19524
19529
|
prefixCls: m,
|
|
19525
19530
|
id: J,
|
|
19526
|
-
overlayInnerStyle:
|
|
19531
|
+
overlayInnerStyle: U,
|
|
19527
19532
|
children: N
|
|
19528
19533
|
}, "content");
|
|
19529
19534
|
}, ne = !1, Q = !1;
|
|
@@ -19795,8 +19800,8 @@ placements$1.default = _default$1;
|
|
|
19795
19800
|
return P;
|
|
19796
19801
|
}, y = function(G, P) {
|
|
19797
19802
|
var M = {}, L = (0, l.default)({}, G);
|
|
19798
|
-
return P.forEach(function(
|
|
19799
|
-
G &&
|
|
19803
|
+
return P.forEach(function(U) {
|
|
19804
|
+
G && U in G && (M[U] = G[U], delete L[U]);
|
|
19800
19805
|
}), {
|
|
19801
19806
|
picked: M,
|
|
19802
19807
|
omitted: L
|
|
@@ -19805,26 +19810,26 @@ placements$1.default = _default$1;
|
|
|
19805
19810
|
function w(O, G) {
|
|
19806
19811
|
var P = O.type;
|
|
19807
19812
|
if ((P.__ANT_BUTTON === !0 || O.type === "button") && O.props.disabled || P.__ANT_SWITCH === !0 && (O.props.disabled || O.props.loading) || P.__ANT_RADIO === !0 && O.props.disabled) {
|
|
19808
|
-
var M = y(O.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), L = M.picked,
|
|
19813
|
+
var M = y(O.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), L = M.picked, U = M.omitted, W = (0, l.default)((0, l.default)({
|
|
19809
19814
|
display: "inline-block"
|
|
19810
19815
|
}, L), {
|
|
19811
19816
|
cursor: "not-allowed",
|
|
19812
19817
|
width: O.props.block ? "100%" : void 0
|
|
19813
|
-
}), N = (0, l.default)((0, l.default)({},
|
|
19818
|
+
}), N = (0, l.default)((0, l.default)({}, U), {
|
|
19814
19819
|
pointerEvents: "none"
|
|
19815
19820
|
}), J = (0, v.cloneElement)(O, {
|
|
19816
19821
|
style: N,
|
|
19817
19822
|
className: null
|
|
19818
19823
|
});
|
|
19819
19824
|
return /* @__PURE__ */ f.createElement("span", {
|
|
19820
|
-
style:
|
|
19825
|
+
style: W,
|
|
19821
19826
|
className: (0, u.default)(O.props.className, "".concat(G, "-disabled-compatible-wrapper"))
|
|
19822
19827
|
}, J);
|
|
19823
19828
|
}
|
|
19824
19829
|
return O;
|
|
19825
19830
|
}
|
|
19826
19831
|
var T = /* @__PURE__ */ f.forwardRef(function(O, G) {
|
|
19827
|
-
var P, M = f.useContext(p.ConfigContext), L = M.getPopupContainer,
|
|
19832
|
+
var P, M = f.useContext(p.ConfigContext), L = M.getPopupContainer, U = M.getPrefixCls, W = M.direction;
|
|
19828
19833
|
process.env.NODE_ENV !== "production" && [["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"]].forEach(function(qt) {
|
|
19829
19834
|
var kt = (0, s.default)(qt, 2), Ze = kt[0], Yt = kt[1];
|
|
19830
19835
|
process.env.NODE_ENV !== "production" && (0, C.default)(!(Ze in O), "Tooltip", "`".concat(Ze, "` is deprecated which will be removed in next major version, please use `").concat(Yt, "` instead."));
|
|
@@ -19832,7 +19837,7 @@ placements$1.default = _default$1;
|
|
|
19832
19837
|
var N = (0, d.default)(!1, {
|
|
19833
19838
|
value: O.open !== void 0 ? O.open : O.visible,
|
|
19834
19839
|
defaultValue: O.defaultOpen !== void 0 ? O.defaultOpen : O.defaultVisible
|
|
19835
|
-
}), J = (0, s.default)(N, 2),
|
|
19840
|
+
}), J = (0, s.default)(N, 2), B = J[0], H = J[1], K = function() {
|
|
19836
19841
|
var kt = O.title, Ze = O.overlay;
|
|
19837
19842
|
return !kt && !Ze && kt !== 0;
|
|
19838
19843
|
}, re = function(kt) {
|
|
@@ -19859,9 +19864,9 @@ placements$1.default = _default$1;
|
|
|
19859
19864
|
}, Q = function() {
|
|
19860
19865
|
var kt = O.title, Ze = O.overlay;
|
|
19861
19866
|
return kt === 0 ? kt : Ze || kt || "";
|
|
19862
|
-
}, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay, z = me === void 0 ? 0.1 : me, te = O.mouseLeaveDelay, he = te === void 0 ? 0.1 : te, ge = S(O, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), Te = O.prefixCls, D = O.openClassName, I = O.getTooltipContainer, pe = O.overlayClassName, Re = O.color, Oe = O.overlayInnerStyle, ve = O.children, Pe =
|
|
19867
|
+
}, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay, z = me === void 0 ? 0.1 : me, te = O.mouseLeaveDelay, he = te === void 0 ? 0.1 : te, ge = S(O, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), Te = O.prefixCls, D = O.openClassName, I = O.getTooltipContainer, pe = O.overlayClassName, Re = O.color, Oe = O.overlayInnerStyle, ve = O.children, Pe = U("tooltip", Te), Fe = U(), et = B;
|
|
19863
19868
|
!("open" in O) && !("visible" in O) && K() && (et = !1);
|
|
19864
|
-
var Xt = w((0, v.isValidElement)(ve) && !(0, v.isFragment)(ve) ? ve : /* @__PURE__ */ f.createElement("span", null, ve), Pe), Zt = Xt.props, er = !Zt.className || typeof Zt.className == "string" ? (0, u.default)(Zt.className, (0, o.default)({}, D || "".concat(Pe, "-open"), !0)) : Zt.className, qe = (0, u.default)(pe, (P = {}, (0, o.default)(P, "".concat(Pe, "-rtl"),
|
|
19869
|
+
var Xt = w((0, v.isValidElement)(ve) && !(0, v.isFragment)(ve) ? ve : /* @__PURE__ */ f.createElement("span", null, ve), Pe), Zt = Xt.props, er = !Zt.className || typeof Zt.className == "string" ? (0, u.default)(Zt.className, (0, o.default)({}, D || "".concat(Pe, "-open"), !0)) : Zt.className, qe = (0, u.default)(pe, (P = {}, (0, o.default)(P, "".concat(Pe, "-rtl"), W === "rtl"), (0, o.default)(P, "".concat(Pe, "-").concat(Re), Re && x.test(Re)), P)), Ht = Oe, _t = {};
|
|
19865
19870
|
return Re && !x.test(Re) && (Ht = (0, l.default)((0, l.default)({}, Oe), {
|
|
19866
19871
|
background: Re
|
|
19867
19872
|
}), _t = {
|
|
@@ -19935,7 +19940,7 @@ EnterOutlined$2.default = _default;
|
|
|
19935
19940
|
value: !0
|
|
19936
19941
|
}), e.default = void 0;
|
|
19937
19942
|
var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(EnterOutlined$3.exports), u = a(classnames.exports), c = a(KeyCode$1), d = r(React__default), f = a(TextArea$2), p = reactNode, h = function(v) {
|
|
19938
|
-
var C = v.prefixCls, S = v["aria-label"], y = v.className, x = v.style, w = v.direction, T = v.maxLength, E = v.autoSize, O = E === void 0 ? !0 : E, G = v.value, P = v.onSave, M = v.onCancel, L = v.onEnd,
|
|
19943
|
+
var C = v.prefixCls, S = v["aria-label"], y = v.className, x = v.style, w = v.direction, T = v.maxLength, E = v.autoSize, O = E === void 0 ? !0 : E, G = v.value, P = v.onSave, M = v.onCancel, L = v.onEnd, U = v.component, W = v.enterIcon, N = W === void 0 ? /* @__PURE__ */ d.createElement(l.default, null) : W, J = d.useRef(null), B = d.useRef(!1), H = d.useRef(), K = d.useState(G), re = (0, s.default)(K, 2), ie = re[0], ne = re[1];
|
|
19939
19944
|
d.useEffect(function() {
|
|
19940
19945
|
ne(G);
|
|
19941
19946
|
}, [G]), d.useEffect(function() {
|
|
@@ -19950,20 +19955,20 @@ EnterOutlined$2.default = _default;
|
|
|
19950
19955
|
var I = D.target;
|
|
19951
19956
|
ne(I.value.replace(/[\n\r]/g, ""));
|
|
19952
19957
|
}, ae = function() {
|
|
19953
|
-
|
|
19958
|
+
B.current = !0;
|
|
19954
19959
|
}, oe = function() {
|
|
19955
|
-
|
|
19960
|
+
B.current = !1;
|
|
19956
19961
|
}, ce = function(D) {
|
|
19957
19962
|
var I = D.keyCode;
|
|
19958
|
-
|
|
19963
|
+
B.current || (H.current = I);
|
|
19959
19964
|
}, me = function() {
|
|
19960
19965
|
P(ie.trim());
|
|
19961
19966
|
}, z = function(D) {
|
|
19962
19967
|
var I = D.keyCode, pe = D.ctrlKey, Re = D.altKey, Oe = D.metaKey, ve = D.shiftKey;
|
|
19963
|
-
H.current === I && !
|
|
19968
|
+
H.current === I && !B.current && !pe && !Re && !Oe && !ve && (I === c.default.ENTER ? (me(), L == null || L()) : I === c.default.ESC && M());
|
|
19964
19969
|
}, te = function() {
|
|
19965
19970
|
me();
|
|
19966
|
-
}, he =
|
|
19971
|
+
}, he = U ? "".concat(C, "-").concat(U) : "", ge = (0, u.default)(C, "".concat(C, "-edit-content"), (0, o.default)({}, "".concat(C, "-rtl"), w === "rtl"), y, he);
|
|
19967
19972
|
return /* @__PURE__ */ d.createElement("div", {
|
|
19968
19973
|
className: ge,
|
|
19969
19974
|
style: x
|
|
@@ -20029,12 +20034,12 @@ var Typography = {};
|
|
|
20029
20034
|
v.indexOf(S[y]) < 0 && Object.prototype.propertyIsEnumerable.call(g, S[y]) && (C[S[y]] = g[S[y]]);
|
|
20030
20035
|
return C;
|
|
20031
20036
|
}, h = /* @__PURE__ */ c.forwardRef(function(g, v) {
|
|
20032
|
-
var C = g.prefixCls, S = g.component, y = S === void 0 ? "article" : S, x = g.className, w = g.setContentRef, T = g.children, E = g.direction, O = p(g, ["prefixCls", "component", "className", "setContentRef", "children", "direction"]), G = c.useContext(d.ConfigContext), P = G.getPrefixCls, M = G.direction, L = E != null ? E : M,
|
|
20033
|
-
w && (process.env.NODE_ENV !== "production" && (0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."),
|
|
20034
|
-
var
|
|
20037
|
+
var C = g.prefixCls, S = g.component, y = S === void 0 ? "article" : S, x = g.className, w = g.setContentRef, T = g.children, E = g.direction, O = p(g, ["prefixCls", "component", "className", "setContentRef", "children", "direction"]), G = c.useContext(d.ConfigContext), P = G.getPrefixCls, M = G.direction, L = E != null ? E : M, U = v;
|
|
20038
|
+
w && (process.env.NODE_ENV !== "production" && (0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), U = (0, u.composeRef)(v, w));
|
|
20039
|
+
var W = P("typography", C), N = (0, l.default)(W, (0, s.default)({}, "".concat(W, "-rtl"), L === "rtl"), x);
|
|
20035
20040
|
return /* @__PURE__ */ c.createElement(y, (0, o.default)({
|
|
20036
20041
|
className: N,
|
|
20037
|
-
ref:
|
|
20042
|
+
ref: U
|
|
20038
20043
|
}, O), T);
|
|
20039
20044
|
});
|
|
20040
20045
|
process.env.NODE_ENV !== "production" && (h.displayName = "Typography");
|
|
@@ -20062,17 +20067,17 @@ var Ellipsis = {};
|
|
|
20062
20067
|
for (var E = 0, O = [], G = 0; G < w.length; G += 1) {
|
|
20063
20068
|
if (E === T)
|
|
20064
20069
|
return O;
|
|
20065
|
-
var P = w[G], M = f(P), L = M ? String(P).length : 1,
|
|
20066
|
-
if (
|
|
20067
|
-
var
|
|
20068
|
-
return O.push(String(P).slice(0,
|
|
20070
|
+
var P = w[G], M = f(P), L = M ? String(P).length : 1, U = E + L;
|
|
20071
|
+
if (U > T) {
|
|
20072
|
+
var W = T - E;
|
|
20073
|
+
return O.push(String(P).slice(0, W)), O;
|
|
20069
20074
|
}
|
|
20070
|
-
O.push(P), E =
|
|
20075
|
+
O.push(P), E = U;
|
|
20071
20076
|
}
|
|
20072
20077
|
return w;
|
|
20073
20078
|
}
|
|
20074
20079
|
var m = 0, g = 1, v = 2, C = 3, S = 4, y = function(T) {
|
|
20075
|
-
var E = T.enabledMeasure, O = T.children, G = T.text, P = T.width, M = T.fontSize, L = T.rows,
|
|
20080
|
+
var E = T.enabledMeasure, O = T.children, G = T.text, P = T.width, M = T.fontSize, L = T.rows, U = T.onEllipsis, W = d.useState([0, 0, 0]), N = (0, s.default)(W, 2), J = (0, s.default)(N[0], 3), B = J[0], H = J[1], K = J[2], re = N[1], ie = d.useState(m), ne = (0, s.default)(ie, 2), Q = ne[0], ae = ne[1], oe = d.useState(0), ce = (0, s.default)(oe, 2), me = ce[0], z = ce[1], te = d.useRef(null), he = d.useRef(null), ge = d.useMemo(function() {
|
|
20076
20081
|
return (0, u.default)(G);
|
|
20077
20082
|
}, [G]), Te = d.useMemo(function() {
|
|
20078
20083
|
return p(ge);
|
|
@@ -20089,17 +20094,17 @@ var Ellipsis = {};
|
|
|
20089
20094
|
if (me) {
|
|
20090
20095
|
if (Q === g) {
|
|
20091
20096
|
var Pe = ((Oe = he.current) === null || Oe === void 0 ? void 0 : Oe.offsetHeight) || 0, Fe = L * me;
|
|
20092
|
-
Pe <= Fe ? (ae(S),
|
|
20097
|
+
Pe <= Fe ? (ae(S), U(!1)) : ae(v);
|
|
20093
20098
|
} else if (Q === v)
|
|
20094
|
-
if (
|
|
20095
|
-
var et = ((ve = he.current) === null || ve === void 0 ? void 0 : ve.offsetHeight) || 0, Xt = L * me, Zt =
|
|
20096
|
-
|
|
20099
|
+
if (B !== K) {
|
|
20100
|
+
var et = ((ve = he.current) === null || ve === void 0 ? void 0 : ve.offsetHeight) || 0, Xt = L * me, Zt = B, er = K;
|
|
20101
|
+
B === K - 1 ? er = B : et <= Xt ? Zt = H : er = H;
|
|
20097
20102
|
var qe = Math.ceil((Zt + er) / 2);
|
|
20098
20103
|
re([Zt, qe, er]);
|
|
20099
20104
|
} else
|
|
20100
|
-
ae(C),
|
|
20105
|
+
ae(C), U(!0);
|
|
20101
20106
|
}
|
|
20102
|
-
}, [Q,
|
|
20107
|
+
}, [Q, B, K, L, me]);
|
|
20103
20108
|
var I = {
|
|
20104
20109
|
width: P,
|
|
20105
20110
|
whiteSpace: "normal",
|
|
@@ -20154,7 +20159,7 @@ var EllipsisTooltip = {};
|
|
|
20154
20159
|
Object.defineProperty(e, "__esModule", {
|
|
20155
20160
|
value: !0
|
|
20156
20161
|
}), e.default = void 0;
|
|
20157
|
-
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(slicedToArray.exports), c = a(CheckOutlined$3.exports), d = a(CopyOutlined$3.exports), f = a(EditOutlined$3.exports), p = a(classnames.exports), h = a(copyToClipboard), m = a(require$$11), g = a(toArray$2), v = a(useLayoutEffect$1), C = a(useMergedState$1), S = a(omit$2), y = ref, x = r(React__default), w = requireConfigProvider(), T = LocaleReceiver, E = a(transButton), O = styleChecker$1, G = a(tooltip), P = a(Editable), M = a(useMergedConfig), L = a(useUpdatedEffect),
|
|
20162
|
+
var o = a(defineProperty.exports), s = a(_extends$1.exports), l = a(_typeof$3.exports), u = a(slicedToArray.exports), c = a(CheckOutlined$3.exports), d = a(CopyOutlined$3.exports), f = a(EditOutlined$3.exports), p = a(classnames.exports), h = a(copyToClipboard), m = a(require$$11), g = a(toArray$2), v = a(useLayoutEffect$1), C = a(useMergedState$1), S = a(omit$2), y = ref, x = r(React__default), w = requireConfigProvider(), T = LocaleReceiver, E = a(transButton), O = styleChecker$1, G = a(tooltip), P = a(Editable), M = a(useMergedConfig), L = a(useUpdatedEffect), U = a(Typography), W = a(Ellipsis), N = a(EllipsisTooltip), J = function(Q, ae) {
|
|
20158
20163
|
var oe = {};
|
|
20159
20164
|
for (var ce in Q)
|
|
20160
20165
|
Object.prototype.hasOwnProperty.call(Q, ce) && ae.indexOf(ce) < 0 && (oe[ce] = Q[ce]);
|
|
@@ -20163,7 +20168,7 @@ var EllipsisTooltip = {};
|
|
|
20163
20168
|
ae.indexOf(ce[me]) < 0 && Object.prototype.propertyIsEnumerable.call(Q, ce[me]) && (oe[ce[me]] = Q[ce[me]]);
|
|
20164
20169
|
return oe;
|
|
20165
20170
|
};
|
|
20166
|
-
function
|
|
20171
|
+
function B(Q, ae) {
|
|
20167
20172
|
var oe = Q.mark, ce = Q.code, me = Q.underline, z = Q.delete, te = Q.strong, he = Q.keyboard, ge = Q.italic, Te = ae;
|
|
20168
20173
|
function D(I, pe) {
|
|
20169
20174
|
!I || (Te = /* @__PURE__ */ x.createElement(pe, {}, Te));
|
|
@@ -20340,7 +20345,7 @@ var EllipsisTooltip = {};
|
|
|
20340
20345
|
tooltipProps: un,
|
|
20341
20346
|
enabledEllipsis: rn,
|
|
20342
20347
|
isEllipsis: zn
|
|
20343
|
-
}, /* @__PURE__ */ x.createElement(
|
|
20348
|
+
}, /* @__PURE__ */ x.createElement(U.default, (0, s.default)({
|
|
20344
20349
|
className: (0, p.default)((jt = {}, (0, o.default)(jt, "".concat(Ht, "-").concat(ge), ge), (0, o.default)(jt, "".concat(Ht, "-disabled"), Te), (0, o.default)(jt, "".concat(Ht, "-ellipsis"), ln), (0, o.default)(jt, "".concat(Ht, "-single-line"), rn && pn === 1), (0, o.default)(jt, "".concat(Ht, "-ellipsis-single-line"), Jn), (0, o.default)(jt, "".concat(Ht, "-ellipsis-multiple-line"), In), jt), te),
|
|
20345
20350
|
prefixCls: z,
|
|
20346
20351
|
style: (0, s.default)((0, s.default)({}, he), {
|
|
@@ -20352,7 +20357,7 @@ var EllipsisTooltip = {};
|
|
|
20352
20357
|
onClick: rr.includes("text") ? $r : void 0,
|
|
20353
20358
|
"aria-label": jn == null ? void 0 : jn.toString(),
|
|
20354
20359
|
title: ve
|
|
20355
|
-
}, _t), /* @__PURE__ */ x.createElement(
|
|
20360
|
+
}, _t), /* @__PURE__ */ x.createElement(W.default, {
|
|
20356
20361
|
enabledMeasure: rn && !nn,
|
|
20357
20362
|
text: D,
|
|
20358
20363
|
rows: pn,
|
|
@@ -20365,7 +20370,7 @@ var EllipsisTooltip = {};
|
|
|
20365
20370
|
key: "show-content",
|
|
20366
20371
|
"aria-hidden": !0
|
|
20367
20372
|
}, tn));
|
|
20368
|
-
var vn =
|
|
20373
|
+
var vn = B(Q, /* @__PURE__ */ x.createElement(x.Fragment, null, tn, pa(Gr)));
|
|
20369
20374
|
return vn;
|
|
20370
20375
|
})));
|
|
20371
20376
|
});
|
|
@@ -20410,7 +20415,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20410
20415
|
field: f,
|
|
20411
20416
|
operator: p,
|
|
20412
20417
|
manualIds: h
|
|
20413
|
-
} = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O, G] = useState$1(0), [P, M] = useState$1(), [L,
|
|
20418
|
+
} = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O, G] = useState$1(0), [P, M] = useState$1(), [L, U] = useState$1(), [W, N] = useState$1();
|
|
20414
20419
|
useEffect(() => {
|
|
20415
20420
|
H();
|
|
20416
20421
|
}, [r, s]);
|
|
@@ -20419,7 +20424,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20419
20424
|
isTotal: re
|
|
20420
20425
|
}) {
|
|
20421
20426
|
if (re)
|
|
20422
|
-
return await
|
|
20427
|
+
return await B({
|
|
20423
20428
|
domain: K
|
|
20424
20429
|
});
|
|
20425
20430
|
if (f && p) {
|
|
@@ -20444,7 +20449,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20444
20449
|
context: o
|
|
20445
20450
|
});
|
|
20446
20451
|
}
|
|
20447
|
-
async function
|
|
20452
|
+
async function B({
|
|
20448
20453
|
domain: K
|
|
20449
20454
|
}) {
|
|
20450
20455
|
if (f && p) {
|
|
@@ -20509,17 +20514,17 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20509
20514
|
},
|
|
20510
20515
|
context: o
|
|
20511
20516
|
});
|
|
20512
|
-
|
|
20517
|
+
U(ne);
|
|
20513
20518
|
} else
|
|
20514
|
-
|
|
20519
|
+
U(c);
|
|
20515
20520
|
} catch (ie) {
|
|
20516
20521
|
N(JSON.stringify(ie));
|
|
20517
20522
|
}
|
|
20518
20523
|
g(!1);
|
|
20519
20524
|
}
|
|
20520
|
-
return
|
|
20525
|
+
return W ? /* @__PURE__ */ jsx(Alert, {
|
|
20521
20526
|
className: "mt-10",
|
|
20522
|
-
message:
|
|
20527
|
+
message: W,
|
|
20523
20528
|
type: "error",
|
|
20524
20529
|
banner: !0
|
|
20525
20530
|
}) : m ? /* @__PURE__ */ jsx("div", {
|
|
@@ -21157,7 +21162,7 @@ const One2manyInput = (e) => {
|
|
|
21157
21162
|
} = p || {}, {
|
|
21158
21163
|
lang: S,
|
|
21159
21164
|
t: y
|
|
21160
|
-
} = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [G, P] = useState$1(), [M, L] = useState$1(!1), [
|
|
21165
|
+
} = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [G, P] = useState$1(), [M, L] = useState$1(!1), [U, W] = useState$1(!1), [N, J] = useState$1(), [B, H] = useState$1([]), [K, re] = useState$1(!1), ie = useRef([]), [ne, Q] = useState$1(), ae = useRef(), {
|
|
21161
21166
|
readOnly: oe,
|
|
21162
21167
|
relation: ce,
|
|
21163
21168
|
context: me,
|
|
@@ -21293,8 +21298,8 @@ const One2manyInput = (e) => {
|
|
|
21293
21298
|
}), L(!0));
|
|
21294
21299
|
}, Zt = async () => {
|
|
21295
21300
|
u === "form" ? Fe(() => {
|
|
21296
|
-
|
|
21297
|
-
}) :
|
|
21301
|
+
W(!0);
|
|
21302
|
+
}) : W(!0);
|
|
21298
21303
|
}, er = async () => {
|
|
21299
21304
|
O(!0), T(!1), P(void 0);
|
|
21300
21305
|
try {
|
|
@@ -21311,7 +21316,7 @@ const One2manyInput = (e) => {
|
|
|
21311
21316
|
}
|
|
21312
21317
|
f(0), O(!1);
|
|
21313
21318
|
}, qe = async () => {
|
|
21314
|
-
const it = ge.filter((xt) =>
|
|
21319
|
+
const it = ge.filter((xt) => B.includes(xt.id));
|
|
21315
21320
|
O(!0), T(!1), P(void 0);
|
|
21316
21321
|
try {
|
|
21317
21322
|
const xt = it.map((Jt) => Jt.id), Qt = l.filter((Jt) => !(xt.includes(Jt.id) && Jt.id < 0)).map((Jt) => xt.includes(Jt.id) ? {
|
|
@@ -21455,7 +21460,7 @@ const One2manyInput = (e) => {
|
|
|
21455
21460
|
onRowClicked: ((rr = s.get("form")) == null ? void 0 : rr.fields) !== void 0 ? _t : void 0,
|
|
21456
21461
|
showPagination: !1,
|
|
21457
21462
|
rowSelection: {
|
|
21458
|
-
selectedRowKeys:
|
|
21463
|
+
selectedRowKeys: B,
|
|
21459
21464
|
onChange: H
|
|
21460
21465
|
},
|
|
21461
21466
|
sorter: ne,
|
|
@@ -21502,7 +21507,7 @@ const One2manyInput = (e) => {
|
|
|
21502
21507
|
onPreviousItem: Oe,
|
|
21503
21508
|
onNextItem: ve,
|
|
21504
21509
|
onSearchItem: Zt,
|
|
21505
|
-
selectedRowKeys:
|
|
21510
|
+
selectedRowKeys: B,
|
|
21506
21511
|
showCreateButton: ((tr = s.get("form")) == null ? void 0 : tr.fields) !== void 0,
|
|
21507
21512
|
showToggleButton: s.size > 1
|
|
21508
21513
|
}), Ze(), /* @__PURE__ */ jsx(FormModal, {
|
|
@@ -21530,12 +21535,12 @@ const One2manyInput = (e) => {
|
|
|
21530
21535
|
...v == null ? void 0 : v(),
|
|
21531
21536
|
...me
|
|
21532
21537
|
},
|
|
21533
|
-
visible:
|
|
21538
|
+
visible: U,
|
|
21534
21539
|
onSelectValues: async (it) => {
|
|
21535
|
-
|
|
21540
|
+
W(!1), qt(it);
|
|
21536
21541
|
},
|
|
21537
21542
|
onCloseModal: () => {
|
|
21538
|
-
|
|
21543
|
+
W(!1);
|
|
21539
21544
|
}
|
|
21540
21545
|
})]
|
|
21541
21546
|
});
|
|
@@ -24455,8 +24460,8 @@ var isIP = { exports: {} };
|
|
|
24455
24460
|
max: 30
|
|
24456
24461
|
}))
|
|
24457
24462
|
return !1;
|
|
24458
|
-
for (var
|
|
24459
|
-
if (!h.test(W
|
|
24463
|
+
for (var U = L.split("."), W = 0; W < U.length; W++)
|
|
24464
|
+
if (!h.test(U[W]))
|
|
24460
24465
|
return !1;
|
|
24461
24466
|
}
|
|
24462
24467
|
if (w.ignore_max_length === !1 && (!(0, s.default)(M, {
|
|
@@ -24480,8 +24485,8 @@ var isIP = { exports: {} };
|
|
|
24480
24485
|
}
|
|
24481
24486
|
if (M[0] === '"')
|
|
24482
24487
|
return M = M.slice(1, M.length - 1), w.allow_utf8_local_part ? v.test(M) : m.test(M);
|
|
24483
|
-
for (var J = w.allow_utf8_local_part ? g : p,
|
|
24484
|
-
if (!J.test(
|
|
24488
|
+
for (var J = w.allow_utf8_local_part ? g : p, B = M.split("."), H = 0; H < B.length; H++)
|
|
24489
|
+
if (!J.test(B[H]))
|
|
24485
24490
|
return !1;
|
|
24486
24491
|
return !(w.blacklisted_chars && M.search(new RegExp("[".concat(w.blacklisted_chars, "]+"), "g")) !== -1);
|
|
24487
24492
|
}
|
|
@@ -24572,7 +24577,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24572
24577
|
function y(x, w) {
|
|
24573
24578
|
if ((0, a.default)(x), !x || /[\s<>]/.test(x) || x.indexOf("mailto:") === 0 || (w = (0, l.default)(w, g), w.validate_length && x.length >= 2083) || !w.allow_fragments && x.includes("#") || !w.allow_query_components && (x.includes("?") || x.includes("&")))
|
|
24574
24579
|
return !1;
|
|
24575
|
-
var T, E, O, G, P, M, L,
|
|
24580
|
+
var T, E, O, G, P, M, L, U;
|
|
24576
24581
|
if (L = x.split("#"), x = L.shift(), L = x.split("?"), x = L.shift(), L = x.split("://"), L.length > 1) {
|
|
24577
24582
|
if (T = L.shift().toLowerCase(), w.require_valid_protocol && w.protocols.indexOf(T) === -1)
|
|
24578
24583
|
return !1;
|
|
@@ -24592,18 +24597,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24592
24597
|
if (L = x.split("@"), L.length > 1) {
|
|
24593
24598
|
if (w.disallow_auth || L[0] === "" || (E = L.shift(), E.indexOf(":") >= 0 && E.split(":").length > 2))
|
|
24594
24599
|
return !1;
|
|
24595
|
-
var
|
|
24596
|
-
if (J === "" &&
|
|
24600
|
+
var W = E.split(":"), N = c(W, 2), J = N[0], B = N[1];
|
|
24601
|
+
if (J === "" && B === "")
|
|
24597
24602
|
return !1;
|
|
24598
24603
|
}
|
|
24599
|
-
G = L.join("@"), M = null,
|
|
24604
|
+
G = L.join("@"), M = null, U = null;
|
|
24600
24605
|
var H = G.match(v);
|
|
24601
|
-
if (H ? (O = "",
|
|
24606
|
+
if (H ? (O = "", U = H[1], M = H[2] || null) : (L = G.split(":"), O = L.shift(), L.length && (M = L.join(":"))), M !== null && M.length > 0) {
|
|
24602
24607
|
if (P = parseInt(M, 10), !/^[0-9]+$/.test(M) || P <= 0 || P > 65535)
|
|
24603
24608
|
return !1;
|
|
24604
24609
|
} else if (w.require_port)
|
|
24605
24610
|
return !1;
|
|
24606
|
-
return w.host_whitelist ? S(O, w.host_whitelist) : !(!(0, s.default)(O) && !(0, o.default)(O, w) && (!
|
|
24611
|
+
return w.host_whitelist ? S(O, w.host_whitelist) : !(!(0, s.default)(O) && !(0, o.default)(O, w) && (!U || !(0, s.default)(U, 6)) || (O = O || U, w.host_blacklist && S(O, w.host_blacklist)));
|
|
24607
24612
|
}
|
|
24608
24613
|
e.exports = r.default, e.exports.default = r.default;
|
|
24609
24614
|
})(isURL$1, isURL$1.exports);
|
|
@@ -25306,8 +25311,8 @@ const Kt = (e) => {
|
|
|
25306
25311
|
const { targetKeys: a, dataSource: o, onLoadData: s, locale: l, onChange: u, mode: c, selectedKeys: d, setSelectedKeys: f, setTargetKeys: p } = e, [h, m] = useState$1(), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1([]), w = c === "left" ? Gt : Rn;
|
|
25307
25312
|
useEffect(() => {
|
|
25308
25313
|
if (c === "left") {
|
|
25309
|
-
const
|
|
25310
|
-
u == null || u({ selectedKeys:
|
|
25314
|
+
const U = d.filter((W) => !a.includes(W));
|
|
25315
|
+
u == null || u({ selectedKeys: U, targetKeys: a });
|
|
25311
25316
|
} else
|
|
25312
25317
|
u == null || u({ selectedKeys: d, targetKeys: a });
|
|
25313
25318
|
}, [a, c]), useEffect(() => {
|
|
@@ -25317,19 +25322,19 @@ const Kt = (e) => {
|
|
|
25317
25322
|
}, [d]), useEffect(() => {
|
|
25318
25323
|
a.length === 0 && (f([]), v(!1), S(!1));
|
|
25319
25324
|
}, [a]);
|
|
25320
|
-
const T = useCallback(() => c === "left" ? ee(o) : ee(o).filter((
|
|
25321
|
-
const
|
|
25322
|
-
f(
|
|
25323
|
-
}, [T, a]), G = useCallback((
|
|
25324
|
-
const { value:
|
|
25325
|
-
m(
|
|
25326
|
-
}, []), P = useCallback((
|
|
25327
|
-
c === "left" ? (f(
|
|
25328
|
-
}, [c, a, T]), M = useCallback((
|
|
25329
|
-
const { dragNode:
|
|
25330
|
-
H > -1 &&
|
|
25325
|
+
const T = useCallback(() => c === "left" ? ee(o) : ee(o).filter((U) => a.includes(U.key)), [o, c, a]), E = [...a, ...d], O = useCallback(({ checked: U }) => {
|
|
25326
|
+
const W = U.filter((N) => c !== "left" || !a.includes(N));
|
|
25327
|
+
f(W), W.length === T().length ? (S(!0), v(!1)) : W.length > 0 ? (v(!0), S(!1)) : (v(!1), S(!1));
|
|
25328
|
+
}, [T, a]), G = useCallback((U) => {
|
|
25329
|
+
const { value: W } = U.target;
|
|
25330
|
+
m(W.trim() === "" ? void 0 : W.trim());
|
|
25331
|
+
}, []), P = useCallback((U) => {
|
|
25332
|
+
c === "left" ? (f(U.target.checked ? T().filter((W) => c !== "left" || !a.includes(W.key)).map((W) => W.key) : []), v(!1), S(U.target.checked)) : (f(U.target.checked ? a : []), v(!1), S(U.target.checked));
|
|
25333
|
+
}, [c, a, T]), M = useCallback((U) => {
|
|
25334
|
+
const { dragNode: W, dropPosition: N } = U, { key: J } = W, B = [...a], H = B.indexOf(J);
|
|
25335
|
+
H > -1 && B.splice(H, 1), N === -1 ? B.unshift(J) : B.splice(N, 0, J), p(B);
|
|
25331
25336
|
}, [a]), L = c === "right" ? { className: "draggable-tree", draggable: !0, onDrop: M } : {};
|
|
25332
|
-
return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: P, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(y)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(c === "left" ? "availableFields" : "fieldsToExport", l) })] }), jsxs("div", { className: "ant-transfer-list-body ant-transfer-list-body-with-search", children: [jsx("div", { className: "ant-transfer-list-body-search-wrapper", children: jsx(Input$2, { style: { marginBottom: 8 }, allowClear: !0, placeholder: A("searchPlaceholder", l), onChange: G, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { style: { minHeight: 400 }, children: jsx(Tree$2, { ...L, height: 400, selectable: !1, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: c === "left" ? E : d, loadData: c === "left" ? s : void 0, treeData: y, onCheck: O, titleRender: (
|
|
25337
|
+
return jsxs(Fragment, { children: [jsxs("div", { className: "ant-transfer-list-header", children: [jsx(Col, { flex: 1, children: jsxs(Checkbox, { indeterminate: g, onChange: P, checked: C, children: [d.length > 0 ? `${d.length}/` : "", `${((r = ee(y)) == null ? void 0 : r.length) || 0} ${A("exportModalItemsUnit", l)}`] }) }), jsx(Col, { flex: 1, style: { textAlign: "right" }, children: A(c === "left" ? "availableFields" : "fieldsToExport", l) })] }), jsxs("div", { className: "ant-transfer-list-body ant-transfer-list-body-with-search", children: [jsx("div", { className: "ant-transfer-list-body-search-wrapper", children: jsx(Input$2, { style: { marginBottom: 8 }, allowClear: !0, placeholder: A("searchPlaceholder", l), onChange: G, prefix: jsx(Vr, { style: { color: "#ccc" } }) }) }), jsx("div", { style: { minHeight: 400 }, children: jsx(Tree$2, { ...L, height: 400, selectable: !1, blockNode: !0, checkable: !0, checkStrictly: !0, checkedKeys: c === "left" ? E : d, loadData: c === "left" ? s : void 0, treeData: y, onCheck: O, titleRender: (U) => jsx(En, { node: U }) }) })] })] });
|
|
25333
25338
|
}, nt = k(Col)`
|
|
25334
25339
|
padding: 0.5rem;
|
|
25335
25340
|
border-color: #d9d9d9;
|
|
@@ -26342,11 +26347,11 @@ function FormActionBar({
|
|
|
26342
26347
|
} = useContext(ActionViewContext), {
|
|
26343
26348
|
t: M,
|
|
26344
26349
|
lang: L
|
|
26345
|
-
} = useContext(LocaleContext),
|
|
26346
|
-
processAction:
|
|
26347
|
-
} =
|
|
26350
|
+
} = useContext(LocaleContext), U = useContext(ContentRootContext), {
|
|
26351
|
+
processAction: W
|
|
26352
|
+
} = U || {}, N = useContext(TabManagerContext), {
|
|
26348
26353
|
openRelate: J,
|
|
26349
|
-
openDefaultActionForModel:
|
|
26354
|
+
openDefaultActionForModel: B
|
|
26350
26355
|
} = N || {}, H = useRef(!1);
|
|
26351
26356
|
useEffect(() => {
|
|
26352
26357
|
!u && H.current && message$1.success(M("savedRegisters")), H.current = u || !1;
|
|
@@ -26423,7 +26428,7 @@ function FormActionBar({
|
|
|
26423
26428
|
}
|
|
26424
26429
|
const ce = u || v || x || C;
|
|
26425
26430
|
function me(z) {
|
|
26426
|
-
|
|
26431
|
+
W == null || W({
|
|
26427
26432
|
actionData: z,
|
|
26428
26433
|
values: T.current.getValues(),
|
|
26429
26434
|
fields: T.current.getFields(),
|
|
@@ -26508,9 +26513,8 @@ function FormActionBar({
|
|
|
26508
26513
|
tooltip: M("actions"),
|
|
26509
26514
|
items: e == null ? void 0 : e.action,
|
|
26510
26515
|
onItemClick: async (z) => {
|
|
26511
|
-
!z || !(await
|
|
26512
|
-
onFormSave: s
|
|
26513
|
-
currentId: c
|
|
26516
|
+
!z || !(await saveDocument({
|
|
26517
|
+
onFormSave: s
|
|
26514
26518
|
})).succeed || me(z);
|
|
26515
26519
|
}
|
|
26516
26520
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
@@ -26521,9 +26525,8 @@ function FormActionBar({
|
|
|
26521
26525
|
onItemClick: async (z) => {
|
|
26522
26526
|
if (!z)
|
|
26523
26527
|
return;
|
|
26524
|
-
const te = await
|
|
26525
|
-
onFormSave: s
|
|
26526
|
-
currentId: c
|
|
26528
|
+
const te = await saveDocument({
|
|
26529
|
+
onFormSave: s
|
|
26527
26530
|
});
|
|
26528
26531
|
!te.succeed || me({
|
|
26529
26532
|
...z,
|
|
@@ -26539,9 +26542,8 @@ function FormActionBar({
|
|
|
26539
26542
|
tooltip: M("related"),
|
|
26540
26543
|
items: e == null ? void 0 : e.relate,
|
|
26541
26544
|
onItemClick: async (z) => {
|
|
26542
|
-
!z || !(await
|
|
26543
|
-
onFormSave: s
|
|
26544
|
-
currentId: c
|
|
26545
|
+
!z || !(await saveDocument({
|
|
26546
|
+
onFormSave: s
|
|
26545
26547
|
})).succeed || J({
|
|
26546
26548
|
relateData: z,
|
|
26547
26549
|
values: T.current.getValues(),
|
|
@@ -26554,14 +26556,13 @@ function FormActionBar({
|
|
|
26554
26556
|
disabled: ce,
|
|
26555
26557
|
attachments: w,
|
|
26556
26558
|
onAddNewAttachment: async () => {
|
|
26557
|
-
const z = await
|
|
26558
|
-
onFormSave: s
|
|
26559
|
-
currentId: c
|
|
26559
|
+
const z = await saveDocument({
|
|
26560
|
+
onFormSave: s
|
|
26560
26561
|
});
|
|
26561
26562
|
if (!z.succeed)
|
|
26562
26563
|
return;
|
|
26563
26564
|
const te = z.currentId, he = m;
|
|
26564
|
-
|
|
26565
|
+
B({
|
|
26565
26566
|
model: "ir.attachment",
|
|
26566
26567
|
values: {
|
|
26567
26568
|
selection_associated_object: `${he},${te}`
|
|
@@ -26574,24 +26575,22 @@ function FormActionBar({
|
|
|
26574
26575
|
});
|
|
26575
26576
|
},
|
|
26576
26577
|
onListAllAttachments: async () => {
|
|
26577
|
-
const z = await
|
|
26578
|
-
onFormSave: s
|
|
26579
|
-
currentId: c
|
|
26578
|
+
const z = await saveDocument({
|
|
26579
|
+
onFormSave: s
|
|
26580
26580
|
});
|
|
26581
26581
|
if (!z.succeed)
|
|
26582
26582
|
return;
|
|
26583
26583
|
const te = z.currentId;
|
|
26584
|
-
|
|
26584
|
+
B({
|
|
26585
26585
|
model: "ir.attachment",
|
|
26586
26586
|
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${te}`]],
|
|
26587
26587
|
initialViewType: "tree"
|
|
26588
26588
|
});
|
|
26589
26589
|
},
|
|
26590
26590
|
onViewAttachmentDetails: async (z) => {
|
|
26591
|
-
!(await
|
|
26592
|
-
onFormSave: s
|
|
26593
|
-
|
|
26594
|
-
})).succeed || U({
|
|
26591
|
+
!(await saveDocument({
|
|
26592
|
+
onFormSave: s
|
|
26593
|
+
})).succeed || B({
|
|
26595
26594
|
model: "ir.attachment",
|
|
26596
26595
|
res_id: z.id,
|
|
26597
26596
|
initialViewType: "form"
|
|
@@ -26605,19 +26604,13 @@ function separator$2() {
|
|
|
26605
26604
|
className: "inline-block w-2"
|
|
26606
26605
|
});
|
|
26607
26606
|
}
|
|
26608
|
-
async function
|
|
26609
|
-
onFormSave: e
|
|
26610
|
-
currentId: r
|
|
26607
|
+
async function saveDocument({
|
|
26608
|
+
onFormSave: e
|
|
26611
26609
|
}) {
|
|
26612
|
-
|
|
26613
|
-
|
|
26614
|
-
succeed: !0,
|
|
26615
|
-
currentId: r
|
|
26616
|
-
};
|
|
26617
|
-
const a = await (e == null ? void 0 : e());
|
|
26618
|
-
return a != null && a.succeed ? {
|
|
26610
|
+
const r = await (e == null ? void 0 : e());
|
|
26611
|
+
return r != null && r.succeed ? {
|
|
26619
26612
|
succeed: !0,
|
|
26620
|
-
currentId:
|
|
26613
|
+
currentId: r.id
|
|
26621
26614
|
} : {
|
|
26622
26615
|
succeed: !1,
|
|
26623
26616
|
currentId: void 0
|
|
@@ -26974,17 +26967,17 @@ const GraphActionView = (e) => {
|
|
|
26974
26967
|
setLimit: P,
|
|
26975
26968
|
searchParams: M,
|
|
26976
26969
|
searchValues: L,
|
|
26977
|
-
setSearchValues:
|
|
26978
|
-
currentView:
|
|
26970
|
+
setSearchValues: U,
|
|
26971
|
+
currentView: W
|
|
26979
26972
|
} = f || {}, [N, J] = useState$1(!0);
|
|
26980
26973
|
useEffect(() => {
|
|
26981
26974
|
var ne;
|
|
26982
26975
|
(ne = d.current) == null || ne.refresh();
|
|
26983
26976
|
}, [M]), useEffect(() => {
|
|
26984
|
-
r.view_id !==
|
|
26985
|
-
}, [
|
|
26977
|
+
r.view_id !== W.view_id && J(!0);
|
|
26978
|
+
}, [W]);
|
|
26986
26979
|
const {
|
|
26987
|
-
clear:
|
|
26980
|
+
clear: B,
|
|
26988
26981
|
searchFilterLoading: H,
|
|
26989
26982
|
searchError: K,
|
|
26990
26983
|
offset: re,
|
|
@@ -26994,7 +26987,7 @@ const GraphActionView = (e) => {
|
|
|
26994
26987
|
setSearchTreeNameSearch: E,
|
|
26995
26988
|
setSelectedRowItems: v,
|
|
26996
26989
|
searchParams: M,
|
|
26997
|
-
setSearchValues:
|
|
26990
|
+
setSearchValues: U,
|
|
26998
26991
|
setSearchParams: C,
|
|
26999
26992
|
setSearchVisible: y,
|
|
27000
26993
|
setTreeIsLoading: O,
|
|
@@ -27027,7 +27020,7 @@ const GraphActionView = (e) => {
|
|
|
27027
27020
|
},
|
|
27028
27021
|
searchFields: mergeSearchFields([u.search_fields, c.search_fields]),
|
|
27029
27022
|
limit: G,
|
|
27030
|
-
onClear:
|
|
27023
|
+
onClear: B,
|
|
27031
27024
|
offset: re,
|
|
27032
27025
|
isSearching: H,
|
|
27033
27026
|
onSubmit: (ne) => {
|
|
@@ -27173,15 +27166,15 @@ function TreeActionBar(e) {
|
|
|
27173
27166
|
treeExpandable: M,
|
|
27174
27167
|
toolbar: L
|
|
27175
27168
|
} = e, {
|
|
27176
|
-
t:
|
|
27177
|
-
lang:
|
|
27169
|
+
t: U,
|
|
27170
|
+
lang: W
|
|
27178
27171
|
} = useContext(LocaleContext), N = useContext(ContentRootContext), {
|
|
27179
27172
|
processAction: J
|
|
27180
|
-
} = N || {}, [
|
|
27173
|
+
} = N || {}, [B, H] = useState$1(!1), K = y !== void 0 && y.trim().length > 0;
|
|
27181
27174
|
function re() {
|
|
27182
27175
|
showDialog$9({
|
|
27183
|
-
confirmMessage:
|
|
27184
|
-
lang:
|
|
27176
|
+
confirmMessage: U("confirmRemove"),
|
|
27177
|
+
lang: W,
|
|
27185
27178
|
onOk: () => {
|
|
27186
27179
|
ie();
|
|
27187
27180
|
}
|
|
@@ -27252,7 +27245,7 @@ function TreeActionBar(e) {
|
|
|
27252
27245
|
color: v ? "white" : void 0
|
|
27253
27246
|
}
|
|
27254
27247
|
}),
|
|
27255
|
-
tooltip:
|
|
27248
|
+
tooltip: U("advanced_search"),
|
|
27256
27249
|
type: v ? "primary" : "default",
|
|
27257
27250
|
onClick: () => {
|
|
27258
27251
|
C == null || C(!v);
|
|
@@ -27263,28 +27256,28 @@ function TreeActionBar(e) {
|
|
|
27263
27256
|
disabled: x
|
|
27264
27257
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27265
27258
|
icon: /* @__PURE__ */ jsx(CopyOutlined$4, {}),
|
|
27266
|
-
tooltip:
|
|
27259
|
+
tooltip: U("duplicate"),
|
|
27267
27260
|
disabled: !s || (s == null ? void 0 : s.length) !== 1 || c || x,
|
|
27268
27261
|
loading: c,
|
|
27269
27262
|
onClick: ne
|
|
27270
27263
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27271
27264
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
27272
|
-
tooltip:
|
|
27265
|
+
tooltip: U("delete"),
|
|
27273
27266
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27274
27267
|
loading: u,
|
|
27275
27268
|
onClick: re
|
|
27276
27269
|
}), separator$1()]
|
|
27277
27270
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27278
27271
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$4, {}),
|
|
27279
|
-
tooltip:
|
|
27272
|
+
tooltip: U("showLogs"),
|
|
27280
27273
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27281
27274
|
loading: !1,
|
|
27282
27275
|
onClick: () => {
|
|
27283
|
-
showLogInfo(f, s[0].id,
|
|
27276
|
+
showLogInfo(f, s[0].id, U);
|
|
27284
27277
|
}
|
|
27285
27278
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27286
27279
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
27287
|
-
tooltip:
|
|
27280
|
+
tooltip: U("refresh"),
|
|
27288
27281
|
disabled: c || u || x,
|
|
27289
27282
|
loading: !1,
|
|
27290
27283
|
onClick: () => {
|
|
@@ -27304,7 +27297,7 @@ function TreeActionBar(e) {
|
|
|
27304
27297
|
}), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27305
27298
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
27306
27299
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27307
|
-
tooltip:
|
|
27300
|
+
tooltip: U("actions"),
|
|
27308
27301
|
items: L == null ? void 0 : L.action,
|
|
27309
27302
|
onItemClick: (oe) => {
|
|
27310
27303
|
!oe || Q(oe);
|
|
@@ -27312,7 +27305,7 @@ function TreeActionBar(e) {
|
|
|
27312
27305
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27313
27306
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
27314
27307
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27315
|
-
tooltip:
|
|
27308
|
+
tooltip: U("reports"),
|
|
27316
27309
|
items: L == null ? void 0 : L.print,
|
|
27317
27310
|
onItemClick: (oe) => {
|
|
27318
27311
|
!oe || Q({
|
|
@@ -27352,13 +27345,13 @@ function TreeActionBar(e) {
|
|
|
27352
27345
|
})]
|
|
27353
27346
|
})
|
|
27354
27347
|
}),
|
|
27355
|
-
tooltip:
|
|
27348
|
+
tooltip: U("export"),
|
|
27356
27349
|
items: [{
|
|
27357
27350
|
id: "print_screen",
|
|
27358
|
-
name:
|
|
27351
|
+
name: U("printScreen")
|
|
27359
27352
|
}, {
|
|
27360
27353
|
id: "export",
|
|
27361
|
-
name:
|
|
27354
|
+
name: U("advancedExport")
|
|
27362
27355
|
}],
|
|
27363
27356
|
onItemClick: (oe) => {
|
|
27364
27357
|
if (oe.id === "print_screen") {
|
|
@@ -27379,8 +27372,8 @@ function TreeActionBar(e) {
|
|
|
27379
27372
|
},
|
|
27380
27373
|
disabled: c || u || x || K
|
|
27381
27374
|
}), /* @__PURE__ */ jsx(ExportModal, {
|
|
27382
|
-
visible:
|
|
27383
|
-
locale:
|
|
27375
|
+
visible: B,
|
|
27376
|
+
locale: W,
|
|
27384
27377
|
onClose: () => H(!1),
|
|
27385
27378
|
model: f,
|
|
27386
27379
|
domain: mergeParams(((ae = p == null ? void 0 : p.current) == null ? void 0 : ae.getDomain()) || [], g || []),
|
|
@@ -27549,7 +27542,7 @@ function ActionView(e, r) {
|
|
|
27549
27542
|
action_type: v,
|
|
27550
27543
|
treeExpandable: C = !1,
|
|
27551
27544
|
limit: S
|
|
27552
|
-
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), G = m || void 0, [P, M] = useState$1(G), [L,
|
|
27545
|
+
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), G = m || void 0, [P, M] = useState$1(G), [L, U] = useState$1([]), [W, N] = useState$1(), [J, B] = useState$1([]), [H, K] = useState$1(), [re, ie] = useState$1(0), [ne, Q] = useState$1(!1), [ae, oe] = useState$1(!1), [ce, me] = useState$1(), {
|
|
27553
27546
|
t: z
|
|
27554
27547
|
} = useContext(LocaleContext), te = useRef(), he = useRef(), ge = useContext(TabManagerContext), {
|
|
27555
27548
|
setCurrentView: Te,
|
|
@@ -27560,7 +27553,7 @@ function ActionView(e, r) {
|
|
|
27560
27553
|
} = ge || {};
|
|
27561
27554
|
useHotkeys("ctrl+g,command+g", (qe) => {
|
|
27562
27555
|
qe.preventDefault(), et();
|
|
27563
|
-
}, [pe, I, y,
|
|
27556
|
+
}, [pe, I, y, W, J]);
|
|
27564
27557
|
function Oe(qe) {
|
|
27565
27558
|
M(qe), D == null || D(qe);
|
|
27566
27559
|
}
|
|
@@ -27707,7 +27700,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27707
27700
|
defaultValues: p,
|
|
27708
27701
|
forcedValues: h,
|
|
27709
27702
|
results: J,
|
|
27710
|
-
setResults:
|
|
27703
|
+
setResults: B,
|
|
27711
27704
|
setCurrentItemIndex: N
|
|
27712
27705
|
}, `${qe.type}-${qe.view_id}`);
|
|
27713
27706
|
case "tree":
|
|
@@ -27764,16 +27757,16 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27764
27757
|
currentId: P,
|
|
27765
27758
|
setCurrentId: Oe,
|
|
27766
27759
|
setCurrentItemIndex: N,
|
|
27767
|
-
currentItemIndex:
|
|
27760
|
+
currentItemIndex: W,
|
|
27768
27761
|
results: J,
|
|
27769
|
-
setResults:
|
|
27762
|
+
setResults: B,
|
|
27770
27763
|
currentModel: o,
|
|
27771
27764
|
sorter: H,
|
|
27772
27765
|
setSorter: K,
|
|
27773
27766
|
totalItems: re,
|
|
27774
27767
|
setTotalItems: ie,
|
|
27775
27768
|
selectedRowItems: L,
|
|
27776
|
-
setSelectedRowItems:
|
|
27769
|
+
setSelectedRowItems: U,
|
|
27777
27770
|
setSearchTreeNameSearch: me,
|
|
27778
27771
|
searchTreeNameSearch: ce,
|
|
27779
27772
|
goToResourceId: Xt,
|
|
@@ -27977,7 +27970,7 @@ function DashboardTree(e) {
|
|
|
27977
27970
|
domain: l = [],
|
|
27978
27971
|
visible: u = !0,
|
|
27979
27972
|
parentContext: c = {}
|
|
27980
|
-
} = e, [d, f] = useState$1(!1), [p, h] = useState$1(!1), [m, g] = useState$1(), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(1), [T, E] = useState$1(0), O = useRef(DEFAULT_SEARCH_LIMIT), G = useRef([]), [P, M] = useState$1(0), [L,
|
|
27973
|
+
} = e, [d, f] = useState$1(!1), [p, h] = useState$1(!1), [m, g] = useState$1(), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(1), [T, E] = useState$1(0), O = useRef(DEFAULT_SEARCH_LIMIT), G = useRef([]), [P, M] = useState$1(0), [L, U] = useState$1([]), [W, N] = useState$1(void 0), [J, B] = useState$1(), [H, K] = useState$1(), [re, ie] = useState$1(), [ne, Q] = useState$1(!1), ae = useRef([]), oe = (D) => {
|
|
27981
27974
|
Q(!0), w(D), E((D - 1) * O.current);
|
|
27982
27975
|
}, ce = async () => {
|
|
27983
27976
|
const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(G.current, D), {
|
|
@@ -28006,7 +27999,7 @@ function DashboardTree(e) {
|
|
|
28006
27999
|
...S.fields
|
|
28007
28000
|
}
|
|
28008
28001
|
});
|
|
28009
|
-
|
|
28002
|
+
U(Fe);
|
|
28010
28003
|
}, me = async () => {
|
|
28011
28004
|
try {
|
|
28012
28005
|
Q(!0), await ce();
|
|
@@ -28081,10 +28074,10 @@ function DashboardTree(e) {
|
|
|
28081
28074
|
onRequestPageChange: oe,
|
|
28082
28075
|
loading: ne,
|
|
28083
28076
|
onRowClicked: ge,
|
|
28084
|
-
colorsForResults:
|
|
28077
|
+
colorsForResults: W,
|
|
28085
28078
|
sorter: J,
|
|
28086
28079
|
onChangeSort: (D) => {
|
|
28087
|
-
|
|
28080
|
+
B == null || B(D);
|
|
28088
28081
|
const I = sortResults({
|
|
28089
28082
|
resultsToSort: L,
|
|
28090
28083
|
sorter: D,
|
|
@@ -28093,7 +28086,7 @@ function DashboardTree(e) {
|
|
|
28093
28086
|
...S.fields
|
|
28094
28087
|
}
|
|
28095
28088
|
});
|
|
28096
|
-
|
|
28089
|
+
U(I);
|
|
28097
28090
|
},
|
|
28098
28091
|
context: c
|
|
28099
28092
|
})]
|
|
@@ -28159,13 +28152,13 @@ function Dashboard(e, r) {
|
|
|
28159
28152
|
async function y() {
|
|
28160
28153
|
f(!0), m(!0), h(void 0);
|
|
28161
28154
|
try {
|
|
28162
|
-
const P = await x(), M = await T(P), L = P.fields[itemsField].relation,
|
|
28155
|
+
const P = await x(), M = await T(P), L = P.fields[itemsField].relation, U = M[itemsField].items;
|
|
28163
28156
|
S.current = P.fields;
|
|
28164
|
-
const
|
|
28165
|
-
items:
|
|
28157
|
+
const W = await w({
|
|
28158
|
+
items: U,
|
|
28166
28159
|
model: L,
|
|
28167
28160
|
context: o
|
|
28168
|
-
}), N = await E(
|
|
28161
|
+
}), N = await E(W);
|
|
28169
28162
|
c(N), f(!1), m(!1);
|
|
28170
28163
|
} catch (P) {
|
|
28171
28164
|
h(JSON.stringify(P));
|
|
@@ -28207,11 +28200,11 @@ function Dashboard(e, r) {
|
|
|
28207
28200
|
const M = [];
|
|
28208
28201
|
for (const L of P) {
|
|
28209
28202
|
const {
|
|
28210
|
-
values:
|
|
28203
|
+
values: U
|
|
28211
28204
|
} = L;
|
|
28212
|
-
if (
|
|
28213
|
-
const
|
|
28214
|
-
actionId:
|
|
28205
|
+
if (U.action_id && U.action_id.length > 0) {
|
|
28206
|
+
const W = parseInt(U.action_id[0], 10), N = await fetchAction({
|
|
28207
|
+
actionId: W,
|
|
28215
28208
|
rootContext: o
|
|
28216
28209
|
});
|
|
28217
28210
|
M.push({
|
|
@@ -28231,17 +28224,17 @@ function Dashboard(e, r) {
|
|
|
28231
28224
|
return !1;
|
|
28232
28225
|
if (!J.position)
|
|
28233
28226
|
return !0;
|
|
28234
|
-
const
|
|
28227
|
+
const B = {
|
|
28235
28228
|
...JSON.parse(J.position.replace(/'/g, '"')),
|
|
28236
28229
|
id: J.id
|
|
28237
28230
|
};
|
|
28238
|
-
return JSON.stringify(N) !== JSON.stringify(
|
|
28231
|
+
return JSON.stringify(N) !== JSON.stringify(B);
|
|
28239
28232
|
});
|
|
28240
28233
|
if (M.length === 0)
|
|
28241
28234
|
return;
|
|
28242
|
-
const
|
|
28235
|
+
const U = u.filter((N) => M.map((J) => J.id).includes(N.id)).map((N) => {
|
|
28243
28236
|
const J = {
|
|
28244
|
-
...M.find((
|
|
28237
|
+
...M.find((B) => B.id === N.id)
|
|
28245
28238
|
};
|
|
28246
28239
|
return delete J.id, {
|
|
28247
28240
|
...N
|
|
@@ -28253,15 +28246,15 @@ function Dashboard(e, r) {
|
|
|
28253
28246
|
position: JSON.stringify(J).replace(/"/g, "'")
|
|
28254
28247
|
}
|
|
28255
28248
|
};
|
|
28256
|
-
}),
|
|
28249
|
+
}), W = {
|
|
28257
28250
|
fields: C.current,
|
|
28258
|
-
items:
|
|
28251
|
+
items: U
|
|
28259
28252
|
};
|
|
28260
28253
|
await ConnectionProvider.getHandler().update({
|
|
28261
28254
|
model: a,
|
|
28262
28255
|
id: s,
|
|
28263
28256
|
values: {
|
|
28264
|
-
[itemsField]:
|
|
28257
|
+
[itemsField]: W
|
|
28265
28258
|
},
|
|
28266
28259
|
fields: S.current,
|
|
28267
28260
|
context: o
|
|
@@ -28280,13 +28273,13 @@ function Dashboard(e, r) {
|
|
|
28280
28273
|
children: u.map((P, M) => {
|
|
28281
28274
|
const {
|
|
28282
28275
|
actionData: L,
|
|
28283
|
-
values:
|
|
28276
|
+
values: U
|
|
28284
28277
|
} = P, {
|
|
28285
|
-
position:
|
|
28278
|
+
position: W,
|
|
28286
28279
|
id: N
|
|
28287
|
-
} =
|
|
28280
|
+
} = U, {
|
|
28288
28281
|
actionId: J,
|
|
28289
|
-
actionType:
|
|
28282
|
+
actionType: B,
|
|
28290
28283
|
key: H,
|
|
28291
28284
|
title: K,
|
|
28292
28285
|
views: re,
|
|
@@ -28298,7 +28291,7 @@ function Dashboard(e, r) {
|
|
|
28298
28291
|
} = L;
|
|
28299
28292
|
let ce = {};
|
|
28300
28293
|
try {
|
|
28301
|
-
ce = JSON.parse(
|
|
28294
|
+
ce = JSON.parse(W.replace(/'/g, '"'));
|
|
28302
28295
|
} catch {
|
|
28303
28296
|
ce = {
|
|
28304
28297
|
x: M * 2,
|
|
@@ -28357,7 +28350,7 @@ function Dashboard(e, r) {
|
|
|
28357
28350
|
} : ae;
|
|
28358
28351
|
me = /* @__PURE__ */ jsx(ActionView$1, {
|
|
28359
28352
|
action_id: J,
|
|
28360
|
-
action_type:
|
|
28353
|
+
action_type: B,
|
|
28361
28354
|
tabKey: H,
|
|
28362
28355
|
title: K,
|
|
28363
28356
|
views: re,
|
|
@@ -28479,12 +28472,12 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
28479
28472
|
...x == null ? void 0 : x(),
|
|
28480
28473
|
...g
|
|
28481
28474
|
}
|
|
28482
|
-
})).map((
|
|
28483
|
-
const
|
|
28484
|
-
let N =
|
|
28485
|
-
return Array.isArray(
|
|
28475
|
+
})).map((U) => {
|
|
28476
|
+
const W = U[C];
|
|
28477
|
+
let N = W;
|
|
28478
|
+
return Array.isArray(W) && (N = W[1]), {
|
|
28486
28479
|
label: N,
|
|
28487
|
-
value:
|
|
28480
|
+
value: U.id
|
|
28488
28481
|
};
|
|
28489
28482
|
});
|
|
28490
28483
|
c(L);
|
|
@@ -28506,16 +28499,16 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
28506
28499
|
}, O = () => {
|
|
28507
28500
|
G([]);
|
|
28508
28501
|
}, G = (P) => {
|
|
28509
|
-
const M = s.map((
|
|
28510
|
-
...
|
|
28502
|
+
const M = s.map((U) => P.includes(U.id) ? U.operation == "pendingRemove" ? {
|
|
28503
|
+
...U,
|
|
28511
28504
|
operation: "original"
|
|
28512
|
-
} :
|
|
28513
|
-
id:
|
|
28505
|
+
} : U : {
|
|
28506
|
+
id: U.id,
|
|
28514
28507
|
operation: "pendingRemove"
|
|
28515
|
-
}), L = M.map((
|
|
28516
|
-
P.filter((
|
|
28508
|
+
}), L = M.map((U) => U.id);
|
|
28509
|
+
P.filter((U) => !L.includes(U)).map((U) => {
|
|
28517
28510
|
M.push({
|
|
28518
|
-
id:
|
|
28511
|
+
id: U,
|
|
28519
28512
|
operation: "pendingLink"
|
|
28520
28513
|
});
|
|
28521
28514
|
}), w(M);
|
|
@@ -28733,11 +28726,11 @@ function RootView(e, r) {
|
|
|
28733
28726
|
showDialog$8("Action type not supported");
|
|
28734
28727
|
return;
|
|
28735
28728
|
}
|
|
28736
|
-
const [
|
|
28729
|
+
const [U, W] = T.split(","), N = parseInt(W), J = parseContext({
|
|
28737
28730
|
context: L.context,
|
|
28738
28731
|
values: o,
|
|
28739
28732
|
fields: {}
|
|
28740
|
-
}),
|
|
28733
|
+
}), B = L.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
28741
28734
|
domain: L.domain,
|
|
28742
28735
|
values: o,
|
|
28743
28736
|
context: {
|
|
@@ -28788,7 +28781,7 @@ function RootView(e, r) {
|
|
|
28788
28781
|
};
|
|
28789
28782
|
}
|
|
28790
28783
|
w({
|
|
28791
|
-
domain: [...
|
|
28784
|
+
domain: [...B, ...M],
|
|
28792
28785
|
context: {
|
|
28793
28786
|
...s,
|
|
28794
28787
|
...J
|
|
@@ -28798,7 +28791,7 @@ function RootView(e, r) {
|
|
|
28798
28791
|
title: re,
|
|
28799
28792
|
target: ie,
|
|
28800
28793
|
initialView: ce,
|
|
28801
|
-
action_type:
|
|
28794
|
+
action_type: U,
|
|
28802
28795
|
action_id: N,
|
|
28803
28796
|
values: E,
|
|
28804
28797
|
forced_values: O,
|
|
@@ -28832,12 +28825,12 @@ function RootView(e, r) {
|
|
|
28832
28825
|
const {
|
|
28833
28826
|
res_model: M,
|
|
28834
28827
|
context: L,
|
|
28835
|
-
domain:
|
|
28836
|
-
views:
|
|
28828
|
+
domain: U,
|
|
28829
|
+
views: W,
|
|
28837
28830
|
target: N,
|
|
28838
28831
|
string: J,
|
|
28839
|
-
limit:
|
|
28840
|
-
} = T, [H, K] =
|
|
28832
|
+
limit: B
|
|
28833
|
+
} = T, [H, K] = W[0], re = {
|
|
28841
28834
|
id: H,
|
|
28842
28835
|
type: K
|
|
28843
28836
|
}, ie = parseContext({
|
|
@@ -28847,8 +28840,8 @@ function RootView(e, r) {
|
|
|
28847
28840
|
...o
|
|
28848
28841
|
},
|
|
28849
28842
|
fields: E
|
|
28850
|
-
}), ne =
|
|
28851
|
-
domain:
|
|
28843
|
+
}), ne = U ? await ConnectionProvider.getHandler().evalDomain({
|
|
28844
|
+
domain: U,
|
|
28852
28845
|
values: transformPlainMany2Ones({
|
|
28853
28846
|
fields: E,
|
|
28854
28847
|
values: {
|
|
@@ -28865,7 +28858,7 @@ function RootView(e, r) {
|
|
|
28865
28858
|
w({
|
|
28866
28859
|
model: M,
|
|
28867
28860
|
target: N,
|
|
28868
|
-
views:
|
|
28861
|
+
views: W,
|
|
28869
28862
|
context: {
|
|
28870
28863
|
...s,
|
|
28871
28864
|
...ie
|
|
@@ -28875,7 +28868,7 @@ function RootView(e, r) {
|
|
|
28875
28868
|
initialView: re,
|
|
28876
28869
|
action_id: G,
|
|
28877
28870
|
action_type: P,
|
|
28878
|
-
limit:
|
|
28871
|
+
limit: B
|
|
28879
28872
|
});
|
|
28880
28873
|
}
|
|
28881
28874
|
async function y(T) {
|
|
@@ -28887,21 +28880,21 @@ function RootView(e, r) {
|
|
|
28887
28880
|
} = T, M = `${O},${E}`, L = await ConnectionProvider.getHandler().getActionData({
|
|
28888
28881
|
action: M,
|
|
28889
28882
|
context: s
|
|
28890
|
-
}),
|
|
28883
|
+
}), U = parseContext({
|
|
28891
28884
|
context: L.context,
|
|
28892
28885
|
values: o,
|
|
28893
28886
|
fields: {}
|
|
28894
|
-
}),
|
|
28887
|
+
}), W = L.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
28895
28888
|
domain: L.domain,
|
|
28896
28889
|
values: o,
|
|
28897
28890
|
context: {
|
|
28898
28891
|
...s,
|
|
28899
|
-
...
|
|
28892
|
+
...U
|
|
28900
28893
|
}
|
|
28901
28894
|
}) : [], {
|
|
28902
28895
|
res_model: N,
|
|
28903
28896
|
views: J,
|
|
28904
|
-
name:
|
|
28897
|
+
name: B,
|
|
28905
28898
|
target: H,
|
|
28906
28899
|
view_type: K,
|
|
28907
28900
|
limit: re
|
|
@@ -28921,7 +28914,7 @@ function RootView(e, r) {
|
|
|
28921
28914
|
id: me,
|
|
28922
28915
|
context: {
|
|
28923
28916
|
...s,
|
|
28924
|
-
...
|
|
28917
|
+
...U
|
|
28925
28918
|
}
|
|
28926
28919
|
});
|
|
28927
28920
|
ne.push([te, z]);
|
|
@@ -28938,14 +28931,14 @@ function RootView(e, r) {
|
|
|
28938
28931
|
type: ae
|
|
28939
28932
|
};
|
|
28940
28933
|
w({
|
|
28941
|
-
domain:
|
|
28934
|
+
domain: W,
|
|
28942
28935
|
context: {
|
|
28943
28936
|
...s,
|
|
28944
|
-
...
|
|
28937
|
+
...U
|
|
28945
28938
|
},
|
|
28946
28939
|
model: N,
|
|
28947
28940
|
views: ne,
|
|
28948
|
-
title:
|
|
28941
|
+
title: B,
|
|
28949
28942
|
target: H,
|
|
28950
28943
|
initialView: oe,
|
|
28951
28944
|
action_id: E,
|
|
@@ -28981,11 +28974,11 @@ function RootView(e, r) {
|
|
|
28981
28974
|
title: P,
|
|
28982
28975
|
target: M,
|
|
28983
28976
|
initialView: L,
|
|
28984
|
-
action_id:
|
|
28985
|
-
action_type:
|
|
28977
|
+
action_id: U,
|
|
28978
|
+
action_type: W,
|
|
28986
28979
|
res_id: N,
|
|
28987
28980
|
values: J,
|
|
28988
|
-
forced_values:
|
|
28981
|
+
forced_values: B,
|
|
28989
28982
|
treeExpandable: H = !1,
|
|
28990
28983
|
limit: K
|
|
28991
28984
|
}) {
|
|
@@ -29009,8 +29002,8 @@ function RootView(e, r) {
|
|
|
29009
29002
|
...E
|
|
29010
29003
|
},
|
|
29011
29004
|
actionData: {
|
|
29012
|
-
action_id:
|
|
29013
|
-
action_type:
|
|
29005
|
+
action_id: U,
|
|
29006
|
+
action_type: W,
|
|
29014
29007
|
res_id: N,
|
|
29015
29008
|
view_id: ie.view_id
|
|
29016
29009
|
}
|
|
@@ -29023,12 +29016,12 @@ function RootView(e, r) {
|
|
|
29023
29016
|
C({
|
|
29024
29017
|
title: P,
|
|
29025
29018
|
action: {
|
|
29026
|
-
id:
|
|
29027
|
-
type:
|
|
29019
|
+
id: U,
|
|
29020
|
+
type: W
|
|
29028
29021
|
},
|
|
29029
29022
|
content: /* @__PURE__ */ jsx(ActionView$1, {
|
|
29030
|
-
action_id:
|
|
29031
|
-
action_type:
|
|
29023
|
+
action_id: U,
|
|
29024
|
+
action_type: W,
|
|
29032
29025
|
tabKey: re,
|
|
29033
29026
|
title: P,
|
|
29034
29027
|
views: G,
|
|
@@ -29042,7 +29035,7 @@ function RootView(e, r) {
|
|
|
29042
29035
|
initialView: ie,
|
|
29043
29036
|
res_id: N,
|
|
29044
29037
|
formDefaultValues: J,
|
|
29045
|
-
formForcedValues:
|
|
29038
|
+
formForcedValues: B,
|
|
29046
29039
|
treeExpandable: H,
|
|
29047
29040
|
limit: K
|
|
29048
29041
|
}),
|
|
@@ -29201,30 +29194,30 @@ const FavouriteButton = (e) => {
|
|
|
29201
29194
|
async function G() {
|
|
29202
29195
|
try {
|
|
29203
29196
|
m(!0);
|
|
29204
|
-
const
|
|
29205
|
-
p(
|
|
29206
|
-
} catch (
|
|
29207
|
-
showDialog$8(
|
|
29197
|
+
const B = await r();
|
|
29198
|
+
p(B);
|
|
29199
|
+
} catch (B) {
|
|
29200
|
+
showDialog$8(B);
|
|
29208
29201
|
} finally {
|
|
29209
29202
|
m(!1);
|
|
29210
29203
|
}
|
|
29211
29204
|
}
|
|
29212
|
-
function P(
|
|
29205
|
+
function P(B) {
|
|
29213
29206
|
const {
|
|
29214
29207
|
key: H
|
|
29215
|
-
} =
|
|
29208
|
+
} = B, K = f.find((re) => re.id === Number(H));
|
|
29216
29209
|
(K == null ? void 0 : K.action_type) !== "ir.actions.wizard" && (K && y(K), d(!1));
|
|
29217
29210
|
}
|
|
29218
|
-
function M(
|
|
29219
|
-
|
|
29211
|
+
function M(B) {
|
|
29212
|
+
B && G(), d(B);
|
|
29220
29213
|
}
|
|
29221
29214
|
async function L() {
|
|
29222
29215
|
if (!T)
|
|
29223
29216
|
return;
|
|
29224
|
-
const
|
|
29217
|
+
const B = x.find((Q) => Q.key === w), {
|
|
29225
29218
|
id: H,
|
|
29226
29219
|
type: K
|
|
29227
|
-
} = (
|
|
29220
|
+
} = (B == null ? void 0 : B.action) || {};
|
|
29228
29221
|
if (!H || !K) {
|
|
29229
29222
|
u(!1);
|
|
29230
29223
|
return;
|
|
@@ -29240,12 +29233,12 @@ const FavouriteButton = (e) => {
|
|
|
29240
29233
|
});
|
|
29241
29234
|
ne !== !1 && v(ne), u(ne !== !1);
|
|
29242
29235
|
}
|
|
29243
|
-
async function
|
|
29236
|
+
async function U() {
|
|
29244
29237
|
d(!1), O == null || O({
|
|
29245
29238
|
model: "ir.ui.view_sc"
|
|
29246
29239
|
});
|
|
29247
29240
|
}
|
|
29248
|
-
const
|
|
29241
|
+
const W = /* @__PURE__ */ jsxs(Menu, {
|
|
29249
29242
|
onClick: P,
|
|
29250
29243
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29251
29244
|
style: {
|
|
@@ -29271,7 +29264,7 @@ const FavouriteButton = (e) => {
|
|
|
29271
29264
|
color: "#1890FF",
|
|
29272
29265
|
cursor: "pointer"
|
|
29273
29266
|
},
|
|
29274
|
-
onClick:
|
|
29267
|
+
onClick: U
|
|
29275
29268
|
})
|
|
29276
29269
|
})
|
|
29277
29270
|
})]
|
|
@@ -29280,12 +29273,12 @@ const FavouriteButton = (e) => {
|
|
|
29280
29273
|
padding: "1rem"
|
|
29281
29274
|
}
|
|
29282
29275
|
}) : f.length > 0 ? /* @__PURE__ */ jsx(Fragment, {
|
|
29283
|
-
children: f.map((
|
|
29276
|
+
children: f.map((B) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
29284
29277
|
children: /* @__PURE__ */ jsx(N, {
|
|
29285
|
-
title:
|
|
29286
|
-
type:
|
|
29278
|
+
title: B.name,
|
|
29279
|
+
type: B.view_type
|
|
29287
29280
|
})
|
|
29288
|
-
},
|
|
29281
|
+
}, B.id))
|
|
29289
29282
|
}) : /* @__PURE__ */ jsx("div", {
|
|
29290
29283
|
style: {
|
|
29291
29284
|
width: 300,
|
|
@@ -29296,7 +29289,7 @@ const FavouriteButton = (e) => {
|
|
|
29296
29289
|
})]
|
|
29297
29290
|
});
|
|
29298
29291
|
function N({
|
|
29299
|
-
title:
|
|
29292
|
+
title: B,
|
|
29300
29293
|
type: H
|
|
29301
29294
|
}) {
|
|
29302
29295
|
return /* @__PURE__ */ jsxs(Row, {
|
|
@@ -29309,7 +29302,7 @@ const FavouriteButton = (e) => {
|
|
|
29309
29302
|
children: H === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
|
|
29310
29303
|
}), /* @__PURE__ */ jsx(Col, {
|
|
29311
29304
|
flex: "auto",
|
|
29312
|
-
children:
|
|
29305
|
+
children: B
|
|
29313
29306
|
})]
|
|
29314
29307
|
});
|
|
29315
29308
|
}
|
|
@@ -29319,10 +29312,10 @@ const FavouriteButton = (e) => {
|
|
|
29319
29312
|
else {
|
|
29320
29313
|
if (!T)
|
|
29321
29314
|
return;
|
|
29322
|
-
const
|
|
29315
|
+
const B = x.find((ne) => ne.key === w), {
|
|
29323
29316
|
id: H,
|
|
29324
29317
|
type: K
|
|
29325
|
-
} = (
|
|
29318
|
+
} = (B == null ? void 0 : B.action) || {}, re = T.view_id;
|
|
29326
29319
|
let ie = !1;
|
|
29327
29320
|
if (!H || !K) {
|
|
29328
29321
|
u(!1);
|
|
@@ -29350,7 +29343,7 @@ const FavouriteButton = (e) => {
|
|
|
29350
29343
|
},
|
|
29351
29344
|
onClick: J
|
|
29352
29345
|
}), /* @__PURE__ */ jsx(Dropdown, {
|
|
29353
|
-
overlay:
|
|
29346
|
+
overlay: W,
|
|
29354
29347
|
onVisibleChange: M,
|
|
29355
29348
|
visible: c,
|
|
29356
29349
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
@@ -29362,7 +29355,7 @@ const FavouriteButton = (e) => {
|
|
|
29362
29355
|
fontSize: "0.5em"
|
|
29363
29356
|
}
|
|
29364
29357
|
}),
|
|
29365
|
-
onClick: (
|
|
29358
|
+
onClick: (B) => B.preventDefault()
|
|
29366
29359
|
})
|
|
29367
29360
|
})]
|
|
29368
29361
|
});
|