@stonecrop/aform 0.45.0 → 0.45.1

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/aform.js CHANGED
@@ -99,9 +99,8 @@ function badgeInputAccentStyle(descriptor) {
99
99
  * A fieldset's *children* are real columns, so it is flattened rather than dropped; losing them is
100
100
  * the same silent defect in the other direction.
101
101
  *
102
- * One definition, called by both consumers: `Registry.buildTableConfig` (a child table's columns,
103
- * from its target's resolved schema) and Desktop's records list. Re-deriving it at either call
104
- * site produced exactly one of the two failures above at each.
102
+ * This is the one definition, for a child table's columns and a records list alike. Call it; never
103
+ * re-derive it at a call site, which produced exactly one of the two failures above at each.
105
104
  *
106
105
  * @param fields - resolved fields, as produced by `resolveSchema`
107
106
  * @returns column definitions, with the `kind` discriminator stripped
@@ -2722,6 +2721,7 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
2722
2721
  };
2723
2722
  updateTableRows(fieldname, rows);
2724
2723
  };
2724
+ const formId = useId();
2725
2725
  const componentProps = (componentObj) => {
2726
2726
  const propsToPass = {};
2727
2727
  for (const [key, value] of Object.entries(componentObj)) if (![
@@ -2734,6 +2734,7 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
2734
2734
  "width",
2735
2735
  "height"
2736
2736
  ].includes(key)) propsToPass[key] = value;
2737
+ propsToPass["uuid"] ??= `${formId}-${componentObj.fieldname}`;
2737
2738
  if (componentObj.kind === "table") {
2738
2739
  propsToPass["rows"] = dataModel.value[componentObj.fieldname] || [];
2739
2740
  propsToPass["onUpdate:rows"] = (rows) => updateTableRows(componentObj.fieldname, rows);
@@ -2849,7 +2850,7 @@ var AForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
2849
2850
  }), 128))]);
2850
2851
  };
2851
2852
  }
2852
- }), [["__scopeId", "data-v-d4179fed"]]);
2853
+ }), [["__scopeId", "data-v-648dd570"]]);
2853
2854
  //#endregion
2854
2855
  //#region src/components/base/CollapseButton.vue
2855
2856
  var CollapseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({