@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-timepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/value-accessor/timepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/timepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/mintplayer-ng-bootstrap-timepicker.ts"],"sourcesContent":["// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timeListCore, type TimeListInputs, type TimeListMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\n\n/**\n * A listbox of time slots (#437): one real button per option, a roving tabindex, the APG keymap\n * (arrows, Home/End, PageUp/PageDown one hour). Bounds are minutes from midnight.\n * With JavaScript off the slots render inert.\n */\n@Component({\n selector: 'bs-time-list',\n templateUrl: './time-list.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimeListComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimeListInputs['selectedTime']>(null);\n readonly step = input<TimeListInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['step'] });\n readonly minMinutes = input<TimeListInputs['minMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['minMinutes'] });\n readonly maxMinutes = input<TimeListInputs['maxMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['maxMinutes'] });\n readonly hour12 = input<TimeListInputs['hour12']>('auto');\n readonly locale = input<TimeListInputs['locale']>(null);\n readonly labels = input<TimeListInputs['labels']>(null);\n /** A slot chosen by click, Enter or Space. */\n readonly selectedtimechange = output<Date>();\n\n readonly #core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', outputs: { selectedTimeChange: this.selectedtimechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Focus the roving slot. */\n focusList(...args: Parameters<TimeListMethods['focusList']>): ReturnType<TimeListMethods['focusList']> {\n return this.#core.call('focusList', args) as ReturnType<TimeListMethods['focusList']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/time-list.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"timepicker\" [mpProps]=\"p_view.list\">\n @for (slot of p_view.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n</ul>\n","import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { minutesOfDay } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-timepicker` (a host\n * directive of the generated component, see `timepicker.angular.ts`). A bound\n * form control drives the picked time through `viewValue`; a pick reaches the\n * form through the component's `selectedTime` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation compares times of day: `min` (`{ min, actual }`) and `max`\n * (`{ max, actual }`).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTimepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsTimepickerComponent;\n\n /** A form control drives the time: its `viewValue` wins over the `selectedTime` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsTimepickerComponent));\n const sub = component.selectedtimechange.subscribe((value) => {\n if (!this.bound() || minutesOfDay(value) === minutesOfDay(this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnChange(fn: (value: Date | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const minutes = minutesOfDay(value)!;\n const min = component.min();\n const max = component.max();\n const errors: ValidationErrors = {\n ...(min && minutes < minutesOfDay(min)! ? { min: { min, actual: value } } : {}),\n ...(max && minutes > minutesOfDay(max)! ? { max: { max, actual: value } } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { TimepickerInputs } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerValueAccessor } from './value-accessor/timepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-timepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked time and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min and max.\n */\n\nexport const hostDirectives = [\n BsTimepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => TimepickerInputs): () => TimepickerInputs {\n const accessor = inject(BsTimepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<TimepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedTime: accessor.bound() ? accessor.viewValue() : value.selectedTime,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the timepicker manifest (timepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timepickerCore, type TimepickerInputs, type TimepickerMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../timepicker.angular';\n\n/**\n * A time field with a slot-list popup (#437).\n *\n * With JavaScript off it is a native time field that submits `name` as HH:MM. Once hydrated the\n * field becomes a readonly display, a button opens the list in a native popover, and a hidden\n * input carries the submitted value.\n */\n@Component({\n selector: 'bs-timepicker',\n templateUrl: './timepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTimepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimepickerInputs['selectedTime']>(null);\n readonly step = input<TimepickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimepickerInputs['step'] });\n readonly min = input<TimepickerInputs['min']>(null);\n readonly max = input<TimepickerInputs['max']>(null);\n readonly hour12 = input<TimepickerInputs['hour12']>('auto');\n readonly locale = input<TimepickerInputs['locale']>(null);\n readonly disabled = input<TimepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TimepickerInputs['placeholder']>(null);\n readonly required = input<TimepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<TimepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<TimepickerInputs['errorText']>(null);\n readonly inputLabel = input<TimepickerInputs['inputLabel']>(null);\n readonly name = input<TimepickerInputs['name']>(null);\n readonly labels = input<TimepickerInputs['labels']>(null);\n /** A slot picked in the list, or a time typed into the field before hydration. */\n readonly selectedtimechange = output<Date>();\n /** The popup opened (true) or closed (false). */\n readonly openchange = output<boolean>();\n\n readonly #core = useCore(timepickerCore, { inputs: ext_extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { selectedTimeChange: this.selectedtimechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Open the list (ignored when disabled). */\n open(...args: Parameters<TimepickerMethods['open']>): ReturnType<TimepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TimepickerMethods['open']>;\n }\n\n /** Close the list. */\n close(...args: Parameters<TimepickerMethods['close']>): ReturnType<TimepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TimepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/timepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"timepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n</div>\n","// GENERATED from the timepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTimeListComponent } from './time-list.component.generated';\nexport { BsTimepickerComponent } from './timepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTimepickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAAA;AAMA;;;;AAIG;MAOU,mBAAmB,CAAA;AAcrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAhBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,YAAY,GAAG,KAAK,CAAiC,IAAI;yFAAC;AAC1D,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAkC,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,MAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAA2B,GAAG;AAC9H,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAwC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAiC,GAAG;AAClJ,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAwC,IAAI,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,YAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAiC,GAAG;QAClJ,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,MAAM;mFAAC;QAChD,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;QAC9C,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;;QAE9C,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAQ;QAEnC,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,O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,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,YAAA,EAAA,oBAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,yBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrBlC,qnCA6BA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDZY,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,eAAe,EAAA,OAAA,EAEhB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,qnCAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-timepicker.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/time-list.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/value-accessor/timepicker-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/timepicker.angular.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/timepicker.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/timepicker/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/timepicker/mintplayer-ng-bootstrap-timepicker.ts"],"sourcesContent":["// GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timeListCore, type TimeListInputs, type TimeListMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\n\n/**\n * A listbox of time slots (#437): one real button per option, a roving tabindex, the APG keymap\n * (arrows, Home/End, PageUp/PageDown one hour). Bounds are minutes from midnight.\n * With JavaScript off the slots render inert.\n */\n@Component({\n selector: 'bs-time-list',\n templateUrl: './time-list.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTimeListComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimeListInputs['selectedTime']>(null);\n readonly step = input<TimeListInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['step'] });\n readonly minMinutes = input<TimeListInputs['minMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['minMinutes'] });\n readonly maxMinutes = input<TimeListInputs['maxMinutes'], unknown>(null, { transform: (v: unknown) => numberAttribute(v) as TimeListInputs['maxMinutes'] });\n readonly hour12 = input<TimeListInputs['hour12']>('auto');\n readonly locale = input<TimeListInputs['locale']>(null);\n readonly labels = input<TimeListInputs['labels']>(null);\n\n readonly #core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Focus the roving slot. */\n focusList(...args: Parameters<TimeListMethods['focusList']>): ReturnType<TimeListMethods['focusList']> {\n return this.#core.call('focusList', args) as ReturnType<TimeListMethods['focusList']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/time-list.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ul data-mps=\"timepicker\" [mpProps]=\"p_view.list\">\n @for (slot of p_view.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n</ul>\n","import { DestroyRef, Directive, Injector, OnInit, effect, forwardRef, inject, signal, untracked } from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\nimport { minutesOfDay } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` and `Validator` of `bs-timepicker` (a host\n * directive of the generated component, see `timepicker.angular.ts`). A bound\n * form control drives the picked time through `viewValue`; a pick reaches the\n * form through the component's `selectedTime` model, which a form write never\n * echoes. A null form value clears the field.\n *\n * Validation compares times of day: `min` (`{ min, actual }`) and `max`\n * (`{ max, actual }`).\n */\n@Directive({\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => BsTimepickerValueAccessor), multi: true },\n ],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsTimepickerValueAccessor implements ControlValueAccessor, Validator, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n private component?: BsTimepickerComponent;\n\n /** A form control drives the time: its `viewValue` wins over the `selectedTime` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Date | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: Date | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n private onValidatorChange: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = (this.component = this.injector.get(BsTimepickerComponent));\n const sub = component.selectedTime.subscribe((value) => {\n if (!this.bound() || minutesOfDay(value) === minutesOfDay(this.viewValue())) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n // The limits are inputs: a change re-runs validation.\n effect(\n () => {\n component.min();\n component.max();\n untracked(() => this.onValidatorChange());\n },\n { injector: this.injector },\n );\n }\n\n registerOnChange(fn: (value: Date | null) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n registerOnValidatorChange(fn: () => void): void {\n this.onValidatorChange = fn;\n }\n\n writeValue(value: Date | null | undefined): void {\n this.viewValue.set(value instanceof Date ? value : null);\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n const component = this.component;\n if (!(value instanceof Date) || !component) return null;\n const minutes = minutesOfDay(value)!;\n const min = component.min();\n const max = component.max();\n const errors: ValidationErrors = {\n ...(min && minutes < minutesOfDay(min)! ? { min: { min, actual: value } } : {}),\n ...(max && minutes > minutesOfDay(max)! ? { max: { max, actual: value } } : {}),\n };\n return Object.keys(errors).length ? errors : null;\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { TimepickerInputs } from '@mintplayer/ui-core/timepicker';\nimport { BsTimepickerValueAccessor } from './value-accessor/timepicker-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-timepicker` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the picked time and the\n * disabled state, its validity reaches the field's ARIA and message, and it is\n * validated against min and max.\n */\n\nexport const hostDirectives = [\n BsTimepickerValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => TimepickerInputs): () => TimepickerInputs {\n const accessor = inject(BsTimepickerValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<TimepickerInputs>(() => {\n const value = inputs();\n return {\n ...value,\n selectedTime: accessor.bound() ? accessor.viewValue() : value.selectedTime,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the timepicker manifest (timepicker) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { timepickerCore, type TimepickerInputs, type TimepickerMethods, timepickerScopedStyles } from '@mintplayer/ui-core/timepicker';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../timepicker.angular';\n\n/**\n * A time field with a slot-list popup (#437).\n *\n * With JavaScript off it is a native time field that submits `name` as HH:MM. Once hydrated the\n * field becomes a readonly display, a button opens the list in a native popover, and a hidden\n * input carries the submitted value.\n */\n@Component({\n selector: 'bs-timepicker',\n templateUrl: './timepicker.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsTimepickerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedTime = model<TimepickerInputs['selectedTime']>(null);\n readonly step = input<TimepickerInputs['step'], unknown>(15, { transform: (v: unknown) => numberAttribute(v) as TimepickerInputs['step'] });\n readonly min = input<TimepickerInputs['min']>(null);\n readonly max = input<TimepickerInputs['max']>(null);\n readonly hour12 = input<TimepickerInputs['hour12']>('auto');\n readonly locale = input<TimepickerInputs['locale']>(null);\n readonly disabled = input<TimepickerInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly placeholder = input<TimepickerInputs['placeholder']>(null);\n readonly required = input<TimepickerInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<TimepickerInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<TimepickerInputs['errorText']>(null);\n readonly inputLabel = input<TimepickerInputs['inputLabel']>(null);\n readonly name = input<TimepickerInputs['name']>(null);\n readonly labels = input<TimepickerInputs['labels']>(null);\n /** The popup opened (true) or closed (false). */\n readonly openChange = output<boolean>();\n\n readonly #core = useCore(timepickerCore, { inputs: ext_extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { openChange: this.openChange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('timepicker', timepickerScopedStyles);\n }\n\n /** Open the list (ignored when disabled). */\n open(...args: Parameters<TimepickerMethods['open']>): ReturnType<TimepickerMethods['open']> {\n return this.#core.call('open', args) as ReturnType<TimepickerMethods['open']>;\n }\n\n /** Close the list. */\n close(...args: Parameters<TimepickerMethods['close']>): ReturnType<TimepickerMethods['close']> {\n return this.#core.call('close', args) as ReturnType<TimepickerMethods['close']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/timepicker/src/templates/timepicker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.group\">\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.input\">\n @if (p_view.hidden) {\n <input data-mps=\"timepicker\" [mpProps]=\"p_view.hidden\">\n }\n @if (p_view.trigger) {\n <button data-mps=\"timepicker\" [mpProps]=\"p_view.trigger\"></button>\n }\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n<div data-mps=\"timepicker\" [mpProps]=\"p_view.popup\">\n <div data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.root\">\n <ul data-mps=\"timepicker\" [mpProps]=\"p_view.timeList.list\">\n @for (slot of p_view.timeList.slots; track slot.key) {\n <li data-mps=\"timepicker\" [mpProps]=\"slot.item\">\n <button data-mps=\"timepicker\" [mpProps]=\"slot.option\">\n {{ slot.text }}\n </button>\n </li>\n }\n </ul>\n </div>\n</div>\n","// GENERATED from the timepicker manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTimeListComponent } from './time-list.component.generated';\nexport { BsTimepickerComponent } from './timepicker.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsTimepickerValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAAA;AAMA;;;;AAIG;MAOU,mBAAmB,CAAA;AAYrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAdS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,YAAY,GAAG,KAAK,CAA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AAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;+BACE,eAAe,EAAA,OAAA,EAEhB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,qnCAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
@@ -1,198 +1,149 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, inject, ElementRef, effect, ChangeDetectionStrategy, Component, Pipe, InjectionToken, makeEnvironmentProviders, Injector, signal, Injectable, Directive } from '@angular/core';
3
- import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
- import { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';
2
+ import { inject, ElementRef, model, input, ChangeDetectionStrategy, Component, booleanAttribute, TemplateRef, Directive, contentChild, computed } from '@angular/core';
3
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
+ import { toastCore, toastScopedStyles, toastHeaderCore, toastBodyCore, toasterCore } from '@mintplayer/ui-core/toast';
5
5
  import { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';
6
- import { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';
6
+ import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
7
+ import { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';
7
8
  import { NgTemplateOutlet } from '@angular/common';
8
- import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
9
- import { Overlay } from '@angular/cdk/overlay';
10
- import { ComponentPortal } from '@angular/cdk/portal';
11
9
 
10
+ // GENERATED from the toast manifest (toast) by @mintplayer/nx-component-compiler. Do not edit.
11
+ /**
12
+ * Bootstrap's toast. `visible` is two-way: it fades in and out with Bootstrap's phases, and
13
+ * turning visible announces its text (`politeness`). A `toast-header` close button hides it.
14
+ */
12
15
  class BsToastComponent {
16
+ #core;
13
17
  constructor() {
14
- this.isVisible = input(false, /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
16
- /** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */
17
- this.politeness = input('assertive', /* @ts-ignore */
18
+ /** The host element. */
19
+ this.elementRef = inject(ElementRef);
20
+ this.visible = model(false, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
22
+ this.politeness = input('polite', /* @ts-ignore */
18
23
  ...(ngDevMode ? [{ debugName: "politeness" }] : /* istanbul ignore next */ []));
19
- this.announcer = inject(BsLiveAnnouncerService);
20
- this.host = inject(ElementRef);
21
- // #452: the toasts and transitions partials ship with this component, scoped to the elements it stamps (data-mps="toast").
22
- useBootstrap(bootstrapToasts, bootstrapTransitions);
23
- // The old channel was role/aria-live ON the toast div — but the toast and
24
- // its text mount in one task (ngTemplateOutlet), which most SRs never
25
- // announce. The shared announcer region pre-exists, so routing the text
26
- // through it on the show transition is reliably spoken.
27
- effect(() => {
28
- if (!this.isVisible())
29
- return;
30
- const politeness = this.politeness();
31
- queueMicrotask(() => {
32
- const text = this.host.nativeElement.textContent?.trim();
33
- if (text)
34
- void this.announcer.announce(text, politeness);
35
- });
36
- });
24
+ this.#core = useCore(toastCore, { inputs: () => ({ visible: this.visible(), politeness: this.politeness() }), idPrefix: 'bs-toast', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }), models: { visible: this.visible } });
25
+ /** The template's props. */
26
+ this.props = this.#core.props;
27
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
28
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
29
+ useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
30
+ useScopedStyles('toast', toastScopedStyles);
37
31
  }
38
32
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
33
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsToastComponent, isStandalone: true, selector: "bs-toast", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, politeness: { classPropertyName: "politeness", publicName: "politeness", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
34
  }
41
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastComponent, decorators: [{
42
36
  type: Component,
43
- args: [{ selector: 'bs-toast', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n" }]
44
- }], ctorParameters: () => [], propDecorators: { isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
37
+ args: [{ selector: 'bs-toast', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
38
+ }], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], politeness: [{ type: i0.Input, args: [{ isSignal: true, alias: "politeness", required: false }] }] } });
45
39
 
40
+ // GENERATED from the toast manifest (toast-header) by @mintplayer/nx-component-compiler. Do not edit.
41
+ /** The toast's header; `dismissible` adds a close button named by `closeLabel`. */
46
42
  class BsToastHeaderComponent {
43
+ #core;
47
44
  constructor() {
48
- // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps="toast").
49
- useBootstrap(bootstrapToasts);
45
+ /** The host element. */
46
+ this.elementRef = inject(ElementRef);
47
+ this.dismissible = input(true, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
48
+ this.closeLabel = input('Close', /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
50
+ this.#core = useCore(toastHeaderCore, { inputs: () => ({ dismissible: this.dismissible(), closeLabel: this.closeLabel() }), idPrefix: 'bs-toast-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });
51
+ /** The template's props. */
52
+ this.props = this.#core.props;
53
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
54
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
55
+ useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
56
+ useScopedStyles('toast', toastScopedStyles);
50
57
  }
51
58
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", host: { properties: { "attr.data-mps": "\"toast\"", "class.toast-header": "true" } }, ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastHeaderComponent, isStandalone: true, selector: "bs-toast-header", inputs: { dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
53
60
  }
54
61
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastHeaderComponent, decorators: [{
55
62
  type: Component,
56
- args: [{ selector: 'bs-toast-header', changeDetection: ChangeDetectionStrategy.OnPush, host: {
57
- '[attr.data-mps]': '"toast"',
58
- '[class.toast-header]': 'true',
59
- }, template: "<ng-content></ng-content>" }]
60
- }], ctorParameters: () => [] });
63
+ args: [{ selector: 'bs-toast-header', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n" }]
64
+ }], ctorParameters: () => [], propDecorators: { dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }] } });
61
65
 
66
+ // GENERATED from the toast manifest (toast-body) by @mintplayer/nx-component-compiler. Do not edit.
67
+ /** The toast's body. */
62
68
  class BsToastBodyComponent {
69
+ #core;
63
70
  constructor() {
64
- // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps="toast").
65
- useBootstrap(bootstrapToasts);
71
+ /** The host element. */
72
+ this.elementRef = inject(ElementRef);
73
+ this.#core = useCore(toastBodyCore, { inputs: () => ({}), idPrefix: 'bs-toast-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });
74
+ /** The template's props. */
75
+ this.props = this.#core.props;
76
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
77
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
78
+ useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
79
+ useScopedStyles('toast', toastScopedStyles);
66
80
  }
67
81
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
68
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body", host: { properties: { "attr.data-mps": "\"toast\"", "class.d-flex": "true", "class.toast-body": "true" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
82
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsToastBodyComponent, isStandalone: true, selector: "bs-toast-body", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
69
83
  }
70
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastBodyComponent, decorators: [{
71
85
  type: Component,
72
- args: [{ selector: 'bs-toast-body', changeDetection: ChangeDetectionStrategy.OnPush, host: {
73
- '[attr.data-mps]': '"toast"',
74
- '[class.d-flex]': 'true',
75
- '[class.toast-body]': 'true',
76
- }, template: "<ng-content></ng-content>\n" }]
86
+ args: [{ selector: 'bs-toast-body', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
77
87
  }], ctorParameters: () => [] });
78
88
 
79
- class BsAddPropertiesPipe {
80
- transform(value, toAdd) {
81
- return Object.assign({}, value ?? {}, toAdd);
82
- }
83
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAddPropertiesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
84
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: BsAddPropertiesPipe, isStandalone: true, name: "bsAddProperties" }); }
85
- }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAddPropertiesPipe, decorators: [{
87
- type: Pipe,
88
- args: [{
89
- name: 'bsAddProperties',
90
- }]
91
- }] });
92
-
93
- const PORTAL_FACTORY = new InjectionToken('ToastPortalFactory', {
94
- providedIn: 'root',
95
- factory: () => (injector) => new ComponentPortal(BsToastContainerComponent, null, injector),
96
- });
97
- function provideToast() {
98
- return makeEnvironmentProviders([
99
- {
100
- provide: PORTAL_FACTORY,
101
- useValue: (injector) => {
102
- return new ComponentPortal(BsToastContainerComponent, null, injector);
103
- }
104
- },
105
- ]);
106
- }
107
-
108
- class BsToastService {
89
+ // GENERATED from the toast manifest (toaster) by @mintplayer/nx-component-compiler. Do not edit.
90
+ /** The `toast` slot of `<bs-toaster>`: `<ng-template bsToasterToast>` or `*bsToasterToast`. */
91
+ class BsToasterToastDirective {
109
92
  constructor() {
110
- this.overlayService = inject(Overlay);
111
- this.rootInjector = inject(Injector);
112
- this.portalFactory = inject(PORTAL_FACTORY);
113
- this.overlayRef = null;
114
- this.toasts = signal([], /* @ts-ignore */
115
- ...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
116
- }
117
- pushToast(toast, context) {
118
- if (!this.overlayRef) {
119
- const injector = Injector.create({
120
- providers: [],
121
- parent: this.rootInjector,
122
- });
123
- const portal = this.portalFactory(injector);
124
- this.overlayRef = this.overlayService.create({
125
- scrollStrategy: this.overlayService.scrollStrategies.block(),
126
- positionStrategy: this.overlayService.position().global()
127
- .top('0').left('0').bottom('0').right('0'),
128
- hasBackdrop: false
129
- });
130
- const component = this.overlayRef.attach(portal);
131
- }
132
- context = context ?? {};
133
- const ctx = Object.assign(context, { isVisible: false });
134
- const item = { template: toast, context: ctx };
135
- this.toasts.update(toasts => [...toasts, item]);
136
- setTimeout(() => {
137
- this.toasts.update(toasts => toasts.map(t => t === item ? { ...t, context: Object.assign({}, t.context, { isVisible: true }) } : t));
138
- }, 20);
93
+ this.templateRef = inject(TemplateRef);
139
94
  }
140
- close(index) {
141
- this.toasts.update(toasts => toasts.map((t, i) => i === index ? { ...t, context: Object.assign({}, t.context, { isVisible: false }) } : t));
142
- setTimeout(() => {
143
- this.toasts.update(toasts => toasts.filter((_, i) => i !== index));
144
- }, 400);
95
+ static ngTemplateContextGuard(_dir, ctx) {
96
+ return true;
145
97
  }
146
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
147
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastService, providedIn: 'root' }); }
98
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
99
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsToasterToastDirective, isStandalone: true, selector: "[bsToasterToast]", ngImport: i0 }); }
148
100
  }
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastService, decorators: [{
150
- type: Injectable,
151
- args: [{ providedIn: 'root' }]
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterToastDirective, decorators: [{
102
+ type: Directive,
103
+ args: [{ selector: '[bsToasterToast]' }]
152
104
  }] });
