ngwr 16.1.0 → 16.3.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 (412) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/color-picker/styles/_index.scss +21 -0
  5. package/date-picker/styles/_index.scss +108 -1
  6. package/dropdown/styles/_index.scss +40 -10
  7. package/fesm2022/ngwr-affix.mjs +3 -3
  8. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  9. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  10. package/fesm2022/ngwr-alert.mjs +3 -3
  11. package/fesm2022/ngwr-anchor.mjs +17 -6
  12. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  13. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  14. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  15. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  16. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  17. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  18. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  19. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  20. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  21. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  22. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  23. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  25. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  26. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  27. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  28. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  29. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  30. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  31. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  32. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  33. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  34. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  35. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  36. package/fesm2022/ngwr-avatar.mjs +3 -3
  37. package/fesm2022/ngwr-back-top.mjs +3 -3
  38. package/fesm2022/ngwr-badge.mjs +129 -11
  39. package/fesm2022/ngwr-badge.mjs.map +1 -1
  40. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  42. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  43. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  45. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  46. package/fesm2022/ngwr-burger.mjs +3 -3
  47. package/fesm2022/ngwr-button.mjs +6 -6
  48. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  49. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  50. package/fesm2022/ngwr-calendar.mjs +500 -73
  51. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  52. package/fesm2022/ngwr-card.mjs +9 -9
  53. package/fesm2022/ngwr-carousel.mjs +6 -6
  54. package/fesm2022/ngwr-cascader.mjs +37 -16
  55. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  57. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  61. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  63. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  64. package/fesm2022/ngwr-charts-core.mjs +3 -3
  65. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  66. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  68. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  69. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  70. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  71. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  73. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  75. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  77. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  79. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  83. package/fesm2022/ngwr-checkbox.mjs +6 -6
  84. package/fesm2022/ngwr-clipboard.mjs +3 -3
  85. package/fesm2022/ngwr-collapse.mjs +9 -9
  86. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  87. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  88. package/fesm2022/ngwr-color-picker.mjs +153 -37
  89. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  90. package/fesm2022/ngwr-command-palette.mjs +3 -3
  91. package/fesm2022/ngwr-comment.mjs +10 -6
  92. package/fesm2022/ngwr-comment.mjs.map +1 -1
  93. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  94. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  95. package/fesm2022/ngwr-compare.mjs +3 -3
  96. package/fesm2022/ngwr-context-menu.mjs +12 -12
  97. package/fesm2022/ngwr-cookie.mjs +3 -3
  98. package/fesm2022/ngwr-copy-value.mjs +3 -3
  99. package/fesm2022/ngwr-counter.mjs +6 -6
  100. package/fesm2022/ngwr-date-picker-testing.mjs +48 -4
  101. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-date-picker.mjs +492 -75
  103. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
  105. package/fesm2022/ngwr-date-stamp.mjs +76 -12
  106. package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
  107. package/fesm2022/ngwr-date.mjs +144 -12
  108. package/fesm2022/ngwr-date.mjs.map +1 -1
  109. package/fesm2022/ngwr-density.mjs +6 -6
  110. package/fesm2022/ngwr-descriptions.mjs +6 -6
  111. package/fesm2022/ngwr-dialog.mjs +18 -18
  112. package/fesm2022/ngwr-directives.mjs +15 -15
  113. package/fesm2022/ngwr-divider.mjs +3 -3
  114. package/fesm2022/ngwr-drawer.mjs +51 -29
  115. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  116. package/fesm2022/ngwr-dropdown-testing.mjs +48 -5
  117. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  118. package/fesm2022/ngwr-dropdown.mjs +407 -116
  119. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  120. package/fesm2022/ngwr-editor.mjs +4 -3
  121. package/fesm2022/ngwr-editor.mjs.map +1 -1
  122. package/fesm2022/ngwr-empty.mjs +3 -3
  123. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  124. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  125. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  126. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  127. package/fesm2022/ngwr-file-upload.mjs +274 -15
  128. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  129. package/fesm2022/ngwr-form.mjs +9 -9
  130. package/fesm2022/ngwr-form.mjs.map +1 -1
  131. package/fesm2022/ngwr-graph-testing.mjs +3 -0
  132. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  133. package/fesm2022/ngwr-graph.mjs +102 -42
  134. package/fesm2022/ngwr-graph.mjs.map +1 -1
  135. package/fesm2022/ngwr-hotkey.mjs +6 -6
  136. package/fesm2022/ngwr-i18n-ar.mjs +26 -6
  137. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-cs.mjs +26 -6
  139. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-de.mjs +26 -6
  141. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-en.mjs +26 -6
  143. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-es.mjs +26 -6
  145. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-fr.mjs +26 -6
  147. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-he.mjs +26 -6
  149. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-hi.mjs +26 -6
  151. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-id.mjs +26 -6
  153. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-it.mjs +26 -6
  155. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-ja.mjs +26 -6
  157. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-ko.mjs +26 -6
  159. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-nl.mjs +26 -6
  161. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-pl.mjs +26 -6
  163. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-pt.mjs +26 -6
  165. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-ru.mjs +26 -6
  167. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-sv.mjs +26 -6
  169. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-tr.mjs +26 -6
  171. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-uk.mjs +26 -6
  173. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  174. package/fesm2022/ngwr-i18n-vi.mjs +26 -6
  175. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-zh-tw.mjs +26 -6
  177. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-zh.mjs +26 -6
  179. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n.mjs +9 -9
  181. package/fesm2022/ngwr-icon.mjs +6 -6
  182. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  183. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  184. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  185. package/fesm2022/ngwr-input-number.mjs +68 -7
  186. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  187. package/fesm2022/ngwr-input-otp.mjs +23 -3
  188. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  189. package/fesm2022/ngwr-input-testing.mjs +24 -1
  190. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  191. package/fesm2022/ngwr-input.mjs +152 -36
  192. package/fesm2022/ngwr-input.mjs.map +1 -1
  193. package/fesm2022/ngwr-keyboard.mjs +3 -3
  194. package/fesm2022/ngwr-knob.mjs +3 -3
  195. package/fesm2022/ngwr-layout.mjs +15 -15
  196. package/fesm2022/ngwr-lightbox-testing.mjs +26 -0
  197. package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
  198. package/fesm2022/ngwr-lightbox.mjs +249 -13
  199. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  200. package/fesm2022/ngwr-list.mjs +8 -8
  201. package/fesm2022/ngwr-list.mjs.map +1 -1
  202. package/fesm2022/ngwr-load-state.mjs +15 -15
  203. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  204. package/fesm2022/ngwr-mention.mjs +6 -6
  205. package/fesm2022/ngwr-meta.mjs +6 -6
  206. package/fesm2022/ngwr-overlay.mjs +175 -13
  207. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  208. package/fesm2022/ngwr-page-header.mjs +3 -3
  209. package/fesm2022/ngwr-pagination.mjs +5 -3
  210. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  211. package/fesm2022/ngwr-pipes.mjs +57 -33
  212. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  213. package/fesm2022/ngwr-platform.mjs +9 -9
  214. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  215. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  216. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  217. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  218. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  219. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  220. package/fesm2022/ngwr-popover.mjs +58 -156
  221. package/fesm2022/ngwr-popover.mjs.map +1 -1
  222. package/fesm2022/ngwr-progress.mjs +50 -9
  223. package/fesm2022/ngwr-progress.mjs.map +1 -1
  224. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  225. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  226. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  227. package/fesm2022/ngwr-qr.mjs +3 -3
  228. package/fesm2022/ngwr-radio.mjs +6 -6
  229. package/fesm2022/ngwr-rating.mjs +3 -3
  230. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  231. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  232. package/fesm2022/ngwr-resizable.mjs +3 -3
  233. package/fesm2022/ngwr-result.mjs +12 -12
  234. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  235. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  236. package/fesm2022/ngwr-schema-form.mjs +418 -19
  237. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  238. package/fesm2022/ngwr-scroll.mjs +3 -3
  239. package/fesm2022/ngwr-segmented.mjs +3 -3
  240. package/fesm2022/ngwr-select-testing.mjs +19 -0
  241. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  242. package/fesm2022/ngwr-select.mjs +263 -83
  243. package/fesm2022/ngwr-select.mjs.map +1 -1
  244. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  245. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  246. package/fesm2022/ngwr-sidebar.mjs +3 -3
  247. package/fesm2022/ngwr-skeleton.mjs +3 -3
  248. package/fesm2022/ngwr-slider-testing.mjs +23 -0
  249. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  250. package/fesm2022/ngwr-slider.mjs +108 -14
  251. package/fesm2022/ngwr-slider.mjs.map +1 -1
  252. package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
  253. package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
  254. package/fesm2022/ngwr-sortable-list.mjs +284 -63
  255. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  256. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  257. package/fesm2022/ngwr-spinner.mjs +3 -3
  258. package/fesm2022/ngwr-splitter.mjs +3 -3
  259. package/fesm2022/ngwr-statistic.mjs +9 -9
  260. package/fesm2022/ngwr-stepper.mjs +42 -11
  261. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  262. package/fesm2022/ngwr-storage.mjs +3 -3
  263. package/fesm2022/ngwr-switch.mjs +3 -3
  264. package/fesm2022/ngwr-table-testing.mjs +88 -2
  265. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  266. package/fesm2022/ngwr-table.mjs +891 -74
  267. package/fesm2022/ngwr-table.mjs.map +1 -1
  268. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  269. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  270. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  271. package/fesm2022/ngwr-tabs.mjs +15 -10
  272. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  273. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  274. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  275. package/fesm2022/ngwr-textarea.mjs +128 -16
  276. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  277. package/fesm2022/ngwr-theme.mjs +3 -3
  278. package/fesm2022/ngwr-timeline.mjs +6 -6
  279. package/fesm2022/ngwr-toast.mjs +40 -19
  280. package/fesm2022/ngwr-toast.mjs.map +1 -1
  281. package/fesm2022/ngwr-toolbar.mjs +3 -3
  282. package/fesm2022/ngwr-tour.mjs +6 -6
  283. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  284. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  285. package/fesm2022/ngwr-transfer.mjs +24 -5
  286. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  287. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  288. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  289. package/fesm2022/ngwr-tree.mjs +966 -78
  290. package/fesm2022/ngwr-tree.mjs.map +1 -1
  291. package/fesm2022/ngwr-typography.mjs +3 -3
  292. package/fesm2022/ngwr-utils-router.mjs +3 -3
  293. package/fesm2022/ngwr-utils.mjs +34 -1
  294. package/fesm2022/ngwr-utils.mjs.map +1 -1
  295. package/fesm2022/ngwr-version.mjs +1 -1
  296. package/fesm2022/ngwr-version.mjs.map +1 -1
  297. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  298. package/fesm2022/ngwr-window.mjs +33 -22
  299. package/fesm2022/ngwr-window.mjs.map +1 -1
  300. package/file-upload/styles/_index.scss +156 -0
  301. package/i18n/ar.json +28 -6
  302. package/i18n/cs.json +28 -6
  303. package/i18n/de.json +28 -6
  304. package/i18n/en.json +28 -6
  305. package/i18n/es.json +28 -6
  306. package/i18n/fr.json +28 -6
  307. package/i18n/he.json +28 -6
  308. package/i18n/hi.json +28 -6
  309. package/i18n/id.json +28 -6
  310. package/i18n/it.json +28 -6
  311. package/i18n/ja.json +28 -6
  312. package/i18n/ko.json +28 -6
  313. package/i18n/nl.json +28 -6
  314. package/i18n/pl.json +28 -6
  315. package/i18n/pt.json +28 -6
  316. package/i18n/ru.json +28 -6
  317. package/i18n/sv.json +28 -6
  318. package/i18n/tr.json +28 -6
  319. package/i18n/uk.json +28 -6
  320. package/i18n/vi.json +28 -6
  321. package/i18n/zh-TW.json +28 -6
  322. package/i18n/zh.json +28 -6
  323. package/input/styles/_index.scss +68 -1
  324. package/input-otp/styles/_index.scss +14 -0
  325. package/lightbox/styles/_rules.scss +96 -0
  326. package/llms-full.txt +61 -25
  327. package/llms.txt +12 -0
  328. package/overlay/styles/_arrow.scss +4 -4
  329. package/package.json +37 -1
  330. package/popconfirm/styles/_index.scss +3 -11
  331. package/progress/styles/_index.scss +32 -0
  332. package/schema-form/styles/_index.scss +78 -0
  333. package/schematics/use/rule.js +2 -0
  334. package/schematics/use/symbol-map.json +5 -0
  335. package/select/styles/_index.scss +114 -22
  336. package/skills/ngwr/SKILL.md +1 -1
  337. package/skills/ngwr/references/catalog.md +11 -2
  338. package/slider/styles/_index.scss +128 -0
  339. package/sortable-list/styles/_rules.scss +23 -1
  340. package/table/styles/_index.scss +167 -3
  341. package/textarea/styles/_index.scss +80 -0
  342. package/theme/styles/_focus.scss +5 -0
  343. package/theme/styles/_motion.scss +5 -0
  344. package/transfer/styles/_index.scss +84 -0
  345. package/tree/styles/_index.scss +138 -5
  346. package/types/ngwr-alert-testing.d.ts +88 -0
  347. package/types/ngwr-badge.d.ts +72 -2
  348. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  349. package/types/ngwr-burger-testing.d.ts +51 -0
  350. package/types/ngwr-calendar-testing.d.ts +18 -6
  351. package/types/ngwr-calendar.d.ts +272 -22
  352. package/types/ngwr-cascader.d.ts +10 -1
  353. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  354. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  355. package/types/ngwr-charts-line-chart.d.ts +7 -4
  356. package/types/ngwr-color-picker-testing.d.ts +15 -4
  357. package/types/ngwr-color-picker.d.ts +76 -6
  358. package/types/ngwr-compare-testing.d.ts +72 -0
  359. package/types/ngwr-date-picker-testing.d.ts +40 -8
  360. package/types/ngwr-date-picker.d.ts +178 -10
  361. package/types/ngwr-date-stamp-testing.d.ts +1 -1
  362. package/types/ngwr-date-stamp.d.ts +53 -7
  363. package/types/ngwr-date.d.ts +188 -15
  364. package/types/ngwr-drawer.d.ts +9 -0
  365. package/types/ngwr-dropdown-testing.d.ts +73 -5
  366. package/types/ngwr-dropdown.d.ts +124 -6
  367. package/types/ngwr-event-calendar.d.ts +66 -8
  368. package/types/ngwr-file-upload-testing.d.ts +31 -2
  369. package/types/ngwr-file-upload.d.ts +148 -1
  370. package/types/ngwr-form.d.ts +47 -3
  371. package/types/ngwr-graph-testing.d.ts +8 -3
  372. package/types/ngwr-graph.d.ts +147 -7
  373. package/types/ngwr-input-number-testing.d.ts +10 -0
  374. package/types/ngwr-input-number.d.ts +30 -1
  375. package/types/ngwr-input-otp.d.ts +10 -0
  376. package/types/ngwr-input-testing.d.ts +30 -0
  377. package/types/ngwr-input.d.ts +54 -3
  378. package/types/ngwr-lightbox-testing.d.ts +27 -0
  379. package/types/ngwr-lightbox.d.ts +71 -6
  380. package/types/ngwr-overlay.d.ts +84 -5
  381. package/types/ngwr-pipes.d.ts +34 -13
  382. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  383. package/types/ngwr-popconfirm.d.ts +28 -3
  384. package/types/ngwr-popover-testing.d.ts +19 -2
  385. package/types/ngwr-popover.d.ts +22 -2
  386. package/types/ngwr-progress.d.ts +29 -1
  387. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  388. package/types/ngwr-resizable-testing.d.ts +116 -0
  389. package/types/ngwr-schema-form-testing.d.ts +260 -0
  390. package/types/ngwr-schema-form.d.ts +76 -6
  391. package/types/ngwr-select-testing.d.ts +20 -0
  392. package/types/ngwr-select.d.ts +112 -11
  393. package/types/ngwr-sidebar-testing.d.ts +176 -0
  394. package/types/ngwr-slider-testing.d.ts +10 -1
  395. package/types/ngwr-slider.d.ts +109 -3
  396. package/types/ngwr-sortable-list-testing.d.ts +79 -0
  397. package/types/ngwr-sortable-list.d.ts +119 -10
  398. package/types/ngwr-stepper.d.ts +20 -11
  399. package/types/ngwr-table-testing.d.ts +70 -6
  400. package/types/ngwr-table.d.ts +480 -50
  401. package/types/ngwr-tabs-testing.d.ts +14 -17
  402. package/types/ngwr-tabs.d.ts +6 -0
  403. package/types/ngwr-textarea-testing.d.ts +10 -0
  404. package/types/ngwr-textarea.d.ts +48 -2
  405. package/types/ngwr-toast.d.ts +8 -1
  406. package/types/ngwr-transfer-testing.d.ts +3 -0
  407. package/types/ngwr-transfer.d.ts +24 -1
  408. package/types/ngwr-tree-testing.d.ts +65 -1
  409. package/types/ngwr-tree.d.ts +333 -12
  410. package/types/ngwr-utils.d.ts +28 -0
  411. package/types/ngwr-version.d.ts +1 -1
  412. package/types/ngwr-window.d.ts +7 -4
