@mintplayer/ng-bootstrap 22.5.1 → 22.7.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 (136) hide show
  1. package/_bootstrap.scss +4 -0
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +255 -44
  3. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +129 -74
  5. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +24 -4
  7. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +12 -3
  9. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +9 -4
  11. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +21 -7
  13. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +83 -248
  15. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +39 -35
  17. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -4
  19. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +80 -31
  21. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +4 -0
  23. package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +3 -2
  25. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +3 -2
  27. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +4 -7
  29. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +27 -2
  31. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -2
  33. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +25 -3
  37. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +15 -3
  39. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +9 -3
  41. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +11 -12
  43. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +48 -0
  45. package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs.map +1 -0
  46. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -2
  47. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +6 -6
  49. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +4 -7
  51. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +2 -3
  53. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +24 -5
  55. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +3 -3
  57. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +8 -3
  59. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -3
  61. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +41 -46
  63. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +5 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +33 -4
  67. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +3 -2
  69. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +2 -2
  71. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -12
  73. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +3 -2
  75. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +76 -58
  77. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +2 -2
  79. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +107 -0
  81. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -0
  82. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +9 -10
  85. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +3 -2
  87. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
  89. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +29 -6
  91. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +4 -3
  93. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +3 -2
  95. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +10 -3
  97. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  98. package/observe-size/package.json +4 -0
  99. package/package.json +9 -6
  100. package/splitter/package.json +4 -0
  101. package/types/mintplayer-ng-bootstrap-a11y.d.ts +184 -32
  102. package/types/mintplayer-ng-bootstrap-accordion.d.ts +88 -27
  103. package/types/mintplayer-ng-bootstrap-alert.d.ts +18 -8
  104. package/types/mintplayer-ng-bootstrap-badge.d.ts +8 -1
  105. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +3 -1
  106. package/types/mintplayer-ng-bootstrap-card.d.ts +4 -2
  107. package/types/mintplayer-ng-bootstrap-carousel.d.ts +56 -109
  108. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +11 -16
  109. package/types/mintplayer-ng-bootstrap-close.d.ts +6 -4
  110. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +3 -0
  111. package/types/mintplayer-ng-bootstrap-copy.d.ts +1 -0
  112. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +16 -18
  113. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +7 -0
  114. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +15 -2
  115. package/types/mintplayer-ng-bootstrap-list-group.d.ts +3 -1
  116. package/types/mintplayer-ng-bootstrap-marquee.d.ts +7 -4
  117. package/types/mintplayer-ng-bootstrap-navbar.d.ts +1 -3
  118. package/types/mintplayer-ng-bootstrap-observe-size.d.ts +24 -0
  119. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +6 -0
  120. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +2 -2
  121. package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -3
  122. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +1 -1
  123. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +5 -2
  124. package/types/mintplayer-ng-bootstrap-radio.d.ts +20 -28
  125. package/types/mintplayer-ng-bootstrap-rating.d.ts +18 -1
  126. package/types/mintplayer-ng-bootstrap-select.d.ts +2 -3
  127. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +31 -30
  128. package/types/mintplayer-ng-bootstrap-splitter.d.ts +66 -0
  129. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +1 -1
  130. package/types/mintplayer-ng-bootstrap-toast.d.ts +3 -1
  131. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +8 -0
  132. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +7 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +0 -60
  134. package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +0 -1
  135. package/reduced-motion/package.json +0 -4
  136. package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +0 -36
@@ -36,7 +36,7 @@ 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.0", ngImport: i0, type: BsTabPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", 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", "attr.role": "tabControl.isServerSide ? null : \"tabpanel\"", "id": "tabControl.isServerSide ? null : tabName() + \"-panel\"", "attr.aria-labelledby": "tabControl.isServerSide ? null : tabName() + \"-header-button\"", "attr.tabindex": "tabControl.isServerSide ? null : (tabControl.activeTab() === this ? 0 : -1)" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: BsTabPageHeaderDirective, descendants: true, isSignal: true }], ngImport: i0, template: "@if (tabControl.isServerSide) {\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"tabpanel\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\"\n\t\t[attr.tabindex]=\"tabControl.activeTab() === this ? 0 : null\">\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.0", 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 }); }
40
40
  }
