ngwr 16.0.0 → 16.2.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 (295) hide show
  1. package/badge/styles/_tag.scss +8 -4
  2. package/button/styles/_index.scss +13 -7
  3. package/cascader/styles/_rules.scss +4 -2
  4. package/checkbox/styles/_index.scss +4 -2
  5. package/date-picker/styles/_index.scss +95 -3
  6. package/date-stamp/styles/_index.scss +38 -0
  7. package/dialog/styles/_index.scss +38 -0
  8. package/dropdown/styles/_index.scss +37 -1
  9. package/fesm2022/internal-CVLvP9b_.mjs +33 -0
  10. package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
  11. package/fesm2022/ngwr-alert.mjs +11 -7
  12. package/fesm2022/ngwr-alert.mjs.map +1 -1
  13. package/fesm2022/ngwr-avatar.mjs +11 -7
  14. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  15. package/fesm2022/ngwr-back-top.mjs +10 -6
  16. package/fesm2022/ngwr-back-top.mjs.map +1 -1
  17. package/fesm2022/ngwr-badge.mjs +18 -6
  18. package/fesm2022/ngwr-badge.mjs.map +1 -1
  19. package/fesm2022/ngwr-burger.mjs +9 -6
  20. package/fesm2022/ngwr-burger.mjs.map +1 -1
  21. package/fesm2022/ngwr-button.mjs +8 -4
  22. package/fesm2022/ngwr-button.mjs.map +1 -1
  23. package/fesm2022/ngwr-calendar.mjs +19 -8
  24. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  25. package/fesm2022/ngwr-card.mjs +9 -5
  26. package/fesm2022/ngwr-card.mjs.map +1 -1
  27. package/fesm2022/ngwr-cascader.mjs +11 -5
  28. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  29. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
  30. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  31. package/fesm2022/ngwr-checkbox.mjs +10 -6
  32. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  33. package/fesm2022/ngwr-clipboard.mjs +2 -1
  34. package/fesm2022/ngwr-clipboard.mjs.map +1 -1
  35. package/fesm2022/ngwr-collapse.mjs +9 -5
  36. package/fesm2022/ngwr-collapse.mjs.map +1 -1
  37. package/fesm2022/ngwr-color-picker.mjs +4 -2
  38. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  39. package/fesm2022/ngwr-comment.mjs +13 -7
  40. package/fesm2022/ngwr-comment.mjs.map +1 -1
  41. package/fesm2022/ngwr-compare.mjs +9 -3
  42. package/fesm2022/ngwr-compare.mjs.map +1 -1
  43. package/fesm2022/ngwr-context-menu.mjs +4 -2
  44. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  45. package/fesm2022/ngwr-copy-value.mjs +11 -6
  46. package/fesm2022/ngwr-copy-value.mjs.map +1 -1
  47. package/fesm2022/ngwr-date-picker-testing.mjs +18 -0
  48. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  49. package/fesm2022/ngwr-date-picker.mjs +238 -38
  50. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  51. package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
  52. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
  53. package/fesm2022/ngwr-date-stamp.mjs +213 -0
  54. package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
  55. package/fesm2022/ngwr-date.mjs +364 -54
  56. package/fesm2022/ngwr-date.mjs.map +1 -1
  57. package/fesm2022/ngwr-descriptions.mjs +9 -5
  58. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  59. package/fesm2022/ngwr-dialog-testing.mjs +23 -2
  60. package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
  61. package/fesm2022/ngwr-dialog.mjs +45 -16
  62. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  63. package/fesm2022/ngwr-directives.mjs +102 -11
  64. package/fesm2022/ngwr-directives.mjs.map +1 -1
  65. package/fesm2022/ngwr-divider.mjs +4 -2
  66. package/fesm2022/ngwr-divider.mjs.map +1 -1
  67. package/fesm2022/ngwr-drawer.mjs +29 -3
  68. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  69. package/fesm2022/ngwr-dropdown-testing.mjs +38 -3
  70. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  71. package/fesm2022/ngwr-dropdown.mjs +362 -26
  72. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  73. package/fesm2022/ngwr-editor.mjs +5 -2
  74. package/fesm2022/ngwr-editor.mjs.map +1 -1
  75. package/fesm2022/ngwr-event-calendar.mjs +4 -2
  76. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  77. package/fesm2022/ngwr-file-upload.mjs +9 -3
  78. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  79. package/fesm2022/ngwr-form.mjs +18 -6
  80. package/fesm2022/ngwr-form.mjs.map +1 -1
  81. package/fesm2022/ngwr-i18n-ar.mjs +9 -2
  82. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  83. package/fesm2022/ngwr-i18n-cs.mjs +9 -2
  84. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  85. package/fesm2022/ngwr-i18n-de.mjs +9 -2
  86. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  87. package/fesm2022/ngwr-i18n-en.mjs +9 -2
  88. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  89. package/fesm2022/ngwr-i18n-es.mjs +9 -2
  90. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  91. package/fesm2022/ngwr-i18n-fr.mjs +9 -2
  92. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  93. package/fesm2022/ngwr-i18n-he.mjs +9 -2
  94. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  95. package/fesm2022/ngwr-i18n-hi.mjs +9 -2
  96. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  97. package/fesm2022/ngwr-i18n-id.mjs +9 -2
  98. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  99. package/fesm2022/ngwr-i18n-it.mjs +9 -2
  100. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  101. package/fesm2022/ngwr-i18n-ja.mjs +9 -2
  102. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  103. package/fesm2022/ngwr-i18n-ko.mjs +9 -2
  104. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  105. package/fesm2022/ngwr-i18n-nl.mjs +9 -2
  106. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  107. package/fesm2022/ngwr-i18n-pl.mjs +9 -2
  108. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  109. package/fesm2022/ngwr-i18n-pt.mjs +9 -2
  110. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  111. package/fesm2022/ngwr-i18n-ru.mjs +9 -2
  112. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  113. package/fesm2022/ngwr-i18n-sv.mjs +9 -2
  114. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  115. package/fesm2022/ngwr-i18n-tr.mjs +9 -2
  116. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  117. package/fesm2022/ngwr-i18n-uk.mjs +9 -2
  118. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  119. package/fesm2022/ngwr-i18n-vi.mjs +9 -2
  120. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  121. package/fesm2022/ngwr-i18n-zh-tw.mjs +9 -2
  122. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  123. package/fesm2022/ngwr-i18n-zh.mjs +9 -2
  124. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  125. package/fesm2022/ngwr-i18n.mjs +34 -8
  126. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  127. package/fesm2022/ngwr-input-number.mjs +9 -3
  128. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  129. package/fesm2022/ngwr-input-otp.mjs +4 -2
  130. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  131. package/fesm2022/ngwr-input.mjs +20 -10
  132. package/fesm2022/ngwr-input.mjs.map +1 -1
  133. package/fesm2022/ngwr-keyboard.mjs +9 -3
  134. package/fesm2022/ngwr-keyboard.mjs.map +1 -1
  135. package/fesm2022/ngwr-knob.mjs +9 -3
  136. package/fesm2022/ngwr-knob.mjs.map +1 -1
  137. package/fesm2022/ngwr-layout.mjs +13 -5
  138. package/fesm2022/ngwr-layout.mjs.map +1 -1
  139. package/fesm2022/ngwr-lightbox-testing.mjs +26 -0
  140. package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
  141. package/fesm2022/ngwr-lightbox.mjs +255 -15
  142. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  143. package/fesm2022/ngwr-list.mjs +13 -5
  144. package/fesm2022/ngwr-list.mjs.map +1 -1
  145. package/fesm2022/ngwr-load-state.mjs +9 -5
  146. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  147. package/fesm2022/ngwr-overlay.mjs +84 -1
  148. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  149. package/fesm2022/ngwr-pagination.mjs +3 -2
  150. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  151. package/fesm2022/ngwr-pipes.mjs +47 -9
  152. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  153. package/fesm2022/ngwr-popover.mjs +93 -4
  154. package/fesm2022/ngwr-popover.mjs.map +1 -1
  155. package/fesm2022/ngwr-progress.mjs +4 -2
  156. package/fesm2022/ngwr-progress.mjs.map +1 -1
  157. package/fesm2022/ngwr-radio.mjs +9 -5
  158. package/fesm2022/ngwr-radio.mjs.map +1 -1
  159. package/fesm2022/ngwr-rating.mjs +9 -3
  160. package/fesm2022/ngwr-rating.mjs.map +1 -1
  161. package/fesm2022/ngwr-resizable.mjs +503 -0
  162. package/fesm2022/ngwr-resizable.mjs.map +1 -0
  163. package/fesm2022/ngwr-result.mjs +9 -5
  164. package/fesm2022/ngwr-result.mjs.map +1 -1
  165. package/fesm2022/ngwr-schema-form.mjs +3 -0
  166. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  167. package/fesm2022/ngwr-segmented.mjs +4 -2
  168. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  169. package/fesm2022/ngwr-select.mjs +13 -5
  170. package/fesm2022/ngwr-select.mjs.map +1 -1
  171. package/fesm2022/ngwr-skeleton.mjs +4 -2
  172. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  173. package/fesm2022/ngwr-slider-testing.mjs +17 -0
  174. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  175. package/fesm2022/ngwr-slider.mjs +91 -13
  176. package/fesm2022/ngwr-slider.mjs.map +1 -1
  177. package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
  178. package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
  179. package/fesm2022/ngwr-sortable-list.mjs +257 -53
  180. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  181. package/fesm2022/ngwr-speed-dial.mjs +4 -2
  182. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  183. package/fesm2022/ngwr-spinner.mjs +4 -2
  184. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  185. package/fesm2022/ngwr-splitter.mjs +17 -21
  186. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  187. package/fesm2022/ngwr-stepper.mjs +9 -3
  188. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  189. package/fesm2022/ngwr-switch.mjs +9 -5
  190. package/fesm2022/ngwr-switch.mjs.map +1 -1
  191. package/fesm2022/ngwr-table-testing.mjs +5 -1
  192. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  193. package/fesm2022/ngwr-table.mjs +167 -10
  194. package/fesm2022/ngwr-table.mjs.map +1 -1
  195. package/fesm2022/ngwr-textarea.mjs +9 -3
  196. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  197. package/fesm2022/ngwr-timeline.mjs +18 -8
  198. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  199. package/fesm2022/ngwr-toast-testing.mjs +6 -1
  200. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  201. package/fesm2022/ngwr-toast.mjs +529 -104
  202. package/fesm2022/ngwr-toast.mjs.map +1 -1
  203. package/fesm2022/ngwr-transfer.mjs +4 -2
  204. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  205. package/fesm2022/ngwr-tree.mjs +4 -2
  206. package/fesm2022/ngwr-tree.mjs.map +1 -1
  207. package/fesm2022/ngwr-typography.mjs +9 -3
  208. package/fesm2022/ngwr-typography.mjs.map +1 -1
  209. package/fesm2022/ngwr-utils-router.mjs +18 -2
  210. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  211. package/fesm2022/ngwr-utils.mjs +9 -2
  212. package/fesm2022/ngwr-utils.mjs.map +1 -1
  213. package/fesm2022/ngwr-version.mjs +1 -1
  214. package/fesm2022/ngwr-version.mjs.map +1 -1
  215. package/fesm2022/ngwr-window.mjs +7 -4
  216. package/fesm2022/ngwr-window.mjs.map +1 -1
  217. package/fesm2022/ngwr.mjs.map +1 -1
  218. package/i18n/ar.json +13 -2
  219. package/i18n/cs.json +13 -2
  220. package/i18n/de.json +13 -2
  221. package/i18n/en.json +13 -2
  222. package/i18n/es.json +13 -2
  223. package/i18n/fr.json +13 -2
  224. package/i18n/he.json +13 -2
  225. package/i18n/hi.json +13 -2
  226. package/i18n/id.json +13 -2
  227. package/i18n/it.json +13 -2
  228. package/i18n/ja.json +13 -2
  229. package/i18n/ko.json +13 -2
  230. package/i18n/nl.json +13 -2
  231. package/i18n/pl.json +13 -2
  232. package/i18n/pt.json +13 -2
  233. package/i18n/ru.json +13 -2
  234. package/i18n/sv.json +13 -2
  235. package/i18n/tr.json +13 -2
  236. package/i18n/uk.json +13 -2
  237. package/i18n/vi.json +13 -2
  238. package/i18n/zh-TW.json +13 -2
  239. package/i18n/zh.json +13 -2
  240. package/input/styles/_index.scss +10 -5
  241. package/input-number/styles/_index.scss +6 -3
  242. package/input-otp/styles/_index.scss +4 -2
  243. package/lightbox/styles/_rules.scss +96 -0
  244. package/llms-full.txt +40 -17
  245. package/llms.txt +20 -4
  246. package/package.json +19 -1
  247. package/radio/styles/_index.scss +4 -2
  248. package/resizable/styles/_index.scss +154 -0
  249. package/schematics/use/rule.js +1 -0
  250. package/schematics/use/symbol-map.json +5 -0
  251. package/select/styles/_index.scss +6 -3
  252. package/skills/ngwr/SKILL.md +1 -1
  253. package/skills/ngwr/references/catalog.md +6 -2
  254. package/skills/ngwr/references/setup.md +3 -0
  255. package/slider/styles/_index.scss +106 -0
  256. package/sortable-list/styles/_rules.scss +23 -1
  257. package/switch/styles/_index.scss +4 -2
  258. package/table/styles/_index.scss +53 -0
  259. package/textarea/styles/_index.scss +4 -2
  260. package/theme/styles/_motion.scss +6 -0
  261. package/toast/styles/_index.scss +19 -0
  262. package/types/ngwr-burger.d.ts +0 -1
  263. package/types/ngwr-calendar.d.ts +7 -0
  264. package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
  265. package/types/ngwr-clipboard.d.ts +7 -0
  266. package/types/ngwr-date-picker-testing.d.ts +17 -0
  267. package/types/ngwr-date-picker.d.ts +88 -4
  268. package/types/ngwr-date-stamp-testing.d.ts +47 -0
  269. package/types/ngwr-date-stamp.d.ts +127 -0
  270. package/types/ngwr-date.d.ts +251 -37
  271. package/types/ngwr-dialog-testing.d.ts +10 -0
  272. package/types/ngwr-dialog.d.ts +72 -4
  273. package/types/ngwr-directives.d.ts +36 -1
  274. package/types/ngwr-drawer.d.ts +21 -0
  275. package/types/ngwr-dropdown-testing.d.ts +53 -5
  276. package/types/ngwr-dropdown.d.ts +100 -0
  277. package/types/ngwr-i18n.d.ts +44 -14
  278. package/types/ngwr-lightbox-testing.d.ts +27 -0
  279. package/types/ngwr-lightbox.d.ts +71 -6
  280. package/types/ngwr-overlay.d.ts +36 -0
  281. package/types/ngwr-pipes.d.ts +48 -13
  282. package/types/ngwr-popover.d.ts +39 -1
  283. package/types/ngwr-resizable.d.ts +228 -0
  284. package/types/ngwr-slider-testing.d.ts +8 -1
  285. package/types/ngwr-slider.d.ts +89 -3
  286. package/types/ngwr-sortable-list-testing.d.ts +79 -0
  287. package/types/ngwr-sortable-list.d.ts +113 -10
  288. package/types/ngwr-table-testing.d.ts +3 -1
  289. package/types/ngwr-table.d.ts +120 -4
  290. package/types/ngwr-toast-testing.d.ts +12 -1
  291. package/types/ngwr-toast.d.ts +215 -18
  292. package/types/ngwr-utils-router.d.ts +22 -0
  293. package/types/ngwr-utils.d.ts +8 -1
  294. package/types/ngwr-version.d.ts +1 -1
  295. package/types/ngwr.d.ts +1 -0
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { PipeTransform } from "@angular/core";
3
- import { WrDateAdapter, WrDateFormat } from "ngwr/date";
3
+ import { WrDateAdapter, WrDateFormat, WrParseDateOptions } from "ngwr/date";
4
4
  import { SafeHtml } from "@angular/platform-browser";
