@mintplayer/ng-bootstrap 22.18.0 → 22.20.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 (133) hide show
  1. package/_bootstrap.scss +10 -0
  2. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -0
  3. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +6 -3
  5. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +9 -11
  7. package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +2 -4
  9. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -1
  11. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +36 -56
  13. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +10 -18
  15. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +13 -24
  17. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +6 -15
  19. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -7
  21. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +17 -6
  23. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +47 -50
  25. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +8 -5
  27. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +265 -62
  29. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +2 -4
  31. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +2 -4
  33. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +4 -2
  35. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +21 -7
  37. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +19 -14
  39. package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +15 -12
  41. package/fesm2022/mintplayer-ng-bootstrap-enum.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -3
  43. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +16 -6
  45. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +21 -4
  47. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +26 -10
  49. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -1
  51. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +2 -4
  53. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -11
  55. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +73 -67
  57. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -16
  59. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +11 -22
  61. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -4
  63. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +188 -249
  65. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +64 -146
  67. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +37 -30
  69. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -25
  71. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +2 -4
  73. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +6 -6
  77. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +150 -83
  79. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +3 -0
  81. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +46 -44
  83. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +2 -4
  85. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +63 -89
  87. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +6 -14
  89. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +25 -56
  91. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +1 -0
  93. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +47 -58
  95. package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -1
  96. package/package.json +2 -2
  97. package/types/mintplayer-ng-bootstrap-alert.d.ts +3 -1
  98. package/types/mintplayer-ng-bootstrap-button-type.d.ts +6 -6
  99. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -1
  100. package/types/mintplayer-ng-bootstrap-carousel.d.ts +0 -1
  101. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +1 -1
  102. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +1 -1
  103. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +1 -1
  104. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +9 -3
  105. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +8 -10
  106. package/types/mintplayer-ng-bootstrap-copy.d.ts +3 -1
  107. package/types/mintplayer-ng-bootstrap-datatable.d.ts +155 -11
  108. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
  109. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
  110. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +3 -1
  111. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +3 -0
  112. package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +6 -1
  113. package/types/mintplayer-ng-bootstrap-enum.d.ts +17 -4
  114. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +2 -3
  115. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +7 -1
  116. package/types/mintplayer-ng-bootstrap-modal.d.ts +9 -1
  117. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +10 -1
  118. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
  119. package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -1
  120. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +1 -1
  121. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +2 -3
  122. package/types/mintplayer-ng-bootstrap-resizable.d.ts +65 -31
  123. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +27 -21
  124. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +18 -2
  125. package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
  126. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +2 -2
  127. package/types/mintplayer-ng-bootstrap-theming.d.ts +86 -54
  128. package/types/mintplayer-ng-bootstrap-timeline.d.ts +27 -5
  129. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
  130. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +18 -17
  131. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +3 -4
  132. package/types/mintplayer-ng-bootstrap-treeview.d.ts +4 -4
  133. package/types/mintplayer-ng-bootstrap-user-agent.d.ts +13 -4
@@ -1,4 +1,4 @@
1
- import { isPlatformServer, NgTemplateOutlet } from '@angular/common';
1
+ import { NgTemplateOutlet, isPlatformServer } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, TemplateRef, Directive, ElementRef, signal, computed, input, contentChild, ChangeDetectionStrategy, Component, PLATFORM_ID, contentChildren, effect, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
4
4
  import { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';
@@ -36,11 +36,11 @@ class BsTabPageComponent {
36
36
  ...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
37
37
  }
38
38
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabPageComponent, isStandalone: true, selector: "bs-tab-page", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.slot": "contentSlotName()", "attr.data-disabled": "disabled() ? \"\" : null" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: BsTabPageHeaderDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@if (tabControl.isServerSide) {\n\t<!-- region, not tabpanel: the no-JS tier ships no role=\"tab\" (a static\n\t aria-selected would go stale), and a tabpanel without a tab is an\n\t orphan. The label id still names the region. -->\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"region\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\">\n\t\t<ng-content></ng-content>\n\t</div>\n} @else {\n\t<ng-content></ng-content>\n}\n", styles: [".tab-page-content{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabPageComponent, isStandalone: true, selector: "bs-tab-page", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.slot": "contentSlotName()", "attr.data-disabled": "disabled() ? \"\" : null" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: BsTabPageHeaderDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- One ng-content for both branches (see bs-tab-control): Angular projects into the last. -->\n<ng-template #content><ng-content></ng-content></ng-template>\n\n@if (tabControl.isServerSide) {\n\t<!-- region, not tabpanel: the no-JS tier ships no role=\"tab\" (a static\n\t aria-selected would go stale), and a tabpanel without a tab is an\n\t orphan. The label id still names the region. -->\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"region\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\">\n\t\t<ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n\t</div>\n} @else {\n\t<ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n}\n", styles: [".tab-page-content{display:none}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
40
  }
41
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageComponent, decorators: [{
42
42
  type: Component,
43
- args: [{ selector: 'bs-tab-page', changeDetection: ChangeDetectionStrategy.OnPush, host: {
43
+ args: [{ selector: 'bs-tab-page', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, host: {
44
44
  // Used by <mp-tab-control> to project the active page into its content slot.
45
45
  '[attr.slot]': 'contentSlotName()',
46
46
  // Tells <mp-tab-control> the tab is disabled without inspecting child types.
@@ -50,7 +50,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
50
50
  // second tabpanel on this host announced every page twice and its id
51
51
  // duplicated an IDREF target. The SSR branch renders its own region
52
52
  // inside the template instead.
53
- }, template: "@if (tabControl.isServerSide) {\n\t<!-- region, not tabpanel: the no-JS tier ships no role=\"tab\" (a static\n\t aria-selected would go stale), and a tabpanel without a tab is an\n\t orphan. The label id still names the region. -->\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"region\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\">\n\t\t<ng-content></ng-content>\n\t</div>\n} @else {\n\t<ng-content></ng-content>\n}\n", styles: [".tab-page-content{display:none}\n"] }]
53
+ }, template: "<!-- One ng-content for both branches (see bs-tab-control): Angular projects into the last. -->\n<ng-template #content><ng-content></ng-content></ng-template>\n\n@if (tabControl.isServerSide) {\n\t<!-- region, not tabpanel: the no-JS tier ships no role=\"tab\" (a static\n\t aria-selected would go stale), and a tabpanel without a tab is an\n\t orphan. The label id still names the region. -->\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"region\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\">\n\t\t<ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n\t</div>\n} @else {\n\t<ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n}\n", styles: [".tab-page-content{display:none}\n"] }]
54
54
  }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTabPageHeaderDirective), { isSignal: true }] }] } });
55
55
 
