@nocobase/client 1.4.8 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +22 -15
- package/lib/index.js +93 -90
- package/lib/locale/zh-CN.js +2 -2
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -4295,7 +4295,7 @@ function addAppVersion(e, t) {
|
|
|
4295
4295
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
4296
4296
|
}), e;
|
|
4297
4297
|
}
|
|
4298
|
-
const name = "@nocobase/client", version$1 = "1.4.
|
|
4298
|
+
const name = "@nocobase/client", version$1 = "1.4.9", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
4299
4299
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
4300
4300
|
"@ant-design/cssinjs": "^1.11.1",
|
|
4301
4301
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -4317,9 +4317,9 @@ const name = "@nocobase/client", version$1 = "1.4.8", license = "AGPL-3.0", main
|
|
|
4317
4317
|
"@formily/reactive-react": "^2.2.27",
|
|
4318
4318
|
"@formily/shared": "^2.2.27",
|
|
4319
4319
|
"@formily/validator": "^2.2.27",
|
|
4320
|
-
"@nocobase/evaluators": "1.4.
|
|
4321
|
-
"@nocobase/sdk": "1.4.
|
|
4322
|
-
"@nocobase/utils": "1.4.
|
|
4320
|
+
"@nocobase/evaluators": "1.4.9",
|
|
4321
|
+
"@nocobase/sdk": "1.4.9",
|
|
4322
|
+
"@nocobase/utils": "1.4.9",
|
|
4323
4323
|
ahooks: "^3.7.2",
|
|
4324
4324
|
antd: "5.12.8",
|
|
4325
4325
|
"antd-style": "3.7.1",
|
|
@@ -11641,12 +11641,17 @@ function useParsedFilter({ filterOption: e }) {
|
|
|
11641
11641
|
if (!isVariable(d))
|
|
11642
11642
|
return d;
|
|
11643
11643
|
const p = getVariableName(d), m = o(p);
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11644
|
+
let h = null;
|
|
11645
|
+
const f = getPath(d).split(".");
|
|
11646
|
+
return f.forEach((C, S) => {
|
|
11647
|
+
const b = f.slice(0, S + 1).join("."), y = getValuesByPath(
|
|
11648
|
+
{
|
|
11649
|
+
[p]: (m == null ? void 0 : m.ctx) || {}
|
|
11650
|
+
},
|
|
11651
|
+
b
|
|
11652
|
+
);
|
|
11653
|
+
_.isEmpty(y) || (h = y);
|
|
11654
|
+
}), h;
|
|
11650
11655
|
}
|
|
11651
11656
|
}),
|
|
11652
11657
|
c,
|
|
@@ -23053,10 +23058,8 @@ const DynamicComponent = (e) => {
|
|
|
23053
23058
|
placeholder: t("Comparision")
|
|
23054
23059
|
}
|
|
23055
23060
|
),
|
|
23056
|
-
/* @__PURE__ */
|
|
23057
|
-
|
|
23058
|
-
!e.disabled && /* @__PURE__ */ jsx("a", { role: "button", "aria-label": "icon-close", children: /* @__PURE__ */ jsx(CloseCircleOutlined, { onClick: n, style: b }) })
|
|
23059
|
-
] })
|
|
23061
|
+
c != null && c.noValue ? null : /* @__PURE__ */ jsx(DynamicComponent, { value: p, schema: r, collectionField: h, onChange: m }),
|
|
23062
|
+
!e.disabled && /* @__PURE__ */ jsx("a", { role: "button", "aria-label": "icon-close", children: /* @__PURE__ */ jsx(CloseCircleOutlined, { onClick: n, style: b }) })
|
|
23060
23063
|
] }) })
|
|
23061
23064
|
);
|
|
23062
23065
|
},
|
|
@@ -27284,6 +27287,7 @@ const Layout = {
|
|
|
27284
27287
|
}))
|
|
27285
27288
|
), unflatten$1(a);
|
|
27286
27289
|
}),
|
|
27290
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
27287
27291
|
[e, t, o == null ? void 0 : o.parseVariable]
|
|
27288
27292
|
), findVariable: n };
|
|
27289
27293
|
}, addChildActionSettings = new SchemaSettings({
|
|
@@ -36365,7 +36369,7 @@ function AttachmentList(e) {
|
|
|
36365
36369
|
function Uploader(o) {
|
|
36366
36370
|
var n = o, { rules: e } = n, t = K(n, ["rules"]);
|
|
36367
36371
|
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);
|
|
36368
|
-
|
|
36372
|
+
useEffect(() => {
|
|
36369
36373
|
u.length ? h.setFeedback({
|
|
36370
36374
|
type: "error",
|
|
36371
36375
|
code: "ValidateError",
|
|
@@ -38334,6 +38338,9 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
38334
38338
|
.ant-table-small .ant-table-cell {
|
|
38335
38339
|
padding: 8px ${C.paddingXS}px;
|
|
38336
38340
|
}
|
|
38341
|
+
.ant-table-cell-fix-right {
|
|
38342
|
+
padding: 8px 16px !important;
|
|
38343
|
+
}
|
|
38337
38344
|
}
|
|
38338
38345
|
}
|
|
38339
38346
|
}
|