5
5
  /**
6
6
  * Humanise a byte count using binary (1024-based) units, in the reader's locale.
@@ -65,6 +65,14 @@ export declare function wrFormatBytes(value: number | string | null | undefined,
65
65
  * as its `T` form: the value goes through `wrParseDate`. `null`, `undefined`,
66
66
  * an empty string and a date the engine refuses give an empty string.
67
67
  *
68
+ * An instant is printed on the wall clock of `withDates({ timeZone })`, through
69
+ * the adapter's `zoned()`. A date-only string is a calendar day and is not
70
+ * moved: `'2026-01-01'` prints as 1 January in every zone.
71
+ *
72
+ * The value is read as `withDates()` says: `epochUnit` for a number and
73
+ * `zonelessIn` for a date-time string with no offset. The last argument
74
+ * overrides either for one call, for a field whose unit differs from the app's.
75
+ *
68
76
  * The adapter stands where `wrFormatNumber` takes a locale, because the output
69
77
  * is the adapter's: the native one formats in `WR_DATE_LOCALE`, and an app's own
70
78
  * adapter formats however it formats. Neither can be rebuilt from a locale
@@ -77,9 +85,10 @@ export declare function wrFormatBytes(value: number | string | null | undefined,
77
85
  * wrFormatDate(row.createdAt, this.dates); // shortDate
78
86
  * wrFormatDate(row.createdAt, this.dates, 'mediumDateTime'); // named key
79
87
  * wrFormatDate(row.createdAt, this.dates, 'dd.MM.yyyy'); // raw token string
88
+ * wrFormatDate(row.sentAt, this.dates, 'time', { epochUnit: 'us' }); // microseconds
80
89
  * ```
81
90
  */
