@mintplayer/ng-bootstrap 22.31.0 → 22.33.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 (247) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  25. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  27. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  29. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
  31. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
  33. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  35. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  37. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  39. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
  41. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
  43. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
  45. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  47. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  49. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
  51. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  57. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
  59. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
  61. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
  63. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
  65. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
  67. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  69. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
  71. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  73. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
  77. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
  79. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
  81. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
  83. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
  85. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  87. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
  89. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
  91. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  93. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
  95. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  97. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
  99. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
  101. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
  103. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
  105. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  107. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  109. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  111. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
  113. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
  115. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
  117. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  119. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
  121. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  123. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  125. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
  127. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
  129. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
  131. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  135. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  137. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
  139. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
  141. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
  143. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  145. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  147. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
  149. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  150. package/nav/package.json +4 -0
  151. package/package.json +11 -28
  152. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  153. package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
  154. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  155. package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
  156. package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
  157. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
  158. package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
  159. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  160. package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
  161. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  162. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  163. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  164. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  165. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
  166. package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
  167. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  168. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  169. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  170. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  171. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
  172. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
  173. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  174. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  175. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  176. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  177. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  178. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  179. package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
  180. package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
  181. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  182. package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
  183. package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
  184. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  185. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
  186. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  187. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  188. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
  189. package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
  190. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  191. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
  192. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
  193. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  194. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
  195. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
  196. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  197. package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
  198. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  199. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
  200. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  201. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  202. package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
  203. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  204. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  205. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  206. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  207. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
  208. package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
  209. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  210. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
  211. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  212. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  213. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
  214. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  215. package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
  216. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  217. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  218. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
  219. package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
  220. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  221. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  222. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  223. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  224. package/calendar-month/package.json +0 -4
  225. package/container/package.json +0 -4
  226. package/dropdown-divider/package.json +0 -4
  227. package/dropdown-menu/package.json +0 -4
  228. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  229. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  230. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  231. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  232. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  233. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  234. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
  235. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  236. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  237. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  238. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  239. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  240. package/has-overlay/package.json +0 -4
  241. package/no-noscript/package.json +0 -4
  242. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  243. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  244. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  245. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  246. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  247. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["// GENERATED from the splitter manifest (splitter) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterCore, type SplitterInputs, type SplitterMethods, type SplitterResizeEventDetail, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/**\n * Resizable panels along one axis. Put splitter panels inside; a divider between every two is dragged,\n * or focused and moved with the arrow keys (Shift for 1% steps), Home and End. Nest splitters for\n * two-dimensional layouts. With JavaScript off the panels share the space evenly.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<SplitterInputs['orientation']>('horizontal');\n readonly minPanelSize = input<SplitterInputs['minPanelSize'], unknown>(50, { transform: (v: unknown) => numberAttribute(v) as SplitterInputs['minPanelSize'] });\n readonly touchMode = input<SplitterInputs['touchMode'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<SplitterInputs['labels']>(null);\n /** A divider drag started, with the sizes before it. */\n readonly resizestart = output<SplitterResizeEventDetail>();\n /** Every frame of a divider drag, with the sizes it previews. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** A drag or a key committed new sizes. */\n readonly resizeend = output<SplitterResizeEventDetail>();\n\n readonly #core = useCore(splitterCore, { inputs: () => ({ orientation: this.orientation(), minPanelSize: this.minPanelSize(), touchMode: this.touchMode(), labels: this.labels() }), idPrefix: 'bs-splitter', outputs: { resizeStart: this.resizestart, resizing: this.resizing, resizeEnd: this.resizeend }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n\n /** The panel sizes in px, in document order. */\n getPanelSizes(...args: Parameters<SplitterMethods['getPanelSizes']>): ReturnType<SplitterMethods['getPanelSizes']> {\n return this.#core.call('getPanelSizes', args) as ReturnType<SplitterMethods['getPanelSizes']>;\n }\n\n /** Set the panel sizes in px, one per panel. Emits nothing. */\n setPanelSizes(...args: Parameters<SplitterMethods['setPanelSizes']>): ReturnType<SplitterMethods['setPanelSizes']> {\n return this.#core.call('setPanelSizes', args) as ReturnType<SplitterMethods['setPanelSizes']>;\n }\n\n /** Move a divider as its arrow, Home or End key would. */\n resizeDividerBy(...args: Parameters<SplitterMethods['resizeDividerBy']>): ReturnType<SplitterMethods['resizeDividerBy']> {\n return this.#core.call('resizeDividerBy', args) as ReturnType<SplitterMethods['resizeDividerBy']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterPanelCore, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/** One panel of a splitter. Its content fills the panel. */\n@Component({\n selector: 'bs-splitter-panel',\n templateUrl: './splitter-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(splitterPanelCore, { inputs: () => ({ }), idPrefix: 'bs-splitter-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n","// GENERATED from the splitter manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSplitterComponent } from './splitter.component.generated';\nexport { BsSplitterPanelComponent } from './splitter-panel.component.generated';\n","// The splitter is generated from @mintplayer/ui-core/splitter (PRD #437 D10).\nexport * from './generated';\nexport type {\n SplitterLabels,\n SplitterOrientation,\n SplitterResizeEventDetail,\n SplitterResizeKey,\n} from '@mintplayer/ui-core/splitter';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;;AAIG;MAOU,mBAAmB,CAAA;AAerB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAjBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgC,YAAY;wFAAC;AAChE,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA0C,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,cAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAmC,GAAG;QACtJ,IAAA,CAAA,SAAS,GAAG,KAAK,CAAuC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC/F,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;;QAE9C,IAAA,CAAA,WAAW,GAAG,MAAM,EAA6B;;QAEjD,IAAA,CAAA,QAAQ,GAAG,MAAM,EAA6B;;QAE9C,IAAA,CAAA,SAAS,GAAG,MAAM,EAA6B;QAE/C,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,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,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;AAExD,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAI,CAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;;AAEvJ,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,UAAU,EAAE,oBAAoB,CAAC;IACnD;8GAVW,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,QAAA,ECZrC,mUAMA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGY,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,WAEpB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mUAAA,EAAA;;;AEVjD;;ACAA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["// GENERATED from the splitter manifest (splitter) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterCore, type SplitterInputs, type SplitterMethods, type SplitterResizeEventDetail, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/**\n * Resizable panels along one axis. Put splitter panels inside; a divider between every two is dragged,\n * or focused and moved with the arrow keys (Shift for 1% steps), Home and End. Nest splitters for\n * two-dimensional layouts. With JavaScript off the panels share the space evenly.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<SplitterInputs['orientation']>('horizontal');\n readonly minPanelSize = input<SplitterInputs['minPanelSize'], unknown>(50, { transform: (v: unknown) => numberAttribute(v) as SplitterInputs['minPanelSize'] });\n readonly touchMode = input<SplitterInputs['touchMode'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<SplitterInputs['labels']>(null);\n /** A divider drag started, with the sizes before it. */\n readonly resizeStart = output<SplitterResizeEventDetail>();\n /** Every frame of a divider drag, with the sizes it previews. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** A drag or a key committed new sizes. */\n readonly resizeEnd = output<SplitterResizeEventDetail>();\n\n readonly #core = useCore(splitterCore, { inputs: () => ({ orientation: this.orientation(), minPanelSize: this.minPanelSize(), touchMode: this.touchMode(), labels: this.labels() }), idPrefix: 'bs-splitter', outputs: { resizeStart: this.resizeStart, resizing: this.resizing, resizeEnd: this.resizeEnd }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n\n /** The panel sizes in px, in document order. */\n getPanelSizes(...args: Parameters<SplitterMethods['getPanelSizes']>): ReturnType<SplitterMethods['getPanelSizes']> {\n return this.#core.call('getPanelSizes', args) as ReturnType<SplitterMethods['getPanelSizes']>;\n }\n\n /** Set the panel sizes in px, one per panel. Emits nothing. */\n setPanelSizes(...args: Parameters<SplitterMethods['setPanelSizes']>): ReturnType<SplitterMethods['setPanelSizes']> {\n return this.#core.call('setPanelSizes', args) as ReturnType<SplitterMethods['setPanelSizes']>;\n }\n\n /** Move a divider as its arrow, Home or End key would. */\n resizeDividerBy(...args: Parameters<SplitterMethods['resizeDividerBy']>): ReturnType<SplitterMethods['resizeDividerBy']> {\n return this.#core.call('resizeDividerBy', args) as ReturnType<SplitterMethods['resizeDividerBy']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterPanelCore, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/** One panel of a splitter. Its content fills the panel. */\n@Component({\n selector: 'bs-splitter-panel',\n templateUrl: './splitter-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(splitterPanelCore, { inputs: () => ({ }), idPrefix: 'bs-splitter-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n","// GENERATED from the splitter manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSplitterComponent } from './splitter.component.generated';\nexport { BsSplitterPanelComponent } from './splitter-panel.component.generated';\n","// The splitter is generated from @mintplayer/ui-core/splitter (PRD #437 D10).\nexport * from './generated';\nexport type {\n SplitterLabels,\n SplitterOrientation,\n SplitterResizeEventDetail,\n SplitterResizeKey,\n} from '@mintplayer/ui-core/splitter';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;;AAIG;MAOU,mBAAmB,CAAA;AAerB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAjBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgC,YAAY;wFAAC;AAChE,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA0C,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,cAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAmC,GAAG;QACtJ,IAAA,CAAA,SAAS,GAAG,KAAK,CAAuC,KAA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AA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZrC,mUAMA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,WAEpB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mUAAA,EAAA;;;AEVjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,43 +1,48 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, viewChild, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
2
+ import { inject, ElementRef, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
+ import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { stickyFooterCore, stickyFooterScopedStyles, stickyFooterParentCore } from '@mintplayer/ui-core/sticky-footer';
4
5
 
6
+ // GENERATED from the sticky-footer manifest (sticky-footer) by @mintplayer/nx-component-compiler. Do not edit.
7
+ /** A `<footer>` pinned to the bottom of its `stickyFooterParent` while the content is shorter than `--mp-sticky-footer-min-height` (default `100dvh`). */
8
+ class BsStickyFooterComponent {
9
+ #core;
10
+ constructor() {
11
+ /** The host element. */
12
+ this.elementRef = inject(ElementRef);
13
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
14
+ this.hostAttrs = useHostAttrs();
15
+ this.#core = useCore(stickyFooterCore, { inputs: () => ({}), idPrefix: 'bs-sticky-footer', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'sticky-footer' }) });
16
+ /** The template's props. */
17
+ this.props = this.#core.props;
18
+ useScopedStyles('sticky-footer', stickyFooterScopedStyles);
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterComponent, isStandalone: true, selector: "bs-sticky-footer", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/sticky-footer/src/templates/sticky-footer.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<footer data-mps=\"sticky-footer\" [mpProps]=\"p_view.footer\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</footer>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ selector: 'bs-sticky-footer', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/sticky-footer/src/templates/sticky-footer.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<footer data-mps=\"sticky-footer\" [mpProps]=\"p_view.footer\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</footer>\n" }]
26
+ }], ctorParameters: () => [] });
27
+
28
+ // GENERATED from the sticky-footer manifest (sticky-footer-parent) by @mintplayer/nx-component-compiler. Do not edit.
29
+ /** Makes the element a flex column at least `--mp-sticky-footer-min-height` tall, so the sticky footer inside it ends up at the bottom. */
5
30
  class BsStickyFooterParentDirective {
31
+ constructor() {
32
+ this.core = useCore(stickyFooterParentCore, { inputs: () => ({}), idPrefix: 'bs-sticky-footer-parent', hostBag: (props) => ({ ...props, 'data-mps': 'sticky-footer' }) });
33
+ useScopedStyles('sticky-footer', stickyFooterScopedStyles);
34
+ }
6
35
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
7
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", host: { properties: { "style.margin-bottom.px": "marginBottom" } }, ngImport: i0 }); }
36
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", ngImport: i0 }); }
8
37
  }
