@nocobase/client 1.2.3-alpha → 1.2.4-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/application/schema-initializer/components/SchemaInitializerActionModal.d.ts +1 -0
- package/es/application/schema-initializer/components/SchemaInitializerItem.d.ts +4 -0
- package/es/application/schema-initializer/types.d.ts +1 -1
- package/es/data-source/collection/AssociationProvider.d.ts +4 -0
- package/es/index.mjs +159 -147
- package/lib/index.js +16 -13
- package/lib/locale/ja_JP.js +1 -1
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var $e = Object.defineProperty, Ne = Object.defineProperties;
|
|
2
2
|
var ze = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var ve = 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
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) => {
|
|
7
7
|
for (var o in t || (t = {}))
|
|
8
8
|
Me.call(t, o) && ke(e, o, t[o]);
|
|
9
|
-
if (
|
|
10
|
-
for (var o of
|
|
9
|
+
if (ve)
|
|
10
|
+
for (var o of ve(t))
|
|
11
11
|
Be.call(t, o) && ke(e, o, t[o]);
|
|
12
12
|
return e;
|
|
13
13
|
}, F = (e, t) => Ne(e, ze(t));
|
|
@@ -15,8 +15,8 @@ var H = (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 && ve)
|
|
19
|
+
for (var n of ve(e))
|
|
20
20
|
t.indexOf(n) < 0 && Be.call(e, n) && (o[n] = e[n]);
|
|
21
21
|
return o;
|
|
22
22
|
};
|
|
@@ -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 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);
|
|
41
41
|
import "./index.css";
|
|
42
42
|
import "dayjs/plugin/isBetween";
|
|
43
43
|
import "dayjs/plugin/isSameOrAfter";
|
|
@@ -3902,7 +3902,7 @@ function addAppVersion(e, t) {
|
|
|
3902
3902
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
3903
3903
|
}), e;
|
|
3904
3904
|
}
|
|
3905
|
-
const name = "@nocobase/client", version$1 = "1.2.
|
|
3905
|
+
const name = "@nocobase/client", version$1 = "1.2.4-alpha", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
3906
3906
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
3907
3907
|
"@ant-design/cssinjs": "^1.11.1",
|
|
3908
3908
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -3923,9 +3923,9 @@ const name = "@nocobase/client", version$1 = "1.2.3-alpha", license = "AGPL-3.0"
|
|
|
3923
3923
|
"@formily/reactive-react": "^2.2.27",
|
|
3924
3924
|
"@formily/shared": "^2.2.27",
|
|
3925
3925
|
"@formily/validator": "^2.2.27",
|
|
3926
|
-
"@nocobase/evaluators": "1.2.
|
|
3927
|
-
"@nocobase/sdk": "1.2.
|
|
3928
|
-
"@nocobase/utils": "1.2.
|
|
3926
|
+
"@nocobase/evaluators": "1.2.4-alpha",
|
|
3927
|
+
"@nocobase/sdk": "1.2.4-alpha",
|
|
3928
|
+
"@nocobase/utils": "1.2.4-alpha",
|
|
3929
3929
|
ahooks: "^3.7.2",
|
|
3930
3930
|
antd: "^5.12.8",
|
|
3931
3931
|
"antd-style": "3.4.5",
|
|
@@ -6360,7 +6360,7 @@ function getPlugins(e) {
|
|
|
6360
6360
|
const r = [], i = {};
|
|
6361
6361
|
if (n) {
|
|
6362
6362
|
try {
|
|
6363
|
-
for (var c =
|
|
6363
|
+
for (var c = Fe(o), u, d, p; u = !(d = yield c.next()).done; u = !1) {
|
|
6364
6364
|
const m = d.value;
|
|
6365
6365
|
const h = yield n(m.packageName);
|
|
6366
6366
|
h && (r.push([m.name, h.default]), i[m.packageName] = h.default);
|
|
@@ -6402,7 +6402,7 @@ let PluginManager$1 = class {
|
|
|
6402
6402
|
initStaticPlugins() {
|
|
6403
6403
|
return V(this, arguments, function* (t = []) {
|
|
6404
6404
|
try {
|
|
6405
|
-
for (var o =
|
|
6405
|
+
for (var o = Fe(t), n, r, i; n = !(r = yield o.next()).done; n = !1) {
|
|
6406
6406
|
const a = r.value;
|
|
6407
6407
|
const l = Array.isArray(a) ? a[0] : a, c = Array.isArray(a) ? a[1] : void 0;
|
|
6408
6408
|
yield this.add(l, c);
|
|
@@ -6428,7 +6428,7 @@ let PluginManager$1 = class {
|
|
|
6428
6428
|
devDynamicImport: this.app.devDynamicImport
|
|
6429
6429
|
});
|
|
6430
6430
|
try {
|
|
6431
|
-
for (var i =
|
|
6431
|
+
for (var i = Fe(n), a, l, c; a = !(l = yield i.next()).done; a = !1) {
|
|
6432
6432
|
const [u, d] = l.value;
|
|
6433
6433
|
const p = o.find((m) => m.name === u);
|
|
6434
6434
|
yield this.add(d, p);
|
|
@@ -7146,37 +7146,48 @@ const SchemaInitializerSubMenuContext = React.createContext({}), SchemaInitializ
|
|
|
7146
7146
|
};
|
|
7147
7147
|
}, SchemaInitializerItem = memo(
|
|
7148
7148
|
React.forwardRef((e, t) => {
|
|
7149
|
-
const {
|
|
7150
|
-
|
|
7149
|
+
const {
|
|
7150
|
+
style: o,
|
|
7151
|
+
closeInitializerMenuWhenClick: n = !0,
|
|
7152
|
+
name: r = uid(),
|
|
7153
|
+
applyMenuStyle: i = !0,
|
|
7154
|
+
className: a,
|
|
7155
|
+
items: l,
|
|
7156
|
+
icon: c,
|
|
7157
|
+
title: u,
|
|
7158
|
+
onClick: d,
|
|
7159
|
+
children: p
|
|
7160
|
+
} = e, m = useCompile(), h = useSchemaInitializerMenuItems(l, r, d), { componentCls: x, hashId: f } = useSchemaInitializerStyles(), { attribute: C } = useAriaAttributeOfMenuItem(), { setVisible: S } = useSchemaInitializer(), b = useMemo(() => {
|
|
7161
|
+
if (l && l.length > 0)
|
|
7151
7162
|
return [
|
|
7152
7163
|
{
|
|
7153
|
-
key:
|
|
7164
|
+
key: r,
|
|
7154
7165
|
style: o,
|
|
7155
|
-
className:
|
|
7156
|
-
label:
|
|
7157
|
-
onClick: (
|
|
7158
|
-
|
|
7166
|
+
className: a,
|
|
7167
|
+
label: p || m(u),
|
|
7168
|
+
onClick: (y) => {
|
|
7169
|
+
y.key === r && (n && (S == null || S(!1)), d == null || d(F(g({}, y), { item: e })));
|
|
7159
7170
|
},
|
|
7160
|
-
icon: typeof
|
|
7161
|
-
children:
|
|
7171
|
+
icon: typeof c == "string" ? /* @__PURE__ */ jsx(Icon, { type: c }) : c,
|
|
7172
|
+
children: h
|
|
7162
7173
|
}
|
|
7163
7174
|
];
|
|
7164
|
-
}, [
|
|
7165
|
-
return
|
|
7175
|
+
}, [r, o, a, p, u, d, c, h]);
|
|
7176
|
+
return l && l.length > 0 ? /* @__PURE__ */ jsx(SchemaInitializerMenu, { items: b }) : /* @__PURE__ */ jsx(
|
|
7166
7177
|
"div",
|
|
7167
7178
|
{
|
|
7168
7179
|
ref: t,
|
|
7169
|
-
onClick: (
|
|
7170
|
-
|
|
7180
|
+
onClick: (y) => {
|
|
7181
|
+
y.stopPropagation(), n && (S == null || S(!1)), d == null || d({ event: y, item: e });
|
|
7171
7182
|
},
|
|
7172
7183
|
children: /* @__PURE__ */ jsx(
|
|
7173
7184
|
"div",
|
|
7174
|
-
F(g({},
|
|
7175
|
-
className: cls({ [`${
|
|
7185
|
+
F(g({}, C), {
|
|
7186
|
+
className: cls({ [`${x}-menu-item`]: i }, a),
|
|
7176
7187
|
style: o,
|
|
7177
|
-
children:
|
|
7178
|
-
|
|
7179
|
-
/* @__PURE__ */ jsx("span", { className: cls({ [`${
|
|
7188
|
+
children: p || /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7189
|
+
typeof c == "string" ? /* @__PURE__ */ jsx(Icon, { type: c }) : c,
|
|
7190
|
+
/* @__PURE__ */ jsx("span", { className: cls({ [`${f} ${x}-item-content`]: !!c }), children: m(u) })
|
|
7180
7191
|
] })
|
|
7181
7192
|
})
|
|
7182
7193
|
)
|
|
@@ -7190,7 +7201,7 @@ const SchemaInitializerItemInternal = () => {
|
|
|
7190
7201
|
return /* @__PURE__ */ jsx(SchemaInitializerItem, g({}, e));
|
|
7191
7202
|
}, SchemaInitializerSwitch = (e) => {
|
|
7192
7203
|
const i = e, { title: t, checked: o } = i, n = H(i, ["title", "checked"]), r = useCompile();
|
|
7193
|
-
return /* @__PURE__ */ jsx(SchemaInitializerItem, F(g({}, n), { children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
7204
|
+
return /* @__PURE__ */ jsx(SchemaInitializerItem, F(g({}, n), { closeInitializerMenuWhenClick: !1, children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
7194
7205
|
r(t),
|
|
7195
7206
|
" ",
|
|
7196
7207
|
/* @__PURE__ */ jsx(Switch, { style: { marginLeft: 20 }, size: "small", checked: o })
|
|
@@ -7267,54 +7278,48 @@ const SchemaInitializerDivider = () => {
|
|
|
7267
7278
|
const { items: t } = e;
|
|
7268
7279
|
return t.length === 0 ? null : /* @__PURE__ */ jsx(SchemaInitializerChildren, { children: t });
|
|
7269
7280
|
}, SchemaInitializerActionModalItemComponent = React.forwardRef((e, t) => {
|
|
7270
|
-
const
|
|
7271
|
-
return /* @__PURE__ */ jsx(
|
|
7272
|
-
SchemaInitializerItem,
|
|
7273
|
-
F(g({
|
|
7274
|
-
ref: t
|
|
7275
|
-
}, r), {
|
|
7276
|
-
onClick: (a) => {
|
|
7277
|
-
o == null || o(a.event);
|
|
7278
|
-
}
|
|
7279
|
-
})
|
|
7280
|
-
);
|
|
7281
|
+
const r = e, { onClick: o } = r, n = H(r, ["onClick"]);
|
|
7282
|
+
return /* @__PURE__ */ jsx(SchemaInitializerItem, F(g({ ref: t }, n), { onClick: (i) => o == null ? void 0 : o(i.event, !1) }));
|
|
7281
7283
|
}), SchemaInitializerActionModal = (e) => {
|
|
7282
|
-
const { title: t,
|
|
7283
|
-
const
|
|
7284
|
+
const { title: t, icon: o, schema: n, buttonText: r, isItem: i, component: a, onCancel: l, onSubmit: c } = e, u = useCallback(() => {
|
|
7285
|
+
const x = useForm(), f = useActionContext();
|
|
7284
7286
|
return {
|
|
7285
7287
|
run() {
|
|
7286
7288
|
return V(this, null, function* () {
|
|
7287
|
-
yield
|
|
7289
|
+
yield l == null ? void 0 : l(), f.setVisible(!1), x.reset();
|
|
7288
7290
|
});
|
|
7289
7291
|
}
|
|
7290
7292
|
};
|
|
7291
|
-
}, [
|
|
7292
|
-
const
|
|
7293
|
+
}, [l]), d = useCallback(() => {
|
|
7294
|
+
const x = useForm(), f = useActionContext();
|
|
7293
7295
|
return {
|
|
7294
7296
|
run() {
|
|
7295
7297
|
return V(this, null, function* () {
|
|
7296
|
-
yield
|
|
7298
|
+
yield x.validate(), yield c == null ? void 0 : c(x.values), f.setVisible(!1), x.reset();
|
|
7297
7299
|
});
|
|
7298
7300
|
}
|
|
7299
7301
|
};
|
|
7300
|
-
}, [
|
|
7302
|
+
}, [c]), p = useMemo(
|
|
7303
|
+
() => React.forwardRef(({ onClick: x }, f) => /* @__PURE__ */ jsx(SchemaInitializerActionModalItemComponent, { onClick: x, ref: f, title: r, icon: o })),
|
|
7304
|
+
[r, o]
|
|
7305
|
+
), m = useMemo(() => uid(), []), h = useMemo(() => ({
|
|
7301
7306
|
type: "void",
|
|
7302
7307
|
properties: {
|
|
7303
|
-
|
|
7308
|
+
[m]: {
|
|
7304
7309
|
type: "void",
|
|
7305
7310
|
"x-component": "Action",
|
|
7306
|
-
"x-component-props":
|
|
7307
|
-
component:
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
component:
|
|
7311
|
+
"x-component-props": a ? {
|
|
7312
|
+
component: a,
|
|
7313
|
+
icon: o
|
|
7314
|
+
} : i ? {
|
|
7315
|
+
component: p
|
|
7311
7316
|
} : {
|
|
7312
|
-
icon: "PlusOutlined",
|
|
7317
|
+
icon: o || "PlusOutlined",
|
|
7313
7318
|
style: {
|
|
7314
7319
|
borderColor: "var(--colorSettings)",
|
|
7315
7320
|
color: "var(--colorSettings)"
|
|
7316
7321
|
},
|
|
7317
|
-
title:
|
|
7322
|
+
title: r,
|
|
7318
7323
|
type: "dashed"
|
|
7319
7324
|
},
|
|
7320
7325
|
properties: {
|
|
@@ -7329,7 +7334,7 @@ const SchemaInitializerDivider = () => {
|
|
|
7329
7334
|
},
|
|
7330
7335
|
type: "void",
|
|
7331
7336
|
title: t,
|
|
7332
|
-
properties: F(g({}, (
|
|
7337
|
+
properties: F(g({}, (n == null ? void 0 : n.properties) || n), {
|
|
7333
7338
|
footer: {
|
|
7334
7339
|
"x-component": "Action.Modal.Footer",
|
|
7335
7340
|
type: "void",
|
|
@@ -7338,7 +7343,7 @@ const SchemaInitializerDivider = () => {
|
|
|
7338
7343
|
title: '{{t("Cancel")}}',
|
|
7339
7344
|
"x-component": "Action",
|
|
7340
7345
|
"x-component-props": {
|
|
7341
|
-
useAction:
|
|
7346
|
+
useAction: u
|
|
7342
7347
|
}
|
|
7343
7348
|
},
|
|
7344
7349
|
submit: {
|
|
@@ -7346,7 +7351,7 @@ const SchemaInitializerDivider = () => {
|
|
|
7346
7351
|
"x-component": "Action",
|
|
7347
7352
|
"x-component-props": {
|
|
7348
7353
|
type: "primary",
|
|
7349
|
-
useAction:
|
|
7354
|
+
useAction: d
|
|
7350
7355
|
}
|
|
7351
7356
|
}
|
|
7352
7357
|
}
|
|
@@ -7356,8 +7361,8 @@ const SchemaInitializerDivider = () => {
|
|
|
7356
7361
|
}
|
|
7357
7362
|
}
|
|
7358
7363
|
}
|
|
7359
|
-
}), [
|
|
7360
|
-
return /* @__PURE__ */ jsx(SchemaComponent, { schema:
|
|
7364
|
+
}), [r, a, m, n, t, u, d]);
|
|
7365
|
+
return /* @__PURE__ */ jsx(SchemaComponent, { schema: h });
|
|
7361
7366
|
}, SchemaInitializerActionModalInternal = () => {
|
|
7362
7367
|
const e = useSchemaInitializerItem();
|
|
7363
7368
|
return /* @__PURE__ */ jsx(SchemaInitializerActionModal, g({}, e));
|
|
@@ -11475,13 +11480,13 @@ const useGetAriaLabelOfDesigner = () => {
|
|
|
11475
11480
|
{
|
|
11476
11481
|
title: e("Column width"),
|
|
11477
11482
|
component: React.forwardRef((r, i) => {
|
|
11478
|
-
const
|
|
11483
|
+
const u = r, { children: a, onClick: l } = u, c = H(u, ["children", "onClick"]);
|
|
11479
11484
|
return /* @__PURE__ */ jsx(
|
|
11480
11485
|
SchemaInitializerItem,
|
|
11481
11486
|
F(g({
|
|
11482
11487
|
ref: i,
|
|
11483
|
-
onClick: ({ event:
|
|
11484
|
-
|
|
11488
|
+
onClick: ({ event: d }) => {
|
|
11489
|
+
l(d);
|
|
11485
11490
|
}
|
|
11486
11491
|
}, c), {
|
|
11487
11492
|
title: e("Column width")
|
|
@@ -11935,7 +11940,7 @@ const DataBlockInitializer = (e) => {
|
|
|
11935
11940
|
o && o({ item: k, fromOthersInPopup: D });
|
|
11936
11941
|
v(!1);
|
|
11937
11942
|
}),
|
|
11938
|
-
[A, y, o, f,
|
|
11943
|
+
[A, y, v, o, f, t]
|
|
11939
11944
|
), w = h || // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11940
11945
|
useCollectionDataSourceItems({
|
|
11941
11946
|
componentName: n,
|
|
@@ -21358,8 +21363,8 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21358
21363
|
};
|
|
21359
21364
|
}, handleError = (e) => console.log(e), Action = withDynamicSchemaProps(
|
|
21360
21365
|
observer$1((e) => {
|
|
21361
|
-
var
|
|
21362
|
-
const
|
|
21366
|
+
var ge, xe, fe, Z, te;
|
|
21367
|
+
const he = useProps(e), {
|
|
21363
21368
|
popover: t,
|
|
21364
21369
|
confirm: o,
|
|
21365
21370
|
openMode: n,
|
|
@@ -21378,7 +21383,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21378
21383
|
addChild: C,
|
|
21379
21384
|
onMouseEnter: S,
|
|
21380
21385
|
refreshDataBlockRequest: b
|
|
21381
|
-
} =
|
|
21386
|
+
} = he, y = H(he, [
|
|
21382
21387
|
"popover",
|
|
21383
21388
|
"confirm",
|
|
21384
21389
|
"openMode",
|
|
@@ -21398,7 +21403,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21398
21403
|
"addChild",
|
|
21399
21404
|
"onMouseEnter",
|
|
21400
21405
|
"refreshDataBlockRequest"
|
|
21401
|
-
]), v = useACLActionParamsContext(), { wrapSSR: I, componentCls: A, hashId: T } = useStyles$d(), { t: w } = useTranslation(), [M, $] = useState(!1), [E, z] = useState(!1), O = useDesigner(), R = useField(), { run: j, element: B, disabled: k } = a(f), D = useFieldSchema(), N = useCompile(), q = useForm(), L = useCollectionRecordData(), G = useCollectionParentRecordData(), U = useCollection(), K = D["x-toolbar-props"] || D["x-designer-props"], Y = (
|
|
21406
|
+
]), v = useACLActionParamsContext(), { wrapSSR: I, componentCls: A, hashId: T } = useStyles$d(), { t: w } = useTranslation(), [M, $] = useState(!1), [E, z] = useState(!1), O = useDesigner(), R = useField(), { run: j, element: B, disabled: k } = a(f), D = useFieldSchema(), N = useCompile(), q = useForm(), L = useCollectionRecordData(), G = useCollectionParentRecordData(), U = useCollection(), K = D["x-toolbar-props"] || D["x-designer-props"], Y = (ge = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : ge.openMode, W = (xe = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : xe.openSize, X = (fe = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : fe.refreshDataBlockRequest, Q = q.disabled || R.disabled || ((Z = R.data) == null ? void 0 : Z.disabled) || x || k, J = useMemo(() => (D == null ? void 0 : D["x-linkage-rules"]) || [], [D == null ? void 0 : D["x-linkage-rules"]]), { designable: oe } = useDesignable(), ne = useComponent(i) || i, { modal: re } = App.useApp(), ie = useVariables(), le = useLocalVariables({ currentForm: { values: L } }), { getAriaLabel: Pe } = useGetAriaLabelOfAction(u), ce = useDataBlockRequest(), de = useMemo(() => {
|
|
21402
21407
|
const ee = u || N(D.title);
|
|
21403
21408
|
return _.isString(ee) ? w(ee) : ee;
|
|
21404
21409
|
}, [u, D.title, w]);
|
|
@@ -21416,60 +21421,60 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21416
21421
|
});
|
|
21417
21422
|
});
|
|
21418
21423
|
}, [R, J, le, ie]);
|
|
21419
|
-
const
|
|
21420
|
-
(ee) => {
|
|
21421
|
-
if (!isPortalInBody(ee.target) && (ee.preventDefault(), ee.stopPropagation(), !Q && v)) {
|
|
21422
|
-
const
|
|
21424
|
+
const Ie = useCallback(
|
|
21425
|
+
(ee, se = !0) => {
|
|
21426
|
+
if (!(se && isPortalInBody(ee.target)) && (ee.preventDefault(), ee.stopPropagation(), !Q && v)) {
|
|
21427
|
+
const ae = () => {
|
|
21423
21428
|
d ? d(ee, () => {
|
|
21424
|
-
var
|
|
21425
|
-
X !== !1 && ((
|
|
21429
|
+
var ue;
|
|
21430
|
+
X !== !1 && ((ue = ce == null ? void 0 : ce.refresh) == null || ue.call(ce));
|
|
21426
21431
|
}) : ($(!0), j());
|
|
21427
21432
|
};
|
|
21428
21433
|
o != null && o.content ? re.confirm({
|
|
21429
|
-
title: w(o.title, { title:
|
|
21430
|
-
content: w(o.content, { title:
|
|
21431
|
-
onOk:
|
|
21432
|
-
}) :
|
|
21434
|
+
title: w(o.title, { title: de }),
|
|
21435
|
+
content: w(o.content, { title: de }),
|
|
21436
|
+
onOk: ae
|
|
21437
|
+
}) : ae();
|
|
21433
21438
|
}
|
|
21434
21439
|
},
|
|
21435
21440
|
[o, Q, re, d, j]
|
|
21436
|
-
),
|
|
21441
|
+
), be = useMemo(() => {
|
|
21437
21442
|
var ee;
|
|
21438
21443
|
return F(g({}, p), {
|
|
21439
21444
|
opacity: oe && (((ee = R == null ? void 0 : R.data) == null ? void 0 : ee.hidden) || !v) && 0.1
|
|
21440
21445
|
});
|
|
21441
|
-
}, [oe, (te = R == null ? void 0 : R.data) == null ? void 0 : te.hidden, p]),
|
|
21446
|
+
}, [oe, (te = R == null ? void 0 : R.data) == null ? void 0 : te.hidden, p]), Ae = useCallback(
|
|
21442
21447
|
(ee) => {
|
|
21443
21448
|
S == null || S(ee);
|
|
21444
21449
|
},
|
|
21445
21450
|
[S]
|
|
21446
|
-
),
|
|
21451
|
+
), pe = () => {
|
|
21447
21452
|
var ee, se;
|
|
21448
21453
|
return !oe && ((ee = R == null ? void 0 : R.data) != null && ee.hidden || !v) ? null : /* @__PURE__ */ jsxs(
|
|
21449
21454
|
SortableItem,
|
|
21450
21455
|
F(g({
|
|
21451
21456
|
role: "button",
|
|
21452
|
-
"aria-label":
|
|
21457
|
+
"aria-label": Pe()
|
|
21453
21458
|
}, y), {
|
|
21454
|
-
onMouseEnter:
|
|
21459
|
+
onMouseEnter: Ae,
|
|
21455
21460
|
loading: ((se = R == null ? void 0 : R.data) == null ? void 0 : se.loading) || m,
|
|
21456
|
-
icon: c ? /* @__PURE__ */ jsx(Icon, { type: c }) :
|
|
21461
|
+
icon: typeof c == "string" ? /* @__PURE__ */ jsx(Icon, { type: c }) : c,
|
|
21457
21462
|
disabled: Q,
|
|
21458
|
-
style:
|
|
21459
|
-
onClick:
|
|
21463
|
+
style: be,
|
|
21464
|
+
onClick: Ie,
|
|
21460
21465
|
component: ne || Button,
|
|
21461
21466
|
className: cls(A, T, l, "nb-action"),
|
|
21462
21467
|
type: e.type === "danger" ? void 0 : e.type,
|
|
21463
21468
|
children: [
|
|
21464
|
-
|
|
21469
|
+
de,
|
|
21465
21470
|
/* @__PURE__ */ jsx(O, g({}, K))
|
|
21466
21471
|
]
|
|
21467
21472
|
})
|
|
21468
21473
|
);
|
|
21469
|
-
},
|
|
21474
|
+
}, ye = pe(), me = /* @__PURE__ */ jsxs(
|
|
21470
21475
|
ActionContextProvider,
|
|
21471
21476
|
{
|
|
21472
|
-
button:
|
|
21477
|
+
button: ye,
|
|
21473
21478
|
visible: M,
|
|
21474
21479
|
setVisible: $,
|
|
21475
21480
|
formValueChanged: E,
|
|
@@ -21480,7 +21485,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21480
21485
|
fieldSchema: D,
|
|
21481
21486
|
children: [
|
|
21482
21487
|
t && /* @__PURE__ */ jsx(RecursionField, { basePath: R.address, onlyRenderProperties: !0, schema: D }),
|
|
21483
|
-
!t &&
|
|
21488
|
+
!t && pe(),
|
|
21484
21489
|
/* @__PURE__ */ jsx(
|
|
21485
21490
|
DeclareVariable,
|
|
21486
21491
|
{
|
|
@@ -21498,8 +21503,8 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21498
21503
|
return I(
|
|
21499
21504
|
C ? (
|
|
21500
21505
|
// fix https://nocobase.height.app/T-3966
|
|
21501
|
-
/* @__PURE__ */ jsx(RecordProvider, { record: null, parent: G, children: /* @__PURE__ */ jsx(TreeRecordProvider, { parent: L, children:
|
|
21502
|
-
) :
|
|
21506
|
+
/* @__PURE__ */ jsx(RecordProvider, { record: null, parent: G, children: /* @__PURE__ */ jsx(TreeRecordProvider, { parent: L, children: me }) })
|
|
21507
|
+
) : me
|
|
21503
21508
|
);
|
|
21504
21509
|
}),
|
|
21505
21510
|
{ displayName: "Action" }
|
|
@@ -21552,34 +21557,34 @@ const Action$1 = Action, ActionBarContext = React.createContext({
|
|
|
21552
21557
|
return /* @__PURE__ */ jsx(Fragment, { children: o && n.includes(t.parent["x-component"]) ? createPortal(e.children, o) : e.children });
|
|
21553
21558
|
}, ActionBar = withDynamicSchemaProps(
|
|
21554
21559
|
observer$1((e) => {
|
|
21555
|
-
var
|
|
21556
|
-
const { forceProps: t = {} } = useActionBarContext(),
|
|
21557
|
-
if (
|
|
21560
|
+
var m;
|
|
21561
|
+
const { forceProps: t = {} } = useActionBarContext(), { token: o } = theme.useToken(), p = g(g({}, useProps(e)), t), { layout: n = "two-columns", style: r, spaceProps: i } = p, a = H(p, ["layout", "style", "spaceProps"]), l = useFieldSchema(), { render: c } = useSchemaInitializerRender(l["x-initializer"], l["x-initializer-props"]), { designable: u } = useDesignable();
|
|
21562
|
+
if (n === "one-column")
|
|
21558
21563
|
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(DndContext, { children: /* @__PURE__ */ jsxs(
|
|
21559
21564
|
"div",
|
|
21560
21565
|
F(g({
|
|
21561
|
-
style: g({ display: "flex", alignItems: "center", gap: 8 },
|
|
21562
|
-
},
|
|
21563
|
-
className: cx(
|
|
21566
|
+
style: F(g({ display: "flex", alignItems: "center", gap: 8 }, r), { marginTop: o.marginLG })
|
|
21567
|
+
}, a), {
|
|
21568
|
+
className: cx(a.className, "nb-action-bar"),
|
|
21564
21569
|
children: [
|
|
21565
|
-
e.children && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Space$1, F(g({},
|
|
21566
|
-
|
|
21570
|
+
e.children && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Space$1, F(g({}, i), { style: { flexWrap: "wrap" }, children: l.mapProperties((h, x) => /* @__PURE__ */ jsx(RecursionField, { name: x, schema: h }, x)) })) }),
|
|
21571
|
+
c({ style: { margin: "0 !important" } })
|
|
21567
21572
|
]
|
|
21568
21573
|
})
|
|
21569
21574
|
) }) });
|
|
21570
|
-
const
|
|
21575
|
+
const d = Object.keys((m = l.properties) != null ? m : {}).length > 0;
|
|
21571
21576
|
return /* @__PURE__ */ jsxs(
|
|
21572
21577
|
"div",
|
|
21573
21578
|
F(g({
|
|
21574
|
-
style: !
|
|
21579
|
+
style: !u && !d ? void 0 : g({
|
|
21575
21580
|
display: "flex",
|
|
21576
21581
|
justifyContent: "space-between",
|
|
21577
21582
|
alignItems: "center",
|
|
21578
21583
|
overflowX: "auto",
|
|
21579
21584
|
flexShrink: 0
|
|
21580
|
-
},
|
|
21581
|
-
},
|
|
21582
|
-
className: cx(
|
|
21585
|
+
}, r)
|
|
21586
|
+
}, a), {
|
|
21587
|
+
className: cx(a.className, "nb-action-bar"),
|
|
21583
21588
|
children: [
|
|
21584
21589
|
/* @__PURE__ */ jsx(
|
|
21585
21590
|
"div",
|
|
@@ -21593,12 +21598,12 @@ const Action$1 = Action, ActionBarContext = React.createContext({
|
|
|
21593
21598
|
flexWrap: "wrap"
|
|
21594
21599
|
},
|
|
21595
21600
|
children: /* @__PURE__ */ jsxs(DndContext, { children: [
|
|
21596
|
-
/* @__PURE__ */ jsx(Space$1, F(g({},
|
|
21597
|
-
/* @__PURE__ */ jsx(Space$1, F(g({},
|
|
21601
|
+
/* @__PURE__ */ jsx(Space$1, F(g({}, i), { children: l.mapProperties((h, x) => h["x-align"] !== "left" ? null : /* @__PURE__ */ jsx(RecursionField, { name: x, schema: h }, x)) })),
|
|
21602
|
+
/* @__PURE__ */ jsx(Space$1, F(g({}, i), { style: { flexWrap: "wrap" }, children: l.mapProperties((h, x) => h["x-align"] === "left" ? null : /* @__PURE__ */ jsx(RecursionField, { name: x, schema: h }, x)) }))
|
|
21598
21603
|
] })
|
|
21599
21604
|
}
|
|
21600
21605
|
),
|
|
21601
|
-
|
|
21606
|
+
c()
|
|
21602
21607
|
]
|
|
21603
21608
|
})
|
|
21604
21609
|
);
|
|
@@ -29615,9 +29620,9 @@ function fetchTemplateData(e, t, o) {
|
|
|
29615
29620
|
});
|
|
29616
29621
|
}
|
|
29617
29622
|
const useFormBlockHeight = () => {
|
|
29618
|
-
var
|
|
29619
|
-
const e = useDataBlockHeight(), t = useFieldSchema(), { token: o } = theme.useToken(), { designable: n } = useDesignable(), { heightProps: r } = useBlockHeightProps() || {}, { title: i } = r || {}, { display: a, enabled: l } = useFormDataTemplates(), c = t.reduceProperties((
|
|
29620
|
-
return e -
|
|
29623
|
+
var I, A;
|
|
29624
|
+
const e = useDataBlockHeight(), t = useFieldSchema(), { token: o } = theme.useToken(), { designable: n } = useDesignable(), { heightProps: r } = useBlockHeightProps() || {}, { title: i } = r || {}, { display: a, enabled: l } = useFormDataTemplates(), c = t.reduceProperties((T, w) => w["x-component"] === "ActionBar" ? w : T), u = ((I = t.parent) == null ? void 0 : I["x-decorator"]) === "FilterFormBlockProvider", d = ((A = t.parent) == null ? void 0 : A["x-decorator"]) === "DetailsBlockProvider", h = Object.keys((c == null ? void 0 : c.properties) || {}).length > 0 || n ? o.controlHeight + (u || !d ? (n ? 2 : 1) * o.marginLG : 2 * o.marginLG) : o.marginLG, x = i ? o.fontSizeLG * o.lineHeightLG + o.padding * 2 - 1 : 0, { data: f } = useDataBlockRequest() || {}, { count: C, pageSize: S } = (f == null ? void 0 : f.meta) || {}, y = C > S ? o.controlHeightSM + (n ? 1 : 0) * o.paddingLG : 0, v = a && l ? o.controlHeight + 2 * o.padding + o.margin : 0;
|
|
29625
|
+
return e - h - o.paddingLG - x - y - v;
|
|
29621
29626
|
}, FormComponent = (e) => {
|
|
29622
29627
|
const u = e, { form: t, children: o } = u, n = H(u, ["form", "children"]), r = useField(), i = useFieldSchema(), a = useAttach(t.createVoidField(F(g({}, r.props), { basePath: "" }))), l = useFormBlockHeight(), { token: c } = theme.useToken();
|
|
29623
29628
|
return /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children: /* @__PURE__ */ jsx(FormContext.Provider, { value: t, children: /* @__PURE__ */ jsx(FormLayout, F(g({ layout: "vertical" }, n), { children: /* @__PURE__ */ jsx(
|
|
@@ -31649,9 +31654,9 @@ function Uploader(o) {
|
|
|
31649
31654
|
var n = o, { rules: e } = n, t = H(n, ["rules"]);
|
|
31650
31655
|
const { disabled: r, multiple: i, value: a, onChange: l } = t, [c, u] = useState([]), { t: d } = useTranslation(), { componentCls: p } = useStyles$a(), m = useField(), h = useUploadProps(t), x = useBeforeUpload(e);
|
|
31651
31656
|
useEffect(() => {
|
|
31652
|
-
c.
|
|
31657
|
+
c.length ? m.setFeedback({
|
|
31653
31658
|
type: "error",
|
|
31654
|
-
code: "
|
|
31659
|
+
code: "ValidateError",
|
|
31655
31660
|
messages: [d("Incomplete uploading files need to be resolved")]
|
|
31656
31661
|
}) : m.setFeedback({});
|
|
31657
31662
|
}, [m, c]);
|
|
@@ -33326,8 +33331,8 @@ const useTableColumns$1 = (e) => {
|
|
|
33326
33331
|
}
|
|
33327
33332
|
`, 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(
|
|
33328
33333
|
observer$1((e) => {
|
|
33329
|
-
var
|
|
33330
|
-
const { token: t } = useToken(),
|
|
33334
|
+
var he, ge, xe, fe;
|
|
33335
|
+
const { token: t } = useToken(), pe = omit$1(e, ["onBlur", "onFocus", "value"]), { pagination: o, useProps: n } = pe, r = H(pe, ["pagination", "useProps"]), ye = (n == null ? void 0 : n()) || {}, { pagination: i } = ye, a = H(ye, ["pagination"]), me = g(g({}, r), a), {
|
|
33331
33336
|
dragSort: l = !1,
|
|
33332
33337
|
showIndex: c = !0,
|
|
33333
33338
|
onRowSelectionChange: u,
|
|
@@ -33338,7 +33343,7 @@ const useTableColumns$1 = (e) => {
|
|
|
33338
33343
|
onExpand: x,
|
|
33339
33344
|
loading: f,
|
|
33340
33345
|
onClickRow: C
|
|
33341
|
-
} =
|
|
33346
|
+
} = me, S = H(me, [
|
|
33342
33347
|
"dragSort",
|
|
33343
33348
|
"showIndex",
|
|
33344
33349
|
"onRowSelectionChange",
|
|
@@ -33349,8 +33354,8 @@ const useTableColumns$1 = (e) => {
|
|
|
33349
33354
|
"onExpand",
|
|
33350
33355
|
"loading",
|
|
33351
33356
|
"onClickRow"
|
|
33352
|
-
]), b = useArrayField(S), y = useTableColumns$1(S), v = useFieldSchema(), I = useCollection(), T = ((
|
|
33353
|
-
})), E = usePaginationProps$1(o, i), [z, O] = useState(() => w ? M : []), [R, j] = useState(((
|
|
33357
|
+
]), b = useArrayField(S), y = useTableColumns$1(S), v = useFieldSchema(), I = useCollection(), T = ((he = v == null ? void 0 : v.parent) == null ? void 0 : he["x-decorator"]) === "TableSelectorProvider" ? useTableSelectorContext() : useTableBlockContext(), { expandFlag: w, allIncludesChildren: M } = T, $ = useMemoizedFn(S.onRowDragEnd || (() => {
|
|
33358
|
+
})), E = usePaginationProps$1(o, i), [z, O] = useState(() => w ? M : []), [R, j] = useState(((ge = b == null ? void 0 : b.data) == null ? void 0 : ge.selectedRowKeys) || []), [B, k] = useState([]), D = (p == null ? void 0 : p.type) !== "none", N = useRef(/* @__PURE__ */ new Map()), q = useMemo(() => css`
|
|
33354
33359
|
& > td {
|
|
33355
33360
|
background-color: ${t.controlItemBgActiveHover} !important;
|
|
33356
33361
|
}
|
|
@@ -33382,20 +33387,20 @@ const useTableColumns$1 = (e) => {
|
|
|
33382
33387
|
return typeof m == "string" ? (te = Z[m]) == null ? void 0 : te.toString() : (ee = (m != null ? m : U)(Z)) == null ? void 0 : ee.toString();
|
|
33383
33388
|
},
|
|
33384
33389
|
[m, U]
|
|
33385
|
-
), Y = (
|
|
33390
|
+
), Y = (xe = b == null ? void 0 : b.value) == null ? void 0 : xe.map(K), W = useMemo(() => Y, [JSON.stringify(Y)]), X = useMemo(
|
|
33386
33391
|
() => [...(b == null ? void 0 : b.value) || []].filter(Boolean),
|
|
33387
|
-
[b == null ? void 0 : b.value, (
|
|
33392
|
+
[b == null ? void 0 : b.value, (fe = b == null ? void 0 : b.value) == null ? void 0 : fe.length, W]
|
|
33388
33393
|
), Q = useMemo(() => (Z) => /* @__PURE__ */ jsx(
|
|
33389
33394
|
DndContext,
|
|
33390
33395
|
{
|
|
33391
33396
|
onDragEnd: (te) => {
|
|
33392
|
-
var
|
|
33397
|
+
var Ce, Se, Te, we, Re, De;
|
|
33393
33398
|
if (!te.active || !te.over) {
|
|
33394
33399
|
console.warn("move cancel");
|
|
33395
33400
|
return;
|
|
33396
33401
|
}
|
|
33397
|
-
const ee = (Te = (
|
|
33398
|
-
b.move(ee, se), $({ from: ae, to:
|
|
33402
|
+
const ee = (Te = (Se = (Ce = te.active) == null ? void 0 : Ce.data.current) == null ? void 0 : Se.sortable) == null ? void 0 : Te.index, se = (De = (Re = (we = te.over) == null ? void 0 : we.data.current) == null ? void 0 : Re.sortable) == null ? void 0 : De.index, ae = b.value[ee] || te.active, ue = b.value[se] || te.over;
|
|
33403
|
+
b.move(ee, se), $({ from: ae, to: ue });
|
|
33399
33404
|
},
|
|
33400
33405
|
children: /* @__PURE__ */ jsx("tbody", g({}, Z))
|
|
33401
33406
|
}
|
|
@@ -33435,11 +33440,11 @@ const useTableColumns$1 = (e) => {
|
|
|
33435
33440
|
};
|
|
33436
33441
|
},
|
|
33437
33442
|
renderCell: (Z, te, ee, se) => {
|
|
33438
|
-
var
|
|
33443
|
+
var Ce, Se;
|
|
33439
33444
|
if (!l && !c)
|
|
33440
33445
|
return se;
|
|
33441
|
-
const ae = (
|
|
33442
|
-
return ae ? ee = ee + (ae - 1) *
|
|
33446
|
+
const ae = (Ce = e == null ? void 0 : e.pagination) == null ? void 0 : Ce.current, ue = ((Se = e == null ? void 0 : e.pagination) == null ? void 0 : Se.pageSize) || 20;
|
|
33447
|
+
return ae ? ee = ee + (ae - 1) * ue + 1 : ee = ee + 1, te.__index && (ee = extractIndex(te.__index)), /* @__PURE__ */ jsxs(
|
|
33443
33448
|
"div",
|
|
33444
33449
|
{
|
|
33445
33450
|
role: "button",
|
|
@@ -33492,24 +33497,24 @@ const useTableColumns$1 = (e) => {
|
|
|
33492
33497
|
) : React.createElement(React.Fragment, {}, Z);
|
|
33493
33498
|
},
|
|
33494
33499
|
[b, l, K]
|
|
33495
|
-
), { height: le, tableSizeRefCallback:
|
|
33500
|
+
), { height: le, tableSizeRefCallback: Pe } = useTableSize(), ce = useMemo(() => ({
|
|
33496
33501
|
x: "max-content"
|
|
33497
|
-
}), []),
|
|
33502
|
+
}), []), de = useMemo(() => ({
|
|
33498
33503
|
x: "max-content",
|
|
33499
33504
|
y: le
|
|
33500
|
-
}), [le, ce]),
|
|
33505
|
+
}), [le, ce]), Ie = useCallback(
|
|
33501
33506
|
(Z) => B.includes(Z[m]) ? L : "",
|
|
33502
33507
|
[B, L, m]
|
|
33503
|
-
),
|
|
33508
|
+
), be = useCallback(
|
|
33504
33509
|
(Z, te) => {
|
|
33505
33510
|
const ee = Z ? [...z, te[I.getPrimaryKey()]] : z.filter((se) => te[I.getPrimaryKey()] !== se);
|
|
33506
33511
|
O(ee), x == null || x(Z, te);
|
|
33507
33512
|
},
|
|
33508
33513
|
[z, x, I]
|
|
33509
|
-
),
|
|
33510
|
-
onExpand:
|
|
33514
|
+
), Ae = useMemo(() => ({
|
|
33515
|
+
onExpand: be,
|
|
33511
33516
|
expandedRowKeys: z
|
|
33512
|
-
}), [z,
|
|
33517
|
+
}), [z, be]);
|
|
33513
33518
|
return /* @__PURE__ */ jsxs(
|
|
33514
33519
|
"div",
|
|
33515
33520
|
{
|
|
@@ -33539,7 +33544,7 @@ const useTableColumns$1 = (e) => {
|
|
|
33539
33544
|
/* @__PURE__ */ jsx(ie, { children: /* @__PURE__ */ jsx(
|
|
33540
33545
|
MemoizedAntdTable,
|
|
33541
33546
|
F(g(g({
|
|
33542
|
-
ref:
|
|
33547
|
+
ref: Pe,
|
|
33543
33548
|
rowKey: m != null ? m : U,
|
|
33544
33549
|
dataSource: X,
|
|
33545
33550
|
tableLayout: "auto"
|
|
@@ -33549,10 +33554,10 @@ const useTableColumns$1 = (e) => {
|
|
|
33549
33554
|
components: oe,
|
|
33550
33555
|
onChange: d,
|
|
33551
33556
|
onRow: G,
|
|
33552
|
-
rowClassName:
|
|
33553
|
-
scroll:
|
|
33557
|
+
rowClassName: Ie,
|
|
33558
|
+
scroll: de,
|
|
33554
33559
|
columns: y,
|
|
33555
|
-
expandable:
|
|
33560
|
+
expandable: Ae
|
|
33556
33561
|
})
|
|
33557
33562
|
) }),
|
|
33558
33563
|
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((Z) => Z.messages.map((te) => /* @__PURE__ */ jsx("div", { children: te }, te))) })
|
|
@@ -35429,12 +35434,12 @@ const InternalGridCardBlockProvider = (e) => {
|
|
|
35429
35434
|
}, useGridCardActionBarProps = () => ({
|
|
35430
35435
|
spaceProps: spaceProps$1
|
|
35431
35436
|
}), useGridCardBodyHeight = () => {
|
|
35432
|
-
var
|
|
35433
|
-
const { token: e } = theme.useToken(), { designable: t } = useDesignable(), o = useDataBlockHeight(), n = useFieldSchema(), r = Object.keys(((
|
|
35437
|
+
var p;
|
|
35438
|
+
const { token: e } = theme.useToken(), { designable: t } = useDesignable(), o = useDataBlockHeight(), n = useFieldSchema(), r = Object.keys(((p = n.parent.properties.actionBar) == null ? void 0 : p.properties) || {}).length > 0, { data: i } = useDataBlockRequest() || {}, { count: a, pageSize: l } = (i == null ? void 0 : i.meta) || {}, c = a > l;
|
|
35434
35439
|
if (!o)
|
|
35435
35440
|
return;
|
|
35436
|
-
const
|
|
35437
|
-
return o -
|
|
35441
|
+
const u = t || r ? e.controlHeight + 2 * e.paddingLG + e.marginLG : 0, d = c ? e.controlHeight + 2 * e.paddingLG + e.marginLG : 0;
|
|
35442
|
+
return o - u - d;
|
|
35438
35443
|
}, rowGutter = {
|
|
35439
35444
|
md: 12,
|
|
35440
35445
|
sm: 5,
|
|
@@ -35514,6 +35519,9 @@ const InternalGridCardBlockProvider = (e) => {
|
|
|
35514
35519
|
height: ${m ? m + "px" : "100%"};
|
|
35515
35520
|
overflow-y: ${m ? "auto" : null};
|
|
35516
35521
|
overflow-x: clip;
|
|
35522
|
+
.nb-action-bar {
|
|
35523
|
+
margin-top: 0px !important;
|
|
35524
|
+
}
|
|
35517
35525
|
}
|
|
35518
35526
|
`
|
|
35519
35527
|
),
|
|
@@ -36000,7 +36008,7 @@ const InternalListBlockProvider = (e) => {
|
|
|
36000
36008
|
css`
|
|
36001
36009
|
.ant-spin-nested-loading {
|
|
36002
36010
|
height: ${m ? m + "px" : "100%"};
|
|
36003
|
-
overflow-y: auto;
|
|
36011
|
+
overflow-y: ${m ? "auto" : "null"};
|
|
36004
36012
|
.ant-spin-container {
|
|
36005
36013
|
width: 100%;
|
|
36006
36014
|
overflow-x: clip;
|
|
@@ -53475,7 +53483,10 @@ const createListBlockUISchema = (e) => {
|
|
|
53475
53483
|
"x-component": "ActionBar",
|
|
53476
53484
|
"x-use-component-props": "useListActionBarProps",
|
|
53477
53485
|
"x-component-props": {
|
|
53478
|
-
layout: "one-column"
|
|
53486
|
+
layout: "one-column",
|
|
53487
|
+
style: {
|
|
53488
|
+
marginTop: "var(--nb-spacing)"
|
|
53489
|
+
}
|
|
53479
53490
|
}
|
|
53480
53491
|
}
|
|
53481
53492
|
}
|
|
@@ -55222,7 +55233,8 @@ const commonOptions$e = {
|
|
|
55222
55233
|
"x-component-props": {
|
|
55223
55234
|
layout: "one-column",
|
|
55224
55235
|
style: {
|
|
55225
|
-
float: "right"
|
|
55236
|
+
float: "right",
|
|
55237
|
+
marginTop: "var(--nb-spacing)"
|
|
55226
55238
|
}
|
|
55227
55239
|
}
|
|
55228
55240
|
}
|