@mintplayer/ng-bootstrap 22.32.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  3. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  5. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  7. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
  8. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
  10. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  11. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
  12. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  13. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  14. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  15. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
  16. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  17. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +6 -8
  18. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  20. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  21. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  22. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  25. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
  26. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  27. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
  28. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  29. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  30. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  31. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  32. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  33. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  34. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +12 -24
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
  40. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  41. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  42. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  43. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  44. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  45. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
  46. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  47. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  48. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
  50. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  51. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
  52. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  53. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
  54. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  55. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
  56. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  57. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
  58. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  59. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +199 -16
  60. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  62. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  63. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
  64. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  66. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  67. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
  68. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
  69. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
  70. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  71. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
  72. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  73. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
  74. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  75. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
  76. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  77. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
  78. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  79. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  80. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  81. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
  82. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
  84. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  85. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  86. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  87. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
  88. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  89. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  90. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  91. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
  92. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  93. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +7 -15
  94. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
  96. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  97. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
  98. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  99. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  100. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  101. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  102. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  103. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  104. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
  106. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  107. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
  108. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  109. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +8 -8
  110. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  111. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  112. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  113. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -7
  114. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  115. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  116. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  117. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
  118. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  119. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
  120. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  121. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
  122. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  123. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  125. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  126. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  127. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  128. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  129. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +9 -13
  130. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  131. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
  132. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
  134. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  135. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  136. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  137. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  138. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  139. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
  140. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  141. package/package.json +2 -22
  142. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
  143. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  144. package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
  145. package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
  146. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
  147. package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
  148. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  149. package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
  150. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  151. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  152. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  153. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  154. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
  155. package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
  156. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  157. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  158. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  159. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  160. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
  161. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
  162. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  163. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  164. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  165. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  166. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  167. package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
  168. package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
  169. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  170. package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
  171. package/types/mintplayer-ng-bootstrap-machine.d.ts +95 -4
  172. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  173. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
  174. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  175. package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
  176. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
  177. package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
  178. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  179. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
  180. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
  181. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  182. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
  183. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
  184. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  185. package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
  186. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  187. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
  188. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  189. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  190. package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
  191. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  192. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  193. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  194. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  195. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
  196. package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
  197. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  198. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
  199. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  200. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
  201. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  202. package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
  203. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  204. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  205. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
  206. package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
  207. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  208. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  209. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  210. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  211. package/calendar-month/package.json +0 -4
  212. package/dropdown-divider/package.json +0 -4
  213. package/dropdown-menu/package.json +0 -4
  214. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  215. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  216. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
  217. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  218. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
  219. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  220. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  221. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  222. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  223. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  224. package/has-overlay/package.json +0 -4
  225. package/no-noscript/package.json +0 -4
  226. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  227. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
  228. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  229. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  230. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-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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AA,EAAA,CAAA,CAAA;;2FAGf,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WAEb,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,kcAAA,EAAA;;;AEVjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,287 +1,87 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, signal, Injectable, inject, Injector, ChangeDetectionStrategy, Component, ApplicationRef, model, input, effect, TemplateRef, Directive, ElementRef, afterNextRender } from '@angular/core';
