@mintplayer/ng-bootstrap 22.31.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  25. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  27. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  29. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
  31. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
  33. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  35. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  37. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  39. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
  41. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
  43. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
  45. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  47. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  49. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
  51. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  57. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
  59. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
  61. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
  63. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
  65. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
  67. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  69. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
  71. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  73. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
  77. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
  79. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
  81. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
  83. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
  85. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  87. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
  89. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
  91. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  93. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
  95. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  97. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
  99. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
  101. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
  103. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
  105. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  107. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  109. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  111. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
  113. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
  115. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
  117. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  119. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
  121. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  123. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  125. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
  127. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
  129. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
  131. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  135. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  137. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
  139. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
  141. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
  143. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  145. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  147. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
  149. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  150. package/nav/package.json +4 -0
  151. package/package.json +11 -28
  152. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  153. package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
  154. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  155. package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
  156. package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
  157. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
  158. package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
  159. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  160. package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
  161. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  162. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  163. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  164. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  165. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
  166. package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
  167. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  168. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  169. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  170. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  171. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
  172. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
  173. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  174. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  175. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  176. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  177. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  178. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  179. package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
  180. package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
  181. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  182. package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
  183. package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
  184. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  185. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
  186. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  187. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  188. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
  189. package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
  190. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  191. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
  192. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
  193. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  194. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
  195. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
  196. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  197. package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
  198. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  199. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
  200. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  201. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  202. package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
  203. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  204. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  205. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  206. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  207. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
  208. package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
  209. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  210. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
  211. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  212. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  213. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
  214. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  215. package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
  216. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  217. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  218. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
  219. package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
  220. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  221. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  222. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  223. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  224. package/calendar-month/package.json +0 -4
  225. package/container/package.json +0 -4
  226. package/dropdown-divider/package.json +0 -4
  227. package/dropdown-menu/package.json +0 -4
  228. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  229. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  230. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  231. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  232. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  233. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  234. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
  235. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  236. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  237. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  238. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  239. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  240. package/has-overlay/package.json +0 -4
  241. package/no-noscript/package.json +0 -4
  242. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  243. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  244. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  245. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  246. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  247. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1,11 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, inject, DestroyRef, input, ElementRef, Renderer2, effect, Directive, PLATFORM_ID, DOCUMENT, InjectionToken, makeEnvironmentProviders, TransferState, untracked, makeStateKey, PendingTasks, computed, afterNextRender, TemplateRef, ViewContainerRef, Pipe } from '@angular/core';
3
- import { isPlatformServer } from '@angular/common';
4
- import { writeScopedStyleTag, installLightStyles } from '@mintplayer/ui-core/scoped-styles';
5
- import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
2
+ import { signal, inject, DestroyRef, input, ElementRef, Renderer2, effect, Directive, PLATFORM_ID, DOCUMENT, InjectionToken, makeEnvironmentProviders, TransferState, untracked, makeStateKey, PendingTasks, computed, afterNextRender, TemplateRef, ViewContainerRef, Pipe, ApplicationRef, Injector, EnvironmentInjector, createComponent } from '@angular/core';
3
+ import { isPlatformServer, DOCUMENT as DOCUMENT$1, isPlatformBrowser } from '@angular/common';
4
+ import { bootstrapInstallOptions } from '@mintplayer/ui-core/bootstrap';
5
+ import { writeScopedStyleTag, installLightStyles, SCOPED_STYLE_MARKER } from '@mintplayer/ui-core/scoped-styles';
6
+ import { takeHostAria, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
6
7
  import { coreRuntime } from '@mintplayer/ui-core/component';
7
8
  import { DEFAULT_PREFETCH_TIMEOUT, runPrefetch } from '@mintplayer/ui-core/transfer-state';
8
9
  import { DomSanitizer } from '@angular/platform-browser';
10
+ import { createBodyHost, removeBodyHost } from '@mintplayer/ui-core/overlay';
9
11
 
10
12
  /**
11
13
  * Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only
@@ -49,18 +51,34 @@ class MpPropsDirective {
49
51
  constructor() {
50
52
  this.mpProps = input(null, /* @ts-ignore */
51
53
  ...(ngDevMode ? [{ debugName: "mpProps" }] : /* istanbul ignore next */ []));
54
+ /**
55
+ * The host's forwarded `aria-*` / `id` / `tabindex` (`useHostAttrs`), written over
56
+ * the bag: the consumer's word wins. Except an `id` the bag sets itself, which
57
+ * the core's own references (a `label for`, an `aria-controls`) point at: then
58
+ * the consumer's id goes back to the host instead.
59
+ */
60
+ this.mpHostAttrs = input(null, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "mpHostAttrs" }] : /* istanbul ignore next */ []));
52
62
  this.element = inject(ElementRef).nativeElement;
53
63
  this.renderer = inject(Renderer2);
54
64
  this.applied = {};
55
- effect(() => (this.applied = applyPropBag(this.renderer, this.element, this.applied, this.mpProps() ?? {})));
65
+ effect(() => {
66
+ const bag = this.mpProps() ?? {};
67
+ const forwarded = this.mpHostAttrs();
68
+ const { id, ...rest } = forwarded?.attrs ?? {};
69
+ const ownId = bag['id'] !== null && bag['id'] !== undefined;
70
+ if (forwarded && ownId && id)
71
+ this.renderer.setAttribute(forwarded.host, 'id', String(id));
72
+ this.applied = applyPropBag(this.renderer, this.element, this.applied, { ...bag, ...rest, ...(id && !ownId ? { id } : {}) });
73
+ });
56
74
  }
57
75
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpPropsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
58
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: MpPropsDirective, isStandalone: true, selector: "[mpProps]", inputs: { mpProps: { classPropertyName: "mpProps", publicName: "mpProps", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
76
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: MpPropsDirective, isStandalone: true, selector: "[mpProps],[mpHostAttrs]", inputs: { mpProps: { classPropertyName: "mpProps", publicName: "mpProps", isSignal: true, isRequired: false, transformFunction: null }, mpHostAttrs: { classPropertyName: "mpHostAttrs", publicName: "mpHostAttrs", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
59
77
  }
60
78
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpPropsDirective, decorators: [{
61
79
  type: Directive,
62
- args: [{ selector: '[mpProps]' }]
63
- }], ctorParameters: () => [], propDecorators: { mpProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpProps", required: false }] }] } });
80
+ args: [{ selector: '[mpProps],[mpHostAttrs]' }]
81
+ }], ctorParameters: () => [], propDecorators: { mpProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpProps", required: false }] }], mpHostAttrs: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpHostAttrs", required: false }] }] } });
64
82
  /** Write `next` onto `element`, removing what `previous` set and `next` drops. Returns `next`. */
