@mintplayer/ng-bootstrap 22.32.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
  2. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  3. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
  4. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  5. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
  6. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  7. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
  8. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
  10. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  11. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
  12. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  13. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  14. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  15. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
  16. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  17. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +6 -8
  18. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  19. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  20. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  21. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  22. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  23. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  25. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
  26. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  27. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
  28. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  29. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  30. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  31. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  32. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  33. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  34. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  35. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +12 -24
  36. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  37. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
  38. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
  40. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  41. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  42. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  43. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  44. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  45. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +9 -19
  46. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  47. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  48. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +18 -32
  50. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  51. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
  52. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  53. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
  54. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  55. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
  56. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  57. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
  58. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  59. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +199 -16
  60. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  62. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  63. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -261
  64. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  65. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  66. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  67. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
  68. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
  69. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
  70. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  71. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
  72. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  73. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
  74. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  75. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
  76. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  77. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
  78. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  79. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  80. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  81. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +8 -10
  82. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  83. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
  84. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  85. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  86. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  87. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +56 -267
  88. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  89. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  90. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  91. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +47 -63
  92. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  93. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +7 -15
  94. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
  96. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  97. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
  98. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  99. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  100. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  101. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  102. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  103. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  104. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
  106. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  107. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
  108. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  109. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +8 -8
  110. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  111. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  112. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  113. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -7
  114. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  115. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  116. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  117. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
  118. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  119. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
  120. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  121. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
  122. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  123. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  125. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  126. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  127. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  128. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  129. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +9 -13
  130. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  131. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
  132. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
  134. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  135. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  136. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  137. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  138. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  139. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +159 -234
  140. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  141. package/package.json +2 -22
  142. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
  143. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  144. package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
  145. package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
  146. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
  147. package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
  148. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  149. package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
  150. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  151. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  152. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  153. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  154. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +143 -91
  155. package/types/mintplayer-ng-bootstrap-close.d.ts +16 -5
  156. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  157. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  158. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  159. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  160. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +2 -6
  161. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
  162. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  163. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  164. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  165. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  166. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  167. package/types/mintplayer-ng-bootstrap-form.d.ts +32 -11
  168. package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
  169. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  170. package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
  171. package/types/mintplayer-ng-bootstrap-machine.d.ts +95 -4
  172. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  173. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
  174. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  175. package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
  176. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
  177. package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
  178. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  179. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
  180. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
  181. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  182. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
  183. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
  184. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  185. package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
  186. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  187. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
  188. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  189. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  190. package/types/mintplayer-ng-bootstrap-range.d.ts +35 -13
  191. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  192. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  193. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  194. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  195. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -51
  196. package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
  197. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  198. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
  199. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  200. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
  201. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  202. package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
  203. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  204. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  205. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -7
  206. package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -55
  207. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  208. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  209. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  210. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  211. package/calendar-month/package.json +0 -4
  212. package/dropdown-divider/package.json +0 -4
  213. package/dropdown-menu/package.json +0 -4
  214. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  215. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  216. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -30
  217. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  218. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
  219. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  220. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  221. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  222. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  223. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  224. package/has-overlay/package.json +0 -4
  225. package/no-noscript/package.json +0 -4
  226. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  227. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -9
  228. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  229. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  230. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1,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,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,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,SAAS;mBAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE;;AAK3C;;;;AAIG;MAEU,sBAAsB,CAAA;AADnC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AACxC,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,EAA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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,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AA,EAAA,KAAA,EAAA,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,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,5 +1,5 @@
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
5
  import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
@@ -32,7 +32,7 @@ class BsSignaturePadValueAccessor {
32
32
  ngOnInit() {
33
33
  // The component is created after its host directives, so it is looked up here.
34
34
  const component = this.injector.get(BsSignaturePadComponent);
35
- const sub = component.signaturechange.subscribe((value) => {
35
+ const sub = component.signature.subscribe((value) => {
36
36
  if (!this.bound() || value === this.viewValue())
37
37
  return;
38
38
  this.viewValue.set(value);
@@ -119,9 +119,7 @@ class BsSignaturePadComponent {
119
119
  ...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
120
120
  this.labels = input(null, /* @ts-ignore */
121
121
  ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
122
- /** Every stroke point, typed character, undo and clear: the current signature. */
123
- this.signaturechange = output();
124
- 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 } });
125
123
  /** The template's props. */
126
124
  this.props = this.#core.props;
127
125
  useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
@@ -140,12 +138,12 @@ class BsSignaturePadComponent {
140
138
  return this.#core.call('focusInput', args);
141
139
  }
142
140
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
143
- 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 }); }
144
142
  }
145
143
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, decorators: [{
146
144
  type: Component,
147
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" }]
148
- }], 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 }] }] } });
149
147
 
150
148
  // GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.