56
56
  class BsTabControlComponent {
@@ -122,7 +122,7 @@ class BsTabControlComponent {
122
122
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
123
123
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabControlComponent, isStandalone: true, selector: "bs-tab-control", inputs: { border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, selectFirstTab: { classPropertyName: "selectFirstTab", publicName: "selectFirstTab", isSignal: true, isRequired: false, transformFunction: null }, tabsPosition: { classPropertyName: "tabsPosition", publicName: "tabsPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "d-block position-relative" }, providers: [
124
124
  { provide: 'TAB_CONTROL', useExisting: BsTabControlComponent }
125
- ], queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent, isSignal: true }], ngImport: i0, template: "@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<!-- The radio IS the control: clipped (not display:none) so Tab reaches\n\t\t it, and the native radio group gives arrow-key switching, a live\n\t\t checked state and the label's text as its name \u2014 all with no script\n\t\t and nothing that can go stale (PRD 11a). -->\n\t\t<input type=\"radio\" class=\"tab-radio\" bsNoNoscript\n\t\t\t[name]=\"tabControlName()\"\n\t\t\t[id]=\"tab.tabName()\"\n\t\t\t[checked]=\"checkedTab() === tab\"\n\t\t\t[disabled]=\"tab.disabled()\"\n\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\">\n\t}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<!-- No role=\"tab\"/aria-selected here: with no script to update them a\n\t\t static aria-selected would lie after the first switch. The labels\n\t\t are the radios' visual skin and accessible name; the radios carry\n\t\t the live selection state natively. -->\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\">\n\t\t\t@for (tab of tabPages(); track tab) {\n\t\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t[for]=\"tab.tabName()\"\n\t\t\t\t\t\t\t[id]=\"tab.tabName() + '-header'\"\n\t\t\t\t\t\t\tclass=\"nav-link text-nowrap\"\n\t\t\t\t\t\t\t[class.active]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[class.disabled]=\"tab.disabled()\">\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t}\n\t\t</ul>\n\t</ng-template>\n\t@if (topTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n\t<div class=\"tab-content flex-grow-1 overflow-auto\" bsNoNoscript [class.border]=\"border() && activeTabValue\" [class.border-top]=\"border() && !activeTabValue\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t@if (bottomTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc bottom-tabs\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n} @else {\n\t<mp-tab-control #wc\n\t\t[attr.tabs-position]=\"tabsPosition()\"\n\t\t[attr.border]=\"border() ? null : 'false'\"\n\t\t[attr.active-tab]=\"activeTabName()\"\n\t\t[attr.select-first-tab]=\"selectFirstTab() ? null : 'false'\"\n\t\t(tab-activate)=\"onTabActivate($event)\">\n\t\t@for (tab of tabPages(); track tab) {\n\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t<span [attr.slot]=\"tab.tabName() + '-header'\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t\t<ng-content></ng-content>\n\t</mp-tab-control>\n}\n", styles: [":host ::ng-deep .nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}:host ::ng-deep .nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .nav-link{transition:none}}:host ::ng-deep .nav-link:hover,:host ::ng-deep .nav-link:focus{color:var(--bs-nav-link-hover-color)}:host ::ng-deep .nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}:host ::ng-deep .nav-link.disabled,:host ::ng-deep .nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}:host ::ng-deep .nav-tabs{--bs-nav-tabs-border-width: var(--bs-border-width);--bs-nav-tabs-border-color: var(--bs-border-color);--bs-nav-tabs-border-radius: var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color: var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg: var(--bs-body-bg);--bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}:host ::ng-deep .nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}:host ::ng-deep .nav-tabs .nav-link:hover,:host ::ng-deep .nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}:host ::ng-deep .nav-tabs .nav-link.active,:host ::ng-deep .nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host ::ng-deep .nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}:host ::ng-deep .nav-pills{--bs-nav-pills-border-radius: var(--bs-border-radius);--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #0d6efd}:host ::ng-deep .nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}:host ::ng-deep .nav-pills .nav-link.active,:host ::ng-deep .nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}:host ::ng-deep .nav-underline{--bs-nav-underline-gap: 1rem;--bs-nav-underline-border-width: .125rem;--bs-nav-underline-link-active-color: var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}:host ::ng-deep .nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}:host ::ng-deep .nav-underline .nav-link:hover,:host ::ng-deep .nav-underline .nav-link:focus{border-bottom-color:currentcolor}:host ::ng-deep .nav-underline .nav-link.active,:host ::ng-deep .nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}:host ::ng-deep .nav-fill>.nav-link,:host ::ng-deep .nav-fill .nav-item{flex:1 1 auto;text-align:center}:host ::ng-deep .nav-justified>.nav-link,:host ::ng-deep .nav-justified .nav-item{flex-grow:1;flex-basis:0;text-align:center}:host ::ng-deep .nav-fill .nav-item .nav-link,:host ::ng-deep .nav-justified .nav-item .nav-link{width:100%}:host ::ng-deep .tab-content>.tab-pane{display:none}:host ::ng-deep .tab-content>.active{display:block}:host ::ng-deep .tab-content{margin-top:-1px}.tsc{max-height:41px;top:2px;z-index:10;flex-shrink:0}.tsc .nav.nav-tabs{border-bottom:0}.tsc.bottom-tabs{margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs{border-bottom-width:0px}.tsc.bottom-tabs .nav.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.tsc.bottom-tabs .nav.nav-tabs .nav-item{margin-bottom:2px;margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs .nav-item.show .nav-link,.tsc.bottom-tabs .nav.nav-tabs .nav-link.active{border-color:var(--bs-body-bg) var(--bs-border-color) var(--bs-border-color) var(--bs-border-color)}.tab-content.noscript::ng-deep>bs-tab-page>.tab-page-content{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;margin-top:-1px}.overflow-y-hidden{overflow-y:hidden}.tsc .nav-link{cursor:pointer}input.tab-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host input.noscript:nth-of-type(1):checked~.tsc .nav-item:nth-child(1)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(1):focus-visible~.tsc .nav-item:nth-child(1)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(2):checked~.tsc .nav-item:nth-child(2)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(2):focus-visible~.tsc .nav-item:nth-child(2)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(3):checked~.tsc .nav-item:nth-child(3)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(3):focus-visible~.tsc .nav-item:nth-child(3)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(4):checked~.tsc .nav-item:nth-child(4)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(4):focus-visible~.tsc .nav-item:nth-child(4)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(5):checked~.tsc .nav-item:nth-child(5)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(5):focus-visible~.tsc .nav-item:nth-child(5)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(6):checked~.tsc .nav-item:nth-child(6)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(6):focus-visible~.tsc .nav-item:nth-child(6)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(7):checked~.tsc .nav-item:nth-child(7)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(7):focus-visible~.tsc .nav-item:nth-child(7)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(8):checked~.tsc .nav-item:nth-child(8)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(8):focus-visible~.tsc .nav-item:nth-child(8)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(9):checked~.tsc .nav-item:nth-child(9)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(9):focus-visible~.tsc .nav-item:nth-child(9)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(10):checked~.tsc .nav-item:nth-child(10)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(10):focus-visible~.tsc .nav-item:nth-child(10)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(11):checked~.tsc .nav-item:nth-child(11)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(11):focus-visible~.tsc .nav-item:nth-child(11)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(12):checked~.tsc .nav-item:nth-child(12)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(12):focus-visible~.tsc .nav-item:nth-child(12)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(13):checked~.tsc .nav-item:nth-child(13)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(13):focus-visible~.tsc .nav-item:nth-child(13)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(14):checked~.tsc .nav-item:nth-child(14)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(14):focus-visible~.tsc .nav-item:nth-child(14)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(15):checked~.tsc .nav-item:nth-child(15)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(15):focus-visible~.tsc .nav-item:nth-child(15)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(16):checked~.tsc .nav-item:nth-child(16)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(16):focus-visible~.tsc .nav-item:nth-child(16)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(17):checked~.tsc .nav-item:nth-child(17)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(17):focus-visible~.tsc .nav-item:nth-child(17)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(18):checked~.tsc .nav-item:nth-child(18)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(18):focus-visible~.tsc .nav-item:nth-child(18)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(19):checked~.tsc .nav-item:nth-child(19)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(19):focus-visible~.tsc .nav-item:nth-child(19)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(20):checked~.tsc .nav-item:nth-child(20)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(20):focus-visible~.tsc .nav-item:nth-child(20)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host ::ng-deep input.noscript:nth-of-type(1):checked~.tab-content>bs-tab-page:nth-child(1)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(2):checked~.tab-content>bs-tab-page:nth-child(2)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(3):checked~.tab-content>bs-tab-page:nth-child(3)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(4):checked~.tab-content>bs-tab-page:nth-child(4)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(5):checked~.tab-content>bs-tab-page:nth-child(5)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(6):checked~.tab-content>bs-tab-page:nth-child(6)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(7):checked~.tab-content>bs-tab-page:nth-child(7)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(8):checked~.tab-content>bs-tab-page:nth-child(8)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(9):checked~.tab-content>bs-tab-page:nth-child(9)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(10):checked~.tab-content>bs-tab-page:nth-child(10)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(11):checked~.tab-content>bs-tab-page:nth-child(11)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(12):checked~.tab-content>bs-tab-page:nth-child(12)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(13):checked~.tab-content>bs-tab-page:nth-child(13)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(14):checked~.tab-content>bs-tab-page:nth-child(14)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(15):checked~.tab-content>bs-tab-page:nth-child(15)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(16):checked~.tab-content>bs-tab-page:nth-child(16)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(17):checked~.tab-content>bs-tab-page:nth-child(17)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(18):checked~.tab-content>bs-tab-page:nth-child(18)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(19):checked~.tab-content>bs-tab-page:nth-child(19)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(20):checked~.tab-content>bs-tab-page:nth-child(20)>.tab-page-content{display:block}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsNoNoscriptDirective, selector: "[bsNoNoscript]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
125
+ ], queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent, isSignal: true }], ngImport: i0, template: "<!-- One ng-content, shared by both branches: with an ng-content in each, Angular projects\n into the LAST one only, so the server branch rendered no pages at all. -->\n<ng-template #pages><ng-content></ng-content></ng-template>\n\n@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<!-- The radio IS the control: clipped (not display:none) so Tab reaches\n\t\t it, and the native radio group gives arrow-key switching, a live\n\t\t checked state and the label's text as its name \u2014 all with no script\n\t\t and nothing that can go stale (PRD 11a). -->\n\t\t<input type=\"radio\" class=\"tab-radio\" bsNoNoscript\n\t\t\t[name]=\"tabControlName()\"\n\t\t\t[id]=\"tab.tabName()\"\n\t\t\t[checked]=\"checkedTab() === tab\"\n\t\t\t[disabled]=\"tab.disabled()\"\n\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\">\n\t}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<!-- No role=\"tab\"/aria-selected here: with no script to update them a\n\t\t static aria-selected would lie after the first switch. The labels\n\t\t are the radios' visual skin and accessible name; the radios carry\n\t\t the live selection state natively. -->\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\">\n\t\t\t@for (tab of tabPages(); track tab) {\n\t\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t[for]=\"tab.tabName()\"\n\t\t\t\t\t\t\t[id]=\"tab.tabName() + '-header'\"\n\t\t\t\t\t\t\tclass=\"nav-link text-nowrap\"\n\t\t\t\t\t\t\t[class.active]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[class.disabled]=\"tab.disabled()\">\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t}\n\t\t</ul>\n\t</ng-template>\n\t@if (topTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n\t<div class=\"tab-content flex-grow-1 overflow-auto\" bsNoNoscript [class.border]=\"border() && activeTabValue\" [class.border-top]=\"border() && !activeTabValue\">\n\t\t<ng-container [ngTemplateOutlet]=\"pages\"></ng-container>\n\t</div>\n\t@if (bottomTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc bottom-tabs\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n} @else {\n\t<mp-tab-control #wc\n\t\t[attr.tabs-position]=\"tabsPosition()\"\n\t\t[attr.border]=\"border() ? null : 'false'\"\n\t\t[attr.active-tab]=\"activeTabName()\"\n\t\t[attr.select-first-tab]=\"selectFirstTab() ? null : 'false'\"\n\t\t(tab-activate)=\"onTabActivate($event)\">\n\t\t@for (tab of tabPages(); track tab) {\n\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t<span [attr.slot]=\"tab.tabName() + '-header'\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t\t<ng-container [ngTemplateOutlet]=\"pages\"></ng-container>\n\t</mp-tab-control>\n}\n", styles: [":host ::ng-deep .nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}:host ::ng-deep .nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .nav-link{transition:none}}:host ::ng-deep .nav-link:hover,:host ::ng-deep .nav-link:focus{color:var(--bs-nav-link-hover-color)}:host ::ng-deep .nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}:host ::ng-deep .nav-link.disabled,:host ::ng-deep .nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}:host ::ng-deep .nav-tabs{--bs-nav-tabs-border-width: var(--bs-border-width);--bs-nav-tabs-border-color: var(--bs-border-color);--bs-nav-tabs-border-radius: var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color: var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg: var(--bs-body-bg);--bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}:host ::ng-deep .nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}:host ::ng-deep .nav-tabs .nav-link:hover,:host ::ng-deep .nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}:host ::ng-deep .nav-tabs .nav-link.active,:host ::ng-deep .nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host ::ng-deep .nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}:host ::ng-deep .nav-pills{--bs-nav-pills-border-radius: var(--bs-border-radius);--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #0d6efd}:host ::ng-deep .nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}:host ::ng-deep .nav-pills .nav-link.active,:host ::ng-deep .nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}:host ::ng-deep .nav-underline{--bs-nav-underline-gap: 1rem;--bs-nav-underline-border-width: .125rem;--bs-nav-underline-link-active-color: var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}:host ::ng-deep .nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}:host ::ng-deep .nav-underline .nav-link:hover,:host ::ng-deep .nav-underline .nav-link:focus{border-bottom-color:currentcolor}:host ::ng-deep .nav-underline .nav-link.active,:host ::ng-deep .nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}:host ::ng-deep .nav-fill>.nav-link,:host ::ng-deep .nav-fill .nav-item{flex:1 1 auto;text-align:center}:host ::ng-deep .nav-justified>.nav-link,:host ::ng-deep .nav-justified .nav-item{flex-grow:1;flex-basis:0;text-align:center}:host ::ng-deep .nav-fill .nav-item .nav-link,:host ::ng-deep .nav-justified .nav-item .nav-link{width:100%}:host ::ng-deep .tab-content>.tab-pane{display:none}:host ::ng-deep .tab-content>.active{display:block}:host ::ng-deep .tab-content{margin-top:-1px}.tsc{max-height:41px;top:2px;z-index:10;flex-shrink:0}.tsc .nav.nav-tabs{border-bottom:0}.tsc.bottom-tabs{margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs{border-bottom-width:0px}.tsc.bottom-tabs .nav.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.tsc.bottom-tabs .nav.nav-tabs .nav-item{margin-bottom:2px;margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs .nav-item.show .nav-link,.tsc.bottom-tabs .nav.nav-tabs .nav-link.active{border-color:var(--bs-body-bg) var(--bs-border-color) var(--bs-border-color) var(--bs-border-color)}.tab-content.noscript::ng-deep>bs-tab-page>.tab-page-content{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;margin-top:-1px}.overflow-y-hidden{overflow-y:hidden}.tsc .nav-link{cursor:pointer}input.tab-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host input.noscript:nth-of-type(1):checked~.tsc .nav-item:nth-child(1)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(1):focus-visible~.tsc .nav-item:nth-child(1)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(2):checked~.tsc .nav-item:nth-child(2)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(2):focus-visible~.tsc .nav-item:nth-child(2)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(3):checked~.tsc .nav-item:nth-child(3)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(3):focus-visible~.tsc .nav-item:nth-child(3)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(4):checked~.tsc .nav-item:nth-child(4)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(4):focus-visible~.tsc .nav-item:nth-child(4)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(5):checked~.tsc .nav-item:nth-child(5)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(5):focus-visible~.tsc .nav-item:nth-child(5)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(6):checked~.tsc .nav-item:nth-child(6)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(6):focus-visible~.tsc .nav-item:nth-child(6)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(7):checked~.tsc .nav-item:nth-child(7)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(7):focus-visible~.tsc .nav-item:nth-child(7)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(8):checked~.tsc .nav-item:nth-child(8)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(8):focus-visible~.tsc .nav-item:nth-child(8)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(9):checked~.tsc .nav-item:nth-child(9)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(9):focus-visible~.tsc .nav-item:nth-child(9)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(10):checked~.tsc .nav-item:nth-child(10)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(10):focus-visible~.tsc .nav-item:nth-child(10)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(11):checked~.tsc .nav-item:nth-child(11)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(11):focus-visible~.tsc .nav-item:nth-child(11)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(12):checked~.tsc .nav-item:nth-child(12)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(12):focus-visible~.tsc .nav-item:nth-child(12)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(13):checked~.tsc .nav-item:nth-child(13)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(13):focus-visible~.tsc .nav-item:nth-child(13)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(14):checked~.tsc .nav-item:nth-child(14)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(14):focus-visible~.tsc .nav-item:nth-child(14)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(15):checked~.tsc .nav-item:nth-child(15)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(15):focus-visible~.tsc .nav-item:nth-child(15)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(16):checked~.tsc .nav-item:nth-child(16)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(16):focus-visible~.tsc .nav-item:nth-child(16)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(17):checked~.tsc .nav-item:nth-child(17)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(17):focus-visible~.tsc .nav-item:nth-child(17)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(18):checked~.tsc .nav-item:nth-child(18)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(18):focus-visible~.tsc .nav-item:nth-child(18)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(19):checked~.tsc .nav-item:nth-child(19)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(19):focus-visible~.tsc .nav-item:nth-child(19)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(20):checked~.tsc .nav-item:nth-child(20)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(20):focus-visible~.tsc .nav-item:nth-child(20)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host ::ng-deep input.noscript:nth-of-type(1):checked~.tab-content>bs-tab-page:nth-child(1)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(2):checked~.tab-content>bs-tab-page:nth-child(2)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(3):checked~.tab-content>bs-tab-page:nth-child(3)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(4):checked~.tab-content>bs-tab-page:nth-child(4)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(5):checked~.tab-content>bs-tab-page:nth-child(5)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(6):checked~.tab-content>bs-tab-page:nth-child(6)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(7):checked~.tab-content>bs-tab-page:nth-child(7)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(8):checked~.tab-content>bs-tab-page:nth-child(8)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(9):checked~.tab-content>bs-tab-page:nth-child(9)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(10):checked~.tab-content>bs-tab-page:nth-child(10)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(11):checked~.tab-content>bs-tab-page:nth-child(11)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(12):checked~.tab-content>bs-tab-page:nth-child(12)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(13):checked~.tab-content>bs-tab-page:nth-child(13)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(14):checked~.tab-content>bs-tab-page:nth-child(14)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(15):checked~.tab-content>bs-tab-page:nth-child(15)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(16):checked~.tab-content>bs-tab-page:nth-child(16)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(17):checked~.tab-content>bs-tab-page:nth-child(17)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(18):checked~.tab-content>bs-tab-page:nth-child(18)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(19):checked~.tab-content>bs-tab-page:nth-child(19)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(20):checked~.tab-content>bs-tab-page:nth-child(20)>.tab-page-content{display:block}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsNoNoscriptDirective, selector: "[bsNoNoscript]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
126
126
  }
