@nanoporetech-digital/components 2.7.0 → 2.8.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/nano-checkbox-group.cjs.entry.js +1 -1
  4. package/dist/cjs/nano-checkbox-group.cjs.entry.js.map +1 -1
  5. package/dist/cjs/nano-components.cjs.js +1 -1
  6. package/dist/cjs/nano-dropdown.cjs.entry.js +1 -1
  7. package/dist/cjs/nano-global-nav.cjs.entry.js +44 -39
  8. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  9. package/dist/cjs/nano-nav-item_2.cjs.entry.js +1 -1
  10. package/dist/cjs/nano-nav-item_2.cjs.entry.js.map +1 -1
  11. package/dist/cjs/nano-tooltip.cjs.entry.js +1 -1
  12. package/dist/cjs/{popover-8c86d338.js → popover-5f152a19.js} +3 -8
  13. package/dist/cjs/{popover-8c86d338.js.map → popover-5f152a19.js.map} +1 -1
  14. package/dist/collection/components/accordion/accordion.js +1 -1
  15. package/dist/collection/components/alert/alert.js +1 -1
  16. package/dist/collection/components/algolia/algolia-filter.js +2 -2
  17. package/dist/collection/components/algolia/algolia-input.js +5 -5
  18. package/dist/collection/components/algolia/algolia-results.js +1 -1
  19. package/dist/collection/components/algolia/algolia.js +6 -6
  20. package/dist/collection/components/checkbox/checkbox-group.css +4 -1
  21. package/dist/collection/components/checkbox/checkbox-group.js +2 -2
  22. package/dist/collection/components/checkbox/checkbox.js +3 -3
  23. package/dist/collection/components/datalist/datalist.js +1 -1
  24. package/dist/collection/components/date-input/date-input.js +7 -7
  25. package/dist/collection/components/date-picker/date-picker.js +5 -5
  26. package/dist/collection/components/details/details.js +1 -1
  27. package/dist/collection/components/dialog/dialog.js +1 -1
  28. package/dist/collection/components/dropdown/dropdown.js +1 -1
  29. package/dist/collection/components/file-upload/file-upload.js +4 -4
  30. package/dist/collection/components/global-nav/global-nav.js +73 -45
  31. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  32. package/dist/collection/components/grid/grid-item.js +1 -1
  33. package/dist/collection/components/icon/icon.js +1 -1
  34. package/dist/collection/components/input/input.js +5 -5
  35. package/dist/collection/components/nav-item/nav-item.js +4 -4
  36. package/dist/collection/components/range/range.js +4 -4
  37. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  38. package/dist/collection/components/select/select.css +2 -2
  39. package/dist/collection/components/select/select.js +7 -7
  40. package/dist/collection/components/slides/slides.js +7 -7
  41. package/dist/collection/components/tabs/tab-group.js +2 -2
  42. package/dist/collection/utils/popover.js +2 -7
  43. package/dist/collection/utils/popover.js.map +1 -1
  44. package/dist/components/nano-checkbox-group.js +1 -1
  45. package/dist/components/nano-checkbox-group.js.map +1 -1
  46. package/dist/components/nano-global-nav.js +45 -39
  47. package/dist/components/nano-global-nav.js.map +1 -1
  48. package/dist/components/popover.js +2 -7
  49. package/dist/components/popover.js.map +1 -1
  50. package/dist/components/select.js +1 -1
  51. package/dist/components/select.js.map +1 -1
  52. package/dist/custom-elements/index.js +49 -49
  53. package/dist/custom-elements/index.js.map +1 -1
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/esm/nano-checkbox-group.entry.js +1 -1
  56. package/dist/esm/nano-checkbox-group.entry.js.map +1 -1
  57. package/dist/esm/nano-components.js +1 -1
  58. package/dist/esm/nano-dropdown.entry.js +1 -1
  59. package/dist/esm/nano-global-nav.entry.js +44 -39
  60. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  61. package/dist/esm/nano-nav-item_2.entry.js +1 -1
  62. package/dist/esm/nano-nav-item_2.entry.js.map +1 -1
  63. package/dist/esm/nano-tooltip.entry.js +1 -1
  64. package/dist/esm/{popover-7639005b.js → popover-a03563f3.js} +3 -8
  65. package/dist/esm/{popover-7639005b.js.map → popover-a03563f3.js.map} +1 -1
  66. package/dist/esm-es5/loader.js +1 -1
  67. package/dist/esm-es5/loader.js.map +1 -1
  68. package/dist/esm-es5/nano-checkbox-group.entry.js +1 -1
  69. package/dist/esm-es5/nano-checkbox-group.entry.js.map +1 -1
  70. package/dist/esm-es5/nano-components.js +1 -1
  71. package/dist/esm-es5/nano-components.js.map +1 -1
  72. package/dist/esm-es5/nano-dropdown.entry.js +1 -1
  73. package/dist/esm-es5/nano-global-nav.entry.js +1 -1
  74. package/dist/esm-es5/nano-global-nav.entry.js.map +1 -1
  75. package/dist/esm-es5/nano-nav-item_2.entry.js +1 -1
  76. package/dist/esm-es5/nano-nav-item_2.entry.js.map +1 -1
  77. package/dist/esm-es5/nano-tooltip.entry.js +1 -1
  78. package/dist/esm-es5/{popover-7639005b.js → popover-a03563f3.js} +2 -2
  79. package/dist/esm-es5/popover-a03563f3.js.map +1 -0
  80. package/dist/nano-components/nano-components.esm.js +1 -1
  81. package/dist/nano-components/nano-components.esm.js.map +1 -1
  82. package/dist/nano-components/p-096682d9.system.js +1 -1
  83. package/dist/nano-components/p-096682d9.system.js.map +1 -1
  84. package/dist/nano-components/{p-820d9e23.system.entry.js → p-09e38c5f.system.entry.js} +2 -2
  85. package/dist/nano-components/p-09e38c5f.system.entry.js.map +1 -0
  86. package/dist/nano-components/{p-8e5afc61.system.entry.js → p-18176c26.system.entry.js} +2 -2
  87. package/dist/nano-components/{p-8e5afc61.system.entry.js.map → p-18176c26.system.entry.js.map} +1 -1
  88. package/dist/nano-components/{p-e7fdc62d.entry.js → p-1e8321ea.entry.js} +2 -2
  89. package/dist/nano-components/{p-e7fdc62d.entry.js.map → p-1e8321ea.entry.js.map} +0 -0
  90. package/dist/nano-components/{p-3c475740.system.entry.js → p-2057d480.system.entry.js} +2 -2
  91. package/dist/nano-components/p-2057d480.system.entry.js.map +1 -0
  92. package/dist/nano-components/{p-9acc4596.system.entry.js → p-2ae4918d.system.entry.js} +3 -3
  93. package/dist/nano-components/{p-9acc4596.system.entry.js.map → p-2ae4918d.system.entry.js.map} +0 -0
  94. package/dist/nano-components/{p-c9d09839.entry.js → p-313970ff.entry.js} +2 -2
  95. package/dist/nano-components/{p-c9d09839.entry.js.map → p-313970ff.entry.js.map} +0 -0
  96. package/dist/nano-components/{p-178c34e3.js → p-3de7735c.js} +2 -2
  97. package/dist/nano-components/p-3de7735c.js.map +1 -0
  98. package/dist/nano-components/{p-f3bf942d.entry.js → p-457d4893.entry.js} +2 -2
  99. package/dist/nano-components/p-457d4893.entry.js.map +1 -0
  100. package/dist/nano-components/{p-383fda90.system.entry.js → p-4870e76d.system.entry.js} +2 -2
  101. package/dist/nano-components/{p-383fda90.system.entry.js.map → p-4870e76d.system.entry.js.map} +0 -0
  102. package/dist/nano-components/{p-ee3fe567.entry.js → p-b4f8e541.entry.js} +2 -2
  103. package/dist/nano-components/p-b4f8e541.entry.js.map +1 -0
  104. package/dist/nano-components/{p-9745d44e.system.js → p-e43ec257.system.js} +2 -2
  105. package/dist/nano-components/p-e43ec257.system.js.map +1 -0
  106. package/dist/nano-components/{p-894d6967.entry.js → p-f79c3ea0.entry.js} +2 -2
  107. package/dist/nano-components/{p-894d6967.entry.js.map → p-f79c3ea0.entry.js.map} +1 -1
  108. package/dist/types/components/global-nav/global-nav.d.ts +10 -3
  109. package/dist/types/components.d.ts +11 -3
  110. package/docs-json.json +21 -3
  111. package/docs-vscode.json +5 -1
  112. package/package.json +2 -2
  113. package/dist/esm-es5/popover-7639005b.js.map +0 -1
  114. package/dist/nano-components/p-178c34e3.js.map +0 -1
  115. package/dist/nano-components/p-3c475740.system.entry.js.map +0 -1
  116. package/dist/nano-components/p-820d9e23.system.entry.js.map +0 -1
  117. package/dist/nano-components/p-9745d44e.system.js.map +0 -1
  118. package/dist/nano-components/p-ee3fe567.entry.js.map +0 -1
  119. package/dist/nano-components/p-f3bf942d.entry.js.map +0 -1
