tsv2-library 1.1.0-dev-alpha.34 → 1.1.0-dev-alpha.36

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.34",
4
+ "version": "1.1.0-dev-alpha.36",
5
5
  "license": "ISC",
6
6
  "homepage": "https://github.com/fixedassetv2-fe/tsv2-library#readme",
7
7
  "repository": {
@@ -3,7 +3,11 @@ 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
+ import {
7
+ SystemRole,
8
+ SystemRoleAttribute,
9
+ TransactionType,
10
+ } from '@/utils/role.util';
7
11
 
8
12
  export type KeysModelValue = string[] | undefined;
9
13
 
@@ -164,6 +168,11 @@ export interface ButtonSelectTreeProps {
164
168
  * If the node's `manager[transaction]` value is false, the node will be rendered in a disabled state.
165
169
  */
166
170
  requiredManagerPermission?: TransactionType;
171
+ /**
172
+ * Specifies the required system role permission to make a node selectable.
173
+ * If the node's `SystemRoleAttribute[SystemRole]` value is false, the node will be rendered in a disabled state.
174
+ */
175
+ requiredSystemRole?: [SystemRoleAttribute, keyof SystemRole];
167
176
  }
168
177
 
169
178
  export type ButtonSelectTreeEmits = {
@@ -1,4 +1,8 @@
1
- import { TransactionType } from '@/utils/role.util';
1
+ import {
2
+ SystemRole,
3
+ SystemRoleAttribute,
4
+ TransactionType,
5
+ } from '@/utils/role.util';
2
6
  import { TreeSelectionKeys } from 'primevue/tree';
3
7
 
4
8
  export interface SelectTreeDialogProps {
@@ -76,6 +80,11 @@ export interface SelectTreeDialogProps {
76
80
  * If the node's `manager[transaction]` value is false, the node will be rendered in a disabled state.
77
81
  */
78
82
  requiredManagerPermission?: TransactionType;
83
+ /**
84
+ * Specifies the required system role permission to make a node selectable.
85
+ * If the node's `SystemRoleAttribute[SystemRole]` value is false, the node will be rendered in a disabled state.
86
+ */
87
+ requiredSystemRole?: [SystemRoleAttribute, keyof SystemRole];
79
88
  }
80
89
 
81
90
  type TreeSelectPayload = {
@@ -1,4 +1,8 @@
1
- import { SystemRole, TransactionType } from '@/utils/role.util';
1
+ import {
2
+ SystemRole,
3
+ SystemRoleAttribute,
4
+ TransactionType,
5
+ } from '@/utils/role.util';
2
6
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
7
  import { TreeSelectionKeys } from 'primevue/tree';
4
8
  import { MenuItem } from 'v2/Menu/MenuItem';
@@ -134,6 +138,11 @@ export interface TreeProps {
134
138
  * If the node's `manager[transaction]` value is false, the node will be rendered in a disabled state.
135
139
  */
136
140
  requiredManagerPermission?: TransactionType;
141
+ /**
142
+ * Specifies the required system role permission to make a node selectable.
143
+ * If the node's `SystemRoleAttribute[SystemRole]` value is false, the node will be rendered in a disabled state.
144
+ */
145
+ requiredSystemRole?: [SystemRoleAttribute, keyof SystemRole];
137
146
  }
138
147
 
139
148
  export type TreeEmits = {