@nanoporetech-digital/components 2.0.1 → 2.1.2

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/cjs/{algoliasearch.umd-4d15f5e0.js → algoliasearch.umd-79e17a1a.js} +3 -3
  3. package/dist/cjs/{algoliasearch.umd-4d15f5e0.js.map → algoliasearch.umd-79e17a1a.js.map} +1 -1
  4. package/dist/cjs/nano-algolia-input.cjs.entry.js +1 -1
  5. package/dist/cjs/nano-algolia.cjs.entry.js +1 -1
  6. package/dist/cjs/nano-global-nav.cjs.entry.js +1 -1
  7. package/dist/cjs/nano-tab-group.cjs.entry.js +45 -24
  8. package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
  9. package/dist/collection/components/accordion/accordion.js +1 -1
  10. package/dist/collection/components/alert/alert.js +1 -1
  11. package/dist/collection/components/algolia/algolia-filter.js +2 -2
  12. package/dist/collection/components/algolia/algolia-input.js +5 -5
  13. package/dist/collection/components/algolia/algolia-results.js +1 -1
  14. package/dist/collection/components/algolia/algolia.js +6 -6
  15. package/dist/collection/components/checkbox/checkbox-group.js +2 -2
  16. package/dist/collection/components/checkbox/checkbox.js +3 -3
  17. package/dist/collection/components/datalist/datalist.js +1 -1
  18. package/dist/collection/components/date-input/date-input.js +7 -7
  19. package/dist/collection/components/date-picker/date-picker.js +5 -5
  20. package/dist/collection/components/details/details.js +1 -1
  21. package/dist/collection/components/dialog/dialog.js +1 -1
  22. package/dist/collection/components/file-upload/file-upload.js +4 -4
  23. package/dist/collection/components/global-nav/global-nav.js +4 -4
  24. package/dist/collection/components/grid/grid-item.js +1 -1
  25. package/dist/collection/components/icon/icon.js +1 -1
  26. package/dist/collection/components/input/input.js +5 -5
  27. package/dist/collection/components/nav-item/nav-item.js +4 -4
  28. package/dist/collection/components/range/range.js +4 -4
  29. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  30. package/dist/collection/components/select/select.js +7 -7
  31. package/dist/collection/components/slides/slides.js +7 -7
  32. package/dist/collection/components/tabs/tab-group.css +2 -2
  33. package/dist/collection/components/tabs/tab-group.js +54 -27
  34. package/dist/collection/components/tabs/tab-group.js.map +1 -1
  35. package/dist/components/algoliasearch.umd.js +2 -2
  36. package/dist/components/algoliasearch.umd.js.map +1 -1
  37. package/dist/components/nano-tab-group.js +46 -25
  38. package/dist/components/nano-tab-group.js.map +1 -1
  39. package/dist/custom-elements/index.js +47 -26
  40. package/dist/custom-elements/index.js.map +1 -1
  41. package/dist/esm/{algoliasearch.umd-adbc4aa5.js → algoliasearch.umd-6d09b727.js} +3 -3
  42. package/dist/esm/{algoliasearch.umd-adbc4aa5.js.map → algoliasearch.umd-6d09b727.js.map} +1 -1
  43. package/dist/esm/nano-algolia-input.entry.js +1 -1
  44. package/dist/esm/nano-algolia.entry.js +1 -1
  45. package/dist/esm/nano-global-nav.entry.js +1 -1
  46. package/dist/esm/nano-tab-group.entry.js +46 -25
  47. package/dist/esm/nano-tab-group.entry.js.map +1 -1
  48. package/dist/esm-es5/{algoliasearch.umd-adbc4aa5.js → algoliasearch.umd-6d09b727.js} +3 -3
  49. package/dist/esm-es5/{algoliasearch.umd-adbc4aa5.js.map → algoliasearch.umd-6d09b727.js.map} +1 -1
  50. package/dist/esm-es5/nano-algolia-input.entry.js +1 -1
  51. package/dist/esm-es5/nano-algolia.entry.js +1 -1
  52. package/dist/esm-es5/nano-global-nav.entry.js +1 -1
  53. package/dist/esm-es5/nano-tab-group.entry.js +1 -1
  54. package/dist/esm-es5/nano-tab-group.entry.js.map +1 -1
  55. package/dist/nano-components/nano-components.esm.js +1 -1
  56. package/dist/nano-components/p-096682d9.system.js +1 -1
  57. package/dist/nano-components/{p-c7c50a7d.system.entry.js → p-0bee6fe6.system.entry.js} +2 -2
  58. package/dist/nano-components/{p-c7c50a7d.system.entry.js.map → p-0bee6fe6.system.entry.js.map} +0 -0
  59. package/dist/nano-components/{p-55535a0c.system.entry.js → p-3a725f1f.system.entry.js} +2 -2
  60. package/dist/nano-components/{p-55535a0c.system.entry.js.map → p-3a725f1f.system.entry.js.map} +0 -0
  61. package/dist/nano-components/p-3cf35ac4.system.entry.js +5 -0
  62. package/dist/nano-components/p-3cf35ac4.system.entry.js.map +1 -0
  63. package/dist/nano-components/{p-cce0806e.entry.js → p-46d0bb7b.entry.js} +2 -2
  64. package/dist/nano-components/{p-cce0806e.entry.js.map → p-46d0bb7b.entry.js.map} +0 -0
  65. package/dist/nano-components/{p-7319fa52.system.js → p-67cc0d9b.system.js} +3 -3
  66. package/dist/nano-components/{p-7319fa52.system.js.map → p-67cc0d9b.system.js.map} +1 -1
  67. package/dist/nano-components/{p-c475b57f.system.entry.js → p-774e090b.system.entry.js} +2 -2
  68. package/dist/nano-components/{p-c475b57f.system.entry.js.map → p-774e090b.system.entry.js.map} +0 -0
  69. package/dist/nano-components/{p-e64daa92.entry.js → p-a4075d49.entry.js} +2 -2
  70. package/dist/nano-components/{p-e64daa92.entry.js.map → p-a4075d49.entry.js.map} +0 -0
  71. package/dist/nano-components/p-bbe6b7af.entry.js +5 -0
  72. package/dist/nano-components/p-bbe6b7af.entry.js.map +1 -0
  73. package/dist/nano-components/{p-305abcb0.js → p-e3583b00.js} +3 -3
  74. package/dist/nano-components/{p-305abcb0.js.map → p-e3583b00.js.map} +1 -1
  75. package/dist/nano-components/{p-7a9aeeb5.entry.js → p-f1bf1099.entry.js} +2 -2
  76. package/dist/nano-components/{p-7a9aeeb5.entry.js.map → p-f1bf1099.entry.js.map} +0 -0
  77. package/dist/types/components/tabs/tab-group.d.ts +9 -1
  78. package/docs-json.json +26 -6
  79. package/package.json +2 -2
  80. package/dist/nano-components/p-17ebff74.system.entry.js +0 -5
  81. package/dist/nano-components/p-17ebff74.system.entry.js.map +0 -1
  82. package/dist/nano-components/p-dfe50fff.entry.js +0 -5
  83. package/dist/nano-components/p-dfe50fff.entry.js.map +0 -1
