tsv2-library 1.0.61-alpha.1 → 1.0.61-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 +2 -2
- package/dist/src/components/v2/Calendar/Calendar.vue.d.ts +1 -1
- package/dist/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +2 -2
- package/dist/src/components/v2/Tree/Tree.vue.d.ts +3 -3
- package/dist/src/components/v2/Tree/helpers/filterNodeKeys.helper.d.ts +1 -1
- package/dist/src/presets/button/index.js +7 -2
- package/dist/tsv2-library.es.js +1179 -1176
- package/dist/tsv2-library.umd.js +41 -41
- package/package.json +1 -1
- package/src/components/v2/ButtonSelectTree/ButtonSelectTree.vue.d.ts +2 -2
- package/src/components/v2/Calendar/Calendar.vue.d.ts +1 -1
- package/src/components/v2/DialogSelectTree/DialogSelectTree.vue.d.ts +2 -2
- package/src/components/v2/Tree/Tree.vue.d.ts +3 -3
- package/src/presets/button/index.js +7 -2
- package/src/services/damage.service.ts +1 -1
- package/src/services/missing.service.ts +1 -1
|
@@ -4,7 +4,7 @@ import { TreeNode } from '../Tree/Tree.vue.d';
|
|
|
4
4
|
import { TSVueIconSeverities } from '../Icon/Icon.vue.d';
|
|
5
5
|
import { Severities } from '../../../utils/getSeverityByAssetStatus.util';
|
|
6
6
|
|
|
7
|
-
export type KeysModelValue =
|
|
7
|
+
export type KeysModelValue = string[] | undefined;
|
|
8
8
|
|
|
9
9
|
export interface ButtonSelectTreeProps {
|
|
10
10
|
/**
|
|
@@ -133,7 +133,7 @@ export interface ButtonSelectTreeProps {
|
|
|
133
133
|
/**
|
|
134
134
|
* Defines the group tree to disable excluded keys
|
|
135
135
|
*/
|
|
136
|
-
excludedKeys?:
|
|
136
|
+
excludedKeys?: string[];
|
|
137
137
|
/**
|
|
138
138
|
* Define wether single selection can be edited or readonly
|
|
139
139
|
* @default true
|
|
@@ -27,7 +27,7 @@ export interface TSCalendarProps {
|
|
|
27
27
|
*
|
|
28
28
|
* @example [DD,MM,YYY, 00.00.00, DD,MM,YYY, 23.59.59]
|
|
29
29
|
*
|
|
30
|
-
* @default
|
|
30
|
+
* @default true returns [DD,MM,YYY, 00.00.00, DD,MM,YYY, 00.00.00]
|
|
31
31
|
*/
|
|
32
32
|
setEndDateHours?: boolean;
|
|
33
33
|
/**
|
|
@@ -26,7 +26,7 @@ export interface SelectTreeDialogProps {
|
|
|
26
26
|
/**
|
|
27
27
|
* The previously selected tree key to be displayed again.
|
|
28
28
|
*/
|
|
29
|
-
keys?:
|
|
29
|
+
keys?: string[];
|
|
30
30
|
/**
|
|
31
31
|
* The lists to be displayed in the dialog.
|
|
32
32
|
*/
|
|
@@ -57,7 +57,7 @@ export interface SelectTreeDialogProps {
|
|
|
57
57
|
/**
|
|
58
58
|
* Defines the group tree to disable excluded keys
|
|
59
59
|
*/
|
|
60
|
-
excludedKeys?:
|
|
60
|
+
excludedKeys?: string[];
|
|
61
61
|
/**
|
|
62
62
|
* Render hidden dialog to trigger fetch tree
|
|
63
63
|
*/
|
|
@@ -11,7 +11,7 @@ export interface TreeNode {
|
|
|
11
11
|
/**
|
|
12
12
|
* Mandatory unique key of the node.
|
|
13
13
|
*/
|
|
14
|
-
key?: string
|
|
14
|
+
key?: string;
|
|
15
15
|
/**
|
|
16
16
|
* Label of the node.
|
|
17
17
|
*/
|
|
@@ -71,7 +71,7 @@ export interface TreeNode {
|
|
|
71
71
|
|
|
72
72
|
export interface TreeProps {
|
|
73
73
|
type: 'Group' | 'Category';
|
|
74
|
-
selectedKeys?: TreeSelectionKeys |
|
|
74
|
+
selectedKeys?: TreeSelectionKeys | string[] | undefined;
|
|
75
75
|
selectedTreeNodes?: TreeNode[] | undefined;
|
|
76
76
|
selectionMode?: 'single' | 'checkbox' | undefined;
|
|
77
77
|
/**
|
|
@@ -124,7 +124,7 @@ export interface TreeProps {
|
|
|
124
124
|
/**
|
|
125
125
|
* Defines the group tree to disable excluded keys
|
|
126
126
|
*/
|
|
127
|
-
excludedKeys?:
|
|
127
|
+
excludedKeys?: string[];
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
export type TreeEmits = {
|
|
@@ -5,7 +5,7 @@ import { TreeSelectionKeys } from '../../../../../node_modules/primevue/tree';
|
|
|
5
5
|
* @param nodeKeys - A collection of selected node keys.
|
|
6
6
|
* @param includeNodeAllKey - Whether to include the "-1" key (representing "All").
|
|
7
7
|
*/
|
|
8
|
-
export declare const parseNodeKeys: (nodeKeys: TreeSelectionKeys, includeNodeAllKey?: boolean) =>
|
|
8
|
+
export declare const parseNodeKeys: (nodeKeys: TreeSelectionKeys, includeNodeAllKey?: boolean) => string[];
|
|
9
9
|
/**
|
|
10
10
|
* Filters a collection of selected node keys based on specific criteria.
|
|
11
11
|
*
|
|
@@ -449,7 +449,7 @@ export default {
|
|
|
449
449
|
|
|
450
450
|
// Disabled
|
|
451
451
|
{
|
|
452
|
-
'!
|
|
452
|
+
'!pointer-events-none !cursor-default':
|
|
453
453
|
context.disabled || props.disabled,
|
|
454
454
|
},
|
|
455
455
|
|
|
@@ -463,9 +463,14 @@ export default {
|
|
|
463
463
|
},
|
|
464
464
|
// Outlined Disabled
|
|
465
465
|
{
|
|
466
|
-
'!ring-1 !ring-offset-0 !ring-general-200':
|
|
466
|
+
'!text-general-200 !ring-1 !ring-offset-0 !ring-general-200':
|
|
467
467
|
(props.disabled || context.disabled) && props.outlined,
|
|
468
468
|
},
|
|
469
|
+
// Text Disabled
|
|
470
|
+
{
|
|
471
|
+
'!text-general-200':
|
|
472
|
+
(props.disabled || context.disabled) && props.text,
|
|
473
|
+
},
|
|
469
474
|
|
|
470
475
|
// Transitions
|
|
471
476
|
'transition duration-200 ease-in-out',
|