127
127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabControlComponent, decorators: [{
128
128
  type: Component,
@@ -130,7 +130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
130
130
  { provide: 'TAB_CONTROL', useExisting: BsTabControlComponent }
131
131
  ], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], host: {
132
132
  'class': 'd-block position-relative',
133
- }, template: "@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<!-- The radio IS the control: clipped (not display:none) so Tab reaches\n\t\t it, and the native radio group gives arrow-key switching, a live\n\t\t checked state and the label's text as its name \u2014 all with no script\n\t\t and nothing that can go stale (PRD 11a). -->\n\t\t<input type=\"radio\" class=\"tab-radio\" bsNoNoscript\n\t\t\t[name]=\"tabControlName()\"\n\t\t\t[id]=\"tab.tabName()\"\n\t\t\t[checked]=\"checkedTab() === tab\"\n\t\t\t[disabled]=\"tab.disabled()\"\n\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\">\n\t}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<!-- No role=\"tab\"/aria-selected here: with no script to update them a\n\t\t static aria-selected would lie after the first switch. The labels\n\t\t are the radios' visual skin and accessible name; the radios carry\n\t\t the live selection state natively. -->\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\">\n\t\t\t@for (tab of tabPages(); track tab) {\n\t\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t[for]=\"tab.tabName()\"\n\t\t\t\t\t\t\t[id]=\"tab.tabName() + '-header'\"\n\t\t\t\t\t\t\tclass=\"nav-link text-nowrap\"\n\t\t\t\t\t\t\t[class.active]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[class.disabled]=\"tab.disabled()\">\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t}\n\t\t</ul>\n\t</ng-template>\n\t@if (topTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n\t<div class=\"tab-content flex-grow-1 overflow-auto\" bsNoNoscript [class.border]=\"border() && activeTabValue\" [class.border-top]=\"border() && !activeTabValue\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t@if (bottomTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc bottom-tabs\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n} @else {\n\t<mp-tab-control #wc\n\t\t[attr.tabs-position]=\"tabsPosition()\"\n\t\t[attr.border]=\"border() ? null : 'false'\"\n\t\t[attr.active-tab]=\"activeTabName()\"\n\t\t[attr.select-first-tab]=\"selectFirstTab() ? null : 'false'\"\n\t\t(tab-activate)=\"onTabActivate($event)\">\n\t\t@for (tab of tabPages(); track tab) {\n\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t<span [attr.slot]=\"tab.tabName() + '-header'\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t\t<ng-content></ng-content>\n\t</mp-tab-control>\n}\n", styles: [":host ::ng-deep .nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}:host ::ng-deep .nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .nav-link{transition:none}}:host ::ng-deep .nav-link:hover,:host ::ng-deep .nav-link:focus{color:var(--bs-nav-link-hover-color)}:host ::ng-deep .nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}:host ::ng-deep .nav-link.disabled,:host ::ng-deep .nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}:host ::ng-deep .nav-tabs{--bs-nav-tabs-border-width: var(--bs-border-width);--bs-nav-tabs-border-color: var(--bs-border-color);--bs-nav-tabs-border-radius: var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color: var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg: var(--bs-body-bg);--bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}:host ::ng-deep .nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}:host ::ng-deep .nav-tabs .nav-link:hover,:host ::ng-deep .nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}:host ::ng-deep .nav-tabs .nav-link.active,:host ::ng-deep .nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host ::ng-deep .nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}:host ::ng-deep .nav-pills{--bs-nav-pills-border-radius: var(--bs-border-radius);--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #0d6efd}:host ::ng-deep .nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}:host ::ng-deep .nav-pills .nav-link.active,:host ::ng-deep .nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}:host ::ng-deep .nav-underline{--bs-nav-underline-gap: 1rem;--bs-nav-underline-border-width: .125rem;--bs-nav-underline-link-active-color: var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}:host ::ng-deep .nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}:host ::ng-deep .nav-underline .nav-link:hover,:host ::ng-deep .nav-underline .nav-link:focus{border-bottom-color:currentcolor}:host ::ng-deep .nav-underline .nav-link.active,:host ::ng-deep .nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}:host ::ng-deep .nav-fill>.nav-link,:host ::ng-deep .nav-fill .nav-item{flex:1 1 auto;text-align:center}:host ::ng-deep .nav-justified>.nav-link,:host ::ng-deep .nav-justified .nav-item{flex-grow:1;flex-basis:0;text-align:center}:host ::ng-deep .nav-fill .nav-item .nav-link,:host ::ng-deep .nav-justified .nav-item .nav-link{width:100%}:host ::ng-deep .tab-content>.tab-pane{display:none}:host ::ng-deep .tab-content>.active{display:block}:host ::ng-deep .tab-content{margin-top:-1px}.tsc{max-height:41px;top:2px;z-index:10;flex-shrink:0}.tsc .nav.nav-tabs{border-bottom:0}.tsc.bottom-tabs{margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs{border-bottom-width:0px}.tsc.bottom-tabs .nav.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.tsc.bottom-tabs .nav.nav-tabs .nav-item{margin-bottom:2px;margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs .nav-item.show .nav-link,.tsc.bottom-tabs .nav.nav-tabs .nav-link.active{border-color:var(--bs-body-bg) var(--bs-border-color) var(--bs-border-color) var(--bs-border-color)}.tab-content.noscript::ng-deep>bs-tab-page>.tab-page-content{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;margin-top:-1px}.overflow-y-hidden{overflow-y:hidden}.tsc .nav-link{cursor:pointer}input.tab-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host input.noscript:nth-of-type(1):checked~.tsc .nav-item:nth-child(1)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(1):focus-visible~.tsc .nav-item:nth-child(1)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(2):checked~.tsc .nav-item:nth-child(2)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(2):focus-visible~.tsc .nav-item:nth-child(2)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(3):checked~.tsc .nav-item:nth-child(3)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(3):focus-visible~.tsc .nav-item:nth-child(3)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(4):checked~.tsc .nav-item:nth-child(4)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(4):focus-visible~.tsc .nav-item:nth-child(4)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(5):checked~.tsc .nav-item:nth-child(5)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(5):focus-visible~.tsc .nav-item:nth-child(5)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(6):checked~.tsc .nav-item:nth-child(6)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(6):focus-visible~.tsc .nav-item:nth-child(6)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(7):checked~.tsc .nav-item:nth-child(7)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(7):focus-visible~.tsc .nav-item:nth-child(7)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(8):checked~.tsc .nav-item:nth-child(8)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(8):focus-visible~.tsc .nav-item:nth-child(8)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(9):checked~.tsc .nav-item:nth-child(9)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(9):focus-visible~.tsc .nav-item:nth-child(9)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(10):checked~.tsc .nav-item:nth-child(10)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(10):focus-visible~.tsc .nav-item:nth-child(10)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(11):checked~.tsc .nav-item:nth-child(11)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(11):focus-visible~.tsc .nav-item:nth-child(11)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(12):checked~.tsc .nav-item:nth-child(12)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(12):focus-visible~.tsc .nav-item:nth-child(12)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(13):checked~.tsc .nav-item:nth-child(13)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(13):focus-visible~.tsc .nav-item:nth-child(13)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(14):checked~.tsc .nav-item:nth-child(14)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(14):focus-visible~.tsc .nav-item:nth-child(14)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(15):checked~.tsc .nav-item:nth-child(15)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(15):focus-visible~.tsc .nav-item:nth-child(15)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(16):checked~.tsc .nav-item:nth-child(16)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(16):focus-visible~.tsc .nav-item:nth-child(16)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(17):checked~.tsc .nav-item:nth-child(17)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(17):focus-visible~.tsc .nav-item:nth-child(17)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(18):checked~.tsc .nav-item:nth-child(18)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(18):focus-visible~.tsc .nav-item:nth-child(18)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(19):checked~.tsc .nav-item:nth-child(19)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(19):focus-visible~.tsc .nav-item:nth-child(19)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(20):checked~.tsc .nav-item:nth-child(20)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(20):focus-visible~.tsc .nav-item:nth-child(20)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host ::ng-deep input.noscript:nth-of-type(1):checked~.tab-content>bs-tab-page:nth-child(1)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(2):checked~.tab-content>bs-tab-page:nth-child(2)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(3):checked~.tab-content>bs-tab-page:nth-child(3)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(4):checked~.tab-content>bs-tab-page:nth-child(4)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(5):checked~.tab-content>bs-tab-page:nth-child(5)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(6):checked~.tab-content>bs-tab-page:nth-child(6)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(7):checked~.tab-content>bs-tab-page:nth-child(7)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(8):checked~.tab-content>bs-tab-page:nth-child(8)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(9):checked~.tab-content>bs-tab-page:nth-child(9)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(10):checked~.tab-content>bs-tab-page:nth-child(10)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(11):checked~.tab-content>bs-tab-page:nth-child(11)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(12):checked~.tab-content>bs-tab-page:nth-child(12)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(13):checked~.tab-content>bs-tab-page:nth-child(13)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(14):checked~.tab-content>bs-tab-page:nth-child(14)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(15):checked~.tab-content>bs-tab-page:nth-child(15)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(16):checked~.tab-content>bs-tab-page:nth-child(16)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(17):checked~.tab-content>bs-tab-page:nth-child(17)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(18):checked~.tab-content>bs-tab-page:nth-child(18)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(19):checked~.tab-content>bs-tab-page:nth-child(19)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(20):checked~.tab-content>bs-tab-page:nth-child(20)>.tab-page-content{display:block}\n"] }]
133
+ }, template: "<!-- One ng-content, shared by both branches: with an ng-content in each, Angular projects\n into the LAST one only, so the server branch rendered no pages at all. -->\n<ng-template #pages><ng-content></ng-content></ng-template>\n\n@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<!-- The radio IS the control: clipped (not display:none) so Tab reaches\n\t\t it, and the native radio group gives arrow-key switching, a live\n\t\t checked state and the label's text as its name \u2014 all with no script\n\t\t and nothing that can go stale (PRD 11a). -->\n\t\t<input type=\"radio\" class=\"tab-radio\" bsNoNoscript\n\t\t\t[name]=\"tabControlName()\"\n\t\t\t[id]=\"tab.tabName()\"\n\t\t\t[checked]=\"checkedTab() === tab\"\n\t\t\t[disabled]=\"tab.disabled()\"\n\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\">\n\t}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<!-- No role=\"tab\"/aria-selected here: with no script to update them a\n\t\t static aria-selected would lie after the first switch. The labels\n\t\t are the radios' visual skin and accessible name; the radios carry\n\t\t the live selection state natively. -->\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\">\n\t\t\t@for (tab of tabPages(); track tab) {\n\t\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t[for]=\"tab.tabName()\"\n\t\t\t\t\t\t\t[id]=\"tab.tabName() + '-header'\"\n\t\t\t\t\t\t\tclass=\"nav-link text-nowrap\"\n\t\t\t\t\t\t\t[class.active]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[class.disabled]=\"tab.disabled()\">\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t}\n\t\t</ul>\n\t</ng-template>\n\t@if (topTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n\t<div class=\"tab-content flex-grow-1 overflow-auto\" bsNoNoscript [class.border]=\"border() && activeTabValue\" [class.border-top]=\"border() && !activeTabValue\">\n\t\t<ng-container [ngTemplateOutlet]=\"pages\"></ng-container>\n\t</div>\n\t@if (bottomTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc bottom-tabs\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n} @else {\n\t<mp-tab-control #wc\n\t\t[attr.tabs-position]=\"tabsPosition()\"\n\t\t[attr.border]=\"border() ? null : 'false'\"\n\t\t[attr.active-tab]=\"activeTabName()\"\n\t\t[attr.select-first-tab]=\"selectFirstTab() ? null : 'false'\"\n\t\t(tab-activate)=\"onTabActivate($event)\">\n\t\t@for (tab of tabPages(); track tab) {\n\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t<span [attr.slot]=\"tab.tabName() + '-header'\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t\t<ng-container [ngTemplateOutlet]=\"pages\"></ng-container>\n\t</mp-tab-control>\n}\n", styles: [":host ::ng-deep .nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}:host ::ng-deep .nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .nav-link{transition:none}}:host ::ng-deep .nav-link:hover,:host ::ng-deep .nav-link:focus{color:var(--bs-nav-link-hover-color)}:host ::ng-deep .nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}:host ::ng-deep .nav-link.disabled,:host ::ng-deep .nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}:host ::ng-deep .nav-tabs{--bs-nav-tabs-border-width: var(--bs-border-width);--bs-nav-tabs-border-color: var(--bs-border-color);--bs-nav-tabs-border-radius: var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color: var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg: var(--bs-body-bg);--bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}:host ::ng-deep .nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}:host ::ng-deep .nav-tabs .nav-link:hover,:host ::ng-deep .nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}:host ::ng-deep .nav-tabs .nav-link.active,:host ::ng-deep .nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host ::ng-deep .nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}:host ::ng-deep .nav-pills{--bs-nav-pills-border-radius: var(--bs-border-radius);--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #0d6efd}:host ::ng-deep .nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}:host ::ng-deep .nav-pills .nav-link.active,:host ::ng-deep .nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}:host ::ng-deep .nav-underline{--bs-nav-underline-gap: 1rem;--bs-nav-underline-border-width: .125rem;--bs-nav-underline-link-active-color: var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}:host ::ng-deep .nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}:host ::ng-deep .nav-underline .nav-link:hover,:host ::ng-deep .nav-underline .nav-link:focus{border-bottom-color:currentcolor}:host ::ng-deep .nav-underline .nav-link.active,:host ::ng-deep .nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}:host ::ng-deep .nav-fill>.nav-link,:host ::ng-deep .nav-fill .nav-item{flex:1 1 auto;text-align:center}:host ::ng-deep .nav-justified>.nav-link,:host ::ng-deep .nav-justified .nav-item{flex-grow:1;flex-basis:0;text-align:center}:host ::ng-deep .nav-fill .nav-item .nav-link,:host ::ng-deep .nav-justified .nav-item .nav-link{width:100%}:host ::ng-deep .tab-content>.tab-pane{display:none}:host ::ng-deep .tab-content>.active{display:block}:host ::ng-deep .tab-content{margin-top:-1px}.tsc{max-height:41px;top:2px;z-index:10;flex-shrink:0}.tsc .nav.nav-tabs{border-bottom:0}.tsc.bottom-tabs{margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs{border-bottom-width:0px}.tsc.bottom-tabs .nav.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.tsc.bottom-tabs .nav.nav-tabs .nav-item{margin-bottom:2px;margin-top:-1px}.tsc.bottom-tabs .nav.nav-tabs .nav-item.show .nav-link,.tsc.bottom-tabs .nav.nav-tabs .nav-link.active{border-color:var(--bs-body-bg) var(--bs-border-color) var(--bs-border-color) var(--bs-border-color)}.tab-content.noscript::ng-deep>bs-tab-page>.tab-page-content{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;margin-top:-1px}.overflow-y-hidden{overflow-y:hidden}.tsc .nav-link{cursor:pointer}input.tab-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host input.noscript:nth-of-type(1):checked~.tsc .nav-item:nth-child(1)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(1):focus-visible~.tsc .nav-item:nth-child(1)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(2):checked~.tsc .nav-item:nth-child(2)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(2):focus-visible~.tsc .nav-item:nth-child(2)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(3):checked~.tsc .nav-item:nth-child(3)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(3):focus-visible~.tsc .nav-item:nth-child(3)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(4):checked~.tsc .nav-item:nth-child(4)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(4):focus-visible~.tsc .nav-item:nth-child(4)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(5):checked~.tsc .nav-item:nth-child(5)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(5):focus-visible~.tsc .nav-item:nth-child(5)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(6):checked~.tsc .nav-item:nth-child(6)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(6):focus-visible~.tsc .nav-item:nth-child(6)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(7):checked~.tsc .nav-item:nth-child(7)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(7):focus-visible~.tsc .nav-item:nth-child(7)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(8):checked~.tsc .nav-item:nth-child(8)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(8):focus-visible~.tsc .nav-item:nth-child(8)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(9):checked~.tsc .nav-item:nth-child(9)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(9):focus-visible~.tsc .nav-item:nth-child(9)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(10):checked~.tsc .nav-item:nth-child(10)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(10):focus-visible~.tsc .nav-item:nth-child(10)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(11):checked~.tsc .nav-item:nth-child(11)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(11):focus-visible~.tsc .nav-item:nth-child(11)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(12):checked~.tsc .nav-item:nth-child(12)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(12):focus-visible~.tsc .nav-item:nth-child(12)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(13):checked~.tsc .nav-item:nth-child(13)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(13):focus-visible~.tsc .nav-item:nth-child(13)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(14):checked~.tsc .nav-item:nth-child(14)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(14):focus-visible~.tsc .nav-item:nth-child(14)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(15):checked~.tsc .nav-item:nth-child(15)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(15):focus-visible~.tsc .nav-item:nth-child(15)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(16):checked~.tsc .nav-item:nth-child(16)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(16):focus-visible~.tsc .nav-item:nth-child(16)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(17):checked~.tsc .nav-item:nth-child(17)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(17):focus-visible~.tsc .nav-item:nth-child(17)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(18):checked~.tsc .nav-item:nth-child(18)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(18):focus-visible~.tsc .nav-item:nth-child(18)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(19):checked~.tsc .nav-item:nth-child(19)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(19):focus-visible~.tsc .nav-item:nth-child(19)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host input.noscript:nth-of-type(20):checked~.tsc .nav-item:nth-child(20)>.nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}:host input.noscript:nth-of-type(20):focus-visible~.tsc .nav-item:nth-child(20)>.nav-link{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:-2px}:host ::ng-deep input.noscript:nth-of-type(1):checked~.tab-content>bs-tab-page:nth-child(1)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(2):checked~.tab-content>bs-tab-page:nth-child(2)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(3):checked~.tab-content>bs-tab-page:nth-child(3)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(4):checked~.tab-content>bs-tab-page:nth-child(4)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(5):checked~.tab-content>bs-tab-page:nth-child(5)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(6):checked~.tab-content>bs-tab-page:nth-child(6)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(7):checked~.tab-content>bs-tab-page:nth-child(7)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(8):checked~.tab-content>bs-tab-page:nth-child(8)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(9):checked~.tab-content>bs-tab-page:nth-child(9)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(10):checked~.tab-content>bs-tab-page:nth-child(10)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(11):checked~.tab-content>bs-tab-page:nth-child(11)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(12):checked~.tab-content>bs-tab-page:nth-child(12)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(13):checked~.tab-content>bs-tab-page:nth-child(13)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(14):checked~.tab-content>bs-tab-page:nth-child(14)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(15):checked~.tab-content>bs-tab-page:nth-child(15)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(16):checked~.tab-content>bs-tab-page:nth-child(16)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(17):checked~.tab-content>bs-tab-page:nth-child(17)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(18):checked~.tab-content>bs-tab-page:nth-child(18)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(19):checked~.tab-content>bs-tab-page:nth-child(19)>.tab-page-content{display:block}:host ::ng-deep input.noscript:nth-of-type(20):checked~.tab-content>bs-tab-page:nth-child(20)>.tab-page-content{display:block}\n"] }]
134
134
  }], ctorParameters: () => [], propDecorators: { border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], selectFirstTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectFirstTab", required: false }] }], tabsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsPosition", required: false }] }], tabPages: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsTabPageComponent), { isSignal: true }] }] } });