@@ -393,7 +393,7 @@ export class DateInput {
393
393
  "references": {
394
394
  "LocalDateOpts": {
395
395
  "location": "import",
396
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
396
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
397
397
  }
398
398
  }
399
399
  },
@@ -514,7 +514,7 @@ export class DateInput {
514
514
  "references": {
515
515
  "DaysOfWeek": {
516
516
  "location": "import",
517
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
517
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
518
518
  }
519
519
  }
520
520
  },
@@ -538,7 +538,7 @@ export class DateInput {
538
538
  "references": {
539
539
  "DuetLocalizedText": {
540
540
  "location": "import",
541
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
541
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
542
542
  }
543
543
  }
544
544
  },
@@ -580,7 +580,7 @@ export class DateInput {
580
580
  "references": {
581
581
  "Color": {
582
582
  "location": "import",
583
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
583
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
584
584
  }
585
585
  }
586
586
  },
@@ -932,7 +932,7 @@ export class DateInput {
932
932
  "references": {
933
933
  "DateInputChangeEventDetail": {
934
934
  "location": "import",
935
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
935
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
936
936
  }
937
937
  }
938
938
  }
@@ -955,7 +955,7 @@ export class DateInput {
955
955
  "references": {
956
956
  "ControlValidityEventDetail": {
957
957
  "location": "import",
958
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
958
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
959
959
  }
960
960
  }
961
961
  }
