@nocobase/client 1.6.0 → 1.6.2

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
@@ -9151,13 +9151,13 @@ function addAppVersion(e, t) {
9151
9151
  addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
9152
9152
  }), e;
9153
9153
  }
9154
- const name = "@nocobase/client", version = "1.6.0", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9154
+ const name = "@nocobase/client", version = "1.6.2", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9155
9155
  "@ahooksjs/use-url-state": "3.5.1",
9156
9156
  "@ant-design/cssinjs": "^1.11.1",
9157
9157
  "@ant-design/icons": "^5.6.1",
9158
9158
  "@ant-design/pro-layout": "^7.22.1",
9159
9159
  "@antv/g2plot": "^2.4.18",
9160
- "@budibase/handlebars-helpers": "^0.14.0",
9160
+ "@budibase/handlebars-helpers": "0.14.0",
9161
9161
  "@ctrl/tinycolor": "^3.6.0",
9162
9162
  "@dnd-kit/core": "^5.0.1",
9163
9163
  "@dnd-kit/modifiers": "^6.0.0",
@@ -9173,9 +9173,9 @@ const name = "@nocobase/client", version = "1.6.0", license = "AGPL-3.0", main =
9173
9173
  "@formily/reactive-react": "^2.2.27",
9174
9174
  "@formily/shared": "^2.2.27",
9175
9175
  "@formily/validator": "^2.2.27",
9176
- "@nocobase/evaluators": "1.6.0",
9177
- "@nocobase/sdk": "1.6.0",
9178
- "@nocobase/utils": "1.6.0",
9176
+ "@nocobase/evaluators": "1.6.2",
9177
+ "@nocobase/sdk": "1.6.2",
9178
+ "@nocobase/utils": "1.6.2",
9179
9179
  ahooks: "^3.7.2",
9180
9180
  antd: "5.12.8",
9181
9181
  "antd-style": "3.7.1",
@@ -11308,6 +11308,8 @@ function getPopupContextFromActionOrAssociationFieldSchema(e) {
11308
11308
  }
