@nocobase/client 1.2.37-alpha → 1.2.38-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.
- package/es/collection-manager/templates/properties/index.d.ts +8 -1
- package/es/collection-manager/templates/sql.d.ts +1 -0
- package/es/collection-manager/templates/view.d.ts +1 -0
- package/es/index.mjs +73 -98
- package/es/schema-component/antd/upload/shared.d.ts +0 -3
- package/es/schema-settings/index.d.ts +0 -1
- package/lib/index.js +32 -32
- package/lib/locale/en_US.js +3 -1
- package/lib/locale/zh-CN.js +3 -2
- package/package.json +5 -5
- package/es/schema-settings/SchemaSettingsPagingMode.d.ts +0 -10
|
@@ -56,6 +56,13 @@ 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
|
+
};
|
|
59
66
|
presetFields: {
|
|
60
67
|
title: string;
|
|
61
68
|
type: string;
|
|
@@ -71,5 +78,5 @@ export declare const defaultConfigurableProperties: {
|
|
|
71
78
|
};
|
|
72
79
|
};
|
|
73
80
|
};
|
|
74
|
-
export type DefaultConfigurableKeys = 'name' | 'title' | 'inherits' | 'category' | 'autoGenId' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'sortable' | 'description' | 'presetFields';
|
|
81
|
+
export type DefaultConfigurableKeys = 'name' | 'title' | 'inherits' | 'category' | 'autoGenId' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'sortable' | 'description' | 'simplePaginate' | 'presetFields';
|
|
75
82
|
export declare const getConfigurableProperties: (...keys: DefaultConfigurableKeys[]) => Record<DefaultConfigurableKeys, any>;
|
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
|
|
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
|
|
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) &&
|
|
9
|
-
if (
|
|
10
|
-
for (var o of
|
|
11
|
-
Be.call(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 &&
|
|
19
|
-
for (var n of
|
|
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) => (
|
|
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
|
|
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.
|
|
3980
|
+
const name = "@nocobase/client", version$1 = "1.2.38-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.
|
|
4005
|
-
"@nocobase/sdk": "1.2.
|
|
4006
|
-
"@nocobase/utils": "1.2.
|
|
4001
|
+
"@nocobase/evaluators": "1.2.38-alpha",
|
|
4002
|
+
"@nocobase/sdk": "1.2.38-alpha",
|
|
4003
|
+
"@nocobase/utils": "1.2.38-alpha",
|
|
4007
4004
|
ahooks: "^3.7.2",
|
|
4008
4005
|
antd: "^5.12.8",
|
|
4009
4006
|
"antd-style": "3.4.5",
|
|
@@ -6979,7 +6976,7 @@ function getPlugins(e) {
|
|
|
6979
6976
|
const r = [], i = {};
|
|
6980
6977
|
if (n) {
|
|
6981
6978
|
try {
|
|
6982
|
-
for (var c =
|
|
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 =
|
|
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 =
|
|
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 = () => {
|
|
@@ -19366,7 +19326,13 @@ const SchemaSettingsProvider = (e) => {
|
|
|
19366
19326
|
const k = useCallback(() => {
|
|
19367
19327
|
m(!1), A.reset();
|
|
19368
19328
|
}, [A]), w = useCallback(() => V(void 0, null, function* () {
|
|
19369
|
-
yield A.submit()
|
|
19329
|
+
yield A.submit();
|
|
19330
|
+
try {
|
|
19331
|
+
const O = A.values, z = Object.keys(O).reduce((R, j) => (A.query(j).take() && (R[j] = O[j]), R), {});
|
|
19332
|
+
yield o == null ? void 0 : o(cloneDeep$1(z)), m(!1);
|
|
19333
|
+
} catch (O) {
|
|
19334
|
+
console.error(O);
|
|
19335
|
+
}
|
|
19370
19336
|
}), [A, o]), M = useCallback(() => V(void 0, null, function* () {
|
|
19371
19337
|
!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
19338
|
}), [v, S, b, C, i, h]), N = useCallback((O) => O.stopPropagation(), []);
|
|
@@ -21904,7 +21870,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21904
21870
|
});
|
|
21905
21871
|
});
|
|
21906
21872
|
}, [R, Q, se, te]);
|
|
21907
|
-
const
|
|
21873
|
+
const ve = useCallback(
|
|
21908
21874
|
(Z, ne = !0) => {
|
|
21909
21875
|
if (!(ne && isPortalInBody(Z.target)) && (Z.preventDefault(), Z.stopPropagation(), !X && v)) {
|
|
21910
21876
|
const ie = () => {
|
|
@@ -21921,18 +21887,18 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21921
21887
|
}
|
|
21922
21888
|
},
|
|
21923
21889
|
[o, X, re, d, j]
|
|
21924
|
-
),
|
|
21890
|
+
), Fe = useMemo(() => {
|
|
21925
21891
|
var Z;
|
|
21926
21892
|
return F(g({}, p), {
|
|
21927
21893
|
opacity: J && (((Z = R == null ? void 0 : R.data) == null ? void 0 : Z.hidden) || !v) && 0.1,
|
|
21928
21894
|
color: X ? "rgba(0, 0, 0, 0.25)" : null
|
|
21929
21895
|
});
|
|
21930
|
-
}, [J, (ee = R == null ? void 0 : R.data) == null ? void 0 : ee.hidden, p, X]),
|
|
21896
|
+
}, [J, (ee = R == null ? void 0 : R.data) == null ? void 0 : ee.hidden, p, X]), xe = useCallback(
|
|
21931
21897
|
(Z) => {
|
|
21932
21898
|
S == null || S(Z);
|
|
21933
21899
|
},
|
|
21934
21900
|
[S]
|
|
21935
|
-
),
|
|
21901
|
+
), Ce = () => {
|
|
21936
21902
|
var Z, ne;
|
|
21937
21903
|
return !J && ((Z = R == null ? void 0 : R.data) != null && Z.hidden || !v) ? null : /* @__PURE__ */ jsxs(
|
|
21938
21904
|
SortableItem,
|
|
@@ -21940,12 +21906,12 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21940
21906
|
role: "button",
|
|
21941
21907
|
"aria-label": ae()
|
|
21942
21908
|
}, y), {
|
|
21943
|
-
onMouseEnter:
|
|
21909
|
+
onMouseEnter: xe,
|
|
21944
21910
|
loading: ((ne = R == null ? void 0 : R.data) == null ? void 0 : ne.loading) || m,
|
|
21945
21911
|
icon: typeof c == "string" ? /* @__PURE__ */ jsx(Icon, { type: c }) : c,
|
|
21946
21912
|
disabled: X,
|
|
21947
|
-
style:
|
|
21948
|
-
onClick:
|
|
21913
|
+
style: Fe,
|
|
21914
|
+
onClick: ve,
|
|
21949
21915
|
component: oe || Button,
|
|
21950
21916
|
className: cls(A, k, l, "nb-action"),
|
|
21951
21917
|
type: e.type === "danger" ? void 0 : e.type,
|
|
@@ -21955,10 +21921,10 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21955
21921
|
]
|
|
21956
21922
|
})
|
|
21957
21923
|
);
|
|
21958
|
-
},
|
|
21924
|
+
}, Se = Ce(), de = /* @__PURE__ */ jsxs(
|
|
21959
21925
|
ActionContextProvider,
|
|
21960
21926
|
{
|
|
21961
|
-
button:
|
|
21927
|
+
button: Se,
|
|
21962
21928
|
visible: M,
|
|
21963
21929
|
setVisible: N,
|
|
21964
21930
|
formValueChanged: E,
|
|
@@ -21969,7 +21935,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21969
21935
|
fieldSchema: D,
|
|
21970
21936
|
children: [
|
|
21971
21937
|
t && /* @__PURE__ */ jsx(RecursionField, { basePath: R.address, onlyRenderProperties: !0, schema: D }),
|
|
21972
|
-
!t &&
|
|
21938
|
+
!t && Ce(),
|
|
21973
21939
|
/* @__PURE__ */ jsx(VariablePopupRecordProvider, { children: !t && e.children }),
|
|
21974
21940
|
B
|
|
21975
21941
|
]
|
|
@@ -32689,8 +32655,8 @@ const toItem = (e) => {
|
|
|
32689
32655
|
}, e.response.data)), F(g({}, e), {
|
|
32690
32656
|
id: e.id || e.uid,
|
|
32691
32657
|
title: e.title || e.name,
|
|
32692
|
-
imageUrl: getImageByUrl(e.url, {
|
|
32693
|
-
exclude: [".png", ".jpg", ".jpeg", ".gif"]
|
|
32658
|
+
imageUrl: isImage(e) ? e.url : getImageByUrl(e.url, {
|
|
32659
|
+
exclude: [".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".bmp", ".ico"]
|
|
32694
32660
|
})
|
|
32695
32661
|
});
|
|
32696
32662
|
}, toFileList = (e) => toArr$1(e).filter(Boolean).map(toItem), Rules = {
|
|
@@ -34450,7 +34416,10 @@ const CreateRecordAction$1 = forwardRef(InternalCreateRecordAction), initializer
|
|
|
34450
34416
|
{
|
|
34451
34417
|
style: { zIndex: 1e3, color: "#a8a3a3" },
|
|
34452
34418
|
onClick: () => {
|
|
34453
|
-
action(() => (n
|
|
34419
|
+
action(() => (spliceArrayState(n, {
|
|
34420
|
+
startIndex: p,
|
|
34421
|
+
deleteCount: 1
|
|
34422
|
+
}), n.value.splice(p, 1), n.onInput(n.value)));
|
|
34454
34423
|
}
|
|
34455
34424
|
}
|
|
34456
34425
|
) }, "remove")
|
|
@@ -34784,7 +34753,7 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
34784
34753
|
`, 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
34754
|
observer$1((e) => {
|
|
34786
34755
|
var me, he, ge, fe;
|
|
34787
|
-
const { token: t } = useToken(),
|
|
34756
|
+
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
34757
|
dragSort: l = !1,
|
|
34789
34758
|
showIndex: c = !0,
|
|
34790
34759
|
onRowSelectionChange: u,
|
|
@@ -34846,13 +34815,13 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
34846
34815
|
DndContext,
|
|
34847
34816
|
{
|
|
34848
34817
|
onDragEnd: (Z) => {
|
|
34849
|
-
var
|
|
34818
|
+
var Ae, ke, Te, we, Re, De;
|
|
34850
34819
|
if (!Z.active || !Z.over) {
|
|
34851
34820
|
console.warn("move cancel");
|
|
34852
34821
|
return;
|
|
34853
34822
|
}
|
|
34854
|
-
const ne = (Te = (
|
|
34855
|
-
b.move(ne, ie), N({ from: le, to:
|
|
34823
|
+
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;
|
|
34824
|
+
b.move(ne, ie), N({ from: le, to: Pe });
|
|
34856
34825
|
},
|
|
34857
34826
|
children: /* @__PURE__ */ jsx("tbody", g({}, ee))
|
|
34858
34827
|
}
|
|
@@ -34892,11 +34861,10 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
34892
34861
|
};
|
|
34893
34862
|
},
|
|
34894
34863
|
renderCell: (ee, Z, ne, ie) => {
|
|
34895
|
-
var xe, Ce;
|
|
34896
34864
|
if (!l && !c)
|
|
34897
34865
|
return ie;
|
|
34898
|
-
const le =
|
|
34899
|
-
return le ? ne = ne + (le - 1) *
|
|
34866
|
+
const le = E == null ? void 0 : E.current, Pe = (E == null ? void 0 : E.pageSize) || 20;
|
|
34867
|
+
return le ? ne = ne + (le - 1) * Pe + 1 : ne = ne + 1, Z.__index && (ne = extractIndex(Z.__index)), /* @__PURE__ */ jsxs(
|
|
34900
34868
|
"div",
|
|
34901
34869
|
{
|
|
34902
34870
|
role: "button",
|
|
@@ -34935,7 +34903,8 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
34935
34903
|
b,
|
|
34936
34904
|
H,
|
|
34937
34905
|
D,
|
|
34938
|
-
re
|
|
34906
|
+
re,
|
|
34907
|
+
E
|
|
34939
34908
|
]
|
|
34940
34909
|
), se = useCallback(
|
|
34941
34910
|
({ children: ee }) => {
|
|
@@ -34951,22 +34920,22 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
34951
34920
|
[b, l, H]
|
|
34952
34921
|
), { height: ae, tableSizeRefCallback: ce } = useTableSize(), ue = useMemo(() => ({
|
|
34953
34922
|
x: "max-content"
|
|
34954
|
-
}), []),
|
|
34923
|
+
}), []), ve = useMemo(() => ({
|
|
34955
34924
|
x: "max-content",
|
|
34956
34925
|
y: ae
|
|
34957
|
-
}), [ae, ue]),
|
|
34926
|
+
}), [ae, ue]), Fe = useCallback(
|
|
34958
34927
|
(ee) => B.includes(ee[m]) ? L : "",
|
|
34959
34928
|
[B, L, m]
|
|
34960
|
-
),
|
|
34929
|
+
), xe = useCallback(
|
|
34961
34930
|
(ee, Z) => {
|
|
34962
34931
|
const ne = ee ? [...O, Z[I.getPrimaryKey()]] : O.filter((ie) => Z[I.getPrimaryKey()] !== ie);
|
|
34963
34932
|
z(ne), f == null || f(ee, Z);
|
|
34964
34933
|
},
|
|
34965
34934
|
[O, f, I]
|
|
34966
|
-
),
|
|
34967
|
-
onExpand:
|
|
34935
|
+
), Ce = useMemo(() => ({
|
|
34936
|
+
onExpand: xe,
|
|
34968
34937
|
expandedRowKeys: O
|
|
34969
|
-
}), [O,
|
|
34938
|
+
}), [O, xe]);
|
|
34970
34939
|
return /* @__PURE__ */ jsxs(
|
|
34971
34940
|
"div",
|
|
34972
34941
|
{
|
|
@@ -35006,10 +34975,10 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
35006
34975
|
components: oe,
|
|
35007
34976
|
onChange: d,
|
|
35008
34977
|
onRow: G,
|
|
35009
|
-
rowClassName:
|
|
35010
|
-
scroll:
|
|
34978
|
+
rowClassName: Fe,
|
|
34979
|
+
scroll: ve,
|
|
35011
34980
|
columns: y,
|
|
35012
|
-
expandable:
|
|
34981
|
+
expandable: Ce
|
|
35013
34982
|
})
|
|
35014
34983
|
) }),
|
|
35015
34984
|
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 +40563,6 @@ const TableActionColumnDesigner = (e) => {
|
|
|
40594
40563
|
}
|
|
40595
40564
|
}
|
|
40596
40565
|
),
|
|
40597
|
-
/* @__PURE__ */ jsx(SchemaSettingsPagingMode, {}),
|
|
40598
40566
|
/* @__PURE__ */ jsx(SchemaSettingsConnectDataBlocks, { type: FilterBlockType.TABLE, emptyDescription: u("No blocks to connect") }),
|
|
40599
40567
|
h && /* @__PURE__ */ jsx(SchemaSettingsDivider, {}),
|
|
40600
40568
|
h && /* @__PURE__ */ jsx(SchemaSettingsTemplate, { componentName: "Table", collectionName: e, resourceName: m }),
|
|
@@ -44752,7 +44720,7 @@ const string = [
|
|
|
44752
44720
|
}
|
|
44753
44721
|
},
|
|
44754
44722
|
{
|
|
44755
|
-
label: '{{t("
|
|
44723
|
+
label: '{{t("is any of")}}',
|
|
44756
44724
|
value: "$anyOf",
|
|
44757
44725
|
schema: {
|
|
44758
44726
|
"x-component": "Select",
|
|
@@ -44760,7 +44728,7 @@ const string = [
|
|
|
44760
44728
|
}
|
|
44761
44729
|
},
|
|
44762
44730
|
{
|
|
44763
|
-
label: '{{t("
|
|
44731
|
+
label: '{{t("is none of")}}',
|
|
44764
44732
|
value: "$noneOf",
|
|
44765
44733
|
schema: {
|
|
44766
44734
|
"x-component": "Select",
|
|
@@ -44809,7 +44777,7 @@ const string = [
|
|
|
44809
44777
|
schema: { "x-component": "Select" }
|
|
44810
44778
|
},
|
|
44811
44779
|
{
|
|
44812
|
-
label: '{{t("
|
|
44780
|
+
label: '{{t("is any of")}}',
|
|
44813
44781
|
value: "$in",
|
|
44814
44782
|
schema: {
|
|
44815
44783
|
"x-component": "Select",
|
|
@@ -44817,7 +44785,7 @@ const string = [
|
|
|
44817
44785
|
}
|
|
44818
44786
|
},
|
|
44819
44787
|
{
|
|
44820
|
-
label: '{{t("
|
|
44788
|
+
label: '{{t("is none of")}}',
|
|
44821
44789
|
value: "$notIn",
|
|
44822
44790
|
schema: {
|
|
44823
44791
|
"x-component": "Select",
|
|
@@ -44836,7 +44804,7 @@ const string = [
|
|
|
44836
44804
|
{ label: '{{t("No")}}', value: "$isFalsy", noValue: !0 }
|
|
44837
44805
|
], tableoid = [
|
|
44838
44806
|
{
|
|
44839
|
-
label: '{{t("
|
|
44807
|
+
label: '{{t("is any of")}}',
|
|
44840
44808
|
value: "$childIn",
|
|
44841
44809
|
schema: {
|
|
44842
44810
|
"x-component": "CollectionSelect",
|
|
@@ -44844,7 +44812,7 @@ const string = [
|
|
|
44844
44812
|
}
|
|
44845
44813
|
},
|
|
44846
44814
|
{
|
|
44847
|
-
label: '{{t("
|
|
44815
|
+
label: '{{t("is none of")}}',
|
|
44848
44816
|
value: "$childNotIn",
|
|
44849
44817
|
schema: {
|
|
44850
44818
|
"x-component": "CollectionSelect",
|
|
@@ -44864,7 +44832,7 @@ const string = [
|
|
|
44864
44832
|
schema: { "x-component": "CollectionSelect" }
|
|
44865
44833
|
},
|
|
44866
44834
|
{
|
|
44867
|
-
label: '{{t("
|
|
44835
|
+
label: '{{t("is any of")}}',
|
|
44868
44836
|
value: "$in",
|
|
44869
44837
|
schema: {
|
|
44870
44838
|
"x-component": "CollectionSelect",
|
|
@@ -44872,7 +44840,7 @@ const string = [
|
|
|
44872
44840
|
}
|
|
44873
44841
|
},
|
|
44874
44842
|
{
|
|
44875
|
-
label: '{{t("
|
|
44843
|
+
label: '{{t("is none of")}}',
|
|
44876
44844
|
value: "$notIn",
|
|
44877
44845
|
schema: {
|
|
44878
44846
|
"x-component": "CollectionSelect",
|
|
@@ -45600,6 +45568,13 @@ const string = [
|
|
|
45600
45568
|
"x-decorator": "FormItem",
|
|
45601
45569
|
"x-component": "Input.TextArea"
|
|
45602
45570
|
},
|
|
45571
|
+
simplePaginate: {
|
|
45572
|
+
"x-content": '{{t("Use simple pagination mode")}}',
|
|
45573
|
+
type: "string",
|
|
45574
|
+
name: "simplePaginate",
|
|
45575
|
+
"x-decorator": "FormItem",
|
|
45576
|
+
"x-component": "Checkbox"
|
|
45577
|
+
},
|
|
45603
45578
|
presetFields: {
|
|
45604
45579
|
title: '{{t("Preset fields")}}',
|
|
45605
45580
|
type: "void",
|
|
@@ -49042,6 +49017,7 @@ class GeneralCollectionTemplate extends CollectionTemplate {
|
|
|
49042
49017
|
"inherits",
|
|
49043
49018
|
"category",
|
|
49044
49019
|
"description",
|
|
49020
|
+
"simplePaginate",
|
|
49045
49021
|
"presetFields"
|
|
49046
49022
|
));
|
|
49047
49023
|
}
|
|
@@ -57807,7 +57783,6 @@ export {
|
|
|
57807
57783
|
SchemaSettingsManager,
|
|
57808
57784
|
SchemaSettingsModalItem,
|
|
57809
57785
|
SchemaSettingsNumberFormat,
|
|
57810
|
-
SchemaSettingsPagingMode,
|
|
57811
57786
|
SchemaSettingsPlugin,
|
|
57812
57787
|
SchemaSettingsPopupItem,
|
|
57813
57788
|
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';
|