@stsdti/funky-ui-kit 1.5.1 → 1.5.2

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.
@@ -8172,6 +8172,17 @@ const getBindingImmutableFor = (modelValue) => {
8172
8172
  };
8173
8173
  };
8174
8174
  };
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
+ };
8175
8186
  const getFormElementNameKey = (name) => `name-${name}`;
8176
8187
  const getFormElementName = (name) => useAttrs()[getFormElementNameKey(name)];
8177
8188
  const isEqualLoose = (a3, b2) => {
@@ -8197,6 +8208,7 @@ const VueUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
8197
8208
  generateComputedParent,
8198
8209
  getBinding,
8199
8210
  getBindingImmutableFor,
8211
+ getBindingNew,
8200
8212
  getFormBuilder,
8201
8213
  getFormElementName,
8202
8214
  getFormElementNameKey,
@@ -85576,6 +85588,7 @@ export {
85576
85588
  generateComputedParent,
85577
85589
  getBinding,
85578
85590
  getBindingImmutableFor,
85591
+ getBindingNew,
85579
85592
  getFormBuilder,
85580
85593
  getFormElementName,
85581
85594
  getFormElementNameKey,