@nocobase/client 1.2.37-alpha → 1.2.39-alpha

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.
@@ -56,6 +56,14 @@ export declare const defaultConfigurableProperties: {
56
56
  'x-decorator': string;
57
57
  'x-component': string;
58
58
  };
59
+ simplePaginate: {
60
+ 'x-content': string;
61
+ type: string;
62
+ name: string;
63
+ 'x-decorator': string;
64
+ 'x-component': string;
65
+ description: string;
66
+ };
59
67
  presetFields: {
60
68
  title: string;
61
69
  type: string;
@@ -71,5 +79,5 @@ export declare const defaultConfigurableProperties: {
71
79
  };
72
80
  };
73
81
  };
74
- export type DefaultConfigurableKeys = 'name' | 'title' | 'inherits' | 'category' | 'autoGenId' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'sortable' | 'description' | 'presetFields';
82
+ export type DefaultConfigurableKeys = 'name' | 'title' | 'inherits' | 'category' | 'autoGenId' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'sortable' | 'description' | 'simplePaginate' | 'presetFields';
75
83
  export declare const getConfigurableProperties: (...keys: DefaultConfigurableKeys[]) => Record<DefaultConfigurableKeys, any>;
@@ -36,6 +36,7 @@ export declare class SqlCollectionTemplate extends CollectionTemplate {
36
36
  updatedBy: any;
37
37
  createdAt: any;
38
38
  updatedAt: any;
39
+ simplePaginate: any;
39
40
  presetFields: any;
40
41
  config: {
41
42
  type: string;
@@ -29,6 +29,7 @@ export declare class ViewCollectionTemplate extends CollectionTemplate {
29
29
  updatedBy: any;
30
30
  createdAt: any;
31
31
  updatedAt: any;
32
+ simplePaginate: any;
32
33
  presetFields: any;
33
34
  databaseView: {
34
35
  title: string;
package/es/index.mjs CHANGED
@@ -1,26 +1,26 @@
1
1
  var $e = Object.defineProperty, Ne = Object.defineProperties;
2
2
  var ze = Object.getOwnPropertyDescriptors;
3
- var ve = Object.getOwnPropertySymbols;
3
+ var be = Object.getOwnPropertySymbols;
4
4
  var Me = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
5
5
  var je = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e);
6
- var ke = (e, t, o) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, g = (e, t) => {
6
+ var Ie = (e, t, o) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, g = (e, t) => {
7
7
  for (var o in t || (t = {}))
8
- Me.call(t, o) && ke(e, o, t[o]);
9
- if (ve)
10
- for (var o of ve(t))
11
- Be.call(t, o) && ke(e, o, t[o]);
8
+ Me.call(t, o) && Ie(e, o, t[o]);
9
+ if (be)
10
+ for (var o of be(t))
11
+ Be.call(t, o) && Ie(e, o, t[o]);
12
12
  return e;
13
13
  }, F = (e, t) => Ne(e, ze(t));
14
14
  var K = (e, t) => {
15
15
  var o = {};
16
16
  for (var n in e)
17
17
  Me.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
18
- if (e != null && ve)
19
- for (var n of ve(e))
18
+ if (e != null && be)
19
+ for (var n of be(e))
20
20
  t.indexOf(n) < 0 && Be.call(e, n) && (o[n] = e[n]);
21
21
  return o;
22
22
  };
23
- var P = (e, t, o) => (ke(e, typeof t != "symbol" ? t + "" : t, o), o);
23
+ var P = (e, t, o) => (Ie(e, typeof t != "symbol" ? t + "" : t, o), o);
24
24
  var V = (e, t, o) => new Promise((n, r) => {
25
25
  var i = (c) => {
26
26
  try {
@@ -37,7 +37,7 @@ var V = (e, t, o) => new Promise((n, r) => {
37
37
  }, l = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(i, a);
38
38
  l((o = o.apply(e, t)).next());
39
39
  });
40
- var Fe = (e, t, o) => (t = e[je("asyncIterator")]) ? t.call(e) : (e = e[je("iterator")](), t = {}, o = (n, r) => (r = e[n]) && (t[n] = (i) => new Promise((a, l, c) => (i = r.call(e, i), c = i.done, Promise.resolve(i.value).then((u) => a({ value: u, done: c }), l)))), o("next"), o("return"), t);
40
+ var ye = (e, t, o) => (t = e[je("asyncIterator")]) ? t.call(e) : (e = e[je("iterator")](), t = {}, o = (n, r) => (r = e[n]) && (t[n] = (i) => new Promise((a, l, c) => (i = r.call(e, i), c = i.done, Promise.resolve(i.value).then((u) => a({ value: u, done: c }), l)))), o("next"), o("return"), t);
41
41
  import "./index.css";
42
42
  import "dayjs/plugin/isBetween";
43
43
  import "dayjs/plugin/isSameOrAfter";
@@ -2048,9 +2048,6 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2048
2048
  get SchemaSettingsNumberFormat() {
2049
2049
  return SchemaSettingsNumberFormat;
2050
2050
  },
2051
- get SchemaSettingsPagingMode() {
2052
- return SchemaSettingsPagingMode;
2053
- },
2054
2051
  get SchemaSettingsPlugin() {
2055
2052
  return SchemaSettingsPlugin;
2056
2053
  },
@@ -3980,7 +3977,7 @@ function addAppVersion(e, t) {
3980
3977
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
3981
3978
  }), e;
3982
3979
  }
3983
- const name = "@nocobase/client", version$1 = "1.2.37-alpha", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
3980
+ const name = "@nocobase/client", version$1 = "1.2.39-alpha", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
3984
3981
  "@ahooksjs/use-url-state": "3.5.1",
3985
3982
  "@ant-design/cssinjs": "^1.11.1",
3986
3983
  "@ant-design/icons": "^5.1.4",
@@ -4001,9 +3998,9 @@ const name = "@nocobase/client", version$1 = "1.2.37-alpha", license = "AGPL-3.0
4001
3998
  "@formily/reactive-react": "^2.2.27",
4002
3999
  "@formily/shared": "^2.2.27",
4003
4000
  "@formily/validator": "^2.2.27",
4004
- "@nocobase/evaluators": "1.2.37-alpha",
4005
- "@nocobase/sdk": "1.2.37-alpha",
4006
- "@nocobase/utils": "1.2.37-alpha",
4001
+ "@nocobase/evaluators": "1.2.39-alpha",
4002
+ "@nocobase/sdk": "1.2.39-alpha",
4003
+ "@nocobase/utils": "1.2.39-alpha",
4007
4004
  ahooks: "^3.7.2",
4008
4005
  antd: "^5.12.8",
4009
4006
  "antd-style": "3.4.5",
@@ -5541,16 +5538,16 @@ const mergeFilter = (e, t = "$and") => {
5541
5538
  $and: Object.keys(e).map((i) => {
5542
5539
  let a = _.get(e, i);
5543
5540
  const l = o(`${n}.${i}`);
5544
- return l != null && l.target && (a = getValuesByPath(a, l.targetKey || "id"), i = `${i}.${l.targetKey || "id"}`), a ? {
5541
+ return l != null && l.target && (a = getValuesByPath(a, l.targetKey || "id"), i = `${i}.${l.targetKey || "id"}`), !a && a !== 0 && a !== !1 ? null : {
5545
5542
  [i]: {
5546
5543
  [t[i] || "$eq"]: a
5547
5544
  }
5548
- } : null;
5545
+ };
5549
5546
  }).filter(Boolean)
5550
5547
  }), useAssociatedFields = () => {
5551
5548
  const { fields: e } = useCollection_deprecated();
5552
5549
  return e.filter((t) => isAssocField(t)) || [];
5553
- }, isAssocField = (e) => ["o2o", "oho", "obo", "m2o", "createdBy", "updatedBy", "o2m", "m2m", "linkTo", "chinaRegion"].includes(
5550
+ }, isAssocField = (e) => ["o2o", "oho", "obo", "m2o", "createdBy", "updatedBy", "o2m", "m2m", "linkTo", "chinaRegion", "mbm"].includes(
5554
5551
  e == null ? void 0 : e.interface
5555
5552
  ), isSameCollection = (e, t) => e.name === t.name && e.dataSource === t.dataSource, useFilterAPI = () => {
5556
5553
  const e = useFieldSchema(), { getDataBlocks: t } = useFilterBlock(), { targets: o, uid: n } = findFilterTargets(e), r = t(), [i, a] = useState(() => o && o.some((u) => r.some((d) => d.uid === u.uid))), l = Object.keys(o || {});
@@ -6979,7 +6976,7 @@ function getPlugins(e) {
6979
6976
  const r = [], i = {};
6980
6977
  if (n) {
6981
6978
  try {
6982
- for (var c = Fe(o), u, d, p; u = !(d = yield c.next()).done; u = !1) {
6979
+ for (var c = ye(o), u, d, p; u = !(d = yield c.next()).done; u = !1) {
6983
6980
  const m = d.value;
6984
6981
  const h = yield n(m.packageName);
6985
6982
  h && (r.push([m.name, h.default]), i[m.packageName] = h.default);
@@ -7021,7 +7018,7 @@ let PluginManager$1 = class {
7021
7018
  initStaticPlugins() {
7022
7019
  return V(this, arguments, function* (t = []) {
7023
7020
  try {
7024
- for (var o = Fe(t), n, r, i; n = !(r = yield o.next()).done; n = !1) {
7021
+ for (var o = ye(t), n, r, i; n = !(r = yield o.next()).done; n = !1) {
7025
7022
  const a = r.value;
7026
7023
  const l = Array.isArray(a) ? a[0] : a, c = Array.isArray(a) ? a[1] : void 0;
7027
7024
  yield this.add(l, c);
@@ -7047,7 +7044,7 @@ let PluginManager$1 = class {
7047
7044
  devDynamicImport: this.app.devDynamicImport
7048
7045
  });
7049
7046
  try {
7050
- for (var i = Fe(n), a, l, c; a = !(l = yield i.next()).done; a = !1) {
7047
+ for (var i = ye(n), a, l, c; a = !(l = yield i.next()).done; a = !1) {
7051
7048
  const [u, d] = l.value;
7052
7049
  const p = o.find((m) => m.name === u);
7053
7050
  yield this.add(d, p);
@@ -14532,38 +14529,6 @@ function createModalSettingsItem(e) {
14532
14529
  }
14533
14530
  };
14534
14531
  }
14535
- function SchemaSettingsPagingMode() {
14536
- const e = useField(), t = useFieldSchema(), { t: o } = useTranslation(), { dn: n } = useDesignable(), { service: r } = useTableBlockContext(), i = [
14537
- {
14538
- value: "default",
14539
- label: o("Default")
14540
- },
14541
- {
14542
- value: "simplePaginate",
14543
- label: o("Simple Paginate")
14544
- }
14545
- ];
14546
- return /* @__PURE__ */ jsx(
14547
- SchemaSettingsSelectItem,
14548
- {
14549
- title: o("Paging mode"),
14550
- options: i,
14551
- value: e.decoratorProps.pagingMode || "default",
14552
- onChange: (a) => {
14553
- var c;
14554
- t["x-decorator-props"].pagingMode = a;
14555
- const l = g({}, (c = r.params) == null ? void 0 : c[0]);
14556
- a === "simplePaginate" ? l.simplePaginate = !0 : delete l.simplePaginate, r.run({ params: l }), e.decoratorProps.pagingMode = a, n.emit("patch", {
14557
- schema: {
14558
- "x-uid": t["x-uid"],
14559
- "x-decorator-props": t["x-decorator-props"]
14560
- }
14561
- }), n.refresh();
14562
- }
14563
- },
14564
- "paging-mode"
14565
- );
14566
- }
14567
14532
  const tableBlockSettings = new SchemaSettings({
14568
14533
  name: "blockSettings:table",
14569
14534
  items: [
@@ -14679,10 +14644,6 @@ const tableBlockSettings = new SchemaSettings({
14679
14644
  };
14680
14645
  }
14681
14646
  },
14682
- {
14683
- name: "pagingMode",
14684
- Component: SchemaSettingsPagingMode
14685
- },
14686
14647
  {
14687
14648
  name: "ConnectDataBlocks",
14688
14649
  Component: SchemaSettingsConnectDataBlocks,
@@ -15417,7 +15378,6 @@ const InternalTableBlockProvider = (e) => {
15417
15378
  const m = i.fields.find((h) => h.treeChildren);
15418
15379
  m && (d = m.name), c.tree = !0;
15419
15380
  }
15420
- l === "simplePaginate" ? c.simplePaginate = !0 : c == null || delete c.simplePaginate;
15421
15381
  const p = useMemo(() => createForm(), [a]);
15422
15382
  return u ? null : /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: { treeTable: a }, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: p, children: /* @__PURE__ */ jsx(BlockProvider, F(g({ name: e.name || "table" }, e), { params: c, runWhenParamsChanged: !0, children: /* @__PURE__ */ jsx(InternalTableBlockProvider, F(g({}, e), { childrenColumnName: d, params: c })) })) }) });
15423
15383
  }), useTableBlockContext = () => useContext(TableBlockContext), useTableBlockProps = () => {
@@ -15533,8 +15493,9 @@ const useFormItemProps = () => {
15533
15493
  {
15534
15494
  forceProps: {
15535
15495
  style: {
15536
- overflowY: "auto",
15537
- width: "100%"
15496
+ overflowX: "auto",
15497
+ maxWidth: "100%",
15498
+ float: "right"
15538
15499
  }
15539
15500
  },
15540
15501
  children: /* @__PURE__ */ jsx(DefaultValueProvider, { isAllowToSetDefaultValue: () => !1, children: /* @__PURE__ */ jsx(FormBlockProvider, g({ name: "filter-form" }, e)) })
@@ -19366,7 +19327,13 @@ const SchemaSettingsProvider = (e) => {
19366
19327
  const k = useCallback(() => {
19367
19328
  m(!1), A.reset();
19368
19329
  }, [A]), w = useCallback(() => V(void 0, null, function* () {
19369
- yield A.submit(), o == null || o(cloneDeep$1(A.values)), m(!1);
19330
+ yield A.submit();
19331
+ try {
19332
+ const O = A.values, z = Object.keys(O).reduce((R, j) => (A.query(j).take() && (R[j] = O[j]), R), {});
19333
+ yield o == null ? void 0 : o(cloneDeep$1(z)), m(!1);
19334
+ } catch (O) {
19335
+ console.error(O);
19336
+ }
19370
19337
  }), [A, o]), M = useCallback(() => V(void 0, null, function* () {
19371
19338
  !h && (i != null && i["x-uid"]) && (C["x-action-settings"].schemaUid = i["x-uid"], b.emit("patch", { schema: C }), yield v.resource("uiSchemas").insert({ values: i }), f(i["x-uid"])), typeof r == "function" && (r == null || r()), S.setVisible(!1), m(!0);
19372
19339
  }), [v, S, b, C, i, h]), N = useCallback((O) => O.stopPropagation(), []);
@@ -21886,7 +21853,7 @@ const ActionLink = withDynamicSchemaProps(
21886
21853
  "addChild",
21887
21854
  "onMouseEnter",
21888
21855
  "refreshDataBlockRequest"
21889
- ]), v = useACLActionParamsContext(), { wrapSSR: I, componentCls: A, hashId: k } = useStyles$d(), { t: w } = useTranslation(), [M, N] = useState(!1), [E, O] = useState(!1), z = useDesigner(), R = useField(), { run: j, element: B, disabled: T } = a(x), D = useFieldSchema(), $ = useCompile(), q = useForm(), L = useCollectionRecordData(), G = useCollectionParentRecordData(), U = D["x-toolbar-props"] || D["x-designer-props"], H = (me = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : me.openMode, Y = (he = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : he.openSize, W = (ge = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, X = q.disabled || R.disabled || ((fe = R.data) == null ? void 0 : fe.disabled) || f || T, Q = useMemo(() => (D == null ? void 0 : D["x-linkage-rules"]) || [], [D == null ? void 0 : D["x-linkage-rules"]]), { designable: J } = useDesignable(), oe = useComponent(i) || i, { modal: re } = App.useApp(), te = useVariables(), se = useLocalVariables({ currentForm: { values: L } }), { getAriaLabel: ae } = useGetAriaLabelOfAction(u), ce = useDataBlockRequest(), ue = useMemo(() => {
21856
+ ]), v = useACLActionParamsContext(), { wrapSSR: I, componentCls: A, hashId: k } = useStyles$d(), { t: w } = useTranslation(), [M, N] = useState(!1), [E, O] = useState(!1), z = useDesigner(), R = useField(), { run: j, element: B, disabled: T } = a(x), D = useFieldSchema(), $ = useCompile(), q = useForm(), L = useCollectionRecordData(), G = useCollectionParentRecordData(), U = D["x-toolbar-props"] || D["x-designer-props"], H = (me = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : me.openMode, Y = (he = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : he.openSize, W = (ge = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, X = q.disabled || R.disabled || ((fe = R.data) == null ? void 0 : fe.disabled) || f || T, Q = useMemo(() => (D == null ? void 0 : D["x-linkage-rules"]) || [], [D == null ? void 0 : D["x-linkage-rules"]]), { designable: J } = useDesignable(), oe = useComponent(i) || i, { modal: re } = App.useApp(), te = useVariables(), se = useLocalVariables({ currentForm: { values: L, readPretty: !1 } }), { getAriaLabel: ae } = useGetAriaLabelOfAction(u), ce = useDataBlockRequest(), ue = useMemo(() => {
21890
21857
  const Z = u || $(D.title);
21891
21858
  return _.isString(Z) ? w(Z) : Z;
21892
21859
  }, [u, D.title, w]);
@@ -21904,7 +21871,7 @@ const ActionLink = withDynamicSchemaProps(
21904
21871
  });
21905
21872
  });
21906
21873
  }, [R, Q, se, te]);
21907
- const Pe = useCallback(
21874
+ const ve = useCallback(
21908
21875
  (Z, ne = !0) => {
21909
21876
  if (!(ne && isPortalInBody(Z.target)) && (Z.preventDefault(), Z.stopPropagation(), !X && v)) {
21910
21877
  const ie = () => {
@@ -21921,18 +21888,18 @@ const ActionLink = withDynamicSchemaProps(
21921
21888
  }
21922
21889
  },
21923
21890
  [o, X, re, d, j]
21924
- ), Ie = useMemo(() => {
21891
+ ), Fe = useMemo(() => {
21925
21892
  var Z;
21926
21893
  return F(g({}, p), {
21927
21894
  opacity: J && (((Z = R == null ? void 0 : R.data) == null ? void 0 : Z.hidden) || !v) && 0.1,
21928
21895
  color: X ? "rgba(0, 0, 0, 0.25)" : null
21929
21896
  });
21930
- }, [J, (ee = R == null ? void 0 : R.data) == null ? void 0 : ee.hidden, p, X]), Se = useCallback(
21897
+ }, [J, (ee = R == null ? void 0 : R.data) == null ? void 0 : ee.hidden, p, X]), xe = useCallback(
21931
21898
  (Z) => {
21932
21899
  S == null || S(Z);
21933
21900
  },
21934
21901
  [S]
21935
- ), be = () => {
21902
+ ), Ce = () => {
21936
21903
  var Z, ne;
21937
21904
  return !J && ((Z = R == null ? void 0 : R.data) != null && Z.hidden || !v) ? null : /* @__PURE__ */ jsxs(
21938
21905
  SortableItem,
@@ -21940,12 +21907,12 @@ const ActionLink = withDynamicSchemaProps(
21940
21907
  role: "button",
21941
21908
  "aria-label": ae()
21942
21909
  }, y), {
21943
- onMouseEnter: Se,
21910
+ onMouseEnter: xe,
21944
21911
  loading: ((ne = R == null ? void 0 : R.data) == null ? void 0 : ne.loading) || m,
21945
21912
  icon: typeof c == "string" ? /* @__PURE__ */ jsx(Icon, { type: c }) : c,
21946
21913
  disabled: X,
21947
- style: Ie,
21948
- onClick: Pe,
21914
+ style: Fe,
21915
+ onClick: ve,
21949
21916
  component: oe || Button,
21950
21917
  className: cls(A, k, l, "nb-action"),
21951
21918
  type: e.type === "danger" ? void 0 : e.type,
@@ -21955,10 +21922,10 @@ const ActionLink = withDynamicSchemaProps(
21955
21922
  ]
21956
21923
  })
21957
21924
  );
21958
- }, ye = be(), de = /* @__PURE__ */ jsxs(
21925
+ }, Se = Ce(), de = /* @__PURE__ */ jsxs(
21959
21926
  ActionContextProvider,
21960
21927
  {
21961
- button: ye,
21928
+ button: Se,
21962
21929
  visible: M,
21963
21930
  setVisible: N,
21964
21931
  formValueChanged: E,
@@ -21969,7 +21936,7 @@ const ActionLink = withDynamicSchemaProps(
21969
21936
  fieldSchema: D,
21970
21937
  children: [
21971
21938
  t && /* @__PURE__ */ jsx(RecursionField, { basePath: R.address, onlyRenderProperties: !0, schema: D }),
21972
- !t && be(),
21939
+ !t && Ce(),
21973
21940
  /* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: !t && e.children }),
21974
21941
  B
21975
21942
  ]
@@ -32689,8 +32656,8 @@ const toItem = (e) => {
32689
32656
  }, e.response.data)), F(g({}, e), {
32690
32657
  id: e.id || e.uid,
32691
32658
  title: e.title || e.name,
32692
- imageUrl: getImageByUrl(e.url, {
32693
- exclude: [".png", ".jpg", ".jpeg", ".gif"]
32659
+ imageUrl: isImage(e) ? e.url : getImageByUrl(e.url, {
32660
+ exclude: [".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".bmp", ".ico"]
32694
32661
  })
32695
32662
  });
32696
32663
  }, toFileList = (e) => toArr$1(e).filter(Boolean).map(toItem), Rules = {
@@ -34450,7 +34417,10 @@ const CreateRecordAction$1 = forwardRef(InternalCreateRecordAction), initializer
34450
34417
  {
34451
34418
  style: { zIndex: 1e3, color: "#a8a3a3" },
34452
34419
  onClick: () => {
34453
- action(() => (n.value.splice(p, 1), n.onInput(n.value)));
34420
+ action(() => (spliceArrayState(n, {
34421
+ startIndex: p,
34422
+ deleteCount: 1
34423
+ }), n.value.splice(p, 1), n.onInput(n.value)));
34454
34424
  }
34455
34425
  }
34456
34426
  ) }, "remove")
@@ -34784,7 +34754,7 @@ const useColumnsDeepMemoized = (e) => {
34784
34754
  `, HeaderWrapperComponent = (e) => /* @__PURE__ */ jsx(DndContext, { children: /* @__PURE__ */ jsx("thead", g({}, e)) }), HeaderCellComponent = (e) => /* @__PURE__ */ jsx("th", F(g({}, e), { className: cls(e.className, headerClass) })), BodyRowComponent = (e) => /* @__PURE__ */ jsx(SortableRow, g({}, e)), Table$1 = withDynamicSchemaProps(
34785
34755
  observer$1((e) => {
34786
34756
  var me, he, ge, fe;
34787
- const { token: t } = useToken(), ye = omit$1(e, ["onBlur", "onFocus", "value"]), { pagination: o, useProps: n } = ye, r = K(ye, ["pagination", "useProps"]), de = (n == null ? void 0 : n()) || {}, { pagination: i } = de, a = K(de, ["pagination"]), pe = g(g({}, r), a), {
34757
+ const { token: t } = useToken(), Se = omit$1(e, ["onBlur", "onFocus", "value"]), { pagination: o, useProps: n } = Se, r = K(Se, ["pagination", "useProps"]), de = (n == null ? void 0 : n()) || {}, { pagination: i } = de, a = K(de, ["pagination"]), pe = g(g({}, r), a), {
34788
34758
  dragSort: l = !1,
34789
34759
  showIndex: c = !0,
34790
34760
  onRowSelectionChange: u,
@@ -34846,13 +34816,13 @@ const useColumnsDeepMemoized = (e) => {
34846
34816
  DndContext,
34847
34817
  {
34848
34818
  onDragEnd: (Z) => {
34849
- var xe, Ce, Te, we, Re, De;
34819
+ var Ae, ke, Te, we, Re, De;
34850
34820
  if (!Z.active || !Z.over) {
34851
34821
  console.warn("move cancel");
34852
34822
  return;
34853
34823
  }
34854
- const ne = (Te = (Ce = (xe = Z.active) == null ? void 0 : xe.data.current) == null ? void 0 : Ce.sortable) == null ? void 0 : Te.index, ie = (De = (Re = (we = Z.over) == null ? void 0 : we.data.current) == null ? void 0 : Re.sortable) == null ? void 0 : De.index, le = b.value[ne] || Z.active, Ae = b.value[ie] || Z.over;
34855
- b.move(ne, ie), N({ from: le, to: Ae });
34824
+ const ne = (Te = (ke = (Ae = Z.active) == null ? void 0 : Ae.data.current) == null ? void 0 : ke.sortable) == null ? void 0 : Te.index, ie = (De = (Re = (we = Z.over) == null ? void 0 : we.data.current) == null ? void 0 : Re.sortable) == null ? void 0 : De.index, le = b.value[ne] || Z.active, Pe = b.value[ie] || Z.over;
34825
+ b.move(ne, ie), N({ from: le, to: Pe });
34856
34826
  },
34857
34827
  children: /* @__PURE__ */ jsx("tbody", g({}, ee))
34858
34828
  }
@@ -34892,11 +34862,10 @@ const useColumnsDeepMemoized = (e) => {
34892
34862
  };
34893
34863
  },
34894
34864
  renderCell: (ee, Z, ne, ie) => {
34895
- var xe, Ce;
34896
34865
  if (!l && !c)
34897
34866
  return ie;
34898
- const le = (xe = e == null ? void 0 : e.pagination) == null ? void 0 : xe.current, Ae = ((Ce = e == null ? void 0 : e.pagination) == null ? void 0 : Ce.pageSize) || 20;
34899
- return le ? ne = ne + (le - 1) * Ae + 1 : ne = ne + 1, Z.__index && (ne = extractIndex(Z.__index)), /* @__PURE__ */ jsxs(
34867
+ const le = E == null ? void 0 : E.current, Pe = (E == null ? void 0 : E.pageSize) || 20;
34868
+ return le ? ne = ne + (le - 1) * Pe + 1 : ne = ne + 1, Z.__index && (ne = extractIndex(Z.__index)), /* @__PURE__ */ jsxs(
34900
34869
  "div",
34901
34870
  {
34902
34871
  role: "button",
@@ -34935,7 +34904,8 @@ const useColumnsDeepMemoized = (e) => {
34935
34904
  b,
34936
34905
  H,
34937
34906
  D,
34938
- re
34907
+ re,
34908
+ E
34939
34909
  ]
34940
34910
  ), se = useCallback(
34941
34911
  ({ children: ee }) => {
@@ -34951,22 +34921,22 @@ const useColumnsDeepMemoized = (e) => {
34951
34921
  [b, l, H]
34952
34922
  ), { height: ae, tableSizeRefCallback: ce } = useTableSize(), ue = useMemo(() => ({
34953
34923
  x: "max-content"
34954
- }), []), Pe = useMemo(() => ({
34924
+ }), []), ve = useMemo(() => ({
34955
34925
  x: "max-content",
34956
34926
  y: ae
34957
- }), [ae, ue]), Ie = useCallback(
34927
+ }), [ae, ue]), Fe = useCallback(
34958
34928
  (ee) => B.includes(ee[m]) ? L : "",
34959
34929
  [B, L, m]
34960
- ), Se = useCallback(
34930
+ ), xe = useCallback(
34961
34931
  (ee, Z) => {
34962
34932
  const ne = ee ? [...O, Z[I.getPrimaryKey()]] : O.filter((ie) => Z[I.getPrimaryKey()] !== ie);
34963
34933
  z(ne), f == null || f(ee, Z);
34964
34934
  },
34965
34935
  [O, f, I]
34966
- ), be = useMemo(() => ({
34967
- onExpand: Se,
34936
+ ), Ce = useMemo(() => ({
34937
+ onExpand: xe,
34968
34938
  expandedRowKeys: O
34969
- }), [O, Se]);
34939
+ }), [O, xe]);
34970
34940
  return /* @__PURE__ */ jsxs(
34971
34941
  "div",
34972
34942
  {
@@ -35006,10 +34976,10 @@ const useColumnsDeepMemoized = (e) => {
35006
34976
  components: oe,
35007
34977
  onChange: d,
35008
34978
  onRow: G,
35009
- rowClassName: Ie,
35010
- scroll: Pe,
34979
+ rowClassName: Fe,
34980
+ scroll: ve,
35011
34981
  columns: y,
35012
- expandable: be
34982
+ expandable: Ce
35013
34983
  })
35014
34984
  ) }),
35015
34985
  b.errors.length > 0 && /* @__PURE__ */ jsx("div", { className: "ant-formily-item-error-help ant-formily-item-help ant-formily-item-help-enter ant-formily-item-help-enter-active", children: b.errors.map((ee) => ee.messages.map((Z) => /* @__PURE__ */ jsx("div", { children: Z }, Z))) })
@@ -40594,7 +40564,6 @@ const TableActionColumnDesigner = (e) => {
40594
40564
  }
40595
40565
  }
40596
40566
  ),
40597
- /* @__PURE__ */ jsx(SchemaSettingsPagingMode, {}),
40598
40567
  /* @__PURE__ */ jsx(SchemaSettingsConnectDataBlocks, { type: FilterBlockType.TABLE, emptyDescription: u("No blocks to connect") }),
40599
40568
  h && /* @__PURE__ */ jsx(SchemaSettingsDivider, {}),
40600
40569
  h && /* @__PURE__ */ jsx(SchemaSettingsTemplate, { componentName: "Table", collectionName: e, resourceName: m }),
@@ -44752,7 +44721,7 @@ const string = [
44752
44721
  }
44753
44722
  },
44754
44723
  {
44755
- label: '{{t("contains")}}',
44724
+ label: '{{t("is any of")}}',
44756
44725
  value: "$anyOf",
44757
44726
  schema: {
44758
44727
  "x-component": "Select",
@@ -44760,7 +44729,7 @@ const string = [
44760
44729
  }
44761
44730
  },
44762
44731
  {
44763
- label: '{{t("does not contain")}}',
44732
+ label: '{{t("is none of")}}',
44764
44733
  value: "$noneOf",
44765
44734
  schema: {
44766
44735
  "x-component": "Select",
@@ -44809,7 +44778,7 @@ const string = [
44809
44778
  schema: { "x-component": "Select" }
44810
44779
  },
44811
44780
  {
44812
- label: '{{t("contains")}}',
44781
+ label: '{{t("is any of")}}',
44813
44782
  value: "$in",
44814
44783
  schema: {
44815
44784
  "x-component": "Select",
@@ -44817,7 +44786,7 @@ const string = [
44817
44786
  }
44818
44787
  },
44819
44788
  {
44820
- label: '{{t("does not contain")}}',
44789
+ label: '{{t("is none of")}}',
44821
44790
  value: "$notIn",
44822
44791
  schema: {
44823
44792
  "x-component": "Select",
@@ -44836,7 +44805,7 @@ const string = [
44836
44805
  { label: '{{t("No")}}', value: "$isFalsy", noValue: !0 }
44837
44806
  ], tableoid = [
44838
44807
  {
44839
- label: '{{t("contains")}}',
44808
+ label: '{{t("is any of")}}',
44840
44809
  value: "$childIn",
44841
44810
  schema: {
44842
44811
  "x-component": "CollectionSelect",
@@ -44844,7 +44813,7 @@ const string = [
44844
44813
  }
44845
44814
  },
44846
44815
  {
44847
- label: '{{t("does not contain")}}',
44816
+ label: '{{t("is none of")}}',
44848
44817
  value: "$childNotIn",
44849
44818
  schema: {
44850
44819
  "x-component": "CollectionSelect",
@@ -44864,7 +44833,7 @@ const string = [
44864
44833
  schema: { "x-component": "CollectionSelect" }
44865
44834
  },
44866
44835
  {
44867
- label: '{{t("contains")}}',
44836
+ label: '{{t("is any of")}}',
44868
44837
  value: "$in",
44869
44838
  schema: {
44870
44839
  "x-component": "CollectionSelect",
@@ -44872,7 +44841,7 @@ const string = [
44872
44841
  }
44873
44842
  },
44874
44843
  {
44875
- label: '{{t("does not contain")}}',
44844
+ label: '{{t("is none of")}}',
44876
44845
  value: "$notIn",
44877
44846
  schema: {
44878
44847
  "x-component": "CollectionSelect",
@@ -45600,6 +45569,14 @@ const string = [
45600
45569
  "x-decorator": "FormItem",
45601
45570
  "x-component": "Input.TextArea"
45602
45571
  },
45572
+ simplePaginate: {
45573
+ "x-content": '{{t("Use simple pagination mode")}}',
45574
+ type: "string",
45575
+ name: "simplePaginate",
45576
+ "x-decorator": "FormItem",
45577
+ "x-component": "Checkbox",
45578
+ description: '{{t("Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data")}}'
45579
+ },
45603
45580
  presetFields: {
45604
45581
  title: '{{t("Preset fields")}}',
45605
45582
  type: "void",
@@ -49042,6 +49019,7 @@ class GeneralCollectionTemplate extends CollectionTemplate {
49042
49019
  "inherits",
49043
49020
  "category",
49044
49021
  "description",
49022
+ "simplePaginate",
49045
49023
  "presetFields"
49046
49024
  ));
49047
49025
  }
@@ -57807,7 +57785,6 @@ export {
57807
57785
  SchemaSettingsManager,
57808
57786
  SchemaSettingsModalItem,
57809
57787
  SchemaSettingsNumberFormat,
57810
- SchemaSettingsPagingMode,
57811
57788
  SchemaSettingsPlugin,
57812
57789
  SchemaSettingsPopupItem,
57813
57790
  SchemaSettingsProvider,
@@ -11,9 +11,6 @@ import type { IUploadProps, UploadProps } from './type';
11
11
  export declare const FILE_SIZE_LIMIT_DEFAULT: number;
12
12
  export declare const isImage: (file: any) => any;
13
13
  export declare const isPdf: (file: any) => any;
14
- export declare const toMap: (fileList: any) => any;
15
- export declare const toImages: (fileList: any) => any;
16
- export declare const toArr: (value: any) => any[];
17
14
  export declare const testOpts: (ext: RegExp, options: {
18
15
  exclude?: string[];
19
16
  include?: string[];
@@ -20,7 +20,6 @@ export * from './SchemaSettingsSortingRule';
20
20
  export * from './SchemaSettingsTemplate';
21
21
  export * from './SchemaSettingsBlockHeightItem';
22
22
  export * from './setDefaultSortingRulesSchemaSettingsItem';
23
- export * from './SchemaSettingsPagingMode';
24
23
  export * from './setTheDataScopeSchemaSettingsItem';
25
24
  export * from './hooks/useGetAriaLabelOfDesigner';
26
25
  export * from './hooks/useIsAllowToSetDefaultValue';