@nocobase/client 1.5.22 → 1.5.23

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
@@ -6830,7 +6830,7 @@ const REGEX_OF_VARIABLE = /^\s*\{\{\s*([a-zA-Z0-9_$-.]+?)\s*\}\}\s*$/g, REGEX_OF
6830
6830
  const o = n ? "YYYY-MM-DD HH:mm:ss" : getPickerFormat(t);
6831
6831
  return e && dayjs(e).format(o);
6832
6832
  }, handleDateChangeOnForm = (e, t, n, o, r, i) => {
6833
- const a = r ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
6833
+ const a = dayjs.tz.guess(), l = r ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
6834
6834
  if (!e)
6835
6835
  return e;
6836
6836
  if (t)
@@ -6840,10 +6840,10 @@ const REGEX_OF_VARIABLE = /^\s*\{\{\s*([a-zA-Z0-9_$-.]+?)\s*\}\}\s*$/g, REGEX_OF
6840
6840
  return toGmt(e);
6841
6841
  if (o !== "date")
6842
6842
  return dayjs(e).startOf(o).toISOString();
6843
- const l = dayjs(e).format(a);
6844
- return dayjs(l).toISOString();
6843
+ const c = dayjs(e).format(l);
6844
+ return dayjs(c).tz(a, !0).toISOString();
6845
6845
  }
6846
- return r ? dayjs(e).format(a) : dayjs(e).startOf(o).format(a);
6846
+ return r ? dayjs(e).format(l) : dayjs(e).startOf(o).format(l);
6847
6847
  }, mapDatePicker = function() {
6848
6848
  const e = isMobile();
6849
6849
  return (t) => {
@@ -32218,7 +32218,7 @@ const tableBlockSettings = new SchemaSettings({
32218
32218
  type: "switch",
32219
32219
  useVisible() {
32220
32220
  const e = useCollection(), { collectionField: t } = useColumnSchema$1(), { getInterface: n } = useCollectionManager_deprecated(), o = n(t == null ? void 0 : t.interface), { currentMode: r } = useAssociationFieldContext();
32221
- return (o == null ? void 0 : o.sortable) === !0 && !r && ((e == null ? void 0 : e.name) === (t == null ? void 0 : t.collectionName) || !(t != null && t.collectionName));
32221
+ return (o == null ? void 0 : o.sortable) === !0 && !r && ((e == null ? void 0 : e.name) === (t == null ? void 0 : t.collectionName) || !(t != null && t.collectionName) || t.inherit);
32222
32222
  },
32223
32223
  useComponentProps() {
32224
32224
  const e = useField(), { t } = useTranslation(), n = useFieldSchema(), { dn: o } = useDesignable();
@@ -35230,7 +35230,7 @@ function addAppVersion(e, t) {
35230
35230
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
35231
35231
  }), e;
35232
35232
  }
35233
- const name = "@nocobase/client", version = "1.5.22", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35233
+ const name = "@nocobase/client", version = "1.5.23", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35234
35234
  "@ahooksjs/use-url-state": "3.5.1",
35235
35235
  "@ant-design/cssinjs": "^1.11.1",
35236
35236
  "@ant-design/icons": "^5.1.4",
@@ -35252,9 +35252,9 @@ const name = "@nocobase/client", version = "1.5.22", license = "AGPL-3.0", main
35252
35252
  "@formily/reactive-react": "^2.2.27",
35253
35253
  "@formily/shared": "^2.2.27",
35254
35254
  "@formily/validator": "^2.2.27",
35255
- "@nocobase/evaluators": "1.5.22",
35256
- "@nocobase/sdk": "1.5.22",
35257
- "@nocobase/utils": "1.5.22",
35255
+ "@nocobase/evaluators": "1.5.23",
35256
+ "@nocobase/sdk": "1.5.23",
35257
+ "@nocobase/utils": "1.5.23",
35258
35258
  ahooks: "^3.7.2",
35259
35259
  antd: "5.12.8",
35260
35260
  "antd-style": "3.7.1",