@nocobase/client 1.4.0-beta.10 → 1.4.0-beta.11

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/es/index.mjs CHANGED
@@ -102,7 +102,7 @@ import { createRoot as createRoot$1 } from "react-dom/client";
102
102
  import * as i18next from "i18next";
103
103
  import i18next__default from "i18next";
104
104
  import * as antIcons from "@ant-design/icons";
105
- import antIcons__default, { LoadingOutlined, createFromIconfontCN, RightOutlined, HighlightOutlined, PlusOutlined, DragOutlined, MenuOutlined, ArrowLeftOutlined, CopyOutlined, CloseCircleOutlined, UserOutlined, CloseCircleFilled, QuestionCircleOutlined, CloseOutlined, DownloadOutlined, InboxOutlined, DeleteOutlined, EditOutlined, DownOutlined, CheckOutlined, RightSquareOutlined, SyncOutlined, ExclamationCircleFilled, ApiOutlined, SettingOutlined, ReadOutlined, ReloadOutlined, SearchOutlined, TableOutlined, FormOutlined, OrderedListOutlined, LineOutlined, DisconnectOutlined, TranslationOutlined } from "@ant-design/icons";
105
+ import antIcons__default, { LoadingOutlined, createFromIconfontCN, RightOutlined, HighlightOutlined, PlusOutlined, DragOutlined, MenuOutlined, ArrowLeftOutlined, CopyOutlined, CloseCircleOutlined, UserOutlined, CloseCircleFilled, QuestionCircleOutlined, CloseOutlined, DownloadOutlined, InboxOutlined, DeleteOutlined, EditOutlined, DownOutlined, CheckOutlined, RightSquareOutlined, SyncOutlined, ExclamationCircleFilled, ApiOutlined, SettingOutlined, ReadOutlined, ReloadOutlined, SearchOutlined, TableOutlined, FormOutlined, ProfileOutlined, AppstoreOutlined, OrderedListOutlined, LineOutlined, DisconnectOutlined, TranslationOutlined } from "@ant-design/icons";
106
106
  import * as formilyReactiveReact from "@formily/reactive-react";
107
107
  import { observer } from "@formily/reactive-react";
108
108
  import { ErrorBoundary } from "react-error-boundary";
@@ -745,6 +745,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
745
745
  get getStoredPopupContext() {
746
746
  return getStoredPopupContext;
747
747
  },
748
+ get handleDateChangeOnForm() {
749
+ return handleDateChangeOnForm;
750
+ },
748
751
  get inferPickerType() {
749
752
  return inferPickerType;
750
753
  },
@@ -2778,6 +2781,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2778
2781
  get gridRowColWrap() {
2779
2782
  return gridRowColWrap;
2780
2783
  },
2784
+ get handleDateChangeOnForm() {
2785
+ return handleDateChangeOnForm;
2786
+ },
2781
2787
  get hasIcon() {
2782
2788
  return hasIcon;
2783
2789
  },
@@ -4287,7 +4293,7 @@ function addAppVersion(e, t) {
4287
4293
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
4288
4294
  }), e;
4289
4295
  }
4290
- const name = "@nocobase/client", version$1 = "1.4.0-beta.10", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4296
+ const name = "@nocobase/client", version$1 = "1.4.0-beta.11", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4291
4297
  "@ahooksjs/use-url-state": "3.5.1",
4292
4298
  "@ant-design/cssinjs": "^1.11.1",
4293
4299
  "@ant-design/icons": "^5.1.4",
@@ -4309,9 +4315,9 @@ const name = "@nocobase/client", version$1 = "1.4.0-beta.10", license = "AGPL-3.
4309
4315
  "@formily/reactive-react": "^2.2.27",
4310
4316
  "@formily/shared": "^2.2.27",
4311
4317
  "@formily/validator": "^2.2.27",
4312
- "@nocobase/evaluators": "1.4.0-beta.10",
4313
- "@nocobase/sdk": "1.4.0-beta.10",
4314
- "@nocobase/utils": "1.4.0-beta.10",
4318
+ "@nocobase/evaluators": "1.4.0-beta.11",
4319
+ "@nocobase/sdk": "1.4.0-beta.11",
4320
+ "@nocobase/utils": "1.4.0-beta.11",
4315
4321
  ahooks: "^3.7.2",
4316
4322
  antd: "5.12.8",
4317
4323
  "antd-style": "3.7.1",
@@ -4909,12 +4915,12 @@ const TreeNode = (e) => {
4909
4915
  });
4910
4916
  }
