tsv2-library 1.1.0-dev-alpha.42 → 1.1.0-dev-alpha.44

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.
@@ -42051,7 +42051,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
42051
42051
  const selectedKeysModel = computed({
42052
42052
  get: () => props.selectedKeys ?? {},
42053
42053
  set: (keys2) => {
42054
- var _a, _b, _c, _d, _e, _f, _g;
42054
+ var _a, _b, _c, _d, _e;
42055
42055
  const selectableSet = selectableKeys.value;
42056
42056
  const locked = lockedKeys.value;
42057
42057
  if (selectableSet.size > 0 || locked.size > 0) {
@@ -42069,15 +42069,10 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
42069
42069
  const prevAllChecked = !!((_a = prevKeys["0"]) == null ? void 0 : _a.checked) && !((_b = prevKeys["0"]) == null ? void 0 : _b.partialChecked);
42070
42070
  const currAllChecked = !!((_c = nextKeys["0"]) == null ? void 0 : _c.checked) && !((_d = nextKeys["0"]) == null ? void 0 : _d.partialChecked);
42071
42071
  if (currAllChecked && !prevAllChecked) {
42072
- const flatFilteredNodes = flattenTreeNodeChildren(
42073
- (_e = tree.value) == null ? void 0 : _e.filteredValue
42074
- );
42075
- if ((flatFilteredNodes == null ? void 0 : flatFilteredNodes.length) === ((_f = flatNodes.value) == null ? void 0 : _f.length)) {
42076
- for (const k2 of selectableSet)
42077
- nextKeys[k2] = { checked: true, partialChecked: false };
42078
- }
42072
+ for (const k2 of selectableSet)
42073
+ nextKeys[k2] = { checked: true, partialChecked: false };
42079
42074
  nextKeys["0"] = { checked: true, partialChecked: false };
42080
- } else if (!currAllChecked && prevAllChecked && !((_g = nextKeys["0"]) == null ? void 0 : _g.partialChecked)) {
42075
+ } else if (!currAllChecked && prevAllChecked && !((_e = nextKeys["0"]) == null ? void 0 : _e.partialChecked)) {
42081
42076
  for (const k2 of selectableSet)
42082
42077
  nextKeys[k2] = { checked: false, partialChecked: false };
42083
42078
  const checkedCount = [...effectiveSet].filter(
@@ -62915,31 +62910,18 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
62915
62910
  }
62916
62911
  };
62917
62912
  const handleFetchOptions = async (baseParams) => {
62918
- var _a;
62919
62913
  if (props.unpaired)
62920
62914
  return [];
62921
62915
  const tagType = getTagTypeQuery();
62922
- const optionType = props.type === "asset" ? void 0 : "unlinked";
62923
62916
  const excludeId = JSON.stringify(props.selectedAssets ?? []);
62924
- let extraParams = {};
62925
- if (optionType === "unlinked") {
62926
- extraParams = {
62927
- mode: props.type,
62928
- asset: (_a = props.currentAssetDetail) == null ? void 0 : _a._id
62929
- };
62930
- } else {
62931
- extraParams = {
62932
- excludeId,
62933
- tagType,
62934
- status: JSON.stringify(props.assetStatus ?? ["Available"]),
62935
- group: props.groupKey ? `[${props.groupKey.toString()}]` : void 0
62936
- };
62937
- }
62938
62917
  const finalParams = {
62939
62918
  ...baseParams,
62940
- ...extraParams
62919
+ excludeId,
62920
+ tagType,
62921
+ status: JSON.stringify(props.assetStatus ?? ["Available"]),
62922
+ group: props.groupKey ? `[${props.groupKey.toString()}]` : void 0
62941
62923
  };
62942
- return await AssetsServices.getOptions(optionType, finalParams);
62924
+ return await AssetsServices.postAssetOption(finalParams);
62943
62925
  };
62944
62926
  const filterOptionValues = (fieldName) => {
62945
62927
  var _a, _b, _c;