@mintplayer/ng-bootstrap 22.32.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 (230) hide show
  1. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  3. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  5. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  7. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
  8. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
  10. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  11. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
  12. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  13. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  14. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  15. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
  16. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  17. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +6 -8
  18. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  20. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  21. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  22. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  25. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
  26. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  27. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
  28. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  29. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  30. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  31. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  32. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  33. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  34. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +12 -24
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
  40. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  41. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  42. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  43. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  44. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  45. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
  46. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  47. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  48. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
  50. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  51. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
  52. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  53. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
  54. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  55. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
  56. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  57. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
  58. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  59. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +199 -16
  60. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  62. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  63. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
  64. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  66. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  67. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
  68. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
  69. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
  70. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  71. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
  72. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  73. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
  74. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  75. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
  76. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  77. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
  78. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  79. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  80. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  81. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
  82. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
  84. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  85. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  86. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  87. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
  88. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  89. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  90. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  91. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
  92. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  93. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +7 -15
  94. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
  96. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  97. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
  98. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  99. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  100. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  101. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  102. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  103. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  104. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
  106. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  107. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
  108. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  109. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +8 -8
  110. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  111. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  112. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  113. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -7
  114. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  115. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  116. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  117. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
  118. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  119. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
  120. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  121. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
  122. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  123. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  125. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  126. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  127. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  128. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  129. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +9 -13
  130. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  131. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
  132. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
  134. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  135. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  136. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  137. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  138. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  139. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
  140. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  141. package/package.json +2 -22
  142. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
  143. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  144. package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
  145. package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
  146. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
  147. package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
  148. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  149. package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
  150. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  151. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  152. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  153. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  154. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
  155. package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
  156. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  157. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  158. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  159. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  160. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
  161. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
  162. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  163. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  164. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  165. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  166. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  167. package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
  168. package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
  169. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  170. package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
  171. package/types/mintplayer-ng-bootstrap-machine.d.ts +95 -4
  172. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  173. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
  174. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  175. package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
  176. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
  177. package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
  178. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  179. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
  180. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
  181. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  182. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
  183. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
  184. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  185. package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
  186. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  187. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
  188. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  189. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  190. package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
  191. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  192. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  193. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  194. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  195. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
  196. package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
  197. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  198. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
  199. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  200. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
  201. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  202. package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
  203. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  204. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  205. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
  206. package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
  207. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  208. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  209. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  210. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  211. package/calendar-month/package.json +0 -4
  212. package/dropdown-divider/package.json +0 -4
  213. package/dropdown-menu/package.json +0 -4
  214. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  215. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  216. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
  217. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  218. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
  219. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  220. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  221. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  222. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  223. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  224. package/has-overlay/package.json +0 -4
  225. package/no-noscript/package.json +0 -4
  226. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  227. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
  228. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  229. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  230. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-multi-range.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/multi-range/src/value-accessor/multi-range-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/multi-range.angular.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/generated/multi-range.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/generated/multi-range.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/mintplayer-ng-bootstrap-multi-range.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsMultiRangeComponent } from '../generated';\n\nconst same = (a: readonly number[] | null, b: readonly number[] | null) =>\n a === b || (!!a && !!b && a.length === b.length && a.every((v, i) => v === b[i]));\n\n/**\n * The `ControlValueAccessor` of `bs-multi-range` (a host directive of the\n * generated component, see `multi-range.angular.ts`). A bound form control\n * drives the thumbs through `viewValue`; every move the user makes reaches the\n * form through the component's `value` model, which a form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsMultiRangeValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsMultiRangeValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the thumbs: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<number[] | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: number[]) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n // Its outputs fire for the user's moves only: a written or normalised value\n // (a null form value shown as [min, max]) never reaches the form as a change.\n const component = this.injector.get(BsMultiRangeComponent);\n const report = (value: number[]) => {\n if (!this.bound() || same(value, this.viewValue())) return;\n this.viewValue.set([...value]);\n this.onChange([...value]);\n };\n const subs = [component.valueinput.subscribe(report), component.valuechange.subscribe(report)];\n this.destroyRef.onDestroy(() => subs.forEach((sub) => sub.unsubscribe()));\n }\n\n registerOnChange(fn: (value: number[]) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: number[] | null | undefined): void {\n this.viewValue.set(Array.isArray(value) ? [...value] : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { MultiRangeInputs } from '@mintplayer/ui-core/multi-range';\nimport { BsMultiRangeValueAccessor } from './value-accessor/multi-range-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-multi-range` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the thumbs and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsMultiRangeValueAccessor];\n\nexport function extendInputs(inputs: () => MultiRangeInputs): () => MultiRangeInputs {\n const accessor = inject(BsMultiRangeValueAccessor, { self: true });\n return computed<MultiRangeInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the multi-range manifest (multi-range) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { multiRangeCore, type MultiRangeInputs, type MultiRangeMethods, multiRangeScopedStyles } from '@mintplayer/ui-core/multi-range';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../multi-range.angular';\n\n/**\n * A slider with several thumbs on one track (#437): each thumb is a native `<input type=\"range\">`.\n *\n * With JavaScript off the thumbs drag, step and submit under `name`. Thumbs never pass each other;\n * `minDistance` keeps a gap between neighbours. `value` is two-way, one entry per thumb.\n * `valueInput` fires while a thumb moves, `valueChange` when the move is committed.\n */\n@Component({\n selector: 'bs-multi-range',\n templateUrl: './multi-range.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsMultiRangeComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly min = input<MultiRangeInputs['min'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['min'] });\n readonly max = input<MultiRangeInputs['max'], unknown>(100, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['max'] });\n readonly step = input<MultiRangeInputs['step'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['step'] });\n readonly minDistance = input<MultiRangeInputs['minDistance'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['minDistance'] });\n readonly orientation = input<MultiRangeInputs['orientation']>('horizontal');\n readonly disabled = input<MultiRangeInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly name = input<MultiRangeInputs['name']>();\n readonly label = input<MultiRangeInputs['label']>();\n readonly thumbLabels = input<MultiRangeInputs['thumbLabels']>(null);\n readonly formatValue = input<MultiRangeInputs['formatValue']>(null);\n readonly value = model<MultiRangeInputs['value']>(null);\n /** While a thumb moves: every pointer move and key step. */\n readonly valueinput = output<number[]>();\n /** A move committed: the pointer released, or a key step. */\n readonly valuechange = output<number[]>();\n\n readonly #core = useCore(multiRangeCore, { inputs: ext_extendInputs(() => ({ min: this.min(), max: this.max(), step: this.step(), minDistance: this.minDistance(), orientation: this.orientation(), disabled: this.disabled(), name: this.name(), label: this.label(), thumbLabels: this.thumbLabels(), formatValue: this.formatValue(), value: this.value() })), idPrefix: 'bs-multi-range', outputs: { valueInput: this.valueinput, valueChange: this.valuechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'multi-range' }), models: { value: this.value } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('multi-range', multiRangeScopedStyles);\n }\n\n /** A copy of the current values. */\n getValues(...args: Parameters<MultiRangeMethods['getValues']>): ReturnType<MultiRangeMethods['getValues']> {\n return this.#core.call('getValues', args) as ReturnType<MultiRangeMethods['getValues']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/multi-range/src/templates/multi-range.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"multi-range\" [mpProps]=\"p_view.track\">\n @for (fill of p_view.fills; track fill.key) {\n <div data-mps=\"multi-range\" [mpProps]=\"fill.bag\" [style]=\"fill.geometry\"></div>\n }\n @for (thumb of p_view.thumbs; track thumb.key) {\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.slot\">\n <input data-mps=\"multi-range\" [mpProps]=\"thumb.input\">\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.tooltip\" [style]=\"thumb.position\">\n {{ thumb.text }}\n </span>\n </span>\n }\n</div>\n","// GENERATED from the multi-range manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsMultiRangeComponent } from './multi-range.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsMultiRangeValueAccessor","ext_hostDirectives"],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,CAAC,CAA2B,EAAE,CAA2B,KACpE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnF;;;;;AAKG;MAOU,yBAAyB,CAAA;AANtC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;Q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A,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,gBAAgB,EAAA,OAAA,EAEjB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,mtBAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-multi-range.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/multi-range/src/value-accessor/multi-range-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/multi-range.angular.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/generated/multi-range.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/generated/multi-range.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/multi-range/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/multi-range/mintplayer-ng-bootstrap-multi-range.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsMultiRangeComponent } from '../generated';\n\nconst same = (a: readonly number[] | null, b: readonly number[] | null) =>\n a === b || (!!a && !!b && a.length === b.length && a.every((v, i) => v === b[i]));\n\n/**\n * The `ControlValueAccessor` of `bs-multi-range` (a host directive of the\n * generated component, see `multi-range.angular.ts`). A bound form control\n * drives the thumbs through `viewValue`; every move the user makes reaches the\n * form through the component's `value` model, which a form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsMultiRangeValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsMultiRangeValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the thumbs: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<number[] | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: number[]) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n // Its outputs fire for the user's moves only: a written or normalised value\n // (a null form value shown as [min, max]) never reaches the form as a change.\n const component = this.injector.get(BsMultiRangeComponent);\n const report = (value: number[] | null) => {\n if (!value || !this.bound() || same(value, this.viewValue())) return;\n this.viewValue.set([...value]);\n this.onChange([...value]);\n };\n const sub = component.value.subscribe(report);\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: number[]) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: number[] | null | undefined): void {\n this.viewValue.set(Array.isArray(value) ? [...value] : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { MultiRangeInputs } from '@mintplayer/ui-core/multi-range';\nimport { BsMultiRangeValueAccessor } from './value-accessor/multi-range-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-multi-range` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the thumbs and the\n * disabled state.\n */\n\nexport const hostDirectives = [BsMultiRangeValueAccessor];\n\nexport function extendInputs(inputs: () => MultiRangeInputs): () => MultiRangeInputs {\n const accessor = inject(BsMultiRangeValueAccessor, { self: true });\n return computed<MultiRangeInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the multi-range manifest (multi-range) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { multiRangeCore, type MultiRangeInputs, type MultiRangeMethods, multiRangeScopedStyles } from '@mintplayer/ui-core/multi-range';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../multi-range.angular';\n\n/**\n * A slider with several thumbs on one track (#437): each thumb is a native `<input type=\"range\">`.\n *\n * With JavaScript off the thumbs drag, step and submit under `name`. Thumbs never pass each other;\n * `minDistance` keeps a gap between neighbours. `value` is two-way, one entry per thumb.\n * `value` follows every move; `valueCommit` fires when a move is committed.\n */\n@Component({\n selector: 'bs-multi-range',\n templateUrl: './multi-range.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsMultiRangeComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly min = input<MultiRangeInputs['min'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['min'] });\n readonly max = input<MultiRangeInputs['max'], unknown>(100, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['max'] });\n readonly step = input<MultiRangeInputs['step'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['step'] });\n readonly minDistance = input<MultiRangeInputs['minDistance'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as MultiRangeInputs['minDistance'] });\n readonly orientation = input<MultiRangeInputs['orientation']>('horizontal');\n readonly disabled = input<MultiRangeInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly name = input<MultiRangeInputs['name']>();\n readonly label = input<MultiRangeInputs['label']>();\n readonly thumbLabels = input<MultiRangeInputs['thumbLabels']>(null);\n readonly formatValue = input<MultiRangeInputs['formatValue']>(null);\n readonly value = model<MultiRangeInputs['value']>(null);\n /** A move committed: the pointer released, or a key step. `value` itself follows every move. */\n readonly valueCommit = output<number[]>();\n\n readonly #core = useCore(multiRangeCore, { inputs: ext_extendInputs(() => ({ min: this.min(), max: this.max(), step: this.step(), minDistance: this.minDistance(), orientation: this.orientation(), disabled: this.disabled(), name: this.name(), label: this.label(), thumbLabels: this.thumbLabels(), formatValue: this.formatValue(), value: this.value() })), idPrefix: 'bs-multi-range', outputs: { valueCommit: this.valueCommit }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'multi-range' }), models: { value: this.value } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('multi-range', multiRangeScopedStyles);\n }\n\n /** A copy of the current values. */\n getValues(...args: Parameters<MultiRangeMethods['getValues']>): ReturnType<MultiRangeMethods['getValues']> {\n return this.#core.call('getValues', args) as ReturnType<MultiRangeMethods['getValues']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/multi-range/src/templates/multi-range.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"multi-range\" [mpProps]=\"p_view.track\">\n @for (fill of p_view.fills; track fill.key) {\n <div data-mps=\"multi-range\" [mpProps]=\"fill.bag\" [style]=\"fill.geometry\"></div>\n }\n @for (thumb of p_view.thumbs; track thumb.key) {\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.slot\">\n <input data-mps=\"multi-range\" [mpProps]=\"thumb.input\">\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.tooltip\" [style]=\"thumb.position\">\n {{ thumb.text }}\n </span>\n </span>\n }\n</div>\n","// GENERATED from the multi-range manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsMultiRangeComponent } from './multi-range.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsMultiRangeValueAccessor","ext_hostDirectives"],"mappings":";;;;;;AAIA,MAAM,IAAI,GAAG,CAAC,CAA2B,EAAE,CAA2B,KACpE,CAAC,KAAK,CAAC,KAAK,C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,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,yBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpBlC,mtBAeA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDCY,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;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,gBAAgB,EAAA,OAAA,EAEjB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,mtBAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
@@ -58,9 +58,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
58
58
  // GENERATED from the nav manifest by @mintplayer/nx-component-compiler. Do not edit.
59
59
 
60
60
  /**
61
- * Makes a `bs-nav-item`'s link a `.nav-link` of the nav scope, so the nav part
62
- * (`.nav-link:where([data-mps])`) styles it: the consumer writes a plain
63
- * `<a routerLink>`. It runs in the constructor, so the server HTML carries both.
61
+ * Makes a `bs-nav-item`'s link a `.nav-link`, which the nav part reaches through
62
+ * its `.nav[data-mps]` anchor (consumer DOM is never stamped): the consumer writes a plain
63
+ * `<a routerLink>`. It runs in the constructor, so the server HTML carries it.
64
64
  *
65
65
  * Angular selectors cannot say `bs-nav-item > a` (a combinator parses as `a`),
66
66
  * so it matches every anchor and button of a template that imports it and
@@ -73,7 +73,6 @@ class BsNavLinkDirective {
73
73
  const link = inject(ElementRef).nativeElement;
74
74
  const renderer = inject(Renderer2);
75
75
  renderer.addClass(link, NAV_LINK_CLASS);
76
- renderer.setAttribute(link, 'data-mps', 'nav');
77
76
  }
78
77
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
79
78
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsNavLinkDirective, isStandalone: true, selector: "a, button", ngImport: i0 }); }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav-item.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav-item.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/nav-link.directive.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/nav/mintplayer-ng-bootstrap-nav.ts"],"sourcesContent":["// GENERATED from the nav manifest (nav) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navCore, type NavInputs, navScopedStyles } from '@mintplayer/ui-core/nav';\nimport { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\n\n/**\n * Bootstrap's nav: a list of `bs-nav-item`s, plain or as tabs, pills or underline (#452).\n *\n * It ships the nav part, so a page that renders one needs no install of its own.\n */\n@Component({\n selector: 'bs-nav',\n templateUrl: './nav.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly variant = input<NavInputs['variant']>(null);\n readonly fill = input<NavInputs['fill'], unknown>(false, { transform: booleanAttribute });\n readonly justified = input<NavInputs['justified'], unknown>(false, { transform: booleanAttribute });\n readonly cardHeader = input<NavInputs['cardHeader'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(navCore, { inputs: () => ({ variant: this.variant(), fill: this.fill(), justified: this.justified(), cardHeader: this.cardHeader() }), idPrefix: 'bs-nav', hostBag: (props) => ({ ...props.root, 'data-mps': 'nav', role: 'list' }) });\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('nav', navScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/nav/src/templates/nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the nav manifest (nav-item) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navItemCore, navScopedStyles } from '@mintplayer/ui-core/nav';\nimport { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\n\n/** One nav entry around a consumer link, which becomes its `.nav-link`; `class=\"active\"` marks the current one. */\n@Component({\n selector: 'bs-nav-item',\n templateUrl: './nav-item.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavItemComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(navItemCore, { inputs: () => ({ }), idPrefix: 'bs-nav-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'nav', role: 'listitem' }) });\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('nav', navScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/nav/src/templates/nav-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the nav manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsNavComponent } from './nav.component.generated';\nexport { BsNavItemComponent } from './nav-item.component.generated';\n","import { Directive, ElementRef, Renderer2, inject } from '@angular/core';\nimport { NAV_LINK_CLASS } from '@mintplayer/ui-core/nav';\nimport { BsNavItemComponent } from './generated';\n\n/**\n * Makes a `bs-nav-item`'s link a `.nav-link` of the nav scope, so the nav part\n * (`.nav-link:where([data-mps])`) styles it: the consumer writes a plain\n * `<a routerLink>`. It runs in the constructor, so the server HTML carries both.\n *\n * Angular selectors cannot say `bs-nav-item > a` (a combinator parses as `a`),\n * so it matches every anchor and button of a template that imports it and\n * acts only inside a nav item.\n */\n@Directive({ selector: 'a, button' })\nexport class BsNavLinkDirective {\n constructor() {\n if (!inject(BsNavItemComponent, { optional: true })) return;\n const link = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const renderer = inject(Renderer2);\n renderer.addClass(link, NAV_LINK_CLASS);\n renderer.setAttribute(link, 'data-mps', 'nav');\n }\n}\n","// The nav components are generated from @mintplayer/ui-core/nav (PRD #437 D10).\nexport * from './generated';\nexport * from './nav-link.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;;;;AAIG;MAOU,cAAc,CAAA;AAShB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAuB,IAAI;oFAAC;QAC3C,IAAA,CAAA,IAAI,GAAG,KAAK,CAA6B,KAAK,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAChF,IAAA,CAAA,SAAS,GAAG,KAAK,CAAkC,KAAK,iFAAI,SAAS,E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QAAA,EAAA,0JAAA,EAAA;;;AEXjD;;ACIA;;;;;;;;AAQG;MAEU,kBAAkB,CAAA;AAC7B,IAAA,WAAA,GAAA;QACE,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAAE;QACrD,MAAM,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AACtE,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;AAClC,QAAA,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;QACvC,QAAQ,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC;IAChD;8GAPW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,SAAS;mBAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;ACbpC;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav-item.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/nav-item.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/nav/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/nav-link.directive.ts","../../../../libs/mintplayer-ng-bootstrap/nav/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/nav/mintplayer-ng-bootstrap-nav.ts"],"sourcesContent":["// GENERATED from the nav manifest (nav) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navCore, type NavInputs, navScopedStyles } from '@mintplayer/ui-core/nav';\nimport { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\n\n/**\n * Bootstrap's nav: a list of `bs-nav-item`s, plain or as tabs, pills or underline (#452).\n *\n * It ships the nav part, so a page that renders one needs no install of its own.\n */\n@Component({\n selector: 'bs-nav',\n templateUrl: './nav.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly variant = input<NavInputs['variant']>(null);\n readonly fill = input<NavInputs['fill'], unknown>(false, { transform: booleanAttribute });\n readonly justified = input<NavInputs['justified'], unknown>(false, { transform: booleanAttribute });\n readonly cardHeader = input<NavInputs['cardHeader'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(navCore, { inputs: () => ({ variant: this.variant(), fill: this.fill(), justified: this.justified(), cardHeader: this.cardHeader() }), idPrefix: 'bs-nav', hostBag: (props) => ({ ...props.root, 'data-mps': 'nav', role: 'list' }) });\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('nav', navScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/nav/src/templates/nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the nav manifest (nav-item) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navItemCore, navScopedStyles } from '@mintplayer/ui-core/nav';\nimport { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\n\n/** One nav entry around a consumer link, which becomes its `.nav-link`; `class=\"active\"` marks the current one. */\n@Component({\n selector: 'bs-nav-item',\n templateUrl: './nav-item.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavItemComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(navItemCore, { inputs: () => ({ }), idPrefix: 'bs-nav-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'nav', role: 'listitem' }) });\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('nav', navScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/nav/src/templates/nav-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the nav manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsNavComponent } from './nav.component.generated';\nexport { BsNavItemComponent } from './nav-item.component.generated';\n","import { Directive, ElementRef, Renderer2, inject } from '@angular/core';\nimport { NAV_LINK_CLASS } from '@mintplayer/ui-core/nav';\nimport { BsNavItemComponent } from './generated';\n\n/**\n * Makes a `bs-nav-item`'s link a `.nav-link`, which the nav part reaches through\n * its `.nav[data-mps]` anchor (consumer DOM is never stamped): the consumer writes a plain\n * `<a routerLink>`. It runs in the constructor, so the server HTML carries it.\n *\n * Angular selectors cannot say `bs-nav-item > a` (a combinator parses as `a`),\n * so it matches every anchor and button of a template that imports it and\n * acts only inside a nav item.\n */\n@Directive({ selector: 'a, button' })\nexport class BsNavLinkDirective {\n constructor() {\n if (!inject(BsNavItemComponent, { optional: true })) return;\n const link = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const renderer = inject(Renderer2);\n renderer.addClass(link, NAV_LINK_CLASS);\n }\n}\n","// The nav components are generated from @mintplayer/ui-core/nav (PRD #437 D10).\nexport * from './generated';\nexport * from './nav-link.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;;;;AAIG;MAOU,cAAc,CAAA;AAShB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAuB,IAAI;oFAAC;QAC3C,IAAA,CAAA,IAAI,GAAG,KAAK,CAA6B,KAAK,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAChF,IAAA,CAAA,SAAS,GAAG,KAAK,CAAkC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC1F,IAAA,CAAA,UAAU,GAAG,KAAK,CAAmC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE5F,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;;AAE5O,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,KAAK,EAA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eDetectionStrategy, Component } from '@angular/core';
3
- import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
2
+ import { inject, ElementRef, model, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { navbarTogglerCore, navbarTogglerScopedStyles } from '@mintplayer/ui-core/navbar-toggler';
4
5
  import { bootstrapNavbar } from '@mintplayer/ui-core/bootstrap/navbar';
5
6
 
7
+ // GENERATED from the navbar-toggler manifest (navbar-toggler) by @mintplayer/nx-component-compiler. Do not edit.
8
+ /**
9
+ * A hamburger button that morphs into a cross while `open` (two-way). `controls` names the region it
10
+ * shows and hides; with `toggleOnClick` off it only reports state its region owns.
11
+ */
6
12
  class BsNavbarTogglerComponent {
13
+ #core;
7
14
  constructor() {
8
- this.state = model(false, /* @ts-ignore */
9
- ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
10
- this.toggleOnClick = input(true, /* @ts-ignore */
11
- ...(ngDevMode ? [{ debugName: "toggleOnClick" }] : /* istanbul ignore next */ []));
12
- this.ariaLabel = input('Toggle navigation', /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
15
+ /** The host element. */
16
+ this.elementRef = inject(ElementRef);
17
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
18
+ this.hostAttrs = useHostAttrs();
19
+ this.open = model(false, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
21
+ this.toggleOnClick = input(true, { ...(ngDevMode ? { debugName: "toggleOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
22
+ this.label = input('Toggle navigation', /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
14
24
  this.controls = input(null, /* @ts-ignore */
15
25
  ...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
16
- // #452: the navbar partial ships with this component, scoped to the elements it stamps (data-mps="navbar").
17
- useBootstrap(bootstrapNavbar);
18
- }
19
- toggleState() {
20
- if (this.toggleOnClick()) {
21
- this.state.update(v => !v);
22
- }
26
+ this.#core = useCore(navbarTogglerCore, { inputs: () => ({ open: this.open(), toggleOnClick: this.toggleOnClick(), label: this.label(), controls: this.controls() }), idPrefix: 'bs-navbar-toggler', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'navbar-toggler' }), models: { open: this.open } });
27
+ /** The template's props. */
28
+ this.props = this.#core.props;
29
+ useScopedStyles(bootstrapNavbar.key, bootstrapNavbar.css, { order: bootstrapNavbar.order });
30
+ useScopedStyles('navbar-toggler', navbarTogglerScopedStyles);
23
31
  }
24
32
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarTogglerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsNavbarTogglerComponent, isStandalone: true, selector: "bs-navbar-toggler", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, toggleOnClick: { classPropertyName: "toggleOnClick", publicName: "toggleOnClick", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { state: "stateChange" }, ngImport: i0, template: "<button data-mps=\"navbar\"\n type=\"button\"\n class=\"navbar-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div data-mps=\"navbar\"></div>\n <div data-mps=\"navbar\"></div>\n <div data-mps=\"navbar\"></div>\n</button>\n", styles: [":host{align-self:start;top:0;right:0}.navbar-toggler{padding:.75rem 1rem;border:none;background:transparent;cursor:pointer}.navbar-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.navbar-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.navbar-toggler.open>div:nth-of-type(2){opacity:0}.navbar-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsNavbarTogglerComponent, isStandalone: true, selector: "bs-navbar-toggler", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, toggleOnClick: { classPropertyName: "toggleOnClick", publicName: "toggleOnClick", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, controls: { classPropertyName: "controls", publicName: "controls", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar-toggler/src/templates/navbar-toggler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"navbar-toggler\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
34
  }
27
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarTogglerComponent, decorators: [{
28
36
  type: Component,
29
- args: [{ selector: 'bs-navbar-toggler', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-mps=\"navbar\"\n type=\"button\"\n class=\"navbar-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div data-mps=\"navbar\"></div>\n <div data-mps=\"navbar\"></div>\n <div data-mps=\"navbar\"></div>\n</button>\n", styles: [":host{align-self:start;top:0;right:0}.navbar-toggler{padding:.75rem 1rem;border:none;background:transparent;cursor:pointer}.navbar-toggler>div{width:25px;height:2px;background:var(--bs-secondary-color);margin:6px 0;transition:.4s}.navbar-toggler.open>div:nth-of-type(1){-webkit-transform:rotate(-45deg) translate(-7px,5px);transform:rotate(-45deg) translate(-7px,5px)}.navbar-toggler.open>div:nth-of-type(2){opacity:0}.navbar-toggler.open>div:nth-of-type(3){-webkit-transform:rotate(45deg) translate(-6px,-4px);transform:rotate(45deg) translate(-6px,-4px)}\n"] }]
30
- }], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }, { type: i0.Output, args: ["stateChange"] }], toggleOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleOnClick", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }] } });
37
+ args: [{ selector: 'bs-navbar-toggler', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar-toggler/src/templates/navbar-toggler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"navbar-toggler\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n</button>\n" }]
38
+ }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], toggleOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleOnClick", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], controls: [{ type: i0.Input, args: [{ isSignal: true, alias: "controls", required: false }] }] } });
39
+
40
+ // GENERATED from the navbar-toggler manifest by @mintplayer/nx-component-compiler. Do not edit.
41
+
42
+ // Generated from @mintplayer/ui-core/navbar-toggler (#458 D10).
31
43
 
32
44
  /**
33
45
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-navbar-toggler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/src/navbar-toggler/navbar-toggler.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/src/navbar-toggler/navbar-toggler.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/mintplayer-ng-bootstrap-navbar-toggler.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapNavbar } from '@mintplayer/ui-core/bootstrap/navbar';\n\n@Component({\n selector: 'bs-navbar-toggler',\n templateUrl: './navbar-toggler.component.html',\n styleUrls: ['./navbar-toggler.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavbarTogglerComponent {\n constructor() {\n // #452: the navbar partial ships with this component, scoped to the elements it stamps (data-mps=\"navbar\").\n useBootstrap(bootstrapNavbar);\n }\n\n state = model<boolean>(false);\n toggleOnClick = input<boolean>(true);\n ariaLabel = input<string>('Toggle navigation');\n controls = input<string | null>(null);\n\n toggleState() {\n if (this.toggleOnClick()) {\n this.state.update(v => !v);\n }\n }\n}\n","<button data-mps=\"navbar\"\n type=\"button\"\n class=\"navbar-toggler float-start\"\n [class.open]=\"state()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-expanded]=\"state()\"\n [attr.aria-controls]=\"controls()\"\n (click)=\"toggleState()\">\n <div data-mps=\"navbar\"></div>\n <div data-mps=\"navbar\"></div>\n <div data-mps=\"navbar\"></div>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,wBAAwB,CAAA;AACnC,IAAA,WAAA,GAAA;QAKA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,KAAK;kFAAC;QAC7B,IAAA,CAAA,aAAa,GAAG,KAAK,CAAU,IAAI;0FAAC;QACpC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,mBAAmB;sFAAC;QAC9C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI;qFAAC;;QANnC,YAAY,CAAC,eAAe,CAAC;IAC/B;IAOA,WAAW,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;AACxB,YAAA,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5B;IACF;8GAfW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,yoBCVrC,4YAYA,EAAA,MAAA,EAAA,CAAA,gjBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDFa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACE,mBAAmB,EAAA,eAAA,EAGZ,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4YAAA,EAAA,MAAA,EAAA,CAAA,gjBAAA,CAAA,EAAA;;;AERjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-navbar-toggler.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/src/generated/navbar-toggler.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/src/generated/navbar-toggler.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/navbar-toggler/mintplayer-ng-bootstrap-navbar-toggler.ts"],"sourcesContent":["// GENERATED from the navbar-toggler manifest (navbar-toggler) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { navbarTogglerCore, type NavbarTogglerInputs, navbarTogglerScopedStyles } from '@mintplayer/ui-core/navbar-toggler';\nimport { bootstrapNavbar } from '@mintplayer/ui-core/bootstrap/navbar';\n\n/**\n * A hamburger button that morphs into a cross while `open` (two-way). `controls` names the region it\n * shows and hides; with `toggleOnClick` off it only reports state its region owns.\n */\n@Component({\n selector: 'bs-navbar-toggler',\n templateUrl: './navbar-toggler.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavbarTogglerComponent {\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 open = model<NavbarTogglerInputs['open']>(false);\n readonly toggleOnClick = input<NavbarTogglerInputs['toggleOnClick'], unknown>(true, { transform: booleanAttribute });\n readonly label = input<NavbarTogglerInputs['label']>('Toggle navigation');\n readonly controls = input<NavbarTogglerInputs['controls']>(null);\n\n readonly #core = useCore(navbarTogglerCore, { inputs: () => ({ open: this.open(), toggleOnClick: this.toggleOnClick(), label: this.label(), controls: this.controls() }), idPrefix: 'bs-navbar-toggler', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'navbar-toggler' }), models: { open: this.open } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapNavbar.key, bootstrapNavbar.css, { order: bootstrapNavbar.order }); useScopedStyles('navbar-toggler', navbarTogglerScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/navbar-toggler/src/templates/navbar-toggler.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"navbar-toggler\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n <span data-mps=\"navbar-toggler\" [mpProps]=\"p_view.line\"></span>\n</button>\n","// GENERATED from the navbar-toggler manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsNavbarTogglerComponent } from './navbar-toggler.component.generated';\n","// Generated from @mintplayer/ui-core/navbar-toggler (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;;;AAGG;MAOU,wBAAwB,CAAA;AAY1B,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAdS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE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MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,IAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChBrC,sfAOA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMY,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,sfAAA,EAAA;;;AEdjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,14 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, TemplateRef, Directive, ElementRef, input, model, output, contentChild, computed, ChangeDetectionStrategy, Component, booleanAttribute, signal, Renderer2, RendererStyleFlags2, PLATFORM_ID, afterNextRender } from '@angular/core';
2
+ import { inject, TemplateRef, Directive, ElementRef, input, model, contentChild, computed, ChangeDetectionStrategy, Component, booleanAttribute, Renderer2, RendererStyleFlags2, PLATFORM_ID, afterNextRender } from '@angular/core';
3
3
  import { NgTemplateOutlet, isPlatformServer } from '@angular/common';
4
4
  import { useCore, useScopedStyles, MpPropsDirective, provideCoreContext } from '@mintplayer/ng-bootstrap/machine';
5
- import { navbarCore, navbarScopedStyles, navbarNavCore, navbarItemCore, navbarDropdownCore, NAVBAR_NESTING } from '@mintplayer/ui-core/navbar';
6
- import { bootstrapDropdown } from '@mintplayer/ui-core/bootstrap/dropdown';
5
+ import { navbarCore, navbarScopedStyles, navbarNavCore, DROPDOWN_NESTING, navbarItemCore } from '@mintplayer/ui-core/navbar';
7
6
  import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';
8
7
  import { bootstrapNavbar } from '@mintplayer/ui-core/bootstrap/navbar';
9
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
10
- import * as i1 from '@angular/router';
11
- import { RouterLinkActive } from '@angular/router';
12
8
 
13
9
  // GENERATED from the navbar manifest (navbar) by @mintplayer/nx-component-compiler. Do not edit.
14
10
  /** The `brand` slot of `<bs-navbar>`: `<ng-template bsNavbarBrand>` or `*bsNavbarBrand`. */
@@ -58,8 +54,6 @@ class BsNavbarComponent {
58
54
  ...(ngDevMode ? [undefined, { debugName: "positioning" }] : /* istanbul ignore next */ []));
59
55
  this.labels = input(/* @ts-ignore */
60
56
  ...(ngDevMode ? [undefined, { debugName: "labels" }] : /* istanbul ignore next */ []));
61
- /** The collapse opened or closed through the bar. */
62
- this.expandedchange = output();
63
57
  this.brandSlot = contentChild(BsNavbarBrandDirective, /* @ts-ignore */
64
58
  ...(ngDevMode ? [{ debugName: "brandSlot" }] : /* istanbul ignore next */ []));
65
59
  this.togglerSlot = contentChild(BsNavbarTogglerDirective, /* @ts-ignore */
@@ -67,10 +61,9 @@ class BsNavbarComponent {
67
61
  /** The template's named slots. */
68
62
  this.slots = computed(() => ({ brand: this.brandSlot()?.templateRef, toggler: this.togglerSlot()?.templateRef }), /* @ts-ignore */
69
63
  ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
70
- this.#core = useCore(navbarCore, { inputs: () => ({ breakpoint: this.breakpoint(), color: this.color(), expanded: this.expanded(), positioning: this.positioning(), labels: this.labels() }), idPrefix: 'bs-navbar', outputs: { expandedChange: this.expandedchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'navbar', role: 'navigation' }), models: { expanded: this.expanded } });
64
+ this.#core = useCore(navbarCore, { inputs: () => ({ breakpoint: this.breakpoint(), color: this.color(), expanded: this.expanded(), positioning: this.positioning(), labels: this.labels() }), idPrefix: 'bs-navbar', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'navbar', role: 'navigation' }), models: { expanded: this.expanded } });
71
65
  /** The template's props. */
72
66
  this.props = this.#core.props;
73
- useScopedStyles(bootstrapDropdown.key, bootstrapDropdown.css, { order: bootstrapDropdown.order });
74
67
  useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order });
75
68
  useScopedStyles(bootstrapNavbar.key, bootstrapNavbar.css, { order: bootstrapNavbar.order });
76
69
  useScopedStyles('navbar', navbarScopedStyles);
@@ -80,15 +73,18 @@ class BsNavbarComponent {
80
73
  return this.#core.call('toggle', args);
81
74
  }
82
75
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
83
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsNavbarComponent, isStandalone: true, selector: "bs-navbar", inputs: { breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange", expandedchange: "expandedchange" }, queries: [{ propertyName: "brandSlot", first: true, predicate: BsNavbarBrandDirective, descendants: true, isSignal: true }, { propertyName: "togglerSlot", first: true, predicate: BsNavbarTogglerDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_brand = props().brand;\n@let p_view = props().view;\n@if (slots().brand) {\n <div data-mps=\"navbar\" [mpProps]=\"p_brand\">\n @if (slots().brand; as slot_brand) {\n <ng-container [ngTemplateOutlet]=\"slot_brand\" />\n }\n </div>\n}\n<input data-mps=\"navbar\" [mpProps]=\"p_view.toggle\">\n<label data-mps=\"navbar\" [mpProps]=\"p_view.toggler\">\n @if (slots().toggler; as slot_toggler) {\n <ng-container [ngTemplateOutlet]=\"slot_toggler\" />\n } @else {\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n }\n</label>\n<div data-mps=\"navbar\" [mpProps]=\"p_view.collapse\">\n <div data-mps=\"navbar\" [mpProps]=\"p_view.inner\">\n <ng-content />\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
76
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsNavbarComponent, isStandalone: true, selector: "bs-navbar", inputs: { breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, queries: [{ propertyName: "brandSlot", first: true, predicate: BsNavbarBrandDirective, descendants: true, isSignal: true }, { propertyName: "togglerSlot", first: true, predicate: BsNavbarTogglerDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_brand = props().brand;\n@let p_view = props().view;\n@if (slots().brand) {\n <div data-mps=\"navbar\" [mpProps]=\"p_brand\">\n @if (slots().brand; as slot_brand) {\n <ng-container [ngTemplateOutlet]=\"slot_brand\" />\n }\n </div>\n}\n<input data-mps=\"navbar\" [mpProps]=\"p_view.toggle\">\n<label data-mps=\"navbar\" [mpProps]=\"p_view.toggler\">\n @if (slots().toggler; as slot_toggler) {\n <ng-container [ngTemplateOutlet]=\"slot_toggler\" />\n } @else {\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n }\n</label>\n<div data-mps=\"navbar\" [mpProps]=\"p_view.collapse\">\n <div data-mps=\"navbar\" [mpProps]=\"p_view.inner\">\n <ng-content />\n </div>\n</div>\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 }); }
84
77
  }
85
78
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarComponent, decorators: [{
86
79
  type: Component,
87
80
  args: [{ selector: 'bs-navbar', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_brand = props().brand;\n@let p_view = props().view;\n@if (slots().brand) {\n <div data-mps=\"navbar\" [mpProps]=\"p_brand\">\n @if (slots().brand; as slot_brand) {\n <ng-container [ngTemplateOutlet]=\"slot_brand\" />\n }\n </div>\n}\n<input data-mps=\"navbar\" [mpProps]=\"p_view.toggle\">\n<label data-mps=\"navbar\" [mpProps]=\"p_view.toggler\">\n @if (slots().toggler; as slot_toggler) {\n <ng-container [ngTemplateOutlet]=\"slot_toggler\" />\n } @else {\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n <span data-mps=\"navbar\" [mpProps]=\"p_view.bar\"></span>\n }\n</label>\n<div data-mps=\"navbar\" [mpProps]=\"p_view.collapse\">\n <div data-mps=\"navbar\" [mpProps]=\"p_view.inner\">\n <ng-content />\n </div>\n</div>\n" }]
88
- }], ctorParameters: () => [], propDecorators: { breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], expandedchange: [{ type: i0.Output, args: ["expandedchange"] }], brandSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsNavbarBrandDirective), { isSignal: true }] }], togglerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsNavbarTogglerDirective), { isSignal: true }] }] } });
81
+ }], ctorParameters: () => [], propDecorators: { breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], brandSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsNavbarBrandDirective), { isSignal: true }] }], togglerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsNavbarTogglerDirective), { isSignal: true }] }] } });
89
82
 