82
- export declare function wrFormatDate(value: Date | string | number | null | undefined, adapter: WrDateAdapter<Date>, format?: WrDateFormat | (string & {})): string;
91
+ export declare function wrFormatDate(value: Date | string | number | null | undefined, adapter: WrDateAdapter<Date>, format?: WrDateFormat | (string & {}), options?: WrParseDateOptions): string;
83
92
  /**
84
93
  * Locale-aware date formatting. Delegates to `WrDateAdapter` — the native one
85
94
  * unless the app provides its own — so both the named format keys
@@ -89,16 +98,28 @@ export declare function wrFormatDate(value: Date | string | number | null | unde
89
98
  * `'2026-01-01 14:30:00'` is read as its `T` form. {@link wrFormatDate} is the
90
99
  * same output as a function.
91
100
  *
101
+ * An instant is printed in the time zone of `withDates({ timeZone })`, and the
102
+ * output follows that zone and the adapter's locale when they change at
103
+ * runtime. A pure pipe cannot: Angular calls it again only when an argument
104
+ * changes. So the pipe is impure and keeps its last result, and a
105
+ * change-detection pass with nothing new costs three comparisons, not a
106
+ * format.
107
+ *
92
108
  * @example
93
109
  * ```html
94
110
  * {{ now | wrDate }} <!-- shortDate -->
95
111
  * {{ now | wrDate: 'mediumDateTime' }} <!-- named key -->
96
112
  * {{ now | wrDate: 'dd.MM.yyyy' }} <!-- raw token string -->
113
+ * {{ sentAt | wrDate: 'time' : { epochUnit: 'us' } }} <!-- microseconds -->
97
114
  * ```
98
115
  */
