@mintplayer/ng-bootstrap 22.32.0 → 22.34.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 +5 -9
  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 +7 -9
  18. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +12 -14
  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 +8 -8
  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 +7 -7
  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 +15 -27
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +6 -10
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +7 -9
  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 +201 -18
  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 +13 -15
  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 +8 -16
  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 +49 -65
  104. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -24
  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 +9 -9
  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 +7 -9
  114. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  115. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +7 -7
  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 +13 -17
  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 +10 -12
  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 +101 -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-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n // The inner native input's change and blur bubble to the host.\n '(change)': 'onChangeEvent($event)',\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n const target = ev.target as HTMLInputElement | null;\n if (!this.onValueChange || target?.type !== 'checkbox') return;\n this.onValueChange(target.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.host.formDisabled.set(isDisabled);\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\n // The inner inputs' focusout bubbles to the group host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` whenever this OR the\n * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().map((cb) => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string[] | null) {\n this.currentValue.set(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().map((cb) => cb.formDisabled.set(isDisabled));\n }\n}\n","import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n checkboxClasses,\n connectCheckbox,\n effectiveIndeterminate,\n type CheckboxInputBag,\n type CheckboxState,\n type ToggleButtonColor,\n} from '@mintplayer/ui-core/checkbox';\nimport { BsIdService, takeHostAria } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport { MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';\nimport { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\n\n/**\n * A native `<input type=checkbox>` in Bootstrap's `.form-check` /\n * `.form-switch` / `.btn-check` markup, rendered by this component's own\n * template (#437): it submits, toggles and announces with JavaScript off,\n * and SSR emits the real control. The ARIA contract comes from\n * `@mintplayer/ui-core/checkbox`; the consumer's `aria-*` / `id` /\n * `tabindex` on `<bs-checkbox>` land on the input.\n */\n@Component({\n // bs-toggle-button is the toggle-button front: the same control, type fixed.\n selector: 'bs-checkbox, bs-toggle-button',\n templateUrl: './checkbox.component.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n private readonly validity = inject(BsControlValidityDirective, { self: true });\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly hostAria = takeHostAria(this.host);\n private readonly id = inject(BsIdService).next('bs-checkbox');\n private readonly inputRef = viewChild<ElementRef<HTMLInputElement>>('input');\n\n type = input<BsCheckboxType>('checkbox');\n /** Button colour of a `toggle_button`; ignored by the other types. */\n color = input<ToggleButtonColor>('primary');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n disabled = input<boolean>(false);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Written by the value accessor and by `[bsCheckboxGroup]` (`setDisabledState`). */\n readonly formDisabled = signal(false);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n readonly checked = computed(() => !!this.isToggled());\n\n /** `<bs-toggle-button>` is a toggle button whatever `[type]` says. */\n private readonly isToggleButtonHost = this.host.localName === 'bs-toggle-button';\n readonly resolvedType = computed<BsCheckboxType>(() => this.isToggleButtonHost ? 'toggle_button' : this.type());\n\n private readonly state = computed<CheckboxState>(() => ({\n type: this.resolvedType(),\n checked: this.checked(),\n indeterminate: effectiveIndeterminate({ type: this.resolvedType(), indeterminate: this.indeterminate() }),\n disabled: this.disabled() || this.formDisabled(),\n required: this.validity.required(),\n invalid: this.validity.invalid(),\n name: this.nameResult(),\n value: this.value(),\n errorText: this.validity.errorText(),\n }));\n\n readonly classes = computed(() => checkboxClasses(this.resolvedType(), this.color(), this.state().invalid));\n\n readonly bags = computed(() => {\n const { 'aria-describedby': describedBy, ...aria } = this.hostAria;\n const bags = connectCheckbox(this.state(), this.id, describedBy);\n const inputBag: CheckboxInputBag = { ...bags.input, ...aria, 'aria-describedby': bags.input['aria-describedby'] };\n return { ...bags, input: inputBag, labelFor: bags.labelFor === null ? null : String(inputBag['id']) };\n });\n\n constructor() {\n // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps=\"checkbox\").\n useBootstrap(bootstrapForms);\n // `indeterminate` has no attribute, so it is a browser-only property write;\n // aria-checked=\"mixed\" in the bag already carries it in the SSR output.\n afterRenderEffect(() => {\n const el = this.inputRef()?.nativeElement;\n if (el) el.indeterminate = this.state().indeterminate;\n });\n }\n\n onChange(ev: Event) {\n // A user toggle always clears the mixed state, natively and here.\n this.isToggled.set((ev.target as HTMLInputElement).checked);\n this.indeterminate.set(false);\n }\n\n}\n","@if (classes().root; as rootClass) {\n <label data-mps=\"checkbox\" [class]=\"rootClass\">\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span data-mps=\"checkbox\" [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input data-mps=\"checkbox\" #input type=\"checkbox\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label data-mps=\"checkbox\" [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div data-mps=\"checkbox\" [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;;;;;AAIA;;;;;AAKG;MAcU,uBAAuB,CAAA;AAbpC,IAAA,WAAA,GAAA;AAeU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA0B3C,IAAA;AArBC,IAAA,aAAa,CAAC,EAAS,EAAA;AACrB,QAAA,MAAM,MAAM,GAAG,EAAE,CAAC,MAAiC;QACnD,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,MAAM,EAAE,IAAI,KAAK,UAAU;YAAE;AACxD,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,QAAA,IAAI,CAAC,aAAa,GAAG,EAAE;IACzB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AAEA,IAAA,UAAU,CAAC,KAAc,EAAA;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;IAChC;AAEA,IAAA,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A,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3D7E;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/checkbox.accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/checkbox.angular.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/generated/checkbox.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/generated/checkbox.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/toggle-button.angular.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/generated/toggle-button.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/checkbox-group.accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/checkbox-group.angular.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/generated/checkbox-group.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/generated/checkbox-group.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, ElementRef, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n/**\n * The `ControlValueAccessor` of a single checkbox or toggle button (a host\n * directive of the generated `bs-checkbox` and `bs-toggle-button`). The value is\n * the checked state.\n */\n@Directive({\n // Applied as a host directive only.\n selector: '[bsCheckboxAccessor]',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsCheckboxValueAccessor), multi: true }],\n host: {\n // The native input's change and blur bubble to the host.\n '(change)': 'onNativeChange($event)',\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsCheckboxValueAccessor implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /** A form control is bound: its value drives the checkbox, over its own `checked`. */\n readonly bound = signal(false);\n /** The checked state as the form control or the user last set it. */\n readonly viewValue = signal(false);\n readonly disabled = signal(false);\n\n private onChange: (value: boolean) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n registerOnChange(fn: (value: boolean) => 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 setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n writeValue(value: boolean | null): void {\n this.viewValue.set(!!value);\n }\n\n onNativeChange(event: Event): void {\n const target = event.target;\n // Only this checkbox's own input: not one projected into its label.\n if (!(target instanceof HTMLInputElement) || target.type !== 'checkbox' || target.parentElement !== this.host) return;\n this.viewValue.set(target.checked);\n this.onChange(target.checked);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { CheckboxInputs } from '@mintplayer/ui-core/checkbox';\nimport { BsCheckboxValueAccessor } from './checkbox.accessor';\n\n/*\n * The Angular extension of the generated `bs-checkbox` (#458 D10 escape hatch):\n * Angular forms. A bound form control drives the checked state, a disabled\n * control disables the input, and the control's validity reaches its ARIA and\n * its message.\n */\n\nexport const hostDirectives = [\n BsCheckboxValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => CheckboxInputs): () => CheckboxInputs {\n const accessor = inject(BsCheckboxValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<CheckboxInputs>(() => {\n const value = inputs();\n return {\n ...value,\n checked: accessor.bound() ? accessor.viewValue() : value.checked,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the checkbox manifest (checkbox) 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 { checkboxCore, type CheckboxInputs, checkboxScopedStyles } from '@mintplayer/ui-core/checkbox';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../checkbox.angular';\n\n/**\n * A native `<input type=checkbox>` in Bootstrap's `.form-check`, `.form-switch` or `.btn-check`\n * markup (#458). It submits, toggles and announces with JavaScript off. `checked` and\n * `indeterminate` are two-way; a user toggle clears the mixed state. Inside a checkbox group it\n * takes the group's name (`<name>[]`) and is checked when its `value` is selected. An\n * `aria-label` on the component, or `inputLabel`, names the input.\n */\n@Component({\n selector: 'bs-checkbox',\n templateUrl: './checkbox.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsCheckboxComponent {\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 type = input<CheckboxInputs['type']>('checkbox');\n readonly color = input<CheckboxInputs['color']>('primary');\n readonly checked = model<CheckboxInputs['checked']>(false);\n readonly name = input<CheckboxInputs['name']>(null);\n readonly value = input<CheckboxInputs['value']>(null);\n readonly disabled = input<CheckboxInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<CheckboxInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<CheckboxInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<CheckboxInputs['errorText']>(null);\n readonly inputLabel = input<CheckboxInputs['inputLabel']>(null);\n readonly indeterminate = model<CheckboxInputs['indeterminate']>(false);\n\n readonly #core = useCore(checkboxCore, { inputs: ext_extendInputs(() => ({ type: this.type(), color: this.color(), checked: this.checked(), name: this.name(), value: this.value(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), indeterminate: this.indeterminate() })), idPrefix: 'bs-checkbox', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'checkbox' }), models: {checked: this.checked, indeterminate: this.indeterminate } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('checkbox', checkboxScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/checkbox/src/templates/checkbox.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<input data-mps=\"checkbox\" [mpProps]=\"p_view.input\" [checked]=\"p_view.checked\" [indeterminate]=\"p_view.indeterminate\" [mpHostAttrs]=\"hostAttrs\">\n<label data-mps=\"checkbox\" [mpProps]=\"p_view.label\">\n <ng-content />\n</label>\n@if (p_view.feedback) {\n <div data-mps=\"checkbox\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { ToggleButtonInputs } from '@mintplayer/ui-core/checkbox';\nimport { BsCheckboxValueAccessor } from './checkbox.accessor';\n\n/*\n * The Angular extension of the generated `bs-toggle-button` (#458 D10 escape\n * hatch): the checkbox's, since a toggle button is a checkbox.\n */\n\nexport const hostDirectives = [\n BsCheckboxValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => ToggleButtonInputs): () => ToggleButtonInputs {\n const accessor = inject(BsCheckboxValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<ToggleButtonInputs>(() => {\n const value = inputs();\n return {\n ...value,\n checked: accessor.bound() ? accessor.viewValue() : value.checked,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the checkbox manifest (toggle-button) 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 { checkboxScopedStyles, toggleButtonCore, type ToggleButtonInputs } from '@mintplayer/ui-core/checkbox';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../toggle-button.angular';\n\n/**\n * A single Bootstrap on/off button (#458): a checkbox whose type is fixed to `toggle_button`, an\n * `input.btn-check` + `label.btn` that keeps the native checkbox role. `checked` is two-way.\n */\n@Component({\n selector: 'bs-toggle-button',\n templateUrl: './checkbox.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsToggleButtonComponent {\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 color = input<ToggleButtonInputs['color']>('primary');\n readonly checked = model<ToggleButtonInputs['checked']>(false);\n readonly name = input<ToggleButtonInputs['name']>(null);\n readonly value = input<ToggleButtonInputs['value']>(null);\n readonly disabled = input<ToggleButtonInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<ToggleButtonInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<ToggleButtonInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<ToggleButtonInputs['errorText']>(null);\n readonly inputLabel = input<ToggleButtonInputs['inputLabel']>(null);\n\n readonly #core = useCore(toggleButtonCore, { inputs: ext_extendInputs(() => ({ color: this.color(), checked: this.checked(), name: this.name(), value: this.value(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel() })), idPrefix: 'bs-toggle-button', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'checkbox' }), models: {checked: this.checked } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('checkbox', checkboxScopedStyles);\n }\n}\n","import { Directive, ElementRef, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { groupSelection, ownsCheckbox } from '@mintplayer/ui-core/checkbox';\n\n/**\n * The `ControlValueAccessor` of a checkbox group, shared by the generated\n * `bs-checkbox-group` and the attribute form `[bsCheckboxGroup]` (a host\n * directive of both). The value is the list of the checked checkboxes' values.\n * It reacts only to the checkboxes of its own group (`ownsCheckbox`).\n */\n@Directive({\n // Applied as a host directive only.\n selector: '[bsCheckboxGroupAccessor]',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsCheckboxGroupValueAccessor), multi: true }],\n host: {\n // A native checkbox's change bubbles to the group's element.\n '(change)': 'onNativeChange($event)',\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsCheckboxGroupValueAccessor implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /** A form control is bound: its value drives the group, over the group's own `value`. */\n readonly bound = signal(false);\n /** The selection as the form control or the user last set it. */\n readonly viewValue = signal<readonly string[]>([]);\n readonly disabled = signal(false);\n\n private onChange: (value: string[]) => void = () => undefined;\n onTouched: () => void = () => undefined;\n /** The owner's own write-back of a toggle (`[(value)]` on the attribute form). */\n onPick: (value: string[]) => void = () => undefined;\n\n registerOnChange(fn: (value: string[]) => 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 setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n writeValue(value: readonly string[] | null): void {\n this.viewValue.set(Array.isArray(value) ? value : []);\n }\n\n onNativeChange(event: Event): void {\n if (!ownsCheckbox(this.host, event.target)) return;\n const next = groupSelection(this.host);\n this.viewValue.set(next);\n this.onChange(next);\n this.onPick(next);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { CheckboxGroupInputs } from '@mintplayer/ui-core/checkbox';\nimport { BsCheckboxGroupValueAccessor } from './checkbox-group.accessor';\n\n/*\n * The Angular extension of the generated `bs-checkbox-group` (#458 D10 escape\n * hatch): Angular forms. A bound form control drives the selection, and a\n * disabled control disables the group.\n */\n\nexport const hostDirectives = [BsCheckboxGroupValueAccessor];\n\nexport function extendInputs(inputs: () => CheckboxGroupInputs): () => CheckboxGroupInputs {\n const accessor = inject(BsCheckboxGroupValueAccessor, { self: true });\n return computed<CheckboxGroupInputs>(() => {\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 checkbox manifest (checkbox-group) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { provideCoreContext, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { CHECKBOX_GROUP, checkboxGroupCore, type CheckboxGroupInputs, checkboxScopedStyles } from '@mintplayer/ui-core/checkbox';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../checkbox-group.angular';\n\n/**\n * A `role=group` element around checkboxes (#458). They submit as `<name>[]`, and `value` (two-way)\n * is the list of the checked ones' values. Name it with `aria-label` / `aria-labelledby`. A group\n * nested inside is its own: each group reacts only to its own checkboxes.\n */\n@Component({\n selector: 'bs-checkbox-group',\n templateUrl: './checkbox-group.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideCoreContext(CHECKBOX_GROUP, BsCheckboxGroupComponent)],\n hostDirectives: ext_hostDirectives,\n})\nexport class BsCheckboxGroupComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly name = input<CheckboxGroupInputs['name']>(null);\n readonly value = model<CheckboxGroupInputs['value']>([]);\n readonly disabled = input<CheckboxGroupInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(checkboxGroupCore, { inputs: ext_extendInputs(() => ({ name: this.name(), value: this.value(), disabled: this.disabled() })), idPrefix: 'bs-checkbox-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'checkbox' }), models: {value: this.value } });\n /** What this component hands its content. */\n readonly provided = this.#core.provided;\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('checkbox', checkboxScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/checkbox/src/templates/checkbox-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the checkbox manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsCheckboxComponent } from './checkbox.component.generated';\nexport { BsToggleButtonComponent } from './toggle-button.component.generated';\nexport { BsCheckboxGroupComponent } from './checkbox-group.component.generated';\n","import { computed, Directive, ElementRef, inject, input, model } from '@angular/core';\nimport { coreContextToken } from '@mintplayer/ng-bootstrap/machine';\nimport { CHECKBOX_GROUP, type CheckboxGroupContext } from '@mintplayer/ui-core/checkbox';\nimport { BsCheckboxGroupValueAccessor } from '../../checkbox-group.accessor';\n\n/** Hosts whose own role is load-bearing: a group role would destroy it. */\nconst STRUCTURAL = new Set(['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI']);\n\n/**\n * The attribute form of a checkbox group (Angular only, #458 M4): put it on a\n * host you already have (a `<tbody>` whose rows each hold a checkbox, a `<div>`\n * in a table cell). The `<bs-checkbox>` descendants take its name (`<name>[]`)\n * and selection through DI, so the nearest group wins. Bind `[formControl]` /\n * `[(ngModel)]` / `[(value)]` on the same element.\n *\n * It adds `role=\"group\"` only on a host whose implicit role is generic and that\n * has no role of its own. Use `<bs-checkbox-group>` for a standalone set.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n hostDirectives: [BsCheckboxGroupValueAccessor],\n providers: [{ provide: coreContextToken(CHECKBOX_GROUP), useFactory: () => inject(BsCheckboxGroupDirective).provided }],\n host: {\n // CHECKBOX_GROUP_ATTR, literal for the AOT compiler: the checkboxes find their group by it.\n '[attr.data-checkbox-group]': \"''\",\n '[attr.aria-disabled]': \"disabled() ? 'true' : null\",\n },\n})\nexport class BsCheckboxGroupDirective {\n private readonly accessor = inject(BsCheckboxGroupValueAccessor, { self: true });\n\n /** The group's name: its checkboxes submit as `<name>[]`. */\n readonly name = input<string | null>(null);\n /** The selected checkboxes' values, when no form control is bound. */\n readonly value = model<readonly string[]>([]);\n\n readonly disabled = computed(() => this.accessor.disabled());\n\n /** What the checkboxes read. */\n readonly provided = computed<CheckboxGroupContext>(() => ({\n grouped: true,\n name: this.name(),\n value: this.accessor.bound() ? this.accessor.viewValue() : this.value(),\n disabled: this.disabled(),\n }));\n\n constructor() {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n if (!host.hasAttribute('role') && !STRUCTURAL.has(host.tagName)) host.setAttribute('role', 'group');\n // Keep [(value)] honest: a toggle writes back.\n this.accessor.onPick = (value) => this.value.set(value);\n }\n}\n","// Generated from @mintplayer/ui-core/checkbox (#458 M4, D10): bs-checkbox, bs-toggle-button, bs-checkbox-group.\nexport * from './generated';\nexport * from './directives';\nexport { BsCheckboxValueAccessor } from './checkbox.accessor';\nexport { BsCheckboxGroupValueAccessor } from './checkbox-group.accessor';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["hostDirectives","extendInputs","ext_extendInputs","i1.BsCheckboxValueAccessor","ext_hostDirectives","i1.BsCheckboxGroupValueAccessor"],"mappings":";;;;;;;;;AAGA;;;;AAIG;MAWU,uBAAuB,CAAA;AAVpC,IAAA,WAAA,GAAA;AAWmB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;;QAGxE,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;;QAErB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,KAAK;sFAAC;QACzB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAA6B,MAAM,SAAS;AAC5D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA0BxC,IAAA;AAxBC,IAAA,gBAAgB,CAAC,EAA4B,EAAA;AAC3C,QAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;AACpB,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE;IACpB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AAEA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;AAClC,QAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CA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A,EAAA,4BAAA,EAAA,EAAA,EAAA,SAAA,EAPxB,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,cAAc,CAAC,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,4BAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAO5G,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAXpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,QAAQ,EAAE,iBAAiB;oBAC3B,cAAc,EAAE,CAAC,4BAA4B,CAAC;oBAC9C,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,cAAc,CAAC,EAAE,UAAU,EAAE,MAAM,MAAM,0BAA0B,CAAC,QAAQ,EAAE,CAAC;AACvH,oBAAA,IAAI,EAAE;;AAEJ,wBAAA,4BAA4B,EAAE,IAAI;AAClC,wBAAA,sBAAsB,EAAE,4BAA4B;AACrD,qBAAA;AACF,iBAAA;;;AC5BD;;ACAA;;AAEG;;;;"}