@@ -977,7 +977,7 @@ export class DateInput {
977
977
  },
978
978
  "ControlValidity": {
979
979
  "location": "import",
980
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
980
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
981
981
  }
982
982
  },
983
983
  "return": "Promise<ControlValidity>"
@@ -370,7 +370,7 @@ export class DatePicker {
370
370
  "references": {
371
371
  "DaysOfWeek": {
372
372
  "location": "import",
373
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
373
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
374
374
  }
375
375
  }
376
376
  },
@@ -395,7 +395,7 @@ export class DatePicker {
395
395
  "references": {
396
396
  "DuetLocalizedText": {
397
397
  "location": "import",
398
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
398
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
399
399
  }
400
400
  }
401
401
  },
@@ -418,7 +418,7 @@ export class DatePicker {
418
418
  "references": {
419
419
  "Color": {
420
420
  "location": "import",
421
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
421
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
422
422
  }
423
423
  }
424
424
  },
@@ -442,7 +442,7 @@ export class DatePicker {
442
442
  "references": {
443
443
  "DateDisabledPredicate": {
444
444
  "location": "import",
445
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
445
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
446
446
  }
447
447
  }
448
448
  },
@@ -521,7 +521,7 @@ export class DatePicker {
521
521
  "references": {
522
522
  "PickerChangeEvent": {
523
523
  "location": "import",
524
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
524
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
525
525
  }
526
526
  }
527
527
  }
@@ -234,7 +234,7 @@ export class Details {
234
234
  "references": {
235
235
  "Color": {
236
236
  "location": "import",
237
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
237
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
238
238
  }
239
239
  }
240
240
  },
@@ -336,7 +336,7 @@ export class Dialog {
336
336
  "references": {
337
337
  "StorageMethods": {
338
338
  "location": "import",
339
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
339
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
340
340
  }
341
341
  }
342
342
  },
@@ -655,7 +655,7 @@ export class FileUpload {
655
655
  "references": {
656
656
  "FileWithUrl": {
657
657
  "location": "import",
658
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
658
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
659
659
  }
660
660
  }
661
661
  },
@@ -713,7 +713,7 @@ export class FileUpload {
713
713
  "references": {
714
714
  "FileInputChangeEventDetail": {
715
715
  "location": "import",
716
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
716
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
717
717
  }
718
718
  }
719
719
  }
@@ -766,7 +766,7 @@ export class FileUpload {
766
766
  "references": {
767
767
  "ControlValidityEventDetail": {
768
768
  "location": "import",
769
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
769
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
770
770
  }
771
771
  }
772
772
  }
@@ -788,7 +788,7 @@ export class FileUpload {
788
788
  },
789
789
  "ControlValidity": {
790
790
  "location": "import",
791
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
791
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
792
792
  }
793
793
  },
794
794
  "return": "Promise<ControlValidity>"
@@ -1353,7 +1353,7 @@ export class GlobalNav {
1353
1353
  },
1354
1354
  "SearchIndex": {
1355
1355
  "location": "import",
1356
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1356
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1357
1357
  }
1358
1358
  }
1359
1359
  },
@@ -1602,7 +1602,7 @@ export class GlobalNav {
1602
1602
  "references": {
1603
1603
  "AloliaSearchResultDetail": {
1604
1604
  "location": "import",
1605
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1605
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1606
1606
  }
1607
1607
  }
1608
1608
  }
@@ -1622,7 +1622,7 @@ export class GlobalNav {
1622
1622
  "references": {
1623
1623
  "AlgoliaNetworkError": {
1624
1624
  "location": "import",
1625
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1625
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1626
1626
  }
1627
1627
  }
1628
1628
  }