135
135
 
136
136
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-tab-control.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page-header/tab-page-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[bsTabPageHeader]',\n})\nexport class BsTabPageHeaderDirective {\n template = inject(TemplateRef);\n}\n","import { ChangeDetectionStrategy, Component, contentChild, computed, inject, input, ElementRef, signal } from '@angular/core';\nimport { BsTabControlComponent } from '../tab-control/tab-control.component';\nimport { BsTabPageHeaderDirective } from '../tab-page-header/tab-page-header.directive';\n\n@Component({\n selector: 'bs-tab-page',\n templateUrl: './tab-page.component.html',\n styleUrls: ['./tab-page.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n // Used by <mp-tab-control> to project the active page into its content slot.\n '[attr.slot]': 'contentSlotName()',\n // Tells <mp-tab-control> the tab is disabled without inspecting child types.\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n // NO client-side ARIA here: <mp-tab-control> already renders the\n // role=tabpanel wrapper (with aria-labelledby) in its shadow root, so a\n // second tabpanel on this host announced every page twice and its id\n // duplicated an IDREF target. The SSR branch renders its own region\n // inside the template instead.\n },\n})\nexport class BsTabPageComponent {\n element = inject(ElementRef);\n tabControl = inject(BsTabControlComponent);\n\n constructor() {\n this.tabId = signal(++this.tabControl.tabCounter);\n }\n tabId = signal<number>(0);\n tabName = computed(() => `${this.tabControl.tabControlName()}-${this.tabId()}`);\n contentSlotName = computed(() =>\n this.tabControl.isServerSide ? null : `${this.tabName()}-content`,\n );\n\n disabled = input(false);\n readonly headerTemplate = contentChild(BsTabPageHeaderDirective);\n}\n","@if (tabControl.isServerSide) {\n\t<!-- region, not tabpanel: the no-JS tier ships no role=\"tab\" (a static\n\t aria-selected would go stale), and a tabpanel without a tab is an\n\t orphan. The label id still names the region. -->\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"region\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\">\n\t\t<ng-content></ng-content>\n\t</div>\n} @else {\n\t<ng-content></ng-content>\n}\n","import { isPlatformServer, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChildren, CUSTOM_ELEMENTS_SCHEMA, effect, ElementRef, inject, input, PLATFORM_ID, signal } from '@angular/core';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport '@mintplayer/web-components/tab-control';\nimport type { TabActivateEventDetail } from '@mintplayer/web-components/tab-control';\nimport { BsTabPageComponent } from '../tab-page/tab-page.component';\nimport { BsTabsPosition } from '../tabs-position';\n\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.component.html',\n styleUrls: ['./tab-control.component.scss'],\n imports: [NgTemplateOutlet, BsNoNoscriptDirective],\n providers: [\n { provide: 'TAB_CONTROL', useExisting: BsTabControlComponent }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n host: {\n 'class': 'd-block position-relative',\n },\n})\nexport class BsTabControlComponent {\n element = inject(ElementRef);\n private platformId = inject(PLATFORM_ID);\n\n readonly isServerSide = isPlatformServer(this.platformId);\n\n constructor() {\n this.tabControlId = signal(++BsTabControlComponent.tabControlCounter);\n\n effect(() => {\n const tabPages = this.tabPages();\n const activeTab = this.activeTab();\n const selectFirstTab = this.selectFirstTab();\n if (tabPages.length > 0 && (!activeTab || !tabPages.some(tp => tp === activeTab)) && selectFirstTab) {\n const notDisabled = tabPages.filter((tp) => !tp.disabled());\n if (notDisabled.length > 0) {\n setTimeout(() => this.activeTab.set(notDisabled[0]));\n }\n }\n });\n }\n\n border = input(true);\n selectFirstTab = input(true);\n tabsPosition = input<BsTabsPosition>('top');\n\n readonly tabPages = contentChildren(BsTabPageComponent);\n activeTab = signal<BsTabPageComponent | null>(null);\n tabControlId = signal<number>(0);\n tabControlName = computed(() => `bs-tab-control-${this.tabControlId()}`);\n topTabs = computed(() => this.tabsPosition() === 'top');\n bottomTabs = computed(() => this.tabsPosition() === 'bottom');\n checkedTab = computed(() => {\n const active = this.activeTab();\n if (active) return active;\n if (!this.selectFirstTab()) return null;\n return this.tabPages().find(t => !t.disabled()) ?? null;\n });\n // Stable string ID of the active tab, fed to <mp-tab-control [active-tab]>.\n activeTabName = computed(() => this.checkedTab()?.tabName() ?? null);\n static tabControlCounter = 0;\n tabCounter = 0;\n\n setActiveTab(tab: BsTabPageComponent, event?: Event) {\n event?.preventDefault();\n if (!tab.disabled()) {\n this.activeTab.set(tab);\n }\n return false;\n }\n\n onTabActivate(event: Event) {\n const ce = event as CustomEvent<TabActivateEventDetail>;\n const tabName = ce.detail.tabId;\n const tab = this.tabPages().find(tp => tp.tabName() === tabName);\n if (tab && !tab.disabled()) {\n this.activeTab.set(tab);\n }\n }\n}\n","@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<!-- The radio IS the control: clipped (not display:none) so Tab reaches\n\t\t it, and the native radio group gives arrow-key switching, a live\n\t\t checked state and the label's text as its name — all with no script\n\t\t and nothing that can go stale (PRD 11a). -->\n\t\t<input type=\"radio\" class=\"tab-radio\" bsNoNoscript\n\t\t\t[name]=\"tabControlName()\"\n\t\t\t[id]=\"tab.tabName()\"\n\t\t\t[checked]=\"checkedTab() === tab\"\n\t\t\t[disabled]=\"tab.disabled()\"\n\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\">\n\t}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<!-- No role=\"tab\"/aria-selected here: with no script to update them a\n\t\t static aria-selected would lie after the first switch. The labels\n\t\t are the radios' visual skin and accessible name; the radios carry\n\t\t the live selection state natively. -->\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\">\n\t\t\t@for (tab of tabPages(); track tab) {\n\t\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t[for]=\"tab.tabName()\"\n\t\t\t\t\t\t\t[id]=\"tab.tabName() + '-header'\"\n\t\t\t\t\t\t\tclass=\"nav-link text-nowrap\"\n\t\t\t\t\t\t\t[class.active]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[class.disabled]=\"tab.disabled()\">\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t}\n\t\t</ul>\n\t</ng-template>\n\t@if (topTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n\t<div class=\"tab-content flex-grow-1 overflow-auto\" bsNoNoscript [class.border]=\"border() && activeTabValue\" [class.border-top]=\"border() && !activeTabValue\">\n\t\t<ng-content></ng-content>\n\t</div>\n\t@if (bottomTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc bottom-tabs\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n} @else {\n\t<mp-tab-control #wc\n\t\t[attr.tabs-position]=\"tabsPosition()\"\n\t\t[attr.border]=\"border() ? null : 'false'\"\n\t\t[attr.active-tab]=\"activeTabName()\"\n\t\t[attr.select-first-tab]=\"selectFirstTab() ? null : 'false'\"\n\t\t(tab-activate)=\"onTabActivate($event)\">\n\t\t@for (tab of tabPages(); track tab) {\n\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t<span [attr.slot]=\"tab.tabName() + '-header'\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t\t<ng-content></ng-content>\n\t</mp-tab-control>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAKa,wBAAwB,CAAA;AAHrC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC/B,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;MCiBY,kBAAkB,CAAA;AAI7B,IAAA,WAAA,GAAA;AAHA,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAC5B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC;QAK1C,IAAA,CAAA,KAAK,GAAG,MAAM,CAAS,CAAC;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AA,OAAO,EAAE,2BAA2B;AACrC,qBAAA,EAAA,QAAA,EAAA,isFAAA,EAAA,MAAA,EAAA,CAAA,8/dAAA,CAAA,EAAA;0aA4BmC,kBAAkB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhDxD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-tab-control.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page-header/tab-page-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[bsTabPageHeader]',\n})\nexport class BsTabPageHeaderDirective {\n template = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, contentChild, computed, inject, input, ElementRef, signal } from '@angular/core';\nimport { BsTabControlComponent } from '../tab-control/tab-control.component';\nimport { BsTabPageHeaderDirective } from '../tab-page-header/tab-page-header.directive';\n\n@Component({\n selector: 'bs-tab-page',\n templateUrl: './tab-page.component.html',\n styleUrls: ['./tab-page.component.scss'],\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n // Used by <mp-tab-control> to project the active page into its content slot.\n '[attr.slot]': 'contentSlotName()',\n // Tells <mp-tab-control> the tab is disabled without inspecting child types.\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n // NO client-side ARIA here: <mp-tab-control> already renders the\n // role=tabpanel wrapper (with aria-labelledby) in its shadow root, so a\n // second tabpanel on this host announced every page twice and its id\n // duplicated an IDREF target. The SSR branch renders its own region\n // inside the template instead.\n },\n})\nexport class BsTabPageComponent {\n element = inject(ElementRef);\n tabControl = inject(BsTabControlComponent);\n\n constructor() {\n this.tabId = signal(++this.tabControl.tabCounter);\n }\n tabId = signal<number>(0);\n tabName = computed(() => `${this.tabControl.tabControlName()}-${this.tabId()}`);\n contentSlotName = computed(() =>\n this.tabControl.isServerSide ? null : `${this.tabName()}-content`,\n );\n\n disabled = input(false);\n readonly headerTemplate = contentChild(BsTabPageHeaderDirective);\n}\n","<!-- One ng-content for both branches (see bs-tab-control): Angular projects into the last. -->\n<ng-template #content><ng-content></ng-content></ng-template>\n\n@if (tabControl.isServerSide) {\n\t<!-- region, not tabpanel: the no-JS tier ships no role=\"tab\" (a static\n\t aria-selected would go stale), and a tabpanel without a tab is an\n\t orphan. The label id still names the region. -->\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"region\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\">\n\t\t<ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n\t</div>\n} @else {\n\t<ng-container [ngTemplateOutlet]=\"content\"></ng-container>\n}\n","import { isPlatformServer, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChildren, CUSTOM_ELEMENTS_SCHEMA, effect, ElementRef, inject, input, PLATFORM_ID, signal } from '@angular/core';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport '@mintplayer/web-components/tab-control';\nimport type { TabActivateEventDetail } from '@mintplayer/web-components/tab-control';\nimport { BsTabPageComponent } from '../tab-page/tab-page.component';\nimport { BsTabsPosition } from '../tabs-position';\n\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.component.html',\n styleUrls: ['./tab-control.component.scss'],\n imports: [NgTemplateOutlet, BsNoNoscriptDirective],\n providers: [\n { provide: 'TAB_CONTROL', useExisting: BsTabControlComponent }\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n host: {\n 'class': 'd-block position-relative',\n },\n})\nexport class BsTabControlComponent {\n element = inject(ElementRef);\n private platformId = inject(PLATFORM_ID);\n\n readonly isServerSide = isPlatformServer(this.platformId);\n\n constructor() {\n this.tabControlId = signal(++BsTabControlComponent.tabControlCounter);\n\n effect(() => {\n const tabPages = this.tabPages();\n const activeTab = this.activeTab();\n const selectFirstTab = this.selectFirstTab();\n if (tabPages.length > 0 && (!activeTab || !tabPages.some(tp => tp === activeTab)) && selectFirstTab) {\n const notDisabled = tabPages.filter((tp) => !tp.disabled());\n if (notDisabled.length > 0) {\n setTimeout(() => this.activeTab.set(notDisabled[0]));\n }\n }\n });\n }\n\n border = input(true);\n selectFirstTab = input(true);\n tabsPosition = input<BsTabsPosition>('top');\n\n readonly tabPages = contentChildren(BsTabPageComponent);\n activeTab = signal<BsTabPageComponent | null>(null);\n tabControlId = signal<number>(0);\n tabControlName = computed(() => `bs-tab-control-${this.tabControlId()}`);\n topTabs = computed(() => this.tabsPosition() === 'top');\n bottomTabs = computed(() => this.tabsPosition() === 'bottom');\n checkedTab = computed(() => {\n const active = this.activeTab();\n if (active) return active;\n if (!this.selectFirstTab()) return null;\n return this.tabPages().find(t => !t.disabled()) ?? null;\n });\n // Stable string ID of the active tab, fed to <mp-tab-control [active-tab]>.\n activeTabName = computed(() => this.checkedTab()?.tabName() ?? null);\n static tabControlCounter = 0;\n tabCounter = 0;\n\n setActiveTab(tab: BsTabPageComponent, event?: Event) {\n event?.preventDefault();\n if (!tab.disabled()) {\n this.activeTab.set(tab);\n }\n return false;\n }\n\n onTabActivate(event: Event) {\n const ce = event as CustomEvent<TabActivateEventDetail>;\n const tabName = ce.detail.tabId;\n const tab = this.tabPages().find(tp => tp.tabName() === tabName);\n if (tab && !tab.disabled()) {\n this.activeTab.set(tab);\n }\n }\n}\n","<!-- One ng-content, shared by both branches: with an ng-content in each, Angular projects\n into the LAST one only, so the server branch rendered no pages at all. -->\n<ng-template #pages><ng-content></ng-content></ng-template>\n\n@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<!-- The radio IS the control: clipped (not display:none) so Tab reaches\n\t\t it, and the native radio group gives arrow-key switching, a live\n\t\t checked state and the label's text as its name — all with no script\n\t\t and nothing that can go stale (PRD 11a). -->\n\t\t<input type=\"radio\" class=\"tab-radio\" bsNoNoscript\n\t\t\t[name]=\"tabControlName()\"\n\t\t\t[id]=\"tab.tabName()\"\n\t\t\t[checked]=\"checkedTab() === tab\"\n\t\t\t[disabled]=\"tab.disabled()\"\n\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\">\n\t}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<!-- No role=\"tab\"/aria-selected here: with no script to update them a\n\t\t static aria-selected would lie after the first switch. The labels\n\t\t are the radios' visual skin and accessible name; the radios carry\n\t\t the live selection state natively. -->\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\">\n\t\t\t@for (tab of tabPages(); track tab) {\n\t\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t[for]=\"tab.tabName()\"\n\t\t\t\t\t\t\t[id]=\"tab.tabName() + '-header'\"\n\t\t\t\t\t\t\tclass=\"nav-link text-nowrap\"\n\t\t\t\t\t\t\t[class.active]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[class.disabled]=\"tab.disabled()\">\n\t\t\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</li>\n\t\t\t\t}\n\t\t\t}\n\t\t</ul>\n\t</ng-template>\n\t@if (topTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n\t<div class=\"tab-content flex-grow-1 overflow-auto\" bsNoNoscript [class.border]=\"border() && activeTabValue\" [class.border-top]=\"border() && !activeTabValue\">\n\t\t<ng-container [ngTemplateOutlet]=\"pages\"></ng-container>\n\t</div>\n\t@if (bottomTabs()) {\n\t\t<div class=\"overflow-hidden mw-100 tsc bottom-tabs\">\n\t\t\t<ng-container [ngTemplateOutlet]=\"tabStrip\"></ng-container>\n\t\t</div>\n\t}\n} @else {\n\t<mp-tab-control #wc\n\t\t[attr.tabs-position]=\"tabsPosition()\"\n\t\t[attr.border]=\"border() ? null : 'false'\"\n\t\t[attr.active-tab]=\"activeTabName()\"\n\t\t[attr.select-first-tab]=\"selectFirstTab() ? null : 'false'\"\n\t\t(tab-activate)=\"onTabActivate($event)\">\n\t\t@for (tab of tabPages(); track tab) {\n\t\t\t@if (tab.headerTemplate()) {\n\t\t\t\t<span [attr.slot]=\"tab.tabName() + '-header'\">\n\t\t\t\t\t<ng-container [ngTemplateOutlet]=\"tab.headerTemplate()!.template\"></ng-container>\n\t\t\t\t</span>\n\t\t\t}\n\t\t}\n\t\t<ng-container [ngTemplateOutlet]=\"pages\"></ng-container>\n\t</mp-tab-control>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAKa,wBAAwB,CAAA;AAHrC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC/B,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,E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EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED1DY,gBAAgB,oJAAE,qBAAqB,EAAA,QAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAUtC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAdjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,WAGjB,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,EAAA,SAAA,EACvC;AACT,wBAAA,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,uBAAuB;AAC7D,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,WACtC,CAAC,sBAAsB,CAAC,EAAA,IAAA,EAC3B;AACJ,wBAAA,OAAO,EAAE,2BAA2B;AACrC,qBAAA,EAAA,QAAA,EAAA,++FAAA,EAAA,MAAA,EAAA,CAAA,8/dAAA,CAAA,EAAA;0aA4BmC,kBAAkB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhDxD;;AAEG;;;;"}
@@ -1,43 +1,48 @@
1
- import { isPlatformBrowser, DOCUMENT } from '@angular/common';
1
+ import { resolveServerTheme, readDefaultModeMeta, getBsThemeStore, configureBsTheme, MpThemeToggle, BS_THEME_DEFAULT_MODES } from '@mintplayer/web-components/theming';
2
+ export { BS_THEME_COOKIE_NAME, BS_THEME_DEFAULT_MODES, BS_THEME_DEFAULT_MODE_META, injectThemeAttribute, isValidThemeMode, readDefaultModeMeta, readThemeCookie, resolveMode, resolveServerTheme } from '@mintplayer/web-components/theming';
3
+ import { isPlatformServer, DOCUMENT, isPlatformBrowser } from '@angular/common';
2
4
  import * as i0 from '@angular/core';