@@ -1,28 +1,38 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
2
+ import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { closeCore, closeScopedStyles } from '@mintplayer/ui-core/close';
4
5
  import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
5
6
 
7
+ // GENERATED from the close manifest (close) by @mintplayer/nx-component-compiler. Do not edit.
8
+ /** Bootstrap's close button: a real `<button class="btn-close">` named by `label`; listen for its native `click`. */
6
9
  class BsCloseComponent {
10
+ #core;
7
11
  constructor() {
8
- /** Accessible name for the close button. Override for localisation. */
9
- this.ariaLabel = input('Close', /* @ts-ignore */
10
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
11
- this.click = output();
12
- // #452: the close partial ships with this component, scoped to the elements it stamps (data-mps="close").
13
- useBootstrap(bootstrapClose);
14
- }
15
- onClose(ev) {
16
- this.click.emit();
17
- ev.stopImmediatePropagation();
12
+ /** The host element. */
13
+ this.elementRef = inject(ElementRef);
14
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
15
+ this.hostAttrs = useHostAttrs();
16
+ this.label = input('Close', /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
18
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
19
+ this.#core = useCore(closeCore, { inputs: () => ({ label: this.label(), disabled: this.disabled() }), idPrefix: 'bs-close', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'close' }) });
20
+ /** The template's props. */
21
+ this.props = this.#core.props;
22
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
23
+ useScopedStyles('close', closeScopedStyles);
18
24
  }
19
25
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
20
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button data-mps=\"close\" type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/close/src/templates/close.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"close\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\"></button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
21
27
  }
22
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, decorators: [{
23
29
  type: Component,
24
- args: [{ selector: 'bs-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button data-mps=\"close\" type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>" }]
25
- }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], click: [{ type: i0.Output, args: ["click"] }] } });
30
+ args: [{ selector: 'bs-close', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/close/src/templates/close.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"close\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\"></button>\n" }]
31
+ }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
32
+
33
+ // GENERATED from the close manifest by @mintplayer/nx-component-compiler. Do not edit.
34
+
35
+ // Generated from @mintplayer/ui-core/close (#458 D10).
26
36
 