@@ -1642,7 +1642,7 @@ export class GlobalNav {
1642
1642
  "references": {
1643
1643
  "AloliaSearchResultDetail": {
1644
1644
  "location": "import",
1645
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1645
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1646
1646
  }
1647
1647
  }
1648
1648
  }
@@ -124,7 +124,7 @@ export class GridItem {
124
124
  },
125
125
  "GridSizes": {
126
126
  "location": "import",
127
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
127
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
128
128
  }
129
129
  },
130
130
  "return": "Promise<void>"
@@ -116,7 +116,7 @@ export class Icon {
116
116
  "references": {
117
117
  "Color": {
118
118
  "location": "import",
119
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
119
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
120
120
  }
121
121
  }
122
122
  },
@@ -423,7 +423,7 @@ export class Input {
423
423
  "references": {
424
424
  "Color": {
425
425
  "location": "import",
426
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
426
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
427
427
  }
428
428
  }
429
429
  },
@@ -994,7 +994,7 @@ export class Input {
994
994
  "references": {
995
995
  "TextFieldTypes": {
996
996
  "location": "import",
997
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
997
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
998
998
  }
999
999
  }
1000
1000
  },
@@ -1153,7 +1153,7 @@ export class Input {
1153
1153
  "references": {
1154
1154
  "InputChangeEventDetail": {
1155
1155
  "location": "import",
1156
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1156
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1157
1157
  }
1158
1158
  }
1159
1159
  }
@@ -1242,7 +1242,7 @@ export class Input {
1242
1242
  "references": {
1243
1243
  "ControlValidityEventDetail": {
1244
1244
  "location": "import",
1245
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1245
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1246
1246
  }
1247
1247
  }
1248
1248
  }
@@ -1264,7 +1264,7 @@ export class Input {
1264
1264
  },
1265
1265
  "ControlValidity": {
1266
1266
  "location": "import",
1267
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1267
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1268
1268
  }
1269
1269
  },
1270
1270
  "return": "Promise<ControlValidity>"
@@ -488,7 +488,7 @@ export class NavItem {
488
488
  "references": {
489
489
  "NavItemEventDetail": {
490
490
  "location": "import",
491
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
491
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
492
492
  }
493
493
  }
494
494
  }
@@ -508,7 +508,7 @@ export class NavItem {
508
508
  "references": {
509
509
  "NavItemEventDetail": {
510
510
  "location": "import",
511
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
511
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
512
512
  }
513
513
  }
514
514
  }
@@ -528,7 +528,7 @@ export class NavItem {
528
528
  "references": {
529
529
  "NavItemEventDetail": {
530
530
  "location": "import",
531
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
531
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
532
532
  }
533
533
  }
534
534
  }
@@ -548,7 +548,7 @@ export class NavItem {
548
548
  "references": {
549
549
  "NavItemEventDetail": {
550
550
  "location": "import",
551
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
551
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
552
552
  }
553
553
  }
554
554
  }
@@ -370,7 +370,7 @@ export class Range {
370
370
  "references": {
371
371
  "Color": {
372
372
  "location": "import",
373
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
373
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
374
374
  }
375
375
  }
376
376
  },
@@ -594,7 +594,7 @@ export class Range {
594
594
  "references": {
595
595
  "RangeValue": {
596
596
  "location": "import",
597
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
597
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
598
598
  }
599
599
  }
600
600
  },
@@ -632,7 +632,7 @@ export class Range {
632
632
  "references": {
633
633
  "RangeChangeEventDetail": {
634
634
  "location": "import",
635
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
635
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
636
636
  }
637
637
  }
638
638
  }
@@ -655,7 +655,7 @@ export class Range {
655
655
  "references": {
656
656
  "StyleEventDetail": {
657
657
  "location": "import",
658
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
658
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
659
659
  }
660
660
  }
661
661
  }
@@ -176,7 +176,7 @@ export class ResizeObserve {
176
176
  "references": {
177
177
  "ResizeStateChangeEventDetail": {
178
178
  "location": "import",
179
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
179
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
180
180
  }
181
181
  }
182
182
  }
