@mintplayer/ng-bootstrap 22.31.0 → 22.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
  19. package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
  21. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
  23. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
  25. package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
  27. package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
  29. package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
  31. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
  33. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
  35. package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
  37. package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
  39. package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
  41. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
  43. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
  45. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
  47. package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
  49. package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
  51. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
  53. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
  55. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  57. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  58. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
  59. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
  61. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
  63. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
  65. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
  67. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
  69. package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
  71. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
  73. package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
  75. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  76. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
  77. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
  79. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
  81. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
  83. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
  85. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
  87. package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
  89. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
  91. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
  93. package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
  95. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
  97. package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
  99. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
  101. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
  103. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
  105. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  106. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
  107. package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
  108. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
  109. package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
  110. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
  111. package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
  112. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
  113. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  114. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
  115. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  116. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
  117. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  118. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
  119. package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
  120. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
  121. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  122. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  123. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  124. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
  125. package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
  126. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
  127. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  128. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
  129. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  130. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
  131. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  132. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
  133. package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
  134. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
  135. package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
  136. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
  137. package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
  138. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
  139. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  140. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
  141. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  142. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
  143. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  144. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
  145. package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
  146. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
  147. package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
  148. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
  149. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  150. package/nav/package.json +4 -0
  151. package/package.json +11 -28
  152. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  153. package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
  154. package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
  155. package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
  156. package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
  157. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
  158. package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
  159. package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
  160. package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
  161. package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
  162. package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
  163. package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
  164. package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
  165. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
  166. package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
  167. package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
  168. package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
  169. package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
  170. package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
  171. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
  172. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
  173. package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
  174. package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
  175. package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
  176. package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
  177. package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
  178. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  179. package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
  180. package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
  181. package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
  182. package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
  183. package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
  184. package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
  185. package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
  186. package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
  187. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  188. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
  189. package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
  190. package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
  191. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
  192. package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
  193. package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
  194. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
  195. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
  196. package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
  197. package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
  198. package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
  199. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
  200. package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
  201. package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
  202. package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
  203. package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
  204. package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
  205. package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
  206. package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
  207. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
  208. package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
  209. package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
  210. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
  211. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  212. package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
  213. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
  214. package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
  215. package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
  216. package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
  217. package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
  218. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
  219. package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
  220. package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
  221. package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
  222. package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
  223. package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
  224. package/calendar-month/package.json +0 -4
  225. package/container/package.json +0 -4
  226. package/dropdown-divider/package.json +0 -4
  227. package/dropdown-menu/package.json +0 -4
  228. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
  229. package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
  230. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  231. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  232. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
  233. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
  234. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
  235. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
  236. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
  237. package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
  238. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
  239. package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
  240. package/has-overlay/package.json +0 -4
  241. package/no-noscript/package.json +0 -4
  242. package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
  243. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
  244. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
  245. package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
  246. package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
  247. package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
@@ -1,115 +1,167 @@
1
- import * as _mintplayer_ui_core_forms from '@mintplayer/ui-core/forms';
2
- import * as _mintplayer_ui_core_checkbox from '@mintplayer/ui-core/checkbox';
3
- import { CheckboxInputBag } from '@mintplayer/ui-core/checkbox';
4
1
  import * as _angular_core from '@angular/core';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as _mintplayer_ui_core_checkbox from '@mintplayer/ui-core/checkbox';
4
+ import { CheckboxGroupContext } from '@mintplayer/ui-core/checkbox';
5
+ import * as _mintplayer_ng_bootstrap_machine from '@mintplayer/ng-bootstrap/machine';
5
6
  import { ControlValueAccessor } from '@angular/forms';
6
- import * as i2 from '@mintplayer/ng-bootstrap/a11y';
7
+ import * as i2 from '@mintplayer/ng-bootstrap/a11y/forms';
8
+ import * as _mintplayer_ui_core_component from '@mintplayer/ui-core/component';
7
9
 
8
10
  /**
9
- * Groups N `<bs-checkbox>` children into a multi-select FormControl whose
10
- * value is a `string[]` of every checked child's `value()`. The group's
11
- * `[name]` is the form-array name; the accessor appends the `[]` suffix
12
- * automatically on each child's inner `<input>` for traditional-form
13
- * submission. Per-instance `[name]` on each child is ignored when the
14
- * child resolves into a group.
15
- *
16
- * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`
17
- * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled
18
- * `change` events from the children to recompute the array on every toggle.
11
+ * The `ControlValueAccessor` of a single checkbox or toggle button (a host
12
+ * directive of the generated `bs-checkbox` and `bs-toggle-button`). The value is
13
+ * the checked state.
19
14
  */