9
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, decorators: [{
10
39
  type: Directive,
11
- args: [{
12
- selector: '[bsStickyFooterParent]',
13
- host: {
14
- '[style.margin-bottom.px]': 'marginBottom',
15
- },
16
- }]
17
- }] });
40
+ args: [{ selector: '[bsStickyFooterParent]' }]
41
+ }], ctorParameters: () => [] });
18
42
 
19
- class BsStickyFooterComponent {
20
- constructor(parent, injector) {
21
- this.parent = parent;
22
- this.injector = injector;
23
- this.sizeObserver = viewChild.required('sizeObserver', /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "sizeObserver" }] : /* istanbul ignore next */ []));
25
- }
26
- ngAfterViewInit() {
27
- effect(() => {
28
- const height = this.sizeObserver().height();
29
- if (height !== undefined) {
30
- this.parent.marginBottom = height;
31
- }
32
- }, { injector: this.injector });
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, deps: [{ token: BsStickyFooterParentDirective }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
35
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsStickyFooterComponent, isStandalone: true, selector: "bs-sticky-footer", viewQueries: [{ propertyName: "sizeObserver", first: true, predicate: ["sizeObserver"], descendants: true, isSignal: true }], ngImport: i0, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"], dependencies: [{ kind: "directive", type: BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
38
- type: Component,
39
- args: [{ selector: 'bs-sticky-footer', imports: [BsObserveSizeDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"] }]
40
- }], ctorParameters: () => [{ type: BsStickyFooterParentDirective }, { type: i0.Injector }], propDecorators: { sizeObserver: [{ type: i0.ViewChild, args: ['sizeObserver', { isSignal: true }] }] } });
43
+ // GENERATED from the sticky-footer manifest by @mintplayer/nx-component-compiler. Do not edit.
44
+
45
+ // Generated from @mintplayer/ui-core/sticky-footer (#458 D10).
41
46
 
42
47
  /**
43
48
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;MAQa,6BAA6B,CAAA;8GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA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WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXpC,qIAES,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMG,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WAGnB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qIAAA,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA;kKAiBoB,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1BnF;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/sticky-footer.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/sticky-footer.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/sticky-footer-parent.directive.generated.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["// GENERATED from the sticky-footer manifest (sticky-footer) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { stickyFooterCore, stickyFooterScopedStyles } from '@mintplayer/ui-core/sticky-footer';\n\n/** A `<footer>` pinned to the bottom of its `stickyFooterParent` while the content is shorter than `--mp-sticky-footer-min-height` (default `100dvh`). */\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n readonly #core = useCore(stickyFooterCore, { inputs: () => ({ }), idPrefix: 'bs-sticky-footer', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'sticky-footer' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('sticky-footer', stickyFooterScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/sticky-footer/src/templates/sticky-footer.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<footer data-mps=\"sticky-footer\" [mpProps]=\"p_view.footer\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</footer>\n","// GENERATED from the sticky-footer manifest (sticky-footer-parent) by @mintplayer/nx-component-compiler. Do not edit.\nimport { Directive } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { stickyFooterParentCore, stickyFooterScopedStyles } from '@mintplayer/ui-core/sticky-footer';\n\n/** Makes the element a flex column at least `--mp-sticky-footer-min-height` tall, so the sticky footer inside it ends up at the bottom. */\n@Directive({ selector: '[bsStickyFooterParent]' })\nexport class BsStickyFooterParentDirective {\n\n protected readonly core = useCore(stickyFooterParentCore, { inputs: () => ({ }), idPrefix: 'bs-sticky-footer-parent', hostBag: (props) => ({ ...props, 'data-mps': 'sticky-footer' }) });\n\n constructor() {\n useScopedStyles('sticky-footer', stickyFooterScopedStyles);\n }\n}\n","// GENERATED from the sticky-footer manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsStickyFooterComponent } from './sticky-footer.component.generated';\nexport { BsStickyFooterParentDirective } from './sticky-footer-parent.directive.generated';\n","// Generated from @mintplayer/ui-core/sticky-footer (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;MAOa,uBAAuB,CAAA;AAOzB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AATS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE;AAEpC,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAI,CAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;;AAE1J,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,eAAe,EAAE,wBAAwB,CAAC;IAC5D;8GAbW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECZpC,gTAKA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBANnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WAEnB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gTAAA,EAAA;;;AEVjD;AAKA;MAEa,6BAA6B,CAAA;AAIxC,IAAA,WAAA,GAAA;AAFmB,QAAA,IAAA,CAAA,IAAI,GAAG,OAAO,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAI,CAAC,EAAE,QAAQ,EAAE,yBAAyB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;AAGvL,QAAA,eAAe,CAAC,eAAe,EAAE,wBAAwB,CAAC;IAC5D;8GANW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,SAAS;mBAAC,EAAE,QAAQ,EAAE,wBAAwB,EAAE;;;ACNjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,140 +1,102 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, input, contentChild, viewChild, ChangeDetectionStrategy, Component, contentChildren, forwardRef, signal, ElementRef, computed, afterNextRender } from '@angular/core';
4
- import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
5
- import { useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
6
- import { resolveActiveTab, connectTabControl, TAB_CONTROL_SCOPE, tabControlScopedStyles, tabControlTabClick, tabControlKeydown, tabControlChanged } from '@mintplayer/ui-core/tab-control';
2
+ import { inject, TemplateRef, Directive, input, booleanAttribute, contentChild, viewChild, computed, ChangeDetectionStrategy, Component, ElementRef, model, contentChildren } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
+ import { tabControlCore, tabControlScopedStyles } from '@mintplayer/ui-core/tab-control';
6
+ import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';
7
7
 
8
+ // GENERATED from the tab-control manifest (tab-page) by @mintplayer/nx-component-compiler. Do not edit.
9
+ /** The `header` slot of `<bs-tab-page>`: `<ng-template bsTabPageHeader>` or `*bsTabPageHeader`. The tab's content: any markup, not just text. */
8
10
  class BsTabPageHeaderDirective {
9
11
  constructor() {
10
- this.template = inject(TemplateRef);
12
+ this.templateRef = inject(TemplateRef);
11
13
  }
12
14
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
13
15
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTabPageHeaderDirective, isStandalone: true, selector: "[bsTabPageHeader]", ngImport: i0 }); }
14
16
  }