11309
11309
  const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextStorage[e], storePopupContext = (e, t) => {
11310
11310
  popupsContextStorage[e] = t;
11311
+ }, deletePopupContext = (e) => {
11312
+ delete popupsContextStorage[e];
11311
11313
  }, blockServicesStorage = {}, getBlockService = (e) => blockServicesStorage[e], storeBlockService = (e, t) => {
11312
11314
  blockServicesStorage[e] = t;
11313
11315
  }, getPopupParamsFromPath = _.memoize((e) => e.split("/popups/").filter(Boolean).map((o) => {
@@ -11429,8 +11431,15 @@ ${JSON.stringify(L, null, 2)}`
11429
11431
  ), N = useCallback(() => {
11430
11432
  if (!f())
11431
11433
  return I == null ? void 0 : I(!1);
11432
- t(withSearchParams(removeLastPopupPath(o.pathname)), { replace: !0 }), removePopupLayerState(g);
11433
- }, [f, I, t, o == null ? void 0 : o.pathname, g]), j = useCallback(
11434
+ t(withSearchParams(removeLastPopupPath(o.pathname)), { replace: !0 }), removePopupLayerState(g), m != null && m.popupuid && deletePopupContext(m.popupuid);
11435
+ }, [
11436
+ f,
11437
+ I,
11438
+ t,
11439
+ o == null ? void 0 : o.pathname,
11440
+ g,
11441
+ m == null ? void 0 : m.popupuid
11442
+ ]), j = useCallback(
11434
11443
  (R) => {
11435
11444
  const M = v(), $ = w({
11436
11445
  tabKey: R,
@@ -13712,7 +13721,7 @@ function getOperators() {
13712
13721
  return Array.isArray(r) ? !r.some((a) => (a || "").includes(i)) : (r = r || "", !r.includes(i));
13713
13722
  },
13714
13723
  $anyOf: function(r, i) {
13715
- return r.length === 0 ? !1 : Array.isArray(r) && Array.isArray(i) && r.some((a) => Array.isArray(a)) ? r.some((a) => a.some((l) => i.includes(l))) : r.some((a) => i.includes(a));
13724
+ return r == null || r.length === 0 ? !1 : Array.isArray(r) && Array.isArray(i) && r.some((a) => Array.isArray(a)) ? r.some((a) => a.some((l) => i.includes(l))) : r.some((a) => i.includes(a));
13716
13725
  },
13717
13726
  $noneOf: function(r, i) {
13718
13727
  return !r || (r == null ? void 0 : r.length) === 0 ? !0 : Array.isArray(r) && Array.isArray(i) && r.some((a) => Array.isArray(a)) ? r.some((a) => a.every((l) => !i.some((c) => l.includes(c)))) : i.some((a) => !r.includes(a));
@@ -18525,10 +18534,10 @@ const DatePickerContext = React.createContext({ utc: !0 }), useDatePickerContext
18525
18534
  let m = e._minDate ? Promise.resolve(dayjs(e._minDate)) : Promise.resolve(null), g = e._maxDate ? Promise.resolve(dayjs(e._maxDate)) : Promise.resolve(null);
18526
18535
  isVariable$1(e._maxDate) && (g = n(e._maxDate, r).then((v) => dayjs(v.value))), isVariable$1(e._minDate) && (m = n(e._minDate, r).then((v) => dayjs(v.value)));
18527
18536
  const [h, f] = yield Promise.all([m, g]), C = Array.from({ length: 60 }, (v, y) => y), b = (v) => {
18528
- if (!v || !h && !f)
18537
+ if (!dayjs.isDayjs(v))
18529
18538
  return !1;
18530
- const y = dayjs(v);
18531
- return y.isBefore(h, "minute") || y.isAfter(f, "minute");
18539
+ const y = dayjs(v), F = h ? dayjs(h) : null, I = f ? dayjs(f).endOf("day") : null;
18540
+ return F && y.isBefore(F, "minute") || I && y.isAfter(I, "minute");
18532
18541
  }, S = (v) => {
18533
18542
  if (!v || !h && !f)
18534
18543
  return { disabledHours: () => [], disabledMinutes: () => [], disabledSeconds: () => [] };
@@ -18543,7 +18552,9 @@ const DatePickerContext = React.createContext({ utc: !0 }), useDatePickerContext
18543
18552
  };
18544
18553
  };
18545
18554
  a(() => b), c(() => S);
18546
- }), p = P(x({
18555
+ });
18556
+ console.log(i);
18557
+ const p = P(x({
18547
18558
  utc: t
18548
18559
  }, e), {
18549
18560
  disabledDate: i,
@@ -50001,7 +50012,7 @@ const useColumnsDeepMemoized = (e) => {
50001
50012
  render: (N, j) => {
50002
50013
  var R;
50003
50014
  const O = (R = n.value) == null ? void 0 : R.indexOf(j), B = n.address.concat(j.__index || O);
50004
- return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: j, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: j.__index || O, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord(j), record: j, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: S, basePath: B, children: /* @__PURE__ */ jsx("span", { role: "button", className: h, children: /* @__PURE__ */ jsx(RecursionField, { basePath: B, schema: S, onlyRenderProperties: !0 }) }) }) }) }) });
50015
+ return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: j, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: j.__index || O, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord(j), record: j, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: S, basePath: B, children: /* @__PURE__ */ jsx("span", { role: "button", className: h, children: /* @__PURE__ */ jsx(RecursionField, { basePath: B, schema: S, onlyRenderProperties: !0 }) }, O) }) }) }) });
50005
50016
  },
50006
50017
  onCell: (N, j) => ({
50007
50018
  record: N,
@@ -49,6 +49,7 @@ export declare const getStoredPopupContext: (popupUid: string) => PopupContextSt
49
49
  * @param params
50
50
  */
51
51
  export declare const storePopupContext: (popupUid: string, params: PopupContextStorage) => void;
52
+ export declare const deletePopupContext: (popupUid: string) => void;
52
53
  export declare const getBlockService: (popupUid: string) => {
53
54
  service: any;
54
55
  };