4911
4917
  const p = (y, { exclude: v = [], depth: I = 0, maxDepth: w, prefix: T = "" }) => I > w ? [] : n(y).map((A) => {
4912
- var L;
4918
+ var z;
4913
4919
  if (v.includes(A.name) || !A.interface || ["sort", "password", "sequence"].includes(A.type) || o && o(A))
4914
4920
  return;
4915
4921
  const D = {
4916
4922
  type: "duplicate",
4917
- tag: c((L = A.uiSchema) == null ? void 0 : L.title) || A.name
4923
+ tag: c((z = A.uiSchema) == null ? void 0 : z.title) || A.name
4918
4924
  }, $ = F(x({}, D), {
4919
4925
  role: "button",
4920
4926
  title: React.createElement(TreeNode, F(x({}, D), { displayType: t })),
@@ -4934,12 +4940,12 @@ const TreeNode = (e) => {
4934
4940
  exclude: ["id", ...systemKeys]
4935
4941
  })), $;
4936
4942
  }).filter(Boolean), m = (y, { prefix: v, maxDepth: I, depth: w = 0, exclude: T = [] }) => w > I ? [] : n(y).map((A) => {
4937
- var L;
4943
+ var z;
4938
4944
  if (!A.target || !A.interface || T.includes(A.name))
4939
4945
  return;
4940
4946
  const D = {
4941
4947
  type: "preloading",
4942
- tag: c((L = A.uiSchema) == null ? void 0 : L.title) || A.name
4948
+ tag: c((z = A.uiSchema) == null ? void 0 : z.title) || A.name
4943
4949
  }, $ = v ? `${v}.${A.name}` : A.name;
4944
4950
  return {
4945
4951
  role: "button",
@@ -4992,7 +4998,7 @@ const TreeNode = (e) => {
4992
4998
  const $ = a(A.interface);
4993
4999
  if (!($ != null && $.filterable))
4994
5000
  return;
4995
- const { nested: L, children: z, operators: j } = $.filterable, R = {
5001
+ const { nested: z, children: O, operators: j } = $.filterable, R = {
4996
5002
  name: A.name,
4997
5003
  title: ((B = A == null ? void 0 : A.uiSchema) == null ? void 0 : B.title) || A.name,
4998
5004
  schema: A == null ? void 0 : A.uiSchema,
@@ -5002,7 +5008,7 @@ const TreeNode = (e) => {
5002
5008
  if (!(A.target && D > 2)) {
5003
5009
  if (D > 2)
5004
5010
  return R;
5005
- if (z != null && z.length && (R.children = z), L) {
5011
+ if (O != null && O.length && (R.children = O), z) {
5006
5012
  const k = n(A.target), N = w(k, D + 1).filter(Boolean);
5007
5013
  R.children = R.children || [], R.children.push(...N);
5008
5014
  }
@@ -5010,9 +5016,9 @@ const TreeNode = (e) => {
5010
5016
  }
5011
5017
  }, w = (A, D) => {
5012
5018
  const $ = [];
5013
- return A.forEach((L) => {
5014
- const z = I(L, D);
5015
- z && $.push(z);
5019
+ return A.forEach((z) => {
5020
+ const O = I(z, D);
5021
+ O && $.push(O);
5016
5022
  }), $;
5017
5023
  };
5018
5024
  return w(v, 1);
@@ -7039,7 +7045,7 @@ const REGEX_OF_VARIABLE = /^\s*\{\{\s*([a-zA-Z0-9_$-.]+?)\s*\}\}\s*$/g, REGEX_OF
7039
7045
  }, handleChangeOnFilter = (e, t, o) => {
7040
7046
  const n = o ? "YYYY-MM-DD HH:mm:ss" : getPickerFormat(t);
7041
7047
  return e && dayjs(e).format(n);
7042
- }, handleChangeOnForm = (e, t, o, n, r, i) => {
7048
+ }, handleDateChangeOnForm = (e, t, o, n, r, i) => {
7043
7049
  const a = r ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
7044
7050
  if (!e)
7045
7051
  return e;
@@ -7061,7 +7067,7 @@ const REGEX_OF_VARIABLE = /^\s*\{\{\s*([a-zA-Z0-9_$-.]+?)\s*\}\}\s*$/g, REGEX_OF
7061
7067
  format: l,
7062
7068
  value: str2moment(e.value, e),
7063
7069
  onChange: (u, d) => {
7064
- c && c(a ? handleChangeOnFilter(u, n, o) : handleChangeOnForm(u, t, r, n, o, i));
7070
+ c && c(a ? handleChangeOnFilter(u, n, o) : handleDateChangeOnForm(u, t, r, n, o, i));
7065
7071
  }
7066
7072
  });
7067
7073
  };
@@ -9255,7 +9261,7 @@ function withInitializer(e) {
9255
9261
  b ? b(y(R, { isInSubTable: i })) : r(d, y(R, { isInSubTable: i }), { onSuccess: p });
9256
9262
  },
9257
9263
  [b, y, r, d, p]
9258
- ), { wrapSSR: I, hashId: w, componentCls: T } = useSchemaInitializerStyles(), [A, D] = useState(!1), { token: $ } = theme.useToken(), L = useNiceDropdownMaxHeight([A]), z = useMemo(
9264
+ ), { wrapSSR: I, hashId: w, componentCls: T } = useSchemaInitializerStyles(), [A, D] = useState(!1), { token: $ } = theme.useToken(), z = useNiceDropdownMaxHeight([A]), O = useMemo(
9259
9265
  () => x({
9260
9266
  options: o,
9261
9267
  style: C
@@ -9281,7 +9287,7 @@ function withInitializer(e) {
9281
9287
  insert: v,
9282
9288
  options: o
9283
9289
  },
9284
- children: f === !1 ? React.createElement(e, z) : /* @__PURE__ */ jsx(
9290
+ children: f === !1 ? React.createElement(e, O) : /* @__PURE__ */ jsx(
9285
9291
  Popover,
9286
9292
  F(x({
9287
9293
  placement: "bottomLeft"
@@ -9296,7 +9302,7 @@ function withInitializer(e) {
9296
9302
  {
9297
9303
  className: `${T} ${w}`,
9298
9304
  style: {
9299
- maxHeight: L,
9305
+ maxHeight: z,
9300
9306
  overflowY: "auto"
9301
9307
  },
9302
9308
  children: /* @__PURE__ */ jsx(
@@ -9318,7 +9324,7 @@ function withInitializer(e) {
9318
9324
  }
9319
9325
  )
9320
9326
  ),
9321
- children: React.createElement(e, z)
9327
+ children: React.createElement(e, O)
9322
9328
  })
9323
9329
  )
9324
9330
  }
@@ -10450,7 +10456,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10450
10456
  let w = mergeCtxWithLocalVariables(o.current, S);
10451
10457
  const { fieldPath: T, dataSource: A, variableOption: D } = getFieldPath(v, I);
10452
10458
  let $ = T;
10453
- const { fieldPath: L } = getFieldPath(C, I), z = y.length === 1 ? D == null ? void 0 : D.collectionName : (R = r(L, A)) == null ? void 0 : R.target;
10459
+ const { fieldPath: z } = getFieldPath(C, I), O = y.length === 1 ? D == null ? void 0 : D.collectionName : (R = r(z, A)) == null ? void 0 : R.target;
10454
10460
  if (!(v in w))
10455
10461
  throw new Error(`VariablesProvider: ${v} is not found`);
10456
10462
  for (let M = 0; M < y.length; M++) {
@@ -10458,13 +10464,13 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10458
10464
  return {
10459
10465
  value: w === void 0 ? D == null ? void 0 : D.defaultValue : w,
10460
10466
  dataSource: A,
10461
- collectionName: z
10467
+ collectionName: O
10462
10468
  };
10463
- const k = y[M], { fieldPath: N } = getFieldPath(y.slice(0, M + 1).join("."), I), O = r(N, A), q = (B = i($)) == null ? void 0 : B.getPrimaryKey();
10469
+ const k = y[M], { fieldPath: N } = getFieldPath(y.slice(0, M + 1).join("."), I), L = r(N, A), q = (B = i($)) == null ? void 0 : B.getPrimaryKey();
10464
10470
  if (Array.isArray(w)) {
10465
10471
  const E = w.map((U) => {
10466
- if (!(b != null && b.doNotRequest) && shouldToRequest(U == null ? void 0 : U[k]) && (U == null ? void 0 : U[q]) != null && O != null && O.target) {
10467
- const G = `/${$}/${U[O.sourceKey || q]}/${k}:${getAction(O.type)}`;
10472
+ if (!(b != null && b.doNotRequest) && shouldToRequest(U == null ? void 0 : U[k]) && (U == null ? void 0 : U[q]) != null && L != null && L.target) {
10473
+ const G = `/${$}/${U[L.sourceKey || q]}/${k}:${getAction(L.type)}`;
10468
10474
  if (hasRequested(G))
10469
10475
  return getRequested(G);
10470
10476
  const H = n.request({
@@ -10478,9 +10484,9 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10478
10484
  }
10479
10485
  return U == null ? void 0 : U[k];
10480
10486
  });
10481
- w = removeThroughCollectionFields(_.flatten(yield Promise.all(E)), O);
10482
- } else if (!(b != null && b.doNotRequest) && shouldToRequest(w[k]) && w[q] != null && (O != null && O.target)) {
10483
- const E = `/${$}/${w[O.sourceKey || q]}/${k}:${getAction(O.type)}`;
10487
+ w = removeThroughCollectionFields(_.flatten(yield Promise.all(E)), L);
10488
+ } else if (!(b != null && b.doNotRequest) && shouldToRequest(w[k]) && w[q] != null && (L != null && L.target)) {
10489
+ const E = `/${$}/${w[L.sourceKey || q]}/${k}:${getAction(L.type)}`;
10484
10490
  let U = null;
10485
10491
  if (hasRequested(E))
10486
10492
  U = yield getRequested(E);
@@ -10494,10 +10500,10 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10494
10500
  });
10495
10501
  stashRequested(E, G), U = yield G, clearRequested(E);
10496
10502
  }
10497
- raw(w)[k] || (raw(w)[k] = U.data.data), w = removeThroughCollectionFields(getValuesByPath(w, k), O);
10503
+ raw(w)[k] || (raw(w)[k] = U.data.data), w = removeThroughCollectionFields(getValuesByPath(w, k), L);
10498
10504
  } else
10499
- w = removeThroughCollectionFields(getValuesByPath(w, k), O);
10500
- O != null && O.target && ($ = O.target);
10505
+ w = removeThroughCollectionFields(getValuesByPath(w, k), L);
10506
+ L != null && L.target && ($ = L.target);
10501
10507
  }
10502
10508
  const j = a(
10503
10509
  _.isFunction(w) ? w({ fieldOperator: b == null ? void 0 : b.fieldOperator, isParsingVariable: !0 }) : w
@@ -10505,7 +10511,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
10505
10511
  return {
10506
10512
  value: j === void 0 ? D.defaultValue : j,
10507
10513
  dataSource: A,
10508
- collectionName: z
10514
+ collectionName: O
10509
10515
  };
10510
10516
  }),
10511
10517
  [r]
@@ -11833,14 +11839,14 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11833
11839
  ].filter(Boolean).map((c) => encodePathValue(c)).join("/")}`;
11834
11840
  }, usePopupUtils = (e = {}) => {
11835
11841
  const t = useNavigateNoUpdate(), o = useLocationNoUpdate(), n = useFieldSchema(), r = useDataSourceKey(), i = useCollectionRecord(), a = useCollectionParentRecord(), l = useCollection(), c = useCollectionManager(), u = useAssociationName(), { visible: d, setVisible: p } = useContext(PopupVisibleProviderContext) || { visible: !1, setVisible: _.noop }, { params: m } = useCurrentPopupContext(), h = useDataBlockRequest(), { isPopupVisibleControlledByURL: g } = usePopupSettings(), { setVisible: f } = useContext(ActionContext), { updatePopupContext: C } = usePopupContextInActionOrAssociationField(), S = useCurrentPopupContext(), b = useCallback(
11836
- (z) => {
11842
+ (O) => {
11837
11843
  var j;
11838
- return (j = z || (a == null ? void 0 : a.data)) == null ? void 0 : j[c.getSourceKeyByAssociation(u)];
11844
+ return (j = O || (a == null ? void 0 : a.data)) == null ? void 0 : j[c.getSourceKeyByAssociation(u)];
11839
11845
  },
11840
11846
  [a, u]
11841
11847
  ), y = useTableBlockContext(), v = e.setVisible || f, I = useCallback(
11842
11848
  ({
11843
- tabKey: z,
11849
+ tabKey: O,
11844
11850
  popupUid: j,
11845
11851
  recordData: R,
11846
11852
  sourceId: B,
@@ -11854,20 +11860,20 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11854
11860
  collection: M,
11855
11861
  filterbytk: N,
11856
11862
  sourceid: B,
11857
- tab: z
11863
+ tab: O
11858
11864
  });
11859
11865
  },
11860
11866
  [u, c, l, r, a == null ? void 0 : a.data, u]
11861
11867
  ), w = useCallback(() => {
11862
- const z = {
11868
+ const O = {
11863
11869
  dataSource: r,
11864
11870
  collection: u || l == null ? void 0 : l.name,
11865
11871
  association: u
11866
11872
  };
11867
- return _.omitBy(z, _.isNil);
11873
+ return _.omitBy(O, _.isNil);
11868
11874
  }, [r, l, u]), T = useCallback(
11869
11875
  ({
11870
- recordData: z,
11876
+ recordData: O,
11871
11877
  parentRecordData: j,
11872
11878
  collectionNameUsedInURL: R,
11873
11879
  popupUidUsedInURL: B,
@@ -11876,10 +11882,10 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11876
11882
  if (!g())
11877
11883
  return v == null ? void 0 : v(!0);
11878
11884
  const k = (M == null ? void 0 : M["x-uid"]) || (n == null ? void 0 : n["x-uid"]), N = b(j);
11879
- z = z || (i == null ? void 0 : i.data);
11880
- const O = I({
11885
+ O = O || (i == null ? void 0 : i.data);
11886
+ const L = I({
11881
11887
  popupUid: k,
11882
- recordData: z,
11888
+ recordData: O,
11883
11889
  sourceId: N,
11884
11890
  collection: R,
11885
11891
  puid: B
@@ -11887,7 +11893,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11887
11893
  let q = o.pathname;
11888
11894
  _.last(q) === "/" && (q = q.slice(0, -1)), storePopupContext(k, {
11889
11895
  schema: M || n,
11890
- record: new CollectionRecord({ isNew: !1, data: z }),
11896
+ record: new CollectionRecord({ isNew: !1, data: O }),
11891
11897
  parentRecord: j ? new CollectionRecord({ isNew: !1, data: j }) : a,
11892
11898
  service: h,
11893
11899
  dataSource: r,
@@ -11895,7 +11901,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11895
11901
  association: u,
11896
11902
  sourceId: N,
11897
11903
  tableBlockContext: y
11898
- }), C(w(), M), t(withSearchParams(`${q}${O}`));
11904
+ }), C(w(), M), t(withSearchParams(`${q}${L}`));
11899
11905
  },
11900
11906
  [
11901
11907
  u,
@@ -11919,9 +11925,9 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11919
11925
  return v == null ? void 0 : v(!1);
11920
11926
  t(withSearchParams(removeLastPopupPath(o.pathname)), { replace: !0 });
11921
11927
  }, [g, v, t, o == null ? void 0 : o.pathname]), D = useCallback(
11922
- (z) => {
11928
+ (O) => {
11923
11929
  const j = b(), R = I({
11924
- tabKey: z,
11930
+ tabKey: O,
11925
11931
  popupUid: m == null ? void 0 : m.popupuid,
11926
11932
  recordData: i == null ? void 0 : i.data,
11927
11933
  sourceId: j
@@ -11932,9 +11938,9 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11932
11938
  });
11933
11939
  },
11934
11940
  [I, t, m == null ? void 0 : m.popupuid, i == null ? void 0 : i.data, o]
11935
- ), $ = useCallback((z, j) => {
11936
- j.__popup = z;
11937
- }, []), L = useCallback((z) => z.__popup, []);
11941
+ ), $ = useCallback((O, j) => {
11942
+ j.__popup = O;
11943
+ }, []), z = useCallback((O) => O.__popup, []);
11938
11944
  return {
11939
11945
  /**
11940
11946
  * used to open popup by changing the url
@@ -11945,7 +11951,7 @@ const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextSto
11945
11951
  */
11946
11952
  closePopup: A,
11947
11953
  savePopupSchemaToSchema: $,
11948
- getPopupSchemaFromSchema: L,
11954
+ getPopupSchemaFromSchema: z,
11949
11955
  context: S,
11950
11956
  /**
11951
11957
  * @deprecated
@@ -12960,23 +12966,23 @@ const ColDivider = (e) => {
12960
12966
  if (!b)
12961
12967
  return;
12962
12968
  o.current = A.active.id;
12963
- const D = l.current, $ = D.previousElementSibling, L = D.nextElementSibling;
12964
- v([$.clientWidth, L.clientWidth]);
12969
+ const D = l.current, $ = D.previousElementSibling, z = D.nextElementSibling;
12970
+ v([$.clientWidth, z.clientWidth]);
12965
12971
  },
12966
12972
  onDragMove(A) {
12967
12973
  if (!b)
12968
12974
  return;
12969
12975
  o.current === A.active.id && (o.current = o.current + "_move");
12970
- const D = l.current, $ = D.previousElementSibling, L = D.nextElementSibling;
12971
- $.style.width = `${y[0] + A.delta.x}px`, L.style.width = `${y[1] - A.delta.x}px`;
12976
+ const D = l.current, $ = D.previousElementSibling, z = D.nextElementSibling;
12977
+ $.style.width = `${y[0] + A.delta.x}px`, z.style.width = `${y[1] - A.delta.x}px`;
12972
12978
  },
12973
12979
  onDragEnd(A) {
12974
12980
  var B;
12975
12981
  if (!o.current || (B = o.current) != null && B.startsWith(A.active.id) && !o.current.endsWith("_move") || y[0] <= 0 || y[1] <= 0 || (v([0, 0]), !h || !g))
12976
12982
  return;
12977
- const D = l.current, $ = D.previousElementSibling, L = D.nextElementSibling;
12983
+ const D = l.current, $ = D.previousElementSibling, z = D.nextElementSibling;
12978
12984
  h["x-component-props"] = h["x-component-props"] || {}, g["x-component-props"] = g["x-component-props"] || {};
12979
- const z = D.clientWidth * (e.cols.length + 1) / e.cols.length, j = (100 * ($.getBoundingClientRect().width + z) / D.parentElement.clientWidth).toFixed(2), R = (100 * (L.getBoundingClientRect().width + z) / D.parentElement.clientWidth).toFixed(2);
12985
+ const O = D.clientWidth * (e.cols.length + 1) / e.cols.length, j = (100 * ($.getBoundingClientRect().width + O) / D.parentElement.clientWidth).toFixed(2), R = (100 * (z.getBoundingClientRect().width + O) / D.parentElement.clientWidth).toFixed(2);
12980
12986
  _.set(h, "x-component-props.width", j), _.set(g, "x-component-props.width", R), i.emit("batchPatch", {
12981
12987
  schemas: [
12982
12988
  {
@@ -13269,8 +13275,8 @@ const TableColumnSchemaToolbar = (e) => /* @__PURE__ */ jsx(GridRowContext.Provi
13269
13275
  ),
13270
13276
  onChange: useCallback(
13271
13277
  ({ current: h, pageSize: g }, f, C) => {
13272
- var I, w, T, A, D, $, L, z, j, R;
13273
- const S = (T = (w = (I = t.parent) == null ? void 0 : I["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : T.sort, b = C.order ? C.order === "ascend" ? [C.field] : [`-${C.field}`] : S || i.current.dragSortBy, y = g || (($ = (D = (A = t.parent) == null ? void 0 : A["x-decorator-props"]) == null ? void 0 : D.params) == null ? void 0 : $.pageSize), v = F(x({}, (j = (z = (L = i.current) == null ? void 0 : L.service) == null ? void 0 : z.params) == null ? void 0 : j[0]), { page: h || 1, pageSize: y });
13278
+ var I, w, T, A, D, $, z, O, j, R;
13279
+ const S = (T = (w = (I = t.parent) == null ? void 0 : I["x-decorator-props"]) == null ? void 0 : w.params) == null ? void 0 : T.sort, b = C.order ? C.order === "ascend" ? [C.field] : [`-${C.field}`] : S || i.current.dragSortBy, y = g || (($ = (D = (A = t.parent) == null ? void 0 : A["x-decorator-props"]) == null ? void 0 : D.params) == null ? void 0 : $.pageSize), v = F(x({}, (j = (O = (z = i.current) == null ? void 0 : z.service) == null ? void 0 : O.params) == null ? void 0 : j[0]), { page: h || 1, pageSize: y });
13274
13280
  b && (v.sort = b), (R = i.current) == null || R.service.run(v);
13275
13281
  },
13276
13282
  [t.parent]
@@ -13288,13 +13294,13 @@ const TableColumnSchemaToolbar = (e) => /* @__PURE__ */ jsx(GridRowContext.Provi
13288
13294
  const I = C.find((k) => k.uid === v.uid);
13289
13295
  if (!I)
13290
13296
  return;
13291
- const w = (j = v.foreignKeyFields) == null ? void 0 : j.some((k) => k.name === I.field), T = getSourceKey(y, I.field), A = w ? T : o.rowKey, D = [h[A]], $ = ((R = v.service.params) == null ? void 0 : R[0]) || {}, L = ((M = (B = v.service.params) == null ? void 0 : B[1]) == null ? void 0 : M.filters) || {};
13297
+ const w = (j = v.foreignKeyFields) == null ? void 0 : j.some((k) => k.name === I.field), T = getSourceKey(y, I.field), A = w ? T : o.rowKey, D = [h[A]], $ = ((R = v.service.params) == null ? void 0 : R[0]) || {}, z = ((M = (B = v.service.params) == null ? void 0 : B[1]) == null ? void 0 : M.filters) || {};
13292
13298
  if (f.includes(h[o.rowKey])) {
13293
13299
  if (v.dataLoadingMode === "manual")
13294
13300
  return v.clearData();
13295
- delete L[S];
13301
+ delete z[S];
13296
13302
  } else
13297
- L[S] = {
13303
+ z[S] = {
13298
13304
  $and: [
13299
13305
  {
13300
13306
  [I.field || o.rowKey]: {
@@ -13303,16 +13309,16 @@ const TableColumnSchemaToolbar = (e) => /* @__PURE__ */ jsx(GridRowContext.Provi
13303
13309
  }
13304
13310
  ]
13305
13311
  };
13306
- const z = mergeFilter([
13307
- ...Object.values(L).map((k) => removeNullCondition(k)),
13312
+ const O = mergeFilter([
13313
+ ...Object.values(z).map((k) => removeNullCondition(k)),
13308
13314
  v.defaultFilter
13309
13315
  ]);
13310
13316
  return v.doFilter(
13311
13317
  F(x({}, $), {
13312
13318
  page: 1,
13313
- filter: z
13319
+ filter: O
13314
13320
  }),
13315
- { filters: L }
13321
+ { filters: z }
13316
13322
  );
13317
13323
  }), g((v) => v != null && v.includes(h[o.rowKey]) ? [] : [h[o.rowKey]]);
13318
13324
  },
@@ -13641,10 +13647,10 @@ const useTableSelectorParams = () => useContext(TableSelectorParamsContext), Tab
13641
13647
  var a, l, c, u, d, p, m, h, g, f, C, S, b, y, v, I;
13642
13648
  const e = useField(), t = useTableSelectorContext(), o = useFieldSchema(), { getCollectionJoinField: n } = useCollectionManager_deprecated(), r = recursiveParent$1(o, "CollectionField"), i = n(r == null ? void 0 : r["x-collection-field"]);
13643
13649
  return useEffect(() => {
13644
- var T, A, D, $, L, z, j, R, B, M, k, N, O;
13650
+ var T, A, D, $, z, O, j, R, B, M, k, N, L;
13645
13651
  if (!((T = t == null ? void 0 : t.service) != null && T.loading)) {
13646
13652
  const q = (D = (A = t == null ? void 0 : t.service) == null ? void 0 : A.data) == null ? void 0 : D.data.map((E) => E);
13647
- e.value = q, ($ = e == null ? void 0 : e.setInitialValue) == null || $.call(e, q), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (j = (z = (L = t == null ? void 0 : t.service) == null ? void 0 : L.data) == null ? void 0 : z.meta) == null ? void 0 : j.pageSize, e.componentProps.pagination.total = (M = (B = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : B.meta) == null ? void 0 : M.count, e.componentProps.pagination.current = (O = (N = (k = t == null ? void 0 : t.service) == null ? void 0 : k.data) == null ? void 0 : N.meta) == null ? void 0 : O.page;
13653
+ e.value = q, ($ = e == null ? void 0 : e.setInitialValue) == null || $.call(e, q), e.data = e.data || {}, e.data.selectedRowKeys = [], e.componentProps.pagination = e.componentProps.pagination || {}, e.componentProps.pagination.pageSize = (j = (O = (z = t == null ? void 0 : t.service) == null ? void 0 : z.data) == null ? void 0 : O.meta) == null ? void 0 : j.pageSize, e.componentProps.pagination.total = (M = (B = (R = t == null ? void 0 : t.service) == null ? void 0 : R.data) == null ? void 0 : B.meta) == null ? void 0 : M.count, e.componentProps.pagination.current = (L = (N = (k = t == null ? void 0 : t.service) == null ? void 0 : k.data) == null ? void 0 : N.meta) == null ? void 0 : L.page;
13648
13654
  }
13649
13655
  }, [
13650
13656
  i == null ? void 0 : i.foreignKey,
@@ -14419,8 +14425,8 @@ const useFormItemInitializerFields = (e) => {
14419
14425
  schema: S
14420
14426
  };
14421
14427
  return l == "Kanban" && (b.find = (A, D, $) => {
14422
- const L = findSchema(A, "x-component", l);
14423
- return findSchema(L, D, $);
14428
+ const z = findSchema(A, "x-component", l);
14429
+ return findSchema(z, D, $);
14424
14430
  }), b;
14425
14431
  });
14426
14432
  }, useFilterFormItemInitializerFields = (e) => {
@@ -14784,13 +14790,13 @@ const useFormItemInitializerFields = (e) => {
14784
14790
  componentNamePrefix: m
14785
14791
  }).sort((D) => {
14786
14792
  const $ = _.toArray((C == null ? void 0 : C.inherits) || []);
14787
- if (D.name === (C == null ? void 0 : C.name) || $.some((L) => L === D.name))
14793
+ if (D.name === (C == null ? void 0 : C.name) || $.some((z) => z === D.name))
14788
14794
  return -1;
14789
14795
  })
14790
14796
  ]
14791
14797
  })), [y, C == null ? void 0 : C.inherits, C == null ? void 0 : C.name, t, v, h]);
14792
14798
  return r ? useMemo(() => {
14793
- var z;
14799
+ var O;
14794
14800
  const w = {
14795
14801
  name: "currentRecord",
14796
14802
  collectionName: C.name,
@@ -14855,18 +14861,18 @@ const useFormItemInitializerFields = (e) => {
14855
14861
  })
14856
14862
  };
14857
14863
  let $;
14858
- const L = S.length ? T : null;
14864
+ const z = S.length ? T : null;
14859
14865
  if (I[0].children.length && S.length)
14860
- l ? $ = [w, L] : $ = [w, L, D];
14866
+ l ? $ = [w, z] : $ = [w, z, D];
14861
14867
  else if (I[0].children.length)
14862
14868
  if (l) {
14863
14869
  if (I[0].children.length <= 1)
14864
- return I[0].children = ((z = I[0].children[0]) == null ? void 0 : z.children) || [], I;
14870
+ return I[0].children = ((O = I[0].children[0]) == null ? void 0 : O.children) || [], I;
14865
14871
  $ = [w];
14866
14872
  } else
14867
14873
  $ = [w, D];
14868
14874
  else
14869
- l ? $ = [L] : $ = [L, D];
14875
+ l ? $ = [z] : $ = [z, D];
14870
14876
  return [
14871
14877
  {
14872
14878
  name: "records",
@@ -15576,7 +15582,7 @@ const useGetAriaLabelOfDesigner = () => {
15576
15582
  display: block !important;
15577
15583
  }
15578
15584
  `, GeneralSchemaDesigner = (e) => {
15579
- var $, L;
15585
+ var $, z;
15580
15586
  const t = useFieldSchema(), {
15581
15587
  disableInitializer: o,
15582
15588
  title: n,
@@ -15593,10 +15599,10 @@ const useGetAriaLabelOfDesigner = () => {
15593
15599
  t["x-settings"] || i,
15594
15600
  t["x-settings-props"]
15595
15601
  ), b = useGridRowContext(), y = useGridContext(), v = useDataSourceManager(), I = v == null ? void 0 : v.getDataSources(), w = useDataSource(), T = (I == null ? void 0 : I.length) > 1 && w, A = ["FormItem", "ReadPrettyFormItem"].includes(r == null ? void 0 : r.componentName) ? `${r == null ? void 0 : r.name} ${m("(Fields only)")}` : r == null ? void 0 : r.name, D = useMemo(() => {
15596
- var z;
15602
+ var O;
15597
15603
  return {
15598
15604
  insertPosition: "afterEnd",
15599
- wrap: ((z = b == null ? void 0 : b.cols) == null ? void 0 : z.length) > 1 ? void 0 : gridRowColWrap,
15605
+ wrap: ((O = b == null ? void 0 : b.cols) == null ? void 0 : O.length) > 1 ? void 0 : gridRowColWrap,
15600
15606
  Component: (j) => /* @__PURE__ */ jsx(
15601
15607
  PlusOutlined,
15602
15608
  F(x({}, j), {
@@ -15618,7 +15624,7 @@ const useGetAriaLabelOfDesigner = () => {
15618
15624
  ] }) }),
15619
15625
  /* @__PURE__ */ jsx("div", { className: "general-schema-designer-icons", children: /* @__PURE__ */ jsxs(Space$1, { size: 3, align: "center", children: [
15620
15626
  l && /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": g("drag-handler") }) }),
15621
- !o && (y != null && y.InitializerComponent ? /* @__PURE__ */ jsx(y.InitializerComponent, x({}, D)) : (L = y == null ? void 0 : y.renderSchemaInitializer) == null ? void 0 : L.call(y, D)),
15627
+ !o && (y != null && y.InitializerComponent ? /* @__PURE__ */ jsx(y.InitializerComponent, x({}, D)) : (z = y == null ? void 0 : y.renderSchemaInitializer) == null ? void 0 : z.call(y, D)),
15622
15628
  S ? C(a) : /* @__PURE__ */ jsx(
15623
15629
  SchemaSettingsDropdown,
15624
15630
  F(x({
@@ -15637,7 +15643,7 @@ const useGetAriaLabelOfDesigner = () => {
15637
15643
  ] }) })
15638
15644
  ] }) })) : null;
15639
15645
  }, InternalSchemaToolbar = (e) => {
15640
- var O;
15646
+ var L;
15641
15647
  const t = useFieldSchema(), {
15642
15648
  title: o,
15643
15649
  initializer: n,
@@ -15661,14 +15667,14 @@ const useGetAriaLabelOfDesigner = () => {
15661
15667
  }, [f, o]), { render: A, exists: D } = useSchemaSettingsRender(
15662
15668
  r || (t == null ? void 0 : t["x-settings"]),
15663
15669
  t == null ? void 0 : t["x-settings-props"]
15664
- ), { render: $, exists: L } = useSchemaInitializerRender(
15670
+ ), { render: $, exists: z } = useSchemaInitializerRender(
15665
15671
  n || (t == null ? void 0 : t["x-initializer"]),
15666
15672
  t == null ? void 0 : t["x-initializer-props"]
15667
- ), z = useGridRowContext(), j = useGridContext(), R = useMemo(() => {
15673
+ ), O = useGridRowContext(), j = useGridContext(), R = useMemo(() => {
15668
15674
  var q;
15669
15675
  return {
15670
15676
  insertPosition: "afterEnd",
15671
- wrap: ((q = z == null ? void 0 : z.cols) == null ? void 0 : q.length) === 1 ? gridRowColWrap : void 0,
15677
+ wrap: ((q = O == null ? void 0 : O.cols) == null ? void 0 : q.length) === 1 ? gridRowColWrap : void 0,
15672
15678
  Component: (E) => /* @__PURE__ */ jsx(
15673
15679
  PlusOutlined,
15674
15680
  F(x({}, E), {
@@ -15678,15 +15684,15 @@ const useGetAriaLabelOfDesigner = () => {
15678
15684
  })
15679
15685
  )
15680
15686
  };
15681
- }, [b, (O = z == null ? void 0 : z.cols) == null ? void 0 : O.length]), B = useMemo(() => u === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": b("drag-handler") }) }), [u, b]), M = useMemo(() => {
15687
+ }, [b, (L = O == null ? void 0 : O.cols) == null ? void 0 : L.length]), B = useMemo(() => u === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": b("drag-handler") }) }), [u, b]), M = useMemo(() => {
15682
15688
  var q;
15683
15689
  if (n === !1)
15684
15690
  return null;
15685
- if (L)
15691
+ if (z)
15686
15692
  return $(R);
15687
15693
  if (j != null && j.InitializerComponent || j != null && j.renderSchemaInitializer)
15688
15694
  return j != null && j.InitializerComponent ? /* @__PURE__ */ jsx(j.InitializerComponent, x({}, R)) : (q = j.renderSchemaInitializer) == null ? void 0 : q.call(j, R);
15689
- }, [j, n, R, L, $]), k = useMemo(() => r !== !1 && D ? A() : null, [D, A, r]), N = useRef(null);
15695
+ }, [j, n, R, z, $]), k = useMemo(() => r !== !1 && D ? A() : null, [D, A, r]), N = useRef(null);
15690
15696
  return useEffect(() => {
15691
15697
  const q = N.current;
15692
15698
  let E = q == null ? void 0 : q.parentElement;
@@ -17149,12 +17155,12 @@ const ActionLink = withDynamicSchemaProps(
17149
17155
  "onMouseEnter",
17150
17156
  "refreshDataBlockRequest",
17151
17157
  "confirmTitle"
17152
- ]), { t: v } = useTranslation(), I = useDesigner(), w = useField(), T = useFieldSchema(), A = useCompile(), D = useCollectionRecordData(), $ = A((H = T["x-component-props"]) == null ? void 0 : H.confirm) || g, L = useMemo(() => (T == null ? void 0 : T["x-linkage-rules"]) || [], [T == null ? void 0 : T["x-linkage-rules"]]), { designable: z } = useDesignable(), j = useComponent(n) || n, R = useVariables(), B = useLocalVariables({ currentForm: { values: D, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: k } = usePopupUtils(), { setSubmitted: N } = useActionContext(), { getAriaLabel: O } = useGetAriaLabelOfAction(l), q = useCollectionParentRecordData(), E = useMemo(() => {
17158
+ ]), { t: v } = useTranslation(), I = useDesigner(), w = useField(), T = useFieldSchema(), A = useCompile(), D = useCollectionRecordData(), $ = A((H = T["x-component-props"]) == null ? void 0 : H.confirm) || g, z = useMemo(() => (T == null ? void 0 : T["x-linkage-rules"]) || [], [T == null ? void 0 : T["x-linkage-rules"]]), { designable: O } = useDesignable(), j = useComponent(n) || n, R = useVariables(), B = useLocalVariables({ currentForm: { values: D, readPretty: !1 } }), { visibleWithURL: M, setVisibleWithURL: k } = usePopupUtils(), { setSubmitted: N } = useActionContext(), { getAriaLabel: L } = useGetAriaLabelOfAction(l), q = useCollectionParentRecordData(), E = useMemo(() => {
17153
17159
  const W = l || A(T.title);
17154
17160
  return _.isString(W) ? v(W) : W;
17155
17161
  }, [l, T.title, v]);
17156
17162
  useEffect(() => {
17157
- w.stateOfLinkageRules && setInitialActionState(w), w.stateOfLinkageRules = {}, L.filter((W) => !W.disabled).forEach((W) => {
17163
+ w.stateOfLinkageRules && setInitialActionState(w), w.stateOfLinkageRules = {}, z.filter((W) => !W.disabled).forEach((W) => {
17158
17164
  var X;
17159
17165
  (X = W.actions) == null || X.forEach((J) => {
17160
17166
  linkageAction({
@@ -17166,7 +17172,7 @@ const ActionLink = withDynamicSchemaProps(
17166
17172
  });
17167
17173
  });
17168
17174
  });
17169
- }, [w, L, B, R]);
17175
+ }, [w, z, B, R]);
17170
17176
  const U = useCallback(
17171
17177
  (W) => {
17172
17178
  C == null || C(W);
@@ -17178,7 +17184,7 @@ const ActionLink = withDynamicSchemaProps(
17178
17184
  x({
17179
17185
  containerRefKey: o,
17180
17186
  fieldSchema: T,
17181
- designable: z,
17187
+ designable: O,
17182
17188
  field: w,
17183
17189
  actionTitle: E,
17184
17190
  icon: a,
@@ -17201,7 +17207,7 @@ const ActionLink = withDynamicSchemaProps(
17201
17207
  visibleWithURL: M,
17202
17208
  setVisibleWithURL: k,
17203
17209
  setSubmitted: N,
17204
- getAriaLabel: O,
17210
+ getAriaLabel: L,
17205
17211
  parentRecordData: q,
17206
17212
  actionCallback: h
17207
17213
  }, y)
@@ -17236,8 +17242,8 @@ const ActionLink = withDynamicSchemaProps(
17236
17242
  actionCallback: A,
17237
17243
  visibleWithURL: D,
17238
17244
  setVisibleWithURL: $,
17239
- setSubmitted: L,
17240
- getAriaLabel: z,
17245
+ setSubmitted: z,
17246
+ getAriaLabel: O,
17241
17247
  parentRecordData: j
17242
17248
  } = ge, R = K(ge, [
17243
17249
  "containerRefKey",
@@ -17268,7 +17274,7 @@ const ActionLink = withDynamicSchemaProps(
17268
17274
  "setSubmitted",
17269
17275
  "getAriaLabel",
17270
17276
  "parentRecordData"
17271
- ]), [B, M] = useState(!1), { wrapSSR: k, componentCls: N, hashId: O } = useStyles$g(), [q, E] = useState(!1), U = n["x-toolbar-props"] || n["x-designer-props"], G = (ue = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : ue.openMode, H = (xe = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : xe.openSize, W = (de = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : de.refreshDataBlockRequest, { modal: X } = App.useApp(), J = useForm(), Y = useACLActionParamsContext(), { run: Q, element: Z, disabled: te } = (T == null ? void 0 : T(A)) || {}, ee = J.disabled || i.disabled || ((pe = i.data) == null ? void 0 : pe.disabled) || w || te, se = useMemo(() => {
17277
+ ]), [B, M] = useState(!1), { wrapSSR: k, componentCls: N, hashId: L } = useStyles$g(), [q, E] = useState(!1), U = n["x-toolbar-props"] || n["x-designer-props"], G = (ue = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : ue.openMode, H = (xe = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : xe.openSize, W = (de = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : de.refreshDataBlockRequest, { modal: X } = App.useApp(), J = useForm(), Y = useACLActionParamsContext(), { run: Q, element: Z, disabled: te } = (T == null ? void 0 : T(A)) || {}, ee = J.disabled || i.disabled || ((pe = i.data) == null ? void 0 : pe.disabled) || w || te, se = useMemo(() => {
17272
17278
  var ce;
17273
17279
  return F(x({}, I), {
17274
17280
  opacity: r && (((ce = i == null ? void 0 : i.data) == null ? void 0 : ce.hidden) || !Y) && 0.1,
@@ -17287,10 +17293,10 @@ const ActionLink = withDynamicSchemaProps(
17287
17293
  tarComponent: d,
17288
17294
  designerProps: U,
17289
17295
  componentCls: N,
17290
- hashId: O,
17296
+ hashId: L,
17291
17297
  className: p,
17292
17298
  others: R,
17293
- getAriaLabel: z,
17299
+ getAriaLabel: O,
17294
17300
  type: m,
17295
17301
  Designer: h,
17296
17302
  openMode: G,
@@ -17301,7 +17307,7 @@ const ActionLink = withDynamicSchemaProps(
17301
17307
  run: Q,
17302
17308
  confirm: f,
17303
17309
  modal: X,
17304
- setSubmitted: L,
17310
+ setSubmitted: z,
17305
17311
  confirmTitle: C
17306
17312
  };
17307
17313
  let le = /* @__PURE__ */ jsx(PopupVisibleProvider, { visible: !1, children: /* @__PURE__ */ jsxs(
@@ -17318,7 +17324,7 @@ const ActionLink = withDynamicSchemaProps(
17318
17324
  openSize: H,
17319
17325
  containerRefKey: o,
17320
17326
  fieldSchema: n,
17321
- setSubmitted: L,
17327
+ setSubmitted: z,
17322
17328
  children: [
17323
17329
  S && /* @__PURE__ */ jsx(RecursionField, { basePath: i.address, onlyRenderProperties: !0, schema: n }),
17324
17330
  !S && /* @__PURE__ */ jsx(RenderButton, x({}, ie)),
@@ -17398,24 +17404,24 @@ function RenderButton({
17398
17404
  confirm: A,
17399
17405
  modal: D,
17400
17406
  setSubmitted: $,
17401
- confirmTitle: L
17407
+ confirmTitle: z
17402
17408
  }) {
17403
- const z = useDataBlockRequest(), { t: j } = useTranslation(), { isPopupVisibleControlledByURL: R } = usePopupSettings(), { openPopup: B } = usePopupUtils(), M = useRef(null);
17404
- M.current = z;
17409
+ const O = useDataBlockRequest(), { t: j } = useTranslation(), { isPopupVisibleControlledByURL: R } = usePopupSettings(), { openPopup: B } = usePopupUtils(), M = useRef(null);
17410
+ M.current = O;
17405
17411
  const k = useRef(null);
17406
17412
  k.current = B;
17407
17413
  const N = useCallback(
17408
- (O, q = !0) => {
17409
- if (!(q && isPortalInBody(O.target)) && (O.preventDefault(), O.stopPropagation(), !a && o)) {
17414
+ (L, q = !0) => {
17415
+ if (!(q && isPortalInBody(L.target)) && (L.preventDefault(), L.stopPropagation(), !a && o)) {
17410
17416
  const E = () => {
17411
- y ? y(O, () => {
17417
+ y ? y(L, () => {
17412
17418
  var U, G;
17413
17419
  v !== !1 && ($ == null || $(!0), (G = (U = M.current) == null ? void 0 : U.refresh) == null || G.call(U));
17414
17420
  }) : isBulkEditAction(I) || !R() ? (w(!0), T == null || T()) : ["view", "update", "create", "customize:popup"].includes(I["x-action"]) && I["x-uid"] ? k.current() : (w(!0), T == null || T());
17415
17421
  };
17416
17422
  (A == null ? void 0 : A.enable) !== !1 && (A != null && A.content) ? D.confirm({
17417
- title: j(A.title, { title: L || n }),
17418
- content: j(A.content, { title: L || n }),
17423
+ title: j(A.title, { title: z || n }),
17424
+ content: j(A.content, { title: z || n }),
17419
17425
  onOk: E
17420
17426
  }) : E();
17421
17427
  }
@@ -17435,7 +17441,7 @@ function RenderButton({
17435
17441
  T,
17436
17442
  D,
17437
17443
  j,
17438
- L,
17444
+ z,
17439
17445
  n
17440
17446
  ]
17441
17447
  );
@@ -18036,19 +18042,19 @@ https://requirejs.org/docs/errors.html#` + e);
18036
18042
  config: {}
18037
18043
  }, l = {}, c = {}, u = {}, d = [], p = {}, m = {}, h = {}, g = 1, f = 1;
18038
18044
  function C(k) {
18039
- var N, O;
18045
+ var N, L;
18040
18046
  for (N = 0; N < k.length; N++)
18041
- if (O = k[N], O === ".")
18047
+ if (L = k[N], L === ".")
18042
18048
  k.splice(N, 1), N -= 1;
18043
- else if (O === "..") {
18049
+ else if (L === "..") {
18044
18050
  if (N === 0 || N === 1 && k[2] === ".." || k[N - 1] === "..")
18045
18051
  continue;
18046
18052
  N > 0 && (k.splice(N - 1, 2), N -= 2);
18047
18053
  }
18048
18054
  }
18049
- function S(k, N, O) {
18055
+ function S(k, N, L) {
18050
18056
  var q, E, U, G, H, W, X, J, Y, Q, Z, te, ee = N && N.split("/"), se = a.map, ie = se && se["*"];
18051
- if (k && (k = k.split("/"), X = k.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(k[X]) && (k[X] = k[X].replace(jsSuffixRegExp, "")), k[0].charAt(0) === "." && ee && (te = ee.slice(0, ee.length - 1), k = te.concat(k)), C(k), k = k.join("/")), O && se && (ee || ie)) {
18057
+ if (k && (k = k.split("/"), X = k.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(k[X]) && (k[X] = k[X].replace(jsSuffixRegExp, "")), k[0].charAt(0) === "." && ee && (te = ee.slice(0, ee.length - 1), k = te.concat(k)), C(k), k = k.join("/")), L && se && (ee || ie)) {
18052
18058
  U = k.split("/");
18053
18059
  e:
18054
18060
  for (G = U.length; G > 0; G -= 1) {
@@ -18079,14 +18085,14 @@ https://requirejs.org/docs/errors.html#` + e);
18079
18085
  })([k]), !0;
18080
18086
  }
18081
18087
  function v(k) {
18082
- var N, O = k ? k.indexOf("!") : -1;
18083
- return O > -1 && (N = k.substring(0, O), k = k.substring(O + 1, k.length)), [N, k];
18088
+ var N, L = k ? k.indexOf("!") : -1;
18089
+ return L > -1 && (N = k.substring(0, L), k = k.substring(L + 1, k.length)), [N, k];
18084
18090
  }
18085
- function I(k, N, O, q) {
18091
+ function I(k, N, L, q) {
18086
18092
  var E, U, G, H, W = null, X = N ? N.name : null, J = k, Y = !0, Q = "";
18087
- return k || (Y = !1, k = "_@r" + (g += 1)), H = v(k), W = H[0], k = H[1], W && (W = S(W, X, q), U = getOwn(p, W)), k && (W ? O ? Q = k : U && U.normalize ? Q = U.normalize(k, function(Z) {
18093
+ return k || (Y = !1, k = "_@r" + (g += 1)), H = v(k), W = H[0], k = H[1], W && (W = S(W, X, q), U = getOwn(p, W)), k && (W ? L ? Q = k : U && U.normalize ? Q = U.normalize(k, function(Z) {
18088
18094
  return S(Z, X, q);
18089
- }) : Q = k.indexOf("!") === -1 ? S(k, X, q) : k : (Q = S(k, X, q), H = v(Q), W = H[0], Q = H[1], O = !0, E = n.nameToUrl(Q))), G = W && !U && !O ? "_unnormalized" + (f += 1) : "", {
18095
+ }) : Q = k.indexOf("!") === -1 ? S(k, X, q) : k : (Q = S(k, X, q), H = v(Q), W = H[0], Q = H[1], L = !0, E = n.nameToUrl(Q))), G = W && !U && !L ? "_unnormalized" + (f += 1) : "", {
18090
18096
  prefix: W,
18091
18097
  name: Q,
18092
18098
  parentMap: N,
@@ -18098,16 +18104,16 @@ https://requirejs.org/docs/errors.html#` + e);
18098
18104
  };
18099
18105
  }
18100
18106
  function w(k) {
18101
- var N = k.id, O = getOwn(l, N);
18102
- return O || (O = l[N] = new n.Module(k)), O;
18107
+ var N = k.id, L = getOwn(l, N);
18108
+ return L || (L = l[N] = new n.Module(k)), L;
18103
18109
  }
18104
- function T(k, N, O) {
18110
+ function T(k, N, L) {
18105
18111
  var q = k.id, E = getOwn(l, q);
18106
- hasProp(p, q) && (!E || E.defineEmitComplete) ? N === "defined" && O(p[q]) : (E = w(k), E.error && N === "error" ? O(E.error) : E.on(N, O));
18112
+ hasProp(p, q) && (!E || E.defineEmitComplete) ? N === "defined" && L(p[q]) : (E = w(k), E.error && N === "error" ? L(E.error) : E.on(N, L));
18107
18113
  }
18108
18114
  function A(k, N) {
18109
- var O = k.requireModules, q = !1;
18110
- N ? N(k) : (each(O, function(E) {
18115
+ var L = k.requireModules, q = !1;
18116
+ N ? N(k) : (each(L, function(E) {
18111
18117
  var U = getOwn(l, E);
18112
18118
  U && (U.error = k, U.events.error && (q = !0, U.emit("error", k)));
18113
18119
  }), q || req.onError(k));
@@ -18140,15 +18146,15 @@ https://requirejs.org/docs/errors.html#` + e);
18140
18146
  function $(k) {
18141
18147
  delete l[k], delete c[k];
18142
18148
  }
18143
- function L(k, N, O) {
18149
+ function z(k, N, L) {
18144
18150
  var q = k.map.id;
18145
18151
  k.error ? k.emit("error", k.error) : (N[q] = !0, each(k.depMaps, function(E, U) {
18146
18152
  var G = E.id, H = getOwn(l, G);
18147
- H && !k.depMatched[U] && !O[G] && (getOwn(N, G) ? (k.defineDep(U, p[G]), k.check()) : L(H, N, O));
18148
- }), O[q] = !0);
18153
+ H && !k.depMatched[U] && !L[G] && (getOwn(N, G) ? (k.defineDep(U, p[G]), k.check()) : z(H, N, L));
18154
+ }), L[q] = !0);
18149
18155
  }
18150
- function z() {
18151
- var k, N, O = a.waitSeconds * 1e3, q = O && n.startTime + O < (/* @__PURE__ */ new Date()).getTime(), E = [], U = [], G = !1, H = !0;
18156
+ function O() {
18157
+ var k, N, L = a.waitSeconds * 1e3, q = L && n.startTime + L < (/* @__PURE__ */ new Date()).getTime(), E = [], U = [], G = !1, H = !0;
18152
18158
  if (!t) {
18153
18159
  if (t = !0, eachProp(c, function(W) {
18154
18160
  var X = W.map, J = X.id;
@@ -18161,19 +18167,19 @@ https://requirejs.org/docs/errors.html#` + e);
18161
18167
  }), q && E.length)
18162
18168
  return k = makeError("timeout", "Load timeout for modules: " + E, null, E), k.contextName = n.contextName, A(k);
18163
18169
  H && each(U, function(W) {
18164
- L(W, {}, {});
18170
+ z(W, {}, {});
18165
18171
  }), (!q || N) && G && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
18166
- i = 0, z();
18172
+ i = 0, O();
18167
18173
  }, 50)), t = !1;
18168
18174
  }
18169
18175
  }
18170
18176
  o = function(k) {
18171
18177
  this.events = getOwn(u, k.id) || {}, this.map = k, this.shim = getOwn(a.shim, k.id), this.depExports = [], this.depMaps = [], this.depMatched = [], this.pluginMaps = {}, this.depCount = 0;
18172
18178
  }, o.prototype = {
18173
- init: function(k, N, O, q) {
18174
- q = q || {}, !this.inited && (this.factory = N, O ? this.on("error", O) : this.events.error && (O = bind(this, function(E) {
18179
+ init: function(k, N, L, q) {
18180
+ q = q || {}, !this.inited && (this.factory = N, L ? this.on("error", L) : this.events.error && (L = bind(this, function(E) {
18175
18181
  this.emit("error", E);
18176
- })), this.depMaps = k && k.slice(0), this.errback = O, this.inited = !0, this.ignore = q.ignore, q.enabled || this.enabled ? this.enable() : this.check());
18182
+ })), this.depMaps = k && k.slice(0), this.errback = L, this.inited = !0, this.ignore = q.ignore, q.enabled || this.enabled ? this.enable() : this.check());
18177
18183
  },
18178
18184
  defineDep: function(k, N) {
18179
18185
  this.depMatched[k] || (this.depMatched[k] = !0, this.depCount -= 1, this.depExports[k] = N);
@@ -18202,9 +18208,9 @@ https://requirejs.org/docs/errors.html#` + e);
18202
18208
  */
18203
18209
  check: function() {
18204
18210
  if (!(!this.enabled || this.enabling)) {
18205
- var k, N, O = this.map.id, q = this.depExports, E = this.exports, U = this.factory;
18211
+ var k, N, L = this.map.id, q = this.depExports, E = this.exports, U = this.factory;
18206
18212
  if (!this.inited)
18207
- hasProp(n.defQueueMap, O) || this.fetch();
18213
+ hasProp(n.defQueueMap, L) || this.fetch();
18208
18214
  else if (this.error)
18209
18215
  this.emit("error", this.error);
18210
18216
  else if (!this.defining) {
@@ -18212,31 +18218,31 @@ https://requirejs.org/docs/errors.html#` + e);
18212
18218
  if (isFunction(U)) {
18213
18219
  if (this.events.error && this.map.isDefine || req.onError !== defaultOnError)
18214
18220
  try {
18215
- E = n.execCb(O, U, q, E);
18221
+ E = n.execCb(L, U, q, E);
18216
18222
  } catch (H) {
18217
18223
  k = H;
18218
18224
  }
18219
18225
  else
18220
- E = n.execCb(O, U, q, E);
18226
+ E = n.execCb(L, U, q, E);
18221
18227
  if (this.map.isDefine && E === void 0 && (N = this.module, N ? E = N.exports : this.usingExports && (E = this.exports)), k)
18222
18228
  return k.requireMap = this.map, k.requireModules = this.map.isDefine ? [this.map.id] : null, k.requireType = this.map.isDefine ? "define" : "require", A(this.error = k);
18223
18229
  } else
18224
18230
  E = U;
18225
- if (this.exports = E, this.map.isDefine && !this.ignore && (p[O] = E, req.onResourceLoad)) {
18231
+ if (this.exports = E, this.map.isDefine && !this.ignore && (p[L] = E, req.onResourceLoad)) {
18226
18232
  var G = [];
18227
18233
  each(this.depMaps, function(H) {
18228
18234
  G.push(H.normalizedMap || H);
18229
18235
  }), req.onResourceLoad(n, this.map, G);
18230
18236
  }
18231
- $(O), this.defined = !0;
18237
+ $(L), this.defined = !0;
18232
18238
  }
18233
18239
  this.defining = !1, this.defined && !this.defineEmitted && (this.defineEmitted = !0, this.emit("defined", this.exports), this.defineEmitComplete = !0);
18234
18240
  }
18235
18241
  }
18236
18242
  },
18237
18243
  callPlugin: function() {
18238
- var k = this.map, N = k.id, O = I(k.prefix);
18239
- this.depMaps.push(O), T(O, "defined", bind(this, function(q) {
18244
+ var k = this.map, N = k.id, L = I(k.prefix);
18245
+ this.depMaps.push(L), T(L, "defined", bind(this, function(q) {
18240
18246
  var E, U, G, H = getOwn(h, this.map.id), W = this.map.name, X = this.map.parentMap ? this.map.parentMap.name : null, J = n.makeRequire(k.parentMap, {
18241
18247
  enableBuildCallback: !0
18242
18248
  });
@@ -18292,11 +18298,11 @@ https://requirejs.org/docs/errors.html#` + e);
18292
18298
  }
18293
18299
  ee && (useInteractive = !0), this.depMaps.push(te), n.completeLoad(Z), J([Z], E);
18294
18300
  }), q.load(k.name, J, E, a);
18295
- })), n.enable(O, this), this.pluginMaps[O.id] = O;
18301
+ })), n.enable(L, this), this.pluginMaps[L.id] = L;
18296
18302
  },
18297
18303
  enable: function() {
18298
18304
  c[this.map.id] = this, this.enabled = !0, this.enabling = !0, each(this.depMaps, bind(this, function(k, N) {
18299
- var O, q, E;
18305
+ var L, q, E;
18300
18306
  if (typeof k == "string") {
18301
18307
  if (k = I(
18302
18308
  k,
@@ -18313,27 +18319,27 @@ https://requirejs.org/docs/errors.html#` + e);
18313
18319
  this.emit("error", U);
18314
18320
  }));
18315
18321
  }
18316
- O = k.id, q = l[O], !hasProp(r, O) && q && !q.enabled && n.enable(k, this);
18322
+ L = k.id, q = l[L], !hasProp(r, L) && q && !q.enabled && n.enable(k, this);
18317
18323
  })), eachProp(this.pluginMaps, bind(this, function(k) {
18318
18324
  var N = getOwn(l, k.id);
18319
18325
  N && !N.enabled && n.enable(k, this);
18320
18326
  })), this.enabling = !1, this.check();
18321
18327
  },
18322
18328
  on: function(k, N) {
18323
- var O = this.events[k];
18324
- O || (O = this.events[k] = []), O.push(N);
18329
+ var L = this.events[k];
18330
+ L || (L = this.events[k] = []), L.push(N);
18325
18331
  },
18326
18332
  emit: function(k, N) {
18327
- each(this.events[k], function(O) {
18328
- O(N);
18333
+ each(this.events[k], function(L) {
18334
+ L(N);
18329
18335
  }), k === "error" && delete this.events[k];
18330
18336
  }
18331
18337
  };
18332
18338
  function j(k) {
18333
18339
  hasProp(p, k[0]) || w(I(k[0], null, !0)).init(k[1], k[2]);
18334
18340
  }
18335
- function R(k, N, O, q) {
18336
- k.detachEvent && !isOpera ? q && k.detachEvent(q, N) : k.removeEventListener(O, N, !1);
18341
+ function R(k, N, L, q) {
18342
+ k.detachEvent && !isOpera ? q && k.detachEvent(q, N) : k.removeEventListener(L, N, !1);
18337
18343
  }
18338
18344
  function B(k) {
18339
18345
  var N = k.currentTarget || k.srcElement;
@@ -18374,7 +18380,7 @@ https://requirejs.org/docs/errors.html#` + e);
18374
18380
  return (U.indexOf("?") === -1 ? "?" : "&") + N;
18375
18381
  };
18376
18382
  }
18377
- var O = a.shim, q = {
18383
+ var L = a.shim, q = {
18378
18384
  paths: !0,
18379
18385
  bundles: !0,
18380
18386
  config: !0,
@@ -18389,8 +18395,8 @@ https://requirejs.org/docs/errors.html#` + e);
18389
18395
  }), k.shim && (eachProp(k.shim, function(E, U) {
18390
18396
  isArray(E) && (E = {
18391
18397
  deps: E
18392
- }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = n.makeShimExports(E)), O[U] = E;
18393
- }), a.shim = O), k.packages && each(k.packages, function(E) {
18398
+ }), (E.exports || E.init) && !E.exportsFn && (E.exportsFn = n.makeShimExports(E)), L[U] = E;
18399
+ }), a.shim = L), k.packages && each(k.packages, function(E) {
18394
18400
  var U, G;
18395
18401
  E = typeof E == "string" ? { name: E } : E, G = E.name, U = E.location, U && (a.paths[G] = E.location), a.pkgs[G] = E.name + "/" + (E.main || "main").replace(currDirRegExp, "").replace(jsSuffixRegExp, "");
18396
18402
  }), eachProp(l, function(E, U) {
@@ -18399,22 +18405,22 @@ https://requirejs.org/docs/errors.html#` + e);
18399
18405
  },
18400
18406
  makeShimExports: function(k) {
18401
18407
  function N() {
18402
- var O;
18403
- return k.init && (O = k.init.apply(global, arguments)), O || k.exports && getGlobal(k.exports);
18408
+ var L;
18409
+ return k.init && (L = k.init.apply(global, arguments)), L || k.exports && getGlobal(k.exports);
18404
18410
  }
18405
18411
  return N;
18406
18412
  },
18407
18413
  makeRequire: function(k, N) {
18408
18414
  N = N || {};
18409
- function O(q, E, U) {
18415
+ function L(q, E, U) {
18410
18416
  var G, H, W;
18411
- return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof q == "string" ? isFunction(E) ? A(makeError("requireargs", "Invalid require call"), U) : k && hasProp(r, q) ? r[q](l[k.id]) : req.get ? req.get(n, q, k, O) : (H = I(q, k, !1, !0), G = H.id, hasProp(p, G) ? p[G] : A(makeError("notloaded", 'Module name "' + G + '" has not been loaded yet for context: ' + e + (k ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
18417
+ return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof q == "string" ? isFunction(E) ? A(makeError("requireargs", "Invalid require call"), U) : k && hasProp(r, q) ? r[q](l[k.id]) : req.get ? req.get(n, q, k, L) : (H = I(q, k, !1, !0), G = H.id, hasProp(p, G) ? p[G] : A(makeError("notloaded", 'Module name "' + G + '" has not been loaded yet for context: ' + e + (k ? "" : ". Use require([])")))) : (M(), n.nextTick(function() {
18412
18418
  M(), W = w(I(null, k)), W.skipMap = N.skipMap, W.init(q, E, U, {
18413
18419
  enabled: !0
18414
- }), z();
18415
- }), O);
18420
+ }), O();
18421
+ }), L);
18416
18422
  }
18417
- return mixin(O, {
18423
+ return mixin(L, {
18418
18424
  isBrowser,
18419
18425
  /**
18420
18426
  * Converts a module name + .extension into an URL path.
@@ -18435,13 +18441,13 @@ https://requirejs.org/docs/errors.html#` + e);
18435
18441
  specified: function(q) {
18436
18442
  return q = I(q, k, !1, !0).id, hasProp(p, q) || hasProp(l, q);
18437
18443
  }
18438
- }), k || (O.undef = function(q) {
18444
+ }), k || (L.undef = function(q) {
18439
18445
  D();
18440
18446
  var E = I(q, k, !0), U = getOwn(l, q);
18441
18447
  U.undefed = !0, b(q), delete p[q], delete m[E.url], delete u[q], eachReverse(d, function(G, H) {
18442
18448
  G[0] === q && d.splice(H, 1);
18443
18449
  }), delete n.defQueueMap[q], U && (U.events.defined && (u[q] = U.events), $(q));
18444
- }), O;
18450
+ }), L;
18445
18451
  },
18446
18452
  /**
18447
18453
  * Called to enable a module if it is still in the registry
@@ -18460,15 +18466,15 @@ https://requirejs.org/docs/errors.html#` + e);
18460
18466
  * @param {String} moduleName the name of the module to potentially complete.
18461
18467
  */
18462
18468
  completeLoad: function(k) {
18463
- var N, O, q, E = getOwn(a.shim, k) || {}, U = E.exports;
18469
+ var N, L, q, E = getOwn(a.shim, k) || {}, U = E.exports;
18464
18470
  for (D(); d.length; ) {
18465
- if (O = d.shift(), O[0] === null) {
18466
- if (O[0] = k, N)
18471
+ if (L = d.shift(), L[0] === null) {
18472
+ if (L[0] = k, N)
18467
18473
  break;
18468
18474
  N = !0;
18469
18475
  } else
18470
- O[0] === k && (N = !0);
18471
- j(O);
18476
+ L[0] === k && (N = !0);
18477
+ j(L);
18472
18478
  }
18473
18479
  if (n.defQueueMap = {}, q = getOwn(l, k), !N && !hasProp(p, k) && q && !q.inited) {
18474
18480
  if (a.enforceDefine && (!U || !getGlobal(U)))
@@ -18480,7 +18486,7 @@ https://requirejs.org/docs/errors.html#` + e);
18480
18486
  ));
18481
18487
  j([k, E.deps || [], E.exportsFn]);
18482
18488
  }
18483
- z();
18489
+ O();
18484
18490
  },
18485
18491
  /**
18486
18492
  * Converts a module name to a file path. Supports cases where
@@ -18489,10 +18495,10 @@ https://requirejs.org/docs/errors.html#` + e);
18489
18495
  * it is assumed to have already been normalized. This is an
18490
18496
  * internal API, not a public one. Use toUrl for the public API.
18491
18497
  */
18492
- nameToUrl: function(k, N, O) {
18498
+ nameToUrl: function(k, N, L) {
18493
18499
  var q, E, U, G, H, W, X, J = getOwn(a.pkgs, k);
18494
18500
  if (J && (k = J), X = getOwn(h, k), X)
18495
- return n.nameToUrl(X, N, O);
18501
+ return n.nameToUrl(X, N, L);
18496
18502
  if (req.jsExtRegExp.test(k))
18497
18503
  H = k + (N || "");
18498
18504
  else {
@@ -18501,7 +18507,7 @@ https://requirejs.org/docs/errors.html#` + e);
18501
18507
  isArray(W) && (W = W[0]), E.splice(0, U, W);
18502
18508
  break;
18503
18509
  }
18504
- H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || O ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18510
+ H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || L ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
18505
18511
  }
18506
18512
  return a.urlArgs && !/^blob\:/.test(H) ? H + a.urlArgs(k, H) : H;
18507
18513
  },
@@ -18517,8 +18523,8 @@ https://requirejs.org/docs/errors.html#` + e);
18517
18523
  *
18518
18524
  * @private
18519
18525
  */
18520
- execCb: function(k, N, O, q) {
18521
- return N.apply(q, O);
18526
+ execCb: function(k, N, L, q) {
18527
+ return N.apply(q, L);
18522
18528
  },
18523
18529
  /**
18524
18530
  * callback for script loads, used to check status of loading.
@@ -18539,13 +18545,13 @@ https://requirejs.org/docs/errors.html#` + e);
18539
18545
  onScriptError: function(k) {
18540
18546
  var N = B(k);
18541
18547
  if (!y(N.id)) {
18542
- var O = [];
18548
+ var L = [];
18543
18549
  return eachProp(l, function(q, E) {
18544
18550
  E.indexOf("_@r") !== 0 && each(q.depMaps, function(U) {
18545
18551
  if (U.id === N.id)
18546
- return O.push(E), !0;
18552
+ return L.push(E), !0;
18547
18553
  });
18548
- }), A(makeError("scripterror", 'Script error for "' + N.id + (O.length ? '", needed by: ' + O.join(", ") : '"'), k, [N.id]));
18554
+ }), A(makeError("scripterror", 'Script error for "' + N.id + (L.length ? '", needed by: ' + L.join(", ") : '"'), k, [N.id]));
18549
18555
  }
18550
18556
  }
18551
18557
  }, n.require = n.makeRequire(), n;
@@ -19087,10 +19093,10 @@ const useCollectionManager_deprecated = (e) => {
19087
19093
  [t, p]
19088
19094
  ), v = useCallback(
19089
19095
  (R, B = !1, M) => {
19090
- var O;
19096
+ var L;
19091
19097
  if (!R)
19092
19098
  return [];
19093
- const k = (O = p(M)) == null ? void 0 : O.getCollection(R);
19099
+ const k = (L = p(M)) == null ? void 0 : L.getCollection(R);
19094
19100
  return (k == null ? void 0 : k.getChildrenCollections(B)) || [];
19095
19101
  },
19096
19102
  [t, p]
@@ -19106,7 +19112,7 @@ const useCollectionManager_deprecated = (e) => {
19106
19112
  const {
19107
19113
  association: k = !1,
19108
19114
  cached: N = {},
19109
- collectionNames: O = [R],
19115
+ collectionNames: L = [R],
19110
19116
  maxDepth: q = 1,
19111
19117
  allowAllTypes: E = !1,
19112
19118
  exceptInterfaces: U = [],
@@ -19114,7 +19120,7 @@ const useCollectionManager_deprecated = (e) => {
19114
19120
  usePrefix: H = !1,
19115
19121
  dataSource: W
19116
19122
  } = M || {};
19117
- if (O.length - 1 > q)
19123
+ if (L.length - 1 > q)
19118
19124
  return;
19119
19125
  if (N[R])
19120
19126
  return _.cloneDeep(N[R]);
@@ -19127,10 +19133,10 @@ const useCollectionManager_deprecated = (e) => {
19127
19133
  value: H && G ? `${G}.${Q.name}` : Q.name,
19128
19134
  label: f((te = Q == null ? void 0 : Q.uiSchema) == null ? void 0 : te.title) || Q.name
19129
19135
  }, Q);
19130
- return k && Q.target && (Z.children = O.includes(Q.target) ? [] : w(Q.target, B, F(x({}, M), {
19136
+ return k && Q.target && (Z.children = L.includes(Q.target) ? [] : w(Q.target, B, F(x({}, M), {
19131
19137
  cached: N,
19132
19138
  dataSource: W,
19133
- collectionNames: [...O, Q.target],
19139
+ collectionNames: [...L, Q.target],
19134
19140
  prefixFieldValue: H ? G ? `${G}.${Q.name}` : Q.name : "",
19135
19141
  usePrefix: H
19136
19142
  })), !((ee = Z.children) != null && ee.length)) ? null : Z;
@@ -19159,13 +19165,13 @@ const useCollectionManager_deprecated = (e) => {
19159
19165
  ), $ = useCallback(
19160
19166
  (R) => t == null ? void 0 : t.collectionFieldInterfaceManager.getFieldInterface(R),
19161
19167
  [t]
19162
- ), L = useCallback(
19168
+ ), z = useCallback(
19163
19169
  (R) => {
19164
19170
  var B;
19165
19171
  return (B = $(R.interface)) == null ? void 0 : B.titleUsable;
19166
19172
  },
19167
19173
  [$]
19168
- ), z = useCallback(
19174
+ ), O = useCallback(
19169
19175
  (R, B, M) => {
19170
19176
  var k, N;
19171
19177
  return (N = (k = p(M)) == null ? void 0 : k.getCollection(B)) == null ? void 0 : N.getParentCollectionFields(R);
@@ -19183,7 +19189,7 @@ const useCollectionManager_deprecated = (e) => {
19183
19189
  getTemplate: j,
19184
19190
  getInterface: $,
19185
19191
  getCollections: d,
19186
- getParentCollectionFields: z,
19192
+ getParentCollectionFields: O,
19187
19193
  getInheritCollections: y,
19188
19194
  getChildrenCollections: v,
19189
19195
  refreshCM: g,
@@ -19197,7 +19203,7 @@ const useCollectionManager_deprecated = (e) => {
19197
19203
  getCollectionJoinField: b,
19198
19204
  getAllCollectionsInheritChain: A,
19199
19205
  getInheritCollectionsChain: D,
19200
- isTitleField: L
19206
+ isTitleField: z
19201
19207
  };
19202
19208
  }, GetMenuItemContext = createContext(null);
19203
19209
  GetMenuItemContext.displayName = "GetMenuItemContext";
@@ -19423,7 +19429,7 @@ const useUserVariable = ({
19423
19429
  collectionField: e,
19424
19430
  noDisabled: r,
19425
19431
  targetFieldSchema: i
19426
- }), { urlSearchParamsSettings: L, shouldDisplay: z } = useURLSearchParamsVariable();
19432
+ }), { urlSearchParamsSettings: z, shouldDisplay: O } = useURLSearchParamsVariable();
19427
19433
  return useMemo(() => [
19428
19434
  u,
19429
19435
  d,
@@ -19436,7 +19442,7 @@ const useUserVariable = ({
19436
19442
  $ && D,
19437
19443
  w && I,
19438
19444
  A && T,
19439
- z && L
19445
+ O && z
19440
19446
  ].filter(Boolean).filter(l), [
19441
19447
  u,
19442
19448
  d,
@@ -19454,8 +19460,8 @@ const useUserVariable = ({
19454
19460
  D,
19455
19461
  w,
19456
19462
  I,
19457
- z,
19458
- L
19463
+ O,
19464
+ z
19459
19465
  ]);
19460
19466
  }, RemoveConditionContext = createContext(null);
19461
19467
  RemoveConditionContext.displayName = "RemoveConditionContext";
@@ -21510,7 +21516,7 @@ const SchemaSettingsProvider = (e) => {
21510
21516
  }, [JSON.stringify(r || {})]);
21511
21517
  const $ = useCallback(() => {
21512
21518
  h(!1), D.reset();
21513
- }, [D]), L = useCallback(() => V(void 0, null, function* () {
21519
+ }, [D]), z = useCallback(() => V(void 0, null, function* () {
21514
21520
  yield D.submit();
21515
21521
  try {
21516
21522
  const B = D.values, M = Object.keys(B).reduce((k, N) => (D.query(N).take() && (k[N] = B[N]), k), {});
@@ -21518,7 +21524,7 @@ const SchemaSettingsProvider = (e) => {
21518
21524
  } catch (B) {
21519
21525
  console.error(B);
21520
21526
  }
21521
- }), [D, o]), z = useCallback(() => V(void 0, null, function* () {
21527
+ }), [D, o]), O = useCallback(() => V(void 0, null, function* () {
21522
21528
  !g && (a != null && a["x-uid"]) && (S["x-action-settings"].schemaUid = a["x-uid"], y.emit("patch", { schema: S }), yield I.resource("uiSchemas").insert({ values: a }), f(a["x-uid"])), typeof i == "function" && (i == null || i()), b.setVisible(!1), h(!0);
21523
21529
  }), [I, b, y, S, a, g]), j = useCallback((B) => B.stopPropagation(), []);
21524
21530
  return /* @__PURE__ */ jsxs(zIndexContext.Provider, { value: A, children: [
@@ -21527,7 +21533,7 @@ const SchemaSettingsProvider = (e) => {
21527
21533
  F(x({
21528
21534
  title: v(t)
21529
21535
  }, p), {
21530
- onClick: z,
21536
+ onClick: O,
21531
21537
  onKeyDown: j,
21532
21538
  children: e.children || e.title
21533
21539
  })
@@ -21545,7 +21551,7 @@ const SchemaSettingsProvider = (e) => {
21545
21551
  zIndex: A,
21546
21552
  footer: /* @__PURE__ */ jsxs(Space$1, { children: [
21547
21553
  /* @__PURE__ */ jsx(Button, { onClick: $, children: C("Cancel") }),
21548
- /* @__PURE__ */ jsx(Button, { type: "primary", onClick: L, children: C("Submit") })
21554
+ /* @__PURE__ */ jsx(Button, { type: "primary", onClick: z, children: C("Submit") })
21549
21555
  ] }),
21550
21556
  children: /* @__PURE__ */ jsx(FormActiveFieldsProvider, { name: "form", getActiveFieldsName: w == null ? void 0 : w.getActiveFieldsName, children: /* @__PURE__ */ jsx(FormProvider, { form: D, children: /* @__PURE__ */ jsxs(FormLayout, { layout: "vertical", children: [
21551
21557
  c && /* @__PURE__ */ jsx(Alert, { message: c }),
@@ -21561,7 +21567,7 @@ const SchemaSettingsProvider = (e) => {
21561
21567
  });
21562
21568
  SchemaSettingsActionModalItem.displayName = "SchemaSettingsActionModalItem";
21563
21569
  const SchemaSettingsModalItem = (e) => {
21564
- const O = e, {
21570
+ const L = e, {
21565
21571
  hidden: t,
21566
21572
  title: o,
21567
21573
  components: n,
@@ -21573,7 +21579,7 @@ const SchemaSettingsModalItem = (e) => {
21573
21579
  width: u = "fit-content",
21574
21580
  noRecord: d = !1,
21575
21581
  ModalContextProvider: p = (q) => /* @__PURE__ */ jsx(Fragment, { children: q.children })
21576
- } = O, m = K(O, [
21582
+ } = L, m = K(L, [
21577
21583
  "hidden",
21578
21584
  "title",
21579
21585
  "components",
@@ -21585,7 +21591,7 @@ const SchemaSettingsModalItem = (e) => {
21585
21591
  "width",
21586
21592
  "noRecord",
21587
21593
  "ModalContextProvider"
21588
- ]), h = useContext(SchemaOptionsContext), g = useCollection_deprecated(), f = useAPIClient(), C = useApp(), { theme: S } = useGlobalTheme(), b = useBlockRequestContext(), y = useFormActiveFields(), { locale: v } = useContext(ConfigProvider.ConfigContext), I = useDataSourceManager(), w = useDataSourceKey(), T = useCollectionRecord(), { association: A } = useDataBlockProps() || {}, D = useFormBlockContext(), $ = useBlockContext(), { getOperators: L } = useOperators(), z = useLocationSearch(), j = useVariables(), { formValue: R, collection: B, parent: M } = useSubFormValue(), k = useCurrentPopupRecord(), N = useParentPopupRecord();
21594
+ ]), h = useContext(SchemaOptionsContext), g = useCollection_deprecated(), f = useAPIClient(), C = useApp(), { theme: S } = useGlobalTheme(), b = useBlockRequestContext(), y = useFormActiveFields(), { locale: v } = useContext(ConfigProvider.ConfigContext), I = useDataSourceManager(), w = useDataSourceKey(), T = useCollectionRecord(), { association: A } = useDataBlockProps() || {}, D = useFormBlockContext(), $ = useBlockContext(), { getOperators: z } = useOperators(), O = useLocationSearch(), j = useVariables(), { formValue: R, collection: B, parent: M } = useSubFormValue(), k = useCurrentPopupRecord(), N = useParentPopupRecord();
21589
21595
  return t ? null : /* @__PURE__ */ jsx(
21590
21596
  SchemaSettingsItem,
21591
21597
  F(x({
@@ -21595,7 +21601,7 @@ const SchemaSettingsModalItem = (e) => {
21595
21601
  const q = l ? yield l() : c, E = _.isFunction(e.schema) ? e.schema() : e.schema;
21596
21602
  FormDialog(
21597
21603
  { title: E.title || o, width: u },
21598
- () => /* @__PURE__ */ jsx(p, { children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: L(), children: /* @__PURE__ */ jsx(VariablesContext.Provider, { value: j, children: /* @__PURE__ */ jsx(BlockContext.Provider, { value: $, children: /* @__PURE__ */ jsx(
21604
+ () => /* @__PURE__ */ jsx(p, { children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: z(), children: /* @__PURE__ */ jsx(VariablesContext.Provider, { value: j, children: /* @__PURE__ */ jsx(BlockContext.Provider, { value: $, children: /* @__PURE__ */ jsx(
21599
21605
  VariablePopupRecordProvider,
21600
21606
  {
21601
21607
  recordData: k == null ? void 0 : k.value,
@@ -21609,7 +21615,7 @@ const SchemaSettingsModalItem = (e) => {
21609
21615
  {
21610
21616
  name: "form",
21611
21617
  getActiveFieldsName: y == null ? void 0 : y.getActiveFieldsName,
21612
- children: /* @__PURE__ */ jsx(LocationSearchContext.Provider, { value: z, children: /* @__PURE__ */ jsx(BlockRequestContext_deprecated.Provider, { value: b, children: /* @__PURE__ */ jsx(DataSourceApplicationProvider, { dataSourceManager: I, dataSource: w, children: /* @__PURE__ */ jsx(
21618
+ children: /* @__PURE__ */ jsx(LocationSearchContext.Provider, { value: O, children: /* @__PURE__ */ jsx(BlockRequestContext_deprecated.Provider, { value: b, children: /* @__PURE__ */ jsx(DataSourceApplicationProvider, { dataSourceManager: I, dataSource: w, children: /* @__PURE__ */ jsx(
21613
21619
  AssociationOrCollectionProvider,
21614
21620
  {
21615
21621
  allowNull: !0,
@@ -21756,8 +21762,8 @@ const SchemaSettingsModalItem = (e) => {
21756
21762
  }
21757
21763
  );
21758
21764
  }, SchemaSettingsLinkageRules = function e(t) {
21759
- var L;
21760
- const { collectionName: o, readPretty: n, Component: r, afterSubmit: i } = t, a = useFieldSchema(), { form: l } = useFormBlockContext(), { dn: c } = useDesignable(), { t: u } = useTranslation(), { getTemplateById: d } = useSchemaTemplateManager(), p = useVariables(), m = useLocalVariables(), h = useRecord(), { type: g } = useFormBlockType(), f = (L = t == null ? void 0 : t.category) != null ? L : LinkageRuleCategory.default, C = (t == null ? void 0 : t.type) || (a != null && a["x-action"] || ["Action", "Action.Link"].includes(a["x-component"]) ? "button" : "field"), S = findGridSchema(a) || a, b = useLinkageCollectionFilterOptions(o), y = useLinkageCollectionFieldOptions(o, n), v = {
21765
+ var z;
21766
+ const { collectionName: o, readPretty: n, Component: r, afterSubmit: i } = t, a = useFieldSchema(), { form: l } = useFormBlockContext(), { dn: c } = useDesignable(), { t: u } = useTranslation(), { getTemplateById: d } = useSchemaTemplateManager(), p = useVariables(), m = useLocalVariables(), h = useRecord(), { type: g } = useFormBlockType(), f = (z = t == null ? void 0 : t.category) != null ? z : LinkageRuleCategory.default, C = (t == null ? void 0 : t.type) || (a != null && a["x-action"] || ["Action", "Action.Link"].includes(a["x-component"]) ? "button" : "field"), S = findGridSchema(a) || a, b = useLinkageCollectionFilterOptions(o), y = useLinkageCollectionFieldOptions(o, n), v = {
21761
21767
  [LinkageRuleCategory.default]: u("Linkage rules"),
21762
21768
  [LinkageRuleCategory.style]: u("Style")
21763
21769
  }, I = LinkageRuleDataKeyMap[f], w = useCallback(() => (S == null ? void 0 : S[I]) || (a == null ? void 0 : a[I]) || [], [S, a, I]), T = v[f], A = useMemo(
@@ -21785,10 +21791,10 @@ const SchemaSettingsModalItem = (e) => {
21785
21791
  }),
21786
21792
  [o, a, l, S, m, h, u, p, w, r]
21787
21793
  ), D = useMemo(() => ({ ArrayCollapse: ArrayCollapse$2, FormLayout }), []), $ = useCallback(
21788
- (z) => {
21794
+ (O) => {
21789
21795
  var k;
21790
21796
  const j = [];
21791
- for (const N of z.fieldReaction.rules)
21797
+ for (const N of O.fieldReaction.rules)
21792
21798
  j.push(_.pickBy(N, _.identity));
21793
21799
  const R = S["x-component"] === "BlockTemplate" && ((k = S["x-component-props"]) == null ? void 0 : k.templateId), M = {
21794
21800
  "x-uid": R && d(R).uid || S["x-uid"]
@@ -22469,10 +22475,10 @@ const useColumnSchema$1 = () => {
22469
22475
  "x-uid": o["x-uid"]
22470
22476
  };
22471
22477
  (n.componentProps.picker || "date") !== D.picker && !m && n.value && (n.value = void 0, n.initialValue = void 0, o.default = void 0, $.default = void 0), $["x-component-props"] = n.componentProps || {}, o["x-component-props"] = x(x({}, n.componentProps || {}), D), $["x-component-props"] = o["x-component-props"], n.componentProps = o["x-component-props"];
22472
- const L = n.path.entire.split(".");
22473
- L.pop();
22474
- const z = L.join(".");
22475
- n.query(`${z}.*[0:].${o.name}`).forEach((j) => {
22478
+ const z = n.path.entire.split(".");
22479
+ z.pop();
22480
+ const O = z.join(".");
22481
+ n.query(`${O}.*[0:].${o.name}`).forEach((j) => {
22476
22482
  j.props.name === o.name && ((n.componentProps.picker || "date") !== D.picker && !m && (j.value = void 0, j.initialValue = void 0), j.setComponentProps(x({}, D)));
22477
22483
  }), r.emit("patch", {
22478
22484
  schema: $
@@ -22494,7 +22500,7 @@ const getActionContext = (e) => {
22494
22500
  var o;
22495
22501
  return ((o = e.fieldSchema) == null ? void 0 : o["x-action-context"]) || {};
22496
22502
  }, SchemaSettingsDefaultValue = function e(t) {
22497
- var k, N, O;
22503
+ var k, N, L;
22498
22504
  const o = useFieldSchema(), n = (k = t == null ? void 0 : t.fieldSchema) != null ? k : o, r = useField(), { dn: i } = useDesignable(), { t: a } = useTranslation(), l = useActionContext(), c = getActionContext(l).collection;
22499
22505
  let u;
22500
22506
  const { getField: d } = useCollection_deprecated(), { getCollectionJoinField: p, getCollectionFields: m, getAllCollectionsInheritChain: h } = useCollectionManager_deprecated(), g = useVariables(), f = useLocalVariables(), C = useCollection_deprecated(), S = useRecord(), { form: b } = useFormBlockContext(), { getFields: y } = useCollectionFilterOptionsV2(C), { isInSubForm: v, isInSubTable: I } = useFlag() || {}, { name: w } = C, T = useMemo(
@@ -22502,9 +22508,9 @@ const getActionContext = (e) => {
22502
22508
  [n, p, d]
22503
22509
  ), A = _.omit(n, "required");
22504
22510
  T != null && T.target && (u = p(
22505
- `${T.target}.${((O = (N = n["x-component-props"]) == null ? void 0 : N.fieldNames) == null ? void 0 : O.label) || "id"}`
22511
+ `${T.target}.${((L = (N = n["x-component-props"]) == null ? void 0 : N.fieldNames) == null ? void 0 : L.label) || "id"}`
22506
22512
  ));
22507
- const D = (T == null ? void 0 : T.interface) === "m2o" && findParentFieldSchema(n), $ = D && p(D == null ? void 0 : D["x-collection-field"]), L = useTableBlockContext(), z = (T == null ? void 0 : T.interface) === "m2m" || ($ == null ? void 0 : $.type) === "hasMany" && (T == null ? void 0 : T.interface) === "m2o", j = useCallback(
22513
+ const D = (T == null ? void 0 : T.interface) === "m2o" && findParentFieldSchema(n), $ = D && p(D == null ? void 0 : D["x-collection-field"]), z = useTableBlockContext(), O = (T == null ? void 0 : T.interface) === "m2m" || ($ == null ? void 0 : $.type) === "hasMany" && (T == null ? void 0 : T.interface) === "m2o", j = useCallback(
22508
22514
  (q) => {
22509
22515
  const E = q.find((G) => G.value === "$nForm"), U = m(w);
22510
22516
  return !(U != null && U.length) && E && (E.children = formatVariableScop(y())), q;
@@ -22529,7 +22535,7 @@ const getActionContext = (e) => {
22529
22535
  "x-component": "VariableInput",
22530
22536
  "x-component-props": F(x({}, (n == null ? void 0 : n["x-component-props"]) || {}), {
22531
22537
  collectionField: T,
22532
- contextCollectionName: z ? c : "",
22538
+ contextCollectionName: O ? c : "",
22533
22539
  schema: T == null ? void 0 : T.uiSchema,
22534
22540
  targetFieldSchema: n,
22535
22541
  className: defaultInputStyle,
@@ -22577,12 +22583,12 @@ const getActionContext = (e) => {
22577
22583
  A,
22578
22584
  b,
22579
22585
  h,
22580
- z,
22586
+ O,
22581
22587
  f,
22582
22588
  S,
22583
22589
  j,
22584
22590
  a,
22585
- L.collection,
22591
+ z.collection,
22586
22592
  u,
22587
22593
  g
22588
22594
  ]), M = useCallback(
@@ -23352,8 +23358,8 @@ const useGetFilterOptions = () => {
23352
23358
  };
23353
23359
  });
23354
23360
  }, TableColumnDesigner$1 = (e) => {
23355
- var L, z, j, R, B, M, k, N, O, q, E, U;
23356
- const { uiSchema: t, fieldSchema: o, collectionField: n } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((L = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : L.fieldNames) || ((z = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : z.fieldNames), m = useLabelFields$1((j = n == null ? void 0 : n.target) != null ? j : n == null ? void 0 : n.targetCollection), h = useColorFields((R = n == null ? void 0 : n.target) != null ? R : n == null ? void 0 : n.targetCollection), g = i(n == null ? void 0 : n.interface), f = a(n == null ? void 0 : n.target), C = isFileCollection$2(f), S = ["QuickEdit", "FormItem"].includes(o["x-decorator"]), { currentMode: b } = useAssociationFieldContext(), { isAllowToSetDefaultValue: y } = useIsAllowToSetDefaultValue({ collectionField: n, fieldSchema: o }), v = ["datetime", "createdAt", "updatedAt"].includes(n == null ? void 0 : n.interface), I = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
23361
+ var z, O, j, R, B, M, k, N, L, q, E, U;
23362
+ const { uiSchema: t, fieldSchema: o, collectionField: n } = e, { form: r } = useFormBlockContext(), { getInterface: i, getCollection: a } = useCollectionManager_deprecated(), l = useField(), { t: c } = useTranslation(), u = useFieldSchema(), { dn: d } = useDesignable(), p = ((z = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : z.fieldNames) || ((O = t == null ? void 0 : t["x-component-props"]) == null ? void 0 : O.fieldNames), m = useLabelFields$1((j = n == null ? void 0 : n.target) != null ? j : n == null ? void 0 : n.targetCollection), h = useColorFields((R = n == null ? void 0 : n.target) != null ? R : n == null ? void 0 : n.targetCollection), g = i(n == null ? void 0 : n.interface), f = a(n == null ? void 0 : n.target), C = isFileCollection$2(f), S = ["QuickEdit", "FormItem"].includes(o["x-decorator"]), { currentMode: b } = useAssociationFieldContext(), { isAllowToSetDefaultValue: y } = useIsAllowToSetDefaultValue({ collectionField: n, fieldSchema: o }), v = ["datetime", "createdAt", "updatedAt"].includes(n == null ? void 0 : n.interface), I = ["obo", "oho", "o2o", "o2m", "m2m", "m2o", "snapshot"].includes(
23357
23363
  n == null ? void 0 : n.interface
23358
23364
  ), w = useFieldModeOptions({ fieldSchema: o }), T = ((B = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : B.mode) || "Select";
23359
23365
  let A = "editable";
@@ -23395,7 +23401,7 @@ const useGetFilterOptions = () => {
23395
23401
  SchemaSettingsDataScope,
23396
23402
  {
23397
23403
  collectionName: n == null ? void 0 : n.target,
23398
- defaultFilter: ((O = (N = (k = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : k.service) == null ? void 0 : N.params) == null ? void 0 : O.filter) || {},
23404
+ defaultFilter: ((L = (N = (k = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : k.service) == null ? void 0 : N.params) == null ? void 0 : L.filter) || {},
23399
23405
  form: r,
23400
23406
  onSubmit: ({ filter: G }) => {
23401
23407
  var W, X;
@@ -24587,10 +24593,10 @@ function useCollectValuesToSubmit() {
24587
24593
  resource: n,
24588
24594
  actionFields: (d == null ? void 0 : d("form")) || []
24589
24595
  }), b = {}, y = Object.keys(f).map((D) => V(this, null, function* () {
24590
- const $ = f[D], L = i(D);
24596
+ const $ = f[D], z = i(D);
24591
24597
  if (isVariable($)) {
24592
- const { value: z } = (yield p == null ? void 0 : p.parseVariable($, m)) || {};
24593
- z != null && (b[D] = transformVariableValue(z, { targetCollectionField: L }));
24598
+ const { value: O } = (yield p == null ? void 0 : p.parseVariable($, m)) || {};
24599
+ O != null && (b[D] = transformVariableValue(O, { targetCollectionField: z }));
24594
24600
  } else
24595
24601
  $ != null && $ !== "" && (b[D] = $);
24596
24602
  }));
@@ -24623,29 +24629,29 @@ const useCreateActionProps = () => {
24623
24629
  onClick() {
24624
24630
  return V(this, null, function* () {
24625
24631
  var j;
24626
- const { onSuccess: v, skipValidator: I, triggerWorkflows: w } = (j = u == null ? void 0 : u["x-action-settings"]) != null ? j : {}, { manualClose: T, redirecting: A, redirectTo: D, successMessage: $, actionAfterSuccess: L } = v || {};
24632
+ const { onSuccess: v, skipValidator: I, triggerWorkflows: w } = (j = u == null ? void 0 : u["x-action-settings"]) != null ? j : {}, { manualClose: T, redirecting: A, redirectTo: D, successMessage: $, actionAfterSuccess: z } = v || {};
24627
24633
  I || (yield o.submit());
24628
- const z = yield f();
24634
+ const O = yield f();
24629
24635
  d.data = n.data || {}, d.data.loading = !0;
24630
24636
  try {
24631
24637
  const R = yield r[C]({
24632
- values: z,
24638
+ values: O,
24633
24639
  filterKeys: S,
24634
24640
  filterByTk: e,
24635
24641
  // TODO(refactor): should change to inject by plugin
24636
24642
  triggerWorkflows: w != null && w.length ? w.map((B) => [B.workflowKey, B.context].filter(Boolean).join("!")).join(",") : void 0,
24637
24643
  updateAssociationValues: g
24638
24644
  });
24639
- if ((L === "previous" || !L && A !== !0) && (i == null || i(!1)), a == null || a(!0), l == null || l(!1), d.data.loading = !1, d.data.data = R, !$) {
24640
- message.success(h("Saved successfully")), yield resetFormCorrectly(o), (A && !L || L === "redirect") && D && (isURL(D) ? window.location.href = D : c(D));
24645
+ if ((z === "previous" || !z && A !== !0) && (i == null || i(!1)), a == null || a(!0), l == null || l(!1), d.data.loading = !1, d.data.data = R, !$) {
24646
+ message.success(h("Saved successfully")), yield resetFormCorrectly(o), (A && !z || z === "redirect") && D && (isURL(D) ? window.location.href = D : c(D));
24641
24647
  return;
24642
24648
  }
24643
24649
  T ? m.success({
24644
24650
  title: p($),
24645
24651
  onOk: () => V(this, null, function* () {
24646
- yield resetFormCorrectly(o), (A && !L || L === "redirect") && D && (isURL(D) ? window.location.href = D : c(D));
24652
+ yield resetFormCorrectly(o), (A && !z || z === "redirect") && D && (isURL(D) ? window.location.href = D : c(D));
24647
24653
  })
24648
- }) : (message.success(p($)), yield resetFormCorrectly(o), (A && !L || L === "redirect") && D && (isURL(D) ? window.location.href = D : c(D)));
24654
+ }) : (message.success(p($)), yield resetFormCorrectly(o), (A && !z || z === "redirect") && D && (isURL(D) ? window.location.href = D : c(D)));
24649
24655
  } catch (R) {
24650
24656
  d.data.loading = !1;
24651
24657
  }
@@ -24658,14 +24664,14 @@ const useCreateActionProps = () => {
24658
24664
  return {
24659
24665
  onClick() {
24660
24666
  return V(this, null, function* () {
24661
- var N, O, q, E, U, G;
24667
+ var N, L, q, E, U, G;
24662
24668
  const T = u.map((H) => H.name), {
24663
24669
  assignedValues: A = {},
24664
24670
  onSuccess: D,
24665
24671
  overwriteValues: $,
24666
- skipValidator: L,
24667
- triggerWorkflows: z
24668
- } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, j = (O = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : O.addChild, { successMessage: R } = D || {}, B = {}, M = Object.keys(A).map((H) => V(this, null, function* () {
24672
+ skipValidator: z,
24673
+ triggerWorkflows: O
24674
+ } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, j = (L = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : L.addChild, { successMessage: R } = D || {}, B = {}, M = Object.keys(A).map((H) => V(this, null, function* () {
24669
24675
  const W = A[H], X = d(H);
24670
24676
  if (isVariable(W)) {
24671
24677
  const { value: J } = (yield C == null ? void 0 : C.parseVariable(W, S)) || {};
@@ -24673,7 +24679,7 @@ const useCreateActionProps = () => {
24673
24679
  } else
24674
24680
  W != null && W !== "" && (B[H] = W);
24675
24681
  }));
24676
- yield Promise.all(M), L || (yield e.submit());
24682
+ yield Promise.all(M), z || (yield e.submit());
24677
24683
  const k = getFormValues({
24678
24684
  filterByTk: g,
24679
24685
  field: t,
@@ -24693,7 +24699,7 @@ const useCreateActionProps = () => {
24693
24699
  values: x(x(x({}, k), $), B),
24694
24700
  filterKeys: v,
24695
24701
  // TODO(refactor): should change to inject by plugin
24696
- triggerWorkflows: z != null && z.length ? z.map((W) => [W.workflowKey, W.context].filter(Boolean).join("!")).join(",") : void 0
24702
+ triggerWorkflows: O != null && O.length ? O.map((W) => [W.workflowKey, W.context].filter(Boolean).join("!")).join(",") : void 0
24697
24703
  });
24698
24704
  if (c.data.loading = !1, c.data.data = H, (G = (U = n == null ? void 0 : n.service) == null ? void 0 : U.refresh) == null || G.call(U), r == null || r(!1), a == null || a(!0), !R)
24699
24705
  return;
@@ -24800,13 +24806,13 @@ const useCreateActionProps = () => {
24800
24806
  return {
24801
24807
  onClick(f, C) {
24802
24808
  return V(this, null, function* () {
24803
- var z, j, R;
24809
+ var O, j, R;
24804
24810
  const {
24805
24811
  assignedValues: S = {},
24806
24812
  onSuccess: b,
24807
24813
  skipValidator: y,
24808
24814
  triggerWorkflows: v
24809
- } = (z = r == null ? void 0 : r["x-action-settings"]) != null ? z : {}, { manualClose: I, redirecting: w, redirectTo: T, successMessage: A, actionAfterSuccess: D } = b || {}, $ = {}, L = Object.keys(S).map((B) => V(this, null, function* () {
24815
+ } = (O = r == null ? void 0 : r["x-action-settings"]) != null ? O : {}, { manualClose: I, redirecting: w, redirectTo: T, successMessage: A, actionAfterSuccess: D } = b || {}, $ = {}, z = Object.keys(S).map((B) => V(this, null, function* () {
24810
24816
  const M = S[B], k = m(B);
24811
24817
  if (isVariable(M)) {
24812
24818
  const { value: N } = (yield u == null ? void 0 : u.parseVariable(M, d)) || {};
@@ -24814,7 +24820,7 @@ const useCreateActionProps = () => {
24814
24820
  } else
24815
24821
  M != null && M !== "" && ($[B] = M);
24816
24822
  }));
24817
- yield Promise.all(L), y === !1 && (yield l.submit()), yield e.update({
24823
+ yield Promise.all(z), y === !1 && (yield l.submit()), yield e.update({
24818
24824
  filterByTk: n,
24819
24825
  values: x({}, $),
24820
24826
  // TODO(refactor): should change to inject by plugin
@@ -24841,7 +24847,7 @@ const useCreateActionProps = () => {
24841
24847
  assignedValues: A = {},
24842
24848
  onSuccess: D,
24843
24849
  updateMode: $
24844
- } = (N = i == null ? void 0 : i["x-action-settings"]) != null ? N : {}, { manualClose: L, redirecting: z, redirectTo: j, successMessage: R, actionAfterSuccess: B } = D || {};
24850
+ } = (N = i == null ? void 0 : i["x-action-settings"]) != null ? N : {}, { manualClose: z, redirecting: O, redirectTo: j, successMessage: R, actionAfterSuccess: B } = D || {};
24845
24851
  m.data = e.data || {}, m.data.loading = !0;
24846
24852
  const M = {}, k = Object.keys(A).map((q) => V(this, null, function* () {
24847
24853
  const E = A[q], U = C(q);
@@ -24851,7 +24857,7 @@ const useCreateActionProps = () => {
24851
24857
  } else
24852
24858
  E != null && E !== "" && (M[q] = E);
24853
24859
  }));
24854
- yield Promise.all(k), (B === "previous" || !B && z !== !0) && (b == null || b(!1)), h.confirm({
24860
+ yield Promise.all(k), (B === "previous" || !B && O !== !0) && (b == null || b(!1)), h.confirm({
24855
24861
  title: p("Bulk update"),
24856
24862
  content: p($ === "selected" ? "Update selected data?" : "Update all data?"),
24857
24863
  onOk() {
@@ -24876,12 +24882,12 @@ const useCreateActionProps = () => {
24876
24882
  } finally {
24877
24883
  m.data.loading = !1;
24878
24884
  }
24879
- t instanceof TableFieldResource || (W = (H = o == null ? void 0 : o.service) == null ? void 0 : H.refresh) == null || W.call(H), R && (L ? h.success({
24885
+ t instanceof TableFieldResource || (W = (H = o == null ? void 0 : o.service) == null ? void 0 : H.refresh) == null || W.call(H), R && (z ? h.success({
24880
24886
  title: d(R),
24881
24887
  onOk: () => V(this, null, function* () {
24882
- (z && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j));
24888
+ (O && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j));
24883
24889
  })
24884
- }) : (message.success(d(R)), (z && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j))));
24890
+ }) : (message.success(d(R)), (O && !B || B === "redirect") && j && (isURL(j) ? window.location.href = j : u(j))));
24885
24891
  });
24886
24892
  },
24887
24893
  onCancel() {
@@ -24900,7 +24906,7 @@ const useCreateActionProps = () => {
24900
24906
  onClick() {
24901
24907
  return V(this, null, function* () {
24902
24908
  var q, E, U, G;
24903
- const { skipValidator: w, onSuccess: T, requestSettings: A } = (q = n == null ? void 0 : n["x-action-settings"]) != null ? q : {}, { manualClose: D, redirecting: $, redirectTo: L, successMessage: z, actionAfterSuccess: j } = T || {}, R = n == null ? void 0 : n["x-action"];
24909
+ const { skipValidator: w, onSuccess: T, requestSettings: A } = (q = n == null ? void 0 : n["x-action-settings"]) != null ? q : {}, { manualClose: D, redirecting: $, redirectTo: z, successMessage: O, actionAfterSuccess: j } = T || {}, R = n == null ? void 0 : n["x-action"];
24904
24910
  if (!A.url)
24905
24911
  return;
24906
24912
  w !== !0 && R === "customize:form:request" && (yield i.submit());
@@ -24917,7 +24923,7 @@ const useCreateActionProps = () => {
24917
24923
  });
24918
24924
  Object.assign(k, W);
24919
24925
  }
24920
- const O = {
24926
+ const L = {
24921
24927
  url: renderTemplate(A.url, { currentRecord: m, currentUser: g }),
24922
24928
  method: A.method,
24923
24929
  headers: parse(B)({ currentRecord: m, currentUser: g }),
@@ -24926,12 +24932,12 @@ const useCreateActionProps = () => {
24926
24932
  };
24927
24933
  f.data = c.data || {}, f.data.loading = !0;
24928
24934
  try {
24929
- yield e.request(x({}, O)), f.data.loading = !1, u instanceof TableFieldResource || (U = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || U.call(E), (G = p == null ? void 0 : p.refresh) == null || G.call(p), R === "customize:form:request" && (j === "previous" || !j && $ !== !0) && (S == null || S(!1)), z || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), ($ && !j || j === "redirect") && L && (isURL(L) ? window.location.href = L : t(L))), D ? b.success({
24930
- title: r(z),
24935
+ yield e.request(x({}, L)), f.data.loading = !1, u instanceof TableFieldResource || (U = (E = d == null ? void 0 : d.service) == null ? void 0 : E.refresh) == null || U.call(E), (G = p == null ? void 0 : p.refresh) == null || G.call(p), R === "customize:form:request" && (j === "previous" || !j && $ !== !0) && (S == null || S(!1)), O || (message.success(C("Saved successfully")), yield resetFormCorrectly(i), ($ && !j || j === "redirect") && z && (isURL(z) ? window.location.href = z : t(z))), D ? b.success({
24936
+ title: r(O),
24931
24937
  onOk: () => V(this, null, function* () {
24932
- ($ && !j || j === "redirect") && L && (isURL(L) ? window.location.href = L : t(L));
24938
+ ($ && !j || j === "redirect") && z && (isURL(z) ? window.location.href = z : t(z));
24933
24939
  })
24934
- }) : message.success(r(z));
24940
+ }) : message.success(r(O));
24935
24941
  } finally {
24936
24942
  f.data.loading = !1;
24937
24943
  }
@@ -24949,8 +24955,8 @@ const useCreateActionProps = () => {
24949
24955
  onSuccess: A,
24950
24956
  overwriteValues: D,
24951
24957
  skipValidator: $,
24952
- triggerWorkflows: L
24953
- } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: z, redirecting: j, redirectTo: R, successMessage: B, actionAfterSuccess: M } = A || {}, k = {}, N = Object.keys(T).map((U) => V(this, null, function* () {
24958
+ triggerWorkflows: z
24959
+ } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: O, redirecting: j, redirectTo: R, successMessage: B, actionAfterSuccess: M } = A || {}, k = {}, N = Object.keys(T).map((U) => V(this, null, function* () {
24954
24960
  const G = T[U], H = d(U);
24955
24961
  if (isVariable(G)) {
24956
24962
  const { value: W } = (yield S == null ? void 0 : S.parseVariable(G, b)) || {};
@@ -24959,11 +24965,11 @@ const useCreateActionProps = () => {
24959
24965
  G != null && G !== "" && (k[U] = G);
24960
24966
  }));
24961
24967
  yield Promise.all(N), $ || (yield e.submit());
24962
- const O = u.map((U) => U.name), q = getFormValues({
24968
+ const L = u.map((U) => U.name), q = getFormValues({
24963
24969
  filterByTk: t,
24964
24970
  field: o,
24965
24971
  form: e,
24966
- fieldNames: O,
24972
+ fieldNames: L,
24967
24973
  getField: d,
24968
24974
  resource: n,
24969
24975
  actionFields: (y == null ? void 0 : y("form")) || []
@@ -24976,10 +24982,10 @@ const useCreateActionProps = () => {
24976
24982
  }, C), {
24977
24983
  updateAssociationValues: g,
24978
24984
  // TODO(refactor): should change to inject by plugin
24979
- triggerWorkflows: L != null && L.length ? L.map((U) => [U.workflowKey, U.context].filter(Boolean).join("!")).join(",") : void 0
24985
+ triggerWorkflows: z != null && z.length ? z.map((U) => [U.workflowKey, U.context].filter(Boolean).join("!")).join(",") : void 0
24980
24986
  })), h.data.loading = !1, w && (w == null || w()), (M === "previous" || !M && j !== !0) && (i == null || i(!1)), a == null || a(!1), !B)
24981
24987
  return;
24982
- z ? f.success({
24988
+ O ? f.success({
24983
24989
  title: m(B),
24984
24990
  onOk: () => V(this, null, function* () {
24985
24991
  yield e.reset(), (j && !M || M === "redirect") && R && (isURL(R) ? window.location.href = R : c(R));
@@ -25190,7 +25196,7 @@ const useCreateActionProps = () => {
25190
25196
  var o;
25191
25197
  return ["select", "multipleSelect", "checkbox", "checkboxGroup", "chinaRegion"].includes(e == null ? void 0 : e.interface) && ((o = e == null ? void 0 : e.uiSchema) == null ? void 0 : o.enum);
25192
25198
  }, useAssociationFilterBlockProps = () => {
25193
- var v, I, w, T, A, D, $, L, z, j;
25199
+ var v, I, w, T, A, D, $, z, O, j;
25194
25200
  const e = AssociationFilter.useAssociationField(), t = useFieldSchema(), o = useOptionalFieldList(), { getDataBlocks: n } = useFilterBlock(), r = e == null ? void 0 : e.name, i = useField(), { props: a } = useBlockRequestContext(), l = useDataSourceHeaders(a == null ? void 0 : a.dataSource), c = useCollectionManager_deprecated(), { filter: u, parseVariableLoading: d } = useParsedFilter({ filterOption: (I = (v = i.componentProps) == null ? void 0 : v.params) == null ? void 0 : I.filter });
25195
25201
  let p, m, h, g, f, C, S, b;
25196
25202
  C = e != null && e.target ? (w = c.getCollection(e.target)) == null ? void 0 : w.getPrimaryKey() : "id", S = ((A = (T = t["x-component-props"]) == null ? void 0 : T.fieldNames) == null ? void 0 : A.label) || C, { data: f, params: h, run: g } = useRequest(
@@ -25219,7 +25225,7 @@ const useCreateActionProps = () => {
25219
25225
  g,
25220
25226
  C,
25221
25227
  ($ = i.componentProps) == null ? void 0 : $.params,
25222
- (z = (L = i.componentProps) == null ? void 0 : L.params) == null ? void 0 : z.sort,
25228
+ (O = (z = i.componentProps) == null ? void 0 : z.params) == null ? void 0 : O.sort,
25223
25229
  d
25224
25230
  ]);
25225
25231
  const y = useCallback(
@@ -25229,17 +25235,17 @@ const useCreateActionProps = () => {
25229
25235
  var G, H, W;
25230
25236
  if (!B.find((X) => X.uid === k.uid))
25231
25237
  return;
25232
- const O = `${M}${t.name}`, q = ((G = k.service.params) == null ? void 0 : G[0]) || {};
25238
+ const L = `${M}${t.name}`, q = ((G = k.service.params) == null ? void 0 : G[0]) || {};
25233
25239
  (W = (H = k.service.params) == null ? void 0 : H[1]) != null && W.filters || _.set(k.service.params, "[1].filters", {});
25234
25240
  const E = k.service.params[1].filters;
25235
25241
  if (R.length)
25236
- E[O] = {
25242
+ E[L] = {
25237
25243
  [b]: R
25238
25244
  };
25239
25245
  else {
25240
25246
  if (k.dataLoadingMode === "manual")
25241
25247
  return k.clearData();
25242
- delete E[O];
25248
+ delete E[L];
25243
25249
  }
25244
25250
  const U = mergeFilter([...Object.values(E), k.defaultFilter]);
25245
25251
  return k.doFilter(
@@ -25269,7 +25275,7 @@ const useCreateActionProps = () => {
25269
25275
  p = M;
25270
25276
  return;
25271
25277
  }
25272
- p = M.filter((O) => O.label.includes(N));
25278
+ p = M.filter((L) => L.label.includes(N));
25273
25279
  };
25274
25280
  } else
25275
25281
  b = `${r}.${C}.$in`, p = (f == null ? void 0 : f.data) || [], m = (R) => {
@@ -25549,38 +25555,38 @@ const useSyncFromForm = (e, t, o) => {
25549
25555
  var R;
25550
25556
  if (S.includes($.name) || !$.interface || ["sort", "password", "sequence"].includes($.type))
25551
25557
  return;
25552
- const L = {
25558
+ const z = {
25553
25559
  type: "duplicate",
25554
25560
  tag: c((R = $.uiSchema) == null ? void 0 : R.title) || $.name
25555
- }, z = F(x({}, L), {
25556
- title: React.createElement(TreeNode, L),
25561
+ }, O = F(x({}, z), {
25562
+ title: React.createElement(TreeNode, z),
25557
25563
  key: v ? `${v}.${$.name}` : $.name,
25558
25564
  isLeaf: !0,
25559
25565
  field: $,
25560
25566
  disabled: I
25561
- }), j = w.find((B) => B.name === z.key);
25567
+ }), j = w.find((B) => B.name === O.key);
25562
25568
  if (["belongsTo", "belongsToMany"].includes($.type) && (!j || ["Select", "Picker"].includes(j == null ? void 0 : j.fieldMode)))
25563
- L.type = "reference", z.type = "reference", z.title = React.createElement(TreeNode, F(x({}, L), { type: "reference" })), z.isLeaf = !1, z.children = m($.target, {
25569
+ z.type = "reference", O.type = "reference", O.title = React.createElement(TreeNode, F(x({}, z), { type: "reference" })), O.isLeaf = !1, O.children = m($.target, {
25564
25570
  depth: b + 1,
25565
25571
  maxDepth: y,
25566
- prefix: z.key,
25572
+ prefix: O.key,
25567
25573
  exclude: systemKeys
25568
25574
  });
25569
25575
  else if (["hasOne", "hasMany"].includes($.type) || ["Nester", "SubTable"].includes(j == null ? void 0 : j.fieldMode)) {
25570
25576
  let B = !1;
25571
- ["hasOne", "hasMany"].includes($.type) && ["Select", "Picker"].includes(j == null ? void 0 : j.fieldMode) && (B = !0), z.disabled = !0, z.isLeaf = !1, z.children = p(
25577
+ ["hasOne", "hasMany"].includes($.type) && ["Select", "Picker"].includes(j == null ? void 0 : j.fieldMode) && (B = !0), O.disabled = !0, O.isLeaf = !1, O.children = p(
25572
25578
  $.target,
25573
25579
  {
25574
25580
  depth: b + 1,
25575
25581
  maxDepth: y,
25576
- prefix: z.key,
25582
+ prefix: O.key,
25577
25583
  exclude: ["id", ...systemKeys],
25578
25584
  disabled: B
25579
25585
  },
25580
25586
  w
25581
25587
  );
25582
25588
  }
25583
- return z;
25589
+ return O;
25584
25590
  }).filter(Boolean);
25585
25591
  return f.set(T, D), D;
25586
25592
  })(new LRUCache({ max: 100 })), m = /* @__PURE__ */ ((f) => (C, { prefix: S, maxDepth: b, depth: y = 0, exclude: v = [] }) => {
@@ -25590,16 +25596,16 @@ const useSyncFromForm = (e, t, o) => {
25590
25596
  if (y > b)
25591
25597
  return [];
25592
25598
  const T = r(C).map((A) => {
25593
- var L, z;
25599
+ var z, O;
25594
25600
  if (!A.target || !A.interface || v.includes(A.name))
25595
25601
  return;
25596
25602
  const D = {
25597
25603
  type: "preloading",
25598
- tag: c((L = A.uiSchema) == null ? void 0 : L.title) || A.name
25604
+ tag: c((z = A.uiSchema) == null ? void 0 : z.title) || A.name
25599
25605
  }, $ = S ? `${S}.${A.name}` : A.name;
25600
25606
  return {
25601
25607
  type: "preloading",
25602
- tag: c((z = A.uiSchema) == null ? void 0 : z.title) || A.name,
25608
+ tag: c((O = A.uiSchema) == null ? void 0 : O.title) || A.name,
25603
25609
  title: React.createElement(TreeNode, D),
25604
25610
  key: $,
25605
25611
  isLeaf: !1,
@@ -25630,8 +25636,8 @@ const useSyncFromForm = (e, t, o) => {
25630
25636
  var w;
25631
25637
  (w = v == null ? void 0 : v.reduceProperties) == null || w.call(v, (T, A) => {
25632
25638
  var B, M, k;
25633
- const D = T || I, $ = A["x-collection-field"] && n(A["x-collection-field"]), L = A.name.includes("."), z = $ && ["hasOne", "hasMany", "belongsTo", "belongsToMany"].includes($.type), j = !z && L ? getAssociationPath(A.name) : A.name, R = D === "" || !D ? j : D + "." + j;
25634
- if ($ && !(["hasOne", "hasMany"].includes($.type) || ["SubForm", "Nester"].includes((B = A["x-component-props"]) == null ? void 0 : B.mode)) && C.add(R), $ && (z || L) && A["x-component"] !== "TableField") {
25639
+ const D = T || I, $ = A["x-collection-field"] && n(A["x-collection-field"]), z = A.name.includes("."), O = $ && ["hasOne", "hasMany", "belongsTo", "belongsToMany"].includes($.type), j = !O && z ? getAssociationPath(A.name) : A.name, R = D === "" || !D ? j : D + "." + j;
25640
+ if ($ && !(["hasOne", "hasMany"].includes($.type) || ["SubForm", "Nester"].includes((B = A["x-component-props"]) == null ? void 0 : B.mode)) && C.add(R), $ && (O || z) && A["x-component"] !== "TableField") {
25635
25641
  if (f.add({ name: R, fieldMode: ((M = A["x-component-props"]) == null ? void 0 : M.mode) || "Select" }), ["Nester", "SubTable"].includes((k = A["x-component-props"]) == null ? void 0 : k.mode)) {
25636
25642
  const N = D && D !== "" ? D + "." + A.name : A.name;
25637
25643
  S(A, N);
@@ -26480,16 +26486,16 @@ const useParseDefaultValue = () => {
26480
26486
  isVariable(e.value) && (yield e.reset({ forceClear: !0 })), e.loading = !0;
26481
26487
  const D = !t.name.toString().includes(".") && (d == null ? void 0 : d.getField(t.name)), {
26482
26488
  value: $,
26483
- collectionName: L,
26484
- dataSource: z = "main"
26489
+ collectionName: z,
26490
+ dataSource: O = "main"
26485
26491
  } = yield o.parseVariable(t.default, n, {
26486
26492
  fieldOperator: C(t.name)
26487
26493
  });
26488
- if (D != null && D.target && L && D.target !== L && !isInherit({
26494
+ if (D != null && D.target && z && D.target !== z && !isInherit({
26489
26495
  collectionName: D.target,
26490
- targetCollectionName: L,
26496
+ targetCollectionName: z,
26491
26497
  dm: S,
26492
- dataSource: z
26498
+ dataSource: O
26493
26499
  })) {
26494
26500
  e.loading = !1;
26495
26501
  return;
@@ -26505,8 +26511,8 @@ const useParseDefaultValue = () => {
26505
26511
  const T = getVariableName(t.default), A = b(T);
26506
26512
  return A ? (y(), reaction(
26507
26513
  () => {
26508
- const $ = { [T]: (A == null ? void 0 : A.ctx) || {} }, L = getPath(t.default), z = getValuesByPath($, L);
26509
- return z === void 0 ? Math.random() : z;
26514
+ const $ = { [T]: (A == null ? void 0 : A.ctx) || {} }, z = getPath(t.default), O = getValuesByPath($, z);
26515
+ return O === void 0 ? Math.random() : O;
26510
26516
  },
26511
26517
  () => v({ forceUpdate: !0 }),
26512
26518
  {
@@ -27899,7 +27905,7 @@ function Input$1(e) {
27899
27905
  useAntdInputStyle(`${S}-input`);
27900
27906
  const b = useCompile(), { t: y } = useTranslation(), v = useForm(), [I, w] = React.useState([]), [T, A] = React.useState([]), [D, $] = React.useState(
27901
27907
  m || !!(n && t != null)
27902
- ), L = useMemo(() => parseValue(t, p), [p, t]), z = typeof L == "string", j = z ? L : "", R = z ? null : L, B = Object.assign(
27908
+ ), z = useMemo(() => parseValue(t, p), [p, t]), O = typeof z == "string", j = O ? z : "", R = O ? null : z, B = Object.assign(
27903
27909
  {
27904
27910
  label: "label",
27905
27911
  value: "value",
@@ -27912,8 +27918,8 @@ function Input$1(e) {
27912
27918
  [B.value]: "$",
27913
27919
  [B.label]: y("Constant")
27914
27920
  } : i ? getTypedConstantOption(j, i, B) : null, [j, i]), k = (H = M == null ? void 0 : M.component) != null ? H : NullComponent, N = Array.isArray(i) ? (X = (W = i.find((J) => Array.isArray(J) && J[0] === j)) == null ? void 0 : W[1]) != null ? X : {} : {};
27915
- let O;
27916
- t == null ? a ? n && D ? O = ["$"] : O = [""] : n ? O = ["$"] : O = [" ", j] : O = n ? ["$"] : [" ", j], m && (O = ["$"]), useEffect(() => {
27921
+ let L;
27922
+ t == null ? a ? n && D ? L = ["$"] : L = [""] : n ? L = ["$"] : L = [" ", j] : L = n ? ["$"] : [" ", j], m && (L = ["$"]), useEffect(() => {
27917
27923
  const Z = M != null ? M : {}, { component: J } = Z, Y = K(Z, ["component"]), Q = [
27918
27924
  ...a ? [
27919
27925
  {
@@ -28063,7 +28069,7 @@ function Input$1(e) {
28063
28069
  Cascader$1,
28064
28070
  {
28065
28071
  options: I,
28066
- value: R != null ? R : O,
28072
+ value: R != null ? R : L,
28067
28073
  onChange: E,
28068
28074
  loadData: q,
28069
28075
  changeOnSelect: u,
@@ -28353,7 +28359,7 @@ function TextArea(e) {
28353
28359
  const { current: N } = m;
28354
28360
  if (!N)
28355
28361
  return;
28356
- const O = new Range();
28362
+ const L = new Range();
28357
28363
  if (y) {
28358
28364
  if (T.join() === "-1,0,-1,0")
28359
28365
  return;
@@ -28361,36 +28367,36 @@ function TextArea(e) {
28361
28367
  if (E)
28362
28368
  try {
28363
28369
  const U = Array.from(N.childNodes);
28364
- U.length && (T[0] === -1 ? T[1] && O.setStartAfter(U[T[1] - 1]) : O.setStart(U[T[0]], T[1]), T[2] === -1 ? T[3] && O.setEndAfter(U[T[3] - 1]) : O.setEnd(U[T[2]], T[3])), O.collapse(!0), E.removeAllRanges(), E.addRange(O);
28370
+ U.length && (T[0] === -1 ? T[1] && L.setStartAfter(U[T[1] - 1]) : L.setStart(U[T[0]], T[1]), T[2] === -1 ? T[3] && L.setEndAfter(U[T[3] - 1]) : L.setEnd(U[T[2]], T[3])), L.collapse(!0), E.removeAllRanges(), E.addRange(L);
28365
28371
  } catch (U) {
28366
28372
  }
28367
28373
  } else {
28368
28374
  const { lastChild: E } = N;
28369
28375
  if (E) {
28370
- O.setStartAfter(E), O.setEndAfter(E);
28371
- const U = Array.from(N.childNodes), G = O.startContainer === N ? -1 : U.indexOf(E), H = O.startContainer === N ? -1 : U.indexOf(E);
28372
- A([G, O.startOffset, H, O.endOffset]);
28376
+ L.setStartAfter(E), L.setEndAfter(E);
28377
+ const U = Array.from(N.childNodes), G = L.startContainer === N ? -1 : U.indexOf(E), H = L.startContainer === N ? -1 : U.indexOf(E);
28378
+ A([G, L.startOffset, H, L.endOffset]);
28373
28379
  }
28374
28380
  }
28375
28381
  }, [I]);
28376
28382
  const $ = useCallback(
28377
28383
  function(N) {
28378
- const O = N.filter((U) => !!U.trim()), { current: q } = m;
28379
- if (!q || !O)
28384
+ const L = N.filter((U) => !!U.trim()), { current: q } = m;
28385
+ if (!q || !L)
28380
28386
  return;
28381
28387
  q.focus();
28382
- const E = createVariableTagHTML(O.join("."), C);
28388
+ const E = createVariableTagHTML(L.join("."), C);
28383
28389
  pasteHTML(q, E, {
28384
28390
  range: T
28385
28391
  }), v(!0), A(getCurrentRange(q)), i(getValue(q, u));
28386
28392
  },
28387
28393
  [C, i, T, D]
28388
- ), L = useCallback(
28394
+ ), z = useCallback(
28389
28395
  function({ currentTarget: N }) {
28390
28396
  S || (v(!0), A(getCurrentRange(N)), i(getValue(N, u)));
28391
28397
  },
28392
28398
  [S, i, D]
28393
- ), z = useCallback(function({ currentTarget: N }) {
28399
+ ), O = useCallback(function({ currentTarget: N }) {
28394
28400
  A(getCurrentRange(N));
28395
28401
  }, []), j = useCallback(function(N) {
28396
28402
  N.key === "Enter" && N.preventDefault();
@@ -28404,7 +28410,7 @@ function TextArea(e) {
28404
28410
  ), M = useCallback(
28405
28411
  function(N) {
28406
28412
  N.preventDefault();
28407
- const O = N.clipboardData.getData("text/html") || N.clipboardData.getData("text"), q = sanitizeHTML(O, {
28413
+ const L = N.clipboardData.getData("text/html") || N.clipboardData.getData("text"), q = sanitizeHTML(L, {
28408
28414
  allowedTags: ["span"],
28409
28415
  allowedAttributes: {
28410
28416
  span: ["data-variable", "contenteditable"]
@@ -28457,8 +28463,8 @@ function TextArea(e) {
28457
28463
  {
28458
28464
  role: "button",
28459
28465
  "aria-label": "textbox",
28460
- onInput: L,
28461
- onBlur: z,
28466
+ onInput: z,
28467
+ onBlur: O,
28462
28468
  onKeyDown: j,
28463
28469
  onPaste: M,
28464
28470
  onCompositionStart: R,
@@ -30891,7 +30897,7 @@ const tableBlockSettings = new SchemaSettings({
30891
30897
  }, null);
30892
30898
  return {
30893
30899
  title: t("Table size"),
30894
- value: ((r = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : r.size) || "middle",
30900
+ value: ((r = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : r.size) || "small",
30895
30901
  options: [
30896
30902
  { label: t("Large"), value: "large" },
30897
30903
  { label: t("Middle"), value: "middle" },
@@ -33565,8 +33571,8 @@ const useFieldComponentOptions = () => {
33565
33571
  const { refresh: t } = useDesignable(), o = useAPIClient(), { t: n } = useTranslation();
33566
33572
  return useCallback(
33567
33573
  (r) => {
33568
- var f, C, S, b, y, v, I, w, T, A, D, $, L, z, j;
33569
- const { active: i, over: a } = r, l = (C = (f = i == null ? void 0 : i.data) == null ? void 0 : f.current) == null ? void 0 : C.schema, c = (b = (S = a == null ? void 0 : a.data) == null ? void 0 : S.current) == null ? void 0 : b.schema, u = (v = (y = a == null ? void 0 : a.data) == null ? void 0 : y.current) == null ? void 0 : v.insertAdjacent, d = (w = (I = a == null ? void 0 : a.data) == null ? void 0 : I.current) == null ? void 0 : w.breakRemoveOn, p = (A = (T = a == null ? void 0 : a.data) == null ? void 0 : T.current) == null ? void 0 : A.wrapSchema, m = ($ = (D = a == null ? void 0 : a.data) == null ? void 0 : D.current) == null ? void 0 : $.onSuccess, h = (j = (z = (L = a == null ? void 0 : a.data) == null ? void 0 : L.current) == null ? void 0 : z.removeParentsIfNoChildren) != null ? j : !0;
33574
+ var f, C, S, b, y, v, I, w, T, A, D, $, z, O, j;
33575
+ const { active: i, over: a } = r, l = (C = (f = i == null ? void 0 : i.data) == null ? void 0 : f.current) == null ? void 0 : C.schema, c = (b = (S = a == null ? void 0 : a.data) == null ? void 0 : S.current) == null ? void 0 : b.schema, u = (v = (y = a == null ? void 0 : a.data) == null ? void 0 : y.current) == null ? void 0 : v.insertAdjacent, d = (w = (I = a == null ? void 0 : a.data) == null ? void 0 : I.current) == null ? void 0 : w.breakRemoveOn, p = (A = (T = a == null ? void 0 : a.data) == null ? void 0 : T.current) == null ? void 0 : A.wrapSchema, m = ($ = (D = a == null ? void 0 : a.data) == null ? void 0 : D.current) == null ? void 0 : $.onSuccess, h = (j = (O = (z = a == null ? void 0 : a.data) == null ? void 0 : z.current) == null ? void 0 : O.removeParentsIfNoChildren) != null ? j : !0;
33570
33576
  if (!l || !c) {
33571
33577
  e == null || e(r);
33572
33578
  return;
@@ -33886,7 +33892,7 @@ const ReadPretty$b = observer$1(
33886
33892
  const l = x(x({}, defaultFieldNames$1), e.fieldNames), c = i.dataSource || e.options || (a == null ? void 0 : a.uiSchema.enum) || [], u = getCurrentOptions(i.value, c, l);
33887
33893
  if (!isValid(e.value) && !u.length || isArrayField(i) && ((p = i == null ? void 0 : i.value) == null ? void 0 : p.length) === 0)
33888
33894
  return;
33889
- const d = u.map((m, h) => /* @__PURE__ */ jsx(Tag, { color: m[l.color], icon: m.icon, children: m[l.label] }, h));
33895
+ const d = i.value && u.map((m, h) => /* @__PURE__ */ jsx(Tag, { color: m[l.color], icon: m.icon, children: m[l.label] }, h));
33890
33896
  r(d), o(!1);
33891
33897
  }, [
33892
33898
  a == null ? void 0 : a.uiSchema.enum,
@@ -34086,7 +34092,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34086
34092
  "dataSource",
34087
34093
  "toOptionsItem",
34088
34094
  "popupMatchSelectWidth"
34089
- ]), C = useDataSourceKey(), S = useDataSourceHeaders(m || C), [b, y] = useState(!1), v = useRef(!1), I = useFieldSchema(), w = ((X = I["x-component-props"]) == null ? void 0 : X.addMode) === "quickAdd", { getField: T } = useCollection_deprecated(), A = useRef(null), { getCollectionJoinField: D, getInterface: $ } = useCollectionManager_deprecated(), L = I["x-collection-field"] || I.name, z = T(L) || D(L), j = u || (z == null ? void 0 : z.target) && (t == null ? void 0 : t.label) && D(`${z.target}.${t.label}`), R = useMemo(() => {
34095
+ ]), C = useDataSourceKey(), S = useDataSourceHeaders(m || C), [b, y] = useState(!1), v = useRef(!1), I = useFieldSchema(), w = ((X = I["x-component-props"]) == null ? void 0 : X.addMode) === "quickAdd", { getField: T } = useCollection_deprecated(), A = useRef(null), { getCollectionJoinField: D, getInterface: $ } = useCollectionManager_deprecated(), z = I["x-collection-field"] || I.name, O = T(z) || D(z), j = u || (O == null ? void 0 : O.target) && (t == null ? void 0 : t.label) && D(`${O.target}.${t.label}`), R = useMemo(() => {
34090
34096
  var Y;
34091
34097
  if (j != null && j.interface) {
34092
34098
  const Q = $(j.interface), Z = ((Y = Q == null ? void 0 : Q.filterable) == null ? void 0 : Y.operators[0].value) || "$includes";
@@ -34122,7 +34128,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34122
34128
  }
34123
34129
  },
34124
34130
  [j == null ? void 0 : j.uiSchema, t]
34125
- ), { data: k, run: N, loading: O } = useRequest(
34131
+ ), { data: k, run: N, loading: L } = useRequest(
34126
34132
  F(x({
34127
34133
  action: "list"
34128
34134
  }, o), {
@@ -34192,7 +34198,7 @@ const getValues = (e, t) => castArray(e).filter((o) => o != null).map((o) => typ
34192
34198
  value: r,
34193
34199
  defaultValue: i
34194
34200
  }, f), {
34195
- loading: k ? O : !0,
34201
+ loading: k ? L : !0,
34196
34202
  options: h(M(G)),
34197
34203
  rawOptions: G,
34198
34204
  dropdownRender: (Y) => {
@@ -35158,7 +35164,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35158
35164
  ] }) }) }) }) : null;
35159
35165
  }, Page = (e) => {
35160
35166
  var q, E, U;
35161
- const O = e, { children: t } = O, o = K(O, ["children"]), { t: n } = useTranslation(), r = useCompile(), { title: i, setTitle: a } = useDocumentTitle(), l = useFieldSchema(), c = useDesignable(), { theme: u } = useGlobalTheme(), { getAriaLabel: d } = useGetAriaLabelOfSchemaInitializer(), { tabUid: p, name: m } = useParams(), h = useRouterBasename(), [g, f] = useState(!1);
35167
+ const L = e, { children: t } = L, o = K(L, ["children"]), { t: n } = useTranslation(), r = useCompile(), { title: i, setTitle: a } = useDocumentTitle(), l = useFieldSchema(), c = useDesignable(), { theme: u } = useGlobalTheme(), { getAriaLabel: d } = useGetAriaLabelOfSchemaInitializer(), { tabUid: p, name: m } = useParams(), h = useRouterBasename(), [g, f] = useState(!1);
35162
35168
  useEffect(() => {
35163
35169
  setTimeout(() => {
35164
35170
  f(!0);
@@ -35170,7 +35176,7 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35170
35176
  // 处理 searchParams 是为了兼容旧版的 tab 参数
35171
35177
  () => p || I.get("tab") || Object.keys(l.properties || {}).shift(),
35172
35178
  [l.properties, I, p]
35173
- ), [D, $] = useState(0), { wrapSSR: L, hashId: z, componentCls: j } = useStyles$9(), R = useStyles$a(), { token: B } = useToken(), M = b ? void 0 : l.title || r(i);
35179
+ ), [D, $] = useState(0), { wrapSSR: z, hashId: O, componentCls: j } = useStyles$9(), R = useStyles$a(), { token: B } = useToken(), M = b ? void 0 : l.title || r(i);
35174
35180
  useRequest(
35175
35181
  {
35176
35182
  url: `/uiSchemas:getParentJsonSchema/${l["x-uid"]}`
@@ -35275,8 +35281,8 @@ const useStyles$9 = genStyleHook("nb-page", (e) => {
35275
35281
  l.mapProperties((G) => G.title || n("Unnamed")).join(),
35276
35282
  S
35277
35283
  ]);
35278
- return L(
35279
- /* @__PURE__ */ jsxs("div", { className: `${j} ${z} ${R.styles}`, children: [
35284
+ return z(
35285
+ /* @__PURE__ */ jsxs("div", { className: `${j} ${O} ${R.styles}`, children: [
35280
35286
  /* @__PURE__ */ jsx(PageDesigner, { title: l.title || i }),
35281
35287
  /* @__PURE__ */ jsx(
35282
35288
  "div",
@@ -35609,7 +35615,7 @@ function getCollectionFieldOptions(e, t) {
35609
35615
  });
35610
35616
  }
35611
35617
  const AppendsTreeSelect = (e) => {
35612
- const L = e, {
35618
+ const z = e, {
35613
35619
  title: t,
35614
35620
  value: o,
35615
35621
  onChange: n,
@@ -35618,7 +35624,7 @@ const AppendsTreeSelect = (e) => {
35618
35624
  filter: a = trueFilter,
35619
35625
  rootOption: l,
35620
35626
  loadData: c
35621
- } = L, u = K(L, [
35627
+ } = z, u = K(z, [
35622
35628
  "title",
35623
35629
  "value",
35624
35630
  "onChange",
@@ -35627,35 +35633,35 @@ const AppendsTreeSelect = (e) => {
35627
35633
  "filter",
35628
35634
  "rootOption",
35629
35635
  "loadData"
35630
- ]), d = useCompile(), { t: p } = useTranslation(), [m, h] = useState({}), g = i({ collection: r }), [f, C] = parseCollectionName(g), S = useApp(), { collectionManager: b } = S.dataSourceManager.getDataSource(f), y = (z, j) => {
35631
- const R = b.getCollection(z);
35636
+ ]), d = useCompile(), { t: p } = useTranslation(), [m, h] = useState({}), g = i({ collection: r }), [f, C] = parseCollectionName(g), S = useApp(), { collectionManager: b } = S.dataSourceManager.getDataSource(f), y = (O, j) => {
35637
+ const R = b.getCollection(O);
35632
35638
  return R ? R.getAllFields(j) : [];
35633
- }, v = Object.values(m), I = useMemo(() => e.multiple ? (o || []).map((z) => m[z]).filter(Boolean) : o, [o, e.multiple, m]), w = useCallback(
35634
- (z) => V(void 0, null, function* () {
35639
+ }, v = Object.values(m), I = useMemo(() => e.multiple ? (o || []).map((O) => m[O]).filter(Boolean) : o, [o, e.multiple, m]), w = useCallback(
35640
+ (O) => V(void 0, null, function* () {
35635
35641
  if (c != null)
35636
- return c(z);
35637
- if (!z.isLeaf && z.loadChildren) {
35638
- const j = z.loadChildren(z);
35642
+ return c(O);
35643
+ if (!O.isLeaf && O.loadChildren) {
35644
+ const j = O.loadChildren(O);
35639
35645
  h((R) => j.reduce((B, M) => Object.assign(B, { [M.value]: M }), x({}, R)));
35640
35646
  }
35641
35647
  }),
35642
35648
  [c]
35643
35649
  );
35644
35650
  useEffect(() => {
35645
- const z = l ? F(x({}, l), {
35651
+ const O = l ? F(x({}, l), {
35646
35652
  id: l.value,
35647
35653
  key: l.value,
35648
35654
  title: l.label,
35649
35655
  fullTitle: l.label,
35650
35656
  isLeaf: !1
35651
- }) : null, R = (c === null ? [] : getCollectionFieldOptions.call({ compile: d, getCollectionFields: y, filter: a }, C, z)).reduce((B, M) => Object.assign(B, { [M.value]: M }), {});
35652
- z && (R[z.value] = z), h(R);
35657
+ }) : null, R = (c === null ? [] : getCollectionFieldOptions.call({ compile: d, getCollectionFields: y, filter: a }, C, O)).reduce((B, M) => Object.assign(B, { [M.value]: M }), {});
35658
+ O && (R[O.value] = O), h(R);
35653
35659
  }, [g, l, a, c]), useEffect(() => {
35654
- const z = e.multiple ? o : o ? [o] : [];
35655
- if (!(z != null && z.length) || z.every((R) => !!m[R]))
35660
+ const O = e.multiple ? o : o ? [o] : [];
35661
+ if (!(O != null && O.length) || O.every((R) => !!m[R]))
35656
35662
  return;
35657
35663
  const j = [];
35658
- z.forEach((R) => {
35664
+ O.forEach((R) => {
35659
35665
  const B = R.split(".");
35660
35666
  let M = m[B[0]];
35661
35667
  for (let k = 1; k < B.length && M; k++) {
@@ -35665,19 +35671,19 @@ const AppendsTreeSelect = (e) => {
35665
35671
  break;
35666
35672
  }
35667
35673
  if (!M.isLeaf && M.loadChildren) {
35668
- const O = M.loadChildren(M);
35669
- O != null && O.length && (j.push(...O), M = O.find((q) => q.value === B.slice(0, k + 1).join(".")));
35674
+ const L = M.loadChildren(M);
35675
+ L != null && L.length && (j.push(...L), M = L.find((q) => q.value === B.slice(0, k + 1).join(".")));
35670
35676
  }
35671
35677
  }
35672
35678
  }), h((R) => j.reduce((B, M) => Object.assign(B, { [M.value]: M }), x({}, R)));
35673
35679
  }, [o, v.length, e.multiple]);
35674
35680
  const T = useCallback(
35675
- (z) => {
35681
+ (O) => {
35676
35682
  if (!e.multiple) {
35677
- n(z);
35683
+ n(O);
35678
35684
  return;
35679
35685
  }
35680
- const j = z.map((M) => M.value).filter(Boolean), R = new Set(j), B = I.find((M) => !R.has(M.value));
35686
+ const j = O.map((M) => M.value).filter(Boolean), R = new Set(j), B = I.find((M) => !R.has(M.value));
35681
35687
  if (B) {
35682
35688
  const M = `${B.value}.`;
35683
35689
  Object.keys(m).forEach((k) => {
@@ -35694,16 +35700,16 @@ const AppendsTreeSelect = (e) => {
35694
35700
  },
35695
35701
  [e.multiple, I, n, m]
35696
35702
  ), A = useCallback(
35697
- (z) => {
35703
+ (O) => {
35698
35704
  var N;
35699
- const { value: j, onClose: R, disabled: B, closable: M } = z;
35705
+ const { value: j, onClose: R, disabled: B, closable: M } = O;
35700
35706
  if (!j)
35701
35707
  return null;
35702
35708
  const { fullTitle: k } = (N = m[j]) != null ? N : {};
35703
35709
  return /* @__PURE__ */ jsx(Tag, { closable: M && !B, onClose: R, children: k == null ? void 0 : k.join(" / ") });
35704
35710
  },
35705
35711
  [m]
35706
- ), D = Array.isArray(I) ? I.filter((z) => z.value in m) : I, $ = e.multiple ? o : o != null ? [o] : [];
35712
+ ), D = Array.isArray(I) ? I.filter((O) => O.value in m) : I, $ = e.multiple ? o : o != null ? [o] : [];
35707
35713
  return /* @__PURE__ */ jsx(
35708
35714
  TreeSelect$2,
35709
35715
  x({
@@ -35748,20 +35754,20 @@ const AppendsTreeSelect = (e) => {
35748
35754
  const T = uid();
35749
35755
  return f.addEffects(T, () => {
35750
35756
  onFieldInputValueChange("*", (A) => {
35751
- var $, L, z, j, R;
35752
- (filterAnalyses((z = (L = ($ = r.componentProps) == null ? void 0 : $.service) == null ? void 0 : L.params) == null ? void 0 : z.filter) || []).includes((j = A == null ? void 0 : A.props) == null ? void 0 : j.name) && r.value && isEqual(A == null ? void 0 : A.indexes, r == null ? void 0 : r.indexes) && ((R = A == null ? void 0 : A.props) == null ? void 0 : R.name) !== r.props.name && (r.setValue(void 0), p(void 0));
35757
+ var $, z, O, j, R;
35758
+ (filterAnalyses((O = (z = ($ = r.componentProps) == null ? void 0 : $.service) == null ? void 0 : z.params) == null ? void 0 : O.filter) || []).includes((j = A == null ? void 0 : A.props) == null ? void 0 : j.name) && r.value && isEqual(A == null ? void 0 : A.indexes, r == null ? void 0 : r.indexes) && ((R = A == null ? void 0 : A.props) == null ? void 0 : R.name) !== r.props.name && (r.setValue(void 0), p(void 0));
35753
35759
  });
35754
35760
  }), () => {
35755
35761
  f.removeEffects(T);
35756
35762
  };
35757
35763
  }, []);
35758
35764
  const y = (T) => V(void 0, null, function* () {
35759
- var L, z;
35765
+ var z, O;
35760
35766
  const { search: A, callBack: D } = T, {
35761
35767
  data: { data: $ }
35762
35768
  } = yield S.create({
35763
35769
  values: {
35764
- [((z = (L = r == null ? void 0 : r.componentProps) == null ? void 0 : L.fieldNames) == null ? void 0 : z.label) || "id"]: A
35770
+ [((O = (z = r == null ? void 0 : r.componentProps) == null ? void 0 : z.fieldNames) == null ? void 0 : O.label) || "id"]: A
35765
35771
  }
35766
35772
  });
35767
35773
  if ($) {
@@ -36357,9 +36363,9 @@ function Uploader(o) {
36357
36363
  if (i) {
36358
36364
  const D = T.fileList.filter(($) => $.status === "done");
36359
36365
  if (D.length) {
36360
- const $ = [...a != null ? a : [], ...D.map((L) => {
36361
- var z;
36362
- return c((z = L.response) == null ? void 0 : z.data);
36366
+ const $ = [...a != null ? a : [], ...D.map((z) => {
36367
+ var O;
36368
+ return c((O = z.response) == null ? void 0 : O.data);
36363
36369
  })];
36364
36370
  l == null || l($);
36365
36371
  }
@@ -36687,39 +36693,39 @@ function FileSelector(e) {
36687
36693
  );
36688
36694
  }
36689
36695
  const InternalFileManager = (e) => {
36690
- var A, D;
36691
- const T = e, { value: t, multiple: o, onChange: n } = T, r = K(T, ["value", "multiple", "onChange"]), i = useFieldSchema(), [a, l] = useState(!1), [c, u] = useState([]), d = useInsertSchema("Selector"), p = useFieldNames$1(e), m = useField(), [h, g] = useState([]), { getField: f } = useCollection_deprecated(), C = f(m.props.name), S = useLabelUiSchema$1(C == null ? void 0 : C.target, (p == null ? void 0 : p.label) || "label"), b = useCompile(), { modalProps: y } = useActionContext(), v = ($) => {
36692
- $.stopPropagation(), $.preventDefault(), d(schema$1.Selector), l(!0), u([]);
36696
+ var D, $;
36697
+ const A = e, { value: t, multiple: o, onChange: n } = A, r = K(A, ["value", "multiple", "onChange"]), i = useFieldSchema(), [a, l] = useState(!1), [c, u] = useState([]), d = useInsertSchema("Selector"), p = useFieldNames$1(e), { designable: m } = useDesignable(), h = useField(), [g, f] = useState([]), { getField: C } = useCollection_deprecated(), S = C(h.props.name), b = useLabelUiSchema$1(S == null ? void 0 : S.target, (p == null ? void 0 : p.label) || "label"), y = useCompile(), { modalProps: v } = useActionContext(), I = (z) => {
36698
+ z.stopPropagation(), z.preventDefault(), m ? d(schema$1.Selector) : i.addProperty("selector", schema$1.Selector), l(!0), u([]);
36693
36699
  };
36694
36700
  useEffect(() => {
36695
36701
  if (t && Object.keys(t).length > 0) {
36696
- const $ = (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((L) => {
36697
- const z = L[p.label];
36698
- return F(x({}, L), {
36699
- [p.label]: getLabelFormatValue$1(b(S), b(z))
36702
+ const z = (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((O) => {
36703
+ const j = O[p.label];
36704
+ return F(x({}, O), {
36705
+ [p.label]: getLabelFormatValue$1(y(b), y(j))
36700
36706
  });
36701
36707
  });
36702
- g($);
36708
+ f(z);
36703
36709
  } else
36704
- g([]);
36710
+ f([]);
36705
36711
  }, [t, p == null ? void 0 : p.label]);
36706
- const I = {
36712
+ const w = {
36707
36713
  size: "small",
36708
36714
  fieldNames: p,
36709
- multiple: ["o2m", "m2m"].includes(C == null ? void 0 : C.interface) && o,
36715
+ multiple: ["o2m", "m2m"].includes(S == null ? void 0 : S.interface) && o,
36710
36716
  association: {
36711
- target: C == null ? void 0 : C.target
36717
+ target: S == null ? void 0 : S.target
36712
36718
  },
36713
- options: h,
36719
+ options: g,
36714
36720
  onChange: e == null ? void 0 : e.onChange,
36715
36721
  selectedRows: c,
36716
36722
  setSelectedRows: u,
36717
- collectionField: C
36718
- }, w = () => {
36719
- const { setVisible: $ } = useActionContext(), { multiple: L, selectedRows: z, onChange: j, options: R, collectionField: B } = useContext(RecordPickerContext);
36723
+ collectionField: S
36724
+ }, T = () => {
36725
+ const { setVisible: z } = useActionContext(), { multiple: O, selectedRows: j, onChange: R, options: B, collectionField: M } = useContext(RecordPickerContext);
36720
36726
  return {
36721
36727
  onClick() {
36722
- j(L ? unionBy(z, R, (B == null ? void 0 : B.targetKey) || "id") : (z == null ? void 0 : z[0]) || null), $(!1);
36728
+ R(O ? unionBy(j, B, (M == null ? void 0 : M.targetKey) || "id") : (j == null ? void 0 : j[0]) || null), z(!1);
36723
36729
  }
36724
36730
  };
36725
36731
  };
@@ -36727,12 +36733,12 @@ const InternalFileManager = (e) => {
36727
36733
  /* @__PURE__ */ jsx(
36728
36734
  FileSelector,
36729
36735
  F(x({}, r), {
36730
- value: o ? h : h == null ? void 0 : h[0],
36736
+ value: o ? g : g == null ? void 0 : g[0],
36731
36737
  multiple: o,
36732
- quickUpload: ((A = i["x-component-props"]) == null ? void 0 : A.quickUpload) !== !1,
36733
- selectFile: ((D = i["x-component-props"]) == null ? void 0 : D.selectFile) !== !1,
36734
- action: `${C == null ? void 0 : C.target}:create`,
36735
- onSelect: v,
36738
+ quickUpload: ((D = i["x-component-props"]) == null ? void 0 : D.quickUpload) !== !1,
36739
+ selectFile: (($ = i["x-component-props"]) == null ? void 0 : $.selectFile) !== !1,
36740
+ action: `${S == null ? void 0 : S.target}:create`,
36741
+ onSelect: I,
36736
36742
  onChange: n
36737
36743
  })
36738
36744
  ),
@@ -36744,17 +36750,17 @@ const InternalFileManager = (e) => {
36744
36750
  visible: a,
36745
36751
  setVisible: l,
36746
36752
  modalProps: {
36747
- getContainer: (r == null ? void 0 : r.getContainer) || (y == null ? void 0 : y.getContainer)
36753
+ getContainer: (r == null ? void 0 : r.getContainer) || (v == null ? void 0 : v.getContainer)
36748
36754
  },
36749
36755
  formValueChanged: !1
36750
36756
  },
36751
- children: /* @__PURE__ */ jsx(RecordPickerProvider, F(x({}, I), { children: /* @__PURE__ */ jsx(CollectionProvider_deprecated, { name: C == null ? void 0 : C.target, children: /* @__PURE__ */ jsx(FormProvider, { children: /* @__PURE__ */ jsx(TableSelectorParamsProvider, { params: {}, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: { usePickActionProps: w, useTableSelectorProps: useTableSelectorProps$2 }, children: /* @__PURE__ */ jsx(
36757
+ children: /* @__PURE__ */ jsx(RecordPickerProvider, F(x({}, w), { children: /* @__PURE__ */ jsx(CollectionProvider_deprecated, { name: S == null ? void 0 : S.target, children: /* @__PURE__ */ jsx(FormProvider, { children: /* @__PURE__ */ jsx(TableSelectorParamsProvider, { params: {}, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: { usePickActionProps: T, useTableSelectorProps: useTableSelectorProps$2 }, children: /* @__PURE__ */ jsx(
36752
36758
  RecursionField,
36753
36759
  {
36754
36760
  onlyRenderProperties: !0,
36755
- basePath: m.address,
36761
+ basePath: h.address,
36756
36762
  schema: i,
36757
- filterProperties: ($) => $["x-component"] === "AssociationField.Selector"
36763
+ filterProperties: (z) => z["x-component"] === "AssociationField.Selector"
36758
36764
  }
36759
36765
  ) }) }) }) }) }))
36760
36766
  }
@@ -36771,10 +36777,10 @@ const InternalFileManager = (e) => {
36771
36777
  FormItem: FormItem$1
36772
36778
  }
36773
36779
  }), CascadeSelect = connect((e) => {
36774
- var z;
36780
+ var O;
36775
36781
  const { data: t, mapOptions: o, onChange: n, value: r } = e, [i, a] = useState([
36776
36782
  { key: void 0, children: [], value: null }
36777
- ]), [l, c] = useState(t), [u, d] = useState(!1), p = useCompile(), m = useAPIClient(), h = useServiceOptions$1(e), { options: g, field: f } = useAssociationFieldContext(), C = m.resource(g.target), { getCollectionJoinField: S, getInterface: b } = useCollectionManager_deprecated(), y = (z = f == null ? void 0 : f.componentProps) == null ? void 0 : z.fieldNames, v = (g == null ? void 0 : g.target) && (y == null ? void 0 : y.label) && S(`${g.target}.${y.label}`), I = useMemo(() => {
36783
+ ]), [l, c] = useState(t), [u, d] = useState(!1), p = useCompile(), m = useAPIClient(), h = useServiceOptions$1(e), { options: g, field: f } = useAssociationFieldContext(), C = m.resource(g.target), { getCollectionJoinField: S, getInterface: b } = useCollectionManager_deprecated(), y = (O = f == null ? void 0 : f.componentProps) == null ? void 0 : O.fieldNames, v = (g == null ? void 0 : g.target) && (y == null ? void 0 : y.label) && S(`${g.target}.${y.label}`), I = useMemo(() => {
36778
36784
  var j, R;
36779
36785
  return v != null && v.interface && ((R = (j = b(v.interface)) == null ? void 0 : j.filterable) == null ? void 0 : R.operators[0].value) || "$includes";
36780
36786
  }, [v]), w = useField();
@@ -36797,14 +36803,14 @@ const InternalFileManager = (e) => {
36797
36803
  let B = p(R[y.label]);
36798
36804
  if ((M = v == null ? void 0 : v.uiSchema) != null && M.enum)
36799
36805
  if (Array.isArray(B))
36800
- B = B.map((O, q) => {
36806
+ B = B.map((L, q) => {
36801
36807
  var U, G;
36802
- const E = (G = (U = v.uiSchema.enum).find) == null ? void 0 : G.call(U, (H) => H.value === O);
36803
- return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || O }, q) : /* @__PURE__ */ jsx(Tag, { children: O }, O);
36808
+ const E = (G = (U = v.uiSchema.enum).find) == null ? void 0 : G.call(U, (H) => H.value === L);
36809
+ return E ? /* @__PURE__ */ jsx(Tag, { color: E.color, style: { marginRight: 3 }, children: (E == null ? void 0 : E.label) || L }, q) : /* @__PURE__ */ jsx(Tag, { children: L }, L);
36804
36810
  }).reverse();
36805
36811
  else {
36806
- const O = (N = (k = v.uiSchema.enum).find) == null ? void 0 : N.call(k, (q) => q.value === B);
36807
- O && (B = /* @__PURE__ */ jsx(Tag, { color: O.color, children: O.label }));
36812
+ const L = (N = (k = v.uiSchema.enum).find) == null ? void 0 : N.call(k, (q) => q.value === B);
36813
+ L && (B = /* @__PURE__ */ jsx(Tag, { color: L.color, children: L.label }));
36808
36814
  }
36809
36815
  return (v == null ? void 0 : v.type) === "date" && (B = dayjs(B).format("YYYY-MM-DD")), o ? o({
36810
36816
  [y.label]: B || EMPTY,
@@ -36840,13 +36846,13 @@ const InternalFileManager = (e) => {
36840
36846
  var M, k, N;
36841
36847
  if (j) {
36842
36848
  d(!0);
36843
- const O = yield A({ parentId: R == null ? void 0 : R.key });
36844
- if (d(!1), c(O), B === (i == null ? void 0 : i.length) - 1 && ((M = R == null ? void 0 : R.value) != null && M.id)) {
36849
+ const L = yield A({ parentId: R == null ? void 0 : R.key });
36850
+ if (d(!1), c(L), B === (i == null ? void 0 : i.length) - 1 && ((M = R == null ? void 0 : R.value) != null && M.id)) {
36845
36851
  const q = yield A({ parentId: (k = R == null ? void 0 : R.value) == null ? void 0 : k.id }), E = [...i];
36846
36852
  E.splice(B + 1), E[B] = F(x({}, E[B]), { value: R == null ? void 0 : R.value }), E[B + 1] = { key: (N = R == null ? void 0 : R.value) == null ? void 0 : N.id, children: (q == null ? void 0 : q.length) > 0 ? q : null }, a(E), n == null || n(E);
36847
36853
  }
36848
36854
  }
36849
- }), L = (j, R) => V(void 0, null, function* () {
36855
+ }), z = (j, R) => V(void 0, null, function* () {
36850
36856
  const B = j ? {
36851
36857
  [y.label]: {
36852
36858
  [I]: j
@@ -36874,10 +36880,10 @@ const InternalFileManager = (e) => {
36874
36880
  value: (M = j == null ? void 0 : j.value) == null ? void 0 : M[y.value]
36875
36881
  },
36876
36882
  labelInValue: !0,
36877
- onSearch: (N) => L(N, j),
36883
+ onSearch: (N) => z(N, j),
36878
36884
  fieldNames: y,
36879
36885
  style: { minWidth: 150 },
36880
- onChange: (N, O) => D(N, O, R),
36886
+ onChange: (N, L) => D(N, L, R),
36881
36887
  options: u ? [] : T(l),
36882
36888
  onDropdownVisibleChange: (N) => $(N, j, R),
36883
36889
  notFoundContent: u ? /* @__PURE__ */ jsx(Spin, { size: "small" }) : null
@@ -37092,7 +37098,7 @@ const InternalNesterCss = css`
37092
37098
  }, InternalPicker = observer$1(
37093
37099
  (e) => {
37094
37100
  var j;
37095
- const z = e, { value: t, multiple: o, openSize: n, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = z, c = K(z, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), S = useCompile(), b = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, I] = useState([]), w = useCollectionRecordData(), T = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((B) => {
37101
+ const O = e, { value: t, multiple: o, openSize: n, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = O, c = K(O, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), S = useCompile(), b = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, I] = useState([]), w = useCollectionRecordData(), T = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((B) => {
37096
37102
  const M = B == null ? void 0 : B[d.label];
37097
37103
  return F(x({}, B), {
37098
37104
  [d.label]: getLabelFormatValue$1(S(b), S(M))
@@ -37116,14 +37122,14 @@ const InternalNesterCss = css`
37116
37122
  }, $ = () => {
37117
37123
  const R = (f == null ? void 0 : f.targetKey) || "id", B = T.map((k) => k[R]).filter(Boolean);
37118
37124
  return B.length ? { $and: [{ [`${R}.$ne`]: B }] } : {};
37119
- }, L = () => {
37120
- const { setVisible: R } = useActionContext(), { multiple: B, selectedRows: M, onChange: k, options: N, collectionField: O } = useContext(RecordPickerContext);
37125
+ }, z = () => {
37126
+ const { setVisible: R } = useActionContext(), { multiple: B, selectedRows: M, onChange: k, options: N, collectionField: L } = useContext(RecordPickerContext);
37121
37127
  return {
37122
37128
  onClick() {
37123
- k(B ? unionBy(M, N, (O == null ? void 0 : O.targetKey) || "id") : (M == null ? void 0 : M[0]) || null), R(!1);
37129
+ k(B ? unionBy(M, N, (L == null ? void 0 : L.targetKey) || "id") : (M == null ? void 0 : M[0]) || null), R(!1);
37124
37130
  },
37125
37131
  style: {
37126
- display: B !== !1 && ["o2m", "m2m", "mbm"].includes(O == null ? void 0 : O.interface) ? "block" : "none"
37132
+ display: B !== !1 && ["o2m", "m2m", "mbm"].includes(L == null ? void 0 : L.interface) ? "block" : "none"
37127
37133
  }
37128
37134
  };
37129
37135
  };
@@ -37186,7 +37192,7 @@ const InternalNesterCss = css`
37186
37192
  SchemaComponentOptions,
37187
37193
  {
37188
37194
  scope: {
37189
- usePickActionProps: L,
37195
+ usePickActionProps: z,
37190
37196
  useTableSelectorProps: useTableSelectorProps$1
37191
37197
  },
37192
37198
  children: /* @__PURE__ */ jsx(
@@ -37230,27 +37236,27 @@ const RenderRecord = React.memo(
37230
37236
  const [f, C] = useState(!0), [S, b] = useState([]);
37231
37237
  return useEffect(() => {
37232
37238
  const y = toArr$3(h).map((v, I, w) => {
37233
- const T = v == null ? void 0 : v[(e == null ? void 0 : e.label) || "label"], A = t ? transformNestedData(v).map((z) => z == null ? void 0 : z[(e == null ? void 0 : e.label) || "label"]).join(" / ") : isObject(T) ? JSON.stringify(T) : T, D = toValue$3(o(A), "N/A"), $ = n(
37239
+ const T = v == null ? void 0 : v[(e == null ? void 0 : e.label) || "label"], A = t ? transformNestedData(v).map((O) => O == null ? void 0 : O[(e == null ? void 0 : e.label) || "label"]).join(" / ") : isObject(T) ? JSON.stringify(T) : T, D = toValue$3(o(A), "N/A"), $ = n(
37234
37240
  (v == null ? void 0 : v.__collection) || (r == null ? void 0 : r.target),
37235
37241
  (e == null ? void 0 : e.label) || "label"
37236
- ), L = getLabelFormatValue$1(o($), D, !0);
37242
+ ), z = getLabelFormatValue$1(o($), D, !0);
37237
37243
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
37238
- /* @__PURE__ */ jsx("span", { children: i ? L : a !== !1 ? /* @__PURE__ */ jsx(
37244
+ /* @__PURE__ */ jsx("span", { children: i ? z : a !== !1 ? /* @__PURE__ */ jsx(
37239
37245
  "a",
37240
37246
  {
37241
37247
  onMouseEnter: () => {
37242
37248
  g(!0);
37243
37249
  },
37244
- onClick: (z) => {
37250
+ onClick: (O) => {
37245
37251
  var j;
37246
- g(!0), z.stopPropagation(), z.preventDefault(), l && c(schema$1.Viewer), u.properties && d({
37252
+ g(!0), O.stopPropagation(), O.preventDefault(), l && c(schema$1.Viewer), u.properties && d({
37247
37253
  recordData: v,
37248
37254
  parentRecordData: p
37249
37255
  }), (j = m == null ? void 0 : m.current) == null || j.setPopoverVisible(!1);
37250
37256
  },
37251
- children: L
37257
+ children: z
37252
37258
  }
37253
- ) : L }),
37259
+ ) : z }),
37254
37260
  I < w.length - 1 ? /* @__PURE__ */ jsx("span", { style: { marginRight: 4, color: "#aaa" }, children: "," }) : null
37255
37261
  ] }, `${v == null ? void 0 : v.id}_${I}`);
37256
37262
  });
@@ -38031,8 +38037,8 @@ const useColumnsDeepMemoized = (e) => {
38031
38037
  width: I && !a ? 0 : ((A = b["x-component-props"]) == null ? void 0 : A.width) || 100,
38032
38038
  render: (D, $) => {
38033
38039
  var j;
38034
- const L = (j = n.value) == null ? void 0 : j.indexOf($), z = n.address.concat($.__index || L);
38035
- return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: $, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: $.__index || L, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord($), record: $, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: b, basePath: z, children: /* @__PURE__ */ jsx("span", { role: "button", className: g, children: /* @__PURE__ */ jsx(RecursionField, { basePath: z, schema: b, onlyRenderProperties: !0 }) }) }) }) }) });
38040
+ const z = (j = n.value) == null ? void 0 : j.indexOf($), O = n.address.concat($.__index || z);
38041
+ return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: $, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: $.__index || z, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord($), record: $, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: b, basePath: O, children: /* @__PURE__ */ jsx("span", { role: "button", className: g, children: /* @__PURE__ */ jsx(RecursionField, { basePath: O, schema: b, onlyRenderProperties: !0 }) }) }) }) }) });
38036
38042
  },
38037
38043
  onCell: (D, $) => ({
38038
38044
  record: D,
@@ -38157,7 +38163,7 @@ const useColumnsDeepMemoized = (e) => {
38157
38163
  display: none !important;
38158
38164
  }
38159
38165
  `,
38160
- itemRender: (D, $, L) => $ === "prev" ? /* @__PURE__ */ jsxs(
38166
+ itemRender: (D, $, z) => $ === "prev" ? /* @__PURE__ */ jsxs(
38161
38167
  "div",
38162
38168
  {
38163
38169
  style: { display: "flex" },
@@ -38167,12 +38173,12 @@ const useColumnsDeepMemoized = (e) => {
38167
38173
  }
38168
38174
  `,
38169
38175
  children: [
38170
- L,
38176
+ z,
38171
38177
  " ",
38172
38178
  /* @__PURE__ */ jsx("div", { style: { marginLeft: "7px" }, children: d })
38173
38179
  ]
38174
38180
  }
38175
- ) : L
38181
+ ) : z
38176
38182
  });
38177
38183
  }, [c, o, C, (w = n.value) == null ? void 0 : w.length]);
38178
38184
  return t === !1 || !t && e === !1 ? !1 : ((T = n.value) == null ? void 0 : T.length) > 0 || S.total ? S : !1;
@@ -38373,8 +38379,8 @@ const Table$1 = withDynamicSchemaProps(
38373
38379
  "onExpand",
38374
38380
  "loading",
38375
38381
  "onClickRow"
38376
- ]), b = useArrayField(S), y = useFieldSchema(), { size: v = "middle" } = (y == null ? void 0 : y["x-component-props"]) || {}, I = useCollection(), T = ((ce = y == null ? void 0 : y.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: A, allIncludesChildren: D } = T, $ = useMemoizedFn(S.onRowDragEnd || (() => {
38377
- })), L = usePaginationProps$2(o, i), z = useTableColumns$1(S, L), [j, R] = useState(() => A ? D : []), [B, M] = useState(((ye = b == null ? void 0 : b.data) == null ? void 0 : ye.selectedRowKeys) || []), [k, N] = useState([]), O = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
38382
+ ]), b = useArrayField(S), y = useFieldSchema(), { size: v = "small" } = (y == null ? void 0 : y["x-component-props"]) || {}, I = useCollection(), T = ((ce = y == null ? void 0 : y.parent) == null ? void 0 : ce["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: A, allIncludesChildren: D } = T, $ = useMemoizedFn(S.onRowDragEnd || (() => {
38383
+ })), z = usePaginationProps$2(o, i), O = useTableColumns$1(S, z), [j, R] = useState(() => A ? D : []), [B, M] = useState(((ye = b == null ? void 0 : b.data) == null ? void 0 : ye.selectedRowKeys) || []), [k, N] = useState([]), L = (p == null ? void 0 : p.type) !== "none", q = useRef(/* @__PURE__ */ new Map()), E = useMemo(() => css`
38378
38384
  & > td {
38379
38385
  background-color: ${t.controlItemBgActive} !important;
38380
38386
  }
@@ -38448,21 +38454,21 @@ const Table$1 = withDynamicSchemaProps(
38448
38454
  renderCell: (oe, ne, re, ae) => {
38449
38455
  if (!l && !c)
38450
38456
  return ae;
38451
- const he = L == null ? void 0 : L.current, Se = (L == null ? void 0 : L.pageSize) || 20;
38457
+ const he = z == null ? void 0 : z.current, Se = (z == null ? void 0 : z.pageSize) || 20;
38452
38458
  return he ? re = re + (he - 1) * Se + 1 : re = re + 1, ne.__index && (re = extractIndex(ne.__index)), /* @__PURE__ */ jsxs(
38453
38459
  "div",
38454
38460
  {
38455
38461
  role: "button",
38456
38462
  "aria-label": `table-index-${re}`,
38457
38463
  className: cls(oe ? "checked" : floatLeftClass, rowSelectCheckboxWrapperClass, {
38458
- [rowSelectCheckboxWrapperClassHover]: O
38464
+ [rowSelectCheckboxWrapperClassHover]: L
38459
38465
  }),
38460
38466
  children: [
38461
38467
  /* @__PURE__ */ jsxs("div", { className: cls(oe ? "checked" : null, rowSelectCheckboxContentClass), children: [
38462
38468
  l && /* @__PURE__ */ jsx(SortHandle$1, { id: W(ne) }),
38463
38469
  c && /* @__PURE__ */ jsx(TableIndex$2, { index: re })
38464
38470
  ] }),
38465
- O && /* @__PURE__ */ jsx(
38471
+ L && /* @__PURE__ */ jsx(
38466
38472
  "div",
38467
38473
  {
38468
38474
  className: cls(
@@ -38487,9 +38493,9 @@ const Table$1 = withDynamicSchemaProps(
38487
38493
  l,
38488
38494
  b,
38489
38495
  W,
38490
- O,
38496
+ L,
38491
38497
  Q,
38492
- L
38498
+ z
38493
38499
  ]
38494
38500
  ), te = useCallback(
38495
38501
  ({ children: oe }) => {
@@ -38532,13 +38538,13 @@ const Table$1 = withDynamicSchemaProps(
38532
38538
  defaultRowKey: H,
38533
38539
  dataSource: X
38534
38540
  }, S), Z), {
38535
- paginationProps: L,
38541
+ paginationProps: z,
38536
38542
  components: Y,
38537
38543
  onTableChange: d,
38538
38544
  onRow: G,
38539
38545
  rowClassName: ge,
38540
38546
  scroll: le,
38541
- columns: z,
38547
+ columns: O,
38542
38548
  expandable: xe,
38543
38549
  field: b,
38544
38550
  size: v
@@ -38570,8 +38576,11 @@ const Table$1 = withDynamicSchemaProps(
38570
38576
  transform: translateY(0);
38571
38577
  opacity: 1;
38572
38578
  }
38579
+ .ant-table-cell .ant-formily-item-control {
38580
+ max-width: 100% !important;
38581
+ }
38573
38582
  `, tableClassName = css`
38574
- .ant-formily-item.ant-formily-item-feedback-layout-loose {
38583
+ .ant-formily-item-feedback-layout-popover {
38575
38584
  margin-bottom: 0px !important;
38576
38585
  }
38577
38586
  .ant-formily-editable {
@@ -38589,7 +38598,7 @@ const Table$1 = withDynamicSchemaProps(
38589
38598
  border-radius: 0px;
38590
38599
  `, SubTable = observer$1(
38591
38600
  (e) => {
38592
- var z, j, R;
38601
+ var O, j, R;
38593
38602
  const { openSize: t } = e, { field: o, options: n } = useAssociationFieldContext(), { t: r } = useTranslation(), [i, a] = useState(!1), [l, c] = useState([]), u = useFieldNames$1(e), d = useFieldSchema(), p = useCompile(), m = useLabelUiSchema$1(n, (u == null ? void 0 : u.label) || "label"), h = useCollectionRecord(), g = useCollection(), { allowSelectExistingRecord: f, allowAddnew: C, allowDisassociation: S } = o.componentProps;
38594
38603
  useSubTableSpecialCase({ field: o });
38595
38604
  const b = (B, M) => {
@@ -38624,21 +38633,21 @@ const Table$1 = withDynamicSchemaProps(
38624
38633
  const { setVisible: B } = useActionContext(), { selectedRows: M, setSelectedRows: k } = useContext(RecordPickerContext);
38625
38634
  return {
38626
38635
  onClick() {
38627
- var O;
38636
+ var L;
38628
38637
  M.map((q) => o.value.push(markRecordAsNew(q))), o.onInput(o.value), o.initialValue = o.value, k([]), B(!1);
38629
- const N = Math.ceil(o.value.length / (((O = o.componentProps) == null ? void 0 : O.pageSize) || 10));
38638
+ const N = Math.ceil(o.value.length / (((L = o.componentProps) == null ? void 0 : L.pageSize) || 10));
38630
38639
  A(N);
38631
38640
  }
38632
38641
  };
38633
38642
  }, w = () => {
38634
38643
  const B = (n == null ? void 0 : n.targetKey) || "id", M = (o.value || []).map((N) => N == null ? void 0 : N[B]).filter(Boolean);
38635
38644
  return M.length ? { $and: [{ [`${B}.$ne`]: M }] } : {};
38636
- }, [T, A] = useState(1), [D, $] = useState(((z = o.componentProps) == null ? void 0 : z.pageSize) || 10);
38645
+ }, [T, A] = useState(1), [D, $] = useState(((O = o.componentProps) == null ? void 0 : O.pageSize) || 10);
38637
38646
  useEffect(() => {
38638
38647
  var B;
38639
38648
  $((B = o.componentProps) == null ? void 0 : B.pageSize);
38640
38649
  }, [(j = o.componentProps) == null ? void 0 : j.pageSize]);
38641
- const L = useMemo(() => {
38650
+ const z = useMemo(() => {
38642
38651
  var M;
38643
38652
  const B = Math.ceil(((M = o.value) == null ? void 0 : M.length) / 10);
38644
38653
  return {
@@ -38658,13 +38667,12 @@ const Table$1 = withDynamicSchemaProps(
38658
38667
  Table$1,
38659
38668
  {
38660
38669
  className: tableClassName,
38661
- bordered: !0,
38662
38670
  size: "small",
38663
38671
  field: o,
38664
38672
  showIndex: !0,
38665
38673
  dragSort: !1,
38666
38674
  showDel: C !== !1 || f !== !1 || S !== !1 ? (B) => o.editable ? S !== !1 ? !0 : B == null ? void 0 : B.__isNewRecord__ : !1 : !1,
38667
- pagination: L,
38675
+ pagination: z,
38668
38676
  rowSelection: { type: "none", hideSelectAll: !0 },
38669
38677
  footer: () => o.editable && /* @__PURE__ */ jsxs(Fragment, { children: [
38670
38678
  C !== !1 && /* @__PURE__ */ jsx(
@@ -38820,14 +38828,14 @@ const ReadPretty$7 = observer$1(
38820
38828
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
38821
38829
  const AssociationSelect = InternalAssociationSelect;
38822
38830
  AssociationSelect.Designer = function e() {
38823
- var B, M, k, N, O, q, E, U, G, H, W;
38831
+ var B, M, k, N, L, q, E, U, G, H, W;
38824
38832
  const { getCollectionFields: t, getInterface: o, getCollectionJoinField: n, getCollection: r, isTitleField: i } = useCollectionManager_deprecated(), { getField: a } = useCollection_deprecated(), { form: l } = useFormBlockContext(), c = useField(), u = useFieldSchema(), { t: d } = useTranslation(), p = useFilterByTk(), { dn: m, refresh: h, insertAdjacent: g } = useDesignable(), f = useCompile(), C = useIsShowMultipleSwitch(), { isAllowToSetDefaultValue: S } = useIsAllowToSetDefaultValue(), b = a(u.name) || n(u["x-collection-field"]), y = useFieldComponentOptions(), v = c.address.segments.includes("__form_grid"), I = o(b == null ? void 0 : b.interface), w = (B = I == null ? void 0 : I.validateSchema) == null ? void 0 : B.call(I, u), T = (M = b == null ? void 0 : b.uiSchema) == null ? void 0 : M.title, A = b != null && b.target ? t(b == null ? void 0 : b.target) : [];
38825
38833
  c.title === T || c.title;
38826
- const D = useSortFields(b == null ? void 0 : b.target), $ = ((O = (N = (k = c.componentProps) == null ? void 0 : k.service) == null ? void 0 : N.params) == null ? void 0 : O.sort) || [];
38834
+ const D = useSortFields(b == null ? void 0 : b.target), $ = ((L = (N = (k = c.componentProps) == null ? void 0 : k.service) == null ? void 0 : N.params) == null ? void 0 : L.sort) || [];
38827
38835
  useEffect(() => {
38828
38836
  c.readPretty !== u["x-read-pretty"] && (c.readPretty = !!u["x-read-pretty"]);
38829
38837
  }, [u["x-read-pretty"]]);
38830
- const L = $ == null ? void 0 : $.map((X) => X.startsWith("-") ? {
38838
+ const z = $ == null ? void 0 : $.map((X) => X.startsWith("-") ? {
38831
38839
  field: X.substring(1),
38832
38840
  direction: "desc"
38833
38841
  } : {
@@ -38835,7 +38843,7 @@ AssociationSelect.Designer = function e() {
38835
38843
  direction: "asc"
38836
38844
  });
38837
38845
  c.readPretty || c.required;
38838
- const z = A.filter((X) => i(X)).map((X) => {
38846
+ const O = A.filter((X) => i(X)).map((X) => {
38839
38847
  var J;
38840
38848
  return {
38841
38849
  value: X == null ? void 0 : X.name,
@@ -39073,7 +39081,7 @@ AssociationSelect.Designer = function e() {
39073
39081
  properties: {
39074
39082
  sort: {
39075
39083
  type: "array",
39076
- default: L,
39084
+ default: z,
39077
39085
  "x-component": "ArrayItems",
39078
39086
  "x-decorator": "FormItem",
39079
39087
  items: {
@@ -39186,7 +39194,7 @@ AssociationSelect.Designer = function e() {
39186
39194
  SchemaSettingsSelectItem,
39187
39195
  {
39188
39196
  title: d("Title field"),
39189
- options: z,
39197
+ options: O,
39190
39198
  value: (W = (H = c == null ? void 0 : c.componentProps) == null ? void 0 : H.fieldNames) == null ? void 0 : W.label,
39191
39199
  onChange: (X) => {
39192
39200
  var Q, Z;
@@ -39219,7 +39227,7 @@ AssociationSelect.Designer = function e() {
39219
39227
  ] });
39220
39228
  };
39221
39229
  AssociationSelect.FilterDesigner = function e() {
39222
- var I, w, T, A, D, $, L, z, j, R, B;
39230
+ var I, w, T, A, D, $, z, O, j, R, B;
39223
39231
  const { getCollectionFields: t, getInterface: o, getCollectionJoinField: n } = useCollectionManager_deprecated(), { getField: r } = useCollection_deprecated(), { form: i } = useFormBlockContext(), a = useField(), l = useFieldSchema(), { t: c } = useTranslation(), { dn: u, refresh: d } = useDesignable(), p = useCompile(), m = r(l.name) || n(l["x-collection-field"]), h = o(m == null ? void 0 : m.interface), g = (I = h == null ? void 0 : h.validateSchema) == null ? void 0 : I.call(h, l), f = (w = m == null ? void 0 : m.uiSchema) == null ? void 0 : w.title, C = m != null && m.target ? t(m == null ? void 0 : m.target) : [];
39224
39232
  a.title === f || a.title;
39225
39233
  const S = useSortFields(m == null ? void 0 : m.target), b = ((D = (A = (T = a.componentProps) == null ? void 0 : T.service) == null ? void 0 : A.params) == null ? void 0 : D.sort) || [], y = b == null ? void 0 : b.map((M) => M.startsWith("-") ? {
@@ -39336,8 +39344,8 @@ AssociationSelect.FilterDesigner = function e() {
39336
39344
  if (["percent"].includes(m == null ? void 0 : m.interface))
39337
39345
  for (const E of k)
39338
39346
  (E.maxValue || E.minValue) && (E.percentMode = !0), E.percentFormat && (E.percentFormats = !0);
39339
- const O = _.concat([], ((q = m == null ? void 0 : m.uiSchema) == null ? void 0 : q["x-validator"]) || [], k);
39340
- a.validator = O, l["x-validator"] = k, N["x-validator"] = k, u.emit("patch", {
39347
+ const L = _.concat([], ((q = m == null ? void 0 : m.uiSchema) == null ? void 0 : q["x-validator"]) || [], k);
39348
+ a.validator = L, l["x-validator"] = k, N["x-validator"] = k, u.emit("patch", {
39341
39349
  schema: N
39342
39350
  }), d();
39343
39351
  }
@@ -39374,7 +39382,7 @@ AssociationSelect.FilterDesigner = function e() {
39374
39382
  SchemaSettingsDataScope,
39375
39383
  {
39376
39384
  collectionName: m == null ? void 0 : m.target,
39377
- defaultFilter: ((j = (z = (L = a.componentProps) == null ? void 0 : L.service) == null ? void 0 : z.params) == null ? void 0 : j.filter) || {},
39385
+ defaultFilter: ((j = (O = (z = a.componentProps) == null ? void 0 : z.service) == null ? void 0 : O.params) == null ? void 0 : j.filter) || {},
39378
39386
  form: i,
39379
39387
  onSubmit: ({ filter: M }) => {
39380
39388
  M = removeNullCondition(M), _.set(a.componentProps, "service.params.filter", M), l["x-component-props"] = a.componentProps, u.emit("patch", {
@@ -39478,10 +39486,10 @@ AssociationSelect.FilterDesigner = function e() {
39478
39486
  options: v,
39479
39487
  value: (B = (R = a == null ? void 0 : a.componentProps) == null ? void 0 : R.fieldNames) == null ? void 0 : B.label,
39480
39488
  onChange: (M) => {
39481
- var O, q;
39489
+ var L, q;
39482
39490
  const k = {
39483
39491
  "x-uid": l["x-uid"]
39484
- }, N = F(x(x({}, (q = (O = m == null ? void 0 : m.uiSchema) == null ? void 0 : O["x-component-props"]) == null ? void 0 : q.fieldNames), a.componentProps.fieldNames), {
39492
+ }, N = F(x(x({}, (q = (L = m == null ? void 0 : m.uiSchema) == null ? void 0 : L["x-component-props"]) == null ? void 0 : q.fieldNames), a.componentProps.fieldNames), {
39485
39493
  label: M
39486
39494
  });
39487
39495
  a.componentProps.fieldNames = N, l["x-component-props"] = l["x-component-props"] || {}, l["x-component-props"].fieldNames = N, k["x-component-props"] = l["x-component-props"], u.emit("patch", {
@@ -41020,8 +41028,8 @@ const InternalListBlockProvider = (e) => {
41020
41028
  const d = i ? o.fontSizeLG * o.lineHeightLG + o.padding * 2 - 1 : 0, m = Object.keys(((g = t.parent.properties.actionBar) == null ? void 0 : g.properties) || {}).length > 0 || n ? o.controlHeight + 2 * o.marginLG : o.marginLG, h = u ? o.controlHeight + o.paddingLG + o.marginLG : o.marginLG;
41021
41029
  return e - m - h - d;
41022
41030
  }, InternalList = (e) => {
41023
- var z, j, R;
41024
- const { service: t } = useListBlockContext(), { run: o, params: n } = t, r = useFieldSchema(), i = useDesigner(), a = (z = t == null ? void 0 : t.data) == null ? void 0 : z.meta, { pageSize: l, count: c, hasNext: u, page: d } = a || {}, p = useField(), [m] = useState(/* @__PURE__ */ new Map()), { wrapSSR: h, componentCls: g, hashId: f } = useStyles$5(), C = useListBlockHeight(), { token: S } = theme.useToken(), b = useCallback(
41031
+ var O, j, R;
41032
+ const { service: t } = useListBlockContext(), { run: o, params: n } = t, r = useFieldSchema(), i = useDesigner(), a = (O = t == null ? void 0 : t.data) == null ? void 0 : O.meta, { pageSize: l, count: c, hasNext: u, page: d } = a || {}, p = useField(), [m] = useState(/* @__PURE__ */ new Map()), { wrapSSR: h, componentCls: g, hashId: f } = useStyles$5(), C = useListBlockHeight(), { token: S } = theme.useToken(), b = useCallback(
41025
41033
  (B) => (m.has(B) || m.set(
41026
41034
  B,
41027
41035
  new Schema({
@@ -41045,7 +41053,7 @@ const InternalListBlockProvider = (e) => {
41045
41053
  labelAlign: T = "left",
41046
41054
  labelWidth: A = 120,
41047
41055
  labelWrap: D = !0
41048
- } = (I == null ? void 0 : I["x-component-props"]) || {}, L = (() => {
41056
+ } = (I == null ? void 0 : I["x-component-props"]) || {}, z = (() => {
41049
41057
  var B;
41050
41058
  return c ? {
41051
41059
  onChange: v,
@@ -41122,7 +41130,7 @@ const InternalListBlockProvider = (e) => {
41122
41130
  children: /* @__PURE__ */ jsx(
41123
41131
  List$1,
41124
41132
  F(x({}, e), {
41125
- pagination: !a || !((j = p.value) != null && j.length) ? !1 : L,
41133
+ pagination: !a || !((j = p.value) != null && j.length) ? !1 : z,
41126
41134
  loading: t == null ? void 0 : t.loading,
41127
41135
  children: (R = p.value) != null && R.length ? p.value.map((B, M) => /* @__PURE__ */ jsx(
41128
41136
  RecursionField,
@@ -42161,7 +42169,7 @@ const useSideMenuRef = () => {
42161
42169
  MenuItemDesignerContext.displayName = "MenuItemDesignerContext";
42162
42170
  const Menu = observer$1(
42163
42171
  (e) => {
42164
- const L = useProps(e), {
42172
+ const z = useProps(e), {
42165
42173
  onSelect: t,
42166
42174
  mode: o,
42167
42175
  selectedUid: n,
@@ -42170,7 +42178,7 @@ const Menu = observer$1(
42170
42178
  defaultSelectedKeys: a,
42171
42179
  defaultOpenKeys: l,
42172
42180
  children: c
42173
- } = L, u = K(L, [
42181
+ } = z, u = K(z, [
42174
42182
  "onSelect",
42175
42183
  "mode",
42176
42184
  "selectedUid",
@@ -42181,14 +42189,14 @@ const Menu = observer$1(
42181
42189
  "children"
42182
42190
  ]), { t: d } = useTranslation(), p = useDesigner(), m = useFieldSchema(), { refresh: h } = useDesignable(), g = useAPIClient(), { render: f } = useSchemaInitializerRender(m["x-initializer"], m["x-initializer-props"]), C = useSideMenuRef(), [S, b] = useState(), [y, v] = useState(() => a || (r ? findKeysByUid(m, r) : [])), [I, w] = useState(!1), [T, A] = useState(() => ["inline", "mix"].includes(o) ? l || y : l), D = useMemo(() => {
42183
42191
  var j;
42184
- let z;
42192
+ let O;
42185
42193
  if (n) {
42186
42194
  const R = findKeysByUid(m, n);
42187
- z = (R == null ? void 0 : R[0]) || null;
42195
+ O = (R == null ? void 0 : R[0]) || null;
42188
42196
  } else
42189
- z = (y == null ? void 0 : y[0]) || null;
42190
- if (o === "mix" && z) {
42191
- const R = (j = m.properties) == null ? void 0 : j[z];
42197
+ O = (y == null ? void 0 : y[0]) || null;
42198
+ if (o === "mix" && O) {
42199
+ const R = (j = m.properties) == null ? void 0 : j[O];
42192
42200
  if ((R == null ? void 0 : R["x-component"]) === "Menu.SubMenu")
42193
42201
  return R;
42194
42202
  }
@@ -42199,8 +42207,8 @@ const Menu = observer$1(
42199
42207
  b(void 0);
42200
42208
  return;
42201
42209
  }
42202
- const z = findKeysByUid(m, n);
42203
- b(z), ["inline", "mix"].includes(o) && A(l || z);
42210
+ const O = findKeysByUid(m, n);
42211
+ b(O), ["inline", "mix"].includes(o) && A(l || O);
42204
42212
  }, [n]), useEffect(() => {
42205
42213
  ["inline", "mix"].includes(o) && A(y);
42206
42214
  }, [y]);
@@ -42756,9 +42764,9 @@ const toValue = (e, t) => e == null ? t : e, ReadPrettyRecordPicker = observer$1
42756
42764
  /* @__PURE__ */ jsx("span", { className: "test-record-picker-read-pretty-item", children: g || f ? $ : /* @__PURE__ */ jsx(
42757
42765
  "a",
42758
42766
  {
42759
- onClick: (L) => {
42760
- var z;
42761
- L.stopPropagation(), L.preventDefault(), l(!0), p(w), (z = C == null ? void 0 : C.current) == null || z.setPopoverVisible(!1);
42767
+ onClick: (z) => {
42768
+ var O;
42769
+ z.stopPropagation(), z.preventDefault(), l(!0), p(w), (O = C == null ? void 0 : C.current) == null || O.setPopoverVisible(!1);
42762
42770
  },
42763
42771
  children: $
42764
42772
  }
@@ -44174,18 +44182,18 @@ const TableActionColumnDesigner = (e) => {
44174
44182
  "sort-field"
44175
44183
  );
44176
44184
  }, TableBlockDesigner = () => {
44177
- var A, D, $, L, z, j, R, B, M, k, N;
44178
- const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: o, getCollection: n } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c } = useTableBlockContext(), { t: u } = useTranslation(), { dn: d } = useDesignable(), { componentNamePrefix: p } = useBlockTemplateContext(), m = ((D = (A = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : A.params) == null ? void 0 : D.sort) || [], h = (($ = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : $.resource) || ((L = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : L.association), g = !((z = i == null ? void 0 : i["x-decorator-props"]) != null && z.disableTemplate), f = m == null ? void 0 : m.map((O) => O != null && O.startsWith("-") ? {
44179
- field: O.substring(1),
44185
+ var A, D, $, z, O, j, R, B, M, k, N;
44186
+ const { name: e, title: t } = useCollection_deprecated(), { getCollectionField: o, getCollection: n } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c } = useTableBlockContext(), { t: u } = useTranslation(), { dn: d } = useDesignable(), { componentNamePrefix: p } = useBlockTemplateContext(), m = ((D = (A = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : A.params) == null ? void 0 : D.sort) || [], h = (($ = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : $.resource) || ((z = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : z.association), g = !((O = i == null ? void 0 : i["x-decorator-props"]) != null && O.disableTemplate), f = m == null ? void 0 : m.map((L) => L != null && L.startsWith("-") ? {
44187
+ field: L.substring(1),
44180
44188
  direction: "desc"
44181
44189
  } : {
44182
- field: O,
44190
+ field: L,
44183
44191
  direction: "asc"
44184
44192
  }), C = useSchemaTemplate(), S = useCollection_deprecated(), { dragSort: b, resource: y } = r.decoratorProps, v = y && o(y), I = y != null && y.includes(".") ? (j = n(v == null ? void 0 : v.target)) == null ? void 0 : j.tree : !!(S != null && S.tree), w = useCallback(
44185
- ({ filter: O }) => {
44186
- O = removeNullCondition(O);
44193
+ ({ filter: L }) => {
44194
+ L = removeNullCondition(L);
44187
44195
  const q = r.decoratorProps.params || {};
44188
- q.filter = O, r.decoratorProps.params = q, i["x-decorator-props"].params = q, d.emit("patch", {
44196
+ q.filter = L, r.decoratorProps.params = q, i["x-decorator-props"].params = q, d.emit("patch", {
44189
44197
  schema: {
44190
44198
  "x-uid": i["x-uid"],
44191
44199
  "x-decorator-props": i["x-decorator-props"]
@@ -44203,11 +44211,11 @@ const TableActionColumnDesigner = (e) => {
44203
44211
  title: u("Tree table"),
44204
44212
  defaultChecked: !0,
44205
44213
  checked: I ? r.decoratorProps.treeTable : !1,
44206
- onChange: (O) => {
44214
+ onChange: (L) => {
44207
44215
  var E;
44208
- r.decoratorProps.treeTable = O, i["x-decorator-props"].treeTable = O;
44216
+ r.decoratorProps.treeTable = L, i["x-decorator-props"].treeTable = L;
44209
44217
  const q = F(x({}, (E = c.params) == null ? void 0 : E[0]), {
44210
- tree: O ? !0 : null
44218
+ tree: L ? !0 : null
44211
44219
  });
44212
44220
  d.emit("patch", {
44213
44221
  schema: i
@@ -44220,13 +44228,13 @@ const TableActionColumnDesigner = (e) => {
44220
44228
  {
44221
44229
  title: u("Enable drag and drop sorting"),
44222
44230
  checked: r.decoratorProps.dragSort,
44223
- onChange: (O) => V(void 0, null, function* () {
44224
- O && v && (yield T.resource("collections.fields", v.collectionName).update({
44231
+ onChange: (L) => V(void 0, null, function* () {
44232
+ L && v && (yield T.resource("collections.fields", v.collectionName).update({
44225
44233
  filterByTk: v.name,
44226
44234
  values: {
44227
44235
  sortable: !0
44228
44236
  }
44229
- })), r.decoratorProps.dragSort = O, i["x-decorator-props"].dragSort = O, d.emit("patch", {
44237
+ })), r.decoratorProps.dragSort = L, i["x-decorator-props"].dragSort = L, d.emit("patch", {
44230
44238
  schema: {
44231
44239
  "x-uid": i["x-uid"],
44232
44240
  "x-decorator-props": i["x-decorator-props"]
@@ -44320,9 +44328,9 @@ const TableActionColumnDesigner = (e) => {
44320
44328
  }
44321
44329
  }
44322
44330
  },
44323
- onSubmit: ({ sort: O }) => {
44331
+ onSubmit: ({ sort: L }) => {
44324
44332
  var U;
44325
- const q = O.map((G) => G.direction === "desc" ? `-${G.field}` : G.field), E = r.decoratorProps.params || {};
44333
+ const q = L.map((G) => G.direction === "desc" ? `-${G.field}` : G.field), E = r.decoratorProps.params || {};
44326
44334
  E.sort = q, r.decoratorProps.params = E, i["x-decorator-props"].params = E, d.emit("patch", {
44327
44335
  schema: {
44328
44336
  "x-uid": i["x-uid"],
@@ -44346,10 +44354,10 @@ const TableActionColumnDesigner = (e) => {
44346
44354
  { label: "100", value: 100 },
44347
44355
  { label: "200", value: 200 }
44348
44356
  ],
44349
- onChange: (O) => {
44357
+ onChange: (L) => {
44350
44358
  var E;
44351
44359
  const q = r.decoratorProps.params || {};
44352
- q.pageSize = O, r.decoratorProps.params = q, i["x-decorator-props"].params = q, c.run(F(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: O, page: 1 })), d.emit("patch", {
44360
+ q.pageSize = L, r.decoratorProps.params = q, i["x-decorator-props"].params = q, c.run(F(x({}, (E = c.params) == null ? void 0 : E[0]), { pageSize: L, page: 1 })), d.emit("patch", {
44353
44361
  schema: {
44354
44362
  "x-uid": i["x-uid"],
44355
44363
  "x-decorator-props": i["x-decorator-props"]
@@ -44368,12 +44376,12 @@ const TableActionColumnDesigner = (e) => {
44368
44376
  { label: u("Middle"), value: "middle" },
44369
44377
  { label: u("Small"), value: "small" }
44370
44378
  ],
44371
- onChange: (O) => {
44379
+ onChange: (L) => {
44372
44380
  const q = i.reduceProperties((E, U) => {
44373
44381
  if (U["x-component"] === "TableV2")
44374
44382
  return U;
44375
44383
  }, null);
44376
- q["x-component-props"] = q["x-component-props"] || {}, q["x-component-props"].size = O, d.emit("patch", {
44384
+ q["x-component-props"] = q["x-component-props"] || {}, q["x-component-props"].size = L, d.emit("patch", {
44377
44385
  schema: {
44378
44386
  "x-uid": q["x-uid"],
44379
44387
  "x-decorator-props": q["x-component-props"]
@@ -44420,7 +44428,7 @@ TableField.ActionBar = observer$1(
44420
44428
  { displayName: "TableField.ActionBar" }
44421
44429
  );
44422
44430
  const TableSelectorDesigner = () => {
44423
- var T, A, D, $, L, z;
44431
+ var T, A, D, $, z, O;
44424
44432
  const { name: e, title: t } = useCollection_deprecated(), { getCollectionJoinField: o, getAllCollectionsInheritChain: n } = useCollectionManager_deprecated(), r = useField(), i = useFieldSchema(), { form: a } = useFormBlockContext(), l = useSortFields(e), { service: c, extraFilter: u } = useTableSelectorContext(), { t: d } = useTranslation(), { dn: p } = useDesignable(), m = ((A = (T = i == null ? void 0 : i["x-decorator-props"]) == null ? void 0 : T.params) == null ? void 0 : A.sort) || [], h = recursiveParent$1(i, "CollectionField"), g = o(h == null ? void 0 : h["x-collection-field"]), f = m == null ? void 0 : m.map((j) => j.startsWith("-") ? {
44425
44433
  field: j.substring(1),
44426
44434
  direction: "desc"
@@ -44578,7 +44586,7 @@ const TableSelectorDesigner = () => {
44578
44586
  SchemaSettingsSelectItem,
44579
44587
  {
44580
44588
  title: d("Records per page"),
44581
- value: ((z = (L = r.decoratorProps) == null ? void 0 : L.params) == null ? void 0 : z.pageSize) || 20,
44589
+ value: ((O = (z = r.decoratorProps) == null ? void 0 : z.params) == null ? void 0 : O.pageSize) || 20,
44582
44590
  options: [
44583
44591
  { label: "5", value: 5 },
44584
44592
  { label: "10", value: 10 },
@@ -46349,10 +46357,10 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46349
46357
  const D = ((A = r(T)) == null ? void 0 : A.fields) || [];
46350
46358
  n(
46351
46359
  D == null ? void 0 : D.filter(($) => supportTypes.includes($.type)).map(($) => {
46352
- var L;
46360
+ var z;
46353
46361
  return {
46354
46362
  value: $.name,
46355
- label: g(((L = $.uiSchema) == null ? void 0 : L.title) || $.name)
46363
+ label: g(((z = $.uiSchema) == null ? void 0 : z.title) || $.name)
46356
46364
  };
46357
46365
  })
46358
46366
  );
@@ -46534,14 +46542,14 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46534
46542
  const t = useRecord();
46535
46543
  return /* @__PURE__ */ jsx(AddFieldAction, x({ item: t }, e));
46536
46544
  }, AddFieldAction = (e) => {
46537
- var z, j;
46538
- const { scope: t, getContainer: o, item: n, children: r, trigger: i, align: a, database: l } = e, { getInterface: c, getTemplate: u, collections: d, getCollection: p } = useCollectionManager_deprecated(), [m, h] = useState(!1), [g, f] = useState(), [C, S] = useState({}), b = useCompile(), { t: y } = useTranslation(), { isDialect: v } = useDialect(), I = useFieldInterfaceOptions(), w = ((j = (z = p(n.name)) == null ? void 0 : z.options) == null ? void 0 : j.fields) || n.fields || [], T = useMemo(() => d.map((R) => ({
46545
+ var O, j;
46546
+ const { scope: t, getContainer: o, item: n, children: r, trigger: i, align: a, database: l } = e, { getInterface: c, getTemplate: u, collections: d, getCollection: p } = useCollectionManager_deprecated(), [m, h] = useState(!1), [g, f] = useState(), [C, S] = useState({}), b = useCompile(), { t: y } = useTranslation(), { isDialect: v } = useDialect(), I = useFieldInterfaceOptions(), w = ((j = (O = p(n.name)) == null ? void 0 : O.options) == null ? void 0 : j.fields) || n.fields || [], T = useMemo(() => d.map((R) => ({
46539
46547
  label: b(R.title),
46540
46548
  value: R.name
46541
46549
  })), []), A = useCallback(() => {
46542
46550
  const { availableFieldInterfaces: R } = u(n.template) || {}, { exclude: B, include: M } = R || {}, k = [];
46543
46551
  return I.forEach((N) => {
46544
- var O;
46552
+ var L;
46545
46553
  if (N.key === "systemInfo")
46546
46554
  k.push(F(x({}, N), {
46547
46555
  children: N.children.filter((q) => q.hidden ? !1 : q.value === "tableoid" ? M != null && M.length ? M.includes(q.value) : (l == null ? void 0 : l.dialect) === "postgres" : typeof n[q.value] == "boolean" ? n[q.value] : !0)
@@ -46554,7 +46562,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46554
46562
  U && q.push(F(x({}, U), {
46555
46563
  targetScope: E == null ? void 0 : E.targetScope
46556
46564
  }));
46557
- }) : B != null && B.length ? q = (O = N == null ? void 0 : N.children) == null ? void 0 : O.filter((E) => !B.includes(E.name)) : q = N == null ? void 0 : N.children, q != null && q.length && k.push(F(x({}, N), {
46565
+ }) : B != null && B.length ? q = (L = N == null ? void 0 : N.children) == null ? void 0 : L.filter((E) => !B.includes(E.name)) : q = N == null ? void 0 : N.children, q != null && q.length && k.push(F(x({}, N), {
46558
46566
  children: q
46559
46567
  }));
46560
46568
  }
@@ -46599,7 +46607,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46599
46607
  M && (S(M), h(!0));
46600
46608
  },
46601
46609
  items: D
46602
- }), [c, D, n]), L = useMemo(() => w.filter((R) => ["string", "bigInt", "integer"].includes(R.type)).map((R) => {
46610
+ }), [c, D, n]), z = useMemo(() => w.filter((R) => ["string", "bigInt", "integer"].includes(R.type)).map((R) => {
46603
46611
  var B;
46604
46612
  return {
46605
46613
  value: R.name,
@@ -46627,7 +46635,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46627
46635
  collections: T,
46628
46636
  isDialect: v,
46629
46637
  disabledJSONB: !1,
46630
- scopeKeyOptions: L,
46638
+ scopeKeyOptions: z,
46631
46639
  createMainOnly: !0,
46632
46640
  editMainOnly: !0
46633
46641
  }, t)
@@ -46733,14 +46741,14 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46733
46741
  "a",
46734
46742
  F(x({}, a), {
46735
46743
  onClick: () => V(void 0, null, function* () {
46736
- var L, z;
46744
+ var z, O;
46737
46745
  const { data: T } = yield g.resource("collections.fields", n.collectionName).get({
46738
46746
  filterByTk: n.name,
46739
46747
  appends: ["reverseField"]
46740
46748
  });
46741
46749
  b(T == null ? void 0 : T.data);
46742
46750
  const A = l(n.interface), D = cloneDeep(T == null ? void 0 : T.data) || {};
46743
- D != null && D.reverseField || (D.autoCreateReverseField = !1, D.reverseField = (L = A == null ? void 0 : A.default) == null ? void 0 : L.reverseField, set(D.reverseField, "name", `f_${uid()}`), set(D.reverseField, "uiSchema.title", (z = n.__parent) == null ? void 0 : z.title));
46751
+ D != null && D.reverseField || (D.autoCreateReverseField = !1, D.reverseField = (z = A == null ? void 0 : A.default) == null ? void 0 : z.reverseField, set(D.reverseField, "name", `f_${uid()}`), set(D.reverseField, "uiSchema.title", (O = n.__parent) == null ? void 0 : O.title));
46744
46752
  const $ = getSchema$7(A, D, n, C);
46745
46753
  h($), p(!0);
46746
46754
  }),
@@ -46840,13 +46848,13 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46840
46848
  }, [w, T] = useState({}), A = p(a), D = getIsOverriding(A, n), $ = useMemo(() => h.map((j) => ({
46841
46849
  label: v(j.title),
46842
46850
  value: j.name
46843
- })), []), L = () => {
46851
+ })), []), z = () => {
46844
46852
  const j = useForm(), { refresh: R } = useResourceActionContext(), { refreshCM: B } = useCollectionManager_deprecated(), M = useActionContext(), { resource: k } = useResourceContext();
46845
46853
  return {
46846
46854
  run() {
46847
46855
  return V(this, null, function* () {
46848
46856
  yield j.submit();
46849
- const O = cloneDeep(j.values), q = omit$1(O, [
46857
+ const L = cloneDeep(j.values), q = omit$1(L, [
46850
46858
  "key",
46851
46859
  "uiSchemaUid",
46852
46860
  "collectionName",
@@ -46864,7 +46872,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46864
46872
  });
46865
46873
  }
46866
46874
  };
46867
- }, z = useMemo(() => {
46875
+ }, O = useMemo(() => {
46868
46876
  var j;
46869
46877
  return (n == null ? void 0 : n.fields) || ((j = d(n.collectionName)) == null ? void 0 : j.options.fields.filter((R) => ["string", "bigInt", "integer"].includes(R.type)).map((R) => {
46870
46878
  var B;
@@ -46909,7 +46917,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46909
46917
  components: F(x({}, components$1), { ArrayTable }),
46910
46918
  scope: x({
46911
46919
  getContainer: o,
46912
- useOverridingCollectionField: L,
46920
+ useOverridingCollectionField: z,
46913
46921
  useCancelAction,
46914
46922
  showReverseFieldConfig: !(w != null && w.reverseField),
46915
46923
  createOnly: !0,
@@ -46917,7 +46925,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
46917
46925
  isOverride: !0,
46918
46926
  targetScope: { target: I(l), through: I(c) },
46919
46927
  collections: $,
46920
- scopeKeyOptions: z
46928
+ scopeKeyOptions: O
46921
46929
  }, t)
46922
46930
  }
46923
46931
  )
@@ -47349,7 +47357,7 @@ const getSchema$4 = (e, t, o) => {
47349
47357
  });
47350
47358
  }), o.filter((n) => n.children.length > 0);
47351
47359
  }, PreviewCom = (e) => {
47352
- const { databaseView: t, viewName: o, sources: n, schema: r } = e, { data: i } = useContext(ResourceActionContext), a = useAPIClient(), { t: l } = useTranslation(), [c, u] = useState(!1), [d, p] = useState([]), [m, h] = useState([]), [g, f] = useState(n), [C, S] = useState([]), b = useField(), y = useForm(), { getCollection: v, getInterface: I, getCollectionFields: w, getInheritCollections: T, getParentCollectionFields: A } = useCollectionManager_deprecated(), D = useCompile(), L = useFieldInterfaceOptions().filter((R) => !["relation", "systemInfo"].includes(R.key));
47360
+ const { databaseView: t, viewName: o, sources: n, schema: r } = e, { data: i } = useContext(ResourceActionContext), a = useAPIClient(), { t: l } = useTranslation(), [c, u] = useState(!1), [d, p] = useState([]), [m, h] = useState([]), [g, f] = useState(n), [C, S] = useState([]), b = useField(), y = useForm(), { getCollection: v, getInterface: I, getCollectionFields: w, getInheritCollections: T, getParentCollectionFields: A } = useCollectionManager_deprecated(), D = useCompile(), z = useFieldInterfaceOptions().filter((R) => !["relation", "systemInfo"].includes(R.key));
47353
47361
  useEffect(() => {
47354
47362
  const R = [];
47355
47363
  g.forEach((B) => {
@@ -47368,14 +47376,14 @@ const getSchema$4 = (e, t, o) => {
47368
47376
  };
47369
47377
  })
47370
47378
  };
47371
- }), O = (q = M.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : q.map((E) => {
47379
+ }), L = (q = M.fields.filter((E) => !["obo", "oho", "m2m", "o2m"].includes(E == null ? void 0 : E.interface))) == null ? void 0 : q.map((E) => {
47372
47380
  var U;
47373
47381
  return { value: E.name, key: E.name, label: l(((U = E.uiSchema) == null ? void 0 : U.title) || E.name) };
47374
47382
  }).concat(N);
47375
47383
  R.push({
47376
47384
  value: B,
47377
47385
  label: l(M.title || M.name),
47378
- children: O
47386
+ children: L
47379
47387
  });
47380
47388
  }), h(R);
47381
47389
  }, [g, t]), useEffect(() => {
@@ -47384,11 +47392,11 @@ const getSchema$4 = (e, t, o) => {
47384
47392
  if (R) {
47385
47393
  u(!1), p([]);
47386
47394
  const k = (M = Object.values((B = R == null ? void 0 : R.data) == null ? void 0 : B.fields)) == null ? void 0 : M.map((N) => {
47387
- var O, q;
47395
+ var L, q;
47388
47396
  if (N.source) {
47389
47397
  const E = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
47390
47398
  return F(x({}, N), {
47391
- uiSchema: F(x({}, omit$1(E.uiSchema, "rawTitle")), { title: ((O = E.uiSchema) == null ? void 0 : O.title) || E.name })
47399
+ uiSchema: F(x({}, omit$1(E.uiSchema, "rawTitle")), { title: ((L = E.uiSchema) == null ? void 0 : L.title) || E.name })
47392
47400
  });
47393
47401
  } else {
47394
47402
  const E = (i == null ? void 0 : i.data.find((U) => U.name === N.name)) || N;
@@ -47398,16 +47406,16 @@ const getSchema$4 = (e, t, o) => {
47398
47406
  }
47399
47407
  });
47400
47408
  b.value = k, setTimeout(() => {
47401
- var N, O, q;
47402
- p(k), y.setValuesIn("sources", (N = R.data) == null ? void 0 : N.sources), f((O = R.data) == null ? void 0 : O.sources), S((q = R == null ? void 0 : R.data) == null ? void 0 : q.unsupportedFields);
47409
+ var N, L, q;
47410
+ p(k), y.setValuesIn("sources", (N = R.data) == null ? void 0 : N.sources), f((L = R.data) == null ? void 0 : L.sources), S((q = R == null ? void 0 : R.data) == null ? void 0 : q.unsupportedFields);
47403
47411
  });
47404
47412
  }
47405
47413
  }).catch);
47406
47414
  }, [t]);
47407
- const z = (R, B) => {
47415
+ const O = (R, B) => {
47408
47416
  d.splice(B, 1, R), p(d), b.value = d.map((M) => {
47409
- var N, O, q;
47410
- const k = typeof M.source == "string" ? M.source : (q = (O = (N = M.source) == null ? void 0 : N.filter) == null ? void 0 : O.call(N, Boolean)) == null ? void 0 : q.join(".");
47417
+ var N, L, q;
47418
+ const k = typeof M.source == "string" ? M.source : (q = (L = (N = M.source) == null ? void 0 : N.filter) == null ? void 0 : L.call(N, Boolean)) == null ? void 0 : q.join(".");
47411
47419
  return F(x({}, M), {
47412
47420
  source: k
47413
47421
  });
@@ -47433,8 +47441,8 @@ const getSchema$4 = (e, t, o) => {
47433
47441
  options: D(m),
47434
47442
  onChange: (k, N) => {
47435
47443
  var q;
47436
- const O = (q = w(k == null ? void 0 : k[0])) == null ? void 0 : q.find((E) => E.name === last(k));
47437
- z(F(x({}, B), { source: k, uiSchema: O == null ? void 0 : O.uiSchema }), M);
47444
+ const L = (q = w(k == null ? void 0 : k[0])) == null ? void 0 : q.find((E) => E.name === last(k));
47445
+ O(F(x({}, B), { source: k, uiSchema: L == null ? void 0 : L.uiSchema }), M);
47438
47446
  },
47439
47447
  placeholder: l("Select field source")
47440
47448
  }
@@ -47454,7 +47462,7 @@ const getSchema$4 = (e, t, o) => {
47454
47462
  popupMatchSelectWidth: !1,
47455
47463
  style: { width: "100%" },
47456
47464
  options: (k == null ? void 0 : k.possibleTypes.map((N) => ({ label: N, value: N }))) || [],
47457
- onChange: (N) => z(F(x({}, k), { type: N }), M)
47465
+ onChange: (N) => O(F(x({}, k), { type: N }), M)
47458
47466
  }
47459
47467
  );
47460
47468
  }
@@ -47465,19 +47473,19 @@ const getSchema$4 = (e, t, o) => {
47465
47473
  key: "interface",
47466
47474
  width: 150,
47467
47475
  render: (R, B, M) => {
47468
- const k = d[M], N = getInterfaceOptions(L, k.type);
47476
+ const k = d[M], N = getInterfaceOptions(z, k.type);
47469
47477
  return k.source ? R : /* @__PURE__ */ jsx(
47470
47478
  Select$1,
47471
47479
  {
47472
47480
  defaultValue: R,
47473
47481
  style: { width: "100%" },
47474
47482
  popupMatchSelectWidth: !1,
47475
- onChange: (O) => {
47483
+ onChange: (L) => {
47476
47484
  var E;
47477
- const q = I(O);
47478
- z(F(x({}, k), { interface: O, uiSchema: (E = q == null ? void 0 : q.default) == null ? void 0 : E.uiSchema }), M);
47485
+ const q = I(L);
47486
+ O(F(x({}, k), { interface: L, uiSchema: (E = q == null ? void 0 : q.default) == null ? void 0 : E.uiSchema }), M);
47479
47487
  },
47480
- children: N.map((O) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(O.label), children: O.children.map((q) => /* @__PURE__ */ jsx(Select$1.Option, { value: q.name, children: D(q.label) }, q.value)) }, O.key))
47488
+ children: N.map((L) => /* @__PURE__ */ jsx(Select$1.OptGroup, { label: D(L.label), children: L.children.map((q) => /* @__PURE__ */ jsx(Select$1.Option, { value: q.name, children: D(q.label) }, q.value)) }, L.key))
47481
47489
  }
47482
47490
  );
47483
47491
  }
@@ -47494,8 +47502,8 @@ const getSchema$4 = (e, t, o) => {
47494
47502
  Input$3,
47495
47503
  {
47496
47504
  defaultValue: ((N = k == null ? void 0 : k.uiSchema) == null ? void 0 : N.title) || R,
47497
- onChange: (O) => z(
47498
- F(x({}, k), { uiSchema: F(x({}, omit$1(k == null ? void 0 : k.uiSchema, "rawTitle")), { title: O.target.value }) }),
47505
+ onChange: (L) => O(
47506
+ F(x({}, k), { uiSchema: F(x({}, omit$1(k == null ? void 0 : k.uiSchema, "rawTitle")), { title: L.target.value }) }),
47499
47507
  M
47500
47508
  )
47501
47509
  }
@@ -47549,15 +47557,15 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
47549
47557
  }, b = (y) => {
47550
47558
  var v;
47551
47559
  return (v = y.filter((I) => I.source || I.interface)) == null ? void 0 : v.map((I) => {
47552
- var $, L, z, j, R, B;
47553
- const w = typeof (I == null ? void 0 : I.source) == "string" ? ($ = I == null ? void 0 : I.source) == null ? void 0 : $.split(".") : I == null ? void 0 : I.source, T = (z = (L = h(w == null ? void 0 : w[0])) == null ? void 0 : L.find((M) => M.name === (w == null ? void 0 : w[1]))) == null ? void 0 : z.uiSchema, A = ((j = I == null ? void 0 : I.uiSchema) == null ? void 0 : j.title) || (T == null ? void 0 : T.title) || I.name, D = I.source ? T : (B = (R = m(I.interface)) == null ? void 0 : R.default) == null ? void 0 : B.uiSchema;
47560
+ var $, z, O, j, R, B;
47561
+ const w = typeof (I == null ? void 0 : I.source) == "string" ? ($ = I == null ? void 0 : I.source) == null ? void 0 : $.split(".") : I == null ? void 0 : I.source, T = (O = (z = h(w == null ? void 0 : w[0])) == null ? void 0 : z.find((M) => M.name === (w == null ? void 0 : w[1]))) == null ? void 0 : O.uiSchema, A = ((j = I == null ? void 0 : I.uiSchema) == null ? void 0 : j.title) || (T == null ? void 0 : T.title) || I.name, D = I.source ? T : (B = (R = m(I.interface)) == null ? void 0 : R.default) == null ? void 0 : B.uiSchema;
47554
47562
  return {
47555
47563
  title: u(A),
47556
47564
  dataIndex: I.name,
47557
47565
  key: I.name,
47558
47566
  width: 200,
47559
47567
  render: (M, k, N) => {
47560
- const O = k[I.name], q = {
47568
+ const L = k[I.name], q = {
47561
47569
  type: "object",
47562
47570
  properties: {
47563
47571
  [I.name]: {
@@ -47565,7 +47573,7 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
47565
47573
  "x-component": D && w ? "CollectionField" : "Input",
47566
47574
  "x-read-pretty": !0,
47567
47575
  "x-collection-field": w == null ? void 0 : w.join("."),
47568
- default: I.interface === "json" ? JSON.stringify(O) : O
47576
+ default: I.interface === "json" ? JSON.stringify(L) : L
47569
47577
  }
47570
47578
  }
47571
47579
  };
@@ -47789,9 +47797,9 @@ const AsyncDataProvider = (e) => {
47789
47797
  () => h.filter((A) => !["relation"].includes(A.key)).map((A, D) => ({
47790
47798
  key: D,
47791
47799
  label: d(A.label),
47792
- options: A.children.map(($, L) => ({
47800
+ options: A.children.map(($, z) => ({
47793
47801
  value: $.name,
47794
- key: `${D}-${L}`,
47802
+ key: `${D}-${z}`,
47795
47803
  label: d($.label)
47796
47804
  }))
47797
47805
  })),
@@ -47800,29 +47808,29 @@ const AsyncDataProvider = (e) => {
47800
47808
  if (useEffect(() => {
47801
47809
  var $;
47802
47810
  const A = /* @__PURE__ */ new Map();
47803
- i || (a && a.length ? Object.entries((a == null ? void 0 : a[0]) || {}).forEach(([L, z]) => {
47811
+ i || (a && a.length ? Object.entries((a == null ? void 0 : a[0]) || {}).forEach(([z, O]) => {
47804
47812
  var k;
47805
- const j = l[L], R = inferInterface(L, z), B = (k = C.current(R)) == null ? void 0 : k.default, M = (j == null ? void 0 : j.uiSchema) || (B == null ? void 0 : B.uiSchema) || {};
47806
- A.set(L, {
47807
- name: L,
47813
+ const j = l[z], R = inferInterface(z, O), B = (k = C.current(R)) == null ? void 0 : k.default, M = (j == null ? void 0 : j.uiSchema) || (B == null ? void 0 : B.uiSchema) || {};
47814
+ A.set(z, {
47815
+ name: z,
47808
47816
  interface: (j == null ? void 0 : j.interface) || R,
47809
47817
  type: (j == null ? void 0 : j.type) || (B == null ? void 0 : B.type),
47810
47818
  source: j == null ? void 0 : j.source,
47811
47819
  uiSchema: x({
47812
- title: L
47820
+ title: z
47813
47821
  }, M)
47814
47822
  });
47815
47823
  }) : Object.entries(l || {}).forEach(
47816
- ([L, z]) => A.set(L, F(x({
47817
- name: L,
47824
+ ([z, O]) => A.set(z, F(x({
47825
+ name: z,
47818
47826
  type: "string"
47819
- }, z), {
47827
+ }, O), {
47820
47828
  uiSchema: x({
47821
- title: L
47822
- }, (z == null ? void 0 : z.uiSchema) || {})
47829
+ title: z
47830
+ }, (O == null ? void 0 : O.uiSchema) || {})
47823
47831
  }))
47824
- )), ($ = c.value) != null && $.length && c.value.forEach((L) => {
47825
- A.has(L.name) && A.set(L.name, L);
47832
+ )), ($ = c.value) != null && $.length && c.value.forEach((z) => {
47833
+ A.has(z.name) && A.set(z.name, z);
47826
47834
  });
47827
47835
  const D = Array.from(A.values());
47828
47836
  D.length && (o(D), c.setValue(D));
@@ -47839,10 +47847,10 @@ const AsyncDataProvider = (e) => {
47839
47847
  const b = (A, D) => {
47840
47848
  const $ = [...t];
47841
47849
  $.splice(D, 1, A), o($), c.setValue(
47842
- $.map((L) => {
47843
- var z, j, R;
47844
- return F(x({}, L), {
47845
- source: typeof L.source == "string" ? L.source : ((R = (j = (z = L.source) == null ? void 0 : z.filter) == null ? void 0 : j.call(z, Boolean)) == null ? void 0 : R.join(".")) || null
47850
+ $.map((z) => {
47851
+ var O, j, R;
47852
+ return F(x({}, z), {
47853
+ source: typeof z.source == "string" ? z.source : ((R = (j = (O = z.source) == null ? void 0 : O.filter) == null ? void 0 : j.call(O, Boolean)) == null ? void 0 : R.join(".")) || null
47846
47854
  });
47847
47855
  })
47848
47856
  );
@@ -47859,7 +47867,7 @@ const AsyncDataProvider = (e) => {
47859
47867
  key: "source",
47860
47868
  width: 200,
47861
47869
  render: (A, D, $) => {
47862
- const L = t[$];
47870
+ const z = t[$];
47863
47871
  return /* @__PURE__ */ jsx(
47864
47872
  Cascader$1,
47865
47873
  {
@@ -47867,11 +47875,11 @@ const AsyncDataProvider = (e) => {
47867
47875
  allowClear: !0,
47868
47876
  options: d(f),
47869
47877
  placeholder: e("Select field source"),
47870
- onChange: (z) => {
47871
- let j = l[z == null ? void 0 : z[1]];
47872
- j != null && j.interface || (j = m((z == null ? void 0 : z.join(".")) || "")), b(
47873
- F(x({}, L), {
47874
- source: z,
47878
+ onChange: (O) => {
47879
+ let j = l[O == null ? void 0 : O[1]];
47880
+ j != null && j.interface || (j = m((O == null ? void 0 : O.join(".")) || "")), b(
47881
+ F(x({}, z), {
47882
+ source: O,
47875
47883
  interface: j == null ? void 0 : j.interface,
47876
47884
  type: j == null ? void 0 : j.type,
47877
47885
  uiSchema: j == null ? void 0 : j.uiSchema
@@ -47889,24 +47897,24 @@ const AsyncDataProvider = (e) => {
47889
47897
  key: "interface",
47890
47898
  width: 150,
47891
47899
  render: (A, D, $) => {
47892
- var z;
47893
- const L = t[$];
47894
- return L.source ? /* @__PURE__ */ jsx(Tag, { children: d((z = p(A)) == null ? void 0 : z.title) || A }) : /* @__PURE__ */ jsx(
47900
+ var O;
47901
+ const z = t[$];
47902
+ return z.source ? /* @__PURE__ */ jsx(Tag, { children: d((O = p(A)) == null ? void 0 : O.title) || A }) : /* @__PURE__ */ jsx(
47895
47903
  Select$1,
47896
47904
  {
47897
- defaultValue: L.interface || "input",
47905
+ defaultValue: z.interface || "input",
47898
47906
  style: { width: "100%" },
47899
47907
  popupMatchSelectWidth: !1,
47900
47908
  onChange: (j) => {
47901
- var B, M, k, N, O;
47909
+ var B, M, k, N, L;
47902
47910
  const R = p(j);
47903
47911
  b(
47904
- F(x({}, L), {
47912
+ F(x({}, z), {
47905
47913
  interface: j || null,
47906
47914
  uiSchema: F(x({}, (B = R == null ? void 0 : R.default) == null ? void 0 : B.uiSchema), {
47907
- title: ((k = (M = R == null ? void 0 : R.default) == null ? void 0 : M.uiSchema) == null ? void 0 : k.title) || ((N = L.uiSchema) == null ? void 0 : N.title)
47915
+ title: ((k = (M = R == null ? void 0 : R.default) == null ? void 0 : M.uiSchema) == null ? void 0 : k.title) || ((N = z.uiSchema) == null ? void 0 : N.title)
47908
47916
  }),
47909
- type: (O = R == null ? void 0 : R.default) == null ? void 0 : O.type
47917
+ type: (L = R == null ? void 0 : R.default) == null ? void 0 : L.type
47910
47918
  }),
47911
47919
  $
47912
47920
  );
@@ -47923,14 +47931,14 @@ const AsyncDataProvider = (e) => {
47923
47931
  key: "title",
47924
47932
  width: 180,
47925
47933
  render: (A, D, $) => {
47926
- var z, j;
47927
- const L = t[$];
47934
+ var O, j;
47935
+ const z = t[$];
47928
47936
  return /* @__PURE__ */ jsx(
47929
47937
  Input$3,
47930
47938
  {
47931
- value: ((z = L.uiSchema) == null ? void 0 : z.title) || A,
47932
- defaultValue: ((j = L.uiSchema) == null ? void 0 : j.title) !== void 0 ? L.uiSchema.title : L == null ? void 0 : L.name,
47933
- onChange: (R) => b(F(x({}, L), { uiSchema: F(x({}, L == null ? void 0 : L.uiSchema), { title: R.target.value }) }), $)
47939
+ value: ((O = z.uiSchema) == null ? void 0 : O.title) || A,
47940
+ defaultValue: ((j = z.uiSchema) == null ? void 0 : j.title) !== void 0 ? z.uiSchema.title : z == null ? void 0 : z.name,
47941
+ onChange: (R) => b(F(x({}, z), { uiSchema: F(x({}, z == null ? void 0 : z.uiSchema), { title: R.target.value }) }), $)
47934
47942
  }
47935
47943
  );
47936
47944
  }
@@ -54119,7 +54127,7 @@ const RolesResourcesActions = connect((e) => {
54119
54127
  const D = m[T.name] || {
54120
54128
  name: T.name
54121
54129
  };
54122
- A ? D.fields = [] : D.fields = ($ = c == null ? void 0 : c.map) == null ? void 0 : $.call(c, (L) => L.name), m[T.name] = D, o(Object.values(m));
54130
+ A ? D.fields = [] : D.fields = ($ = c == null ? void 0 : c.map) == null ? void 0 : $.call(c, (z) => z.name), m[T.name] = D, o(Object.values(m));
54123
54131
  }
54124
54132
  }
54125
54133
  ),
@@ -54132,15 +54140,15 @@ const RolesResourcesActions = connect((e) => {
54132
54140
  checked: D,
54133
54141
  "aria-label": `${T.name}_checkbox`,
54134
54142
  onChange: () => {
54135
- const L = m[T.name] || {
54143
+ const z = m[T.name] || {
54136
54144
  name: T.name
54137
- }, z = L.fields || [];
54145
+ }, O = z.fields || [];
54138
54146
  if (D) {
54139
- const j = z.indexOf($.name);
54140
- z.splice(j, 1);
54147
+ const j = O.indexOf($.name);
54148
+ O.splice(j, 1);
54141
54149
  } else
54142
- z.push($.name);
54143
- L.fields = z, m[T.name] = L, o(Object.values(m));
54150
+ O.push($.name);
54151
+ z.fields = O, m[T.name] = z, o(Object.values(m));
54144
54152
  }
54145
54153
  }
54146
54154
  )
@@ -55024,11 +55032,11 @@ function BulkEnableButton({ plugins: e = [] }) {
55024
55032
  /* @__PURE__ */ jsxs(
55025
55033
  Modal,
55026
55034
  {
55027
- width: 800,
55035
+ width: 1e3,
55028
55036
  title: t("Bulk enable"),
55029
55037
  open: i,
55030
55038
  onOk: () => V(this, null, function* () {
55031
- console.log(l), yield o.request({
55039
+ yield o.request({
55032
55040
  url: "pm:enable",
55033
55041
  params: {
55034
55042
  filterByTk: l
@@ -55060,8 +55068,13 @@ function BulkEnableButton({ plugins: e = [] }) {
55060
55068
  {
55061
55069
  rowSelection: {
55062
55070
  type: "checkbox",
55071
+ selectedRowKeys: l,
55063
55072
  onChange(u) {
55064
- c(u);
55073
+ const d = n.map((p) => p.name);
55074
+ c((p) => u.length === 0 ? p.filter((m) => !d.includes(m)) : u.length === d.length ? _.uniq([...p, ...u]) : p);
55075
+ },
55076
+ onSelect(u) {
55077
+ c((d) => d.includes(u.name) ? d.filter((p) => p !== u.name) : d.concat(u.name));
55065
55078
  }
55066
55079
  },
55067
55080
  rowKey: "name",
@@ -55074,18 +55087,18 @@ function BulkEnableButton({ plugins: e = [] }) {
55074
55087
  {
55075
55088
  title: t("Plugin"),
55076
55089
  dataIndex: "displayName",
55077
- ellipsis: !0,
55078
- width: 200
55090
+ ellipsis: !0
55079
55091
  },
55080
55092
  {
55081
55093
  title: t("Description"),
55082
55094
  dataIndex: "description",
55083
- ellipsis: !0
55095
+ ellipsis: !0,
55096
+ width: 300
55084
55097
  },
55085
55098
  {
55086
55099
  title: t("Package name"),
55087
55100
  dataIndex: "packageName",
55088
- width: 260,
55101
+ width: 300,
55089
55102
  ellipsis: !0
55090
55103
  }
55091
55104
  ],
@@ -55975,8 +55988,8 @@ const useMenuProps = () => {
55975
55988
  onSuccess(A) {
55976
55989
  const D = filterByACL(A == null ? void 0 : A.data, g);
55977
55990
  if (u) {
55978
- const L = findMenuItem(D);
55979
- L ? (a(`/admin/${L["x-uid"]}`), i(L.title)) : a("/admin/");
55991
+ const z = findMenuItem(D);
55992
+ z ? (a(`/admin/${z["x-uid"]}`), i(z.title)) : a("/admin/");
55980
55993
  return;
55981
55994
  }
55982
55995
  if (!d || !m)
@@ -55985,18 +55998,18 @@ const useMenuProps = () => {
55985
55998
  if ($)
55986
55999
  i($.title);
55987
56000
  else {
55988
- const L = findMenuItem(D);
55989
- L ? (a(`/admin/${L["x-uid"]}`), i(L.title)) : a("/admin/");
56001
+ const z = findMenuItem(D);
56002
+ z ? (a(`/admin/${z["x-uid"]}`), i(z.title)) : a("/admin/");
55990
56003
  }
55991
56004
  }
55992
56005
  }
55993
56006
  );
55994
56007
  useEffect(() => {
55995
- var D, $, L;
55996
- const A = (($ = Object.values(((D = f == null ? void 0 : f.root) == null ? void 0 : D.properties) || {}).shift()) == null ? void 0 : $.properties) || ((L = v == null ? void 0 : v.data) == null ? void 0 : L.properties);
56008
+ var D, $, z;
56009
+ const A = (($ = Object.values(((D = f == null ? void 0 : f.root) == null ? void 0 : D.properties) || {}).shift()) == null ? void 0 : $.properties) || ((z = v == null ? void 0 : v.data) == null ? void 0 : z.properties);
55997
56010
  if (h.current) {
55998
- const z = A && Object.values(A).find((R) => R["x-uid"] === l.name && R["x-component"] === "Menu.Item"), j = c == null ? void 0 : c.pathname.includes("/settings");
55999
- z || j ? h.current.style.display = "none" : h.current.style.display = "block";
56011
+ const O = A && Object.values(A).find((R) => R["x-uid"] === l.name && R["x-component"] === "Menu.Item"), j = c == null ? void 0 : c.pathname.includes("/settings");
56012
+ O || j ? h.current.style.display = "none" : h.current.style.display = "block";
56000
56013
  }
56001
56014
  }, [v == null ? void 0 : v.data, l.name, h, c == null ? void 0 : c.pathname]);
56002
56015
  const w = useMemo(() => {
@@ -56966,15 +56979,15 @@ const ActionInitializerItem = (e) => {
56966
56979
  ), I = f || (i == null ? void 0 : i.targetKey) || "id", w = C || ((U = (E = a["x-component-props"]) == null ? void 0 : E.fieldNames) == null ? void 0 : U.label) || I, T = {
56967
56980
  title: w || I,
56968
56981
  key: I
56969
- }, [A, D] = useState([]), [$, L] = useState(a.default || []), [z, j] = useState(!0), R = useLabelUiSchema(i, (T == null ? void 0 : T.title) || "label");
56982
+ }, [A, D] = useState([]), [$, z] = useState(a.default || []), [O, j] = useState(!0), R = useLabelUiSchema(i, (T == null ? void 0 : T.title) || "label");
56970
56983
  if (useEffect(() => {
56971
- a.default && (d(a.default), L(a.default));
56984
+ a.default && (d(a.default), z(a.default));
56972
56985
  }, [a.default, d]), !i)
56973
56986
  return null;
56974
56987
  const B = (W) => {
56975
56988
  D(W), j(!1);
56976
56989
  }, M = (W) => {
56977
- L(W), d(W), p == null || p(W);
56990
+ z(W), d(W), p == null || p(W);
56978
56991
  }, k = (W) => {
56979
56992
  var J;
56980
56993
  const X = (J = h == null ? void 0 : h[0]) == null ? void 0 : J.filter;
@@ -56983,7 +56996,7 @@ const ActionInitializerItem = (e) => {
56983
56996
  })), y(!b), W.stopPropagation();
56984
56997
  }, N = (W) => {
56985
56998
  W.stopPropagation();
56986
- }, O = (W) => {
56999
+ }, L = (W) => {
56987
57000
  m(W);
56988
57001
  }, q = (H = a.title) != null ? H : (G = i == null ? void 0 : i.uiSchema) == null ? void 0 : G.title;
56989
57002
  return t(
@@ -57010,7 +57023,7 @@ const ActionInitializerItem = (e) => {
57010
57023
  placeholder: "Search...",
57011
57024
  className: "search",
57012
57025
  onClick: N,
57013
- onChange: O
57026
+ onChange: L
57014
57027
  }
57015
57028
  ) : c(q) }),
57016
57029
  /* @__PURE__ */ jsx(
@@ -57031,7 +57044,7 @@ const ActionInitializerItem = (e) => {
57031
57044
  className: "Tree",
57032
57045
  onExpand: B,
57033
57046
  expandedKeys: A,
57034
- autoExpandParent: z,
57047
+ autoExpandParent: O,
57035
57048
  treeData: u,
57036
57049
  onSelect: M,
57037
57050
  fieldNames: T,
@@ -57443,8 +57456,8 @@ const DataBlockInitializer = (e) => {
57443
57456
  if (f)
57444
57457
  return f(M);
57445
57458
  if (k.template) {
57446
- const O = yield w(k);
57447
- y(t ? t(O, { item: k, fromOthersInPopup: N }) : O);
57459
+ const L = yield w(k);
57460
+ y(t ? t(L, { item: k, fromOthersInPopup: N }) : L);
57448
57461
  } else
57449
57462
  o && o({ item: k, fromOthersInPopup: N });
57450
57463
  v(!1);
@@ -57464,7 +57477,7 @@ const DataBlockInitializer = (e) => {
57464
57477
  onClick: T,
57465
57478
  currentText: S,
57466
57479
  otherText: b
57467
- }), D = useGetSchemaInitializerMenuItems(T), $ = useMemo(() => D(A, i), [D, A, i]), [L, z] = useState([]), j = useMenuSearch({ data: $, openKeys: L, hideSearch: u }), R = useMemo(() => {
57480
+ }), D = useGetSchemaInitializerMenuItems(T), $ = useMemo(() => D(A, i), [D, A, i]), [z, O] = useState([]), j = useMenuSearch({ data: $, openKeys: z, hideSearch: u }), R = useMemo(() => {
57468
57481
  let M = j.filter((k) => k.key !== "search" && k.key !== "empty");
57469
57482
  return p && M.length === 1 ? M = M[0].children : M = j, [
57470
57483
  {
@@ -57482,7 +57495,7 @@ const DataBlockInitializer = (e) => {
57482
57495
  SchemaInitializerMenu,
57483
57496
  {
57484
57497
  onOpenChange: (M) => {
57485
- z(M);
57498
+ O(M);
57486
57499
  },
57487
57500
  items: R
57488
57501
  }
@@ -58547,7 +58560,7 @@ const SelectActionInitializer = (e) => {
58547
58560
  return /* @__PURE__ */ jsx(
58548
58561
  DataBlockInitializer,
58549
58562
  F(x({}, c), {
58550
- icon: /* @__PURE__ */ jsx(TableOutlined, {}),
58563
+ icon: /* @__PURE__ */ jsx(ProfileOutlined, {}),
58551
58564
  componentType: n,
58552
58565
  onCreateBlockSchema: (d) => V(void 0, null, function* () {
58553
58566
  if (r)
@@ -59270,7 +59283,7 @@ const commonOptions$h = {
59270
59283
  return /* @__PURE__ */ jsx(
59271
59284
  DataBlockInitializer,
59272
59285
  F(x({}, l), {
59273
- icon: /* @__PURE__ */ jsx(OrderedListOutlined, {}),
59286
+ icon: /* @__PURE__ */ jsx(AppstoreOutlined, {}),
59274
59287
  componentType: "GridCard",
59275
59288
  onCreateBlockSchema: (u) => V(void 0, null, function* () {
59276
59289
  if (n)
@@ -60101,7 +60114,7 @@ const commonOptions$h = {
60101
60114
  DataBlockInitializer,
60102
60115
  F(x({}, n), {
60103
60116
  onlyCurrentDataSource: t,
60104
- icon: /* @__PURE__ */ jsx(TableOutlined, {}),
60117
+ icon: /* @__PURE__ */ jsx(RightSquareOutlined, {}),
60105
60118
  componentType: "FilterCollapse",
60106
60119
  onCreateBlockSchema: (a) => V(void 0, [a], function* ({ item: i }) {
60107
60120
  const l = createCollapseBlockSchema({
@@ -62110,6 +62123,7 @@ export {
62110
62123
  getUniqueKeyFromCollection,
62111
62124
  getVariablesFromExpression,
62112
62125
  gridRowColWrap,
62126
+ handleDateChangeOnForm,
62113
62127
  hasIcon,
62114
62128
  i18n,
62115
62129
  icons,