15
17
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageHeaderDirective, decorators: [{
16
18
  type: Directive,
17
- args: [{
18
- selector: '[bsTabPageHeader]',
19
- }]
19
+ args: [{ selector: '[bsTabPageHeader]' }]
20
20
  }] });
21
-
22
21
  /**
23
- * One page of a `<bs-tab-control>`. Renders nothing itself: the control
24
- * renders every radio, tab and pane as siblings (the CSS pairs the n-th radio
25
- * with the n-th pane), so the page hands over its header and body templates.
22
+ * One page of a tab control. Its `header` slot fills the tab, its content the pane.
23
+ *
24
+ * Renders nothing itself: the parent that collects it renders its slots (default, header).
26
25
  */
27
26
  class BsTabPageComponent {
28
27
  constructor() {
29
- this.disabled = input(false, /* @ts-ignore */
30
- ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
31
- this.headerTemplate = contentChild(BsTabPageHeaderDirective, /* @ts-ignore */
32
- ...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
33
- this.body = viewChild('body', /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
28
+ this.tabId = input(null, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
30
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
31
+ this.headerSlot = contentChild(BsTabPageHeaderDirective, /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
33
+ this.defaultSlot = viewChild('lent', /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "defaultSlot" }] : /* istanbul ignore next */ []));
35
+ /** The nearest parent that collects this element; a nested one of the same kind owns it, not an outer one. */
36
+ this.contentParent = inject(BsTabControlComponent, { optional: true });
37
+ /** What a parent's content query reads from this element. */
38
+ this.contentChild = computed(() => ({ inputs: ({ tabId: this.tabId(), disabled: this.disabled() }), within: null }), /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "contentChild" }] : /* istanbul ignore next */ []));
40
+ /** The slots this element lends the parent that renders them. */
41
+ this.contentSlots = computed(() => ({ default: this.defaultSlot(), header: this.headerSlot()?.templateRef }), /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "contentSlots" }] : /* istanbul ignore next */ []));
35
43
  }
