@gisce/react-ooui 1.2.0-rc.37 → 1.2.0-rc.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionbar/FormActionBar.d.ts.map +1 -1
- package/dist/context/ActionViewContext.d.ts +1 -1
- package/dist/context/ActionViewContext.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react-ooui.es.js +513 -486
- 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/WidgetFactory.d.ts.map +1 -1
- package/dist/widgets/custom/Tag.d.ts +5 -0
- package/dist/widgets/custom/Tag.d.ts.map +1 -0
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actionbar/FormActionBar.tsx +39 -5
- package/src/context/ActionViewContext.tsx +3 -3
- package/src/helpers/treeHelper.ts +2 -2
- package/src/index.ts +2 -0
- package/src/stories/custom/Tag.stories.tsx +57 -0
- package/src/stories/views/Tree.stories.jsx +5 -5
- package/src/widgets/WidgetFactory.tsx +3 -0
- package/src/widgets/custom/Tag.tsx +24 -0
- package/src/widgets/views/Tree.tsx +29 -3
package/dist/react-ooui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$n from "react";
|
|
2
2
|
import React__default, { useContext, useState as useState$1, useEffect, createElement, useMemo as useMemo$2, useRef, useLayoutEffect as useLayoutEffect$3, Component, cloneElement as cloneElement$1, forwardRef, useImperativeHandle, useCallback, createContext } from "react";
|
|
3
|
-
import { Tooltip as Tooltip$2, Typography as Typography$1, Form as Form$3, Row, Col, Modal, Button as Button$1, Dropdown, Menu, Spin, Divider, Space, Input as Input$2, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag, message as message$1, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Radio as Radio$1, Tree as Tree$2, Tabs, Popover, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
|
|
3
|
+
import { Tooltip as Tooltip$2, Typography as Typography$1, Form as Form$3, Row, Col, Modal, Button as Button$1, Dropdown, Menu, Spin, Divider, Space, Input as Input$2, Select, Checkbox, Alert, Timeline as Timeline$1, Statistic, Card, Tag as Tag$1, message as message$1, DatePicker as DatePicker$1, TimePicker, InputNumber, Progress, Pagination, Radio as Radio$1, Tree as Tree$2, Tabs, Popover, Switch as Switch$1, Steps as Steps$1, Layout } from "antd";
|
|
4
4
|
import { Label as Label$1, Field as Field$2, Container as Container$1, Tree as Tree$1, Reference as Reference$1, Selection as Selection$1, Many2one as Many2one$1, Boolean as Boolean$2, parseContext, Form as Form$4, Integer as Integer$1, SearchFilter as SearchFilter$1, transformDomainForChildWidget, graphProcessor, parseGraph, graphFieldUtils } from "@gisce/ooui";
|
|
5
5
|
import * as AntIcons from "@ant-design/icons";
|
|
6
6
|
import AntIcons__default, { QuestionCircleOutlined, ExclamationCircleOutlined as ExclamationCircleOutlined$4, LoadingOutlined as LoadingOutlined$4, DownOutlined, WarningOutlined, CloseOutlined as CloseOutlined$4, CheckOutlined as CheckOutlined$4, TranslationOutlined, FolderOpenOutlined, DownloadOutlined, ClearOutlined, StarFilled, StarOutlined, UpOutlined, SearchOutlined, RightCircleOutlined, ThunderboltOutlined, PrinterOutlined, EnterOutlined as EnterOutlined$4, PlusSquareOutlined, MinusSquareOutlined, FileAddOutlined, AlignLeftOutlined, ApiOutlined, DeleteOutlined, LeftOutlined, RightOutlined, EyeOutlined, FormOutlined, TableOutlined, AreaChartOutlined, CalendarOutlined, LinkOutlined, SaveOutlined, CopyOutlined as CopyOutlined$4, InfoCircleOutlined as InfoCircleOutlined$4, ReloadOutlined, EditOutlined as EditOutlined$4, FilterOutlined, CloseCircleFilled as CloseCircleFilled$4, BorderOuterOutlined, SettingOutlined, ExportOutlined } from "@ant-design/icons";
|
|
@@ -1334,7 +1334,7 @@ function requireReactIs_development() {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
var E = d, O = f,
|
|
1337
|
+
var E = d, O = f, z = c, P = u, M = r, L = p, W = o, B = v, N = g, J = a, U = 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
|
}
|
|
@@ -1356,7 +1356,7 @@ function requireReactIs_development() {
|
|
|
1356
1356
|
function me(I) {
|
|
1357
1357
|
return T(I) === o;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function G(I) {
|
|
1360
1360
|
return T(I) === v;
|
|
1361
1361
|
}
|
|
1362
1362
|
function te(I) {
|
|
@@ -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 =
|
|
1377
|
+
reactIs_development.AsyncMode = E, reactIs_development.ConcurrentMode = O, reactIs_development.ContextConsumer = z, reactIs_development.ContextProvider = P, reactIs_development.Element = M, reactIs_development.ForwardRef = L, reactIs_development.Fragment = W, reactIs_development.Lazy = B, reactIs_development.Memo = N, reactIs_development.Portal = J, reactIs_development.Profiler = U, 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 = G, 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) {
|
|
@@ -1742,10 +1742,10 @@ function SingleObserver(e) {
|
|
|
1742
1742
|
}, [p, o]), m = React$n.useRef(e);
|
|
1743
1743
|
m.current = e;
|
|
1744
1744
|
var g = React$n.useCallback(function(v) {
|
|
1745
|
-
var C = m.current, S = C.onResize, y = C.data, x = v.getBoundingClientRect(), w = x.width, T = x.height, E = v.offsetWidth, O = v.offsetHeight,
|
|
1746
|
-
if (d.current.width !==
|
|
1745
|
+
var C = m.current, S = C.onResize, y = C.data, x = v.getBoundingClientRect(), w = x.width, T = x.height, E = v.offsetWidth, O = v.offsetHeight, z = Math.floor(w), P = Math.floor(T);
|
|
1746
|
+
if (d.current.width !== z || d.current.height !== P || d.current.offsetWidth !== E || d.current.offsetHeight !== O) {
|
|
1747
1747
|
var M = {
|
|
1748
|
-
width:
|
|
1748
|
+
width: z,
|
|
1749
1749
|
height: P,
|
|
1750
1750
|
offsetWidth: E,
|
|
1751
1751
|
offsetHeight: O
|
|
@@ -1877,11 +1877,11 @@ function useMergedState$2(e, r) {
|
|
|
1877
1877
|
}, [s]);
|
|
1878
1878
|
var g = React$n.useRef(), v = useEvent$2(function(S, y) {
|
|
1879
1879
|
p(function(x) {
|
|
1880
|
-
var w = _slicedToArray(x, 3), T = w[0], E = w[1], O = w[2],
|
|
1881
|
-
if (
|
|
1880
|
+
var w = _slicedToArray(x, 3), T = w[0], E = w[1], O = w[2], z = typeof S == "function" ? S(T) : S;
|
|
1881
|
+
if (z === T)
|
|
1882
1882
|
return x;
|
|
1883
1883
|
var P = E === Source$1.INNER && g.current !== O ? O : T;
|
|
1884
|
-
return [
|
|
1884
|
+
return [z, Source$1.INNER, P];
|
|
1885
1885
|
}, y);
|
|
1886
1886
|
}), C = useEvent$2(l);
|
|
1887
1887
|
return useLayoutEffect$2(function() {
|
|
@@ -1951,11 +1951,11 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1951
1951
|
});
|
|
1952
1952
|
var T = React$n.useMemo(function() {
|
|
1953
1953
|
return u && _typeof$2(u) === "object" ? [u.minRows, u.maxRows] : [];
|
|
1954
|
-
}, [u]), E = _slicedToArray(T, 2), O = E[0],
|
|
1954
|
+
}, [u]), E = _slicedToArray(T, 2), O = E[0], z = E[1], P = !!u, M = function() {
|
|
1955
1955
|
try {
|
|
1956
1956
|
if (document.activeElement === w.current) {
|
|
1957
|
-
var me = w.current,
|
|
1958
|
-
w.current.setSelectionRange(
|
|
1957
|
+
var me = w.current, G = me.selectionStart, te = me.selectionEnd, he = me.scrollTop;
|
|
1958
|
+
w.current.setSelectionRange(G, te), w.current.scrollTop = he;
|
|
1959
1959
|
}
|
|
1960
1960
|
} catch {
|
|
1961
1961
|
}
|
|
@@ -1964,11 +1964,11 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1964
1964
|
};
|
|
1965
1965
|
useLayoutEffect$2(function() {
|
|
1966
1966
|
P && re();
|
|
1967
|
-
}, [l, O,
|
|
1967
|
+
}, [l, O, z, P]), useLayoutEffect$2(function() {
|
|
1968
1968
|
if (B === RESIZE_START)
|
|
1969
1969
|
N(RESIZE_MEASURING);
|
|
1970
1970
|
else if (B === RESIZE_MEASURING) {
|
|
1971
|
-
var ce = calculateAutoSizeStyle(w.current, !1, O,
|
|
1971
|
+
var ce = calculateAutoSizeStyle(w.current, !1, O, z);
|
|
1972
1972
|
N(RESIZE_STABLE), K(ce);
|
|
1973
1973
|
} else
|
|
1974
1974
|
M();
|
|
@@ -2141,11 +2141,11 @@ function useMergedState(e, r) {
|
|
|
2141
2141
|
}, [s]);
|
|
2142
2142
|
var g = React$j.useRef(), v = (0, _useEvent.default)(function(S, y) {
|
|
2143
2143
|
p(function(x) {
|
|
2144
|
-
var w = (0, _slicedToArray2$1.default)(x, 3), T = w[0], E = w[1], O = w[2],
|
|
2145
|
-
if (
|
|
2144
|
+
var w = (0, _slicedToArray2$1.default)(x, 3), T = w[0], E = w[1], O = w[2], z = typeof S == "function" ? S(T) : S;
|
|
2145
|
+
if (z === T)
|
|
2146
2146
|
return x;
|
|
2147
2147
|
var P = E === Source.INNER && g.current !== O ? O : T;
|
|
2148
|
-
return [
|
|
2148
|
+
return [z, Source.INNER, P];
|
|
2149
2149
|
}, y);
|
|
2150
2150
|
}), C = (0, _useEvent.default)(l);
|
|
2151
2151
|
return (0, _useLayoutEffect.default)(function() {
|
|
@@ -2401,7 +2401,7 @@ function _regeneratorRuntime() {
|
|
|
2401
2401
|
var H = U.arg;
|
|
2402
2402
|
return H ? H.done ? (N[B.resultName] = H.value, N.next = B.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
|
|
2404
|
+
function z(B) {
|
|
2405
2405
|
var N = {
|
|
2406
2406
|
tryLoc: B[0]
|
|
2407
2407
|
};
|
|
@@ -2414,7 +2414,7 @@ function _regeneratorRuntime() {
|
|
|
2414
2414
|
function M(B) {
|
|
2415
2415
|
this.tryEntries = [{
|
|
2416
2416
|
tryLoc: "root"
|
|
2417
|
-
}], B.forEach(
|
|
2417
|
+
}], B.forEach(z, this), this.reset(!0);
|
|
2418
2418
|
}
|
|
2419
2419
|
function L(B) {
|
|
2420
2420
|
if (B) {
|
|
@@ -3168,17 +3168,17 @@ var messages = newMessages(), Schema = /* @__PURE__ */ function() {
|
|
|
3168
3168
|
return asyncMap(m, d, function(C, S) {
|
|
3169
3169
|
var y = C.rule, x = (y.type === "object" || y.type === "array") && (typeof y.fields == "object" || typeof y.defaultField == "object");
|
|
3170
3170
|
x = x && (y.required || !y.required && C.value), y.field = C.field;
|
|
3171
|
-
function w(O,
|
|
3172
|
-
return _extends({},
|
|
3171
|
+
function w(O, z) {
|
|
3172
|
+
return _extends({}, z, {
|
|
3173
3173
|
fullField: y.fullField + "." + O,
|
|
3174
3174
|
fullFields: y.fullFields ? [].concat(y.fullFields, [O]) : [O]
|
|
3175
3175
|
});
|
|
3176
3176
|
}
|
|
3177
3177
|
function T(O) {
|
|
3178
3178
|
O === void 0 && (O = []);
|
|
3179
|
-
var
|
|
3180
|
-
!d.suppressWarning &&
|
|
3181
|
-
var P =
|
|
3179
|
+
var z = Array.isArray(O) ? O : [O];
|
|
3180
|
+
!d.suppressWarning && z.length && e.warning("async-validator:", z), z.length && y.message !== void 0 && (z = [].concat(y.message));
|
|
3181
|
+
var P = z.map(complementError(y, c));
|
|
3182
3182
|
if (d.first && P.length)
|
|
3183
3183
|
return v[y.field] = 1, S(P);
|
|
3184
3184
|
if (!x)
|
|
@@ -3462,8 +3462,8 @@ function validateRules(e, r, a, o, s, l) {
|
|
|
3462
3462
|
});
|
|
3463
3463
|
return m && (g.validator = function(v, C, S) {
|
|
3464
3464
|
var y = !1, x = function() {
|
|
3465
|
-
for (var E = arguments.length, O = new Array(E),
|
|
3466
|
-
O[
|
|
3465
|
+
for (var E = arguments.length, O = new Array(E), z = 0; z < E; z++)
|
|
3466
|
+
O[z] = arguments[z];
|
|
3467
3467
|
Promise.resolve().then(function() {
|
|
3468
3468
|
warningOnce$1(!y, "Your validator function has already return a promise. `callback` will be ignored."), y || S.apply(void 0, O);
|
|
3469
3469
|
});
|
|
@@ -3644,8 +3644,8 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3644
3644
|
}
|
|
3645
3645
|
case "dependenciesUpdate": {
|
|
3646
3646
|
var O = v.map(getNamePath);
|
|
3647
|
-
if (O.some(function(
|
|
3648
|
-
return containsNamePath(p.relatedFields,
|
|
3647
|
+
if (O.some(function(z) {
|
|
3648
|
+
return containsNamePath(p.relatedFields, z);
|
|
3649
3649
|
})) {
|
|
3650
3650
|
s.reRender();
|
|
3651
3651
|
return;
|
|
@@ -3682,11 +3682,11 @@ var Field = /* @__PURE__ */ function(e) {
|
|
|
3682
3682
|
if (s.validatePromise === h) {
|
|
3683
3683
|
var E;
|
|
3684
3684
|
s.validatePromise = null;
|
|
3685
|
-
var O = [],
|
|
3685
|
+
var O = [], z = [];
|
|
3686
3686
|
(E = T.forEach) === null || E === void 0 || E.call(T, function(P) {
|
|
3687
3687
|
var M = P.rule.warningOnly, L = P.errors, W = L === void 0 ? EMPTY_ERRORS : L;
|
|
3688
|
-
M ?
|
|
3689
|
-
}), s.errors = O, s.warnings =
|
|
3688
|
+
M ? z.push.apply(z, _toConsumableArray(W)) : O.push.apply(O, _toConsumableArray(W));
|
|
3689
|
+
}), s.errors = O, s.warnings = z, s.triggerMetaEvent(), s.reRender();
|
|
3690
3690
|
}
|
|
3691
3691
|
}), w;
|
|
3692
3692
|
});
|
|
@@ -3739,14 +3739,14 @@ 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,
|
|
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, z = s.getValue(), P = C || function(B) {
|
|
3743
3743
|
return _defineProperty$1({}, v, B);
|
|
3744
|
-
}, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(
|
|
3744
|
+
}, M = d[p], L = _objectSpread2$g(_objectSpread2$g({}, d), P(z));
|
|
3745
3745
|
L[p] = function() {
|
|
3746
3746
|
s.touched = !0, s.dirty = !0, s.triggerMetaEvent();
|
|
3747
3747
|
for (var B, N = arguments.length, J = new Array(N), U = 0; U < N; U++)
|
|
3748
3748
|
J[U] = arguments[U];
|
|
3749
|
-
m ? B = m.apply(void 0, J) : B = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (B = g(B,
|
|
3749
|
+
m ? B = m.apply(void 0, J) : B = defaultGetValueFromEvent.apply(void 0, [v].concat(J)), g && (B = g(B, z, T(!0))), O({
|
|
3750
3750
|
type: "updateValue",
|
|
3751
3751
|
namePath: x,
|
|
3752
3752
|
value: B
|
|
@@ -3875,7 +3875,7 @@ var ListContext = /* @__PURE__ */ React$n.createContext(null), List = function(r
|
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
3877
3877
|
}, O = y || [];
|
|
3878
|
-
return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce$1(!1, "Current value of '".concat(p.join(" > "), "' is not an array type."))), s(O.map(function(
|
|
3878
|
+
return Array.isArray(O) || (O = [], process.env.NODE_ENV !== "production" && warningOnce$1(!1, "Current value of '".concat(p.join(" > "), "' is not an array type."))), s(O.map(function(z, P) {
|
|
3879
3879
|
var M = f.keys[P];
|
|
3880
3880
|
return M === void 0 && (f.keys[P] = f.id, M = f.keys[P], f.id += 1), {
|
|
3881
3881
|
name: P,
|
|
@@ -4498,7 +4498,7 @@ 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],
|
|
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], z = O.getInternalHooks(HOOK_MARK), P = z.useSubscribe, M = z.setInitialValues, L = z.setCallbacks, W = z.setValidateMessages, B = z.setPreserve, N = z.destroyForm;
|
|
4502
4502
|
React$n.useImperativeHandle(a, function() {
|
|
4503
4503
|
return O;
|
|
4504
4504
|
}), React$n.useEffect(function() {
|
|
@@ -4577,8 +4577,8 @@ function useWatch() {
|
|
|
4577
4577
|
return S.current = C, useEffect(
|
|
4578
4578
|
function() {
|
|
4579
4579
|
if (!!v) {
|
|
4580
|
-
var y = g.getFieldsValue, x = g.getInternalHooks, w = x(HOOK_MARK), T = w.registerWatch, E = T(function(
|
|
4581
|
-
var P = getValue$3(
|
|
4580
|
+
var y = g.getFieldsValue, x = g.getInternalHooks, w = x(HOOK_MARK), T = w.registerWatch, E = T(function(z) {
|
|
4581
|
+
var P = getValue$3(z, S.current), M = stringify$1(P);
|
|
4582
4582
|
h.current !== M && (h.current = M, f(P));
|
|
4583
4583
|
}), O = getValue$3(y(), S.current);
|
|
4584
4584
|
return f(O), E;
|
|
@@ -6258,8 +6258,8 @@ 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,
|
|
6262
|
-
J === void 0 &&
|
|
6261
|
+
var y, x = C.className, w = C.icon, T = C.spin, E = C.rotate, O = C.tabIndex, z = C.onClick, P = C.twoToneColor, M = (0, l.default)(C, m), L = u.useContext(d.default), W = L.prefixCls, B = W === void 0 ? "anticon" : W, N = (0, c.default)(B, (y = {}, (0, s.default)(y, "".concat(B, "-").concat(w.name), !!w.name), (0, s.default)(y, "".concat(B, "-spin"), !!T || w.name === "loading"), y), x), J = O;
|
|
6262
|
+
J === void 0 && z && (J = -1);
|
|
6263
6263
|
var U = E ? {
|
|
6264
6264
|
msTransform: "rotate(".concat(E, "deg)"),
|
|
6265
6265
|
transform: "rotate(".concat(E, "deg)")
|
|
@@ -6270,7 +6270,7 @@ function requireAntdIcon() {
|
|
|
6270
6270
|
}, M), {}, {
|
|
6271
6271
|
ref: S,
|
|
6272
6272
|
tabIndex: J,
|
|
6273
|
-
onClick:
|
|
6273
|
+
onClick: z,
|
|
6274
6274
|
className: N
|
|
6275
6275
|
}), /* @__PURE__ */ u.createElement(f.default, {
|
|
6276
6276
|
icon: w,
|
|
@@ -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,
|
|
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, z = o.onLeaveEnd, P = o.onVisibleChanged, M = useSafeState$1(), L = _slicedToArray(M, 2), W = L[0], B = L[1], N = useSafeState$1(STATUS_NONE), J = _slicedToArray(N, 2), U = 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,10 +6629,10 @@ function useStatus(e, r, a, o) {
|
|
|
6629
6629
|
var Fe = oe();
|
|
6630
6630
|
if (!(Pe && !Pe.deadline && Pe.target !== Fe)) {
|
|
6631
6631
|
var Ze = ce.current, Xt;
|
|
6632
|
-
U === STATUS_APPEAR && Ze ? Xt = E == null ? void 0 : E(Fe, Pe) : U === STATUS_ENTER && Ze ? Xt = O == null ? void 0 : O(Fe, Pe) : U === STATUS_LEAVE && Ze && (Xt =
|
|
6632
|
+
U === STATUS_APPEAR && Ze ? Xt = E == null ? void 0 : E(Fe, Pe) : U === STATUS_ENTER && Ze ? Xt = O == null ? void 0 : O(Fe, Pe) : U === STATUS_LEAVE && Ze && (Xt = z == null ? void 0 : z(Fe, Pe)), U !== STATUS_NONE && Ze && Xt !== !1 && (H(STATUS_NONE, !0), ne(null, !0));
|
|
6633
6633
|
}
|
|
6634
6634
|
}
|
|
6635
|
-
var
|
|
6635
|
+
var G = useDomMotionEvents(me), te = _slicedToArray(G, 1), he = te[0], ge = React$n.useMemo(function() {
|
|
6636
6636
|
var Pe, Fe, Ze;
|
|
6637
6637
|
switch (U) {
|
|
6638
6638
|
case STATUS_APPEAR:
|
|
@@ -6710,7 +6710,7 @@ function genCSSMotion(e) {
|
|
|
6710
6710
|
return null;
|
|
6711
6711
|
}
|
|
6712
6712
|
}
|
|
6713
|
-
var w = useStatus(C, c, x, s), T = _slicedToArray(w, 4), E = T[0], O = T[1],
|
|
6713
|
+
var w = useStatus(C, c, x, s), T = _slicedToArray(w, 4), E = T[0], O = T[1], z = T[2], P = T[3], M = React$n.useRef(P);
|
|
6714
6714
|
P && (M.current = !0);
|
|
6715
6715
|
var L = React$n.useCallback(function(K) {
|
|
6716
6716
|
S.current = K, fillRef$1(l, K);
|
|
@@ -6731,7 +6731,7 @@ function genCSSMotion(e) {
|
|
|
6731
6731
|
var N, J;
|
|
6732
6732
|
O === STEP_PREPARE ? J = "prepare" : isActive(O) ? J = "active" : O === STEP_START && (J = "start"), W = h(_objectSpread2$g(_objectSpread2$g({}, B), {}, {
|
|
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
|
-
style:
|
|
6734
|
+
style: z
|
|
6735
6735
|
}), L);
|
|
6736
6736
|
}
|
|
6737
6737
|
if (/* @__PURE__ */ React$n.isValidElement(W) && supportRef$1(W)) {
|
|
@@ -6847,8 +6847,8 @@ function genCSSMotionList(e) {
|
|
|
6847
6847
|
if (m == null || m(O, {
|
|
6848
6848
|
key: w.key
|
|
6849
6849
|
}), !O) {
|
|
6850
|
-
var
|
|
6851
|
-
|
|
6850
|
+
var z = c.removeKey(w.key);
|
|
6851
|
+
z === 0 && g && g();
|
|
6852
6852
|
}
|
|
6853
6853
|
}
|
|
6854
6854
|
}, h);
|
|
@@ -7293,8 +7293,8 @@ function requireNotice() {
|
|
|
7293
7293
|
w[T] = arguments[T];
|
|
7294
7294
|
return y = C.call.apply(C, [this].concat(w)), y.closeTimer = null, y.close = function(E) {
|
|
7295
7295
|
E && E.stopPropagation(), y.clearCloseTimer();
|
|
7296
|
-
var O = y.props,
|
|
7297
|
-
|
|
7296
|
+
var O = y.props, z = O.onClose, P = O.noticeKey;
|
|
7297
|
+
z && z(P);
|
|
7298
7298
|
}, y.startCloseTimer = function() {
|
|
7299
7299
|
y.props.duration && (y.closeTimer = window.setTimeout(function() {
|
|
7300
7300
|
y.close();
|
|
@@ -7326,7 +7326,7 @@ 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,
|
|
7329
|
+
var x = this, w = this.props, T = w.prefixCls, E = w.className, O = w.closable, z = w.closeIcon, P = w.style, M = w.onClick, L = w.children, W = w.holder, B = "".concat(T, "-notice"), N = Object.keys(this.props).reduce(function(U, H) {
|
|
7330
7330
|
return (H.substr(0, 5) === "data-" || H.substr(0, 5) === "aria-" || H === "role") && (U[H] = x.props[H]), U;
|
|
7331
7331
|
}, {}), J = /* @__PURE__ */ d.createElement("div", (0, a.default)({
|
|
7332
7332
|
className: (0, p.default)(B, E, (0, o.default)({}, "".concat(B, "-closable"), O)),
|
|
@@ -7340,7 +7340,7 @@ function requireNotice() {
|
|
|
7340
7340
|
tabIndex: 0,
|
|
7341
7341
|
onClick: this.close,
|
|
7342
7342
|
className: "".concat(B, "-close")
|
|
7343
|
-
},
|
|
7343
|
+
}, z || /* @__PURE__ */ d.createElement("span", {
|
|
7344
7344
|
className: "".concat(B, "-close-x")
|
|
7345
7345
|
})) : null);
|
|
7346
7346
|
return W ? /* @__PURE__ */ f.default.createPortal(J, W) : J;
|
|
@@ -7446,10 +7446,10 @@ function requireUseMessage() {
|
|
|
7446
7446
|
return N.then(U, H);
|
|
7447
7447
|
}, J.promise = N, J;
|
|
7448
7448
|
}
|
|
7449
|
-
var
|
|
7450
|
-
return
|
|
7451
|
-
return (0, c.attachTypeApi)(
|
|
7452
|
-
}), [
|
|
7449
|
+
var z = u.useRef({});
|
|
7450
|
+
return z.current.open = O, c.typeList.forEach(function(P) {
|
|
7451
|
+
return (0, c.attachTypeApi)(z.current, P);
|
|
7452
|
+
}), [z.current, /* @__PURE__ */ u.createElement(d.ConfigConsumer, {
|
|
7453
7453
|
key: "holder"
|
|
7454
7454
|
}, function(P) {
|
|
7455
7455
|
return v = P.getPrefixCls, C = P.getPopupContainer, E;
|
|
@@ -7466,15 +7466,15 @@ function requireMessage() {
|
|
|
7466
7466
|
Object.defineProperty(e, "__esModule", {
|
|
7467
7467
|
value: !0
|
|
7468
7468
|
}), e.attachTypeApi = re, e.getInstance = e.default = void 0, e.getKeyThenIncreaseKey = M, e.typeList = void 0;
|
|
7469
|
-
var o = a(_extends$1.exports), s = a(defineProperty.exports), l = a(CheckCircleFilled$3.exports), u = a(CloseCircleFilled$3.exports), c = a(ExclamationCircleFilled$3.exports), d = a(InfoCircleFilled$3.exports), f = a(LoadingOutlined$3.exports), p = a(classnames.exports), h = a(require$$11$1), m = r(React__default), g = r(requireConfigProvider()), v = a(requireUseMessage()), C, S = 3, y, x = 1, w = "", T = "move-up", E = !1, O,
|
|
7469
|
+
var o = a(_extends$1.exports), s = a(defineProperty.exports), l = a(CheckCircleFilled$3.exports), u = a(CloseCircleFilled$3.exports), c = a(ExclamationCircleFilled$3.exports), d = a(InfoCircleFilled$3.exports), f = a(LoadingOutlined$3.exports), p = a(classnames.exports), h = a(require$$11$1), m = r(React__default), g = r(requireConfigProvider()), v = a(requireUseMessage()), C, S = 3, y, x = 1, w = "", T = "move-up", E = !1, O, z, P = !1;
|
|
7470
7470
|
function M() {
|
|
7471
7471
|
return x++;
|
|
7472
7472
|
}
|
|
7473
7473
|
function L(Q) {
|
|
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 && (
|
|
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 && (z = Q.maxCount, C = null), Q.rtl !== void 0 && (P = Q.rtl);
|
|
7475
7475
|
}
|
|
7476
7476
|
function W(Q, ae) {
|
|
7477
|
-
var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(),
|
|
7477
|
+
var oe = Q.prefixCls, ce = Q.getPopupContainer, me = (0, g.globalConfig)(), G = me.getPrefixCls, te = me.getRootPrefixCls, he = me.getIconPrefixCls, ge = G("message", oe || w), Te = te(Q.rootPrefixCls, ge), D = he();
|
|
7478
7478
|
if (C) {
|
|
7479
7479
|
ae({
|
|
7480
7480
|
prefixCls: ge,
|
|
@@ -7491,7 +7491,7 @@ function requireMessage() {
|
|
|
7491
7491
|
top: y
|
|
7492
7492
|
},
|
|
7493
7493
|
getContainer: O || ce,
|
|
7494
|
-
maxCount:
|
|
7494
|
+
maxCount: z
|
|
7495
7495
|
};
|
|
7496
7496
|
h.default.newInstance(I, function(pe) {
|
|
7497
7497
|
if (C) {
|
|
@@ -7520,7 +7520,7 @@ function requireMessage() {
|
|
|
7520
7520
|
}, N = Object.keys(B);
|
|
7521
7521
|
e.typeList = N;
|
|
7522
7522
|
function J(Q, ae, oe) {
|
|
7523
|
-
var ce, me = Q.duration !== void 0 ? Q.duration : S,
|
|
7523
|
+
var ce, me = Q.duration !== void 0 ? Q.duration : S, G = B[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,
|
|
@@ -7530,28 +7530,28 @@ function requireMessage() {
|
|
|
7530
7530
|
iconPrefixCls: oe
|
|
7531
7531
|
}, /* @__PURE__ */ m.createElement("div", {
|
|
7532
7532
|
className: te
|
|
7533
|
-
}, Q.icon ||
|
|
7533
|
+
}, Q.icon || G && /* @__PURE__ */ m.createElement(G, null), /* @__PURE__ */ m.createElement("span", null, Q.content))),
|
|
7534
7534
|
onClose: Q.onClose,
|
|
7535
7535
|
onClick: Q.onClick
|
|
7536
7536
|
};
|
|
7537
7537
|
}
|
|
7538
7538
|
function U(Q) {
|
|
7539
7539
|
var ae = Q.key || M(), oe = new Promise(function(me) {
|
|
7540
|
-
var
|
|
7540
|
+
var G = function() {
|
|
7541
7541
|
return typeof Q.onClose == "function" && Q.onClose(), me(!0);
|
|
7542
7542
|
};
|
|
7543
7543
|
W(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,
|
|
7547
|
-
onClose:
|
|
7547
|
+
onClose: G
|
|
7548
7548
|
}), he, ge));
|
|
7549
7549
|
});
|
|
7550
7550
|
}), ce = function() {
|
|
7551
7551
|
C && C.removeNotice(ae);
|
|
7552
7552
|
};
|
|
7553
|
-
return ce.then = function(me,
|
|
7554
|
-
return oe.then(me,
|
|
7553
|
+
return ce.then = function(me, G) {
|
|
7554
|
+
return oe.then(me, G);
|
|
7555
7555
|
}, ce.promise = oe, ce;
|
|
7556
7556
|
}
|
|
7557
7557
|
function H(Q) {
|
|
@@ -7566,8 +7566,8 @@ function requireMessage() {
|
|
|
7566
7566
|
var oe = C, ce = oe.removeNotice;
|
|
7567
7567
|
ce(ae);
|
|
7568
7568
|
} else {
|
|
7569
|
-
var me = C,
|
|
7570
|
-
|
|
7569
|
+
var me = C, G = me.destroy;
|
|
7570
|
+
G(), C = null;
|
|
7571
7571
|
}
|
|
7572
7572
|
}
|
|
7573
7573
|
};
|
|
@@ -7660,19 +7660,19 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7660
7660
|
});
|
|
7661
7661
|
});
|
|
7662
7662
|
}
|
|
7663
|
-
function
|
|
7663
|
+
function z(U, H) {
|
|
7664
7664
|
function K(ie, ne, Q, ae) {
|
|
7665
7665
|
var oe = g(U[ie], U, ne);
|
|
7666
7666
|
if (oe.type !== "throw") {
|
|
7667
7667
|
var ce = oe.arg, me = ce.value;
|
|
7668
|
-
return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(
|
|
7669
|
-
K("next",
|
|
7670
|
-
}, function(
|
|
7671
|
-
K("throw",
|
|
7672
|
-
}) : H.resolve(me).then(function(
|
|
7673
|
-
ce.value =
|
|
7674
|
-
}, function(
|
|
7675
|
-
return K("throw",
|
|
7668
|
+
return me && r(me) == "object" && l.call(me, "__await") ? H.resolve(me.__await).then(function(G) {
|
|
7669
|
+
K("next", G, Q, ae);
|
|
7670
|
+
}, function(G) {
|
|
7671
|
+
K("throw", G, Q, ae);
|
|
7672
|
+
}) : H.resolve(me).then(function(G) {
|
|
7673
|
+
ce.value = G, Q(ce);
|
|
7674
|
+
}, function(G) {
|
|
7675
|
+
return K("throw", G, Q, ae);
|
|
7676
7676
|
});
|
|
7677
7677
|
}
|
|
7678
7678
|
ae(oe.arg);
|
|
@@ -7804,11 +7804,11 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7804
7804
|
return {
|
|
7805
7805
|
__await: U
|
|
7806
7806
|
};
|
|
7807
|
-
}, O(
|
|
7807
|
+
}, O(z.prototype), h(z.prototype, f, function() {
|
|
7808
7808
|
return this;
|
|
7809
|
-
}), o.AsyncIterator =
|
|
7809
|
+
}), o.AsyncIterator = z, o.async = function(U, H, K, re, ie) {
|
|
7810
7810
|
ie === void 0 && (ie = Promise);
|
|
7811
|
-
var ne = new
|
|
7811
|
+
var ne = new z(m(U, 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
|
});
|
|
@@ -8097,12 +8097,12 @@ function requireUseNotification() {
|
|
|
8097
8097
|
function d(f, p) {
|
|
8098
8098
|
var h = function() {
|
|
8099
8099
|
var g, v = null, C = {
|
|
8100
|
-
add: function(
|
|
8101
|
-
v == null || v.component.add(
|
|
8100
|
+
add: function(z, P) {
|
|
8101
|
+
v == null || v.component.add(z, P);
|
|
8102
8102
|
}
|
|
8103
8103
|
}, S = (0, l.default)(C), y = (0, s.default)(S, 2), x = y[0], w = y[1];
|
|
8104
8104
|
function T(O) {
|
|
8105
|
-
var
|
|
8105
|
+
var z = O.prefixCls, P = g("notification", z);
|
|
8106
8106
|
f((0, o.default)((0, o.default)({}, O), {
|
|
8107
8107
|
prefixCls: P
|
|
8108
8108
|
}), function(M) {
|
|
@@ -8112,8 +8112,8 @@ function requireUseNotification() {
|
|
|
8112
8112
|
}
|
|
8113
8113
|
var E = u.useRef({});
|
|
8114
8114
|
return E.current.open = T, ["success", "info", "warning", "error"].forEach(function(O) {
|
|
8115
|
-
E.current[O] = function(
|
|
8116
|
-
return E.current.open((0, o.default)((0, o.default)({},
|
|
8115
|
+
E.current[O] = function(z) {
|
|
8116
|
+
return E.current.open((0, o.default)((0, o.default)({}, z), {
|
|
8117
8117
|
type: O
|
|
8118
8118
|
}));
|
|
8119
8119
|
};
|
|
@@ -8136,23 +8136,23 @@ function requireNotification() {
|
|
|
8136
8136
|
}), e.getInstance = e.default = void 0;
|
|
8137
8137
|
var o = a(regeneratorRuntime.exports), s = a(_extends$1.exports), l = a(defineProperty.exports), u = a(CheckCircleOutlined$3.exports), c = a(CloseCircleOutlined$3.exports), d = a(CloseOutlined$3.exports), f = a(ExclamationCircleOutlined$3.exports), p = a(InfoCircleOutlined$3.exports), h = a(classnames.exports), m = a(require$$11$1), g = r(React__default), v = r(requireConfigProvider()), C = a(requireUseNotification()), S = function(ne, Q, ae, oe) {
|
|
8138
8138
|
function ce(me) {
|
|
8139
|
-
return me instanceof ae ? me : new ae(function(
|
|
8140
|
-
|
|
8139
|
+
return me instanceof ae ? me : new ae(function(G) {
|
|
8140
|
+
G(me);
|
|
8141
8141
|
});
|
|
8142
8142
|
}
|
|
8143
|
-
return new (ae || (ae = Promise))(function(me,
|
|
8143
|
+
return new (ae || (ae = Promise))(function(me, G) {
|
|
8144
8144
|
function te(Te) {
|
|
8145
8145
|
try {
|
|
8146
8146
|
ge(oe.next(Te));
|
|
8147
8147
|
} catch (D) {
|
|
8148
|
-
|
|
8148
|
+
G(D);
|
|
8149
8149
|
}
|
|
8150
8150
|
}
|
|
8151
8151
|
function he(Te) {
|
|
8152
8152
|
try {
|
|
8153
8153
|
ge(oe.throw(Te));
|
|
8154
8154
|
} catch (D) {
|
|
8155
|
-
|
|
8155
|
+
G(D);
|
|
8156
8156
|
}
|
|
8157
8157
|
}
|
|
8158
8158
|
function ge(Te) {
|
|
@@ -8160,10 +8160,10 @@ function requireNotification() {
|
|
|
8160
8160
|
}
|
|
8161
8161
|
ge((oe = oe.apply(ne, Q || [])).next());
|
|
8162
8162
|
});
|
|
8163
|
-
}, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight",
|
|
8163
|
+
}, y = {}, x = 4.5, w = 24, T = 24, E = "", O = "topRight", z, P, M = !1, L;
|
|
8164
8164
|
function W(ne) {
|
|
8165
|
-
var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer,
|
|
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 && (
|
|
8165
|
+
var Q = ne.duration, ae = ne.placement, oe = ne.bottom, ce = ne.top, me = ne.getContainer, G = ne.closeIcon, te = ne.prefixCls;
|
|
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 && (z = me), G !== void 0 && (P = G), ne.rtl !== void 0 && (M = ne.rtl), ne.maxCount !== void 0 && (L = ne.maxCount);
|
|
8167
8167
|
}
|
|
8168
8168
|
function B(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;
|
|
@@ -8218,7 +8218,7 @@ function requireNotification() {
|
|
|
8218
8218
|
return oe;
|
|
8219
8219
|
}
|
|
8220
8220
|
function N(ne, Q) {
|
|
8221
|
-
var ae = ne.placement, oe = ae === void 0 ? O : ae, ce = ne.top, me = ne.bottom,
|
|
8221
|
+
var ae = ne.placement, oe = ae === void 0 ? O : ae, ce = ne.top, me = ne.bottom, G = ne.getContainer, te = G === void 0 ? z : G, he = ne.prefixCls, ge = (0, v.globalConfig)(), Te = ge.getPrefixCls, D = ge.getIconPrefixCls, I = Te("notification", he || E), pe = D(), Re = "".concat(I, "-").concat(oe), Oe = y[Re];
|
|
8222
8222
|
if (Oe) {
|
|
8223
8223
|
Promise.resolve(Oe).then(function(Pe) {
|
|
8224
8224
|
Q({
|
|
@@ -8253,7 +8253,7 @@ function requireNotification() {
|
|
|
8253
8253
|
warning: f.default
|
|
8254
8254
|
};
|
|
8255
8255
|
function U(ne, Q, ae) {
|
|
8256
|
-
var oe = ne.duration, ce = ne.icon, me = ne.type,
|
|
8256
|
+
var oe = ne.duration, ce = ne.icon, me = ne.type, G = 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")
|
|
8259
8259
|
}, ne.icon) : me && (Fe = /* @__PURE__ */ g.createElement(J[me] || null, {
|
|
@@ -8263,7 +8263,7 @@ function requireNotification() {
|
|
|
8263
8263
|
className: "".concat(Q, "-close-x")
|
|
8264
8264
|
}, Oe || /* @__PURE__ */ g.createElement(d.default, {
|
|
8265
8265
|
className: "".concat(Q, "-close-icon")
|
|
8266
|
-
})), Xt = !
|
|
8266
|
+
})), Xt = !G && Fe ? /* @__PURE__ */ g.createElement("span", {
|
|
8267
8267
|
className: "".concat(Q, "-message-single-line-auto-margin")
|
|
8268
8268
|
}) : null;
|
|
8269
8269
|
return {
|
|
@@ -8276,7 +8276,7 @@ function requireNotification() {
|
|
|
8276
8276
|
className: "".concat(Q, "-message")
|
|
8277
8277
|
}, Xt, te), /* @__PURE__ */ g.createElement("div", {
|
|
8278
8278
|
className: "".concat(Q, "-description")
|
|
8279
|
-
},
|
|
8279
|
+
}, G), he ? /* @__PURE__ */ g.createElement("span", {
|
|
8280
8280
|
className: "".concat(Q, "-btn")
|
|
8281
8281
|
}, he) : null)),
|
|
8282
8282
|
duration: Pe,
|
|
@@ -8480,7 +8480,7 @@ function requireConfigProvider() {
|
|
|
8480
8480
|
var T = "anticon";
|
|
8481
8481
|
e.defaultIconPrefixCls = T;
|
|
8482
8482
|
var E, O;
|
|
8483
|
-
function
|
|
8483
|
+
function z() {
|
|
8484
8484
|
return E || w;
|
|
8485
8485
|
}
|
|
8486
8486
|
function P() {
|
|
@@ -8488,21 +8488,21 @@ function requireConfigProvider() {
|
|
|
8488
8488
|
}
|
|
8489
8489
|
var M = function(U) {
|
|
8490
8490
|
var H = U.prefixCls, K = U.iconPrefixCls, re = U.theme;
|
|
8491
|
-
H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(
|
|
8491
|
+
H !== void 0 && (E = H), K !== void 0 && (O = K), re && (0, v.registerTheme)(z(), re);
|
|
8492
8492
|
}, L = function() {
|
|
8493
8493
|
return {
|
|
8494
8494
|
getPrefixCls: function(H, K) {
|
|
8495
|
-
return K || (H ? "".concat(
|
|
8495
|
+
return K || (H ? "".concat(z(), "-").concat(H) : z());
|
|
8496
8496
|
},
|
|
8497
8497
|
getIconPrefixCls: P,
|
|
8498
8498
|
getRootPrefixCls: function(H, K) {
|
|
8499
|
-
return H || E || (K && K.includes("-") ? K.replace(/^(.*)-[^-]*$/, "$1") :
|
|
8499
|
+
return H || E || (K && K.includes("-") ? K.replace(/^(.*)-[^-]*$/, "$1") : z());
|
|
8500
8500
|
}
|
|
8501
8501
|
};
|
|
8502
8502
|
};
|
|
8503
8503
|
e.globalConfig = L;
|
|
8504
8504
|
var W = function(U) {
|
|
8505
|
-
var H, K, re = U.children, ie = U.csp, ne = U.autoInsertSpaceInButton, Q = U.form, ae = U.locale, oe = U.componentSize, ce = U.direction, me = U.space,
|
|
8505
|
+
var H, K, re = U.children, ie = U.csp, ne = U.autoInsertSpaceInButton, Q = U.form, ae = U.locale, oe = U.componentSize, ce = U.direction, me = U.space, G = U.virtual, te = U.dropdownMatchSelectWidth, he = U.legacyLocale, ge = U.parentContext, Te = U.iconPrefixCls, D = U.componentDisabled, I = c.useCallback(function(Fe, Ze) {
|
|
8506
8506
|
var Xt = U.prefixCls;
|
|
8507
8507
|
if (Ze)
|
|
8508
8508
|
return Ze;
|
|
@@ -8514,7 +8514,7 @@ function requireConfigProvider() {
|
|
|
8514
8514
|
locale: ae || he,
|
|
8515
8515
|
direction: ce,
|
|
8516
8516
|
space: me,
|
|
8517
|
-
virtual:
|
|
8517
|
+
virtual: G,
|
|
8518
8518
|
dropdownMatchSelectWidth: te,
|
|
8519
8519
|
getPrefixCls: I
|
|
8520
8520
|
});
|
|
@@ -8674,8 +8674,8 @@ function cloneElement(e, r) {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
return (0, l.default)(E, [{
|
|
8676
8676
|
key: "renderClearIcon",
|
|
8677
|
-
value: function(
|
|
8678
|
-
var P, M = this.props, L = M.value, W = M.disabled, B = M.readOnly, N = M.handleReset, J = M.suffix, U = !W && !B && L, H = "".concat(
|
|
8677
|
+
value: function(z) {
|
|
8678
|
+
var P, M = this.props, L = M.value, W = M.disabled, B = M.readOnly, N = M.handleReset, J = M.suffix, U = !W && !B && L, H = "".concat(z, "-clear-icon");
|
|
8679
8679
|
return /* @__PURE__ */ p.createElement(d.default, {
|
|
8680
8680
|
onClick: N,
|
|
8681
8681
|
onMouseDown: function(re) {
|
|
@@ -8687,13 +8687,13 @@ function cloneElement(e, r) {
|
|
|
8687
8687
|
}
|
|
8688
8688
|
}, {
|
|
8689
8689
|
key: "renderTextAreaWithClearIcon",
|
|
8690
|
-
value: function(
|
|
8690
|
+
value: function(z, P, M) {
|
|
8691
8691
|
var L, W = this.props, B = W.value, N = W.allowClear, J = W.className, U = W.style, H = W.direction, K = W.bordered, re = W.hidden, ie = W.status, ne = M.status, Q = M.hasFeedback;
|
|
8692
8692
|
if (!N)
|
|
8693
8693
|
return (0, m.cloneElement)(P, {
|
|
8694
8694
|
value: B
|
|
8695
8695
|
});
|
|
8696
|
-
var ae = (0, f.default)("".concat(
|
|
8696
|
+
var ae = (0, f.default)("".concat(z, "-affix-wrapper"), "".concat(z, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(z, "-affix-wrapper"), (0, g.getMergedStatus)(ne, ie), Q), (L = {}, (0, o.default)(L, "".concat(z, "-affix-wrapper-rtl"), H === "rtl"), (0, o.default)(L, "".concat(z, "-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
8699
|
style: U,
|
|
@@ -8701,16 +8701,16 @@ function cloneElement(e, r) {
|
|
|
8701
8701
|
}, (0, m.cloneElement)(P, {
|
|
8702
8702
|
style: null,
|
|
8703
8703
|
value: B
|
|
8704
|
-
}), this.renderClearIcon(
|
|
8704
|
+
}), this.renderClearIcon(z));
|
|
8705
8705
|
}
|
|
8706
8706
|
}, {
|
|
8707
8707
|
key: "render",
|
|
8708
8708
|
value: function() {
|
|
8709
|
-
var
|
|
8709
|
+
var z = this;
|
|
8710
8710
|
return /* @__PURE__ */ p.createElement(h.FormItemInputContext.Consumer, null, function(P) {
|
|
8711
|
-
var M =
|
|
8711
|
+
var M = z.props, L = M.prefixCls, W = M.inputType, B = M.element;
|
|
8712
8712
|
if (W === C[0])
|
|
8713
|
-
return
|
|
8713
|
+
return z.renderTextAreaWithClearIcon(L, B, P);
|
|
8714
8714
|
});
|
|
8715
8715
|
}
|
|
8716
8716
|
}]), E;
|
|
@@ -8779,7 +8779,7 @@ var BaseInput = function(r) {
|
|
|
8779
8779
|
var a = r.inputElement, o = r.prefixCls, s = r.prefix, l = r.suffix, u = r.addonBefore, c = r.addonAfter, d = r.className, f = r.style, p = r.affixWrapperClassName, h = r.groupClassName, m = r.wrapperClassName, g = r.disabled, v = r.readOnly, C = r.focused, S = r.triggerFocus, y = r.allowClear, x = r.value, w = r.handleReset, T = r.hidden, E = useRef(null), O = function(re) {
|
|
8780
8780
|
var ie;
|
|
8781
8781
|
(ie = E.current) !== null && ie !== void 0 && ie.contains(re.target) && (S == null || S());
|
|
8782
|
-
},
|
|
8782
|
+
}, z = function() {
|
|
8783
8783
|
var re;
|
|
8784
8784
|
if (!y)
|
|
8785
8785
|
return null;
|
|
@@ -8801,7 +8801,7 @@ var BaseInput = function(r) {
|
|
|
8801
8801
|
if (hasPrefixSuffix$1(r)) {
|
|
8802
8802
|
var M, L = "".concat(o, "-affix-wrapper"), W = 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), B = (l || y) && /* @__PURE__ */ jsxs("span", {
|
|
8803
8803
|
className: "".concat(o, "-suffix"),
|
|
8804
|
-
children: [
|
|
8804
|
+
children: [z(), l]
|
|
8805
8805
|
});
|
|
8806
8806
|
P = /* @__PURE__ */ jsxs("span", {
|
|
8807
8807
|
className: W,
|
|
@@ -8851,7 +8851,7 @@ 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],
|
|
8854
|
+
}), E = _slicedToArray(T, 2), O = E[0], z = E[1], P = useState$1(!1), M = _slicedToArray(P, 2), L = M[0], W = M[1], B = useRef(null), N = function(ae) {
|
|
8855
8855
|
B.current && triggerFocus(B.current, ae);
|
|
8856
8856
|
};
|
|
8857
8857
|
useImperativeHandle(r, function() {
|
|
@@ -8877,7 +8877,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8877
8877
|
});
|
|
8878
8878
|
}, [p]);
|
|
8879
8879
|
var J = function(ae) {
|
|
8880
|
-
e.value === void 0 &&
|
|
8880
|
+
e.value === void 0 && z(ae.target.value), B.current && resolveOnChange(B.current, ae, o);
|
|
8881
8881
|
}, U = function(ae) {
|
|
8882
8882
|
u && ae.key === "Enter" && u(ae), c == null || c(ae);
|
|
8883
8883
|
}, H = function(ae) {
|
|
@@ -8885,7 +8885,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8885
8885
|
}, K = function(ae) {
|
|
8886
8886
|
W(!1), l == null || l(ae);
|
|
8887
8887
|
}, re = function(ae) {
|
|
8888
|
-
|
|
8888
|
+
z(""), N(), B.current && resolveOnChange(B.current, ae, o);
|
|
8889
8889
|
}, ie = function() {
|
|
8890
8890
|
var ae = omit(e, [
|
|
8891
8891
|
"prefixCls",
|
|
@@ -9021,8 +9021,8 @@ function toArray$1(e) {
|
|
|
9021
9021
|
var E;
|
|
9022
9022
|
if (!w)
|
|
9023
9023
|
return "";
|
|
9024
|
-
var O = w.compactDirection,
|
|
9025
|
-
return (0, l.default)((E = {}, (0, s.default)(E, "".concat(y, "-compact").concat(M, "item"), !0), (0, s.default)(E, "".concat(y, "-compact").concat(M, "first-item"),
|
|
9024
|
+
var O = w.compactDirection, z = w.isFirstItem, P = w.isLastItem, M = O === "vertical" ? "-vertical-" : "-";
|
|
9025
|
+
return (0, l.default)((E = {}, (0, s.default)(E, "".concat(y, "-compact").concat(M, "item"), !0), (0, s.default)(E, "".concat(y, "-compact").concat(M, "first-item"), z), (0, s.default)(E, "".concat(y, "-compact").concat(M, "last-item"), P), (0, s.default)(E, "".concat(y, "-compact").concat(M, "item-rtl"), x === "rtl"), E));
|
|
9026
9026
|
}, [y, x, w]);
|
|
9027
9027
|
return {
|
|
9028
9028
|
compactSize: w == null ? void 0 : w.compactSize,
|
|
@@ -9044,18 +9044,18 @@ 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,
|
|
9047
|
+
var x, w = c.useContext(d.ConfigContext), T = w.getPrefixCls, E = w.direction, O = y.size, z = O === void 0 ? "middle" : O, P = y.direction, M = y.block, L = y.prefixCls, W = y.className, B = y.children, N = f(y, ["size", "direction", "block", "prefixCls", "className", "children"]), J = T("space-compact", L), U = (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), W), H = c.useContext(p), K = (0, u.default)(B), 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, {
|
|
9051
9051
|
key: Q,
|
|
9052
|
-
compactSize:
|
|
9052
|
+
compactSize: z,
|
|
9053
9053
|
compactDirection: P,
|
|
9054
9054
|
isFirstItem: ne === 0 && (!H || (H == null ? void 0 : H.isFirstItem)),
|
|
9055
9055
|
isLastItem: ne === K.length - 1 && (!H || (H == null ? void 0 : H.isLastItem))
|
|
9056
9056
|
}, ie);
|
|
9057
9057
|
});
|
|
9058
|
-
}, [
|
|
9058
|
+
}, [z, K, H]);
|
|
9059
9059
|
return K.length === 0 ? null : /* @__PURE__ */ c.createElement("div", (0, o.default)({
|
|
9060
9060
|
className: U
|
|
9061
9061
|
}, N), re);
|
|
@@ -9096,7 +9096,7 @@ function hasPrefixSuffix(e) {
|
|
|
9096
9096
|
var r = interopRequireWildcard.exports.default, a = interopRequireDefault.exports.default;
|
|
9097
9097
|
Object.defineProperty(e, "__esModule", {
|
|
9098
9098
|
value: !0
|
|
9099
|
-
}), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus =
|
|
9099
|
+
}), e.default = void 0, e.fixControlledValue = E, e.resolveOnChange = O, e.triggerFocus = z;
|
|
9100
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, W) {
|
|
9101
9101
|
var B = {};
|
|
9102
9102
|
for (var N in L)
|
|
@@ -9138,7 +9138,7 @@ function hasPrefixSuffix(e) {
|
|
|
9138
9138
|
B(J);
|
|
9139
9139
|
}
|
|
9140
9140
|
}
|
|
9141
|
-
function
|
|
9141
|
+
function z(L, W) {
|
|
9142
9142
|
if (!!L) {
|
|
9143
9143
|
L.focus(W);
|
|
9144
9144
|
var B = W || {}, N = B.cursor;
|
|
@@ -9159,7 +9159,7 @@ function hasPrefixSuffix(e) {
|
|
|
9159
9159
|
}
|
|
9160
9160
|
}
|
|
9161
9161
|
var P = /* @__PURE__ */ (0, p.forwardRef)(function(L, W) {
|
|
9162
|
-
var B, N, J, U = 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,
|
|
9162
|
+
var B, N, J, U = 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, G = 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", U), Oe = (0, p.useRef)(null), ve = (0, C.useCompactItemContext)(Re, I), Pe = ve.compactSize, Fe = ve.compactItemClassnames, Ze = p.default.useContext(g.default), Xt = Pe || ie || Ze, 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), et = (0, w.hasPrefixSuffix)(L) || !!_t, Yt = (0, p.useRef)(et);
|
|
9163
9163
|
(0, p.useEffect)(function() {
|
|
9164
9164
|
var or;
|
|
9165
9165
|
et && !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 = et;
|
|
@@ -9189,10 +9189,10 @@ function hasPrefixSuffix(e) {
|
|
|
9189
9189
|
override: !0,
|
|
9190
9190
|
status: !0
|
|
9191
9191
|
}, me)),
|
|
9192
|
-
addonBefore:
|
|
9192
|
+
addonBefore: G && /* @__PURE__ */ p.default.createElement(C.NoCompactStyle, null, /* @__PURE__ */ p.default.createElement(v.NoFormStyle, {
|
|
9193
9193
|
override: !0,
|
|
9194
9194
|
status: !0
|
|
9195
|
-
},
|
|
9195
|
+
}, G)),
|
|
9196
9196
|
inputClassName: (0, c.default)((B = {}, (0, o.default)(B, "".concat(Re, "-sm"), Xt === "small"), (0, o.default)(B, "".concat(Re, "-lg"), Xt === "large"), (0, o.default)(B, "".concat(Re, "-rtl"), I === "rtl"), (0, o.default)(B, "".concat(Re, "-borderless"), !K), B), !et && (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")),
|
|
@@ -9222,11 +9222,11 @@ function hasPrefixSuffix(e) {
|
|
|
9222
9222
|
var N = W;
|
|
9223
9223
|
return M ? N = E(W, B) : (0, c.default)(L || "").length < W.length && (0, c.default)(W || "").length > B && (N = L), N;
|
|
9224
9224
|
}
|
|
9225
|
-
var
|
|
9226
|
-
var W, B = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, U = M.showCount, H = U === void 0 ? !1 : U, 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,
|
|
9227
|
-
value:
|
|
9228
|
-
}), et = (0, u.default)(kt, 2), Yt = et[0], tr = et[1], it =
|
|
9229
|
-
|
|
9225
|
+
var z = /* @__PURE__ */ m.forwardRef(function(M, L) {
|
|
9226
|
+
var W, B = M.prefixCls, N = M.bordered, J = N === void 0 ? !0 : N, U = M.showCount, H = U === void 0 ? !1 : U, 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, G = 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), Ze = 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)(G.defaultValue, {
|
|
9227
|
+
value: G.value
|
|
9228
|
+
}), et = (0, u.default)(kt, 2), Yt = et[0], tr = et[1], it = G.hidden, xt = function(_r, Pr) {
|
|
9229
|
+
G.value === void 0 && (tr(_r), Pr == null || Pr());
|
|
9230
9230
|
}, Qt = Number(K) > 0, Jt = function(_r) {
|
|
9231
9231
|
Ht(!0), _t.current = Yt, qt.current = _r.currentTarget.selectionStart, ae == null || ae(_r);
|
|
9232
9232
|
}, rr = function(_r) {
|
|
@@ -9263,7 +9263,7 @@ function hasPrefixSuffix(e) {
|
|
|
9263
9263
|
}
|
|
9264
9264
|
};
|
|
9265
9265
|
});
|
|
9266
|
-
var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(
|
|
9266
|
+
var Ar = /* @__PURE__ */ m.createElement(f.default, (0, l.default)({}, (0, h.default)(G, ["allowClear"]), {
|
|
9267
9267
|
disabled: I,
|
|
9268
9268
|
className: (0, d.default)((W = {}, (0, s.default)(W, "".concat(Wr, "-borderless"), !J), (0, s.default)(W, re, re && !H), (0, s.default)(W, "".concat(Wr, "-sm"), Te === "small" || ne === "small"), (0, s.default)(W, "".concat(Wr, "-lg"), Te === "large" || ne === "large"), W), (0, y.getStatusClassNames)(Wr, Fe)),
|
|
9269
9269
|
style: H ? {
|
|
@@ -9275,10 +9275,10 @@ function hasPrefixSuffix(e) {
|
|
|
9275
9275
|
onCompositionEnd: rr,
|
|
9276
9276
|
ref: Ze
|
|
9277
9277
|
})), Ur = (0, w.fixControlledValue)(Yt);
|
|
9278
|
-
!qe && Qt && (
|
|
9278
|
+
!qe && Qt && (G.value === null || G.value === void 0) && (Ur = E(Ur, K));
|
|
9279
9279
|
var Kr = /* @__PURE__ */ m.createElement(x.default, (0, l.default)({
|
|
9280
9280
|
disabled: I
|
|
9281
|
-
},
|
|
9281
|
+
}, G, {
|
|
9282
9282
|
prefixCls: Wr,
|
|
9283
9283
|
direction: ge,
|
|
9284
9284
|
inputType: "text",
|
|
@@ -9306,7 +9306,7 @@ function hasPrefixSuffix(e) {
|
|
|
9306
9306
|
}, Pe));
|
|
9307
9307
|
}
|
|
9308
9308
|
return Kr;
|
|
9309
|
-
}), P =
|
|
9309
|
+
}), P = z;
|
|
9310
9310
|
e.default = P;
|
|
9311
9311
|
})(TextArea$2);
|
|
9312
9312
|
const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
@@ -9430,7 +9430,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
9430
9430
|
}
|
|
9431
9431
|
v(!1), u();
|
|
9432
9432
|
}
|
|
9433
|
-
function
|
|
9433
|
+
function z() {
|
|
9434
9434
|
return h ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
9435
9435
|
children: [E(), /* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
|
|
9436
9436
|
justify: "end",
|
|
@@ -9464,7 +9464,7 @@ const ir = /* @__PURE__ */ getDefaultExportFromCjs(TextArea$2), {
|
|
|
9464
9464
|
footer: null,
|
|
9465
9465
|
destroyOnClose: !0,
|
|
9466
9466
|
maskClosable: !1,
|
|
9467
|
-
children:
|
|
9467
|
+
children: z()
|
|
9468
9468
|
});
|
|
9469
9469
|
};
|
|
9470
9470
|
function ButtonWithTooltip(e) {
|
|
@@ -9746,19 +9746,19 @@ function debounce(e, r, a) {
|
|
|
9746
9746
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
9747
9747
|
r = toNumber(r) || 0, isObject$3(a) && (p = !!a.leading, h = "maxWait" in a, l = h ? nativeMax(toNumber(a.maxWait) || 0, r) : l, m = "trailing" in a ? !!a.trailing : m);
|
|
9748
9748
|
function g(O) {
|
|
9749
|
-
var
|
|
9750
|
-
return o = s = void 0, f = O, u = e.apply(P,
|
|
9749
|
+
var z = o, P = s;
|
|
9750
|
+
return o = s = void 0, f = O, u = e.apply(P, z), u;
|
|
9751
9751
|
}
|
|
9752
9752
|
function v(O) {
|
|
9753
9753
|
return f = O, c = setTimeout(y, r), p ? g(O) : u;
|
|
9754
9754
|
}
|
|
9755
9755
|
function C(O) {
|
|
9756
|
-
var
|
|
9756
|
+
var z = O - d, P = O - f, M = r - z;
|
|
9757
9757
|
return h ? nativeMin(M, l - P) : M;
|
|
9758
9758
|
}
|
|
9759
9759
|
function S(O) {
|
|
9760
|
-
var
|
|
9761
|
-
return d === void 0 ||
|
|
9760
|
+
var z = O - d, P = O - f;
|
|
9761
|
+
return d === void 0 || z >= r || z < 0 || h && P >= l;
|
|
9762
9762
|
}
|
|
9763
9763
|
function y() {
|
|
9764
9764
|
var O = now$1();
|
|
@@ -9776,8 +9776,8 @@ function debounce(e, r, a) {
|
|
|
9776
9776
|
return c === void 0 ? u : x(now$1());
|
|
9777
9777
|
}
|
|
9778
9778
|
function E() {
|
|
9779
|
-
var O = now$1(),
|
|
9780
|
-
if (o = arguments, s = this, d = O,
|
|
9779
|
+
var O = now$1(), z = S(O);
|
|
9780
|
+
if (o = arguments, s = this, d = O, z) {
|
|
9781
9781
|
if (c === void 0)
|
|
9782
9782
|
return v(d);
|
|
9783
9783
|
if (h)
|
|
@@ -10325,10 +10325,10 @@ function require_stream_writable() {
|
|
|
10325
10325
|
if (hasRequired_stream_writable)
|
|
10326
10326
|
return _stream_writable;
|
|
10327
10327
|
hasRequired_stream_writable = 1, _stream_writable = P;
|
|
10328
|
-
function e(
|
|
10328
|
+
function e(G) {
|
|
10329
10329
|
var te = this;
|
|
10330
10330
|
this.next = null, this.entry = null, this.finish = function() {
|
|
10331
|
-
me(te,
|
|
10331
|
+
me(te, G);
|
|
10332
10332
|
};
|
|
10333
10333
|
}
|
|
10334
10334
|
var r;
|
|
@@ -10337,22 +10337,22 @@ function require_stream_writable() {
|
|
|
10337
10337
|
deprecate: browser
|
|
10338
10338
|
}, o = streamBrowser, s = require$$0.Buffer, l = commonjsGlobal.Uint8Array || function() {
|
|
10339
10339
|
};
|
|
10340
|
-
function u(
|
|
10341
|
-
return s.from(
|
|
10340
|
+
function u(G) {
|
|
10341
|
+
return s.from(G);
|
|
10342
10342
|
}
|
|
10343
|
-
function c(
|
|
10344
|
-
return s.isBuffer(
|
|
10343
|
+
function c(G) {
|
|
10344
|
+
return s.isBuffer(G) || G instanceof l;
|
|
10345
10345
|
}
|
|
10346
10346
|
var d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, g = h.ERR_METHOD_NOT_IMPLEMENTED, v = h.ERR_MULTIPLE_CALLBACK, C = h.ERR_STREAM_CANNOT_PIPE, S = h.ERR_STREAM_DESTROYED, y = h.ERR_STREAM_NULL_VALUES, x = h.ERR_STREAM_WRITE_AFTER_END, w = h.ERR_UNKNOWN_ENCODING, T = d.errorOrDestroy;
|
|
10347
10347
|
inherits_browser.exports(P, o);
|
|
10348
10348
|
function E() {
|
|
10349
10349
|
}
|
|
10350
|
-
function O(
|
|
10351
|
-
r = r || require_stream_duplex(),
|
|
10352
|
-
var ge =
|
|
10353
|
-
this.decodeStrings = !ge, this.defaultEncoding =
|
|
10350
|
+
function O(G, te, he) {
|
|
10351
|
+
r = r || require_stream_duplex(), G = G || {}, typeof he != "boolean" && (he = te instanceof r), this.objectMode = !!G.objectMode, he && (this.objectMode = this.objectMode || !!G.writableObjectMode), this.highWaterMark = p(this, G, "writableHighWaterMark", he), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
10352
|
+
var ge = G.decodeStrings === !1;
|
|
10353
|
+
this.decodeStrings = !ge, this.defaultEncoding = G.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Te) {
|
|
10354
10354
|
H(te, Te);
|
|
10355
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose =
|
|
10355
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = G.emitClose !== !1, this.autoDestroy = !!G.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
10356
10356
|
}
|
|
10357
10357
|
O.prototype.getBuffer = function() {
|
|
10358
10358
|
for (var te = this.bufferedRequest, he = []; te; )
|
|
@@ -10368,40 +10368,40 @@ function require_stream_writable() {
|
|
|
10368
10368
|
} catch {
|
|
10369
10369
|
}
|
|
10370
10370
|
}();
|
|
10371
|
-
var
|
|
10372
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (
|
|
10371
|
+
var z;
|
|
10372
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (z = Function.prototype[Symbol.hasInstance], Object.defineProperty(P, Symbol.hasInstance, {
|
|
10373
10373
|
value: function(te) {
|
|
10374
|
-
return
|
|
10374
|
+
return z.call(this, te) ? !0 : this !== P ? !1 : te && te._writableState instanceof O;
|
|
10375
10375
|
}
|
|
10376
|
-
})) :
|
|
10376
|
+
})) : z = function(te) {
|
|
10377
10377
|
return te instanceof this;
|
|
10378
10378
|
};
|
|
10379
|
-
function P(
|
|
10379
|
+
function P(G) {
|
|
10380
10380
|
r = r || require_stream_duplex();
|
|
10381
10381
|
var te = this instanceof r;
|
|
10382
|
-
if (!te && !
|
|
10383
|
-
return new P(
|
|
10384
|
-
this._writableState = new O(
|
|
10382
|
+
if (!te && !z.call(P, this))
|
|
10383
|
+
return new P(G);
|
|
10384
|
+
this._writableState = new O(G, this, te), this.writable = !0, G && (typeof G.write == "function" && (this._write = G.write), typeof G.writev == "function" && (this._writev = G.writev), typeof G.destroy == "function" && (this._destroy = G.destroy), typeof G.final == "function" && (this._final = G.final)), o.call(this);
|
|
10385
10385
|
}
|
|
10386
10386
|
P.prototype.pipe = function() {
|
|
10387
10387
|
T(this, new C());
|
|
10388
10388
|
};
|
|
10389
|
-
function M(
|
|
10389
|
+
function M(G, te) {
|
|
10390
10390
|
var he = new x();
|
|
10391
|
-
T(
|
|
10391
|
+
T(G, he), process.nextTick(te, he);
|
|
10392
10392
|
}
|
|
10393
|
-
function L(
|
|
10393
|
+
function L(G, te, he, ge) {
|
|
10394
10394
|
var Te;
|
|
10395
|
-
return he === null ? Te = new y() : typeof he != "string" && !te.objectMode && (Te = new m("chunk", ["string", "Buffer"], he)), Te ? (T(
|
|
10395
|
+
return he === null ? Te = new y() : typeof he != "string" && !te.objectMode && (Te = new m("chunk", ["string", "Buffer"], he)), Te ? (T(G, Te), process.nextTick(ge, Te), !1) : !0;
|
|
10396
10396
|
}
|
|
10397
|
-
P.prototype.write = function(
|
|
10398
|
-
var ge = this._writableState, Te = !1, D = !ge.objectMode && c(
|
|
10399
|
-
return D && !s.isBuffer(
|
|
10397
|
+
P.prototype.write = function(G, te, he) {
|
|
10398
|
+
var ge = this._writableState, Te = !1, D = !ge.objectMode && c(G);
|
|
10399
|
+
return D && !s.isBuffer(G) && (G = u(G)), 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, G, he)) && (ge.pendingcb++, Te = B(this, ge, D, G, te, he)), Te;
|
|
10400
10400
|
}, P.prototype.cork = function() {
|
|
10401
10401
|
this._writableState.corked++;
|
|
10402
10402
|
}, P.prototype.uncork = function() {
|
|
10403
|
-
var
|
|
10404
|
-
|
|
10403
|
+
var G = this._writableState;
|
|
10404
|
+
G.corked && (G.corked--, !G.writing && !G.corked && !G.bufferProcessing && G.bufferedRequest && ie(this, G));
|
|
10405
10405
|
}, P.prototype.setDefaultEncoding = function(te) {
|
|
10406
10406
|
if (typeof te == "string" && (te = te.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((te + "").toLowerCase()) > -1))
|
|
10407
10407
|
throw new w(te);
|
|
@@ -10412,8 +10412,8 @@ function require_stream_writable() {
|
|
|
10412
10412
|
return this._writableState && this._writableState.getBuffer();
|
|
10413
10413
|
}
|
|
10414
10414
|
});
|
|
10415
|
-
function W(
|
|
10416
|
-
return !
|
|
10415
|
+
function W(G, te, he) {
|
|
10416
|
+
return !G.objectMode && G.decodeStrings !== !1 && typeof te == "string" && (te = s.from(te, he)), te;
|
|
10417
10417
|
}
|
|
10418
10418
|
Object.defineProperty(P.prototype, "writableHighWaterMark", {
|
|
10419
10419
|
enumerable: !1,
|
|
@@ -10421,7 +10421,7 @@ function require_stream_writable() {
|
|
|
10421
10421
|
return this._writableState.highWaterMark;
|
|
10422
10422
|
}
|
|
10423
10423
|
});
|
|
10424
|
-
function B(
|
|
10424
|
+
function B(G, te, he, ge, Te, D) {
|
|
10425
10425
|
if (!he) {
|
|
10426
10426
|
var I = W(te, ge, Te);
|
|
10427
10427
|
ge !== I && (he = !0, Te = "buffer", ge = I);
|
|
@@ -10439,94 +10439,94 @@ function require_stream_writable() {
|
|
|
10439
10439
|
next: null
|
|
10440
10440
|
}, Oe ? Oe.next = te.lastBufferedRequest : te.bufferedRequest = te.lastBufferedRequest, te.bufferedRequestCount += 1;
|
|
10441
10441
|
} else
|
|
10442
|
-
N(
|
|
10442
|
+
N(G, te, !1, pe, ge, Te, D);
|
|
10443
10443
|
return Re;
|
|
10444
10444
|
}
|
|
10445
|
-
function N(
|
|
10446
|
-
te.writelen = ge, te.writecb = I, te.writing = !0, te.sync = !0, te.destroyed ? te.onwrite(new S("write")) : he ?
|
|
10445
|
+
function N(G, te, he, ge, Te, D, I) {
|
|
10446
|
+
te.writelen = ge, te.writecb = I, te.writing = !0, te.sync = !0, te.destroyed ? te.onwrite(new S("write")) : he ? G._writev(Te, te.onwrite) : G._write(Te, D, te.onwrite), te.sync = !1;
|
|
10447
10447
|
}
|
|
10448
|
-
function J(
|
|
10449
|
-
--te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe,
|
|
10448
|
+
function J(G, te, he, ge, Te) {
|
|
10449
|
+
--te.pendingcb, he ? (process.nextTick(Te, ge), process.nextTick(oe, G, te), G._writableState.errorEmitted = !0, T(G, ge)) : (Te(ge), G._writableState.errorEmitted = !0, T(G, ge), oe(G, te));
|
|
10450
10450
|
}
|
|
10451
|
-
function U(
|
|
10452
|
-
|
|
10451
|
+
function U(G) {
|
|
10452
|
+
G.writing = !1, G.writecb = null, G.length -= G.writelen, G.writelen = 0;
|
|
10453
10453
|
}
|
|
10454
|
-
function H(
|
|
10455
|
-
var he =
|
|
10454
|
+
function H(G, te) {
|
|
10455
|
+
var he = G._writableState, ge = he.sync, Te = he.writecb;
|
|
10456
10456
|
if (typeof Te != "function")
|
|
10457
10457
|
throw new v();
|
|
10458
10458
|
if (U(he), te)
|
|
10459
|
-
J(
|
|
10459
|
+
J(G, he, ge, te, Te);
|
|
10460
10460
|
else {
|
|
10461
|
-
var D = ne(he) ||
|
|
10462
|
-
!D && !he.corked && !he.bufferProcessing && he.bufferedRequest && ie(
|
|
10461
|
+
var D = ne(he) || G.destroyed;
|
|
10462
|
+
!D && !he.corked && !he.bufferProcessing && he.bufferedRequest && ie(G, he), ge ? process.nextTick(K, G, he, D, Te) : K(G, he, D, Te);
|
|
10463
10463
|
}
|
|
10464
10464
|
}
|
|
10465
|
-
function K(
|
|
10466
|
-
he || re(
|
|
10465
|
+
function K(G, te, he, ge) {
|
|
10466
|
+
he || re(G, te), te.pendingcb--, ge(), oe(G, te);
|
|
10467
10467
|
}
|
|
10468
|
-
function re(
|
|
10469
|
-
te.length === 0 && te.needDrain && (te.needDrain = !1,
|
|
10468
|
+
function re(G, te) {
|
|
10469
|
+
te.length === 0 && te.needDrain && (te.needDrain = !1, G.emit("drain"));
|
|
10470
10470
|
}
|
|
10471
|
-
function ie(
|
|
10471
|
+
function ie(G, te) {
|
|
10472
10472
|
te.bufferProcessing = !0;
|
|
10473
10473
|
var he = te.bufferedRequest;
|
|
10474
|
-
if (
|
|
10474
|
+
if (G._writev && he && he.next) {
|
|
10475
10475
|
var ge = te.bufferedRequestCount, Te = new Array(ge), D = te.corkedRequestsFree;
|
|
10476
10476
|
D.entry = he;
|
|
10477
10477
|
for (var I = 0, pe = !0; he; )
|
|
10478
10478
|
Te[I] = he, he.isBuf || (pe = !1), he = he.next, I += 1;
|
|
10479
|
-
Te.allBuffers = pe, N(
|
|
10479
|
+
Te.allBuffers = pe, N(G, te, !0, te.length, Te, "", D.finish), te.pendingcb++, te.lastBufferedRequest = null, D.next ? (te.corkedRequestsFree = D.next, D.next = null) : te.corkedRequestsFree = new e(te), te.bufferedRequestCount = 0;
|
|
10480
10480
|
} else {
|
|
10481
10481
|
for (; he; ) {
|
|
10482
10482
|
var Re = he.chunk, Oe = he.encoding, ve = he.callback, Pe = te.objectMode ? 1 : Re.length;
|
|
10483
|
-
if (N(
|
|
10483
|
+
if (N(G, te, !1, Pe, Re, Oe, ve), he = he.next, te.bufferedRequestCount--, te.writing)
|
|
10484
10484
|
break;
|
|
10485
10485
|
}
|
|
10486
10486
|
he === null && (te.lastBufferedRequest = null);
|
|
10487
10487
|
}
|
|
10488
10488
|
te.bufferedRequest = he, te.bufferProcessing = !1;
|
|
10489
10489
|
}
|
|
10490
|
-
P.prototype._write = function(
|
|
10490
|
+
P.prototype._write = function(G, te, he) {
|
|
10491
10491
|
he(new g("_write()"));
|
|
10492
|
-
}, P.prototype._writev = null, P.prototype.end = function(
|
|
10492
|
+
}, P.prototype._writev = null, P.prototype.end = function(G, te, he) {
|
|
10493
10493
|
var ge = this._writableState;
|
|
10494
|
-
return typeof
|
|
10494
|
+
return typeof G == "function" ? (he = G, G = null, te = null) : typeof te == "function" && (he = te, te = null), G != null && this.write(G, te), ge.corked && (ge.corked = 1, this.uncork()), ge.ending || ce(this, ge, he), this;
|
|
10495
10495
|
}, Object.defineProperty(P.prototype, "writableLength", {
|
|
10496
10496
|
enumerable: !1,
|
|
10497
10497
|
get: function() {
|
|
10498
10498
|
return this._writableState.length;
|
|
10499
10499
|
}
|
|
10500
10500
|
});
|
|
10501
|
-
function ne(
|
|
10502
|
-
return
|
|
10501
|
+
function ne(G) {
|
|
10502
|
+
return G.ending && G.length === 0 && G.bufferedRequest === null && !G.finished && !G.writing;
|
|
10503
10503
|
}
|
|
10504
|
-
function Q(
|
|
10505
|
-
|
|
10506
|
-
te.pendingcb--, he && T(
|
|
10504
|
+
function Q(G, te) {
|
|
10505
|
+
G._final(function(he) {
|
|
10506
|
+
te.pendingcb--, he && T(G, he), te.prefinished = !0, G.emit("prefinish"), oe(G, te);
|
|
10507
10507
|
});
|
|
10508
10508
|
}
|
|
10509
|
-
function ae(
|
|
10510
|
-
!te.prefinished && !te.finalCalled && (typeof
|
|
10509
|
+
function ae(G, te) {
|
|
10510
|
+
!te.prefinished && !te.finalCalled && (typeof G._final == "function" && !te.destroyed ? (te.pendingcb++, te.finalCalled = !0, process.nextTick(Q, G, te)) : (te.prefinished = !0, G.emit("prefinish")));
|
|
10511
10511
|
}
|
|
10512
|
-
function oe(
|
|
10512
|
+
function oe(G, te) {
|
|
10513
10513
|
var he = ne(te);
|
|
10514
|
-
if (he && (ae(
|
|
10515
|
-
var ge =
|
|
10516
|
-
(!ge || ge.autoDestroy && ge.endEmitted) &&
|
|
10514
|
+
if (he && (ae(G, te), te.pendingcb === 0 && (te.finished = !0, G.emit("finish"), te.autoDestroy))) {
|
|
10515
|
+
var ge = G._readableState;
|
|
10516
|
+
(!ge || ge.autoDestroy && ge.endEmitted) && G.destroy();
|
|
10517
10517
|
}
|
|
10518
10518
|
return he;
|
|
10519
10519
|
}
|
|
10520
|
-
function ce(
|
|
10521
|
-
te.ending = !0, oe(
|
|
10520
|
+
function ce(G, te, he) {
|
|
10521
|
+
te.ending = !0, oe(G, te), he && (te.finished ? process.nextTick(he) : G.once("finish", he)), te.ended = !0, G.writable = !1;
|
|
10522
10522
|
}
|
|
10523
|
-
function me(
|
|
10524
|
-
var ge =
|
|
10525
|
-
for (
|
|
10523
|
+
function me(G, te, he) {
|
|
10524
|
+
var ge = G.entry;
|
|
10525
|
+
for (G.entry = null; ge; ) {
|
|
10526
10526
|
var Te = ge.callback;
|
|
10527
10527
|
te.pendingcb--, Te(he), ge = ge.next;
|
|
10528
10528
|
}
|
|
10529
|
-
te.corkedRequestsFree.next =
|
|
10529
|
+
te.corkedRequestsFree.next = G;
|
|
10530
10530
|
}
|
|
10531
10531
|
return Object.defineProperty(P.prototype, "destroyed", {
|
|
10532
10532
|
enumerable: !1,
|
|
@@ -10536,8 +10536,8 @@ function require_stream_writable() {
|
|
|
10536
10536
|
set: function(te) {
|
|
10537
10537
|
!this._writableState || (this._writableState.destroyed = te);
|
|
10538
10538
|
}
|
|
10539
|
-
}), P.prototype.destroy = d.destroy, P.prototype._undestroy = d.undestroy, P.prototype._destroy = function(
|
|
10540
|
-
te(
|
|
10539
|
+
}), P.prototype.destroy = d.destroy, P.prototype._undestroy = d.undestroy, P.prototype._destroy = function(G, te) {
|
|
10540
|
+
te(G);
|
|
10541
10541
|
}, _stream_writable;
|
|
10542
10542
|
}
|
|
10543
10543
|
var _stream_duplex, hasRequired_stream_duplex;
|
|
@@ -10885,9 +10885,9 @@ function requireAsync_iterator() {
|
|
|
10885
10885
|
if (this[u])
|
|
10886
10886
|
return Promise.resolve(p(void 0, !0));
|
|
10887
10887
|
if (this[f].destroyed)
|
|
10888
|
-
return new Promise(function(
|
|
10888
|
+
return new Promise(function(z, P) {
|
|
10889
10889
|
process.nextTick(function() {
|
|
10890
|
-
x[l] ? P(x[l]) :
|
|
10890
|
+
x[l] ? P(x[l]) : z(p(void 0, !0));
|
|
10891
10891
|
});
|
|
10892
10892
|
});
|
|
10893
10893
|
var T = this[c], E;
|
|
@@ -10931,9 +10931,9 @@ function requireAsync_iterator() {
|
|
|
10931
10931
|
value: x._readableState.endEmitted,
|
|
10932
10932
|
writable: !0
|
|
10933
10933
|
}), r(w, d, {
|
|
10934
|
-
value: function(O,
|
|
10934
|
+
value: function(O, z) {
|
|
10935
10935
|
var P = T[f].read();
|
|
10936
|
-
P ? (T[c] = null, T[o] = null, T[s] = null, O(p(P, !1))) : (T[o] = O, T[s] =
|
|
10936
|
+
P ? (T[c] = null, T[o] = null, T[s] = null, O(p(P, !1))) : (T[o] = O, T[s] = z);
|
|
10937
10937
|
},
|
|
10938
10938
|
writable: !0
|
|
10939
10939
|
}), w));
|
|
@@ -10943,8 +10943,8 @@ function requireAsync_iterator() {
|
|
|
10943
10943
|
O !== null && (T[c] = null, T[o] = null, T[s] = null, O(E)), T[l] = E;
|
|
10944
10944
|
return;
|
|
10945
10945
|
}
|
|
10946
|
-
var
|
|
10947
|
-
|
|
10946
|
+
var z = T[o];
|
|
10947
|
+
z !== null && (T[c] = null, T[o] = null, T[s] = null, z(p(void 0, !0))), T[u] = !0;
|
|
10948
10948
|
}), x.on("readable", m.bind(null, T)), T;
|
|
10949
10949
|
};
|
|
10950
10950
|
return async_iterator = S, async_iterator;
|
|
@@ -10978,7 +10978,7 @@ function require_stream_readable() {
|
|
|
10978
10978
|
var f = requireBuffer_list(), p = destroy_1, h = state, m = h.getHighWaterMark, g = errorsBrowser.codes, v = g.ERR_INVALID_ARG_TYPE, C = g.ERR_STREAM_PUSH_AFTER_EOF, S = g.ERR_METHOD_NOT_IMPLEMENTED, y = g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, x, w, T;
|
|
10979
10979
|
inherits_browser.exports(M, a);
|
|
10980
10980
|
var E = p.errorOrDestroy, O = ["error", "close", "destroy", "pause", "resume"];
|
|
10981
|
-
function
|
|
10981
|
+
function z(D, I, pe) {
|
|
10982
10982
|
if (typeof D.prependListener == "function")
|
|
10983
10983
|
return D.prependListener(I, pe);
|
|
10984
10984
|
!D._events || !D._events[I] ? D.on(I, pe) : Array.isArray(D._events[I]) ? D._events[I].unshift(pe) : D._events[I] = [pe, D._events[I]];
|
|
@@ -11083,7 +11083,7 @@ function require_stream_readable() {
|
|
|
11083
11083
|
}
|
|
11084
11084
|
function re(D) {
|
|
11085
11085
|
var I = D._readableState;
|
|
11086
|
-
d("emitReadable_", I.destroyed, I.length, I.ended), !I.destroyed && (I.length || I.ended) && (D.emit("readable"), I.emittedReadable = !1), I.needReadable = !I.flowing && !I.ended && I.length <= I.highWaterMark,
|
|
11086
|
+
d("emitReadable_", I.destroyed, I.length, I.ended), !I.destroyed && (I.length || I.ended) && (D.emit("readable"), I.emittedReadable = !1), I.needReadable = !I.flowing && !I.ended && I.length <= I.highWaterMark, G(D);
|
|
11087
11087
|
}
|
|
11088
11088
|
function ie(D, I) {
|
|
11089
11089
|
I.readingMore || (I.readingMore = !0, process.nextTick(ne, D, I));
|
|
@@ -11135,7 +11135,7 @@ function require_stream_readable() {
|
|
|
11135
11135
|
function qe(kt) {
|
|
11136
11136
|
d("onerror", kt), qt(), D.removeListener("error", qe), r(D, "error") === 0 && E(D, kt);
|
|
11137
11137
|
}
|
|
11138
|
-
|
|
11138
|
+
z(D, "error", qe);
|
|
11139
11139
|
function Ht() {
|
|
11140
11140
|
D.removeListener("finish", _t), qt();
|
|
11141
11141
|
}
|
|
@@ -11152,7 +11152,7 @@ function require_stream_readable() {
|
|
|
11152
11152
|
function Q(D) {
|
|
11153
11153
|
return function() {
|
|
11154
11154
|
var pe = D._readableState;
|
|
11155
|
-
d("pipeOnDrain", pe.awaitDrain), pe.awaitDrain && pe.awaitDrain--, pe.awaitDrain === 0 && r(D, "data") && (pe.flowing = !0,
|
|
11155
|
+
d("pipeOnDrain", pe.awaitDrain), pe.awaitDrain && pe.awaitDrain--, pe.awaitDrain === 0 && r(D, "data") && (pe.flowing = !0, G(D));
|
|
11156
11156
|
};
|
|
11157
11157
|
}
|
|
11158
11158
|
M.prototype.unpipe = function(D) {
|
|
@@ -11199,12 +11199,12 @@ function require_stream_readable() {
|
|
|
11199
11199
|
I.resumeScheduled || (I.resumeScheduled = !0, process.nextTick(me, D, I));
|
|
11200
11200
|
}
|
|
11201
11201
|
function me(D, I) {
|
|
11202
|
-
d("resume", I.reading), I.reading || D.read(0), I.resumeScheduled = !1, D.emit("resume"),
|
|
11202
|
+
d("resume", I.reading), I.reading || D.read(0), I.resumeScheduled = !1, D.emit("resume"), G(D), I.flowing && !I.reading && D.read(0);
|
|
11203
11203
|
}
|
|
11204
11204
|
M.prototype.pause = function() {
|
|
11205
11205
|
return d("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (d("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
11206
11206
|
};
|
|
11207
|
-
function
|
|
11207
|
+
function G(D) {
|
|
11208
11208
|
var I = D._readableState;
|
|
11209
11209
|
for (d("flow", I.flowing); I.flowing && D.read() !== null; )
|
|
11210
11210
|
;
|
|
@@ -13617,14 +13617,14 @@ const Image = (e) => {
|
|
|
13617
13617
|
getContext: E
|
|
13618
13618
|
} = T || {};
|
|
13619
13619
|
useDeepCompareEffect(() => {
|
|
13620
|
-
|
|
13620
|
+
z();
|
|
13621
13621
|
}, [l]);
|
|
13622
13622
|
const O = (P) => {
|
|
13623
13623
|
s == null || s({
|
|
13624
13624
|
items: P
|
|
13625
13625
|
});
|
|
13626
13626
|
};
|
|
13627
|
-
async function
|
|
13627
|
+
async function z() {
|
|
13628
13628
|
c(!0), f(void 0);
|
|
13629
13629
|
try {
|
|
13630
13630
|
const P = await readObjectValues({
|
|
@@ -13700,7 +13700,7 @@ const Image = (e) => {
|
|
|
13700
13700
|
h(!1);
|
|
13701
13701
|
},
|
|
13702
13702
|
readOnly: S,
|
|
13703
|
-
postSaveAction:
|
|
13703
|
+
postSaveAction: z
|
|
13704
13704
|
})]
|
|
13705
13705
|
});
|
|
13706
13706
|
}, Indicator = (e) => {
|
|
@@ -13933,43 +13933,43 @@ const transformPlainMany2Ones = ({
|
|
|
13933
13933
|
};
|
|
13934
13934
|
});
|
|
13935
13935
|
c(P);
|
|
13936
|
-
} catch (
|
|
13937
|
-
f(
|
|
13936
|
+
} catch (z) {
|
|
13937
|
+
f(z);
|
|
13938
13938
|
} finally {
|
|
13939
13939
|
h(!1);
|
|
13940
13940
|
}
|
|
13941
13941
|
}
|
|
13942
13942
|
const T = (O) => {
|
|
13943
|
-
const
|
|
13943
|
+
const z = s.map((M) => O.includes(M.id) ? M.operation == "pendingRemove" ? {
|
|
13944
13944
|
...M,
|
|
13945
13945
|
operation: "pendingLink"
|
|
13946
13946
|
} : M : {
|
|
13947
13947
|
id: M.id,
|
|
13948
13948
|
operation: "pendingRemove"
|
|
13949
|
-
}), P =
|
|
13949
|
+
}), P = z.map((M) => M.id);
|
|
13950
13950
|
O.filter((M) => !P.includes(M)).map((M) => {
|
|
13951
|
-
|
|
13951
|
+
z.push({
|
|
13952
13952
|
id: M,
|
|
13953
13953
|
operation: "pendingLink"
|
|
13954
13954
|
});
|
|
13955
|
-
}), x(
|
|
13955
|
+
}), x(z);
|
|
13956
13956
|
}, E = (O) => {
|
|
13957
13957
|
const {
|
|
13958
|
-
label:
|
|
13958
|
+
label: z,
|
|
13959
13959
|
closable: P,
|
|
13960
13960
|
onClose: M
|
|
13961
13961
|
} = O, L = (W) => {
|
|
13962
13962
|
W.preventDefault(), W.stopPropagation();
|
|
13963
13963
|
};
|
|
13964
|
-
return /* @__PURE__ */ jsx(Tag, {
|
|
13965
|
-
color: colorFromString(
|
|
13964
|
+
return /* @__PURE__ */ jsx(Tag$1, {
|
|
13965
|
+
color: colorFromString(z),
|
|
13966
13966
|
onMouseDown: L,
|
|
13967
13967
|
style: {
|
|
13968
13968
|
margin: "5px"
|
|
13969
13969
|
},
|
|
13970
13970
|
closable: P,
|
|
13971
13971
|
onClose: M,
|
|
13972
|
-
children:
|
|
13972
|
+
children: z
|
|
13973
13973
|
});
|
|
13974
13974
|
};
|
|
13975
13975
|
return d ? /* @__PURE__ */ jsx(Alert, {
|
|
@@ -14054,6 +14054,8 @@ const transformPlainMany2Ones = ({
|
|
|
14054
14054
|
return Indicator;
|
|
14055
14055
|
case "tags":
|
|
14056
14056
|
return Tags;
|
|
14057
|
+
case "tag":
|
|
14058
|
+
return Tag;
|
|
14057
14059
|
case "multicheckbox":
|
|
14058
14060
|
return MultiCheckbox;
|
|
14059
14061
|
case "radio":
|
|
@@ -14282,7 +14284,7 @@ const transformPlainMany2Ones = ({
|
|
|
14282
14284
|
}, getTableColumns = (e, r, a) => e.columns.map((s) => {
|
|
14283
14285
|
const l = s.type, u = s.id, c = r == null ? void 0 : r[l];
|
|
14284
14286
|
let d;
|
|
14285
|
-
return c && (d = (f) => c(f, u,
|
|
14287
|
+
return c && (d = (f) => c(f, u, s, a)), {
|
|
14286
14288
|
key: u,
|
|
14287
14289
|
dataIndex: u,
|
|
14288
14290
|
title: s.label,
|
|
@@ -14300,17 +14302,11 @@ const transformPlainMany2Ones = ({
|
|
|
14300
14302
|
s[l] = o[l];
|
|
14301
14303
|
else {
|
|
14302
14304
|
const u = e.findById(l);
|
|
14303
|
-
|
|
14304
|
-
|
|
14305
|
-
|
|
14306
|
-
|
|
14307
|
-
|
|
14308
|
-
} else
|
|
14309
|
-
u instanceof Many2one$1 ? s[l] = o[l] && Array.isArray(o[l]) && o[l].length === 2 && {
|
|
14310
|
-
model: u.relation,
|
|
14311
|
-
id: o[l][0],
|
|
14312
|
-
value: o[l][1]
|
|
14313
|
-
} : u instanceof Boolean$2 ? s[l] = o[l] : u ? s[l] = o[l] === !1 ? "" : o[l] : s[l] = o[l];
|
|
14305
|
+
u instanceof Reference$1 || u instanceof Selection$1 ? s[l] = o[l] : u instanceof Many2one$1 ? s[l] = o[l] && Array.isArray(o[l]) && o[l].length === 2 && {
|
|
14306
|
+
model: u.relation,
|
|
14307
|
+
id: o[l][0],
|
|
14308
|
+
value: o[l][1]
|
|
14309
|
+
} : u instanceof Boolean$2 ? s[l] = o[l] : u ? s[l] = o[l] === !1 ? "" : o[l] : s[l] = o[l];
|
|
14314
14310
|
}
|
|
14315
14311
|
}), s;
|
|
14316
14312
|
});
|
|
@@ -14360,8 +14356,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14360
14356
|
limit: T,
|
|
14361
14357
|
setLimit: E,
|
|
14362
14358
|
searchParams: O = [],
|
|
14363
|
-
setSearchValues:
|
|
14364
|
-
} = e, [P, M] = useState$1(!1), [L, W] = useState$1(!1), [B, N] = useState$1(), [J, U] = 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([]),
|
|
14359
|
+
setSearchValues: z
|
|
14360
|
+
} = e, [P, M] = useState$1(!1), [L, W] = useState$1(!1), [B, N] = useState$1(), [J, U] = 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([]), G = useCallback((ve) => {
|
|
14365
14361
|
S == null || S([...ve]), Q([...ve]);
|
|
14366
14362
|
}, []), te = useCallback(() => y || ne, [y, ne]), he = useCallback(async () => {
|
|
14367
14363
|
const ve = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -14388,12 +14384,12 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14388
14384
|
sorter: g,
|
|
14389
14385
|
fields: { ...h.fields, ...m.fields }
|
|
14390
14386
|
}) : [...me.current];
|
|
14391
|
-
|
|
14387
|
+
G(er), Zt.length > 0 ? C == null || C(0) : C == null || C(void 0);
|
|
14392
14388
|
} else
|
|
14393
|
-
|
|
14389
|
+
G([]), C == null || C(void 0);
|
|
14394
14390
|
d.current = !0;
|
|
14395
14391
|
}, [
|
|
14396
|
-
|
|
14392
|
+
G,
|
|
14397
14393
|
d,
|
|
14398
14394
|
c,
|
|
14399
14395
|
r,
|
|
@@ -14421,7 +14417,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14421
14417
|
sorter: g,
|
|
14422
14418
|
fields: { ...h.fields, ...m.fields }
|
|
14423
14419
|
}) : [...me.current];
|
|
14424
|
-
if (
|
|
14420
|
+
if (G(Ht), y && Ht.length > 0) {
|
|
14425
14421
|
const qt = Ht.findIndex(
|
|
14426
14422
|
(kt) => w === kt.id
|
|
14427
14423
|
);
|
|
@@ -14434,7 +14430,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14434
14430
|
[
|
|
14435
14431
|
C,
|
|
14436
14432
|
y,
|
|
14437
|
-
|
|
14433
|
+
G,
|
|
14438
14434
|
w,
|
|
14439
14435
|
r,
|
|
14440
14436
|
f,
|
|
@@ -14470,7 +14466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14470
14466
|
d,
|
|
14471
14467
|
p,
|
|
14472
14468
|
C,
|
|
14473
|
-
|
|
14469
|
+
G,
|
|
14474
14470
|
N,
|
|
14475
14471
|
W,
|
|
14476
14472
|
M,
|
|
@@ -14486,13 +14482,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14486
14482
|
sorter: ve,
|
|
14487
14483
|
fields: { ...h.fields, ...m.fields }
|
|
14488
14484
|
}) : [...me.current];
|
|
14489
|
-
|
|
14485
|
+
G(Pe);
|
|
14490
14486
|
},
|
|
14491
|
-
[v, te, h, m,
|
|
14487
|
+
[v, te, h, m, G]
|
|
14492
14488
|
), I = useCallback(
|
|
14493
14489
|
(ve) => {
|
|
14494
14490
|
const { params: Pe, searchValues: Fe, limit: Ze, offset: Xt } = ve;
|
|
14495
|
-
P || (a == null || a(void 0), o == null || o([]),
|
|
14491
|
+
P || (a == null || a(void 0), o == null || o([]), z == null || z(Fe), s == null || s(Pe), l == null || l(!1), W(!0), N(void 0), U(1), Ze && (ce.current = Ze, E == null || E(Ze)), Xt && K(Xt), Te({
|
|
14496
14492
|
params: Pe,
|
|
14497
14493
|
newOffset: Xt
|
|
14498
14494
|
}));
|
|
@@ -14516,7 +14512,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14516
14512
|
},
|
|
14517
14513
|
[M, T, K, U]
|
|
14518
14514
|
), Re = useCallback(() => {
|
|
14519
|
-
P || (a == null || a(void 0), s == null || s([]),
|
|
14515
|
+
P || (a == null || a(void 0), s == null || s([]), z == null || z({}), N(void 0), K(0), U(1), E == null || E(T || DEFAULT_SEARCH_LIMIT$1));
|
|
14520
14516
|
}, [
|
|
14521
14517
|
P,
|
|
14522
14518
|
a,
|
|
@@ -14534,9 +14530,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14534
14530
|
fields: h.field_parent ? { ...h.fields, [h.field_parent]: {} } : h.fields,
|
|
14535
14531
|
context: f
|
|
14536
14532
|
});
|
|
14537
|
-
return
|
|
14533
|
+
return G([...te(), ...Fe]), getTableItems(getTree(h), Fe);
|
|
14538
14534
|
},
|
|
14539
|
-
[h, r, f, te,
|
|
14535
|
+
[h, r, f, te, G]
|
|
14540
14536
|
);
|
|
14541
14537
|
return {
|
|
14542
14538
|
submit: I,
|
|
@@ -14579,10 +14575,10 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14579
14575
|
setSelectedRowItems: T,
|
|
14580
14576
|
selectedRowItems: E,
|
|
14581
14577
|
searchTreeNameSearch: O,
|
|
14582
|
-
setSearchTreeNameSearch:
|
|
14578
|
+
setSearchTreeNameSearch: z,
|
|
14583
14579
|
goToResourceId: P,
|
|
14584
14580
|
limit: M
|
|
14585
|
-
} = e, [L, W] = useState$1(!1), [B, N] = useState$1(!1), [J, U] = 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([]), [
|
|
14581
|
+
} = e, [L, W] = useState$1(!1), [B, N] = useState$1(!1), [J, U] = 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([]), [G, 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);
|
|
14586
14582
|
useEffect(() => {
|
|
14587
14583
|
m && m.length > 0 && !g && (v == null || v(0), p == null || p(m[0].id));
|
|
14588
14584
|
}, [m]), useEffect(() => {
|
|
@@ -14592,9 +14588,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14592
14588
|
}, [l]), useEffect(() => {
|
|
14593
14589
|
(Te == null ? void 0 : Te.view_id) === a.view_id && l.length > 1 && D(l.filter((Ze) => Ze.view_id !== a.view_id)[0]);
|
|
14594
14590
|
}, [a]);
|
|
14595
|
-
const Fe = () => {
|
|
14591
|
+
const Fe = async () => {
|
|
14596
14592
|
var Ze;
|
|
14597
|
-
(Ze = u.current) == null
|
|
14593
|
+
await ((Ze = u.current) == null ? void 0 : Ze.submitForm());
|
|
14598
14594
|
};
|
|
14599
14595
|
return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
|
|
14600
14596
|
value: {
|
|
@@ -14631,14 +14627,14 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14631
14627
|
setDuplicatingItem: oe,
|
|
14632
14628
|
setSearchParams: me,
|
|
14633
14629
|
searchParams: ce,
|
|
14634
|
-
searchVisible:
|
|
14630
|
+
searchVisible: G,
|
|
14635
14631
|
setSearchVisible: te,
|
|
14636
14632
|
sorter: S,
|
|
14637
14633
|
setSorter: y,
|
|
14638
14634
|
totalItems: x,
|
|
14639
14635
|
setTotalItems: w,
|
|
14640
14636
|
searchTreeNameSearch: O,
|
|
14641
|
-
setSearchTreeNameSearch:
|
|
14637
|
+
setSearchTreeNameSearch: z,
|
|
14642
14638
|
setGraphIsLoading: ge,
|
|
14643
14639
|
graphIsLoading: he,
|
|
14644
14640
|
previousView: Te,
|
|
@@ -14700,13 +14696,13 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14700
14696
|
const [m, g] = useState$1(!1), [v, C] = useState$1({
|
|
14701
14697
|
context: {}
|
|
14702
14698
|
});
|
|
14703
|
-
async function S(
|
|
14699
|
+
async function S(z) {
|
|
14704
14700
|
const {
|
|
14705
14701
|
reportData: P,
|
|
14706
14702
|
fields: M,
|
|
14707
14703
|
values: L,
|
|
14708
14704
|
context: W = {}
|
|
14709
|
-
} =
|
|
14705
|
+
} = z, {
|
|
14710
14706
|
context: B,
|
|
14711
14707
|
model: N,
|
|
14712
14708
|
datas: J = {},
|
|
@@ -14744,11 +14740,11 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14744
14740
|
l.current = !1, clearInterval(s.current), showDialog$8(ne), c(!1);
|
|
14745
14741
|
}
|
|
14746
14742
|
}
|
|
14747
|
-
async function y(
|
|
14743
|
+
async function y(z) {
|
|
14748
14744
|
let P;
|
|
14749
14745
|
try {
|
|
14750
14746
|
if (P = await ConnectionProvider.getHandler().getReport({
|
|
14751
|
-
id:
|
|
14747
|
+
id: z
|
|
14752
14748
|
}), P.state && l.current === !0) {
|
|
14753
14749
|
l.current = !1, clearInterval(s.current), c(!1);
|
|
14754
14750
|
const M = await getMimeType(P.result);
|
|
@@ -14759,7 +14755,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14759
14755
|
}
|
|
14760
14756
|
}
|
|
14761
14757
|
async function x({
|
|
14762
|
-
actionData:
|
|
14758
|
+
actionData: z,
|
|
14763
14759
|
fields: P,
|
|
14764
14760
|
values: M,
|
|
14765
14761
|
context: L,
|
|
@@ -14767,30 +14763,30 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14767
14763
|
}) {
|
|
14768
14764
|
const {
|
|
14769
14765
|
type: B
|
|
14770
|
-
} =
|
|
14766
|
+
} = z;
|
|
14771
14767
|
return p.current.push(W), B === "ir.actions.report.xml" ? await S({
|
|
14772
|
-
reportData:
|
|
14768
|
+
reportData: z,
|
|
14773
14769
|
fields: P,
|
|
14774
14770
|
values: M,
|
|
14775
14771
|
context: L
|
|
14776
14772
|
}) : B === "ir.actions.act_window" ? await w({
|
|
14777
|
-
actionData:
|
|
14773
|
+
actionData: z,
|
|
14778
14774
|
fields: P,
|
|
14779
14775
|
values: M,
|
|
14780
14776
|
context: L
|
|
14781
14777
|
}) : (showDialog$8(`${B} action not supported`), {});
|
|
14782
14778
|
}
|
|
14783
14779
|
async function w({
|
|
14784
|
-
actionData:
|
|
14780
|
+
actionData: z,
|
|
14785
14781
|
fields: P = {},
|
|
14786
14782
|
values: M = {},
|
|
14787
14783
|
context: L = {}
|
|
14788
14784
|
}) {
|
|
14789
14785
|
var U;
|
|
14790
|
-
let W =
|
|
14791
|
-
|
|
14786
|
+
let W = z;
|
|
14787
|
+
z.res_model || (W = (await ConnectionProvider.getHandler().readObjects({
|
|
14792
14788
|
model: "ir.actions.act_window",
|
|
14793
|
-
ids: [parseInt(
|
|
14789
|
+
ids: [parseInt(z.id)],
|
|
14794
14790
|
context: L
|
|
14795
14791
|
}))[0]);
|
|
14796
14792
|
const N = {
|
|
@@ -14868,20 +14864,20 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14868
14864
|
}
|
|
14869
14865
|
}
|
|
14870
14866
|
function T({
|
|
14871
|
-
domain:
|
|
14867
|
+
domain: z,
|
|
14872
14868
|
model: P,
|
|
14873
14869
|
formView: M,
|
|
14874
14870
|
context: L,
|
|
14875
14871
|
actionData: W
|
|
14876
14872
|
}) {
|
|
14877
14873
|
m ? E({
|
|
14878
|
-
domain:
|
|
14874
|
+
domain: z,
|
|
14879
14875
|
model: P,
|
|
14880
14876
|
formView: M,
|
|
14881
14877
|
context: L,
|
|
14882
14878
|
actionData: W
|
|
14883
14879
|
}) : (C({
|
|
14884
|
-
domain:
|
|
14880
|
+
domain: z,
|
|
14885
14881
|
model: P,
|
|
14886
14882
|
context: L,
|
|
14887
14883
|
formView: M,
|
|
@@ -14889,7 +14885,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14889
14885
|
}), g(!0));
|
|
14890
14886
|
}
|
|
14891
14887
|
async function E({
|
|
14892
|
-
domain:
|
|
14888
|
+
domain: z,
|
|
14893
14889
|
model: P,
|
|
14894
14890
|
formView: M,
|
|
14895
14891
|
context: L,
|
|
@@ -14902,7 +14898,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
14902
14898
|
formView: void 0,
|
|
14903
14899
|
actionData: void 0
|
|
14904
14900
|
}), g(!1), await new Promise((B) => setTimeout(B, 300)), C({
|
|
14905
|
-
domain:
|
|
14901
|
+
domain: z,
|
|
14906
14902
|
model: P,
|
|
14907
14903
|
context: L,
|
|
14908
14904
|
formView: M,
|
|
@@ -14982,9 +14978,9 @@ function Form(e, r) {
|
|
|
14982
14978
|
defaultValues: E,
|
|
14983
14979
|
forcedValues: O = {}
|
|
14984
14980
|
} = e, {
|
|
14985
|
-
t:
|
|
14981
|
+
t: z,
|
|
14986
14982
|
lang: P
|
|
14987
|
-
} = useContext(LocaleContext), [M, L] = useState$1(!1), [W, B] = useState$1(), [N, J] = useState$1(), [U] = 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(),
|
|
14983
|
+
} = useContext(LocaleContext), [M, L] = useState$1(!1), [W, B] = useState$1(), [N, J] = useState$1(), [U] = 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(), G = useRef({}), te = useRef({}), he = useRef(!1), ge = useRef(!1), Te = Q < WIDTH_BREAKPOINT, D = useContext(FormContext$2), {
|
|
14988
14984
|
activeId: I,
|
|
14989
14985
|
getPlainValues: pe
|
|
14990
14986
|
} = D || {}, Re = useContext(ActionViewContext), {
|
|
@@ -15088,7 +15084,7 @@ function Form(e, r) {
|
|
|
15088
15084
|
extraValues: E
|
|
15089
15085
|
});
|
|
15090
15086
|
}, or = () => Object.keys(getTouchedValues({
|
|
15091
|
-
source:
|
|
15087
|
+
source: G.current,
|
|
15092
15088
|
target: $r(re),
|
|
15093
15089
|
fields: re
|
|
15094
15090
|
})).length !== 0, $r = (Le) => {
|
|
@@ -15108,7 +15104,7 @@ function Form(e, r) {
|
|
|
15108
15104
|
try {
|
|
15109
15105
|
return await U.validateFields(), !1;
|
|
15110
15106
|
} catch {
|
|
15111
|
-
return message$1.error(
|
|
15107
|
+
return message$1.error(z("fillRequiredFields")), !0;
|
|
15112
15108
|
}
|
|
15113
15109
|
}
|
|
15114
15110
|
const Kr = async () => {
|
|
@@ -15141,7 +15137,7 @@ function Form(e, r) {
|
|
|
15141
15137
|
}), x && (Ae = {
|
|
15142
15138
|
...getValuesForDomain(x),
|
|
15143
15139
|
...Ae
|
|
15144
|
-
}),
|
|
15140
|
+
}), G.current = processValues(Ae, Tt), _r({
|
|
15145
15141
|
values: Ae,
|
|
15146
15142
|
fields: Tt,
|
|
15147
15143
|
reset: !0,
|
|
@@ -15153,7 +15149,7 @@ function Form(e, r) {
|
|
|
15153
15149
|
}), Fe == null || Fe(!1), ve == null || ve(!1), Rr && ce(!0);
|
|
15154
15150
|
};
|
|
15155
15151
|
function en(Le, Ae) {
|
|
15156
|
-
|
|
15152
|
+
G.current[Le] = Ae, ve == null || ve(or());
|
|
15157
15153
|
}
|
|
15158
15154
|
const sn = async () => new Promise(async (Le) => {
|
|
15159
15155
|
or() ? showDialog$6({
|
|
@@ -15227,7 +15223,7 @@ function Form(e, r) {
|
|
|
15227
15223
|
} = Le || {};
|
|
15228
15224
|
if (et()) {
|
|
15229
15225
|
const Tt = getTouchedValues({
|
|
15230
|
-
source:
|
|
15226
|
+
source: G.current,
|
|
15231
15227
|
target: $r(re),
|
|
15232
15228
|
fields: re
|
|
15233
15229
|
});
|
|
@@ -15243,7 +15239,7 @@ function Form(e, r) {
|
|
|
15243
15239
|
...y,
|
|
15244
15240
|
...N == null ? void 0 : N.context
|
|
15245
15241
|
}
|
|
15246
|
-
}),
|
|
15242
|
+
}), G.current = $r(re);
|
|
15247
15243
|
} else {
|
|
15248
15244
|
const Tt = $r(re), Pt = await ConnectionProvider.getHandler().create({
|
|
15249
15245
|
model: a,
|
|
@@ -15257,7 +15253,7 @@ function Form(e, r) {
|
|
|
15257
15253
|
...N == null ? void 0 : N.context
|
|
15258
15254
|
}
|
|
15259
15255
|
});
|
|
15260
|
-
me.current = Pt,
|
|
15256
|
+
me.current = Pt, G.current = Tt;
|
|
15261
15257
|
}
|
|
15262
15258
|
C && await C([et()]), !S && Ae && (_t == null || _t(et(), tr(), xt()));
|
|
15263
15259
|
}, Xr = async (Le) => {
|
|
@@ -15282,7 +15278,7 @@ function Form(e, r) {
|
|
|
15282
15278
|
reset: !0
|
|
15283
15279
|
})), await Yr(), Ae = !0;
|
|
15284
15280
|
} catch (Pt) {
|
|
15285
|
-
ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(
|
|
15281
|
+
ge.current = !1, L(!1), Oe == null || Oe(!1), kt == null || kt(Pt), message$1.error(z("errorWhileSavingForm")), B(Pt != null && Pt.message ? Pt.message : Pt);
|
|
15286
15282
|
} finally {
|
|
15287
15283
|
ge.current = !1, Oe == null || Oe(!1), L(!1);
|
|
15288
15284
|
}
|
|
@@ -15605,13 +15601,13 @@ const Form$1 = forwardRef(Form), FormModal = (e) => {
|
|
|
15605
15601
|
res_id: T,
|
|
15606
15602
|
action_type: E,
|
|
15607
15603
|
view_id: O
|
|
15608
|
-
} = c,
|
|
15604
|
+
} = c, z = await ConnectionProvider.getHandler().isShortcutFavorite({
|
|
15609
15605
|
action_id: w,
|
|
15610
15606
|
action_type: E,
|
|
15611
15607
|
view_id: O,
|
|
15612
15608
|
res_id: T || !1
|
|
15613
15609
|
});
|
|
15614
|
-
g(
|
|
15610
|
+
g(z !== !1), z !== !1 && C(z);
|
|
15615
15611
|
}
|
|
15616
15612
|
async function y() {
|
|
15617
15613
|
if (m && v)
|
|
@@ -16074,7 +16070,7 @@ function SearchFilter(e) {
|
|
|
16074
16070
|
const P = new SearchFilter$1(a, r);
|
|
16075
16071
|
P.parse(), C(P._simpleSearchContainer), y(P._advancedSearchContainer);
|
|
16076
16072
|
}, [r, a]);
|
|
16077
|
-
const O = E(),
|
|
16073
|
+
const O = E(), z = (P) => {
|
|
16078
16074
|
const {
|
|
16079
16075
|
limit: M,
|
|
16080
16076
|
offset: L
|
|
@@ -16105,7 +16101,7 @@ function SearchFilter(e) {
|
|
|
16105
16101
|
children: [/* @__PURE__ */ jsxs(Form$3, {
|
|
16106
16102
|
className: "p-3 rounded shadow-md bg-gray-50",
|
|
16107
16103
|
form: T,
|
|
16108
|
-
onFinish:
|
|
16104
|
+
onFinish: z,
|
|
16109
16105
|
initialValues: {
|
|
16110
16106
|
offset: u,
|
|
16111
16107
|
limit: c
|
|
@@ -16362,7 +16358,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16362
16358
|
}
|
|
16363
16359
|
});
|
|
16364
16360
|
}
|
|
16365
|
-
function
|
|
16361
|
+
function z(L) {
|
|
16366
16362
|
c(!1), x == null || x({
|
|
16367
16363
|
actionData: {
|
|
16368
16364
|
...L,
|
|
@@ -16395,7 +16391,7 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16395
16391
|
}), /* @__PURE__ */ jsx(Many2oneSuffixModal, {
|
|
16396
16392
|
visible: u,
|
|
16397
16393
|
items: (M = p == null ? void 0 : p.toolbar) == null ? void 0 : M.print,
|
|
16398
|
-
onItemClicked:
|
|
16394
|
+
onItemClicked: z,
|
|
16399
16395
|
onCancel: () => c(!1)
|
|
16400
16396
|
})]
|
|
16401
16397
|
});
|
|
@@ -16479,10 +16475,17 @@ const ProgressBar = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
|
16479
16475
|
maxWidth: "50px",
|
|
16480
16476
|
padding: "5px"
|
|
16481
16477
|
}
|
|
16478
|
+
}), TagComponent = (e, r, a, o) => /* @__PURE__ */ jsx(Fragment, {
|
|
16479
|
+
children: e ? /* @__PURE__ */ jsx(Tag$1, {
|
|
16480
|
+
color: a.colors[e],
|
|
16481
|
+
children: a.selectionValues.get(e)
|
|
16482
|
+
}) : null
|
|
16483
|
+
}), SelectionComponent = (e, r, a, o) => /* @__PURE__ */ jsx(Fragment, {
|
|
16484
|
+
children: a.selectionValues.get(e)
|
|
16482
16485
|
}), referenceComponent = (e, r, a, o) => /* @__PURE__ */ jsx(Fragment, {
|
|
16483
16486
|
children: /* @__PURE__ */ jsx(ReferenceTree, {
|
|
16484
16487
|
value: e,
|
|
16485
|
-
selectionValues:
|
|
16488
|
+
selectionValues: a.selectionValues,
|
|
16486
16489
|
context: o
|
|
16487
16490
|
})
|
|
16488
16491
|
});
|
|
@@ -16506,7 +16509,7 @@ function Tree(e) {
|
|
|
16506
16509
|
childField: S,
|
|
16507
16510
|
rootTree: y = !1,
|
|
16508
16511
|
context: x
|
|
16509
|
-
} = e, [w, T] = useState$1([]), [E, O] = useState$1([]),
|
|
16512
|
+
} = e, [w, T] = useState$1([]), [E, O] = useState$1([]), z = useRef(!1), P = useRef(null), {
|
|
16510
16513
|
t: M
|
|
16511
16514
|
} = useContext(LocaleContext), L = useRef(a), W = useContext(ActionViewContext), {
|
|
16512
16515
|
title: B = void 0,
|
|
@@ -16525,11 +16528,13 @@ function Tree(e) {
|
|
|
16525
16528
|
image: imageComponent,
|
|
16526
16529
|
integer: numberComponent,
|
|
16527
16530
|
float: numberComponent,
|
|
16528
|
-
reference: referenceComponent
|
|
16531
|
+
reference: referenceComponent,
|
|
16532
|
+
tag: TagComponent,
|
|
16533
|
+
selection: SelectionComponent
|
|
16529
16534
|
}, x);
|
|
16530
16535
|
O(Q), P.current.string && B !== P.current.string && (N == null || N(P.current.string));
|
|
16531
16536
|
}, [s]), useEffect(() => {
|
|
16532
|
-
|
|
16537
|
+
z.current = !1;
|
|
16533
16538
|
const Q = getTableItems(P.current, l);
|
|
16534
16539
|
T(Q), L.current = a;
|
|
16535
16540
|
}, [l]);
|
|
@@ -16553,16 +16558,16 @@ function Tree(e) {
|
|
|
16553
16558
|
});
|
|
16554
16559
|
function re() {
|
|
16555
16560
|
var me;
|
|
16556
|
-
const ae = P.current.columns.filter((
|
|
16557
|
-
label:
|
|
16558
|
-
field:
|
|
16561
|
+
const ae = P.current.columns.filter((G) => G.sum !== void 0).map((G) => ({
|
|
16562
|
+
label: G.sum,
|
|
16563
|
+
field: G.id
|
|
16559
16564
|
}));
|
|
16560
16565
|
if (!ae || ae.length === 0)
|
|
16561
16566
|
return null;
|
|
16562
|
-
let oe = [], ce = ((me = p == null ? void 0 : p.selectedRowKeys) == null ? void 0 : me.length) > 0 ? w.filter((
|
|
16563
|
-
return ae.forEach((
|
|
16564
|
-
const te = ce.reduce((he, ge) => ge[
|
|
16565
|
-
oe.push(`${
|
|
16567
|
+
let oe = [], ce = ((me = p == null ? void 0 : p.selectedRowKeys) == null ? void 0 : me.length) > 0 ? w.filter((G) => p == null ? void 0 : p.selectedRowKeys.includes(G.id)) : w;
|
|
16568
|
+
return ae.forEach((G) => {
|
|
16569
|
+
const te = ce.reduce((he, ge) => ge[G.field] && !isNaN(ge[G.field]) ? he + ge[G.field] : he, 0);
|
|
16570
|
+
oe.push(`${G.label}: ${Math.round(te * 100) / 100}`);
|
|
16566
16571
|
}), /* @__PURE__ */ jsx("div", {
|
|
16567
16572
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
16568
16573
|
children: oe.join(", ")
|
|
@@ -16618,7 +16623,7 @@ function SearchTree(e, r) {
|
|
|
16618
16623
|
rootTree: p = !1,
|
|
16619
16624
|
parentContext: h = {},
|
|
16620
16625
|
onChangeSelectedRowKeys: m
|
|
16621
|
-
} = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O,
|
|
16626
|
+
} = e, [g, v] = useState$1(!1), [C, S] = useState$1(!1), y = useRef(!1), [x, w] = useState$1(), [T, E] = useState$1(), [O, z] = useState$1(), [P, M] = useState$1(), [L, W] = useState$1(200), B = useRef(), {
|
|
16622
16627
|
height: N
|
|
16623
16628
|
} = useWindowDimensions(), J = useContext(ContentRootContext), {
|
|
16624
16629
|
processAction: U
|
|
@@ -16632,7 +16637,7 @@ function SearchTree(e, r) {
|
|
|
16632
16637
|
searchParams: oe = [],
|
|
16633
16638
|
setSearchParams: ce = void 0,
|
|
16634
16639
|
searchVisible: me = !0,
|
|
16635
|
-
setSearchVisible:
|
|
16640
|
+
setSearchVisible: G = void 0,
|
|
16636
16641
|
sorter: te = void 0,
|
|
16637
16642
|
setSorter: he = void 0,
|
|
16638
16643
|
setTotalItems: ge = void 0,
|
|
@@ -16664,7 +16669,7 @@ function SearchTree(e, r) {
|
|
|
16664
16669
|
setSearchParams: ce,
|
|
16665
16670
|
setSearchValues: pe,
|
|
16666
16671
|
searchParams: oe,
|
|
16667
|
-
setSearchVisible:
|
|
16672
|
+
setSearchVisible: G,
|
|
16668
16673
|
setTreeIsLoading: D,
|
|
16669
16674
|
nameSearch: u,
|
|
16670
16675
|
searchNameGetDoneRef: y,
|
|
@@ -16713,7 +16718,7 @@ function SearchTree(e, r) {
|
|
|
16713
16718
|
model: a,
|
|
16714
16719
|
type: "tree",
|
|
16715
16720
|
context: h
|
|
16716
|
-
})),
|
|
16721
|
+
})), z(Ar), E(Ur);
|
|
16717
16722
|
};
|
|
16718
16723
|
useEffect(() => {
|
|
16719
16724
|
tr();
|
|
@@ -16948,14 +16953,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
16948
16953
|
context: c,
|
|
16949
16954
|
id: d,
|
|
16950
16955
|
domain: f
|
|
16951
|
-
} = o, p = s && !u ? Config.requiredClass : void 0, [h, m] = useState$1(!1), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1(), w = useRef(!1), [T, E] = useState$1(""), O = useRef(),
|
|
16956
|
+
} = o, p = s && !u ? Config.requiredClass : void 0, [h, m] = useState$1(!1), [g, v] = useState$1(!1), [C, S] = useState$1(!1), [y, x] = useState$1(), w = useRef(!1), [T, E] = useState$1(""), O = useRef(), z = useContext(FormContext$2), {
|
|
16952
16957
|
domain: P,
|
|
16953
16958
|
getValues: M,
|
|
16954
16959
|
getFields: L,
|
|
16955
16960
|
getContext: W,
|
|
16956
16961
|
setOriginalValue: B,
|
|
16957
16962
|
elementHasLostFocus: N
|
|
16958
|
-
} =
|
|
16963
|
+
} = z || {}, J = useRef([]), [U, H] = useState$1([]), K = r && r[0] || void 0, re = r && r[1] || "";
|
|
16959
16964
|
useEffect(() => {
|
|
16960
16965
|
!Array.isArray(r) && r && oe(r);
|
|
16961
16966
|
}, [r]), useEffect(() => {
|
|
@@ -18158,8 +18163,8 @@ function doAlign(e, r, a, o) {
|
|
|
18158
18163
|
var T = flip(s, /[tb]/gi, {
|
|
18159
18164
|
t: "b",
|
|
18160
18165
|
b: "t"
|
|
18161
|
-
}), E = flipOffset(l, 1), O = flipOffset(u, 1),
|
|
18162
|
-
isCompleteFailY(
|
|
18166
|
+
}), E = flipOffset(l, 1), O = flipOffset(u, 1), z = getElFuturePos(g, r, T, E, O);
|
|
18167
|
+
isCompleteFailY(z, g, m) || (p = 1, s = T, l = E, u = O);
|
|
18163
18168
|
}
|
|
18164
18169
|
p && (v = getElFuturePos(g, r, s, l, u), utils.mix(C, v));
|
|
18165
18170
|
var P = isFailX(v, g, m), M = isFailY(v, g, m);
|
|
@@ -18804,8 +18809,8 @@ var Align = function e(r, a) {
|
|
|
18804
18809
|
var o = r.children, s = r.disabled, l = r.target, u = r.align, c = r.onAlign, d = r.monitorWindowResize, f = r.monitorBufferTime, p = f === void 0 ? 0 : f, h = React__default.useRef({}), m = React__default.useRef(), g = React__default.Children.only(o), v = React__default.useRef({});
|
|
18805
18810
|
v.current.disabled = s, v.current.target = l, v.current.align = u, v.current.onAlign = c;
|
|
18806
18811
|
var C = useBuffer(function() {
|
|
18807
|
-
var O = v.current,
|
|
18808
|
-
if (!
|
|
18812
|
+
var O = v.current, z = O.disabled, P = O.target, M = O.align, L = O.onAlign;
|
|
18813
|
+
if (!z && P) {
|
|
18809
18814
|
var W = m.current, B, N = getElement(P), J = getPoint(P);
|
|
18810
18815
|
h.current.element = N, h.current.point = J, h.current.align = M;
|
|
18811
18816
|
var U = document, H = U.activeElement;
|
|
@@ -18820,8 +18825,8 @@ var Align = function e(r, a) {
|
|
|
18820
18825
|
}
|
|
18821
18826
|
});
|
|
18822
18827
|
React__default.useEffect(function() {
|
|
18823
|
-
var O = getElement(l),
|
|
18824
|
-
m.current !== T.current.element && (T.current.cancel(), T.current.element = m.current, T.current.cancel = monitorResize(m.current, y)), (h.current.element !== O || !isSamePoint(h.current.point,
|
|
18828
|
+
var O = getElement(l), z = getPoint(l);
|
|
18829
|
+
m.current !== T.current.element && (T.current.cancel(), T.current.element = m.current, T.current.cancel = monitorResize(m.current, y)), (h.current.element !== O || !isSamePoint(h.current.point, z) || !isEqual_1(h.current.align, u)) && (y(), w.current.element !== O && (w.current.cancel(), w.current.element = O, w.current.cancel = monitorResize(O, y)));
|
|
18825
18830
|
}), React__default.useEffect(function() {
|
|
18826
18831
|
s ? x() : y();
|
|
18827
18832
|
}, [s]);
|
|
@@ -18914,7 +18919,7 @@ const useVisibleStatus = function(e, r) {
|
|
|
18914
18919
|
return [u, l];
|
|
18915
18920
|
};
|
|
18916
18921
|
var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
18917
|
-
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(),
|
|
18922
|
+
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(), z = useState$1(), P = _slicedToArray(z, 2), M = P[0], L = P[1], W = useStretchStyle(d), B = _slicedToArray(W, 2), N = B[0], J = B[1];
|
|
18918
18923
|
function U() {
|
|
18919
18924
|
d && J(g());
|
|
18920
18925
|
}
|
|
@@ -18925,7 +18930,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
|
18925
18930
|
function me() {
|
|
18926
18931
|
return m || g;
|
|
18927
18932
|
}
|
|
18928
|
-
function
|
|
18933
|
+
function G() {
|
|
18929
18934
|
var pe;
|
|
18930
18935
|
(pe = E.current) === null || pe === void 0 || pe.forceAlign();
|
|
18931
18936
|
}
|
|
@@ -18936,7 +18941,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
|
18936
18941
|
}), re === "align" && (C == null || C(pe, Re));
|
|
18937
18942
|
}
|
|
18938
18943
|
useLayoutEffect$2(function() {
|
|
18939
|
-
re === "align" && (ae < 3 ?
|
|
18944
|
+
re === "align" && (ae < 3 ? G() : ie(function() {
|
|
18940
18945
|
var pe;
|
|
18941
18946
|
(pe = ce.current) === null || pe === void 0 || pe.call(ce);
|
|
18942
18947
|
}));
|
|
@@ -18957,7 +18962,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, r) {
|
|
|
18957
18962
|
!he.motionName && re === "motion" && ie();
|
|
18958
18963
|
}, [he.motionName, re]), React$n.useImperativeHandle(r, function() {
|
|
18959
18964
|
return {
|
|
18960
|
-
forceAlign:
|
|
18965
|
+
forceAlign: G,
|
|
18961
18966
|
getElement: function() {
|
|
18962
18967
|
return O.current;
|
|
18963
18968
|
}
|
|
@@ -19143,7 +19148,7 @@ function generateTrigger(e) {
|
|
|
19143
19148
|
var f = [], p = u.props, h = p.popupPlacement, m = p.builtinPlacements, g = p.prefixCls, v = p.alignPoint, C = p.getPopupClassNameFromAlign;
|
|
19144
19149
|
return h && m && f.push(getAlignPopupClassName(m, g, d, v)), C && f.push(C(d)), f.join(" ");
|
|
19145
19150
|
}), _defineProperty$1(_assertThisInitialized(u), "getComponent", function() {
|
|
19146
|
-
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,
|
|
19151
|
+
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, z = d.stretch, P = d.alignPoint, M = d.mobile, L = d.forceRender, W = d.onPopupClick, B = u.state, N = B.popupVisible, J = B.point, U = u.getPopupAlign(), H = {};
|
|
19147
19152
|
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, {
|
|
19148
19153
|
prefixCls: f,
|
|
19149
19154
|
destroyPopupOnHide: p,
|
|
@@ -19155,7 +19160,7 @@ function generateTrigger(e) {
|
|
|
19155
19160
|
animation: v,
|
|
19156
19161
|
getClassNameFromAlign: u.getPopupClassNameFromAlign,
|
|
19157
19162
|
...H,
|
|
19158
|
-
stretch:
|
|
19163
|
+
stretch: z,
|
|
19159
19164
|
getRootDomNode: u.getRootDomNode,
|
|
19160
19165
|
style: S,
|
|
19161
19166
|
mask: y,
|
|
@@ -19497,7 +19502,7 @@ function Popup(e) {
|
|
|
19497
19502
|
});
|
|
19498
19503
|
}
|
|
19499
19504
|
var Tooltip = function e(r, a) {
|
|
19500
|
-
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,
|
|
19505
|
+
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, z = r.destroyTooltipOnHide, P = z === void 0 ? !1 : z, M = r.defaultVisible, L = r.getTooltipContainer, W = r.overlayInnerStyle, B = r.arrowContent, N = r.overlay, J = r.id, U = 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);
|
|
19501
19506
|
useImperativeHandle(a, function() {
|
|
19502
19507
|
return K.current;
|
|
19503
19508
|
});
|
|
@@ -19771,24 +19776,24 @@ placements$1.default = _default$1;
|
|
|
19771
19776
|
Object.defineProperty(e, "__esModule", {
|
|
19772
19777
|
value: !0
|
|
19773
19778
|
}), e.default = void 0;
|
|
19774
|
-
var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(_extends$1.exports), u = a(classnames.exports), c = a(require$$6), d = a(useMergedState$1), f = r(React__default), p = requireConfigProvider(), h = colors, m = motion, g = a(placements$2), v = reactNode, C = a(warning$4), S = function(O,
|
|
19779
|
+
var o = a(defineProperty.exports), s = a(slicedToArray.exports), l = a(_extends$1.exports), u = a(classnames.exports), c = a(require$$6), d = a(useMergedState$1), f = r(React__default), p = requireConfigProvider(), h = colors, m = motion, g = a(placements$2), v = reactNode, C = a(warning$4), S = function(O, z) {
|
|
19775
19780
|
var P = {};
|
|
19776
19781
|
for (var M in O)
|
|
19777
|
-
Object.prototype.hasOwnProperty.call(O, M) &&
|
|
19782
|
+
Object.prototype.hasOwnProperty.call(O, M) && z.indexOf(M) < 0 && (P[M] = O[M]);
|
|
19778
19783
|
if (O != null && typeof Object.getOwnPropertySymbols == "function")
|
|
19779
19784
|
for (var L = 0, M = Object.getOwnPropertySymbols(O); L < M.length; L++)
|
|
19780
|
-
|
|
19785
|
+
z.indexOf(M[L]) < 0 && Object.prototype.propertyIsEnumerable.call(O, M[L]) && (P[M[L]] = O[M[L]]);
|
|
19781
19786
|
return P;
|
|
19782
|
-
}, y = function(
|
|
19783
|
-
var M = {}, L = (0, l.default)({},
|
|
19787
|
+
}, y = function(z, P) {
|
|
19788
|
+
var M = {}, L = (0, l.default)({}, z);
|
|
19784
19789
|
return P.forEach(function(W) {
|
|
19785
|
-
|
|
19790
|
+
z && W in z && (M[W] = z[W], delete L[W]);
|
|
19786
19791
|
}), {
|
|
19787
19792
|
picked: M,
|
|
19788
19793
|
omitted: L
|
|
19789
19794
|
};
|
|
19790
19795
|
}, x = new RegExp("^(".concat(h.PresetColorTypes.join("|"), ")(-inverse)?$"));
|
|
19791
|
-
function w(O,
|
|
19796
|
+
function w(O, z) {
|
|
19792
19797
|
var P = O.type;
|
|
19793
19798
|
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) {
|
|
19794
19799
|
var M = y(O.props.style, ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"]), L = M.picked, W = M.omitted, B = (0, l.default)((0, l.default)({
|
|
@@ -19804,12 +19809,12 @@ placements$1.default = _default$1;
|
|
|
19804
19809
|
});
|
|
19805
19810
|
return /* @__PURE__ */ f.createElement("span", {
|
|
19806
19811
|
style: B,
|
|
19807
|
-
className: (0, u.default)(O.props.className, "".concat(
|
|
19812
|
+
className: (0, u.default)(O.props.className, "".concat(z, "-disabled-compatible-wrapper"))
|
|
19808
19813
|
}, J);
|
|
19809
19814
|
}
|
|
19810
19815
|
return O;
|
|
19811
19816
|
}
|
|
19812
|
-
var T = /* @__PURE__ */ f.forwardRef(function(O,
|
|
19817
|
+
var T = /* @__PURE__ */ f.forwardRef(function(O, z) {
|
|
19813
19818
|
var P, M = f.useContext(p.ConfigContext), L = M.getPopupContainer, W = M.getPrefixCls, B = M.direction;
|
|
19814
19819
|
process.env.NODE_ENV !== "production" && [["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"]].forEach(function(qt) {
|
|
19815
19820
|
var kt = (0, s.default)(qt, 2), et = kt[0], Yt = kt[1];
|
|
@@ -19845,7 +19850,7 @@ placements$1.default = _default$1;
|
|
|
19845
19850
|
}, Q = function() {
|
|
19846
19851
|
var kt = O.title, et = O.overlay;
|
|
19847
19852
|
return kt === 0 ? kt : et || kt || "";
|
|
19848
|
-
}, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay,
|
|
19853
|
+
}, ae = O.getPopupContainer, oe = O.placement, ce = oe === void 0 ? "top" : oe, me = O.mouseEnterDelay, G = 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 = W("tooltip", Te), Fe = W(), Ze = U;
|
|
19849
19854
|
!("open" in O) && !("visible" in O) && K() && (Ze = !1);
|
|
19850
19855
|
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"), B === "rtl"), (0, o.default)(P, "".concat(Pe, "-").concat(Re), Re && x.test(Re)), P)), Ht = Oe, _t = {};
|
|
19851
19856
|
return Re && !x.test(Re) && (Ht = (0, l.default)((0, l.default)({}, Oe), {
|
|
@@ -19854,12 +19859,12 @@ placements$1.default = _default$1;
|
|
|
19854
19859
|
"--antd-arrow-background-color": Re
|
|
19855
19860
|
}), /* @__PURE__ */ f.createElement(c.default, (0, l.default)({}, ge, {
|
|
19856
19861
|
placement: ce,
|
|
19857
|
-
mouseEnterDelay:
|
|
19862
|
+
mouseEnterDelay: G,
|
|
19858
19863
|
mouseLeaveDelay: he,
|
|
19859
19864
|
prefixCls: Pe,
|
|
19860
19865
|
overlayClassName: qe,
|
|
19861
19866
|
getTooltipContainer: ae || I || L,
|
|
19862
|
-
ref:
|
|
19867
|
+
ref: z,
|
|
19863
19868
|
builtinPlacements: ie(),
|
|
19864
19869
|
overlay: Q(),
|
|
19865
19870
|
visible: Ze,
|
|
@@ -19921,10 +19926,10 @@ EnterOutlined$2.default = _default;
|
|
|
19921
19926
|
value: !0
|
|
19922
19927
|
}), e.default = void 0;
|
|
19923
19928
|
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) {
|
|
19924
|
-
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,
|
|
19929
|
+
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, z = v.value, P = v.onSave, M = v.onCancel, L = v.onEnd, W = v.component, B = v.enterIcon, N = B === void 0 ? /* @__PURE__ */ d.createElement(l.default, null) : B, J = d.useRef(null), U = d.useRef(!1), H = d.useRef(), K = d.useState(z), re = (0, s.default)(K, 2), ie = re[0], ne = re[1];
|
|
19925
19930
|
d.useEffect(function() {
|
|
19926
|
-
ne(
|
|
19927
|
-
}, [
|
|
19931
|
+
ne(z);
|
|
19932
|
+
}, [z]), d.useEffect(function() {
|
|
19928
19933
|
if (J.current && J.current.resizableTextArea) {
|
|
19929
19934
|
var Te = J.current.resizableTextArea.textArea;
|
|
19930
19935
|
Te.focus();
|
|
@@ -19944,7 +19949,7 @@ EnterOutlined$2.default = _default;
|
|
|
19944
19949
|
U.current || (H.current = I);
|
|
19945
19950
|
}, me = function() {
|
|
19946
19951
|
P(ie.trim());
|
|
19947
|
-
},
|
|
19952
|
+
}, G = function(D) {
|
|
19948
19953
|
var I = D.keyCode, pe = D.ctrlKey, Re = D.altKey, Oe = D.metaKey, ve = D.shiftKey;
|
|
19949
19954
|
H.current === I && !U.current && !pe && !Re && !Oe && !ve && (I === c.default.ENTER ? (me(), L == null || L()) : I === c.default.ESC && M());
|
|
19950
19955
|
}, te = function() {
|
|
@@ -19959,7 +19964,7 @@ EnterOutlined$2.default = _default;
|
|
|
19959
19964
|
value: ie,
|
|
19960
19965
|
onChange: Q,
|
|
19961
19966
|
onKeyDown: ce,
|
|
19962
|
-
onKeyUp:
|
|
19967
|
+
onKeyUp: G,
|
|
19963
19968
|
onCompositionStart: ae,
|
|
19964
19969
|
onCompositionEnd: oe,
|
|
19965
19970
|
onBlur: te,
|
|
@@ -20015,7 +20020,7 @@ var Typography = {};
|
|
|
20015
20020
|
v.indexOf(S[y]) < 0 && Object.prototype.propertyIsEnumerable.call(g, S[y]) && (C[S[y]] = g[S[y]]);
|
|
20016
20021
|
return C;
|
|
20017
20022
|
}, h = /* @__PURE__ */ c.forwardRef(function(g, v) {
|
|
20018
|
-
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"]),
|
|
20023
|
+
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"]), z = c.useContext(d.ConfigContext), P = z.getPrefixCls, M = z.direction, L = E != null ? E : M, W = v;
|
|
20019
20024
|
w && (process.env.NODE_ENV !== "production" && (0, f.default)(!1, "Typography", "`setContentRef` is deprecated. Please use `ref` instead."), W = (0, u.composeRef)(v, w));
|
|
20020
20025
|
var B = P("typography", C), N = (0, l.default)(B, (0, s.default)({}, "".concat(B, "-rtl"), L === "rtl"), x);
|
|
20021
20026
|
return /* @__PURE__ */ c.createElement(y, (0, o.default)({
|
|
@@ -20045,10 +20050,10 @@ var Ellipsis = {};
|
|
|
20045
20050
|
}), T;
|
|
20046
20051
|
}
|
|
20047
20052
|
function h(w, T) {
|
|
20048
|
-
for (var E = 0, O = [],
|
|
20053
|
+
for (var E = 0, O = [], z = 0; z < w.length; z += 1) {
|
|
20049
20054
|
if (E === T)
|
|
20050
20055
|
return O;
|
|
20051
|
-
var P = w[
|
|
20056
|
+
var P = w[z], M = f(P), L = M ? String(P).length : 1, W = E + L;
|
|
20052
20057
|
if (W > T) {
|
|
20053
20058
|
var B = T - E;
|
|
20054
20059
|
return O.push(String(P).slice(0, B)), O;
|
|
@@ -20058,18 +20063,18 @@ var Ellipsis = {};
|
|
|
20058
20063
|
return w;
|
|
20059
20064
|
}
|
|
20060
20065
|
var m = 0, g = 1, v = 2, C = 3, S = 4, y = function(T) {
|
|
20061
|
-
var E = T.enabledMeasure, O = T.children,
|
|
20062
|
-
return (0, u.default)(
|
|
20063
|
-
}, [
|
|
20066
|
+
var E = T.enabledMeasure, O = T.children, z = T.text, P = T.width, M = T.fontSize, L = T.rows, W = T.onEllipsis, B = d.useState([0, 0, 0]), N = (0, s.default)(B, 2), J = (0, s.default)(N[0], 3), U = 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], G = ce[1], te = d.useRef(null), he = d.useRef(null), ge = d.useMemo(function() {
|
|
20067
|
+
return (0, u.default)(z);
|
|
20068
|
+
}, [z]), Te = d.useMemo(function() {
|
|
20064
20069
|
return p(ge);
|
|
20065
20070
|
}, [ge]), D = d.useMemo(function() {
|
|
20066
20071
|
return !E || Q !== C ? O(ge, !1) : O(h(ge, H), H < Te);
|
|
20067
20072
|
}, [E, Q, O, ge, H, Te]);
|
|
20068
20073
|
(0, c.default)(function() {
|
|
20069
20074
|
E && P && M && Te && (ae(g), re([0, Math.ceil(Te / 2), Te]));
|
|
20070
|
-
}, [E, P, M,
|
|
20075
|
+
}, [E, P, M, z, Te, L]), (0, c.default)(function() {
|
|
20071
20076
|
var Oe;
|
|
20072
|
-
Q === g &&
|
|
20077
|
+
Q === g && G(((Oe = te.current) === null || Oe === void 0 ? void 0 : Oe.offsetHeight) || 0);
|
|
20073
20078
|
}, [Q]), (0, c.default)(function() {
|
|
20074
20079
|
var Oe, ve;
|
|
20075
20080
|
if (me) {
|
|
@@ -20140,7 +20145,7 @@ var EllipsisTooltip = {};
|
|
|
20140
20145
|
Object.defineProperty(e, "__esModule", {
|
|
20141
20146
|
value: !0
|
|
20142
20147
|
}), e.default = void 0;
|
|
20143
|
-
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,
|
|
20148
|
+
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, z = a(tooltip), P = a(Editable), M = a(useMergedConfig), L = a(useUpdatedEffect), W = a(Typography), B = a(Ellipsis), N = a(EllipsisTooltip), J = function(Q, ae) {
|
|
20144
20149
|
var oe = {};
|
|
20145
20150
|
for (var ce in Q)
|
|
20146
20151
|
Object.prototype.hasOwnProperty.call(Q, ce) && ae.indexOf(ce) < 0 && (oe[ce] = Q[ce]);
|
|
@@ -20150,11 +20155,11 @@ var EllipsisTooltip = {};
|
|
|
20150
20155
|
return oe;
|
|
20151
20156
|
};
|
|
20152
20157
|
function U(Q, ae) {
|
|
20153
|
-
var oe = Q.mark, ce = Q.code, me = Q.underline,
|
|
20158
|
+
var oe = Q.mark, ce = Q.code, me = Q.underline, G = Q.delete, te = Q.strong, he = Q.keyboard, ge = Q.italic, Te = ae;
|
|
20154
20159
|
function D(I, pe) {
|
|
20155
20160
|
!I || (Te = /* @__PURE__ */ x.createElement(pe, {}, Te));
|
|
20156
20161
|
}
|
|
20157
|
-
return D(te, "strong"), D(me, "u"), D(
|
|
20162
|
+
return D(te, "strong"), D(me, "u"), D(G, "del"), D(ce, "code"), D(oe, "mark"), D(he, "kbd"), D(ge, "i"), Te;
|
|
20158
20163
|
}
|
|
20159
20164
|
function H(Q, ae, oe) {
|
|
20160
20165
|
return Q === !0 || Q === void 0 ? ae : Q || oe && ae;
|
|
@@ -20163,7 +20168,7 @@ var EllipsisTooltip = {};
|
|
|
20163
20168
|
return Q === !1 ? [!1, !1] : Array.isArray(Q) ? Q : [Q];
|
|
20164
20169
|
}
|
|
20165
20170
|
var re = "...", ie = /* @__PURE__ */ x.forwardRef(function(Q, ae) {
|
|
20166
|
-
var oe, ce, me,
|
|
20171
|
+
var oe, ce, me, G = Q.prefixCls, te = Q.className, he = Q.style, ge = Q.type, Te = Q.disabled, D = Q.children, I = Q.ellipsis, pe = Q.editable, Re = Q.copyable, Oe = Q.component, ve = Q.title, Pe = J(Q, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), Fe = x.useContext(w.ConfigContext), Ze = Fe.getPrefixCls, Xt = Fe.direction, Zt = (0, T.useLocaleReceiver)("Text")[0], er = x.useRef(null), qe = x.useRef(null), Ht = Ze("typography", G), _t = (0, S.default)(Pe, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), qt = (0, M.default)(pe), kt = (0, u.default)(qt, 2), et = kt[0], Yt = kt[1], tr = (0, C.default)(!1, {
|
|
20167
20172
|
value: Yt.editing
|
|
20168
20173
|
}), it = (0, u.default)(tr, 2), xt = it[0], Qt = it[1], Jt = Yt.triggerType, rr = Jt === void 0 ? ["icon"] : Jt, or = function(jt) {
|
|
20169
20174
|
var ar;
|
|
@@ -20285,7 +20290,7 @@ var EllipsisTooltip = {};
|
|
|
20285
20290
|
}, ca = function() {
|
|
20286
20291
|
if (!!et) {
|
|
20287
20292
|
var jt = Yt.icon, ar = Yt.tooltip, Gr = (0, g.default)(ar)[0] || Zt.edit, tn = typeof Gr == "string" ? Gr : "";
|
|
20288
|
-
return rr.includes("icon") ? /* @__PURE__ */ x.createElement(
|
|
20293
|
+
return rr.includes("icon") ? /* @__PURE__ */ x.createElement(z.default, {
|
|
20289
20294
|
key: "edit",
|
|
20290
20295
|
title: ar === !1 ? "" : Gr
|
|
20291
20296
|
}, /* @__PURE__ */ x.createElement(E.default, {
|
|
@@ -20300,7 +20305,7 @@ var EllipsisTooltip = {};
|
|
|
20300
20305
|
}, da = function() {
|
|
20301
20306
|
if (!!Yr) {
|
|
20302
20307
|
var jt = en.tooltips, ar = en.icon, Gr = K(jt), tn = K(ar), vn = _r ? H(Gr[1], Zt.copied) : H(Gr[0], Zt.copy), ha = _r ? Zt.copied : Zt.copy, ma = typeof vn == "string" ? vn : ha;
|
|
20303
|
-
return /* @__PURE__ */ x.createElement(
|
|
20308
|
+
return /* @__PURE__ */ x.createElement(z.default, {
|
|
20304
20309
|
key: "copy",
|
|
20305
20310
|
title: vn
|
|
20306
20311
|
}, /* @__PURE__ */ x.createElement(E.default, {
|
|
@@ -20328,7 +20333,7 @@ var EllipsisTooltip = {};
|
|
|
20328
20333
|
isEllipsis: zn
|
|
20329
20334
|
}, /* @__PURE__ */ x.createElement(W.default, (0, s.default)({
|
|
20330
20335
|
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),
|
|
20331
|
-
prefixCls:
|
|
20336
|
+
prefixCls: G,
|
|
20332
20337
|
style: (0, s.default)((0, s.default)({}, he), {
|
|
20333
20338
|
WebkitLineClamp: In ? pn : void 0
|
|
20334
20339
|
}),
|
|
@@ -20396,7 +20401,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20396
20401
|
field: f,
|
|
20397
20402
|
operator: p,
|
|
20398
20403
|
manualIds: h
|
|
20399
|
-
} = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O,
|
|
20404
|
+
} = e, [m, g] = useState$1(!1), [v, C] = useState$1(), [S, y] = useState$1(), [x, w] = useState$1(), [T, E] = useState$1(0), [O, z] = useState$1(0), [P, M] = useState$1(), [L, W] = useState$1(), [B, N] = useState$1();
|
|
20400
20405
|
useEffect(() => {
|
|
20401
20406
|
H();
|
|
20402
20407
|
}, [r, s]);
|
|
@@ -20521,7 +20526,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
20521
20526
|
bounds: !0,
|
|
20522
20527
|
onResize: (K) => {
|
|
20523
20528
|
var re, ie;
|
|
20524
|
-
E((re = K.bounds) == null ? void 0 : re.height),
|
|
20529
|
+
E((re = K.bounds) == null ? void 0 : re.height), z((ie = K.bounds) == null ? void 0 : ie.width);
|
|
20525
20530
|
},
|
|
20526
20531
|
children: ({
|
|
20527
20532
|
measureRef: K
|
|
@@ -21143,11 +21148,11 @@ const One2manyInput = (e) => {
|
|
|
21143
21148
|
} = p || {}, {
|
|
21144
21149
|
lang: S,
|
|
21145
21150
|
t: y
|
|
21146
|
-
} = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [
|
|
21151
|
+
} = useContext(LocaleContext), x = useRef(), [w, T] = useState$1(!1), [E, O] = useState$1(!1), [z, P] = useState$1(), [M, L] = useState$1(!1), [W, B] = useState$1(!1), [N, J] = useState$1(), [U, H] = useState$1([]), [K, re] = useState$1(!1), ie = useRef([]), [ne, Q] = useState$1(), ae = useRef(), {
|
|
21147
21152
|
readOnly: oe,
|
|
21148
21153
|
relation: ce,
|
|
21149
21154
|
context: me,
|
|
21150
|
-
domain:
|
|
21155
|
+
domain: G
|
|
21151
21156
|
} = o, te = o.type === "many2many", {
|
|
21152
21157
|
id: he
|
|
21153
21158
|
} = o, ge = l.filter((it) => it.values && it.operation !== "pendingRemove");
|
|
@@ -21186,9 +21191,9 @@ const One2manyInput = (e) => {
|
|
|
21186
21191
|
}
|
|
21187
21192
|
};
|
|
21188
21193
|
async function pe() {
|
|
21189
|
-
|
|
21194
|
+
G && (ie.current = transformDomainForChildWidget({
|
|
21190
21195
|
domain: await ConnectionProvider.getHandler().evalDomain({
|
|
21191
|
-
domain:
|
|
21196
|
+
domain: G,
|
|
21192
21197
|
values: transformPlainMany2Ones({
|
|
21193
21198
|
fields: m(),
|
|
21194
21199
|
values: g()
|
|
@@ -21465,10 +21470,10 @@ const One2manyInput = (e) => {
|
|
|
21465
21470
|
});
|
|
21466
21471
|
}
|
|
21467
21472
|
};
|
|
21468
|
-
if (
|
|
21473
|
+
if (z)
|
|
21469
21474
|
return /* @__PURE__ */ jsx(Alert, {
|
|
21470
21475
|
className: "mt-10",
|
|
21471
|
-
message:
|
|
21476
|
+
message: z,
|
|
21472
21477
|
type: "error",
|
|
21473
21478
|
banner: !0
|
|
21474
21479
|
});
|
|
@@ -24429,7 +24434,7 @@ var isIP = { exports: {} };
|
|
|
24429
24434
|
}
|
|
24430
24435
|
if (!w.ignore_max_length && x.length > C)
|
|
24431
24436
|
return !1;
|
|
24432
|
-
var O = x.split("@"),
|
|
24437
|
+
var O = x.split("@"), z = O.pop(), P = z.toLowerCase();
|
|
24433
24438
|
if (w.host_blacklist.includes(P))
|
|
24434
24439
|
return !1;
|
|
24435
24440
|
var M = O.join("@");
|
|
@@ -24447,19 +24452,19 @@ var isIP = { exports: {} };
|
|
|
24447
24452
|
}
|
|
24448
24453
|
if (w.ignore_max_length === !1 && (!(0, s.default)(M, {
|
|
24449
24454
|
max: 64
|
|
24450
|
-
}) || !(0, s.default)(
|
|
24455
|
+
}) || !(0, s.default)(z, {
|
|
24451
24456
|
max: 254
|
|
24452
24457
|
})))
|
|
24453
24458
|
return !1;
|
|
24454
|
-
if (!(0, l.default)(
|
|
24459
|
+
if (!(0, l.default)(z, {
|
|
24455
24460
|
require_tld: w.require_tld
|
|
24456
24461
|
})) {
|
|
24457
24462
|
if (!w.allow_ip_domain)
|
|
24458
24463
|
return !1;
|
|
24459
|
-
if (!(0, u.default)(
|
|
24460
|
-
if (!
|
|
24464
|
+
if (!(0, u.default)(z)) {
|
|
24465
|
+
if (!z.startsWith("[") || !z.endsWith("]"))
|
|
24461
24466
|
return !1;
|
|
24462
|
-
var N =
|
|
24467
|
+
var N = z.substr(1, z.length - 2);
|
|
24463
24468
|
if (N.length === 0 || !(0, u.default)(N))
|
|
24464
24469
|
return !1;
|
|
24465
24470
|
}
|
|
@@ -24509,18 +24514,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24509
24514
|
}
|
|
24510
24515
|
function h(x, w) {
|
|
24511
24516
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(x)))) {
|
|
24512
|
-
var T = [], E = !0, O = !1,
|
|
24517
|
+
var T = [], E = !0, O = !1, z = void 0;
|
|
24513
24518
|
try {
|
|
24514
24519
|
for (var P = x[Symbol.iterator](), M; !(E = (M = P.next()).done) && (T.push(M.value), !(w && T.length === w)); E = !0)
|
|
24515
24520
|
;
|
|
24516
24521
|
} catch (L) {
|
|
24517
|
-
O = !0,
|
|
24522
|
+
O = !0, z = L;
|
|
24518
24523
|
} finally {
|
|
24519
24524
|
try {
|
|
24520
24525
|
!E && P.return != null && P.return();
|
|
24521
24526
|
} finally {
|
|
24522
24527
|
if (O)
|
|
24523
|
-
throw
|
|
24528
|
+
throw z;
|
|
24524
24529
|
}
|
|
24525
24530
|
}
|
|
24526
24531
|
return T;
|
|
@@ -24558,7 +24563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24558
24563
|
function y(x, w) {
|
|
24559
24564
|
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("&")))
|
|
24560
24565
|
return !1;
|
|
24561
|
-
var T, E, O,
|
|
24566
|
+
var T, E, O, z, P, M, L, W;
|
|
24562
24567
|
if (L = x.split("#"), x = L.shift(), L = x.split("?"), x = L.shift(), L = x.split("://"), L.length > 1) {
|
|
24563
24568
|
if (T = L.shift().toLowerCase(), w.require_valid_protocol && w.protocols.indexOf(T) === -1)
|
|
24564
24569
|
return !1;
|
|
@@ -24582,9 +24587,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24582
24587
|
if (J === "" && U === "")
|
|
24583
24588
|
return !1;
|
|
24584
24589
|
}
|
|
24585
|
-
|
|
24586
|
-
var H =
|
|
24587
|
-
if (H ? (O = "", W = H[1], M = H[2] || null) : (L =
|
|
24590
|
+
z = L.join("@"), M = null, W = null;
|
|
24591
|
+
var H = z.match(v);
|
|
24592
|
+
if (H ? (O = "", W = H[1], M = H[2] || null) : (L = z.split(":"), O = L.shift(), L.length && (M = L.join(":"))), M !== null && M.length > 0) {
|
|
24588
24593
|
if (P = parseInt(M, 10), !/^[0-9]+$/.test(M) || P <= 0 || P > 65535)
|
|
24589
24594
|
return !1;
|
|
24590
24595
|
} else if (w.require_port)
|
|
@@ -25306,7 +25311,7 @@ const Kt = (e) => {
|
|
|
25306
25311
|
const T = useCallback(() => c === "left" ? ee(o) : ee(o).filter((W) => a.includes(W.key)), [o, c, a]), E = [...a, ...d], O = useCallback(({ checked: W }) => {
|
|
25307
25312
|
const B = W.filter((N) => c !== "left" || !a.includes(N));
|
|
25308
25313
|
f(B), B.length === T().length ? (S(!0), v(!1)) : B.length > 0 ? (v(!0), S(!1)) : (v(!1), S(!1));
|
|
25309
|
-
}, [T, a]),
|
|
25314
|
+
}, [T, a]), z = useCallback((W) => {
|
|
25310
25315
|
const { value: B } = W.target;
|
|
25311
25316
|
m(B.trim() === "" ? void 0 : B.trim());
|
|
25312
25317
|
}, []), P = useCallback((W) => {
|
|
@@ -25315,7 +25320,7 @@ const Kt = (e) => {
|
|
|
25315
25320
|
const { dragNode: B, dropPosition: N } = W, { key: J } = B, U = [...a], H = U.indexOf(J);
|
|
25316
25321
|
H > -1 && U.splice(H, 1), N === -1 ? U.unshift(J) : U.splice(N, 0, J), p(U);
|
|
25317
25322
|
}, [a]), L = c === "right" ? { className: "draggable-tree", draggable: !0, onDrop: M } : {};
|
|
25318
|
-
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:
|
|
25323
|
+
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: z, 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: (W) => jsx(En, { node: W }) }) })] })] });
|
|
25319
25324
|
}, nt = k(Col)`
|
|
25320
25325
|
padding: 0.5rem;
|
|
25321
25326
|
border-color: #d9d9d9;
|
|
@@ -26323,7 +26328,7 @@ function FormActionBar({
|
|
|
26323
26328
|
formRef: T,
|
|
26324
26329
|
setFormHasChanges: E,
|
|
26325
26330
|
previousView: O,
|
|
26326
|
-
setPreviousView:
|
|
26331
|
+
setPreviousView: z,
|
|
26327
26332
|
goToResourceId: P
|
|
26328
26333
|
} = useContext(ActionViewContext), {
|
|
26329
26334
|
t: M,
|
|
@@ -26337,29 +26342,29 @@ function FormActionBar({
|
|
|
26337
26342
|
useEffect(() => {
|
|
26338
26343
|
!u && H.current && message$1.success(M("savedRegisters")), H.current = u || !1;
|
|
26339
26344
|
}, [u]);
|
|
26340
|
-
function K(
|
|
26345
|
+
function K(G) {
|
|
26341
26346
|
if (l) {
|
|
26342
26347
|
showDialog({
|
|
26343
26348
|
lang: L,
|
|
26344
26349
|
onOk: () => {
|
|
26345
|
-
|
|
26350
|
+
G();
|
|
26346
26351
|
}
|
|
26347
26352
|
});
|
|
26348
26353
|
return;
|
|
26349
26354
|
}
|
|
26350
|
-
|
|
26355
|
+
G();
|
|
26351
26356
|
}
|
|
26352
|
-
function re(
|
|
26357
|
+
function re(G) {
|
|
26353
26358
|
if (l) {
|
|
26354
26359
|
showDialog$6({
|
|
26355
26360
|
lang: L,
|
|
26356
26361
|
onOk: () => {
|
|
26357
|
-
|
|
26362
|
+
G();
|
|
26358
26363
|
}
|
|
26359
26364
|
});
|
|
26360
26365
|
return;
|
|
26361
26366
|
}
|
|
26362
|
-
|
|
26367
|
+
G();
|
|
26363
26368
|
}
|
|
26364
26369
|
function ie() {
|
|
26365
26370
|
d && d.length > p + 1 ? (f == null || f(p + 1), h == null || h(d[p + 1].id)) : d && p + 1 === d.length && (f == null || f(0), h == null || h(d[0].id));
|
|
@@ -26382,12 +26387,12 @@ function FormActionBar({
|
|
|
26382
26387
|
model: m,
|
|
26383
26388
|
ids: [c]
|
|
26384
26389
|
});
|
|
26385
|
-
const
|
|
26386
|
-
y == null || y(
|
|
26390
|
+
const G = d == null ? void 0 : d.filter((he) => he.id !== c);
|
|
26391
|
+
y == null || y(G);
|
|
26387
26392
|
let te = 0;
|
|
26388
|
-
p > 0 && p <= d.length - 1 && (te = p - 1),
|
|
26389
|
-
} catch (
|
|
26390
|
-
showDialog$3(JSON.stringify(
|
|
26393
|
+
p > 0 && p <= d.length - 1 && (te = p - 1), G != null && G[te] ? (h == null || h(G == null ? void 0 : G[te].id), f == null || f(te)) : (h == null || h(void 0), f == null || f(void 0));
|
|
26394
|
+
} catch (G) {
|
|
26395
|
+
showDialog$3(JSON.stringify(G));
|
|
26391
26396
|
} finally {
|
|
26392
26397
|
g == null || g(!1);
|
|
26393
26398
|
}
|
|
@@ -26395,22 +26400,22 @@ function FormActionBar({
|
|
|
26395
26400
|
async function oe() {
|
|
26396
26401
|
try {
|
|
26397
26402
|
S == null || S(!0);
|
|
26398
|
-
const
|
|
26403
|
+
const G = await ConnectionProvider.getHandler().duplicate({
|
|
26399
26404
|
id: c,
|
|
26400
26405
|
model: m,
|
|
26401
26406
|
context: T.current.getContext()
|
|
26402
26407
|
});
|
|
26403
|
-
|
|
26404
|
-
} catch (
|
|
26405
|
-
showDialog$3(JSON.stringify(
|
|
26408
|
+
G && await (P == null ? void 0 : P(G));
|
|
26409
|
+
} catch (G) {
|
|
26410
|
+
showDialog$3(JSON.stringify(G));
|
|
26406
26411
|
} finally {
|
|
26407
26412
|
S == null || S(!1);
|
|
26408
26413
|
}
|
|
26409
26414
|
}
|
|
26410
26415
|
const ce = u || v || x || C;
|
|
26411
|
-
function me(
|
|
26416
|
+
function me(G) {
|
|
26412
26417
|
B == null || B({
|
|
26413
|
-
actionData:
|
|
26418
|
+
actionData: G,
|
|
26414
26419
|
values: T.current.getValues(),
|
|
26415
26420
|
fields: T.current.getFields(),
|
|
26416
26421
|
context: T.current.getContext(),
|
|
@@ -26465,8 +26470,8 @@ function FormActionBar({
|
|
|
26465
26470
|
currentView: a,
|
|
26466
26471
|
previousView: O,
|
|
26467
26472
|
availableViews: r,
|
|
26468
|
-
onChangeView: (
|
|
26469
|
-
|
|
26473
|
+
onChangeView: (G) => {
|
|
26474
|
+
z == null || z(a), E == null || E(!1), o == null || o(G);
|
|
26470
26475
|
},
|
|
26471
26476
|
disabled: ce,
|
|
26472
26477
|
formHasChanges: l
|
|
@@ -26493,19 +26498,19 @@ function FormActionBar({
|
|
|
26493
26498
|
disabled: ce,
|
|
26494
26499
|
tooltip: M("actions"),
|
|
26495
26500
|
items: e == null ? void 0 : e.action,
|
|
26496
|
-
onItemClick: (
|
|
26497
|
-
!
|
|
26501
|
+
onItemClick: async (G) => {
|
|
26502
|
+
!G || !await (s == null ? void 0 : s()) || me(G);
|
|
26498
26503
|
}
|
|
26499
26504
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
26500
26505
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
26501
26506
|
disabled: ce,
|
|
26502
26507
|
tooltip: M("reports"),
|
|
26503
26508
|
items: e == null ? void 0 : e.print,
|
|
26504
|
-
onItemClick: (
|
|
26505
|
-
!
|
|
26506
|
-
...
|
|
26509
|
+
onItemClick: async (G) => {
|
|
26510
|
+
!G || !await (s == null ? void 0 : s()) || me({
|
|
26511
|
+
...G,
|
|
26507
26512
|
datas: {
|
|
26508
|
-
...
|
|
26513
|
+
...G.datas || {},
|
|
26509
26514
|
ids: [c]
|
|
26510
26515
|
}
|
|
26511
26516
|
});
|
|
@@ -26515,44 +26520,48 @@ function FormActionBar({
|
|
|
26515
26520
|
disabled: ce,
|
|
26516
26521
|
tooltip: M("related"),
|
|
26517
26522
|
items: e == null ? void 0 : e.relate,
|
|
26518
|
-
onItemClick: async (
|
|
26519
|
-
!
|
|
26520
|
-
relateData:
|
|
26523
|
+
onItemClick: async (G) => {
|
|
26524
|
+
!G || !await (s == null ? void 0 : s()) || J({
|
|
26525
|
+
relateData: G,
|
|
26521
26526
|
values: T.current.getValues(),
|
|
26522
26527
|
fields: T.current.getFields(),
|
|
26523
|
-
action_id:
|
|
26524
|
-
action_type:
|
|
26528
|
+
action_id: G.id,
|
|
26529
|
+
action_type: G.type
|
|
26525
26530
|
});
|
|
26526
26531
|
}
|
|
26527
26532
|
}), /* @__PURE__ */ jsx(AttachmentsButton, {
|
|
26528
26533
|
disabled: ce,
|
|
26529
26534
|
attachments: w,
|
|
26530
|
-
onAddNewAttachment: () => {
|
|
26531
|
-
|
|
26535
|
+
onAddNewAttachment: async () => {
|
|
26536
|
+
if (!await (s == null ? void 0 : s()))
|
|
26537
|
+
return;
|
|
26538
|
+
const te = c, he = m;
|
|
26532
26539
|
U({
|
|
26533
26540
|
model: "ir.attachment",
|
|
26534
26541
|
values: {
|
|
26535
|
-
selection_associated_object: `${
|
|
26542
|
+
selection_associated_object: `${he},${te}`
|
|
26536
26543
|
},
|
|
26537
26544
|
forced_values: {
|
|
26538
|
-
res_model:
|
|
26539
|
-
res_id:
|
|
26545
|
+
res_model: he,
|
|
26546
|
+
res_id: te
|
|
26540
26547
|
},
|
|
26541
26548
|
initialViewType: "form"
|
|
26542
26549
|
});
|
|
26543
26550
|
},
|
|
26544
|
-
onListAllAttachments: () => {
|
|
26545
|
-
|
|
26551
|
+
onListAllAttachments: async () => {
|
|
26552
|
+
if (!await (s == null ? void 0 : s()))
|
|
26553
|
+
return;
|
|
26554
|
+
const te = c;
|
|
26546
26555
|
U({
|
|
26547
26556
|
model: "ir.attachment",
|
|
26548
|
-
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${
|
|
26557
|
+
domain: [["res_model", "=", `${m}`], ["res_id", "=", `${te}`]],
|
|
26549
26558
|
initialViewType: "tree"
|
|
26550
26559
|
});
|
|
26551
26560
|
},
|
|
26552
|
-
onViewAttachmentDetails: (
|
|
26553
|
-
U({
|
|
26561
|
+
onViewAttachmentDetails: async (G) => {
|
|
26562
|
+
!await (s == null ? void 0 : s()) || U({
|
|
26554
26563
|
model: "ir.attachment",
|
|
26555
|
-
res_id:
|
|
26564
|
+
res_id: G.id,
|
|
26556
26565
|
initialViewType: "form"
|
|
26557
26566
|
});
|
|
26558
26567
|
}
|
|
@@ -26911,7 +26920,7 @@ const GraphActionView = (e) => {
|
|
|
26911
26920
|
setTotalItems: T = void 0,
|
|
26912
26921
|
setSearchTreeNameSearch: E = void 0,
|
|
26913
26922
|
setTreeIsLoading: O = void 0,
|
|
26914
|
-
limit:
|
|
26923
|
+
limit: z,
|
|
26915
26924
|
setLimit: P,
|
|
26916
26925
|
searchParams: M,
|
|
26917
26926
|
searchValues: L,
|
|
@@ -26950,7 +26959,7 @@ const GraphActionView = (e) => {
|
|
|
26950
26959
|
domain: l,
|
|
26951
26960
|
currentId: m,
|
|
26952
26961
|
setActionViewTotalItems: T,
|
|
26953
|
-
limit:
|
|
26962
|
+
limit: z,
|
|
26954
26963
|
setLimit: P
|
|
26955
26964
|
});
|
|
26956
26965
|
return !a || !r ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
@@ -26967,7 +26976,7 @@ const GraphActionView = (e) => {
|
|
|
26967
26976
|
...u.fields
|
|
26968
26977
|
},
|
|
26969
26978
|
searchFields: mergeSearchFields([u.search_fields, c.search_fields]),
|
|
26970
|
-
limit:
|
|
26979
|
+
limit: z,
|
|
26971
26980
|
onClear: U,
|
|
26972
26981
|
offset: re,
|
|
26973
26982
|
isSearching: H,
|
|
@@ -26984,7 +26993,7 @@ const GraphActionView = (e) => {
|
|
|
26984
26993
|
model: o,
|
|
26985
26994
|
context: s,
|
|
26986
26995
|
domain: mergeParams(M || [], l),
|
|
26987
|
-
limit: N ?
|
|
26996
|
+
limit: N ? z : void 0,
|
|
26988
26997
|
manualIds: N ? g == null ? void 0 : g.map((ne) => ne.id) : void 0
|
|
26989
26998
|
})]
|
|
26990
26999
|
});
|
|
@@ -27108,7 +27117,7 @@ function TreeActionBar(e) {
|
|
|
27108
27117
|
previousView: T,
|
|
27109
27118
|
results: E,
|
|
27110
27119
|
limit: O,
|
|
27111
|
-
totalItems:
|
|
27120
|
+
totalItems: z
|
|
27112
27121
|
} = useContext(ActionViewContext), {
|
|
27113
27122
|
parentContext: P = {},
|
|
27114
27123
|
treeExpandable: M,
|
|
@@ -27326,7 +27335,7 @@ function TreeActionBar(e) {
|
|
|
27326
27335
|
model: f,
|
|
27327
27336
|
domain: mergeParams(((ae = p == null ? void 0 : p.current) == null ? void 0 : ae.getDomain()) || [], g || []),
|
|
27328
27337
|
limit: O,
|
|
27329
|
-
totalRegisters:
|
|
27338
|
+
totalRegisters: z || 0,
|
|
27330
27339
|
selectedRegistersToExport: s,
|
|
27331
27340
|
visibleRegisters: (E == null ? void 0 : E.length) || 0,
|
|
27332
27341
|
context: P
|
|
@@ -27490,8 +27499,8 @@ function ActionView(e, r) {
|
|
|
27490
27499
|
action_type: v,
|
|
27491
27500
|
treeExpandable: C = !1,
|
|
27492
27501
|
limit: S
|
|
27493
|
-
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0),
|
|
27494
|
-
t:
|
|
27502
|
+
} = e, [y, x] = useState$1(), [w, T] = useState$1([]), [E, O] = useState$1(!0), z = m || void 0, [P, M] = useState$1(z), [L, W] = useState$1([]), [B, N] = useState$1(), [J, U] = 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(), {
|
|
27503
|
+
t: G
|
|
27495
27504
|
} = useContext(LocaleContext), te = useRef(), he = useRef(), ge = useContext(TabManagerContext), {
|
|
27496
27505
|
setCurrentView: Te,
|
|
27497
27506
|
setCurrentId: D,
|
|
@@ -27585,7 +27594,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27585
27594
|
canWeClose: Fe
|
|
27586
27595
|
}), useEffect(() => {
|
|
27587
27596
|
const qe = w.find((_t) => _t.type === "tree"), Ht = w.find((_t) => f.id ? _t.type === f.type && _t.view_id === f.id : _t.type === f.type);
|
|
27588
|
-
ve(Ht || qe), m ? D == null || D(
|
|
27597
|
+
ve(Ht || qe), m ? D == null || D(z) : (Oe(void 0), N(void 0)), Pe();
|
|
27589
27598
|
}, [o, l, m]), useEffect(() => {
|
|
27590
27599
|
pe === d && (D == null || D(P), Te == null || Te(y));
|
|
27591
27600
|
}, [I, pe]);
|
|
@@ -27610,7 +27619,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27610
27619
|
} catch {
|
|
27611
27620
|
}
|
|
27612
27621
|
if (!_t) {
|
|
27613
|
-
oe(!1), Q(!1), showDialog$7(
|
|
27622
|
+
oe(!1), Q(!1), showDialog$7(G("idNotFound"));
|
|
27614
27623
|
return;
|
|
27615
27624
|
}
|
|
27616
27625
|
} else
|
|
@@ -27918,10 +27927,10 @@ function DashboardTree(e) {
|
|
|
27918
27927
|
domain: l = [],
|
|
27919
27928
|
visible: u = !0,
|
|
27920
27929
|
parentContext: c = {}
|
|
27921
|
-
} = 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),
|
|
27930
|
+
} = 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), z = useRef([]), [P, M] = useState$1(0), [L, W] = useState$1([]), [B, N] = useState$1(void 0), [J, U] = useState$1(), [H, K] = useState$1(), [re, ie] = useState$1(), [ne, Q] = useState$1(!1), ae = useRef([]), oe = (D) => {
|
|
27922
27931
|
Q(!0), w(D), E((D - 1) * O.current);
|
|
27923
27932
|
}, ce = async () => {
|
|
27924
|
-
const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(
|
|
27933
|
+
const D = ae.current.length > 0 ? ae.current : l, I = mergeParams(z.current, D), {
|
|
27925
27934
|
colors: pe
|
|
27926
27935
|
} = getTree(v), {
|
|
27927
27936
|
totalItems: Re,
|
|
@@ -27960,7 +27969,7 @@ function DashboardTree(e) {
|
|
|
27960
27969
|
useEffect(() => {
|
|
27961
27970
|
!p || u && me();
|
|
27962
27971
|
}, [x, T, p, u]);
|
|
27963
|
-
const
|
|
27972
|
+
const G = async (D) => {
|
|
27964
27973
|
h(!1), f(!0), ie(void 0);
|
|
27965
27974
|
try {
|
|
27966
27975
|
D === "action" ? await te() : await he(), h(!0);
|
|
@@ -27992,7 +28001,7 @@ function DashboardTree(e) {
|
|
|
27992
28001
|
C(I);
|
|
27993
28002
|
};
|
|
27994
28003
|
useEffect(() => {
|
|
27995
|
-
r ?
|
|
28004
|
+
r ? G("action") : a && G("model");
|
|
27996
28005
|
}, [r, a]);
|
|
27997
28006
|
const ge = (D) => {
|
|
27998
28007
|
const {
|
|
@@ -28095,7 +28104,7 @@ function Dashboard(e, r) {
|
|
|
28095
28104
|
refresh: () => {
|
|
28096
28105
|
y();
|
|
28097
28106
|
},
|
|
28098
|
-
configDashboard:
|
|
28107
|
+
configDashboard: z
|
|
28099
28108
|
}));
|
|
28100
28109
|
async function y() {
|
|
28101
28110
|
f(!0), m(!0), h(void 0);
|
|
@@ -28208,7 +28217,7 @@ function Dashboard(e, r) {
|
|
|
28208
28217
|
context: o
|
|
28209
28218
|
});
|
|
28210
28219
|
}
|
|
28211
|
-
async function
|
|
28220
|
+
async function z() {
|
|
28212
28221
|
g(l);
|
|
28213
28222
|
}
|
|
28214
28223
|
return p ? /* @__PURE__ */ jsx(Alert, {
|
|
@@ -28311,7 +28320,7 @@ function Dashboard(e, r) {
|
|
|
28311
28320
|
limit: oe
|
|
28312
28321
|
});
|
|
28313
28322
|
}
|
|
28314
|
-
let
|
|
28323
|
+
let G;
|
|
28315
28324
|
const te = re.find((he) => {
|
|
28316
28325
|
const [, ge] = he;
|
|
28317
28326
|
return ge === "tree";
|
|
@@ -28323,7 +28332,7 @@ function Dashboard(e, r) {
|
|
|
28323
28332
|
title: I,
|
|
28324
28333
|
model: pe
|
|
28325
28334
|
} = L;
|
|
28326
|
-
|
|
28335
|
+
G = {
|
|
28327
28336
|
action_id: Te,
|
|
28328
28337
|
action_type: D,
|
|
28329
28338
|
name: I,
|
|
@@ -28337,14 +28346,31 @@ function Dashboard(e, r) {
|
|
|
28337
28346
|
id: N,
|
|
28338
28347
|
title: K,
|
|
28339
28348
|
parms: ce,
|
|
28340
|
-
action:
|
|
28349
|
+
action: G,
|
|
28341
28350
|
openAction: g,
|
|
28342
28351
|
children: me
|
|
28343
28352
|
}, N);
|
|
28344
28353
|
})
|
|
28345
28354
|
});
|
|
28346
28355
|
}
|
|
28347
|
-
const Dashboard$1 = forwardRef(Dashboard),
|
|
28356
|
+
const Dashboard$1 = forwardRef(Dashboard), Tag = (e) => /* @__PURE__ */ jsx(Field$1, {
|
|
28357
|
+
...e,
|
|
28358
|
+
children: /* @__PURE__ */ jsx(TagInput, {
|
|
28359
|
+
...e
|
|
28360
|
+
})
|
|
28361
|
+
}), TagInput = (e) => {
|
|
28362
|
+
const {
|
|
28363
|
+
ooui: r,
|
|
28364
|
+
value: a
|
|
28365
|
+
} = e;
|
|
28366
|
+
if (!a)
|
|
28367
|
+
return null;
|
|
28368
|
+
const o = r.colors === "auto" ? colorFromString(a) : r.colors[a];
|
|
28369
|
+
return /* @__PURE__ */ jsx(Tag$1, {
|
|
28370
|
+
color: o,
|
|
28371
|
+
children: r.selectionValues.get(a)
|
|
28372
|
+
});
|
|
28373
|
+
}, MultiCheckbox = (e) => {
|
|
28348
28374
|
const {
|
|
28349
28375
|
ooui: r
|
|
28350
28376
|
} = e;
|
|
@@ -28426,10 +28452,10 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28426
28452
|
});
|
|
28427
28453
|
}
|
|
28428
28454
|
const E = () => {
|
|
28429
|
-
|
|
28455
|
+
z(u.map((P) => P.value));
|
|
28430
28456
|
}, O = () => {
|
|
28431
|
-
|
|
28432
|
-
},
|
|
28457
|
+
z([]);
|
|
28458
|
+
}, z = (P) => {
|
|
28433
28459
|
const M = s.map((W) => P.includes(W.id) ? W.operation == "pendingRemove" ? {
|
|
28434
28460
|
...W,
|
|
28435
28461
|
operation: "original"
|
|
@@ -28450,7 +28476,7 @@ const Dashboard$1 = forwardRef(Dashboard), MultiCheckbox = (e) => {
|
|
|
28450
28476
|
children: [/* @__PURE__ */ jsx(Checkbox.Group, {
|
|
28451
28477
|
value: u.length ? l : [],
|
|
28452
28478
|
disabled: v,
|
|
28453
|
-
onChange:
|
|
28479
|
+
onChange: z,
|
|
28454
28480
|
style: {
|
|
28455
28481
|
width: "100%"
|
|
28456
28482
|
},
|
|
@@ -28645,7 +28671,7 @@ function RootView(e, r) {
|
|
|
28645
28671
|
action: T,
|
|
28646
28672
|
values: E,
|
|
28647
28673
|
forced_values: O,
|
|
28648
|
-
initialViewType:
|
|
28674
|
+
initialViewType: z,
|
|
28649
28675
|
res_id: P,
|
|
28650
28676
|
domain: M = []
|
|
28651
28677
|
}) {
|
|
@@ -28677,8 +28703,8 @@ function RootView(e, r) {
|
|
|
28677
28703
|
limit: Q
|
|
28678
28704
|
} = L, ae = ne === "tree", oe = [];
|
|
28679
28705
|
for (const me of K) {
|
|
28680
|
-
const [
|
|
28681
|
-
if (
|
|
28706
|
+
const [G, te] = me;
|
|
28707
|
+
if (G)
|
|
28682
28708
|
oe.push(me);
|
|
28683
28709
|
else if (te === "dashboard")
|
|
28684
28710
|
oe.push([void 0, "dashboard"]);
|
|
@@ -28688,7 +28714,7 @@ function RootView(e, r) {
|
|
|
28688
28714
|
} = await ConnectionProvider.getHandler().getView({
|
|
28689
28715
|
model: H,
|
|
28690
28716
|
type: te,
|
|
28691
|
-
id:
|
|
28717
|
+
id: G,
|
|
28692
28718
|
context: {
|
|
28693
28719
|
...s,
|
|
28694
28720
|
...J
|
|
@@ -28698,17 +28724,17 @@ function RootView(e, r) {
|
|
|
28698
28724
|
}
|
|
28699
28725
|
}
|
|
28700
28726
|
let ce;
|
|
28701
|
-
if (
|
|
28702
|
-
const [me,
|
|
28727
|
+
if (z) {
|
|
28728
|
+
const [me, G] = oe.find(([te, he]) => he === z);
|
|
28703
28729
|
ce = {
|
|
28704
28730
|
id: me,
|
|
28705
|
-
type:
|
|
28731
|
+
type: G
|
|
28706
28732
|
};
|
|
28707
28733
|
} else {
|
|
28708
|
-
const [me,
|
|
28734
|
+
const [me, G] = oe[0];
|
|
28709
28735
|
ce = {
|
|
28710
28736
|
id: me,
|
|
28711
|
-
type:
|
|
28737
|
+
type: G
|
|
28712
28738
|
};
|
|
28713
28739
|
}
|
|
28714
28740
|
w({
|
|
@@ -28735,7 +28761,7 @@ function RootView(e, r) {
|
|
|
28735
28761
|
title: T,
|
|
28736
28762
|
content: E,
|
|
28737
28763
|
key: O,
|
|
28738
|
-
action:
|
|
28764
|
+
action: z
|
|
28739
28765
|
}) {
|
|
28740
28766
|
let P = [...d];
|
|
28741
28767
|
d.length === 1 && d[0].key === "welcome" && (P = [...d.filter((M) => M.key !== "welcome")]), f([...P, {
|
|
@@ -28743,14 +28769,14 @@ function RootView(e, r) {
|
|
|
28743
28769
|
key: O,
|
|
28744
28770
|
closable: !0,
|
|
28745
28771
|
content: E,
|
|
28746
|
-
action:
|
|
28772
|
+
action: z
|
|
28747
28773
|
}]), c(O);
|
|
28748
28774
|
}
|
|
28749
28775
|
async function S({
|
|
28750
28776
|
relateData: T,
|
|
28751
28777
|
fields: E,
|
|
28752
28778
|
values: O,
|
|
28753
|
-
action_id:
|
|
28779
|
+
action_id: z,
|
|
28754
28780
|
action_type: P
|
|
28755
28781
|
}) {
|
|
28756
28782
|
const {
|
|
@@ -28797,7 +28823,7 @@ function RootView(e, r) {
|
|
|
28797
28823
|
domain: ne,
|
|
28798
28824
|
title: J,
|
|
28799
28825
|
initialView: re,
|
|
28800
|
-
action_id:
|
|
28826
|
+
action_id: z,
|
|
28801
28827
|
action_type: P,
|
|
28802
28828
|
limit: U
|
|
28803
28829
|
});
|
|
@@ -28806,7 +28832,7 @@ function RootView(e, r) {
|
|
|
28806
28832
|
const {
|
|
28807
28833
|
action_id: E,
|
|
28808
28834
|
action_type: O,
|
|
28809
|
-
res_id:
|
|
28835
|
+
res_id: z,
|
|
28810
28836
|
view_id: P
|
|
28811
28837
|
} = T, M = `${O},${E}`, L = await ConnectionProvider.getHandler().getActionData({
|
|
28812
28838
|
action: M,
|
|
@@ -28831,24 +28857,24 @@ function RootView(e, r) {
|
|
|
28831
28857
|
limit: re
|
|
28832
28858
|
} = L, ie = K === "tree", ne = [];
|
|
28833
28859
|
for (const ce of J) {
|
|
28834
|
-
const [me,
|
|
28860
|
+
const [me, G] = ce;
|
|
28835
28861
|
if (me)
|
|
28836
28862
|
ne.push(ce);
|
|
28837
|
-
else if (
|
|
28863
|
+
else if (G === "dashboard")
|
|
28838
28864
|
ne.push([void 0, "dashboard"]);
|
|
28839
28865
|
else {
|
|
28840
28866
|
const {
|
|
28841
28867
|
view_id: te
|
|
28842
28868
|
} = await ConnectionProvider.getHandler().getView({
|
|
28843
28869
|
model: N,
|
|
28844
|
-
type:
|
|
28870
|
+
type: G,
|
|
28845
28871
|
id: me,
|
|
28846
28872
|
context: {
|
|
28847
28873
|
...s,
|
|
28848
28874
|
...W
|
|
28849
28875
|
}
|
|
28850
28876
|
});
|
|
28851
|
-
ne.push([te,
|
|
28877
|
+
ne.push([te, G]);
|
|
28852
28878
|
}
|
|
28853
28879
|
}
|
|
28854
28880
|
let Q, ae;
|
|
@@ -28874,7 +28900,7 @@ function RootView(e, r) {
|
|
|
28874
28900
|
initialView: oe,
|
|
28875
28901
|
action_id: E,
|
|
28876
28902
|
action_type: O,
|
|
28877
|
-
res_id:
|
|
28903
|
+
res_id: z,
|
|
28878
28904
|
treeExpandable: ie,
|
|
28879
28905
|
limit: re
|
|
28880
28906
|
});
|
|
@@ -28883,7 +28909,7 @@ function RootView(e, r) {
|
|
|
28883
28909
|
model: T,
|
|
28884
28910
|
values: E,
|
|
28885
28911
|
forced_values: O,
|
|
28886
|
-
initialViewType:
|
|
28912
|
+
initialViewType: z,
|
|
28887
28913
|
res_id: P,
|
|
28888
28914
|
domain: M
|
|
28889
28915
|
}) {
|
|
@@ -28892,7 +28918,7 @@ function RootView(e, r) {
|
|
|
28892
28918
|
action: L,
|
|
28893
28919
|
values: E,
|
|
28894
28920
|
forced_values: O,
|
|
28895
|
-
initialViewType:
|
|
28921
|
+
initialViewType: z,
|
|
28896
28922
|
res_id: P,
|
|
28897
28923
|
domain: M
|
|
28898
28924
|
});
|
|
@@ -28901,7 +28927,7 @@ function RootView(e, r) {
|
|
|
28901
28927
|
domain: T,
|
|
28902
28928
|
context: E,
|
|
28903
28929
|
model: O,
|
|
28904
|
-
views:
|
|
28930
|
+
views: z,
|
|
28905
28931
|
title: P,
|
|
28906
28932
|
target: M,
|
|
28907
28933
|
initialView: L,
|
|
@@ -28955,7 +28981,7 @@ function RootView(e, r) {
|
|
|
28955
28981
|
action_type: B,
|
|
28956
28982
|
tabKey: re,
|
|
28957
28983
|
title: P,
|
|
28958
|
-
views:
|
|
28984
|
+
views: z,
|
|
28959
28985
|
model: O,
|
|
28960
28986
|
context: {
|
|
28961
28987
|
...s,
|
|
@@ -29118,11 +29144,11 @@ const FavouriteButton = (e) => {
|
|
|
29118
29144
|
openDefaultActionForModel: O
|
|
29119
29145
|
} = S || {};
|
|
29120
29146
|
useEffect(() => {
|
|
29121
|
-
|
|
29147
|
+
z();
|
|
29122
29148
|
}, []), useEffect(() => {
|
|
29123
29149
|
L();
|
|
29124
29150
|
}, [x, w, T, E]);
|
|
29125
|
-
async function
|
|
29151
|
+
async function z() {
|
|
29126
29152
|
try {
|
|
29127
29153
|
m(!0);
|
|
29128
29154
|
const U = await r();
|
|
@@ -29140,7 +29166,7 @@ const FavouriteButton = (e) => {
|
|
|
29140
29166
|
(K == null ? void 0 : K.action_type) !== "ir.actions.wizard" && (K && y(K), d(!1));
|
|
29141
29167
|
}
|
|
29142
29168
|
function M(U) {
|
|
29143
|
-
U &&
|
|
29169
|
+
U && z(), d(U);
|
|
29144
29170
|
}
|
|
29145
29171
|
async function L() {
|
|
29146
29172
|
if (!T)
|
|
@@ -29259,7 +29285,7 @@ const FavouriteButton = (e) => {
|
|
|
29259
29285
|
res_id: ie
|
|
29260
29286
|
});
|
|
29261
29287
|
}
|
|
29262
|
-
await
|
|
29288
|
+
await z(), u(!l);
|
|
29263
29289
|
}
|
|
29264
29290
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
29265
29291
|
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
@@ -29335,6 +29361,7 @@ export {
|
|
|
29335
29361
|
Steps,
|
|
29336
29362
|
Switch,
|
|
29337
29363
|
TabSelector,
|
|
29364
|
+
Tag,
|
|
29338
29365
|
Tags,
|
|
29339
29366
|
Text$2 as Text,
|
|
29340
29367
|
Tree,
|