20
- declare class BsCheckboxGroupDirective implements ControlValueAccessor {
15
+ declare class BsCheckboxValueAccessor implements ControlValueAccessor {
21
16
  private readonly host;
22
- readonly name: _angular_core.InputSignal<string | null>;
23
- /** Accessible name for the group (written as `aria-label`). A bare
24
- * `role="group"` is announced as nothing at all; the label is what makes
25
- * the grouping audible ("Toppings, group"). */
26
- readonly label: _angular_core.InputSignal<string | null>;
27
- readonly checkboxes: _angular_core.Signal<readonly BsCheckboxComponent[]>;
28
- /** Most-recently-written form value. An effect syncs each child's
29
- * `isToggled` whenever this OR the
30
- * `checkboxes()` set changes, so an initial `writeValue` that lands
31
- * before children register still applies once the `contentChildren`
32
- * query populates. */
33
- private readonly currentValue;
34
- private onValueChange?;
35
- protected onTouched?: () => void;
36
- constructor();
37
- onChildChange(): void;
38
- registerOnChange(fn: (_: string[]) => void): void;
17
+ /** A form control is bound: its value drives the checkbox, over its own `checked`. */
18
+ readonly bound: _angular_core.WritableSignal<boolean>;
19
+ /** The checked state as the form control or the user last set it. */
20
+ readonly viewValue: _angular_core.WritableSignal<boolean>;
21
+ readonly disabled: _angular_core.WritableSignal<boolean>;
22
+ private onChange;
23
+ onTouched: () => void;
24
+ registerOnChange(fn: (value: boolean) => void): void;
39
25
  registerOnTouched(fn: () => void): void;
40
- writeValue(value: string[] | null): void;
41
26
  setDisabledState(isDisabled: boolean): void;
42
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxGroupDirective, never>;
43
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxGroupDirective, "[bsCheckboxGroup]", ["bsCheckboxGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, ["checkboxes"], never, true, never>;
27
+ writeValue(value: boolean | null): void;
28
+ onNativeChange(event: Event): void;
29
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxValueAccessor, never>;
30
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxValueAccessor, "[bsCheckboxAccessor]", never, {}, {}, never, never, true, never>;
44
31
  }
45
32
 
46
- type BsCheckboxType = 'checkbox' | 'switch' | 'toggle_button';
33
+ /**
34
+ * A native `<input type=checkbox>` in Bootstrap's `.form-check`, `.form-switch` or `.btn-check`
35
+ * markup (#458). It submits, toggles and announces with JavaScript off. `checked` and
36
+ * `indeterminate` are two-way; a user toggle clears the mixed state. Inside a checkbox group it
37
+ * takes the group's name (`<name>[]`) and is checked when its `value` is selected. An
38
+ * `aria-label` on the component, or `inputLabel`, names the input.
39
+ */
40
+ declare class BsCheckboxComponent {
41
+ #private;
42
+ /** The host element. */
43
+ readonly elementRef: ElementRef<HTMLElement>;
44
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
45
+ protected readonly hostAttrs: _mintplayer_ng_bootstrap_machine.HostAttrs;
46
+ readonly type: _angular_core.InputSignal<_mintplayer_ui_core_checkbox.CheckboxType>;
47
+ readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-light" | "outline-dark">;
48
+ readonly checked: _angular_core.ModelSignal<boolean>;
49
+ readonly name: _angular_core.InputSignal<string | null>;
50
+ readonly value: _angular_core.InputSignal<string | null>;
51
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
52
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
53
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
54
+ readonly errorText: _angular_core.InputSignal<string | null>;
55
+ readonly inputLabel: _angular_core.InputSignal<string | null>;
56
+ readonly indeterminate: _angular_core.ModelSignal<boolean>;
57
+ /** The template's props. */
58
+ protected readonly props: _angular_core.Signal<{
59
+ view: _mintplayer_ui_core_checkbox.CheckboxView;
60
+ }>;
61
+ constructor();
62
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxComponent, never>;
63
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxComponent, "bs-checkbox", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
64
+ }
47
65
 
48
66
  /**
49
- * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a
50
- * `boolean` reflecting the checked state. For multi-mode use, bind
51
- * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns
52
- * its own `string[]` accessor.
67
+ * A single Bootstrap on/off button (#458): a checkbox whose type is fixed to `toggle_button`, an
68
+ * `input.btn-check` + `label.btn` that keeps the native checkbox role. `checked` is two-way.
53
69
  */
54
- declare class BsCheckboxValueAccessor implements ControlValueAccessor {
55
- private host;
56
- onValueChange?: (value: boolean) => void;
57
- onTouched?: () => void;
58
- onChangeEvent(ev: Event): void;
59
- registerOnChange(fn: (_: boolean) => void): void;
70
+ declare class BsToggleButtonComponent {
71
+ #private;
72
+ /** The host element. */
73
+ readonly elementRef: ElementRef<HTMLElement>;
74
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
75
+ protected readonly hostAttrs: _mintplayer_ng_bootstrap_machine.HostAttrs;
76
+ readonly color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-light" | "outline-dark">;
77
+ readonly checked: _angular_core.ModelSignal<boolean>;
78
+ readonly name: _angular_core.InputSignal<string | null>;
79
+ readonly value: _angular_core.InputSignal<string | null>;
80
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
81
+ readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
82
+ readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
83
+ readonly errorText: _angular_core.InputSignal<string | null>;
84
+ readonly inputLabel: _angular_core.InputSignal<string | null>;
85
+ /** The template's props. */
86
+ protected readonly props: _angular_core.Signal<{
87
+ view: _mintplayer_ui_core_checkbox.CheckboxView;
88
+ }>;
89
+ constructor();
90
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsToggleButtonComponent, never>;
91
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsToggleButtonComponent, "bs-toggle-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
92
+ }
93
+
94
+ /**
95
+ * The `ControlValueAccessor` of a checkbox group, shared by the generated
96
+ * `bs-checkbox-group` and the attribute form `[bsCheckboxGroup]` (a host
97
+ * directive of both). The value is the list of the checked checkboxes' values.
98
+ * It reacts only to the checkboxes of its own group (`ownsCheckbox`).
99
+ */
100
+ declare class BsCheckboxGroupValueAccessor implements ControlValueAccessor {
101
+ private readonly host;
102
+ /** A form control is bound: its value drives the group, over the group's own `value`. */
103
+ readonly bound: _angular_core.WritableSignal<boolean>;
104
+ /** The selection as the form control or the user last set it. */
105
+ readonly viewValue: _angular_core.WritableSignal<readonly string[]>;
106
+ readonly disabled: _angular_core.WritableSignal<boolean>;
107
+ private onChange;
108
+ onTouched: () => void;
109
+ /** The owner's own write-back of a toggle (`[(value)]` on the attribute form). */
110
+ onPick: (value: string[]) => void;
111
+ registerOnChange(fn: (value: string[]) => void): void;
60
112
  registerOnTouched(fn: () => void): void;
61
- writeValue(value: boolean): void;
62
113
  setDisabledState(isDisabled: boolean): void;
63
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxValueAccessor, never>;
64
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxValueAccessor, "bs-checkbox", never, {}, {}, never, never, true, never>;
114
+ writeValue(value: readonly string[] | null): void;
115
+ onNativeChange(event: Event): void;
116
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxGroupValueAccessor, never>;
117
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxGroupValueAccessor, "[bsCheckboxGroupAccessor]", never, {}, {}, never, never, true, never>;
65
118
  }
66
119
 
67
120
  /**
68
- * A native `<input type=checkbox>` in Bootstrap's `.form-check` /
69
- * `.form-switch` / `.btn-check` markup, rendered by this component's own
70
- * template (#437): it submits, toggles and announces with JavaScript off,
71
- * and SSR emits the real control. The ARIA contract comes from
72
- * `@mintplayer/ui-core/checkbox`; the consumer's `aria-*` / `id` /
73
- * `tabindex` on `<bs-checkbox>` land on the input.
121
+ * A `role=group` element around checkboxes (#458). They submit as `<name>[]`, and `value` (two-way)
122
+ * is the list of the checked ones' values. Name it with `aria-label` / `aria-labelledby`. A group
123
+ * nested inside is its own: each group reacts only to its own checkboxes.
74
124
  */
75
- declare class BsCheckboxComponent {
76
- private readonly parentGroup;
77
- private readonly validity;
78
- private readonly host;
79
- private readonly hostAria;
80
- private readonly id;
81
- private readonly inputRef;
82
- type: _angular_core.InputSignal<BsCheckboxType>;
83
- /** Button colour of a `toggle_button`; ignored by the other types. */
84
- color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-light" | "outline-dark">;
85
- isToggled: _angular_core.ModelSignal<boolean | null>;
86
- indeterminate: _angular_core.ModelSignal<boolean>;
87
- name: _angular_core.InputSignal<string | null>;
88
- value: _angular_core.InputSignal<string | null>;
89
- disabled: _angular_core.InputSignal<boolean>;
90
- group: _angular_core.InputSignal<BsCheckboxGroupDirective | null>;
91
- /** Written by the value accessor and by `[bsCheckboxGroup]` (`setDisabledState`). */
92
- readonly formDisabled: _angular_core.WritableSignal<boolean>;
93
- /** Explicit `[group]` input wins over the DI-injected ancestor. */
94
- readonly resolvedGroup: _angular_core.Signal<BsCheckboxGroupDirective | null>;
95
- /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */
96
- readonly nameResult: _angular_core.Signal<string | null>;
97
- readonly checked: _angular_core.Signal<boolean>;
98
- /** `<bs-toggle-button>` is a toggle button whatever `[type]` says. */
99
- private readonly isToggleButtonHost;
100
- readonly resolvedType: _angular_core.Signal<BsCheckboxType>;
101
- private readonly state;
102
- readonly classes: _angular_core.Signal<_mintplayer_ui_core_checkbox.CheckboxClasses>;
103
- readonly bags: _angular_core.Signal<{
104
- input: CheckboxInputBag;
105
- labelFor: string | null;
106
- feedback: _mintplayer_ui_core_forms.ErrorFeedback["message"];
125
+ declare class BsCheckboxGroupComponent {
126
+ #private;
127
+ /** The host element. */
128
+ readonly elementRef: ElementRef<HTMLElement>;
129
+ readonly name: _angular_core.InputSignal<string | null>;
130
+ readonly value: _angular_core.ModelSignal<_mintplayer_ui_core_checkbox.CheckboxGroupValue>;
131
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
132
+ /** What this component hands its content. */
133
+ readonly provided: _angular_core.Signal<_mintplayer_ui_core_checkbox.CheckboxGroupContext>;
134
+ /** The template's props. */
135
+ protected readonly props: _angular_core.Signal<{
136
+ root: _mintplayer_ui_core_component.CoreBag;
107
137
  }>;
108
138
  constructor();
109
- onChange(ev: Event): void;
110
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxComponent, never>;
111
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxComponent, "bs-checkbox, bs-toggle-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
139
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxGroupComponent, never>;
140
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxGroupComponent, "bs-checkbox-group", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxGroupValueAccessor; inputs: {}; outputs: {}; }]>;
141
+ }
142
+
143
+ /**
144
+ * The attribute form of a checkbox group (Angular only, #458 M4): put it on a
145
+ * host you already have (a `<tbody>` whose rows each hold a checkbox, a `<div>`
146
+ * in a table cell). The `<bs-checkbox>` descendants take its name (`<name>[]`)
147
+ * and selection through DI, so the nearest group wins. Bind `[formControl]` /
148
+ * `[(ngModel)]` / `[(value)]` on the same element.
149
+ *
150
+ * It adds `role="group"` only on a host whose implicit role is generic and that
151
+ * has no role of its own. Use `<bs-checkbox-group>` for a standalone set.
152
+ */
153
+ declare class BsCheckboxGroupDirective {
154
+ private readonly accessor;
155
+ /** The group's name: its checkboxes submit as `<name>[]`. */
156
+ readonly name: _angular_core.InputSignal<string | null>;
157
+ /** The selected checkboxes' values, when no form control is bound. */
158
+ readonly value: _angular_core.ModelSignal<readonly string[]>;
159
+ readonly disabled: _angular_core.Signal<boolean>;
160
+ /** What the checkboxes read. */
161
+ readonly provided: _angular_core.Signal<CheckboxGroupContext>;
162
+ constructor();
163
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxGroupDirective, never>;
164
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxGroupDirective, "[bsCheckboxGroup]", ["bsCheckboxGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, [{ directive: typeof BsCheckboxGroupValueAccessor; inputs: {}; outputs: {}; }]>;
112
165
  }
113
166
 
114
- export { BsCheckboxComponent, BsCheckboxGroupDirective, BsCheckboxValueAccessor };
115
- export type { BsCheckboxType };
167
+ export { BsCheckboxComponent, BsCheckboxGroupComponent, BsCheckboxGroupDirective, BsCheckboxGroupValueAccessor, BsCheckboxValueAccessor, BsToggleButtonComponent };
@@ -1,12 +1,24 @@
1
+ import * as _mintplayer_ui_core_close from '@mintplayer/ui-core/close';
1
2
  import * as _angular_core from '@angular/core';
3
+ import { ElementRef } from '@angular/core';
4
+ import * as _mintplayer_ng_bootstrap_machine from '@mintplayer/ng-bootstrap/machine';
2
5
 
6
+ /** Bootstrap's close button: a real `<button class="btn-close">` named by `label`; listen for its native `click`. */
3
7
  declare class BsCloseComponent {
4
- /** Accessible name for the close button. Override for localisation. */
5
- ariaLabel: _angular_core.InputSignal<string>;
6
- click: _angular_core.OutputEmitterRef<void>;
7
- onClose(ev: MouseEvent): void;
8
+ #private;
9
+ /** The host element. */
10
+ readonly elementRef: ElementRef<HTMLElement>;
11
+ /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
12
+ protected readonly hostAttrs: _mintplayer_ng_bootstrap_machine.HostAttrs;
13
+ readonly label: _angular_core.InputSignal<string>;
14
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
15
+ /** The template's props. */
16
+ protected readonly props: _angular_core.Signal<{
17
+ view: _mintplayer_ui_core_close.CloseView;
18
+ }>;
19
+ constructor();
8
20
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCloseComponent, never>;
9
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCloseComponent, "bs-close", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, never, true, never>;
21
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCloseComponent, "bs-close", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
22
  }
11
23
 
12
24
  export { BsCloseComponent };
@@ -26,9 +26,9 @@ declare class BsCodeSnippetComponent {
26
26
  readonly label: _angular_core.InputSignal<string>;
27
27
  readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_code_snippet.CodeSnippetLabels> | null>;
28
28
  /** The resolved grammar changed (`code` when the source stays plain). */
29
- readonly languagedetected: _angular_core.OutputEmitterRef<string>;
29
+ readonly languageDetected: _angular_core.OutputEmitterRef<string>;
30
30
  /** A line link was clicked; call `preventDefault()` on it to navigate yourself. */
31
- readonly lineactivate: _angular_core.OutputEmitterRef<CodeLineActivation>;
31
+ readonly lineActivate: _angular_core.OutputEmitterRef<CodeLineActivation>;
32
32
  /** The template's props. */
33
33
  protected readonly props: _angular_core.Signal<{
34
34
  view: _mintplayer_ui_core_code_snippet.CodeSnippetView;
@@ -39,7 +39,7 @@ declare class BsCodeSnippetComponent {
39
39
  /** Settles once the in-flight highlight has been applied. */
40
40
  whenHighlighted(...args: Parameters<CodeSnippetMethods['whenHighlighted']>): ReturnType<CodeSnippetMethods['whenHighlighted']>;
41
41
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCodeSnippetComponent, never>;
42
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCodeSnippetComponent, "bs-code-snippet", never, { "code": { "alias": "code"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "lineNumbers": { "alias": "lineNumbers"; "required": false; "isSignal": true; }; "startLine": { "alias": "startLine"; "required": false; "isSignal": true; }; "annotations": { "alias": "annotations"; "required": false; "isSignal": true; }; "activeLine": { "alias": "activeLine"; "required": false; "isSignal": true; }; "lineHref": { "alias": "lineHref"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "languagedetected": "languagedetected"; "lineactivate": "lineactivate"; }, never, never, true, never>;
42
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCodeSnippetComponent, "bs-code-snippet", never, { "code": { "alias": "code"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "lineNumbers": { "alias": "lineNumbers"; "required": false; "isSignal": true; }; "startLine": { "alias": "startLine"; "required": false; "isSignal": true; }; "annotations": { "alias": "annotations"; "required": false; "isSignal": true; }; "activeLine": { "alias": "activeLine"; "required": false; "isSignal": true; }; "lineHref": { "alias": "lineHref"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "languageDetected": "languageDetected"; "lineActivate": "lineActivate"; }, never, never, true, never>;
43
43
  }
44
44
 
45
45
  export { BsCodeSnippetComponent };
@@ -1,240 +1,56 @@
1
+ import * as _mintplayer_ui_core_color_picker from '@mintplayer/ui-core/color-picker';
2
+ export { ColorPickerLabels } from '@mintplayer/ui-core/color-picker';
1
3
  import * as _angular_core from '@angular/core';
2
- import { ElementRef } from '@angular/core';
3
- import { Subject } from 'rxjs';
4
+ import { OnInit, ElementRef } from '@angular/core';
4
5
  import { ControlValueAccessor } from '@angular/forms';
5
6
 
6
- interface HslColor {
7
- hue: number;
8
- saturation: number;
9
- luminosity: number;
10
- }
11
-
12
- interface HsvColor {
13
- hue: number;
14
- saturation: number;
15
- value: number;
16
- }
17
-
18
- interface RgbColor {
19
- r: number;
20
- g: number;
21
- b: number;
22
- }
23
-
24
- declare function hex2rgb(hex: string): RgbColor;
25
- declare function rgb2hex(rgb: RgbColor): string;
26
- declare function rgb2hsv(rgb: RgbColor): HsvColor;
27
- declare function hsv2rgb(hsv: HsvColor): RgbColor;
28
- declare function rgb2hsl(rgb: RgbColor): HslColor;
29
- declare function hsl2rgb(hsl: HslColor): RgbColor;
30
- declare function hsv2hsl(hsv: HsvColor): HslColor;
31
- declare function hsl2hsv(hsl: HslColor): HsvColor;
32
- declare function hex2hsv(hex: string): HsvColor;
33
- declare function hsv2hex(hsv: HsvColor): string;
34
- /** Polar position (cx, cy) on a disc of radius R → HSV (hue, saturation). */
35
- declare function polar2hs(dx: number, dy: number, radius: number): {
36
- hue: number;
37
- saturation: number;
38
- };
39
- /** Inverse of polar2hs. Hue in degrees, saturation in [0, 1] → (dx, dy) on a disc of given radius. */
40
- declare function hs2polar(hue: number, saturation: number, radius: number): {
41
- dx: number;
42
- dy: number;
43
- };
44
-
45
7
  /**
46
- * Hue + Saturation pair shared between the wheel and the strips.
47
- * Saturation is HSV-saturation (0..1) — at S=0 the color is white at V=1
48
- * and gray at V<1. (Not HSL-saturation; HSL would put gray at S=0 regardless of L.)
8
+ * The `ControlValueAccessor` of `bs-color-picker` (a host directive of the generated component,
9
+ * see `color-picker.angular.ts`). The value is the hex `#rrggbb`. A bound form control drives it
10
+ * through `viewValue`; what the user picks (on the wheel or a slider) reaches the form through
11
+ * the component's `valuechange`, which a form write never echoes.
49
12
  */
50
- interface HS {
51
- hue: number;
52
- saturation: number;
53
- }
54
-
55
- declare class BsAlphaStripComponent {
56
- disabled: _angular_core.InputSignal<boolean>;
57
- hs: _angular_core.ModelSignal<HS>;
58
- brightness: _angular_core.ModelSignal<number>;
59
- alpha: _angular_core.ModelSignal<number>;
60
- trackGradient: _angular_core.Signal<string>;
61
- resultBackground: _angular_core.Signal<string>;
62
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAlphaStripComponent, never>;
63
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAlphaStripComponent, "bs-alpha-strip", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hs": { "alias": "hs"; "required": false; "isSignal": true; }; "brightness": { "alias": "brightness"; "required": false; "isSignal": true; }; "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; }, { "hs": "hsChange"; "brightness": "brightnessChange"; "alpha": "alphaChange"; }, never, never, true, never>;
64
- }
65
-
66
- declare class BsBrightnessStripComponent {
67
- disabled: _angular_core.InputSignal<boolean>;
68
- hs: _angular_core.ModelSignal<HS>;
69
- brightness: _angular_core.ModelSignal<number>;
70
- trackGradient: _angular_core.Signal<string>;
71
- resultBackground: _angular_core.Signal<string>;
72
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsBrightnessStripComponent, never>;
73
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsBrightnessStripComponent, "bs-brightness-strip", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hs": { "alias": "hs"; "required": false; "isSignal": true; }; "brightness": { "alias": "brightness"; "required": false; "isSignal": true; }; }, { "hs": "hsChange"; "brightness": "brightnessChange"; }, never, never, true, never>;
74
- }
75
-
76
- declare class BsColorWheelComponent {
77
- readonly surface: _angular_core.Signal<ElementRef<HTMLDivElement>>;
78
- width: _angular_core.ModelSignal<number>;
79
- height: _angular_core.ModelSignal<number>;
80
- brightness: _angular_core.ModelSignal<number>;
81
- hs: _angular_core.ModelSignal<HS>;
82
- disabled: _angular_core.InputSignal<boolean>;
83
- ariaLabel: _angular_core.InputSignal<string>;
84
- private readonly isPointerDown;
85
- squareSize: _angular_core.Signal<number>;
86
- shiftX: _angular_core.Signal<number>;
87
- shiftY: _angular_core.Signal<number>;
88
- outerRadius: _angular_core.Signal<number>;
89
- overlayOpacity: _angular_core.Signal<number>;
90
- ariaValueText: _angular_core.Signal<string>;
91
- markerPosition: _angular_core.Signal<{
92
- x: number;
93
- y: number;
94
- }>;
95
- onPointerDown(ev: MouseEvent | TouchEvent): void;
96
- onPointerMove(ev: MouseEvent | TouchEvent): void;
97
- onPointerUp(_ev: MouseEvent | TouchEvent): void;
98
- /**
99
- * Keyboard model for the 2-D wheel:
100
- * ArrowLeft / ArrowRight → -5° / +5° hue (Shift: 1° for "fine")
101
- * ArrowDown / ArrowUp → -5% / +5% saturation (Shift: 1% for "fine")
102
- * PageDown / PageUp → -30° / +30° hue
103
- * Home / End → saturation 100% / 0%
104
- *
105
- * Hue wraps around; saturation clamps. Sighted-keyboard users get the same
106
- * wheel as mouse users; blind users typically prefer the channel sliders
107
- * (toggleable in bs-color-picker), since aria-valuetext on a 2-D widget is
108
- * harder to spatialise than two 1-D sliders.
109
- */
110
- onKeydown(ev: KeyboardEvent): void;
111
- private updateColor;
112
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsColorWheelComponent, never>;
113
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsColorWheelComponent, "bs-color-wheel", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "brightness": { "alias": "brightness"; "required": false; "isSignal": true; }; "hs": { "alias": "hs"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "width": "widthChange"; "height": "heightChange"; "brightness": "brightnessChange"; "hs": "hsChange"; }, never, never, true, never>;
114
- }
115
-
116
- declare class BsColorPickerValueAccessor implements ControlValueAccessor {
117
- private host;
118
- onValueChange?: (value: string) => void;
119
- onTouched?: () => void;
120
- constructor();
121
- private emit;
122
- registerOnChange(fn: (_: any) => void): void;
13
+ declare class BsColorPickerValueAccessor implements ControlValueAccessor, OnInit {
14
+ private readonly injector;
15
+ private readonly destroyRef;
16
+ /** A form control drives the color: its `viewValue` wins over the `value` input. */
17
+ readonly bound: _angular_core.WritableSignal<boolean>;
18
+ readonly viewValue: _angular_core.WritableSignal<string>;
19
+ readonly disabled: _angular_core.WritableSignal<boolean>;
20
+ private onChange;
21
+ onTouched: () => void;
22
+ ngOnInit(): void;
23
+ registerOnChange(fn: (value: string) => void): void;
123
24
  registerOnTouched(fn: () => void): void;
124
- writeValue(value: string | null): void;
25
+ writeValue(value: string | null | undefined): void;
125
26
  setDisabledState(isDisabled: boolean): void;
126
27
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsColorPickerValueAccessor, never>;
127
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsColorPickerValueAccessor, "bs-color-picker", ["bsColorPicker"], {}, {}, never, never, true, never>;
28
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsColorPickerValueAccessor, never, never, {}, {}, never, never, true, never>;
128
29
  }
129
30
 
31
+ /** A hue/saturation wheel over brightness and alpha sliders, with an optional pair of hue and saturation sliders. `value` (hex), `alpha` and `channelSlidersVisible` are two-way. */
130
32
  declare class BsColorPickerComponent {
131
- readonly colorWheel: _angular_core.Signal<BsColorWheelComponent>;
132
- size: _angular_core.InputSignal<number>;
133
- disabled: _angular_core.WritableSignal<boolean>;
134
- allowAlpha: _angular_core.InputSignal<boolean>;
135
- /**
136
- * When true (default), a "Show hue + saturation sliders" toggle is rendered
137
- * below the picker. Toggling it reveals dedicated 1-D sliders for hue and
138
- * saturation alongside the existing brightness/alpha strips, giving keyboard
139
- * and screen-reader users a 1-D path for every channel without having to
140
- * spatialise the 2-D wheel. Set to false to hide both the toggle and the
141
- * channel sliders entirely (e.g. when the consuming app provides its own
142
- * accessibility settings UI).
143
- */
144
- showAccessibilityToggle: _angular_core.InputSignal<boolean>;
145
- channelSlidersVisible: _angular_core.ModelSignal<boolean>;
146
- hs: _angular_core.WritableSignal<HS>;
147
- brightness: _angular_core.WritableSignal<number>;
148
- alpha: _angular_core.ModelSignal<number>;
149
- /**
150
- * Fires when the user drives a change (drags the wheel or the brightness strip).
151
- * The value accessor subscribes to this so it only emits to the form on real
152
- * user actions — not on writeValue echoes or initial signal-default state.
153
- */
154
- readonly userChanged: Subject<void>;
155
- onUserHsChange(hs: HS): void;
156
- onUserBrightnessChange(brightness: number): void;
157
- onUserAlphaChange(alpha: number): void;
33
+ #private;
34
+ /** The host element. */
35
+ readonly elementRef: ElementRef<HTMLElement>;
36
+ readonly value: _angular_core.ModelSignal<string>;
37
+ readonly alpha: _angular_core.ModelSignal<number>;
38
+ readonly channelSlidersVisible: _angular_core.ModelSignal<boolean>;
39
+ /** The wheel's diameter and the sliders' width, in pixels. */
40
+ readonly size: _angular_core.InputSignalWithTransform<number, unknown>;
41
+ readonly allowAlpha: _angular_core.InputSignalWithTransform<boolean, unknown>;
42
+ /** Renders the switch that reveals the hue and saturation sliders. */
43
+ readonly showAccessibilityToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
44
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
45
+ /** Localized accessible names; missing keys keep the English defaults. */
46
+ readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_color_picker.ColorPickerLabels> | null>;
47
+ /** The template's props. */
48
+ protected readonly props: _angular_core.Signal<{
49
+ view: _mintplayer_ui_core_color_picker.ColorPickerView;
50
+ }>;
51
+ constructor();
158
52
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsColorPickerComponent, never>;
159
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsColorPickerComponent, "bs-color-picker", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "allowAlpha": { "alias": "allowAlpha"; "required": false; "isSignal": true; }; "showAccessibilityToggle": { "alias": "showAccessibilityToggle"; "required": false; "isSignal": true; }; "channelSlidersVisible": { "alias": "channelSlidersVisible"; "required": false; "isSignal": true; }; "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; }, { "channelSlidersVisible": "channelSlidersVisibleChange"; "alpha": "alphaChange"; }, never, never, true, [{ directive: typeof BsColorPickerValueAccessor; inputs: {}; outputs: {}; }]>;
53
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsColorPickerComponent, "bs-color-picker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alpha": { "alias": "alpha"; "required": false; "isSignal": true; }; "channelSlidersVisible": { "alias": "channelSlidersVisible"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "allowAlpha": { "alias": "allowAlpha"; "required": false; "isSignal": true; }; "showAccessibilityToggle": { "alias": "showAccessibilityToggle"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "alpha": "alphaChange"; "channelSlidersVisible": "channelSlidersVisibleChange"; }, never, never, true, [{ directive: typeof BsColorPickerValueAccessor; inputs: {}; outputs: {}; }]>;
160
54
  }
161
55
 
162
- /**
163
- * Hue picker — a horizontal rainbow strip backed by `bs-slider`. Two-way
164
- * `[(hs)]` keeps the saturation untouched; only `hs.hue` (0–360°) changes.
165
- * Inherits the slider's APG keyboard model (Arrow keys, Home/End, PageUp/Down).
166
- */
167
- declare class BsHueStripComponent {
168
- disabled: _angular_core.InputSignal<boolean>;
169
- hs: _angular_core.ModelSignal<HS>;
170
- /** Hue normalized to 0..1 for the underlying bs-slider (which works in 0..1). */
171
- normalizedHue: _angular_core.Signal<number>;
172
- /** Rainbow gradient — every hue at full saturation/lightness. */
173
- readonly trackGradient: string;
174
- thumbBackground: _angular_core.Signal<string>;
175
- onValueChange(v: number): void;
176
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsHueStripComponent, never>;
177
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsHueStripComponent, "bs-hue-strip", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hs": { "alias": "hs"; "required": false; "isSignal": true; }; }, { "hs": "hsChange"; }, never, never, true, never>;
178
- }
179
-
180
- /**
181
- * Saturation picker — a horizontal grey-to-pure-colour strip backed by
182
- * `bs-slider`. Two-way `[(hs)]` keeps the hue untouched; only `hs.saturation`
183
- * (0–1) changes. The track gradient re-derives from the current hue so the
184
- * preview always matches what the user is about to pick.
185
- */
186
- declare class BsSaturationStripComponent {
187
- disabled: _angular_core.InputSignal<boolean>;
188
- hs: _angular_core.ModelSignal<HS>;
189
- trackGradient: _angular_core.Signal<string>;
190
- thumbBackground: _angular_core.Signal<string>;
191
- onValueChange(v: number): void;
192
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSaturationStripComponent, never>;
193
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSaturationStripComponent, "bs-saturation-strip", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hs": { "alias": "hs"; "required": false; "isSignal": true; }; }, { "hs": "hsChange"; }, never, never, true, never>;
194
- }
195
-
196
- declare class BsSliderComponent {
197
- readonly track: _angular_core.Signal<ElementRef<HTMLDivElement>>;
198
- readonly thumb: _angular_core.Signal<ElementRef<HTMLDivElement>>;
199
- disabled: _angular_core.InputSignal<boolean>;
200
- value: _angular_core.ModelSignal<number>;
201
- /** Accessible name for SR users. e.g. "Brightness", "Alpha", "Hue". */
202
- ariaLabel: _angular_core.InputSignal<string | null>;
203
- /** Multiplier applied to the 0..1 value when reporting it through aria-valuenow / aria-valuemax / aria-valuetext. 100 = percent (default); 360 = degrees; 255 = byte; etc. */
204
- valueScale: _angular_core.InputSignal<number>;
205
- /** Suffix appended to aria-valuetext after the scaled number. Defaults to "%". Use "°" for hue, "" for unitless. */
206
- valueUnit: _angular_core.InputSignal<string>;
207
- private isPointerDown;
208
- thumbLeft: _angular_core.Signal<string>;
209
- cursorClass: _angular_core.Signal<string>;
210
- /** Scaled current value for aria-valuenow (e.g. 0..100 for percent, 0..360 for hue). */
211
- ariaValueNow: _angular_core.Signal<number>;
212
- /** Human-readable value for SR with the configured unit. */
213
- ariaValueText: _angular_core.Signal<string>;
214
- onPointerDown(ev: MouseEvent | TouchEvent): void;
215
- onPointerMove(ev: MouseEvent | TouchEvent): void;
216
- onPointerUp(_ev: MouseEvent | TouchEvent): void;
217
- onKeydown(ev: KeyboardEvent): void;
218
- private updateColor;
219
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSliderComponent, never>;
220
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSliderComponent, "bs-slider", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "valueScale": { "alias": "valueScale"; "required": false; "isSignal": true; }; "valueUnit": { "alias": "valueUnit"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["[bsTrack]", "[bsThumb]"], true, never>;
221
- }
222
- /**
223
- * Where `clientX` falls along a track starting at `left` and `width` px wide, clamped to 0..1.
224
- * A track with no width (not laid out yet, or display:none) has no position to report: null,
225
- * rather than the NaN or Infinity the division would produce.
226
- */
227
- declare function trackFraction(clientX: number, left: number, width: number): number | null;
228
- declare class BsThumbDirective {
229
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsThumbDirective, never>;
230
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsThumbDirective, "[bsThumb]", never, {}, {}, never, never, true, never>;
231
- }
232
- declare class BsTrackDirective {
233
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsTrackDirective, never>;
234
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsTrackDirective, "[bsTrack]", never, {}, {}, never, never, true, never>;
235
- }
236
-
237
- type HtmlColor = `#${string}`;
238
-
239
- export { BsAlphaStripComponent, BsBrightnessStripComponent, BsColorPickerComponent, BsColorPickerValueAccessor, BsColorWheelComponent, BsHueStripComponent, BsSaturationStripComponent, BsSliderComponent, BsThumbDirective, BsTrackDirective, hex2hsv, hex2rgb, hs2polar, hsl2hsv, hsl2rgb, hsv2hex, hsv2hsl, hsv2rgb, polar2hs, rgb2hex, rgb2hsl, rgb2hsv, trackFraction };
240
- export type { HS, HslColor, HsvColor, HtmlColor, RgbColor };
56
+ export { BsColorPickerComponent, BsColorPickerValueAccessor };