3
- import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
- import { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';
5
- import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
2
+ import { inject, TemplateRef, Directive, ElementRef, model, input, booleanAttribute, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
6
3
  import { NgTemplateOutlet } from '@angular/common';
7
- import { FadeInOutAnimation, EnterFromTopAnimation } from '@mintplayer/ng-animations';
8
- import { BsOverlayFocusDirective, BsOverlayStackService, BsIdService } from '@mintplayer/ng-bootstrap/a11y';
9
- import { Overlay } from '@angular/cdk/overlay';
10
- import { ComponentPortal } from '@angular/cdk/portal';
11
- import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
12
-
13
- const MODAL_CONTENT = new InjectionToken('ModalContent');
14
-
15
- /**
16
- * Component-scoped state shared between BsModalComponent (the dialog renderer)
17
- * and the bsModalHeader / bsModalBody directives applied to the user's template.
18
- * Provides the ids for aria-labelledby and aria-describedby.
19
- */
20
- class BsModalContextService {
21
- constructor() {
22
- this.headerId = signal(null, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "headerId" }] : /* istanbul ignore next */ []));
24
- this.bodyId = signal(null, /* @ts-ignore */
25
- ...(ngDevMode ? [{ debugName: "bodyId" }] : /* istanbul ignore next */ []));
26
- }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
28
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalContextService }); }
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalContextService, decorators: [{
31
- type: Injectable
32
- }] });
33
-
34
- class BsModalComponent {
35
- constructor() {
36
- this.template = inject(MODAL_CONTENT);
37
- this.isOpen = signal(false, /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
39
- this.scrollable = signal(false, /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
41
- this.context = inject(BsModalContextService);
42
- this.injector = inject(Injector);
43
- // #452: the modal and transitions partials ship with this component, scoped to the elements it stamps (data-mps="modal").
44
- useBootstrap(bootstrapModal, bootstrapTransitions);
45
- }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsModalComponent, isStandalone: true, selector: "bs-modal-content", providers: [BsModalContextService], ngImport: i0, template: "@if (isOpen()) {\n <div data-mps=\"modal\" class=\"modal d-block\"\n [@fadeInOut]\n [@enterFromTop]\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [bsOverlayFocus]=\"true\"\n tabindex=\"-1\">\n <div data-mps=\"modal\" class=\"modal-dialog\" [class.modal-dialog-scrollable]=\"scrollable()\">\n <div data-mps=\"modal\" class=\"modal-content\">\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n </div>\n </div>\n </div>\n\n <div data-mps=\"modal\" [@fadeInOut]>\n <div data-mps=\"modal\" class=\"modal-backdrop fade\" [class.show]=\"isOpen()\" aria-hidden=\"true\"></div>\n </div>\n}\n", styles: [".modal-dialog-scrollable .modal-content>::ng-deep *{display:contents}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsOverlayFocusDirective, selector: "[bsOverlayFocus]", inputs: ["bsOverlayFocus", "initialFocus", "returnFocus"], exportAs: ["bsOverlayFocus"] }], animations: [FadeInOutAnimation, EnterFromTopAnimation], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalComponent, decorators: [{
50
- type: Component,
51
- args: [{ selector: 'bs-modal-content', imports: [NgTemplateOutlet, BsOverlayFocusDirective], animations: [FadeInOutAnimation, EnterFromTopAnimation], changeDetection: ChangeDetectionStrategy.OnPush, providers: [BsModalContextService], template: "@if (isOpen()) {\n <div data-mps=\"modal\" class=\"modal d-block\"\n [@fadeInOut]\n [@enterFromTop]\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [bsOverlayFocus]=\"true\"\n tabindex=\"-1\">\n <div data-mps=\"modal\" class=\"modal-dialog\" [class.modal-dialog-scrollable]=\"scrollable()\">\n <div data-mps=\"modal\" class=\"modal-content\">\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n </div>\n </div>\n </div>\n\n <div data-mps=\"modal\" [@fadeInOut]>\n <div data-mps=\"modal\" class=\"modal-backdrop fade\" [class.show]=\"isOpen()\" aria-hidden=\"true\"></div>\n </div>\n}\n", styles: [".modal-dialog-scrollable .modal-content>::ng-deep *{display:contents}\n"] }]
52
- }], ctorParameters: () => [] });
53
-
54
- const PORTAL_FACTORY = new InjectionToken('ModalPortalFactory');
55
-
56
- /** Time the modal's leave animation is given before its overlay is disposed. */
57
- const MODAL_LEAVE_MS = 500;
58
- class BsModalHostComponent {
59
- constructor() {
60
- this.overlay = inject(Overlay);
61
- this.appRef = inject(ApplicationRef);
62
- this.parentInjector = inject(Injector);
63
- this.portalFactory = inject(PORTAL_FACTORY);
64
- this.overlayStack = inject(BsOverlayStackService);
65
- this.stackToken = null;
66
- //#region isOpen
67
- this.isOpen = model(false, /* @ts-ignore */
68
- ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
69
- //#endregion
70
- this.closeOnEscape = input(true, /* @ts-ignore */
71
- ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
72
- this.scrollable = input(false, /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
74
- effect(() => {
75
- const value = this.isOpen();
76
- if (this.componentInstance) {
77
- this.componentInstance.instance.isOpen.set(value);
78
- }
79
- if (value && this.stackToken === null) {
80
- this.stackToken = this.overlayStack.push();
81
- }
82
- else if (!value && this.stackToken !== null) {
83
- this.overlayStack.release(this.stackToken);
84
- this.stackToken = null;
85
- }
86
- });
87
- effect(() => {
88
- const scrollable = this.scrollable();
89
- if (this.componentInstance) {
90
- this.componentInstance.instance.scrollable.set(scrollable);
91
- }
92
- });
93
- }
94
- ngAfterViewInit() {
95
- const injector = Injector.create({
96
- providers: [
97
- { provide: MODAL_CONTENT, useValue: this.template }
98
- ],
99
- parent: this.parentInjector
100
- });
101
- const portal = this.portalFactory(injector);
102
- this.overlayRef = this.overlay.create({
103
- scrollStrategy: this.overlay.scrollStrategies.reposition(),
104
- positionStrategy: this.overlay.position()
105
- .global().centerHorizontally().bottom('0').top('0').left('0').right('0'),
106
- width: '100%',
107
- hasBackdrop: false
108
- });
109
- this.componentInstance = this.overlayRef.attach(portal);
110
- this.componentInstance.instance.isOpen.set(this.isOpen());
111
- this.componentInstance.instance.scrollable.set(this.scrollable());
112
- }
113
- /**
114
- * Plays the modal's leave animation, then disposes the overlay. The close is written to the
115
- * modal directly: this host's sync effect is destroyed with it and would never deliver it.
116
- * If the application is torn down first, the pending dispose is cancelled and runs at once.
117
- */
118
- ngOnDestroy() {
119
- if (this.stackToken !== null) {
120
- this.overlayStack.release(this.stackToken);
121
- this.stackToken = null;
122
- }
123
- if (!this.overlayRef)
124
- return;
125
- const overlayRef = this.overlayRef;
126
- this.componentInstance?.instance.isOpen.set(false);
127
- const dispose = () => {
128
- clearTimeout(timer);
129
- unregister();
130
- overlayRef.dispose();
131
- };
132
- const timer = setTimeout(dispose, MODAL_LEAVE_MS);
133
- const unregister = this.appRef.onDestroy(dispose);
134
- }
135
- onKeyDown(event) {
136
- const ev = event;
137
- if (this.isOpen() && this.closeOnEscape() && ev.code === 'Escape') {
138
- if (this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {
139
- this.isOpen.set(false);
140
- }
141
- }
142
- }
143
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
144
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsModalHostComponent, isStandalone: true, selector: "bs-modal", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange" }, host: { listeners: { "document:keydown": "onKeyDown($event)" } }, providers: [{
145
- provide: PORTAL_FACTORY,
146
- useValue: (injector) => {
147
- return new ComponentPortal(BsModalComponent, null, injector);
148
- }
149
- }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>", styles: [""], dependencies: [{ kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
150
- }
151
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalHostComponent, decorators: [{
152
- type: Component,
153
- args: [{ selector: 'bs-modal', imports: [BsHasOverlayComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
154
- provide: PORTAL_FACTORY,
155
- useValue: (injector) => {
156
- return new ComponentPortal(BsModalComponent, null, injector);
157
- }
158
- }], host: {
159
- '(document:keydown)': 'onKeyDown($event)',
160
- }, template: "<bs-has-overlay></bs-has-overlay>" }]
161
- }], ctorParameters: () => [], propDecorators: { isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }, { type: i0.Output, args: ["isOpenChange"] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }] } });
162
-
163
- class BsModalDirective {
164
- constructor() {
165
- const template = inject(TemplateRef);
166
- const host = inject(BsModalHostComponent);
167
- host.template = template;
168
- }
169
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
170
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalDirective, isStandalone: true, selector: "[bsModal]", ngImport: i0 }); }
171
- }
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalDirective, decorators: [{
173
- type: Directive,
174
- args: [{
175
- selector: '[bsModal]',
176
- }]
177
- }], ctorParameters: () => [] });
4
+ import { useCore, useScopedStyles, MpBodyTeleportDirective, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
+ import { modalCore, modalScopedStyles } from '@mintplayer/ui-core/modal';
6
+ import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
7
+ import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
8
+ import { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';
178
9
 
10
+ // GENERATED from the modal manifest (modal) by @mintplayer/nx-component-compiler. Do not edit.
11
+ /** The `header` slot of `<bs-modal>`: `<ng-template bsModalHeader>` or `*bsModalHeader`. */
179
12
  class BsModalHeaderDirective {
180
13
  constructor() {
181
- this.el = inject(ElementRef);
182
- this.ids = inject(BsIdService);
183
- this.context = inject(BsModalContextService, { optional: true });
184
- // #452: the modal partial ships with this component, scoped to the elements it stamps (data-mps="modal").
185
- useBootstrap(bootstrapModal);
186
- // After first render, all sibling host bindings + static attrs on this element
187
- // have applied. Read an existing id if the consumer set one, otherwise generate
188
- // and assign — then publish it to the modal context for aria-labelledby.
189
- afterNextRender(() => {
190
- let id = this.el.nativeElement.id;
191
- if (!id) {
192
- id = this.ids.next('bs-modal-header');
193
- this.el.nativeElement.id = id;
194
- }
195
- this.context?.headerId.set(id);
196
- });
14
+ this.templateRef = inject(TemplateRef);
197
15
  }
198
16
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
199
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalHeaderDirective, isStandalone: true, selector: "[bsModalHeader]", host: { properties: { "attr.data-mps": "\"modal\"", "class.modal-header": "true" } }, ngImport: i0 }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalHeaderDirective, isStandalone: true, selector: "[bsModalHeader]", ngImport: i0 }); }
200
18
  }
