ngwr 16.8.0 → 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 (165) hide show
  1. package/descriptions/styles/_index.scss +91 -0
  2. package/fesm2022/ngwr-anchor.mjs +48 -10
  3. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  4. package/fesm2022/ngwr-carousel.mjs +3 -2
  5. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  6. package/fesm2022/ngwr-compare.mjs +4 -0
  7. package/fesm2022/ngwr-compare.mjs.map +1 -1
  8. package/fesm2022/ngwr-cookie.mjs +6 -3
  9. package/fesm2022/ngwr-cookie.mjs.map +1 -1
  10. package/fesm2022/ngwr-date-stamp-testing.mjs +3 -0
  11. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
  12. package/fesm2022/ngwr-date-stamp.mjs +81 -4
  13. package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
  14. package/fesm2022/ngwr-date.mjs +16 -2
  15. package/fesm2022/ngwr-date.mjs.map +1 -1
  16. package/fesm2022/ngwr-density.mjs +4 -3
  17. package/fesm2022/ngwr-density.mjs.map +1 -1
  18. package/fesm2022/ngwr-descriptions.mjs +77 -20
  19. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  20. package/fesm2022/ngwr-directives.mjs +12 -0
  21. package/fesm2022/ngwr-directives.mjs.map +1 -1
  22. package/fesm2022/ngwr-editor.mjs +1 -0
  23. package/fesm2022/ngwr-editor.mjs.map +1 -1
  24. package/fesm2022/ngwr-file-upload.mjs +2 -3
  25. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  26. package/fesm2022/ngwr-form.mjs.map +1 -1
  27. package/fesm2022/ngwr-hotkey.mjs +10 -5
  28. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  29. package/fesm2022/ngwr-i18n-ar.mjs +9 -3
  30. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  31. package/fesm2022/ngwr-i18n-cs.mjs +9 -3
  32. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  33. package/fesm2022/ngwr-i18n-de.mjs +9 -3
  34. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  35. package/fesm2022/ngwr-i18n-en.mjs +9 -3
  36. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  37. package/fesm2022/ngwr-i18n-es.mjs +9 -3
  38. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  39. package/fesm2022/ngwr-i18n-fr.mjs +9 -3
  40. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  41. package/fesm2022/ngwr-i18n-he.mjs +9 -3
  42. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  43. package/fesm2022/ngwr-i18n-hi.mjs +9 -3
  44. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  45. package/fesm2022/ngwr-i18n-id.mjs +9 -3
  46. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  47. package/fesm2022/ngwr-i18n-it.mjs +9 -3
  48. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  49. package/fesm2022/ngwr-i18n-ja.mjs +9 -3
  50. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  51. package/fesm2022/ngwr-i18n-kk.mjs +9 -3
  52. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
  53. package/fesm2022/ngwr-i18n-ko.mjs +9 -3
  54. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  55. package/fesm2022/ngwr-i18n-nl.mjs +9 -3
  56. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  57. package/fesm2022/ngwr-i18n-pl.mjs +9 -3
  58. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  59. package/fesm2022/ngwr-i18n-pt.mjs +9 -3
  60. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  61. package/fesm2022/ngwr-i18n-ru.mjs +9 -3
  62. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  63. package/fesm2022/ngwr-i18n-sv.mjs +9 -3
  64. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  65. package/fesm2022/ngwr-i18n-tr.mjs +9 -3
  66. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  67. package/fesm2022/ngwr-i18n-uk.mjs +9 -3
  68. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  69. package/fesm2022/ngwr-i18n-vi.mjs +9 -3
  70. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  71. package/fesm2022/ngwr-i18n-zh-tw.mjs +9 -3
  72. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  73. package/fesm2022/ngwr-i18n-zh.mjs +9 -3
  74. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  75. package/fesm2022/ngwr-i18n.mjs +7 -6
  76. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  77. package/fesm2022/ngwr-image-cropper-testing.mjs +33 -0
  78. package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
  79. package/fesm2022/ngwr-image-cropper.mjs +536 -30
  80. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  81. package/fesm2022/ngwr-knob.mjs +5 -0
  82. package/fesm2022/ngwr-knob.mjs.map +1 -1
  83. package/fesm2022/ngwr-mention.mjs +2 -0
  84. package/fesm2022/ngwr-mention.mjs.map +1 -1
  85. package/fesm2022/ngwr-meta.mjs +43 -8
  86. package/fesm2022/ngwr-meta.mjs.map +1 -1
  87. package/fesm2022/ngwr-pagination.mjs +1 -1
  88. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  89. package/fesm2022/ngwr-pipes.mjs +160 -8
  90. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  91. package/fesm2022/ngwr-qr.mjs +65 -7
  92. package/fesm2022/ngwr-qr.mjs.map +1 -1
  93. package/fesm2022/ngwr-schema-form.mjs +2 -2
  94. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  95. package/fesm2022/ngwr-scroll.mjs +1 -2
  96. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  97. package/fesm2022/ngwr-speed-dial.mjs +30 -1
  98. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  99. package/fesm2022/ngwr-statistic.mjs +1 -1
  100. package/fesm2022/ngwr-stepper-testing.mjs +7 -1
  101. package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-stepper.mjs +55 -4
  103. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  104. package/fesm2022/ngwr-timeline.mjs +4 -0
  105. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  106. package/fesm2022/ngwr-toolbar.mjs +171 -16
  107. package/fesm2022/ngwr-toolbar.mjs.map +1 -1
  108. package/fesm2022/ngwr-transfer.mjs +3 -2
  109. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  110. package/fesm2022/ngwr-tree.mjs +1 -1
  111. package/fesm2022/ngwr-utils.mjs +46 -8
  112. package/fesm2022/ngwr-utils.mjs.map +1 -1
  113. package/fesm2022/ngwr-version.mjs +1 -1
  114. package/fesm2022/ngwr-version.mjs.map +1 -1
  115. package/fesm2022/ngwr-virtual-scroll.mjs +2 -2
  116. package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
  117. package/i18n/ar.json +9 -3
  118. package/i18n/cs.json +9 -3
  119. package/i18n/de.json +9 -3
  120. package/i18n/en.json +9 -3
  121. package/i18n/es.json +9 -3
  122. package/i18n/fr.json +9 -3
  123. package/i18n/he.json +9 -3
  124. package/i18n/hi.json +9 -3
  125. package/i18n/id.json +9 -3
  126. package/i18n/it.json +9 -3
  127. package/i18n/ja.json +9 -3
  128. package/i18n/kk.json +9 -3
  129. package/i18n/ko.json +9 -3
  130. package/i18n/nl.json +9 -3
  131. package/i18n/pl.json +9 -3
  132. package/i18n/pt.json +9 -3
  133. package/i18n/ru.json +9 -3
  134. package/i18n/sv.json +9 -3
  135. package/i18n/tr.json +9 -3
  136. package/i18n/uk.json +9 -3
  137. package/i18n/vi.json +9 -3
  138. package/i18n/zh-TW.json +9 -3
  139. package/i18n/zh.json +9 -3
  140. package/image-cropper/styles/_index.scss +30 -1
  141. package/llms-full.txt +5 -5
  142. package/package.json +1 -1
  143. package/schematics/use/symbol-map.json +1 -0
  144. package/skills/ngwr/SKILL.md +2 -2
  145. package/stepper/styles/_index.scss +33 -0
  146. package/types/ngwr-anchor.d.ts +14 -1
  147. package/types/ngwr-date-stamp-testing.d.ts +2 -0
  148. package/types/ngwr-date-stamp.d.ts +41 -2
  149. package/types/ngwr-date.d.ts +3 -1
  150. package/types/ngwr-descriptions.d.ts +33 -5
  151. package/types/ngwr-directives.d.ts +1 -0
  152. package/types/ngwr-form.d.ts +4 -0
  153. package/types/ngwr-hotkey.d.ts +2 -0
  154. package/types/ngwr-image-cropper-testing.d.ts +33 -1
  155. package/types/ngwr-image-cropper.d.ts +214 -6
  156. package/types/ngwr-meta.d.ts +13 -1
  157. package/types/ngwr-pipes.d.ts +125 -1
  158. package/types/ngwr-qr.d.ts +17 -0
  159. package/types/ngwr-speed-dial.d.ts +10 -0
  160. package/types/ngwr-stepper-testing.d.ts +10 -0
  161. package/types/ngwr-stepper.d.ts +47 -1
  162. package/types/ngwr-toolbar.d.ts +27 -0
  163. package/types/ngwr-transfer.d.ts +2 -0
  164. package/types/ngwr-utils.d.ts +61 -2
  165. package/types/ngwr-version.d.ts +1 -1