@@ -117,6 +117,28 @@ export declare function wrToHex(rgb: WrRgb, withAlpha?: boolean): string;
117
117
  * `[(value)]` binding round-trips its own output.
118
118
  */
119
119
  type WrColorFormat = 'hex' | 'rgba' | 'hsla';
120
+ /**
121
+ * @license
122
+ *
123
+ * Use of this source code is governed by an MIT-style license that can be
124
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
125
+ */
126
+ /** Size of a `<wr-color-picker>` panel. */
127
+ type WrColorPickerSize = 'sm' | 'md' | 'lg';
128
+ /**
129
+ * @license
130
+ *
131
+ * Use of this source code is governed by an MIT-style license that can be
132
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
133
+ */
134
+ /**
135
+ * A preset colour in `<wr-color-picker>`'s `swatches`: a bare colour string, or
136
+ * a colour with the name its button announces. A bare string announces itself.
137
+ */
138
+ type WrColorPickerSwatch = string | {
139
+ readonly value: string;
140
+ readonly label: string;
141
+ };
120
142
  type Tab = 'hex' | 'rgb' | 'hsl';
121
143
  type Edges = 'sv' | 'hue' | 'alpha';
122
144
  /**
@@ -180,8 +202,41 @@ export declare class WrColorPicker implements FormValueControl<string> {
180
202
  * three are accepted on the way in whichever one is set. @default 'hex'
181
203
  */