201
19
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalHeaderDirective, decorators: [{
202
20
  type: Directive,
203
- args: [{
204
- selector: '[bsModalHeader]',
205
- host: {
206
- '[attr.data-mps]': '"modal"',
207
- '[class.modal-header]': 'true',
208
- },
209
- }]
210
- }], ctorParameters: () => [] });
211
-
212
- class BsModalBodyDirective {
213
- constructor() {
214
- this.el = inject(ElementRef);
215
- this.ids = inject(BsIdService);
216
- this.context = inject(BsModalContextService, { optional: true });
217
- // #452: the modal partial ships with this component, scoped to the elements it stamps (data-mps="modal").
218
- useBootstrap(bootstrapModal);
219
- afterNextRender(() => {
220
- let id = this.el.nativeElement.id;
221
- if (!id) {
222
- id = this.ids.next('bs-modal-body');
223
- this.el.nativeElement.id = id;
224
- }
225
- this.context?.bodyId.set(id);
226
- });
227
- }
228
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalBodyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
229
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalBodyDirective, isStandalone: true, selector: "[bsModalBody]", host: { properties: { "attr.data-mps": "\"modal\"", "class.modal-body": "true" } }, ngImport: i0 }); }
230
- }
231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalBodyDirective, decorators: [{
232
- type: Directive,
233
- args: [{
234
- selector: '[bsModalBody]',
235
- host: {
236
- '[attr.data-mps]': '"modal"',
237
- '[class.modal-body]': 'true',
238
- },
239
- }]
240
- }], ctorParameters: () => [] });
241
-
21
+ args: [{ selector: '[bsModalHeader]' }]
22
+ }] });
23
+ /** The `footer` slot of `<bs-modal>`: `<ng-template bsModalFooter>` or `*bsModalFooter`. */
242
24
  class BsModalFooterDirective {
243
25
  constructor() {
244
- // #452: the modal partial ships with this component, scoped to the elements it stamps (data-mps="modal").
245
- useBootstrap(bootstrapModal);
26
+ this.templateRef = inject(TemplateRef);
246
27
  }
247
28
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
248
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalFooterDirective, isStandalone: true, selector: "[bsModalFooter]", host: { properties: { "attr.data-mps": "\"modal\"", "class.modal-footer": "true" } }, ngImport: i0 }); }
29
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalFooterDirective, isStandalone: true, selector: "[bsModalFooter]", ngImport: i0 }); }
249
30
  }
