@mintplayer/ng-bootstrap 22.31.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  25. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  27. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  29. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
  31. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
  33. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  35. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  37. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  39. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
  41. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
  43. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
  45. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  47. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  49. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
  51. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  57. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
  59. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
  61. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
  63. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
  65. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
  67. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  69. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
  71. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  73. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
  77. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
  79. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
  81. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
  83. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
  85. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  87. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
  89. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
  91. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  93. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
  95. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  97. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
  99. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
  101. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
  103. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
  105. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  107. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  109. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  111. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
  113. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
  115. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
  117. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  119. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
  121. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  123. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  125. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
  127. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
  129. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
  131. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  135. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  137. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
  139. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
  141. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
  143. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  145. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  147. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
  149. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  150. package/nav/package.json +4 -0
  151. package/package.json +11 -28
  152. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  153. package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
  154. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  155. package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
  156. package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
  157. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
  158. package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
  159. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  160. package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
  161. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  162. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  163. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  164. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  165. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
  166. package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
  167. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  168. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  169. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  170. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  171. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
  172. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
  173. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  174. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  175. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  176. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  177. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  178. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  179. package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
  180. package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
  181. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  182. package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
  183. package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
  184. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  185. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
  186. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  187. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  188. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
  189. package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
  190. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  191. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
  192. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
  193. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  194. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
  195. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
  196. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  197. package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
  198. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  199. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
  200. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  201. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  202. package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
  203. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  204. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  205. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  206. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  207. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
  208. package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
  209. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  210. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
  211. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  212. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  213. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
  214. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  215. package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
  216. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  217. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  218. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
  219. package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
  220. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  221. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  222. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  223. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  224. package/calendar-month/package.json +0 -4
  225. package/container/package.json +0 -4
  226. package/dropdown-divider/package.json +0 -4
  227. package/dropdown-menu/package.json +0 -4
  228. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  229. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  230. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  231. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  232. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  233. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  234. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
  235. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  236. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  237. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  238. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  239. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  240. package/has-overlay/package.json +0 -4
  241. package/no-noscript/package.json +0 -4
  242. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  243. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  244. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  245. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  246. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  247. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1,34 +1,14 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, input, model, output, contentChild, ElementRef, computed, signal, afterNextRender, afterRenderEffect, ChangeDetectionStrategy, Component } from '@angular/core';
4
- import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
5
- import { useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
6
- import { connectShell, SHELL_SCOPE, shellScopedStyles, applyShellState, toggleShell, focusShellContent, shouldDismissShell } from '@mintplayer/ui-core/shell';
2
+ import { inject, TemplateRef, Directive, ElementRef, input, booleanAttribute, output, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
5
+ import { shellCore, shellScopedStyles } from '@mintplayer/ui-core/shell';
7
6
 
8
- /**
9
- * The shell's sidebar content, rendered inside its `<aside>`:
10
- *
11
- * <nav *bsShellSidebar>…</nav>
12
- */
13
- class BsShellSidebarDirective {
14
- constructor() {
15
- this.template = inject(TemplateRef);
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellSidebarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
18
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsShellSidebarDirective, isStandalone: true, selector: "[bsShellSidebar]", ngImport: i0 }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellSidebarDirective, decorators: [{
21
- type: Directive,
22
- args: [{ selector: '[bsShellSidebar]' }]
23
- }] });
24
- /**
25
- * Content for the shell's top bar, rendered after the hamburger:
26
- *
27
- * <div *bsShellTopbar>…brand / nav…</div>
28
- */
7
+ // GENERATED from the shell manifest (shell) by @mintplayer/nx-component-compiler. Do not edit.
8
+ /** The `topbar` slot of `<bs-shell>`: `<ng-template bsShellTopbar>` or `*bsShellTopbar`. */
29
9
  class BsShellTopbarDirective {
30
10
  constructor() {
31
- this.template = inject(TemplateRef);
11
+ this.templateRef = inject(TemplateRef);
32
12
  }
33
13
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellTopbarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
14
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsShellTopbarDirective, isStandalone: true, selector: "[bsShellTopbar]", ngImport: i0 }); }
@@ -37,106 +17,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
37
17
  type: Directive,
38
18
  args: [{ selector: '[bsShellTopbar]' }]
39
19
  }] });
40
-
20
+ /** The `sidebar` slot of `<bs-shell>`: `<ng-template bsShellSidebar>` or `*bsShellSidebar`. */
21
+ class BsShellSidebarDirective {
22
+ constructor() {
23
+ this.templateRef = inject(TemplateRef);
24
+ }
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellSidebarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
26
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsShellSidebarDirective, isStandalone: true, selector: "[bsShellSidebar]", ngImport: i0 }); }
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellSidebarDirective, decorators: [{
29
+ type: Directive,
30
+ args: [{ selector: '[bsShellSidebar]' }]
31
+ }] });
41
32
  /**
42
- * `<bs-shell>` — responsive app shell with a collapsible sidebar (#437).
43
- *
44
- * Renders the markup of `@mintplayer/ui-core/shell` in its own template, so
45
- * the server-rendered page is the working shell: the open state is a native
46
- * checkbox per viewport mode and every rule is CSS, which makes the hamburger
47
- * work with JavaScript off. The host is the `.shell` root, so a height on
48
- * `bs-shell` bounds the layout and makes the content the scroll region.
33
+ * A responsive app shell with a collapsible sidebar (#458). Tier 1 no-JS: one native checkbox per
34
+ * viewport mode is the open state, so the server-rendered page opens and closes with JavaScript off.
49
35
  *
50
- * - `*bsShellSidebar` marks the sidebar content;
51
- * - `*bsShellTopbar` fills the top bar after the hamburger;
52
- * - everything else is the main content.
36
+ * Fill the `topbar` and `sidebar` slots; the default content is the main region. `toggle()` opens
37
+ * or closes the sidebar in the current mode, and `stateChange` reports every change made through
38
+ * the shell.
53
39
  */
