@gisce/react-ooui 1.2.0-rc.42 → 1.2.0-rc.44
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/helpers/searchHelper.d.ts +1 -1
- package/dist/helpers/searchHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +741 -722
- 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/Graph/GraphDefaults.d.ts +18 -0
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.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/helpers/searchHelper.ts +8 -7
- package/src/widgets/views/Graph/GraphDefaults.ts +19 -0
- 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", {
|
|
@@ -20665,7 +20670,12 @@ function PercentageIndicator({
|
|
|
20665
20670
|
})
|
|
20666
20671
|
});
|
|
20667
20672
|
}
|
|
20668
|
-
const
|
|
20673
|
+
const formatter = (e) => (r) => {
|
|
20674
|
+
const a = r.value.toLocaleString("en-US", {
|
|
20675
|
+
useGrouping: !0
|
|
20676
|
+
});
|
|
20677
|
+
return { name: e === "pie" ? r.x : r.type, value: a };
|
|
20678
|
+
}, DefaultGraphOptions = {
|
|
20669
20679
|
default: {
|
|
20670
20680
|
padding: "auto",
|
|
20671
20681
|
xAxis: {
|
|
@@ -20674,6 +20684,9 @@ const DefaultGraphOptions = {
|
|
|
20674
20684
|
legend: {
|
|
20675
20685
|
maxWidthRatio: 0.5,
|
|
20676
20686
|
maxItemWidth: 1e3
|
|
20687
|
+
},
|
|
20688
|
+
tooltip: {
|
|
20689
|
+
formatter: formatter("default")
|
|
20677
20690
|
}
|
|
20678
20691
|
},
|
|
20679
20692
|
pie: {
|
|
@@ -20692,6 +20705,9 @@ const DefaultGraphOptions = {
|
|
|
20692
20705
|
maxWidthRatio: 0.5,
|
|
20693
20706
|
maxItemWidth: 1e3
|
|
20694
20707
|
},
|
|
20708
|
+
tooltip: {
|
|
20709
|
+
formatter: formatter("pie")
|
|
20710
|
+
},
|
|
20695
20711
|
interactions: [
|
|
20696
20712
|
{
|
|
20697
20713
|
type: "element-active"
|
|
@@ -20704,6 +20720,9 @@ const DefaultGraphOptions = {
|
|
|
20704
20720
|
maxWidthRatio: 0.5,
|
|
20705
20721
|
maxItemWidth: 1e3
|
|
20706
20722
|
},
|
|
20723
|
+
tooltip: {
|
|
20724
|
+
formatter: formatter("barGrouped")
|
|
20725
|
+
},
|
|
20707
20726
|
label: {
|
|
20708
20727
|
position: "middle",
|
|
20709
20728
|
layout: [
|
|
@@ -21157,7 +21176,7 @@ const One2manyInput = (e) => {
|
|
|
21157
21176
|
} = p || {}, {
|
|
21158
21177
|
lang: S,
|
|
21159
21178
|
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), [
|
|
21179
|
+
} = 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
21180
|
readOnly: oe,
|
|
21162
21181
|
relation: ce,
|
|
21163
21182
|
context: me,
|
|
@@ -21293,8 +21312,8 @@ const One2manyInput = (e) => {
|
|
|
21293
21312
|
}), L(!0));
|
|
21294
21313
|
}, Zt = async () => {
|
|
21295
21314
|
u === "form" ? Fe(() => {
|
|
21296
|
-
|
|
21297
|
-
}) :
|
|
21315
|
+
W(!0);
|
|
21316
|
+
}) : W(!0);
|
|
21298
21317
|
}, er = async () => {
|
|
21299
21318
|
O(!0), T(!1), P(void 0);
|
|
21300
21319
|
try {
|
|
@@ -21311,7 +21330,7 @@ const One2manyInput = (e) => {
|
|
|
21311
21330
|
}
|
|
21312
21331
|
f(0), O(!1);
|
|
21313
21332
|
}, qe = async () => {
|
|
21314
|
-
const it = ge.filter((xt) =>
|
|
21333
|
+
const it = ge.filter((xt) => B.includes(xt.id));
|
|
21315
21334
|
O(!0), T(!1), P(void 0);
|
|
21316
21335
|
try {
|
|
21317
21336
|
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 +21474,7 @@ const One2manyInput = (e) => {
|
|
|
21455
21474
|
onRowClicked: ((rr = s.get("form")) == null ? void 0 : rr.fields) !== void 0 ? _t : void 0,
|
|
21456
21475
|
showPagination: !1,
|
|
21457
21476
|
rowSelection: {
|
|
21458
|
-
selectedRowKeys:
|
|
21477
|
+
selectedRowKeys: B,
|
|
21459
21478
|
onChange: H
|
|
21460
21479
|
},
|
|
21461
21480
|
sorter: ne,
|
|
@@ -21502,7 +21521,7 @@ const One2manyInput = (e) => {
|
|
|
21502
21521
|
onPreviousItem: Oe,
|
|
21503
21522
|
onNextItem: ve,
|
|
21504
21523
|
onSearchItem: Zt,
|
|
21505
|
-
selectedRowKeys:
|
|
21524
|
+
selectedRowKeys: B,
|
|
21506
21525
|
showCreateButton: ((tr = s.get("form")) == null ? void 0 : tr.fields) !== void 0,
|
|
21507
21526
|
showToggleButton: s.size > 1
|
|
21508
21527
|
}), Ze(), /* @__PURE__ */ jsx(FormModal, {
|
|
@@ -21530,12 +21549,12 @@ const One2manyInput = (e) => {
|
|
|
21530
21549
|
...v == null ? void 0 : v(),
|
|
21531
21550
|
...me
|
|
21532
21551
|
},
|
|
21533
|
-
visible:
|
|
21552
|
+
visible: U,
|
|
21534
21553
|
onSelectValues: async (it) => {
|
|
21535
|
-
|
|
21554
|
+
W(!1), qt(it);
|
|
21536
21555
|
},
|
|
21537
21556
|
onCloseModal: () => {
|
|
21538
|
-
|
|
21557
|
+
W(!1);
|
|
21539
21558
|
}
|
|
21540
21559
|
})]
|
|
21541
21560
|
});
|
|
@@ -24455,8 +24474,8 @@ var isIP = { exports: {} };
|
|
|
24455
24474
|
max: 30
|
|
24456
24475
|
}))
|
|
24457
24476
|
return !1;
|
|
24458
|
-
for (var
|
|
24459
|
-
if (!h.test(W
|
|
24477
|
+
for (var U = L.split("."), W = 0; W < U.length; W++)
|
|
24478
|
+
if (!h.test(U[W]))
|
|
24460
24479
|
return !1;
|
|
24461
24480
|
}
|
|
24462
24481
|
if (w.ignore_max_length === !1 && (!(0, s.default)(M, {
|
|
@@ -24480,8 +24499,8 @@ var isIP = { exports: {} };
|
|
|
24480
24499
|
}
|
|
24481
24500
|
if (M[0] === '"')
|
|
24482
24501
|
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(
|
|
24502
|
+
for (var J = w.allow_utf8_local_part ? g : p, B = M.split("."), H = 0; H < B.length; H++)
|
|
24503
|
+
if (!J.test(B[H]))
|
|
24485
24504
|
return !1;
|
|
24486
24505
|
return !(w.blacklisted_chars && M.search(new RegExp("[".concat(w.blacklisted_chars, "]+"), "g")) !== -1);
|
|
24487
24506
|
}
|
|
@@ -24572,7 +24591,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24572
24591
|
function y(x, w) {
|
|
24573
24592
|
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
24593
|
return !1;
|
|
24575
|
-
var T, E, O, G, P, M, L,
|
|
24594
|
+
var T, E, O, G, P, M, L, U;
|
|
24576
24595
|
if (L = x.split("#"), x = L.shift(), L = x.split("?"), x = L.shift(), L = x.split("://"), L.length > 1) {
|
|
24577
24596
|
if (T = L.shift().toLowerCase(), w.require_valid_protocol && w.protocols.indexOf(T) === -1)
|
|
24578
24597
|
return !1;
|
|
@@ -24592,18 +24611,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24592
24611
|
if (L = x.split("@"), L.length > 1) {
|
|
24593
24612
|
if (w.disallow_auth || L[0] === "" || (E = L.shift(), E.indexOf(":") >= 0 && E.split(":").length > 2))
|
|
24594
24613
|
return !1;
|
|
24595
|
-
var
|
|
24596
|
-
if (J === "" &&
|
|
24614
|
+
var W = E.split(":"), N = c(W, 2), J = N[0], B = N[1];
|
|
24615
|
+
if (J === "" && B === "")
|
|
24597
24616
|
return !1;
|
|
24598
24617
|
}
|
|
24599
|
-
G = L.join("@"), M = null,
|
|
24618
|
+
G = L.join("@"), M = null, U = null;
|
|
24600
24619
|
var H = G.match(v);
|
|
24601
|
-
if (H ? (O = "",
|
|
24620
|
+
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
24621
|
if (P = parseInt(M, 10), !/^[0-9]+$/.test(M) || P <= 0 || P > 65535)
|
|
24603
24622
|
return !1;
|
|
24604
24623
|
} else if (w.require_port)
|
|
24605
24624
|
return !1;
|
|
24606
|
-
return w.host_whitelist ? S(O, w.host_whitelist) : !(!(0, s.default)(O) && !(0, o.default)(O, w) && (!
|
|
24625
|
+
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
24626
|
}
|
|
24608
24627
|
e.exports = r.default, e.exports.default = r.default;
|
|
24609
24628
|
})(isURL$1, isURL$1.exports);
|
|
@@ -25306,8 +25325,8 @@ const Kt = (e) => {
|
|
|
25306
25325
|
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
25326
|
useEffect(() => {
|
|
25308
25327
|
if (c === "left") {
|
|
25309
|
-
const
|
|
25310
|
-
u == null || u({ selectedKeys:
|
|
25328
|
+
const U = d.filter((W) => !a.includes(W));
|
|
25329
|
+
u == null || u({ selectedKeys: U, targetKeys: a });
|
|
25311
25330
|
} else
|
|
25312
25331
|
u == null || u({ selectedKeys: d, targetKeys: a });
|
|
25313
25332
|
}, [a, c]), useEffect(() => {
|
|
@@ -25317,19 +25336,19 @@ const Kt = (e) => {
|
|
|
25317
25336
|
}, [d]), useEffect(() => {
|
|
25318
25337
|
a.length === 0 && (f([]), v(!1), S(!1));
|
|
25319
25338
|
}, [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 &&
|
|
25339
|
+
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 }) => {
|
|
25340
|
+
const W = U.filter((N) => c !== "left" || !a.includes(N));
|
|
25341
|
+
f(W), W.length === T().length ? (S(!0), v(!1)) : W.length > 0 ? (v(!0), S(!1)) : (v(!1), S(!1));
|
|
25342
|
+
}, [T, a]), G = useCallback((U) => {
|
|
25343
|
+
const { value: W } = U.target;
|
|
25344
|
+
m(W.trim() === "" ? void 0 : W.trim());
|
|
25345
|
+
}, []), P = useCallback((U) => {
|
|
25346
|
+
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));
|
|
25347
|
+
}, [c, a, T]), M = useCallback((U) => {
|
|
25348
|
+
const { dragNode: W, dropPosition: N } = U, { key: J } = W, B = [...a], H = B.indexOf(J);
|
|
25349
|
+
H > -1 && B.splice(H, 1), N === -1 ? B.unshift(J) : B.splice(N, 0, J), p(B);
|
|
25331
25350
|
}, [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: (
|
|
25351
|
+
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
25352
|
}, nt = k(Col)`
|
|
25334
25353
|
padding: 0.5rem;
|
|
25335
25354
|
border-color: #d9d9d9;
|
|
@@ -26342,11 +26361,11 @@ function FormActionBar({
|
|
|
26342
26361
|
} = useContext(ActionViewContext), {
|
|
26343
26362
|
t: M,
|
|
26344
26363
|
lang: L
|
|
26345
|
-
} = useContext(LocaleContext),
|
|
26346
|
-
processAction:
|
|
26347
|
-
} =
|
|
26364
|
+
} = useContext(LocaleContext), U = useContext(ContentRootContext), {
|
|
26365
|
+
processAction: W
|
|
26366
|
+
} = U || {}, N = useContext(TabManagerContext), {
|
|
26348
26367
|
openRelate: J,
|
|
26349
|
-
openDefaultActionForModel:
|
|
26368
|
+
openDefaultActionForModel: B
|
|
26350
26369
|
} = N || {}, H = useRef(!1);
|
|
26351
26370
|
useEffect(() => {
|
|
26352
26371
|
!u && H.current && message$1.success(M("savedRegisters")), H.current = u || !1;
|
|
@@ -26423,7 +26442,7 @@ function FormActionBar({
|
|
|
26423
26442
|
}
|
|
26424
26443
|
const ce = u || v || x || C;
|
|
26425
26444
|
function me(z) {
|
|
26426
|
-
|
|
26445
|
+
W == null || W({
|
|
26427
26446
|
actionData: z,
|
|
26428
26447
|
values: T.current.getValues(),
|
|
26429
26448
|
fields: T.current.getFields(),
|
|
@@ -26557,7 +26576,7 @@ function FormActionBar({
|
|
|
26557
26576
|
if (!z.succeed)
|
|
26558
26577
|
return;
|
|
26559
26578
|
const te = z.currentId, he = m;
|
|
26560
|
-
|
|
26579
|
+
B({
|
|
26561
26580
|
model: "ir.attachment",
|
|
26562
26581
|
values: {
|
|
26563
26582
|
selection_associated_object: `${he},${te}`
|
|
@@ -26576,7 +26595,7 @@ function FormActionBar({
|
|
|
26576
26595
|
if (!z.succeed)
|
|
26577
26596
|
return;
|
|
26578
26597
|
const te = z.currentId;
|
|
26579
|
-
|
|
26598
|
+
B({
|
|
26580
26599
|
model: "ir.attachment",
|
|
26581
26600
|
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${te}`]],
|
|
26582
26601
|
initialViewType: "tree"
|
|
@@ -26585,7 +26604,7 @@ function FormActionBar({
|
|
|
26585
26604
|
onViewAttachmentDetails: async (z) => {
|
|
26586
26605
|
!(await saveDocument({
|
|
26587
26606
|
onFormSave: s
|
|
26588
|
-
})).succeed ||
|
|
26607
|
+
})).succeed || B({
|
|
26589
26608
|
model: "ir.attachment",
|
|
26590
26609
|
res_id: z.id,
|
|
26591
26610
|
initialViewType: "form"
|
|
@@ -26962,17 +26981,17 @@ const GraphActionView = (e) => {
|
|
|
26962
26981
|
setLimit: P,
|
|
26963
26982
|
searchParams: M,
|
|
26964
26983
|
searchValues: L,
|
|
26965
|
-
setSearchValues:
|
|
26966
|
-
currentView:
|
|
26984
|
+
setSearchValues: U,
|
|
26985
|
+
currentView: W
|
|
26967
26986
|
} = f || {}, [N, J] = useState$1(!0);
|
|
26968
26987
|
useEffect(() => {
|
|
26969
26988
|
var ne;
|
|
26970
26989
|
(ne = d.current) == null || ne.refresh();
|
|
26971
26990
|
}, [M]), useEffect(() => {
|
|
26972
|
-
r.view_id !==
|
|
26973
|
-
}, [
|
|
26991
|
+
r.view_id !== W.view_id && J(!0);
|
|
26992
|
+
}, [W]);
|
|
26974
26993
|
const {
|
|
26975
|
-
clear:
|
|
26994
|
+
clear: B,
|
|
26976
26995
|
searchFilterLoading: H,
|
|
26977
26996
|
searchError: K,
|
|
26978
26997
|
offset: re,
|
|
@@ -26982,7 +27001,7 @@ const GraphActionView = (e) => {
|
|
|
26982
27001
|
setSearchTreeNameSearch: E,
|
|
26983
27002
|
setSelectedRowItems: v,
|
|
26984
27003
|
searchParams: M,
|
|
26985
|
-
setSearchValues:
|
|
27004
|
+
setSearchValues: U,
|
|
26986
27005
|
setSearchParams: C,
|
|
26987
27006
|
setSearchVisible: y,
|
|
26988
27007
|
setTreeIsLoading: O,
|
|
@@ -27015,7 +27034,7 @@ const GraphActionView = (e) => {
|
|
|
27015
27034
|
},
|
|
27016
27035
|
searchFields: mergeSearchFields([u.search_fields, c.search_fields]),
|
|
27017
27036
|
limit: G,
|
|
27018
|
-
onClear:
|
|
27037
|
+
onClear: B,
|
|
27019
27038
|
offset: re,
|
|
27020
27039
|
isSearching: H,
|
|
27021
27040
|
onSubmit: (ne) => {
|
|
@@ -27161,15 +27180,15 @@ function TreeActionBar(e) {
|
|
|
27161
27180
|
treeExpandable: M,
|
|
27162
27181
|
toolbar: L
|
|
27163
27182
|
} = e, {
|
|
27164
|
-
t:
|
|
27165
|
-
lang:
|
|
27183
|
+
t: U,
|
|
27184
|
+
lang: W
|
|
27166
27185
|
} = useContext(LocaleContext), N = useContext(ContentRootContext), {
|
|
27167
27186
|
processAction: J
|
|
27168
|
-
} = N || {}, [
|
|
27187
|
+
} = N || {}, [B, H] = useState$1(!1), K = y !== void 0 && y.trim().length > 0;
|
|
27169
27188
|
function re() {
|
|
27170
27189
|
showDialog$9({
|
|
27171
|
-
confirmMessage:
|
|
27172
|
-
lang:
|
|
27190
|
+
confirmMessage: U("confirmRemove"),
|
|
27191
|
+
lang: W,
|
|
27173
27192
|
onOk: () => {
|
|
27174
27193
|
ie();
|
|
27175
27194
|
}
|
|
@@ -27240,7 +27259,7 @@ function TreeActionBar(e) {
|
|
|
27240
27259
|
color: v ? "white" : void 0
|
|
27241
27260
|
}
|
|
27242
27261
|
}),
|
|
27243
|
-
tooltip:
|
|
27262
|
+
tooltip: U("advanced_search"),
|
|
27244
27263
|
type: v ? "primary" : "default",
|
|
27245
27264
|
onClick: () => {
|
|
27246
27265
|
C == null || C(!v);
|
|
@@ -27251,28 +27270,28 @@ function TreeActionBar(e) {
|
|
|
27251
27270
|
disabled: x
|
|
27252
27271
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27253
27272
|
icon: /* @__PURE__ */ jsx(CopyOutlined$4, {}),
|
|
27254
|
-
tooltip:
|
|
27273
|
+
tooltip: U("duplicate"),
|
|
27255
27274
|
disabled: !s || (s == null ? void 0 : s.length) !== 1 || c || x,
|
|
27256
27275
|
loading: c,
|
|
27257
27276
|
onClick: ne
|
|
27258
27277
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27259
27278
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
27260
|
-
tooltip:
|
|
27279
|
+
tooltip: U("delete"),
|
|
27261
27280
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27262
27281
|
loading: u,
|
|
27263
27282
|
onClick: re
|
|
27264
27283
|
}), separator$1()]
|
|
27265
27284
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27266
27285
|
icon: /* @__PURE__ */ jsx(InfoCircleOutlined$4, {}),
|
|
27267
|
-
tooltip:
|
|
27286
|
+
tooltip: U("showLogs"),
|
|
27268
27287
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27269
27288
|
loading: !1,
|
|
27270
27289
|
onClick: () => {
|
|
27271
|
-
showLogInfo(f, s[0].id,
|
|
27290
|
+
showLogInfo(f, s[0].id, U);
|
|
27272
27291
|
}
|
|
27273
27292
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
27274
27293
|
icon: /* @__PURE__ */ jsx(ReloadOutlined, {}),
|
|
27275
|
-
tooltip:
|
|
27294
|
+
tooltip: U("refresh"),
|
|
27276
27295
|
disabled: c || u || x,
|
|
27277
27296
|
loading: !1,
|
|
27278
27297
|
onClick: () => {
|
|
@@ -27292,7 +27311,7 @@ function TreeActionBar(e) {
|
|
|
27292
27311
|
}), separator$1(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27293
27312
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
27294
27313
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27295
|
-
tooltip:
|
|
27314
|
+
tooltip: U("actions"),
|
|
27296
27315
|
items: L == null ? void 0 : L.action,
|
|
27297
27316
|
onItemClick: (oe) => {
|
|
27298
27317
|
!oe || Q(oe);
|
|
@@ -27300,7 +27319,7 @@ function TreeActionBar(e) {
|
|
|
27300
27319
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
27301
27320
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
27302
27321
|
disabled: !(s && (s == null ? void 0 : s.length) > 0) || x,
|
|
27303
|
-
tooltip:
|
|
27322
|
+
tooltip: U("reports"),
|
|
27304
27323
|
items: L == null ? void 0 : L.print,
|
|
27305
27324
|
onItemClick: (oe) => {
|
|
27306
27325
|
!oe || Q({
|
|
@@ -27340,13 +27359,13 @@ function TreeActionBar(e) {
|
|
|
27340
27359
|
})]
|
|
27341
27360
|
})
|
|
27342
27361
|
}),
|
|
27343
|
-
tooltip:
|
|
27362
|
+
tooltip: U("export"),
|
|
27344
27363
|
items: [{
|
|
27345
27364
|
id: "print_screen",
|
|
27346
|
-
name:
|
|
27365
|
+
name: U("printScreen")
|
|
27347
27366
|
}, {
|
|
27348
27367
|
id: "export",
|
|
27349
|
-
name:
|
|
27368
|
+
name: U("advancedExport")
|
|
27350
27369
|
}],
|
|
27351
27370
|
onItemClick: (oe) => {
|
|
27352
27371
|
if (oe.id === "print_screen") {
|
|
@@ -27367,8 +27386,8 @@ function TreeActionBar(e) {
|
|
|
27367
27386
|
},
|
|
27368
27387
|
disabled: c || u || x || K
|
|
27369
27388
|
}), /* @__PURE__ */ jsx(ExportModal, {
|
|
27370
|
-
visible:
|
|
27371
|
-
locale:
|
|
27389
|
+
visible: B,
|
|
27390
|
+
locale: W,
|
|
27372
27391
|
onClose: () => H(!1),
|
|
27373
27392
|
model: f,
|
|
27374
27393
|
domain: mergeParams(((ae = p == null ? void 0 : p.current) == null ? void 0 : ae.getDomain()) || [], g || []),
|
|
@@ -27537,7 +27556,7 @@ function ActionView(e, r) {
|
|
|
27537
27556
|
action_type: v,
|
|
27538
27557
|
treeExpandable: C = !1,
|
|
27539
27558
|
limit: S
|
|
27540
|
-
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), G = m || void 0, [P, M] = useState$1(G), [L,
|
|
27559
|
+
} = 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(), {
|
|
27541
27560
|
t: z
|
|
27542
27561
|
} = useContext(LocaleContext), te = useRef(), he = useRef(), ge = useContext(TabManagerContext), {
|
|
27543
27562
|
setCurrentView: Te,
|
|
@@ -27548,7 +27567,7 @@ function ActionView(e, r) {
|
|
|
27548
27567
|
} = ge || {};
|
|
27549
27568
|
useHotkeys("ctrl+g,command+g", (qe) => {
|
|
27550
27569
|
qe.preventDefault(), et();
|
|
27551
|
-
}, [pe, I, y,
|
|
27570
|
+
}, [pe, I, y, W, J]);
|
|
27552
27571
|
function Oe(qe) {
|
|
27553
27572
|
M(qe), D == null || D(qe);
|
|
27554
27573
|
}
|
|
@@ -27695,7 +27714,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27695
27714
|
defaultValues: p,
|
|
27696
27715
|
forcedValues: h,
|
|
27697
27716
|
results: J,
|
|
27698
|
-
setResults:
|
|
27717
|
+
setResults: B,
|
|
27699
27718
|
setCurrentItemIndex: N
|
|
27700
27719
|
}, `${qe.type}-${qe.view_id}`);
|
|
27701
27720
|
case "tree":
|
|
@@ -27752,16 +27771,16 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27752
27771
|
currentId: P,
|
|
27753
27772
|
setCurrentId: Oe,
|
|
27754
27773
|
setCurrentItemIndex: N,
|
|
27755
|
-
currentItemIndex:
|
|
27774
|
+
currentItemIndex: W,
|
|
27756
27775
|
results: J,
|
|
27757
|
-
setResults:
|
|
27776
|
+
setResults: B,
|
|
27758
27777
|
currentModel: o,
|
|
27759
27778
|
sorter: H,
|
|
27760
27779
|
setSorter: K,
|
|
27761
27780
|
totalItems: re,
|
|
27762
27781
|
setTotalItems: ie,
|
|
27763
27782
|
selectedRowItems: L,
|
|
27764
|
-
setSelectedRowItems:
|
|
27783
|
+
setSelectedRowItems: U,
|
|
27765
27784
|
setSearchTreeNameSearch: me,
|
|
27766
27785
|
searchTreeNameSearch: ce,
|
|
27767
27786
|
goToResourceId: Xt,
|
|
@@ -27965,7 +27984,7 @@ function DashboardTree(e) {
|
|
|
27965
27984
|
domain: l = [],
|
|
27966
27985
|
visible: u = !0,
|
|
27967
27986
|
parentContext: c = {}
|
|
27968
|
-
} = 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,
|
|
27987
|
+
} = 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) => {
|
|
27969
27988
|
Q(!0), w(D), E((D - 1) * O.current);
|
|
27970
27989
|
}, ce = async () => {
|
|
27971
27990
|
const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(G.current, D), {
|
|
@@ -27994,7 +28013,7 @@ function DashboardTree(e) {
|
|
|
27994
28013
|
...S.fields
|
|
27995
28014
|
}
|
|
27996
28015
|
});
|
|
27997
|
-
|
|
28016
|
+
U(Fe);
|
|
27998
28017
|
}, me = async () => {
|
|
27999
28018
|
try {
|
|
28000
28019
|
Q(!0), await ce();
|
|
@@ -28069,10 +28088,10 @@ function DashboardTree(e) {
|
|
|
28069
28088
|
onRequestPageChange: oe,
|
|
28070
28089
|
loading: ne,
|
|
28071
28090
|
onRowClicked: ge,
|
|
28072
|
-
colorsForResults:
|
|
28091
|
+
colorsForResults: W,
|
|
28073
28092
|
sorter: J,
|
|
28074
28093
|
onChangeSort: (D) => {
|
|
28075
|
-
|
|
28094
|
+
B == null || B(D);
|
|
28076
28095
|
const I = sortResults({
|
|
28077
28096
|
resultsToSort: L,
|
|
28078
28097
|
sorter: D,
|
|
@@ -28081,7 +28100,7 @@ function DashboardTree(e) {
|
|
|
28081
28100
|
...S.fields
|
|
28082
28101
|
}
|
|
28083
28102
|
});
|
|
28084
|
-
|
|
28103
|
+
U(I);
|
|
28085
28104
|
},
|
|
28086
28105
|
context: c
|
|
28087
28106
|
})]
|
|
@@ -28147,13 +28166,13 @@ function Dashboard(e, r) {
|
|
|
28147
28166
|
async function y() {
|
|
28148
28167
|
f(!0), m(!0), h(void 0);
|
|
28149
28168
|
try {
|
|
28150
|
-
const P = await x(), M = await T(P), L = P.fields[itemsField].relation,
|
|
28169
|
+
const P = await x(), M = await T(P), L = P.fields[itemsField].relation, U = M[itemsField].items;
|
|
28151
28170
|
S.current = P.fields;
|
|
28152
|
-
const
|
|
28153
|
-
items:
|
|
28171
|
+
const W = await w({
|
|
28172
|
+
items: U,
|
|
28154
28173
|
model: L,
|
|
28155
28174
|
context: o
|
|
28156
|
-
}), N = await E(
|
|
28175
|
+
}), N = await E(W);
|
|
28157
28176
|
c(N), f(!1), m(!1);
|
|
28158
28177
|
} catch (P) {
|
|
28159
28178
|
h(JSON.stringify(P));
|
|
@@ -28195,11 +28214,11 @@ function Dashboard(e, r) {
|
|
|
28195
28214
|
const M = [];
|
|
28196
28215
|
for (const L of P) {
|
|
28197
28216
|
const {
|
|
28198
|
-
values:
|
|
28217
|
+
values: U
|
|
28199
28218
|
} = L;
|
|
28200
|
-
if (
|
|
28201
|
-
const
|
|
28202
|
-
actionId:
|
|
28219
|
+
if (U.action_id && U.action_id.length > 0) {
|
|
28220
|
+
const W = parseInt(U.action_id[0], 10), N = await fetchAction({
|
|
28221
|
+
actionId: W,
|
|
28203
28222
|
rootContext: o
|
|
28204
28223
|
});
|
|
28205
28224
|
M.push({
|
|
@@ -28219,17 +28238,17 @@ function Dashboard(e, r) {
|
|
|
28219
28238
|
return !1;
|
|
28220
28239
|
if (!J.position)
|
|
28221
28240
|
return !0;
|
|
28222
|
-
const
|
|
28241
|
+
const B = {
|
|
28223
28242
|
...JSON.parse(J.position.replace(/'/g, '"')),
|
|
28224
28243
|
id: J.id
|
|
28225
28244
|
};
|
|
28226
|
-
return JSON.stringify(N) !== JSON.stringify(
|
|
28245
|
+
return JSON.stringify(N) !== JSON.stringify(B);
|
|
28227
28246
|
});
|
|
28228
28247
|
if (M.length === 0)
|
|
28229
28248
|
return;
|
|
28230
|
-
const
|
|
28249
|
+
const U = u.filter((N) => M.map((J) => J.id).includes(N.id)).map((N) => {
|
|
28231
28250
|
const J = {
|
|
28232
|
-
...M.find((
|
|
28251
|
+
...M.find((B) => B.id === N.id)
|
|
28233
28252
|
};
|
|
28234
28253
|
return delete J.id, {
|
|
28235
28254
|
...N
|
|
@@ -28241,15 +28260,15 @@ function Dashboard(e, r) {
|
|
|
28241
28260
|
position: JSON.stringify(J).replace(/"/g, "'")
|
|
28242
28261
|
}
|
|
28243
28262
|
};
|
|
28244
|
-
}),
|
|
28263
|
+
}), W = {
|
|
28245
28264
|
fields: C.current,
|
|
28246
|
-
items:
|
|
28265
|
+
items: U
|
|
28247
28266
|
};
|
|
28248
28267
|
await ConnectionProvider.getHandler().update({
|
|
28249
28268
|
model: a,
|
|
28250
28269
|
id: s,
|
|
28251
28270
|
values: {
|
|
28252
|
-
[itemsField]:
|
|
28271
|
+
[itemsField]: W
|
|
28253
28272
|
},
|
|
28254
28273
|
fields: S.current,
|
|
28255
28274
|
context: o
|
|
@@ -28268,13 +28287,13 @@ function Dashboard(e, r) {
|
|
|
28268
28287
|
children: u.map((P, M) => {
|
|
28269
28288
|
const {
|
|
28270
28289
|
actionData: L,
|
|
28271
|
-
values:
|
|
28290
|
+
values: U
|
|
28272
28291
|
} = P, {
|
|
28273
|
-
position:
|
|
28292
|
+
position: W,
|
|
28274
28293
|
id: N
|
|
28275
|
-
} =
|
|
28294
|
+
} = U, {
|
|
28276
28295
|
actionId: J,
|
|
28277
|
-
actionType:
|
|
28296
|
+
actionType: B,
|
|
28278
28297
|
key: H,
|
|
28279
28298
|
title: K,
|
|
28280
28299
|
views: re,
|
|
@@ -28286,7 +28305,7 @@ function Dashboard(e, r) {
|
|
|
28286
28305
|
} = L;
|
|
28287
28306
|
let ce = {};
|
|
28288
28307
|
try {
|
|
28289
|
-
ce = JSON.parse(
|
|
28308
|
+
ce = JSON.parse(W.replace(/'/g, '"'));
|
|
28290
28309
|
} catch {
|
|
28291
28310
|
ce = {
|
|
28292
28311
|
x: M * 2,
|
|
@@ -28345,7 +28364,7 @@ function Dashboard(e, r) {
|
|
|
28345
28364
|
} : ae;
|
|
28346
28365
|
me = /* @__PURE__ */ jsx(ActionView$1, {
|
|
28347
28366
|
action_id: J,
|
|
28348
|
-
action_type:
|
|
28367
|
+
action_type: B,
|
|
28349
28368
|
tabKey: H,
|
|
28350
28369
|
title: K,
|
|
28351
28370
|
views: re,
|
|
@@ -28467,12 +28486,12 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
28467
28486
|
...x == null ? void 0 : x(),
|
|
28468
28487
|
...g
|
|
28469
28488
|
}
|
|
28470
|
-
})).map((
|
|
28471
|
-
const
|
|
28472
|
-
let N =
|
|
28473
|
-
return Array.isArray(
|
|
28489
|
+
})).map((U) => {
|
|
28490
|
+
const W = U[C];
|
|
28491
|
+
let N = W;
|
|
28492
|
+
return Array.isArray(W) && (N = W[1]), {
|
|
28474
28493
|
label: N,
|
|
28475
|
-
value:
|
|
28494
|
+
value: U.id
|
|
28476
28495
|
};
|
|
28477
28496
|
});
|
|
28478
28497
|
c(L);
|
|
@@ -28494,16 +28513,16 @@ const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Fiel
|
|
|
28494
28513
|
}, O = () => {
|
|
28495
28514
|
G([]);
|
|
28496
28515
|
}, G = (P) => {
|
|
28497
|
-
const M = s.map((
|
|
28498
|
-
...
|
|
28516
|
+
const M = s.map((U) => P.includes(U.id) ? U.operation == "pendingRemove" ? {
|
|
28517
|
+
...U,
|
|
28499
28518
|
operation: "original"
|
|
28500
|
-
} :
|
|
28501
|
-
id:
|
|
28519
|
+
} : U : {
|
|
28520
|
+
id: U.id,
|
|
28502
28521
|
operation: "pendingRemove"
|
|
28503
|
-
}), L = M.map((
|
|
28504
|
-
P.filter((
|
|
28522
|
+
}), L = M.map((U) => U.id);
|
|
28523
|
+
P.filter((U) => !L.includes(U)).map((U) => {
|
|
28505
28524
|
M.push({
|
|
28506
|
-
id:
|
|
28525
|
+
id: U,
|
|
28507
28526
|
operation: "pendingLink"
|
|
28508
28527
|
});
|
|
28509
28528
|
}), w(M);
|
|
@@ -28721,11 +28740,11 @@ function RootView(e, r) {
|
|
|
28721
28740
|
showDialog$8("Action type not supported");
|
|
28722
28741
|
return;
|
|
28723
28742
|
}
|
|
28724
|
-
const [
|
|
28743
|
+
const [U, W] = T.split(","), N = parseInt(W), J = parseContext({
|
|
28725
28744
|
context: L.context,
|
|
28726
28745
|
values: o,
|
|
28727
28746
|
fields: {}
|
|
28728
|
-
}),
|
|
28747
|
+
}), B = L.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
28729
28748
|
domain: L.domain,
|
|
28730
28749
|
values: o,
|
|
28731
28750
|
context: {
|
|
@@ -28776,7 +28795,7 @@ function RootView(e, r) {
|
|
|
28776
28795
|
};
|
|
28777
28796
|
}
|
|
28778
28797
|
w({
|
|
28779
|
-
domain: [...
|
|
28798
|
+
domain: [...B, ...M],
|
|
28780
28799
|
context: {
|
|
28781
28800
|
...s,
|
|
28782
28801
|
...J
|
|
@@ -28786,7 +28805,7 @@ function RootView(e, r) {
|
|
|
28786
28805
|
title: re,
|
|
28787
28806
|
target: ie,
|
|
28788
28807
|
initialView: ce,
|
|
28789
|
-
action_type:
|
|
28808
|
+
action_type: U,
|
|
28790
28809
|
action_id: N,
|
|
28791
28810
|
values: E,
|
|
28792
28811
|
forced_values: O,
|
|
@@ -28820,12 +28839,12 @@ function RootView(e, r) {
|
|
|
28820
28839
|
const {
|
|
28821
28840
|
res_model: M,
|
|
28822
28841
|
context: L,
|
|
28823
|
-
domain:
|
|
28824
|
-
views:
|
|
28842
|
+
domain: U,
|
|
28843
|
+
views: W,
|
|
28825
28844
|
target: N,
|
|
28826
28845
|
string: J,
|
|
28827
|
-
limit:
|
|
28828
|
-
} = T, [H, K] =
|
|
28846
|
+
limit: B
|
|
28847
|
+
} = T, [H, K] = W[0], re = {
|
|
28829
28848
|
id: H,
|
|
28830
28849
|
type: K
|
|
28831
28850
|
}, ie = parseContext({
|
|
@@ -28835,8 +28854,8 @@ function RootView(e, r) {
|
|
|
28835
28854
|
...o
|
|
28836
28855
|
},
|
|
28837
28856
|
fields: E
|
|
28838
|
-
}), ne =
|
|
28839
|
-
domain:
|
|
28857
|
+
}), ne = U ? await ConnectionProvider.getHandler().evalDomain({
|
|
28858
|
+
domain: U,
|
|
28840
28859
|
values: transformPlainMany2Ones({
|
|
28841
28860
|
fields: E,
|
|
28842
28861
|
values: {
|
|
@@ -28853,7 +28872,7 @@ function RootView(e, r) {
|
|
|
28853
28872
|
w({
|
|
28854
28873
|
model: M,
|
|
28855
28874
|
target: N,
|
|
28856
|
-
views:
|
|
28875
|
+
views: W,
|
|
28857
28876
|
context: {
|
|
28858
28877
|
...s,
|
|
28859
28878
|
...ie
|
|
@@ -28863,7 +28882,7 @@ function RootView(e, r) {
|
|
|
28863
28882
|
initialView: re,
|
|
28864
28883
|
action_id: G,
|
|
28865
28884
|
action_type: P,
|
|
28866
|
-
limit:
|
|
28885
|
+
limit: B
|
|
28867
28886
|
});
|
|
28868
28887
|
}
|
|
28869
28888
|
async function y(T) {
|
|
@@ -28875,21 +28894,21 @@ function RootView(e, r) {
|
|
|
28875
28894
|
} = T, M = `${O},${E}`, L = await ConnectionProvider.getHandler().getActionData({
|
|
28876
28895
|
action: M,
|
|
28877
28896
|
context: s
|
|
28878
|
-
}),
|
|
28897
|
+
}), U = parseContext({
|
|
28879
28898
|
context: L.context,
|
|
28880
28899
|
values: o,
|
|
28881
28900
|
fields: {}
|
|
28882
|
-
}),
|
|
28901
|
+
}), W = L.domain ? await ConnectionProvider.getHandler().evalDomain({
|
|
28883
28902
|
domain: L.domain,
|
|
28884
28903
|
values: o,
|
|
28885
28904
|
context: {
|
|
28886
28905
|
...s,
|
|
28887
|
-
...
|
|
28906
|
+
...U
|
|
28888
28907
|
}
|
|
28889
28908
|
}) : [], {
|
|
28890
28909
|
res_model: N,
|
|
28891
28910
|
views: J,
|
|
28892
|
-
name:
|
|
28911
|
+
name: B,
|
|
28893
28912
|
target: H,
|
|
28894
28913
|
view_type: K,
|
|
28895
28914
|
limit: re
|
|
@@ -28909,7 +28928,7 @@ function RootView(e, r) {
|
|
|
28909
28928
|
id: me,
|
|
28910
28929
|
context: {
|
|
28911
28930
|
...s,
|
|
28912
|
-
...
|
|
28931
|
+
...U
|
|
28913
28932
|
}
|
|
28914
28933
|
});
|
|
28915
28934
|
ne.push([te, z]);
|
|
@@ -28926,14 +28945,14 @@ function RootView(e, r) {
|
|
|
28926
28945
|
type: ae
|
|
28927
28946
|
};
|
|
28928
28947
|
w({
|
|
28929
|
-
domain:
|
|
28948
|
+
domain: W,
|
|
28930
28949
|
context: {
|
|
28931
28950
|
...s,
|
|
28932
|
-
...
|
|
28951
|
+
...U
|
|
28933
28952
|
},
|
|
28934
28953
|
model: N,
|
|
28935
28954
|
views: ne,
|
|
28936
|
-
title:
|
|
28955
|
+
title: B,
|
|
28937
28956
|
target: H,
|
|
28938
28957
|
initialView: oe,
|
|
28939
28958
|
action_id: E,
|
|
@@ -28969,11 +28988,11 @@ function RootView(e, r) {
|
|
|
28969
28988
|
title: P,
|
|
28970
28989
|
target: M,
|
|
28971
28990
|
initialView: L,
|
|
28972
|
-
action_id:
|
|
28973
|
-
action_type:
|
|
28991
|
+
action_id: U,
|
|
28992
|
+
action_type: W,
|
|
28974
28993
|
res_id: N,
|
|
28975
28994
|
values: J,
|
|
28976
|
-
forced_values:
|
|
28995
|
+
forced_values: B,
|
|
28977
28996
|
treeExpandable: H = !1,
|
|
28978
28997
|
limit: K
|
|
28979
28998
|
}) {
|
|
@@ -28997,8 +29016,8 @@ function RootView(e, r) {
|
|
|
28997
29016
|
...E
|
|
28998
29017
|
},
|
|
28999
29018
|
actionData: {
|
|
29000
|
-
action_id:
|
|
29001
|
-
action_type:
|
|
29019
|
+
action_id: U,
|
|
29020
|
+
action_type: W,
|
|
29002
29021
|
res_id: N,
|
|
29003
29022
|
view_id: ie.view_id
|
|
29004
29023
|
}
|
|
@@ -29011,12 +29030,12 @@ function RootView(e, r) {
|
|
|
29011
29030
|
C({
|
|
29012
29031
|
title: P,
|
|
29013
29032
|
action: {
|
|
29014
|
-
id:
|
|
29015
|
-
type:
|
|
29033
|
+
id: U,
|
|
29034
|
+
type: W
|
|
29016
29035
|
},
|
|
29017
29036
|
content: /* @__PURE__ */ jsx(ActionView$1, {
|
|
29018
|
-
action_id:
|
|
29019
|
-
action_type:
|
|
29037
|
+
action_id: U,
|
|
29038
|
+
action_type: W,
|
|
29020
29039
|
tabKey: re,
|
|
29021
29040
|
title: P,
|
|
29022
29041
|
views: G,
|
|
@@ -29030,7 +29049,7 @@ function RootView(e, r) {
|
|
|
29030
29049
|
initialView: ie,
|
|
29031
29050
|
res_id: N,
|
|
29032
29051
|
formDefaultValues: J,
|
|
29033
|
-
formForcedValues:
|
|
29052
|
+
formForcedValues: B,
|
|
29034
29053
|
treeExpandable: H,
|
|
29035
29054
|
limit: K
|
|
29036
29055
|
}),
|
|
@@ -29189,30 +29208,30 @@ const FavouriteButton = (e) => {
|
|
|
29189
29208
|
async function G() {
|
|
29190
29209
|
try {
|
|
29191
29210
|
m(!0);
|
|
29192
|
-
const
|
|
29193
|
-
p(
|
|
29194
|
-
} catch (
|
|
29195
|
-
showDialog$8(
|
|
29211
|
+
const B = await r();
|
|
29212
|
+
p(B);
|
|
29213
|
+
} catch (B) {
|
|
29214
|
+
showDialog$8(B);
|
|
29196
29215
|
} finally {
|
|
29197
29216
|
m(!1);
|
|
29198
29217
|
}
|
|
29199
29218
|
}
|
|
29200
|
-
function P(
|
|
29219
|
+
function P(B) {
|
|
29201
29220
|
const {
|
|
29202
29221
|
key: H
|
|
29203
|
-
} =
|
|
29222
|
+
} = B, K = f.find((re) => re.id === Number(H));
|
|
29204
29223
|
(K == null ? void 0 : K.action_type) !== "ir.actions.wizard" && (K && y(K), d(!1));
|
|
29205
29224
|
}
|
|
29206
|
-
function M(
|
|
29207
|
-
|
|
29225
|
+
function M(B) {
|
|
29226
|
+
B && G(), d(B);
|
|
29208
29227
|
}
|
|
29209
29228
|
async function L() {
|
|
29210
29229
|
if (!T)
|
|
29211
29230
|
return;
|
|
29212
|
-
const
|
|
29231
|
+
const B = x.find((Q) => Q.key === w), {
|
|
29213
29232
|
id: H,
|
|
29214
29233
|
type: K
|
|
29215
|
-
} = (
|
|
29234
|
+
} = (B == null ? void 0 : B.action) || {};
|
|
29216
29235
|
if (!H || !K) {
|
|
29217
29236
|
u(!1);
|
|
29218
29237
|
return;
|
|
@@ -29228,12 +29247,12 @@ const FavouriteButton = (e) => {
|
|
|
29228
29247
|
});
|
|
29229
29248
|
ne !== !1 && v(ne), u(ne !== !1);
|
|
29230
29249
|
}
|
|
29231
|
-
async function
|
|
29250
|
+
async function U() {
|
|
29232
29251
|
d(!1), O == null || O({
|
|
29233
29252
|
model: "ir.ui.view_sc"
|
|
29234
29253
|
});
|
|
29235
29254
|
}
|
|
29236
|
-
const
|
|
29255
|
+
const W = /* @__PURE__ */ jsxs(Menu, {
|
|
29237
29256
|
onClick: P,
|
|
29238
29257
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
29239
29258
|
style: {
|
|
@@ -29259,7 +29278,7 @@ const FavouriteButton = (e) => {
|
|
|
29259
29278
|
color: "#1890FF",
|
|
29260
29279
|
cursor: "pointer"
|
|
29261
29280
|
},
|
|
29262
|
-
onClick:
|
|
29281
|
+
onClick: U
|
|
29263
29282
|
})
|
|
29264
29283
|
})
|
|
29265
29284
|
})]
|
|
@@ -29268,12 +29287,12 @@ const FavouriteButton = (e) => {
|
|
|
29268
29287
|
padding: "1rem"
|
|
29269
29288
|
}
|
|
29270
29289
|
}) : f.length > 0 ? /* @__PURE__ */ jsx(Fragment, {
|
|
29271
|
-
children: f.map((
|
|
29290
|
+
children: f.map((B) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
29272
29291
|
children: /* @__PURE__ */ jsx(N, {
|
|
29273
|
-
title:
|
|
29274
|
-
type:
|
|
29292
|
+
title: B.name,
|
|
29293
|
+
type: B.view_type
|
|
29275
29294
|
})
|
|
29276
|
-
},
|
|
29295
|
+
}, B.id))
|
|
29277
29296
|
}) : /* @__PURE__ */ jsx("div", {
|
|
29278
29297
|
style: {
|
|
29279
29298
|
width: 300,
|
|
@@ -29284,7 +29303,7 @@ const FavouriteButton = (e) => {
|
|
|
29284
29303
|
})]
|
|
29285
29304
|
});
|
|
29286
29305
|
function N({
|
|
29287
|
-
title:
|
|
29306
|
+
title: B,
|
|
29288
29307
|
type: H
|
|
29289
29308
|
}) {
|
|
29290
29309
|
return /* @__PURE__ */ jsxs(Row, {
|
|
@@ -29297,7 +29316,7 @@ const FavouriteButton = (e) => {
|
|
|
29297
29316
|
children: H === "tree" ? /* @__PURE__ */ jsx(TableOutlined, {}) : /* @__PURE__ */ jsx(FormOutlined, {})
|
|
29298
29317
|
}), /* @__PURE__ */ jsx(Col, {
|
|
29299
29318
|
flex: "auto",
|
|
29300
|
-
children:
|
|
29319
|
+
children: B
|
|
29301
29320
|
})]
|
|
29302
29321
|
});
|
|
29303
29322
|
}
|
|
@@ -29307,10 +29326,10 @@ const FavouriteButton = (e) => {
|
|
|
29307
29326
|
else {
|
|
29308
29327
|
if (!T)
|
|
29309
29328
|
return;
|
|
29310
|
-
const
|
|
29329
|
+
const B = x.find((ne) => ne.key === w), {
|
|
29311
29330
|
id: H,
|
|
29312
29331
|
type: K
|
|
29313
|
-
} = (
|
|
29332
|
+
} = (B == null ? void 0 : B.action) || {}, re = T.view_id;
|
|
29314
29333
|
let ie = !1;
|
|
29315
29334
|
if (!H || !K) {
|
|
29316
29335
|
u(!1);
|
|
@@ -29338,7 +29357,7 @@ const FavouriteButton = (e) => {
|
|
|
29338
29357
|
},
|
|
29339
29358
|
onClick: J
|
|
29340
29359
|
}), /* @__PURE__ */ jsx(Dropdown, {
|
|
29341
|
-
overlay:
|
|
29360
|
+
overlay: W,
|
|
29342
29361
|
onVisibleChange: M,
|
|
29343
29362
|
visible: c,
|
|
29344
29363
|
children: /* @__PURE__ */ jsx(Button$1, {
|
|
@@ -29350,7 +29369,7 @@ const FavouriteButton = (e) => {
|
|
|
29350
29369
|
fontSize: "0.5em"
|
|
29351
29370
|
}
|
|
29352
29371
|
}),
|
|
29353
|
-
onClick: (
|
|
29372
|
+
onClick: (B) => B.preventDefault()
|
|
29354
29373
|
})
|
|
29355
29374
|
})]
|
|
29356
29375
|
});
|