65
83
  function applyPropBag(renderer, element, previous, next) {
66
84
  Object.keys(previous)
@@ -93,15 +111,26 @@ function applyPropBag(renderer, element, previous, next) {
93
111
  *
94
112
  * Call from the component's constructor (an injection context).
95
113
  */
96
- function useScopedStyles(key, cssText) {
114
+ function useScopedStyles(key, cssText, options = {}) {
97
115
  if (isPlatformServer(inject(PLATFORM_ID))) {
98
- writeScopedStyleTag(inject(DOCUMENT), key, cssText);
116
+ writeScopedStyleTag(inject(DOCUMENT), key, cssText, options);
99
117
  }
100
118
  else {
101
119
  repairEventReplayBodyPaths(inject(DOCUMENT));
102
- installLightStyles(key, cssText);
120
+ installLightStyles(key, cssText, options);
103
121
  }
104
122
  }
123
+ /**
124
+ * Install Bootstrap parts (`@mintplayer/ui-core/bootstrap`, #452) from an
125
+ * Angular front, the same way as {@link useScopedStyles}: once per page, and
126
+ * written into the server `DOCUMENT` during SSR. A component passes the scoped
127
+ * parts its markup uses; a page that renders raw Bootstrap markup passes the
128
+ * `…Page` variants, which replace a scoped copy under the same key. Call from
129
+ * the constructor (an injection context).
130
+ */
131
+ function useBootstrap(...parts) {
132
+ parts.forEach((part) => useScopedStyles(part.key, part.css, bootstrapInstallOptions(part)));
133
+ }
105
134
  /**
106
135
  * Angular SSR defect (platform-server 22): `_annotateForHydration` records the
107
136
  * hydration paths, and only THEN `insertEventRecordScript` adds the replay
@@ -131,13 +160,17 @@ function repairEventReplayBodyPaths(doc) {
131
160
  *
132
161
  * constructor() { useHostProps(() => this.view().root); }
133
162
  */
134
- function useHostProps(bag) {
135
- const element = inject(ElementRef).nativeElement;
163
+ function useHostProps(bag, target) {
164
+ const host = inject(ElementRef).nativeElement;
136
165
  const renderer = inject(Renderer2);
137
166
  let applied = {};
138
167
  let classes = [];
139
168
  effect(() => {
169
+ // `target`: another element than the host (a structural directive's anchor), not placed yet in the constructor.
170
+ const element = target ? target() : host;
140
171
  const { class: className, ...rest } = bag() ?? {};
172
+ if (!element)
173
+ return;
141
174
  const next = typeof className === 'string' ? className.split(/\s+/).filter(Boolean) : [];
142
175
  classes.filter((name) => !next.includes(name)).forEach((name) => renderer.removeClass(element, name));
143
176
  next.filter((name) => !classes.includes(name)).forEach((name) => renderer.addClass(element, name));
@@ -145,6 +178,19 @@ function useHostProps(bag) {
145
178
  applied = applyPropBag(renderer, element, applied, rest);
146
179
  });
147
180
  }
181
+ /**
182
+ * Host transparency for a compiled template whose role lives on an inner
183
+ * `mp-attrs` node (#458): a consumer's `aria-*`, `id` and `tabindex` on the
184
+ * host belong on that node, which binds the result as `[mpHostAttrs]`. `id`
185
+ * and `tabindex` are moved (no duplicate id, no dead tab stop on the host);
186
+ * `aria-*` are copied. Read once, in a field initializer, so the server render
187
+ * already carries them where AT reads them. A consumer `role` is never taken:
188
+ * the inner node's role is the core's contract.
189
+ */
190
+ function useHostAttrs() {
191
+ const host = inject(ElementRef).nativeElement;
192
+ return { host, attrs: takeHostAria(host) };
193
+ }
148
194
 
149
195
  const MACHINE_SSR_OPTIONS = new InjectionToken('mp-machine-ssr-options', {
150
196
  factory: () => ({ prefetchTimeout: DEFAULT_PREFETCH_TIMEOUT }),
@@ -174,11 +220,13 @@ function provideCoreContext(context, component) {
174
220
  * where `hostBag` is given, else the host's first element child.
175
221
  */
176
222
  function useCore(core, options) {
177
- const element = inject(ElementRef).nativeElement;
223
+ const host = inject(ElementRef).nativeElement;
224
+ const element = () => (options.element ? options.element() : host);
178
225
  const consumed = core.consume ? inject(coreContextToken(core.consume), { optional: true, skipSelf: true }) : null;
179
226
  const id = inject(BsIdService).next(options.idPrefix);
180
227
  // Read once: a host attribute is static content, and Angular does not observe it.
181
- const label = element.getAttribute('aria-label');
228
+ let label;
229
+ const readLabel = () => (label === undefined ? (label = element()?.getAttribute('aria-label') ?? null) : label);
182
230
  const hydrated = signal(false, /* @ts-ignore */
183
231
  ...(ngDevMode ? [{ debugName: "hydrated" }] : /* istanbul ignore next */ []));
184
232
  // The state is seeded at its first read, in the first change detection: the
@@ -243,7 +291,7 @@ function useCore(core, options) {
243
291
  id,
244
292
  hydrated: hydrated(),
245
293
  context: (consumed ? consumed() : core.consume?.defaultValue),
246
- label,
294
+ label: readLabel(),
247
295
  api: () => runtime.api,
248
296
  }), /* @ts-ignore */
249
297
  ...(ngDevMode ? [{ debugName: "args" }] : /* istanbul ignore next */ []));
@@ -253,7 +301,7 @@ function useCore(core, options) {
253
301
  ...(ngDevMode ? [{ debugName: "provided" }] : /* istanbul ignore next */ []));
254
302
  const hostBag = options.hostBag ?? core.host?.bind(core);
255
303
  if (hostBag)
256
- useHostProps(() => hostBag(props()));
304
+ useHostProps(() => hostBag(props()), options.element);
257
305
  const runtime = coreRuntime(core, {
258
306
  inputs: () => untracked(options.inputs),
259
307
  state: () => untracked(state),
@@ -264,7 +312,7 @@ function useCore(core, options) {
264
312
  });
265
313
  afterNextRender(() => {
266
314
  hydrated.set(true);
267
- const root = options.hostBag ? element : element.firstElementChild;
315
+ const root = options.element ? element() : options.hostBag ? host : host.firstElementChild;
268
316
  if (root)
269
317
  runtime.attachTo(root);
270
318
  });
@@ -357,9 +405,156 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
357
405
  args: [{ name: 'mpTrustedHtml' }]
358
406
  }] });
359
407
 
408
+ /**
409
+ * Render an `<ng-template>` into a body host (#458 §4.4): a `div` appended to
410
+ * the end of `<body>`, outside every clipping ancestor. The compiled form of a
411
+ * view's `<teleport to="body">`, and the twin of React's `createPortal`, Vue's
412
+ * `<Teleport to="body">` and Lit's `bodyTeleport()`.
413
+ *
414
+ * The view is created DETACHED (`TemplateRef.createEmbeddedView` +
415
+ * `ApplicationRef.attachView`), never in this anchor's container, so the
416
+ * component's hydration info holds no view whose nodes are elsewhere. The
417
+ * server renders it into its body host; the client removes that copy (same
418
+ * deterministic id) and renders its own, outside hydration. Change detection
419
+ * reaches it through the application; it reads the declaring component's
420
+ * members, because an embedded view keeps its declaration context.
421
+ *
422
+ * @if (open()) { <ng-template mpBodyTeleport>…</ng-template> }
423
+ */
424
+ class MpBodyTeleportDirective {
425
+ constructor() {
426
+ this.template = inject(TemplateRef);
427
+ this.appRef = inject(ApplicationRef);
428
+ this.document = inject(DOCUMENT);
429
+ this.anchor = inject(ViewContainerRef).element.nativeElement;
430
+ /** Identical on the server and on hydration: the client replaces the server's host by it. */
431
+ this.id = inject(BsIdService).next('mp-overlay');
432
+ this.view = null;
433
+ this.host = null;
434
+ // An effect runs during change detection on the server too, where afterNextRender never does.
435
+ effect(() => untracked(() => {
436
+ if (this.view)
437
+ return;
438
+ this.host = createBodyHost(this.document, this.id, this.anchor.parentElement);
439
+ this.view = this.template.createEmbeddedView({});
440
+ this.appRef.attachView(this.view);
441
+ this.view.detectChanges();
442
+ this.view.rootNodes.forEach((node) => this.host.appendChild(node));
443
+ }));
444
+ inject(DestroyRef).onDestroy(() => {
445
+ if (this.view) {
446
+ this.appRef.detachView(this.view);
447
+ this.view.destroy();
448
+ }
449
+ this.host?.remove();
450
+ this.view = this.host = null;
451
+ });
452
+ }
453
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpBodyTeleportDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
454
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: MpBodyTeleportDirective, isStandalone: true, selector: "[mpBodyTeleport]", ngImport: i0 }); }
455
+ }
456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpBodyTeleportDirective, decorators: [{
457
+ type: Directive,
458
+ args: [{ selector: '[mpBodyTeleport]' }]
459
+ }], ctorParameters: () => [] });
460
+
461
+ /**
462
+ * A compiled template's `<instance-style :name :css />` (#458 M4): one instance's own
463
+ * sheet, the tile manager's server layout rules. Angular strips `<style>` from
464
+ * templates, so the sheet goes into the document head under `name`, on the server
465
+ * (where it ships in the HTML) and on the client alike. A null `css` removes it, as
466
+ * does destroying the component.
467
+ */
468
+ class MpInstanceStyleDirective {
469
+ constructor() {
470
+ this.mpInstanceStyle = input(null, /* @ts-ignore */
471
+ ...(ngDevMode ? [{ debugName: "mpInstanceStyle" }] : /* istanbul ignore next */ []));
472
+ this.mpInstanceStyleName = input.required(/* @ts-ignore */
473
+ ...(ngDevMode ? [{ debugName: "mpInstanceStyleName" }] : /* istanbul ignore next */ []));
474
+ const doc = inject(DOCUMENT$1);
475
+ let written = null;
476
+ const remove = () => {
477
+ if (written !== null)
478
+ doc.head?.querySelector(`style[${SCOPED_STYLE_MARKER}="${written}"]`)?.remove();
479
+ written = null;
480
+ };
481
+ effect(() => {
482
+ const css = this.mpInstanceStyle();
483
+ const name = this.mpInstanceStyleName();
484
+ if (written !== name)
485
+ remove();
486
+ if (!css)
487
+ return remove();
488
+ writeScopedStyleTag(doc, name, css, { replace: true });
489
+ written = name;
490
+ });
491
+ inject(DestroyRef).onDestroy(remove);
492
+ }
493
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpInstanceStyleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
494
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: MpInstanceStyleDirective, isStandalone: true, selector: "ng-container[mpInstanceStyle]", inputs: { mpInstanceStyle: { classPropertyName: "mpInstanceStyle", publicName: "mpInstanceStyle", isSignal: true, isRequired: false, transformFunction: null }, mpInstanceStyleName: { classPropertyName: "mpInstanceStyleName", publicName: "mpInstanceStyleName", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
495
+ }
496
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: MpInstanceStyleDirective, decorators: [{
497
+ type: Directive,
498
+ args: [{ selector: 'ng-container[mpInstanceStyle]' }]
499
+ }], ctorParameters: () => [], propDecorators: { mpInstanceStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpInstanceStyle", required: false }] }], mpInstanceStyleName: [{ type: i0.Input, args: [{ isSignal: true, alias: "mpInstanceStyleName", required: true }] }] } });
500
+
501
+ /**
502
+ * A structural directive's anchor: the element its template sits in
503
+ * (`<button>Save<span *bsTooltip>…</span></button>` → the button). The
504
+ * directive's own node is a comment; read this lazily, once the view placed it.
505
+ */
506
+ function anchorElement() {
507
+ const node = inject(ElementRef).nativeElement;
508
+ return () => node.parentElement;
509
+ }
510
+ /**
511
+ * The Angular half of an overlay directive (#458 M6, tooltip and popover): while
512
+ * `inputs()` is not null, `component` renders into a body host with the
513
+ * directive's template as its content (`<ng-content>`), and gets those inputs.
514
+ * The panel is created detached and attached to the application, so it lives
515
+ * outside every clipping ancestor and the anchor's DOM stays the consumer's.
516
+ * Browser only: an overlay cannot be open in server HTML.
517
+ */
518
+ function useOverlayComponent(component, inputs, anchor) {
519
+ const template = inject(TemplateRef);
520
+ const injector = inject(Injector);
521
+ const environmentInjector = inject(EnvironmentInjector);
522
+ const appRef = inject(ApplicationRef);
523
+ const doc = inject(DOCUMENT);
524
+ const id = `mp-overlay-${inject(BsIdService).next('bs-overlay')}`;
525
+ if (!isPlatformBrowser(inject(PLATFORM_ID)))
526
+ return;
527
+ let panel = null;
528
+ let content = null;
529
+ const close = () => {
530
+ panel?.destroy();
531
+ content?.destroy();
532
+ panel = content = null;
533
+ removeBodyHost(doc, id);
534
+ };
535
+ effect(() => {
536
+ const next = inputs();
537
+ untracked(() => {
538
+ if (!next)
539
+ return close();
540
+ if (!panel) {
541
+ content = template.createEmbeddedView(null, injector);
542
+ appRef.attachView(content);
543
+ panel = createComponent(component, { environmentInjector, elementInjector: injector, projectableNodes: [content.rootNodes] });
544
+ Object.entries(next).map(([name, value]) => panel?.setInput(name, value));
545
+ createBodyHost(doc, id, anchor()).appendChild(panel.location.nativeElement);
546
+ appRef.attachView(panel.hostView);
547
+ return;
548
+ }
549
+ Object.entries(next).map(([name, value]) => panel?.setInput(name, value));
550
+ });
551
+ });
552
+ inject(DestroyRef).onDestroy(close);
553
+ }
554
+
360
555
  /**
361
556
  * Generated bundle index. Do not edit.
362
557
  */
363
558
 
364
- export { MACHINE_SSR_OPTIONS, MpPropsDirective, MpTeleportDirective, MpTrustedHtmlPipe, applyPropBag, coreContextToken, machineSignal, provideCoreContext, provideMachineSsr, repairEventReplayBodyPaths, useCore, useHostProps, useScopedStyles };
559
+ export { MACHINE_SSR_OPTIONS, MpBodyTeleportDirective, MpInstanceStyleDirective, MpPropsDirective, MpTeleportDirective, MpTrustedHtmlPipe, anchorElement, applyPropBag, coreContextToken, machineSignal, provideCoreContext, provideMachineSsr, repairEventReplayBodyPaths, useBootstrap, useCore, useHostAttrs, useHostProps, useOverlayComponent, useScopedStyles };
365
560
  //# sourceMappingURL=mintplayer-ng-bootstrap-machine.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-machine.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/machine/src/machine-signal.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/props.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/scoped-styles.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/host-props.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/ssr.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/core.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/teleport.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/trusted-html.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/machine/mintplayer-ng-bootstrap-machine.ts"],"sourcesContent":["import { DestroyRef, inject, Signal, signal } from '@angular/core';\nimport type { Store } from '@mintplayer/ui-core/store';\n\n/**\n * Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only\n * `Signal` of the store's snapshot, kept current by `subscribe` and released on\n * the injection context's `DestroyRef`.\n *\n * The signal is set synchronously from the store's notification; Angular\n * coalesces the resulting change detection, so a command that commits one\n * snapshot costs one render (measured in `machine-signal.spec.ts`, spike S1).\n */\nexport function machineSignal<S extends object>(store: Store<S>, destroyRef: DestroyRef = inject(DestroyRef)): Signal<S> {\n const state = signal<S>(store.snapshot);\n const unsubscribe = store.subscribe((snapshot) => state.set(snapshot));\n destroyRef.onDestroy(unsubscribe);\n return state.asReadonly();\n}\n","import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\n\n/** An attribute bag as a core's `connect()` returns it. `null`/`undefined`/`false` remove the attribute; `true` sets it empty. */\nexport type PropBag = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Attribute names a bag may never set. A bag is data the core computed, but a\n * generic setter is still an injection sink, so URL-bearing and script-bearing\n * attributes are refused outright rather than sanitised.\n */\nconst REFUSED = new Set(['href', 'src', 'srcdoc', 'xlink:href', 'style', 'action', 'formaction', 'data']);\n\nfunction isRefused(name: string): boolean {\n return REFUSED.has(name) || name.startsWith('on');\n}\n\n/**\n * Apply a core's attribute bag to the host element — the Angular stand-in for\n * JSX/Lit/Vue attribute spread. The directive diffs the previous and next bag:\n * a key that disappears is *removed* from the DOM (a stale\n * `aria-activedescendant` would otherwise survive a close), and unchanged keys\n * are not rewritten.\n *\n * Attributes are written through `Renderer2`, so they land in the server-\n * rendered HTML and are re-applied identically after hydration (spike S2 in\n * docs/prd/typeahead-wc-436.md). Consumers never see a bag: the front's own\n * template binds `[mpProps]=\"api().input\"` on its own nodes.\n */\n@Directive({ selector: '[mpProps]' })\nexport class MpPropsDirective {\n readonly mpProps = input<PropBag | null | undefined>(null);\n\n private readonly element = inject(ElementRef).nativeElement as Element;\n private readonly renderer = inject(Renderer2);\n private applied: PropBag = {};\n\n constructor() {\n effect(() => (this.applied = applyPropBag(this.renderer, this.element, this.applied, this.mpProps() ?? {})));\n }\n}\n\n/** Write `next` onto `element`, removing what `previous` set and `next` drops. Returns `next`. */\nexport function applyPropBag(renderer: Renderer2, element: Element, previous: PropBag, next: PropBag): PropBag {\n Object.keys(previous)\n .filter((name) => !(name in next) || next[name] === null || next[name] === undefined || next[name] === false)\n .forEach((name) => renderer.removeAttribute(element, name));\n Object.entries(next)\n .filter(([, value]) => value !== null && value !== undefined && value !== false)\n .filter(([name]) => {\n if (isRefused(name)) {\n throw new Error(`[mpProps] refuses to set \"${name}\"; bind it explicitly in the template.`);\n }\n return true;\n })\n .filter(([name, value]) => !Object.is(previous[name], value))\n .forEach(([name, value]) => renderer.setAttribute(element, name, value === true ? '' : String(value)));\n return next;\n}\n","import { DOCUMENT, inject, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { installLightStyles, writeScopedStyleTag } from '@mintplayer/ui-core/scoped-styles';\n\n/**\n * Install a core's scoped stylesheet from an Angular front. In the browser it\n * goes through the shared registry (`installLightStyles`: once per key,\n * cross-bundle safe). On the server the registry cannot run, so the marker\n * `<style data-mp-light-styles=\"<key>\">` is written straight into the\n * request's `DOCUMENT` head — the client registry then treats it as already\n * installed. No string post-processing of the response is involved.\n *\n * In the browser it also repairs the event-replay body shift (below) — every\n * front calls this first thing, so the repair runs before any front's\n * projected children are hydrated.\n *\n * Call from the component's constructor (an injection context).\n */\nexport function useScopedStyles(key: string, cssText: string): void {\n if (isPlatformServer(inject(PLATFORM_ID))) {\n writeScopedStyleTag(inject(DOCUMENT), key, cssText);\n } else {\n repairEventReplayBodyPaths(inject(DOCUMENT));\n installLightStyles(key, cssText);\n }\n}\n\n/**\n * Angular SSR defect (platform-server 22): `_annotateForHydration` records the\n * hydration paths, and only THEN `insertEventRecordScript` adds the replay\n * `<script>` right after `#ng-event-dispatch-contract` in `<body>`. A node\n * whose path is body-relative — any projected node a front renders outside\n * its own host (an accordion tab's body inside the accordion's `<details>`, a\n * tab page's body inside the tab control's panel) — is then looked up one\n * sibling off, and hydration throws \"Cannot read properties of null\n * (reading 'nextSibling')\". The replay script has already run by the time any\n * component is constructed, so removing its element restores the body the\n * paths were computed against. Idempotent; a no-op without event replay.\n */\nexport function repairEventReplayBodyPaths(doc: Document): void {\n const replay = doc.getElementById('ng-event-dispatch-contract')?.nextSibling;\n if (replay instanceof HTMLScriptElement && replay.textContent?.startsWith('window.__jsaction_bootstrap(')) replay.remove();\n}\n","import { effect, ElementRef, inject, Renderer2 } from '@angular/core';\nimport { applyPropBag, type PropBag } from './props.directive';\n\n/**\n * Apply a core's attribute bag to the component's own host element: the host\n * twin of `[mpProps]`, for a compiled template whose root is marked `mp-host`\n * (the root element IS the host, so the template holds only its children).\n *\n * Diffs like `[mpProps]` and writes through `Renderer2`, so the attributes are\n * in the server-rendered HTML. `class` is merged token by token, never\n * written as an attribute: the consumer's own classes on the host survive.\n *\n * constructor() { useHostProps(() => this.view().root); }\n */\nexport function useHostProps(bag: () => PropBag | null | undefined): void {\n const element = inject(ElementRef).nativeElement as Element;\n const renderer = inject(Renderer2);\n let applied: PropBag = {};\n let classes: string[] = [];\n effect(() => {\n const { class: className, ...rest } = bag() ?? {};\n const next = typeof className === 'string' ? className.split(/\\s+/).filter(Boolean) : [];\n classes.filter((name) => !next.includes(name)).forEach((name) => renderer.removeClass(element, name));\n next.filter((name) => !classes.includes(name)).forEach((name) => renderer.addClass(element, name));\n classes = next;\n applied = applyPropBag(renderer, element, applied, rest);\n });\n}\n","import { InjectionToken, makeEnvironmentProviders, type EnvironmentProviders } from '@angular/core';\nimport { DEFAULT_PREFETCH_TIMEOUT } from '@mintplayer/ui-core/transfer-state';\n\nexport interface MachineSsrOptions {\n /**\n * How long a server render waits for one component's prefetch (a `[fetch]`\n * datatable's first page with a `stateKey`), ms. On expiry the component\n * renders its loading state and the browser fetches. Default 3000 (#448 D6).\n */\n readonly prefetchTimeout?: number;\n}\n\nexport const MACHINE_SSR_OPTIONS = new InjectionToken<MachineSsrOptions>('mp-machine-ssr-options', {\n factory: () => ({ prefetchTimeout: DEFAULT_PREFETCH_TIMEOUT }),\n});\n\n/** App-level settings for components that load data during a server render. */\nexport function provideMachineSsr(options: MachineSsrOptions): EnvironmentProviders {\n return makeEnvironmentProviders([{ provide: MACHINE_SSR_OPTIONS, useValue: { prefetchTimeout: DEFAULT_PREFETCH_TIMEOUT, ...options } }]);\n}\n","import {\n afterNextRender,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n InjectionToken,\n makeStateKey,\n PendingTasks,\n PLATFORM_ID,\n signal,\n TransferState,\n untracked,\n type Provider,\n type Signal,\n type Type,\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { coreRuntime, type ComponentCore, type CoreBag, type CoreContext, type ViewArgs } from '@mintplayer/ui-core/component';\nimport { runPrefetch } from '@mintplayer/ui-core/transfer-state';\nimport { useHostProps } from './host-props';\nimport { MACHINE_SSR_OPTIONS } from './ssr';\n\nconst tokens = new WeakMap<CoreContext<unknown>, InjectionToken<Signal<unknown>>>();\n\n/** The Angular token for a core context: one per context object. */\nexport function coreContextToken<T>(context: CoreContext<T>): InjectionToken<Signal<T>> {\n let token = tokens.get(context as CoreContext<unknown>);\n if (!token) {\n token = new InjectionToken<Signal<unknown>>(`mp-core-context:${context.name}`);\n tokens.set(context as CoreContext<unknown>, token);\n }\n return token as InjectionToken<Signal<T>>;\n}\n\n/** Provides `context` to the component's content, read from the component's `useCore().provided`. */\nexport function provideCoreContext<T>(context: CoreContext<T>, component: Type<{ readonly provided: Signal<T> }>): Provider {\n return { provide: coreContextToken(context), useFactory: () => inject(component).provided };\n}\n\nexport interface UseCoreOptions<I, P> {\n readonly inputs: () => I;\n /** Prefix of the deterministic id, e.g. `bs-navbar`. */\n readonly idPrefix: string;\n /** The outputs by name; `api.emit` calls their `emit`. */\n readonly outputs?: Readonly<Record<string, { emit(detail: never): void }>>;\n /** The host element's bag, where the template root is the host (`mp-host`). Default: `core.host`. */\n readonly hostBag?: (props: P) => CoreBag | null | undefined;\n /** Two-way inputs (`model()`), by name; written back when the core changes the state of the same name. */\n readonly models?: Readonly<Record<string, { set(value: never): void }>>;\n}\n\nexport interface CoreHandle<P, PC> {\n /** The template's props. */\n readonly props: Signal<P>;\n /** The value this component provides to its content. */\n readonly provided: Signal<PC>;\n /** Runs a core method; does nothing before the first client render. */\n call(name: string, args: unknown[]): unknown;\n}\n\n/**\n * Host a `ComponentCore` in a generated Angular component (PRD #437 D10).\n * Call it in a field initializer. The template's root is the host element\n * where `hostBag` is given, else the host's first element child.\n */\nexport function useCore<I, S, P, E, C, PC, M>(core: ComponentCore<I, S, P, E, C, PC, M>, options: UseCoreOptions<I, P>): CoreHandle<P, PC> {\n const element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const consumed = core.consume ? inject(coreContextToken(core.consume), { optional: true, skipSelf: true }) : null;\n const id = inject(BsIdService).next(options.idPrefix);\n // Read once: a host attribute is static content, and Angular does not observe it.\n const label = element.getAttribute('aria-label');\n const hydrated = signal(false);\n // The state is seeded at its first read, in the first change detection: the\n // template's bindings have set the inputs by then. In the constructor they\n // have not, and the server would render a bound model input's default.\n const written = signal<S | null>(null);\n const server = isPlatformServer(inject(PLATFORM_ID));\n const transfer = core.transferKey ? inject(TransferState) : null;\n /** Server only: starts the prefetch with the first inputs that name one (a `transferKey`), however late they arrive. */\n let prefetchOnce: ((inputs: I) => void) | null = null;\n /** Client only: the transferred seed is still unread, because no inputs have named its key yet. */\n let transferArmed = !server && !!transfer;\n let seeded: S | null = null;\n const seed = (): S => {\n if (seeded) return seeded;\n const inputs = untracked(options.inputs);\n // The baseline the state was seeded from: inputs that change before attaching\n // (a form control writing its value) reach inputsChanged on attach.\n runtime.inputs(inputs);\n return (seeded = core.state ? core.state(inputs, server ? undefined : takeTransferred(inputs)) : ({} as S));\n };\n /**\n * The server's prefetched seed for these inputs, read once: a later instance with the same query fetches fresh (#448).\n * Inputs without a key (a `fetch` the consumer sets after an async step) leave it armed for the next delivery.\n */\n const takeTransferred = (inputs: I): unknown => {\n const key = transferArmed && transfer ? core.transferKey?.(inputs) : undefined;\n if (!transfer || !key) return undefined;\n transferArmed = false;\n const stateKey = makeStateKey<unknown>(key);\n if (!transfer.hasKey(stateKey)) return undefined;\n const value = transfer.get(stateKey, undefined);\n transfer.remove(stateKey);\n return value;\n };\n if (server && transfer && core.prefetch) {\n // Outside the state computed, which must not write signals: the first change\n // detection seeds the loading snapshot, this replaces it before serialization.\n const pendingTasks = inject(PendingTasks);\n const ssr = inject(MACHINE_SSR_OPTIONS);\n const abort = new AbortController();\n inject(DestroyRef).onDestroy(() => abort.abort());\n prefetchOnce = (inputs) => {\n void pendingTasks.run(async () => {\n const result = await runPrefetch(core, inputs, { timeout: ssr.prefetchTimeout, signal: abort.signal });\n if (!result || abort.signal.aborted) return;\n transfer.set(makeStateKey<unknown>(result.key), result.seed);\n written.set(core.state!(inputs, result.seed));\n });\n };\n }\n const state = computed(() => written() ?? seed());\n\n const args = computed<ViewArgs<I, S, C, E>>(() => ({\n inputs: options.inputs(),\n state: state(),\n id,\n hydrated: hydrated(),\n context: (consumed ? consumed() : core.consume?.defaultValue) as C,\n label,\n api: () => runtime.api,\n }));\n const props = computed(() => core.view(args()));\n const provided = computed(() => core.provide?.(args()) as PC);\n\n const hostBag = options.hostBag ?? core.host?.bind(core);\n if (hostBag) useHostProps(() => hostBag(props()));\n\n const runtime = coreRuntime(core, {\n inputs: () => untracked(options.inputs),\n state: () => untracked(state),\n setState: (next) => written.set(next),\n emit: (name, detail) => options.outputs?.[name]?.emit(detail as never),\n models: Object.keys(options.models ?? {}) as never,\n writeModel: (name, value) => options.models?.[name]?.set(value as never),\n });\n afterNextRender(() => {\n hydrated.set(true);\n const root = options.hostBag ? element : (element.firstElementChild as HTMLElement | null);\n if (root) runtime.attachTo(root);\n });\n effect(() => {\n const inputs = options.inputs();\n untracked(() => {\n // A seed whose key the first inputs did not name: applied before the inputs reach the core,\n // so its inputsChanged sees the seeded page as the answer rather than reloading it.\n if (transferArmed && core.adopt) {\n const late = takeTransferred(inputs);\n if (late !== undefined) written.set(core.adopt(state(), inputs, late));\n }\n runtime.inputs(inputs);\n // Armed until the inputs name a prefetch: a `fetch` or `stateKey` can arrive after the first delivery.\n if (prefetchOnce && core.transferKey?.(inputs)) {\n const start = prefetchOnce;\n prefetchOnce = null;\n start(inputs);\n }\n });\n });\n inject(DestroyRef).onDestroy(() => runtime.dispose());\n\n return { props, provided, call: (name, callArgs) => runtime.call(name, callArgs) };\n}\n","import { DestroyRef, Directive, effect, EmbeddedViewRef, inject, input, TemplateRef, ViewContainerRef } from '@angular/core';\n\n/**\n * Render an `<ng-template>` into another element, the compiled form of a view's\n * `<teleport :to>`. The twin of React's `createPortal`, Vue's `<Teleport>` and\n * Lit's `teleport()`. The view lives in this container, so change detection and\n * destruction follow the component, but its root nodes are moved into `to`, as\n * CDK's DomPortalOutlet does. Nothing renders while `to` is null, which is the\n * server's case. A core hands a target whose identity never changes (the\n * dock's per-pane hosts), so the content's state survives wherever the core\n * moves that target.\n *\n * <ng-template [mpTeleport]=\"view.paneHosts[pane]\">...</ng-template>\n */\n@Directive({ selector: '[mpTeleport]' })\nexport class MpTeleportDirective {\n readonly mpTeleport = input<Element | null | undefined>(null);\n\n private readonly template = inject(TemplateRef);\n private readonly container = inject(ViewContainerRef);\n private view: EmbeddedViewRef<unknown> | null = null;\n\n constructor() {\n effect(() => {\n const to = this.mpTeleport() ?? null;\n if (!to) {\n this.container.clear();\n this.view = null;\n return;\n }\n this.view ??= this.container.createEmbeddedView(this.template);\n // The view's nodes render in place first; detectChanges fills them before they move.\n this.view.detectChanges();\n this.view.rootNodes.filter((node: Node) => node.parentNode !== to).forEach((node: Node) => to.appendChild(node));\n });\n inject(DestroyRef).onDestroy(() => this.container.clear());\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n/**\n * Marks core-produced markup as trusted for `[innerHTML]`: the compiled form of\n * a view's `v-html`. The view contract is that `v-html` only ever carries markup\n * the core produced (flag and file-type SVGs, highlighted code rows), which the\n * React, Vue and Lit fronts insert as-is. Angular's sanitiser would instead drop\n * every `<svg>` — an empty flag, an icon-less file manager — so the Angular front\n * trusts it the same way.\n *\n * <span [innerHTML]=\"view.flagHtml | mpTrustedHtml\"></span>\n */\n@Pipe({ name: 'mpTrustedHtml' })\nexport class MpTrustedHtmlPipe implements PipeTransform {\n private readonly sanitizer = inject(DomSanitizer);\n\n transform(html: string | null | undefined): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(html ?? '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;;;;;;;A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AA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,IAAI;mBAAC,EAAE,IAAI,EAAE,eAAe,EAAE;;;ACb/B;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-machine.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/machine/src/machine-signal.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/props.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/scoped-styles.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/host-props.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/ssr.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/core.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/teleport.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/trusted-html.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/body-teleport.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/instance-style.directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/src/overlay-directive.ts","../../../../libs/mintplayer-ng-bootstrap/machine/mintplayer-ng-bootstrap-machine.ts"],"sourcesContent":["import { DestroyRef, inject, Signal, signal } from '@angular/core';\nimport type { Store } from '@mintplayer/ui-core/store';\n\n/**\n * Bridge a `@mintplayer/ui-core` store into Angular's reactivity: a read-only\n * `Signal` of the store's snapshot, kept current by `subscribe` and released on\n * the injection context's `DestroyRef`.\n *\n * The signal is set synchronously from the store's notification; Angular\n * coalesces the resulting change detection, so a command that commits one\n * snapshot costs one render (measured in `machine-signal.spec.ts`, spike S1).\n */\nexport function machineSignal<S extends object>(store: Store<S>, destroyRef: DestroyRef = inject(DestroyRef)): Signal<S> {\n const state = signal<S>(store.snapshot);\n const unsubscribe = store.subscribe((snapshot) => state.set(snapshot));\n destroyRef.onDestroy(unsubscribe);\n return state.asReadonly();\n}\n","import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';\n\n/** An attribute bag as a core's `connect()` returns it. `null`/`undefined`/`false` remove the attribute; `true` sets it empty. */\nexport type PropBag = Record<string, string | number | boolean | null | undefined>;\n\n/**\n * Attribute names a bag may never set. A bag is data the core computed, but a\n * generic setter is still an injection sink, so URL-bearing and script-bearing\n * attributes are refused outright rather than sanitised.\n */\nconst REFUSED = new Set(['href', 'src', 'srcdoc', 'xlink:href', 'style', 'action', 'formaction', 'data']);\n\nfunction isRefused(name: string): boolean {\n return REFUSED.has(name) || name.startsWith('on');\n}\n\n/**\n * Apply a core's attribute bag to the host element — the Angular stand-in for\n * JSX/Lit/Vue attribute spread. The directive diffs the previous and next bag:\n * a key that disappears is *removed* from the DOM (a stale\n * `aria-activedescendant` would otherwise survive a close), and unchanged keys\n * are not rewritten.\n *\n * Attributes are written through `Renderer2`, so they land in the server-\n * rendered HTML and are re-applied identically after hydration (spike S2 in\n * docs/prd/typeahead-wc-436.md). Consumers never see a bag: the front's own\n * template binds `[mpProps]=\"api().input\"` on its own nodes.\n */\n@Directive({ selector: '[mpProps],[mpHostAttrs]' })\nexport class MpPropsDirective {\n readonly mpProps = input<PropBag | null | undefined>(null);\n /**\n * The host's forwarded `aria-*` / `id` / `tabindex` (`useHostAttrs`), written over\n * the bag: the consumer's word wins. Except an `id` the bag sets itself, which\n * the core's own references (a `label for`, an `aria-controls`) point at: then\n * the consumer's id goes back to the host instead.\n */\n readonly mpHostAttrs = input<{ readonly host: Element; readonly attrs: PropBag } | null | undefined>(null);\n\n private readonly element = inject(ElementRef).nativeElement as Element;\n private readonly renderer = inject(Renderer2);\n private applied: PropBag = {};\n\n constructor() {\n effect(() => {\n const bag = this.mpProps() ?? {};\n const forwarded = this.mpHostAttrs();\n const { id, ...rest } = forwarded?.attrs ?? {};\n const ownId = bag['id'] !== null && bag['id'] !== undefined;\n if (forwarded && ownId && id) this.renderer.setAttribute(forwarded.host, 'id', String(id));\n this.applied = applyPropBag(this.renderer, this.element, this.applied, { ...bag, ...rest, ...(id && !ownId ? { id } : {}) });\n });\n }\n}\n\n/** Write `next` onto `element`, removing what `previous` set and `next` drops. Returns `next`. */\nexport function applyPropBag(renderer: Renderer2, element: Element, previous: PropBag, next: PropBag): PropBag {\n Object.keys(previous)\n .filter((name) => !(name in next) || next[name] === null || next[name] === undefined || next[name] === false)\n .forEach((name) => renderer.removeAttribute(element, name));\n Object.entries(next)\n .filter(([, value]) => value !== null && value !== undefined && value !== false)\n .filter(([name]) => {\n if (isRefused(name)) {\n throw new Error(`[mpProps] refuses to set \"${name}\"; bind it explicitly in the template.`);\n }\n return true;\n })\n .filter(([name, value]) => !Object.is(previous[name], value))\n .forEach(([name, value]) => renderer.setAttribute(element, name, value === true ? '' : String(value)));\n return next;\n}\n","import { DOCUMENT, inject, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { bootstrapInstallOptions, type BootstrapPart } from '@mintplayer/ui-core/bootstrap';\nimport { installLightStyles, writeScopedStyleTag, type InstallOptions } from '@mintplayer/ui-core/scoped-styles';\n\n/**\n * Install a core's scoped stylesheet from an Angular front. In the browser it\n * goes through the shared registry (`installLightStyles`: once per key,\n * cross-bundle safe). On the server the registry cannot run, so the marker\n * `<style data-mp-light-styles=\"<key>\">` is written straight into the\n * request's `DOCUMENT` head — the client registry then treats it as already\n * installed. No string post-processing of the response is involved.\n *\n * In the browser it also repairs the event-replay body shift (below) — every\n * front calls this first thing, so the repair runs before any front's\n * projected children are hydrated.\n *\n * Call from the component's constructor (an injection context).\n */\nexport function useScopedStyles(key: string, cssText: string, options: InstallOptions = {}): void {\n if (isPlatformServer(inject(PLATFORM_ID))) {\n writeScopedStyleTag(inject(DOCUMENT), key, cssText, options);\n } else {\n repairEventReplayBodyPaths(inject(DOCUMENT));\n installLightStyles(key, cssText, options);\n }\n}\n\n/**\n * Install Bootstrap parts (`@mintplayer/ui-core/bootstrap`, #452) from an\n * Angular front, the same way as {@link useScopedStyles}: once per page, and\n * written into the server `DOCUMENT` during SSR. A component passes the scoped\n * parts its markup uses; a page that renders raw Bootstrap markup passes the\n * `…Page` variants, which replace a scoped copy under the same key. Call from\n * the constructor (an injection context).\n */\nexport function useBootstrap(...parts: readonly BootstrapPart[]): void {\n parts.forEach((part) => useScopedStyles(part.key, part.css, bootstrapInstallOptions(part)));\n}\n\n/**\n * Angular SSR defect (platform-server 22): `_annotateForHydration` records the\n * hydration paths, and only THEN `insertEventRecordScript` adds the replay\n * `<script>` right after `#ng-event-dispatch-contract` in `<body>`. A node\n * whose path is body-relative — any projected node a front renders outside\n * its own host (an accordion tab's body inside the accordion's `<details>`, a\n * tab page's body inside the tab control's panel) — is then looked up one\n * sibling off, and hydration throws \"Cannot read properties of null\n * (reading 'nextSibling')\". The replay script has already run by the time any\n * component is constructed, so removing its element restores the body the\n * paths were computed against. Idempotent; a no-op without event replay.\n */\nexport function repairEventReplayBodyPaths(doc: Document): void {\n const replay = doc.getElementById('ng-event-dispatch-contract')?.nextSibling;\n if (replay instanceof HTMLScriptElement && replay.textContent?.startsWith('window.__jsaction_bootstrap(')) replay.remove();\n}\n","import { effect, ElementRef, inject, Renderer2 } from '@angular/core';\nimport { takeHostAria } from '@mintplayer/ng-bootstrap/a11y';\nimport { applyPropBag, type PropBag } from './props.directive';\n\n/**\n * Apply a core's attribute bag to the component's own host element: the host\n * twin of `[mpProps]`, for a compiled template whose root is marked `mp-host`\n * (the root element IS the host, so the template holds only its children).\n *\n * Diffs like `[mpProps]` and writes through `Renderer2`, so the attributes are\n * in the server-rendered HTML. `class` is merged token by token, never\n * written as an attribute: the consumer's own classes on the host survive.\n *\n * constructor() { useHostProps(() => this.view().root); }\n */\nexport function useHostProps(bag: () => PropBag | null | undefined, target?: () => Element | null): void {\n const host = inject(ElementRef).nativeElement as Element;\n const renderer = inject(Renderer2);\n let applied: PropBag = {};\n let classes: string[] = [];\n effect(() => {\n // `target`: another element than the host (a structural directive's anchor), not placed yet in the constructor.\n const element = target ? target() : host;\n const { class: className, ...rest } = bag() ?? {};\n if (!element) return;\n const next = typeof className === 'string' ? className.split(/\\s+/).filter(Boolean) : [];\n classes.filter((name) => !next.includes(name)).forEach((name) => renderer.removeClass(element, name));\n next.filter((name) => !classes.includes(name)).forEach((name) => renderer.addClass(element, name));\n classes = next;\n applied = applyPropBag(renderer, element, applied, rest);\n });\n}\n\n/** A host's forwarded attributes (`useHostAttrs`), and the host they came from. */\nexport interface HostAttrs {\n readonly host: HTMLElement;\n readonly attrs: PropBag;\n}\n\n/**\n * Host transparency for a compiled template whose role lives on an inner\n * `mp-attrs` node (#458): a consumer's `aria-*`, `id` and `tabindex` on the\n * host belong on that node, which binds the result as `[mpHostAttrs]`. `id`\n * and `tabindex` are moved (no duplicate id, no dead tab stop on the host);\n * `aria-*` are copied. Read once, in a field initializer, so the server render\n * already carries them where AT reads them. A consumer `role` is never taken:\n * the inner node's role is the core's contract.\n */\nexport function useHostAttrs(): HostAttrs {\n const host = inject(ElementRef).nativeElement as HTMLElement;\n return { host, attrs: takeHostAria(host) };\n}\n","import { InjectionToken, makeEnvironmentProviders, type EnvironmentProviders } from '@angular/core';\nimport { DEFAULT_PREFETCH_TIMEOUT } from '@mintplayer/ui-core/transfer-state';\n\nexport interface MachineSsrOptions {\n /**\n * How long a server render waits for one component's prefetch (a `[fetch]`\n * datatable's first page with a `stateKey`), ms. On expiry the component\n * renders its loading state and the browser fetches. Default 3000 (#448 D6).\n */\n readonly prefetchTimeout?: number;\n}\n\nexport const MACHINE_SSR_OPTIONS = new InjectionToken<MachineSsrOptions>('mp-machine-ssr-options', {\n factory: () => ({ prefetchTimeout: DEFAULT_PREFETCH_TIMEOUT }),\n});\n\n/** App-level settings for components that load data during a server render. */\nexport function provideMachineSsr(options: MachineSsrOptions): EnvironmentProviders {\n return makeEnvironmentProviders([{ provide: MACHINE_SSR_OPTIONS, useValue: { prefetchTimeout: DEFAULT_PREFETCH_TIMEOUT, ...options } }]);\n}\n","import {\n afterNextRender,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n InjectionToken,\n makeStateKey,\n PendingTasks,\n PLATFORM_ID,\n signal,\n TransferState,\n untracked,\n type Provider,\n type Signal,\n type Type,\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { coreRuntime, type ComponentCore, type CoreBag, type CoreContext, type ViewArgs } from '@mintplayer/ui-core/component';\nimport { runPrefetch } from '@mintplayer/ui-core/transfer-state';\nimport { useHostProps } from './host-props';\nimport { MACHINE_SSR_OPTIONS } from './ssr';\n\nconst tokens = new WeakMap<CoreContext<unknown>, InjectionToken<Signal<unknown>>>();\n\n/** The Angular token for a core context: one per context object. */\nexport function coreContextToken<T>(context: CoreContext<T>): InjectionToken<Signal<T>> {\n let token = tokens.get(context as CoreContext<unknown>);\n if (!token) {\n token = new InjectionToken<Signal<unknown>>(`mp-core-context:${context.name}`);\n tokens.set(context as CoreContext<unknown>, token);\n }\n return token as InjectionToken<Signal<T>>;\n}\n\n/** Provides `context` to the component's content, read from the component's `useCore().provided`. */\nexport function provideCoreContext<T>(context: CoreContext<T>, component: Type<{ readonly provided: Signal<T> }>): Provider {\n return { provide: coreContextToken(context), useFactory: () => inject(component).provided };\n}\n\nexport interface UseCoreOptions<I, P> {\n readonly inputs: () => I;\n /** Prefix of the deterministic id, e.g. `bs-navbar`. */\n readonly idPrefix: string;\n /** The outputs by name; `api.emit` calls their `emit`. */\n readonly outputs?: Readonly<Record<string, { emit(detail: never): void }>>;\n /** The host element's bag, where the template root is the host (`mp-host`). Default: `core.host`. */\n readonly hostBag?: (props: P) => CoreBag | null | undefined;\n /** Two-way inputs (`model()`), by name; written back when the core changes the state of the same name. */\n readonly models?: Readonly<Record<string, { set(value: never): void }>>;\n /**\n * The element the core runs on, where it is not the host: a structural directive's anchor\n * (`anchorElement`), whose own node is a comment. Read lazily, after the view placed it.\n */\n readonly element?: () => HTMLElement | null;\n}\n\nexport interface CoreHandle<P, PC> {\n /** The template's props. */\n readonly props: Signal<P>;\n /** The value this component provides to its content. */\n readonly provided: Signal<PC>;\n /** Runs a core method; does nothing before the first client render. */\n call(name: string, args: unknown[]): unknown;\n}\n\n/**\n * Host a `ComponentCore` in a generated Angular component (PRD #437 D10).\n * Call it in a field initializer. The template's root is the host element\n * where `hostBag` is given, else the host's first element child.\n */\nexport function useCore<I, S, P, E, C, PC, M>(core: ComponentCore<I, S, P, E, C, PC, M>, options: UseCoreOptions<I, P>): CoreHandle<P, PC> {\n const host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n const element = (): HTMLElement | null => (options.element ? options.element() : host);\n const consumed = core.consume ? inject(coreContextToken(core.consume), { optional: true, skipSelf: true }) : null;\n const id = inject(BsIdService).next(options.idPrefix);\n // Read once: a host attribute is static content, and Angular does not observe it.\n let label: string | null | undefined;\n const readLabel = () => (label === undefined ? (label = element()?.getAttribute('aria-label') ?? null) : label);\n const hydrated = signal(false);\n // The state is seeded at its first read, in the first change detection: the\n // template's bindings have set the inputs by then. In the constructor they\n // have not, and the server would render a bound model input's default.\n const written = signal<S | null>(null);\n const server = isPlatformServer(inject(PLATFORM_ID));\n const transfer = core.transferKey ? inject(TransferState) : null;\n /** Server only: starts the prefetch with the first inputs that name one (a `transferKey`), however late they arrive. */\n let prefetchOnce: ((inputs: I) => void) | null = null;\n /** Client only: the transferred seed is still unread, because no inputs have named its key yet. */\n let transferArmed = !server && !!transfer;\n let seeded: S | null = null;\n const seed = (): S => {\n if (seeded) return seeded;\n const inputs = untracked(options.inputs);\n // The baseline the state was seeded from: inputs that change before attaching\n // (a form control writing its value) reach inputsChanged on attach.\n runtime.inputs(inputs);\n return (seeded = core.state ? core.state(inputs, server ? undefined : takeTransferred(inputs)) : ({} as S));\n };\n /**\n * The server's prefetched seed for these inputs, read once: a later instance with the same query fetches fresh (#448).\n * Inputs without a key (a `fetch` the consumer sets after an async step) leave it armed for the next delivery.\n */\n const takeTransferred = (inputs: I): unknown => {\n const key = transferArmed && transfer ? core.transferKey?.(inputs) : undefined;\n if (!transfer || !key) return undefined;\n transferArmed = false;\n const stateKey = makeStateKey<unknown>(key);\n if (!transfer.hasKey(stateKey)) return undefined;\n const value = transfer.get(stateKey, undefined);\n transfer.remove(stateKey);\n return value;\n };\n if (server && transfer && core.prefetch) {\n // Outside the state computed, which must not write signals: the first change\n // detection seeds the loading snapshot, this replaces it before serialization.\n const pendingTasks = inject(PendingTasks);\n const ssr = inject(MACHINE_SSR_OPTIONS);\n const abort = new AbortController();\n inject(DestroyRef).onDestroy(() => abort.abort());\n prefetchOnce = (inputs) => {\n void pendingTasks.run(async () => {\n const result = await runPrefetch(core, inputs, { timeout: ssr.prefetchTimeout, signal: abort.signal });\n if (!result || abort.signal.aborted) return;\n transfer.set(makeStateKey<unknown>(result.key), result.seed);\n written.set(core.state!(inputs, result.seed));\n });\n };\n }\n const state = computed(() => written() ?? seed());\n\n const args = computed<ViewArgs<I, S, C, E>>(() => ({\n inputs: options.inputs(),\n state: state(),\n id,\n hydrated: hydrated(),\n context: (consumed ? consumed() : core.consume?.defaultValue) as C,\n label: readLabel(),\n api: () => runtime.api,\n }));\n const props = computed(() => core.view(args()));\n const provided = computed(() => core.provide?.(args()) as PC);\n\n const hostBag = options.hostBag ?? core.host?.bind(core);\n if (hostBag) useHostProps(() => hostBag(props()), options.element);\n\n const runtime = coreRuntime(core, {\n inputs: () => untracked(options.inputs),\n state: () => untracked(state),\n setState: (next) => written.set(next),\n emit: (name, detail) => options.outputs?.[name]?.emit(detail as never),\n models: Object.keys(options.models ?? {}) as never,\n writeModel: (name, value) => options.models?.[name]?.set(value as never),\n });\n afterNextRender(() => {\n hydrated.set(true);\n const root = options.element ? element() : options.hostBag ? host : (host.firstElementChild as HTMLElement | null);\n if (root) runtime.attachTo(root);\n });\n effect(() => {\n const inputs = options.inputs();\n untracked(() => {\n // A seed whose key the first inputs did not name: applied before the inputs reach the core,\n // so its inputsChanged sees the seeded page as the answer rather than reloading it.\n if (transferArmed && core.adopt) {\n const late = takeTransferred(inputs);\n if (late !== undefined) written.set(core.adopt(state(), inputs, late));\n }\n runtime.inputs(inputs);\n // Armed until the inputs name a prefetch: a `fetch` or `stateKey` can arrive after the first delivery.\n if (prefetchOnce && core.transferKey?.(inputs)) {\n const start = prefetchOnce;\n prefetchOnce = null;\n start(inputs);\n }\n });\n });\n inject(DestroyRef).onDestroy(() => runtime.dispose());\n\n return { props, provided, call: (name, callArgs) => runtime.call(name, callArgs) };\n}\n","import { DestroyRef, Directive, effect, EmbeddedViewRef, inject, input, TemplateRef, ViewContainerRef } from '@angular/core';\n\n/**\n * Render an `<ng-template>` into another element, the compiled form of a view's\n * `<teleport :to>`. The twin of React's `createPortal`, Vue's `<Teleport>` and\n * Lit's `teleport()`. The view lives in this container, so change detection and\n * destruction follow the component, but its root nodes are moved into `to`, as\n * CDK's DomPortalOutlet does. Nothing renders while `to` is null, which is the\n * server's case. A core hands a target whose identity never changes (the\n * dock's per-pane hosts), so the content's state survives wherever the core\n * moves that target.\n *\n * <ng-template [mpTeleport]=\"view.paneHosts[pane]\">...</ng-template>\n */\n@Directive({ selector: '[mpTeleport]' })\nexport class MpTeleportDirective {\n readonly mpTeleport = input<Element | null | undefined>(null);\n\n private readonly template = inject(TemplateRef);\n private readonly container = inject(ViewContainerRef);\n private view: EmbeddedViewRef<unknown> | null = null;\n\n constructor() {\n effect(() => {\n const to = this.mpTeleport() ?? null;\n if (!to) {\n this.container.clear();\n this.view = null;\n return;\n }\n this.view ??= this.container.createEmbeddedView(this.template);\n // The view's nodes render in place first; detectChanges fills them before they move.\n this.view.detectChanges();\n this.view.rootNodes.filter((node: Node) => node.parentNode !== to).forEach((node: Node) => to.appendChild(node));\n });\n inject(DestroyRef).onDestroy(() => this.container.clear());\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n/**\n * Marks core-produced markup as trusted for `[innerHTML]`: the compiled form of\n * a view's `v-html`. The view contract is that `v-html` only ever carries markup\n * the core produced (flag and file-type SVGs, highlighted code rows), which the\n * React, Vue and Lit fronts insert as-is. Angular's sanitiser would instead drop\n * every `<svg>` — an empty flag, an icon-less file manager — so the Angular front\n * trusts it the same way.\n *\n * <span [innerHTML]=\"view.flagHtml | mpTrustedHtml\"></span>\n */\n@Pipe({ name: 'mpTrustedHtml' })\nexport class MpTrustedHtmlPipe implements PipeTransform {\n private readonly sanitizer = inject(DomSanitizer);\n\n transform(html: string | null | undefined): SafeHtml {\n return this.sanitizer.bypassSecurityTrustHtml(html ?? '');\n }\n}\n","import { ApplicationRef, DestroyRef, Directive, DOCUMENT, effect, EmbeddedViewRef, inject, TemplateRef, untracked, ViewContainerRef } from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { createBodyHost } from '@mintplayer/ui-core/overlay';\n\n/**\n * Render an `<ng-template>` into a body host (#458 §4.4): a `div` appended to\n * the end of `<body>`, outside every clipping ancestor. The compiled form of a\n * view's `<teleport to=\"body\">`, and the twin of React's `createPortal`, Vue's\n * `<Teleport to=\"body\">` and Lit's `bodyTeleport()`.\n *\n * The view is created DETACHED (`TemplateRef.createEmbeddedView` +\n * `ApplicationRef.attachView`), never in this anchor's container, so the\n * component's hydration info holds no view whose nodes are elsewhere. The\n * server renders it into its body host; the client removes that copy (same\n * deterministic id) and renders its own, outside hydration. Change detection\n * reaches it through the application; it reads the declaring component's\n * members, because an embedded view keeps its declaration context.\n *\n * @if (open()) { <ng-template mpBodyTeleport>…</ng-template> }\n */\n@Directive({ selector: '[mpBodyTeleport]' })\nexport class MpBodyTeleportDirective {\n private readonly template = inject(TemplateRef);\n private readonly appRef = inject(ApplicationRef);\n private readonly document = inject(DOCUMENT);\n private readonly anchor = inject(ViewContainerRef).element.nativeElement as Node;\n /** Identical on the server and on hydration: the client replaces the server's host by it. */\n readonly id = inject(BsIdService).next('mp-overlay');\n private view: EmbeddedViewRef<unknown> | null = null;\n private host: HTMLElement | null = null;\n\n constructor() {\n // An effect runs during change detection on the server too, where afterNextRender never does.\n effect(() =>\n untracked(() => {\n if (this.view) return;\n this.host = createBodyHost(this.document, this.id, this.anchor.parentElement);\n this.view = this.template.createEmbeddedView({});\n this.appRef.attachView(this.view);\n this.view.detectChanges();\n this.view.rootNodes.forEach((node: Node) => this.host!.appendChild(node));\n }),\n );\n inject(DestroyRef).onDestroy(() => {\n if (this.view) {\n this.appRef.detachView(this.view);\n this.view.destroy();\n }\n this.host?.remove();\n this.view = this.host = null;\n });\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { DestroyRef, Directive, effect, inject, input } from '@angular/core';\nimport { SCOPED_STYLE_MARKER, writeScopedStyleTag } from '@mintplayer/ui-core/scoped-styles';\n\n/**\n * A compiled template's `<instance-style :name :css />` (#458 M4): one instance's own\n * sheet, the tile manager's server layout rules. Angular strips `<style>` from\n * templates, so the sheet goes into the document head under `name`, on the server\n * (where it ships in the HTML) and on the client alike. A null `css` removes it, as\n * does destroying the component.\n */\n@Directive({ selector: 'ng-container[mpInstanceStyle]' })\nexport class MpInstanceStyleDirective {\n readonly mpInstanceStyle = input<string | null>(null);\n readonly mpInstanceStyleName = input.required<string>();\n\n constructor() {\n const doc = inject(DOCUMENT);\n let written: string | null = null;\n const remove = () => {\n if (written !== null) doc.head?.querySelector(`style[${SCOPED_STYLE_MARKER}=\"${written}\"]`)?.remove();\n written = null;\n };\n effect(() => {\n const css = this.mpInstanceStyle();\n const name = this.mpInstanceStyleName();\n if (written !== name) remove();\n if (!css) return remove();\n writeScopedStyleTag(doc, name, css, { replace: true });\n written = name;\n });\n inject(DestroyRef).onDestroy(remove);\n }\n}\n","import {\n ApplicationRef,\n createComponent,\n DestroyRef,\n DOCUMENT,\n effect,\n ElementRef,\n EnvironmentInjector,\n inject,\n Injector,\n PLATFORM_ID,\n TemplateRef,\n untracked,\n type ComponentRef,\n type EmbeddedViewRef,\n type Type,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { createBodyHost, removeBodyHost } from '@mintplayer/ui-core/overlay';\n\n/**\n * A structural directive's anchor: the element its template sits in\n * (`<button>Save<span *bsTooltip>…</span></button>` → the button). The\n * directive's own node is a comment; read this lazily, once the view placed it.\n */\nexport function anchorElement(): () => HTMLElement | null {\n const node = inject<ElementRef<Node>>(ElementRef).nativeElement;\n return () => node.parentElement;\n}\n\n/**\n * The Angular half of an overlay directive (#458 M6, tooltip and popover): while\n * `inputs()` is not null, `component` renders into a body host with the\n * directive's template as its content (`<ng-content>`), and gets those inputs.\n * The panel is created detached and attached to the application, so it lives\n * outside every clipping ancestor and the anchor's DOM stays the consumer's.\n * Browser only: an overlay cannot be open in server HTML.\n */\nexport function useOverlayComponent(component: Type<unknown>, inputs: () => object | null, anchor: () => Element | null): void {\n const template = inject<TemplateRef<unknown>>(TemplateRef);\n const injector = inject(Injector);\n const environmentInjector = inject(EnvironmentInjector);\n const appRef = inject(ApplicationRef);\n const doc = inject(DOCUMENT);\n const id = `mp-overlay-${inject(BsIdService).next('bs-overlay')}`;\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n\n let panel: ComponentRef<unknown> | null = null;\n let content: EmbeddedViewRef<unknown> | null = null;\n const close = () => {\n panel?.destroy();\n content?.destroy();\n panel = content = null;\n removeBodyHost(doc, id);\n };\n effect(() => {\n const next = inputs();\n untracked(() => {\n if (!next) return close();\n if (!panel) {\n content = template.createEmbeddedView(null, injector);\n appRef.attachView(content);\n panel = createComponent(component, { environmentInjector, elementInjector: injector, projectableNodes: [content.rootNodes] });\n Object.entries(next).map(([name, value]) => panel?.setInput(name, value));\n createBodyHost(doc, id, anchor()).appendChild(panel.location.nativeElement);\n appRef.attachView(panel.hostView);\n return;\n }\n Object.entries(next).map(([name, value]) => panel?.setInput(name, value));\n });\n });\n inject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CAAC;AACrC;;ACzEA;;AAEG;;;;"}
@@ -1,24 +1,39 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, signal, ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { inject, ElementRef, input, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { marqueeCore, marqueeScopedStyles } from '@mintplayer/ui-core/marquee';
3
5
 
6
+ // GENERATED from the marquee manifest (marquee) by @mintplayer/nx-component-compiler. Do not edit.
7
+ /** A scrolling ticker with a pause button (`pauseText` / `resumeText`), named by `label`. Hover, focus and reduced motion stop it. */
4
8
  class BsMarqueeComponent {
9
+ #core;
5
10
  constructor() {
6
- this.ariaLabel = input(null, /* @ts-ignore */
7
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
8
- /** WCAG 2.2.2: moving content needs a pause affordance. */
9
- this.paused = signal(false, /* @ts-ignore */
10
- ...(ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []));
11
- }
12
- togglePaused() {
13
- this.paused.update((paused) => !paused);
11
+ /** The host element. */
12
+ this.elementRef = inject(ElementRef);
13
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
14
+ this.hostAttrs = useHostAttrs();
15
+ this.label = input(null, /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
17
+ this.pauseText = input('Pause', /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "pauseText" }] : /* istanbul ignore next */ []));
19
+ this.resumeText = input('Resume', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "resumeText" }] : /* istanbul ignore next */ []));
21
+ this.#core = useCore(marqueeCore, { inputs: () => ({ label: this.label(), pauseText: this.pauseText(), resumeText: this.resumeText() }), idPrefix: 'bs-marquee', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'marquee' }) });
22
+ /** The template's props. */
23
+ this.props = this.#core.props;
24
+ useScopedStyles('marquee', marqueeScopedStyles);
14
25
  }
15
26
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsMarqueeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsMarqueeComponent, isStandalone: true, selector: "bs-marquee", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- role=marquee names the widget honestly AND supports the aria-label\n (a bare span with aria-label is ignored by name computation). -->\n<span class=\"marquee text-nowrap overflow-hidden d-block\" role=\"marquee\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"h1 d-inline-block\" [class.marquee-paused]=\"paused()\">\n <ng-content></ng-content>\n </span>\n</span>\n<button type=\"button\" class=\"marquee-pause\" (click)=\"togglePaused()\" [attr.aria-pressed]=\"paused()\">\n {{ paused() ? 'Resume' : 'Pause' }}\n</button>\n", styles: [".marquee{box-sizing:border-box}.marquee>span{padding-left:100%;animation:marquee 15s linear infinite}@media(prefers-reduced-motion:reduce){.marquee>span{animation:none;padding-left:0}}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}.marquee-paused{animation-play-state:paused!important}.marquee-pause{border:0;background:transparent;padding:.125rem .375rem;font-size:.75rem;color:inherit;text-decoration:underline;cursor:pointer}@media(prefers-reduced-motion:reduce){.marquee .d-inline-block{animation:none!important}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsMarqueeComponent, isStandalone: true, selector: "bs-marquee", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, pauseText: { classPropertyName: "pauseText", publicName: "pauseText", isSignal: true, isRequired: false, transformFunction: null }, resumeText: { classPropertyName: "resumeText", publicName: "resumeText", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/marquee/src/templates/marquee.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<span data-mps=\"marquee\" [mpProps]=\"p_view.region\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"marquee\" [mpProps]=\"p_view.track\">\n <ng-content />\n </span>\n</span>\n<button data-mps=\"marquee\" [mpProps]=\"p_view.button\">\n {{ p_view.buttonText }}\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
17
28
  }
18
29
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsMarqueeComponent, decorators: [{
19
30
  type: Component,
20
- args: [{ selector: 'bs-marquee', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- role=marquee names the widget honestly AND supports the aria-label\n (a bare span with aria-label is ignored by name computation). -->\n<span class=\"marquee text-nowrap overflow-hidden d-block\" role=\"marquee\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"h1 d-inline-block\" [class.marquee-paused]=\"paused()\">\n <ng-content></ng-content>\n </span>\n</span>\n<button type=\"button\" class=\"marquee-pause\" (click)=\"togglePaused()\" [attr.aria-pressed]=\"paused()\">\n {{ paused() ? 'Resume' : 'Pause' }}\n</button>\n", styles: [".marquee{box-sizing:border-box}.marquee>span{padding-left:100%;animation:marquee 15s linear infinite}@media(prefers-reduced-motion:reduce){.marquee>span{animation:none;padding-left:0}}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-100%)}}.marquee-paused{animation-play-state:paused!important}.marquee-pause{border:0;background:transparent;padding:.125rem .375rem;font-size:.75rem;color:inherit;text-decoration:underline;cursor:pointer}@media(prefers-reduced-motion:reduce){.marquee .d-inline-block{animation:none!important}}\n"] }]
21
- }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
31
+ args: [{ selector: 'bs-marquee', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/marquee/src/templates/marquee.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<span data-mps=\"marquee\" [mpProps]=\"p_view.region\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"marquee\" [mpProps]=\"p_view.track\">\n <ng-content />\n </span>\n</span>\n<button data-mps=\"marquee\" [mpProps]=\"p_view.button\">\n {{ p_view.buttonText }}\n</button>\n" }]
32
+ }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], pauseText: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseText", required: false }] }], resumeText: [{ type: i0.Input, args: [{ isSignal: true, alias: "resumeText", required: false }] }] } });
33
+
34
+ // GENERATED from the marquee manifest by @mintplayer/nx-component-compiler. Do not edit.
35
+
36
+ // Generated from @mintplayer/ui-core/marquee (#458 D10).
22
37
 