182
204
  readonly format: import("@angular/core").InputSignal<WrColorFormat>;
183
- /** Preset hex colours rendered as a clickable row beneath the inputs. Empty = no row. @default [] */
184
- readonly swatches: import("@angular/core").InputSignal<readonly string[]>;
205
+ /**
206
+ * Preset hex colours rendered as a clickable row beneath the inputs. Empty =
207
+ * no row. An entry is a colour string, or `{ value, label }` to give its
208
+ * button a name: a bare string announces itself, `#3366ff`.
209
+ *
210
+ * @default []
211
+ */
212
+ readonly swatches: import("@angular/core").InputSignal<readonly WrColorPickerSwatch[]>;
213
+ /** The presets, each with the name its button announces. */
214
+ protected readonly presets: import("@angular/core").Signal<{
215
+ value: string;
216
+ label: string;
217
+ named: boolean;
218
+ }[]>;
219
+ /**
220
+ * The swatch the picker's one tooltip is for, and its name. A bare string has
221
+ * none: its value is already its accessible name and a tooltip would only
222
+ * repeat it. `aria-describedby` lands on the tooltip's hidden host, so the
223
+ * button keeps `aria-label` as its only name and nothing is read twice.
224
+ */
225
+ protected readonly tip: import("@angular/core").WritableSignal<{
226
+ readonly el: HTMLElement;
227
+ readonly text: string;
228
+ } | null>;
229
+ private readonly swatchRow;
230
+ private readonly modality;
231
+ private readonly platformId;
232
+ /**
233
+ * Panel size: its width, padding, the saturation surface and the thumbs. The
234
+ * preset buttons follow the width. The format tabs and the channel fields
235
+ * keep their size.
236
+ *
237
+ * @default 'md'
238
+ */
239
+ readonly size: import("@angular/core").InputSignal<WrColorPickerSize>;
185
240
  /** The selected colour as a string. Bound by `[formField]`, or two-way via `[(value)]`. */