90
83
  // GENERATED from the navbar manifest (navbar-nav) by @mintplayer/nx-component-compiler. Do not edit.
91
- /** A group of navbar items; `align="end"` pushes it to the far side when the bar is wide. */
84
+ /**
85
+ * A group of navbar items; `align="end"` pushes it to the far side when the bar is wide.
86
+ * A `bs-dropdown-menu` in it is a navbar dropdown: a native `<details>`, so it opens with JavaScript off.
87
+ */
92
88
  class BsNavbarNavComponent {
93
89
  #core;
94
90
  constructor() {
@@ -97,23 +93,24 @@ class BsNavbarNavComponent {
97
93
  this.align = input('start', /* @ts-ignore */
98
94
  ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
99
95
  this.#core = useCore(navbarNavCore, { inputs: () => ({ align: this.align() }), idPrefix: 'bs-navbar-nav', hostBag: (props) => ({ ...props.bag, 'data-mps': 'navbar' }) });
96
+ /** What this component hands its content. */
97
+ this.provided = this.#core.provided;
100
98
  /** The template's props. */
101
99
  this.props = this.#core.props;
102
- useScopedStyles(bootstrapDropdown.key, bootstrapDropdown.css, { order: bootstrapDropdown.order });
103
100
  useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order });
104
101
  useScopedStyles(bootstrapNavbar.key, bootstrapNavbar.css, { order: bootstrapNavbar.order });
105
102
  useScopedStyles('navbar', navbarScopedStyles);
106
103
  }
107
104
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
108
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsNavbarNavComponent, isStandalone: true, selector: "bs-navbar-nav", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
105
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsNavbarNavComponent, isStandalone: true, selector: "bs-navbar-nav", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCoreContext(DROPDOWN_NESTING, BsNavbarNavComponent)], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
109
106
  }