36
44
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
37
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsTabPageComponent, isStandalone: true, selector: "bs-tab-page", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "hidden": "" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: BsTabPageHeaderDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: '<ng-template #body><ng-content /></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsTabPageComponent, isStandalone: true, selector: "bs-tab-page", inputs: { tabId: { classPropertyName: "tabId", publicName: "tabId", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "hidden": "" } }, queries: [{ propertyName: "headerSlot", first: true, predicate: BsTabPageHeaderDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "defaultSlot", first: true, predicate: ["lent"], descendants: true, isSignal: true }], ngImport: i0, template: '<ng-template #lent><ng-content /></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38
46
  }
39
47
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageComponent, decorators: [{
40
48
  type: Component,
41
49
  args: [{
42
50
  selector: 'bs-tab-page',
43
- template: '<ng-template #body><ng-content /></ng-template>',
51
+ template: '<ng-template #lent><ng-content /></ng-template>',
44
52
  changeDetection: ChangeDetectionStrategy.OnPush,
45
53
  host: { hidden: '' },
46
54
  }]
47
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTabPageHeaderDirective), { isSignal: true }] }], body: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }] } });
55
+ }], propDecorators: { tabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabId", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTabPageHeaderDirective), { isSignal: true }] }], defaultSlot: [{ type: i0.ViewChild, args: ['lent', { isSignal: true }] }] } });
48
56
 
57
+ // GENERATED from the tab-control manifest (tab-control) by @mintplayer/nx-component-compiler. Do not edit.
49
58
  /**
50
- * `<bs-tab-control>` — Bootstrap nav-tabs over one native radio per tab (#437).
59
+ * Bootstrap nav-tabs over one native radio per page (#458). `activeTab` is two-way: the shown
60
+ * page's `tabId`, or its position.
51
61
  *
52
- * <bs-tab-control [border]="true" tabsPosition="top">
53
- * <bs-tab-page [disabled]="false">
54
- * <ng-container *bsTabPageHeader>Profile</ng-container>
55
- * Page content
56
- * </bs-tab-page>
57
- * </bs-tab-control>
58
- *
59
- * Renders the markup of `@mintplayer/ui-core/tab-control` in its own
60
- * template, so the server-rendered page is a working tab control: the
61
- * checked radio shows its pane through CSS with JavaScript off. Once the
62
- * client has rendered, the labels become APG tabs (roving tabindex,
63
- * automatic activation) and the radios leave the tab order. The host is the
64
- * `.tab-control` root; each page hands over its header and body as templates.
62
+ * The server-rendered page is a working tab control with JavaScript off: the checked radio shows
63
+ * its pane through CSS. Once hydrated the labels become APG tabs (roving tabindex, automatic
64
+ * activation; Left/Right, Home/End) and the radios leave the tab order.
65
65
  */
66
66
  class BsTabControlComponent {
67
+ #core;
67
68
  constructor() {
68
- /** Draw the outline around the active pane. */
69
- this.border = input(true, /* @ts-ignore */
70
- ...(ngDevMode ? [{ debugName: "border" }] : /* istanbul ignore next */ []));
71
- /** Show the first enabled page while none is active. */
72
- this.selectFirstTab = input(true, /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "selectFirstTab" }] : /* istanbul ignore next */ []));
69
+ /** The host element. */
70
+ this.elementRef = inject(ElementRef);
71
+ this.activeTab = model(null, /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "activeTab" }] : /* istanbul ignore next */ []));
73
+ this.border = input(true, { ...(ngDevMode ? { debugName: "border" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
74
+ this.selectFirstTab = input(true, { ...(ngDevMode ? { debugName: "selectFirstTab" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
74
75
  this.tabsPosition = input('top', /* @ts-ignore */
75
76
  ...(ngDevMode ? [{ debugName: "tabsPosition" }] : /* istanbul ignore next */ []));
76
- this.tabPages = contentChildren(forwardRef(() => BsTabPageComponent), /* @ts-ignore */
77
- ...(ngDevMode ? [{ debugName: "tabPages" }] : /* istanbul ignore next */ []));
78
- /** The page the user picked; `checkedTab` is the one that is shown. */
79
- this.activeTab = signal(null, /* @ts-ignore */
80
- ...(ngDevMode ? [{ debugName: "activeTab" }] : /* istanbul ignore next */ []));
81
- this.host = inject(ElementRef).nativeElement;
82
- this.id = inject(BsIdService).next('bs-tab-control');
83
- /** The client has rendered: switch from the radio tier to the tab tier. */
84
- this.enhanced = signal(false, /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "enhanced" }] : /* istanbul ignore next */ []));
86
- this.states = computed(() => this.tabPages().map((tab) => ({ disabled: tab.disabled() })), /* @ts-ignore */
87
- ...(ngDevMode ? [{ debugName: "states" }] : /* istanbul ignore next */ []));
88
- this.activeIndex = computed(() => {
89
- const active = this.activeTab();
90
- return resolveActiveTab(this.states(), active ? this.tabPages().indexOf(active) : null, this.selectFirstTab());
91
- }, /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
93
- this.checkedTab = computed(() => {
94
- const index = this.activeIndex();
95
- return index === null ? null : this.tabPages()[index];
96
- }, /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "checkedTab" }] : /* istanbul ignore next */ []));
98
- this.bottomTabs = computed(() => this.tabsPosition() === 'bottom', /* @ts-ignore */
99
- ...(ngDevMode ? [{ debugName: "bottomTabs" }] : /* istanbul ignore next */ []));
100
- this.view = computed(() => connectTabControl({ id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() }, this.states(), this.activeIndex()), /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
102
- useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);
103
- afterNextRender(() => this.enhanced.set(true));
104
- }
105
- setActiveTab(tab) {
106
- if (!tab.disabled())
107
- this.activeTab.set(tab);
108
- }
109
- onTabClick(event, tab) {
110
- // Before enhancement the label forwards to its radio and `change` selects.
111
- if (!this.enhanced())
112
- return;
113
- if (tabControlTabClick(event, tab.disabled()))
114
- this.activeTab.set(tab);
115
- }
116
- onTabKeydown(event, index) {
117
- const target = tabControlKeydown(this.host, event, index, this.states());
118
- if (target !== null)
119
- this.activeTab.set(this.tabPages()[target]);
120
- }
121
- onChange(event) {
122
- const index = tabControlChanged(this.host, event);
123
- if (index !== null)
124
- this.activeTab.set(this.tabPages()[index]);
77
+ this.query_pages = contentChildren(BsTabPageComponent, { ...(ngDevMode ? { debugName: "query_pages" } : /* istanbul ignore next */ {}), descendants: true });
78
+ this.content_pages = computed(() => this.query_pages().filter((c) => c.contentParent === this), /* @ts-ignore */
79
+ ...(ngDevMode ? [{ debugName: "content_pages" }] : /* istanbul ignore next */ []));
80
+ /** The slots each content query's declarations lend the template (<content-slot>). */
81
+ this.contentSlots = computed(() => ({ pages: this.content_pages().map((c) => c.contentSlots()) }), /* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "contentSlots" }] : /* istanbul ignore next */ []));
83
+ this.#core = useCore(tabControlCore, { inputs: () => ({ activeTab: this.activeTab(), border: this.border(), selectFirstTab: this.selectFirstTab(), tabsPosition: this.tabsPosition(), pages: this.content_pages().map((c) => c.contentChild()) }), idPrefix: 'bs-tab-control', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tab-control' }), models: { activeTab: this.activeTab } });
84
+ /** The template's props. */
85
+ this.props = this.#core.props;
86
+ useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order });
87
+ useScopedStyles('tab-control', tabControlScopedStyles);
125
88
  }
