ngwr 16.7.1 → 16.9.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 (236) hide show
  1. package/charts/donut-chart/styles/_index.scss +9 -3
  2. package/charts/meter-group/styles/_index.scss +8 -1
  3. package/charts/sparkline/styles/_index.scss +6 -3
  4. package/command-palette/styles/_index.scss +10 -0
  5. package/descriptions/styles/_index.scss +91 -0
  6. package/fesm2022/ngwr-anchor.mjs +48 -10
  7. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  8. package/fesm2022/ngwr-carousel.mjs +3 -2
  9. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  10. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -1
  11. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  12. package/fesm2022/ngwr-charts-core.mjs +17 -0
  13. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  14. package/fesm2022/ngwr-charts-donut-chart-testing.mjs +27 -0
  15. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  16. package/fesm2022/ngwr-charts-donut-chart.mjs +54 -6
  17. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  18. package/fesm2022/ngwr-charts-meter-group-testing.mjs +27 -0
  19. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  20. package/fesm2022/ngwr-charts-meter-group.mjs +54 -6
  21. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  22. package/fesm2022/ngwr-charts-sparkline-testing.mjs +27 -0
  23. package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
  24. package/fesm2022/ngwr-charts-sparkline.mjs +45 -4
  25. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  26. package/fesm2022/ngwr-checkbox.mjs +38 -3
  27. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  28. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  29. package/fesm2022/ngwr-color-picker.mjs +4 -3
  30. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  31. package/fesm2022/ngwr-command-palette.mjs +39 -19
  32. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  33. package/fesm2022/ngwr-compare.mjs +4 -0
  34. package/fesm2022/ngwr-compare.mjs.map +1 -1
  35. package/fesm2022/ngwr-context-menu.mjs +7 -2
  36. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  37. package/fesm2022/ngwr-cookie.mjs +6 -3
  38. package/fesm2022/ngwr-cookie.mjs.map +1 -1
  39. package/fesm2022/ngwr-date-stamp-testing.mjs +3 -0
  40. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
  41. package/fesm2022/ngwr-date-stamp.mjs +81 -4
  42. package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
  43. package/fesm2022/ngwr-date.mjs +16 -2
  44. package/fesm2022/ngwr-date.mjs.map +1 -1
  45. package/fesm2022/ngwr-density.mjs +4 -3
  46. package/fesm2022/ngwr-density.mjs.map +1 -1
  47. package/fesm2022/ngwr-descriptions.mjs +77 -20
  48. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  49. package/fesm2022/ngwr-dialog.mjs +10 -7
  50. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  51. package/fesm2022/ngwr-directives.mjs +12 -0
  52. package/fesm2022/ngwr-directives.mjs.map +1 -1
  53. package/fesm2022/ngwr-drawer.mjs +14 -8
  54. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  55. package/fesm2022/ngwr-editor.mjs +1 -0
  56. package/fesm2022/ngwr-editor.mjs.map +1 -1
  57. package/fesm2022/ngwr-file-upload.mjs +4 -5
  58. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  59. package/fesm2022/ngwr-form.mjs.map +1 -1
  60. package/fesm2022/ngwr-hotkey.mjs +10 -5
  61. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  62. package/fesm2022/ngwr-i18n-ar.mjs +18 -5
  63. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  64. package/fesm2022/ngwr-i18n-cs.mjs +18 -5
  65. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  66. package/fesm2022/ngwr-i18n-de.mjs +18 -5
  67. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  68. package/fesm2022/ngwr-i18n-en.mjs +18 -5
  69. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  70. package/fesm2022/ngwr-i18n-es.mjs +18 -5
  71. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  72. package/fesm2022/ngwr-i18n-fr.mjs +18 -5
  73. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  74. package/fesm2022/ngwr-i18n-he.mjs +18 -5
  75. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  76. package/fesm2022/ngwr-i18n-hi.mjs +18 -5
  77. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  78. package/fesm2022/ngwr-i18n-id.mjs +18 -5
  79. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  80. package/fesm2022/ngwr-i18n-it.mjs +18 -5
  81. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  82. package/fesm2022/ngwr-i18n-ja.mjs +18 -5
  83. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  84. package/fesm2022/ngwr-i18n-kk.mjs +18 -5
  85. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
  86. package/fesm2022/ngwr-i18n-ko.mjs +18 -5
  87. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  88. package/fesm2022/ngwr-i18n-nl.mjs +18 -5
  89. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  90. package/fesm2022/ngwr-i18n-pl.mjs +18 -5
  91. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  92. package/fesm2022/ngwr-i18n-pt.mjs +18 -5
  93. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  94. package/fesm2022/ngwr-i18n-ru.mjs +18 -5
  95. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  96. package/fesm2022/ngwr-i18n-sv.mjs +18 -5
  97. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  98. package/fesm2022/ngwr-i18n-tr.mjs +18 -5
  99. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  100. package/fesm2022/ngwr-i18n-uk.mjs +18 -5
  101. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  102. package/fesm2022/ngwr-i18n-vi.mjs +18 -5
  103. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  104. package/fesm2022/ngwr-i18n-zh-tw.mjs +18 -5
  105. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  106. package/fesm2022/ngwr-i18n-zh.mjs +18 -5
  107. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  108. package/fesm2022/ngwr-i18n.mjs +7 -6
  109. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  110. package/fesm2022/ngwr-image-cropper-testing.mjs +33 -0
  111. package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
  112. package/fesm2022/ngwr-image-cropper.mjs +536 -30
  113. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  114. package/fesm2022/ngwr-input-number.mjs +33 -10
  115. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  116. package/fesm2022/ngwr-input-otp.mjs +24 -10
  117. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  118. package/fesm2022/ngwr-input.mjs +2 -2
  119. package/fesm2022/ngwr-input.mjs.map +1 -1
  120. package/fesm2022/ngwr-knob.mjs +5 -0
  121. package/fesm2022/ngwr-knob.mjs.map +1 -1
  122. package/fesm2022/ngwr-lightbox.mjs +5 -3
  123. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  124. package/fesm2022/ngwr-mention.mjs +2 -0
  125. package/fesm2022/ngwr-mention.mjs.map +1 -1
  126. package/fesm2022/ngwr-meta.mjs +43 -8
  127. package/fesm2022/ngwr-meta.mjs.map +1 -1
  128. package/fesm2022/ngwr-overlay.mjs +51 -2
  129. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  130. package/fesm2022/ngwr-pagination.mjs +1 -1
  131. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  132. package/fesm2022/ngwr-pipes.mjs +160 -8
  133. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  134. package/fesm2022/ngwr-popconfirm.mjs +2 -2
  135. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  136. package/fesm2022/ngwr-qr.mjs +65 -7
  137. package/fesm2022/ngwr-qr.mjs.map +1 -1
  138. package/fesm2022/ngwr-schema-form.mjs +2 -2
  139. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  140. package/fesm2022/ngwr-scroll.mjs +1 -2
  141. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  142. package/fesm2022/ngwr-slider.mjs +22 -17
  143. package/fesm2022/ngwr-slider.mjs.map +1 -1
  144. package/fesm2022/ngwr-speed-dial.mjs +30 -1
  145. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  146. package/fesm2022/ngwr-statistic.mjs +1 -1
  147. package/fesm2022/ngwr-stepper-testing.mjs +7 -1
  148. package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
  149. package/fesm2022/ngwr-stepper.mjs +55 -4
  150. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  151. package/fesm2022/ngwr-switch.mjs +33 -3
  152. package/fesm2022/ngwr-switch.mjs.map +1 -1
  153. package/fesm2022/ngwr-timeline.mjs +4 -0
  154. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  155. package/fesm2022/ngwr-toolbar.mjs +171 -16
  156. package/fesm2022/ngwr-toolbar.mjs.map +1 -1
  157. package/fesm2022/ngwr-tour.mjs +8 -3
  158. package/fesm2022/ngwr-tour.mjs.map +1 -1
  159. package/fesm2022/ngwr-transfer.mjs +3 -2
  160. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  161. package/fesm2022/ngwr-tree.mjs +1 -1
  162. package/fesm2022/ngwr-utils.mjs +46 -8
  163. package/fesm2022/ngwr-utils.mjs.map +1 -1
  164. package/fesm2022/ngwr-version.mjs +1 -1
  165. package/fesm2022/ngwr-version.mjs.map +1 -1
  166. package/fesm2022/ngwr-virtual-scroll.mjs +2 -2
  167. package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
  168. package/i18n/ar.json +18 -5
  169. package/i18n/cs.json +18 -5
  170. package/i18n/de.json +18 -5
  171. package/i18n/en.json +18 -5
  172. package/i18n/es.json +18 -5
  173. package/i18n/fr.json +18 -5
  174. package/i18n/he.json +18 -5
  175. package/i18n/hi.json +18 -5
  176. package/i18n/id.json +18 -5
  177. package/i18n/it.json +18 -5
  178. package/i18n/ja.json +18 -5
  179. package/i18n/kk.json +18 -5
  180. package/i18n/ko.json +18 -5
  181. package/i18n/nl.json +18 -5
  182. package/i18n/pl.json +18 -5
  183. package/i18n/pt.json +18 -5
  184. package/i18n/ru.json +18 -5
  185. package/i18n/sv.json +18 -5
  186. package/i18n/tr.json +18 -5
  187. package/i18n/uk.json +18 -5
  188. package/i18n/vi.json +18 -5
  189. package/i18n/zh-TW.json +18 -5
  190. package/i18n/zh.json +18 -5
  191. package/image-cropper/styles/_index.scss +30 -1
  192. package/llms-full.txt +9 -9
  193. package/package.json +1 -1
  194. package/schematics/use/rule.js +1 -0
  195. package/schematics/use/symbol-map.json +2 -0
  196. package/skills/ngwr/SKILL.md +2 -2
  197. package/stepper/styles/_index.scss +33 -0
  198. package/tour/styles/_index.scss +11 -7
  199. package/types/ngwr-anchor.d.ts +14 -1
  200. package/types/ngwr-charts-donut-chart-testing.d.ts +32 -3
  201. package/types/ngwr-charts-donut-chart.d.ts +45 -6
  202. package/types/ngwr-charts-meter-group-testing.d.ts +29 -1
  203. package/types/ngwr-charts-meter-group.d.ts +43 -4
  204. package/types/ngwr-charts-sparkline-testing.d.ts +32 -2
  205. package/types/ngwr-charts-sparkline.d.ts +42 -3
  206. package/types/ngwr-checkbox.d.ts +14 -0
  207. package/types/ngwr-color-picker-testing.d.ts +1 -1
  208. package/types/ngwr-command-palette.d.ts +2 -1
  209. package/types/ngwr-date-stamp-testing.d.ts +2 -0
  210. package/types/ngwr-date-stamp.d.ts +41 -2
  211. package/types/ngwr-date.d.ts +3 -1
  212. package/types/ngwr-descriptions.d.ts +33 -5
  213. package/types/ngwr-dialog.d.ts +11 -6
  214. package/types/ngwr-directives.d.ts +1 -0
  215. package/types/ngwr-drawer.d.ts +12 -4
  216. package/types/ngwr-file-upload.d.ts +1 -1
  217. package/types/ngwr-form.d.ts +4 -0
  218. package/types/ngwr-hotkey.d.ts +2 -0
  219. package/types/ngwr-image-cropper-testing.d.ts +33 -1
  220. package/types/ngwr-image-cropper.d.ts +214 -6
  221. package/types/ngwr-input-number.d.ts +14 -2
  222. package/types/ngwr-input-otp.d.ts +2 -0
  223. package/types/ngwr-lightbox.d.ts +1 -0
  224. package/types/ngwr-meta.d.ts +13 -1
  225. package/types/ngwr-overlay.d.ts +20 -1
  226. package/types/ngwr-pipes.d.ts +125 -1
  227. package/types/ngwr-qr.d.ts +17 -0
  228. package/types/ngwr-slider.d.ts +3 -1
  229. package/types/ngwr-speed-dial.d.ts +10 -0
  230. package/types/ngwr-stepper-testing.d.ts +10 -0
  231. package/types/ngwr-stepper.d.ts +47 -1
  232. package/types/ngwr-switch.d.ts +13 -0
  233. package/types/ngwr-toolbar.d.ts +27 -0
  234. package/types/ngwr-transfer.d.ts +2 -0
  235. package/types/ngwr-utils.d.ts +61 -2
  236. package/types/ngwr-version.d.ts +1 -1