3
- import { inject, PLATFORM_ID, signal, computed, DestroyRef, effect, Injectable } from '@angular/core';
5
+ import { inject, PLATFORM_ID, signal, REQUEST, DestroyRef, Injectable, makeEnvironmentProviders, provideEnvironmentInitializer, input, viewChild, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
6
+ import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
4
7
 
5
8
  /**
6
- * localStorage key used by `BsThemeService` AND the inline pre-boot `<script>`
7
- * documented for SSR-safe no-flash integration. The two must stay in sync; the
8
- * key value is duplicated in the script snippet because the script runs before
9
- * any module loads. See `/additional-samples/theming` for the recipe.
10
- */
11
- const BS_THEME_STORAGE_KEY = 'bs-theme-mode';
12
-
13
- /**
14
- * Owns the user's Bootstrap color-mode choice and keeps `<html data-bs-theme>`
15
- * in sync with it.
9
+ * Angular's view of the document's Bootstrap colour mode (PRD dark-mode D4).
16
10
  *
17
11
  * - `mode` is the *authored* value (`'auto' | 'light' | 'dark' | custom`).
18
- * - `effectiveMode` is the *resolved* value — `'auto'` resolves via
19
- * `matchMedia('(prefers-color-scheme: dark)')`, explicit values pass through.
20
- * - `setMode()` is the only writer. Both signals are read-only views.
12
+ * - `effectiveMode` is the value on `<html data-bs-theme>`: `'auto'` resolved
13
+ * against `prefers-color-scheme`, everything else passed through.
14
+ * - `setMode()` changes it. Both signals are read-only views.
21
15
  *
22
- * Switching strategy: Bootstrap 5.3+ ships a full `[data-bs-theme="dark"]` block
23
- * in its SCSS. Flipping the attribute on `<html>` swaps the entire palette in
24
- * one DOM write. We deliberately do NOT mutate individual `--bs-*` custom
25
- * properties — that primitive is documented for runtime *customization* (brand
26
- * colors, end-user theming), not for the light/dark switch.
16
+ * **This service is a pure mirror of the framework-neutral store.** In the
17
+ * browser it holds no state of its own: `mode`/`effectiveMode` are refreshed
18
+ * from `getBsThemeStore().subscribe()`, and `setMode()` forwards to the store's
19
+ * `setMode()` (libs/mintplayer-web-components/theming/src/store.ts), which owns
20
+ * validation, the `bs-theme-mode` cookie, the `data-bs-theme` write, the
21
+ * `prefers-color-scheme` listener and cross-tab sync. So a change made anywhere
22
+ * else (`<mp-theme-toggle>`, another tab, the OS) reaches these signals, and a
23
+ * copy here could never drift. Any behaviour added to the store's `setMode()`
24
+ * must be reflected here, and vice versa; the mirror tests in
25
+ * bs-theme.service.spec.ts pin it.
27
26
  *
28
- * SSR: on the server we skip `localStorage`, `matchMedia`, and the DOM-write
29
- * effect. Server-rendered HTML therefore has no `data-bs-theme` attribute. The
30
- * documented inline pre-boot `<script>` writes it client-side before any CSS
31
- * link evaluates, preventing a light-mode flash for dark-mode users.
27
+ * **Server:** Angular SSR creates a root injector per request, which is the one
28
+ * thing the store cannot do (it is a document singleton and never exists on a
29
+ * server). The service resolves the request's `bs-theme-mode` cookie against the
30
+ * page's `<meta name="bs-theme-default-mode">` with `resolveServerTheme()`,
31
+ * seeds the signals and, for an explicit mode, writes `data-bs-theme` on the
32
+ * server `<html>` synchronously in the constructor, so the first byte of HTML is
33
+ * already themed. Hydration never touches `<html>`, and the browser branch never
34
+ * writes anything itself, so the server's attribute survives client boot.
35
+ * `REQUEST` is `null` during prerender and route extraction: that is treated as
36
+ * "no cookie", and the pre-boot script themes those pages on the client.
32
37
  *
33
38
  * Usage:
34
39
  * ```ts
35
40
  * const theme = inject(BsThemeService);
36
41
  * theme.setMode('dark'); // explicit
37
- * theme.setMode('auto'); // follow system
38
- * theme.setMode('sepia'); // custom variant — consumer ships matching CSS
39
- * theme.mode(); // → 'sepia'
40
- * theme.effectiveMode(); // → 'sepia' (auto would resolve to 'light'|'dark')
42
+ * theme.setMode('auto'); // follow the OS
43
+ * theme.setMode('sepia'); // custom variant: ship a matching [data-bs-theme=sepia] block
44
+ * theme.mode(); // 'sepia'
45
+ * theme.effectiveMode(); // 'sepia' (auto would resolve to 'light' | 'dark')
41
46
  * ```
42
47
  */
43
48
  class BsThemeService {
@@ -45,68 +50,54 @@ class BsThemeService {
45
50
  this.platformId = inject(PLATFORM_ID);
46
51
  this._mode = signal('auto', /* @ts-ignore */
47
52
  ...(ngDevMode ? [{ debugName: "_mode" }] : /* istanbul ignore next */ []));
48
- this._prefersDark = signal(false, /* @ts-ignore */
49
- ...(ngDevMode ? [{ debugName: "_prefersDark" }] : /* istanbul ignore next */ []));
50
- /** The mode the user picked. Use `setMode()` to change. */
53
+ this._effectiveMode = signal('light', /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "_effectiveMode" }] : /* istanbul ignore next */ []));
55
+ /** The mode the user picked. Use `setMode()` to change it. */
51
56
  this.mode = this._mode.asReadonly();
