@nocobase/client 1.5.7 → 1.5.8

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.
Files changed (3) hide show
  1. package/es/index.mjs +291 -292
  2. package/lib/index.js +48 -48
  3. package/package.json +5 -5
package/es/index.mjs CHANGED
@@ -11,7 +11,7 @@ var Te = (e, t, n) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writ
11
11
  je.call(t, n) && Te(e, n, t[n]);
12
12
  return e;
13
13
  }, P = (e, t) => $e(e, Be(t));
14
- var W = (e, t) => {
14
+ var K = (e, t) => {
15
15
  var n = {};
16
16
  for (var o in e)
17
17
  De.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
@@ -4561,7 +4561,7 @@ function toSchema(e) {
4561
4561
  }) : new Schema(e);
4562
4562
  }
4563
4563
  const useMemoizedSchema = (e) => useMemo(() => toSchema(e), []), SchemaComponentOnChangeContext = createContext({ onChange: _.noop }), RecursionSchemaComponent = memo((e) => {
4564
- const m = e, { components: t, scope: n, schema: o, distributed: r, onChange: i } = m, a = W(m, ["components", "scope", "schema", "distributed", "onChange"]), l = useContext(SchemaComponentContext), c = useMemo(() => toSchema(o), [o]), u = useMemo(
4564
+ const m = e, { components: t, scope: n, schema: o, distributed: r, onChange: i } = m, a = K(m, ["components", "scope", "schema", "distributed", "onChange"]), l = useContext(SchemaComponentContext), c = useMemo(() => toSchema(o), [o]), u = useMemo(
4565
4565
  () => P(x({}, l), {
4566
4566
  distributed: l.distributed == !1 ? !1 : r,
4567
4567
  /**
@@ -4582,13 +4582,13 @@ const useMemoizedSchema = (e) => useMemo(() => toSchema(e), []), SchemaComponent
4582
4582
  });
4583
4583
  RecursionSchemaComponent.displayName = "RecursionSchemaComponent";
4584
4584
  const MemoizedSchemaComponent = memo((e) => {
4585
- const r = e, { schema: t } = r, n = W(r, ["schema"]), o = useMemoizedSchema(t);
4585
+ const r = e, { schema: t } = r, n = K(r, ["schema"]), o = useMemoizedSchema(t);
4586
4586
  return /* @__PURE__ */ jsx(RecursionSchemaComponent, P(x({}, n), { schema: o }));
4587
4587
  });
4588
4588
  MemoizedSchemaComponent.displayName = "MemoizedSchemaComponent";
4589
4589
  const SchemaComponent = memo(
4590
4590
  (e) => {
4591
- const o = e, { memoized: t } = o, n = W(o, ["memoized"]);
4591
+ const o = e, { memoized: t } = o, n = K(o, ["memoized"]);
4592
4592
  return t ? /* @__PURE__ */ jsx(MemoizedSchemaComponent, x({}, n)) : /* @__PURE__ */ jsx(RecursionSchemaComponent, x({}, n));
4593
4593
  }
4594
4594
  );
@@ -6391,7 +6391,7 @@ const DataBlockResourceContext = createContext(null), RerenderDataBlockProvider
6391
6391
  return /* @__PURE__ */ jsx(r.Component, { name: r.name, allowNull: o, children: e.children });
6392
6392
  }, DataBlockProvider = withDynamicSchemaProps(
6393
6393
  React.memo((e) => {
6394
- const c = e, { collection: t, association: n, dataSource: o, children: r, hidden: i } = c, a = W(c, ["collection", "association", "dataSource", "children", "hidden"]), { dn: l } = useDesignable();
6394
+ const c = e, { collection: t, association: n, dataSource: o, children: r, hidden: i } = c, a = K(c, ["collection", "association", "dataSource", "children", "hidden"]), { dn: l } = useDesignable();
6395
6395
  return i ? null : /* @__PURE__ */ jsx(
6396
6396
  DataBlockContext.Provider,
6397
6397
  {
@@ -8503,7 +8503,7 @@ Object.keys(antIcons).forEach((e) => {
8503
8503
  e.endsWith("Outlined") && registerIcon(e, antIcons[e]);
8504
8504
  });
8505
8505
  const Icon = (e) => {
8506
- const r = e, { type: t = "", component: n } = r, o = W(r, ["type", "component"]);
8506
+ const r = e, { type: t = "", component: n } = r, o = K(r, ["type", "component"]);
8507
8507
  if (n)
8508
8508
  return /* @__PURE__ */ jsx(antIcons__default, x({ component: n }, o));
8509
8509
  if (t && icons.has(t.toLowerCase())) {
@@ -8575,7 +8575,7 @@ class PluginSettingsManager {
8575
8575
  const o = this.hasAuth(t), r = this.getSetting(t);
8576
8576
  if (n && !o || !r)
8577
8577
  return null;
8578
- const i = Object.keys(r.children || {}).sort((p, m) => p.localeCompare(m)).map((p) => this.get(r.children[p].name, n)).filter(Boolean).sort((p, m) => (p.sort || 0) - (m.sort || 0)), d = r, { title: a, icon: l, aclSnippet: c } = d, u = W(d, ["title", "icon", "aclSnippet"]);
8578
+ const i = Object.keys(r.children || {}).sort((p, m) => p.localeCompare(m)).map((p) => this.get(r.children[p].name, n)).filter(Boolean).sort((p, m) => (p.sort || 0) - (m.sort || 0)), d = r, { title: a, icon: l, aclSnippet: c } = d, u = K(d, ["title", "icon", "aclSnippet"]);
8579
8579
  return P(x({
8580
8580
  isTopLevel: t === r.topLevelName
8581
8581
  }, u), {
@@ -8603,7 +8603,7 @@ const ApplicationContext = createContext(null);
8603
8603
  ApplicationContext.displayName = "ApplicationContext";
8604
8604
  const AppComponent = observer(
8605
8605
  (n) => {
8606
- var o = n, { children: e } = o, t = W(o, ["children"]);
8606
+ var o = n, { children: e } = o, t = K(o, ["children"]);
8607
8607
  var l;
8608
8608
  const { app: r } = t, i = useCallback((c, u) => {
8609
8609
  console.error(c);
@@ -8686,7 +8686,7 @@ class RouterManager {
8686
8686
  if (Object.keys(i).length === 1 && i.children)
8687
8687
  r.push(...n(i.children));
8688
8688
  else {
8689
- const a = i, { Component: l, element: c, children: u } = a, d = W(a, ["Component", "element", "children"]);
8689
+ const a = i, { Component: l, element: c, children: u } = a, d = K(a, ["Component", "element", "children"]);
8690
8690
  let p = c;
8691
8691
  l && (typeof l == "string" ? p = this.app.renderComponent(l) : p = React.createElement(l));
8692
8692
  const m = P(x({}, d), {
@@ -8715,7 +8715,7 @@ class RouterManager {
8715
8715
  * @internal
8716
8716
  */
8717
8717
  getRouterComponent(t) {
8718
- const u = this.options, { type: n = "browser" } = u, o = W(u, ["type"]), i = {
8718
+ const u = this.options, { type: n = "browser" } = u, o = K(u, ["type"]), i = {
8719
8719
  hash: HashRouter,
8720
8720
  browser: BrowserRouter,
8721
8721
  memory: MemoryRouter
@@ -9124,7 +9124,7 @@ function withInitializer(e) {
9124
9124
  );
9125
9125
  }
9126
9126
  const SchemaInitializerSubMenuContext = React.createContext({}), SchemaInitializerMenuProvider = (e) => /* @__PURE__ */ jsx(SchemaInitializerSubMenuContext.Provider, { value: { isInMenu: !0 }, children: e.children }), useSchemaInitializerSubMenuContext = () => React.useContext(SchemaInitializerSubMenuContext), SchemaInitializerMenu = (e) => {
9127
- const { componentCls: t, hashId: n } = useSchemaInitializerStyles(), l = e, { items: o } = l, r = W(l, ["items"]), { token: i } = theme$1.useToken(), a = useMemo(
9127
+ const { componentCls: t, hashId: n } = useSchemaInitializerStyles(), l = e, { items: o } = l, r = K(l, ["items"]), { token: i } = theme$1.useToken(), a = useMemo(
9128
9128
  () => o.map((c) => P(x({}, c), {
9129
9129
  popupClassName: `${n} ${t}-menu-sub`
9130
9130
  })),
@@ -9173,7 +9173,7 @@ const SchemaInitializerSubMenuContext = React.createContext({}), SchemaInitializ
9173
9173
  ) });
9174
9174
  }, SchemaInitializerSubMenu = (e) => {
9175
9175
  var f;
9176
- const g = e, { children: t, items: n, title: o, name: r, onOpenChange: i, icon: a } = g, l = W(g, ["children", "items", "title", "name", "onOpenChange", "icon"]), c = useCompile(), u = useSchemaInitializerItem(), d = useMemo(() => r || (u == null ? void 0 : u.name) || uid(), [r, u]), p = (f = n || t) == null ? void 0 : f.filter((C) => C.useVisible ? C.useVisible() : !0), m = useSchemaInitializerMenuItems(p, r), h = useMemo(() => [
9176
+ const g = e, { children: t, items: n, title: o, name: r, onOpenChange: i, icon: a } = g, l = K(g, ["children", "items", "title", "name", "onOpenChange", "icon"]), c = useCompile(), u = useSchemaInitializerItem(), d = useMemo(() => r || (u == null ? void 0 : u.name) || uid(), [r, u]), p = (f = n || t) == null ? void 0 : f.filter((C) => C.useVisible ? C.useVisible() : !0), m = useSchemaInitializerMenuItems(p, r), h = useMemo(() => [
9177
9177
  P(x({}, l), {
9178
9178
  key: d,
9179
9179
  label: c(o),
@@ -9290,10 +9290,10 @@ const designableStyle = {
9290
9290
  }
9291
9291
  ) });
9292
9292
  }, WithForm$1 = (e) => {
9293
- const c = e, { children: t, form: n } = c, o = W(c, ["children", "form"]), r = useContext(SchemaOptionsContext), i = useContext(SchemaExpressionScopeContext), a = x(x({}, r == null ? void 0 : r.scope), i), l = x({}, r == null ? void 0 : r.components);
9293
+ const c = e, { children: t, form: n } = c, o = K(c, ["children", "form"]), r = useContext(SchemaOptionsContext), i = useContext(SchemaExpressionScopeContext), a = x(x({}, r == null ? void 0 : r.scope), i), l = x({}, r == null ? void 0 : r.components);
9294
9294
  return /* @__PURE__ */ jsx(FormProvider$1, P(x({}, o), { form: n, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { components: l, scope: a, children: t }) }));
9295
9295
  }, WithoutForm$1 = (e) => {
9296
- const c = e, { children: t } = c, n = W(c, ["children"]), o = useContext(SchemaOptionsContext), r = useContext(SchemaExpressionScopeContext), i = x(x({}, o == null ? void 0 : o.scope), r), a = x({}, o == null ? void 0 : o.components), l = useMemo(() => createForm(), []);
9296
+ const c = e, { children: t } = c, n = K(c, ["children"]), o = useContext(SchemaOptionsContext), r = useContext(SchemaExpressionScopeContext), i = x(x({}, o == null ? void 0 : o.scope), r), a = x({}, o == null ? void 0 : o.components), l = useMemo(() => createForm(), []);
9297
9297
  return /* @__PURE__ */ jsx(FormProvider$1, P(x({}, n), { form: l, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { components: a, scope: i, children: t }) }));
9298
9298
  }, FormProvider = (e) => e.form ? /* @__PURE__ */ jsx(WithForm$1, x({}, e)) : /* @__PURE__ */ jsx(WithoutForm$1, x({}, e)), CollectionHistoryContext = createContext({
9299
9299
  historyCollections: [],
@@ -9709,7 +9709,7 @@ class SchemaComponentPlugin extends Plugin {
9709
9709
  }
9710
9710
  }
9711
9711
  const TabsContext = React.createContext({}), TabsContextProvider = (n) => {
9712
- var o = n, { children: e } = o, t = W(o, ["children"]);
9712
+ var o = n, { children: e } = o, t = K(o, ["children"]);
9713
9713
  return /* @__PURE__ */ jsx(TabsContext.Provider, { value: t, children: e });
9714
9714
  }, useTabsContext = () => React.useContext(TabsContext), PopupSettingsContext = React.createContext({
9715
9715
  enableURL: !0
@@ -10183,7 +10183,7 @@ const TableCellRender = ({ record: e, columnSchema: t, uiSchema: n, filterProper
10183
10183
  var m, g, f, C, b, S;
10184
10184
  const { token: t } = useToken(), n = (m = e["data-row-key"]) == null ? void 0 : m.toString(), { setNodeRef: o, isOver: r, active: i, over: a } = useSortable({
10185
10185
  id: n
10186
- }), h = e, { rowIndex: l } = h, c = W(h, ["rowIndex"]), u = useMemo(() => {
10186
+ }), h = e, { rowIndex: l } = h, c = K(h, ["rowIndex"]), u = useMemo(() => {
10187
10187
  const y = new TinyColor(t.colorSettings).setAlpha(0.6).toHex8String();
10188
10188
  return {
10189
10189
  topActiveClass: css`
@@ -10209,12 +10209,12 @@ const TableCellRender = ({ record: e, columnSchema: t, uiSchema: n, filterProper
10209
10209
  })
10210
10210
  );
10211
10211
  }, SortHandle$2 = (e) => {
10212
- const i = e, { id: t } = i, n = W(i, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
10212
+ const i = e, { id: t } = i, n = K(i, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
10213
10213
  id: t
10214
10214
  });
10215
10215
  return /* @__PURE__ */ jsx(MenuOutlined, P(x(x({ ref: r }, n), o), { style: { cursor: "grab" } }));
10216
10216
  }, TableIndex$3 = (e) => {
10217
- const o = e, { index: t } = o, n = W(o, ["index"]);
10217
+ const o = e, { index: t } = o, n = K(o, ["index"]);
10218
10218
  return /* @__PURE__ */ jsx("div", P(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, n), { children: t }));
10219
10219
  }, pageSizeOptions$3 = [5, 10, 20, 50, 100, 200], usePaginationProps$3 = (e, t, n) => {
10220
10220
  var S, y, v, F, I, R;
@@ -10342,7 +10342,7 @@ const BodyRowComponent$1 = React.memo((e) => {
10342
10342
  });
10343
10343
  BodyRowComponent$1.displayName = "BodyRowComponent";
10344
10344
  const InternalBodyCellComponent$1 = React.memo((e) => {
10345
- const p = e, { record: t, schema: n, rowIndex: o, isSubTable: r } = p, i = W(p, ["record", "schema", "rowIndex", "isSubTable"]), a = n == null ? void 0 : n[LinkageRuleDataKeyMap.style], [l, c] = useState({}), u = !!(n != null && n.properties) && Object.values(n.properties).some((m) => m["x-read-pretty"] === !0), d = useMemo(() => x(x({}, e.style), l), [e.style, l]);
10345
+ const p = e, { record: t, schema: n, rowIndex: o, isSubTable: r } = p, i = K(p, ["record", "schema", "rowIndex", "isSubTable"]), a = n == null ? void 0 : n[LinkageRuleDataKeyMap.style], [l, c] = useState({}), u = !!(n != null && n.properties) && Object.values(n.properties).some((m) => m["x-read-pretty"] === !0), d = useMemo(() => x(x({}, e.style), l), [e.style, l]);
10346
10346
  return /* @__PURE__ */ jsxs(Fragment, { children: [
10347
10347
  !_.isEmpty(a) && /* @__PURE__ */ jsx(GetStyleRules, { record: t, schema: n, onStyleChange: u ? c : _.noop }),
10348
10348
  /* @__PURE__ */ jsx("td", P(x({}, i), { className: cls(e.className, cellClass$1), style: d, children: e.children }))
@@ -10371,7 +10371,7 @@ const TableElementRefContext = createContext(null), useTableElementRef = () => u
10371
10371
  columns: m,
10372
10372
  expandable: h,
10373
10373
  field: g
10374
- } = y, f = W(y, [
10374
+ } = y, f = K(y, [
10375
10375
  "tableHeight",
10376
10376
  "SortableWrapper",
10377
10377
  "tableSizeRefCallback",
@@ -10465,7 +10465,7 @@ const Table$2 = withDynamicSchemaProps(
10465
10465
  withSkeletonComponent(
10466
10466
  observer$1((e) => {
10467
10467
  var ce, Ce;
10468
- const { token: t } = useToken(), me = omit(e, ["onBlur", "onFocus"]), { pagination: n, useProps: o } = me, r = W(me, ["pagination", "useProps"]), he = (o == null ? void 0 : o()) || {}, { pagination: i } = he, a = W(he, ["pagination"]), ge = x(x({}, r), a), {
10468
+ const { token: t } = useToken(), me = omit(e, ["onBlur", "onFocus"]), { pagination: n, useProps: o } = me, r = K(me, ["pagination", "useProps"]), he = (o == null ? void 0 : o()) || {}, { pagination: i } = he, a = K(he, ["pagination"]), ge = x(x({}, r), a), {
10469
10469
  dragSort: l = !1,
10470
10470
  showIndex: c = !0,
10471
10471
  onRowSelectionChange: u,
@@ -10477,7 +10477,7 @@ const Table$2 = withDynamicSchemaProps(
10477
10477
  loading: f,
10478
10478
  onClickRow: C,
10479
10479
  value: b
10480
- } = ge, S = W(ge, [
10480
+ } = ge, S = K(ge, [
10481
10481
  "dragSort",
10482
10482
  "showIndex",
10483
10483
  "onRowSelectionChange",
@@ -10511,7 +10511,7 @@ const Table$2 = withDynamicSchemaProps(
10511
10511
  const re = D ? M : [];
10512
10512
  _.isEqual(re, w) || B(re);
10513
10513
  }, [D, M]);
10514
- const K = useCallback((re) => {
10514
+ const W = useCallback((re) => {
10515
10515
  if (m)
10516
10516
  return Y(re);
10517
10517
  if (re.key)
@@ -10526,9 +10526,9 @@ const Table$2 = withDynamicSchemaProps(
10526
10526
  return Array.isArray(m) ? m.map((ne) => {
10527
10527
  var se;
10528
10528
  return ((se = re[ne]) == null ? void 0 : se.toString()) || "";
10529
- }).join("-") : typeof m == "string" ? re[m] : (ee = (m != null ? m : K)(re)) == null ? void 0 : ee.toString();
10529
+ }).join("-") : typeof m == "string" ? re[m] : (ee = (m != null ? m : W)(re)) == null ? void 0 : ee.toString();
10530
10530
  },
10531
- [JSON.stringify(m), K]
10531
+ [JSON.stringify(m), W]
10532
10532
  ), J = useMemo(() => (Array.isArray(b) ? b : []).filter(Boolean), [b, b == null ? void 0 : b.length]), X = useMemo(() => (re) => {
10533
10533
  const ee = useCallback((ne) => {
10534
10534
  var Ie, Se, ye, ve, Pe, Fe;
@@ -10649,7 +10649,7 @@ const Table$2 = withDynamicSchemaProps(
10649
10649
  tableHeight: ie,
10650
10650
  SortableWrapper: te,
10651
10651
  tableSizeRefCallback: ae,
10652
- defaultRowKey: K,
10652
+ defaultRowKey: W,
10653
10653
  dataSource: J
10654
10654
  }, S), oe), {
10655
10655
  paginationProps: L,
@@ -11426,7 +11426,7 @@ const DrawerErrorFallback = (e) => {
11426
11426
  ActionDrawerContent.displayName = "ActionDrawerContent";
11427
11427
  const InternalActionDrawer = observer$1(
11428
11428
  (e) => {
11429
- const F = e, { footerNodeName: t = "Action.Drawer.Footer", zIndex: n, onClose: o } = F, r = W(F, ["footerNodeName", "zIndex", "onClose"]), { visible: i, setVisible: a, openSize: l = "middle", drawerProps: c } = useActionContext(), u = useFieldSchema(), d = useField(), { componentCls: p, hashId: m } = useStyles$h(), h = useTabsContext(), g = useZIndexContext(), f = u.reduceProperties((I, R) => R["x-component"] === t ? R : I), { hidden: C } = useCurrentPopupContext(), b = useMemo(() => P(x(x({}, c == null ? void 0 : c.style), r == null ? void 0 : r.style), {
11429
+ const F = e, { footerNodeName: t = "Action.Drawer.Footer", zIndex: n, onClose: o } = F, r = K(F, ["footerNodeName", "zIndex", "onClose"]), { visible: i, setVisible: a, openSize: l = "middle", drawerProps: c } = useActionContext(), u = useFieldSchema(), d = useField(), { componentCls: p, hashId: m } = useStyles$h(), h = useTabsContext(), g = useZIndexContext(), f = u.reduceProperties((I, R) => R["x-component"] === t ? R : I), { hidden: C } = useCurrentPopupContext(), b = useMemo(() => P(x(x({}, c == null ? void 0 : c.style), r == null ? void 0 : r.style), {
11430
11430
  display: C ? "none" : "block"
11431
11431
  }), [C, c == null ? void 0 : c.style, r == null ? void 0 : r.style]), S = n || g + (e.level || 0), y = useCallback(
11432
11432
  (I) => {
@@ -11505,7 +11505,7 @@ const useGetAriaLabelOfModal = () => {
11505
11505
  }
11506
11506
  ), InternalActionModal = observer$1(
11507
11507
  (e) => {
11508
- const v = e, { footerNodeName: t = "Action.Modal.Footer", width: n, zIndex: o } = v, r = W(v, ["footerNodeName", "width", "zIndex"]), { visible: i, setVisible: a, openSize: l = "middle", modalProps: c } = useActionContext(), u = n != null ? n : openSizeWidthMap.get(l), d = useFieldSchema(), p = useField(), { token: m } = useToken$1(), h = useTabsContext(), g = useZIndexContext(), f = d.reduceProperties((F, I) => I["x-component"] === t ? I : F), { hidden: C } = useCurrentPopupContext(), b = useMemo(() => ({
11508
+ const v = e, { footerNodeName: t = "Action.Modal.Footer", width: n, zIndex: o } = v, r = K(v, ["footerNodeName", "width", "zIndex"]), { visible: i, setVisible: a, openSize: l = "middle", modalProps: c } = useActionContext(), u = n != null ? n : openSizeWidthMap.get(l), d = useFieldSchema(), p = useField(), { token: m } = useToken$1(), h = useTabsContext(), g = useZIndexContext(), f = d.reduceProperties((F, I) => I["x-component"] === t ? I : F), { hidden: C } = useCurrentPopupContext(), b = useMemo(() => ({
11509
11509
  mask: {
11510
11510
  display: C ? "none" : "block"
11511
11511
  },
@@ -11607,7 +11607,7 @@ const CurrentPopupRecordContext = React.createContext(null), CurrentParentPopupR
11607
11607
  });
11608
11608
  VariablePopupRecordProvider.displayName = "VariablePopupRecordProvider";
11609
11609
  const useCurrentPopupRecord = () => React.useContext(CurrentPopupRecordContext), useParentPopupRecord = () => React.useContext(CurrentParentPopupRecordContext), useDef$3 = () => ({}), useProps = (e = {}) => {
11610
- const i = e, { useProps: t = useDef$3 } = i, n = W(i, ["useProps"]);
11610
+ const i = e, { useProps: t = useDef$3 } = i, n = K(i, ["useProps"]);
11611
11611
  let o = t;
11612
11612
  typeof t != "function" && (o = useDef$3);
11613
11613
  const r = o();
@@ -11629,7 +11629,7 @@ ActionContainer.Footer = observer$1(
11629
11629
  const SchemaToolbarContext = createContext({});
11630
11630
  SchemaToolbarContext.displayName = "SchemaToolbarContext";
11631
11631
  const SchemaToolbarProvider = (e) => {
11632
- const o = e, { children: t } = o, n = W(o, ["children"]);
11632
+ const o = e, { children: t } = o, n = K(o, ["children"]);
11633
11633
  return /* @__PURE__ */ jsx(SchemaToolbarContext.Provider, { value: n, children: t });
11634
11634
  };
11635
11635
  function useSchemaToolbar() {
@@ -14375,7 +14375,7 @@ const useFormItemInitializerFields = (e) => {
14375
14375
  template: a,
14376
14376
  settings: l,
14377
14377
  action: c = "list"
14378
- } = m, u = W(m, [
14378
+ } = m, u = K(m, [
14379
14379
  "formItemInitializers",
14380
14380
  "actionInitializers",
14381
14381
  "collection",
@@ -14451,7 +14451,7 @@ const useFormItemInitializerFields = (e) => {
14451
14451
  template: d,
14452
14452
  title: p,
14453
14453
  settings: m
14454
- } = C, h = W(C, [
14454
+ } = C, h = K(C, [
14455
14455
  "formItemInitializers",
14456
14456
  "actionInitializers",
14457
14457
  "collection",
@@ -14523,7 +14523,7 @@ const useFormItemInitializerFields = (e) => {
14523
14523
  resource: a,
14524
14524
  template: l,
14525
14525
  settings: c
14526
- } = m, u = W(m, [
14526
+ } = m, u = K(m, [
14527
14527
  "formItemInitializers",
14528
14528
  "actionInitializers",
14529
14529
  "collection",
@@ -14589,7 +14589,7 @@ const useFormItemInitializerFields = (e) => {
14589
14589
  dataSource: c,
14590
14590
  blockType: u,
14591
14591
  pageSize: d = 20
14592
- } = h, p = W(h, [
14592
+ } = h, p = K(h, [
14593
14593
  "collection",
14594
14594
  "rowKey",
14595
14595
  "tableActionInitializers",
@@ -15156,10 +15156,10 @@ const useGetAriaLabelOfDesigner = () => {
15156
15156
  o || (t == null ? void 0 : t["x-initializer"]),
15157
15157
  t == null ? void 0 : t["x-initializer-props"]
15158
15158
  ), B = useGridRowContext(), j = useGridContext(), T = useMemo(() => {
15159
- var K;
15159
+ var W;
15160
15160
  return {
15161
15161
  insertPosition: "afterEnd",
15162
- wrap: ((K = B == null ? void 0 : B.cols) == null ? void 0 : K.length) === 1 ? gridRowColWrap : void 0,
15162
+ wrap: ((W = B == null ? void 0 : B.cols) == null ? void 0 : W.length) === 1 ? gridRowColWrap : void 0,
15163
15163
  Component: (Y) => /* @__PURE__ */ jsx(
15164
15164
  PlusOutlined,
15165
15165
  P(x({}, Y), {
@@ -15170,28 +15170,28 @@ const useGetAriaLabelOfDesigner = () => {
15170
15170
  )
15171
15171
  };
15172
15172
  }, [y, (H = B == null ? void 0 : B.cols) == null ? void 0 : H.length]), N = useMemo(() => u === !1 || f === !1 ? null : /* @__PURE__ */ jsx(DragHandler, { children: /* @__PURE__ */ jsx(DragOutlined, { role: "button", "aria-label": y("drag-handler") }) }), [u, y, f]), O = useMemo(() => {
15173
- var K;
15173
+ var W;
15174
15174
  if (o === !1)
15175
15175
  return null;
15176
15176
  if (w)
15177
15177
  return $(T);
15178
15178
  if (j != null && j.InitializerComponent || j != null && j.renderSchemaInitializer)
15179
- return j != null && j.InitializerComponent ? /* @__PURE__ */ jsx(j.InitializerComponent, x({}, T)) : (K = j.renderSchemaInitializer) == null ? void 0 : K.call(j, T);
15179
+ return j != null && j.InitializerComponent ? /* @__PURE__ */ jsx(j.InitializerComponent, x({}, T)) : (W = j.renderSchemaInitializer) == null ? void 0 : W.call(j, T);
15180
15180
  }, [j, o, T, w, $]), V = useMemo(() => r !== !1 && L ? z() : null, [L, z, r]), E = useRef(null), G = "hidden";
15181
15181
  useEffect(() => {
15182
- const K = E.current;
15183
- let Y = K == null ? void 0 : K.parentElement;
15182
+ const W = E.current;
15183
+ let Y = W == null ? void 0 : W.parentElement;
15184
15184
  for (; Y && Y.clientHeight === 0; )
15185
15185
  Y = Y.parentElement;
15186
15186
  if (!Y)
15187
15187
  return;
15188
15188
  function J() {
15189
15189
  var Z;
15190
- K && (K.classList.remove(G), (Z = e.onVisibleChange) == null || Z.call(e, !0));
15190
+ W && (W.classList.remove(G), (Z = e.onVisibleChange) == null || Z.call(e, !0));
15191
15191
  }
15192
15192
  function X() {
15193
15193
  var Z;
15194
- K && (K.classList.add(G), (Z = e.onVisibleChange) == null || Z.call(e, !1));
15194
+ W && (W.classList.add(G), (Z = e.onVisibleChange) == null || Z.call(e, !1));
15195
15195
  }
15196
15196
  return window.getComputedStyle(Y).position === "static" && (Y.style.position = "relative"), Y.addEventListener("mouseenter", J), Y.addEventListener("mouseleave", X), () => {
15197
15197
  Y.removeEventListener("mouseenter", J), Y.removeEventListener("mouseleave", X);
@@ -15982,7 +15982,7 @@ function RemoveButton(e = {}) {
15982
15982
  ] });
15983
15983
  }
15984
15984
  function WorkflowSelect(r) {
15985
- var i = r, { formAction: e, buttonAction: t, actionType: n } = i, o = W(i, ["formAction", "buttonAction", "actionType"]);
15985
+ var i = r, { formAction: e, buttonAction: t, actionType: n } = i, o = K(i, ["formAction", "buttonAction", "actionType"]);
15986
15986
  const { t: a } = useTranslation(), l = ArrayTable.useIndex(), { setValuesIn: c } = useForm(), u = useCollection_deprecated(), { getCollection: d } = useCollectionManager_deprecated(), p = useDataSourceKey(), [m, h] = useState(joinCollectionName(p, u.name)), g = useCompile(), f = usePlugin("workflow"), C = f.useTriggersOptions(), b = useMemo(
15987
15987
  () => C.filter((y) => typeof y.options.isActionTriggerable == "function" || y.options.isActionTriggerable === !0).map((y) => y.value),
15988
15988
  [C]
@@ -16465,7 +16465,7 @@ const actionSettings = new SchemaSettings({
16465
16465
  linkageRulesProps: i,
16466
16466
  schemaSettings: a = "ActionSettings",
16467
16467
  enableDrag: l = !0
16468
- } = f, c = W(f, [
16468
+ } = f, c = K(f, [
16469
16469
  "modalTip",
16470
16470
  "linkageAction",
16471
16471
  "removeButtonProps",
@@ -16593,7 +16593,7 @@ const ActionLink = withDynamicSchemaProps(
16593
16593
  onMouseEnter: C,
16594
16594
  refreshDataBlockRequest: b,
16595
16595
  confirmTitle: S
16596
- } = E, y = W(E, [
16596
+ } = E, y = K(E, [
16597
16597
  "popover",
16598
16598
  "containerRefKey",
16599
16599
  "component",
@@ -16617,9 +16617,9 @@ const ActionLink = withDynamicSchemaProps(
16617
16617
  useEffect(() => {
16618
16618
  F.stateOfLinkageRules && setInitialActionState(F), F.stateOfLinkageRules = {}, M.filter((U) => !U.disabled).forEach((U) => {
16619
16619
  var H;
16620
- (H = U.actions) == null || H.forEach((K) => {
16620
+ (H = U.actions) == null || H.forEach((W) => {
16621
16621
  linkageAction({
16622
- operator: K.operator,
16622
+ operator: W.operator,
16623
16623
  field: F,
16624
16624
  condition: U.condition,
16625
16625
  variables: $,
@@ -16698,7 +16698,7 @@ const ActionLink = withDynamicSchemaProps(
16698
16698
  setSubmitted: M,
16699
16699
  getAriaLabel: z,
16700
16700
  parentRecordData: L
16701
- } = xe, $ = W(xe, [
16701
+ } = xe, $ = K(xe, [
16702
16702
  "containerRefKey",
16703
16703
  "fieldSchema",
16704
16704
  "designable",
@@ -16726,7 +16726,7 @@ const ActionLink = withDynamicSchemaProps(
16726
16726
  "setSubmitted",
16727
16727
  "getAriaLabel",
16728
16728
  "parentRecordData"
16729
- ]), [w, B] = useState(!1), { wrapSSR: j, componentCls: T, hashId: N } = useStyles$e(), [O, V] = useState(!1), E = o["x-toolbar-props"] || o["x-designer-props"], G = (pe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : pe.openMode, U = (fe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : fe.openSize, H = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.refreshDataBlockRequest, { modal: K } = App.useApp(), Y = useForm(), J = useACLActionParamsContext(), { run: X, element: Q, disabled: Z } = (I == null ? void 0 : I(R)) || {}, oe = Y.disabled || i.disabled || ((he = i.data) == null ? void 0 : he.disabled) || F || Z, te = useMemo(() => {
16729
+ ]), [w, B] = useState(!1), { wrapSSR: j, componentCls: T, hashId: N } = useStyles$e(), [O, V] = useState(!1), E = o["x-toolbar-props"] || o["x-designer-props"], G = (pe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : pe.openMode, U = (fe = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : fe.openSize, H = (me = o == null ? void 0 : o["x-component-props"]) == null ? void 0 : me.refreshDataBlockRequest, { modal: W } = App.useApp(), Y = useForm(), J = useACLActionParamsContext(), { run: X, element: Q, disabled: Z } = (I == null ? void 0 : I(R)) || {}, oe = Y.disabled || i.disabled || ((he = i.data) == null ? void 0 : he.disabled) || F || Z, te = useMemo(() => {
16730
16730
  var ce;
16731
16731
  return P(x({}, v), {
16732
16732
  opacity: r && (((ce = i == null ? void 0 : i.data) == null ? void 0 : ce.hidden) || !J) && 0.1,
@@ -16756,7 +16756,7 @@ const ActionLink = withDynamicSchemaProps(
16756
16756
  setVisible: B,
16757
16757
  run: X,
16758
16758
  confirm: g,
16759
- modal: K,
16759
+ modal: W,
16760
16760
  setSubmitted: M,
16761
16761
  confirmTitle: f,
16762
16762
  title: y
@@ -16945,7 +16945,7 @@ const RenderButtonInner = observer$1(
16945
16945
  Designer: C,
16946
16946
  designerProps: b,
16947
16947
  title: S
16948
- } = F, y = W(F, [
16948
+ } = F, y = K(F, [
16949
16949
  "designable",
16950
16950
  "field",
16951
16951
  "aclCtx",
@@ -16995,14 +16995,14 @@ RenderButtonInner.displayName = "RenderButtonInner";
16995
16995
  const ActionBarContext = React.createContext({
16996
16996
  container: null
16997
16997
  }), ActionBarProvider = (n) => {
16998
- var o = n, { children: e } = o, t = W(o, ["children"]);
16998
+ var o = n, { children: e } = o, t = K(o, ["children"]);
16999
16999
  return /* @__PURE__ */ jsx(ActionBarContext.Provider, { value: t, children: e });
17000
17000
  }, useActionBarContext = () => useContext(ActionBarContext), Portal = (e) => {
17001
17001
  const t = useFieldSchema(), { container: n, parentComponents: o = ["BlockItem", "CardItem"] } = useActionBarContext();
17002
17002
  return /* @__PURE__ */ jsx(Fragment, { children: n && o.includes(t.parent["x-component"]) ? createPortal(e.children, n) : e.children });
17003
17003
  }, InternalActionBar = (e) => {
17004
17004
  var p;
17005
- const { forceProps: t = {} } = useActionBarContext(), d = x(x({}, useProps(e)), t), { layout: n = "two-columns", style: o, spaceProps: r } = d, i = W(d, ["layout", "style", "spaceProps"]), a = useFieldSchema(), { render: l } = useSchemaInitializerRender(a["x-initializer"], a["x-initializer-props"]), { designable: c } = useDesignable();
17005
+ const { forceProps: t = {} } = useActionBarContext(), d = x(x({}, useProps(e)), t), { layout: n = "two-columns", style: o, spaceProps: r } = d, i = K(d, ["layout", "style", "spaceProps"]), a = useFieldSchema(), { render: l } = useSchemaInitializerRender(a["x-initializer"], a["x-initializer-props"]), { designable: c } = useDesignable();
17006
17006
  if (n === "one-column")
17007
17007
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(DndContext, { children: /* @__PURE__ */ jsxs(
17008
17008
  "div",
@@ -17213,7 +17213,7 @@ const SchemaInitializerItemInternal = () => {
17213
17213
  const e = useSchemaInitializerItem();
17214
17214
  return /* @__PURE__ */ jsx(SchemaInitializerItem, x({}, e));
17215
17215
  }, switchStyle = { marginLeft: 20 }, itemStyle = { display: "flex", alignItems: "center", justifyContent: "space-between" }, SchemaInitializerSwitch = (e) => {
17216
- const i = e, { title: t, checked: n } = i, o = W(i, ["title", "checked"]), r = useCompile();
17216
+ const i = e, { title: t, checked: n } = i, o = K(i, ["title", "checked"]), r = useCompile();
17217
17217
  return /* @__PURE__ */ jsx(SchemaInitializerItem, P(x({}, o), { closeInitializerMenuWhenClick: !1, children: /* @__PURE__ */ jsxs("div", { style: itemStyle, children: [
17218
17218
  r(t),
17219
17219
  /* @__PURE__ */ jsx(Switch, { disabled: e.disabled, style: switchStyle, size: "small", checked: n })
@@ -17245,7 +17245,7 @@ const SchemaInitializerItemInternal = () => {
17245
17245
  hideIfNoChildren: c,
17246
17246
  componentProps: u,
17247
17247
  sort: d
17248
- } = F, p = W(F, [
17248
+ } = F, p = K(F, [
17249
17249
  "type",
17250
17250
  "Component",
17251
17251
  "component",
@@ -17377,7 +17377,7 @@ const useMenuSearch$1 = (e) => {
17377
17377
  const { items: t } = e;
17378
17378
  return t.length === 0 ? null : /* @__PURE__ */ jsx(SchemaInitializerChildren, { children: t });
17379
17379
  }, SchemaInitializerActionModalItemComponent = React.forwardRef((e, t) => {
17380
- const r = e, { onClick: n } = r, o = W(r, ["onClick"]);
17380
+ const r = e, { onClick: n } = r, o = K(r, ["onClick"]);
17381
17381
  return /* @__PURE__ */ jsx(SchemaInitializerItem, P(x({ ref: t }, o), { onClick: (i) => n == null ? void 0 : n(i.event, !1) }));
17382
17382
  }), SchemaInitializerActionModal = (e) => {
17383
17383
  const { title: t, icon: n, width: o, schema: r, buttonText: i, btnStyles: a, isItem: l, component: c, onCancel: u, onSubmit: d } = e, { setVisible: p } = useSchemaInitializer(), m = useCallback(() => {
@@ -17475,7 +17475,7 @@ const useMenuSearch$1 = (e) => {
17475
17475
  const e = useSchemaInitializerItem();
17476
17476
  return /* @__PURE__ */ jsx(SchemaInitializerActionModal, x({}, e));
17477
17477
  }, SchemaInitializerSelect = (e) => {
17478
- const h = e, { title: t, options: n, value: o, onChange: r, openOnHover: i, onClick: a } = h, l = W(h, ["title", "options", "value", "onChange", "openOnHover", "onClick"]), [c, u] = useState(!1), d = useCallback(
17478
+ const h = e, { title: t, options: n, value: o, onChange: r, openOnHover: i, onClick: a } = h, l = K(h, ["title", "options", "value", "onChange", "openOnHover", "onClick"]), [c, u] = useState(!1), d = useCallback(
17479
17479
  (...g) => {
17480
17480
  u(!1), a == null || a(...g);
17481
17481
  },
@@ -17540,7 +17540,7 @@ const useMenuSearch$1 = (e) => {
17540
17540
  [e, t]
17541
17541
  ) };
17542
17542
  }, SchemaInitializerButton = React.memo((e) => {
17543
- const a = e, { style: t, options: n } = a, o = W(a, ["style", "options"]), r = useCompile(), { getAriaLabel: i } = useGetAriaLabelOfSchemaInitializer();
17543
+ const a = e, { style: t, options: n } = a, o = K(a, ["style", "options"]), r = useCompile(), { getAriaLabel: i } = useGetAriaLabelOfSchemaInitializer();
17544
17544
  return /* @__PURE__ */ jsx(
17545
17545
  Button,
17546
17546
  P(x({
@@ -17642,7 +17642,7 @@ function useGetSchemaInitializerMenuItems(e) {
17642
17642
  }
17643
17643
  if (i.isMenuType) {
17644
17644
  const f = i, { isMenuType: C } = f;
17645
- return W(f, ["isMenuType"]);
17645
+ return K(f, ["isMenuType"]);
17646
17646
  }
17647
17647
  const d = c || u, p = i.key || `${r}-${u}-${a}`, m = (C) => {
17648
17648
  C.domEvent.stopPropagation(), C.key === p && (i.onClick ? i.onClick(P(x({}, C), { item: i })) : e == null || e(P(x({}, C), { item: i })));
@@ -17938,19 +17938,19 @@ https://requirejs.org/docs/errors.html#` + e);
17938
17938
  }
17939
17939
  }
17940
17940
  function b(T, N, O) {
17941
- var V, E, G, U, H, K, Y, J, X, Q, Z, oe, te = N && N.split("/"), ie = a.map, ae = ie && ie["*"];
17941
+ var V, E, G, U, H, W, Y, J, X, Q, Z, oe, te = N && N.split("/"), ie = a.map, ae = ie && ie["*"];
17942
17942
  if (T && (T = T.split("/"), Y = T.length - 1, a.nodeIdCompat && jsSuffixRegExp.test(T[Y]) && (T[Y] = T[Y].replace(jsSuffixRegExp, "")), T[0].charAt(0) === "." && te && (oe = te.slice(0, te.length - 1), T = oe.concat(T)), C(T), T = T.join("/")), O && ie && (te || ae)) {
17943
17943
  G = T.split("/");
17944
17944
  e:
17945
17945
  for (U = G.length; U > 0; U -= 1) {
17946
- if (K = G.slice(0, U).join("/"), te) {
17946
+ if (W = G.slice(0, U).join("/"), te) {
17947
17947
  for (H = te.length; H > 0; H -= 1)
17948
- if (E = getOwn(ie, te.slice(0, H).join("/")), E && (E = getOwn(E, K), E)) {
17948
+ if (E = getOwn(ie, te.slice(0, H).join("/")), E && (E = getOwn(E, W), E)) {
17949
17949
  J = E, X = U;
17950
17950
  break e;
17951
17951
  }
17952
17952
  }
17953
- !Q && ae && getOwn(ae, K) && (Q = getOwn(ae, K), Z = U);
17953
+ !Q && ae && getOwn(ae, W) && (Q = getOwn(ae, W), Z = U);
17954
17954
  }
17955
17955
  !J && Q && (J = Q, X = Z), J && (G.splice(0, X, J), T = G.join("/"));
17956
17956
  }
@@ -17974,18 +17974,18 @@ https://requirejs.org/docs/errors.html#` + e);
17974
17974
  return O > -1 && (N = T.substring(0, O), T = T.substring(O + 1, T.length)), [N, T];
17975
17975
  }
17976
17976
  function F(T, N, O, V) {
17977
- var E, G, U, H, K = null, Y = N ? N.name : null, J = T, X = !0, Q = "";
17978
- return T || (X = !1, T = "_@r" + (g += 1)), H = v(T), K = H[0], T = H[1], K && (K = b(K, Y, V), G = getOwn(p, K)), T && (K ? O ? Q = T : G && G.normalize ? Q = G.normalize(T, function(Z) {
17977
+ var E, G, U, H, W = null, Y = N ? N.name : null, J = T, X = !0, Q = "";
17978
+ return T || (X = !1, T = "_@r" + (g += 1)), H = v(T), W = H[0], T = H[1], W && (W = b(W, Y, V), G = getOwn(p, W)), T && (W ? O ? Q = T : G && G.normalize ? Q = G.normalize(T, function(Z) {
17979
17979
  return b(Z, Y, V);
17980
- }) : Q = T.indexOf("!") === -1 ? b(T, Y, V) : T : (Q = b(T, Y, V), H = v(Q), K = H[0], Q = H[1], O = !0, E = o.nameToUrl(Q))), U = K && !G && !O ? "_unnormalized" + (f += 1) : "", {
17981
- prefix: K,
17980
+ }) : Q = T.indexOf("!") === -1 ? b(T, Y, V) : T : (Q = b(T, Y, V), H = v(Q), W = H[0], Q = H[1], O = !0, E = o.nameToUrl(Q))), U = W && !G && !O ? "_unnormalized" + (f += 1) : "", {
17981
+ prefix: W,
17982
17982
  name: Q,
17983
17983
  parentMap: N,
17984
17984
  unnormalized: !!U,
17985
17985
  url: E,
17986
17986
  originalName: J,
17987
17987
  isDefine: X,
17988
- id: (K ? K + "!" + Q : Q) + U
17988
+ id: (W ? W + "!" + Q : Q) + U
17989
17989
  };
17990
17990
  }
17991
17991
  function I(T) {
@@ -18041,18 +18041,18 @@ https://requirejs.org/docs/errors.html#` + e);
18041
18041
  function L() {
18042
18042
  var T, N, O = a.waitSeconds * 1e3, V = O && o.startTime + O < (/* @__PURE__ */ new Date()).getTime(), E = [], G = [], U = !1, H = !0;
18043
18043
  if (!t) {
18044
- if (t = !0, eachProp(c, function(K) {
18045
- var Y = K.map, J = Y.id;
18046
- if (K.enabled && (Y.isDefine || G.push(K), !K.error)) {
18047
- if (!K.inited && V)
18044
+ if (t = !0, eachProp(c, function(W) {
18045
+ var Y = W.map, J = Y.id;
18046
+ if (W.enabled && (Y.isDefine || G.push(W), !W.error)) {
18047
+ if (!W.inited && V)
18048
18048
  y(J) ? (N = !0, U = !0) : (E.push(J), S(J));
18049
- else if (!K.inited && K.fetched && Y.isDefine && (U = !0, !Y.prefix))
18049
+ else if (!W.inited && W.fetched && Y.isDefine && (U = !0, !Y.prefix))
18050
18050
  return H = !1;
18051
18051
  }
18052
18052
  }), V && E.length)
18053
18053
  return T = makeError("timeout", "Load timeout for modules: " + E, null, E), T.contextName = o.contextName, k(T);
18054
- H && each(G, function(K) {
18055
- z(K, {}, {});
18054
+ H && each(G, function(W) {
18055
+ z(W, {}, {});
18056
18056
  }), (!V || N) && U && (isBrowser || isWebWorker) && !i && (i = setTimeout(function() {
18057
18057
  i = 0, L();
18058
18058
  }, 50)), t = !1;
@@ -18128,14 +18128,14 @@ https://requirejs.org/docs/errors.html#` + e);
18128
18128
  callPlugin: function() {
18129
18129
  var T = this.map, N = T.id, O = F(T.prefix);
18130
18130
  this.depMaps.push(O), R(O, "defined", bind(this, function(V) {
18131
- var E, G, U, H = getOwn(h, this.map.id), K = this.map.name, Y = this.map.parentMap ? this.map.parentMap.name : null, J = o.makeRequire(T.parentMap, {
18131
+ var E, G, U, H = getOwn(h, this.map.id), W = this.map.name, Y = this.map.parentMap ? this.map.parentMap.name : null, J = o.makeRequire(T.parentMap, {
18132
18132
  enableBuildCallback: !0
18133
18133
  });
18134
18134
  if (this.map.unnormalized) {
18135
- V.normalize && (K = V.normalize(K, function(X) {
18135
+ V.normalize && (W = V.normalize(W, function(X) {
18136
18136
  return b(X, Y, !0);
18137
18137
  }) || ""), G = F(
18138
- T.prefix + "!" + K,
18138
+ T.prefix + "!" + W,
18139
18139
  this.map.parentMap,
18140
18140
  !0
18141
18141
  ), R(
@@ -18298,9 +18298,9 @@ https://requirejs.org/docs/errors.html#` + e);
18298
18298
  makeRequire: function(T, N) {
18299
18299
  N = N || {};
18300
18300
  function O(V, E, G) {
18301
- var U, H, K;
18301
+ var U, H, W;
18302
18302
  return N.enableBuildCallback && E && isFunction(E) && (E.__requireJsBuild = !0), typeof V == "string" ? isFunction(E) ? k(makeError("requireargs", "Invalid require call"), G) : T && hasProp(r, V) ? r[V](l[T.id]) : req.get ? req.get(o, V, T, O) : (H = F(V, T, !1, !0), U = H.id, hasProp(p, U) ? p[U] : k(makeError("notloaded", 'Module name "' + U + '" has not been loaded yet for context: ' + e + (T ? "" : ". Use require([])")))) : (j(), o.nextTick(function() {
18303
- j(), K = I(F(null, T)), K.skipMap = N.skipMap, K.init(V, E, G, {
18303
+ j(), W = I(F(null, T)), W.skipMap = N.skipMap, W.init(V, E, G, {
18304
18304
  enabled: !0
18305
18305
  }), L();
18306
18306
  }), O);
@@ -18381,15 +18381,15 @@ https://requirejs.org/docs/errors.html#` + e);
18381
18381
  * internal API, not a public one. Use toUrl for the public API.
18382
18382
  */
18383
18383
  nameToUrl: function(T, N, O) {
18384
- var V, E, G, U, H, K, Y, J = getOwn(a.pkgs, T);
18384
+ var V, E, G, U, H, W, Y, J = getOwn(a.pkgs, T);
18385
18385
  if (J && (T = J), Y = getOwn(h, T), Y)
18386
18386
  return o.nameToUrl(Y, N, O);
18387
18387
  if (req.jsExtRegExp.test(T))
18388
18388
  H = T + (N || "");
18389
18389
  else {
18390
18390
  for (V = a.paths, E = T.split("/"), G = E.length; G > 0; G -= 1)
18391
- if (U = E.slice(0, G).join("/"), K = getOwn(V, U), K) {
18392
- isArray(K) && (K = K[0]), E.splice(0, G, K);
18391
+ if (U = E.slice(0, G).join("/"), W = getOwn(V, U), W) {
18392
+ isArray(W) && (W = W[0]), E.splice(0, G, W);
18393
18393
  break;
18394
18394
  }
18395
18395
  H = E.join("/"), H += N || (/^data\:|^blob\:|\?/.test(H) || O ? "" : ".js"), H = (H.charAt(0) === "/" || H.match(/^[\w\+\.\-]+:/) ? "" : a.baseUrl) + H;
@@ -18558,7 +18558,7 @@ const DataSourceApplicationProvider = (o) => {
18558
18558
  var r = o, {
18559
18559
  children: e,
18560
18560
  dataSourceManager: t
18561
- } = r, n = W(r, [
18561
+ } = r, n = K(r, [
18562
18562
  "children",
18563
18563
  "dataSourceManager"
18564
18564
  ]);
@@ -19058,14 +19058,14 @@ const useCollectionManager_deprecated = (e) => {
19058
19058
  exceptInterfaces: G = [],
19059
19059
  prefixFieldValue: U = "",
19060
19060
  usePrefix: H = !1,
19061
- dataSource: K
19061
+ dataSource: W
19062
19062
  } = j || {};
19063
19063
  if (O.length - 1 > V)
19064
19064
  return;
19065
19065
  if (N[w])
19066
19066
  return _.cloneDeep(N[w]);
19067
19067
  typeof B == "string" && (B = [B]);
19068
- const Y = b(w, K), J = (X = Y == null ? void 0 : Y.filter(
19068
+ const Y = b(w, W), J = (X = Y == null ? void 0 : Y.filter(
19069
19069
  (Q) => Q.interface && !G.includes(Q.interface) && (E || B.includes(Q.type) || (T && Q.target && Q.target !== w && Array.isArray(T) ? T.includes(Q.interface) : !1))
19070
19070
  )) == null ? void 0 : X.map((Q) => {
19071
19071
  var oe, te;
@@ -19075,7 +19075,7 @@ const useCollectionManager_deprecated = (e) => {
19075
19075
  }, Q);
19076
19076
  return T && Q.target && (Z.children = O.includes(Q.target) ? [] : I(Q.target, B, P(x({}, j), {
19077
19077
  cached: N,
19078
- dataSource: K,
19078
+ dataSource: W,
19079
19079
  collectionNames: [...O, Q.target],
19080
19080
  prefixFieldValue: H ? U ? `${U}.${Q.name}` : Q.name : "",
19081
19081
  usePrefix: H
@@ -19324,47 +19324,50 @@ const useAPITokenVariable = ({
19324
19324
  },
19325
19325
  [e, t]
19326
19326
  );
19327
- }, filterProperties = (e) => e["x-component"] === "Action.Container";
19327
+ }, filterProperties = (e) => e["x-component"] === "Action.Container", FieldLink = (e) => {
19328
+ const d = e, { WrappedComponent: t } = d, n = K(d, ["WrappedComponent"]), o = useFieldSchema(), { openPopup: r } = usePopupUtils(), i = useRef(!1), a = useInsertSchema(), l = useRef(o);
19329
+ l.current = o;
19330
+ const c = useCallback(() => l.current, []), u = useCallback(() => {
19331
+ o.properties || (a(popupSchema), i.current = !0), i.current ? (setTimeout(() => {
19332
+ r({ customActionSchema: c() });
19333
+ }), i.current = !1) : o.properties && r();
19334
+ }, [o, a, r, c]);
19335
+ return /* @__PURE__ */ jsx("a", { onClick: u, children: /* @__PURE__ */ jsx(t, x({}, n)) });
19336
+ };
19328
19337
  function withPopupWrapper(e) {
19329
19338
  return (t) => {
19330
- const [n, o] = useState(!1), [r, i] = useState(!1), a = useInsertSchema(), l = useCollection(), c = useActionContext(), u = useField(), d = useFieldSchema(), { enableLink: p, openMode: m, openSize: h } = (d == null ? void 0 : d["x-component-props"]) || {}, { visibleWithURL: g, setVisibleWithURL: f } = usePopupUtils(), { openPopup: C } = usePopupUtils(), b = useRef(!1), S = useRef(d);
19331
- S.current = d;
19332
- const y = useCallback(() => S.current, []), v = useCallback(() => {
19333
- d.properties || (a(popupSchema), b.current = !0), b.current ? (setTimeout(() => {
19334
- C({
19335
- customActionSchema: y()
19336
- });
19337
- }), b.current = !1) : d.properties && C();
19338
- }, [d, a, C, y]), { setSubmitted: F } = c, I = useCallback(
19339
- (R) => {
19340
- o == null || o(R), f == null || f(R);
19341
- },
19342
- [f]
19343
- );
19344
- return p ? /* @__PURE__ */ jsx(PopupVisibleProvider, { visible: !1, children: /* @__PURE__ */ jsxs(
19339
+ const [n, o] = useState(!1), [r, i] = useState(!1), a = useCollection(), l = useActionContext(), c = useField(), u = useFieldSchema(), { enableLink: d, openMode: p, openSize: m } = (u == null ? void 0 : u["x-component-props"]) || {}, { visibleWithURL: h, setVisibleWithURL: g } = usePopupUtils(), f = useCallback(
19340
+ (S) => {
19341
+ o == null || o(S), g == null || g(S);
19342
+ },
19343
+ [g]
19344
+ ), C = useRef(u);
19345
+ C.current = u;
19346
+ const { setSubmitted: b } = l;
19347
+ return d ? /* @__PURE__ */ jsx(PopupVisibleProvider, { visible: !1, children: /* @__PURE__ */ jsxs(
19345
19348
  ActionContextProvider,
19346
19349
  {
19347
19350
  button: /* @__PURE__ */ jsx(e, x({}, t)),
19348
- visible: n || g,
19349
- setVisible: I,
19351
+ visible: n || h,
19352
+ setVisible: f,
19350
19353
  formValueChanged: r,
19351
19354
  setFormValueChanged: i,
19352
- openMode: m,
19353
- openSize: h,
19355
+ openMode: p,
19356
+ openSize: m,
19354
19357
  containerRefKey: "field-popup",
19355
- fieldSchema: d,
19356
- setSubmitted: F,
19358
+ fieldSchema: u,
19359
+ setSubmitted: b,
19357
19360
  children: [
19358
- /* @__PURE__ */ jsx(CollectionProvider, { name: l.name, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { children: /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: /* @__PURE__ */ jsx(
19361
+ /* @__PURE__ */ jsx(CollectionProvider, { name: a.name, children: /* @__PURE__ */ jsx(SchemaComponentOptions, { children: /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: /* @__PURE__ */ jsx(
19359
19362
  NocoBaseRecursionField,
19360
19363
  {
19361
19364
  onlyRenderProperties: !0,
19362
- basePath: u == null ? void 0 : u.address,
19363
- schema: d,
19365
+ basePath: c == null ? void 0 : c.address,
19366
+ schema: u,
19364
19367
  filterProperties
19365
19368
  }
19366
19369
  ) }) }) }),
19367
- /* @__PURE__ */ jsx("a", { onClick: v, children: /* @__PURE__ */ jsx(e, x({}, t)) })
19370
+ /* @__PURE__ */ jsx(FieldLink, P(x({}, t), { WrappedComponent: e }))
19368
19371
  ]
19369
19372
  }
19370
19373
  ) }) : /* @__PURE__ */ jsx(e, x({}, t));
@@ -20939,7 +20942,7 @@ function getSelectedIdFilter(e) {
20939
20942
  } : null;
20940
20943
  }
20941
20944
  function SelectItem(e) {
20942
- const a = e, { title: t, options: n, value: o, onChange: r } = a, i = W(a, ["title", "options", "value", "onChange"]);
20945
+ const a = e, { title: t, options: n, value: o, onChange: r } = a, i = K(a, ["title", "options", "value", "onChange"]);
20943
20946
  return /* @__PURE__ */ jsx(SchemaSettingsItem, P(x({ title: t }, i), { children: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
20944
20947
  t,
20945
20948
  /* @__PURE__ */ jsx(
@@ -20965,7 +20968,7 @@ const Tree = connect(
20965
20968
  Tree.displayName = "Tree";
20966
20969
  const compatibleDataId = (e, t) => e == null ? void 0 : e.map((n) => {
20967
20970
  var l;
20968
- const a = n, { dataId: o } = a, r = W(a, ["dataId"]), i = x({}, r);
20971
+ const a = n, { dataId: o } = a, r = K(a, ["dataId"]), i = x({}, r);
20969
20972
  return o && (i.dataScope = { $and: [{ id: { $eq: o } }] }, i.titleField = (i == null ? void 0 : i.titleField) || ((l = t == null ? void 0 : t[n.collection]) == null ? void 0 : l.titleField) || "id"), i;
20970
20973
  }), FormDataTemplates = withDynamicSchemaProps(
20971
20974
  observer$1((e) => {
@@ -22071,7 +22074,7 @@ const SchemaSettingsProvider = (e) => {
22071
22074
  );
22072
22075
  return /* @__PURE__ */ jsx(SchemaSettingsContext.Provider, { value: a, children: t });
22073
22076
  }, SchemaSettingsDropdown = React.memo((e) => {
22074
- const f = e, { title: t, dn: n } = f, o = W(f, ["title", "dn"]), [r, i] = useState(!1), { Component: a, getMenuItems: l } = useMenuItem(), c = useNiceDropdownMaxHeight([r]), [u, d] = useState(!1), p = useContext(SchemaToolbarVisibleContext);
22077
+ const f = e, { title: t, dn: n } = f, o = K(f, ["title", "dn"]), [r, i] = useState(!1), { Component: a, getMenuItems: l } = useMenuItem(), c = useNiceDropdownMaxHeight([r]), [u, d] = useState(!1), p = useContext(SchemaToolbarVisibleContext);
22075
22078
  useEffect(() => {
22076
22079
  p && d(!1);
22077
22080
  }, [p]);
@@ -22290,10 +22293,10 @@ const findGridSchema = (e) => e.reduceProperties((t, n) => {
22290
22293
  }
22291
22294
  );
22292
22295
  }, SchemaSettingsSelectItem = (e) => {
22293
- const a = e, { title: t, options: n, value: o, onChange: r } = a, i = W(a, ["title", "options", "value", "onChange"]);
22296
+ const a = e, { title: t, options: n, value: o, onChange: r } = a, i = K(a, ["title", "options", "value", "onChange"]);
22294
22297
  return /* @__PURE__ */ jsx(SchemaSettingsItem, P(x({ title: t }, i), { children: /* @__PURE__ */ jsx(SelectWithTitle, { title: t, defaultValue: o, onChange: r, options: n }) }));
22295
22298
  }, SchemaSettingsCascaderItem = (e) => {
22296
- const a = e, { title: t, options: n, value: o, onChange: r } = a, i = W(a, ["title", "options", "value", "onChange"]);
22299
+ const a = e, { title: t, options: n, value: o, onChange: r } = a, i = K(a, ["title", "options", "value", "onChange"]);
22297
22300
  return /* @__PURE__ */ jsx(SchemaSettingsItem, P(x({ title: t }, i), { children: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
22298
22301
  t,
22299
22302
  /* @__PURE__ */ jsx(
@@ -22310,7 +22313,7 @@ const findGridSchema = (e) => e.reduceProperties((t, n) => {
22310
22313
  }, ml32 = { marginLeft: 32 }, MenuItemSwitch = observer$1(({ state: e }) => /* @__PURE__ */ jsx(Switch, { size: "small", checked: e.checked, style: ml32 }));
22311
22314
  MenuItemSwitch.displayName = "MenuItemSwitch";
22312
22315
  const SchemaSettingsSwitchItem = (e) => {
22313
- const i = e, { title: t, onChange: n } = i, o = W(i, ["title", "onChange"]), [r] = useState(() => observable({ checked: !!e.checked }));
22316
+ const i = e, { title: t, onChange: n } = i, o = K(i, ["title", "onChange"]), [r] = useState(() => observable({ checked: !!e.checked }));
22314
22317
  return /* @__PURE__ */ jsx(
22315
22318
  SchemaSettingsItem,
22316
22319
  P(x({
@@ -22326,7 +22329,7 @@ const SchemaSettingsSwitchItem = (e) => {
22326
22329
  })
22327
22330
  );
22328
22331
  }, SchemaSettingsPopupItem = (e) => {
22329
- const a = e, { schema: t } = a, n = W(a, ["schema"]), [o, r] = useState(!1), i = useContext(SchemaSettingsContext);
22332
+ const a = e, { schema: t } = a, n = K(a, ["schema"]), [o, r] = useState(!1), i = useContext(SchemaSettingsContext);
22330
22333
  return /* @__PURE__ */ jsxs(ActionContextProvider, { value: { visible: o, setVisible: r }, children: [
22331
22334
  /* @__PURE__ */ jsx(
22332
22335
  SchemaSettingsItem,
@@ -22360,7 +22363,7 @@ const SchemaSettingsSwitchItem = (e) => {
22360
22363
  modalTip: c,
22361
22364
  components: u,
22362
22365
  scope: d
22363
- } = w, p = W(w, [
22366
+ } = w, p = K(w, [
22364
22367
  "title",
22365
22368
  "onSubmit",
22366
22369
  "width",
@@ -22446,7 +22449,7 @@ const SchemaSettingsModalItem = (e) => {
22446
22449
  width: u = "fit-content",
22447
22450
  noRecord: d = !1,
22448
22451
  ModalContextProvider: p = (E) => /* @__PURE__ */ jsx(Fragment, { children: E.children })
22449
- } = V, m = W(V, [
22452
+ } = V, m = K(V, [
22450
22453
  "hidden",
22451
22454
  "title",
22452
22455
  "components",
@@ -22835,7 +22838,7 @@ const typeComponentMap = {
22835
22838
  actionModal: SchemaSettingsActionModalItem,
22836
22839
  modal: SchemaSettingsModalItem
22837
22840
  }, SchemaSettingsChildErrorFallback = (e) => {
22838
- const o = e, { title: t } = o, n = W(o, ["title"]);
22841
+ const o = e, { title: t } = o, n = K(o, ["title"]);
22839
22842
  return /* @__PURE__ */ jsx(SchemaSettingsItem, { title: t, children: /* @__PURE__ */ jsx(ErrorFallback.Modal, x({}, n)) });
22840
22843
  }, getFallbackComponent = _.memoize((e) => (t) => /* @__PURE__ */ jsx(SchemaSettingsChildErrorFallback, P(x({}, t), { title: e }))), SchemaSettingsChildren = (e) => {
22841
22844
  const { children: t } = e, { visible: n } = useSchemaSettings(), o = useRef(!1), r = useFieldComponentName();
@@ -22871,7 +22874,7 @@ const typeComponentMap = {
22871
22874
  });
22872
22875
  SchemaSettingsIcon.displayName = "SchemaSettingsIcon";
22873
22876
  const SchemaSettingsWrapper = React.memo((e) => {
22874
- const p = e, { items: t, Component: n = SchemaSettingsIcon, name: o, componentProps: r, style: i } = p, a = W(p, ["items", "Component", "name", "componentProps", "style"]), { dn: l } = useDesignable(), c = useField(), u = useFieldSchema(), d = useMemo(
22877
+ const p = e, { items: t, Component: n = SchemaSettingsIcon, name: o, componentProps: r, style: i } = p, a = K(p, ["items", "Component", "name", "componentProps", "style"]), { dn: l } = useDesignable(), c = useField(), u = useFieldSchema(), d = useMemo(
22875
22878
  () => x({
22876
22879
  options: e,
22877
22880
  style: i
@@ -24285,9 +24288,9 @@ const useGetFilterOptions = () => {
24285
24288
  defaultFilter: ((O = (N = (T = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : O.filter) || {},
24286
24289
  form: r,
24287
24290
  onSubmit: ({ filter: U }) => {
24288
- var K, Y;
24291
+ var W, Y;
24289
24292
  U = removeNullCondition(U), set(l.componentProps, "service.params.filter", U), n["x-component-props"] = l.componentProps;
24290
- const H = (Y = l.path) == null ? void 0 : Y.splice(((K = l.path) == null ? void 0 : K.length) - 1, 1);
24293
+ const H = (Y = l.path) == null ? void 0 : Y.splice(((W = l.path) == null ? void 0 : W.length) - 1, 1);
24291
24294
  l.form.query(`${H.concat("*." + n.name)}`).forEach((J) => {
24292
24295
  J.componentProps.service = J.componentProps.service || { params: {} }, J.componentProps.service.params.filter = U;
24293
24296
  }), d.emit("patch", {
@@ -24318,11 +24321,11 @@ const useGetFilterOptions = () => {
24318
24321
  onSubmit: ({ width: U }) => {
24319
24322
  const H = u["x-component-props"] || {};
24320
24323
  H.width = U;
24321
- const K = {
24324
+ const W = {
24322
24325
  "x-uid": u["x-uid"]
24323
24326
  };
24324
- K["x-component-props"] = H, u["x-component-props"] = H, l.componentProps.width = U, d.emit("patch", {
24325
- schema: K
24327
+ W["x-component-props"] = H, u["x-component-props"] = H, l.componentProps.width = U, d.emit("patch", {
24328
+ schema: W
24326
24329
  }), d.refresh();
24327
24330
  }
24328
24331
  }
@@ -24378,8 +24381,8 @@ const useGetFilterOptions = () => {
24378
24381
  label: U
24379
24382
  });
24380
24383
  _.set(n, "x-component-props.fieldNames", H);
24381
- const K = (Z = l.path) == null ? void 0 : Z.splice(((Q = l.path) == null ? void 0 : Q.length) - 1, 1);
24382
- l.form.query(`${K.concat("*." + n.name)}`).forEach((oe) => {
24384
+ const W = (Z = l.path) == null ? void 0 : Z.splice(((Q = l.path) == null ? void 0 : Q.length) - 1, 1);
24385
+ l.form.query(`${W.concat("*." + n.name)}`).forEach((oe) => {
24383
24386
  oe.componentProps.fieldNames = H;
24384
24387
  }), d.emit("patch", {
24385
24388
  schema: {
@@ -24439,8 +24442,8 @@ const useGetFilterOptions = () => {
24439
24442
  "x-uid": n["x-uid"]
24440
24443
  };
24441
24444
  n.required = U, H.required = U;
24442
- const K = (J = l.path) == null ? void 0 : J.splice(((Y = l.path) == null ? void 0 : Y.length) - 1, 1);
24443
- l.form.query(`${K.concat("*." + n.name)}`).forEach((X) => {
24445
+ const W = (J = l.path) == null ? void 0 : J.splice(((Y = l.path) == null ? void 0 : Y.length) - 1, 1);
24446
+ l.form.query(`${W.concat("*." + n.name)}`).forEach((X) => {
24444
24447
  X.required = U;
24445
24448
  }), d.emit("patch", {
24446
24449
  schema: H
@@ -24463,22 +24466,22 @@ const useGetFilterOptions = () => {
24463
24466
  var Y, J;
24464
24467
  const H = {
24465
24468
  "x-uid": n["x-uid"]
24466
- }, K = (J = l.path) == null ? void 0 : J.splice(((Y = l.path) == null ? void 0 : Y.length) - 1, 1);
24469
+ }, W = (J = l.path) == null ? void 0 : J.splice(((Y = l.path) == null ? void 0 : Y.length) - 1, 1);
24467
24470
  switch (U) {
24468
24471
  case "readonly": {
24469
- n["x-read-pretty"] = !1, n["x-disabled"] = !0, H["x-read-pretty"] = !1, H["x-disabled"] = !0, l.form.query(`${K.concat("*." + n.name)}`).forEach((X) => {
24472
+ n["x-read-pretty"] = !1, n["x-disabled"] = !0, H["x-read-pretty"] = !1, H["x-disabled"] = !0, l.form.query(`${W.concat("*." + n.name)}`).forEach((X) => {
24470
24473
  X.readonly = !0, X.disabled = !0;
24471
24474
  });
24472
24475
  break;
24473
24476
  }
24474
24477
  case "read-pretty": {
24475
- n["x-read-pretty"] = !0, n["x-disabled"] = !1, H["x-read-pretty"] = !0, H["x-disabled"] = !1, l.form.query(`${K.concat("*." + n.name)}`).forEach((X) => {
24478
+ n["x-read-pretty"] = !0, n["x-disabled"] = !1, H["x-read-pretty"] = !0, H["x-disabled"] = !1, l.form.query(`${W.concat("*." + n.name)}`).forEach((X) => {
24476
24479
  X.readPretty = !0;
24477
24480
  });
24478
24481
  break;
24479
24482
  }
24480
24483
  default: {
24481
- n["x-read-pretty"] = !1, n["x-disabled"] = !1, H["x-read-pretty"] = !1, H["x-disabled"] = !1, l.form.query(`${K.concat("*." + n.name)}`).forEach((X) => {
24484
+ n["x-read-pretty"] = !1, n["x-disabled"] = !1, H["x-read-pretty"] = !1, H["x-disabled"] = !1, l.form.query(`${W.concat("*." + n.name)}`).forEach((X) => {
24482
24485
  X.readPretty = !1, X.disabled + !1;
24483
24486
  });
24484
24487
  break;
@@ -24497,8 +24500,8 @@ const useGetFilterOptions = () => {
24497
24500
  {
24498
24501
  fieldSchema: n,
24499
24502
  onSubmitCallBack: (U) => {
24500
- var K, Y;
24501
- const H = (Y = l.path) == null ? void 0 : Y.splice(((K = l.path) == null ? void 0 : K.length) - 1, 1);
24503
+ var W, Y;
24504
+ const H = (Y = l.path) == null ? void 0 : Y.splice(((W = l.path) == null ? void 0 : W.length) - 1, 1);
24502
24505
  l.form.query(`${H.concat("*." + n.name)}`).forEach((J) => {
24503
24506
  J.componentProps.service = J.componentProps.service || { params: {} }, J.componentProps.service.params.sort = U;
24504
24507
  });
@@ -25556,12 +25559,12 @@ const useCreateActionProps = () => {
25556
25559
  skipValidator: z,
25557
25560
  triggerWorkflows: L
25558
25561
  } = (N = l == null ? void 0 : l["x-action-settings"]) != null ? N : {}, $ = (O = i == null ? void 0 : i["x-component-props"]) == null ? void 0 : O.addChild, { successMessage: w } = D || {}, B = {}, j = Object.keys(k).map((H) => q(this, null, function* () {
25559
- const K = k[H], Y = d(H);
25560
- if (isVariable(K)) {
25561
- const { value: J } = (yield C == null ? void 0 : C.parseVariable(K, b)) || {};
25562
+ const W = k[H], Y = d(H);
25563
+ if (isVariable(W)) {
25564
+ const { value: J } = (yield C == null ? void 0 : C.parseVariable(W, b)) || {};
25562
25565
  J && (B[H] = transformVariableValue(J, { targetCollectionField: Y }));
25563
25566
  } else
25564
- K != null && K !== "" && (B[H] = K);
25567
+ W != null && W !== "" && (B[H] = W);
25565
25568
  }));
25566
25569
  yield Promise.all(j), z || (yield e.submit());
25567
25570
  const T = getFormValues({
@@ -25583,7 +25586,7 @@ const useCreateActionProps = () => {
25583
25586
  values: x(x(x({}, T), M), B),
25584
25587
  filterKeys: v,
25585
25588
  // TODO(refactor): should change to inject by plugin
25586
- triggerWorkflows: L != null && L.length ? L.map((K) => [K.workflowKey, K.context].filter(Boolean).join("!")).join(",") : void 0
25589
+ triggerWorkflows: L != null && L.length ? L.map((W) => [W.workflowKey, W.context].filter(Boolean).join("!")).join(",") : void 0
25587
25590
  });
25588
25591
  if (c.data.loading = !1, c.data.data = H, (U = (G = o == null ? void 0 : o.service) == null ? void 0 : G.refresh) == null || U.call(G), r == null || r(!1), a == null || a(!0), !w)
25589
25592
  return;
@@ -25748,7 +25751,7 @@ const useCreateActionProps = () => {
25748
25751
  content: p(M === "selected" ? "Update selected data?" : "Update all data?"),
25749
25752
  onOk() {
25750
25753
  return q(this, null, function* () {
25751
- var G, U, H, K;
25754
+ var G, U, H, W;
25752
25755
  const { filter: V } = (U = (G = o.params) == null ? void 0 : G[0]) != null ? U : {}, E = {
25753
25756
  values: x({}, j),
25754
25757
  filter: V,
@@ -25768,7 +25771,7 @@ const useCreateActionProps = () => {
25768
25771
  } finally {
25769
25772
  m.data.loading = !1;
25770
25773
  }
25771
- t instanceof TableFieldResource || (K = (H = n == null ? void 0 : n.service) == null ? void 0 : H.refresh) == null || K.call(H), w && (z ? h.success({
25774
+ t instanceof TableFieldResource || (W = (H = n == null ? void 0 : n.service) == null ? void 0 : H.refresh) == null || W.call(H), w && (z ? h.success({
25772
25775
  title: d(w),
25773
25776
  onOk: () => q(this, null, function* () {
25774
25777
  (L && !B || B === "redirect") && $ && (isURL($) ? window.location.href = $ : u($));
@@ -25798,7 +25801,7 @@ const useCreateActionProps = () => {
25798
25801
  I !== !0 && w === "customize:form:request" && (yield i.submit());
25799
25802
  const B = k.headers ? JSON.parse(k.headers) : {}, j = k.params ? JSON.parse(k.params) : {}, T = k.data ? JSON.parse(k.data) : {};
25800
25803
  if (w === "customize:form:request" && ["POST", "PUT", "PATCH"].includes(k.method)) {
25801
- const H = a.map((Y) => Y.name), K = getFormValues({
25804
+ const H = a.map((Y) => Y.name), W = getFormValues({
25802
25805
  filterByTk: n,
25803
25806
  field: c,
25804
25807
  form: i,
@@ -25807,7 +25810,7 @@ const useCreateActionProps = () => {
25807
25810
  resource: u,
25808
25811
  actionFields: (y == null ? void 0 : y("form")) || []
25809
25812
  });
25810
- Object.assign(T, K);
25813
+ Object.assign(T, W);
25811
25814
  }
25812
25815
  const O = {
25813
25816
  url: renderTemplate(k.url, { currentRecord: m, currentUser: g }),
@@ -25845,8 +25848,8 @@ const useCreateActionProps = () => {
25845
25848
  } = (E = l == null ? void 0 : l["x-action-settings"]) != null ? E : {}, { manualClose: L, redirecting: $, redirectTo: w, successMessage: B, actionAfterSuccess: j } = k || {}, T = {}, N = Object.keys(R).map((G) => q(this, null, function* () {
25846
25849
  const U = R[G], H = d(G);
25847
25850
  if (isVariable(U)) {
25848
- const { value: K } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
25849
- K && (T[G] = transformVariableValue(K, { targetCollectionField: H }));
25851
+ const { value: W } = (yield b == null ? void 0 : b.parseVariable(U, S)) || {};
25852
+ W && (T[G] = transformVariableValue(W, { targetCollectionField: H }));
25850
25853
  } else
25851
25854
  U != null && U !== "" && (T[G] = U);
25852
25855
  }));
@@ -26099,11 +26102,11 @@ const useCreateActionProps = () => {
26099
26102
  (w) => {
26100
26103
  const { targets: B, uid: j } = findFilterTargets(t);
26101
26104
  o().forEach((T) => {
26102
- var U, H, K;
26105
+ var U, H, W;
26103
26106
  if (!B.find((Y) => Y.uid === T.uid))
26104
26107
  return;
26105
26108
  const O = `${j}${t.name}`, V = ((U = T.service.params) == null ? void 0 : U[0]) || {};
26106
- (K = (H = T.service.params) == null ? void 0 : H[1]) != null && K.filters || _.set(T.service.params, "[1].filters", {});
26109
+ (W = (H = T.service.params) == null ? void 0 : H[1]) != null && W.filters || _.set(T.service.params, "[1].filters", {});
26107
26110
  const E = T.service.params[1].filters;
26108
26111
  if (w.length)
26109
26112
  E[O] = {
@@ -26880,8 +26883,8 @@ const UnitConversion = ({ unitConversionType: e }) => {
26880
26883
  /* @__PURE__ */ jsx(DragHandler, {})
26881
26884
  ] });
26882
26885
  }, BlockItemCard = React.forwardRef((o, n) => {
26883
- var r = o, { children: e } = r, t = W(r, ["children"]);
26884
- const { token: i } = useToken$1(), a = useMemo(() => ({ marginBottom: i.marginBlock }), [i.marginBlock]);
26886
+ var r = o, { children: e } = r, t = K(r, ["children"]);
26887
+ const { token: i } = useToken$1(), a = useMemo(() => ({ marginBottom: i.marginBlock, height: t.height || "100%" }), [i.marginBlock]);
26885
26888
  return /* @__PURE__ */ jsx(Card, P(x({ ref: n, bordered: !1, style: a }, t), { children: e }));
26886
26889
  });
26887
26890
  BlockItemCard.displayName = "BlockItemCard";
@@ -27270,35 +27273,31 @@ const FilterFormDesigner = () => /* @__PURE__ */ jsx(GeneralSchemaDesigner, { sc
27270
27273
  "title-field"
27271
27274
  ) : null;
27272
27275
  }, isDisplayField = (e) => e.includes("."), useLazyLoadDisplayAssociationFieldsOfForm = () => {
27273
- var S;
27274
- const { name: e } = useCollection_deprecated(), { getCollectionJoinField: t } = useCollectionManager_deprecated(), n = useForm(), o = useCollectionRecordData(), r = useFieldSchema(), i = useVariables$1(), a = useField(), { formValue: l } = useSubFormValue(), { isInSubForm: c, isInSubTable: u } = useFlag() || {}, { getAssociationAppends: d } = useAssociationNames(), p = r.name.toString(), m = useMemo(() => hasPreload(o, p), [o, p]), h = useRef(null), g = useRef(null);
27275
- h.current == null && isDisplayField(p) && (h.current = t(`${e}.${p}`)), g.current == null && isDisplayField(p) && (g.current = t(`${e}.${p.split(".")[0]}`));
27276
- const f = useMemo(() => !isDisplayField(p) || !i || e === "fields" || !h.current || m, [p, i, e, h.current, m]), C = f ? {} : untracked(() => _.cloneDeep(c || u ? l : n.values)), b = isDisplayField(p) && g.current ? _.get(C, `${p.split(".")[0]}.${((S = g.current) == null ? void 0 : S.targetKey) || "id"}`) : void 0;
27276
+ var C;
27277
+ const { name: e } = useCollection_deprecated(), { getCollectionJoinField: t } = useCollectionManager_deprecated(), n = useForm(), o = useFieldSchema(), r = useVariables$1(), i = useField(), { formValue: a } = useSubFormValue(), { isInSubForm: l, isInSubTable: c } = useFlag() || {}, { getAssociationAppends: u } = useAssociationNames(), d = o.name.toString(), p = useRef(null), m = useRef(null);
27278
+ p.current == null && isDisplayField(d) && (p.current = t(`${e}.${d}`)), m.current == null && isDisplayField(d) && (m.current = t(`${e}.${d.split(".")[0]}`));
27279
+ const h = useMemo(() => !isDisplayField(d) || !r || e === "fields" || !p.current, [d, r, e, p.current]), g = h ? {} : untracked(() => _.cloneDeep(l || c ? a : n.values)), f = isDisplayField(d) && m.current ? _.get(g, `${d.split(".")[0]}.${((C = m.current) == null ? void 0 : C.targetKey) || "id"}`) : void 0;
27277
27280
  useEffect(() => {
27278
- if (f || _.isEmpty(C))
27281
+ if (h || _.isEmpty(g))
27279
27282
  return;
27280
- const y = {
27283
+ const b = {
27281
27284
  name: "$nForm",
27282
- ctx: C,
27285
+ ctx: g,
27283
27286
  collectionName: e
27284
- }, v = `{{ $nForm.${p} }}`;
27285
- if (b == null)
27287
+ }, S = `{{ $nForm.${d} }}`;
27288
+ if (f == null)
27286
27289
  return;
27287
- const { appends: F } = d();
27288
- i.parseVariable(v, y, { appends: F }).then(({ value: I }) => {
27290
+ const { appends: y } = u();
27291
+ r.parseVariable(S, b, { appends: y }).then(({ value: v }) => {
27289
27292
  nextTick(() => {
27290
- const R = transformVariableValue(I, { targetCollectionField: h.current });
27291
- _.isEmpty(R) && !_.isNumber(R) ? a.value = null : a.value = R;
27293
+ const F = transformVariableValue(v, { targetCollectionField: p.current });
27294
+ _.isEmpty(F) && !_.isNumber(F) ? i.value = null : i.value = F;
27292
27295
  });
27293
- }).catch((I) => {
27294
- console.error(I);
27296
+ }).catch((v) => {
27297
+ console.error(v);
27295
27298
  });
27296
- }, [b, f]);
27299
+ }, [f, h]);
27297
27300
  };
27298
- function hasPreload(e, t) {
27299
- const n = _.get(e, t);
27300
- return n != null && JSON.stringify(n) !== "[{}]" && JSON.stringify(n) !== "{}";
27301
- }
27302
27301
  function forEachLinkageRule(e, t) {
27303
27302
  e.forEach((n) => {
27304
27303
  var o;
@@ -27639,7 +27638,7 @@ const jsonCss = css`
27639
27638
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
27640
27639
  `, Json = React.forwardRef(
27641
27640
  (a, i) => {
27642
- var l = a, { value: e, onChange: t, space: n = 2, json5: o = !1 } = l, r = W(l, ["value", "onChange", "space", "json5"]);
27641
+ var l = a, { value: e, onChange: t, space: n = 2, json5: o = !1 } = l, r = K(l, ["value", "onChange", "space", "json5"]);
27643
27642
  const c = o ? JSON5 : JSON, u = useField(), [d, p] = useState("");
27644
27643
  return useEffect(() => {
27645
27644
  try {
@@ -28001,7 +28000,7 @@ const HeightMode = {
28001
28000
  },
28002
28001
  "x-validator": [
28003
28002
  {
28004
- minimum: 200
28003
+ minimum: 40
28005
28004
  }
28006
28005
  ],
28007
28006
  "x-reactions": {
@@ -28863,7 +28862,7 @@ const ConstantTypes = {
28863
28862
  label: '{{t("String")}}',
28864
28863
  value: "string",
28865
28864
  component: function e(r) {
28866
- var i = r, { onChange: t, value: n } = i, o = W(i, ["onChange", "value"]);
28865
+ var i = r, { onChange: t, value: n } = i, o = K(i, ["onChange", "value"]);
28867
28866
  return /* @__PURE__ */ jsx(Input$3, x({ value: n, onChange: (a) => t(a.target.value) }, o));
28868
28867
  },
28869
28868
  default() {
@@ -28874,7 +28873,7 @@ const ConstantTypes = {
28874
28873
  label: '{{t("Number")}}',
28875
28874
  value: "number",
28876
28875
  component: function e(r) {
28877
- var i = r, { onChange: t, value: n } = i, o = W(i, ["onChange", "value"]);
28876
+ var i = r, { onChange: t, value: n } = i, o = K(i, ["onChange", "value"]);
28878
28877
  return /* @__PURE__ */ jsx(InputNumber$1, x({ value: n, onChange: t }, o));
28879
28878
  },
28880
28879
  default() {
@@ -28885,7 +28884,7 @@ const ConstantTypes = {
28885
28884
  label: '{{t("Boolean")}}',
28886
28885
  value: "boolean",
28887
28886
  component: function e(r) {
28888
- var i = r, { onChange: t, value: n } = i, o = W(i, ["onChange", "value"]);
28887
+ var i = r, { onChange: t, value: n } = i, o = K(i, ["onChange", "value"]);
28889
28888
  const { t: a } = useTranslation();
28890
28889
  return /* @__PURE__ */ jsx(
28891
28890
  Select$1,
@@ -28910,7 +28909,7 @@ const ConstantTypes = {
28910
28909
  label: '{{t("Date")}}',
28911
28910
  value: "date",
28912
28911
  component: function e(r) {
28913
- var i = r, { onChange: t, value: n } = i, o = W(i, ["onChange", "value"]);
28912
+ var i = r, { onChange: t, value: n } = i, o = K(i, ["onChange", "value"]);
28914
28913
  return /* @__PURE__ */ jsx(
28915
28914
  DatePicker$1,
28916
28915
  x({
@@ -28967,7 +28966,7 @@ function getTypedConstantOption(e, t, n) {
28967
28966
  };
28968
28967
  }
28969
28968
  function Input$1(e) {
28970
- var H, K, Y;
28969
+ var H, W, Y;
28971
28970
  const {
28972
28971
  value: t = "",
28973
28972
  onChange: n,
@@ -28997,10 +28996,10 @@ function Input$1(e) {
28997
28996
  label: y("Constant"),
28998
28997
  [B.value]: "$",
28999
28998
  [B.label]: y("Constant")
29000
- } : i ? getTypedConstantOption($, i, B) : null, [$, i]), T = (H = j == null ? void 0 : j.component) != null ? H : NullComponent, N = Array.isArray(i) ? (Y = (K = i.find((J) => Array.isArray(J) && J[0] === $)) == null ? void 0 : K[1]) != null ? Y : {} : {};
28999
+ } : i ? getTypedConstantOption($, i, B) : null, [$, i]), T = (H = j == null ? void 0 : j.component) != null ? H : NullComponent, N = Array.isArray(i) ? (Y = (W = i.find((J) => Array.isArray(J) && J[0] === $)) == null ? void 0 : W[1]) != null ? Y : {} : {};
29001
29000
  let O;
29002
29001
  t == null ? a ? o && D ? O = ["$"] : O = [""] : o ? O = ["$"] : O = [" ", $] : O = o ? ["$"] : [" ", $], m && (O = ["$"]), useEffect(() => {
29003
- const Z = j != null ? j : {}, { component: J } = Z, X = W(Z, ["component"]), Q = [
29002
+ const Z = j != null ? j : {}, { component: J } = Z, X = K(Z, ["component"]), Q = [
29004
29003
  ...a ? [
29005
29004
  {
29006
29005
  value: "",
@@ -29265,7 +29264,7 @@ function setNativeInputValue(e, t) {
29265
29264
  );
29266
29265
  }
29267
29266
  function RawTextArea(e) {
29268
- const t = useRef(null), m = e, { changeOnSelect: n, component: o = Input$3.TextArea, fieldNames: r, scope: i, buttonClass: a } = m, l = W(m, ["changeOnSelect", "component", "fieldNames", "scope", "buttonClass"]), c = typeof i == "function" ? i() : i, [u, d] = useState(c || []);
29267
+ const t = useRef(null), m = e, { changeOnSelect: n, component: o = Input$3.TextArea, fieldNames: r, scope: i, buttonClass: a } = m, l = K(m, ["changeOnSelect", "component", "fieldNames", "scope", "buttonClass"]), c = typeof i == "function" ? i() : i, [u, d] = useState(c || []);
29269
29268
  function p(h) {
29270
29269
  if (!t.current)
29271
29270
  return;
@@ -33234,9 +33233,9 @@ const tableBlockSettings = new SchemaSettings({
33234
33233
  _maxDate: I(U == null ? void 0 : U._maxDate),
33235
33234
  _minDate: I(U == null ? void 0 : U._minDate)
33236
33235
  }), H["x-component-props"] = n["x-component-props"], o.componentProps = n["x-component-props"];
33237
- const K = o.path.entire.split(".");
33238
- K.pop();
33239
- const Y = K.join(".");
33236
+ const W = o.path.entire.split(".");
33237
+ W.pop();
33238
+ const Y = W.join(".");
33240
33239
  o.query(`${Y}.*[0:].${n.name}`).forEach((J) => {
33241
33240
  J.props.name === n.name && J.setComponentProps({
33242
33241
  _maxDate: I(U == null ? void 0 : U._maxDate),
@@ -34792,7 +34791,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
34792
34791
  const H = `/${M}/${U[V.sourceKey || E]}/${T}:${getAction(V.type)}`;
34793
34792
  if (hasRequested(H))
34794
34793
  return getRequested(H);
34795
- const K = o.request({
34794
+ const W = o.request({
34796
34795
  headers: getDataSourceHeaders(k),
34797
34796
  url: H,
34798
34797
  params: {
@@ -34803,7 +34802,7 @@ const variablesStore = {}, getFieldPath = (e, t) => {
34803
34802
  const J = Y.data.data;
34804
34803
  return cacheLazyLoadedValues(U, N, J), J;
34805
34804
  });
34806
- return stashRequested(H, K), K;
34805
+ return stashRequested(H, W), W;
34807
34806
  }
34808
34807
  return getCachedLazyLoadedValues(U, N) || (U == null ? void 0 : U[T]);
34809
34808
  });
@@ -34814,14 +34813,14 @@ const variablesStore = {}, getFieldPath = (e, t) => {
34814
34813
  if (hasRequested(G))
34815
34814
  U = yield getRequested(G);
34816
34815
  else {
34817
- const K = o.request({
34816
+ const W = o.request({
34818
34817
  headers: getDataSourceHeaders(k),
34819
34818
  url: G,
34820
34819
  params: {
34821
34820
  appends: S == null ? void 0 : S.appends
34822
34821
  }
34823
34822
  });
34824
- stashRequested(G, K), U = yield K, clearRequested(G);
34823
+ stashRequested(G, W), U = yield W, clearRequested(G);
34825
34824
  }
34826
34825
  const H = U.data.data;
34827
34826
  getCachedLazyLoadedValues(I, N) || cacheLazyLoadedValues(I, N, H), I = removeThroughCollectionFields(H, V);
@@ -35193,7 +35192,7 @@ function addAppVersion(e, t) {
35193
35192
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
35194
35193
  }), e;
35195
35194
  }
35196
- const name = "@nocobase/client", version = "1.5.7", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35195
+ const name = "@nocobase/client", version = "1.5.8", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35197
35196
  "@ahooksjs/use-url-state": "3.5.1",
35198
35197
  "@ant-design/cssinjs": "^1.11.1",
35199
35198
  "@ant-design/icons": "^5.1.4",
@@ -35215,9 +35214,9 @@ const name = "@nocobase/client", version = "1.5.7", license = "AGPL-3.0", main =
35215
35214
  "@formily/reactive-react": "^2.2.27",
35216
35215
  "@formily/shared": "^2.2.27",
35217
35216
  "@formily/validator": "^2.2.27",
35218
- "@nocobase/evaluators": "1.5.7",
35219
- "@nocobase/sdk": "1.5.7",
35220
- "@nocobase/utils": "1.5.7",
35217
+ "@nocobase/evaluators": "1.5.8",
35218
+ "@nocobase/sdk": "1.5.8",
35219
+ "@nocobase/utils": "1.5.8",
35221
35220
  ahooks: "^3.7.2",
35222
35221
  antd: "5.12.8",
35223
35222
  "antd-style": "3.7.1",
@@ -36070,7 +36069,7 @@ const SortableProvider = (e) => {
36070
36069
  return /* @__PURE__ */ jsx(SortableContext.Provider, { value: a, children: o });
36071
36070
  }, getComputedColor = (e) => new TinyColor(e).setAlpha(0.15).toHex8String(), Sortable = (e) => {
36072
36071
  var g, f;
36073
- const h = e, { component: t, overStyle: n, style: o, children: r, openMode: i } = h, a = W(h, ["component", "overStyle", "style", "children", "openMode"]), { token: l } = useToken(), { draggable: c, droppable: u } = useContext(SortableContext), { isOver: d, setNodeRef: p } = u, m = x({}, o);
36072
+ const h = e, { component: t, overStyle: n, style: o, children: r, openMode: i } = h, a = K(h, ["component", "overStyle", "style", "children", "openMode"]), { token: l } = useToken(), { draggable: c, droppable: u } = useContext(SortableContext), { isOver: d, setNodeRef: p } = u, m = x({}, o);
36074
36073
  return d && ((g = c == null ? void 0 : c.active) == null ? void 0 : g.id) !== ((f = u == null ? void 0 : u.over) == null ? void 0 : f.id) && (m[t === "a" ? "color" : "background"] = getComputedColor(l.colorSettings), Object.assign(m, n)), React.createElement(
36075
36074
  t || "div",
36076
36075
  P(x({
@@ -36091,7 +36090,7 @@ const SortableProvider = (e) => {
36091
36090
  return e.id ? e.id : (n = t.address) == null ? void 0 : n.toString();
36092
36091
  }, InternalSortableItem = observer$1(
36093
36092
  (e) => {
36094
- const l = useSortableItemProps(e), { schema: t, id: n, eid: o, removeParentsIfNoChildren: r } = l, i = W(l, ["schema", "id", "eid", "removeParentsIfNoChildren"]), a = useMemo(() => ({
36093
+ const l = useSortableItemProps(e), { schema: t, id: n, eid: o, removeParentsIfNoChildren: r } = l, i = K(l, ["schema", "id", "eid", "removeParentsIfNoChildren"]), a = useMemo(() => ({
36095
36094
  insertAdjacent: "afterEnd",
36096
36095
  schema: t,
36097
36096
  removeParentsIfNoChildren: r != null ? r : !0
@@ -36100,7 +36099,7 @@ const SortableProvider = (e) => {
36100
36099
  },
36101
36100
  { displayName: "InternalSortableItem" }
36102
36101
  ), SortableItem = React.memo((e) => {
36103
- const r = e, { component: t } = r, n = W(r, ["component"]), { designable: o } = useDesignable();
36102
+ const r = e, { component: t } = r, n = K(r, ["component"]), { designable: o } = useDesignable();
36104
36103
  return o ? /* @__PURE__ */ jsx(InternalSortableItem, x({}, e)) : React.createElement(
36105
36104
  t || "div",
36106
36105
  _.omit(n, ["children", "schema", "overStyle", "openMode", "id", "eid", "removeParentsIfNoChildren"]),
@@ -36171,10 +36170,10 @@ const DragHandler = (e) => {
36171
36170
  }
36172
36171
  });
36173
36172
  }, FormComponent$1 = (e) => {
36174
- const l = e, { form: t, children: n } = l, o = W(l, ["form", "children"]), r = useField(), i = useFieldSchema(), a = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" })));
36173
+ const l = e, { form: t, children: n } = l, o = K(l, ["form", "children"]), r = useField(), i = useFieldSchema(), a = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" })));
36175
36174
  return /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: t, children: /* @__PURE__ */ jsx(FormLayout, P(x({ layout: "vertical" }, o), { children: /* @__PURE__ */ jsx(NocoBaseRecursionField, { basePath: a.address, schema: i, onlyRenderProperties: !0 }) })) }) });
36176
36175
  }, Def$1 = (e) => e.children, FormDecorator$1 = (e) => {
36177
- const u = e, { form: t, children: n, disabled: o } = u, r = W(u, ["form", "children", "disabled"]), i = useField(), a = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, i.props), { basePath: "" }))), c = useComponent(a["x-component"], Def$1);
36176
+ const u = e, { form: t, children: n, disabled: o } = u, r = K(u, ["form", "children", "disabled"]), i = useField(), a = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, i.props), { basePath: "" }))), c = useComponent(a["x-component"], Def$1);
36178
36177
  return useEffect(() => {
36179
36178
  t.disabled = o || i.disabled;
36180
36179
  }, [o, i.disabled]), /* @__PURE__ */ jsx(ConfigProvider, { componentDisabled: o, children: /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: t, children: /* @__PURE__ */ jsx(FormLayout, P(x({ layout: "vertical" }, r), { children: /* @__PURE__ */ jsx(FieldContext.Provider, { value: l, children: /* @__PURE__ */ jsx(c, P(x({}, i.componentProps), { children: /* @__PURE__ */ jsx(NocoBaseRecursionField, { basePath: l.address, schema: a, onlyRenderProperties: !0 }) })) }) })) }) }) });
@@ -36187,7 +36186,7 @@ const DragHandler = (e) => {
36187
36186
  FormBlockContext.displayName = "FormBlockContext";
36188
36187
  const Form$1 = observer$1(
36189
36188
  (e) => {
36190
- const p = e, { request: t, effects: n, initialValue: o, useValues: r = useDefaultValues } = p, i = W(p, ["request", "effects", "initialValue", "useValues"]), a = useFieldSchema(), l = useField(), c = useMemo(() => createForm({ effects: n }), []), u = r(
36189
+ const p = e, { request: t, effects: n, initialValue: o, useValues: r = useDefaultValues } = p, i = K(p, ["request", "effects", "initialValue", "useValues"]), a = useFieldSchema(), l = useField(), c = useMemo(() => createForm({ effects: n }), []), u = r(
36191
36190
  {
36192
36191
  uid: a["x-uid"],
36193
36192
  onSuccess(h) {
@@ -36342,7 +36341,7 @@ const ReadPrettyInternal = observer$1(
36342
36341
  },
36343
36342
  { displayName: "SelectReadPretty" }
36344
36343
  ), ReadPretty$b = withPopupWrapper(ReadPrettyInternal), isEmptyObject = (e) => !isValid(e) || typeof e == "object" && Object.keys(e).length === 0, ObjectSelect = (e) => {
36345
- const p = e, { value: t, options: n, onChange: o, fieldNames: r, mode: i, loading: a, rawOptions: l, defaultValue: c } = p, u = W(p, ["value", "options", "onChange", "fieldNames", "mode", "loading", "rawOptions", "defaultValue"]), d = (m) => {
36344
+ const p = e, { value: t, options: n, onChange: o, fieldNames: r, mode: i, loading: a, rawOptions: l, defaultValue: c } = p, u = K(p, ["value", "options", "onChange", "fieldNames", "mode", "loading", "rawOptions", "defaultValue"]), d = (m) => {
36346
36345
  var f;
36347
36346
  if (isEmptyObject(m))
36348
36347
  return;
@@ -36406,7 +36405,7 @@ const ReadPrettyInternal = observer$1(
36406
36405
  return ((n = t == null ? void 0 : t.label) != null ? n : "").toLowerCase().includes((e || "").toLowerCase());
36407
36406
  }, InternalSelect = connect(
36408
36407
  (e) => {
36409
- const d = e, { objectValue: t, loading: n, value: o, rawOptions: r, defaultValue: i } = d, a = W(d, ["objectValue", "loading", "value", "rawOptions", "defaultValue"]), l = useCompile();
36408
+ const d = e, { objectValue: t, loading: n, value: o, rawOptions: r, defaultValue: i } = d, a = K(d, ["objectValue", "loading", "value", "rawOptions", "defaultValue"]), l = useCompile();
36410
36409
  let c = e.multiple ? "multiple" : e.mode;
36411
36410
  if (c && !["multiple", "tags"].includes(c) && (c = void 0), t)
36412
36411
  return /* @__PURE__ */ jsx(
@@ -36500,7 +36499,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
36500
36499
  connect(
36501
36500
  (e) => {
36502
36501
  var Y, J;
36503
- const K = e, {
36502
+ const W = e, {
36504
36503
  fieldNames: t = {},
36505
36504
  service: n = {},
36506
36505
  wait: o = 300,
@@ -36515,7 +36514,7 @@ const getValues = (e, t) => castArray(e).filter((n) => n != null).map((n) => typ
36515
36514
  dataSource: m,
36516
36515
  toOptionsItem: h = (X) => X,
36517
36516
  popupMatchSelectWidth: g = !1
36518
- } = K, f = W(K, [
36517
+ } = W, f = K(W, [
36519
36518
  "fieldNames",
36520
36519
  "service",
36521
36520
  "wait",
@@ -36785,7 +36784,7 @@ const useFormBlockHeight = () => {
36785
36784
  const e = useDataBlockHeight(), t = useFieldSchema(), { token: n } = theme$1.useToken(), { designable: o } = useDesignable(), { heightProps: r } = useBlockHeightProps() || {}, { title: i } = r || {}, { display: a, enabled: l } = useFormDataTemplates(), c = t.reduceProperties((I, R) => R["x-component"] === "ActionBar" ? R : I), u = Object.keys((c == null ? void 0 : c.properties) || {}).length > 0, d = (F = (v = (y = t == null ? void 0 : t.parent) == null ? void 0 : y["x-decorator"]) == null ? void 0 : v.includes) == null ? void 0 : F.call(v, "FormBlockProvider"), p = u || o ? n.controlHeight + (d ? 1 : 2) * n.marginLG : n.marginLG, m = i ? n.fontSizeLG * n.lineHeightLG + n.padding * 2 - 1 : 0, h = useDataBlockRequestData(), { count: g, pageSize: f } = (h == null ? void 0 : h.meta) || {}, b = g > f ? n.controlHeightSM + 1 * n.paddingLG : 0, S = a && l ? n.controlHeight + 2 * n.padding + n.margin : 0;
36786
36785
  return e - p - n.paddingLG - m - b - S;
36787
36786
  }, FormComponent = (e) => {
36788
- const g = e, { form: t, children: n } = g, o = W(g, ["form", "children"]), r = useField(), i = useFieldSchema(), a = getCardItemSchema == null ? void 0 : getCardItemSchema(i), l = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" }))), c = useFormBlockHeight(), { token: u } = theme$1.useToken(), {
36787
+ const g = e, { form: t, children: n } = g, o = K(g, ["form", "children"]), r = useField(), i = useFieldSchema(), a = getCardItemSchema == null ? void 0 : getCardItemSchema(i), l = useAttach(t.createVoidField(P(x({}, r.props), { basePath: "" }))), c = useFormBlockHeight(), { token: u } = theme$1.useToken(), {
36789
36788
  layout: d = "vertical",
36790
36789
  labelAlign: p = "left",
36791
36790
  labelWidth: m = 120,
@@ -36823,7 +36822,7 @@ const useFormBlockHeight = () => {
36823
36822
  })
36824
36823
  ) }) });
36825
36824
  }, Def = (e) => e.children, FormDecorator = (e) => {
36826
- const u = e, { form: t, children: n, disabled: o } = u, r = W(u, ["form", "children", "disabled"]), i = useField(), a = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, i.props), { basePath: "" }))), c = useComponent(a["x-component"], Def);
36825
+ const u = e, { form: t, children: n, disabled: o } = u, r = K(u, ["form", "children", "disabled"]), i = useField(), a = useFieldSchema(), l = useAttach(t.createVoidField(P(x({}, i.props), { basePath: "" }))), c = useComponent(a["x-component"], Def);
36827
36826
  return /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: t, children: /* @__PURE__ */ jsx(FormLayout, P(x({ layout: "vertical" }, r), { children: /* @__PURE__ */ jsx(FieldContext.Provider, { value: l, children: /* @__PURE__ */ jsx(c, P(x({}, i.componentProps), { children: /* @__PURE__ */ jsx(
36828
36827
  NocoBaseRecursionField,
36829
36828
  {
@@ -36901,7 +36900,7 @@ const useFormBlockHeight = () => {
36901
36900
  }
36902
36901
  `, Form = withDynamicSchemaProps(
36903
36902
  observer$1((e) => {
36904
- const t = useField(), { token: n } = useToken$1(), c = useProps(e), { form: o, disabled: r } = c, i = W(c, ["form", "disabled"]), a = useMemo(() => ({
36903
+ const t = useField(), { token: n } = useToken$1(), c = useProps(e), { form: o, disabled: r } = c, i = K(c, ["form", "disabled"]), a = useMemo(() => ({
36905
36904
  token: {
36906
36905
  // 这里是为了防止区块内部也收到 marginBlock 的影响(marginBlock:区块之间的间距)
36907
36906
  // @ts-ignore
@@ -37750,7 +37749,7 @@ function navigateToTab({
37750
37749
  basename: n,
37751
37750
  pathname: o = window.location.pathname
37752
37751
  }) {
37753
- o = o.replace(n, ""), o.endsWith("/") && (o = o.slice(0, -1)), o.startsWith("/") || (o = `/${o}`), isTabPage(o) ? t(`${o.replace(/\/tabs\/[^/]+$/, `/tabs/${e}`)}`, { replace: !0 }) : t(`${o}/tabs/${e}`, { replace: !0 });
37752
+ o = o.replace(n, ""), o.endsWith("/") && (o = o.slice(0, -1)), o.startsWith("/") || (o = `/${o}`), isTabPage(o) ? t(withSearchParams(`${o.replace(/\/tabs\/[^/]+$/, `/tabs/${e}`)}`), { replace: !0 }) : t(withSearchParams(`${o}/tabs/${e}`), { replace: !0 });
37754
37753
  }
37755
37754
  function isTabPage(e) {
37756
37755
  e.endsWith("/") && (e = e.slice(0, -1));
@@ -38010,7 +38009,7 @@ const AppendsTreeSelect = (e) => {
38010
38009
  filter: a = trueFilter,
38011
38010
  rootOption: l,
38012
38011
  loadData: c
38013
- } = z, u = W(z, [
38012
+ } = z, u = K(z, [
38014
38013
  "title",
38015
38014
  "value",
38016
38015
  "onChange",
@@ -38135,7 +38134,7 @@ const AppendsTreeSelect = (e) => {
38135
38134
  }, InternalAssociationSelect$1 = observer$1(
38136
38135
  (e) => {
38137
38136
  var R;
38138
- const I = e, { objectValue: t = !0, addMode: n } = I, o = W(I, ["objectValue", "addMode"]), r = useField(), i = useFieldSchema(), a = useServiceOptions$1((i == null ? void 0 : i["x-component-props"]) || e), { options: l } = useAssociationFieldContext(), c = isVariable(e.value) ? void 0 : e.value, u = Array.isArray(c) ? c.filter(Boolean) : c, [d, p] = useState(u), m = (R = i["x-component-props"]) == null ? void 0 : R.addMode, { t: h } = useTranslation(), { multiple: g } = e, f = useForm(), b = useAPIClient().resource(l.target), S = useCollectionRecordData(), y = useContext(SchemaComponentContext);
38137
+ const I = e, { objectValue: t = !0, addMode: n } = I, o = K(I, ["objectValue", "addMode"]), r = useField(), i = useFieldSchema(), a = useServiceOptions$1((i == null ? void 0 : i["x-component-props"]) || e), { options: l } = useAssociationFieldContext(), c = isVariable(e.value) ? void 0 : e.value, u = Array.isArray(c) ? c.filter(Boolean) : c, [d, p] = useState(u), m = (R = i["x-component-props"]) == null ? void 0 : R.addMode, { t: h } = useTranslation(), { multiple: g } = e, f = useForm(), b = useAPIClient().resource(l.target), S = useCollectionRecordData(), y = useContext(SchemaComponentContext);
38139
38138
  useEffect(() => {
38140
38139
  const k = isVariable(r.value) ? void 0 : r.value, D = Array.isArray(k) ? k.filter(Boolean) : k;
38141
38140
  p(D);
@@ -38621,7 +38620,7 @@ function IframePreviewer({ index: e, list: t, onSwitchIndex: n }) {
38621
38620
  );
38622
38621
  }
38623
38622
  function InternalUpload(e) {
38624
- const r = e, { onChange: t } = r, n = W(r, ["onChange"]), o = useCallback(
38623
+ const r = e, { onChange: t } = r, n = K(r, ["onChange"]), o = useCallback(
38625
38624
  (i) => {
38626
38625
  t == null || t(toFileList(i.fileList));
38627
38626
  },
@@ -38740,7 +38739,7 @@ function AttachmentList(e) {
38740
38739
  ] });
38741
38740
  }
38742
38741
  function Uploader(n) {
38743
- var o = n, { rules: e } = o, t = W(o, ["rules"]);
38742
+ var o = n, { rules: e } = o, t = K(o, ["rules"]);
38744
38743
  const { disabled: r, multiple: i, value: a, onChange: l, toValueItem: c = toValueItem } = t, [u, d] = useState([]), { t: p } = useTranslation(), { componentCls: m } = useStyles$8(), h = useField(), g = useUploadProps(t), f = useBeforeUpload(e);
38745
38744
  useEffect(() => {
38746
38745
  u.length ? h.setFeedback({
@@ -38823,7 +38822,7 @@ Upload.Attachment = withDynamicSchemaProps(connect(Attachment, mapReadPretty(Att
38823
38822
  });
38824
38823
  Upload.Dragger = connect(
38825
38824
  (e) => {
38826
- const c = e, { tipContent: t, onChange: n } = c, o = W(c, ["tipContent", "onChange"]), { wrapSSR: r, hashId: i, componentCls: a } = useStyles$8(), l = useCallback(
38825
+ const c = e, { tipContent: t, onChange: n } = c, o = K(c, ["tipContent", "onChange"]), { wrapSSR: r, hashId: i, componentCls: a } = useStyles$8(), l = useCallback(
38827
38826
  (u) => {
38828
38827
  n == null || n(toFileList(u.fileList));
38829
38828
  },
@@ -38843,8 +38842,8 @@ Upload.Dragger = connect(
38843
38842
  Upload.DraggerV2 = withDynamicSchemaProps(
38844
38843
  connect(
38845
38844
  (n) => {
38846
- var o = n, { rules: e } = o, t = W(o, ["rules"]);
38847
- const { t: r } = useTranslation(), i = r("Click or drag file to this area to upload"), S = useProps(t), { title: a = i } = S, l = W(S, ["title"]), [c, u] = useState(!1), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$8(), h = useBeforeUpload(e), { size: g, mimetype: f } = e != null ? e : {}, C = useSizeHint(g), b = useCallback(
38845
+ var o = n, { rules: e } = o, t = K(o, ["rules"]);
38846
+ const { t: r } = useTranslation(), i = r("Click or drag file to this area to upload"), S = useProps(t), { title: a = i } = S, l = K(S, ["title"]), [c, u] = useState(!1), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$8(), h = useBeforeUpload(e), { size: g, mimetype: f } = e != null ? e : {}, C = useSizeHint(g), b = useCallback(
38848
38847
  ({ fileList: y }) => {
38849
38848
  const { onChange: v } = l;
38850
38849
  v == null || v(y), y.some((F) => F.status === "uploading") ? u(!0) : u(!1);
@@ -39013,7 +39012,7 @@ const schema$1 = {
39013
39012
  setSelectedRows: o,
39014
39013
  selectedRows: r = [],
39015
39014
  onChange: i
39016
- } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: a, rowKey: l = "id" } = d, c = W(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
39015
+ } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: a, rowKey: l = "id" } = d, c = K(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
39017
39016
  return P(x({}, c), {
39018
39017
  rowKey: l,
39019
39018
  rowSelection: {
@@ -39030,7 +39029,7 @@ const schema$1 = {
39030
39029
  });
39031
39030
  };
39032
39031
  function FileSelector(e) {
39033
- const y = e, { disabled: t, multiple: n, value: o, onChange: r, action: i, onSelect: a, quickUpload: l, selectFile: c } = y, u = W(y, ["disabled", "multiple", "value", "onChange", "action", "onSelect", "quickUpload", "selectFile"]), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$8(), { useFileCollectionStorageRules: h, useAttachmentFieldProps: g } = useExpressionScope(), { t: f } = useTranslation(), C = h(), b = g(), S = c === void 0 && l === void 0;
39032
+ const y = e, { disabled: t, multiple: n, value: o, onChange: r, action: i, onSelect: a, quickUpload: l, selectFile: c } = y, u = K(y, ["disabled", "multiple", "value", "onChange", "action", "onSelect", "quickUpload", "selectFile"]), { wrapSSR: d, hashId: p, componentCls: m } = useStyles$8(), { useFileCollectionStorageRules: h, useAttachmentFieldProps: g } = useExpressionScope(), { t: f } = useTranslation(), C = h(), b = g(), S = c === void 0 && l === void 0;
39034
39033
  return d(
39035
39034
  /* @__PURE__ */ jsx("div", { className: cls(`${m}-wrapper`, `${m}-picture-card-wrapper`, "nb-upload", p), children: /* @__PURE__ */ jsxs("div", { className: cls(`${m}-list`, `${m}-list-picture-card`), children: [
39036
39035
  /* @__PURE__ */ jsx(AttachmentList, { disabled: t, multiple: n, value: o, onChange: r }),
@@ -39086,7 +39085,7 @@ function FileSelector(e) {
39086
39085
  }
39087
39086
  const InternalFileManager = (e) => {
39088
39087
  var D, M;
39089
- const k = e, { value: t, multiple: n, onChange: o } = k, r = W(k, ["value", "multiple", "onChange"]), i = useFieldSchema(), [a, l] = useState(!1), [c, u] = useState([]), d = useInsertSchema$1("Selector"), p = useFieldNames$1(e), { designable: m } = useDesignable(), h = useField(), [g, f] = useState([]), { getField: C } = useCollection_deprecated(), b = C(h.props.name), S = useLabelUiSchema$1(b == null ? void 0 : b.target, (p == null ? void 0 : p.label) || "label"), y = useCompile(), { modalProps: v } = useActionContext(), F = (z) => {
39088
+ const k = e, { value: t, multiple: n, onChange: o } = k, r = K(k, ["value", "multiple", "onChange"]), i = useFieldSchema(), [a, l] = useState(!1), [c, u] = useState([]), d = useInsertSchema$1("Selector"), p = useFieldNames$1(e), { designable: m } = useDesignable(), h = useField(), [g, f] = useState([]), { getField: C } = useCollection_deprecated(), b = C(h.props.name), S = useLabelUiSchema$1(b == null ? void 0 : b.target, (p == null ? void 0 : p.label) || "label"), y = useCompile(), { modalProps: v } = useActionContext(), F = (z) => {
39090
39089
  z.stopPropagation(), z.preventDefault(), m ? d(schema$1.Selector) : i.reduceProperties(($, w) => w["x-component"] === "AssociationField.Selector" ? w : $, null) || i.addProperty("selector", schema$1.Selector), l(!0), u([]);
39091
39090
  };
39092
39091
  useEffect(() => {
@@ -39391,7 +39390,7 @@ function transformNestedData(e) {
39391
39390
  const { parent: l } = o;
39392
39391
  n(l);
39393
39392
  }
39394
- const a = o, { parent: r } = a, i = W(a, ["parent"]);
39393
+ const a = o, { parent: r } = a, i = K(a, ["parent"]);
39395
39394
  t.push(i);
39396
39395
  }
39397
39396
  return e && n(e), t;
@@ -39473,7 +39472,7 @@ const InternalNesterCss = css`
39473
39472
  setSelectedRows: o,
39474
39473
  selectedRows: r = [],
39475
39474
  onChange: i
39476
- } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: a, rowKey: l = "id" } = d, c = W(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
39475
+ } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: a, rowKey: l = "id" } = d, c = K(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
39477
39476
  return P(x({}, c), {
39478
39477
  rowKey: l,
39479
39478
  rowSelection: {
@@ -39491,7 +39490,7 @@ const InternalNesterCss = css`
39491
39490
  }, InternalPicker = observer$1(
39492
39491
  (e) => {
39493
39492
  var $;
39494
- const L = e, { value: t, multiple: n, openSize: o, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = L, c = W(L, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema$1("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), b = useCompile(), S = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, F] = useState([]), I = useCollectionRecordData(), R = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((B) => {
39493
+ const L = e, { value: t, multiple: n, openSize: o, onChange: r, quickUpload: i, selectFile: a, shouldMountElement: l } = L, c = K(L, ["value", "multiple", "openSize", "onChange", "quickUpload", "selectFile", "shouldMountElement"]), u = useField(), d = useFieldNames$1(e), [p, m] = useState(!1), h = useFieldSchema(), g = useInsertSchema$1("Selector"), { options: f } = useAssociationFieldContext(), { collectionName: C } = useFormBlockContext(), b = useCompile(), S = useLabelUiSchema$1(f, (d == null ? void 0 : d.label) || "label"), y = h["x-add-new"], [v, F] = useState([]), I = useCollectionRecordData(), R = useMemo(() => t && Object.keys(t).length > 0 ? (Array.isArray(t) ? t : t ? [t] : []).filter(Boolean).map((B) => {
39495
39494
  const j = B == null ? void 0 : B[d.label];
39496
39495
  return P(x({}, B), {
39497
39496
  [d.label]: getLabelFormatValue$1(b(S), b(j))
@@ -40528,7 +40527,7 @@ const useColumnsDeepMemoized = (e) => {
40528
40527
  var g, C, b, S, y, v;
40529
40528
  const { isInSubTable: t } = useFlag(), { token: n } = useToken(), o = (g = e["data-row-key"]) == null ? void 0 : g.toString(), { setNodeRef: r, isOver: i, active: a, over: l } = useSortable({
40530
40529
  id: o
40531
- }), f = e, { rowIndex: c } = f, u = W(f, ["rowIndex"]), { ref: d, inView: p } = useInView({
40530
+ }), f = e, { rowIndex: c } = f, u = K(f, ["rowIndex"]), { ref: d, inView: p } = useInView({
40532
40531
  threshold: 0,
40533
40532
  triggerOnce: !0,
40534
40533
  initialInView: t || (c || 0) < INITIAL_ROWS_NUMBER,
@@ -40559,12 +40558,12 @@ const useColumnsDeepMemoized = (e) => {
40559
40558
  })
40560
40559
  ) });
40561
40560
  }, SortHandle$1 = (e) => {
40562
- const i = e, { id: t } = i, n = W(i, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
40561
+ const i = e, { id: t } = i, n = K(i, ["id"]), { listeners: o, setNodeRef: r } = useSortable({
40563
40562
  id: t
40564
40563
  });
40565
40564
  return /* @__PURE__ */ jsx(MenuOutlined, P(x(x({ ref: r }, n), o), { style: { cursor: "grab" } }));
40566
40565
  }, TableIndex$2 = (e) => {
40567
- const o = e, { index: t } = o, n = W(o, ["index"]);
40566
+ const o = e, { index: t } = o, n = K(o, ["index"]);
40568
40567
  return /* @__PURE__ */ jsx("div", P(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, n), { children: t }));
40569
40568
  }, pageSizeOptions$1 = [5, 10, 20, 50, 100, 200], usePaginationProps$2 = (e, t) => {
40570
40569
  var S, y, v, F, I, R;
@@ -40671,19 +40670,19 @@ const useColumnsDeepMemoized = (e) => {
40671
40670
  }, columnOpacityStyle = {
40672
40671
  opacity: 0.3
40673
40672
  }, HeaderCellComponent = (n) => {
40674
- var o = n, { columnHidden: e } = o, t = W(o, ["columnHidden"]);
40673
+ var o = n, { columnHidden: e } = o, t = K(o, ["columnHidden"]);
40675
40674
  const { designable: r } = useDesignable();
40676
40675
  return e ? /* @__PURE__ */ jsx("th", { style: r ? columnOpacityStyle : columnHiddenStyle, children: r ? t.children : null }) : /* @__PURE__ */ jsx("th", P(x({}, t), { className: cls(t.className, headerClass) }));
40677
40676
  }, BodyRowComponent = (e) => /* @__PURE__ */ jsx(SortableRow, x({}, e)), InternalBodyCellComponent = (e) => {
40678
40677
  var m;
40679
- const { token: t } = useToken(), n = useContext(InViewContext), o = (m = e.className) == null ? void 0 : m.includes("selection-column"), h = e, { record: r, schema: i, rowIndex: a, isSubTable: l } = h, c = W(h, ["record", "schema", "rowIndex", "isSubTable"]), { valueMap: u } = useSatisfiedActionValues({ formValues: r, category: "style", schema: i }), d = useMemo(() => Object.assign(x({}, e.style), u), [e.style, u]), p = {
40678
+ const { token: t } = useToken(), n = useContext(InViewContext), o = (m = e.className) == null ? void 0 : m.includes("selection-column"), h = e, { record: r, schema: i, rowIndex: a, isSubTable: l } = h, c = K(h, ["record", "schema", "rowIndex", "isSubTable"]), { valueMap: u } = useSatisfiedActionValues({ formValues: r, category: "style", schema: i }), d = useMemo(() => Object.assign(x({}, e.style), u), [e.style, u]), p = {
40680
40679
  height: "1em",
40681
40680
  backgroundColor: "rgba(0, 0, 0, 0.06)",
40682
40681
  borderRadius: `${t.borderRadiusSM}px`
40683
40682
  };
40684
40683
  return /* @__PURE__ */ jsx("td", P(x({}, c), { className: cls(e.className, cellClass), style: d, children: l || n || o ? e.children : /* @__PURE__ */ jsx("div", { style: p }) }));
40685
40684
  }, displayNone = { display: "none" }, BodyCellComponent = (n) => {
40686
- var o = n, { columnHidden: e } = o, t = W(o, ["columnHidden"]);
40685
+ var o = n, { columnHidden: e } = o, t = K(o, ["columnHidden"]);
40687
40686
  const { designable: r } = useDesignable();
40688
40687
  return e ? /* @__PURE__ */ jsx("td", { style: r ? columnOpacityStyle : columnHiddenStyle, children: r ? t.children : /* @__PURE__ */ jsx("span", { style: displayNone, children: t.children }) }) : /* @__PURE__ */ jsx(InternalBodyCellComponent, x({}, t));
40689
40688
  }, InternalNocoBaseTable = React.memo(
@@ -40703,7 +40702,7 @@ const useColumnsDeepMemoized = (e) => {
40703
40702
  columns: m,
40704
40703
  expandable: h,
40705
40704
  field: g
40706
- } = b, f = W(b, [
40705
+ } = b, f = K(b, [
40707
40706
  "tableHeight",
40708
40707
  "SortableWrapper",
40709
40708
  "tableSizeRefCallback",
@@ -40788,7 +40787,7 @@ InternalNocoBaseTable.displayName = "InternalNocoBaseTable";
40788
40787
  const Table$1 = withDynamicSchemaProps(
40789
40788
  observer$1((e) => {
40790
40789
  var ce, Ce, re;
40791
- const { token: t } = useToken(), me = omit(e, ["onBlur", "onFocus", "value"]), { pagination: n, useProps: o } = me, r = W(me, ["pagination", "useProps"]), he = (o == null ? void 0 : o()) || {}, { pagination: i } = he, a = W(he, ["pagination"]), ge = x(x({}, r), a), {
40790
+ const { token: t } = useToken(), me = omit(e, ["onBlur", "onFocus", "value"]), { pagination: n, useProps: o } = me, r = K(me, ["pagination", "useProps"]), he = (o == null ? void 0 : o()) || {}, { pagination: i } = he, a = K(he, ["pagination"]), ge = x(x({}, r), a), {
40792
40791
  dragSort: l = !1,
40793
40792
  showIndex: c = !0,
40794
40793
  onRowSelectionChange: u,
@@ -40799,7 +40798,7 @@ const Table$1 = withDynamicSchemaProps(
40799
40798
  onExpand: g,
40800
40799
  loading: f,
40801
40800
  onClickRow: C
40802
- } = ge, b = W(ge, [
40801
+ } = ge, b = K(ge, [
40803
40802
  "dragSort",
40804
40803
  "showIndex",
40805
40804
  "onRowSelectionChange",
@@ -40830,14 +40829,14 @@ const Table$1 = withDynamicSchemaProps(
40830
40829
  }, [k, D]);
40831
40830
  const H = useCallback((ee) => {
40832
40831
  if (m)
40833
- return K(ee);
40832
+ return W(ee);
40834
40833
  if (ee.key)
40835
40834
  return ee.key;
40836
40835
  if (V.current.has(ee))
40837
40836
  return V.current.get(ee);
40838
40837
  const ne = uid();
40839
40838
  return V.current.set(ee, ne), ne;
40840
- }, []), K = useCallback(
40839
+ }, []), W = useCallback(
40841
40840
  (ee) => {
40842
40841
  var ne;
40843
40842
  return Array.isArray(m) ? m.map((se) => {
@@ -40896,7 +40895,7 @@ const Table$1 = withDynamicSchemaProps(
40896
40895
  }),
40897
40896
  children: [
40898
40897
  /* @__PURE__ */ jsxs("div", { className: cls(ee ? "checked" : null, rowSelectCheckboxContentClass), children: [
40899
- l && /* @__PURE__ */ jsx(SortHandle$1, { id: K(ne) }),
40898
+ l && /* @__PURE__ */ jsx(SortHandle$1, { id: W(ne) }),
40900
40899
  c && /* @__PURE__ */ jsx(TableIndex$2, { index: se })
40901
40900
  ] }),
40902
40901
  O && /* @__PURE__ */ jsx(
@@ -40923,7 +40922,7 @@ const Table$1 = withDynamicSchemaProps(
40923
40922
  c,
40924
40923
  l,
40925
40924
  S,
40926
- K,
40925
+ W,
40927
40926
  O,
40928
40927
  Q,
40929
40928
  z
@@ -40934,12 +40933,12 @@ const Table$1 = withDynamicSchemaProps(
40934
40933
  return l ? React.createElement(
40935
40934
  SortableContext$1,
40936
40935
  {
40937
- items: ((se = (ne = S.value) == null ? void 0 : ne.map) == null ? void 0 : se.call(ne, K)) || []
40936
+ items: ((se = (ne = S.value) == null ? void 0 : ne.map) == null ? void 0 : se.call(ne, W)) || []
40938
40937
  },
40939
40938
  ee
40940
40939
  ) : React.createElement(React.Fragment, {}, ee);
40941
40940
  },
40942
- [S, l, K]
40941
+ [S, l, W]
40943
40942
  ), { height: te, tableSizeRefCallback: ie } = useTableSize(), ae = useMemo(() => ({
40944
40943
  x: "max-content"
40945
40944
  }), []), ue = useMemo(() => ({
@@ -41283,7 +41282,7 @@ const ReadPretty$7 = observer$1(
41283
41282
  InternalAssociationSelect.displayName = "InternalAssociationSelect";
41284
41283
  const AssociationSelect = InternalAssociationSelect;
41285
41284
  AssociationSelect.Designer = function e() {
41286
- var B, j, T, N, O, V, E, G, U, H, K;
41285
+ var B, j, T, N, O, V, E, G, U, H, W;
41287
41286
  const { getCollectionFields: t, getInterface: n, getCollectionJoinField: o, 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: b } = useIsAllowToSetDefaultValue(), S = a(u.name) || o(u["x-collection-field"]), y = useFieldComponentOptions(), v = c.address.segments.includes("__form_grid"), F = n(S == null ? void 0 : S.interface), I = (B = F == null ? void 0 : F.validateSchema) == null ? void 0 : B.call(F, u), R = (j = S == null ? void 0 : S.uiSchema) == null ? void 0 : j.title, k = S != null && S.target ? t(S == null ? void 0 : S.target) : [];
41288
41287
  c.title === R || c.title;
41289
41288
  const D = useSortFields(S == null ? void 0 : S.target), M = ((O = (N = (T = c.componentProps) == null ? void 0 : T.service) == null ? void 0 : N.params) == null ? void 0 : O.sort) || [];
@@ -41650,7 +41649,7 @@ AssociationSelect.Designer = function e() {
41650
41649
  {
41651
41650
  title: d("Title field"),
41652
41651
  options: L,
41653
- value: (K = (H = c == null ? void 0 : c.componentProps) == null ? void 0 : H.fieldNames) == null ? void 0 : K.label,
41652
+ value: (W = (H = c == null ? void 0 : c.componentProps) == null ? void 0 : H.fieldNames) == null ? void 0 : W.label,
41654
41653
  onChange: (Y) => {
41655
41654
  var Q, Z;
41656
41655
  const J = {
@@ -42003,7 +42002,7 @@ const AutoComplete = withDynamicSchemaProps(
42003
42002
  }
42004
42003
  };
42005
42004
  }), CardItem = (e) => {
42006
- const p = e, { children: t, name: n, heightMode: o } = p, r = W(p, ["children", "name", "heightMode"]), i = useSchemaTemplate(), a = useFieldSchema(), l = a == null ? void 0 : a["x-template-key"], { wrapSSR: c, componentCls: u, hashId: d } = useStyles$7();
42005
+ const p = e, { children: t, name: n, heightMode: o } = p, r = K(p, ["children", "name", "heightMode"]), i = useSchemaTemplate(), a = useFieldSchema(), l = a == null ? void 0 : a["x-template-key"], { wrapSSR: c, componentCls: u, hashId: d } = useStyles$7();
42007
42006
  return l && !i ? null : c(
42008
42007
  /* @__PURE__ */ jsx(BlockItemError, { children: /* @__PURE__ */ jsx(BlockItem, { name: n, className: `${u} ${d} noco-card-item`, children: /* @__PURE__ */ jsx(BlockItemCard, P(x({}, r), { children: e.children })) }) })
42009
42008
  );
@@ -42044,7 +42043,7 @@ const AutoComplete = withDynamicSchemaProps(
42044
42043
  changeOnSelectLast: c,
42045
42044
  changeOnSelect: u,
42046
42045
  maxLevel: d
42047
- } = y, p = W(y, [
42046
+ } = y, p = K(y, [
42048
42047
  "value",
42049
42048
  "onChange",
42050
42049
  "labelInValue",
@@ -42172,7 +42171,7 @@ function useCollectionOptions({ filter: e, isTableOid: t }) {
42172
42171
  }
42173
42172
  const CollectionSelect = connect(
42174
42173
  (e) => {
42175
- const a = e, { filter: t } = a, n = W(a, ["filter"]), o = useCollectionOptions(e), { t: r } = useTranslation(), i = useCallback(
42174
+ const a = e, { filter: t } = a, n = K(a, ["filter"]), o = useCollectionOptions(e), { t: r } = useTranslation(), i = useCallback(
42176
42175
  (l, c) => {
42177
42176
  var u, d;
42178
42177
  return ((u = c == null ? void 0 : c.label.toLowerCase()) != null ? u : "").includes(l.toLocaleLowerCase()) || ((d = c == null ? void 0 : c.value.toString().toLowerCase()) != null ? d : "").includes(l.toLocaleLowerCase());
@@ -42217,7 +42216,7 @@ function useDataSourceOptions({ filter: e }) {
42217
42216
  );
42218
42217
  }
42219
42218
  const DataSourceSelect = connect((e) => {
42220
- const a = e, { filter: t } = a, n = W(a, ["filter"]), o = useDataSourceOptions(e), { t: r } = useTranslation(), i = useCallback(
42219
+ const a = e, { filter: t } = a, n = K(a, ["filter"]), o = useDataSourceOptions(e), { t: r } = useTranslation(), i = useCallback(
42221
42220
  (l, c) => {
42222
42221
  var u, d;
42223
42222
  return ((u = c == null ? void 0 : c.label.toLowerCase()) != null ? u : "").includes(l.toLocaleLowerCase()) || ((d = c == null ? void 0 : c.value.toString().toLowerCase()) != null ? d : "").includes(l.toLocaleLowerCase());
@@ -42238,7 +42237,7 @@ const DataSourceSelect = connect((e) => {
42238
42237
  })
42239
42238
  );
42240
42239
  }), DataSourceCollectionCascaderReadPretty = observer$1((e) => {
42241
- const t = useDataSourceManager(), n = useCompile(), f = e, { value: o, onChange: r, dataSourceFilter: i, collectionFilter: a } = f, l = W(f, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (i ? p.filter(i) : p).map((C) => ({
42240
+ const t = useDataSourceManager(), n = useCompile(), f = e, { value: o, onChange: r, dataSourceFilter: i, collectionFilter: a } = f, l = K(f, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (i ? p.filter(i) : p).map((C) => ({
42242
42241
  label: n(C.displayName),
42243
42242
  value: C.key,
42244
42243
  children: C.collectionManager.collectionInstancesArr.filter(a != null ? a : (b) => !b.hidden).map((b) => ({
@@ -42255,7 +42254,7 @@ const DataSourceSelect = connect((e) => {
42255
42254
  })(d, m);
42256
42255
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tag, { children: g.join(" / ") }) });
42257
42256
  }), DataSourceCollectionCascader = connect((e) => {
42258
- const t = useDataSourceManager(), n = useCompile(), g = e, { value: o, onChange: r, dataSourceFilter: i, collectionFilter: a } = g, l = W(g, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (i ? p.filter(i) : p).map((f) => ({
42257
+ const t = useDataSourceManager(), n = useCompile(), g = e, { value: o, onChange: r, dataSourceFilter: i, collectionFilter: a } = g, l = K(g, ["value", "onChange", "dataSourceFilter", "collectionFilter"]), [c, u] = parseCollectionName(o), d = [c, u].filter(Boolean), p = t.getDataSources(), m = useMemo(() => (i ? p.filter(i) : p).map((f) => ({
42259
42258
  label: n(f.displayName),
42260
42259
  value: f.key,
42261
42260
  children: f.collectionManager.collectionInstancesArr.filter(a != null ? a : (C) => !C.hidden).map((C) => ({
@@ -42273,7 +42272,7 @@ const DataSourceSelect = connect((e) => {
42273
42272
  return /* @__PURE__ */ jsx(Cascader$1, P(x({ showSearch: !0 }, l), { options: m, value: d, onChange: h }));
42274
42273
  }, mapReadPretty(DataSourceCollectionCascaderReadPretty)), ColorPicker = connect(
42275
42274
  (e) => {
42276
- const r = e, { value: t, onChange: n } = r, o = W(r, ["value", "onChange"]);
42275
+ const r = e, { value: t, onChange: n } = r, o = K(r, ["value", "onChange"]);
42277
42276
  return /* @__PURE__ */ jsx("div", { role: "button", "aria-label": "color-picker-normal", style: { display: "inline-block" }, children: /* @__PURE__ */ jsx(
42278
42277
  ColorPicker$1,
42279
42278
  P(x({
@@ -42342,7 +42341,7 @@ const DataSourceSelect = connect((e) => {
42342
42341
  default: '{{t("Default")}}'
42343
42342
  }, ColorSelect = connect(
42344
42343
  (e) => {
42345
- const t = useCompile(), r = e, { colors: n = defaultColors } = r, o = W(r, ["colors"]);
42344
+ const t = useCompile(), r = e, { colors: n = defaultColors } = r, o = K(r, ["colors"]);
42346
42345
  return /* @__PURE__ */ jsx(Select$1, P(x({}, o), { children: Object.keys(n).map((i) => /* @__PURE__ */ jsx(Select$1.Option, { value: i, children: /* @__PURE__ */ jsx(Tag, { color: i, children: t(n[i] || n.default) }) }, i)) }));
42347
42346
  },
42348
42347
  mapProps((e, t) => P(x({}, e), {
@@ -42353,7 +42352,7 @@ const DataSourceSelect = connect((e) => {
42353
42352
  return o[n] ? /* @__PURE__ */ jsx(Tag, { color: n, children: t(o[n] || o.default) }) : null;
42354
42353
  })
42355
42354
  ), Input = (e) => {
42356
- const o = e, { onChange: t } = o, n = W(o, ["onChange"]);
42355
+ const o = e, { onChange: t } = o, n = K(o, ["onChange"]);
42357
42356
  return /* @__PURE__ */ jsx(
42358
42357
  "fieldset",
42359
42358
  {
@@ -43189,7 +43188,7 @@ function toSafeNumber(e) {
43189
43188
  return e && (e > Number.MAX_SAFE_INTEGER || e < Number.MIN_SAFE_INTEGER ? new BigNumber(e).toString() : Number(e));
43190
43189
  }
43191
43190
  const InputNumber = connect((e) => {
43192
- const i = e, { onChange: t } = i, n = W(i, ["onChange"]);
43191
+ const i = e, { onChange: t } = i, n = K(i, ["onChange"]);
43193
43192
  let r = x({
43194
43193
  onChange: (a) => {
43195
43194
  Number.isNaN(a) ? t(null) : t(toSafeNumber(a));
@@ -44709,7 +44708,7 @@ const menuItemTitleStyle = {
44709
44708
  };
44710
44709
  Menu.Item = observer$1(
44711
44710
  (e) => {
44712
- const { t } = useMenuTranslation(), { designable: n } = useDesignable(), { pushMenuItem: o } = useCollectMenuItems(), m = e, { icon: r, children: i, hidden: a } = m, l = W(m, ["icon", "children", "hidden"]), c = useFieldSchema(), u = useField(), d = useContext(MenuItemDesignerContext), p = useMemo(() => P(x({}, l), {
44711
+ const { t } = useMenuTranslation(), { designable: n } = useDesignable(), { pushMenuItem: o } = useCollectMenuItems(), m = e, { icon: r, children: i, hidden: a } = m, l = K(m, ["icon", "children", "hidden"]), c = useFieldSchema(), u = useField(), d = useContext(MenuItemDesignerContext), p = useMemo(() => P(x({}, l), {
44713
44712
  hidden: n ? !1 : a,
44714
44713
  className: menuItemClass,
44715
44714
  key: c.name,
@@ -44775,7 +44774,7 @@ const MenuURLButton = ({ href: e, params: t, icon: n }) => {
44775
44774
  };
44776
44775
  Menu.URL = observer$1(
44777
44776
  (e) => {
44778
- const { pushMenuItem: t } = useCollectMenuItems(), { designable: n } = useDesignable(), d = e, { icon: o, children: r, hidden: i } = d, a = W(d, ["icon", "children", "hidden"]), l = useFieldSchema(), c = useField();
44777
+ const { pushMenuItem: t } = useCollectMenuItems(), { designable: n } = useDesignable(), d = e, { icon: o, children: r, hidden: i } = d, a = K(d, ["icon", "children", "hidden"]), l = useFieldSchema(), c = useField();
44779
44778
  if (!t)
44780
44779
  return error("Menu.URL must be wrapped by GetMenuItemsContext.Provider"), null;
44781
44780
  const u = useMemo(() => P(x({}, a), {
@@ -44794,7 +44793,7 @@ Menu.URL = observer$1(
44794
44793
  );
44795
44794
  Menu.SubMenu = observer$1(
44796
44795
  (e) => {
44797
- const { t } = useMenuTranslation(), { designable: n } = useDesignable(), { Component: o, getMenuItems: r } = useMenuItem(), { pushMenuItem: i } = useCollectMenuItems(), f = e, { icon: a, children: l, hidden: c } = f, u = W(f, ["icon", "children", "hidden"]), d = useFieldSchema(), p = useField(), m = useContext(MenuModeContext), h = useContext(MenuItemDesignerContext), g = useMemo(() => P(x({}, u), {
44796
+ const { t } = useMenuTranslation(), { designable: n } = useDesignable(), { Component: o, getMenuItems: r } = useMenuItem(), { pushMenuItem: i } = useCollectMenuItems(), f = e, { icon: a, children: l, hidden: c } = f, u = K(f, ["icon", "children", "hidden"]), d = useFieldSchema(), p = useField(), m = useContext(MenuModeContext), h = useContext(MenuItemDesignerContext), g = useMemo(() => P(x({}, u), {
44798
44797
  hidden: n ? !1 : c,
44799
44798
  className: menuItemClass,
44800
44799
  key: d.name,
@@ -44830,7 +44829,7 @@ const useStyles$3 = genStyleHook("nb-menu-item", (e) => {
44830
44829
  }), Pagination = withDynamicSchemaProps(
44831
44830
  observer$1(
44832
44831
  (e) => {
44833
- const r = useProps(e), { hidden: t } = r, n = W(r, ["hidden"]);
44832
+ const r = useProps(e), { hidden: t } = r, n = K(r, ["hidden"]);
44834
44833
  return t ? null : /* @__PURE__ */ jsx("div", { onKeyPress: (i) => {
44835
44834
  i.key === "Enter" && i.preventDefault();
44836
44835
  }, children: /* @__PURE__ */ jsx(Pagination$1, x({}, n)) });
@@ -44882,7 +44881,7 @@ const useStyles$3 = genStyleHook("nb-menu-item", (e) => {
44882
44881
  return m += 4 * h, n > 0 && (m += 2 * (h - n)), o > 0 && (m += 2 * (h - o)), t !== h && (m += 4 * t), m += 6 * r, m += 2 * i, m += 2 * p(), h === n + o && (m -= h), h === t && (m -= t), m -= l, m -= 2 * c, m -= 3 * u, m = m < 0 ? 0 : m, m = m > 100 ? 100 : m, m >= 80 ? 100 : m >= 60 ? 80 : m >= 40 ? 60 : m >= 20 ? 40 : 20;
44883
44882
  }, PasswordStrength = (e) => isFn(e.children) ? e.children(getStrength(String(e.value || ""))) : /* @__PURE__ */ jsx(Fragment$1, { children: e.children }), Password = connect(
44884
44883
  (e) => {
44885
- const a = e, { value: t, className: n, checkStrength: o } = a, r = W(a, ["value", "className", "checkStrength"]), i = {
44884
+ const a = e, { value: t, className: n, checkStrength: o } = a, r = K(a, ["value", "className", "checkStrength"]), i = {
44886
44885
  position: "absolute",
44887
44886
  zIndex: 1,
44888
44887
  height: 8,
@@ -45067,7 +45066,7 @@ const useTableSelectorProps$1 = () => {
45067
45066
  setSelectedRows: o,
45068
45067
  selectedRows: r = [],
45069
45068
  onChange: i
45070
- } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: a, rowKey: l = "id" } = d, c = W(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
45069
+ } = useContext(RecordPickerContext), d = useTableSelectorProps$4(), { onRowSelectionChange: a, rowKey: l = "id" } = d, c = K(d, ["onRowSelectionChange", "rowKey"]), { setVisible: u } = useActionContext();
45071
45070
  return P(x({}, c), {
45072
45071
  rowKey: l,
45073
45072
  rowSelection: {
@@ -45093,7 +45092,7 @@ const useTableSelectorProps$1 = () => {
45093
45092
  const t = useFieldSchema(), { association: n } = e, { getField: o } = useCollection_deprecated();
45094
45093
  return n || o(t.name);
45095
45094
  }, InputRecordPicker = (e) => {
45096
- const v = e, { value: t, multiple: n, onChange: o, quickUpload: r, selectFile: i } = v, a = W(v, ["value", "multiple", "onChange", "quickUpload", "selectFile"]), l = useFieldNames(e), [c, u] = useState(!1), d = useFieldSchema(), p = useAssociation(e), m = useCompile(), h = useLabelUiSchema(p, (l == null ? void 0 : l.label) || "label"), g = isShowFilePicker(h), [f, C] = useState([]), [b, S] = useState([]);
45095
+ const v = e, { value: t, multiple: n, onChange: o, quickUpload: r, selectFile: i } = v, a = K(v, ["value", "multiple", "onChange", "quickUpload", "selectFile"]), l = useFieldNames(e), [c, u] = useState(!1), d = useFieldSchema(), p = useAssociation(e), m = useCompile(), h = useLabelUiSchema(p, (l == null ? void 0 : l.label) || "label"), g = isShowFilePicker(h), [f, C] = useState([]), [b, S] = useState([]);
45097
45096
  useEffect(() => {
45098
45097
  if (t) {
45099
45098
  const F = (Array.isArray(t) ? t : t ? [t] : []).map((I) => {
@@ -45161,7 +45160,7 @@ const useTableSelectorProps$1 = () => {
45161
45160
  })
45162
45161
  ] });
45163
45162
  }, RecordPickerProvider = (e) => {
45164
- const c = e, { multiple: t, onChange: n, selectedRows: o, setSelectedRows: r, options: i, collectionField: a } = c, l = W(c, ["multiple", "onChange", "selectedRows", "setSelectedRows", "options", "collectionField"]);
45163
+ const c = e, { multiple: t, onChange: n, selectedRows: o, setSelectedRows: r, options: i, collectionField: a } = c, l = K(c, ["multiple", "onChange", "selectedRows", "setSelectedRows", "options", "collectionField"]);
45165
45164
  return /* @__PURE__ */ jsx(
45166
45165
  RecordPickerContext.Provider,
45167
45166
  {
@@ -46008,7 +46007,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
46008
46007
  data: n.value
46009
46008
  }), e);
46010
46009
  }, SortHandle = (e) => /* @__PURE__ */ jsx(MenuOutlined, x({ className: "drag-handle", style: { cursor: "grab" } }, e)), TableIndex$1 = (e) => {
46011
- const o = e, { index: t } = o, n = W(o, ["index"]);
46010
+ const o = e, { index: t } = o, n = K(o, ["index"]);
46012
46011
  return /* @__PURE__ */ jsx("div", P(x({ className: cls("nb-table-index"), style: { padding: "0 8px 0 16px" } }, n), { children: t + 1 }));
46013
46012
  }, useDefAction = () => ({
46014
46013
  move() {
@@ -46025,7 +46024,7 @@ const useStyles$2 = genStyleHook("nb-rich-text", (e) => {
46025
46024
  useDataSource: l = useDefDataSource,
46026
46025
  useAction: c = useDefAction,
46027
46026
  onChange: u
46028
- } = C, d = W(C, [
46027
+ } = C, d = K(C, [
46029
46028
  "dragSort",
46030
46029
  "showIndex",
46031
46030
  "useSelectedRowKeys",
@@ -47401,12 +47400,12 @@ const useCollectionFields = (e) => {
47401
47400
  const t = useCollection();
47402
47401
  return useMemo(() => t.getFields(e), [t, e]);
47403
47402
  }, collectionTransform = (e, t) => {
47404
- const a = e, { rawTitle: n, title: o, fields: r = [] } = a, i = W(a, ["rawTitle", "title", "fields"]);
47403
+ const a = e, { rawTitle: n, title: o, fields: r = [] } = a, i = K(a, ["rawTitle", "title", "fields"]);
47405
47404
  return P(x({}, i), {
47406
47405
  title: n ? o : t.i18n.t(o, { ns: "lm-collections" }),
47407
47406
  rawTitle: n || o,
47408
47407
  fields: r == null ? void 0 : r.map((u) => {
47409
- var d = u, { uiSchema: l } = d, c = W(d, ["uiSchema"]);
47408
+ var d = u, { uiSchema: l } = d, c = K(d, ["uiSchema"]);
47410
47409
  if (l != null && l.title) {
47411
47410
  const p = l.title;
47412
47411
  l.title = l.rawTitle ? p : t.i18n.t(p, { ns: "lm-collections" }), l.rawTitle = l.rawTitle || p;
@@ -47688,7 +47687,7 @@ const SelfFields = (e) => {
47688
47687
  });
47689
47688
  return /* @__PURE__ */ jsx(SchemaInitializerChildren, { children: a });
47690
47689
  }, AssociationCollectionFields = (e) => {
47691
- const m = e, { filterAssociationField: t, filterSelfField: n = () => !0, getSchema: o } = m, r = W(m, ["filterAssociationField", "filterSelfField", "getSchema"]), { collection: i, t: a, collectionManager: l } = e.context, c = i.getFields(), u = ["o2o", "oho", "obo", "m2o"], d = c.filter((h) => u.includes(h.interface)).filter((h) => n(h, e.context));
47690
+ const m = e, { filterAssociationField: t, filterSelfField: n = () => !0, getSchema: o } = m, r = K(m, ["filterAssociationField", "filterSelfField", "getSchema"]), { collection: i, t: a, collectionManager: l } = e.context, c = i.getFields(), u = ["o2o", "oho", "obo", "m2o"], d = c.filter((h) => u.includes(h.interface)).filter((h) => n(h, e.context));
47692
47691
  if (!d.length)
47693
47692
  return null;
47694
47693
  const p = d.map((h) => {
@@ -48859,7 +48858,7 @@ const useCurrentAppInfo = () => useContext(CurrentAppInfoContext), CurrentAppInf
48859
48858
  const t = useRecord(), n = useCollectionParentRecordData();
48860
48859
  return /* @__PURE__ */ jsx(EditFieldAction, x({ item: t, parentItem: n }, e));
48861
48860
  }, EditFieldAction = (e) => {
48862
- const I = e, { scope: t, getContainer: n, item: o, parentItem: r, children: i } = I, a = W(I, ["scope", "getContainer", "item", "parentItem", "children"]), { getInterface: l, collections: c, getCollection: u } = useCollectionManager_deprecated(), [d, p] = useState(!1), [m, h] = useState({}), g = useAPIClient(), { t: f } = useTranslation(), C = useCompile(), [b, S] = useState({}), { isDialect: y } = useDialect(), v = useMemo(() => {
48861
+ const I = e, { scope: t, getContainer: n, item: o, parentItem: r, children: i } = I, a = K(I, ["scope", "getContainer", "item", "parentItem", "children"]), { getInterface: l, collections: c, getCollection: u } = useCollectionManager_deprecated(), [d, p] = useState(!1), [m, h] = useState({}), g = useAPIClient(), { t: f } = useTranslation(), C = useCompile(), [b, S] = useState({}), { isDialect: y } = useDialect(), v = useMemo(() => {
48863
48862
  var R;
48864
48863
  return (o == null ? void 0 : o.fields) || ((R = u(o.collectionName)) == null ? void 0 : R.options.fields.filter((k) => ["string", "bigInt", "integer"].includes(k.type)).map((k) => {
48865
48864
  var D;
@@ -49430,7 +49429,7 @@ const getSchema$4 = (e, t, n) => {
49430
49429
  const t = useRecord();
49431
49430
  return /* @__PURE__ */ jsx(EditCollectionAction, x({ item: t }, e));
49432
49431
  }, EditCollectionAction = (e) => {
49433
- const h = e, { scope: t, getContainer: n, item: o, children: r } = h, i = W(h, ["scope", "getContainer", "item", "children"]), { getTemplate: a } = useCollectionManager_deprecated(), [l, c] = useState(!1), [u, d] = useState({}), { t: p } = useTranslation(), m = useCompile();
49432
+ const h = e, { scope: t, getContainer: n, item: o, children: r } = h, i = K(h, ["scope", "getContainer", "item", "children"]), { getTemplate: a } = useCollectionManager_deprecated(), [l, c] = useState(!1), [u, d] = useState({}), { t: p } = useTranslation(), m = useCompile();
49434
49433
  return /* @__PURE__ */ jsx(RecordProvider, { record: o, children: /* @__PURE__ */ jsxs(ActionContextProvider, { value: { visible: l, setVisible: c }, children: [
49435
49434
  /* @__PURE__ */ jsx(
49436
49435
  "a",
@@ -49893,7 +49892,7 @@ const mapFields = ["lineString", "point", "circle", "polygon"], PreviewTable$1 =
49893
49892
  }, AsyncDataContext = createContext(null);
49894
49893
  AsyncDataContext.displayName = "AsyncDataContext";
49895
49894
  const AsyncDataProvider = (e) => {
49896
- const a = e, { value: t, request: n, children: o } = a, r = W(a, ["value", "request", "children"]), i = useRequest(n, x({}, r));
49895
+ const a = e, { value: t, request: n, children: o } = a, r = K(a, ["value", "request", "children"]), i = useRequest(n, x({}, r));
49897
49896
  return t ? /* @__PURE__ */ jsx(AsyncDataContext.Provider, { value: t, children: o }) : /* @__PURE__ */ jsx(AsyncDataContext.Provider, { value: i, children: o });
49898
49897
  }, useAsyncData = () => useContext(AsyncDataContext), inferInterface = (e, t) => e.toLowerCase().includes("id") ? "id" : typeof t == "number" ? Number.isInteger(t) ? "integer" : "number" : typeof t == "boolean" ? "checkbox" : dayjs(t).isValid() ? "datetime" : "input", useSourceFieldsOptions = () => {
49899
49898
  const e = useForm(), { sources: t = [] } = e.values, { t: n } = useTranslation(), { getCollection: o, getInheritCollections: r, getParentCollectionFields: i } = useCollectionManager_deprecated(), a = [];
@@ -50355,7 +50354,7 @@ const AsyncDataProvider = (e) => {
50355
50354
  }
50356
50355
  };
50357
50356
  }, DeleteCollectionAction = (e) => {
50358
- const h = e, { scope: t, getContainer: n, item: o, children: r, isBulk: i, useAction: a } = h, l = W(h, ["scope", "getContainer", "item", "children", "isBulk", "useAction"]), { t: c } = useTranslation(), [u, d] = useState(!1), p = () => i ? useBulkDestroyActionAndRefreshCM : a || useDestroyActionAndRefreshCM, m = () => /* @__PURE__ */ jsxs("span", { children: [
50357
+ const h = e, { scope: t, getContainer: n, item: o, children: r, isBulk: i, useAction: a } = h, l = K(h, ["scope", "getContainer", "item", "children", "isBulk", "useAction"]), { t: c } = useTranslation(), [u, d] = useState(!1), p = () => i ? useBulkDestroyActionAndRefreshCM : a || useDestroyActionAndRefreshCM, m = () => /* @__PURE__ */ jsxs("span", { children: [
50359
50358
  /* @__PURE__ */ jsx(ExclamationCircleFilled, { style: { color: "#faad14", marginRight: "12px", fontSize: "22px" } }),
50360
50359
  /* @__PURE__ */ jsx("span", { style: { fontSize: "19px" }, children: c("Delete collection") })
50361
50360
  ] });
@@ -54824,7 +54823,7 @@ const useBlockContext = () => useContext(BlockContext), useCompatDataBlockParent
54824
54823
  };
54825
54824
  return n.__collection && a && !["oho", "m2o", "obo"].includes(a.interface) && (u.targetCollection = n.__collection), !t && Object.keys(c).length > 0 && (u.filter = c), u;
54826
54825
  }, RecordLink = (e) => {
54827
- const t = useField(), n = useRecord(), l = e, { title: o, to: r } = l, i = W(l, ["title", "to"]), a = template(r || "");
54826
+ const t = useField(), n = useRecord(), l = e, { title: o, to: r } = l, i = K(l, ["title", "to"]), a = template(r || "");
54828
54827
  return /* @__PURE__ */ jsx(Link$1, P(x({}, i), { to: a({ record: n || {} }), children: t.title }));
54829
54828
  }, ACLContext = createContext({});
54830
54829
  ACLContext.displayName = "ACLContext";
@@ -57797,7 +57796,7 @@ AppLangContext.displayName = "AppLangContext";
57797
57796
  const useAppLangContext = () => useContext(AppLangContext);
57798
57797
  function AntdConfigProvider(e) {
57799
57798
  var c;
57800
- const l = e, { remoteLocale: t } = l, n = W(l, ["remoteLocale"]), o = useAPIClient(), { i18n: r } = useTranslation(), { data: i, loading: a } = useRequest(
57799
+ const l = e, { remoteLocale: t } = l, n = K(l, ["remoteLocale"]), o = useAPIClient(), { i18n: r } = useTranslation(), { data: i, loading: a } = useRequest(
57801
57800
  {
57802
57801
  url: "app:getLang",
57803
57802
  params: {
@@ -58945,20 +58944,20 @@ const ActionInitializerItem = (e) => {
58945
58944
  a.default && (d(a.default), z(a.default));
58946
58945
  }, [a.default, d]), !i)
58947
58946
  return null;
58948
- const B = (K) => {
58949
- D(K), $(!1);
58950
- }, j = (K) => {
58951
- z(K), d(K), p == null || p(K);
58952
- }, T = (K) => {
58947
+ const B = (W) => {
58948
+ D(W), $(!1);
58949
+ }, j = (W) => {
58950
+ z(W), d(W), p == null || p(W);
58951
+ }, T = (W) => {
58953
58952
  var J;
58954
58953
  const Y = (J = h == null ? void 0 : h[0]) == null ? void 0 : J.filter;
58955
58954
  (S || Y) && g(P(x({}, h == null ? void 0 : h[0]), {
58956
58955
  filter: void 0
58957
- })), y(!S), K.stopPropagation();
58958
- }, N = (K) => {
58959
- K.stopPropagation();
58960
- }, O = (K) => {
58961
- m(K);
58956
+ })), y(!S), W.stopPropagation();
58957
+ }, N = (W) => {
58958
+ W.stopPropagation();
58959
+ }, O = (W) => {
58960
+ m(W);
58962
58961
  }, V = (H = a.title) != null ? H : (U = i == null ? void 0 : i.uiSchema) == null ? void 0 : U.title;
58963
58962
  return t(
58964
58963
  /* @__PURE__ */ jsxs(SortableItem, { className: cls(n, o, "nb-block-item", e.className, "SortableItem"), children: [
@@ -59009,7 +59008,7 @@ const ActionInitializerItem = (e) => {
59009
59008
  treeData: u,
59010
59009
  onSelect: j,
59011
59010
  fieldNames: R,
59012
- titleRender: (K) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(w, c(K[I])) }),
59011
+ titleRender: (W) => /* @__PURE__ */ jsx(EllipsisWithTooltip, { ellipsis: !0, children: getLabelFormatValue(w, c(W[I])) }),
59013
59012
  selectedKeys: M,
59014
59013
  blockNode: !0
59015
59014
  }
@@ -59226,7 +59225,7 @@ const AssociationFilterDesignerDelete = () => {
59226
59225
  }
59227
59226
  );
59228
59227
  }, BlockInitializer = (e) => {
59229
- const i = e, { item: t, schema: n } = i, o = W(i, ["item", "schema"]), { insert: r } = useSchemaInitializer();
59228
+ const i = e, { item: t, schema: n } = i, o = K(i, ["item", "schema"]), { insert: r } = useSchemaInitializer();
59230
59229
  return /* @__PURE__ */ jsx(
59231
59230
  SchemaInitializerItem,
59232
59231
  P(x({}, o), {
@@ -59238,7 +59237,7 @@ const AssociationFilterDesignerDelete = () => {
59238
59237
  })
59239
59238
  );
59240
59239
  }, BlockItemInitializer = () => {
59241
- const e = useSchemaInitializerItem(), o = e, { schema: t } = o, n = W(o, ["schema"]);
59240
+ const e = useSchemaInitializerItem(), o = e, { schema: t } = o, n = K(o, ["schema"]);
59242
59241
  return /* @__PURE__ */ jsx(BlockInitializer, P(x({}, n), { item: e }));
59243
59242
  }, CreateFilterActionInitializer = (e) => {
59244
59243
  const t = {
@@ -59548,7 +59547,7 @@ const DataBlockInitializer = (e) => {
59548
59547
  }
59549
59548
  };
59550
59549
  }, RecordAssociationBlockInitializer = () => {
59551
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59550
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = K(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59552
59551
  return /* @__PURE__ */ jsx(
59553
59552
  SchemaInitializerItem,
59554
59553
  P(x({
@@ -59644,7 +59643,7 @@ function createDetailsWithPaginationUISchema(e) {
59644
59643
  };
59645
59644
  }
59646
59645
  const RecordAssociationDetailsBlockInitializer = () => {
59647
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59646
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = K(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59648
59647
  return /* @__PURE__ */ jsx(
59649
59648
  SchemaInitializerItem,
59650
59649
  P(x({
@@ -59730,7 +59729,7 @@ function createCreateFormBlockUISchema(e) {
59730
59729
  };
59731
59730
  }
59732
59731
  const RecordAssociationFormBlockInitializer = () => {
59733
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getCollection: a } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = useMemo(() => a(u), [u]);
59732
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = K(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getCollection: a } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = useMemo(() => a(u), [u]);
59734
59733
  return /* @__PURE__ */ jsx(
59735
59734
  SchemaInitializerItem,
59736
59735
  P(x({
@@ -59862,7 +59861,7 @@ const createGridCardBlockUISchema = (e) => {
59862
59861
  }
59863
59862
  };
59864
59863
  }, RecordAssociationGridCardBlockInitializer = () => {
59865
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59864
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = K(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59866
59865
  return /* @__PURE__ */ jsx(
59867
59866
  SchemaInitializerItem,
59868
59867
  P(x({
@@ -59967,7 +59966,7 @@ const createListBlockUISchema = (e) => {
59967
59966
  }
59968
59967
  };
59969
59968
  }, RecordAssociationListBlockInitializer = () => {
59970
- const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = W(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59969
+ const e = useSchemaInitializerItem(), p = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = p, r = K(p, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getTemplateSchemaByMode: a } = useSchemaTemplateManager(), { getCollection: l } = useCollectionManager_deprecated(), c = e.field, u = l(c.target), d = `${c.collectionName}.${c.name}`;
59971
59970
  return /* @__PURE__ */ jsx(
59972
59971
  SchemaInitializerItem,
59973
59972
  P(x({
@@ -60056,7 +60055,7 @@ function createDetailsUISchema(e) {
60056
60055
  });
60057
60056
  }
60058
60057
  const RecordReadPrettyAssociationFormBlockInitializer = () => {
60059
- const e = useSchemaInitializerItem(), m = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = m, r = W(m, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getCollection: a } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = a(u), p = `${c.collectionName}.${c.name}`;
60058
+ const e = useSchemaInitializerItem(), m = e, { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = m, r = K(m, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), { getCollection: a } = useCollectionManager_deprecated(), { getTemplateSchemaByMode: l } = useSchemaTemplateManager(), c = e.field, u = c.target, d = a(u), p = `${c.collectionName}.${c.name}`;
60060
60059
  return /* @__PURE__ */ jsx(
60061
60060
  SchemaInitializerItem,
60062
60061
  P(x({
@@ -60736,7 +60735,7 @@ const SelectActionInitializer = (e) => {
60736
60735
  }, commonOptions$i),
60737
60736
  readPrettyFormItemInitializers_deprecated
60738
60737
  ), RecordReadPrettyFormBlockInitializer = () => {
60739
- const l = useSchemaInitializerItem(), { icon: t = !0, targetCollection: n } = l, o = W(l, ["icon", "targetCollection"]), r = useCollection_deprecated(), i = n || r, { createSingleDetailsSchema: a } = useCreateSingleDetailsSchema();
60738
+ const l = useSchemaInitializerItem(), { icon: t = !0, targetCollection: n } = l, o = K(l, ["icon", "targetCollection"]), r = useCollection_deprecated(), i = n || r, { createSingleDetailsSchema: a } = useCreateSingleDetailsSchema();
60740
60739
  return /* @__PURE__ */ jsx(
60741
60740
  SchemaInitializerItem,
60742
60741
  P(x({
@@ -60937,7 +60936,7 @@ function createEditFormBlockUISchema(e) {
60937
60936
  });
60938
60937
  }
60939
60938
  const RecordFormBlockInitializer = () => {
60940
- const u = useSchemaInitializerItem(), { targetCollection: t } = u, n = W(u, ["targetCollection"]), { insert: o } = useSchemaInitializer(), { getTemplateSchemaByMode: r } = useSchemaTemplateManager(), i = useCollection_deprecated(), a = t || i, { createEditFormBlock: l, templateWrap: c } = useCreateEditFormBlock();
60939
+ const u = useSchemaInitializerItem(), { targetCollection: t } = u, n = K(u, ["targetCollection"]), { insert: o } = useSchemaInitializer(), { getTemplateSchemaByMode: r } = useSchemaTemplateManager(), i = useCollection_deprecated(), a = t || i, { createEditFormBlock: l, templateWrap: c } = useCreateEditFormBlock();
60941
60940
  return /* @__PURE__ */ jsx(
60942
60941
  SchemaInitializerItem,
60943
60942
  P(x({
@@ -61609,7 +61608,7 @@ const commonOptions$h = {
61609
61608
  }
61610
61609
  };
61611
61610
  }, TableSelectorInitializer = () => {
61612
- const l = useSchemaInitializerItem(), { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = l, r = W(l, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), a = useCollection_deprecated();
61611
+ const l = useSchemaInitializerItem(), { onCreateBlockSchema: t, componentType: n, createBlockSchema: o } = l, r = K(l, ["onCreateBlockSchema", "componentType", "createBlockSchema"]), { insert: i } = useSchemaInitializer(), a = useCollection_deprecated();
61613
61612
  return /* @__PURE__ */ jsx(
61614
61613
  SchemaInitializerItem,
61615
61614
  P(x({
@@ -61634,7 +61633,7 @@ const commonOptions$h = {
61634
61633
  {
61635
61634
  title: e("Column width"),
61636
61635
  component: React.forwardRef((r, i) => {
61637
- const u = r, { children: a, onClick: l } = u, c = W(u, ["children", "onClick"]);
61636
+ const u = r, { children: a, onClick: l } = u, c = K(u, ["children", "onClick"]);
61638
61637
  return /* @__PURE__ */ jsx(
61639
61638
  SchemaInitializerItem,
61640
61639
  P(x({
@@ -62752,7 +62751,7 @@ const commonOptions$h = {
62752
62751
  }, r = useSchemaInitializerItem();
62753
62752
  return /* @__PURE__ */ jsx(BlockInitializer, P(x({}, r), { schema: o, item: r }));
62754
62753
  }, useTableSelectorProps = () => {
62755
- const { setSelectedRows: e } = useContext(RecordPickerContext), r = useTableSelectorProps$4(), { onRowSelectionChange: t, rowKey: n = "id" } = r, o = W(r, ["onRowSelectionChange", "rowKey"]);
62754
+ const { setSelectedRows: e } = useContext(RecordPickerContext), r = useTableSelectorProps$4(), { onRowSelectionChange: t, rowKey: n = "id" } = r, o = K(r, ["onRowSelectionChange", "rowKey"]);
62756
62755
  return P(x({}, o), {
62757
62756
  rowKey: n,
62758
62757
  rowSelection: {