@stsdti/funky-ui-kit 1.4.2 → 1.4.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.
@@ -8064,7 +8064,7 @@ function toPathString(pathArray) {
8064
8064
  }
8065
8065
  }, "");
8066
8066
  }
8067
- function bindOneWay(source, destination, { sourcePath = null, destinationPath = null, immutable = true, immediate = true, deep = true } = {}) {
8067
+ function bindOneWay(source, destination, { sourcePath = null, destinationPath = null, immutable = true, immediate = true, deep = true, transform = null } = {}) {
8068
8068
  if (isReactive(source) || isReactive(destination)) {
8069
8069
  immutable = false;
8070
8070
  }
@@ -8075,17 +8075,18 @@ function bindOneWay(source, destination, { sourcePath = null, destinationPath =
8075
8075
  return immutable ? lodashExports.cloneDeep(val) : val;
8076
8076
  },
8077
8077
  (newValue) => {
8078
+ let result = transform ? transform(newValue) : newValue;
8078
8079
  const rawDestination = unref(destination);
8079
8080
  if (!destinationPath) {
8080
- destination.value = immutable ? lodashExports.cloneDeep(newValue) : newValue;
8081
+ destination.value = immutable ? lodashExports.cloneDeep(result) : result;
8081
8082
  return;
8082
8083
  }
8083
8084
  if (immutable) {
8084
8085
  const cloned = lodashExports.cloneDeep(rawDestination);
8085
- lodashExports.set(cloned, destinationPath, lodashExports.cloneDeep(newValue));
8086
+ lodashExports.set(cloned, destinationPath, lodashExports.cloneDeep(result));
8086
8087
  destination.value = cloned;
8087
8088
  } else {
8088
- lodashExports.set(rawDestination, destinationPath, newValue);
8089
+ lodashExports.set(rawDestination, destinationPath, result);
8089
8090
  }
8090
8091
  },
8091
8092
  { immediate, deep }
@@ -29325,10 +29326,13 @@ function useTableFilters(tableFilters, emits) {
29325
29326
  fromUrl ? filters.value[bagKey] = fromUrl : null;
29326
29327
  }
29327
29328
  }
29328
- const setFilterWithLock = (field, value) => {
29329
- filters.value[field] = value;
29330
- blockedFilters.value = [...blockedFilters.value, field];
29331
- setPayloadIsDisabled(field);
29329
+ const setFilterWithLock = (dictionary) => {
29330
+ const fields = Object.keys(dictionary);
29331
+ Object.assign(filters.value, dictionary);
29332
+ blockedFilters.value = [.../* @__PURE__ */ new Set([...blockedFilters.value, ...fields])];
29333
+ for (const field of fields) {
29334
+ setPayloadIsDisabled(field);
29335
+ }
29332
29336
  };
29333
29337
  const externalContext = {
29334
29338
  // Refs
@@ -81511,11 +81515,9 @@ const _sfc_main$7 = {
81511
81515
  index
81512
81516
  }, () => [
81513
81517
  createVNode(_component_app_button, {
81514
- class: "btn-transparent",
81515
- onClick: ($event) => _ctx.$emit(
81516
- action.emit,
81517
- action.name === "removed" ? index : { file, index }
81518
- )
81518
+ disabled: action.name === "removed" && __props.disabled,
81519
+ onClick: ($event) => _ctx.$emit(action.emit, action.name === "removed" ? index : { file, index }),
81520
+ class: "btn-transparent"
81519
81521
  }, {
81520
81522
  icon: withCtx(() => [
81521
81523
  createVNode(_component_app_icon, {
@@ -81523,7 +81525,7 @@ const _sfc_main$7 = {
81523
81525
  }, null, 8, ["value"])
81524
81526
  ]),
81525
81527
  _: 2
81526
- }, 1032, ["onClick"])
81528
+ }, 1032, ["disabled", "onClick"])
81527
81529
  ]);
81528
81530
  }), 64))
81529
81531
  ])) : createCommentVNode("", true)