@@ -66,6 +66,18 @@ export declare class WrQr {
66
66
  readonly iconUrl: import("@angular/core").InputSignal<string | null>;
67
67
  /** Center icon size in logical pixels. @default 42 */
68
68
  readonly iconSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
69
+ /**
70
+ * Colour of the square under the icon. Any CSS colour, resolved the way `color`
71
+ * is. `null` paints it in `bgColor`; `'transparent'` paints no square, so the icon
72
+ * sits straight on the modules.
73
+ *
74
+ * In dev mode the console warns when the square covers more of the code than
75
+ * `level` can recover (L 7%, M 15%, Q 25%, H 30%). With no square, the image
76
+ * itself is what is measured.
77
+ *
78
+ * @default null
79
+ */
80
+ readonly iconBackground: import("@angular/core").InputSignal<string | null>;
69
81
  /**
70
82
  * Accessible name. A QR code is content — it usually encodes a URL — and a
71
83
  * `<canvas>` carries no implicit role and no text alternative, so without a name it
@@ -119,6 +131,11 @@ export declare class WrQr {
119
131
  "required": false;
120
132
  "isSignal": true;
121
133
  };
134
+ "iconBackground": {
135
+ "alias": "iconBackground";
136
+ "required": false;
137
+ "isSignal": true;
138
+ };
122
139
  "ariaLabel": {
123
140
  "alias": "ariaLabel";
124
141
  "required": false;
@@ -307,6 +307,9 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
307
307
  focus(options?: FocusOptions): void;
308
308
  protected onPointerDown(event: PointerEvent, thumb: 'low' | 'high'): void;
309
309
  protected onTrackPointerDown(event: PointerEvent): void;
310
+ /** Primary button of the primary pointer: a right-click or a second finger starts nothing. */
311
+ private isPrimaryPress;
312
+ private startDrag;
310
313
  protected onKey(event: KeyboardEvent, thumb: 'low' | 'high'): void;
311
314
  /**
312
315
  * A bound field learns it may show its validation copy from `touch`, and
@@ -339,7 +342,6 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
339
342
  * near the right edge lands close to `low` in value space too.
340
343
  */
341
344
  private nearestThumb;
342
- private focusThumb;
343
345
  private setThumb;
344
346
  private snap;
345
347
  private nearestMark;
@@ -53,6 +53,11 @@ export declare class WrSpeedDial {
53
53
  * viewport; otherwise it has no effect. @default false
54
54
  */
55
55
  readonly safeArea: import("@angular/core").InputSignalWithTransform<boolean, any>;
56
+ /**
57
+ * Close the open dial on a pointer press outside it. Focus stays where the
58
+ * user clicked. @default false
59
+ */
60
+ readonly closeOnOutsideClick: import("@angular/core").InputSignalWithTransform<boolean, any>;
56
61
  /** Fires when the user picks one of the actions. */
57
62
  readonly pick: import("@angular/core").OutputEmitterRef<WrSpeedDialAction>;
58
63
  /** Id the trigger's `aria-controls` points at. */
@@ -112,6 +117,11 @@ export declare class WrSpeedDial {
112
117
  "required": false;
113
118
  "isSignal": true;
114
119
  };
120
+ "closeOnOutsideClick": {
121
+ "alias": "closeOnOutsideClick";
122
+ "required": false;
123
+ "isSignal": true;
124
+ };
115
125
  }, {
116
126
  "open": "openChange";
117
127
  "pick": "pick";
@@ -1,4 +1,5 @@
1
1
  import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ import { WrStepStatus } from "ngwr/stepper";
2
3
  /** Narrows which `<wr-stepper>` a harness query matches. */
3
4
  interface WrStepperHarnessFilters extends BaseHarnessFilters {
4
5
  /**
@@ -39,6 +40,8 @@ interface WrStepHarnessFilters extends BaseHarnessFilters {
39
40
  readonly reachable?: boolean;
40
41
  /** Match steps flagged `optional` in the header. */
41
42
  readonly optional?: boolean;
43
+ /** Match steps by the `status` their header flags; `null` matches the steps that flag none. */
44
+ readonly status?: WrStepStatus | null;
42
45
  }
43
46
  /**
44
47
  * Test harness for one step of a `<wr-stepper>` — the step as the HEADER STRIP
@@ -120,6 +123,13 @@ export declare class WrStepHarness extends ComponentHarness {
120
123
  * its gate. So a step after the active one can be completed too.
121
124
  */
122
125
  isCompleted(): Promise<boolean>;
126
+ /**
127
+ * The problem the step flags in its header, or `null` when it flags none.
128
+ *
129
+ * Read from the `--error` / `--warning` class, the same way {@link isCompleted}
130
+ * is. The word a screen reader hears for it is in {@link getAccessibleName}.
131
+ */
132
+ getStatus(): Promise<WrStepStatus | null>;
123
133
  /**
124
134
  * Whether the step is switched off by its own `disabled` input.
125
135
  *
@@ -1,5 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { InjectionToken, Signal } from "@angular/core";
3
+ /**
4
+ * @license
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
8
+ */
9
+ /**
10
+ * A problem a step reports in its header.
11
+ */
12
+ type WrStepStatus = 'error' | 'warning';
3
13
  /**
4
14
  * One step in a {@link WrStepper}. Project as a child:
5
15
  *
@@ -30,6 +40,14 @@ export declare class WrStep {
30
40
  readonly completed: import("@angular/core").InputSignal<boolean | null>;
31
41
  /** Disables the header — also blocks header clicks. */
32
42
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
43
+ /**
44
+ * A problem to flag in the header: the number or the check mark gives way to
45
+ * an error or a warning glyph, and the label takes the matching colour. It
46
+ * changes nothing about navigation.
47
+ *
48
+ * @default null
49
+ */
50
+ readonly status: import("@angular/core").InputSignal<WrStepStatus | null>;
33
51
  /** Stepper-assigned index. Set by the parent when contentChildren updates. */
34
52
  readonly _index: import("@angular/core").WritableSignal<number>;
35
53
  private readonly stepper;
@@ -61,6 +79,11 @@ export declare class WrStep {
61
79
  "required": false;
62
80
  "isSignal": true;
63
81
  };
82
+ "status": {
83
+ "alias": "status";
84
+ "required": false;
85
+ "isSignal": true;
86
+ };
64
87
  }, {}, never, ["*"], true, never>;
65
88
  }