23
38
  /**
24
39
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-marquee.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/marquee/src/marquee/marquee.component.ts","../../../../libs/mintplayer-ng-bootstrap/marquee/src/marquee/marquee.component.html","../../../../libs/mintplayer-ng-bootstrap/marquee/mintplayer-ng-bootstrap-marquee.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, signal } from '@angular/core';\n\n@Component({\n selector: 'bs-marquee',\n templateUrl: './marquee.component.html',\n styleUrls: ['./marquee.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsMarqueeComponent {\n readonly ariaLabel = input<string | null>(null);\n /** WCAG 2.2.2: moving content needs a pause affordance. */\n readonly paused = signal(false);\n\n togglePaused(): void {\n this.paused.update((paused) => !paused);\n }\n}\n","<!-- role=marquee names the widget honestly AND supports the aria-label\n (a bare span with aria-label is ignored by name computation). -->\n<span class=\"marquee text-nowrap overflow-hidden d-block\" role=\"marquee\" [attr.aria-label]=\"ariaLabel()\">\n <span class=\"h1 d-inline-block\" [class.marquee-paused]=\"paused()\">\n <ng-content></ng-content>\n </span>\n</span>\n<button type=\"button\" class=\"marquee-pause\" (click)=\"togglePaused()\" [attr.aria-pressed]=\"paused()\">\n {{ paused() ? 'Resume' : 'Pause' }}\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;;QAEtC,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,KAAK;mFAAC;AAKhC,IAAA;IAHC,YAAY,GAAA;AACV,QAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC;IACzC;8GAPW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,sNCR/B,2iBAUA,EAAA,MAAA,EAAA,CAAA,siBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDFa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACE,YAAY,EAAA,eAAA,EAGL,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2iBAAA,EAAA,MAAA,EAAA,CAAA,siBAAA,CAAA,EAAA;;;AENjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-marquee.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/marquee/src/generated/marquee.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/marquee/src/generated/marquee.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/marquee/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/marquee/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/marquee/mintplayer-ng-bootstrap-marquee.ts"],"sourcesContent":["// GENERATED from the marquee manifest (marquee) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { marqueeCore, type MarqueeInputs, marqueeScopedStyles } from '@mintplayer/ui-core/marquee';\n\n/** A scrolling ticker with a pause button (`pauseText` / `resumeText`), named by `label`. Hover, focus and reduced motion stop it. */\n@Component({\n selector: 'bs-marquee',\n templateUrl: './marquee.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsMarqueeComponent {\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<MarqueeInputs['label']>(null);\n readonly pauseText = input<MarqueeInputs['pauseText']>('Pause');\n readonly resumeText = input<MarqueeInputs['resumeText']>('Resume');\n\n readonly #core = useCore(marqueeCore, { inputs: () => ({ label: this.label(), pauseText: this.pauseText(), resumeText: this.resumeText() }), idPrefix: 'bs-marquee', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'marquee' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('marquee', marqueeScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/marquee/src/templates/marquee.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<span data-mps=\"marquee\" [mpProps]=\"p_view.region\" [mpHostAttrs]=\"hostAttrs\">\n <span data-mps=\"marquee\" [mpProps]=\"p_view.track\">\n <ng-content />\n </span>\n</span>\n<button data-mps=\"marquee\" [mpProps]=\"p_view.button\">\n {{ p_view.buttonText }}\n</button>\n","// GENERATED from the marquee manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsMarqueeComponent } from './marquee.component.generated';\n","// Generated from @mintplayer/ui-core/marquee (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;MAOa,kBAAkB,CAAA;AAWpB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAbS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE;QAEpC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAyB,IAAI;kFAAC;QAC3C,IAAA,CAAA,SAAS,GAAG,KAAK,CAA6B,OAAO;sFAAC;QACtD,IAAA,CAAA,UAAU,GAAG,KAAK,CAA8B,QAAQ;uFAAC;AAEzD,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;;AAExN,QAA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