153
-
154
- class BsToastContainerComponent {
105
+ /**
106
+ * Renders a `ToastQueue`: a fixed `toast-container` at `placement`, with the `toast` slot once per
107
+ * entry (bind the entry's `visible`, and close it on `visibleChange`). Autohide pauses while the
108
+ * pointer or focus is inside.
109
+ */
110
+ class BsToasterComponent {
111
+ #core;
155
112
  constructor() {
156
- this.toastService = inject(BsToastService);
113
+ /** The host element. */
114
+ this.elementRef = inject(ElementRef);
115
+ this.queue = input(null, /* @ts-ignore */
116
+ ...(ngDevMode ? [{ debugName: "queue" }] : /* istanbul ignore next */ []));
117
+ this.placement = input('bottom-end', /* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
119
+ this.toastSlot = contentChild(BsToasterToastDirective, /* @ts-ignore */
120
+ ...(ngDevMode ? [{ debugName: "toastSlot" }] : /* istanbul ignore next */ []));
121
+ /** The template's named slots. */
122
+ this.slots = computed(() => ({ toast: this.toastSlot()?.templateRef }), /* @ts-ignore */
123
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
124
+ this.#core = useCore(toasterCore, { inputs: () => ({ queue: this.queue(), placement: this.placement() }), idPrefix: 'bs-toaster', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'toast' }) });
125
+ /** The template's props. */
126
+ this.props = this.#core.props;
127
+ useScopedStyles(bootstrapTransitions.key, bootstrapTransitions.css, { order: bootstrapTransitions.order });
128
+ useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
129
+ useScopedStyles(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order });
130
+ useScopedStyles('toast', toastScopedStyles);
157
131
  }
158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
159
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToastContainerComponent, isStandalone: true, selector: "bs-toast-container", host: { properties: { "style.overflow-y": "\"auto\"" } }, ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }, { kind: "pipe", type: BsAddPropertiesPipe, name: "bsAddProperties" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
132
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
133
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsToasterComponent, isStandalone: true, selector: "bs-toaster", inputs: { queue: { classPropertyName: "queue", publicName: "queue", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "toastSlot", first: true, predicate: BsToasterToastDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
160
134
  }
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastContainerComponent, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToasterComponent, decorators: [{
162
136
  type: Component,
163
- args: [{ selector: 'bs-toast-container', imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe], changeDetection: ChangeDetectionStrategy.OnPush, host: {
164
- '[style.overflow-y]': '"auto"',
165
- }, template: "<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n", styles: [":host{pointer-events:none}:host ::ng-deep .toast{pointer-events:auto}\n"] }]
166
- }] });
137
+ args: [{ selector: 'bs-toaster', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n" }]
138
+ }], ctorParameters: () => [], propDecorators: { queue: [{ type: i0.Input, args: [{ isSignal: true, alias: "queue", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], toastSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsToasterToastDirective), { isSignal: true }] }] } });
167
139
 