66
89
  /** Surface a {@link WrStepper} provides for its child `<wr-step>`s. */
@@ -117,8 +140,21 @@ export declare class WrStepper implements WrStepperContext {
117
140
  * to `stepper.completed`, then `'completed'`.
118
141
  */
119
142
  readonly completedLabel: import("@angular/core").InputSignal<string | null>;
143
+ /**
144
+ * The word a step with `status="error"` carries after its label, visually
145
+ * hidden: the glyph that replaces the number is `aria-hidden`. Falls back to
146
+ * `stepper.error`, then `'error'`.
147
+ */
148
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
149
+ /**
150
+ * The word a step with `status="warning"` carries after its label, visually
151
+ * hidden. Falls back to `stepper.warning`, then `'warning'`.
152
+ */
153
+ readonly warningLabel: import("@angular/core").InputSignal<string | null>;
120
154
  protected readonly resolvedOptionalLabel: import("@angular/core").Signal<string>;
121
155
  protected readonly resolvedCompletedLabel: import("@angular/core").Signal<string>;
156
+ protected readonly resolvedErrorLabel: import("@angular/core").Signal<string>;
157
+ protected readonly resolvedWarningLabel: import("@angular/core").Signal<string>;
122
158
  protected readonly classes: import("@angular/core").Signal<string>;
123
159
  constructor();
124
160
  /** Is the step at `index` considered completed? */
@@ -161,8 +197,18 @@ export declare class WrStepper implements WrStepperContext {
161
197
  "required": false;
162
198
  "isSignal": true;
163
199
  };
200
+ "errorLabel": {
201
+ "alias": "errorLabel";
202
+ "required": false;
203
+ "isSignal": true;
204
+ };
205
+ "warningLabel": {
206
+ "alias": "warningLabel";
207
+ "required": false;
208
+ "isSignal": true;
209
+ };
164
210
  }, {
165
211
  "active": "activeChange";
166
212
  }, ["steps"], ["*"], true, never>;
