@nocobase/client 1.6.25 → 1.6.26

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
@@ -6348,6 +6348,7 @@ const InternalFormBlockProvider = (e) => {
6348
6348
  var C;
6349
6349
  const t = useCollectionManager(), n = useFormBlockContext(), { action: o, readPretty: r, params: i, collection: a, association: l } = e, c = useField(), u = useMemo(
6350
6350
  () => createForm({
6351
+ validateFirst: !0,
6351
6352
  readPretty: r
6352
6353
  }),
6353
6354
  [r]
@@ -8587,6 +8588,7 @@ function withInitializer(e) {
8587
8588
  children: f === !1 ? React.createElement(e, N) : /* @__PURE__ */ jsx(
8588
8589
  Popover,
8589
8590
  P(x({
8591
+ zIndex: 9999,
8590
8592
  placement: "bottomLeft"
8591
8593
  }, h), {
8592
8594
  arrow: !1,
@@ -9206,7 +9208,7 @@ function addAppVersion(e, t) {
9206
9208
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
9207
9209
  }), e;
9208
9210
  }
9209
- const name = "@nocobase/client", version = "1.6.25", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9211
+ const name = "@nocobase/client", version = "1.6.26", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9210
9212
  "@ahooksjs/use-url-state": "3.5.1",
9211
9213
  "@ant-design/cssinjs": "^1.11.1",
9212
9214
  "@ant-design/icons": "^5.6.1",
@@ -9228,9 +9230,9 @@ const name = "@nocobase/client", version = "1.6.25", license = "AGPL-3.0", main
9228
9230
  "@formily/reactive-react": "^2.2.27",
9229
9231
  "@formily/shared": "^2.2.27",
9230
9232
  "@formily/validator": "^2.2.27",
9231
- "@nocobase/evaluators": "1.6.25",
9232
- "@nocobase/sdk": "1.6.25",
9233
- "@nocobase/utils": "1.6.25",
9233
+ "@nocobase/evaluators": "1.6.26",
9234
+ "@nocobase/sdk": "1.6.26",
9235
+ "@nocobase/utils": "1.6.26",
9234
9236
  ahooks: "^3.7.2",
9235
9237
  antd: "5.12.8",
9236
9238
  "antd-style": "3.7.1",
@@ -15676,19 +15678,7 @@ const NOOP = () => {
15676
15678
  FilterCollectionField.displayName = "FilterCollectionField";
15677
15679
  const FilterFormBlockProvider = withDynamicSchemaProps((e) => {
15678
15680
  const n = useFieldSchema()["x-filter-operators"] || {};
15679
- return /* @__PURE__ */ jsx(SchemaComponentOptions, { components: { CollectionField: FilterCollectionField }, children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: n, children: /* @__PURE__ */ jsx(DatePickerProvider, { value: { utc: !1 }, children: /* @__PURE__ */ jsx(
15680
- ActionBarProvider,
15681
- {
15682
- forceProps: {
15683
- style: {
15684
- overflowX: "auto",
15685
- maxWidth: "100%",
15686
- float: "right"
15687
- }
15688
- },
15689
- children: /* @__PURE__ */ jsx(DefaultValueProvider, { isAllowToSetDefaultValue: () => !1, children: /* @__PURE__ */ jsx(FormBlockProvider, P(x({ name: "filter-form" }, e), { confirmBeforeClose: !1 })) })
15690
- }
15691
- ) }) }) });
15681
+ return /* @__PURE__ */ jsx(SchemaComponentOptions, { components: { CollectionField: FilterCollectionField }, children: /* @__PURE__ */ jsx(CollectOperators, { defaultOperators: n, children: /* @__PURE__ */ jsx(DatePickerProvider, { value: { utc: !1 }, children: /* @__PURE__ */ jsx(DefaultValueProvider, { isAllowToSetDefaultValue: () => !1, children: /* @__PURE__ */ jsx(FormBlockProvider, P(x({ name: "filter-form" }, e), { confirmBeforeClose: !1 })) }) }) }) });
15692
15682
  }), FormFieldContext = createContext({});
15693
15683
  FormFieldContext.displayName = "FormFieldContext";
15694
15684
  const InternalFormFieldProvider = (e) => {
@@ -16912,8 +16902,8 @@ const useFormItemInitializerFields = (e) => {
16912
16902
  schema: i
16913
16903
  };
16914
16904
  }, useFilterAssociatedFormItemInitializerFields = () => {
16915
- const { name: e, fields: t } = useCollection_deprecated(), { getCollectionFields: n } = useCollectionManager_deprecated(), o = ["o2o", "oho", "obo", "m2o", "m2m"];
16916
- return t == null ? void 0 : t.filter((r) => r.target && r.uiSchema && o.includes(r.interface)).map((r) => associationFieldToMenu(r, r.name, e, n, [])).filter(Boolean);
16905
+ const { name: e, fields: t } = useCollection_deprecated(), { getCollectionFields: n } = useCollectionManager_deprecated(), o = ["attachmentURL"];
16906
+ return t == null ? void 0 : t.filter((r) => r.target && r.uiSchema && !o.includes(r.interface)).map((r) => associationFieldToMenu(r, r.name, e, n, [])).filter(Boolean);
16917
16907
  }, useInheritsFormItemInitializerFields = (e) => {
16918
16908
  const { name: t } = useCollection_deprecated(), { getInterface: n, getInheritCollections: o, getCollection: r, getParentCollectionFields: i } = useCollectionManager_deprecated(), a = o(t);
16919
16909
  useActionContext();
@@ -29631,9 +29621,11 @@ const useContextVariable = () => {
29631
29621
  }, [t, e == null ? void 0 : e.name, o, JSON.stringify(a), r, i]);
29632
29622
  };
29633
29623
  function getLinkageRules$1(e) {
29634
- var t;
29635
- if (e)
29636
- return (t = e["x-linkage-rules"]) == null ? void 0 : t.filter((n) => !n.disabled);
29624
+ var n;
29625
+ if (!e)
29626
+ return;
29627
+ const t = e["x-linkage-rules"] || ((n = e == null ? void 0 : e.parent) == null ? void 0 : n["x-linkage-rules"]) || [];
29628
+ return t == null ? void 0 : t.filter((o) => !o.disabled);
29637
29629
  }
29638
29630
  const useParseDefaultValue = () => {
29639
29631
  const e = useField(), t = useFieldSchema(), n = useVariables$1(), o = useLocalVariables$1(), r = useCollectionRecord(), { isInAssignFieldValues: i, isInSetDefaultValueDialog: a, isInFormDataTemplate: l, isInSubTable: c, isInSubForm: u } = useFlag() || {}, d = useCollection(), { isSpecialCase: p, setDefaultValue: m } = useSpecialCase(), h = useRecordIndex(), { type: g, form: f } = useFormBlockContext(), { getOperator: C } = useOperators(), b = useDataSourceManager(), S = useCallback(
@@ -31345,8 +31337,8 @@ const addChildActionSettings = new SchemaSettings({
31345
31337
  }
31346
31338
  }
31347
31339
  ]
31348
- }), bulkDeleteActionSettings = new SchemaSettings({
31349
- name: "actionSettings:bulkDelete",
31340
+ }), associateActionSettings = new SchemaSettings({
31341
+ name: "actionSettings:associate",
31350
31342
  items: [
31351
31343
  {
31352
31344
  name: "editButton",
@@ -31357,8 +31349,14 @@ const addChildActionSettings = new SchemaSettings({
31357
31349
  }
31358
31350
  },
31359
31351
  {
31360
- name: "secondConFirm",
31361
- Component: SecondConFirm
31352
+ name: "linkageRules",
31353
+ Component: SchemaSettingsLinkageRules,
31354
+ useComponentProps() {
31355
+ const { name: e } = useCollection_deprecated(), { linkageRulesProps: t } = useSchemaToolbar();
31356
+ return P(x({}, t), {
31357
+ collectionName: e
31358
+ });
31359
+ }
31362
31360
  },
31363
31361
  {
31364
31362
  name: "refreshDataBlockRequest",
@@ -31370,17 +31368,16 @@ const addChildActionSettings = new SchemaSettings({
31370
31368
  }
31371
31369
  },
31372
31370
  {
31373
- name: "remove",
31374
- sort: 100,
31375
- Component: RemoveButton,
31376
- useComponentProps() {
31377
- const { removeButtonProps: e } = useSchemaToolbar();
31378
- return e;
31379
- }
31371
+ name: "secondConFirm",
31372
+ Component: SecondConFirm
31373
+ },
31374
+ {
31375
+ name: "delete",
31376
+ type: "remove"
31380
31377
  }
31381
31378
  ]
31382
- }), deleteActionSettings = new SchemaSettings({
31383
- name: "actionSettings:delete",
31379
+ }), bulkDeleteActionSettings = new SchemaSettings({
31380
+ name: "actionSettings:bulkDelete",
31384
31381
  items: [
31385
31382
  {
31386
31383
  name: "editButton",
@@ -31390,16 +31387,6 @@ const addChildActionSettings = new SchemaSettings({
31390
31387
  return e;
31391
31388
  }
31392
31389
  },
31393
- {
31394
- name: "linkageRules",
31395
- Component: SchemaSettingsLinkageRules,
31396
- useComponentProps() {
31397
- const { name: e } = useCollection_deprecated(), { linkageRulesProps: t } = useSchemaToolbar();
31398
- return P(x({}, t), {
31399
- collectionName: e
31400
- });
31401
- }
31402
- },
31403
31390
  {
31404
31391
  name: "secondConFirm",
31405
31392
  Component: SecondConFirm
@@ -31414,12 +31401,17 @@ const addChildActionSettings = new SchemaSettings({
31414
31401
  }
31415
31402
  },
31416
31403
  {
31417
- name: "delete",
31418
- type: "remove"
31404
+ name: "remove",
31405
+ sort: 100,
31406
+ Component: RemoveButton,
31407
+ useComponentProps() {
31408
+ const { removeButtonProps: e } = useSchemaToolbar();
31409
+ return e;
31410
+ }
31419
31411
  }
31420
31412
  ]
31421
- }), disassociateActionSettings = new SchemaSettings({
31422
- name: "actionSettings:disassociate",
31413
+ }), deleteActionSettings = new SchemaSettings({
31414
+ name: "actionSettings:delete",
31423
31415
  items: [
31424
31416
  {
31425
31417
  name: "editButton",
@@ -31439,6 +31431,10 @@ const addChildActionSettings = new SchemaSettings({
31439
31431
  });
31440
31432
  }
31441
31433
  },
31434
+ {
31435
+ name: "secondConFirm",
31436
+ Component: SecondConFirm
31437
+ },
31442
31438
  {
31443
31439
  name: "refreshDataBlockRequest",
31444
31440
  Component: RefreshDataBlockRequest,
@@ -31448,17 +31444,13 @@ const addChildActionSettings = new SchemaSettings({
31448
31444
  };
31449
31445
  }
31450
31446
  },
31451
- {
31452
- name: "secondConFirm",
31453
- Component: SecondConFirm
31454
- },
31455
31447
  {
31456
31448
  name: "delete",
31457
31449
  type: "remove"
31458
31450
  }
31459
31451
  ]
31460
- }), associateActionSettings = new SchemaSettings({
31461
- name: "actionSettings:associate",
31452
+ }), disassociateActionSettings = new SchemaSettings({
31453
+ name: "actionSettings:disassociate",
31462
31454
  items: [
31463
31455
  {
31464
31456
  name: "editButton",
@@ -34558,7 +34550,7 @@ const tableBlockSettings = new SchemaSettings({
34558
34550
  }
34559
34551
  }
34560
34552
  ]
34561
- }), fieldComponentNameMap = (e) => e === "Select" ? "FilterSelect" : e, filterFormItemFieldSettings = new SchemaSettings({
34553
+ }), fieldComponentNameMap = (e) => e === "Select" ? "FilterSelect" : e === "Picker" ? "FilterPicker" : e, filterFormItemFieldSettings = new SchemaSettings({
34562
34554
  name: "fieldSettings:FilterFormItem",
34563
34555
  items: [
34564
34556
  {
@@ -35749,6 +35741,146 @@ const tableBlockSettings = new SchemaSettings({
35749
35741
  }), richTextSettings = new SchemaSettings({
35750
35742
  name: "fieldSettings:component:RichText",
35751
35743
  items: [ellipsisSettingsItem]
35744
+ });
35745
+ function GroupTitleEditor(e) {
35746
+ const t = useField(), n = useFieldSchema(), { dn: o } = useDesignable(), { t: r } = useTranslation();
35747
+ return /* @__PURE__ */ jsx(
35748
+ SchemaSettingsModalItem,
35749
+ {
35750
+ title: r("Edit group title"),
35751
+ schema: {
35752
+ type: "object",
35753
+ title: r("Edit group title"),
35754
+ properties: {
35755
+ children: {
35756
+ "x-decorator": "FormItem",
35757
+ "x-component": "Input",
35758
+ title: r("Group title"),
35759
+ default: t.componentProps.children,
35760
+ "x-component-props": {}
35761
+ }
35762
+ }
35763
+ },
35764
+ onSubmit: ({ children: i }) => {
35765
+ t.componentProps.children = i, n["x-component-props"] = n["x-component-props"] || {}, n["x-component-props"].children = i, o.emit("patch", {
35766
+ schema: {
35767
+ "x-uid": n["x-uid"],
35768
+ "x-component-props": x({}, n["x-component-props"])
35769
+ }
35770
+ }), o.refresh();
35771
+ }
35772
+ }
35773
+ );
35774
+ }
35775
+ const dividerSettings = new SchemaSettings({
35776
+ name: "blockSettings:divider",
35777
+ items: [
35778
+ {
35779
+ name: "editTitle",
35780
+ type: "item",
35781
+ Component: GroupTitleEditor
35782
+ },
35783
+ {
35784
+ name: "orientation",
35785
+ type: "select",
35786
+ useComponentProps() {
35787
+ var r;
35788
+ const e = useField(), t = useFieldSchema(), { t: n } = useTranslation(), { dn: o } = useDesignable();
35789
+ return {
35790
+ title: n("Title position"),
35791
+ value: ((r = e.componentProps) == null ? void 0 : r.orientation) || "left",
35792
+ options: [
35793
+ { label: n("Left"), value: "left" },
35794
+ { label: n("Center"), value: "center" },
35795
+ { label: n("Right"), value: "right" }
35796
+ ],
35797
+ onChange: (i) => {
35798
+ e.componentProps = e.componentProps || {}, e.componentProps.orientation = i, t["x-component-props"] = t["x-component-props"] || {}, t["x-component-props"].orientation = i, o.emit("patch", {
35799
+ schema: {
35800
+ "x-uid": t["x-uid"],
35801
+ "x-component-props": t["x-component-props"]
35802
+ }
35803
+ });
35804
+ }
35805
+ };
35806
+ }
35807
+ },
35808
+ {
35809
+ name: "dashed",
35810
+ type: "switch",
35811
+ useComponentProps: () => {
35812
+ const e = useField(), t = useFieldSchema(), { t: n } = useTranslation(), { dn: o } = useDesignable();
35813
+ return {
35814
+ title: n("Dashed"),
35815
+ defaultChecked: !0,
35816
+ checked: e.componentProps.dashed,
35817
+ onChange: (r) => {
35818
+ e.componentProps.dashed = r, t["x-component-props"].dashed = r, r === !1 && (t["x-component-props"].dashed = !1), o.emit("patch", {
35819
+ schema: t
35820
+ }), o.refresh();
35821
+ }
35822
+ };
35823
+ }
35824
+ },
35825
+ {
35826
+ name: "color",
35827
+ type: "item",
35828
+ useComponentProps: () => {
35829
+ const { t: e } = useTranslation(), { dn: t } = useDesignable(), n = useField(), o = useFieldSchema();
35830
+ return {
35831
+ title: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
35832
+ e("Color"),
35833
+ /* @__PURE__ */ jsx("div", { style: { float: "right" }, children: /* @__PURE__ */ jsx(
35834
+ ColorPicker,
35835
+ {
35836
+ defaultValue: n.componentProps.color || "rgba(0, 0, 0, 0.88)",
35837
+ onChange: (r) => {
35838
+ n.componentProps = n.componentProps || {}, n.componentProps.color = r, o["x-component-props"] = o["x-component-props"] || {}, o["x-component-props"].color = r, t.emit("patch", {
35839
+ schema: o
35840
+ }), t.refresh();
35841
+ }
35842
+ }
35843
+ ) })
35844
+ ] })
35845
+ };
35846
+ }
35847
+ },
35848
+ {
35849
+ name: "borderColor",
35850
+ type: "item",
35851
+ useComponentProps: () => {
35852
+ const { t: e } = useTranslation(), { dn: t } = useDesignable(), n = useField(), o = useFieldSchema();
35853
+ return {
35854
+ title: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
35855
+ e("Divider line color"),
35856
+ /* @__PURE__ */ jsx("div", { style: { float: "right" }, children: /* @__PURE__ */ jsx(
35857
+ ColorPicker,
35858
+ {
35859
+ defaultValue: n.componentProps.borderColor || "rgba(5, 5, 5, 0.06)",
35860
+ onChange: (r) => {
35861
+ n.componentProps = n.componentProps || {}, n.componentProps.borderColor = r, o["x-component-props"] = o["x-component-props"] || {}, o["x-component-props"].borderColor = r, t.emit("patch", {
35862
+ schema: o
35863
+ }), t.refresh();
35864
+ }
35865
+ }
35866
+ ) })
35867
+ ] })
35868
+ };
35869
+ }
35870
+ },
35871
+ {
35872
+ name: "delete",
35873
+ type: "remove",
35874
+ useComponentProps() {
35875
+ return {
35876
+ removeParentsIfNoChildren: !0,
35877
+ breakRemoveOn: {
35878
+ "x-component": "Grid"
35879
+ }
35880
+ };
35881
+ }
35882
+ }
35883
+ ]
35752
35884
  }), inputNumberComponentFieldSettings = new SchemaSettings({
35753
35885
  name: "fieldSettings:component:InputNumber",
35754
35886
  items: [
@@ -36059,12 +36191,12 @@ const tableBlockSettings = new SchemaSettings({
36059
36191
  name: "linkageRules",
36060
36192
  Component: SchemaSettingsLinkageRules,
36061
36193
  useComponentProps() {
36062
- const e = useField(), t = useFieldSchema(), o = useCollectionManager().getCollectionField(t["x-collection-field"]), { rerenderDataBlock: r } = useRerenderDataBlock();
36194
+ const e = useField(), t = useFieldSchema(), { fieldSchema: n } = useColumnSchema$1(), o = n || t, i = useCollectionManager().getCollectionField(o["x-collection-field"]), { rerenderDataBlock: a } = useRerenderDataBlock();
36063
36195
  return {
36064
- collectionName: o == null ? void 0 : o.target,
36196
+ collectionName: i == null ? void 0 : i.target,
36065
36197
  Component: LinkageRulesComponent,
36066
36198
  readPretty: e.readPretty,
36067
- afterSubmit: r
36199
+ afterSubmit: a
36068
36200
  };
36069
36201
  }
36070
36202
  }, recordPerPage = {
@@ -36256,6 +36388,42 @@ const tableBlockSettings = new SchemaSettings({
36256
36388
  allowMultiple$1,
36257
36389
  titleField$2
36258
36390
  ]
36391
+ }), filterRecordPickerComponentFieldSettings = new SchemaSettings({
36392
+ name: "fieldSettings:component:FilterPicker",
36393
+ items: [
36394
+ fieldComponent$2,
36395
+ {
36396
+ name: "popupSize",
36397
+ type: "select",
36398
+ useVisible() {
36399
+ return !useIsFieldReadPretty();
36400
+ },
36401
+ useComponentProps() {
36402
+ var a, l, c;
36403
+ const { t: e } = useTranslation(), t = useField(), { fieldSchema: n } = useColumnSchema$1(), o = useFieldSchema(), r = n || o, { dn: i } = useDesignable();
36404
+ return {
36405
+ title: e("Popup size"),
36406
+ options: [
36407
+ { label: e("Small"), value: "small" },
36408
+ { label: e("Middle"), value: "middle" },
36409
+ { label: e("Large"), value: "large" }
36410
+ ],
36411
+ value: (c = (a = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : a.openSize) != null ? c : ((l = r == null ? void 0 : r["x-component-props"]) == null ? void 0 : l.openMode) == "modal" ? "large" : "middle",
36412
+ onChange: (u) => {
36413
+ t.componentProps.openSize = u, r["x-component-props"] = P(x({}, r["x-component-props"]), { openSize: u }), i.emit("patch", {
36414
+ schema: {
36415
+ "x-uid": r["x-uid"],
36416
+ "x-component-props": r["x-component-props"]
36417
+ }
36418
+ }), i.refresh();
36419
+ }
36420
+ };
36421
+ }
36422
+ },
36423
+ allowAddNew,
36424
+ getAllowMultiple({ title: "Allow multiple selection" }),
36425
+ titleField$2
36426
+ ]
36259
36427
  }), allowMultiple = {
36260
36428
  name: "allowMultiple",
36261
36429
  type: "switch",
@@ -36402,162 +36570,6 @@ const tableBlockSettings = new SchemaSettings({
36402
36570
  enableLink,
36403
36571
  ellipsisSettingsItem
36404
36572
  ]
36405
- }), unixTimestampComponentFieldSettings = new SchemaSettings({
36406
- name: "fieldSettings:component:UnixTimestamp",
36407
- items: [
36408
- {
36409
- name: "dateDisplayFormat",
36410
- Component: SchemaSettingsDateFormat,
36411
- useComponentProps() {
36412
- const e = useFieldSchema(), { fieldSchema: t } = useColumnSchema$1();
36413
- return {
36414
- fieldSchema: t || e
36415
- };
36416
- }
36417
- },
36418
- enableLinkSettingsItem,
36419
- openModeSettingsItem
36420
- ]
36421
- });
36422
- function GroupTitleEditor(e) {
36423
- const t = useField(), n = useFieldSchema(), { dn: o } = useDesignable(), { t: r } = useTranslation();
36424
- return /* @__PURE__ */ jsx(
36425
- SchemaSettingsModalItem,
36426
- {
36427
- title: r("Edit group title"),
36428
- schema: {
36429
- type: "object",
36430
- title: r("Edit group title"),
36431
- properties: {
36432
- children: {
36433
- "x-decorator": "FormItem",
36434
- "x-component": "Input",
36435
- title: r("Group title"),
36436
- default: t.componentProps.children,
36437
- "x-component-props": {}
36438
- }
36439
- }
36440
- },
36441
- onSubmit: ({ children: i }) => {
36442
- t.componentProps.children = i, n["x-component-props"] = n["x-component-props"] || {}, n["x-component-props"].children = i, o.emit("patch", {
36443
- schema: {
36444
- "x-uid": n["x-uid"],
36445
- "x-component-props": x({}, n["x-component-props"])
36446
- }
36447
- }), o.refresh();
36448
- }
36449
- }
36450
- );
36451
- }
36452
- const dividerSettings = new SchemaSettings({
36453
- name: "blockSettings:divider",
36454
- items: [
36455
- {
36456
- name: "editTitle",
36457
- type: "item",
36458
- Component: GroupTitleEditor
36459
- },
36460
- {
36461
- name: "orientation",
36462
- type: "select",
36463
- useComponentProps() {
36464
- var r;
36465
- const e = useField(), t = useFieldSchema(), { t: n } = useTranslation(), { dn: o } = useDesignable();
36466
- return {
36467
- title: n("Title position"),
36468
- value: ((r = e.componentProps) == null ? void 0 : r.orientation) || "left",
36469
- options: [
36470
- { label: n("Left"), value: "left" },
36471
- { label: n("Center"), value: "center" },
36472
- { label: n("Right"), value: "right" }
36473
- ],
36474
- onChange: (i) => {
36475
- e.componentProps = e.componentProps || {}, e.componentProps.orientation = i, t["x-component-props"] = t["x-component-props"] || {}, t["x-component-props"].orientation = i, o.emit("patch", {
36476
- schema: {
36477
- "x-uid": t["x-uid"],
36478
- "x-component-props": t["x-component-props"]
36479
- }
36480
- });
36481
- }
36482
- };
36483
- }
36484
- },
36485
- {
36486
- name: "dashed",
36487
- type: "switch",
36488
- useComponentProps: () => {
36489
- const e = useField(), t = useFieldSchema(), { t: n } = useTranslation(), { dn: o } = useDesignable();
36490
- return {
36491
- title: n("Dashed"),
36492
- defaultChecked: !0,
36493
- checked: e.componentProps.dashed,
36494
- onChange: (r) => {
36495
- e.componentProps.dashed = r, t["x-component-props"].dashed = r, r === !1 && (t["x-component-props"].dashed = !1), o.emit("patch", {
36496
- schema: t
36497
- }), o.refresh();
36498
- }
36499
- };
36500
- }
36501
- },
36502
- {
36503
- name: "color",
36504
- type: "item",
36505
- useComponentProps: () => {
36506
- const { t: e } = useTranslation(), { dn: t } = useDesignable(), n = useField(), o = useFieldSchema();
36507
- return {
36508
- title: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
36509
- e("Color"),
36510
- /* @__PURE__ */ jsx("div", { style: { float: "right" }, children: /* @__PURE__ */ jsx(
36511
- ColorPicker,
36512
- {
36513
- defaultValue: n.componentProps.color || "rgba(0, 0, 0, 0.88)",
36514
- onChange: (r) => {
36515
- n.componentProps = n.componentProps || {}, n.componentProps.color = r, o["x-component-props"] = o["x-component-props"] || {}, o["x-component-props"].color = r, t.emit("patch", {
36516
- schema: o
36517
- }), t.refresh();
36518
- }
36519
- }
36520
- ) })
36521
- ] })
36522
- };
36523
- }
36524
- },
36525
- {
36526
- name: "borderColor",
36527
- type: "item",
36528
- useComponentProps: () => {
36529
- const { t: e } = useTranslation(), { dn: t } = useDesignable(), n = useField(), o = useFieldSchema();
36530
- return {
36531
- title: /* @__PURE__ */ jsxs("div", { style: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
36532
- e("Divider line color"),
36533
- /* @__PURE__ */ jsx("div", { style: { float: "right" }, children: /* @__PURE__ */ jsx(
36534
- ColorPicker,
36535
- {
36536
- defaultValue: n.componentProps.borderColor || "rgba(5, 5, 5, 0.06)",
36537
- onChange: (r) => {
36538
- n.componentProps = n.componentProps || {}, n.componentProps.borderColor = r, o["x-component-props"] = o["x-component-props"] || {}, o["x-component-props"].borderColor = r, t.emit("patch", {
36539
- schema: o
36540
- }), t.refresh();
36541
- }
36542
- }
36543
- ) })
36544
- ] })
36545
- };
36546
- }
36547
- },
36548
- {
36549
- name: "delete",
36550
- type: "remove",
36551
- useComponentProps() {
36552
- return {
36553
- removeParentsIfNoChildren: !0,
36554
- breakRemoveOn: {
36555
- "x-component": "Grid"
36556
- }
36557
- };
36558
- }
36559
- }
36560
- ]
36561
36573
  }), SchemaSettingsTimeFormat = function e(t) {
36562
36574
  var u, d, p;
36563
36575
  const { fieldSchema: n } = t, o = useField(), { dn: r } = useDesignable(), { t: i } = useTranslation(), { getCollectionJoinField: a } = useCollectionManager_deprecated(), l = a(n == null ? void 0 : n["x-collection-field"]) || {}, c = ((u = n == null ? void 0 : n["x-component-props"]) == null ? void 0 : u.format) || ((p = (d = l == null ? void 0 : l.uiSchema) == null ? void 0 : d["x-component-props"]) == null ? void 0 : p.format) || "HH:mm:ss";
@@ -36639,11 +36651,27 @@ const dividerSettings = new SchemaSettings({
36639
36651
  }
36640
36652
  }
36641
36653
  ]
36654
+ }), unixTimestampComponentFieldSettings = new SchemaSettings({
36655
+ name: "fieldSettings:component:UnixTimestamp",
36656
+ items: [
36657
+ {
36658
+ name: "dateDisplayFormat",
36659
+ Component: SchemaSettingsDateFormat,
36660
+ useComponentProps() {
36661
+ const e = useFieldSchema(), { fieldSchema: t } = useColumnSchema$1();
36662
+ return {
36663
+ fieldSchema: t || e
36664
+ };
36665
+ }
36666
+ },
36667
+ enableLinkSettingsItem,
36668
+ openModeSettingsItem
36669
+ ]
36642
36670
  });
36643
36671
  class SchemaSettingsPlugin extends Plugin {
36644
36672
  load() {
36645
36673
  return V(this, null, function* () {
36646
- this.schemaSettingsManager.add(tableBlockSettings), this.schemaSettingsManager.add(createFormBlockSettings), this.schemaSettingsManager.add(editFormBlockSettings), this.schemaSettingsManager.add(filterFormBlockSettings), this.schemaSettingsManager.add(filterFormItemFieldSettings), this.schemaSettingsManager.add(multiDataDetailsBlockSettings), this.schemaSettingsManager.add(detailsWithPaginationSettings), this.schemaSettingsManager.add(singleDataDetailsBlockSettings), this.schemaSettingsManager.add(detailsBlockSettings), this.schemaSettingsManager.add(tableSelectorBlockSettings), this.schemaSettingsManager.add(listBlockSettings), this.schemaSettingsManager.add(gridCardBlockSettings), this.schemaSettingsManager.add(filterCollapseBlockSettings), this.schemaSettingsManager.add(markdownBlockSettings), this.schemaSettingsManager.add(addNewActionSettings), this.schemaSettingsManager.add(filterActionSettings), this.schemaSettingsManager.add(refreshActionSettings), this.schemaSettingsManager.add(viewActionSettings), this.schemaSettingsManager.add(editActionSettings), this.schemaSettingsManager.add(deleteActionSettings), this.schemaSettingsManager.add(disassociateActionSettings), this.schemaSettingsManager.add(associateActionSettings), this.schemaSettingsManager.add(bulkDeleteActionSettings), this.schemaSettingsManager.add(customizeAddRecordActionSettings), this.schemaSettingsManager.add(customizePopupActionSettings), this.schemaSettingsManager.add(customizeLinkActionSettings), this.schemaSettingsManager.add(customizeUpdateRecordActionSettings), this.schemaSettingsManager.add(createSubmitActionSettings), this.schemaSettingsManager.add(updateSubmitActionSettings), this.schemaSettingsManager.add(submitActionSettings), this.schemaSettingsManager.add(customizeSaveRecordActionSettings), this.schemaSettingsManager.add(addChildActionSettings), this.schemaSettingsManager.add(expendableActionSettings), this.schemaSettingsManager.add(fieldSettingsFormItem), this.schemaSettingsManager.add(tableColumnSettings), this.schemaSettingsManager.add(filterCollapseItemFieldSettings), this.schemaSettingsManager.add(selectComponentFieldSettings), this.schemaSettingsManager.add(filterSelectComponentFieldSettings), this.schemaSettingsManager.add(recordPickerComponentFieldSettings), this.schemaSettingsManager.add(subformComponentFieldSettings), this.schemaSettingsManager.add(subformPopoverComponentFieldSettings), this.schemaSettingsManager.add(subTablePopoverComponentFieldSettings), this.schemaSettingsManager.add(datePickerComponentFieldSettings), this.schemaSettingsManager.add(rangePickerPickerComponentFieldSettings), this.schemaSettingsManager.add(unixTimestampComponentFieldSettings), this.schemaSettingsManager.add(inputNumberComponentFieldSettings), this.schemaSettingsManager.add(inputComponentSettings), this.schemaSettingsManager.add(inputURLSettings), this.schemaSettingsManager.add(inputTextAreaSettings), this.schemaSettingsManager.add(inputJSONSettings), this.schemaSettingsManager.add(markdownSettings), this.schemaSettingsManager.add(markdownVditorSettings), this.schemaSettingsManager.add(richTextSettings), this.schemaSettingsManager.add(fileManagerComponentFieldSettings), this.schemaSettingsManager.add(tagComponentFieldSettings), this.schemaSettingsManager.add(cascadeSelectComponentFieldSettings), this.schemaSettingsManager.add(inputPreviewComponentFieldSettings), this.schemaSettingsManager.add(uploadAttachmentComponentFieldSettings), this.schemaSettingsManager.add(previewComponentFieldSettings), this.schemaSettingsManager.add(dividerSettings), this.schemaSettingsManager.add(timePickerComponentFieldSettings);
36674
+ this.schemaSettingsManager.add(tableBlockSettings), this.schemaSettingsManager.add(createFormBlockSettings), this.schemaSettingsManager.add(editFormBlockSettings), this.schemaSettingsManager.add(filterFormBlockSettings), this.schemaSettingsManager.add(filterFormItemFieldSettings), this.schemaSettingsManager.add(multiDataDetailsBlockSettings), this.schemaSettingsManager.add(detailsWithPaginationSettings), this.schemaSettingsManager.add(singleDataDetailsBlockSettings), this.schemaSettingsManager.add(detailsBlockSettings), this.schemaSettingsManager.add(tableSelectorBlockSettings), this.schemaSettingsManager.add(listBlockSettings), this.schemaSettingsManager.add(gridCardBlockSettings), this.schemaSettingsManager.add(filterCollapseBlockSettings), this.schemaSettingsManager.add(markdownBlockSettings), this.schemaSettingsManager.add(addNewActionSettings), this.schemaSettingsManager.add(filterActionSettings), this.schemaSettingsManager.add(refreshActionSettings), this.schemaSettingsManager.add(viewActionSettings), this.schemaSettingsManager.add(editActionSettings), this.schemaSettingsManager.add(deleteActionSettings), this.schemaSettingsManager.add(disassociateActionSettings), this.schemaSettingsManager.add(associateActionSettings), this.schemaSettingsManager.add(bulkDeleteActionSettings), this.schemaSettingsManager.add(customizeAddRecordActionSettings), this.schemaSettingsManager.add(customizePopupActionSettings), this.schemaSettingsManager.add(customizeLinkActionSettings), this.schemaSettingsManager.add(customizeUpdateRecordActionSettings), this.schemaSettingsManager.add(createSubmitActionSettings), this.schemaSettingsManager.add(updateSubmitActionSettings), this.schemaSettingsManager.add(submitActionSettings), this.schemaSettingsManager.add(customizeSaveRecordActionSettings), this.schemaSettingsManager.add(addChildActionSettings), this.schemaSettingsManager.add(expendableActionSettings), this.schemaSettingsManager.add(fieldSettingsFormItem), this.schemaSettingsManager.add(tableColumnSettings), this.schemaSettingsManager.add(filterCollapseItemFieldSettings), this.schemaSettingsManager.add(selectComponentFieldSettings), this.schemaSettingsManager.add(filterSelectComponentFieldSettings), this.schemaSettingsManager.add(recordPickerComponentFieldSettings), this.schemaSettingsManager.add(filterRecordPickerComponentFieldSettings), this.schemaSettingsManager.add(subformComponentFieldSettings), this.schemaSettingsManager.add(subformPopoverComponentFieldSettings), this.schemaSettingsManager.add(subTablePopoverComponentFieldSettings), this.schemaSettingsManager.add(datePickerComponentFieldSettings), this.schemaSettingsManager.add(rangePickerPickerComponentFieldSettings), this.schemaSettingsManager.add(unixTimestampComponentFieldSettings), this.schemaSettingsManager.add(inputNumberComponentFieldSettings), this.schemaSettingsManager.add(inputComponentSettings), this.schemaSettingsManager.add(inputURLSettings), this.schemaSettingsManager.add(inputTextAreaSettings), this.schemaSettingsManager.add(inputJSONSettings), this.schemaSettingsManager.add(markdownSettings), this.schemaSettingsManager.add(markdownVditorSettings), this.schemaSettingsManager.add(richTextSettings), this.schemaSettingsManager.add(fileManagerComponentFieldSettings), this.schemaSettingsManager.add(tagComponentFieldSettings), this.schemaSettingsManager.add(cascadeSelectComponentFieldSettings), this.schemaSettingsManager.add(inputPreviewComponentFieldSettings), this.schemaSettingsManager.add(uploadAttachmentComponentFieldSettings), this.schemaSettingsManager.add(previewComponentFieldSettings), this.schemaSettingsManager.add(dividerSettings), this.schemaSettingsManager.add(timePickerComponentFieldSettings);
36647
36675
  });
36648
36676
  }
36649
36677
  }
@@ -42172,7 +42200,7 @@ const InternalNesterCardCss = css`
42172
42200
  }) : [], [t, d == null ? void 0 : d.label]), T = {
42173
42201
  size: "small",
42174
42202
  fieldNames: d,
42175
- multiple: n !== !1 && ["o2m", "m2m", "mbm"].includes(f == null ? void 0 : f.interface),
42203
+ multiple: n === !0 ? !0 : n !== !1 && ["o2m", "m2m", "mbm"].includes(f == null ? void 0 : f.interface),
42176
42204
  association: {
42177
42205
  target: f == null ? void 0 : f.target
42178
42206
  },
@@ -42195,7 +42223,7 @@ const InternalNesterCardCss = css`
42195
42223
  k(M ? unionBy($, z, (E == null ? void 0 : E.targetKey) || "id") : ($ == null ? void 0 : $[0]) || null), R(!1);
42196
42224
  },
42197
42225
  style: {
42198
- display: M !== !1 && ["o2m", "m2m", "mbm"].includes(E == null ? void 0 : E.interface) ? "block" : "none"
42226
+ display: M === !1 ? "none" : "block"
42199
42227
  }
42200
42228
  };
42201
42229
  };
@@ -43795,6 +43823,7 @@ const Table$1 = withDynamicSchemaProps(
43795
43823
  .ant-table-footer {
43796
43824
  margin-top: 10px;
43797
43825
  background: inherit;
43826
+ min-height: 22px;
43798
43827
  }
43799
43828
  `, tableClassName = css`
43800
43829
  .ant-formily-item-feedback-layout-popover {
@@ -8,3 +8,4 @@
8
8
  */
9
9
  import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings';
10
10
  export declare const recordPickerComponentFieldSettings: SchemaSettings<{}>;
11
+ export declare const filterRecordPickerComponentFieldSettings: SchemaSettings<{}>;