250
31
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalFooterDirective, decorators: [{
251
32
  type: Directive,
252
- args: [{
253
- selector: '[bsModalFooter]',
254
- host: {
255
- '[attr.data-mps]': '"modal"',
256
- '[class.modal-footer]': 'true',
257
- },
258
- }]
259
- }], ctorParameters: () => [] });
260
-
261
- class BsModalCloseDirective {
33
+ args: [{ selector: '[bsModalFooter]' }]
34
+ }] });
35
+ /**
36
+ * Bootstrap's modal dialog, rendered at the end of `<body>`. `open` is two-way. The `header` slot names the
37
+ * dialog; the `footer` slot holds its actions. Any element inside with `data-bs-dismiss="modal"` closes it.
38
+ */
39
+ class BsModalComponent {
40
+ #core;
262
41
  constructor() {
263
- this.host = inject(BsModalHostComponent);
264
- }
265
- onClick() {
266
- this.host.isOpen.set(false);
42
+ /** The host element. */
43
+ this.elementRef = inject(ElementRef);
44
+ this.open = model(false, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
46
+ this.scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
47
+ this.centered = input(false, { ...(ngDevMode ? { debugName: "centered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
48
+ this.size = input(null, /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
50
+ this.closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
51
+ this.closeOnBackdrop = input(true, { ...(ngDevMode ? { debugName: "closeOnBackdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
+ this.closeButton = input(true, { ...(ngDevMode ? { debugName: "closeButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
53
+ this.closeLabel = input('Close', /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
55
+ this.headerSlot = contentChild(BsModalHeaderDirective, /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
57
+ this.footerSlot = contentChild(BsModalFooterDirective, /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []));
59
+ /** The template's named slots. */
60
+ this.slots = computed(() => ({ header: this.headerSlot()?.templateRef, footer: this.footerSlot()?.templateRef }), /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
62
+ this.#core = useCore(modalCore, { inputs: () => ({ open: this.open(), scrollable: this.scrollable(), centered: this.centered(), size: this.size(), closeOnEscape: this.closeOnEscape(), closeOnBackdrop: this.closeOnBackdrop(), closeButton: this.closeButton(), closeLabel: this.closeLabel() }), idPrefix: 'bs-modal', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'modal' }), models: { open: this.open } });
63
+ /** The template's props. */
64
+ this.props = this.#core.props;
65
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
66
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
67
+ useScopedStyles(bootstrapModal.key, bootstrapModal.css, { order: bootstrapModal.order });
68
+ useScopedStyles('modal', modalScopedStyles);
267
69
  }
268
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
269
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsModalCloseDirective, isStandalone: true, selector: "[bsModalClose]", host: { listeners: { "click": "onClick()" }, properties: { "attr.aria-label": "\"Close\"" } }, ngImport: i0 }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsModalComponent, isStandalone: true, selector: "bs-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, centered: { classPropertyName: "centered", publicName: "centered", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, queries: [{ propertyName: "headerSlot", first: true, predicate: BsModalHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: BsModalFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/modal/src/templates/modal.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rendered) {\n <ng-template mpBodyTeleport>\n <div data-mps=\"modal\" [mpProps]=\"p_view.modal\">\n <div data-mps=\"modal\" [mpProps]=\"p_view.dialog\">\n <div data-mps=\"modal\" [mpProps]=\"p_view.content\">\n @if (slots().header) {\n <div data-mps=\"modal\" [mpProps]=\"p_view.header\">\n <h2 data-mps=\"modal\" [mpProps]=\"p_view.title\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </h2>\n @if (p_view.close) {\n <button data-mps=\"modal\" [mpProps]=\"p_view.close\"></button>\n }\n </div>\n }\n <div data-mps=\"modal\" [mpProps]=\"p_view.body\">\n <ng-content />\n </div>\n @if (slots().footer) {\n <div data-mps=\"modal\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n </div>\n </div>\n </div>\n <div data-mps=\"modal\" [mpProps]=\"p_view.backdrop\"></div>\n </ng-template>\n}\n", dependencies: [{ kind: "directive", type: MpBodyTeleportDirective, selector: "[mpBodyTeleport]" }, { kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
270
72
  }
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalCloseDirective, decorators: [{
272
- type: Directive,
273
- args: [{
274
- selector: '[bsModalClose]',
275
- host: {
276
- '[attr.aria-label]': '"Close"',
277
- '(click)': 'onClick()',
278
- },
279
- }]
280
- }] });
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsModalComponent, decorators: [{
74
+ type: Component,
75
+ args: [{ selector: 'bs-modal', imports: [MpBodyTeleportDirective, MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/modal/src/templates/modal.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rendered) {\n <ng-template mpBodyTeleport>\n <div data-mps=\"modal\" [mpProps]=\"p_view.modal\">\n <div data-mps=\"modal\" [mpProps]=\"p_view.dialog\">\n <div data-mps=\"modal\" [mpProps]=\"p_view.content\">\n @if (slots().header) {\n <div data-mps=\"modal\" [mpProps]=\"p_view.header\">\n <h2 data-mps=\"modal\" [mpProps]=\"p_view.title\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </h2>\n @if (p_view.close) {\n <button data-mps=\"modal\" [mpProps]=\"p_view.close\"></button>\n }\n </div>\n }\n <div data-mps=\"modal\" [mpProps]=\"p_view.body\">\n <ng-content />\n </div>\n @if (slots().footer) {\n <div data-mps=\"modal\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n </div>\n </div>\n </div>\n <div data-mps=\"modal\" [mpProps]=\"p_view.backdrop\"></div>\n </ng-template>\n}\n" }]
76
+ }], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], centered: [{ type: i0.Input, args: [{ isSignal: true, alias: "centered", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButton", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsModalHeaderDirective), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsModalFooterDirective), { isSignal: true }] }] } });
77
+
78
+ // GENERATED from the modal manifest by @mintplayer/nx-component-compiler. Do not edit.
79
+
80
+ // Generated from @mintplayer/ui-core/modal (#458 D10).
281
81
 
282
82
  /**
283
83
  * Generated bundle index. Do not edit.
284
84
  */
285
85
 
286
- export { BsModalBodyDirective, BsModalCloseDirective, BsModalComponent, BsModalDirective, BsModalFooterDirective, BsModalHeaderDirective, BsModalHostComponent, MODAL_LEAVE_MS };
86
+ export { BsModalComponent, BsModalFooterDirective, BsModalHeaderDirective };
287
87
  //# sourceMappingURL=mintplayer-ng-bootstrap-modal.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-modal.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/modal/src/providers/modal-content.provider.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/services/modal-context.service.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/components/modal/modal.component.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/components/modal/modal.component.html","../../../../libs/mintplayer-ng-bootstrap/modal/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/components/modal-host/modal-host.component.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/components/modal-host/modal-host.component.html","../../../../libs/mintplayer-ng-bootstrap/modal/src/directives/modal/modal.directive.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/directives/modal-header/modal-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/directives/modal-body/modal-body.directive.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/directives/modal-footer/modal-footer.directive.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/directives/modal-close/modal-close.directive.ts","../../../../libs/mintplayer-ng-bootstrap/modal/mintplayer-ng-bootstrap-modal.ts"],"sourcesContent":["import { InjectionToken, TemplateRef } from \"@angular/core\";\n\nexport const MODAL_CONTENT = new InjectionToken<TemplateRef<any>>('ModalContent');","import { Injectable, signal } from '@angular/core';\n\n/**\n * Component-scoped state shared between BsModalComponent (the dialog renderer)\n * and the bsModalHeader / bsModalBody directives applied to the user's template.\n * Provides the ids for aria-labelledby and aria-describedby.\n */\n@Injectable()\nexport class BsModalContextService {\n readonly headerId = signal<string | null>(null);\n readonly bodyId = signal<string | null>(null);\n}\n","import { Component, inject, Injector, signal, TemplateRef, ChangeDetectionStrategy } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { EnterFromTopAnimation, FadeInOutAnimation } from '@mintplayer/ng-animations';\nimport { BsOverlayFocusDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { MODAL_CONTENT } from '../../providers/modal-content.provider';\nimport { BsModalContextService } from '../../services/modal-context.service';\n\n@Component({\n selector: 'bs-modal-content',\n templateUrl: './modal.component.html',\n styleUrls: ['./modal.component.scss'],\n imports: [NgTemplateOutlet, BsOverlayFocusDirective],\n animations: [FadeInOutAnimation, EnterFromTopAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [BsModalContextService],\n})\nexport class BsModalComponent {\n constructor() {\n // #452: the modal and transitions partials ship with this component, scoped to the elements it stamps (data-mps=\"modal\").\n useBootstrap(bootstrapModal, bootstrapTransitions);\n }\n\n\n template = inject<TemplateRef<any>>(MODAL_CONTENT);\n isOpen = signal(false);\n scrollable = signal(false);\n\n context = inject(BsModalContextService);\n injector = inject(Injector);\n}\n","@if (isOpen()) {\n <div data-mps=\"modal\" class=\"modal d-block\"\n [@fadeInOut]\n [@enterFromTop]\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"context.headerId()\"\n [attr.aria-describedby]=\"context.bodyId()\"\n [bsOverlayFocus]=\"true\"\n tabindex=\"-1\">\n <div data-mps=\"modal\" class=\"modal-dialog\" [class.modal-dialog-scrollable]=\"scrollable()\">\n <div data-mps=\"modal\" class=\"modal-content\">\n <ng-container *ngTemplateOutlet=\"template; injector: injector\"></ng-container>\n </div>\n </div>\n </div>\n\n <div data-mps=\"modal\" [@fadeInOut]>\n <div data-mps=\"modal\" class=\"modal-backdrop fade\" [class.show]=\"isOpen()\" aria-hidden=\"true\"></div>\n </div>\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { InjectionToken, Injector } from \"@angular/core\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('ModalPortalFactory');","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { AfterViewInit, ApplicationRef, Component, ComponentRef, effect, inject, Injector, input, model, OnDestroy, TemplateRef, ChangeDetectionStrategy} from '@angular/core';\nimport { BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { MODAL_CONTENT } from '../../providers/modal-content.provider';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\nimport { BsModalComponent } from '../modal/modal.component';\n\n/** Time the modal's leave animation is given before its overlay is disposed. */\nexport const MODAL_LEAVE_MS = 500;\n\n@Component({\n selector: 'bs-modal',\n templateUrl: './modal-host.component.html',\n styleUrls: ['./modal-host.component.scss'],\n imports: [BsHasOverlayComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsModalComponent, null, injector);\n }\n }],\n host: {\n '(document:keydown)': 'onKeyDown($event)',\n },\n})\nexport class BsModalHostComponent implements AfterViewInit, OnDestroy {\n private overlay = inject(Overlay);\n private appRef = inject(ApplicationRef);\n private parentInjector = inject(Injector);\n private portalFactory = inject<(injector: Injector) => ComponentPortal<BsModalComponent>>(PORTAL_FACTORY);\n private overlayStack = inject(BsOverlayStackService);\n private stackToken: symbol | null = null;\n\n overlayRef!: OverlayRef;\n componentInstance?: ComponentRef<BsModalComponent>;\n template!: TemplateRef<any>;\n\n //#region isOpen\n readonly isOpen = model<boolean>(false);\n //#endregion\n readonly closeOnEscape = input(true);\n readonly scrollable = input(false);\n\n constructor() {\n effect(() => {\n const value = this.isOpen();\n if (this.componentInstance) {\n this.componentInstance.instance.isOpen.set(value);\n }\n\n if (value && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!value && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n\n effect(() => {\n const scrollable = this.scrollable();\n if (this.componentInstance) {\n this.componentInstance.instance.scrollable.set(scrollable);\n }\n });\n }\n\n ngAfterViewInit() {\n const injector = Injector.create({\n providers: [\n { provide: MODAL_CONTENT, useValue: this.template }\n ],\n parent: this.parentInjector\n });\n const portal = this.portalFactory(injector);\n this.overlayRef = this.overlay.create({\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n positionStrategy: this.overlay.position()\n .global().centerHorizontally().bottom('0').top('0').left('0').right('0'),\n width: '100%',\n hasBackdrop: false\n });\n this.componentInstance = this.overlayRef.attach<BsModalComponent>(portal);\n this.componentInstance.instance.isOpen.set(this.isOpen());\n this.componentInstance.instance.scrollable.set(this.scrollable());\n }\n\n /**\n * Plays the modal's leave animation, then disposes the overlay. The close is written to the\n * modal directly: this host's sync effect is destroyed with it and would never deliver it.\n * If the application is torn down first, the pending dispose is cancelled and runs at once.\n */\n ngOnDestroy() {\n if (this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n if (!this.overlayRef) return;\n const overlayRef = this.overlayRef;\n this.componentInstance?.instance.isOpen.set(false);\n const dispose = () => {\n clearTimeout(timer);\n unregister();\n overlayRef.dispose();\n };\n const timer = setTimeout(dispose, MODAL_LEAVE_MS);\n const unregister = this.appRef.onDestroy(dispose);\n }\n\n onKeyDown(event: Event) {\n const ev = event as KeyboardEvent;\n if (this.isOpen() && this.closeOnEscape() && ev.code === 'Escape') {\n if (this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.isOpen.set(false);\n }\n }\n }\n}","<bs-has-overlay></bs-has-overlay>","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { BsModalHostComponent } from '../../components/modal-host/modal-host.component';\n\n@Directive({\n selector: '[bsModal]',\n})\nexport class BsModalDirective {\n\n constructor() {\n const template = inject(TemplateRef);\n const host = inject(BsModalHostComponent);\n host.template = template;\n }\n\n}\n","import { afterNextRender, Directive, ElementRef, inject } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsModalContextService } from '../../services/modal-context.service';\n\n@Directive({\n selector: '[bsModalHeader]',\n host: {\n '[attr.data-mps]': '\"modal\"',\n '[class.modal-header]': 'true',\n },\n})\nexport class BsModalHeaderDirective {\n private el = inject<ElementRef<HTMLElement>>(ElementRef);\n private ids = inject(BsIdService);\n private context = inject(BsModalContextService, { optional: true });\n\n constructor() {\n // #452: the modal partial ships with this component, scoped to the elements it stamps (data-mps=\"modal\").\n useBootstrap(bootstrapModal);\n // After first render, all sibling host bindings + static attrs on this element\n // have applied. Read an existing id if the consumer set one, otherwise generate\n // and assign — then publish it to the modal context for aria-labelledby.\n afterNextRender(() => {\n let id = this.el.nativeElement.id;\n if (!id) {\n id = this.ids.next('bs-modal-header');\n this.el.nativeElement.id = id;\n }\n this.context?.headerId.set(id);\n });\n }\n}\n","import { afterNextRender, Directive, ElementRef, inject } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsModalContextService } from '../../services/modal-context.service';\n\n@Directive({\n selector: '[bsModalBody]',\n host: {\n '[attr.data-mps]': '\"modal\"',\n '[class.modal-body]': 'true',\n },\n})\nexport class BsModalBodyDirective {\n private el = inject<ElementRef<HTMLElement>>(ElementRef);\n private ids = inject(BsIdService);\n private context = inject(BsModalContextService, { optional: true });\n\n constructor() {\n // #452: the modal partial ships with this component, scoped to the elements it stamps (data-mps=\"modal\").\n useBootstrap(bootstrapModal);\n afterNextRender(() => {\n let id = this.el.nativeElement.id;\n if (!id) {\n id = this.ids.next('bs-modal-body');\n this.el.nativeElement.id = id;\n }\n this.context?.bodyId.set(id);\n });\n }\n}\n","import { Directive } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';\n\n@Directive({\n selector: '[bsModalFooter]',\n host: {\n '[attr.data-mps]': '\"modal\"',\n '[class.modal-footer]': 'true',\n },\n})\nexport class BsModalFooterDirective {\n constructor() {\n // #452: the modal partial ships with this component, scoped to the elements it stamps (data-mps=\"modal\").\n useBootstrap(bootstrapModal);\n }\n\n}\n","import { Directive, inject } from '@angular/core';\nimport { BsModalHostComponent } from '../../components/modal-host/modal-host.component';\n\n@Directive({\n selector: '[bsModalClose]',\n host: {\n '[attr.aria-label]': '\"Close\"',\n '(click)': 'onClick()',\n },\n})\nexport class BsModalCloseDirective {\n private host = inject(BsModalHostComponent);\n\n onClick() {\n this.host.isOpen.set(false);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport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F,iBAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-modal.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/modal/src/generated/modal.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/generated/modal.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/modal/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/modal/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/modal/mintplayer-ng-bootstrap-modal.ts"],"sourcesContent":["// GENERATED from the modal manifest (modal) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpBodyTeleportDirective, MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { modalCore, type ModalInputs, modalScopedStyles } from '@mintplayer/ui-core/modal';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapModal } from '@mintplayer/ui-core/bootstrap/modal';\n\n/** The `header` slot of `<bs-modal>`: `<ng-template bsModalHeader>` or `*bsModalHeader`. */\n@Directive({ selector: '[bsModalHeader]' })\nexport class BsModalHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `footer` slot of `<bs-modal>`: `<ng-template bsModalFooter>` or `*bsModalFooter`. */\n@Directive({ selector: '[bsModalFooter]' })\nexport class BsModalFooterDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * Bootstrap's modal dialog, rendered at the end of `<body>`. `open` is two-way. The `header` slot names the\n * dialog; the `footer` slot holds its actions. Any element inside with `data-bs-dismiss=\"modal\"` closes it.\n */\n@Component({\n selector: 'bs-modal',\n templateUrl: './modal.view.generated.html',\n imports: [MpBodyTeleportDirective, MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsModalComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly open = model<ModalInputs['open']>(false);\n readonly scrollable = input<ModalInputs['scrollable'], unknown>(false, { transform: booleanAttribute });\n readonly centered = input<ModalInputs['centered'], unknown>(false, { transform: booleanAttribute });\n readonly size = input<ModalInputs['size']>(null);\n readonly closeOnEscape = input<ModalInputs['closeOnEscape'], unknown>(true, { transform: booleanAttribute });\n readonly closeOnBackdrop = input<ModalInputs['closeOnBackdrop'], unknown>(true, { transform: booleanAttribute });\n readonly closeButton = input<ModalInputs['closeButton'], unknown>(true, { transform: booleanAttribute });\n readonly closeLabel = input<ModalInputs['closeLabel']>('Close');\n\n private readonly headerSlot = contentChild(BsModalHeaderDirective);\n private readonly footerSlot = contentChild(BsModalFooterDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ header: this.headerSlot()?.templateRef, footer: this.footerSlot()?.templateRef }));\n readonly #core = useCore(modalCore, { inputs: () => ({ open: this.open(), scrollable: this.scrollable(), centered: this.centered(), size: this.size(), closeOnEscape: this.closeOnEscape(), closeOnBackdrop: this.closeOnBackdrop(), closeButton: this.closeButton(), closeLabel: this.closeLabel() }), idPrefix: 'bs-modal', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'modal' }), models: { open: this.open } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles(bootstrapModal.key, bootstrapModal.css, { order: bootstrapModal.order }); useScopedStyles('modal', modalScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/modal/src/templates/modal.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@if (p_view.rendered) {\n <ng-template mpBodyTeleport>\n <div data-mps=\"modal\" [mpProps]=\"p_view.modal\">\n <div data-mps=\"modal\" [mpProps]=\"p_view.dialog\">\n <div data-mps=\"modal\" [mpProps]=\"p_view.content\">\n @if (slots().header) {\n <div data-mps=\"modal\" [mpProps]=\"p_view.header\">\n <h2 data-mps=\"modal\" [mpProps]=\"p_view.title\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </h2>\n @if (p_view.close) {\n <button data-mps=\"modal\" [mpProps]=\"p_view.close\"></button>\n }\n </div>\n }\n <div data-mps=\"modal\" [mpProps]=\"p_view.body\">\n <ng-content />\n </div>\n @if (slots().footer) {\n <div data-mps=\"modal\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n </div>\n </div>\n </div>\n <div data-mps=\"modal\" [mpProps]=\"p_view.backdrop\"></div>\n </ng-template>\n}\n","// GENERATED from the modal manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsModalComponent, BsModalHeaderDirective, BsModalFooterDirective } from './modal.component.generated';\n","// Generated from @mintplayer/ui-core/modal (#458 D10).\nexport * from './generated';\nexport type { ModalInputs, ModalSize } from '@mintplayer/ui-core/modal';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AASA;MAEa,sBAAsB,CAAA;AADnC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC;AACjE,IAAA;8GAFY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB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AAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,YAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,sBAAsB,4FACtB,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7CnE;;ACAA;;ACAA;;AAEG;;;;"}
@@ -31,13 +31,13 @@ class BsMultiRangeValueAccessor {
31
31
  // (a null form value shown as [min, max]) never reaches the form as a change.
32
32
  const component = this.injector.get(BsMultiRangeComponent);
33
33
  const report = (value) => {
34
- if (!this.bound() || same(value, this.viewValue()))
34
+ if (!value || !this.bound() || same(value, this.viewValue()))
35
35
  return;
36
36
  this.viewValue.set([...value]);
37
37
  this.onChange([...value]);
38
38
  };
39
- const subs = [component.valueinput.subscribe(report), component.valuechange.subscribe(report)];
40
- this.destroyRef.onDestroy(() => subs.forEach((sub) => sub.unsubscribe()));
39
+ const sub = component.value.subscribe(report);
40
+ this.destroyRef.onDestroy(() => sub.unsubscribe());
41
41
  }
42
42
  registerOnChange(fn) {
43
43
  this.bound.set(true);
@@ -89,7 +89,7 @@ function extendInputs(inputs) {
89
89
  *
90
90
  * With JavaScript off the thumbs drag, step and submit under `name`. Thumbs never pass each other;
91
91
  * `minDistance` keeps a gap between neighbours. `value` is two-way, one entry per thumb.
92
- * `valueInput` fires while a thumb moves, `valueChange` when the move is committed.
92
+ * `value` follows every move; `valueCommit` fires when a move is committed.
93
93
  */
94
94
  class BsMultiRangeComponent {
95
95
  #core;
@@ -113,11 +113,9 @@ class BsMultiRangeComponent {
113
113
  ...(ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []));
114
114
  this.value = model(null, /* @ts-ignore */
115
115
  ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
116
- /** While a thumb moves: every pointer move and key step. */
117
- this.valueinput = output();
118
- /** A move committed: the pointer released, or a key step. */
119
- this.valuechange = output();
120
- this.#core = useCore(multiRangeCore, { inputs: extendInputs(() => ({ min: this.min(), max: this.max(), step: this.step(), minDistance: this.minDistance(), orientation: this.orientation(), disabled: this.disabled(), name: this.name(), label: this.label(), thumbLabels: this.thumbLabels(), formatValue: this.formatValue(), value: this.value() })), idPrefix: 'bs-multi-range', outputs: { valueInput: this.valueinput, valueChange: this.valuechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'multi-range' }), models: { value: this.value } });
116
+ /** A move committed: the pointer released, or a key step. `value` itself follows every move. */
117
+ this.valueCommit = output();
118
+ this.#core = useCore(multiRangeCore, { inputs: extendInputs(() => ({ min: this.min(), max: this.max(), step: this.step(), minDistance: this.minDistance(), orientation: this.orientation(), disabled: this.disabled(), name: this.name(), label: this.label(), thumbLabels: this.thumbLabels(), formatValue: this.formatValue(), value: this.value() })), idPrefix: 'bs-multi-range', outputs: { valueCommit: this.valueCommit }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'multi-range' }), models: { value: this.value } });
121
119
  /** The template's props. */
122
120
  this.props = this.#core.props;
123
121
  useScopedStyles('multi-range', multiRangeScopedStyles);
@@ -127,12 +125,12 @@ class BsMultiRangeComponent {
127
125
  return this.#core.call('getValues', args);
128
126
  }
129
127
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsMultiRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
130
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsMultiRangeComponent, isStandalone: true, selector: "bs-multi-range", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minDistance: { classPropertyName: "minDistance", publicName: "minDistance", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, thumbLabels: { classPropertyName: "thumbLabels", publicName: "thumbLabels", isSignal: true, isRequired: false, transformFunction: null }, formatValue: { classPropertyName: "formatValue", publicName: "formatValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueinput: "valueinput", valuechange: "valuechange" }, hostDirectives: [{ directive: BsMultiRangeValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/multi-range/src/templates/multi-range.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"multi-range\" [mpProps]=\"p_view.track\">\n @for (fill of p_view.fills; track fill.key) {\n <div data-mps=\"multi-range\" [mpProps]=\"fill.bag\" [style]=\"fill.geometry\"></div>\n }\n @for (thumb of p_view.thumbs; track thumb.key) {\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.slot\">\n <input data-mps=\"multi-range\" [mpProps]=\"thumb.input\">\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.tooltip\" [style]=\"thumb.position\">\n {{ thumb.text }}\n </span>\n </span>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
128
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsMultiRangeComponent, isStandalone: true, selector: "bs-multi-range", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minDistance: { classPropertyName: "minDistance", publicName: "minDistance", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, thumbLabels: { classPropertyName: "thumbLabels", publicName: "thumbLabels", isSignal: true, isRequired: false, transformFunction: null }, formatValue: { classPropertyName: "formatValue", publicName: "formatValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueCommit: "valueCommit" }, hostDirectives: [{ directive: BsMultiRangeValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/multi-range/src/templates/multi-range.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"multi-range\" [mpProps]=\"p_view.track\">\n @for (fill of p_view.fills; track fill.key) {\n <div data-mps=\"multi-range\" [mpProps]=\"fill.bag\" [style]=\"fill.geometry\"></div>\n }\n @for (thumb of p_view.thumbs; track thumb.key) {\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.slot\">\n <input data-mps=\"multi-range\" [mpProps]=\"thumb.input\">\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.tooltip\" [style]=\"thumb.position\">\n {{ thumb.text }}\n </span>\n </span>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
131
129
  }
132
130
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsMultiRangeComponent, decorators: [{
133
131
  type: Component,
134
132
  args: [{ selector: 'bs-multi-range', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/multi-range/src/templates/multi-range.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"multi-range\" [mpProps]=\"p_view.track\">\n @for (fill of p_view.fills; track fill.key) {\n <div data-mps=\"multi-range\" [mpProps]=\"fill.bag\" [style]=\"fill.geometry\"></div>\n }\n @for (thumb of p_view.thumbs; track thumb.key) {\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.slot\">\n <input data-mps=\"multi-range\" [mpProps]=\"thumb.input\">\n <span data-mps=\"multi-range\" [mpProps]=\"thumb.tooltip\" [style]=\"thumb.position\">\n {{ thumb.text }}\n </span>\n </span>\n }\n</div>\n" }]
135
- }], ctorParameters: () => [], propDecorators: { min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDistance", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], thumbLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "thumbLabels", required: false }] }], formatValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatValue", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueinput: [{ type: i0.Output, args: ["valueinput"] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }] } });
133
+ }], ctorParameters: () => [], propDecorators: { min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDistance", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], thumbLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "thumbLabels", required: false }] }], formatValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatValue", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueCommit: [{ type: i0.Output, args: ["valueCommit"] }] } });
136
134
 
137
135
  // GENERATED from the multi-range manifest by @mintplayer/nx-component-compiler. Do not edit.
138
136