@nova-design-system/nova-vue 3.22.0 → 3.24.0

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.
@@ -1,13 +1,15 @@
1
1
  /* eslint-disable */
2
2
  /* tslint:disable */
3
3
  /* auto-generated vue proxies */
4
- import { defineContainer } from './vue-component-lib/utils';
4
+ import { defineContainer } from '@stencil/vue-output-target/runtime';
5
5
  export const NvAccordion = /*@__PURE__*/ defineContainer('nv-accordion', undefined, [
6
6
  'data',
7
7
  'mode',
8
8
  'openIndexes',
9
9
  'openIndexesChanged'
10
- ], 'openIndexes', 'open-indexes-changed');
10
+ ], [
11
+ 'openIndexesChanged'
12
+ ], 'openIndexes', 'openIndexesChanged', undefined);
11
13
  export const NvAccordionItem = /*@__PURE__*/ defineContainer('nv-accordion-item', undefined, [
12
14
  'itemTitle',
13
15
  'subtitle',
@@ -16,6 +18,8 @@ export const NvAccordionItem = /*@__PURE__*/ defineContainer('nv-accordion-item'
16
18
  'maxContentHeight',
17
19
  'mode',
18
20
  'itemToggle'
21
+ ], [
22
+ 'itemToggle'
19
23
  ]);
20
24
  export const NvAlert = /*@__PURE__*/ defineContainer('nv-alert', undefined, [
21
25
  'color',
@@ -30,7 +34,11 @@ export const NvAlert = /*@__PURE__*/ defineContainer('nv-alert', undefined, [
30
34
  'hiddenChanged',
31
35
  'hiddenChangedComplete',
32
36
  'closeClicked'
33
- ], 'hidden', 'hidden-changed');
37
+ ], [
38
+ 'hiddenChanged',
39
+ 'hiddenChangedComplete',
40
+ 'closeClicked'
41
+ ], 'hidden', 'hiddenChanged', undefined);
34
42
  export const NvAvatar = /*@__PURE__*/ defineContainer('nv-avatar', undefined, [
35
43
  'xsmall',
36
44
  'small',
@@ -59,6 +67,10 @@ export const NvBadge = /*@__PURE__*/ defineContainer('nv-badge', undefined, [
59
67
  'closeClicked',
60
68
  'hiddenChanged',
61
69
  'hiddenChangedComplete'
70
+ ], [
71
+ 'closeClicked',
72
+ 'hiddenChanged',
73
+ 'hiddenChangedComplete'
62
74
  ]);
63
75
  export const NvBreadcrumb = /*@__PURE__*/ defineContainer('nv-breadcrumb', undefined, [
64
76
  'type',
@@ -105,7 +117,11 @@ export const NvCalendar = /*@__PURE__*/ defineContainer('nv-calendar', undefined
105
117
  'singleDateChange',
106
118
  'rangeDateChange',
107
119
  'valueChanged'
108
- ], 'value', 'value-changed');
120
+ ], [
121
+ 'singleDateChange',
122
+ 'rangeDateChange',
123
+ 'valueChanged'
124
+ ], 'value', 'valueChanged', undefined);
109
125
  export const NvCol = /*@__PURE__*/ defineContainer('nv-col', undefined, [
110
126
  'size'
111
127
  ]);
@@ -127,7 +143,11 @@ export const NvDatagrid = /*@__PURE__*/ defineContainer('nv-datagrid', undefined
127
143
  'action',
128
144
  'selectedRows',
129
145
  'stateChanged'
130
- ], 'state', 'state-changed');
146
+ ], [
147
+ 'action',
148
+ 'selectedRows',
149
+ 'stateChanged'
150
+ ], 'state', 'stateChanged', undefined);
131
151
  export const NvDatagridcolumn = /*@__PURE__*/ defineContainer('nv-datagridcolumn', undefined, [
132
152
  'header',
133
153
  'accessor',
@@ -145,7 +165,9 @@ export const NvDialog = /*@__PURE__*/ defineContainer('nv-dialog', undefined, [
145
165
  'full',
146
166
  'autofocus',
147
167
  'openChanged'
148
- ], 'open', 'open-changed');
168
+ ], [
169
+ 'openChanged'
170
+ ], 'open', 'openChanged', undefined);
149
171
  export const NvDialogfooter = /*@__PURE__*/ defineContainer('nv-dialogfooter', undefined, [
150
172
  'disabled',
151
173
  'undismissable',
@@ -158,11 +180,48 @@ export const NvDialogfooter = /*@__PURE__*/ defineContainer('nv-dialogfooter', u
158
180
  'form',
159
181
  'dialogCanceled',
160
182
  'dialogPrimaryClicked'
183
+ ], [
184
+ 'dialogCanceled',
185
+ 'dialogPrimaryClicked'
161
186
  ]);
162
187
  export const NvDialogheader = /*@__PURE__*/ defineContainer('nv-dialogheader', undefined, [
163
188
  'heading',
164
189
  'subheading'
165
190
  ]);
191
+ export const NvDrawer = /*@__PURE__*/ defineContainer('nv-drawer', undefined, [
192
+ 'open',
193
+ 'undismissable',
194
+ 'clickOutside',
195
+ 'controlled',
196
+ 'side',
197
+ 'size',
198
+ 'width',
199
+ 'autofocus',
200
+ 'swipeToOpen',
201
+ 'openChanged'
202
+ ], [
203
+ 'openChanged'
204
+ ], 'open', 'openChanged', undefined);
205
+ export const NvDrawerfooter = /*@__PURE__*/ defineContainer('nv-drawerfooter', undefined, [
206
+ 'disabled',
207
+ 'undismissable',
208
+ 'leadingIcon',
209
+ 'trailingIcon',
210
+ 'danger',
211
+ 'cancelLabel',
212
+ 'primaryLabel',
213
+ 'primaryButtonType',
214
+ 'form',
215
+ 'drawerCanceled',
216
+ 'drawerPrimaryClicked'
217
+ ], [
218
+ 'drawerCanceled',
219
+ 'drawerPrimaryClicked'
220
+ ]);
221
+ export const NvDrawerheader = /*@__PURE__*/ defineContainer('nv-drawerheader', undefined, [
222
+ 'heading',
223
+ 'subheading'
224
+ ]);
166
225
  export const NvFieldcheckbox = /*@__PURE__*/ defineContainer('nv-fieldcheckbox', undefined, [
167
226
  'message',
168
227
  'validation',
@@ -181,9 +240,12 @@ export const NvFieldcheckbox = /*@__PURE__*/ defineContainer('nv-fieldcheckbox',
181
240
  'disabled',
182
241
  'readonly',
183
242
  'required',
243
+ 'ariaRequiredAttr',
184
244
  'autofocus',
185
245
  'checkedChanged'
186
- ], 'checked', 'checked-changed');
246
+ ], [
247
+ 'checkedChanged'
248
+ ], 'checked', 'checkedChanged', undefined);
187
249
  export const NvFielddate = /*@__PURE__*/ defineContainer('nv-fielddate', undefined, [
188
250
  'inputId',
189
251
  'label',
@@ -193,6 +255,7 @@ export const NvFielddate = /*@__PURE__*/ defineContainer('nv-fielddate', undefin
193
255
  'disabled',
194
256
  'readonly',
195
257
  'required',
258
+ 'ariaRequiredAttr',
196
259
  'error',
197
260
  'errorDescription',
198
261
  'success',
@@ -211,7 +274,9 @@ export const NvFielddate = /*@__PURE__*/ defineContainer('nv-fielddate', undefin
211
274
  'disabledDates',
212
275
  'fluid',
213
276
  'valueChanged'
214
- ], 'value', 'value-changed');
277
+ ], [
278
+ 'valueChanged'
279
+ ], 'value', 'valueChanged', undefined);
215
280
  export const NvFielddaterange = /*@__PURE__*/ defineContainer('nv-fielddaterange', undefined, [
216
281
  'startInputId',
217
282
  'endInputId',
@@ -224,6 +289,7 @@ export const NvFielddaterange = /*@__PURE__*/ defineContainer('nv-fielddaterange
224
289
  'disabled',
225
290
  'readonly',
226
291
  'required',
292
+ 'ariaRequiredAttr',
227
293
  'error',
228
294
  'errorDescription',
229
295
  'success',
@@ -243,7 +309,10 @@ export const NvFielddaterange = /*@__PURE__*/ defineContainer('nv-fielddaterange
243
309
  'fluid',
244
310
  'dateRangeChange',
245
311
  'valueChanged'
246
- ], 'value', 'value-changed');
312
+ ], [
313
+ 'dateRangeChange',
314
+ 'valueChanged'
315
+ ], 'value', 'valueChanged', undefined);
247
316
  export const NvFielddropdown = /*@__PURE__*/ defineContainer('nv-fielddropdown', undefined, [
248
317
  'inputId',
249
318
  'name',
@@ -253,6 +322,7 @@ export const NvFielddropdown = /*@__PURE__*/ defineContainer('nv-fielddropdown',
253
322
  'autocomplete',
254
323
  'value',
255
324
  'required',
325
+ 'ariaRequiredAttr',
256
326
  'readonly',
257
327
  'disabled',
258
328
  'error',
@@ -266,11 +336,23 @@ export const NvFielddropdown = /*@__PURE__*/ defineContainer('nv-fielddropdown',
266
336
  'debounceDelay',
267
337
  'autofocus',
268
338
  'fluid',
339
+ 'filterMode',
340
+ 'maxResults',
341
+ 'startFilterAt',
342
+ 'locale',
343
+ 'truncatedResultsText',
344
+ 'workerThreshold',
345
+ 'fuzzyThreshold',
269
346
  'valueChanged',
270
347
  'filterTextChanged',
271
348
  'openChanged',
272
349
  'dropdownItemSelected'
273
- ], 'value', 'value-changed');
350
+ ], [
351
+ 'valueChanged',
352
+ 'filterTextChanged',
353
+ 'openChanged',
354
+ 'dropdownItemSelected'
355
+ ], 'value', 'valueChanged', undefined);
274
356
  export const NvFielddropdownitem = /*@__PURE__*/ defineContainer('nv-fielddropdownitem', undefined, [
275
357
  'disabled',
276
358
  'selected',
@@ -278,6 +360,8 @@ export const NvFielddropdownitem = /*@__PURE__*/ defineContainer('nv-fielddropdo
278
360
  'label',
279
361
  'detached',
280
362
  'dropdownItemSelected'
363
+ ], [
364
+ 'dropdownItemSelected'
281
365
  ]);
282
366
  export const NvFielddropdownitemcheck = /*@__PURE__*/ defineContainer('nv-fielddropdownitemcheck', undefined, [
283
367
  'checked',
@@ -287,6 +371,8 @@ export const NvFielddropdownitemcheck = /*@__PURE__*/ defineContainer('nv-fieldd
287
371
  'group',
288
372
  'disabled',
289
373
  'itemChecked'
374
+ ], [
375
+ 'itemChecked'
290
376
  ]);
291
377
  export const NvFieldmultiselect = /*@__PURE__*/ defineContainer('nv-fieldmultiselect', undefined, [
292
378
  'label',
@@ -296,6 +382,7 @@ export const NvFieldmultiselect = /*@__PURE__*/ defineContainer('nv-fieldmultise
296
382
  'placeholder',
297
383
  'autocomplete',
298
384
  'required',
385
+ 'ariaRequiredAttr',
299
386
  'readonly',
300
387
  'disabled',
301
388
  'error',
@@ -314,9 +401,19 @@ export const NvFieldmultiselect = /*@__PURE__*/ defineContainer('nv-fieldmultise
314
401
  'enableSelectAll',
315
402
  'selectAllLabel',
316
403
  'deselectAllLabel',
404
+ 'filterMode',
405
+ 'maxResults',
406
+ 'startFilterAt',
407
+ 'locale',
408
+ 'truncatedResultsText',
409
+ 'workerThreshold',
410
+ 'fuzzyThreshold',
411
+ 'valueChanged',
412
+ 'filterTextChanged'
413
+ ], [
317
414
  'valueChanged',
318
415
  'filterTextChanged'
319
- ], 'value', 'value-changed');
416
+ ], 'value', 'valueChanged', undefined);
320
417
  export const NvFieldnumber = /*@__PURE__*/ defineContainer('nv-fieldnumber', undefined, [
321
418
  'message',
322
419
  'validation',
@@ -328,6 +425,7 @@ export const NvFieldnumber = /*@__PURE__*/ defineContainer('nv-fieldnumber', und
328
425
  'disabled',
329
426
  'readonly',
330
427
  'required',
428
+ 'ariaRequiredAttr',
331
429
  'error',
332
430
  'errorDescription',
333
431
  'success',
@@ -338,7 +436,9 @@ export const NvFieldnumber = /*@__PURE__*/ defineContainer('nv-fieldnumber', und
338
436
  'autofocus',
339
437
  'fluid',
340
438
  'valueChanged'
341
- ], 'value', 'value-changed');
439
+ ], [
440
+ 'valueChanged'
441
+ ], 'value', 'valueChanged', undefined);
342
442
  export const NvFieldpassword = /*@__PURE__*/ defineContainer('nv-fieldpassword', undefined, [
343
443
  'inputId',
344
444
  'label',
@@ -349,6 +449,7 @@ export const NvFieldpassword = /*@__PURE__*/ defineContainer('nv-fieldpassword',
349
449
  'disabled',
350
450
  'readonly',
351
451
  'required',
452
+ 'ariaRequiredAttr',
352
453
  'error',
353
454
  'errorDescription',
354
455
  'success',
@@ -362,7 +463,9 @@ export const NvFieldpassword = /*@__PURE__*/ defineContainer('nv-fieldpassword',
362
463
  'autofocus',
363
464
  'fluid',
364
465
  'valueChanged'
365
- ], 'value', 'value-changed');
466
+ ], [
467
+ 'valueChanged'
468
+ ], 'value', 'valueChanged', undefined);
366
469
  export const NvFieldradio = /*@__PURE__*/ defineContainer('nv-fieldradio', undefined, [
367
470
  'message',
368
471
  'labelBefore',
@@ -378,7 +481,9 @@ export const NvFieldradio = /*@__PURE__*/ defineContainer('nv-fieldradio', undef
378
481
  'disabled',
379
482
  'autofocus',
380
483
  'checkedChanged'
381
- ], 'checked', 'checked-changed');
484
+ ], [
485
+ 'checkedChanged'
486
+ ], 'checked', 'checkedChanged', undefined);
382
487
  export const NvFieldselect = /*@__PURE__*/ defineContainer('nv-fieldselect', undefined, [
383
488
  'message',
384
489
  'validation',
@@ -390,6 +495,7 @@ export const NvFieldselect = /*@__PURE__*/ defineContainer('nv-fieldselect', und
390
495
  'disabled',
391
496
  'readonly',
392
497
  'required',
498
+ 'ariaRequiredAttr',
393
499
  'error',
394
500
  'errorDescription',
395
501
  'success',
@@ -399,7 +505,9 @@ export const NvFieldselect = /*@__PURE__*/ defineContainer('nv-fieldselect', und
399
505
  'autofocus',
400
506
  'fluid',
401
507
  'valueChanged'
402
- ], 'value', 'value-changed');
508
+ ], [
509
+ 'valueChanged'
510
+ ], 'value', 'valueChanged', undefined);
403
511
  export const NvFieldslider = /*@__PURE__*/ defineContainer('nv-fieldslider', undefined, [
404
512
  'startInputId',
405
513
  'endInputId',
@@ -427,7 +535,9 @@ export const NvFieldslider = /*@__PURE__*/ defineContainer('nv-fieldslider', und
427
535
  'labelBeforeValue',
428
536
  'labelAfterValue',
429
537
  'valueChanged'
430
- ], 'value', 'value-changed');
538
+ ], [
539
+ 'valueChanged'
540
+ ], 'value', 'valueChanged', undefined);
431
541
  export const NvFieldtext = /*@__PURE__*/ defineContainer('nv-fieldtext', undefined, [
432
542
  'message',
433
543
  'validation',
@@ -442,6 +552,7 @@ export const NvFieldtext = /*@__PURE__*/ defineContainer('nv-fieldtext', undefin
442
552
  'disabled',
443
553
  'readonly',
444
554
  'required',
555
+ 'ariaRequiredAttr',
445
556
  'error',
446
557
  'errorDescription',
447
558
  'success',
@@ -453,7 +564,9 @@ export const NvFieldtext = /*@__PURE__*/ defineContainer('nv-fieldtext', undefin
453
564
  'autofocus',
454
565
  'fluid',
455
566
  'valueChanged'
456
- ], 'value', 'value-changed');
567
+ ], [
568
+ 'valueChanged'
569
+ ], 'value', 'valueChanged', undefined);
457
570
  export const NvFieldtextarea = /*@__PURE__*/ defineContainer('nv-fieldtextarea', undefined, [
458
571
  'message',
459
572
  'validation',
@@ -466,6 +579,7 @@ export const NvFieldtextarea = /*@__PURE__*/ defineContainer('nv-fieldtextarea',
466
579
  'disabled',
467
580
  'readonly',
468
581
  'required',
582
+ 'ariaRequiredAttr',
469
583
  'error',
470
584
  'errorDescription',
471
585
  'success',
@@ -477,7 +591,9 @@ export const NvFieldtextarea = /*@__PURE__*/ defineContainer('nv-fieldtextarea',
477
591
  'autofocus',
478
592
  'fluid',
479
593
  'valueChanged'
480
- ], 'value', 'value-changed');
594
+ ], [
595
+ 'valueChanged'
596
+ ], 'value', 'valueChanged', undefined);
481
597
  export const NvFieldtime = /*@__PURE__*/ defineContainer('nv-fieldtime', undefined, [
482
598
  'value',
483
599
  'label',
@@ -485,6 +601,7 @@ export const NvFieldtime = /*@__PURE__*/ defineContainer('nv-fieldtime', undefin
485
601
  'readonly',
486
602
  'disabled',
487
603
  'required',
604
+ 'ariaRequiredAttr',
488
605
  'name',
489
606
  'success',
490
607
  'error',
@@ -497,7 +614,9 @@ export const NvFieldtime = /*@__PURE__*/ defineContainer('nv-fieldtime', undefin
497
614
  'min',
498
615
  'autofocus',
499
616
  'valueChanged'
500
- ], 'value', 'value-changed');
617
+ ], [
618
+ 'valueChanged'
619
+ ], 'value', 'valueChanged', undefined);
501
620
  export const NvIcon = /*@__PURE__*/ defineContainer('nv-icon', undefined, [
502
621
  'xsmall',
503
622
  'small',
@@ -530,6 +649,8 @@ export const NvMenu = /*@__PURE__*/ defineContainer('nv-menu', undefined, [
530
649
  'placement',
531
650
  'items',
532
651
  'menuitemSelected'
652
+ ], [
653
+ 'menuitemSelected'
533
654
  ]);
534
655
  export const NvMenuitem = /*@__PURE__*/ defineContainer('nv-menuitem', undefined, [
535
656
  'label',
@@ -539,6 +660,8 @@ export const NvMenuitem = /*@__PURE__*/ defineContainer('nv-menuitem', undefined
539
660
  'hasSubmenu',
540
661
  'name',
541
662
  'menuitemSelected'
663
+ ], [
664
+ 'menuitemSelected'
542
665
  ]);
543
666
  export const NvNotification = /*@__PURE__*/ defineContainer('nv-notification', undefined, [
544
667
  'uid',
@@ -551,7 +674,16 @@ export const NvNotification = /*@__PURE__*/ defineContainer('nv-notification', u
551
674
  'hidden',
552
675
  'initiallyHidden',
553
676
  'hiddenChanged'
554
- ], 'hidden', 'hidden-changed');
677
+ ], [
678
+ 'hiddenChanged'
679
+ ], 'hidden', 'hiddenChanged', undefined);
680
+ export const NvNotificationBullet = /*@__PURE__*/ defineContainer('nv-notification-bullet', undefined, [
681
+ 'count',
682
+ 'intention',
683
+ 'emphasis',
684
+ 'size',
685
+ 'contrastingBorder'
686
+ ]);
555
687
  export const NvNotificationcontainer = /*@__PURE__*/ defineContainer('nv-notificationcontainer', undefined, [
556
688
  'position'
557
689
  ]);
@@ -569,15 +701,51 @@ export const NvPopover = /*@__PURE__*/ defineContainer('nv-popover', undefined,
569
701
  'enterDelay',
570
702
  'nested',
571
703
  'openChanged'
572
- ], 'open', 'open-changed');
704
+ ], [
705
+ 'openChanged'
706
+ ], 'open', 'openChanged', undefined);
573
707
  export const NvRow = /*@__PURE__*/ defineContainer('nv-row', undefined);