99
116
  export declare class WrDate implements PipeTransform {
100
117
  private readonly adapter;
101
- transform(value: Date | string | number | null | undefined, format?: WrDateFormat | (string & {})): string;
118
+ private value;
119
+ private format;
120
+ private key;
121
+ private text;
122
+ transform(value: Date | string | number | null | undefined, format?: WrDateFormat | (string & {}), options?: WrParseDateOptions): string;
102
123
  static ɵfac: i0.ɵɵFactoryDeclaration<WrDate, never>;
103
124
  static ɵpipe: i0.ɵɵPipeDeclaration<WrDate, "wrDate", true>;
104
125
  }
@@ -114,8 +135,11 @@ interface WrPluralOptions {
114
135
  }
115
136
  /** Built-in style shortcuts — pick a sensible `Intl.NumberFormat` preset by name. */
116
137
  type WrNumberStyle = 'decimal' | 'percent' | 'currency';
117
- /** How `wrDuration` writes a span: digits and colons (`1:30:00`), or units (`1 hr 30 min`). */
118
- type WrDurationStyle = 'clock' | 'units';
138
+ /**
139
+ * How `wrDuration` writes a span: digits and colons (`1:30:00`), units
140
+ * (`1 hr 30 min`), or a timer's fixed `HH:mm:ss` (`01:30:00`).
141
+ */
142
+ type WrDurationStyle = 'clock' | 'units' | 'timer';
119
143
  /** The units a span of milliseconds splits into, largest first. */
120
144
  type WrDurationUnit = 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
121
145
  /**
@@ -131,16 +155,23 @@ export declare function wrSplitDuration(ms: number, units: ReadonlySet<WrDuratio
131
155
  /**
132
156
  * A span of milliseconds as text, in the given locale.
133
157
  *
134
- * Two styles. `'clock'` is digits and colons: `1:30:00`, and `5:07` under an
158
+ * Three styles. `'clock'` is digits and colons: `1:30:00`, and `5:07` under an
135
159
  * hour; days are carried into the hours, since a clock has no day digit, so two
136
160
  * days read `48:00:00`. `'units'` is every non-zero unit as a word the locale
137
161
  * writes, `1 hr 30 min` in English and `1 h 30 min` in French, through
138
162
  * `Intl.NumberFormat`'s unit style and `Intl.ListFormat` — `Intl.DurationFormat`
139
- * is above the browser floor. The digits are the locale's own in both styles.
140
- *
141
- * Whole seconds: a fraction of a second is floored in both styles. Zero reads
142
- * `0:00` and `0 sec`. A negative span is its absolute value with the locale's
143
- * minus sign in front, `-5:07`. `null`, `undefined`, an empty string and a value
163
+ * is above the browser floor. `'timer'` is what an elapsed-time counter shows:
164
+ * always `HH:mm:ss`, each field two digits, `01:02:03` and `00:05:07`; from a
165
+ * day on, the days stand in front as the locale's narrow unit, `1d 02:03:04`.
166
+ * The digits are the locale's own in every style.
167
+ *
168
+ * A span is not an instant: no style reads a time zone, so the output is the
169
+ * same wherever it runs. Formatting an elapsed time as a date would add the
170
+ * display zone's offset to it.
171
+ *
172
+ * Whole seconds: a fraction of a second is floored in every style. Zero reads
173
+ * `0:00`, `0 sec` and `00:00:00`. A negative span is its absolute value with
174
+ * the locale's minus sign in front, `-5:07` and `-00:05:07`. `null`, `undefined`, an empty string and a value
144
175
  * that is not a finite number give an empty string, as `wrFormatNumber` does.
145
176
  *
146
177
  * The same output as the `wrDuration` pipe, for a string built in TypeScript.
@@ -150,18 +181,22 @@ export declare function wrSplitDuration(ms: number, units: ReadonlySet<WrDuratio
150
181
  * wrFormatDuration(5_400_000, 'en-US'); // "1:30:00"
151
182
  * wrFormatDuration(5_400_000, 'en-US', 'units'); // "1 hr 30 min"
152
183
  * wrFormatDuration(307_000, 'fr-FR', 'units'); // "5 min 7 s"
184
+ * wrFormatDuration(3_723_000, 'en-US', 'timer'); // "01:02:03"
185
+ * wrFormatDuration(93_784_000, 'en-US', 'timer'); // "1d 02:03:04"
153
186
  * ```
154
187
  */