27
37
  /**
28
38
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-close.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.ts","../../../../libs/mintplayer-ng-bootstrap/close/src/close.component.html","../../../../libs/mintplayer-ng-bootstrap/close/mintplayer-ng-bootstrap-close.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\n\n@Component({\n selector: 'bs-close',\n templateUrl: './close.component.html',\n styleUrls: ['./close.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCloseComponent {\n constructor() {\n // #452: the close partial ships with this component, scoped to the elements it stamps (data-mps=\"close\").\n useBootstrap(bootstrapClose);\n }\n\n /** Accessible name for the close button. Override for localisation. */\n ariaLabel = input<string>('Close');\n\n click = output<void>();\n\n onClose(ev: MouseEvent) {\n this.click.emit();\n ev.stopImmediatePropagation();\n }\n}\n","<button data-mps=\"close\" type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA;;QAMA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,OAAO;sFAAC;QAElC,IAAA,CAAA,KAAK,GAAG,MAAM,EAAQ;;QANpB,YAAY,CAAC,cAAc,CAAC;IAC9B;AAOA,IAAA,OAAO,CAAC,EAAc,EAAA;AACpB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;QACjB,EAAE,CAAC,wBAAwB,EAAE;IAC/B;8GAdW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,iPCV7B,wIAA4H,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDU/G,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,eAAA,EAGH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,wIAAA,EAAA;;;AERjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-close.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/close/src/generated/close.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/close/src/generated/close.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/close/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/close/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/close/mintplayer-ng-bootstrap-close.ts"],"sourcesContent":["// GENERATED from the close manifest (close) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { closeCore, type CloseInputs, closeScopedStyles } from '@mintplayer/ui-core/close';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\n\n/** Bootstrap's close button: a real `<button class=\"btn-close\">` named by `label`; listen for its native `click`. */\n@Component({\n selector: 'bs-close',\n templateUrl: './close.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCloseComponent {\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 label = input<CloseInputs['label']>('Close');\n readonly disabled = input<CloseInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(closeCore, { inputs: () => ({ label: this.label(), disabled: this.disabled() }), idPrefix: 'bs-close', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'close' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles('close', closeScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/close/src/templates/close.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"close\" [mpProps]=\"p_view.button\" [mpHostAttrs]=\"hostAttrs\"></button>\n","// GENERATED from the close manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsCloseComponent } from './close.component.generated';\n","// Generated from @mintplayer/ui-core/close (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,gBAAgB,CAAA;AAUlB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAZS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE;QAEpC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAuB,OAAO;kFAAC;QAC5C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAmC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAE1F,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,SA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AAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,WAEX,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oQAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -24,10 +24,10 @@ class BsCodeSnippetComponent {
24
24
  ...(ngDevMode ? [{ debugName: "theme" }] : /* istanbul ignore next */ []));