41
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTabPageComponent, decorators: [{
42
42
  type: Component,
@@ -45,13 +45,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
45
45
  '[attr.slot]': 'contentSlotName()',
46
46
  // Tells <mp-tab-control> the tab is disabled without inspecting child types.
47
47
  '[attr.data-disabled]': 'disabled() ? "" : null',
48
- // ARIA wiring (client-side only — the SSR branch renders its own tabpanel
49
- // div with these attributes inside the bs-tab-page template).
50
- '[attr.role]': 'tabControl.isServerSide ? null : "tabpanel"',
51
- '[id]': 'tabControl.isServerSide ? null : tabName() + "-panel"',
52
- '[attr.aria-labelledby]': 'tabControl.isServerSide ? null : tabName() + "-header-button"',
53
- '[attr.tabindex]': 'tabControl.isServerSide ? null : (tabControl.activeTab() === this ? 0 : -1)',
54
- }, template: "@if (tabControl.isServerSide) {\n\t<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"tabpanel\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\"\n\t\t[attr.tabindex]=\"tabControl.activeTab() === this ? 0 : null\">\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"] }]
48
+ // NO client-side ARIA here: <mp-tab-control> already renders the
49
+ // role=tabpanel wrapper (with aria-labelledby) in its shadow root, so a
50
+ // second tabpanel on this host announced every page twice and its id
51
+ // duplicated an IDREF target. The SSR branch renders its own region
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"] }]
55
54
  }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTabPageHeaderDirective), { isSignal: true }] }] } });
56
55
 
57
56
  class BsTabControlComponent {
@@ -123,7 +122,7 @@ class BsTabControlComponent {
123
122
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
124
123
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", 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: [
125
124
  { provide: 'TAB_CONTROL', useExisting: BsTabControlComponent }
126
- ], queries: [{ propertyName: "tabPages", predicate: BsTabPageComponent, isSignal: true }], ngImport: i0, template: "@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<input type=\"radio\" class=\"d-none\" 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}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\" role=\"tablist\">\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\" role=\"presentation\">\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\trole=\"tab\"\n\t\t\t\t\t\t\t[attr.tabindex]=\"tab.disabled() ? -1 : (activeTabValue === tab ? 0 : -1)\"\n\t\t\t\t\t\t\t[attr.aria-selected]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\"\n\t\t\t\t\t\t\t[attr.aria-disabled]=\"tab.disabled() || null\">\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}: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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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 ::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: "@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 }); }
127
126
  }
128
127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTabControlComponent, decorators: [{
129
128
  type: Component,
@@ -131,7 +130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
131
130
  { provide: 'TAB_CONTROL', useExisting: BsTabControlComponent }
132
131
  ], changeDetection: ChangeDetectionStrategy.OnPush, schemas: [CUSTOM_ELEMENTS_SCHEMA], host: {
133
132
  'class': 'd-block position-relative',
134
- }, template: "@if (isServerSide) {\n\t@for (tab of tabPages(); track tab) {\n\t\t<input type=\"radio\" class=\"d-none\" 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}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\" role=\"tablist\">\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\" role=\"presentation\">\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\trole=\"tab\"\n\t\t\t\t\t\t\t[attr.tabindex]=\"tab.disabled() ? -1 : (activeTabValue === tab ? 0 : -1)\"\n\t\t\t\t\t\t\t[attr.aria-selected]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\"\n\t\t\t\t\t\t\t[attr.aria-disabled]=\"tab.disabled() || null\">\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}: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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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(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 ::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: "@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"] }]
135
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 }] }] } });
136
135
 