52
- /**
53
- * The mode that's actually applied. `'auto'` is resolved via
54
- * `prefers-color-scheme`; everything else passes through unchanged.
55
- */
56
- this.effectiveMode = computed(() => {
57
- const m = this._mode();
58
- if (m === 'auto')
59
- return this._prefersDark() ? 'dark' : 'light';
60
- return m;
61
- }, /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "effectiveMode" }] : /* istanbul ignore next */ []));
63
- if (isPlatformBrowser(this.platformId)) {
64
- // Defer DestroyRef + DOCUMENT injections to inside the platform check —
65
- // pulling them at the field-init level meant the SSR injector resolved
66
- // tokens whose destroy-time callbacks fire during ApplicationRef
67
- // teardown and surface as NG0953 ("Unexpected emit for destroyed
68
- // OutputRef") on the dev server.
69
- const destroyRef = inject(DestroyRef);
57
+ /** The mode applied to `<html data-bs-theme>`. */
58
+ this.effectiveMode = this._effectiveMode.asReadonly();
59
+ // REQUEST, DOCUMENT and DestroyRef are injected INSIDE the platform checks,
60
+ // never at field level: pulling them for every platform meant the SSR
61
+ // injector resolved tokens whose destroy-time callbacks fire during
62
+ // ApplicationRef teardown and surface as NG0953 ("Unexpected emit for
63
+ // destroyed OutputRef") on the dev server.
64
+ if (isPlatformServer(this.platformId)) {
65
+ const request = inject(REQUEST);
70
66
  const document = inject(DOCUMENT);
71
- // Hydrate initial mode from localStorage. Wrapped because privacy modes
72
- // or sandboxed iframes can throw on access.
73
- try {
74
- const stored = localStorage.getItem(BS_THEME_STORAGE_KEY);
75
- if (stored)
76
- this._mode.set(stored);
77
- }
78
- catch {
79
- // localStorage unavailable — stick with the 'auto' default.
80
- }
81
- if (typeof window !== 'undefined' && typeof window.matchMedia === 'function') {
82
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
83
- this._prefersDark.set(mql.matches);
84
- const listener = (e) => this._prefersDark.set(e.matches);
85
- mql.addEventListener('change', listener);
86
- destroyRef.onDestroy(() => mql.removeEventListener('change', listener));
87
- }
88
- // Keep <html data-bs-theme> in sync with the resolved mode.
89
- effect(() => {
90
- const resolved = this.effectiveMode();
91
- document.documentElement.setAttribute('data-bs-theme', resolved);
67
+ const resolved = resolveServerTheme(request?.headers.get('cookie') ?? null, {
68
+ defaultMode: readDefaultModeMeta(document),
92
69
  });
70
+ if (resolved !== null) {
71
+ this._mode.set(resolved);
72
+ this._effectiveMode.set(resolved);
73
+ // resolveServerTheme only returns values that pass isValidThemeMode.
74
+ document.documentElement.setAttribute('data-bs-theme', resolved);
75
+ }
76
+ return;
77
+ }
78
+ if (isPlatformBrowser(this.platformId)) {
79
+ const destroyRef = inject(DestroyRef);
80
+ const store = getBsThemeStore();
81
+ const sync = () => {
82
+ this._mode.set(store.getMode());
83
+ this._effectiveMode.set(store.effectiveMode());
84
+ };
85
+ sync();
86
+ destroyRef.onDestroy(store.subscribe(sync));
93
87
  }
94
88
  }
95
89
  /**
96
- * Set the user's mode. Persists to localStorage and updates the DOM attribute.
97
- * Accepts any string for custom variants — consumer is responsible for
98
- * shipping a matching `[data-bs-theme="<value>"] { … }` rule.
90
+ * Set the user's mode. Forwards to the store's `setMode()`
91
+ * (libs/mintplayer-web-components/theming/src/store.ts): an invalid mode is a
92
+ * no-op with a warning, a valid one is persisted to the cookie and applied to
93
+ * `<html>`, and the signals update through the store subscription. Custom
94
+ * variants need a matching `[data-bs-theme="<value>"] { ... }` rule.
95
+ * A no-op on the server, where a mode comes only from the request cookie.
99
96
  */
100
97
  setMode(mode) {
101
- this._mode.set(mode);
102
- if (isPlatformBrowser(this.platformId)) {
103
- try {
104
- localStorage.setItem(BS_THEME_STORAGE_KEY, mode);
105
- }
106
- catch {
107
- // localStorage unavailable — state is in-memory only.
108
- }
109
- }
98
+ if (!isPlatformBrowser(this.platformId))
99
+ return;
100
+ getBsThemeStore().setMode(mode);
110
101
  }
111
102
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
112
103
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThemeService, providedIn: 'root' }); }
@@ -116,9 +107,85 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
116
107
  args: [{ providedIn: 'root' }]
