tsv2-library 0.3.79 → 0.3.81

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.
@@ -95,6 +95,12 @@ export interface TreeProps {
95
95
  * Disable node 'All' selection
96
96
  */
97
97
  disableNodeAll?: boolean;
98
+ /**
99
+ * Include node All key (-1) on Checkbox Selection
100
+ *
101
+ * @default false - (-1) is excluded
102
+ */
103
+ includeNodeAllKey?: boolean;
98
104
  disableKeys?: number[];
99
105
  exactDisableKey?: number;
100
106
  /**
@@ -1,12 +1,16 @@
1
1
  import { TreeSelectionKeys } from '../../../../../node_modules/primevue/tree';
2
2
  /**
3
3
  * Parse selection keys into array of keys.
4
+ *
5
+ * @param nodeKeys - A collection of selected node keys.
6
+ * @param includeNodeAllKey - Whether to include the "-1" key (representing "All").
4
7
  */
5
- export declare const parseNodeKeys: (nodeKeys: TreeSelectionKeys) => number[];
8
+ export declare const parseNodeKeys: (nodeKeys: TreeSelectionKeys, includeNodeAllKey?: boolean) => number[];
6
9
  /**
7
- * Filter the keys with value { checked: true, partialChecked: false }
8
- * Keys with partialChecked true should not be included.
10
+ * Filters a collection of selected node keys based on specific criteria.
9
11
  *
10
- * Checkbox selection should exclude the -1 (All)
12
+ * @param nodeKeys - A collection of selected node keys.
13
+ * @param includeNodeAllKey - Whether to include the "-1" key (representing "All").
14
+ * @returns A new collection of filtered node keys.
11
15
  */
12
- export declare const filterNodeKeys: (nodeKeys: TreeSelectionKeys) => TreeSelectionKeys;
16
+ export declare const filterNodeKeys: (nodeKeys: TreeSelectionKeys, includeNodeAllKey?: boolean) => TreeSelectionKeys;
@@ -1,128 +1,179 @@
1
- export default {
2
- root: {
3
- class: [
4
- 'relative',
5
-
6
- 'w-4 h-4',
7
-
8
- // Alignment
9
- 'inline-flex',
10
- 'align-bottom',
11
-
12
- // Transitions
13
- 'transition-all',
14
- 'duration-200',
15
- ],
16
- },
17
- box: ({ props, context }) => ({
18
- class: [
19
- // Alignment
20
- 'flex',
21
- 'items-center',
22
- 'justify-center',
23
-
24
- // Size
25
- 'w-full',
26
- 'h-full',
27
-
28
- // Shape
29
- 'rounded',
30
- 'border-2',
31
-
32
- // Colors
33
- 'text-surface-0',
34
- {
35
- 'border-general-100 bg-surface-0 dark:border-general-300 dark:bg-grayscale-800':
36
- !context.active && !props.disabled,
37
- 'border-primary-500 bg-primary-500 dark:border-primary-500 dark:bg-primary-500':
38
- context.active && !props.disabled,
39
- },
40
-
41
- {
42
- 'ring-2 ring-primary-500 dark:ring-primary-400':
43
- !props.disabled && context.focused,
44
- 'cursor-default': props.disabled,
45
- },
46
-
47
- // States
48
- {
49
- 'peer-focus-visible:ring-2 peer-focus-visible:ring-offset-1 peer-focus-visible:ring-primary dark:peer-focus-visible:ring-primary':
50
- !props.disabled,
51
- 'cursor-default bg-general-50 border-general-200 dark:bg-general-100 dark:border-general-200':
52
- props.disabled && !context.active,
53
- 'bg-general-200 dark:bg-general-200 border-general-200 dark:border-general-200':
54
- props.disabled && context.active,
55
- },
56
-
57
- // Transitions
58
- 'transition-colors',
59
- 'duration-200',
60
- ],
61
- }),
62
- input: {
63
- class: [
64
- 'peer',
65
-
66
- // Size
67
- 'w-full ',
68
- 'h-full',
1
+ import accordion from './accordion';
2
+ import autocomplete from './autocomplete';
3
+ import avatar from './avatar';
4
+ import avatargroup from './avatargroup';
5
+ import badge from './badge';
6
+ import badgedirective from './badgedirective';
7
+ import breadcrumb from './breadcrumb';
8
+ import button from './button';
9
+ import calendar from './calendar';
10
+ import card from './card';
11
+ import carousel from './carousel';
12
+ import cascadeselect from './cascadeselect';
13
+ import checkbox from './checkbox';
14
+ import chip from './chip';
15
+ import chips from './chips';
16
+ import colorpicker from './colorpicker';
17
+ import confirmpopup from './confirmpopup';
18
+ import contextmenu from './contextmenu';
19
+ import datatable from './datatable';
20
+ import dataview from './dataview';
21
+ import dataviewlayoutoptions from './dataviewlayoutoptions';
22
+ import dialog from './dialog';
23
+ import divider from './divider';
24
+ import dock from './dock';
25
+ import dropdown from './dropdown';
26
+ import fieldset from './fieldset';
27
+ import global from './global';
28
+ import image from './image';
29
+ import inlinemessage from './inlinemessage';
30
+ import inputgroup from './inputgroup';
31
+ import inputgroupaddon from './inputgroupaddon';
32
+ import inputmask from './inputmask';
33
+ import inputnumber from './inputnumber';
34
+ import inputotp from './inputotp';
35
+ import inputswitch from './inputswitch';
36
+ import inputtext from './inputtext';
37
+ import knob from './knob';
38
+ import listbox from './listbox';
39
+ import megamenu from './megamenu';
40
+ import menu from './menu';
41
+ import menubar from './menubar';
42
+ import message from './message';
43
+ import multiselect from './multiselect';
44
+ import orderlist from './orderlist';
45
+ import organizationchart from './organizationchart';
46
+ import overlaypanel from './overlaypanel';
47
+ import paginator from './paginator';
48
+ import panel from './panel';
49
+ import panelmenu from './panelmenu';
50
+ import password from './password';
51
+ import picklist from './picklist';
52
+ import progressbar from './progressbar';
53
+ import radiobutton from './radiobutton';
54
+ import rating from './rating';
55
+ import ripple from './ripple';
56
+ import scrollpanel from './scrollpanel';
57
+ import scrolltop from './scrolltop';
58
+ import selectbutton from './selectbutton';
59
+ import sidebar from './sidebar';
60
+ import skeleton from './skeleton';
61
+ import slider from './slider';
62
+ import splitbutton from './splitbutton';
63
+ import steps from './steps';
64
+ import tabmenu from './tabmenu';
65
+ import tabview from './tabview';
66
+ import tag from './tag';
67
+ import terminal from './terminal';
68
+ import textarea from './textarea';
69
+ import tieredmenu from './tieredmenu';
70
+ import timeline from './timeline';
71
+ import toast from './toast';
72
+ import togglebutton from './togglebutton';
73
+ import toolbar from './toolbar';
74
+ import tooltip from './tooltip';
75
+ import tree from './tree';
76
+ import treeselect from './treeselect';
77
+ import treetable from './treetable';
78
+ import tristatecheckbox from './tristatecheckbox';
69
79
 
70
- // Position
71
- 'absolute',
72
- 'top-0 left-0',
73
- 'z-10',
74
-
75
- // Spacing
76
- 'p-0',
77
- 'm-0',
78
-
79
- // Shape
80
- 'rounded',
81
- 'border',
82
-
83
- // Shape
84
- 'opacity-0',
85
- 'rounded-md',
86
- 'outline-none',
87
- 'border-2 border-surface-300 dark:border-surface-700',
88
-
89
- // Misc
90
- 'appareance-none',
91
- 'cursor-pointer',
92
- ],
93
- },
94
- checkicon: {
95
- class: [
96
- // Font
97
- 'text-normal',
98
-
99
- // Size
100
- 'w-3',
101
- 'h-3',
102
-
103
- // Colors
104
- 'text-surface-0 dark:text-surface-0',
105
-
106
- // Transitions
107
- 'transition-all',
108
- 'duration-200',
109
- ],
80
+ export default {
81
+ global,
82
+ directives: {
83
+ badge: badgedirective,
84
+ ripple,
85
+ tooltip,
110
86
  },
111
- uncheckicon: {
112
- class: [
113
- // Font
114
- 'text-normal',
115
87
 
116
- // Size
117
- 'w-3',
118
- 'h-3',
119
-
120
- // Colors
121
- 'text-surface-0 dark:text-surface-0',
122
-
123
- // Transitions
124
- 'transition-all',
125
- 'duration-200',
126
- ],
127
- },
88
+ //Forms
89
+ autocomplete,
90
+ dropdown,
91
+ inputnumber,
92
+ inputotp,
93
+ inputtext,
94
+ calendar,
95
+ checkbox,
96
+ radiobutton,
97
+ inputswitch,
98
+ selectbutton,
99
+ slider,
100
+ chips,
101
+ rating,
102
+ multiselect,
103
+ togglebutton,
104
+ cascadeselect,
105
+ listbox,
106
+ colorpicker,
107
+ inputgroup,
108
+ inputgroupaddon,
109
+ inputmask,
110
+ knob,
111
+ treeselect,
112
+ tristatecheckbox,
113
+ textarea,
114
+ password,
115
+
116
+ //Buttons
117
+ button,
118
+ splitbutton,
119
+
120
+ //Data
121
+ paginator,
122
+ datatable,
123
+ tree,
124
+ dataview,
125
+ dataviewlayoutoptions,
126
+ organizationchart,
127
+ orderlist,
128
+ picklist,
129
+ treetable,
130
+ timeline,
131
+
132
+ //Panels
133
+ accordion,
134
+ panel,
135
+ fieldset,
136
+ card,
137
+ tabview,
138
+ divider,
139
+ toolbar,
140
+ scrollpanel,
141
+
142
+ //Menu
143
+ contextmenu,
144
+ menu,
145
+ menubar,
146
+ steps,
147
+ tieredmenu,
148
+ breadcrumb,
149
+ panelmenu,
150
+ megamenu,
151
+ dock,
152
+ tabmenu,
153
+
154
+ //Overlays
155
+ dialog,
156
+ overlaypanel,
157
+ sidebar,
158
+ confirmpopup,
159
+
160
+ //Messages
161
+ message,
162
+ inlinemessage,
163
+ toast,
164
+
165
+ //Media
166
+ carousel,
167
+
168
+ //Misc
169
+ badge,
170
+ avatar,
171
+ avatargroup,
172
+ tag,
173
+ chip,
174
+ progressbar,
175
+ skeleton,
176
+ scrolltop,
177
+ terminal,
178
+ image,
128
179
  };