@@ -624,7 +624,7 @@ export class Select {
624
624
  "references": {
625
625
  "Color": {
626
626
  "location": "import",
627
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
627
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
628
628
  }
629
629
  }
630
630
  },
@@ -1005,7 +1005,7 @@ export class Select {
1005
1005
  },
1006
1006
  "OptionInterface": {
1007
1007
  "location": "import",
1008
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/components/option/option-interface.ts"
1008
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/components/option/option-interface.ts"
1009
1009
  }
1010
1010
  }
1011
1011
  },
@@ -1090,7 +1090,7 @@ export class Select {
1090
1090
  },
1091
1091
  "Dropdown": {
1092
1092
  "location": "import",
1093
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/components/dropdown/dropdown.tsx"
1093
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/components/dropdown/dropdown.tsx"
1094
1094
  }
1095
1095
  }
1096
1096
  },
@@ -1131,7 +1131,7 @@ export class Select {
1131
1131
  "references": {
1132
1132
  "SelectChangeEventDetail": {
1133
1133
  "location": "import",
1134
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1134
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1135
1135
  }
1136
1136
  }
1137
1137
  }
@@ -1217,7 +1217,7 @@ export class Select {
1217
1217
  "references": {
1218
1218
  "InputChangeEventDetail": {
1219
1219
  "location": "import",
1220
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1220
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1221
1221
  }
1222
1222
  }
1223
1223
  }
@@ -1240,7 +1240,7 @@ export class Select {
1240
1240
  "references": {
1241
1241
  "ControlValidityEventDetail": {
1242
1242
  "location": "import",
1243
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1243
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1244
1244
  }
1245
1245
  }
1246
1246
  }
@@ -1262,7 +1262,7 @@ export class Select {
1262
1262
  },
1263
1263
  "ControlValidity": {
1264
1264
  "location": "import",
1265
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1265
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1266
1266
  }
1267
1267
  },
1268
1268
  "return": "Promise<ControlValidity>"
@@ -453,7 +453,7 @@ export class Slides {
453
453
  "references": {
454
454
  "FlickityOptions": {
455
455
  "location": "import",
456
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
456
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
457
457
  }
458
458
  }
459
459
  },
@@ -556,7 +556,7 @@ export class Slides {
556
556
  "references": {
557
557
  "SlideAnimation": {
558
558
  "location": "import",
559
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
559
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
560
560
  }
561
561
  }
562
562
  },
@@ -747,7 +747,7 @@ export class Slides {
747
747
  "references": {
748
748
  "DragEvent": {
749
749
  "location": "import",
750
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
750
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
751
751
  }
752
752
  }
753
753
  }
@@ -767,7 +767,7 @@ export class Slides {
767
767
  "references": {
768
768
  "DragEvent": {
769
769
  "location": "import",
770
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
770
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
771
771
  }
772
772
  }
773
773
  }
@@ -787,7 +787,7 @@ export class Slides {
787
787
  "references": {
788
788
  "DragEvent": {
789
789
  "location": "import",
790
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
790
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
791
791
  }
792
792
  }
793
793
  }
@@ -807,7 +807,7 @@ export class Slides {
807
807
  "references": {
808
808
  "DragEvent": {
809
809
  "location": "import",
810
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
810
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
811
811
  }
812
812
  }
813
813
  }
@@ -1114,7 +1114,7 @@ export class Slides {
1114
1114
  },
1115
1115
  "Flickity": {
1116
1116
  "location": "import",
1117
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
1117
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
1118
1118
  }
1119
1119
  },
1120
1120
  "return": "Promise<Flickity>"
@@ -115,8 +115,8 @@
115
115
  }
116
116
  .nano-tab-group__active-tab-indicator {
117
117
  position: absolute;
118
- -webkit-transition: var(--indicator-transition) transform ease;
119
- transition: var(--indicator-transition) transform ease;
118
+ -webkit-transition: var(--indicator-transition) transform ease, var(--indicator-transition) width ease;
119
+ transition: var(--indicator-transition) transform ease, var(--indicator-transition) width ease;
120
120
  }