@@ -47,7 +47,7 @@ export class Accordion {
47
47
  "references": {
48
48
  "Color": {
49
49
  "location": "import",
50
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
50
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
51
51
  }
52
52
  }
53
53
  },
@@ -305,7 +305,7 @@ export class Alert {
305
305
  "references": {
306
306
  "Color": {
307
307
  "location": "import",
308
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
308
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
309
309
  }
310
310
  }
311
311
  },
@@ -362,7 +362,7 @@ export class AlgoliaFilter {
362
362
  "references": {
363
363
  "StorageMethods": {
364
364
  "location": "import",
365
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
365
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
366
366
  }
367
367
  }
368
368
  },
@@ -405,7 +405,7 @@ export class AlgoliaFilter {
405
405
  "references": {
406
406
  "FilterChangeEventDetail": {
407
407
  "location": "import",
408
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
408
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
409
409
  }
410
410
  }
411
411
  }
@@ -228,7 +228,7 @@ export class AlgoliaInput {
228
228
  "references": {
229
229
  "SearchIndex": {
230
230
  "location": "import",
231
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
231
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
232
232
  }
233
233
  }
234
234
  },
@@ -349,7 +349,7 @@ export class AlgoliaInput {
349
349
  "references": {
350
350
  "StorageMethods": {
351
351
  "location": "import",
352
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
352
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
353
353
  }
354
354
  }
355
355
  },