137
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 // ARIA wiring (client-side only — the SSR branch renders its own tabpanel\n // div with these attributes inside the bs-tab-page template).\n '[attr.role]': 'tabControl.isServerSide ? null : \"tabpanel\"',\n '[id]': 'tabControl.isServerSide ? null : tabName() + \"-panel\"',\n '[attr.aria-labelledby]': 'tabControl.isServerSide ? null : tabName() + \"-header-button\"',\n '[attr.tabindex]': 'tabControl.isServerSide ? null : (tabControl.activeTab() === this ? 0 : -1)',\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<div [id]=\"tabName() + '-panel'\"\n\t\tclass=\"tab-page-content\"\n\t\trole=\"tabpanel\"\n\t\t[attr.aria-labelledby]=\"tabName() + '-header'\"\n\t\t[class.d-block]=\"tabControl.activeTab() === this\"\n\t\t[attr.tabindex]=\"tabControl.activeTab() === this ? 0 : null\">\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<input type=\"radio\" class=\"d-none\" 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}\n\t@let activeTabValue = activeTab();\n\t<ng-template #tabStrip>\n\t\t<ul class=\"nav nav-tabs flex-nowrap overflow-x-auto overflow-y-hidden\" role=\"tablist\">\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\" role=\"presentation\">\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\trole=\"tab\"\n\t\t\t\t\t\t\t[attr.tabindex]=\"tab.disabled() ? -1 : (activeTabValue === tab ? 0 : -1)\"\n\t\t\t\t\t\t\t[attr.aria-selected]=\"activeTabValue === tab\"\n\t\t\t\t\t\t\t[attr.aria-controls]=\"tab.tabName() + '-panel'\"\n\t\t\t\t\t\t\t[attr.aria-disabled]=\"tab.disabled() || null\">\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,IAA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YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDlDY,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,w6EAAA,EAAA,MAAA,EAAA,CAAA,w2XAAA,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 { 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,EA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A,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDtDY,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,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;;;;"}
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { inject, TemplateRef, Directive, input, model, output, viewChild, contentChild, computed, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import { resolveSides } from '@mintplayer/web-components/timeline';
5
+ import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
5
6
  export { resolveSides } from '@mintplayer/web-components/timeline-core';
6
7
 
7
8
  /**
@@ -218,11 +219,11 @@ class BsTimelineComponent {
218
219
  }
219
220
  }
220
221
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
221
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsTimelineComponent, isStandalone: true, selector: "bs-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", itemClick: "itemClick" }, queries: [{ propertyName: "markerTpl", first: true, predicate: BsTimelineMarkerDirective, descendants: true, isSignal: true }, { propertyName: "titleTpl", first: true, predicate: BsTimelineTitleDirective, descendants: true, isSignal: true }, { propertyName: "timestampTpl", first: true, predicate: BsTimelineTimestampDirective, descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: BsTimelineContentDirective, descendants: true, isSignal: true }, { propertyName: "oppositeTpl", first: true, predicate: BsTimelineOppositeDirective, descendants: true, isSignal: true }, { propertyName: "connectorTpl", first: true, predicate: BsTimelineConnectorDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "timelineRef", first: true, predicate: ["timeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-timeline\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
222
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsTimelineComponent, isStandalone: true, selector: "bs-timeline", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, reverse: { classPropertyName: "reverse", publicName: "reverse", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", itemClick: "itemClick" }, queries: [{ propertyName: "markerTpl", first: true, predicate: BsTimelineMarkerDirective, descendants: true, isSignal: true }, { propertyName: "titleTpl", first: true, predicate: BsTimelineTitleDirective, descendants: true, isSignal: true }, { propertyName: "timestampTpl", first: true, predicate: BsTimelineTimestampDirective, descendants: true, isSignal: true }, { propertyName: "contentTpl", first: true, predicate: BsTimelineContentDirective, descendants: true, isSignal: true }, { propertyName: "oppositeTpl", first: true, predicate: BsTimelineOppositeDirective, descendants: true, isSignal: true }, { propertyName: "connectorTpl", first: true, predicate: BsTimelineConnectorDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "timelineRef", first: true, predicate: ["timeline"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-timeline bsForwardAria\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
222
223
  }
223
224
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTimelineComponent, decorators: [{
224
225
  type: Component,
225
- args: [{ selector: 'bs-timeline', imports: [NgTemplateOutlet], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-timeline\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n", styles: [":host{display:block}\n"] }]
226
+ args: [{ selector: 'bs-timeline', imports: [BsForwardAriaDirective, NgTemplateOutlet], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-timeline bsForwardAria\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n", styles: [":host{display:block}\n"] }]
226
227
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], reverse: [{ type: i0.Input, args: [{ isSignal: true, alias: "reverse", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], timelineRef: [{ type: i0.ViewChild, args: ['timeline', { isSignal: true }] }], markerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineMarkerDirective), { isSignal: true }] }], titleTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineTitleDirective), { isSignal: true }] }], timestampTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineTimestampDirective), { isSignal: true }] }], contentTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineContentDirective), { isSignal: true }] }], oppositeTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineOppositeDirective), { isSignal: true }] }], connectorTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTimelineConnectorDirective), { isSignal: true }] }] } });
227
228
 
228
229
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-timeline.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timeline/src/directives/timeline-template.directives.ts","../../../../libs/mintplayer-ng-bootstrap/timeline/src/timeline/timeline.component.ts","../../../../libs/mintplayer-ng-bootstrap/timeline/src/timeline/timeline.component.html","../../../../libs/mintplayer-ng-bootstrap/timeline/mintplayer-ng-bootstrap-timeline.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\nimport type { TimelineItem, TimelineOrientation, TimelineSide } from '@mintplayer/web-components/timeline-core';\n\n/**\n * Context for the per-item template directives. The `$implicit` is the item, so\n * `*bsTimelineContent=\"let item\"` binds the item; named context vars expose the\n * resolved layout state.\n */\nexport class BsTimelineItemContext {\n $implicit!: TimelineItem;\n index = 0;\n visualIndex = 0;\n isFirst = false;\n isLast = false;\n orientation: TimelineOrientation = 'vertical';\n side: TimelineSide = 'start';\n}\n\n/** Context for the connector template (the segment trailing this item). */\nexport class BsTimelineConnectorContext {\n /** The item the connector trails. */\n $implicit!: TimelineItem;\n /** The next item (undefined for the last). */\n toItem?: TimelineItem;\n index = 0;\n orientation: TimelineOrientation = 'vertical';\n}\n\n/** Custom bullet / marker template. */\n@Directive({ selector: '[bsTimelineMarker]' })\nexport class BsTimelineMarkerDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineMarkerDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom title template. */\n@Directive({ selector: '[bsTimelineTitle]' })\nexport class BsTimelineTitleDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineTitleDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom timestamp template (rendered in the opposite region). */\n@Directive({ selector: '[bsTimelineTimestamp]' })\nexport class BsTimelineTimestampDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineTimestampDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom content / body template. */\n@Directive({ selector: '[bsTimelineContent]' })\nexport class BsTimelineContentDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineContentDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom opposite-region template. */\n@Directive({ selector: '[bsTimelineOpposite]' })\nexport class BsTimelineOppositeDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineOppositeDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom connector template. */\n@Directive({ selector: '[bsTimelineConnector]' })\nexport class BsTimelineConnectorDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineConnectorContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineConnectorDirective,\n ctx: unknown,\n ): ctx is BsTimelineConnectorContext {\n return true;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n resolveSides,\n type MpTimeline,\n} from '@mintplayer/web-components/timeline';\nimport type {\n TimelineAlign,\n TimelineItem,\n TimelineItemClickDetail,\n TimelineOrientation,\n TimelineSelectable,\n TimelineSelectionChangeDetail,\n} from '@mintplayer/web-components/timeline-core';\n\n// Side-effect import: registers <mp-timeline> + <mp-timeline-item>.\nimport '@mintplayer/web-components/timeline';\n\nimport {\n BsTimelineConnectorContext,\n BsTimelineConnectorDirective,\n BsTimelineContentDirective,\n BsTimelineItemContext,\n BsTimelineMarkerDirective,\n BsTimelineOppositeDirective,\n BsTimelineTimestampDirective,\n BsTimelineTitleDirective,\n} from '../directives/timeline-template.directives';\n\n/**\n * `<bs-timeline>` — Angular wrapper around `<mp-timeline>`.\n *\n * Data-driven: bind `[items]` and supply any of the `*bsTimeline*` template\n * directives; the wrapper lowers each into a `<mp-timeline-item>` child with the\n * template projected into the matching slot. Declarative: drop\n * `<mp-timeline-item>` elements directly inside `<bs-timeline>` (no items).\n */\n@Component({\n selector: 'bs-timeline',\n templateUrl: './timeline.component.html',\n styleUrls: ['./timeline.component.scss'],\n imports: [NgTemplateOutlet],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimelineComponent {\n readonly items = input<TimelineItem[]>([]);\n readonly orientation = input<TimelineOrientation>('vertical');\n readonly align = input<TimelineAlign>('start');\n readonly reverse = input<boolean>(false);\n readonly selectable = input<TimelineSelectable>('none');\n\n /** Two-way bound array of selected items (identity via `id`). */\n readonly selection = model<TimelineItem[]>([]);\n\n /** Emitted when a non-disabled item is activated. */\n readonly itemClick = output<TimelineItemClickDetail>();\n\n readonly timelineRef = viewChild<ElementRef<MpTimeline>>('timeline');\n\n protected readonly markerTpl = contentChild(BsTimelineMarkerDirective);\n protected readonly titleTpl = contentChild(BsTimelineTitleDirective);\n protected readonly timestampTpl = contentChild(BsTimelineTimestampDirective);\n protected readonly contentTpl = contentChild(BsTimelineContentDirective);\n protected readonly oppositeTpl = contentChild(BsTimelineOppositeDirective);\n protected readonly connectorTpl = contentChild(BsTimelineConnectorDirective);\n\n protected readonly sides = computed(() =>\n resolveSides(this.items().length, this.align(), this.reverse()),\n );\n\n constructor() {\n // Push the selection model into the WC (identity via id).\n effect(() => {\n const el = this.timelineRef()?.nativeElement;\n if (!el) return;\n el.selectedIds = this.selection().map((item, i) => this.idForItem(item, i));\n });\n }\n\n // ----- template helpers --------------------------------------------------\n\n protected idForItem(item: TimelineItem, index: number): string | number {\n return item.id ?? index;\n }\n\n protected idAttr(item: TimelineItem): string | number | null {\n return item.id ?? null;\n }\n\n protected timeAttr(item: TimelineItem): string | null {\n if (item.time == null) return null;\n return item.time instanceof Date ? item.time.toLocaleDateString() : item.time;\n }\n\n protected ctx(item: TimelineItem, index: number): BsTimelineItemContext {\n const len = this.items().length;\n const visualIndex = this.reverse() ? len - 1 - index : index;\n return {\n $implicit: item,\n index,\n visualIndex,\n isFirst: visualIndex === 0,\n isLast: visualIndex === len - 1,\n orientation: this.orientation(),\n side: this.sides()[index] ?? 'start',\n };\n }\n\n protected connectorCtx(item: TimelineItem, index: number): BsTimelineConnectorContext {\n return {\n $implicit: item,\n toItem: this.items()[index + 1],\n index,\n orientation: this.orientation(),\n };\n }\n\n // ----- WC event handlers -------------------------------------------------\n\n protected onItemClick(event: Event): void {\n this.itemClick.emit((event as CustomEvent<TimelineItemClickDetail>).detail);\n }\n\n protected onSelectionChange(event: Event): void {\n const detail = (event as CustomEvent<TimelineSelectionChangeDetail>).detail;\n const items = this.items();\n if (items.length) {\n const byId = new Map(items.map((it, i) => [this.idForItem(it, i), it] as const));\n const el = this.timelineRef()?.nativeElement;\n const ids = el?.selectedIds ?? detail.selected.map((m, i) => m.id ?? i);\n this.selection.set(ids.map((id) => byId.get(id)).filter((it): it is TimelineItem => it !== undefined));\n } else {\n // Declarative mode: surface the attribute-derived models from the event.\n this.selection.set(detail.selected);\n }\n }\n}\n","<mp-timeline\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAGA;;;;AAIG;MACU,qBAAqB,CAAA;AAAlC,IAAA,WAAA,GAAA;QAEE,IAAA,CAAA,KAAK,GAAG,CAAC;QACT,IAAA,CAAA,WAAW,GAAG,CAAC;QACf,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,MAAM,GAAG,KAAK;QACd,IAAA,CAAA,WAAW,GAAwB,UAAU;QAC7C,IAAA,CAAA,IAAI,GAAiB,OAAO;IAC9B;AAAC;AAED;MACa,0BAA0B,CAAA;AAAvC,IAAA,WAAA,GAAA;QAKE,IAAA,CAAA,KAAK,GAAG,CA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AA,CAAA,UAAA,CAAA,MACpB,4BAA4B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC9B,0BAA0B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACzB,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC1B,4BAA4B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7E7E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-timeline.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timeline/src/directives/timeline-template.directives.ts","../../../../libs/mintplayer-ng-bootstrap/timeline/src/timeline/timeline.component.ts","../../../../libs/mintplayer-ng-bootstrap/timeline/src/timeline/timeline.component.html","../../../../libs/mintplayer-ng-bootstrap/timeline/mintplayer-ng-bootstrap-timeline.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\nimport type { TimelineItem, TimelineOrientation, TimelineSide } from '@mintplayer/web-components/timeline-core';\n\n/**\n * Context for the per-item template directives. The `$implicit` is the item, so\n * `*bsTimelineContent=\"let item\"` binds the item; named context vars expose the\n * resolved layout state.\n */\nexport class BsTimelineItemContext {\n $implicit!: TimelineItem;\n index = 0;\n visualIndex = 0;\n isFirst = false;\n isLast = false;\n orientation: TimelineOrientation = 'vertical';\n side: TimelineSide = 'start';\n}\n\n/** Context for the connector template (the segment trailing this item). */\nexport class BsTimelineConnectorContext {\n /** The item the connector trails. */\n $implicit!: TimelineItem;\n /** The next item (undefined for the last). */\n toItem?: TimelineItem;\n index = 0;\n orientation: TimelineOrientation = 'vertical';\n}\n\n/** Custom bullet / marker template. */\n@Directive({ selector: '[bsTimelineMarker]' })\nexport class BsTimelineMarkerDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineMarkerDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom title template. */\n@Directive({ selector: '[bsTimelineTitle]' })\nexport class BsTimelineTitleDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineTitleDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom timestamp template (rendered in the opposite region). */\n@Directive({ selector: '[bsTimelineTimestamp]' })\nexport class BsTimelineTimestampDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineTimestampDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom content / body template. */\n@Directive({ selector: '[bsTimelineContent]' })\nexport class BsTimelineContentDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineContentDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom opposite-region template. */\n@Directive({ selector: '[bsTimelineOpposite]' })\nexport class BsTimelineOppositeDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineItemContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineOppositeDirective,\n ctx: unknown,\n ): ctx is BsTimelineItemContext {\n return true;\n }\n}\n\n/** Custom connector template. */\n@Directive({ selector: '[bsTimelineConnector]' })\nexport class BsTimelineConnectorDirective {\n readonly templateRef = inject<TemplateRef<BsTimelineConnectorContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _d: BsTimelineConnectorDirective,\n ctx: unknown,\n ): ctx is BsTimelineConnectorContext {\n return true;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n resolveSides,\n type MpTimeline,\n} from '@mintplayer/web-components/timeline';\nimport type {\n TimelineAlign,\n TimelineItem,\n TimelineItemClickDetail,\n TimelineOrientation,\n TimelineSelectable,\n TimelineSelectionChangeDetail,\n} from '@mintplayer/web-components/timeline-core';\n\n// Side-effect import: registers <mp-timeline> + <mp-timeline-item>.\nimport '@mintplayer/web-components/timeline';\n\nimport {\n BsTimelineConnectorContext,\n BsTimelineConnectorDirective,\n BsTimelineContentDirective,\n BsTimelineItemContext,\n BsTimelineMarkerDirective,\n BsTimelineOppositeDirective,\n BsTimelineTimestampDirective,\n BsTimelineTitleDirective,\n} from '../directives/timeline-template.directives';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-timeline>` — Angular wrapper around `<mp-timeline>`.\n *\n * Data-driven: bind `[items]` and supply any of the `*bsTimeline*` template\n * directives; the wrapper lowers each into a `<mp-timeline-item>` child with the\n * template projected into the matching slot. Declarative: drop\n * `<mp-timeline-item>` elements directly inside `<bs-timeline>` (no items).\n */\n@Component({\n selector: 'bs-timeline',\n templateUrl: './timeline.component.html',\n styleUrls: ['./timeline.component.scss'],\n imports: [BsForwardAriaDirective, NgTemplateOutlet],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimelineComponent {\n readonly items = input<TimelineItem[]>([]);\n readonly orientation = input<TimelineOrientation>('vertical');\n readonly align = input<TimelineAlign>('start');\n readonly reverse = input<boolean>(false);\n readonly selectable = input<TimelineSelectable>('none');\n\n /** Two-way bound array of selected items (identity via `id`). */\n readonly selection = model<TimelineItem[]>([]);\n\n /** Emitted when a non-disabled item is activated. */\n readonly itemClick = output<TimelineItemClickDetail>();\n\n readonly timelineRef = viewChild<ElementRef<MpTimeline>>('timeline');\n\n protected readonly markerTpl = contentChild(BsTimelineMarkerDirective);\n protected readonly titleTpl = contentChild(BsTimelineTitleDirective);\n protected readonly timestampTpl = contentChild(BsTimelineTimestampDirective);\n protected readonly contentTpl = contentChild(BsTimelineContentDirective);\n protected readonly oppositeTpl = contentChild(BsTimelineOppositeDirective);\n protected readonly connectorTpl = contentChild(BsTimelineConnectorDirective);\n\n protected readonly sides = computed(() =>\n resolveSides(this.items().length, this.align(), this.reverse()),\n );\n\n constructor() {\n // Push the selection model into the WC (identity via id).\n effect(() => {\n const el = this.timelineRef()?.nativeElement;\n if (!el) return;\n el.selectedIds = this.selection().map((item, i) => this.idForItem(item, i));\n });\n }\n\n // ----- template helpers --------------------------------------------------\n\n protected idForItem(item: TimelineItem, index: number): string | number {\n return item.id ?? index;\n }\n\n protected idAttr(item: TimelineItem): string | number | null {\n return item.id ?? null;\n }\n\n protected timeAttr(item: TimelineItem): string | null {\n if (item.time == null) return null;\n return item.time instanceof Date ? item.time.toLocaleDateString() : item.time;\n }\n\n protected ctx(item: TimelineItem, index: number): BsTimelineItemContext {\n const len = this.items().length;\n const visualIndex = this.reverse() ? len - 1 - index : index;\n return {\n $implicit: item,\n index,\n visualIndex,\n isFirst: visualIndex === 0,\n isLast: visualIndex === len - 1,\n orientation: this.orientation(),\n side: this.sides()[index] ?? 'start',\n };\n }\n\n protected connectorCtx(item: TimelineItem, index: number): BsTimelineConnectorContext {\n return {\n $implicit: item,\n toItem: this.items()[index + 1],\n index,\n orientation: this.orientation(),\n };\n }\n\n // ----- WC event handlers -------------------------------------------------\n\n protected onItemClick(event: Event): void {\n this.itemClick.emit((event as CustomEvent<TimelineItemClickDetail>).detail);\n }\n\n protected onSelectionChange(event: Event): void {\n const detail = (event as CustomEvent<TimelineSelectionChangeDetail>).detail;\n const items = this.items();\n if (items.length) {\n const byId = new Map(items.map((it, i) => [this.idForItem(it, i), it] as const));\n const el = this.timelineRef()?.nativeElement;\n const ids = el?.selectedIds ?? detail.selected.map((m, i) => m.id ?? i);\n this.selection.set(ids.map((id) => byId.get(id)).filter((it): it is TimelineItem => it !== undefined));\n } else {\n // Declarative mode: surface the attribute-derived models from the event.\n this.selection.set(detail.selected);\n }\n }\n}\n","<mp-timeline bsForwardAria\n #timeline\n [attr.orientation]=\"orientation()\"\n [attr.align]=\"align()\"\n [attr.reverse]=\"reverse() ? '' : null\"\n [attr.selectable]=\"selectable()\"\n (item-click)=\"onItemClick($event)\"\n (selection-change)=\"onSelectionChange($event)\"\n>\n @if (items().length) {\n @for (item of items(); track item.id ?? $index; let i = $index) {\n <mp-timeline-item\n [attr.item-id]=\"idAttr(item)\"\n [attr.title]=\"item.title ?? null\"\n [attr.description]=\"item.description ?? null\"\n [attr.time]=\"timeAttr(item)\"\n [attr.icon]=\"item.icon ?? null\"\n [attr.color]=\"item.color ?? null\"\n [attr.item-class]=\"item.cssClass ?? null\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n >\n @if (markerTpl()) {\n <span slot=\"marker\">\n <ng-container [ngTemplateOutlet]=\"markerTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (titleTpl()) {\n <span slot=\"title\">\n <ng-container [ngTemplateOutlet]=\"titleTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (timestampTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"timestampTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (oppositeTpl()) {\n <span slot=\"opposite\">\n <ng-container [ngTemplateOutlet]=\"oppositeTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </span>\n }\n @if (contentTpl()) {\n <div slot=\"content\">\n <ng-container [ngTemplateOutlet]=\"contentTpl()!.templateRef\" [ngTemplateOutletContext]=\"ctx(item, i)\"></ng-container>\n </div>\n }\n @if (connectorTpl()) {\n <span slot=\"connector\">\n <ng-container [ngTemplateOutlet]=\"connectorTpl()!.templateRef\" [ngTemplateOutletContext]=\"connectorCtx(item, i)\"></ng-container>\n </span>\n }\n </mp-timeline-item>\n }\n } @else {\n <ng-content></ng-content>\n }\n</mp-timeline>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAGA;;;;AAIG;MACU,qBAAqB,CAAA;AAAlC,IAAA,WAAA,GAAA;QAEE,IAAA,CAAA,KAAK,GAAG,CAAC;QACT,IAAA,CAAA,WAAW,GAAG,CAAC;QACf,IAAA,CAAA,OAAO,GAAG,KAAK;QACf,IAAA,CAAA,MAAM,GAAG,KAAK;QACd,IAAA,CAAA,WAAW,GAAwB,UAAU;QAC7C,IAAA,CAAA,IAAI,GAAiB,OAAO;IAC9B;AAAC;AAED;MACa,0BAA0B,CAAA;AAAvC,IAAA,WAAA,GAAA;QAKE,IAAA,CAAA,KAAK,GAAG,CAAC;QACT,IAAA,CAAA,WAAW,GAAwB,UAAU;IAC/C;AAAC;AAED;MAEa,yBAAyB,CAAA;AADtC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAqC,WAAW,CAAC;AAO/E,IAAA;AANC,IAAA,OAAO,sBAAsB,CAC3B,EAA6B,EAC7B,GAAY,EAAA;AAEZ,QAAA,OAAO,IAAI;IACb;8GAPW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,E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A,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC9B,0BAA0B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACzB,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAC1B,4BAA4B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9E7E;;AAEG;;;;"}
@@ -1,5 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component, Pipe, InjectionToken, makeEnvironmentProviders, inject, Injector, signal, Injectable, Directive } from '@angular/core';
2
+ import { input, inject, ElementRef, effect, ChangeDetectionStrategy, Component, Pipe, InjectionToken, makeEnvironmentProviders, Injector, signal, Injectable, Directive } from '@angular/core';
3
+ import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
3
4
  import { NgTemplateOutlet } from '@angular/common';
