tsv2-library 1.1.0-dev-alpha.25 → 1.1.0-dev-alpha.26

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.
@@ -42466,7 +42466,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
42466
42466
  class: "flex flex-col grow text-body-medium break-all"
42467
42467
  }, [
42468
42468
  createElementVNode("span", null, toDisplayString$1(node2.name), 1),
42469
- showAvailableQuota.value && node2.fixedAssetQuota && node2.key != "0" ? (openBlock(), createElementBlock("span", _hoisted_2$12, " Available Quota: " + toDisplayString$1(node2.fixedAssetQuota.available), 1)) : createCommentVNode("", true)
42469
+ showAvailableQuota.value && node2.fixedAssetQuota && node2.key != "0" ? (openBlock(), createElementBlock("span", _hoisted_2$12, " Available Quota: " + toDisplayString$1(node2.fixedAssetQuota.available - (node2.assetOnTransferCount ?? 0)), 1)) : createCommentVNode("", true)
42470
42470
  ], 8, _hoisted_1$1o),
42471
42471
  node2.isDisposable && showDisposableGroups.value ? (openBlock(), createBlock(_sfc_main$1O, {
42472
42472
  key: 0,
@@ -42583,11 +42583,12 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
42583
42583
  () => !props.allowEmptySelection || !!props.validateQuota
42584
42584
  );
42585
42585
  const onButtonSelectClicked = (close4 = true) => {
42586
- var _a, _b;
42586
+ var _a, _b, _c;
42587
42587
  selectedTreeKeys.value = temporarySelectedTreeKeys.value;
42588
42588
  selectedNode.value = temporarySelectedNode.value;
42589
42589
  if (Object.keys(selectedTreeKeys.value ?? {}).length) {
42590
- if (props.validateQuota && props.validateQuota.assetQuantity > ((_b = (_a = selectedNode.value) == null ? void 0 : _a.fixedAssetQuota) == null ? void 0 : _b.available)) {
42590
+ const remainingQuota = (((_b = (_a = selectedNode.value) == null ? void 0 : _a.fixedAssetQuota) == null ? void 0 : _b.available) ?? 0) - (((_c = selectedNode.value) == null ? void 0 : _c.assetOnTransferCount) ?? 0);
42591
+ if (props.validateQuota && props.validateQuota.assetQuantity > remainingQuota) {
42591
42592
  invalidSelectionMessage.value = "Group quota is exceeded";
42592
42593
  return;
42593
42594
  }