@@ -390,7 +390,7 @@ export class AlgoliaInput {
390
390
  "references": {
391
391
  "AloliaSearchResultDetail": {
392
392
  "location": "import",
393
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
393
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
394
394
  }
395
395
  }
396
396
  }
@@ -410,7 +410,7 @@ export class AlgoliaInput {
410
410
  "references": {
411
411
  "AloliaSearchResultDetail": {
412
412
  "location": "import",
413
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
413
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
414
414
  }
415
415
  }
416
416
  }
@@ -430,7 +430,7 @@ export class AlgoliaInput {
430
430
  "references": {
431
431
  "AloliaSearchResultDetail": {
432
432
  "location": "import",
433
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
433
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
434
434
  }
435
435
  }
436
436
  }
@@ -251,7 +251,7 @@ export class AlgoliaResults {
251
251
  "references": {
252
252
  "PageChangeEventDetail": {
253
253
  "location": "import",
254
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
254
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
255
255
  }
256
256
  }
257
257
  }
@@ -738,7 +738,7 @@ export class Algolia {
738
738
  "references": {
739
739
  "SearchIndex": {
740
740
  "location": "import",
741
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
741
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
742
742
  }
743
743
  }
744
744
  },
@@ -982,7 +982,7 @@ export class Algolia {
982
982
  "references": {
983
983
  "StorageMethods": {
984
984
  "location": "import",
985
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
985
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
986
986
  }
987
987
  }
988
988
  },
@@ -1047,7 +1047,7 @@ export class Algolia {
1047
1047
  "references": {
1048
1048
  "IndexResult": {
1049
1049
  "location": "import",
1050
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1050
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1051
1051
  }
1052
1052
  }
1053
1053
  }
@@ -1067,7 +1067,7 @@ export class Algolia {
1067
1067
  "references": {
1068
1068
  "IndexResult": {
1069
1069
  "location": "import",
1070
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1070
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1071
1071
  }
1072
1072
  }
1073
1073
  }
@@ -1087,7 +1087,7 @@ export class Algolia {
1087
1087
  "references": {
1088
1088
  "IndexResult": {
1089
1089
  "location": "import",
1090
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1090
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1091
1091
  }
1092
1092
  }
1093
1093
  }
