@nocobase/client 1.3.23-beta → 1.3.24-beta

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 CHANGED
@@ -4101,7 +4101,7 @@ function addAppVersion(e, t) {
4101
4101
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
4102
4102
  }), e;
4103
4103
  }
4104
- const name = "@nocobase/client", version$1 = "1.3.23-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4104
+ const name = "@nocobase/client", version$1 = "1.3.24-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
4105
4105
  "@ahooksjs/use-url-state": "3.5.1",
4106
4106
  "@ant-design/cssinjs": "^1.11.1",
4107
4107
  "@ant-design/icons": "^5.1.4",
@@ -4122,9 +4122,9 @@ const name = "@nocobase/client", version$1 = "1.3.23-beta", license = "AGPL-3.0"
4122
4122
  "@formily/reactive-react": "^2.2.27",
4123
4123
  "@formily/shared": "^2.2.27",
4124
4124
  "@formily/validator": "^2.2.27",
4125
- "@nocobase/evaluators": "1.3.23-beta",
4126
- "@nocobase/sdk": "1.3.23-beta",
4127
- "@nocobase/utils": "1.3.23-beta",
4125
+ "@nocobase/evaluators": "1.3.24-beta",
4126
+ "@nocobase/sdk": "1.3.24-beta",
4127
+ "@nocobase/utils": "1.3.24-beta",
4128
4128
  ahooks: "^3.7.2",
4129
4129
  antd: "5.12.8",
4130
4130
  "antd-style": "3.4.5",
@@ -6307,13 +6307,12 @@ function getRenderContent(e, t, o, n, r) {
6307
6307
  return z(this, null, function* () {
6308
6308
  if (t && e === "handlebars")
6309
6309
  try {
6310
- try {
6311
- yield replaceVariableValue(t, o, n);
6312
- } catch (c) {
6313
- return null;
6314
- }
6315
- const i = Handlebars.compile(t), a = getVariablesData(n), l = i(g(g({}, o.ctxRef.current), a));
6316
- return yield r(l);
6310
+ const i = Handlebars.compile(t), a = getVariablesData(n), { $nDate: l } = o.ctxRef.current, c = {};
6311
+ Object.keys(l).map((d) => {
6312
+ c[d] = l[d]();
6313
+ });
6314
+ const u = i(F(g(g({}, o.ctxRef.current), a), { $nDate: c }));
6315
+ return yield r(u);
6317
6316
  } catch (i) {
6318
6317
  return console.log(i), t;
6319
6318
  }
@@ -17720,7 +17719,7 @@ const SchemaSettingsDefaultValue = function e(t) {
17720
17719
  type: "switch",
17721
17720
  useVisible() {
17722
17721
  const e = useCollection(), { collectionField: t } = useColumnSchema$1(), { getInterface: o } = useCollectionManager_deprecated(), n = o(t == null ? void 0 : t.interface), { currentMode: r } = useAssociationFieldContext();
17723
- return (n == null ? void 0 : n.sortable) === !0 && !r && (e == null ? void 0 : e.name) === (t == null ? void 0 : t.collectionName);
17722
+ return (n == null ? void 0 : n.sortable) === !0 && !r && ((e == null ? void 0 : e.name) === (t == null ? void 0 : t.collectionName) || !(t != null && t.collectionName));
17724
17723
  },
17725
17724
  useComponentProps() {
17726
17725
  const e = useField(), { t } = useTranslation(), o = useFieldSchema(), { dn: n } = useDesignable();