tsv2-library 1.1.0-dev-alpha.48 → 1.1.0-dev-alpha.49
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.
- package/dist/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +1 -1
- package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +1 -1
- package/dist/src/components/v2/Tree/Tree.vue.d.ts +1 -1
- package/dist/tsv2-library.es.js +3 -3
- package/dist/tsv2-library.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +1 -1
- package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +1 -1
- package/src/components/v2/Tree/Tree.vue.d.ts +1 -1
|
@@ -136,7 +136,7 @@ export interface ButtonSelectTreeProps {
|
|
|
136
136
|
*/
|
|
137
137
|
validateQuota?: {
|
|
138
138
|
assetQuantity: number;
|
|
139
|
-
countAvailableQuota?: (node
|
|
139
|
+
countAvailableQuota?: (node?: any) => number;
|
|
140
140
|
};
|
|
141
141
|
/**
|
|
142
142
|
* Defines the tree to be flattened and shows disposable only
|
|
@@ -60,7 +60,7 @@ export interface SelectTreeDialogProps {
|
|
|
60
60
|
*/
|
|
61
61
|
validateQuota?: {
|
|
62
62
|
assetQuantity: number;
|
|
63
|
-
countAvailableQuota?: (node
|
|
63
|
+
countAvailableQuota?: (node?: any) => number;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* Defines the tree to be flattened and shows disposable only
|
|
@@ -189,7 +189,7 @@ declare class Tree extends ClassComponent<TreeProps, TreeSlots, TreeEmits> {
|
|
|
189
189
|
/**
|
|
190
190
|
* Function to count available quota
|
|
191
191
|
*/
|
|
192
|
-
countAvailableQuota?: (node
|
|
192
|
+
countAvailableQuota?: (node?: any) => number;
|
|
193
193
|
/**
|
|
194
194
|
* State where all tree node expanded.
|
|
195
195
|
*/
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -42050,7 +42050,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
42050
42050
|
const showDisposableGroups = ref(false);
|
|
42051
42051
|
const showAvailableQuota = ref(false);
|
|
42052
42052
|
const countAvailableQuota = ref(
|
|
42053
|
-
(node2) => node2.fixedAssetQuota.available - (node2.assetOnTransferCount ?? 0)
|
|
42053
|
+
(node2) => (node2 == null ? void 0 : node2.fixedAssetQuota.available) - ((node2 == null ? void 0 : node2.assetOnTransferCount) ?? 0)
|
|
42054
42054
|
);
|
|
42055
42055
|
const selectedKeysModel = computed({
|
|
42056
42056
|
get: () => props.selectedKeys ?? {},
|
|
@@ -42724,11 +42724,11 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
42724
42724
|
() => !props.allowEmptySelection || !!props.validateQuota
|
|
42725
42725
|
);
|
|
42726
42726
|
const onButtonSelectClicked = (close4 = true) => {
|
|
42727
|
-
var _a, _b, _c;
|
|
42727
|
+
var _a, _b, _c, _d, _e;
|
|
42728
42728
|
selectedTreeKeys.value = temporarySelectedTreeKeys.value;
|
|
42729
42729
|
selectedNode.value = temporarySelectedNode.value;
|
|
42730
42730
|
if (Object.keys(selectedTreeKeys.value ?? {}).length) {
|
|
42731
|
-
const remainingQuota = (((_b = (
|
|
42731
|
+
const remainingQuota = ((_a = props.validateQuota) == null ? void 0 : _a.countAvailableQuota) ? (_b = props.validateQuota) == null ? void 0 : _b.countAvailableQuota(selectedNode.value) : (((_d = (_c = selectedNode.value) == null ? void 0 : _c.fixedAssetQuota) == null ? void 0 : _d.available) ?? 0) - (((_e = selectedNode.value) == null ? void 0 : _e.assetOnTransferCount) ?? 0);
|
|
42732
42732
|
if (props.validateQuota && props.validateQuota.assetQuantity > remainingQuota) {
|
|
42733
42733
|
invalidSelectionMessage.value = "Group quota is exceeded";
|
|
42734
42734
|
return;
|