@@ -1107,7 +1107,7 @@ export class Algolia {
1107
1107
  "references": {
1108
1108
  "IndexResult": {
1109
1109
  "location": "import",
1110
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1110
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1111
1111
  }
1112
1112
  }
1113
1113
  }
@@ -66,7 +66,7 @@
66
66
  margin: 0;
67
67
  padding: 0;
68
68
  }
69
- .nanogroupcb__legend, .nanogroupcb__error, .nanogroupcb__help, .nanogroupcb__more {
69
+ .nanogroupcb__error, .nanogroupcb__help, .nanogroupcb__more {
70
70
  display: block;
71
71
  width: 100%;
72
72
  overflow: hidden;
@@ -78,6 +78,9 @@
78
78
  padding: 0 0 var(--label-padding);
79
79
  margin: 0;
80
80
  line-height: 1;
81
+ white-space: normal;
82
+ display: block;
83
+ width: 100%;
81
84
  }
82
85
  :host([invalid]:not([invalid=false])) .nanogroupcb__legend {
83
86
  color: var(--label-color--invalid);
@@ -370,7 +370,7 @@ export class CheckboxGroup {
370
370
  "references": {
371
371
  "ControlValidityEventDetail": {
372
372
  "location": "import",
373
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
373
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
374
374
  }
375
375
  }
376
376
  }
@@ -392,7 +392,7 @@ export class CheckboxGroup {
392
392
  },
393
393
  "ControlValidity": {
394
394
  "location": "import",
395
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
395
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
396
396
  }
397
397
  },
398
398
  "return": "Promise<ControlValidity>"
@@ -405,7 +405,7 @@ export class Checkbox {
405
405
  "references": {
406
406
  "Color": {
407
407
  "location": "import",
408
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
408
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
409
409
  }
410
410
  }
411
411
  },
@@ -441,7 +441,7 @@ export class Checkbox {
441
441
  "references": {
442
442
  "CheckboxChangeEventDetail": {
443
443
  "location": "import",
444
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
444
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
445
445
  }
446
446
  }
447
447
  }
@@ -512,7 +512,7 @@ export class Checkbox {
512
512
  },
513
513
  "ControlValidity": {
514
514
  "location": "import",
515
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
515
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
516
516
  }
517
517
  },
518
518
  "return": "Promise<ControlValidity>"
@@ -550,7 +550,7 @@ export class DataList {
550
550
  "references": {
551
551
  "OptionInterface": {
552
552
  "location": "import",
553
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
553
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
554
554
  }
555
555
  }
556
556
  },
@@ -405,7 +405,7 @@ export class DateInput {
405
405
  "references": {
406
406
  "LocalDateOpts": {
407
407
  "location": "import",
408
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
408
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
409
409
  }
410
410
  }
411
411
  },
@@ -526,7 +526,7 @@ export class DateInput {
526
526
  "references": {
527
527
  "DaysOfWeek": {
528
528
  "location": "import",
529
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
529
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
530
530
  }
531
531
  }
532
532
  },
@@ -550,7 +550,7 @@ export class DateInput {
550
550
  "references": {
551
551
  "DuetLocalizedText": {
552
552
  "location": "import",
553
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
553
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
554
554
  }
555
555
  }
556
556
  },
@@ -592,7 +592,7 @@ export class DateInput {
592
592
  "references": {
593
593
  "Color": {
594
594
  "location": "import",
595
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
595
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
596
596
  }
597
597
  }
598
598
  },
@@ -962,7 +962,7 @@ export class DateInput {
962
962
  "references": {
963
963
  "DateInputChangeEventDetail": {
964
964
  "location": "import",
965
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
965
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
966
966
  }
967
967
  }
968
968
  }
@@ -985,7 +985,7 @@ export class DateInput {
985
985
  "references": {
986
986
  "ControlValidityEventDetail": {
987
987
  "location": "import",
988
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
988
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
989
989
  }
990
990
  }
991
991
  }
@@ -1007,7 +1007,7 @@ export class DateInput {
1007
1007
  },
1008
1008
  "ControlValidity": {
1009
1009
  "location": "import",
1010
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1010
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1011
1011
  }
1012
1012
  },
1013
1013
  "return": "Promise<ControlValidity>"