121
121
  .nano-tab-group__body {
122
122
  background: var(--content-bg);
@@ -5,7 +5,7 @@ import { Component, Element, Event, Method, Prop, State, Watch, h, Host, Listen,
5
5
  import ResizeObserver from 'resize-observer-polyfill';
6
6
  import { scrollIntoView } from '../../utils/scroll';
7
7
  import { focusVisible } from '../../utils/focus-visible';
8
- import { displayTransition, createColorClasses, getOffset, getDirectChildren, } from '../../utils';
8
+ import { displayTransition, createColorClasses, getOffset, getDirectChildren, raf, } from '../../utils';
9
9
  import { ComponentStore, } from '../../utils/store/component-store';
10
10
  /**
11
11
  * A tradtional tab implementation. It nests `nano-tab` and `nano-tab-content` sub-components.
@@ -17,11 +17,18 @@ import { ComponentStore, } from '../../utils/store/component-store';
17
17
  * @slot tabs - Add `nano-tab` elements to add clickable tabs.
18
18
  * @slot tab-content-header - a header bar displayed above tab content.
19
19
  * @slot - Add `nano-tab-content` elements to add tabbable content.
20
+ *
21
+ * @part base - the main tab-group wrapper
22
+ * @part nav - the bar surrounding all the tabs and nav buttons
23
+ * @part tabs - the wrapper around the `nano-tab` components
24
+ * @part active-tab-indicator - the active indicator line
25
+ * @part body - the wrapper around the `nano-tab-content` components
20
26
  */
21
27
  export class TabGroup {
22
28
  constructor() {
23
29
  this.initialTouchX = null;
24
30
  this.initialTouchY = null;
31
+ this.mutationObservers = new WeakMap();
25
32
  this.hasScrollControls = false;
26
33
  this.hideControlRight = true;
27
34
  this.hideControlLeft = true;
@@ -179,6 +186,39 @@ export class TabGroup {
179
186
  this.initialTouchX = null;
180
187
  this.initialTouchY = null;
181
188
  };
189
+ this.handleContentSlotChange = () => {
190
+ setTimeout(() => {
191
+ this.setAriaLabels();
192
+ this.setActiveTab(this.getActiveTab || this.getAllActiveTabs[0], false);
193
+ });
194
+ };
195
+ this.handleTabSlotChange = (ev) => {
196
+ setTimeout(() => {
197
+ this.setAriaLabels();
198
+ this.handleTabScroll();
199
+ this.setActiveTab(this.getActiveTab || this.getAllActiveTabs[0], false);
200
+ this.updateScrollControls();
201
+ }, 500);
202
+ /** maintain a weakmap of mutation observers to maintain tab / indicator position on all changes. */
203
+ const nodes = ev.target.assignedNodes({ flatten: true });
204
+ nodes.forEach((node) => {
205
+ if (!this.mutationObservers.get(node)) {
206
+ const mo = new MutationObserver(() => {
207
+ setTimeout(() => {
208
+ this.syncActiveTabIndicator();
209
+ this.handleTabScroll();
210
+ this.updateScrollControls();
211
+ }, 500);
212
+ });
213
+ this.mutationObservers.set(node, mo);
214
+ mo.observe(node, {
215
+ characterData: true,
216
+ childList: true,
217
+ subtree: true,
218
+ });
219
+ }
220
+ });
221
+ };
182
222
  }
183
223
  handleTabNameChange() {
184
224
  if (this.activeTab && this.activeTab.panel === this.tab)
@@ -350,25 +390,14 @@ export class TabGroup {
350
390
  focusVisible.observe(this.leftBtn);
351
391
  focusVisible.observe(this.rightBtn);
352
392
  }
353
- this.resizeObserver = new ResizeObserver(() => this.updateScrollControls());
354
- this.resizeObserver.observe(this.nav);
355
- this.mutationObserver = new MutationObserver((mutations) => {
356
- if (mutations.some((mutation) => {
357
- return !['aria-labelledby', 'aria-controls'].includes(mutation.attributeName);
358
- })) {
359
- setTimeout(() => this.setAriaLabels());
360
- }
361
- setTimeout(() => this.handleTabScroll(), 500);
362
- this.setActiveTab(this.getActiveTab || this.getAllActiveTabs[0], false);
363
- if (this.activeTab)
364
- scrollIntoView(this.activeTab, this.nav, 'horizontal', 'center');
365
- });
366
- this.mutationObserver.observe(this.host, {
367
- attributes: true,
368
- childList: true,
369
- subtree: true,
393
+ this.resizeObserver = new ResizeObserver(() => {
394
+ setTimeout(() => {
395
+ this.updateScrollControls();
396
+ this.syncActiveTabIndicator();
397
+ }, 500);
370
398
  });
371
- requestAnimationFrame(() => this.updateScrollControls());
399
+ this.resizeObserver.observe(this.nav);
400
+ raf(() => this.updateScrollControls());
372
401
  }
373
402
  connectedCallback() {
374
403
  this.isRtl =
@@ -376,8 +405,6 @@ export class TabGroup {
376
405
  this.host.ownerDocument.dir === 'rtl';
377
406
  }
378
407
  disconnectedCallback() {
379
- if (this.mutationObserver)
380
- this.mutationObserver.disconnect();
381
408
  focusVisible.unobserve(this.tabGroup);
382
409
  if (this.leftBtn) {
383
410
  focusVisible.unobserve(this.leftBtn);
@@ -397,16 +424,16 @@ export class TabGroup {
397
424
  'nano-tab-group--has-scroll-controls-left': !this.hideControlLeft,
398
425
  'nano-tab-group--has-scroll-controls-right': !this.hideControlRight,
399
426
  }, onClick: this.handleClick, onKeyDown: this.handleKeyDown },
400
- h("div", { class: "nano-tab-group__nav-container" },
427
+ h("div", { class: "nano-tab-group__nav-container", part: "nav" },
401
428
  this.placement === 'top' && (h("button", { class: {
402
429
  'nano-tab-group__scroll-button': true,
403
430
  'nano-tab-group__scroll-button--left': true,
404
431
  }, ref: (btn) => (this.leftBtn = btn), onClick: () => this.handleBtnClick(false) },
405
432
  h("nano-icon", { name: "light/chevron-left" }))),
406
- h("div", { ref: (el) => (this.nav = el), key: "nav", part: "nav", class: "nano-tab-group__nav", onScroll: this.handleTabScroll },
433
+ h("div", { ref: (el) => (this.nav = el), class: "nano-tab-group__nav", onScroll: this.handleTabScroll },
407
434
  h("div", { ref: (el) => (this.tabs = el), part: "tabs", class: "nano-tab-group__tabs", role: "tablist" },
408
435
  h("div", { ref: (el) => (this.activeTabIndicator = el), part: "active-tab-indicator", class: "nano-tab-group__active-tab-indicator" }),
409
- h("slot", { name: "tabs" }))),
436
+ h("slot", { name: "tabs", onSlotchange: this.handleTabSlotChange }))),
410
437
  this.placement === 'top' && (h("button", { class: {
411
438
  'nano-tab-group__scroll-button': true,
412
439
  'nano-tab-group__scroll-button--right': true,
@@ -414,7 +441,7 @@ export class TabGroup {
414
441
  h("nano-icon", { name: "light/chevron-right" })))),
415
442
  h("slot", { name: "tab-content-header" }),
416
443
  h("div", { part: "body", class: "nano-tab-group__body", onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd },
417
- h("slot", null)))));
444
+ h("slot", { onSlotchange: this.handleContentSlotChange })))));
418
445
  }
419
446
  static get is() { return "nano-tab-group"; }
420
447
  static get encapsulation() { return "shadow"; }
@@ -474,7 +501,7 @@ export class TabGroup {
474
501
  "references": {
475
502
  "Color": {
476
503
  "location": "import",
477
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/interface.d.ts"
504
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/interface.d.ts"
478
505
  }
479
506
  }
480
507
  },
@@ -517,7 +544,7 @@ export class TabGroup {
517
544
  "references": {
518
545
  "StorageMethods": {
519
546
  "location": "import",
520
- "path": "/builds/B3xEGUt6/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
547
+ "path": "/builds/KNNHetV4/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
521
548
  }
522
549
  }
523
550
  },