155
188
  export declare function wrFormatDuration(value: number | string | null | undefined, locale: string, style?: WrDurationStyle): string;
156
189
  /**
157
- * A span of milliseconds as clock digits or as units, in Angular's `LOCALE_ID`.
158
- * See {@link wrFormatDuration} for the two styles and the edge cases.
190
+ * A span of milliseconds as clock digits, as units or as a timer, in Angular's
191
+ * `LOCALE_ID`. See {@link wrFormatDuration} for the three styles and the edge
192
+ * cases.
159
193
  *
160
194
  * @example
161
195
  * ```html
162
196
  * {{ 5400000 | wrDuration }} <!-- "1:30:00" -->
163
197
  * {{ 5400000 | wrDuration: 'units' }} <!-- "1 hr 30 min" -->
164
198
  * {{ 307000 | wrDuration }} <!-- "5:07" -->
199
+ * {{ 3723000 | wrDuration: 'timer' }} <!-- "01:02:03" -->
165
200
  * ```
166
201
  */
167
202
  export declare class WrDuration implements PipeTransform {
@@ -194,6 +194,19 @@ export declare class WrPopover {
194
194
  readonly showDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
195
195
  /** Tooltip only — delay before hiding, in ms. @default 60 */
196
196
  readonly hideDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
197
+ /**
198
+ * Tooltip only — the element the tooltip is for, when that is not the host.
199
+ * The panel is placed against it, and its hover and focus show and hide the
200
+ * tooltip the way the host's do. Setting it shows the tooltip after
201
+ * `showDelay`: name the element once the pointer or the focus is on it.
202
+ *
203
+ * It lets one tooltip serve many elements, as `wr-table` does for its header
204
+ * hints and truncated cells: the owner listens once, and binds this to the
205
+ * element under the pointer and `wrPopover` to its text. `aria-describedby`
206
+ * stays on the host, so the owner names or describes the element itself.
207
+ * @default null
208
+ */
209
+ readonly origin: import("@angular/core").InputSignal<HTMLElement | null>;
197
210
  /**
198
211
  * Popover mode only — accessible name of the panel. `role="dialog"` with no
199
212
  * name announces as a bare "dialog", so the catalog's `popover.label` is used
@@ -234,6 +247,7 @@ export declare class WrPopover {
234
247
  private readonly resolvedAriaLabel;
235
248
  private readonly resolvedPosition;
236
249
  private overlayRef;
250
+ private connected;
237
251
  private textPanelRef;
238
252
  /** Whether the HOST itself holds focus — not a descendant of it. */
239
253
  private hostFocused;
@@ -372,6 +386,8 @@ export declare class WrPopover {
372
386
  * an app — but a bare `TestBed` that provides nothing should still get a
373
387
  * component that works, and defaulting to LTR is the honest fallback.
374
388
  */
389
+ /** Whether a node is in the host or in the element a shared tooltip is for. */
390
+ private isTrigger;
375
391
  private isRtl;
376
392
  static ɵfac: i0.ɵɵFactoryDeclaration<WrPopover, never>;
377
393
  static ɵdir: i0.ɵɵDirectiveDeclaration<WrPopover, "[wrPopover]", ["wrPopover"], {
@@ -405,6 +421,11 @@ export declare class WrPopover {
405
421
  "required": false;
406
422
  "isSignal": true;
407
423
  };
424
+ "origin": {
425
+ "alias": "wrPopoverOrigin";
426
+ "required": false;
427
+ "isSignal": true;
428
+ };
408
429
  "ariaLabel": {
409
430
  "alias": "ariaLabel";
410
431
  "required": false;
@@ -420,4 +441,21 @@ export declare class WrPopover {
420
441
  "closed": "closed";
421
442
  }, never, never, true, never>;
422
443
  }
423
- export type { WrChartTooltip, WrChartTooltipDatum, WrChartTooltipRow, WrChartTooltipTarget, WrPopoverPosition };
444
+ /** @internal */
445
+ interface WrTextTooltip {
446
+ /** Show `text` over the host, replacing what this handle showed before. */
447
+ show(text: string): void;
448
+ hide(): void;
449
+ }
450
+ /**
451
+ * The `[wrPopover] mode="tooltip"` panel, opened from code over the host of the
452
+ * directive or component that calls this in its injection context.
453
+ *
454
+ * For feedback a pointer did not ask for, such as "Copied" after a click. It
455
+ * has no hover or focus wiring and sets no `aria-describedby`: the caller
456
+ * announces the text. A hint that describes the host is `[wrPopover]`.
457
+ *
458
+ * @internal
459
+ */
460
+ export declare function wrUseTextTooltip(position?: WrPopoverPosition): WrTextTooltip;
461
+ export type { WrChartTooltip, WrChartTooltipDatum, WrChartTooltipRow, WrChartTooltipTarget, WrPopoverPosition, WrTextTooltip };
@@ -0,0 +1,228 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * @license
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
7
+ */
8
+ /**
9
+ * The edge of the element that drags. `start` and `end` are logical, so they
10
+ * swap sides under `dir="rtl"`; `top` and `bottom` never move.
11
+ */
12
+ type WrResizableEdge = 'start' | 'end' | 'top' | 'bottom';
13
+ /**
14
+ * @license
15
+ *
16
+ * Use of this source code is governed by an MIT-style license that can be
17
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
18
+ */
19
+ /**
20
+ * A limit on the size: pixels as a number, or a percentage of the parent's
21
+ * matching dimension as a string (`'40%'`).
22
+ */
23
+ type WrResizableLimit = number | `${number}%`;
24
+ /**
25
+ * Lets one element be resized by dragging one of its edges. It writes the
26
+ * element's own `width` (`start` / `end`) or `height` (`top` / `bottom`) in
27
+ * pixels and touches nothing else, so the element can lie over other content.
28
+ * To share space between two panes, use `wr-splitter`.
29
+ *
30
+ * The handle is an element the directive adds inside the host, over the edge.
31
+ * It needs a positioning context: a host whose computed `position` is `static`
32
+ * is given `position: relative`.
33
+ *
34
+ * @example
35
+ * ```html
36
+ * <aside wrResizable [(size)]="width" minSize="240" maxSize="60%" persistKey="side-panel">…</aside>
37
+ *
38
+ * <footer wrResizable edge="top" [collapsed]="!open()">…</footer>
39
+ * ```
40
+ *
41
+ * @see https://ngwr.dev/reference/components/resizable
42
+ */
43
+ export declare class WrResizable {
44
+ /**
45
+ * The edge that drags. `start` and `end` resize the width and mirror under
46
+ * RTL; `top` and `bottom` resize the height.
47
+ * @default 'end'
48
+ */
49
+ readonly edge: import("@angular/core").InputSignal<WrResizableEdge>;
50
+ /**
51
+ * The size in pixels. Two-way bindable. `null` means not set yet: the
52
+ * element keeps the size its CSS gives it until the first resize.
53
+ * `sizeChange` fires when a drag is released, on each key and on a reset,
54
+ * never during a drag: bind `resizing` for that.
55
+ * @default null
56
+ */
57
+ readonly size: import("@angular/core").ModelSignal<number | null>;
58
+ /**
59
+ * Smallest size: pixels, or a percentage of the parent's matching dimension
60
+ * (`'20%'`). `null` for none.
61
+ * @default 0
62
+ */
63
+ readonly minSize: import("@angular/core").InputSignalWithTransform<WrResizableLimit | null, unknown>;
64
+ /**
65
+ * Largest size: pixels, or a percentage of the parent's matching dimension.
66
+ * `null` for none.
67
+ * @default '100%'
68
+ */
69
+ readonly maxSize: import("@angular/core").InputSignalWithTransform<WrResizableLimit | null, unknown>;
70
+ /**
71
+ * The size Enter and a double click on the handle go back to. `null` goes
72
+ * back to what the element started with: the `size` bound at creation, or its
73
+ * CSS size when there was none.
74
+ * @default null
75
+ */
76
+ readonly defaultSize: import("@angular/core").InputSignalWithTransform<number | null, unknown>;
77
+ /** Pixels an arrow key moves the edge. Shift moves it ten times as far. @default 10 */
78
+ readonly step: import("@angular/core").InputSignalWithTransform<number, unknown>;
79
+ /**
80
+ * Saves the size under this key through `WrStorage` (which adds the app's
81
+ * prefix) when a resize ends, and restores it on creation.
82
+ * @default null
83
+ */
84
+ readonly persistKey: import("@angular/core").InputSignal<string | null>;
85
+ /**
86
+ * Shrinks the element to zero and hides the handle. `size` is left alone, so
87
+ * the element is back at its size when this turns off.
88
+ * @default false
89
+ */
90
+ readonly collapsed: import("@angular/core").InputSignalWithTransform<boolean, any>;
91
+ /** Keeps the size and stops the handle. @default false */
92
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
93
+ /**
94
+ * Accessible name of the handle. A focusable `role="separator"` is an
95
+ * interactive widget, so it needs one. Falls back to `resizable.handle`.
96
+ * @default null
97
+ */
98
+ readonly resizeLabel: import("@angular/core").InputSignal<string | null>;
99
+ /** The size in pixels on every move of a drag, before `sizeChange` settles it on release. */
100
+ readonly resizing: import("@angular/core").OutputEmitterRef<number>;
101
+ private readonly resolvedLabel;
102
+ private readonly host;
103
+ private readonly renderer;
104
+ private readonly doc;
105
+ private readonly destroyRef;
106
+ private readonly storage;
107
+ private readonly dir;
108
+ /** The handle, once the browser has rendered the host. Never on the server. */
109
+ private readonly handle;
110
+ /** The size a drag in progress has reached. The model takes it on release. */
111
+ private readonly draft;
112
+ /** The parent's inner size on the resize axis, which percentages are of. */
113
+ private readonly parentExtent;
114
+ /** The host's rendered size, for `aria-valuenow` while `size` is `null`. */
115
+ private readonly measured;
116
+ private drag;
117
+ /** What a reset goes back to without `defaultSize`: the model as it was created. */
118
+ private origin;
119
+ private originRead;
120
+ protected readonly axis: import("@angular/core").Signal<"block" | "inline">;
121
+ private readonly min;
122
+ private readonly max;
123
+ /**
124
+ * The size in force, clamped at the point of use and not in the model: a
125
+ * percentage limit moves with the parent, and a window narrowed for a moment
126
+ * must not cost the user the width they chose.
127
+ */
128
+ private readonly current;
129
+ /** What the host's inline style carries: nothing until a size is set. */
130
+ protected readonly shown: import("@angular/core").Signal<number | null>;
131
+ private readonly inactive;
132
+ protected readonly classes: import("@angular/core").Signal<string>;
133
+ constructor();
134
+ /** Browser only: the handle, its listeners and the two size observers. */
135
+ private mount;
136
+ /** Everything the handle says about itself, rewritten when a signal behind it moves. */
137
+ private syncHandle;
138
+ private attr;
139
+ private onPointerDown;
140
+ private onPointerMove;
141
+ private onPointerUp;
142
+ /** Idempotent: releasing the capture fires `lostpointercapture`, which lands here again. */
143
+ private endDrag;
144
+ /**
145
+ * No text selection and one cursor for the whole page while the drag runs,
146
+ * on the root element so the rest of the time selection inside the element
147
+ * works as usual. Returns the undo, which puts back what was inline before.
148
+ */
149
+ private lockPage;
150
+ private onKeydown;
151
+ private onReset;
152
+ /** A size the user settled on: into the model, and into storage when there is a key. */
153
+ private commit;
154
+ private clamp;
155
+ private resolve;
156
+ /**
157
+ * `1` when dragging toward higher coordinates grows the element. Read per
158
+ * gesture rather than cached, like the splitter: nothing rendered depends on
159
+ * the direction, since the handle sits on a logical edge.
160
+ */
161
+ private growSign;
162
+ private isRtl;
163
+ /**
164
+ * The host's size as its `width` / `height` property means it, so writing the
165
+ * number back changes nothing whatever the `box-sizing`. The computed value
166
+ * is that; the rect is the fallback where there is no computed size.
167
+ */
168
+ private measure;
169
+ private remeasure;
170
+ private measureParent;
171
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrResizable, never>;
172
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrResizable, "[wrResizable]", ["wrResizable"], {
173
+ "edge": {
174
+ "alias": "edge";
175
+ "required": false;
176
+ "isSignal": true;
177
+ };
178
+ "size": {
179
+ "alias": "size";
180
+ "required": false;
181
+ "isSignal": true;
182
+ };
183
+ "minSize": {
184
+ "alias": "minSize";
185
+ "required": false;
186
+ "isSignal": true;
187
+ };
188
+ "maxSize": {
189
+ "alias": "maxSize";
190
+ "required": false;
191
+ "isSignal": true;
192
+ };
193
+ "defaultSize": {
194
+ "alias": "defaultSize";
195
+ "required": false;
196
+ "isSignal": true;
197
+ };
198
+ "step": {
199
+ "alias": "step";
200
+ "required": false;
201
+ "isSignal": true;
202
+ };
203
+ "persistKey": {
204
+ "alias": "persistKey";
205
+ "required": false;
206
+ "isSignal": true;
207
+ };
208
+ "collapsed": {
209
+ "alias": "collapsed";
210
+ "required": false;
211
+ "isSignal": true;
212
+ };
213
+ "disabled": {
214
+ "alias": "disabled";
215
+ "required": false;
216
+ "isSignal": true;
217
+ };
218
+ "resizeLabel": {
219
+ "alias": "resizeLabel";
220
+ "required": false;
221
+ "isSignal": true;
222
+ };
223
+ }, {
224
+ "size": "sizeChange";
225
+ "resizing": "resizing";
226
+ }, never, never, true, never>;
227
+ }
228
+ export type { WrResizableEdge, WrResizableLimit };
@@ -1,5 +1,5 @@
1
1
  import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
- import { WrSliderValue } from "ngwr/slider";
2
+ import { WrSliderMark, WrSliderValue } from "ngwr/slider";
3
3
  /** Which end of a range slider a thumb is — the `--low` / `--high` modifier it carries. */
4
4
  type WrSliderThumbPosition = 'low' | 'high';
5
5
  /** Narrows which `<wr-slider>` a harness query matches. */
@@ -230,6 +230,8 @@ export declare class WrSliderHarness extends ComponentHarness {
230
230
  * reports.
231
231
  */
232
232
  isDisabled(): Promise<boolean>;
233
+ /** The axis of the track, from the thumb's `aria-orientation`, which is what a screen reader is told. */
234
+ getOrientation(): Promise<'horizontal' | 'vertical'>;
233
235
  /**
234
236
  * The current value, in the shape the model uses: a plain number for one
235
237
  * thumb, `[low, high]` for two.
@@ -253,6 +255,11 @@ export declare class WrSliderHarness extends ComponentHarness {
253
255
  * assertion typed with a hyphen will not match.
254
256
  */
255
257
  getLabelText(): Promise<string | null>;
258
+ /**
259
+ * The marks drawn on the track, in value order, each with its label when it
260
+ * has one. Marks outside `[min, max]` are not drawn, so they are not here.
261
+ */
262
+ getMarks(): Promise<WrSliderMark[]>;
256
263
  /** The slider's thumbs in DOM order: the lower one first. */
257
264
  getThumbs(filters?: WrSliderThumbHarnessFilters): Promise<WrSliderThumbHarness[]>;
258
265
  /** The only thumb of a single-thumb slider, or the lower one of a range slider. */
@@ -1,6 +1,19 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ElementRef } from "@angular/core";
3
3
  import { FormValueControl } from "@angular/forms/signals";
4
+ /**
5
+ * @license
6
+ *
7
+ * Use of this source code is governed by an MIT-style license that can be
8
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
9
+ */
10
+ /** A stop on the track of `<wr-slider>`: a tick at `value`, with an optional label. */
11
+ interface WrSliderMark {
12
+ /** Where the mark sits, in the slider's own units. */
13
+ readonly value: number;
14
+ /** Text under the mark, and the thumb's `aria-valuetext` while it stands on it. */
15
+ readonly label?: string;
16
+ }
4
17
  /**
5
18
  * @license
6
19
  *
@@ -28,12 +41,18 @@ type WrSliderValue = number | readonly [number, number];
28
41
  *
29
42
  * Keyboard: ← / → adjust by `step`; ↑ / ↓ same; Shift+arrow by `step × 10`;
30
43
  * Home / End jump to min / max; PageUp / PageDown by `step × 10`.
44
+ * With `snapToMarks` every one of those keys moves one mark instead, and
45
+ * Home / End land on the first and the last mark.
31
46
  *
32
47
  * Reading direction: the arrows follow the VISUAL track, so under `dir="rtl"`
33
48
  * → moves toward the lower end and ← toward the higher one, and a drag reads
34
49
  * its ratio from the right edge. ↑ / ↓, PageUp / PageDown and Home / End are
35
50
  * unchanged — they name a value, not a side of the screen.
36
51
  *
52
+ * `orientation="vertical"` runs the track from the bottom (min) to the top
53
+ * (max). → then raises the value like ↑ and ← lowers it like ↓, in both
54
+ * reading directions.
55
+ *
37
56
  * @example
38
57
  * ```html
39
58
  * <!-- signal forms -->
@@ -92,6 +111,34 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
92
111
  * ```
93
112
  */
94
113
  readonly labelWith: import("@angular/core").InputSignal<((value: number) => string) | undefined>;
114
+ /**
115
+ * Stops drawn on the track: a tick at each `value`, and its `label` under the
116
+ * track when it has one. A mark outside `[min, max]` is not drawn. The thumb
117
+ * announces the label of the mark it stands on as `aria-valuetext`, ahead of
118
+ * `labelWith`.
119
+ *
120
+ * @example
121
+ * ```html
122
+ * <wr-slider [marks]="[{ value: 0, label: 'Low' }, { value: 50 }, { value: 100, label: 'High' }]" />
123
+ * ```
124
+ */
125
+ readonly marks: import("@angular/core").InputSignal<readonly WrSliderMark[]>;
126
+ /**
127
+ * Restrict the value to the marks: a drag lands on the nearest one and the
128
+ * keyboard moves from mark to mark, whatever `step` says. Without marks it
129
+ * does nothing.
130
+ *
131
+ * @default false
132
+ */
133
+ readonly snapToMarks: import("@angular/core").InputSignalWithTransform<boolean, any>;
134
+ /**
135
+ * Axis of the track. `vertical` runs from the bottom (min) to the top (max),
136
+ * as tall as `--wr-slider-vertical-height`, with the value and the marks'
137
+ * labels beside it.
138
+ *
139
+ * @default 'horizontal'
140
+ */
141
+ readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
95
142
  /**
96
143
  * Accessible name of the thumb — the single one, or the LOWER one in range
97
144
  * mode. Falls back to `slider.label` / `slider.lower`.
@@ -207,15 +254,33 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
207
254
  */
208
255
  private readonly dir;
209
256
  protected readonly classes: import("@angular/core").Signal<string>;
257
+ protected readonly vertical: import("@angular/core").Signal<boolean>;
210
258
  protected readonly lowPercent: import("@angular/core").Signal<number>;
211
259
  protected readonly highPercent: import("@angular/core").Signal<number>;
212
260
  /** Offset of the fill from the track's START edge — the left one in LTR, the right one in RTL. */
213
261
  protected readonly fillStart: import("@angular/core").Signal<number>;
214
262
  protected readonly fillWidth: import("@angular/core").Signal<number>;
215
- /** `aria-valuetext` of the lower thumb: `null` without `labelWith`, so the number announces as is. */
263
+ /** The marks inside the bounds, in value order: what is drawn and what `snapToMarks` walks. */
264
+ protected readonly visibleMarks: import("@angular/core").Signal<{
265
+ percent: number;
266
+ value: number;
267
+ label?: string;
268
+ }[]>;
269
+ protected readonly labelledMarks: import("@angular/core").Signal<{
270
+ percent: number;
271
+ value: number;
272
+ label?: string;
273
+ }[]>;
274
+ private readonly snapping;
275
+ /**
276
+ * `aria-valuetext` of the lower thumb: the label of the mark it stands on,
277
+ * else `labelWith`, else `null` so the number announces as is.
278
+ */
216
279
  protected readonly lowText: import("@angular/core").Signal<string | null>;
217
280
  /** `aria-valuetext` of the upper thumb, see {@link lowText}. */
218
281
  protected readonly highText: import("@angular/core").Signal<string | null>;
282
+ /** Where the value label sits along a vertical track: beside the thumb, or midway between two. */
283
+ protected readonly labelPercent: import("@angular/core").Signal<number>;
219
284
  protected readonly label: import("@angular/core").Signal<string>;
220
285
  constructor();
221
286
  /**
@@ -241,7 +306,8 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
241
306
  protected onFocusOut(event: FocusEvent): void;
242
307
  private isRtl;
243
308
  /**
244
- * The value under a pointer, measured along the track's INLINE axis.
309
+ * The value under a pointer, measured along the track's INLINE axis, or up
310
+ * from its bottom edge when vertical.
245
311
  *
246
312
  * The offset is taken from whichever edge the track starts at — the left one
247
313
  * in LTR, the right one in RTL — so the whole component needs the direction
@@ -261,6 +327,11 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
261
327
  private focusThumb;
262
328
  private setThumb;
263
329
  private snap;
330
+ private nearestMark;
331
+ /** The next mark above or below `value`; `value` itself when there is none, which `snap` then settles. */
332
+ private adjacentMark;
333
+ private textOf;
334
+ protected isActiveMark(value: number): boolean;
264
335
  private clampToBounds;
265
336
  private percentOf;
266
337
  private emitChange;
@@ -306,6 +377,21 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
306
377
  "required": false;
307
378
  "isSignal": true;
308
379
  };
380
+ "marks": {
381
+ "alias": "marks";
382
+ "required": false;
383
+ "isSignal": true;
384
+ };
385
+ "snapToMarks": {
386
+ "alias": "snapToMarks";
387
+ "required": false;
388
+ "isSignal": true;
389
+ };
390
+ "orientation": {
391
+ "alias": "orientation";
392
+ "required": false;
393
+ "isSignal": true;
394
+ };
309
395
  "ariaLabel": {
310
396
  "alias": "ariaLabel";
311
397
  "required": false;
@@ -326,4 +412,4 @@ export declare class WrSlider implements FormValueControl<WrSliderValue> {
326
412
  "touch": "touch";
327
413
  }, never, never, true, never>;
328
414
  }
329
- export type { WrSliderValue };
415
+ export type { WrSliderMark, WrSliderValue };