@@ -136,6 +136,25 @@ interface WrPluralOptions {
136
136
  }
137
137
  /** Built-in style shortcuts — pick a sensible `Intl.NumberFormat` preset by name. */
138
138
  type WrNumberStyle = 'decimal' | 'percent' | 'currency';
139
+ /**
140
+ * What `wrList` joins with: "and" (`conjunction`), "or" (`disjunction`), or
141
+ * neither, for a compound unit such as `5 kg, 200 g` (`unit`).
142
+ */
143
+ type WrListType = 'conjunction' | 'disjunction' | 'unit';
144
+ /**
145
+ * Options of `wrRelativeTime` and `wrFormatRelativeTime`. The keys of
146
+ * `WrParseDateOptions` say how the value is read, as the last argument of
147
+ * `wrFormatDate` does: `epochUnit` for a number, `zonelessIn` and `timeZone`
148
+ * for a date-time string with no offset.
149
+ */
150
+ interface WrRelativeTimeOptions extends WrParseDateOptions {
151
+ /** The instant the value is measured from: a `Date` or epoch milliseconds. @default the current time */
152
+ readonly now?: Date | number;
153
+ /** `'auto'` lets the language say "yesterday", "tomorrow" and "now"; `'always'` keeps the number. @default 'auto' */
154
+ readonly numeric?: Intl.RelativeTimeFormatNumeric;
155
+ /** How much of the unit is written: "5 minutes ago", "5 min. ago", "5m ago". @default 'long' */
156
+ readonly style?: Intl.RelativeTimeFormatStyle;
157
+ }
139
158
  /**
140
159
  * How `wrDuration` writes a span: digits and colons (`1:30:00`), units
141
160
  * (`1 hr 30 min`), or a timer's fixed `HH:mm:ss` (`01:30:00`).
@@ -225,6 +244,47 @@ export declare class WrInitials implements PipeTransform {
225
244
  static ɵfac: i0.ɵɵFactoryDeclaration<WrInitials, never>;
226
245
  static ɵpipe: i0.ɵɵPipeDeclaration<WrInitials, "wrInitials", true>;
227
246
  }
247
+ /**
248
+ * A list joined through `Intl.ListFormat`, in the given locale: the same output
249
+ * as the `wrList` pipe, for a string built in TypeScript. Takes a type shortcut
250
+ * or a full `Intl.ListFormatOptions` object. Blank items are left out, and a
251
+ * lone string is a list of one. `null`, `undefined` and a list with nothing in
252
+ * it give an empty string.
253
+ *
254
+ * The items are strings only: a number or a date has a locale form of its own,
255
+ * so format it first (`wrFormatNumber`, `wrFormatDate`).
256
+ *
257
+ * @example
258
+ * ```ts
259
+ * wrFormatList(['Ada', 'Alan', 'Grace'], 'en-GB'); // "Ada, Alan and Grace"
260
+ * wrFormatList(['Ada', 'Alan', 'Grace'], 'en-GB', 'disjunction'); // "Ada, Alan or Grace"
261
+ * wrFormatList(['Ада', 'Алан', 'Грейс'], 'ru'); // "Ада, Алан и Грейс"
262
+ * wrFormatList(['5 kg', '200 g'], 'en-GB', { type: 'unit', style: 'narrow' }); // "5 kg 200 g"
263
+ * ```
264
+ */
265
+ export declare function wrFormatList(value: Iterable<string> | null | undefined, locale: string, typeOrOptions?: WrListType | Intl.ListFormatOptions): string;
266
+ /**
267
+ * Locale-aware list joining via `Intl.ListFormat`: the separator, the last
268
+ * "and" / "or" and the comma before it are the language's own, which
269
+ * `join(', ')` gets wrong in every one of them. Uses Angular's `LOCALE_ID` as
270
+ * the default locale.
271
+ *
272
+ * Accepts either a type shortcut or a full `Intl.ListFormatOptions` object.
273
+ * {@link wrFormatList} is the same output as a function.
274
+ *
275
+ * @example
276
+ * ```html
277
+ * {{ names | wrList }} <!-- "Ada, Alan, and Grace" -->
278
+ * {{ names | wrList: 'disjunction' }} <!-- "Ada, Alan, or Grace" -->
279
+ * {{ parts | wrList: { type: 'unit', style: 'narrow' } }}
280
+ * ```
281
+ */
282
+ export declare class WrList implements PipeTransform {
283
+ private readonly locale;
284
+ transform(value: Iterable<string> | null | undefined, typeOrOptions?: WrListType | Intl.ListFormatOptions): string;
285
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrList, never>;
286
+ static ɵpipe: i0.ɵɵPipeDeclaration<WrList, "wrList", true>;
287
+ }
228
288
  /**
229
289
  * Wrap every occurrence of `query` in `<mark>` tags. Useful for highlighting
230
290
  * search-term matches in autocomplete results, lists, and table cells.
@@ -348,6 +408,70 @@ export declare class WrRange implements PipeTransform {
348
408
  static ɵfac: i0.ɵɵFactoryDeclaration<WrRange, never>;
349
409
  static ɵpipe: i0.ɵɵPipeDeclaration<WrRange, "wrRange", true>;
350
410
  }
411
+ /**
412
+ * How far a date is from now, in words, through `Intl.RelativeTimeFormat` in
413
+ * the given locale: the same output as the `wrRelativeTime` pipe, for a string
414
+ * built in TypeScript. The value is read by `wrParseDate`, as `wrDate` reads
415
+ * it: a number is epoch milliseconds unless `epochUnit` says otherwise, and
416
+ * `zonelessIn` reads a date-time string with no offset. `null`, `undefined`, a
417
+ * blank string and a value that is not a date give an empty string.
418
+ *
419
+ * The unit follows the distance: seconds under a minute, minutes under an
420
+ * hour, hours under a day, days under a week, weeks under a month, months
421
+ * under a year, then years. A year is 365 days and a month a twelfth of it.
422
+ * The count is cut, never rounded: 119 seconds is "1 minute ago", and it turns
423
+ * to "2 minutes ago" at the 120th. So a unit never shows its own limit
424
+ * ("60 minutes ago"), and what is not over yet is not announced.
425
+ *
426
+ * The distance is elapsed time, not a calendar: "yesterday" is 24 to 48 hours
427
+ * ago. A date-only string (`'2026-11-12'`) is a day and has no hour to count
428
+ * from, so it is compared with today as a day and reads "today", "yesterday"
429
+ * or "in 3 days". Today is the day of `now` in the browser's zone.
430
+ *
431
+ * `numeric: 'auto'`, the default, lets the language say "now", "yesterday" and
432
+ * "tomorrow"; `'always'` keeps the number ("1 day ago"). Under a second it
433
+ * reads "now", or "in 0 seconds" and "0 seconds ago" by the side it is on.
434
+ *
435
+ * @example
436
+ * ```ts
437
+ * const now = new Date('2026-11-12T12:00:00Z');
438
+ *
439
+ * wrFormatRelativeTime('2026-11-12T11:55:00Z', 'en-US', { now }); // "5 minutes ago"
440
+ * wrFormatRelativeTime('2026-11-13T12:00:00Z', 'en-US', { now }); // "tomorrow"
441
+ * wrFormatRelativeTime('2026-11-13T12:00:00Z', 'en-US', { now, numeric: 'always' }); // "in 1 day"
442
+ * wrFormatRelativeTime('2026-11-12T09:00:00Z', 'ru', { now }); // "3 часа назад"
443
+ * wrFormatRelativeTime('2026-11-12T09:00:00Z', 'en-US', { now, style: 'narrow' }); // "3h ago"
444
+ * wrFormatRelativeTime(row.createdAt, 'en-US'); // from the current time
445
+ * ```
446
+ */
447
+ export declare function wrFormatRelativeTime(value: Date | string | number | null | undefined, locale: string, options?: WrRelativeTimeOptions): string;
448
+ /**
449
+ * How far a date is from now, in words ("5 minutes ago", "tomorrow"), via
450
+ * `Intl.RelativeTimeFormat`. Uses Angular's `LOCALE_ID` as the default locale,
451
+ * and reads the value as `wrDate` does, under the `epochUnit` and `zonelessIn`
452
+ * of `withDates()`. {@link wrFormatRelativeTime} is the same output as a
453
+ * function, and says how the unit is chosen.
454
+ *
455
+ * The pipe does not update by itself. It is pure: Angular runs it again only
456
+ * when the value or the options change, so "5 minutes ago" still reads so an
457
+ * hour later. For text that stays current use `<wr-date-stamp relative>`,
458
+ * which re-renders on a timer, or pass a `now` that the app moves.
459
+ *
460
+ * @example
461
+ * ```html
462
+ * {{ comment.createdAt | wrRelativeTime }} <!-- "5 minutes ago" -->
463
+ * {{ task.dueAt | wrRelativeTime: { numeric: 'always' } }} <!-- "in 1 day" -->
464
+ * {{ comment.createdAt | wrRelativeTime: { style: 'narrow' } }} <!-- "5m ago" -->
465
+ * {{ comment.createdAt | wrRelativeTime: { now: clock() } }} <!-- follows a signal -->
466
+ * ```
467
+ */
468
+ export declare class WrRelativeTime implements PipeTransform {
469
+ private readonly locale;
470
+ private readonly adapter;
471
+ transform(value: Date | string | number | null | undefined, options?: WrRelativeTimeOptions): string;
472
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrRelativeTime, never>;
473
+ static ɵpipe: i0.ɵɵPipeDeclaration<WrRelativeTime, "wrRelativeTime", true>;
474
+ }
351
475
  /**
352
476
  * Clamp a string to `length` characters, appending `ellipsis` when truncated.
353
477
  * A character is what a reader sees as one — a grapheme cluster — so an emoji,
@@ -365,4 +489,4 @@ export declare class WrTruncate implements PipeTransform {
365
489
  static ɵfac: i0.ɵɵFactoryDeclaration<WrTruncate, never>;
366
490
  static ɵpipe: i0.ɵɵPipeDeclaration<WrTruncate, "wrTruncate", true>;
367
491
  }
368
- export type { WrDurationStyle, WrDurationUnit, WrNumberStyle, WrPluralForms, WrPluralOptions };
492
+ export type { WrDurationStyle, WrDurationUnit, WrListType, WrNumberStyle, WrPluralForms, WrPluralOptions, WrRelativeTimeOptions };
@@ -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;
@@ -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 };
@@ -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.8.0";
18
+ export declare const NGWR_VERSION = "16.9.0";
19
19
  /**
20
20
  * Injection token holding the ngwr library version string.
21
21
  *