110
107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarNavComponent, decorators: [{
111
108
  type: Component,
112
- args: [{ selector: 'bs-navbar-nav', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
109
+ args: [{ selector: 'bs-navbar-nav', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, providers: [provideCoreContext(DROPDOWN_NESTING, BsNavbarNavComponent)], template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-nav.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
113
110
  }], ctorParameters: () => [], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }] } });
114
111
 
115
112
  // GENERATED from the navbar manifest (navbar-item) by @mintplayer/nx-component-compiler. Do not edit.
116
- /** One entry around a consumer link: a `.nav-item` in a nav group, a `.dropdown-item` in a dropdown. */
113
+ /** One `.nav-item` around a consumer link in a nav group; inside a dropdown use `bs-dropdown-item`. */
117
114
  class BsNavbarItemComponent {
118
115
  #core;
119
116
  constructor() {
@@ -124,7 +121,6 @@ class BsNavbarItemComponent {
124
121
  this.#core = useCore(navbarItemCore, { inputs: () => ({ active: this.active(), disabled: this.disabled() }), idPrefix: 'bs-navbar-item', hostBag: (props) => ({ ...props.bag, 'data-mps': 'navbar' }) });
125
122
  /** The template's props. */
126
123
  this.props = this.#core.props;
127
- useScopedStyles(bootstrapDropdown.key, bootstrapDropdown.css, { order: bootstrapDropdown.order });
128
124
  useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order });
129
125
  useScopedStyles(bootstrapNavbar.key, bootstrapNavbar.css, { order: bootstrapNavbar.order });
130
126
  useScopedStyles('navbar', navbarScopedStyles);
@@ -137,71 +133,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
137
133
  args: [{ selector: 'bs-navbar-item', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
138
134
  }], ctorParameters: () => [], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
139
135
 
140
- /*
141
- * The Angular extension of the generated `bs-navbar-dropdown` (PRD #437 D10
142
- * escape hatch): a dropdown whose content holds the active route's link marks
143
- * its trigger, the way Bootstrap marks an active nav link.
144
- */
145
- /** `RouterLinkActive` on the host watches the `routerLink`s in the content. */
146
- const hostDirectives = [RouterLinkActive];
147
- function extendInputs(inputs) {
148
- const rla = inject(RouterLinkActive, { self: true });
149
- // No class on this host: the state goes on the summary through the bag.
150
- rla.routerLinkActive = [];
151
- const routeActive = signal(false, /* @ts-ignore */
152
- ...(ngDevMode ? [{ debugName: "routeActive" }] : /* istanbul ignore next */ []));
153
- rla.isActiveChange.pipe(takeUntilDestroyed()).subscribe((active) => routeActive.set(active));
154
- return () => {
155
- const value = inputs();
156
- return { ...value, active: value.active || routeActive() };
157
- };
158
- }
159
-
160
- // GENERATED from the navbar manifest (navbar-dropdown) by @mintplayer/nx-component-compiler. Do not edit.
161
- /** The `labelTemplate` slot of `<bs-navbar-dropdown>`: `<ng-template bsNavbarDropdownLabelTemplate>` or `*bsNavbarDropdownLabelTemplate`. */
162
- class BsNavbarDropdownLabelTemplateDirective {
163
- constructor() {
164
- this.templateRef = inject(TemplateRef);
165
- }
166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarDropdownLabelTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
167
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsNavbarDropdownLabelTemplateDirective, isStandalone: true, selector: "[bsNavbarDropdownLabelTemplate]", ngImport: i0 }); }
168
- }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarDropdownLabelTemplateDirective, decorators: [{
170
- type: Directive,
171
- args: [{ selector: '[bsNavbarDropdownLabelTemplate]' }]
172
- }] });
173
- /** A navbar dropdown, or a submenu when nested: a native `<details>`, so it opens with JavaScript off. */
174
- class BsNavbarDropdownComponent {
175
- #core;
176
- constructor() {
177
- /** The host element. */
178
- this.elementRef = inject(ElementRef);
179
- this.label = input(/* @ts-ignore */
180
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
181
- this.active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
182
- this.labelTemplateSlot = contentChild(BsNavbarDropdownLabelTemplateDirective, /* @ts-ignore */
183
- ...(ngDevMode ? [{ debugName: "labelTemplateSlot" }] : /* istanbul ignore next */ []));
184
- /** The template's named slots. */
185
- this.slots = computed(() => ({ labelTemplate: this.labelTemplateSlot()?.templateRef }), /* @ts-ignore */
186
- ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
187
- this.#core = useCore(navbarDropdownCore, { inputs: extendInputs(() => ({ label: this.label(), active: this.active() })), idPrefix: 'bs-navbar-dropdown' });
188
- /** What this component hands its content. */
189
- this.provided = this.#core.provided;
190
- /** The template's props. */
191
- this.props = this.#core.props;
192
- useScopedStyles(bootstrapDropdown.key, bootstrapDropdown.css, { order: bootstrapDropdown.order });
193
- useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order });
194
- useScopedStyles(bootstrapNavbar.key, bootstrapNavbar.css, { order: bootstrapNavbar.order });
195
- useScopedStyles('navbar', navbarScopedStyles);
196
- }
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
198
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsNavbarDropdownComponent, isStandalone: true, selector: "bs-navbar-dropdown", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCoreContext(NAVBAR_NESTING, BsNavbarDropdownComponent)], queries: [{ propertyName: "labelTemplateSlot", first: true, predicate: BsNavbarDropdownLabelTemplateDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.RouterLinkActive }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-dropdown.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_label = props().label;\n<details data-mps=\"navbar\" [mpProps]=\"p_view.details\" #root>\n <summary data-mps=\"navbar\" [mpProps]=\"p_view.summary\">\n @if (slots().labelTemplate; as slot_labelTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_labelTemplate\" />\n } @else {\n {{ p_label }}\n }\n </summary>\n <div data-mps=\"navbar\" [mpProps]=\"p_view.panel\">\n <ng-content />\n </div>\n</details>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
199
- }
200
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarDropdownComponent, decorators: [{
201
- type: Component,
202
- args: [{ selector: 'bs-navbar-dropdown', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [provideCoreContext(NAVBAR_NESTING, BsNavbarDropdownComponent)], hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/navbar/src/templates/navbar-dropdown.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_label = props().label;\n<details data-mps=\"navbar\" [mpProps]=\"p_view.details\" #root>\n <summary data-mps=\"navbar\" [mpProps]=\"p_view.summary\">\n @if (slots().labelTemplate; as slot_labelTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_labelTemplate\" />\n } @else {\n {{ p_label }}\n }\n </summary>\n <div data-mps=\"navbar\" [mpProps]=\"p_view.panel\">\n <ng-content />\n </div>\n</details>\n" }]
203
- }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], labelTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsNavbarDropdownLabelTemplateDirective), { isSignal: true }] }] } });
204
-
205
136
  // GENERATED from the navbar manifest by @mintplayer/nx-component-compiler. Do not edit.
