cd-form 1.0.31 → 1.0.32

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/dist/cd-form.js CHANGED
@@ -14938,7 +14938,7 @@ const Fc = { class: "cd-share-header" }, Ac = { class: "cd-share-title" }, Uc =
14938
14938
  }
14939
14939
  if (N.value) {
14940
14940
  const x = [...t], X = {
14941
- id: "__empty_row__",
14941
+ fid: "__empty_row__",
14942
14942
  _isEmpty: !0
14943
14943
  };
14944
14944
  return T(m.formData.fields).forEach((oe) => {
@@ -15254,7 +15254,7 @@ const Fc = { class: "cd-share-header" }, Ac = { class: "cd-share-title" }, Uc =
15254
15254
  useKey: !0
15255
15255
  },
15256
15256
  rowConfig: {
15257
- keyField: "id",
15257
+ keyField: "fid",
15258
15258
  isCurrent: !0,
15259
15259
  isHover: !0
15260
15260
  },
@@ -15567,21 +15567,21 @@ const Fc = { class: "cd-share-header" }, Ac = { class: "cd-share-title" }, Uc =
15567
15567
  if (!N.value || !t || !f) return;
15568
15568
  const D = f.field || f.property;
15569
15569
  if (D) {
15570
- const x = `${t.id}_${D}`;
15570
+ const x = `${t.fid}_${D}`;
15571
15571
  P.value.set(x, t[D]);
15572
15572
  }
15573
15573
  }, ya = ({ row: t, column: f }) => {
15574
15574
  if (!N.value || !t || t._isEmpty) return;
15575
- const D = t.id, x = { _originalId: D };
15575
+ const D = t.fid, x = { _originalId: D };
15576
15576
  for (const [X, Z] of Object.entries(t))
15577
15577
  Z !== void 0 && (x[X] = Z);
15578
15578
  W.value.set(D, x), r.value && (r.value.setCheckboxRow(t, !0), q.value.add(D)), ve.value = !0;
15579
15579
  }, Oa = ({ row: t, column: f }) => {
15580
15580
  if (N.value)
15581
15581
  if (t._isEmpty) {
15582
- if (Object.keys(t).some((x) => x === "id" || x === "_isEmpty" ? !1 : t[x] !== null && t[x] !== void 0 && t[x] !== "")) {
15582
+ if (Object.keys(t).some((x) => x === "fid" || x === "_isEmpty" ? !1 : t[x] !== null && t[x] !== void 0 && t[x] !== "")) {
15583
15583
  const x = { ...t };
15584
- delete x._isEmpty, x.id = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
15584
+ delete x._isEmpty, x.fid = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
15585
15585
  const X = {};
15586
15586
  for (const [Z, oe] of Object.entries(x))
15587
15587
  oe !== void 0 && (X[Z] = oe);
@@ -15589,10 +15589,10 @@ const Fc = { class: "cd-share-header" }, Ac = { class: "cd-share-title" }, Uc =
15589
15589
  }
15590
15590
  } else {
15591
15591
  const D = (f == null ? void 0 : f.field) || (f == null ? void 0 : f.property);
15592
- if (D && t.id) {
15593
- const x = `${t.id}_${D}`, X = P.value.get(x), Z = t[D];
15592
+ if (D && t.fid) {
15593
+ const x = `${t.fid}_${D}`, X = P.value.get(x), Z = t[D];
15594
15594
  if (X !== Z) {
15595
- const oe = { _originalId: t.id };
15595
+ const oe = { _originalId: t.fid };
15596
15596
  for (const [ye, Ie] of Object.entries(t))
15597
15597
  Ie !== void 0 && (oe[ye] = Ie);
15598
15598
  C("inline-save", [oe]);
@@ -16359,7 +16359,7 @@ const Fc = { class: "cd-share-header" }, Ac = { class: "cd-share-title" }, Uc =
16359
16359
  ]);
16360
16360
  };
16361
16361
  }
16362
- }), Ul = /* @__PURE__ */ Xe(Jf, [["__scopeId", "data-v-6b2c9dc4"]]), Kf = { class: "field-manage-header" }, Gf = { class: "field-manage-content" }, Xf = { class: "field-manage-toolbar" }, Qf = /* @__PURE__ */ Ye({
16362
+ }), Ul = /* @__PURE__ */ Xe(Jf, [["__scopeId", "data-v-fec3d3b8"]]), Kf = { class: "field-manage-header" }, Gf = { class: "field-manage-content" }, Xf = { class: "field-manage-toolbar" }, Qf = /* @__PURE__ */ Ye({
16363
16363
  __name: "FieldManageDialog",
16364
16364
  props: {
16365
16365
  modelValue: { type: Boolean },