@weni/unnnic-system 3.2.5 → 3.2.6
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/CHANGELOG.md +16 -0
- package/dist/components/AudioRecorder/AudioHandler.vue.d.ts +1 -1
- package/dist/components/AudioRecorder/AudioRecorder.vue.d.ts +2 -2
- package/dist/components/Card/Card.vue.d.ts +1 -1
- package/dist/components/Card/CardCompany.vue.d.ts +1 -1
- package/dist/components/Card/CardStatusesContainer.vue.d.ts +1 -1
- package/dist/components/Card/SimpleCard.vue.d.ts +1 -1
- package/dist/components/Card/TitleCard.vue.d.ts +1 -1
- package/dist/components/CardImage/CardImage.vue.d.ts +9 -0
- package/dist/components/CardInformation/CardInformation.vue.d.ts +1 -1
- package/dist/components/CardProject/CardProject.vue.d.ts +9 -0
- package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/Carousel/TagCarousel.vue.d.ts +1 -1
- package/dist/components/ChartBar/ChartBar.vue.d.ts +1 -1
- package/dist/components/ChartLine/ChartLine.vue.d.ts +1 -1
- package/dist/components/ChatText/ChatText.vue.d.ts +1 -1
- package/dist/components/ChatsContact/ChatsContact.vue.d.ts +1 -1
- package/dist/components/ChatsMessage/ChatsMessage.vue.d.ts +1 -1
- package/dist/components/DataArea/DataArea.vue.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts +9 -0
- package/dist/components/MoodRating/MoodRating.vue.d.ts +1 -1
- package/dist/components/SelectSmart/SelectSmart.vue.d.ts +3 -2
- package/dist/components/SelectSmart/SelectSmartMultipleHeader.vue.d.ts +1 -1
- package/dist/components/Slider/Slider.vue.d.ts +1 -1
- package/dist/components/Tab/Tab.vue.d.ts +1 -1
- package/dist/components/Tag/IndicatorTag.vue.d.ts +1 -1
- package/dist/components/Tag/Tag.vue.d.ts +1 -1
- package/dist/components/ToolTip/ToolTip.vue.d.ts +1 -1
- package/dist/components/index.d.ts +36 -36
- package/dist/{es-a07e7553.mjs → es-abc8e9a2.mjs} +1 -1
- package/dist/{index-93aafec9.mjs → index-22520f9b.mjs} +119 -113
- package/dist/{pt-br-a81c613f.mjs → pt-br-a1f8d5de.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/unnnic.mjs +1 -1
- package/dist/unnnic.umd.js +7 -7
- package/package.json +1 -1
- package/src/components/Dropdown/Dropdown.vue +6 -0
- package/src/components/Dropdown/__tests__/Dropdown.spec.js +57 -0
- package/src/components/SelectSmart/SelectSmart.vue +3 -1
- package/src/components/SelectSmart/__tests__/SelectSmart.spec.js +45 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
# 3.2.6 (2025-09-22)
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **SelectSmart Component**: New `onActiveChange` event that emits when dropdown options become active/inactive:
|
|
13
|
+
- **Event Emission**: Emits `true` when dropdown opens and `false` when dropdown closes
|
|
14
|
+
- **Full Integration**: Works seamlessly with all existing SelectSmart functionality (keyboard navigation, click outside, escape key)
|
|
15
|
+
- **Comprehensive Testing**: Added 4 new unit tests covering all scenarios including toggle, escape key, and outside click behaviors
|
|
16
|
+
|
|
17
|
+
- **Dropdown Component**: Enhanced `forceOpen` functionality with comprehensive test coverage:
|
|
18
|
+
- **Comprehensive Testing**: Added 5 new unit tests covering all `forceOpen` scenarios
|
|
19
|
+
- **Trigger Prevention**: Tests verify that clicking trigger doesn't toggle dropdown when `forceOpen` is enabled
|
|
20
|
+
- **Outside Click Prevention**: Tests confirm dropdown stays open when clicking outside with `forceOpen` enabled
|
|
21
|
+
- **Prop Compatibility**: Tests validate proper behavior with `useOpenProp` combinations
|
|
22
|
+
- **Event Validation**: Tests ensure no unwanted events are emitted when `forceOpen` is active
|
|
23
|
+
|
|
8
24
|
# 3.2.5 (2025-09-19)
|
|
9
25
|
|
|
10
26
|
### Added
|
|
@@ -109,8 +109,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
109
109
|
};
|
|
110
110
|
}>> & Readonly<{}>, {
|
|
111
111
|
text: string;
|
|
112
|
-
enabled: boolean;
|
|
113
112
|
forceOpen: boolean;
|
|
113
|
+
enabled: boolean;
|
|
114
114
|
side: string;
|
|
115
115
|
maxWidth: string;
|
|
116
116
|
shortcutText: string;
|
|
@@ -212,8 +212,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
212
212
|
};
|
|
213
213
|
}>> & Readonly<{}>, {
|
|
214
214
|
text: string;
|
|
215
|
-
enabled: boolean;
|
|
216
215
|
forceOpen: boolean;
|
|
216
|
+
enabled: boolean;
|
|
217
217
|
side: string;
|
|
218
218
|
maxWidth: string;
|
|
219
219
|
shortcutText: string;
|
|
@@ -400,8 +400,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
400
400
|
};
|
|
401
401
|
}>> & Readonly<{}>, {
|
|
402
402
|
text: string;
|
|
403
|
-
enabled: boolean;
|
|
404
403
|
forceOpen: boolean;
|
|
404
|
+
enabled: boolean;
|
|
405
405
|
side: string;
|
|
406
406
|
maxWidth: string;
|
|
407
407
|
shortcutText: string;
|
|
@@ -376,8 +376,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
376
376
|
};
|
|
377
377
|
}>> & Readonly<{}>, {
|
|
378
378
|
text: string;
|
|
379
|
-
enabled: boolean;
|
|
380
379
|
forceOpen: boolean;
|
|
380
|
+
enabled: boolean;
|
|
381
381
|
side: string;
|
|
382
382
|
maxWidth: string;
|
|
383
383
|
shortcutText: string;
|
|
@@ -308,8 +308,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
308
308
|
};
|
|
309
309
|
}>> & Readonly<{}>, {
|
|
310
310
|
text: string;
|
|
311
|
-
enabled: boolean;
|
|
312
311
|
forceOpen: boolean;
|
|
312
|
+
enabled: boolean;
|
|
313
313
|
side: string;
|
|
314
314
|
maxWidth: string;
|
|
315
315
|
shortcutText: string;
|
|
@@ -210,8 +210,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
210
210
|
};
|
|
211
211
|
}>> & Readonly<{}>, {
|
|
212
212
|
text: string;
|
|
213
|
-
enabled: boolean;
|
|
214
213
|
forceOpen: boolean;
|
|
214
|
+
enabled: boolean;
|
|
215
215
|
side: string;
|
|
216
216
|
maxWidth: string;
|
|
217
217
|
shortcutText: string;
|
|
@@ -117,8 +117,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
117
117
|
};
|
|
118
118
|
}>> & Readonly<{}>, {
|
|
119
119
|
text: string;
|
|
120
|
-
enabled: boolean;
|
|
121
120
|
forceOpen: boolean;
|
|
121
|
+
enabled: boolean;
|
|
122
122
|
side: string;
|
|
123
123
|
maxWidth: string;
|
|
124
124
|
shortcutText: string;
|
|
@@ -133,8 +133,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
133
133
|
};
|
|
134
134
|
}>> & Readonly<{}>, {
|
|
135
135
|
text: string;
|
|
136
|
-
enabled: boolean;
|
|
137
136
|
forceOpen: boolean;
|
|
137
|
+
enabled: boolean;
|
|
138
138
|
side: string;
|
|
139
139
|
maxWidth: string;
|
|
140
140
|
shortcutText: string;
|
|
@@ -197,6 +197,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
197
197
|
type: BooleanConstructor;
|
|
198
198
|
default: boolean;
|
|
199
199
|
};
|
|
200
|
+
forceOpen: {
|
|
201
|
+
type: BooleanConstructor;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
200
204
|
position: {
|
|
201
205
|
type: StringConstructor;
|
|
202
206
|
default: string;
|
|
@@ -216,6 +220,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
216
220
|
type: BooleanConstructor;
|
|
217
221
|
default: boolean;
|
|
218
222
|
};
|
|
223
|
+
forceOpen: {
|
|
224
|
+
type: BooleanConstructor;
|
|
225
|
+
default: boolean;
|
|
226
|
+
};
|
|
219
227
|
position: {
|
|
220
228
|
type: StringConstructor;
|
|
221
229
|
default: string;
|
|
@@ -227,6 +235,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
227
235
|
position: string;
|
|
228
236
|
useOpenProp: boolean;
|
|
229
237
|
open: boolean;
|
|
238
|
+
forceOpen: boolean;
|
|
230
239
|
}, {}, {}, {
|
|
231
240
|
onClickOutside: any;
|
|
232
241
|
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -267,8 +267,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
267
267
|
};
|
|
268
268
|
}>> & Readonly<{}>, {
|
|
269
269
|
text: string;
|
|
270
|
-
enabled: boolean;
|
|
271
270
|
forceOpen: boolean;
|
|
271
|
+
enabled: boolean;
|
|
272
272
|
side: string;
|
|
273
273
|
maxWidth: string;
|
|
274
274
|
shortcutText: string;
|
|
@@ -114,6 +114,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
114
114
|
type: BooleanConstructor;
|
|
115
115
|
default: boolean;
|
|
116
116
|
};
|
|
117
|
+
forceOpen: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
117
121
|
position: {
|
|
118
122
|
type: StringConstructor;
|
|
119
123
|
default: string;
|
|
@@ -133,6 +137,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
133
137
|
type: BooleanConstructor;
|
|
134
138
|
default: boolean;
|
|
135
139
|
};
|
|
140
|
+
forceOpen: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default: boolean;
|
|
143
|
+
};
|
|
136
144
|
position: {
|
|
137
145
|
type: StringConstructor;
|
|
138
146
|
default: string;
|
|
@@ -144,6 +152,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
144
152
|
position: string;
|
|
145
153
|
useOpenProp: boolean;
|
|
146
154
|
open: boolean;
|
|
155
|
+
forceOpen: boolean;
|
|
147
156
|
}, {}, {}, {
|
|
148
157
|
onClickOutside: any;
|
|
149
158
|
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -337,8 +337,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
337
337
|
};
|
|
338
338
|
}>> & Readonly<{}>, {
|
|
339
339
|
text: string;
|
|
340
|
-
enabled: boolean;
|
|
341
340
|
forceOpen: boolean;
|
|
341
|
+
enabled: boolean;
|
|
342
342
|
side: string;
|
|
343
343
|
maxWidth: string;
|
|
344
344
|
shortcutText: string;
|
|
@@ -310,8 +310,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
310
310
|
};
|
|
311
311
|
}>> & Readonly<{}>, {
|
|
312
312
|
text: string;
|
|
313
|
-
enabled: boolean;
|
|
314
313
|
forceOpen: boolean;
|
|
314
|
+
enabled: boolean;
|
|
315
315
|
side: string;
|
|
316
316
|
maxWidth: string;
|
|
317
317
|
shortcutText: string;
|
|
@@ -169,8 +169,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
169
169
|
};
|
|
170
170
|
}>> & Readonly<{}>, {
|
|
171
171
|
text: string;
|
|
172
|
-
enabled: boolean;
|
|
173
172
|
forceOpen: boolean;
|
|
173
|
+
enabled: boolean;
|
|
174
174
|
side: string;
|
|
175
175
|
maxWidth: string;
|
|
176
176
|
shortcutText: string;
|
|
@@ -102,8 +102,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
102
102
|
};
|
|
103
103
|
}>> & Readonly<{}>, {
|
|
104
104
|
text: string;
|
|
105
|
-
enabled: boolean;
|
|
106
105
|
forceOpen: boolean;
|
|
106
|
+
enabled: boolean;
|
|
107
107
|
side: string;
|
|
108
108
|
maxWidth: string;
|
|
109
109
|
shortcutText: string;
|
|
@@ -692,8 +692,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
692
692
|
};
|
|
693
693
|
}>> & Readonly<{}>, {
|
|
694
694
|
text: string;
|
|
695
|
-
enabled: boolean;
|
|
696
695
|
forceOpen: boolean;
|
|
696
|
+
enabled: boolean;
|
|
697
697
|
side: string;
|
|
698
698
|
maxWidth: string;
|
|
699
699
|
shortcutText: string;
|
|
@@ -392,8 +392,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
392
392
|
};
|
|
393
393
|
}>> & Readonly<{}>, {
|
|
394
394
|
text: string;
|
|
395
|
-
enabled: boolean;
|
|
396
395
|
forceOpen: boolean;
|
|
396
|
+
enabled: boolean;
|
|
397
397
|
side: string;
|
|
398
398
|
maxWidth: string;
|
|
399
399
|
shortcutText: string;
|
|
@@ -106,8 +106,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
106
106
|
};
|
|
107
107
|
}>> & Readonly<{}>, {
|
|
108
108
|
text: string;
|
|
109
|
-
enabled: boolean;
|
|
110
109
|
forceOpen: boolean;
|
|
110
|
+
enabled: boolean;
|
|
111
111
|
side: string;
|
|
112
112
|
maxWidth: string;
|
|
113
113
|
shortcutText: string;
|
|
@@ -7,6 +7,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
type: BooleanConstructor;
|
|
8
8
|
default: boolean;
|
|
9
9
|
};
|
|
10
|
+
forceOpen: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
position: {
|
|
11
15
|
type: StringConstructor;
|
|
12
16
|
default: string;
|
|
@@ -26,6 +30,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
26
30
|
type: BooleanConstructor;
|
|
27
31
|
default: boolean;
|
|
28
32
|
};
|
|
33
|
+
forceOpen: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
29
37
|
position: {
|
|
30
38
|
type: StringConstructor;
|
|
31
39
|
default: string;
|
|
@@ -37,6 +45,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
37
45
|
position: string;
|
|
38
46
|
useOpenProp: boolean;
|
|
39
47
|
open: boolean;
|
|
48
|
+
forceOpen: boolean;
|
|
40
49
|
}, {}, {}, {
|
|
41
50
|
onClickOutside: any;
|
|
42
51
|
}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -95,8 +95,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
95
95
|
};
|
|
96
96
|
}>> & Readonly<{}>, {
|
|
97
97
|
text: string;
|
|
98
|
-
enabled: boolean;
|
|
99
98
|
forceOpen: boolean;
|
|
99
|
+
enabled: boolean;
|
|
100
100
|
side: string;
|
|
101
101
|
maxWidth: string;
|
|
102
102
|
shortcutText: string;
|
|
@@ -111,7 +111,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
111
111
|
methods: {
|
|
112
112
|
i18n(...args: any[]): any;
|
|
113
113
|
};
|
|
114
|
-
}, import('vue').ComponentOptionsMixin, ("onChange" | "update:modelValue" | "update:searchValue")[], "onChange" | "update:modelValue" | "update:searchValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
114
|
+
}, import('vue').ComponentOptionsMixin, ("onChange" | "update:modelValue" | "update:searchValue" | "onActiveChange")[], "onChange" | "update:modelValue" | "update:searchValue" | "onActiveChange", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
115
115
|
options: {
|
|
116
116
|
type: ArrayConstructor;
|
|
117
117
|
required: true;
|
|
@@ -185,6 +185,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
185
185
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
186
186
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
187
187
|
"onUpdate:searchValue"?: ((...args: any[]) => any) | undefined;
|
|
188
|
+
onOnActiveChange?: ((...args: any[]) => any) | undefined;
|
|
188
189
|
}>, {
|
|
189
190
|
size: string;
|
|
190
191
|
type: string;
|
|
@@ -916,8 +917,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
916
917
|
};
|
|
917
918
|
}>> & Readonly<{}>, {
|
|
918
919
|
text: string;
|
|
919
|
-
enabled: boolean;
|
|
920
920
|
forceOpen: boolean;
|
|
921
|
+
enabled: boolean;
|
|
921
922
|
side: string;
|
|
922
923
|
maxWidth: string;
|
|
923
924
|
shortcutText: string;
|
|
@@ -325,8 +325,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
325
325
|
};
|
|
326
326
|
}>> & Readonly<{}>, {
|
|
327
327
|
text: string;
|
|
328
|
-
enabled: boolean;
|
|
329
328
|
forceOpen: boolean;
|
|
329
|
+
enabled: boolean;
|
|
330
330
|
side: string;
|
|
331
331
|
maxWidth: string;
|
|
332
332
|
shortcutText: string;
|
|
@@ -172,8 +172,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
172
172
|
};
|
|
173
173
|
}>> & Readonly<{}>, {
|
|
174
174
|
text: string;
|
|
175
|
-
enabled: boolean;
|
|
176
175
|
forceOpen: boolean;
|
|
176
|
+
enabled: boolean;
|
|
177
177
|
side: string;
|
|
178
178
|
maxWidth: string;
|
|
179
179
|
shortcutText: string;
|
|
@@ -136,8 +136,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
136
136
|
};
|
|
137
137
|
}>> & Readonly<{}>, {
|
|
138
138
|
text: string;
|
|
139
|
-
enabled: boolean;
|
|
140
139
|
forceOpen: boolean;
|
|
140
|
+
enabled: boolean;
|
|
141
141
|
side: string;
|
|
142
142
|
maxWidth: string;
|
|
143
143
|
shortcutText: string;
|
|
@@ -141,8 +141,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
141
141
|
};
|
|
142
142
|
}>> & Readonly<{}>, {
|
|
143
143
|
text: string;
|
|
144
|
-
enabled: boolean;
|
|
145
144
|
forceOpen: boolean;
|
|
145
|
+
enabled: boolean;
|
|
146
146
|
side: string;
|
|
147
147
|
maxWidth: string;
|
|
148
148
|
shortcutText: string;
|
|
@@ -279,8 +279,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
279
279
|
};
|
|
280
280
|
}>> & Readonly<{}>, {
|
|
281
281
|
text: string;
|
|
282
|
-
enabled: boolean;
|
|
283
282
|
forceOpen: boolean;
|
|
283
|
+
enabled: boolean;
|
|
284
284
|
side: string;
|
|
285
285
|
maxWidth: string;
|
|
286
286
|
shortcutText: string;
|