tsv2-library 1.1.0-dev-alpha.9 → 1.1.0-dev-alpha.11
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 +6 -0
- package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +6 -0
- package/dist/src/components/v2/Tree/Tree.vue.d.ts +6 -1
- package/dist/src/utils/role.util.d.ts +1 -0
- package/dist/tsv2-library.es.js +30 -25
- package/dist/tsv2-library.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +6 -0
- package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +6 -0
- package/src/components/v2/Tree/Tree.vue.d.ts +6 -1
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
|
3
3
|
import { TreeNode } from 'v2/Tree/Tree.vue.d';
|
|
4
4
|
import { TSVueIconSeverities } from '../Icon/Icon.vue.d';
|
|
5
5
|
import { Severities } from '@/utils/getSeverityByAssetStatus.util';
|
|
6
|
+
import { TransactionType } from '@/utils/role.util';
|
|
6
7
|
|
|
7
8
|
export type KeysModelValue = string[] | undefined;
|
|
8
9
|
|
|
@@ -154,6 +155,11 @@ export interface ButtonSelectTreeProps {
|
|
|
154
155
|
* Disable level 2 (All > Level 1 > Level 2)
|
|
155
156
|
*/
|
|
156
157
|
disableSubChildren?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Specifies the required manager transaction permission to make a node selectable.
|
|
160
|
+
* If the node's `manager[transaction]` value is false, the node will be rendered in a disabled state.
|
|
161
|
+
*/
|
|
162
|
+
requiredManagerPermission?: TransactionType;
|
|
157
163
|
}
|
|
158
164
|
|
|
159
165
|
export type ButtonSelectTreeEmits = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransactionType } from '@/utils/role.util';
|
|
1
2
|
import { TreeSelectionKeys } from 'primevue/tree';
|
|
2
3
|
|
|
3
4
|
export interface SelectTreeDialogProps {
|
|
@@ -66,6 +67,11 @@ export interface SelectTreeDialogProps {
|
|
|
66
67
|
* Disable level 2 (All > Level 1 > Level 2)
|
|
67
68
|
*/
|
|
68
69
|
disableSubChildren?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Specifies the required manager transaction permission to make a node selectable.
|
|
72
|
+
* If the node's `manager[transaction]` value is false, the node will be rendered in a disabled state.
|
|
73
|
+
*/
|
|
74
|
+
requiredManagerPermission?: TransactionType;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
type TreeSelectPayload = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SystemRole } from '@/utils/role.util';
|
|
1
|
+
import { SystemRole, TransactionType } from '@/utils/role.util';
|
|
2
2
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
3
|
import { TreeSelectionKeys } from 'primevue/tree';
|
|
4
4
|
import { MenuItem } from 'v2/Menu/MenuItem';
|
|
@@ -129,6 +129,11 @@ export interface TreeProps {
|
|
|
129
129
|
* Defines the group tree to disable excluded keys
|
|
130
130
|
*/
|
|
131
131
|
excludedKeys?: string[];
|
|
132
|
+
/**
|
|
133
|
+
* Specifies the required manager transaction permission to make a node selectable.
|
|
134
|
+
* If the node's `manager[transaction]` value is false, the node will be rendered in a disabled state.
|
|
135
|
+
*/
|
|
136
|
+
requiredManagerPermission?: TransactionType;
|
|
132
137
|
}
|
|
133
138
|
|
|
134
139
|
export type TreeEmits = {
|