tsv2-library 1.1.0-dev-alpha.47 → 1.1.0-dev-alpha.48

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsv2-library",
3
3
  "author": "fixedassetv2-fe",
4
- "version": "1.1.0-dev-alpha.47",
4
+ "version": "1.1.0-dev-alpha.48",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -134,7 +134,10 @@ export interface ButtonSelectTreeProps {
134
134
  /**
135
135
  * The asset quantity already used, to validate the chosen group's available quota.
136
136
  */
137
- validateQuota?: { assetQuantity: number };
137
+ validateQuota?: {
138
+ assetQuantity: number;
139
+ countAvailableQuota?: (node: any) => number;
140
+ };
138
141
  /**
139
142
  * Defines the tree to be flattened and shows disposable only
140
143
  */
@@ -58,7 +58,10 @@ export interface SelectTreeDialogProps {
58
58
  /**
59
59
  * The asset quantity already used, to validate the chosen group's available quota.
60
60
  */
61
- validateQuota?: { assetQuantity: number };
61
+ validateQuota?: {
62
+ assetQuantity: number;
63
+ countAvailableQuota?: (node: any) => number;
64
+ };
62
65
  /**
63
66
  * Defines the tree to be flattened and shows disposable only
64
67
  */
@@ -186,6 +186,10 @@ declare class Tree extends ClassComponent<TreeProps, TreeSlots, TreeEmits> {
186
186
  * Show group available quota.
187
187
  */
188
188
  showAvailableQuota: boolean;
189
+ /**
190
+ * Function to count available quota
191
+ */
192
+ countAvailableQuota?: (node: any) => number;
189
193
  /**
190
194
  * State where all tree node expanded.
191
195
  */