206
137
 
207
138
  /** The offset before the bar is measured: Bootstrap's default navbar is 3.5rem tall. */
@@ -260,10 +191,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
260
191
  }], ctorParameters: () => [], propDecorators: { navbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsNavbarContent", required: true }] }] } });
261
192
 
262
193
  /**
263
- * Makes a `bs-navbar-item`'s link in the bar a `.nav-link` of the navbar scope,
264
- * so Bootstrap's nav and navbar parts style it: the consumer writes a plain
265
- * `<a routerLink>`. In a dropdown panel the item itself is the `.dropdown-item`
266
- * and its link stays plain. It runs in the constructor, so the server HTML carries both.
194
+ * Makes a `bs-navbar-item`'s link a `.nav-link`, which Bootstrap's nav and
195
+ * navbar parts reach through the stamped `.navbar-nav` (consumer DOM is never stamped): the consumer writes a plain
196
+ * `<a routerLink>`. (Inside a dropdown the entries are `bs-dropdown-item`s,
197
+ * whose links stay plain.) It runs in the constructor, so the server HTML carries it.
267
198
  *
268
199
  * Angular selectors cannot say `bs-navbar-item > a` (a combinator parses as
269
200
  * `a`), so it matches every anchor and button of a template that imports it
@@ -271,12 +202,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
271
202
  */
272
203
  class BsNavbarLinkDirective {
273
204
  constructor() {
274
- if (!inject(BsNavbarItemComponent, { optional: true }) || inject(BsNavbarDropdownComponent, { optional: true }))
205
+ if (!inject(BsNavbarItemComponent, { optional: true }))
275
206
  return;
276
207
  const link = inject(ElementRef).nativeElement;
277
208
  const renderer = inject(Renderer2);
278
209
  renderer.addClass(link, 'nav-link');
279
- renderer.setAttribute(link, 'data-mps', 'navbar');
280
210
  }
281
211
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsNavbarLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
282
212
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsNavbarLinkDirective, isStandalone: true, selector: "a, button", ngImport: i0 }); }
@@ -292,5 +222,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
292
222
  * Generated bundle index. Do not edit.
293
223
  */
294
224
 
295
- export { BsNavbarBrandDirective, BsNavbarComponent, BsNavbarContentDirective, BsNavbarDropdownComponent, BsNavbarDropdownLabelTemplateDirective, BsNavbarItemComponent, BsNavbarLinkDirective, BsNavbarNavComponent, BsNavbarTogglerDirective };
225
+ export { BsNavbarBrandDirective, BsNavbarComponent, BsNavbarContentDirective, BsNavbarItemComponent, BsNavbarLinkDirective, BsNavbarNavComponent, BsNavbarTogglerDirective };
296
226
  //# sourceMappingURL=mintplayer-ng-bootstrap-navbar.mjs.map