4
5
  import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
5
6
  import { Overlay } from '@angular/cdk/overlay';
@@ -12,16 +13,30 @@ class BsToastComponent {
12
13
  /** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */
13
14
  this.politeness = input('assertive', /* @ts-ignore */
14
15
  ...(ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []));
15
- this.toastRole = computed(() => this.politeness() === 'assertive' ? 'alert' : 'status', /* @ts-ignore */
16
- ...(ngDevMode ? [{ debugName: "toastRole" }] : /* istanbul ignore next */ []));
16
+ this.announcer = inject(BsLiveAnnouncerService);
17
+ this.host = inject(ElementRef);
18
+ // The old channel was role/aria-live ON the toast div — but the toast and
19
+ // its text mount in one task (ngTemplateOutlet), which most SRs never
20
+ // announce. The shared announcer region pre-exists, so routing the text
21
+ // through it on the show transition is reliably spoken.
22
+ effect(() => {
23
+ if (!this.isVisible())
24
+ return;
25
+ const politeness = this.politeness();
26
+ queueMicrotask(() => {
27
+ const text = this.host.nativeElement.textContent?.trim();
28
+ if (text)
29
+ void this.announcer.announce(text, politeness);
30
+ });
31
+ });
17
32
  }
18
33
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
19
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\" [attr.role]=\"toastRole()\" [attr.aria-live]=\"politeness()\" aria-atomic=\"true\">\n <ng-content></ng-content>\n</div>\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
20
35
  }
