@stsdti/funky-ui-kit 1.5.1 → 1.5.3
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/funky-ui-kit.es.js +5 -3
- package/dist/funky-ui-kit.es.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/dist/funky-ui-kit.es.js
CHANGED
|
@@ -8167,7 +8167,9 @@ const getBindingImmutableFor = (modelValue) => {
|
|
|
8167
8167
|
return lodashExports.get(unref(modelValue), key);
|
|
8168
8168
|
},
|
|
8169
8169
|
[`onUpdate:${modelValueName}`]: (newValue) => {
|
|
8170
|
-
|
|
8170
|
+
const updated = lodashExports.cloneDeep(unref(modelValue));
|
|
8171
|
+
lodashExports.set(updated, key, newValue);
|
|
8172
|
+
modelValue.value = updated;
|
|
8171
8173
|
}
|
|
8172
8174
|
};
|
|
8173
8175
|
};
|
|
@@ -84422,7 +84424,7 @@ function useForm(config, emits) {
|
|
|
84422
84424
|
newValue = await fetchItem_(id);
|
|
84423
84425
|
} else {
|
|
84424
84426
|
newValue = await repository.fetchOne(id);
|
|
84425
|
-
newValue = transformer == null ? void 0 : transformer.transformFromApi(newValue);
|
|
84427
|
+
newValue = await (transformer == null ? void 0 : transformer.transformFromApi(newValue));
|
|
84426
84428
|
}
|
|
84427
84429
|
isCloning.value ? newValue.id = null : null;
|
|
84428
84430
|
setItem(newValue);
|
|
@@ -84437,7 +84439,7 @@ function useForm(config, emits) {
|
|
|
84437
84439
|
}
|
|
84438
84440
|
isLoading.value = true;
|
|
84439
84441
|
let newItem = lodashExports.cloneDeep(item.value);
|
|
84440
|
-
newItem = (_a4 = transformer == null ? void 0 : transformer.transformToApi) == null ? void 0 : _a4.call(transformer, newItem);
|
|
84442
|
+
newItem = await ((_a4 = transformer == null ? void 0 : transformer.transformToApi) == null ? void 0 : _a4.call(transformer, newItem));
|
|
84441
84443
|
let response = null;
|
|
84442
84444
|
if ((_b3 = item.value) == null ? void 0 : _b3.id) {
|
|
84443
84445
|
response = await repository.update((_c2 = item.value) == null ? void 0 : _c2.id, newItem);
|