@stsdti/funky-ui-kit 1.5.2 → 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.
@@ -8167,22 +8167,13 @@ const getBindingImmutableFor = (modelValue) => {
8167
8167
  return lodashExports.get(unref(modelValue), key);
8168
8168
  },
8169
8169
  [`onUpdate:${modelValueName}`]: (newValue) => {
8170
- modelValue.value = { ...modelValue.value, [key]: newValue };
8170
+ const updated = lodashExports.cloneDeep(unref(modelValue));
8171
+ lodashExports.set(updated, key, newValue);
8172
+ modelValue.value = updated;
8171
8173
  }
8172
8174
  };
8173
8175
  };
8174
8176
  };
8175
- const getBindingNew = (modelValue, path, { modelValueName = "modelValue", validationPath = null } = {}) => {
8176
- return {
8177
- name: [validationPath, path].filter(Boolean).join("."),
8178
- get [modelValueName]() {
8179
- return lodashExports.get(unref(modelValue), path);
8180
- },
8181
- [`onUpdate:${modelValueName}`]: (newValue) => {
8182
- modelValue.value = { ...modelValue.value, [path]: newValue };
8183
- }
8184
- };
8185
- };
8186
8177
  const getFormElementNameKey = (name) => `name-${name}`;
8187
8178
  const getFormElementName = (name) => useAttrs()[getFormElementNameKey(name)];
8188
8179
  const isEqualLoose = (a3, b2) => {
@@ -8208,7 +8199,6 @@ const VueUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
8208
8199
  generateComputedParent,
8209
8200
  getBinding,
8210
8201
  getBindingImmutableFor,
8211
- getBindingNew,
8212
8202
  getFormBuilder,
8213
8203
  getFormElementName,
8214
8204
  getFormElementNameKey,
@@ -84434,7 +84424,7 @@ function useForm(config, emits) {
84434
84424
  newValue = await fetchItem_(id);
84435
84425
  } else {
84436
84426
  newValue = await repository.fetchOne(id);
84437
- newValue = transformer == null ? void 0 : transformer.transformFromApi(newValue);
84427
+ newValue = await (transformer == null ? void 0 : transformer.transformFromApi(newValue));
84438
84428
  }
84439
84429
  isCloning.value ? newValue.id = null : null;
84440
84430
  setItem(newValue);
@@ -84449,7 +84439,7 @@ function useForm(config, emits) {
84449
84439
  }
84450
84440
  isLoading.value = true;
84451
84441
  let newItem = lodashExports.cloneDeep(item.value);
84452
- 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));
84453
84443
  let response = null;
84454
84444
  if ((_b3 = item.value) == null ? void 0 : _b3.id) {
84455
84445
  response = await repository.update((_c2 = item.value) == null ? void 0 : _c2.id, newItem);
@@ -85588,7 +85578,6 @@ export {
85588
85578
  generateComputedParent,
85589
85579
  getBinding,
85590
85580
  getBindingImmutableFor,
85591
- getBindingNew,
85592
85581
  getFormBuilder,
85593
85582
  getFormElementName,
85594
85583
  getFormElementNameKey,