21
36
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsToastComponent, decorators: [{
22
37
  type: Component,
23
- args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\" [attr.role]=\"toastRole()\" [attr.aria-live]=\"politeness()\" aria-atomic=\"true\">\n <ng-content></ng-content>\n</div>\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"] }]
24
- }], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
38
+ args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n", styles: [":host ::ng-deep .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){:host ::ng-deep .fade{transition:none}}:host ::ng-deep .fade:not(.show){opacity:0}:host ::ng-deep .collapse:not(.show){display:none}:host ::ng-deep .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing{transition:none}}:host ::ng-deep .collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media(prefers-reduced-motion:reduce){:host ::ng-deep .collapsing.collapse-horizontal{transition:none}}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"] }]
39
+ }], ctorParameters: () => [], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
25
40
 
26
41
  class BsToastHeaderComponent {
27
42
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsToastHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -126,13 +141,13 @@ class BsToastContainerComponent {
126
141
  this.toastService = inject(BsToastService);
127
142
  }
128
143
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
129
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "pipe", type: BsAddPropertiesPipe, name: "bsAddProperties" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
144
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "pipe", type: BsAddPropertiesPipe, name: "bsAddProperties" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
130
145
  }
131
146
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsToastContainerComponent, decorators: [{
132
147
  type: Component,
133
148
  args: [{ selector: 'bs-toast-container', imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe], changeDetection: ChangeDetectionStrategy.OnPush, host: {
134
149
  '[style.overflow-y]': '"auto"',
135
- }, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"] }]
150
+ }, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}:host ::ng-deep .toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}:host ::ng-deep .toast.showing{opacity:0}:host ::ng-deep .toast:not(.show){display:none}:host ::ng-deep .toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}:host ::ng-deep .toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}:host ::ng-deep .toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}:host ::ng-deep .toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}:host ::ng-deep .toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}\n"] }]
136
151
  }] });
137
152
 
138
153
  class BsToastCloseDirective {