25
25
  this.wrap = input(false, { ...(ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
26
26
  this.lineNumbers = input(false, { ...(ngDevMode ? { debugName: "lineNumbers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
27
- this.startLine = input(1, { ...(ngDevMode ? { debugName: "startLine" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
27
+ this.startLine = input(1, { ...(ngDevMode ? { debugName: "startLine" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? 1 : numberAttribute(v)) });
28
28
  this.annotations = input(null, /* @ts-ignore */
29
29
  ...(ngDevMode ? [{ debugName: "annotations" }] : /* istanbul ignore next */ []));
30
- this.activeLine = input(null, { ...(ngDevMode ? { debugName: "activeLine" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
30
+ this.activeLine = input(null, { ...(ngDevMode ? { debugName: "activeLine" } : /* istanbul ignore next */ {}), transform: (v) => (v == null || v === '' ? null : numberAttribute(v)) });
31
31
  this.lineHref = input(null, /* @ts-ignore */
32
32
  ...(ngDevMode ? [{ debugName: "lineHref" }] : /* istanbul ignore next */ []));
33
33
  this.label = input('', /* @ts-ignore */
@@ -35,10 +35,10 @@ class BsCodeSnippetComponent {
35
35
  this.labels = input(null, /* @ts-ignore */
36
36
  ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
37
37
  /** The resolved grammar changed (`code` when the source stays plain). */
38
- this.languagedetected = output();
38
+ this.languageDetected = output();
39
39
  /** A line link was clicked; call `preventDefault()` on it to navigate yourself. */
40
- this.lineactivate = output();
41
- this.#core = useCore(codeSnippetCore, { inputs: () => ({ code: this.code(), language: this.language(), theme: this.theme(), wrap: this.wrap(), lineNumbers: this.lineNumbers(), startLine: this.startLine(), annotations: this.annotations(), activeLine: this.activeLine(), lineHref: this.lineHref(), label: this.label(), labels: this.labels() }), idPrefix: 'bs-code-snippet', outputs: { languageDetected: this.languagedetected, lineActivate: this.lineactivate }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'code-snippet' }) });
40
+ this.lineActivate = output();
41
+ this.#core = useCore(codeSnippetCore, { inputs: () => ({ code: this.code(), language: this.language(), theme: this.theme(), wrap: this.wrap(), lineNumbers: this.lineNumbers(), startLine: this.startLine(), annotations: this.annotations(), activeLine: this.activeLine(), lineHref: this.lineHref(), label: this.label(), labels: this.labels() }), idPrefix: 'bs-code-snippet', outputs: { languageDetected: this.languageDetected, lineActivate: this.lineActivate }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'code-snippet' }) });
42
42
  /** The template's props. */
43
43
  this.props = this.#core.props;
44
44
  useScopedStyles('code-snippet', codeSnippetScopedStyles);
@@ -52,12 +52,12 @@ class BsCodeSnippetComponent {
52
52
  return this.#core.call('whenHighlighted', args);
53
53
  }
54
54
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCodeSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
55
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCodeSnippetComponent, isStandalone: true, selector: "bs-code-snippet", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, lineNumbers: { classPropertyName: "lineNumbers", publicName: "lineNumbers", isSignal: true, isRequired: false, transformFunction: null }, startLine: { classPropertyName: "startLine", publicName: "startLine", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, activeLine: { classPropertyName: "activeLine", publicName: "activeLine", isSignal: true, isRequired: false, transformFunction: null }, lineHref: { classPropertyName: "lineHref", publicName: "lineHref", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { languagedetected: "languagedetected", lineactivate: "lineactivate" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/code-snippet/src/templates/code-snippet.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"code-snippet\" [mpProps]=\"p_view.copy\">\n {{ p_view.copyText }}\n</button>\n<pre data-mps=\"code-snippet\" [mpProps]=\"p_view.pre\">\n <code data-mps=\"code-snippet\" [mpProps]=\"p_view.code\">\n @for (row of p_view.rows; track row.number) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.row\">\n @if (row.link) {\n <a data-mps=\"code-snippet\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.number }}\n </a>\n } @else if (row.gutter) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.gutter\">\n {{ row.number }}\n </span>\n }\n @if (row.mark) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.mark\">\n {{ row.markText }}\n </span>\n }\n @if (row.secondary) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.secondary\">\n {{ row.secondaryText }}\n </span>\n }\n <span data-mps=\"code-snippet\" [mpProps]=\"row.text\" [innerHTML]=\"row.html | mpTrustedHtml\"></span>\n @if (row.description) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.description\">\n {{ row.descriptionText }}\n </span>\n }\n </span>\n }\n </code>\n</pre>\n@if (p_view.keymap) {\n <div data-mps=\"code-snippet\" [mpProps]=\"p_view.keymap\">\n {{ p_view.keymapText }}\n </div>\n}\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.toast\">\n {{ p_view.toastText }}\n</div>\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "pipe", type: MpTrustedHtmlPipe, name: "mpTrustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
55
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCodeSnippetComponent, isStandalone: true, selector: "bs-code-snippet", inputs: { code: { classPropertyName: "code", publicName: "code", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, lineNumbers: { classPropertyName: "lineNumbers", publicName: "lineNumbers", isSignal: true, isRequired: false, transformFunction: null }, startLine: { classPropertyName: "startLine", publicName: "startLine", isSignal: true, isRequired: false, transformFunction: null }, annotations: { classPropertyName: "annotations", publicName: "annotations", isSignal: true, isRequired: false, transformFunction: null }, activeLine: { classPropertyName: "activeLine", publicName: "activeLine", isSignal: true, isRequired: false, transformFunction: null }, lineHref: { classPropertyName: "lineHref", publicName: "lineHref", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { languageDetected: "languageDetected", lineActivate: "lineActivate" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/code-snippet/src/templates/code-snippet.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"code-snippet\" [mpProps]=\"p_view.copy\">\n {{ p_view.copyText }}\n</button>\n<pre data-mps=\"code-snippet\" [mpProps]=\"p_view.pre\">\n <code data-mps=\"code-snippet\" [mpProps]=\"p_view.code\">\n @for (row of p_view.rows; track row.number) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.row\">\n @if (row.link) {\n <a data-mps=\"code-snippet\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.number }}\n </a>\n } @else if (row.gutter) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.gutter\">\n {{ row.number }}\n </span>\n }\n @if (row.mark) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.mark\">\n {{ row.markText }}\n </span>\n }\n @if (row.secondary) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.secondary\">\n {{ row.secondaryText }}\n </span>\n }\n <span data-mps=\"code-snippet\" [mpProps]=\"row.text\" [innerHTML]=\"row.html | mpTrustedHtml\"></span>\n @if (row.description) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.description\">\n {{ row.descriptionText }}\n </span>\n }\n </span>\n }\n </code>\n</pre>\n@if (p_view.keymap) {\n <div data-mps=\"code-snippet\" [mpProps]=\"p_view.keymap\">\n {{ p_view.keymapText }}\n </div>\n}\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.toast\">\n {{ p_view.toastText }}\n</div>\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "pipe", type: MpTrustedHtmlPipe, name: "mpTrustedHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
56
56
  }
57
57
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCodeSnippetComponent, decorators: [{
58
58
  type: Component,
59
59
  args: [{ selector: 'bs-code-snippet', imports: [MpPropsDirective, MpTrustedHtmlPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/code-snippet/src/templates/code-snippet.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"code-snippet\" [mpProps]=\"p_view.copy\">\n {{ p_view.copyText }}\n</button>\n<pre data-mps=\"code-snippet\" [mpProps]=\"p_view.pre\">\n <code data-mps=\"code-snippet\" [mpProps]=\"p_view.code\">\n @for (row of p_view.rows; track row.number) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.row\">\n @if (row.link) {\n <a data-mps=\"code-snippet\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.number }}\n </a>\n } @else if (row.gutter) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.gutter\">\n {{ row.number }}\n </span>\n }\n @if (row.mark) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.mark\">\n {{ row.markText }}\n </span>\n }\n @if (row.secondary) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.secondary\">\n {{ row.secondaryText }}\n </span>\n }\n <span data-mps=\"code-snippet\" [mpProps]=\"row.text\" [innerHTML]=\"row.html | mpTrustedHtml\"></span>\n @if (row.description) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.description\">\n {{ row.descriptionText }}\n </span>\n }\n </span>\n }\n </code>\n</pre>\n@if (p_view.keymap) {\n <div data-mps=\"code-snippet\" [mpProps]=\"p_view.keymap\">\n {{ p_view.keymapText }}\n </div>\n}\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.toast\">\n {{ p_view.toastText }}\n</div>\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n" }]
60
- }], ctorParameters: () => [], propDecorators: { code: [{ type: i0.Input, args: [{ isSignal: true, alias: "code", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], lineNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineNumbers", required: false }] }], startLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLine", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], activeLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeLine", required: false }] }], lineHref: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineHref", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], languagedetected: [{ type: i0.Output, args: ["languagedetected"] }], lineactivate: [{ type: i0.Output, args: ["lineactivate"] }] } });
60
+ }], ctorParameters: () => [], propDecorators: { code: [{ type: i0.Input, args: [{ isSignal: true, alias: "code", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], lineNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineNumbers", required: false }] }], startLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLine", required: false }] }], annotations: [{ type: i0.Input, args: [{ isSignal: true, alias: "annotations", required: false }] }], activeLine: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeLine", required: false }] }], lineHref: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineHref", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], languageDetected: [{ type: i0.Output, args: ["languageDetected"] }], lineActivate: [{ type: i0.Output, args: ["lineActivate"] }] } });
61
61
 
62
62
  // GENERATED from the code-snippet manifest by @mintplayer/nx-component-compiler. Do not edit.
63
63
 
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-code-snippet.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/generated/code-snippet.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/generated/code-snippet.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/mintplayer-ng-bootstrap-code-snippet.ts"],"sourcesContent":["// GENERATED from the code-snippet manifest (code-snippet) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type CodeLineActivation, codeSnippetCore, type CodeSnippetInputs, type CodeSnippetMethods, codeSnippetScopedStyles } from '@mintplayer/ui-core/code-snippet';\n\n/**\n * A code listing with lazy syntax highlighting, a copy button, optional line numbers and per-line annotations.\n *\n * The server renders the escaped source, so it reads with JavaScript off; highlighting follows hydration\n * and the copy button is disabled until then. Annotation kinds are classes (`annotation-<kind>`) on the row.\n */\n@Component({\n selector: 'bs-code-snippet',\n templateUrl: './code-snippet.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCodeSnippetComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly code = input<CodeSnippetInputs['code']>('');\n readonly language = input<CodeSnippetInputs['language']>('');\n readonly theme = input<CodeSnippetInputs['theme']>('auto');\n readonly wrap = input<CodeSnippetInputs['wrap'], unknown>(false, { transform: booleanAttribute });\n readonly lineNumbers = input<CodeSnippetInputs['lineNumbers'], unknown>(false, { transform: booleanAttribute });\n readonly startLine = input<CodeSnippetInputs['startLine'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as CodeSnippetInputs['startLine'] });\n readonly annotations = input<CodeSnippetInputs['annotations']>(null);\n readonly activeLine = input<CodeSnippetInputs['activeLine'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as CodeSnippetInputs['activeLine'] });\n readonly lineHref = input<CodeSnippetInputs['lineHref']>(null);\n readonly label = input<CodeSnippetInputs['label']>('');\n readonly labels = input<CodeSnippetInputs['labels']>(null);\n /** The resolved grammar changed (`code` when the source stays plain). */\n readonly languagedetected = output<string>();\n /** A line link was clicked; call `preventDefault()` on it to navigate yourself. */\n readonly lineactivate = output<CodeLineActivation>();\n\n readonly #core = useCore(codeSnippetCore, { inputs: () => ({ code: this.code(), language: this.language(), theme: this.theme(), wrap: this.wrap(), lineNumbers: this.lineNumbers(), startLine: this.startLine(), annotations: this.annotations(), activeLine: this.activeLine(), lineHref: this.lineHref(), label: this.label(), labels: this.labels() }), idPrefix: 'bs-code-snippet', outputs: { languageDetected: this.languagedetected, lineActivate: this.lineactivate }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'code-snippet' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('code-snippet', codeSnippetScopedStyles);\n }\n\n /** Scroll a line into view. */\n scrollToLine(...args: Parameters<CodeSnippetMethods['scrollToLine']>): ReturnType<CodeSnippetMethods['scrollToLine']> {\n return this.#core.call('scrollToLine', args) as ReturnType<CodeSnippetMethods['scrollToLine']>;\n }\n\n /** Settles once the in-flight highlight has been applied. */\n whenHighlighted(...args: Parameters<CodeSnippetMethods['whenHighlighted']>): ReturnType<CodeSnippetMethods['whenHighlighted']> {\n return this.#core.call('whenHighlighted', args) as ReturnType<CodeSnippetMethods['whenHighlighted']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/code-snippet/src/templates/code-snippet.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"code-snippet\" [mpProps]=\"p_view.copy\">\n {{ p_view.copyText }}\n</button>\n<pre data-mps=\"code-snippet\" [mpProps]=\"p_view.pre\">\n <code data-mps=\"code-snippet\" [mpProps]=\"p_view.code\">\n @for (row of p_view.rows; track row.number) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.row\">\n @if (row.link) {\n <a data-mps=\"code-snippet\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.number }}\n </a>\n } @else if (row.gutter) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.gutter\">\n {{ row.number }}\n </span>\n }\n @if (row.mark) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.mark\">\n {{ row.markText }}\n </span>\n }\n @if (row.secondary) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.secondary\">\n {{ row.secondaryText }}\n </span>\n }\n <span data-mps=\"code-snippet\" [mpProps]=\"row.text\" [innerHTML]=\"row.html | mpTrustedHtml\"></span>\n @if (row.description) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.description\">\n {{ row.descriptionText }}\n </span>\n }\n </span>\n }\n </code>\n</pre>\n@if (p_view.keymap) {\n <div data-mps=\"code-snippet\" [mpProps]=\"p_view.keymap\">\n {{ p_view.keymapText }}\n </div>\n}\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.toast\">\n {{ p_view.toastText }}\n</div>\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n","// GENERATED from the code-snippet manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsCodeSnippetComponent } from './code-snippet.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;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ng-bootstrap-code-snippet.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/generated/code-snippet.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/generated/code-snippet.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/code-snippet/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/code-snippet/mintplayer-ng-bootstrap-code-snippet.ts"],"sourcesContent":["// GENERATED from the code-snippet manifest (code-snippet) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, MpTrustedHtmlPipe, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type CodeLineActivation, codeSnippetCore, type CodeSnippetInputs, type CodeSnippetMethods, codeSnippetScopedStyles } from '@mintplayer/ui-core/code-snippet';\n\n/**\n * A code listing with lazy syntax highlighting, a copy button, optional line numbers and per-line annotations.\n *\n * The server renders the escaped source, so it reads with JavaScript off; highlighting follows hydration\n * and the copy button is disabled until then. Annotation kinds are classes (`annotation-<kind>`) on the row.\n */\n@Component({\n selector: 'bs-code-snippet',\n templateUrl: './code-snippet.view.generated.html',\n imports: [MpPropsDirective, MpTrustedHtmlPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCodeSnippetComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly code = input<CodeSnippetInputs['code']>('');\n readonly language = input<CodeSnippetInputs['language']>('');\n readonly theme = input<CodeSnippetInputs['theme']>('auto');\n readonly wrap = input<CodeSnippetInputs['wrap'], unknown>(false, { transform: booleanAttribute });\n readonly lineNumbers = input<CodeSnippetInputs['lineNumbers'], unknown>(false, { transform: booleanAttribute });\n readonly startLine = input<CodeSnippetInputs['startLine'], unknown>(1, { transform: (v: unknown) => (v == null || v === '' ? 1 : numberAttribute(v)) as CodeSnippetInputs['startLine'] });\n readonly annotations = input<CodeSnippetInputs['annotations']>(null);\n readonly activeLine = input<CodeSnippetInputs['activeLine'], unknown>(null, { transform: (v: unknown) => (v == null || v === '' ? null : numberAttribute(v)) as CodeSnippetInputs['activeLine'] });\n readonly lineHref = input<CodeSnippetInputs['lineHref']>(null);\n readonly label = input<CodeSnippetInputs['label']>('');\n readonly labels = input<CodeSnippetInputs['labels']>(null);\n /** The resolved grammar changed (`code` when the source stays plain). */\n readonly languageDetected = output<string>();\n /** A line link was clicked; call `preventDefault()` on it to navigate yourself. */\n readonly lineActivate = output<CodeLineActivation>();\n\n readonly #core = useCore(codeSnippetCore, { inputs: () => ({ code: this.code(), language: this.language(), theme: this.theme(), wrap: this.wrap(), lineNumbers: this.lineNumbers(), startLine: this.startLine(), annotations: this.annotations(), activeLine: this.activeLine(), lineHref: this.lineHref(), label: this.label(), labels: this.labels() }), idPrefix: 'bs-code-snippet', outputs: { languageDetected: this.languageDetected, lineActivate: this.lineActivate }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'code-snippet' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('code-snippet', codeSnippetScopedStyles);\n }\n\n /** Scroll a line into view. */\n scrollToLine(...args: Parameters<CodeSnippetMethods['scrollToLine']>): ReturnType<CodeSnippetMethods['scrollToLine']> {\n return this.#core.call('scrollToLine', args) as ReturnType<CodeSnippetMethods['scrollToLine']>;\n }\n\n /** Settles once the in-flight highlight has been applied. */\n whenHighlighted(...args: Parameters<CodeSnippetMethods['whenHighlighted']>): ReturnType<CodeSnippetMethods['whenHighlighted']> {\n return this.#core.call('whenHighlighted', args) as ReturnType<CodeSnippetMethods['whenHighlighted']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/code-snippet/src/templates/code-snippet.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"code-snippet\" [mpProps]=\"p_view.copy\">\n {{ p_view.copyText }}\n</button>\n<pre data-mps=\"code-snippet\" [mpProps]=\"p_view.pre\">\n <code data-mps=\"code-snippet\" [mpProps]=\"p_view.code\">\n @for (row of p_view.rows; track row.number) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.row\">\n @if (row.link) {\n <a data-mps=\"code-snippet\" [mpProps]=\"row.link\" [attr.href]=\"row.href\">\n {{ row.number }}\n </a>\n } @else if (row.gutter) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.gutter\">\n {{ row.number }}\n </span>\n }\n @if (row.mark) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.mark\">\n {{ row.markText }}\n </span>\n }\n @if (row.secondary) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.secondary\">\n {{ row.secondaryText }}\n </span>\n }\n <span data-mps=\"code-snippet\" [mpProps]=\"row.text\" [innerHTML]=\"row.html | mpTrustedHtml\"></span>\n @if (row.description) {\n <span data-mps=\"code-snippet\" [mpProps]=\"row.description\">\n {{ row.descriptionText }}\n </span>\n }\n </span>\n }\n </code>\n</pre>\n@if (p_view.keymap) {\n <div data-mps=\"code-snippet\" [mpProps]=\"p_view.keymap\">\n {{ p_view.keymapText }}\n </div>\n}\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.toast\">\n {{ p_view.toastText }}\n</div>\n<div data-mps=\"code-snippet\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</div>\n","// GENERATED from the code-snippet manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsCodeSnippetComponent } from './code-snippet.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAKA;;;;;AAKG;MAOU,sBAAsB,CAAA;AAoBxB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAtBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAA4B,EAAE;iFAAC;QAC3C,IAAA,CAAA,QAAQ,G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