@stonecrop/aform 0.45.0 → 0.46.0
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 +5 -4
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +6 -6
- package/dist/src/components/AForm.vue.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +2 -2
- package/dist/src/utils/columns.d.ts +2 -3
- package/dist/src/utils/columns.d.ts.map +1 -1
- package/package.json +5 -5
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
|
-
*
|
|
103
|
-
*
|
|
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-
|
|
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({
|