708
+ export const NvSidebar = /*@__PURE__*/ defineContainer('nv-sidebar', undefined, [
709
+ 'type',
710
+ 'open',
711
+ 'activePath',
712
+ 'notificationIntention',
713
+ 'notificationEmphasis',
714
+ 'openChanged'
715
+ ], [
716
+ 'openChanged'
717
+ ], 'open', 'openChanged', undefined);
718
+ export const NvSidebarcontent = /*@__PURE__*/ defineContainer('nv-sidebarcontent', undefined);
719
+ export const NvSidebardivider = /*@__PURE__*/ defineContainer('nv-sidebardivider', undefined);
720
+ export const NvSidebarfooter = /*@__PURE__*/ defineContainer('nv-sidebarfooter', undefined);
721
+ export const NvSidebargroup = /*@__PURE__*/ defineContainer('nv-sidebargroup', undefined, [
722
+ 'label'
723
+ ]);
724
+ export const NvSidebarheader = /*@__PURE__*/ defineContainer('nv-sidebarheader', undefined);
725
+ export const NvSidebarlogo = /*@__PURE__*/ defineContainer('nv-sidebarlogo', undefined, [
726
+ 'label',
727
+ 'logo',
728
+ 'collapsedLogo'
729
+ ]);
730
+ export const NvSidebarnavitem = /*@__PURE__*/ defineContainer('nv-sidebarnavitem', undefined, [
731
+ 'icon',
732
+ 'active',
733
+ 'collapsible',
734
+ 'open',
735
+ 'notificationCount'
736
+ ]);
737
+ export const NvSidebarnavsubitem = /*@__PURE__*/ defineContainer('nv-sidebarnavsubitem', undefined, [
738
+ 'active'
739
+ ]);
574
740
  export const NvSplit = /*@__PURE__*/ defineContainer('nv-split', undefined, [
575
741
  'direction',
576
742
  'sizes',
577
743
  'minSizes',
578
744
  'gutterSize',
579
745
  'sizesChanged'
580
- ], 'sizes', 'sizes-changed');
746
+ ], [
747
+ 'sizesChanged'
748
+ ], 'sizes', 'sizesChanged', undefined);
581
749
  export const NvStack = /*@__PURE__*/ defineContainer('nv-stack', undefined, [
582
750
  'gutter',
583
751
  'fill',
@@ -590,6 +758,8 @@ export const NvTableheader = /*@__PURE__*/ defineContainer('nv-tableheader', und
590
758
  'sortable',
591
759
  'sortDirection',
592
760
  'sortDirectionChanged'
761
+ ], [
762
+ 'sortDirectionChanged'
593
763
  ]);
594
764
  export const NvToggle = /*@__PURE__*/ defineContainer('nv-toggle', undefined, [
595
765
  'inputId',
@@ -603,7 +773,9 @@ export const NvToggle = /*@__PURE__*/ defineContainer('nv-toggle', undefined, [
603
773
  'disabled',
604
774
  'readonly',
605
775
  'checkedChanged'
606
- ], 'checked', 'checked-changed');
776
+ ], [
777
+ 'checkedChanged'
778
+ ], 'checked', 'checkedChanged', undefined);
607
779
  export const NvTogglebutton = /*@__PURE__*/ defineContainer('nv-togglebutton', undefined, [
608
780
  'size',
609
781
  'value',
@@ -611,6 +783,8 @@ export const NvTogglebutton = /*@__PURE__*/ defineContainer('nv-togglebutton', u
611
783
  'active',
612
784
  'emphasis',
613
785
  'toggled'
786
+ ], [
787
+ 'toggled'
614
788
  ]);
615
789
  export const NvTogglebuttongroup = /*@__PURE__*/ defineContainer('nv-togglebuttongroup', undefined, [
616
790
  'value',
@@ -619,7 +793,9 @@ export const NvTogglebuttongroup = /*@__PURE__*/ defineContainer('nv-togglebutto
619
793
  'emphasis',
620
794
  'size',
621
795
  'valueChanged'
622
- ], 'value', 'value-changed');
796
+ ], [
797
+ 'valueChanged'
798
+ ], 'value', 'valueChanged', undefined);
623
799
  export const NvTooltip = /*@__PURE__*/ defineContainer('nv-tooltip', undefined, [
624
800
  'triggerElement',
625
801
  'message',
@@ -627,4 +803,6 @@ export const NvTooltip = /*@__PURE__*/ defineContainer('nv-tooltip', undefined,
627
803
  'enterDelay',
628
804
  'strategy',
629
805
  'openChanged'
806
+ ], [
807
+ 'openChanged'
630
808
  ]);
package/dist/plugin.d.ts CHANGED
@@ -3,10 +3,6 @@
3
3
  * 1. Loads the Stencil components using defineCustomElements
4
4
  * 2. Sets up custom event handling to bridge the naming convention difference
5
5
  * between Stencil (camelCase) and Vue (kebab-case)
6
- *
7
- * The ael, rel, and ce functions are used by Stencil to handle events.
8
- * By providing custom implementations, we ensure that event names are
9
- * properly transformed, allowing Stencil components to work seamlessly in Vue.
10
6
  */
11
7
  import { App } from 'vue';
12
8
  import { type NotificationServiceOptions } from './providers/NotificationService';
package/dist/plugin.js CHANGED
@@ -3,42 +3,9 @@
3
3
  * 1. Loads the Stencil components using defineCustomElements
4
4
  * 2. Sets up custom event handling to bridge the naming convention difference
5
5
  * between Stencil (camelCase) and Vue (kebab-case)
6
- *
7
- * The ael, rel, and ce functions are used by Stencil to handle events.
8
- * By providing custom implementations, we ensure that event names are
9
- * properly transformed, allowing Stencil components to work seamlessly in Vue.
10
6
  */
11
7
  import { defineCustomElements } from '@nova-design-system/nova-webcomponents/loader';
12
8
  import { NvNotificationService, } from './providers/NotificationService';
13
- /**
14
- * Transforms the event name to kebab-case.
15
- * @param {string} eventName - The name of the event.
16
- * @returns {string} The transformed event name.
17
- */
18
- const transformEventName = (eventName) => {
19
- return eventName
20
- .replace(/([a-z])([A-Z])/g, '$1-$2')
21
- .replace(/[\s_]+/g, '-')
22
- .toLowerCase();
23
- };
24
- /**
25
- * Custom add event listener function that transforms the event name
26
- * @param {HTMLElement} el - The element to attach the event listener to.
27
- * @param {string} eventName - The name of the event.
28
- * @param {Function} cb - The callback function to be executed when the event is triggered.
29
- * @param {object} opts - The options for the event listener.
30
- * @returns {void} Nothing.
31
- */
32
- const ael = (el, eventName, cb, opts) => el.addEventListener(transformEventName(eventName), cb, opts);
33
- /**
34
- * Custom remove event listener function that transforms the event name.
35
- * @param {HTMLElement} el - The element to remove the event listener from.
36
- * @param {string} eventName - The name of the event.
37
- * @param {Function} cb - The callback function to be removed.
38
- * @param {object} opts - The options for the event listener.
39
- * @returns {void} Nothing.
40
- */
41
- const rel = (el, eventName, cb, opts) => el.removeEventListener(transformEventName(eventName), cb, opts);
42
9
  /**
43
10
  * This is the Vue plugin that is used to define the custom elements, event
44
11
  * handlers, and includes the notification service.
@@ -46,11 +13,7 @@ const rel = (el, eventName, cb, opts) => el.removeEventListener(transformEventNa
46
13
  export const NovaComponents = {
47
14
  async install(app, options = {}) {
48
15
  // Define custom elements with event handling
49
- defineCustomElements(window, {
50
- ce: (eventName, opts) => new CustomEvent(transformEventName(eventName), opts),
51
- ael,
52
- rel,
53
- });
16
+ defineCustomElements();
54
17
  // Install notification service
55
18
  NvNotificationService.install(app, options.notifications);
56
19
  },
@@ -1,15 +1,14 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc */
2
2
  import { ref, createApp, h, } from 'vue';
3
3
  import { NvButton, NvNotification, NvNotificationcontainer, } from '../generated/components';
4
+ import { v4 as uuidv4 } from 'uuid';
4
5
  /**
5
6
  * Utility function to generate unique IDs.
6
7
  *
7
8
  * @returns {string} A unique identifier string
8
9
  */
9
10
  const generateId = () => {
10
- return `notification-${Date.now()}-${Math.random()
11
- .toString(36)
12
- .substr(2, 9)}`;
11
+ return `notification-${uuidv4()}`;
13
12
  };
14
13
  /**
15
14
  * Utility function to unwrap a notification element from a ref.
@@ -68,6 +67,7 @@ class NotificationManager {
68
67
  return h(NvNotification, {
69
68
  key: notification.id,
70
69
  ref: this.setElRef(notification.id),
70
+ uid: notification.id,
71
71
  heading: notification.heading,
72
72
  message: notification.message,
73
73
  dismissible: notification.dismissible,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nova-design-system/nova-vue",
3
- "version": "3.22.0",
3
+ "version": "3.24.0",
4
4
  "description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
5
5
  "author": "Elia Group",
6
6
  "homepage": "https://nova.eliagroup.io",
@@ -44,8 +44,11 @@
44
44
  "@tanstack/vue-table": "8.21.3"
45
45
  },
46
46
  "devDependencies": {
47
- "vue": "3.5.17",
47
+ "vue": "3.5.25",
48
48
  "nova-utils": "*",
49
49
  "nova-storybook-utils": "*"
50
+ },
51
+ "peerDependencies": {
52
+ "@stencil/vue-output-target": "0.11.8"
50
53
  }
51
54
  }
@@ -1,16 +0,0 @@
1
- export interface InputProps<T> {
2
- modelValue?: T;
3
- }
4
- /**
5
- * Create a callback to define a Vue component wrapper around a Web Component.
6
- *
7
- * @prop name - The component tag name (i.e. `ion-button`)
8
- * @prop componentProps - An array of properties on the
9
- * component. These usually match up with the @Prop definitions
10
- * in each component's TSX file.
11
- * @prop customElement - An option custom element instance to pass
12
- * to customElements.define. Only set if `includeImportCustomElements: true` in your config.
13
- * @prop modelProp - The prop that v-model binds to (i.e. value)
14
- * @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
15
- */
16
- export declare const defineContainer: <Props, VModelType = string | number | boolean>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string) => import("vue").DefineSetupFnComponent<Props & InputProps<VModelType>, {}, {}, Props & InputProps<VModelType> & {}, import("vue").PublicProps>;