168
- class BsToastCloseDirective {
169
- constructor() {
170
- this.toast = inject(BsToastComponent);
171
- this.toastService = inject(BsToastService);
172
- this.index = input(null, /* @ts-ignore */
173
- ...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
174
- }
175
- onClick() {
176
- if (this.index() !== null) {
177
- this.toastService.close(this.index());
178
- }
179
- }
180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
181
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsToastCloseDirective, isStandalone: true, selector: "bs-close", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
182
- }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsToastCloseDirective, decorators: [{
184
- type: Directive,
185
- args: [{
186
- selector: 'bs-close',
187
- host: {
188
- '(click)': 'onClick()',
189
- },
190
- }]
191
- }], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }] } });
140
+ // GENERATED from the toast manifest by @mintplayer/nx-component-compiler. Do not edit.
141
+
142
+ // Generated from @mintplayer/ui-core/toast (#458 D10).
192
143
 
193
144
  /**
194
145
  * Generated bundle index. Do not edit.
195
146
  */
196
147
 
197
- export { BsAddPropertiesPipe, BsToastBodyComponent, BsToastCloseDirective, BsToastComponent, BsToastContainerComponent, BsToastHeaderComponent, BsToastService, PORTAL_FACTORY, provideToast };
148
+ export { BsToastBodyComponent, BsToastComponent, BsToastHeaderComponent, BsToasterComponent, BsToasterToastDirective };
198
149
  //# sourceMappingURL=mintplayer-ng-bootstrap-toast.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast/toast.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-header/toast-header.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-body/toast-body.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/pipes/add-properties.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/providers/portal-factory.provider.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/services/toast/toast.service.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/components/toast-container/toast-container.component.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/directives/toast-close/toast-close.directive.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, effect, inject, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { BsLiveAnnouncerService } from '@mintplayer/ng-bootstrap/a11y';\n\nexport type BsToastPoliteness = 'polite' | 'assertive';\n\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.component.html',\n styleUrls: ['./toast.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n isVisible = input(false);\n /** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */\n politeness = input<BsToastPoliteness>('assertive');\n\n private readonly announcer = inject(BsLiveAnnouncerService);\n private readonly host = inject(ElementRef) as ElementRef<HTMLElement>;\n\n constructor() {\n // #452: the toasts and transitions partials ship with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts, bootstrapTransitions);\n // The old channel was role/aria-live ON the toast div — but the toast and\n // its text mount in one task (ngTemplateOutlet), which most SRs never\n // announce. The shared announcer region pre-exists, so routing the text\n // through it on the show transition is reliably spoken.\n effect(() => {\n if (!this.isVisible()) return;\n const politeness = this.politeness();\n queueMicrotask(() => {\n const text = this.host.nativeElement.textContent?.trim();\n if (text) void this.announcer.announce(text, politeness);\n });\n });\n }\n}\n","<!-- No role/aria-live here: mounting region and text in one task is the\n pattern SRs miss (audit 4.8). BsLiveAnnouncerService is the channel. -->\n<div data-mps=\"toast\" class=\"toast d-block fade mb-2 me-2\" [class.show]=\"isVisible()\">\n <ng-content></ng-content>\n</div>\n","import { Component, ChangeDetectionStrategy} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.component.html',\n styleUrls: ['./toast-header.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': '\"toast\"',\n '[class.toast-header]': 'true',\n },\n})\nexport class BsToastHeaderComponent {\n constructor() {\n // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts);\n }\n\n}\n","<ng-content></ng-content>","import { Component, ChangeDetectionStrategy} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.component.html',\n styleUrls: ['./toast-body.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': '\"toast\"',\n '[class.d-flex]': 'true',\n '[class.toast-body]': 'true',\n },\n})\nexport class BsToastBodyComponent {\n constructor() {\n // #452: the toasts partial ships with this component, scoped to the elements it stamps (data-mps=\"toast\").\n useBootstrap(bootstrapToasts);\n }\n\n}\n","<ng-content></ng-content>\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsAddProperties',\n})\nexport class BsAddPropertiesPipe implements PipeTransform {\n transform(value: Object | null, toAdd: Object) {\n return Object.assign({}, value ?? {}, toAdd);\n }\n}\n","import { ComponentPortal } from \"@angular/cdk/portal\";\nimport { EnvironmentProviders, InjectionToken, Injector, makeEnvironmentProviders } from \"@angular/core\";\nimport { BsToastContainerComponent } from \"../components/toast-container/toast-container.component\";\n\nexport const PORTAL_FACTORY = new InjectionToken<(injector: Injector) => ComponentPortal<any>>('ToastPortalFactory', {\n providedIn: 'root',\n factory: () => (injector: Injector) => new ComponentPortal(BsToastContainerComponent, null, injector),\n});\n\nexport function provideToast(): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: PORTAL_FACTORY,\n useValue: (injector: Injector) => {\n return new ComponentPortal(BsToastContainerComponent, null, injector);\n }\n },\n ]);\n}","import { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { inject, Injectable, Injector, signal, TemplateRef } from '@angular/core';\nimport { BsToastContainerComponent } from '../../components/toast-container/toast-container.component';\nimport { PORTAL_FACTORY } from '../../providers/portal-factory.provider';\n\n@Injectable({ providedIn: 'root' })\nexport class BsToastService {\n\n private overlayService = inject(Overlay);\n private rootInjector = inject(Injector);\n private portalFactory = inject<(injector: Injector) => ComponentPortal<any>>(PORTAL_FACTORY);\n\n overlayRef: OverlayRef | null = null;\n toasts = signal<ToastItem[]>([]);\n\n public pushToast(toast: TemplateRef<any>, context?: Object) {\n if (!this.overlayRef) {\n const injector = Injector.create({\n providers: [],\n parent: this.rootInjector,\n });\n const portal = this.portalFactory(injector);\n this.overlayRef = this.overlayService.create({\n scrollStrategy: this.overlayService.scrollStrategies.block(),\n positionStrategy: this.overlayService.position().global()\n .top('0').left('0').bottom('0').right('0'),\n hasBackdrop: false\n });\n const component = this.overlayRef.attach<BsToastContainerComponent>(portal);\n }\n\n context = context ?? {};\n const ctx = Object.assign(context, { isVisible: false });\n const item: ToastItem = { template: toast, context: ctx };\n this.toasts.update(toasts => [...toasts, item]);\n setTimeout(() => {\n this.toasts.update(toasts => toasts.map(t =>\n t === item ? { ...t, context: Object.assign({}, t.context, { isVisible: true }) } : t\n ));\n }, 20);\n }\n\n public close(index: number) {\n this.toasts.update(toasts => toasts.map((t, i) =>\n i === index ? { ...t, context: Object.assign({}, t.context, { isVisible: false }) } : t\n ));\n\n setTimeout(() => {\n this.toasts.update(toasts => toasts.filter((_, i) => i !== index));\n }, 400);\n }\n}\n\ninterface ToastItem {\n template: TemplateRef<any>;\n context: Object | null;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsAddPropertiesPipe } from '../../pipes/add-properties.pipe';\nimport { BsToastService } from '../../services/toast/toast.service';\n\n@Component({\n selector: 'bs-toast-container',\n templateUrl: './toast-container.component.html',\n styleUrls: ['./toast-container.component.scss'],\n imports: [NgTemplateOutlet, BsHasOverlayComponent, BsAddPropertiesPipe],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[style.overflow-y]': '\"auto\"',\n },\n})\nexport class BsToastContainerComponent {\n toastService = inject(BsToastService);\n}\n","<bs-has-overlay></bs-has-overlay>\n@for (toast of toastService.toasts(); let i = $index; track i) {\n <ng-container [ngTemplateOutlet]=\"toast.template\" [ngTemplateOutletContext]=\"toast.context | bsAddProperties: {toastIndex: i}\"></ng-container>\n}\n","import { Directive, inject, input } from '@angular/core';\nimport { BsToastService } from '../../services/toast/toast.service';\nimport { BsToastComponent } from '../../components/toast/toast.component';\n\n@Directive({\n selector: 'bs-close',\n host: {\n '(click)': 'onClick()',\n },\n})\nexport class BsToastCloseDirective {\n private toast = inject(BsToastComponent);\n private toastService = inject(BsToastService);\n\n onClick() {\n if (this.index() !== null) {\n this.toastService.close(this.index()!);\n }\n }\n\n readonly index = input<number | null>(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAca,gBAAgB,CAAA;AAQ3B,IAAA,WAAA,GAAA;QAPA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK;sFAAC;;QAExB,IAAA,CAAA,UAAU,GAAG,KAAK,CAAoB,WAAW;uFAAC;AAEjC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAs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AChC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;QAQpC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAgB,IAAI;kFAAC;AAC5C,IAAA;IAPC,OAAO,GAAA;AACL,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE;YACzB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAG,CAAC;QACxC;IACF;8GARW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,WAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACvB,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-toast.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-header.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toast-body.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/toaster.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/toast/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/toast/mintplayer-ng-bootstrap-toast.ts"],"sourcesContent":["// GENERATED from the toast manifest (toast) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastCore, type ToastInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/**\n * Bootstrap's toast. `visible` is two-way: it fades in and out with Bootstrap's phases, and\n * turning visible announces its text (`politeness`). A `toast-header` close button hides it.\n */\n@Component({\n selector: 'bs-toast',\n templateUrl: './toast.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly visible = model<ToastInputs['visible']>(false);\n readonly politeness = input<ToastInputs['politeness']>('polite');\n\n readonly #core = useCore(toastCore, { inputs: () => ({ visible: this.visible(), politeness: this.politeness() }), idPrefix: 'bs-toast', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }), models: { visible: this.visible } });\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(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toast-header) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastHeaderCore, type ToastHeaderInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's header; `dismissible` adds a close button named by `closeLabel`. */\n@Component({\n selector: 'bs-toast-header',\n templateUrl: './toast-header.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastHeaderComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly dismissible = input<ToastHeaderInputs['dismissible'], unknown>(true, { transform: booleanAttribute });\n readonly closeLabel = input<ToastHeaderInputs['closeLabel']>('Close');\n\n readonly #core = useCore(toastHeaderCore, { inputs: () => ({ dismissible: this.dismissible(), closeLabel: this.closeLabel() }), idPrefix: 'bs-toast-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\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(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-header.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_close = props().close;\n<ng-content />\n@if (p_close) {\n <button data-mps=\"toast\" [mpProps]=\"p_close\"></button>\n}\n","// GENERATED from the toast manifest (toast-body) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { toastBodyCore, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The toast's body. */\n@Component({\n selector: 'bs-toast-body',\n templateUrl: './toast-body.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToastBodyComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(toastBodyCore, { inputs: () => ({ }), idPrefix: 'bs-toast-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'toast' }) });\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(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toast-body.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the toast manifest (toaster) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, computed, contentChild, inject, input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type ToastEntry, toasterCore, type ToasterInputs, toastScopedStyles } from '@mintplayer/ui-core/toast';\nimport { bootstrapTransitions } from '@mintplayer/ui-core/bootstrap/transitions';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\nimport { bootstrapToasts } from '@mintplayer/ui-core/bootstrap/toasts';\n\n/** The `toast` slot of `<bs-toaster>`: `<ng-template bsToasterToast>` or `*bsToasterToast`. */\n@Directive({ selector: '[bsToasterToast]' })\nexport class BsToasterToastDirective {\n readonly templateRef = inject<TemplateRef<{ toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsToasterToastDirective, ctx: unknown): ctx is { toast: ToastEntry<unknown> } & { $implicit: { toast: ToastEntry<unknown> }['toast'] } {\n return true;\n }\n}\n\n/**\n * Renders a `ToastQueue`: a fixed `toast-container` at `placement`, with the `toast` slot once per\n * entry (bind the entry's `visible`, and close it on `visibleChange`). Autohide pauses while the\n * pointer or focus is inside.\n */\n@Component({\n selector: 'bs-toaster',\n templateUrl: './toaster.view.generated.html',\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsToasterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly queue = input<ToasterInputs['queue']>(null);\n readonly placement = input<ToasterInputs['placement']>('bottom-end');\n\n private readonly toastSlot = contentChild(BsToasterToastDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ toast: this.toastSlot()?.templateRef }));\n readonly #core = useCore(toasterCore, { inputs: () => ({ queue: this.queue(), placement: this.placement() }), idPrefix: 'bs-toaster', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'toast' }) });\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(bootstrapToasts.key, bootstrapToasts.css, { order: bootstrapToasts.order }); useScopedStyles('toast', toastScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/toast/src/templates/toaster.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (t of p_view.toasts; track t.id) {\n @if (slots().toast; as slot_toast) {\n <ng-container [ngTemplateOutlet]=\"slot_toast\" [ngTemplateOutletContext]=\"{ $implicit: t, toast: t }\" />\n }\n}\n","// GENERATED from the toast manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsToastComponent } from './toast.component.generated';\nexport { BsToastHeaderComponent } from './toast-header.component.generated';\nexport { BsToastBodyComponent } from './toast-body.component.generated';\nexport { BsToasterComponent, BsToasterToastDirective } from './toaster.component.generated';\n","// Generated from @mintplayer/ui-core/toast (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAQA;;;AAGG;MAOU,gBAAgB,CAAA;AAOlB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AATS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAyB,KAAK;oFAAC;QAC9C,IAAA,CAAA,UAAU,GAAG,KAAK,CAA4B,QAAQ;uFAAC;AAEvD,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EA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