126
89
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
127
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabControlComponent, isStandalone: true, selector: "bs-tab-control", inputs: { border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, selectFirstTab: { classPropertyName: "selectFirstTab", publicName: "selectFirstTab", isSignal: true, isRequired: false, transformFunction: null }, tabsPosition: { classPropertyName: "tabsPosition", publicName: "tabsPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onChange($event)" }, properties: { "attr.data-mps": "view().root[\"data-mps\"]", "class.tab-control": "true", "attr.data-tabs-position": "view().root[\"data-tabs-position\"]" } }, queries: [{ propertyName: "tabPages", predicate: i0.forwardRef(() => BsTabPageComponent), isSignal: true }], ngImport: i0, template: "@let v = view();\n@for (tab of tabPages(); track tab; let i = $index) {\n <input [mpProps]=\"v.tabs[i].radio\" [checked]=\"i === activeIndex()\" [attr.checked]=\"i === activeIndex() ? '' : null\">\n}\n@if (!bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<div [mpProps]=\"v.content\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <div [mpProps]=\"v.tabs[i].pane\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n }\n</div>\n@if (bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<ng-content />\n\n<ng-template #strip>\n <div [mpProps]=\"v.strip\">\n <ul [mpProps]=\"v.list\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <li [mpProps]=\"v.item\">\n <label [mpProps]=\"v.tabs[i].tab\" (click)=\"onTabClick($event, tab)\" (keydown)=\"onTabKeydown($event, i)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </label>\n </li>\n }\n </ul>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabControlComponent, isStandalone: true, selector: "bs-tab-control", inputs: { activeTab: { classPropertyName: "activeTab", publicName: "activeTab", isSignal: true, isRequired: false, transformFunction: null }, 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 } }, outputs: { activeTab: "activeTabChange" }, queries: [{ propertyName: "query_pages", predicate: BsTabPageComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tab-control/src/templates/tab-control.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (e of p_view.entries; track e.key) {\n <input data-mps=\"tab-control\" [mpProps]=\"e.radio\" [checked]=\"e.checked\">\n}\n@if (!p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<div data-mps=\"tab-control\" [mpProps]=\"p_view.content\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <div data-mps=\"tab-control\" [mpProps]=\"e.pane\">\n @if (contentSlots().pages[i]?.default; as lent_pages_default) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_default\" />\n }\n </div>\n }\n</div>\n@if (p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<ng-content />\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
128
91
  }