167
213
  }
168
- export type { WrStepperContext };
214
+ export type { WrStepStatus, WrStepperContext };
@@ -60,6 +60,19 @@ export declare class WrSwitch implements FormCheckboxControl {
60
60
  /** Emitted on blur so a bound field can mark itself touched. */
61
61
  readonly touch: import("@angular/core").OutputEmitterRef<void>;
62
62
  private readonly native;
63
+ private readonly textEl;
64
+ private readonly destroyRef;
65
+ /**
66
+ * Whether the projected content names the switch. Assumed `true` until the
67
+ * first render has looked, so the server renders the own-label path.
68
+ */
69
+ private readonly hasText;
70
+ /**
71
+ * The input's `aria-labelledby`: the surrounding field's label, only for a
72
+ * switch with no text of its own and no `ariaLabel`. With text, that text is
73
+ * the name and the field's label is not joined to it.
74
+ */
75
+ protected readonly labelledBy: import("@angular/core").Signal<string | null>;
63
76
  protected readonly classes: import("@angular/core").Signal<string>;
64
77
  /**
65
78
  * Focus the switch — what Signal Forms calls to focus this control. The native
@@ -10,6 +10,12 @@ import * as i0 from "@angular/core";
10
10
  * yours: the toolbar sets nothing on it. Put running text in a `<span>` or a
11
11
  * `<p>`, which stay in inline flow.
12
12
  *
13
+ * The host is `role="toolbar"`. Name it with a plain `aria-label` attribute on
14
+ * the host when the page has more than one.
15
+ *
16
+ * With `arrowKeys` the toolbar follows the WAI-ARIA toolbar pattern: one tab stop
17
+ * across every enabled control of the three zones, moved with the arrow keys.
18
+ *
13
19
  * @example
14
20
  * ```html
15
21
  * <wr-toolbar>
@@ -29,6 +35,9 @@ import * as i0 from "@angular/core";
29
35
  * @see https://ngwr.dev/reference/components/toolbar
30
36
  */
31
37
  export declare class WrToolbar {
38
+ private readonly host;
39
+ private readonly dir;
40
+ private readonly isRtl;
32
41
  constructor();
33
42
  /**
34
43
  * Stack the zones vertically when the toolbar's own box is too narrow to fit
@@ -36,6 +45,19 @@ export declare class WrToolbar {
36
45
  * adapts inside a narrow column or split pane). @default false
37
46
  */
38
47
  readonly responsive: import("@angular/core").InputSignalWithTransform<boolean, any>;
48
+ /**
49
+ * Roving focus across the enabled controls of all zones, per the WAI-ARIA toolbar
50
+ * pattern: one tab stop, ArrowRight / ArrowLeft (mirrored under RTL) to step with
51
+ * wrapping, Home / End for the ends. Text fields, native radios and composite
52
+ * widgets (radiogroup, tablist, listbox, ...) are not part of that set: they keep
53
+ * their own tab stop and their own arrow keys, and the arrows skip over them. Tab
54
+ * still reaches every one of them. @default false
55
+ */
56
+ readonly arrowKeys: import("@angular/core").InputSignalWithTransform<boolean, any>;
57
+ /** Starts listening and returns the cleanup that puts every `tabindex` back. */
58
+ private attachRoving;
59
+ /** Does `el` need the arrow keys for itself: a text field, or inside a composite widget? */
60
+ private ownsArrows;
39
61
  static ɵfac: i0.ɵɵFactoryDeclaration<WrToolbar, never>;
40
62
  static ɵcmp: i0.ɵɵComponentDeclaration<WrToolbar, "wr-toolbar", never, {
41
63
  "responsive": {
@@ -43,5 +65,10 @@ export declare class WrToolbar {
43
65
  "required": false;
44
66
  "isSignal": true;
45
67
  };
68
+ "arrowKeys": {
69
+ "alias": "arrowKeys";
70
+ "required": false;
71
+ "isSignal": true;
72
+ };
46
73
  }, {}, never, ["[wrToolbarStart]", "[wrToolbarCenter]", "[wrToolbarEnd]"], true, never>;
47
74
  }
@@ -154,6 +154,8 @@ export declare class WrTransfer implements FormValueControl<readonly unknown[]>
154
154
  * differently today and every locale can now reorder it without a code change.
155
155
  */
156
156
  protected readonly selectAllAria: (params?: import("ngwr/i18n").WrI18nParams) => string;
157
+ /** The search input's accessible name, composed in the catalog for the same reason as `selectAllAria`. */
158
+ protected readonly searchAria: (params?: import("ngwr/i18n").WrI18nParams) => string;
157
159
  protected readonly resolvedToTarget: import("@angular/core").Signal<string>;
158
160
  protected readonly resolvedToSource: import("@angular/core").Signal<string>;
159
161
  /** `{{checked}} / {{total}}` under each heading. @internal */
@@ -505,11 +505,13 @@ export declare function wrGetRootFontSize(fallback?: number): number;
505
505
  * Elements with no box are dropped (see `isRendered`), except the one that
506
506
  * currently has focus: a trap must still be able to find where it is standing,
507
507
  * and an element can be focused and then hidden by the same interaction.
508
+ * A disabled control is dropped too, a button in a disabled `<fieldset>` among them.
508
509
  */
509
510
  export declare function wrGetFocusableElements(root: HTMLElement): readonly HTMLElement[];
510
511
  /**
511
512
  * Trap Tab navigation inside `root` for a keyboard event — call from a
512
- * `keydown` handler. Cycles focus from first ↔ last focusable element.
513
+ * `keydown` handler. Cycles focus from first ↔ last focusable element, and from the container itself
514
+ * into either end.
513
515
  * Returns `true` when focus was redirected (event was handled).
514
516
  */
515
517
  export declare function wrTrapFocus(root: HTMLElement, event: KeyboardEvent): boolean;
@@ -1158,6 +1160,63 @@ interface WrInitialsOptions {
1158
1160
  * @see https://ngwr.dev/reference/utils/wr-initials
1159
1161
  */
1160
1162
  export declare function wrInitials(name: string | null | undefined, locale?: string, options?: WrInitialsOptions): string;
1163
+ /**
1164
+ * @license
1165
+ *
1166
+ * Use of this source code is governed by an MIT-style license that can be
1167
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
1168
+ */
1169
+ interface WrSlugOptions {
1170
+ /** What joins the words. `''` runs them together. Default `-`. */
1171
+ readonly separator?: string;
1172
+ /**
1173
+ * The longest slug, in UTF-16 code units, the unit of `String.length`. Words
1174
+ * that do not fit are dropped; a first word longer than the limit is cut
1175
+ * between two graphemes. No limit by default.
1176
+ */
1177
+ readonly maxLength?: number;
1178
+ }
1179
+ /**
1180
+ * A text as a slug, for an anchor, an element id, a URL segment or a file name:
1181
+ * lower-cased words joined by one `-`, or by the separator given.
1182
+ *
1183
+ * The text is NFKC-normalised, so a full-width or ligature form folds into the
1184
+ * plain one (`ABC` gives `abc`), then lower-cased with `toLowerCase()`, the
1185
+ * locale-independent mapping, so the output is the same on the server and the
1186
+ * client. Every run of characters that are not a letter, a combining mark or a
1187
+ * digit becomes one separator, and none stays at either end.
1188
+ *
1189
+ * Nothing is transliterated and no diacritic is stripped: a letter of any
1190
+ * script stays the letter it is, with its marks. `Привет, мир!` gives
1191
+ * `привет-мир` and `Café au lait` gives `café-au-lait`. Stripping marks would
1192
+ * turn Russian `й` into `и` and break a script that writes its vowels as marks,
1193
+ * such as Devanagari. A URL percent-encodes such a slug, and every browser
1194
+ * shows it decoded.
1195
+ *
1196
+ * Slugging is NOT injective: `Data & charts` and `Data / charts` both give
1197
+ * `data-charts`. Where two slugs must differ, the caller breaks the tie.
1198
+ *
1199
+ * `null`, `undefined`, an empty string and a text with no letter or digit give
1200
+ * `''`.
1201
+ *
1202
+ * `separator` joins the words with another string, such as `_` for a file
1203
+ * name. `maxLength` caps the slug at a word boundary, for a URL segment or a
1204
+ * column with a limit.
1205
+ *
1206
+ * @example
1207
+ * ```ts
1208
+ * wrSlug('What it costs to adopt'); // 'what-it-costs-to-adopt'
1209
+ * wrSlug(' Data & charts! '); // 'data-charts'
1210
+ * wrSlug('Привет, мир!'); // 'привет-мир'
1211
+ * wrSlug('Café au lait'); // 'café-au-lait'
1212
+ * wrSlug('...'); // ''
1213
+ * wrSlug('Data & charts', { separator: '_' }); // 'data_charts'
1214
+ * wrSlug('What it costs to adopt', { maxLength: 14 }); // 'what-it-costs'
1215
+ * ```
1216
+ *
1217
+ * @see https://ngwr.dev/reference/utils/wr-slug
1218
+ */
1219
+ export declare function wrSlug(text: string | null | undefined, options?: WrSlugOptions): string;
1161
1220
  /**
1162
1221
  * The interface language as a signal, for what has to follow a language switch
1163
1222
  * without importing `ngwr/i18n`: `provideWrI18n()` provides it as
@@ -1313,4 +1372,4 @@ export declare function wrKeyedAction<K, A = void, R = void>(fn: (key: K, arg: A
1313
1372
  * @returns A read-only signal of the value.
1314
1373
  */
1315
1374
  export declare function wrResourceValue<T>(resource: Resource<T | undefined>, fallback: NoInfer<T>): Signal<T>;
1316
- export type { WrAction, WrActionStatus, WrClassInput, WrColorScheme, WrDebouncedFn, WrDecimalLike, WrFeature, WrFocusFirstInvalidOptions, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WrKey, WrKeyedAction, WrMaybe, WrResolveCssSizeOptions, WrResolvedCssSize, WrSafeAny, WrThrottledFn, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, WrWatchColorSchemeOptions };
1375
+ export type { WrAction, WrActionStatus, WrClassInput, WrColorScheme, WrDebouncedFn, WrDecimalLike, WrFeature, WrFocusFirstInvalidOptions, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WrKey, WrKeyedAction, WrMaybe, WrResolveCssSizeOptions, WrResolvedCssSize, WrSafeAny, WrSlugOptions, WrThrottledFn, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, WrWatchColorSchemeOptions };
@@ -15,7 +15,7 @@ import { InjectionToken } from "@angular/core";
15
15
  * Distinct from `Version` exported by `@angular/core`, which reports the
16
16
  * loaded Angular runtime version (e.g. `'22.0.0'`), not ngwr's.
17
17
  */
18
- export declare const NGWR_VERSION = "16.7.1";
18
+ export declare const NGWR_VERSION = "16.9.0";
19
19
  /**
20
20
  * Injection token holding the ngwr library version string.
21
21
  *