54
40
  class BsShellComponent {
41
+ #core;
55
42
  constructor() {
43
+ /** The host element. */
44
+ this.elementRef = inject(ElementRef);
56
45
  this.state = input('auto', /* @ts-ignore */
57
46
  ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
58
47
  this.breakpoint = input('md', /* @ts-ignore */
59
48
  ...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
60
- /** Expanded sidebar width (any CSS length); also settable via `--mp-shell-size`. */
61
- this.size = model(null, /* @ts-ignore */
49
+ this.size = input(null, /* @ts-ignore */
62
50
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
63
- /** Hides the built-in hamburger; drive the shell through `state` or `toggle()`. */
64
- this.externalToggle = input(false, /* @ts-ignore */
65
- ...(ngDevMode ? [{ debugName: "externalToggle" }] : /* istanbul ignore next */ []));
66
- /** Auto-close the overlay drawer when a sidebar link is clicked (narrow mode only). */
67
- this.dismissOnNavigate = input(false, /* @ts-ignore */
68
- ...(ngDevMode ? [{ debugName: "dismissOnNavigate" }] : /* istanbul ignore next */ []));
69
- /** Localized accessible names; missing keys fall back to English. */
51
+ this.externalToggle = input(false, { ...(ngDevMode ? { debugName: "externalToggle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
52
+ this.dismissOnNavigate = input(false, { ...(ngDevMode ? { debugName: "dismissOnNavigate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
70
53
  this.labels = input(null, /* @ts-ignore */
71
54
  ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
72
- /** Fires when the sidebar opens or closes through the shell. */
73
- this.statechange = output();
74
- this.sidebar = contentChild(BsShellSidebarDirective, /* @ts-ignore */
75
- ...(ngDevMode ? [{ debugName: "sidebar" }] : /* istanbul ignore next */ []));
76
- this.topbar = contentChild(BsShellTopbarDirective, /* @ts-ignore */
77
- ...(ngDevMode ? [{ debugName: "topbar" }] : /* istanbul ignore next */ []));
78
- this.host = inject(ElementRef).nativeElement;
79
- this.id = inject(BsIdService).next('bs-shell');
80
- this.view = computed(() => connectShell({
81
- id: this.id,
82
- state: this.state(),
83
- breakpoint: this.breakpoint(),
84
- externalToggle: this.externalToggle(),
85
- labels: this.labels(),
86
- hydrated: this.hydrated(),
87
- }), /* @ts-ignore */
88
- ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
89
- /** True once the listeners are attached (browser only), so e2e can wait on it. */
90
- this.hydrated = signal(false, /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "hydrated" }] : /* istanbul ignore next */ []));
92
- useScopedStyles(SHELL_SCOPE, shellScopedStyles);
93
- afterNextRender(() => this.hydrated.set(true));
94
- // The bags set the checkboxes' initial state (the `checked` attribute,
95
- // which is what SSR emits). A later `state` change must also reach a
96
- // checkbox the user already flipped, whose attribute no longer applies.
97
- let applied = null;
98
- afterRenderEffect(() => {
99
- const state = this.state();
100
- if (applied !== null && applied !== state)
101
- applyShellState(this.host, state);
102
- applied = state;
103
- });
104
- }
105
- /** Set the expanded sidebar width (any CSS length, e.g. `'20rem'`). */
106
- setSize(size) {
107
- this.size.set(size);
55
+ /** The sidebar opened or closed through the shell (hamburger, toggle(), dismiss). */
56
+ this.stateChange = output();
57
+ this.topbarSlot = contentChild(BsShellTopbarDirective, /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "topbarSlot" }] : /* istanbul ignore next */ []));
59
+ this.sidebarSlot = contentChild(BsShellSidebarDirective, /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "sidebarSlot" }] : /* istanbul ignore next */ []));
61
+ /** The template's named slots. */
62
+ this.slots = computed(() => ({ topbar: this.topbarSlot()?.templateRef, sidebar: this.sidebarSlot()?.templateRef }), /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
64
+ this.#core = useCore(shellCore, { inputs: () => ({ state: this.state(), breakpoint: this.breakpoint(), size: this.size(), externalToggle: this.externalToggle(), dismissOnNavigate: this.dismissOnNavigate(), labels: this.labels() }), idPrefix: 'bs-shell', outputs: { stateChange: this.stateChange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'shell' }) });
65
+ /** The template's props. */
66
+ this.props = this.#core.props;
67
+ useScopedStyles('shell', shellScopedStyles);
108
68
  }
109
69
  /** Open or close the sidebar in the current viewport mode. */
110
- toggle(force) {
111
- const open = toggleShell(this.host, force);
112
- if (open !== null)
113
- this.statechange.emit({ open });
114
- }
115
- onToggleChange(event) {
116
- this.statechange.emit({ open: event.target.checked });
117
- }
118
- onSkip(event) {
119
- focusShellContent(event, this.host);
120
- }
121
- onClick(event) {
122
- if (this.dismissOnNavigate() && shouldDismissShell(event, this.host))
123
- this.toggle(false);
70
+ toggle(...args) {
71
+ return this.#core.call('toggle', args);
124
72
  }
125
73
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
126
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsShellComponent, isStandalone: true, selector: "bs-shell", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, externalToggle: { classPropertyName: "externalToggle", publicName: "externalToggle", isSignal: true, isRequired: false, transformFunction: null }, dismissOnNavigate: { classPropertyName: "dismissOnNavigate", publicName: "dismissOnNavigate", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange", statechange: "statechange" }, host: { listeners: { "click": "onClick($event)" }, properties: { "attr.data-mps": "view().root[\"data-mps\"]", "class.shell": "true", "attr.data-breakpoint": "view().root[\"data-breakpoint\"]", "attr.data-external-toggle": "view().root[\"data-external-toggle\"]", "attr.data-mp-hydrated": "view().root[\"data-mp-hydrated\"]", "style.--mp-shell-size": "size()" } }, queries: [{ propertyName: "sidebar", first: true, predicate: BsShellSidebarDirective, descendants: true, isSignal: true }, { propertyName: "topbar", first: true, predicate: BsShellTopbarDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<a [mpProps]=\"view().skip\" [attr.href]=\"view().skipHref\" (click)=\"onSkip($event)\">{{ view().skipText }}</a>\n@for (toggle of view().toggles; track toggle.mode) {\n <input [mpProps]=\"toggle.input\" (change)=\"onToggleChange($event)\" />\n}\n<div [mpProps]=\"view().topbar\">\n @for (toggle of view().toggles; track toggle.mode) {\n <label [mpProps]=\"toggle.label\">{{ view().hamburgerText }}</label>\n }\n <ng-container [ngTemplateOutlet]=\"topbar()?.template ?? null\" />\n</div>\n<div [mpProps]=\"view().sidebarRoot\">\n <aside [mpProps]=\"view().sidebar\"><ng-container [ngTemplateOutlet]=\"sidebar()?.template ?? null\" /></aside>\n <div [mpProps]=\"view().content\"><ng-content /></div>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
74
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsShellComponent, isStandalone: true, selector: "bs-shell", inputs: { state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, externalToggle: { classPropertyName: "externalToggle", publicName: "externalToggle", isSignal: true, isRequired: false, transformFunction: null }, dismissOnNavigate: { classPropertyName: "dismissOnNavigate", publicName: "dismissOnNavigate", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stateChange: "stateChange" }, queries: [{ propertyName: "topbarSlot", first: true, predicate: BsShellTopbarDirective, descendants: true, isSignal: true }, { propertyName: "sidebarSlot", first: true, predicate: BsShellSidebarDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/shell/src/templates/shell.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"shell\" [mpProps]=\"p_view.skip\" [attr.href]=\"p_view.skipHref\">\n {{ p_view.skipText }}\n</a>\n@for (t of p_view.toggles; track t.mode) {\n <input data-mps=\"shell\" [mpProps]=\"t.input\">\n}\n<div data-mps=\"shell\" [mpProps]=\"p_view.topbar\">\n @for (t of p_view.toggles; track t.mode) {\n <label data-mps=\"shell\" [mpProps]=\"t.label\">\n {{ p_view.hamburgerText }}\n </label>\n }\n @if (slots().topbar; as slot_topbar) {\n <ng-container [ngTemplateOutlet]=\"slot_topbar\" />\n }\n</div>\n<div data-mps=\"shell\" [mpProps]=\"p_view.sidebarRoot\" [style]=\"p_view.sizeStyle\">\n <aside data-mps=\"shell\" [mpProps]=\"p_view.sidebar\">\n @if (slots().sidebar; as slot_sidebar) {\n <ng-container [ngTemplateOutlet]=\"slot_sidebar\" />\n }\n </aside>\n <div data-mps=\"shell\" [mpProps]=\"p_view.content\">\n <ng-content />\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
127
75
  }
128
76
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsShellComponent, decorators: [{
129
77
  type: Component,
130
- args: [{ selector: 'bs-shell', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, host: {
131
- '[attr.data-mps]': 'view().root["data-mps"]',
132
- '[class.shell]': 'true',
133
- '[attr.data-breakpoint]': 'view().root["data-breakpoint"]',
134
- '[attr.data-external-toggle]': 'view().root["data-external-toggle"]',
135
- '[attr.data-mp-hydrated]': 'view().root["data-mp-hydrated"]',
136
- '[style.--mp-shell-size]': 'size()',
137
- '(click)': 'onClick($event)',
138
- }, template: "<a [mpProps]=\"view().skip\" [attr.href]=\"view().skipHref\" (click)=\"onSkip($event)\">{{ view().skipText }}</a>\n@for (toggle of view().toggles; track toggle.mode) {\n <input [mpProps]=\"toggle.input\" (change)=\"onToggleChange($event)\" />\n}\n<div [mpProps]=\"view().topbar\">\n @for (toggle of view().toggles; track toggle.mode) {\n <label [mpProps]=\"toggle.label\">{{ view().hamburgerText }}</label>\n }\n <ng-container [ngTemplateOutlet]=\"topbar()?.template ?? null\" />\n</div>\n<div [mpProps]=\"view().sidebarRoot\">\n <aside [mpProps]=\"view().sidebar\"><ng-container [ngTemplateOutlet]=\"sidebar()?.template ?? null\" /></aside>\n <div [mpProps]=\"view().content\"><ng-content /></div>\n</div>\n" }]
139
- }], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], externalToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalToggle", required: false }] }], dismissOnNavigate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissOnNavigate", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], statechange: [{ type: i0.Output, args: ["statechange"] }], sidebar: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsShellSidebarDirective), { isSignal: true }] }], topbar: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsShellTopbarDirective), { isSignal: true }] }] } });
78
+ args: [{ selector: 'bs-shell', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/shell/src/templates/shell.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"shell\" [mpProps]=\"p_view.skip\" [attr.href]=\"p_view.skipHref\">\n {{ p_view.skipText }}\n</a>\n@for (t of p_view.toggles; track t.mode) {\n <input data-mps=\"shell\" [mpProps]=\"t.input\">\n}\n<div data-mps=\"shell\" [mpProps]=\"p_view.topbar\">\n @for (t of p_view.toggles; track t.mode) {\n <label data-mps=\"shell\" [mpProps]=\"t.label\">\n {{ p_view.hamburgerText }}\n </label>\n }\n @if (slots().topbar; as slot_topbar) {\n <ng-container [ngTemplateOutlet]=\"slot_topbar\" />\n }\n</div>\n<div data-mps=\"shell\" [mpProps]=\"p_view.sidebarRoot\" [style]=\"p_view.sizeStyle\">\n <aside data-mps=\"shell\" [mpProps]=\"p_view.sidebar\">\n @if (slots().sidebar; as slot_sidebar) {\n <ng-container [ngTemplateOutlet]=\"slot_sidebar\" />\n }\n </aside>\n <div data-mps=\"shell\" [mpProps]=\"p_view.content\">\n <ng-content />\n </div>\n</div>\n" }]
79
+ }], ctorParameters: () => [], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], externalToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalToggle", required: false }] }], dismissOnNavigate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissOnNavigate", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], stateChange: [{ type: i0.Output, args: ["stateChange"] }], topbarSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsShellTopbarDirective), { isSignal: true }] }], sidebarSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsShellSidebarDirective), { isSignal: true }] }] } });
80
+
81
+ // GENERATED from the shell manifest by @mintplayer/nx-component-compiler. Do not edit.
82
+
83
+ // Generated from @mintplayer/ui-core/shell (#458 M4, D10).
140
84
 