129
92
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabControlComponent, decorators: [{
130
93
  type: Component,
131
- args: [{ selector: 'bs-tab-control', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MpPropsDirective, NgTemplateOutlet], host: {
132
- '[attr.data-mps]': 'view().root["data-mps"]',
133
- '[class.tab-control]': 'true',
134
- '[attr.data-tabs-position]': 'view().root["data-tabs-position"]',
135
- '(change)': 'onChange($event)',
136
- }, template: "@let v = view();\n@for (tab of tabPages(); track tab; let i = $index) {\n <input [mpProps]=\"v.tabs[i].radio\" [checked]=\"i === activeIndex()\" [attr.checked]=\"i === activeIndex() ? '' : null\">\n}\n@if (!bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<div [mpProps]=\"v.content\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <div [mpProps]=\"v.tabs[i].pane\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n }\n</div>\n@if (bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<ng-content />\n\n<ng-template #strip>\n <div [mpProps]=\"v.strip\">\n <ul [mpProps]=\"v.list\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <li [mpProps]=\"v.item\">\n <label [mpProps]=\"v.tabs[i].tab\" (click)=\"onTabClick($event, tab)\" (keydown)=\"onTabKeydown($event, i)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </label>\n </li>\n }\n </ul>\n </div>\n</ng-template>\n" }]
137
- }], 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: [forwardRef(() => BsTabPageComponent), { isSignal: true }] }] } });
94
+ args: [{ selector: 'bs-tab-control', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/tab-control/src/templates/tab-control.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (e of p_view.entries; track e.key) {\n <input data-mps=\"tab-control\" [mpProps]=\"e.radio\" [checked]=\"e.checked\">\n}\n@if (!p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<div data-mps=\"tab-control\" [mpProps]=\"p_view.content\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <div data-mps=\"tab-control\" [mpProps]=\"e.pane\">\n @if (contentSlots().pages[i]?.default; as lent_pages_default) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_default\" />\n }\n </div>\n }\n</div>\n@if (p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<ng-content />\n" }]
95
+ }], ctorParameters: () => [], propDecorators: { activeTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeTab", required: false }] }, { type: i0.Output, args: ["activeTabChange"] }], 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 }] }], query_pages: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsTabPageComponent), { ...{ descendants: true }, isSignal: true }] }] } });
96
+
97
+ // GENERATED from the tab-control manifest by @mintplayer/nx-component-compiler. Do not edit.
98
+
99
+ // Generated from @mintplayer/ui-core/tab-control (#458 M4, D10).
138
100
 
139
101
  /**
140
102
  * Generated bundle index. Do not edit.
@@ -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-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, input, TemplateRef, viewChild } from '@angular/core';\nimport { BsTabPageHeaderDirective } from '../tab-page-header/tab-page-header.directive';\n\n/**\n * One page of a `<bs-tab-control>`. Renders nothing itself: the control\n * renders every radio, tab and pane as siblings (the CSS pairs the n-th radio\n * with the n-th pane), so the page hands over its header and body templates.\n */\n@Component({\n selector: 'bs-tab-page',\n template: '<ng-template #body><ng-content /></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsTabPageComponent {\n readonly disabled = input(false);\n readonly headerTemplate = contentChild(BsTabPageHeaderDirective);\n readonly body = viewChild<TemplateRef<unknown>>('body');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n connectTabControl,\n resolveActiveTab,\n TAB_CONTROL_SCOPE,\n tabControlChanged,\n tabControlKeydown,\n tabControlScopedStyles,\n tabControlTabClick,\n} from '@mintplayer/ui-core/tab-control';\nimport { BsTabPageComponent } from '../tab-page/tab-page.component';\nimport { BsTabsPosition } from '../tabs-position';\n\n/**\n * `<bs-tab-control>` — Bootstrap nav-tabs over one native radio per tab (#437).\n *\n * <bs-tab-control [border]=\"true\" tabsPosition=\"top\">\n * <bs-tab-page [disabled]=\"false\">\n * <ng-container *bsTabPageHeader>Profile</ng-container>\n * Page content\n * </bs-tab-page>\n * </bs-tab-control>\n *\n * Renders the markup of `@mintplayer/ui-core/tab-control` in its own\n * template, so the server-rendered page is a working tab control: the\n * checked radio shows its pane through CSS with JavaScript off. Once the\n * client has rendered, the labels become APG tabs (roving tabindex,\n * automatic activation) and the radios leave the tab order. The host is the\n * `.tab-control` root; each page hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'view().root[\"data-mps\"]',\n '[class.tab-control]': 'true',\n '[attr.data-tabs-position]': 'view().root[\"data-tabs-position\"]',\n '(change)': 'onChange($event)',\n },\n})\nexport class BsTabControlComponent {\n /** Draw the outline around the active pane. */\n readonly border = input(true);\n /** Show the first enabled page while none is active. */\n readonly selectFirstTab = input(true);\n readonly tabsPosition = input<BsTabsPosition>('top');\n\n readonly tabPages = contentChildren<BsTabPageComponent>(forwardRef(() => BsTabPageComponent));\n /** The page the user picked; `checkedTab` is the one that is shown. */\n readonly activeTab = signal<BsTabPageComponent | null>(null);\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-tab-control');\n /** The client has rendered: switch from the radio tier to the tab tier. */\n private readonly enhanced = signal(false);\n\n private readonly states = computed(() => this.tabPages().map((tab) => ({ disabled: tab.disabled() })));\n protected readonly activeIndex = computed(() => {\n const active = this.activeTab();\n return resolveActiveTab(this.states(), active ? this.tabPages().indexOf(active) : null, this.selectFirstTab());\n });\n readonly checkedTab = computed(() => {\n const index = this.activeIndex();\n return index === null ? null : this.tabPages()[index];\n });\n protected readonly bottomTabs = computed(() => this.tabsPosition() === 'bottom');\n protected readonly view = computed(() =>\n connectTabControl(\n { id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() },\n this.states(),\n this.activeIndex(),\n ),\n );\n\n constructor() {\n useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);\n afterNextRender(() => this.enhanced.set(true));\n }\n\n setActiveTab(tab: BsTabPageComponent): void {\n if (!tab.disabled()) this.activeTab.set(tab);\n }\n\n protected onTabClick(event: Event, tab: BsTabPageComponent): void {\n // Before enhancement the label forwards to its radio and `change` selects.\n if (!this.enhanced()) return;\n if (tabControlTabClick(event, tab.disabled())) this.activeTab.set(tab);\n }\n\n protected onTabKeydown(event: KeyboardEvent, index: number): void {\n const target = tabControlKeydown(this.host, event, index, this.states());\n if (target !== null) this.activeTab.set(this.tabPages()[target]);\n }\n\n protected onChange(event: Event): void {\n const index = tabControlChanged(this.host, event);\n if (index !== null) this.activeTab.set(this.tabPages()[index]);\n }\n}\n","@let v = view();\n@for (tab of tabPages(); track tab; let i = $index) {\n <input [mpProps]=\"v.tabs[i].radio\" [checked]=\"i === activeIndex()\" [attr.checked]=\"i === activeIndex() ? '' : null\">\n}\n@if (!bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<div [mpProps]=\"v.content\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <div [mpProps]=\"v.tabs[i].pane\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n }\n</div>\n@if (bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<ng-content />\n\n<ng-template #strip>\n <div [mpProps]=\"v.strip\">\n <ul [mpProps]=\"v.list\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <li [mpProps]=\"v.item\">\n <label [mpProps]=\"v.tabs[i].tab\" (click)=\"onTabClick($event, tab)\" (keydown)=\"onTabKeydown($event, i)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </label>\n </li>\n }\n </ul>\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAKa,wBAAwB,CAAA;AAHrC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC/B,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACDD;;;;AAIG;MAOU,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK;qFAAC;QACvB,IAAA,CAAA,cAAc,GAAG,YAAY,CAAC,wBAAwB;2FAAC;QACvD,IAAA,CAAA,IAAI,GAAG,SAAS,CAAuB,MAAM;iFAAC;AACxD,IAAA;8GAJY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,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libs/mintplayer-ng-bootstrap/tab-control/src/generated/tab-page.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/tab-control.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/tab-control.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/index.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["// GENERATED from the tab-control manifest (tab-page) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, viewChild } from '@angular/core';\nimport { type TabPageInputs } from '@mintplayer/ui-core/tab-control';\nimport { BsTabControlComponent } from './tab-control.component.generated';\n\n/** The `header` slot of `<bs-tab-page>`: `<ng-template bsTabPageHeader>` or `*bsTabPageHeader`. The tab's content: any markup, not just text. */\n@Directive({ selector: '[bsTabPageHeader]' })\nexport class BsTabPageHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * One page of a tab control. Its `header` slot fills the tab, its content the pane.\n *\n * Renders nothing itself: the parent that collects it renders its slots (default, header).\n */\n@Component({\n selector: 'bs-tab-page',\n template: '<ng-template #lent><ng-content /></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsTabPageComponent {\n readonly tabId = input<TabPageInputs['tabId']>(null);\n readonly disabled = input<TabPageInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n private readonly headerSlot = contentChild(BsTabPageHeaderDirective);\n private readonly defaultSlot = viewChild<TemplateRef<unknown>>('lent');\n /** The nearest parent that collects this element; a nested one of the same kind owns it, not an outer one. */\n readonly contentParent = inject(BsTabControlComponent, { optional: true });\n /** What a parent's content query reads from this element. */\n readonly contentChild = computed(() => ({ inputs: ({ tabId: this.tabId(), disabled: this.disabled() }), within: null }));\n /** The slots this element lends the parent that renders them. */\n readonly contentSlots = computed(() => ({ default: this.defaultSlot(), header: this.headerSlot()?.templateRef }));\n}\n","// GENERATED from the tab-control manifest (tab-control) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, contentChildren, inject, input, model } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tabControlCore, type TabControlInputs, tabControlScopedStyles } from '@mintplayer/ui-core/tab-control';\nimport { BsTabPageComponent } from './tab-page.component.generated';\nimport { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\n\n/**\n * Bootstrap nav-tabs over one native radio per page (#458). `activeTab` is two-way: the shown\n * page's `tabId`, or its position.\n *\n * The server-rendered page is a working tab control with JavaScript off: the checked radio shows\n * its pane through CSS. Once hydrated the labels become APG tabs (roving tabindex, automatic\n * activation; Left/Right, Home/End) and the radios leave the tab order.\n */\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTabControlComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly activeTab = model<TabControlInputs['activeTab']>(null);\n readonly border = input<TabControlInputs['border'], unknown>(true, { transform: booleanAttribute });\n readonly selectFirstTab = input<TabControlInputs['selectFirstTab'], unknown>(true, { transform: booleanAttribute });\n readonly tabsPosition = input<TabControlInputs['tabsPosition']>('top');\n\n private readonly query_pages = contentChildren(BsTabPageComponent, { descendants: true });\n private readonly content_pages = computed(() => this.query_pages().filter((c) => c.contentParent === this));\n /** The slots each content query's declarations lend the template (<content-slot>). */\n protected readonly contentSlots = computed(() => ({ pages: this.content_pages().map((c): ReturnType<BsTabPageComponent['contentSlots']> | undefined => c.contentSlots()) }));\n readonly #core = useCore(tabControlCore, { inputs: () => ({ activeTab: this.activeTab(), border: this.border(), selectFirstTab: this.selectFirstTab(), tabsPosition: this.tabsPosition(), pages: this.content_pages().map((c) => c.contentChild()) }), idPrefix: 'bs-tab-control', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tab-control' }), models: { activeTab: this.activeTab } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order }); useScopedStyles('tab-control', tabControlScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/tab-control/src/templates/tab-control.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (e of p_view.entries; track e.key) {\n <input data-mps=\"tab-control\" [mpProps]=\"e.radio\" [checked]=\"e.checked\">\n}\n@if (!p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<div data-mps=\"tab-control\" [mpProps]=\"p_view.content\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <div data-mps=\"tab-control\" [mpProps]=\"e.pane\">\n @if (contentSlots().pages[i]?.default; as lent_pages_default) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_default\" />\n }\n </div>\n }\n</div>\n@if (p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<ng-content />\n","// GENERATED from the tab-control manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTabControlComponent } from './tab-control.component.generated';\nexport { BsTabPageComponent, BsTabPageHeaderDirective } from './tab-page.component.generated';\n","// Generated from @mintplayer/ui-core/tab-control (#458 M4, D10).\nexport * from './src/generated';\nexport type { TabControlInputs, TabPageInputs, TabsPosition } from '@mintplayer/ui-core/tab-control';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AAKA;MAEa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC;AACjE,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;kBADpC,SAAS;mBAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE;;AAK5C;;;;AAIG;MAOU,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAyB,IAAI;kFAAC;QAC3C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAqC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACpF,IAAA,CAAA,UAAU,GAAG,YAAY,CAAC,wBAAwB;uFAAC;QACnD,IAAA,CAAA,WAAW,GAAG,SAAS,CAAuB,MAAM;wFAAC;;QAE7D,IAAA,CAAA,a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