117
108
  }], ctorParameters: () => [] });
118
109
 
110
+ /**
111
+ * Configure the document's theme store (PRD dark-mode D4). The only option is
112
+ * `cookieDomain`, passed through verbatim as the `bs-theme-mode` cookie's
113
+ * `Domain=`, so a theme picked on `www.example.com` also applies on
114
+ * `app.example.com`. The store is configured in the browser only; on a server
115
+ * there is no store to configure.
116
+ *
117
+ * It also constructs `BsThemeService` eagerly on every platform. That is what
118
+ * makes SSR render `<html data-bs-theme>` from the request cookie: the service
119
+ * does that in its constructor, and nothing else is guaranteed to inject it
120
+ * (`<bs-theme-toggle>` talks to the store directly).
121
+ *
122
+ * `defaultMode` is deliberately not an option. It is declared once, in the HTML
123
+ * (`<meta name="bs-theme-default-mode" content="dark">`), because the pre-boot
124
+ * script has to read it before Angular loads.
125
+ *
126
+ * ```ts
127
+ * bootstrapApplication(App, {
128
+ * providers: [provideBsTheme({ cookieDomain: '.example.com' })],
129
+ * });
130
+ * ```
131
+ */
132
+ function provideBsTheme(config = {}) {
133
+ return makeEnvironmentProviders([
134
+ provideEnvironmentInitializer(() => {
135
+ if (isPlatformBrowser(inject(PLATFORM_ID)))
136
+ configureBsTheme(config);
137
+ inject(BsThemeService);
138
+ }),
139
+ ]);
140
+ }
141
+
142
+ // Load-bearing: referencing the class keeps the module (and its
143
+ // customElements.define) from being tree-shaken out of the bundle.
144
+ void MpThemeToggle;
145
+ /**
146
+ * Angular wrapper around `<mp-theme-toggle>` (PRD dark-mode D7): a button that
147
+ * cycles the document's colour mode. The element talks to the theme store
148
+ * directly, so `BsThemeService` signals follow every click with no wiring here.
149
+ *
150
+ * `modes` is the cycle, in order (default `BS_THEME_DEFAULT_MODES`). Localize it
151
+ * by mapping over the default and overriding `label` / `announcement`.
152
+ *
153
+ * A consumer's `aria-*`, `role`, `id` and `tabindex` on `<bs-theme-toggle>`
154
+ * reach the `<mp-theme-toggle>` element through `bsForwardAria`.
155
+ *
156
+ * no-JS: none (control requires script).
157
+ */
158
+ class BsThemeToggleComponent {
159
+ constructor() {
160
+ this.modes = input(BS_THEME_DEFAULT_MODES, /* @ts-ignore */
161
+ ...(ngDevMode ? [{ debugName: "modes" }] : /* istanbul ignore next */ []));
162
+ this.toggleRef = viewChild.required('toggle', /* @ts-ignore */
163
+ ...(ngDevMode ? [{ debugName: "toggleRef" }] : /* istanbul ignore next */ []));
164
+ // Construct the service even though the element never calls it: on the
165
+ // server its constructor is what renders <html data-bs-theme> from the
166
+ // request cookie, so an app that only renders a toggle still gets SSR.
167
+ inject(BsThemeService);
168
+ effect(() => {
169
+ this.toggleRef().nativeElement.modes = this.modes();
170
+ });
171
+ }
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThemeToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
173
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsThemeToggleComponent, isStandalone: true, selector: "bs-theme-toggle", inputs: { modes: { classPropertyName: "modes", publicName: "modes", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "toggleRef", first: true, predicate: ["toggle"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-theme-toggle bsForwardAria #toggle></mp-theme-toggle>\n", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
174
+ }
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThemeToggleComponent, decorators: [{
176
+ type: Component,
177
+ args: [{ selector: 'bs-theme-toggle', imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-theme-toggle bsForwardAria #toggle></mp-theme-toggle>\n", styles: [":host{display:inline-block}\n"] }]
178
+ }], ctorParameters: () => [], propDecorators: { modes: [{ type: i0.Input, args: [{ isSignal: true, alias: "modes", required: false }] }], toggleRef: [{ type: i0.ViewChild, args: ['toggle', { isSignal: true }] }] } });
179
+
180
+ // The framework-neutral core, re-exported BY NAME so Angular consumers need one
181
+ // import without inheriting store internals. Deliberately not re-exported:
182
+ // getBsThemeStore / configureBsTheme (browser-only; use BsThemeService and
183
+ // provideBsTheme, which are SSR-safe), writeThemeCookie (the store owns writes),
184
+ // MpThemeToggle (use <bs-theme-toggle>) and __resetBsThemeStoreForTests.
185
+
119
186
  /**
120
187
  * Generated bundle index. Do not edit.
121
188
  */
122
189
 
123
- export { BS_THEME_STORAGE_KEY, BsThemeService };
190
+ export { BsThemeService, BsThemeToggleComponent, provideBsTheme };
124
191
  //# sourceMappingURL=mintplayer-ng-bootstrap-theming.mjs.map