141
85
  /**
142
86
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-shell.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/shell/src/shell-sidebar/shell-sidebar.directive.ts","../../../../libs/mintplayer-ng-bootstrap/shell/src/shell/shell.component.ts","../../../../libs/mintplayer-ng-bootstrap/shell/src/shell/shell.component.html","../../../../libs/mintplayer-ng-bootstrap/shell/mintplayer-ng-bootstrap-shell.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * The shell's sidebar content, rendered inside its `<aside>`:\n *\n * <nav *bsShellSidebar>…</nav>\n */\n@Directive({ selector: '[bsShellSidebar]' })\nexport class BsShellSidebarDirective {\n readonly template = inject(TemplateRef);\n}\n\n/**\n * Content for the shell's top bar, rendered after the hamburger:\n *\n * <div *bsShellTopbar>…brand / nav…</div>\n */\n@Directive({ selector: '[bsShellTopbar]' })\nexport class BsShellTopbarDirective {\n readonly template = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { afterNextRender, afterRenderEffect, ChangeDetectionStrategy, Component, computed, contentChild, ElementRef, inject, input, model, output, signal } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n SHELL_SCOPE,\n applyShellState,\n connectShell,\n focusShellContent,\n shellScopedStyles,\n shouldDismissShell,\n toggleShell,\n type ShellLabels,\n} from '@mintplayer/ui-core/shell';\nimport { BsShellState, BsShellStateChange } from '../shell-state';\nimport { BsShellSidebarDirective, BsShellTopbarDirective } from '../shell-sidebar/shell-sidebar.directive';\n\n/**\n * `<bs-shell>` — responsive app shell with a collapsible sidebar (#437).\n *\n * Renders the markup of `@mintplayer/ui-core/shell` in its own template, so\n * the server-rendered page is the working shell: the open state is a native\n * checkbox per viewport mode and every rule is CSS, which makes the hamburger\n * work with JavaScript off. The host is the `.shell` root, so a height on\n * `bs-shell` bounds the layout and makes the content the scroll region.\n *\n * - `*bsShellSidebar` marks the sidebar content;\n * - `*bsShellTopbar` fills the top bar after the hamburger;\n * - everything else is the main content.\n */\n@Component({\n selector: 'bs-shell',\n templateUrl: './shell.component.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-mps]': 'view().root[\"data-mps\"]',\n '[class.shell]': 'true',\n '[attr.data-breakpoint]': 'view().root[\"data-breakpoint\"]',\n '[attr.data-external-toggle]': 'view().root[\"data-external-toggle\"]',\n '[attr.data-mp-hydrated]': 'view().root[\"data-mp-hydrated\"]',\n '[style.--mp-shell-size]': 'size()',\n '(click)': 'onClick($event)',\n },\n})\nexport class BsShellComponent {\n readonly state = input<BsShellState>('auto');\n readonly breakpoint = input<Breakpoint>('md');\n /** Expanded sidebar width (any CSS length); also settable via `--mp-shell-size`. */\n readonly size = model<string | null>(null);\n /** Hides the built-in hamburger; drive the shell through `state` or `toggle()`. */\n readonly externalToggle = input(false);\n /** Auto-close the overlay drawer when a sidebar link is clicked (narrow mode only). */\n readonly dismissOnNavigate = input(false);\n /** Localized accessible names; missing keys fall back to English. */\n readonly labels = input<Partial<ShellLabels> | null>(null);\n\n /** Fires when the sidebar opens or closes through the shell. */\n readonly statechange = output<BsShellStateChange>();\n\n protected readonly sidebar = contentChild(BsShellSidebarDirective);\n protected readonly topbar = contentChild(BsShellTopbarDirective);\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-shell');\n\n protected readonly view = computed(() => connectShell({\n id: this.id,\n state: this.state(),\n breakpoint: this.breakpoint(),\n externalToggle: this.externalToggle(),\n labels: this.labels(),\n hydrated: this.hydrated(),\n }));\n\n /** True once the listeners are attached (browser only), so e2e can wait on it. */\n private readonly hydrated = signal(false);\n\n constructor() {\n useScopedStyles(SHELL_SCOPE, shellScopedStyles);\n afterNextRender(() => this.hydrated.set(true));\n // The bags set the checkboxes' initial state (the `checked` attribute,\n // which is what SSR emits). A later `state` change must also reach a\n // checkbox the user already flipped, whose attribute no longer applies.\n let applied: BsShellState | null = null;\n afterRenderEffect(() => {\n const state = this.state();\n if (applied !== null && applied !== state) applyShellState(this.host, state);\n applied = state;\n });\n }\n\n /** Set the expanded sidebar width (any CSS length, e.g. `'20rem'`). */\n setSize(size: string) {\n this.size.set(size);\n }\n\n /** Open or close the sidebar in the current viewport mode. */\n toggle(force?: boolean) {\n const open = toggleShell(this.host, force);\n if (open !== null) this.statechange.emit({ open });\n }\n\n protected onToggleChange(event: Event) {\n this.statechange.emit({ open: (event.target as HTMLInputElement).checked });\n }\n\n protected onSkip(event: Event) {\n focusShellContent(event, this.host);\n }\n\n protected onClick(event: MouseEvent) {\n if (this.dismissOnNavigate() && shouldDismissShell(event, this.host)) this.toggle(false);\n }\n}\n","<a [mpProps]=\"view().skip\" [attr.href]=\"view().skipHref\" (click)=\"onSkip($event)\">{{ view().skipText }}</a>\n@for (toggle of view().toggles; track toggle.mode) {\n <input [mpProps]=\"toggle.input\" (change)=\"onToggleChange($event)\" />\n}\n<div [mpProps]=\"view().topbar\">\n @for (toggle of view().toggles; track toggle.mode) {\n <label [mpProps]=\"toggle.label\">{{ view().hamburgerText }}</label>\n }\n <ng-container [ngTemplateOutlet]=\"topbar()?.template ?? null\" />\n</div>\n<div [mpProps]=\"view().sidebarRoot\">\n <aside [mpProps]=\"view().sidebar\"><ng-container [ngTemplateOutlet]=\"sidebar()?.template ?? null\" /></aside>\n <div [mpProps]=\"view().content\"><ng-content /></div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEA;;;;AAIG;MAEU,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AACxC,IAAA;8GAFY,uBAAuB,EAAA,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,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,QAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,uBAAuB,wFACxB,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9DjE;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-shell.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/shell/src/generated/shell.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/shell/src/generated/shell.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/shell/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/shell/index.ts","../../../../libs/mintplayer-ng-bootstrap/shell/mintplayer-ng-bootstrap-shell.ts"],"sourcesContent":["// GENERATED from the shell manifest (shell) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { shellCore, type ShellInputs, type ShellMethods, shellScopedStyles, type ShellStateChange } from '@mintplayer/ui-core/shell';\n\n/** The `topbar` slot of `<bs-shell>`: `<ng-template bsShellTopbar>` or `*bsShellTopbar`. */\n@Directive({ selector: '[bsShellTopbar]' })\nexport class BsShellTopbarDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/** The `sidebar` slot of `<bs-shell>`: `<ng-template bsShellSidebar>` or `*bsShellSidebar`. */\n@Directive({ selector: '[bsShellSidebar]' })\nexport class BsShellSidebarDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * A responsive app shell with a collapsible sidebar (#458). Tier 1 no-JS: one native checkbox per\n * viewport mode is the open state, so the server-rendered page opens and closes with JavaScript off.\n *\n * Fill the `topbar` and `sidebar` slots; the default content is the main region. `toggle()` opens\n * or closes the sidebar in the current mode, and `stateChange` reports every change made through\n * the shell.\n */\n@Component({\n selector: 'bs-shell',\n templateUrl: './shell.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsShellComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly state = input<ShellInputs['state']>('auto');\n readonly breakpoint = input<ShellInputs['breakpoint']>('md');\n readonly size = input<ShellInputs['size']>(null);\n readonly externalToggle = input<ShellInputs['externalToggle'], unknown>(false, { transform: booleanAttribute });\n readonly dismissOnNavigate = input<ShellInputs['dismissOnNavigate'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<ShellInputs['labels']>(null);\n /** The sidebar opened or closed through the shell (hamburger, toggle(), dismiss). */\n readonly stateChange = output<ShellStateChange>();\n\n private readonly topbarSlot = contentChild(BsShellTopbarDirective);\n private readonly sidebarSlot = contentChild(BsShellSidebarDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ topbar: this.topbarSlot()?.templateRef, sidebar: this.sidebarSlot()?.templateRef }));\n readonly #core = useCore(shellCore, { inputs: () => ({ state: this.state(), breakpoint: this.breakpoint(), size: this.size(), externalToggle: this.externalToggle(), dismissOnNavigate: this.dismissOnNavigate(), labels: this.labels() }), idPrefix: 'bs-shell', outputs: { stateChange: this.stateChange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'shell' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('shell', shellScopedStyles);\n }\n\n /** Open or close the sidebar in the current viewport mode. */\n toggle(...args: Parameters<ShellMethods['toggle']>): ReturnType<ShellMethods['toggle']> {\n return this.#core.call('toggle', args) as ReturnType<ShellMethods['toggle']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/shell/src/templates/shell.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"shell\" [mpProps]=\"p_view.skip\" [attr.href]=\"p_view.skipHref\">\n {{ p_view.skipText }}\n</a>\n@for (t of p_view.toggles; track t.mode) {\n <input data-mps=\"shell\" [mpProps]=\"t.input\">\n}\n<div data-mps=\"shell\" [mpProps]=\"p_view.topbar\">\n @for (t of p_view.toggles; track t.mode) {\n <label data-mps=\"shell\" [mpProps]=\"t.label\">\n {{ p_view.hamburgerText }}\n </label>\n }\n @if (slots().topbar; as slot_topbar) {\n <ng-container [ngTemplateOutlet]=\"slot_topbar\" />\n }\n</div>\n<div data-mps=\"shell\" [mpProps]=\"p_view.sidebarRoot\" [style]=\"p_view.sizeStyle\">\n <aside data-mps=\"shell\" [mpProps]=\"p_view.sidebar\">\n @if (slots().sidebar; as slot_sidebar) {\n <ng-container [ngTemplateOutlet]=\"slot_sidebar\" />\n }\n </aside>\n <div data-mps=\"shell\" [mpProps]=\"p_view.content\">\n <ng-content />\n </div>\n</div>\n","// GENERATED from the shell manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsShellComponent, BsShellTopbarDirective, BsShellSidebarDirective } from './shell.component.generated';\n","// Generated from @mintplayer/ui-core/shell (#458 M4, D10).\nexport * from './src/generated';\nexport type { ShellBreakpoint, ShellLabels, ShellState, ShellStateChange } from '@mintplayer/ui-core/shell';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAEa,sBAAsB,CAAA;AADnC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC;AACjE,IAAA;8GAFY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC,SAAS;mBAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE;;AAK1C;MAEa,uBAAuB,CAAA;AADpC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC;AACjE,IAAA;8GAFY,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EA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,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,sBAAsB,6FACrB,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9CrE;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,9 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injector, DestroyRef, signal, forwardRef, Directive, computed, ElementRef, model, input, numberAttribute, booleanAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { inject, Injector, DestroyRef, signal, forwardRef, Directive, computed, ElementRef, model, input, numberAttribute, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
4
  import { emptySignature, signaturePadCore, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';
5
- import * as i2 from '@mintplayer/ng-bootstrap/a11y';
6
- import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
5
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
6
+ import * as i2 from '@mintplayer/ng-bootstrap/a11y/forms';
7
+ import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';
7
8
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
8
9
 
9
10
  /**
@@ -31,7 +32,7 @@ class BsSignaturePadValueAccessor {
31
32
  ngOnInit() {
32
33
  // The component is created after its host directives, so it is looked up here.
33
34
  const component = this.injector.get(BsSignaturePadComponent);
34
- const sub = component.signaturechange.subscribe((value) => {
35
+ const sub = component.signature.subscribe((value) => {
35
36
  if (!this.bound() || value === this.viewValue())
36
37
  return;
37
38
  this.viewValue.set(value);
@@ -118,11 +119,10 @@ class BsSignaturePadComponent {
118
119
  ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
119
120
  this.labels = input(null, /* @ts-ignore */
120
121
  ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
121
- /** Every stroke point, typed character, undo and clear: the current signature. */
122
- this.signaturechange = output();
123
- this.#core = useCore(signaturePadCore, { inputs: extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', outputs: { signatureChange: this.signaturechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });
122
+ this.#core = useCore(signaturePadCore, { inputs: extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });
124
123
  /** The template's props. */
125
124
  this.props = this.#core.props;
125
+ useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
126
126
  useScopedStyles('signature-pad', signaturePadScopedStyles);
127
127
  }
128
128
  /** Remove the most recent stroke (ignored when disabled). */
@@ -138,12 +138,12 @@ class BsSignaturePadComponent {
138
138
  return this.#core.call('focusInput', args);
139
139
  }
140
140
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: { signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { signature: "signatureChange", signaturechange: "signaturechange" }, hostDirectives: [{ directive: BsSignaturePadValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
141
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: { signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { signature: "signatureChange" }, hostDirectives: [{ directive: BsSignaturePadValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
142
142
  }
143
143
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, decorators: [{
144
144
  type: Component,
145
145
  args: [{ selector: 'bs-signature-pad', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n" }]
146
- }], ctorParameters: () => [], propDecorators: { signature: [{ type: i0.Input, args: [{ isSignal: true, alias: "signature", required: false }] }, { type: i0.Output, args: ["signatureChange"] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], showAccessibilityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAccessibilityToggle", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], signaturechange: [{ type: i0.Output, args: ["signaturechange"] }] } });
146
+ }], ctorParameters: () => [], propDecorators: { signature: [{ type: i0.Input, args: [{ isSignal: true, alias: "signature", required: false }] }, { type: i0.Output, args: ["signatureChange"] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], showAccessibilityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAccessibilityToggle", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }] } });
147
147
 
148
148
  // GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.
149
149
 
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/value-accessor/signature-pad-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/signature-pad.angular.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { emptySignature, type Signature } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-signature-pad` (a host directive of the\n * generated component, see `signature-pad.angular.ts`), so `ngModel`,\n * `formControl` and `formControlName` work without an extra import. A bound\n * form control drives the signature through `viewValue`; what the user draws\n * or types reaches the form through the component's `signature` model, which a\n * form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSignaturePadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the signature: its `viewValue` wins over the `signature` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Signature>(emptySignature());\n readonly disabled = signal(false);\n\n private onChange: (value: Signature) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsSignaturePadComponent);\n const sub = component.signaturechange.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: Signature) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: Signature | null | undefined): void {\n this.viewValue.set(value ?? emptySignature());\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { SignaturePadInputs } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadValueAccessor } from './value-accessor/signature-pad-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-signature-pad` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the signature and\n * the disabled state, and its validity reaches the typed field's ARIA and the\n * message under the pad.\n */\n\nexport const hostDirectives = [\n BsSignaturePadValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SignaturePadInputs): () => SignaturePadInputs {\n const accessor = inject(BsSignaturePadValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<SignaturePadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n signature: accessor.bound() ? accessor.viewValue() : value.signature,\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 signature-pad manifest (signature-pad) 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 { type Signature, signaturePadCore, type SignaturePadInputs, type SignaturePadMethods, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../signature-pad.angular';\n\n/**\n * Freehand signature capture with a typed alternative (#437).\n *\n * Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto\n * the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders\n * inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.\n */\n@Component({\n selector: 'bs-signature-pad',\n templateUrl: './signature-pad.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSignaturePadComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly signature = model<SignaturePadInputs['signature']>({ strokes: [] });\n readonly width = input<SignaturePadInputs['width'], unknown>(500, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['width'] });\n readonly height = input<SignaturePadInputs['height'], unknown>(300, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['height'] });\n readonly showAccessibilityToggle = input<SignaturePadInputs['showAccessibilityToggle'], unknown>(true, { transform: booleanAttribute });\n readonly disabled = input<SignaturePadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SignaturePadInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SignaturePadInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SignaturePadInputs['errorText']>(null);\n readonly inputLabel = input<SignaturePadInputs['inputLabel']>(null);\n readonly labels = input<SignaturePadInputs['labels']>(null);\n /** Every stroke point, typed character, undo and clear: the current signature. */\n readonly signaturechange = output<Signature>();\n\n readonly #core = useCore(signaturePadCore, { inputs: ext_extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', outputs: { signatureChange: this.signaturechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('signature-pad', signaturePadScopedStyles);\n }\n\n /** Remove the most recent stroke (ignored when disabled). */\n undo(...args: Parameters<SignaturePadMethods['undo']>): ReturnType<SignaturePadMethods['undo']> {\n return this.#core.call('undo', args) as ReturnType<SignaturePadMethods['undo']>;\n }\n\n /** Wipe the strokes and the typed text (ignored when disabled). */\n clear(...args: Parameters<SignaturePadMethods['clear']>): ReturnType<SignaturePadMethods['clear']> {\n return this.#core.call('clear', args) as ReturnType<SignaturePadMethods['clear']>;\n }\n\n /** Move focus to the typed field. */\n focusInput(...args: Parameters<SignaturePadMethods['focusInput']>): ReturnType<SignaturePadMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<SignaturePadMethods['focusInput']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSignaturePadComponent } from './signature-pad.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSignaturePadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;;;AAOG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,I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YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDHY,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,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;+BACE,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,8wBAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/value-accessor/signature-pad-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/signature-pad.angular.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { emptySignature, type Signature } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-signature-pad` (a host directive of the\n * generated component, see `signature-pad.angular.ts`), so `ngModel`,\n * `formControl` and `formControlName` work without an extra import. A bound\n * form control drives the signature through `viewValue`; what the user draws\n * or types reaches the form through the component's `signature` model, which a\n * form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSignaturePadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the signature: its `viewValue` wins over the `signature` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Signature>(emptySignature());\n readonly disabled = signal(false);\n\n private onChange: (value: Signature) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsSignaturePadComponent);\n const sub = component.signature.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: Signature) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: Signature | null | undefined): void {\n this.viewValue.set(value ?? emptySignature());\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { SignaturePadInputs } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadValueAccessor } from './value-accessor/signature-pad-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-signature-pad` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the signature and\n * the disabled state, and its validity reaches the typed field's ARIA and the\n * message under the pad.\n */\n\nexport const hostDirectives = [\n BsSignaturePadValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SignaturePadInputs): () => SignaturePadInputs {\n const accessor = inject(BsSignaturePadValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<SignaturePadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n signature: accessor.bound() ? accessor.viewValue() : value.signature,\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 signature-pad manifest (signature-pad) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { signaturePadCore, type SignaturePadInputs, type SignaturePadMethods, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../signature-pad.angular';\n\n/**\n * Freehand signature capture with a typed alternative (#437).\n *\n * Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto\n * the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders\n * inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.\n */\n@Component({\n selector: 'bs-signature-pad',\n templateUrl: './signature-pad.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSignaturePadComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly signature = model<SignaturePadInputs['signature']>({ strokes: [] });\n readonly width = input<SignaturePadInputs['width'], unknown>(500, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['width'] });\n readonly height = input<SignaturePadInputs['height'], unknown>(300, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['height'] });\n readonly showAccessibilityToggle = input<SignaturePadInputs['showAccessibilityToggle'], unknown>(true, { transform: booleanAttribute });\n readonly disabled = input<SignaturePadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SignaturePadInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SignaturePadInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SignaturePadInputs['errorText']>(null);\n readonly inputLabel = input<SignaturePadInputs['inputLabel']>(null);\n readonly labels = input<SignaturePadInputs['labels']>(null);\n\n readonly #core = useCore(signaturePadCore, { inputs: ext_extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });\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('signature-pad', signaturePadScopedStyles);\n }\n\n /** Remove the most recent stroke (ignored when disabled). */\n undo(...args: Parameters<SignaturePadMethods['undo']>): ReturnType<SignaturePadMethods['undo']> {\n return this.#core.call('undo', args) as ReturnType<SignaturePadMethods['undo']>;\n }\n\n /** Wipe the strokes and the typed text (ignored when disabled). */\n clear(...args: Parameters<SignaturePadMethods['clear']>): ReturnType<SignaturePadMethods['clear']> {\n return this.#core.call('clear', args) as ReturnType<SignaturePadMethods['clear']>;\n }\n\n /** Move focus to the typed field. */\n focusInput(...args: Parameters<SignaturePadMethods['focusInput']>): ReturnType<SignaturePadMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<SignaturePadMethods['focusInput']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSignaturePadComponent } from './signature-pad.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSignaturePadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAKA;;;;;;;AAOG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;AACrB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAY,cAAc,EAAE;sFAAC;QAC/C,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAA+B,MAAM,SAAS;AAC9D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA6BxC,IAAA;IA3BC,QAAQ,GAAA;;QAEN,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC;QAC5D,MAAM,GAAG,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YAClD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBAAE;AACjD,YAAA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iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,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,SAAA,EAAA,iBAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,2BAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrBpC,8wBAmBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDFY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;+BACE,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,8wBAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
@@ -1,26 +1,40 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { Color } from '@mintplayer/ng-bootstrap';
2
+ import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
4
+ import { spinnerCore, spinnerScopedStyles } from '@mintplayer/ui-core/spinner';
5
+ import { bootstrapSpinners } from '@mintplayer/ui-core/bootstrap/spinners';
4
6
 
7
+ // GENERATED from the spinner manifest (spinner) by @mintplayer/nx-component-compiler. Do not edit.
8
+ /** Bootstrap's spinner: a `role="status"` loading indicator whose visually hidden `label` a screen reader announces (#452). */
5
9
  class BsSpinnerComponent {
10
+ #core;
6
11
  constructor() {
7
- this.colors = Color;
12
+ /** The host element. */
13
+ this.elementRef = inject(ElementRef);
8
14
  this.type = input('border', /* @ts-ignore */
9
15
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
10
- this.color = input(Color.dark, /* @ts-ignore */
16
+ this.color = input(null, /* @ts-ignore */
11
17
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
12
- this.spinnerClass = computed(() => `spinner-${this.type()}`, /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "spinnerClass" }] : /* istanbul ignore next */ []));
14
- this.colorClass = computed(() => `text-${this.colors[this.color()]}`, /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "colorClass" }] : /* istanbul ignore next */ []));
18
+ this.small = input(false, { ...(ngDevMode ? { debugName: "small" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
19
+ this.label = input('Loading…', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
21
+ this.#core = useCore(spinnerCore, { inputs: () => ({ type: this.type(), color: this.color(), small: this.small(), label: this.label() }), idPrefix: 'bs-spinner', hostBag: (props) => ({ ...props.root, 'data-mps': 'spinner' }) });
22
+ /** The template's props. */
23
+ this.props = this.#core.props;
24
+ useScopedStyles(bootstrapSpinners.key, bootstrapSpinners.css, { order: bootstrapSpinners.order });
25
+ useScopedStyles('spinner', spinnerScopedStyles);
16
26
  }
17
27
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, small: { classPropertyName: "small", publicName: "small", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/spinner/src/templates/spinner.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_label = props().label;\n<span data-mps=\"spinner\" class=\"visually-hidden\">\n {{ p_label }}\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
29
  }
20
30
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSpinnerComponent, decorators: [{
21
31
  type: Component,
22
- args: [{ selector: 'bs-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"] }]
23
- }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
32
+ args: [{ selector: 'bs-spinner', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/spinner/src/templates/spinner.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_label = props().label;\n<span data-mps=\"spinner\" class=\"visually-hidden\">\n {{ p_label }}\n</span>\n" }]
33
+ }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], small: [{ type: i0.Input, args: [{ isSignal: true, alias: "small", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
34
+
35
+ // GENERATED from the spinner manifest by @mintplayer/nx-component-compiler. Do not edit.
36
+
37
+ // Generated from @mintplayer/ui-core/spinner (PRD #437 D10).
24
38
 
25
39
  /**
26
40
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-spinner.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.html","../../../../libs/mintplayer-ng-bootstrap/spinner/mintplayer-ng-bootstrap-spinner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-spinner',\n templateUrl: './spinner.component.html',\n styleUrls: ['./spinner.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSpinnerComponent {\n readonly colors = Color;\n\n type = input<'border' | 'grow'>('border');\n color = input<Color>(Color.dark);\n\n spinnerClass = computed(() => `spinner-${this.type()}`);\n colorClass = computed(() => `text-${this.colors[this.color()]}`);\n}\n","<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,MAAM,GAAG,KAAK;QAEvB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,QAAQ;iFAAC;AACzC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAQ,KAAK,CAAC,IAAI;kFAAC;QAEhC,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAA,QAAA,EAAW,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE;yFAAC;AACvD,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAA,KAAA,EAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA,CAAE;uFAAC;AACjE,IAAA;8GARY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,+TCT/B,mIAGA,EAAA,MAAA,EAAA,CAAA,ulDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDMa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACE,YAAY,EAAA,eAAA,EAGL,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mIAAA,EAAA,MAAA,EAAA,CAAA,ulDAAA,CAAA,EAAA;;;AEPjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-spinner.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/spinner/src/generated/spinner.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/generated/spinner.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/spinner/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/mintplayer-ng-bootstrap-spinner.ts"],"sourcesContent":["// GENERATED from the spinner manifest (spinner) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { spinnerCore, type SpinnerInputs, spinnerScopedStyles } from '@mintplayer/ui-core/spinner';\nimport { bootstrapSpinners } from '@mintplayer/ui-core/bootstrap/spinners';\n\n/** Bootstrap's spinner: a `role=\"status\"` loading indicator whose visually hidden `label` a screen reader announces (#452). */\n@Component({\n selector: 'bs-spinner',\n templateUrl: './spinner.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSpinnerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly type = input<SpinnerInputs['type']>('border');\n readonly color = input<SpinnerInputs['color']>(null);\n readonly small = input<SpinnerInputs['small'], unknown>(false, { transform: booleanAttribute });\n readonly label = input<SpinnerInputs['label']>('Loading…');\n\n readonly #core = useCore(spinnerCore, { inputs: () => ({ type: this.type(), color: this.color(), small: this.small(), label: this.label() }), idPrefix: 'bs-spinner', hostBag: (props) => ({ ...props.root, 'data-mps': 'spinner' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapSpinners.key, bootstrapSpinners.css, { order: bootstrapSpinners.order }); useScopedStyles('spinner', spinnerScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/spinner/src/templates/spinner.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_label = props().label;\n<span data-mps=\"spinner\" class=\"visually-hidden\">\n {{ p_label }}\n</span>\n","// GENERATED from the spinner manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSpinnerComponent } from './spinner.component.generated';\n","// Generated from @mintplayer/ui-core/spinner (PRD #437 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,kBAAkB,CAAA;AASpB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAwB,QAAQ;iFAAC;QAC7C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAyB,IAAI;kFAAC;QAC3C,IAAA,CAAA,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AA,OAAA,EAEb,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6PAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -21,12 +21,12 @@ class BsSplitterComponent {
21
21
  this.labels = input(null, /* @ts-ignore */
22
22
  ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
23
23
  /** A divider drag started, with the sizes before it. */
24
- this.resizestart = output();
24
+ this.resizeStart = output();
25
25
  /** Every frame of a divider drag, with the sizes it previews. */
26
26
  this.resizing = output();
27
27
  /** A drag or a key committed new sizes. */
28
- this.resizeend = output();
29
- this.#core = useCore(splitterCore, { inputs: () => ({ orientation: this.orientation(), minPanelSize: this.minPanelSize(), touchMode: this.touchMode(), labels: this.labels() }), idPrefix: 'bs-splitter', outputs: { resizeStart: this.resizestart, resizing: this.resizing, resizeEnd: this.resizeend }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });
28
+ this.resizeEnd = output();
29
+ this.#core = useCore(splitterCore, { inputs: () => ({ orientation: this.orientation(), minPanelSize: this.minPanelSize(), touchMode: this.touchMode(), labels: this.labels() }), idPrefix: 'bs-splitter', outputs: { resizeStart: this.resizeStart, resizing: this.resizing, resizeEnd: this.resizeEnd }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });
30
30
  /** The template's props. */
31
31
  this.props = this.#core.props;
32
32
  useScopedStyles('splitter', splitterScopedStyles);
@@ -44,12 +44,12 @@ class BsSplitterComponent {
44
44
  return this.#core.call('resizeDividerBy', args);
45
45
  }
46
46
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSplitterComponent, isStandalone: true, selector: "bs-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, minPanelSize: { classPropertyName: "minPanelSize", publicName: "minPanelSize", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizestart: "resizestart", resizing: "resizing", resizeend: "resizeend" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
47
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSplitterComponent, isStandalone: true, selector: "bs-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, minPanelSize: { classPropertyName: "minPanelSize", publicName: "minPanelSize", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resizing: "resizing", resizeEnd: "resizeEnd" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
48
  }
49
49
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterComponent, decorators: [{
50
50
  type: Component,
51
51
  args: [{ selector: 'bs-splitter', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
52
- }], ctorParameters: () => [], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], minPanelSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minPanelSize", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], resizestart: [{ type: i0.Output, args: ["resizestart"] }], resizing: [{ type: i0.Output, args: ["resizing"] }], resizeend: [{ type: i0.Output, args: ["resizeend"] }] } });
52
+ }], ctorParameters: () => [], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], minPanelSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minPanelSize", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], resizeStart: [{ type: i0.Output, args: ["resizeStart"] }], resizing: [{ type: i0.Output, args: ["resizing"] }], resizeEnd: [{ type: i0.Output, args: ["resizeEnd"] }] } });
53
53
 
54
54
  // GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.
55
55
  /** One panel of a splitter. Its content fills the panel. */
@@ -64,7 +64,7 @@ class BsSplitterPanelComponent {
64
64
  useScopedStyles('splitter', splitterScopedStyles);
65
65
  }
66
66
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
67
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsSplitterPanelComponent, isStandalone: true, selector: "bs-splitter-panel", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
67
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsSplitterPanelComponent, isStandalone: true, selector: "bs-splitter-panel", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
68
68
  }
69
69
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterPanelComponent, decorators: [{
70
70
  type: Component,