186
241
  readonly value: import("@angular/core").ModelSignal<string>;
187
242
  /** Emitted on blur so a bound field can mark itself touched. */
@@ -287,6 +342,7 @@ export declare class WrColorPicker implements FormValueControl<string> {
287
342
  */
288
343
  private lastEmitted;
289
344
  private readonly area;
345
+ private onSwatchTarget;
290
346
  constructor();
291
347
  /**
292
348
  * Focus the picker — what Signal Forms calls to focus this control, from
@@ -386,6 +442,11 @@ export declare class WrColorPicker implements FormValueControl<string> {
386
442
  "required": false;
387
443
  "isSignal": true;
388
444
  };
445
+ "size": {
446
+ "alias": "size";
447
+ "required": false;
448
+ "isSignal": true;
449
+ };
389
450
  "value": {
390
451
  "alias": "value";
391
452
  "required": false;
@@ -401,7 +462,7 @@ export declare class WrColorPicker implements FormValueControl<string> {
401
462
  *
402
463
  * Apply to any clickable element (typically a button). Two-way binds the
403
464
  * current colour through `[(value)]`; forwards `alpha` / `format` /
404
- * `swatches` / `disabled` to the inner picker.
465
+ * `swatches` / `size` / `disabled` to the inner picker.
405
466
  *
406
467
  * Same overlay isolation as the rest of the lib — uses {@link WR_OVERLAY},
407
468
  * not CDK's root container.
@@ -426,7 +487,9 @@ export declare class WrColorPickerTrigger {
426
487
  /** Forwarded to the inner picker. @default 'hex' */
427
488
  readonly format: import("@angular/core").InputSignal<WrColorFormat>;
428
489
  /** Forwarded to the inner picker. @default [] */
429
- readonly swatches: import("@angular/core").InputSignal<readonly string[]>;
490
+ readonly swatches: import("@angular/core").InputSignal<readonly WrColorPickerSwatch[]>;
491
+ /** Forwarded to the inner picker: the size of the panel this opens. @default 'md' */
492
+ readonly size: import("@angular/core").InputSignal<WrColorPickerSize>;
430
493
  /** Disable the trigger entirely. @default false */
431
494
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
432
495
  /**
@@ -457,7 +520,9 @@ export declare class WrColorPickerTrigger {
457
520
  * simply reads as `ltr`.
458
521
  */
459
522
  private readonly dir;
460
- protected readonly isOpen: import("@angular/core").WritableSignal<boolean>;
523
+ private readonly openState;
524
+ /** Whether the picker panel is open. Read-only: `open()` and `close()` change it. */
525
+ readonly isOpen: import("@angular/core").Signal<boolean>;
461
526
  private overlayRef;
462
527
  /** @internal Public so the host binding can read it. */
463
528
  protected readonly panelId: string;
@@ -491,6 +556,11 @@ export declare class WrColorPickerTrigger {
491
556
  "required": false;
492
557
  "isSignal": true;
493
558
  };
559
+ "size": {
560
+ "alias": "size";
561
+ "required": false;
562
+ "isSignal": true;
563
+ };
494
564
  "disabled": {
495
565
  "alias": "disabled";
496
566
  "required": false;
@@ -507,4 +577,4 @@ export declare class WrColorPickerTrigger {
507
577
  "closed": "closed";
508
578
  }, never, never, true, never>;
509
579
  }
510
- export type { WrColorFormat, WrHsl, WrHsv, WrRgb };
580
+ export type { WrColorFormat, WrColorPickerSize, WrColorPickerSwatch, WrHsl, WrHsv, WrRgb };
@@ -0,0 +1,72 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ /** Narrows which `<wr-compare>` a harness query matches. */
3
+ interface WrCompareHarnessFilters extends BaseHarnessFilters {
4
+ /** Match the divider's accessible name: a string is an exact match, a RegExp is tested. */
5
+ readonly label?: string | RegExp;
6
+ /** Match the axis the divider moves along. */
7
+ readonly orientation?: 'horizontal' | 'vertical';
8
+ /** Match only enabled (`false`) or only disabled (`true`) sliders. */
9
+ readonly disabled?: boolean;
10
+ }
11
+ /**
12
+ * Test harness for `<wr-compare>`, the before/after slider.
13
+ *
14
+ * The position is read from the slider's `aria-valuenow`, in whole percent,
15
+ * and written with the keyboard. There is no `dragTo()`: a drag divides the
16
+ * pointer's offset by the host's measured width, a unit test has no layout, and
17
+ * the component keeps its position when the host measures zero, so a dragging
18
+ * method would resolve having moved nothing.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const compare = await loader.getHarness(WrCompareHarness);
23
+ *
24
+ * await compare.setPosition(30);
25
+ * expect(await compare.getPosition()).toBe(30);
26
+ * ```
27
+ *
28
+ * @see https://ngwr.dev/guides/testing
29
+ */
30
+ export declare class WrCompareHarness extends ComponentHarness {
31
+ static hostSelector: string;
32
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
33
+ static with(options?: WrCompareHarnessFilters): HarnessPredicate<WrCompareHarness>;
34
+ private readonly slider;
35
+ /** The divider position in whole percent, from `aria-valuenow`. */
36
+ getPosition(): Promise<number>;
37
+ /** The lowest position the divider may reach, from `aria-valuemin`. */
38
+ getMinPosition(): Promise<number>;
39
+ /** The highest position the divider may reach, from `aria-valuemax`. */
40
+ getMaxPosition(): Promise<number>;
41
+ /** The axis the divider moves along, from `aria-orientation`. */
42
+ getOrientation(): Promise<'horizontal' | 'vertical'>;
43
+ /** The slider's accessible name. */
44
+ getLabel(): Promise<string | null>;
45
+ /** Whether the slider refuses interaction, from `aria-disabled`. */
46
+ isDisabled(): Promise<boolean>;
47
+ /** Whether the round drag handle is drawn on the divider (`showHandle`). */
48
+ hasHandle(): Promise<boolean>;
49
+ /** The text of the "before" layer, trimmed. */
50
+ getBeforeText(): Promise<string>;
51
+ /** The text of the "after" layer, trimmed. */
52
+ getAfterText(): Promise<string>;
53
+ /** Move keyboard focus to the slider. */
54
+ focus(): Promise<void>;
55
+ /** Whether the slider holds focus. */
56
+ isFocused(): Promise<boolean>;
57
+ /**
58
+ * Walk the divider to `target` with the keys a user has: Home and End for the
59
+ * bounds, Shift+arrow for tens, an arrow for ones.
60
+ *
61
+ * Which arrow grows the position depends on the orientation and on the reading
62
+ * direction, which a harness cannot read, so the walk watches where each press
63
+ * lands and turns around when the first one went the wrong way.
64
+ *
65
+ * Throws for a target outside `[min, max]`, for a fractional one (a key lands
66
+ * on a whole percent) and when the divider stops moving, which is what a
67
+ * disabled slider does.
68
+ */
69
+ setPosition(target: number): Promise<void>;
70
+ private numeric;
71
+ }
72
+ export type { WrCompareHarnessFilters };
@@ -1,5 +1,6 @@
1
1
  import { BaseHarnessFilters, ComponentHarness, HarnessLoader, HarnessPredicate, TestElement } from "@angular/cdk/testing";
2
2
  import { WrCalendarDayHarness as WrDatePickerDayHarness } from "ngwr/calendar/testing";
3
+ import { WrDatePickerMode, WrDateRangePickerMode } from "ngwr/date-picker";
3
4
  /** Column order inside the stepper, which is also the order the boxes render in. */
4
5
  declare const UNITS: readonly ["hours", "minutes", "seconds"];
5
6
  /** One unit of a time stepper. */
@@ -103,10 +104,12 @@ declare abstract class WrDatePickerHarnessBase extends ComponentHarness {
103
104
  */
104
105
  getPanelAriaLabel(): Promise<string | null>;
105
106
  /**
106
- * Which of the calendar's three views is showing. The header label zooms out
107
- * (day → month → year); picking a month or a year zooms back in.
107
+ * Which of the calendar's views is showing. The header label zooms out
108
+ * (day, then month, then year); picking a month or a year zooms back in. A period
109
+ * mode opens on the view it picks from, and `quarter` exists only in
110
+ * `mode="quarter"`.
108
111
  */
109
- getView(): Promise<'day' | 'month' | 'year'>;
112
+ getView(): Promise<'day' | 'month' | 'quarter' | 'year'>;
110
113
  /**
111
114
  * The calendar's header: `'January 2025'` in the day view, `'2025'` in the month
112
115
  * view, `'2016 – 2027'` in the year view.
@@ -129,6 +132,17 @@ declare abstract class WrDatePickerHarnessBase extends ComponentHarness {
129
132
  zoomOut(): Promise<void>;
130
133
  /** Pick a month in the month view, by 0-based index or by the label the calendar renders. */
131
134
  selectMonth(month: number | string): Promise<void>;
135
+ /**
136
+ * Pick a quarter, 1 to 4, of the year in the header. `mode="quarter"` only:
137
+ * no other mode has a quarter view.
138
+ */
139
+ selectQuarter(quarter: 1 | 2 | 3 | 4): Promise<void>;
140
+ /**
141
+ * Pick the week holding a day of the month on show. `mode="week"` only: the
142
+ * click is a day click, and what makes it a week is the mode, so in any other
143
+ * mode this throws rather than quietly picking a day.
144
+ */
145
+ selectWeek(dayOfMonth: number): Promise<void>;
132
146
  /** Pick a year in the year view. Only the twelve on show can be picked. */
133
147
  selectYear(year: number): Promise<void>;
134
148
  /**
@@ -205,7 +219,7 @@ export declare class WrDateRangePickerHarness extends WrDatePickerHarnessBase {
205
219
  static with(options?: WrDateRangePickerHarnessFilters): HarnessPredicate<WrDateRangePickerHarness>;
206
220
  protected readonly harnessName = "WrDateRangePickerHarness";
207
221
  /** Which mode the picker is in, read from the `wr-date-range-picker--*` modifier. */
208
- getMode(): Promise<'date' | 'datetime'>;
222
+ getMode(): Promise<WrDateRangePickerMode>;
209
223
  /** What the start field is showing — `''` while that end is unpicked. */
210
224
  getStartText(): Promise<string>;
211
225
  /** What the end field is showing — `''` while that end is unpicked. */
@@ -256,6 +270,23 @@ export declare class WrDateRangePickerHarness extends WrDatePickerHarnessBase {
256
270
  stepTime(end: WrDateRangePickerEnd, unit: 'hours' | 'minutes' | 'seconds', direction: 1 | -1): Promise<void>;
257
271
  /** Flip one end between AM and PM. Throws in 24-hour mode, which has no such control. */
258
272
  toggleMeridiem(end: WrDateRangePickerEnd): Promise<void>;
273
+ /**
274
+ * The labels of the `[presets]` in the open popup, in the order they render —
275
+ * empty when the picker has none.
276
+ */
277
+ getPresets(): Promise<string[]>;
278
+ /**
279
+ * The label of the preset marked `aria-pressed` — the one whose range equals
280
+ * the value — or `null` when the value matches none.
281
+ */
282
+ getActivePreset(): Promise<string | null>;
283
+ /**
284
+ * Click a preset by its label. That commits the range and closes the popup.
285
+ * Throws for a label the popup does not show, and for a preset the picker
286
+ * disabled because it reaches outside `minDate` / `maxDate`.
287
+ */
288
+ selectPreset(label: string): Promise<void>;
289
+ private presetButtons;
259
290
  private type;
260
291
  /** The two fields are addressed by position, which is the order they render in. */
261
292
  private field;
@@ -291,7 +322,7 @@ interface WrDatePickerHarnessFilters extends BaseHarnessFilters {
291
322
  /** Match the field's placeholder — a string is an exact match, a RegExp is tested. */
292
323
  readonly placeholder?: string | RegExp;
293
324
  /** Match one mode only. */
294
- readonly mode?: 'date' | 'time' | 'datetime';
325
+ readonly mode?: WrDatePickerMode;
295
326
  /** Match only enabled (`false`) or only disabled (`true`) pickers. */
296
327
  readonly disabled?: boolean;
297
328
  /** Match only pickers whose popup is up (`true`) or down (`false`). */
@@ -304,7 +335,7 @@ interface WrDateRangePickerHarnessFilters extends BaseHarnessFilters {
304
335
  /** Match the text in the END field. A string is an exact match, a RegExp is tested. */
305
336
  readonly endText?: string | RegExp;
306
337
  /** Match one mode only. The range picker has no `time` mode. */
307
- readonly mode?: 'date' | 'datetime';
338
+ readonly mode?: WrDateRangePickerMode;
308
339
  /** Match only enabled (`false`) or only disabled (`true`) pickers. */
309
340
  readonly disabled?: boolean;
310
341
  /** Match only pickers whose popup is up (`true`) or down (`false`). */
@@ -350,7 +381,8 @@ interface WrDatePickerTimeFields {
350
381
  }
351
382
  /**
352
383
  * Test harness for `<wr-date-picker>` — the `date`, `time` and `datetime` modes
353
- * of the one component.
384
+ * of the one component, and its period modes: `selectMonth()`, `selectYear()`,
385
+ * `selectQuarter()` and `selectWeek()` are the pick where the mode makes them one.
354
386
  *
355
387
  * The popup is NOT inside the picker: it is a pane in the overlay container, a
356
388
  * sibling of the whole app. Everything inside it is therefore reached through the
@@ -382,7 +414,7 @@ export declare class WrDatePickerHarness extends WrDatePickerHarnessBase {
382
414
  static with(options?: WrDatePickerHarnessFilters): HarnessPredicate<WrDatePickerHarness>;
383
415
  protected readonly harnessName = "WrDatePickerHarness";
384
416
  /** Which mode the picker is in, read from the `wr-date-picker--*` modifier. */
385
- getMode(): Promise<'date' | 'time' | 'datetime'>;
417
+ getMode(): Promise<WrDatePickerMode>;
386
418
  /**
387
419
  * What the field is showing: the value in the picker's `format`, or `''` when it
388
420
  * is empty and the placeholder is up.
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import { ElementRef, Signal } from "@angular/core";
3
3
  import { WrClassInput } from "ngwr/utils";
4
4
  import { FormValueControl } from "@angular/forms/signals";
5
- import { WrDateFormat } from "ngwr/date";
5
+ import { WrDateAdapter, WrDateFormat } from "ngwr/date";
6
6
  /**
7
7
  * @license
8
8
  *
@@ -52,6 +52,27 @@ type WrDateInputError = {
52
52
  type WrDateRangeInputError = WrDateInputError & {
53
53
  readonly end: 'start' | 'end';
54
54
  };
55
+ /**
56
+ * @license
57
+ *
58
+ * Use of this source code is governed by an MIT-style license that can be
59
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
60
+ */
61
+ /**
62
+ * What `<wr-date-picker>` picks:
63
+ *
64
+ * - `date`, `time`, `datetime`: a day, a time of day, or both
65
+ * - `week`, `month`, `quarter`, `year`: a period, held as its first day
66
+ */
67
+ type WrDatePickerMode = 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year';
68
+ /**
69
+ * What each end of `<wr-date-range-picker>` picks:
70
+ *
71
+ * - `date`, `datetime`: a day, or a day and a time
72
+ * - `month`, `quarter`, `year`: a period. The range runs from the first day of
73
+ * the start period to the last day of the end period.
74
+ */
75
+ type WrDateRangePickerMode = 'date' | 'datetime' | 'month' | 'quarter' | 'year';
55
76
  /**
56
77
  * @license
57
78
  *
@@ -74,6 +95,38 @@ type WrDatePickerSize = 'sm' | 'md' | 'lg';
74
95
  * `WrCalendarRange`, which the picker forwards it to.
75
96
  */
76
97
  type WrDateRange = readonly [Date | null, Date | null];
98
+ /** What a preset's range function is called with. */
99
+ interface WrDateRangePresetContext {
100
+ /**
101
+ * The picker's adapter. In `datetime` mode it reads the display time zone of
102
+ * `withDates({ timeZone })`, so day maths done through it lands on that
103
+ * zone's days.
104
+ */
105
+ readonly adapter: WrDateAdapter<Date>;
106
+ /**
107
+ * The start of today, read when the panel opens. With a display time zone it
108
+ * is the zone's today: a browser-local day in `date` mode, the zone's
109
+ * midnight in `datetime` mode.
110
+ */
111
+ readonly today: Date;
112
+ }
113
+ /** A range worked out when the panel opens, such as one relative to today. */
114
+ type WrDateRangePresetFn = (context: WrDateRangePresetContext) => readonly [Date, Date];
115
+ /**
116
+ * A one-click range in the panel of `<wr-date-range-picker>`.
117
+ *
118
+ * `label` is the app's own text. `range` is a fixed pair, or a function for a
119
+ * range that depends on today: `wrLastDays`, `wrThisWeek`, `wrThisMonth` and
120
+ * `wrLastMonth` return one.
121
+ *
122
+ * In `date` mode both ends are cut to whole days. In `datetime` mode the pair
123
+ * is committed as given; the helpers run from 00:00:00 on the first day to
124
+ * 23:59:59 on the last.
125
+ */
126
+ interface WrDateRangePreset {
127
+ readonly label: string;
128
+ readonly range: readonly [Date, Date] | WrDateRangePresetFn;
129
+ }
77
130
  /**
78
131
  * Unified date / time / date-time picker. Same `<input>` + popover skeleton
79
132
  * for every mode — the overlay content swaps based on `[mode]`:
@@ -84,6 +137,19 @@ type WrDateRange = readonly [Date | null, Date | null];
84
137
  * Stays open while editing; close with outside-click or Escape.
85
138
  * - `'datetime'` — popover stacks calendar + time stepper. Picking a date
86
139
  * does NOT close (the user typically wants to set the time next).
140
+ * - `'month'`, `'quarter'`, `'year'`: popover renders that view of the
141
+ * calendar, and a pick closes it. The value is the first day of the period
142
+ * and the field shows the period: `March 2026`, `Q1 2026`, `2026`.
143
+ * - `'week'`: popover renders the day grid, where hovering and picking take a
144
+ * whole week. The value is the week's first day and the field shows
145
+ * `Week 12, 2026`. A week starts on the adapter's first day of the week and
146
+ * week 1 holds 4 January, which with Monday first is the ISO week.
147
+ *
148
+ * In a period mode `min`, `max` and `dateFilter` refuse a period only when
149
+ * they refuse every day in it, and the field reads back what it writes, so a
150
+ * period can be typed. Its text is built from the adapter's month names and
151
+ * year and arranged by the i18n catalog; `[format]`, when set, replaces it,
152
+ * and the date typed in that format stands for the period it is in.
87
153
  *
88
154
  * A signal-forms native control: it implements `FormValueControl<Date | null>`,
89
155
  * so `[formField]` binds straight to its `value` model — no
@@ -123,20 +189,32 @@ type WrDateRange = readonly [Date | null, Date | null];
123
189
  * @see https://ngwr.dev/reference/components/date-picker
124
190
  */
125
191
  export declare class WrDatePicker implements FormValueControl<Date | null> {
126
- /** Picker behavior — see class doc. @default 'date' */
127
- readonly mode: import("@angular/core").InputSignal<"time" | "date" | "datetime">;
192
+ /**
193
+ * What the picker picks: `'date'`, `'time'`, `'datetime'`, or a period held
194
+ * as its first day: `'week'`, `'month'`, `'quarter'`, `'year'`.
195
+ * @default 'date'
196
+ */
197
+ readonly mode: import("@angular/core").InputSignal<WrDatePickerMode>;
128
198
  /**
129
199
  * Format used for both display and parsing. When `null` (default), the
130
200
  * format is derived from `mode` (`shortDate` / `time` / `shortDateTime`),
131
201
  * with the hour cycle of `timeFormat` and the seconds of `showSeconds`
132
202
  * (`time24hSeconds`, …). Pass a named key or raw token string to override.
203
+ * A period mode writes the period when this is `null`, and with a format
204
+ * (`MM.yyyy`) reads the typed date as the period it is in.
133
205
  */
134
206
  readonly format: import("@angular/core").InputSignal<WrDateFormat | (string & {}) | null>;
135
207
  /** Placeholder shown when the input is empty. */
136
208
  readonly placeholder: import("@angular/core").InputSignal<string>;
137
- /** Min selectable date (forwarded to the calendar). Ignored in `time` mode. */
209
+ /**
210
+ * Min selectable date (forwarded to the calendar). Ignored in `time` mode. A
211
+ * period mode refuses a period that ends before it.
212
+ */
138
213
  readonly min: import("@angular/core").InputSignal<Date | undefined>;
139
- /** Max selectable date (forwarded to the calendar). Ignored in `time` mode. */
214
+ /**
215
+ * Max selectable date (forwarded to the calendar). Ignored in `time` mode. A
216
+ * period mode refuses a period that starts after it.
217
+ */
140
218
  readonly max: import("@angular/core").InputSignal<Date | undefined>;
141
219
  /** Predicate to disable specific dates (forwarded to the calendar). Ignored in `time` mode. */
142
220
  readonly dateFilter: import("@angular/core").InputSignal<((date: Date) => boolean) | null>;
@@ -158,6 +236,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
158
236
  * `--wr-control-*` contract. The panel keeps its size. @default 'md'
159
237
  */
160
238
  readonly size: import("@angular/core").InputSignal<WrDatePickerSize>;
239
+ /** Pill-shaped corners on the field. The panel keeps its shape. @default false */
240
+ readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
161
241
  /**
162
242
  * Show a clear (×) button once a date is picked. It is a pointer control: from the
163
243
  * keyboard, emptying the field clears the value. @default false
@@ -206,6 +286,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
206
286
  protected readonly hasValue: Signal<boolean>;
207
287
  /** Whether the popover is currently open. */
208
288
  protected readonly overlayOpen: import("@angular/core").WritableSignal<boolean>;
289
+ /** Whether the popup is open. Read-only: `open()` and `close()` change it. */
290
+ readonly isOpen: Signal<boolean>;
209
291
  /**
210
292
  * Where focus came from, captured as an explicit argument at open time —
211
293
  * never read off `document.activeElement`, which by then may already be the
@@ -223,6 +305,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
223
305
  protected readonly resolvedFormat: Signal<string>;
224
306
  protected readonly isTime: Signal<boolean>;
225
307
  protected readonly isDateTime: Signal<boolean>;
308
+ /** The period a period mode names, `null` in the day and time modes. */
309
+ private readonly period;
226
310
  private readonly labelDate;
227
311
  private readonly labelTime;
228
312
  private readonly labelDateTime;
@@ -258,6 +342,8 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
258
342
  protected readonly panelId: string;
259
343
  protected readonly resolvedPanelLabel: Signal<string>;
260
344
  private readonly refusals;
345
+ /** What the field writes and reads: the adapter's format, or the period in a period mode. */
346
+ private readonly fieldText;
261
347
  private readonly reportToForm;
262
348
  private readonly inputField;
263
349
  /**
@@ -527,6 +613,11 @@ export declare class WrDatePicker implements FormValueControl<Date | null> {
527
613
  "required": false;
528
614
  "isSignal": true;
529
615
  };
616
+ "rounded": {
617
+ "alias": "rounded";
618
+ "required": false;
619
+ "isSignal": true;
620
+ };
530
621
  "clearable": {
531
622
  "alias": "clearable";
532
623
  "required": false;
@@ -591,6 +682,11 @@ type EndRefusals = readonly [WrDateInputError | null, WrDateInputError | null];
591
682
  * date closes the overlay.
592
683
  * - `'datetime'` — popover adds a time stepper per end. Picking dates does NOT
593
684
  * close, since the user typically sets the times next.
685
+ * - `'month'`, `'quarter'`, `'year'`: popover renders that view of the
686
+ * calendar and each pick is a period. The range runs from the first day of
687
+ * the start period to the LAST day of the end period, so it stays an
688
+ * inclusive run of days, as a `date` range is. Each field shows its period
689
+ * (`March 2026`, `Q1 2026`, `2026`) and reads the same text back.
594
690
  *
595
691
  * A signal-forms native control: it implements
596
692
  * `FormValueControl<WrDateRange | null>`, so `[formField]` binds straight to
@@ -614,19 +710,27 @@ type EndRefusals = readonly [WrDateInputError | null, WrDateInputError | null];
614
710
  *
615
711
  * <!-- date + time on both ends -->
616
712
  * <wr-date-range-picker mode="datetime" [(value)]="window" timeFormat="24h" />
713
+ *
714
+ * <!-- one-click ranges, labelled by the app -->
715
+ * <wr-date-range-picker [(value)]="period" [presets]="presets" />
617
716
  * ```
618
717
  *
619
718
  * @see https://ngwr.dev/reference/components/date-picker
620
719
  */
621
720
  export declare class WrDateRangePicker implements FormValueControl<WrDateRange | null> {
622
- /** Picker behavior — see class doc. @default 'date' */
623
- readonly mode: import("@angular/core").InputSignal<"date" | "datetime">;
721
+ /**
722
+ * What each end picks: `'date'`, `'datetime'`, or a period: `'month'`,
723
+ * `'quarter'`, `'year'`. A range of periods runs to the last day of the end
724
+ * period.
725
+ * @default 'date'
726
+ */
727
+ readonly mode: import("@angular/core").InputSignal<WrDateRangePickerMode>;
624
728
  /**
625
729
  * Format used for both display and parsing, on both ends. When `null`
626
730
  * (default), it is derived from `mode` (`shortDate` / `shortDateTime`), with
627
731
  * the hour cycle of `timeFormat` and the seconds of `showSeconds`
628
732
  * (`shortDateTime24hSeconds`, …). Pass a named key or raw token string to
629
- * override.
733
+ * override. A period mode writes the period when this is `null`.
630
734
  */
631
735
  readonly format: import("@angular/core").InputSignal<WrDateFormat | (string & {}) | null>;
632
736
  /** Placeholder for the start input. */
@@ -659,11 +763,29 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
659
763
  * `--wr-control-*` contract. The panel keeps its size. @default 'md'
660
764
  */
661
765
  readonly size: import("@angular/core").InputSignal<WrDatePickerSize>;
766
+ /** Pill-shaped corners on the field. The panel keeps its shape. @default false */
767
+ readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
662
768
  /**
663
769
  * Show a clear (×) button once either end is picked. It is a pointer control: from the
664
770
  * keyboard, emptying both fields clears the value. @default false
665
771
  */
666
772
  readonly clearable: import("@angular/core").InputSignalWithTransform<boolean, any>;
773
+ /**
774
+ * One-click ranges, drawn as a list of buttons on the start side of the
775
+ * panel. A click commits the range, closes the panel and emits `touch`, in
776
+ * both modes. The preset whose range equals the value is marked pressed, and
777
+ * one that reaches outside `minDate` / `maxDate` is disabled. The labels are
778
+ * the app's: the library ships none.
779
+ *
780
+ * A range function is called when the panel opens, with today in the display
781
+ * time zone. `wrLastDays`, `wrThisWeek`, `wrThisMonth` and `wrLastMonth`
782
+ * return one. See {@link WrDateRangePreset} for what each mode commits.
783
+ *
784
+ * @default []
785
+ */
786
+ readonly presets: import("@angular/core").InputSignal<readonly WrDateRangePreset[]>;
787
+ /** Accessible name of the preset list. The library ships none. */
788
+ readonly presetsLabel: import("@angular/core").InputSignal<string | null>;
667
789
  /** Clear (×) button aria-label. Falls back to `common.clear`. */
668
790
  readonly clearLabel: import("@angular/core").InputSignal<string | null>;
669
791
  protected readonly resolvedClear: Signal<string>;
@@ -719,6 +841,8 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
719
841
  protected readonly hasValue: Signal<boolean>;
720
842
  /** Whether the popover is currently open. */
721
843
  protected readonly overlayOpen: import("@angular/core").WritableSignal<boolean>;
844
+ /** Whether the popup is open. Read-only: `open()` and `close()` change it. */
845
+ readonly isOpen: Signal<boolean>;
722
846
  /**
723
847
  * Which element opened the popup — captured as an argument, never read off
724
848
  * `document.activeElement`, which by then may already be the pane. With TWO
@@ -732,6 +856,8 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
732
856
  /** Resolved format — falls back to a mode-appropriate default. */
733
857
  protected readonly resolvedFormat: Signal<string>;
734
858
  protected readonly isDateTime: Signal<boolean>;
859
+ /** The period a period mode names, `null` in `date` and `datetime`. */
860
+ private readonly period;
735
861
  protected readonly triggerLabel: Signal<string>;
736
862
  protected readonly startLabel: Signal<string>;
737
863
  protected readonly endLabel: Signal<string>;
@@ -757,6 +883,8 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
757
883
  protected readonly panelId: string;
758
884
  protected readonly resolvedPanelLabel: Signal<string>;
759
885
  private readonly refusalBuilder;
886
+ /** What each field writes and reads: the adapter's format, or the period in a period mode. */
887
+ private readonly fieldText;
760
888
  private readonly reportToForm;
761
889
  private readonly inputField;
762
890
  /** Why each end's text was not committed. */
@@ -934,8 +1062,17 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
934
1062
  private commitRange;
935
1063
  private current;
936
1064
  private display;
1065
+ /**
1066
+ * The date an end's text names. In a period mode the start field reads the
1067
+ * first day of its period and the end field the last day of its own, which is
1068
+ * what a pick in the panel gives each of them.
1069
+ */
937
1070
  private parseText;
938
- /** Keep `[start, end]` in chronological order once both ends exist. */
1071
+ /**
1072
+ * Keep `[start, end]` in chronological order once both ends exist. Two
1073
+ * periods that swap are widened again, each to the side it has moved to; a
1074
+ * range already in order is left exactly as it was written.
1075
+ */
939
1076
  private normalise;
940
1077
  /**
941
1078
  * Chronological comparison at the precision the mode needs. The adapter's
@@ -1022,11 +1159,26 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
1022
1159
  "required": false;
1023
1160
  "isSignal": true;
1024
1161
  };
1162
+ "rounded": {
1163
+ "alias": "rounded";
1164
+ "required": false;
1165
+ "isSignal": true;
1166
+ };
1025
1167
  "clearable": {
1026
1168
  "alias": "clearable";
1027
1169
  "required": false;
1028
1170
  "isSignal": true;
1029
1171
  };
1172
+ "presets": {
1173
+ "alias": "presets";
1174
+ "required": false;
1175
+ "isSignal": true;
1176
+ };
1177
+ "presetsLabel": {
1178
+ "alias": "presetsLabel";
1179
+ "required": false;
1180
+ "isSignal": true;
1181
+ };
1030
1182
  "clearLabel": {
1031
1183
  "alias": "clearLabel";
1032
1184
  "required": false;
@@ -1064,4 +1216,20 @@ export declare class WrDateRangePicker implements FormValueControl<WrDateRange |
1064
1216
  "closed": "closed";
1065
1217
  }, never, never, true, never>;
1066
1218
  }
1067
- export type { WrDateInputError, WrDatePickerSize, WrDateRange, WrDateRangeInputError };
1219
+ /**
1220
+ * The last `days` days, today included: `wrLastDays(7)` is today and the six
1221
+ * days before it, and `wrLastDays(1)` is today.
1222
+ *
1223
+ * @example
1224
+ * ```ts
1225
+ * readonly presets: WrDateRangePreset[] = [{ label: 'Last 7 days', range: wrLastDays(7) }];
1226
+ * ```
1227
+ */
1228
+ export declare function wrLastDays(days: number): WrDateRangePresetFn;
1229
+ /** The week today is in, from the locale's first day of the week to its last. */
1230
+ export declare function wrThisWeek(): WrDateRangePresetFn;
1231
+ /** The month today is in, from its first day to its last. */
1232
+ export declare function wrThisMonth(): WrDateRangePresetFn;
1233
+ /** The month before the one today is in, from its first day to its last. */
1234
+ export declare function wrLastMonth(): WrDateRangePresetFn;
1235
+ export type { WrDateInputError, WrDatePickerMode, WrDatePickerSize, WrDateRange, WrDateRangeInputError, WrDateRangePickerMode, WrDateRangePreset, WrDateRangePresetContext, WrDateRangePresetFn };