@nocobase/client 1.8.0 → 1.8.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
@@ -479,6 +479,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
479
479
  get FieldsTreeSelect() {
480
480
  return FieldsTreeSelect;
481
481
  },
482
+ get Fieldset() {
483
+ return Fieldset;
484
+ },
482
485
  get Filter() {
483
486
  return Filter;
484
487
  },
@@ -1755,6 +1758,9 @@ const bp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1755
1758
  get FieldsTreeSelect() {
1756
1759
  return FieldsTreeSelect;
1757
1760
  },
1761
+ get Fieldset() {
1762
+ return Fieldset;
1763
+ },
1758
1764
  get Filter() {
1759
1765
  return Filter;
1760
1766
  },
@@ -8739,7 +8745,7 @@ function addAppVersion(e, t) {
8739
8745
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
8740
8746
  }), e;
8741
8747
  }
8742
- const name = "@nocobase/client", version = "1.8.0", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
8748
+ const name = "@nocobase/client", version = "1.8.2", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
8743
8749
  "@ahooksjs/use-url-state": "3.5.1",
8744
8750
  "@ant-design/cssinjs": "^1.11.1",
8745
8751
  "@ant-design/icons": "^5.6.1",
@@ -8760,9 +8766,9 @@ const name = "@nocobase/client", version = "1.8.0", license = "AGPL-3.0", main =
8760
8766
  "@formily/reactive-react": "^2.2.27",
8761
8767
  "@formily/shared": "^2.2.27",
8762
8768
  "@formily/validator": "^2.2.27",
8763
- "@nocobase/evaluators": "1.8.0",
8764
- "@nocobase/sdk": "1.8.0",
8765
- "@nocobase/utils": "1.8.0",
8769
+ "@nocobase/evaluators": "1.8.2",
8770
+ "@nocobase/sdk": "1.8.2",
8771
+ "@nocobase/utils": "1.8.2",
8766
8772
  ahooks: "^3.7.2",
8767
8773
  antd: "5.24.2",
8768
8774
  "antd-style": "3.7.1",
@@ -25518,7 +25524,9 @@ const VisibleProvider = React.memo(({ children: e, popupuid: t }) => {
25518
25524
  return r() ? /* @__PURE__ */ jsx(TabsContextProvider, { activeKey: t == null ? void 0 : t.tab, onChange: o, children: e }) : /* @__PURE__ */ jsx(Fragment$1, { children: e });
25519
25525
  }, displayNone$1 = { display: "none" }, PagePopupsItemProvider = ({ params: e, context: t, currentLevel: n, children: o }) => {
25520
25526
  const r = x({}, getStoredPopupContext(e.popupuid));
25521
- return t || (t = _.omitBy(
25527
+ return useEffect(() => () => {
25528
+ removePopupLayerState(n);
25529
+ }, [n]), t || (t = _.omitBy(
25522
25530
  {
25523
25531
  dataSource: r.dataSource,
25524
25532
  collection: r.collection,
@@ -31292,7 +31300,7 @@ const DragHandler = (e) => {
31292
31300
  a.parseVariable(y, S, { appends: v }).then(({ value: R }) => {
31293
31301
  nextTick(() => {
31294
31302
  const T = transformVariableValue(R, { targetCollectionField: m.current });
31295
- _.isEmpty(T) && !_.isNumber(T) ? i.value = null : (i.value = T, i.componentProps = P(x({}, i.componentProps), {
31303
+ T == null ? i.value = null : (i.value = T, i.componentProps = P(x({}, i.componentProps), {
31296
31304
  readOnlySubmit: !0,
31297
31305
  filterTargetKey: (I == null ? void 0 : I.filterTargetKey) || "id"
31298
31306
  }));
@@ -46476,6 +46484,7 @@ const Table$1 = withDynamicSchemaProps(
46476
46484
  position: absolute;
46477
46485
  right: 0px;
46478
46486
  bottom: 0px;
46487
+ max-height: 23px;
46479
46488
  }
46480
46489
  .ant-table-footer {
46481
46490
  margin-top: 10px;
@@ -48083,6 +48092,9 @@ const CronSetInternal = (e) => {
48083
48092
  }, Expand = ExpandAction;
48084
48093
  Expand.Action = ExpandAction;
48085
48094
  Expand.Action.Design = ExpandActionDesign;
48095
+ function Fieldset(e) {
48096
+ return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(FormLayout, { layout: e.layout || "vertical", children: e.children }) });
48097
+ }
48086
48098
  const validateJSON = {
48087
48099
  validator: `{{(value, rule)=> {
48088
48100
  if (!value) {
@@ -68078,6 +68090,7 @@ export {
68078
68090
  ExtendCollectionsProvider,
68079
68091
  FieldSummary,
68080
68092
  FieldsTreeSelect,
68093
+ Fieldset,
68081
68094
  Filter,
68082
68095
  FilterAction,
68083
68096
  FilterActionContext,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ export declare function Fieldset(props: any): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './Fieldset';
@@ -27,6 +27,7 @@ export * from './divider';
27
27
  export * from './error-fallback';
28
28
  export * from './expand-action';
29
29
  export * from './expiresRadio';
30
+ export * from './fieldset';
30
31
  export * from './filter';
31
32
  export * from './form';
32
33
  export * from './form-dialog';