@@ -370,7 +370,7 @@ export class DatePicker {
370
370
  "references": {
371
371
  "DaysOfWeek": {
372
372
  "location": "import",
373
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/date-utils.ts"
373
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
398
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
421
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
445
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
524
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
525
525
  }
526
526
  }
527
527
  }
@@ -239,7 +239,7 @@ export class Details {
239
239
  "references": {
240
240
  "Color": {
241
241
  "location": "import",
242
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
242
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
243
243
  }
244
244
  }
245
245
  },
@@ -336,7 +336,7 @@ export class Dialog {
336
336
  "references": {
337
337
  "StorageMethods": {
338
338
  "location": "import",
339
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
339
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/utils/store/component-store.ts"
340
340
  }
341
341
  }
342
342
  },
@@ -410,7 +410,7 @@ export class Dropdown {
410
410
  "references": {
411
411
  "PopoverPlacement": {
412
412
  "location": "import",
413
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/utils/popover.ts"
413
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/utils/popover.ts"
414
414
  }
415
415
  }
416
416
  },
@@ -655,7 +655,7 @@ export class FileUpload {
655
655
  "references": {
656
656
  "FileWithUrl": {
657
657
  "location": "import",
658
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
658
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
716
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
769
+ "path": "/builds/RxH386Vg/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/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
791
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
792
792
  }
793
793
  },
794
794
  "return": "Promise<ControlValidity>"
@@ -71,7 +71,8 @@ export class GlobalNav {
71
71
  this.searchValInternal = '';
72
72
  /**
73
73
  * Connect to local, dev, test or prod MyAccount
74
- * environments to retrieve global nav / sso data
74
+ * environments to retrieve global nav / sso data.
75
+ * Alternatively, you can use the `ssoDataUrl` prop.
75
76
  */
76
77
  this.env = 'prod';
77
78
  /**
@@ -467,6 +468,46 @@ export class GlobalNav {
467
468
  this.showAutocomplete = false;
468
469
  return;
469
470
  }
471
+ async getMyAccData() {
472
+ if (!this.getMyAccountData || this.myAccData) {
473
+ this.remoteDataReady = true;
474
+ return;
475
+ }
476
+ let url = this.ssoDataUrl;
477
+ if (!url) {
478
+ switch (this.env) {
479
+ case 'dev':
480
+ url = 'https://myaccount-dev.nanoporetech.com/';
481
+ break;
482
+ case 'test':
483
+ url = 'https://myaccount-test.nanoporetech.com/';
484
+ break;
485
+ default:
486
+ url = 'https://myaccount.nanoporetech.com/';
487
+ break;
488
+ }
489
+ }
490
+ var config = { timeout: 5000 };
491
+ try {
492
+ if (this.env === 'local') {
493
+ this.myAccData = (await import(`./assets/local-my-account.json`));
494
+ }
495
+ else {
496
+ this.myAccData = await clientFetch(url + 'nav_bar_data.json', config);
497
+ }
498
+ if (this.myAccData.user.id) {
499
+ this.isLoggedIn = true;
500
+ this.myAccountUser = this.myAccData.user;
501
+ }
502
+ this.processMyAccLinks();
503
+ this.processMyAccData();
504
+ setTimeout(() => (this.remoteDataReady = true), 300);
505
+ }
506
+ catch (e) {
507
+ console.error(e);
508
+ this.remoteDataReady = true;
509
+ }
510
+ }
470
511
  currentSelectedIndex() {
471
512
  if (!this.internalSearchIndeces.length) {
472
513
  return;
@@ -1128,44 +1169,6 @@ export class GlobalNav {
1128
1169
  return singleResult;
1129
1170
  }
1130
1171
  }
1131
- async getMyAccData() {
1132
- if (!this.getMyAccountData || this.myAccData) {
1133
- this.remoteDataReady = true;
1134
- return;
1135
- }
1136
- let url;
1137
- switch (this.env) {
1138
- case 'dev':
1139
- url = 'https://myaccount-dev.nanoporetech.com/';
1140
- break;
1141
- case 'test':
1142
- url = 'https://myaccount-test.nanoporetech.com/';
1143
- break;
1144
- default:
1145
- url = 'https://myaccount.nanoporetech.com/';
1146
- break;
1147
- }
1148
- var config = { timeout: 5000 };
1149
- try {
1150
- if (this.env === 'local') {
1151
- this.myAccData = (await import(`./assets/local-my-account.json`));
1152
- }
1153
- else {
1154
- this.myAccData = await clientFetch(url + 'nav_bar_data.json', config);
1155
- }
1156
- if (this.myAccData.user.id) {
1157
- this.isLoggedIn = true;
1158
- this.myAccountUser = this.myAccData.user;
1159
- }
1160
- this.processMyAccLinks();
1161
- this.processMyAccData();
1162
- setTimeout(() => (this.remoteDataReady = true), 300);
1163
- }
1164
- catch (e) {
1165
- console.error(e);
1166
- this.remoteDataReady = true;
1167
- }
1168
- }
1169
1172
  processMyAccData() {
1170
1173
  if (!this.myAccData || !this.myAccData.search.indeces.length)
1171
1174
  return;
@@ -1241,10 +1244,10 @@ export class GlobalNav {
1241
1244
  "references": {}
1242
1245
  },
1243
1246
  "required": false,
1244
- "optional": false,
1247
+ "optional": true,
1245
1248
  "docs": {
1246
1249
  "tags": [],
1247
- "text": "Connect to local, dev, test or prod MyAccount\nenvironments to retrieve global nav / sso data"
1250
+ "text": "Connect to local, dev, test or prod MyAccount\nenvironments to retrieve global nav / sso data.\nAlternatively, you can use the `ssoDataUrl` prop."
1248
1251
  },
1249
1252
  "getter": false,
1250
1253
  "setter": false,
@@ -1252,6 +1255,25 @@ export class GlobalNav {
1252
1255
  "reflect": false,
1253
1256
  "defaultValue": "'prod'"
1254
1257
  },
1258
+ "ssoDataUrl": {
1259
+ "type": "string",
1260
+ "mutable": false,
1261
+ "complexType": {
1262
+ "original": "string",
1263
+ "resolved": "string",
1264
+ "references": {}
1265
+ },
1266
+ "required": false,
1267
+ "optional": true,
1268
+ "docs": {
1269
+ "tags": [],
1270
+ "text": "A base url to retrieve global nav / sso data.\n`nav_bar_data.json` will be appended to this url.\nAn alternative to the pre-defined `env` urls"
1271
+ },
1272
+ "getter": false,
1273
+ "setter": false,
1274
+ "attribute": "sso-data-url",
1275
+ "reflect": false
1276
+ },
1255
1277
  "ssoRedirect": {
1256
1278
  "type": "string",
1257
1279
  "mutable": false,
@@ -1382,7 +1404,7 @@ export class GlobalNav {
1382
1404
  },
1383
1405
  "SearchIndex": {
1384
1406
  "location": "import",
1385
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1407
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1386
1408
  }
1387
1409
  }
1388
1410
  },
@@ -1631,7 +1653,7 @@ export class GlobalNav {
1631
1653
  "references": {
1632
1654
  "AloliaSearchResultDetail": {
1633
1655
  "location": "import",
1634
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1656
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1635
1657
  }
1636
1658
  }
1637
1659
  }
@@ -1651,7 +1673,7 @@ export class GlobalNav {
1651
1673
  "references": {
1652
1674
  "AlgoliaNetworkError": {
1653
1675
  "location": "import",
1654
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1676
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1655
1677
  }
1656
1678
  }
1657
1679
  }
@@ -1671,7 +1693,7 @@ export class GlobalNav {
1671
1693
  "references": {
1672
1694
  "AloliaSearchResultDetail": {
1673
1695
  "location": "import",
1674
- "path": "/builds/zfg2rJd-/0/Digital/nano-components/packages/components/src/interface.d.ts"
1696
+ "path": "/builds/RxH386Vg/0/Digital/nano-components/packages/components/src/interface.d.ts"
1675
1697
  }
1676
1698
  }
1677
1699
  }
@@ -1696,6 +1718,12 @@ export class GlobalNav {
1696
1718
  }; }
1697
1719
  static get elementRef() { return "el"; }
1698
1720
  static get watchers() { return [{
1721
+ "propName": "env",
1722
+ "methodName": "getMyAccData"
1723
+ }, {
1724
+ "propName": "ssoDataUrl",
1725
+ "methodName": "getMyAccData"
1726
+ }, {
1699
1727
  "propName": "searchIndex",
1700
1728
  "methodName": "currentSelectedIndex"
1701
1729
  }, {