151
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/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, 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 { 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 /** 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(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,eAAe,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YACxD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBAAE;AACjD,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AACtB,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC;IACpD;AAEA,IAAA,gBAAgB,CAAC,EAA8B,EAAA;A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A,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,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,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;;;AEnBpC;;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,C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AAA,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;;;;"}
@@ -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,
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["// GENERATED from the splitter manifest (splitter) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterCore, type SplitterInputs, type SplitterMethods, type SplitterResizeEventDetail, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/**\n * Resizable panels along one axis. Put splitter panels inside; a divider between every two is dragged,\n * or focused and moved with the arrow keys (Shift for 1% steps), Home and End. Nest splitters for\n * two-dimensional layouts. With JavaScript off the panels share the space evenly.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<SplitterInputs['orientation']>('horizontal');\n readonly minPanelSize = input<SplitterInputs['minPanelSize'], unknown>(50, { transform: (v: unknown) => numberAttribute(v) as SplitterInputs['minPanelSize'] });\n readonly touchMode = input<SplitterInputs['touchMode'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<SplitterInputs['labels']>(null);\n /** A divider drag started, with the sizes before it. */\n readonly resizestart = output<SplitterResizeEventDetail>();\n /** Every frame of a divider drag, with the sizes it previews. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** A drag or a key committed new sizes. */\n readonly resizeend = output<SplitterResizeEventDetail>();\n\n readonly #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' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n\n /** The panel sizes in px, in document order. */\n getPanelSizes(...args: Parameters<SplitterMethods['getPanelSizes']>): ReturnType<SplitterMethods['getPanelSizes']> {\n return this.#core.call('getPanelSizes', args) as ReturnType<SplitterMethods['getPanelSizes']>;\n }\n\n /** Set the panel sizes in px, one per panel. Emits nothing. */\n setPanelSizes(...args: Parameters<SplitterMethods['setPanelSizes']>): ReturnType<SplitterMethods['setPanelSizes']> {\n return this.#core.call('setPanelSizes', args) as ReturnType<SplitterMethods['setPanelSizes']>;\n }\n\n /** Move a divider as its arrow, Home or End key would. */\n resizeDividerBy(...args: Parameters<SplitterMethods['resizeDividerBy']>): ReturnType<SplitterMethods['resizeDividerBy']> {\n return this.#core.call('resizeDividerBy', args) as ReturnType<SplitterMethods['resizeDividerBy']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterPanelCore, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/** One panel of a splitter. Its content fills the panel. */\n@Component({\n selector: 'bs-splitter-panel',\n templateUrl: './splitter-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(splitterPanelCore, { inputs: () => ({ }), idPrefix: 'bs-splitter-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n}\n","<!-- 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","// GENERATED from the splitter manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSplitterComponent } from './splitter.component.generated';\nexport { BsSplitterPanelComponent } from './splitter-panel.component.generated';\n","// The splitter is generated from @mintplayer/ui-core/splitter (PRD #437 D10).\nexport * from './generated';\nexport type {\n SplitterLabels,\n SplitterOrientation,\n SplitterResizeEventDetail,\n SplitterResizeKey,\n} from '@mintplayer/ui-core/splitter';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;;AAIG;MAOU,mBAAmB,CAAA;AAerB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAjBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgC,YAAY;wFAAC;AAChE,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA0C,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,cAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAmC,GAAG;QACtJ,IAAA,CAAA,SAAS,GAAG,KAAK,CAAuC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC/F,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;;QAE9C,IAAA,CAAA,WAAW,GAAG,MAAM,EAA6B;;QAEjD,IAAA,CAAA,QAAQ,GAAG,MAAM,EAA6B;;QAE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AAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,mBAAmB,WAEpB,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mUAAA,EAAA;;;AEVjD;;ACAA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["// GENERATED from the splitter manifest (splitter) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterCore, type SplitterInputs, type SplitterMethods, type SplitterResizeEventDetail, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/**\n * Resizable panels along one axis. Put splitter panels inside; a divider between every two is dragged,\n * or focused and moved with the arrow keys (Shift for 1% steps), Home and End. Nest splitters for\n * two-dimensional layouts. With JavaScript off the panels share the space evenly.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<SplitterInputs['orientation']>('horizontal');\n readonly minPanelSize = input<SplitterInputs['minPanelSize'], unknown>(50, { transform: (v: unknown) => numberAttribute(v) as SplitterInputs['minPanelSize'] });\n readonly touchMode = input<SplitterInputs['touchMode'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<SplitterInputs['labels']>(null);\n /** A divider drag started, with the sizes before it. */\n readonly resizeStart = output<SplitterResizeEventDetail>();\n /** Every frame of a divider drag, with the sizes it previews. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** A drag or a key committed new sizes. */\n readonly resizeEnd = output<SplitterResizeEventDetail>();\n\n readonly #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' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n\n /** The panel sizes in px, in document order. */\n getPanelSizes(...args: Parameters<SplitterMethods['getPanelSizes']>): ReturnType<SplitterMethods['getPanelSizes']> {\n return this.#core.call('getPanelSizes', args) as ReturnType<SplitterMethods['getPanelSizes']>;\n }\n\n /** Set the panel sizes in px, one per panel. Emits nothing. */\n setPanelSizes(...args: Parameters<SplitterMethods['setPanelSizes']>): ReturnType<SplitterMethods['setPanelSizes']> {\n return this.#core.call('setPanelSizes', args) as ReturnType<SplitterMethods['setPanelSizes']>;\n }\n\n /** Move a divider as its arrow, Home or End key would. */\n resizeDividerBy(...args: Parameters<SplitterMethods['resizeDividerBy']>): ReturnType<SplitterMethods['resizeDividerBy']> {\n return this.#core.call('resizeDividerBy', args) as ReturnType<SplitterMethods['resizeDividerBy']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterPanelCore, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/** One panel of a splitter. Its content fills the panel. */\n@Component({\n selector: 'bs-splitter-panel',\n templateUrl: './splitter-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(splitterPanelCore, { inputs: () => ({ }), idPrefix: 'bs-splitter-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n}\n","<!-- 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","// GENERATED from the splitter manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSplitterComponent } from './splitter.component.generated';\nexport { BsSplitterPanelComponent } from './splitter-panel.component.generated';\n","// The splitter is generated from @mintplayer/ui-core/splitter (PRD #437 D10).\nexport * from './generated';\nexport type {\n SplitterLabels,\n SplitterOrientation,\n SplitterResizeEventDetail,\n SplitterResizeKey,\n} from '@mintplayer/ui-core/splitter';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;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