ngwr 15.9.0 → 16.0.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 (375) hide show
  1. package/animations/aurora/styles/_index.scss +1 -1
  2. package/animations/blur-reveal/styles/_index.scss +1 -1
  3. package/animations/decode/styles/_index.scss +1 -1
  4. package/animations/dot-grid/styles/_index.scss +1 -1
  5. package/animations/flow-lines/styles/_index.scss +1 -1
  6. package/animations/fluid-cursor/styles/_index.scss +1 -1
  7. package/animations/{core → internal}/styles/_mixins.scss +1 -1
  8. package/animations/reveal/styles/_index.scss +1 -1
  9. package/animations/ripple-grid/styles/_index.scss +1 -1
  10. package/animations/rotate-reveal/styles/_index.scss +1 -1
  11. package/animations/thread-lines/styles/_index.scss +1 -1
  12. package/animations/typewriter/styles/_index.scss +1 -1
  13. package/copy-value/styles/_index.scss +104 -0
  14. package/date-picker/styles/_index.scss +117 -0
  15. package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
  16. package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
  17. package/fesm2022/ngwr-alert.mjs +2 -2
  18. package/fesm2022/ngwr-alert.mjs.map +1 -1
  19. package/fesm2022/ngwr-animations-aurora.mjs +21 -21
  20. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  21. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  22. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-click-sparks.mjs +2 -2
  24. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  25. package/fesm2022/ngwr-animations-confetti.mjs +5 -5
  26. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-decode.mjs +4 -4
  28. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-destruct.mjs +5 -5
  30. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-dot-grid.mjs +7 -7
  32. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  34. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-flow-lines.mjs +17 -17
  36. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-fluid-cursor.mjs +12 -12
  38. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-glitch.mjs +2 -2
  40. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-marquee.mjs +2 -2
  42. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-orbit.mjs +7 -7
  44. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-reveal.mjs +4 -4
  46. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-ripple-grid.mjs +5 -5
  48. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-rotate-reveal.mjs +4 -4
  50. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-shimmer.mjs +2 -2
  52. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-spotlight.mjs +1 -1
  54. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-thread-lines.mjs +16 -16
  56. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  58. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-typewriter.mjs +4 -4
  60. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  61. package/fesm2022/ngwr-avatar.mjs +3 -3
  62. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  63. package/fesm2022/ngwr-badge.mjs.map +1 -1
  64. package/fesm2022/ngwr-cascader.mjs +43 -20
  65. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  66. package/fesm2022/ngwr-charts-bar-chart.mjs +13 -13
  67. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  68. package/fesm2022/ngwr-charts-boxplot-chart.mjs +9 -9
  69. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  70. package/fesm2022/ngwr-charts-bullet-chart.mjs +8 -8
  71. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-candlestick-chart.mjs +11 -11
  73. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-chart-legend.mjs +2 -2
  75. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-core.mjs +20 -20
  77. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-donut-chart.mjs +2 -2
  79. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-funnel-chart.mjs +6 -6
  81. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  83. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  85. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  86. package/fesm2022/ngwr-charts-line-chart.mjs +10 -10
  87. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-meter-group.mjs +2 -2
  89. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  90. package/fesm2022/ngwr-charts-radar-chart.mjs +11 -11
  91. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  92. package/fesm2022/ngwr-charts-scatter-chart.mjs +10 -10
  93. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  94. package/fesm2022/ngwr-charts-treemap-chart.mjs +4 -4
  95. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  96. package/fesm2022/ngwr-charts-waterfall-chart.mjs +7 -7
  97. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  98. package/fesm2022/ngwr-checkbox.mjs +2 -2
  99. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  100. package/fesm2022/ngwr-collapse.mjs +2 -2
  101. package/fesm2022/ngwr-collapse.mjs.map +1 -1
  102. package/fesm2022/ngwr-color-picker.mjs +52 -52
  103. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-command-palette.mjs +4 -4
  105. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  106. package/fesm2022/ngwr-comment.mjs +2 -2
  107. package/fesm2022/ngwr-comment.mjs.map +1 -1
  108. package/fesm2022/ngwr-compare.mjs +6 -6
  109. package/fesm2022/ngwr-compare.mjs.map +1 -1
  110. package/fesm2022/ngwr-context-menu.mjs +4 -4
  111. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  112. package/fesm2022/ngwr-copy-value-testing.mjs +58 -0
  113. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -0
  114. package/fesm2022/ngwr-copy-value.mjs +196 -0
  115. package/fesm2022/ngwr-copy-value.mjs.map +1 -0
  116. package/fesm2022/ngwr-counter.mjs +3 -3
  117. package/fesm2022/ngwr-counter.mjs.map +1 -1
  118. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  119. package/fesm2022/ngwr-date-picker.mjs +217 -40
  120. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  121. package/fesm2022/ngwr-date.mjs +27 -5
  122. package/fesm2022/ngwr-date.mjs.map +1 -1
  123. package/fesm2022/ngwr-dialog.mjs +32 -3
  124. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  125. package/fesm2022/ngwr-directives.mjs +116 -1
  126. package/fesm2022/ngwr-directives.mjs.map +1 -1
  127. package/fesm2022/ngwr-drawer.mjs +3 -3
  128. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  129. package/fesm2022/ngwr-dropdown.mjs +13 -12
  130. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  131. package/fesm2022/ngwr-editor.mjs +28 -28
  132. package/fesm2022/ngwr-editor.mjs.map +1 -1
  133. package/fesm2022/ngwr-event-calendar.mjs +5 -5
  134. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  135. package/fesm2022/ngwr-file-upload.mjs +8 -8
  136. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  137. package/fesm2022/ngwr-graph.mjs +3 -3
  138. package/fesm2022/ngwr-graph.mjs.map +1 -1
  139. package/fesm2022/ngwr-hotkey.mjs +22 -22
  140. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-ar.mjs +5 -0
  142. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-cs.mjs +5 -0
  144. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-de.mjs +5 -0
  146. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-en.mjs +5 -0
  148. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-es.mjs +5 -0
  150. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-fr.mjs +5 -0
  152. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-he.mjs +5 -0
  154. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-hi.mjs +5 -0
  156. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n-id.mjs +5 -0
  158. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  159. package/fesm2022/ngwr-i18n-it.mjs +5 -0
  160. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  161. package/fesm2022/ngwr-i18n-ja.mjs +5 -0
  162. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  163. package/fesm2022/ngwr-i18n-ko.mjs +5 -0
  164. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  165. package/fesm2022/ngwr-i18n-nl.mjs +5 -0
  166. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  167. package/fesm2022/ngwr-i18n-pl.mjs +5 -0
  168. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  169. package/fesm2022/ngwr-i18n-pt.mjs +5 -0
  170. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  171. package/fesm2022/ngwr-i18n-ru.mjs +5 -0
  172. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  173. package/fesm2022/ngwr-i18n-sv.mjs +5 -0
  174. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  175. package/fesm2022/ngwr-i18n-tr.mjs +5 -0
  176. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  177. package/fesm2022/ngwr-i18n-uk.mjs +5 -0
  178. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  179. package/fesm2022/ngwr-i18n-vi.mjs +5 -0
  180. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  181. package/fesm2022/ngwr-i18n-zh-tw.mjs +5 -0
  182. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  183. package/fesm2022/ngwr-i18n-zh.mjs +5 -0
  184. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  185. package/fesm2022/ngwr-i18n.mjs +2 -2
  186. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  187. package/fesm2022/ngwr-icon.mjs +5 -5
  188. package/fesm2022/ngwr-icon.mjs.map +1 -1
  189. package/fesm2022/ngwr-image-cropper.mjs +11 -11
  190. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  191. package/fesm2022/ngwr-input-number.mjs +4 -4
  192. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  193. package/fesm2022/ngwr-input-otp.mjs +2 -2
  194. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  195. package/fesm2022/ngwr-input.mjs +15 -15
  196. package/fesm2022/ngwr-input.mjs.map +1 -1
  197. package/fesm2022/ngwr-keyboard.mjs +28 -28
  198. package/fesm2022/ngwr-keyboard.mjs.map +1 -1
  199. package/fesm2022/ngwr-knob.mjs +4 -4
  200. package/fesm2022/ngwr-knob.mjs.map +1 -1
  201. package/fesm2022/ngwr-lightbox.mjs +2 -2
  202. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  203. package/fesm2022/ngwr-load-state.mjs +2 -2
  204. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  205. package/fesm2022/ngwr-mention.mjs +6 -6
  206. package/fesm2022/ngwr-mention.mjs.map +1 -1
  207. package/fesm2022/ngwr-meta.mjs +19 -3
  208. package/fesm2022/ngwr-meta.mjs.map +1 -1
  209. package/fesm2022/ngwr-overlay.mjs +3 -3
  210. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  211. package/fesm2022/ngwr-pagination.mjs +7 -5
  212. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  213. package/fesm2022/ngwr-pipes.mjs +3 -5
  214. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  215. package/fesm2022/ngwr-platform.mjs +4 -1
  216. package/fesm2022/ngwr-platform.mjs.map +1 -1
  217. package/fesm2022/ngwr-popconfirm.mjs +6 -5
  218. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  219. package/fesm2022/ngwr-popover.mjs +31 -30
  220. package/fesm2022/ngwr-popover.mjs.map +1 -1
  221. package/fesm2022/ngwr-pull-to-refresh.mjs +2 -2
  222. package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
  223. package/fesm2022/ngwr-qr.mjs +6 -6
  224. package/fesm2022/ngwr-qr.mjs.map +1 -1
  225. package/fesm2022/ngwr-radio.mjs +3 -3
  226. package/fesm2022/ngwr-radio.mjs.map +1 -1
  227. package/fesm2022/ngwr-rating.mjs +10 -10
  228. package/fesm2022/ngwr-rating.mjs.map +1 -1
  229. package/fesm2022/ngwr-schema-form.mjs +15 -5
  230. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  231. package/fesm2022/ngwr-select.mjs +57 -34
  232. package/fesm2022/ngwr-select.mjs.map +1 -1
  233. package/fesm2022/ngwr-sidebar.mjs +3 -3
  234. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  235. package/fesm2022/ngwr-skeleton.mjs +2 -2
  236. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  238. package/fesm2022/ngwr-slider.mjs +13 -13
  239. package/fesm2022/ngwr-slider.mjs.map +1 -1
  240. package/fesm2022/ngwr-sortable-list.mjs +3 -3
  241. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  242. package/fesm2022/ngwr-splitter.mjs +5 -5
  243. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  244. package/fesm2022/ngwr-statistic.mjs +5 -3
  245. package/fesm2022/ngwr-statistic.mjs.map +1 -1
  246. package/fesm2022/ngwr-storage.mjs +6 -4
  247. package/fesm2022/ngwr-storage.mjs.map +1 -1
  248. package/fesm2022/ngwr-switch.mjs +2 -2
  249. package/fesm2022/ngwr-switch.mjs.map +1 -1
  250. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  251. package/fesm2022/ngwr-table.mjs +231 -27
  252. package/fesm2022/ngwr-table.mjs.map +1 -1
  253. package/fesm2022/ngwr-tabs.mjs +2 -2
  254. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  255. package/fesm2022/ngwr-toast-testing.mjs +8 -1
  256. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  257. package/fesm2022/ngwr-toast.mjs +63 -20
  258. package/fesm2022/ngwr-toast.mjs.map +1 -1
  259. package/fesm2022/ngwr-tour.mjs +7 -7
  260. package/fesm2022/ngwr-tour.mjs.map +1 -1
  261. package/fesm2022/ngwr-transfer.mjs +20 -9
  262. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  263. package/fesm2022/ngwr-tree.mjs +64 -24
  264. package/fesm2022/ngwr-tree.mjs.map +1 -1
  265. package/fesm2022/ngwr-utils.mjs +98 -55
  266. package/fesm2022/ngwr-utils.mjs.map +1 -1
  267. package/fesm2022/ngwr-validators.mjs +2 -2
  268. package/fesm2022/ngwr-validators.mjs.map +1 -1
  269. package/fesm2022/ngwr-version.mjs +1 -1
  270. package/fesm2022/ngwr-version.mjs.map +1 -1
  271. package/fesm2022/ngwr-window.mjs +26 -26
  272. package/fesm2022/ngwr-window.mjs.map +1 -1
  273. package/fesm2022/ngwr.mjs.map +1 -1
  274. package/i18n/ar.json +5 -0
  275. package/i18n/cs.json +5 -0
  276. package/i18n/de.json +5 -0
  277. package/i18n/en.json +5 -0
  278. package/i18n/es.json +5 -0
  279. package/i18n/fr.json +5 -0
  280. package/i18n/he.json +5 -0
  281. package/i18n/hi.json +5 -0
  282. package/i18n/id.json +5 -0
  283. package/i18n/it.json +5 -0
  284. package/i18n/ja.json +5 -0
  285. package/i18n/ko.json +5 -0
  286. package/i18n/nl.json +5 -0
  287. package/i18n/pl.json +5 -0
  288. package/i18n/pt.json +5 -0
  289. package/i18n/ru.json +5 -0
  290. package/i18n/sv.json +5 -0
  291. package/i18n/tr.json +5 -0
  292. package/i18n/uk.json +5 -0
  293. package/i18n/vi.json +5 -0
  294. package/i18n/zh-TW.json +5 -0
  295. package/i18n/zh.json +5 -0
  296. package/input-number/styles/_index.scss +6 -0
  297. package/llms-full.txt +31 -19
  298. package/llms.txt +37 -19
  299. package/mcp/providers.js +1 -1
  300. package/package.json +15 -10
  301. package/schematics/icon-set/index.js +3 -3
  302. package/schematics/migrations/v16/index.js +742 -0
  303. package/schematics/migrations.json +5 -0
  304. package/schematics/ng-add/index.js +4 -4
  305. package/schematics/provider/index.js +4 -4
  306. package/schematics/use/symbol-map.json +2 -0
  307. package/select/styles/_index.scss +1 -1
  308. package/skills/ngwr/SKILL.md +6 -4
  309. package/skills/ngwr/references/catalog.md +4 -2
  310. package/skills/ngwr/references/setup.md +10 -9
  311. package/table/styles/_index.scss +85 -29
  312. package/toast/styles/_index.scss +30 -0
  313. package/tree/styles/_index.scss +17 -0
  314. package/types/index-CXbgza47.d.ts +13 -0
  315. package/types/ngwr-animations-aurora.d.ts +1 -1
  316. package/types/ngwr-animations-blur-reveal.d.ts +2 -2
  317. package/types/ngwr-animations-dot-grid.d.ts +1 -2
  318. package/types/ngwr-animations-flow-lines.d.ts +1 -1
  319. package/types/ngwr-animations-fluid-cursor.d.ts +1 -1
  320. package/types/ngwr-animations-reveal.d.ts +4 -8
  321. package/types/ngwr-animations-ripple-grid.d.ts +1 -1
  322. package/types/ngwr-animations-spotlight.d.ts +1 -1
  323. package/types/ngwr-animations-thread-lines.d.ts +1 -1
  324. package/types/ngwr-animations-tilt.d.ts +1 -1
  325. package/types/ngwr-avatar.d.ts +2 -2
  326. package/types/ngwr-badge.d.ts +1 -1
  327. package/types/ngwr-cascader.d.ts +12 -1
  328. package/types/ngwr-charts-boxplot-chart.d.ts +1 -1
  329. package/types/ngwr-charts-bullet-chart.d.ts +2 -2
  330. package/types/ngwr-charts-candlestick-chart.d.ts +1 -1
  331. package/types/ngwr-charts-core.d.ts +12 -12
  332. package/types/ngwr-charts-line-chart.d.ts +2 -2
  333. package/types/ngwr-charts-radar-chart.d.ts +1 -1
  334. package/types/ngwr-charts-scatter-chart.d.ts +2 -2
  335. package/types/ngwr-charts-waterfall-chart.d.ts +1 -1
  336. package/types/ngwr-color-picker.d.ts +12 -12
  337. package/types/ngwr-copy-value-testing.d.ts +87 -0
  338. package/types/ngwr-copy-value.d.ts +95 -0
  339. package/types/ngwr-date-picker-testing.d.ts +3 -3
  340. package/types/ngwr-date-picker.d.ts +97 -1
  341. package/types/ngwr-date.d.ts +44 -3
  342. package/types/ngwr-dialog.d.ts +50 -3
  343. package/types/ngwr-directives.d.ts +40 -0
  344. package/types/ngwr-drawer.d.ts +1 -1
  345. package/types/ngwr-dropdown.d.ts +3 -2
  346. package/types/ngwr-hotkey.d.ts +5 -5
  347. package/types/ngwr-i18n.d.ts +3 -3
  348. package/types/ngwr-icon.d.ts +26 -26
  349. package/types/ngwr-input-number.d.ts +2 -2
  350. package/types/ngwr-input.d.ts +8 -8
  351. package/types/ngwr-load-state.d.ts +6 -6
  352. package/types/ngwr-meta.d.ts +18 -0
  353. package/types/ngwr-pipes.d.ts +6 -4
  354. package/types/ngwr-platform.d.ts +2 -1
  355. package/types/ngwr-popconfirm.d.ts +3 -2
  356. package/types/ngwr-popover.d.ts +4 -3
  357. package/types/ngwr-select.d.ts +33 -18
  358. package/types/ngwr-slider-testing.d.ts +2 -2
  359. package/types/ngwr-slider.d.ts +3 -3
  360. package/types/ngwr-statistic.d.ts +5 -1
  361. package/types/ngwr-storage.d.ts +1 -1
  362. package/types/ngwr-table-testing.d.ts +2 -1
  363. package/types/ngwr-table.d.ts +136 -11
  364. package/types/ngwr-tabs.d.ts +10 -2
  365. package/types/ngwr-toast-testing.d.ts +6 -2
  366. package/types/ngwr-toast.d.ts +33 -5
  367. package/types/ngwr-transfer.d.ts +5 -0
  368. package/types/ngwr-tree.d.ts +22 -2
  369. package/types/ngwr-utils.d.ts +157 -82
  370. package/types/ngwr-validators.d.ts +4 -2
  371. package/types/ngwr-version.d.ts +1 -1
  372. package/types/ngwr.d.ts +1 -0
  373. package/types/pointer-tracker-D7fXxLQL.d.ts +24 -0
  374. package/fesm2022/ngwr-animations-core.mjs.map +0 -1
  375. package/types/ngwr-animations-core.d.ts +0 -294
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { Component, DestroyRef, Directive, ElementRef, Injectable, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
3
3
  import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
4
- import { clamp, getFocusableElements, toClassList, wrCheckStyles } from "ngwr/utils";
5
- import { readI18nText, useI18nFormatter, useI18nText } from "ngwr/i18n";
4
+ import { wrCheckStyles, wrClamp, wrGetFocusableElements, wrToClassList } from "ngwr/utils";
5
+ import { useI18nFormatter, useI18nText, wrReadI18nText } from "ngwr/i18n";
6
6
  import { Directionality } from "@angular/cdk/bidi";
7
7
  import { WR_DATE_LOCALE, WrDateAdapter } from "ngwr/date";
8
8
  import { ScrollStrategyOptions } from "@angular/cdk/overlay";
@@ -170,18 +170,18 @@ var WrTimePanel = class WrTimePanel {
170
170
  return h === 0 ? 12 : h;
171
171
  }, ...ngDevMode ? [{ debugName: "displayHours" }] : /* istanbul ignore next */ []);
172
172
  isPm = computed(() => this.hours() >= 12, ...ngDevMode ? [{ debugName: "isPm" }] : /* istanbul ignore next */ []);
173
- hoursLabel = readI18nText("datePicker.hours", "Hours");
174
- minutesLabel = readI18nText("datePicker.minutes", "Minutes");
175
- secondsLabel = readI18nText("datePicker.seconds", "Seconds");
176
- incrementHoursLabel = readI18nText("datePicker.incrementHours", "Increment hours");
177
- decrementHoursLabel = readI18nText("datePicker.decrementHours", "Decrement hours");
178
- incrementMinutesLabel = readI18nText("datePicker.incrementMinutes", "Increment minutes");
179
- decrementMinutesLabel = readI18nText("datePicker.decrementMinutes", "Decrement minutes");
180
- incrementSecondsLabel = readI18nText("datePicker.incrementSeconds", "Increment seconds");
181
- decrementSecondsLabel = readI18nText("datePicker.decrementSeconds", "Decrement seconds");
182
- toggleAmPmLabel = readI18nText("datePicker.toggleAmPm", "Toggle AM / PM");
183
- amLabel = readI18nText("datePicker.am", "AM");
184
- pmLabel = readI18nText("datePicker.pm", "PM");
173
+ hoursLabel = wrReadI18nText("datePicker.hours", "Hours");
174
+ minutesLabel = wrReadI18nText("datePicker.minutes", "Minutes");
175
+ secondsLabel = wrReadI18nText("datePicker.seconds", "Seconds");
176
+ incrementHoursLabel = wrReadI18nText("datePicker.incrementHours", "Increment hours");
177
+ decrementHoursLabel = wrReadI18nText("datePicker.decrementHours", "Decrement hours");
178
+ incrementMinutesLabel = wrReadI18nText("datePicker.incrementMinutes", "Increment minutes");
179
+ decrementMinutesLabel = wrReadI18nText("datePicker.decrementMinutes", "Decrement minutes");
180
+ incrementSecondsLabel = wrReadI18nText("datePicker.incrementSeconds", "Increment seconds");
181
+ decrementSecondsLabel = wrReadI18nText("datePicker.decrementSeconds", "Decrement seconds");
182
+ toggleAmPmLabel = wrReadI18nText("datePicker.toggleAmPm", "Toggle AM / PM");
183
+ amLabel = wrReadI18nText("datePicker.am", "AM");
184
+ pmLabel = wrReadI18nText("datePicker.pm", "PM");
185
185
  amPmLabel = computed(() => this.isPm() ? this.pmLabel() : this.amLabel(), ...ngDevMode ? [{ debugName: "amPmLabel" }] : /* istanbul ignore next */ []);
186
186
  hoursDisplay = computed(() => padLocale(this.displayHours(), this.locale), ...ngDevMode ? [{ debugName: "hoursDisplay" }] : /* istanbul ignore next */ []);
187
187
  minutesDisplay = computed(() => padLocale(this.minutes(), this.locale), ...ngDevMode ? [{ debugName: "minutesDisplay" }] : /* istanbul ignore next */ []);
@@ -201,9 +201,9 @@ var WrTimePanel = class WrTimePanel {
201
201
  if (Number.isNaN(n)) return;
202
202
  if (this.is12h()) {
203
203
  if (Math.trunc(n) === 0) return;
204
- const h12 = clamp(Math.trunc(n), 1, 12) % 12;
204
+ const h12 = wrClamp(Math.trunc(n), 1, 12) % 12;
205
205
  this.hours.set(this.isPm() ? h12 + 12 : h12);
206
- } else this.hours.set(clamp(Math.trunc(n), 0, 23));
206
+ } else this.hours.set(wrClamp(Math.trunc(n), 0, 23));
207
207
  this.emit();
208
208
  }
209
209
  onMinutesInput(event) {
@@ -211,7 +211,7 @@ var WrTimePanel = class WrTimePanel {
211
211
  if (!raw.trim()) return;
212
212
  const n = readNumber(raw, this.numerals);
213
213
  if (Number.isNaN(n)) return;
214
- this.minutes.set(clamp(Math.trunc(n), 0, 59));
214
+ this.minutes.set(wrClamp(Math.trunc(n), 0, 59));
215
215
  this.emit();
216
216
  }
217
217
  onSecondsInput(event) {
@@ -219,7 +219,7 @@ var WrTimePanel = class WrTimePanel {
219
219
  if (!raw.trim()) return;
220
220
  const n = readNumber(raw, this.numerals);
221
221
  if (Number.isNaN(n)) return;
222
- this.seconds.set(clamp(Math.trunc(n), 0, 59));
222
+ this.seconds.set(wrClamp(Math.trunc(n), 0, 59));
223
223
  this.emit();
224
224
  }
225
225
  onBlur(event, shown) {
@@ -810,7 +810,7 @@ function tabLeavesPane(pane, event) {
810
810
  if (event.key !== "Tab" || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return false;
811
811
  const active = pane.ownerDocument.activeElement;
812
812
  if (!active || !pane.contains(active)) return false;
813
- const all = getFocusableElements(pane);
813
+ const all = wrGetFocusableElements(pane);
814
814
  const at = all.indexOf(active);
815
815
  if (at < 0) return false;
816
816
  return !(event.shiftKey ? all.slice(0, at) : all.slice(at + 1)).some((el) => el.tabIndex >= 0);
@@ -839,6 +839,13 @@ var WrDatePicker = class WrDatePicker {
839
839
  ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
840
840
  transform: (v) => Math.max(1, coerceNumberProperty(v, 1))
841
841
  });
842
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
843
+ clearable = input(false, {
844
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
845
+ transform: coerceBooleanProperty
846
+ });
847
+ clearLabel = input(null, ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
848
+ resolvedClear = useI18nText(this.clearLabel, "common.clear", "Clear");
842
849
  disabled = input(false, {
843
850
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
844
851
  transform: coerceBooleanProperty
@@ -859,7 +866,10 @@ var WrDatePicker = class WrDatePicker {
859
866
  triggerEl = viewChild("trigger", ...ngDevMode ? [{ debugName: "triggerEl" }] : /* istanbul ignore next */ []);
860
867
  value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
861
868
  touch = output();
869
+ opened = output();
870
+ closed = output();
862
871
  text = signal("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
872
+ hasValue = computed(() => this.value() != null, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
863
873
  overlayOpen = signal(false, ...ngDevMode ? [{ debugName: "overlayOpen" }] : /* istanbul ignore next */ []);
864
874
  openedFrom = null;
865
875
  autoFocusPanel = false;
@@ -872,12 +882,12 @@ var WrDatePicker = class WrDatePicker {
872
882
  }, ...ngDevMode ? [{ debugName: "resolvedFormat" }] : /* istanbul ignore next */ []);
873
883
  isTime = computed(() => this.mode() === "time", ...ngDevMode ? [{ debugName: "isTime" }] : /* istanbul ignore next */ []);
874
884
  isDateTime = computed(() => this.mode() === "datetime", ...ngDevMode ? [{ debugName: "isDateTime" }] : /* istanbul ignore next */ []);
875
- labelDate = readI18nText("datePicker.open", "Open calendar");
876
- labelTime = readI18nText("datePicker.openTime", "Open time picker");
877
- labelDateTime = readI18nText("datePicker.openDateTime", "Open date and time picker");
878
- panelLabelDate = readI18nText("datePicker.panel", "Choose date");
879
- panelLabelTime = readI18nText("datePicker.panelTime", "Choose time");
880
- panelLabelDateTime = readI18nText("datePicker.panelDateTime", "Choose date and time");
885
+ labelDate = wrReadI18nText("datePicker.open", "Open calendar");
886
+ labelTime = wrReadI18nText("datePicker.openTime", "Open time picker");
887
+ labelDateTime = wrReadI18nText("datePicker.openDateTime", "Open date and time picker");
888
+ panelLabelDate = wrReadI18nText("datePicker.panel", "Choose date");
889
+ panelLabelTime = wrReadI18nText("datePicker.panelTime", "Choose time");
890
+ panelLabelDateTime = wrReadI18nText("datePicker.panelDateTime", "Choose date and time");
881
891
  ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
882
892
  fieldLabel = useI18nText(this.ariaLabel, "datePicker.open", "Open calendar");
883
893
  resolvedAriaLabel = computed(() => {
@@ -923,6 +933,8 @@ var WrDatePicker = class WrDatePicker {
923
933
  nameLabel = computed(() => this.labelledBy() ? null : this.resolvedAriaLabel(), ...ngDevMode ? [{ debugName: "nameLabel" }] : /* istanbul ignore next */ []);
924
934
  classes = computed(() => {
925
935
  const parts = ["wr-date-picker", `wr-date-picker--${this.mode()}`];
936
+ const size = this.size();
937
+ if (size !== "md") parts.push(`wr-date-picker--${size}`);
926
938
  if (this.disabled()) parts.push("wr-date-picker--disabled");
927
939
  if (this.inputError()) parts.push("wr-date-picker--invalid");
928
940
  return parts.join(" ");
@@ -1014,6 +1026,15 @@ var WrDatePicker = class WrDatePicker {
1014
1026
  this.commitValue(this.withKeptDate(parsed));
1015
1027
  this.refuse(null);
1016
1028
  }
1029
+ clear(event) {
1030
+ event.stopPropagation();
1031
+ if (this.disabled() || this.readonly()) return;
1032
+ this.text.set("");
1033
+ this.commitValue(null);
1034
+ this.refuse(null);
1035
+ this.inputEl().nativeElement.focus();
1036
+ this.touch.emit();
1037
+ }
1017
1038
  withKeptDate(parsed) {
1018
1039
  if (this.mode() !== "time") return parsed;
1019
1040
  const current = this.value();
@@ -1104,6 +1125,13 @@ var WrDatePicker = class WrDatePicker {
1104
1125
  restoreFocus() {
1105
1126
  (this.openedFrom?.isConnected ? this.openedFrom : this.inputEl().nativeElement)?.focus();
1106
1127
  }
1128
+ open() {
1129
+ if (this.disabled() || this.overlayRef) return;
1130
+ this.openOverlay(this.inputEl().nativeElement, false);
1131
+ }
1132
+ close() {
1133
+ if (this.overlayRef) this.closeOverlay();
1134
+ }
1107
1135
  openOverlay(openedFrom = null, autoFocus = false) {
1108
1136
  if (this.overlayRef) return;
1109
1137
  this.openedFrom = openedFrom;
@@ -1141,7 +1169,7 @@ var WrDatePicker = class WrDatePicker {
1141
1169
  this.overlayRef = this.overlay.create({
1142
1170
  positionStrategy,
1143
1171
  scrollStrategy: this.scrollStrategies.reposition(),
1144
- panelClass: toClassList("wr-date-picker-overlay", this.panelClass())
1172
+ panelClass: wrToClassList("wr-date-picker-overlay", this.panelClass())
1145
1173
  });
1146
1174
  wrFollowDirection(this.overlayRef, this.dir, this.injector);
1147
1175
  const pane = this.overlayRef.overlayElement;
@@ -1171,6 +1199,7 @@ var WrDatePicker = class WrDatePicker {
1171
1199
  this.closeOverlay();
1172
1200
  }
1173
1201
  });
1202
+ this.opened.emit();
1174
1203
  }
1175
1204
  attachDate() {
1176
1205
  if (!this.overlayRef) return;
@@ -1234,12 +1263,14 @@ var WrDatePicker = class WrDatePicker {
1234
1263
  this.value.set(next);
1235
1264
  }
1236
1265
  closeOverlay() {
1266
+ const wasOpen = !!this.overlayRef;
1237
1267
  const pane = this.overlayRef?.overlayElement;
1238
1268
  const inside = !!pane && pane.contains(document.activeElement);
1239
1269
  pane?.removeEventListener("focusout", this.onPaneFocusOut);
1240
1270
  this.dispose();
1241
1271
  if (inside) this.restoreFocus();
1242
1272
  if (document.activeElement !== this.inputEl().nativeElement) this.reveal();
1273
+ if (wasOpen) this.closed.emit();
1243
1274
  }
1244
1275
  dispose() {
1245
1276
  if (this.overlayRef) {
@@ -1343,6 +1374,27 @@ var WrDatePicker = class WrDatePicker {
1343
1374
  isRequired: false,
1344
1375
  transformFunction: null
1345
1376
  },
1377
+ size: {
1378
+ classPropertyName: "size",
1379
+ publicName: "size",
1380
+ isSignal: true,
1381
+ isRequired: false,
1382
+ transformFunction: null
1383
+ },
1384
+ clearable: {
1385
+ classPropertyName: "clearable",
1386
+ publicName: "clearable",
1387
+ isSignal: true,
1388
+ isRequired: false,
1389
+ transformFunction: null
1390
+ },
1391
+ clearLabel: {
1392
+ classPropertyName: "clearLabel",
1393
+ publicName: "clearLabel",
1394
+ isSignal: true,
1395
+ isRequired: false,
1396
+ transformFunction: null
1397
+ },
1346
1398
  disabled: {
1347
1399
  classPropertyName: "disabled",
1348
1400
  publicName: "disabled",
@@ -1388,7 +1440,9 @@ var WrDatePicker = class WrDatePicker {
1388
1440
  },
1389
1441
  outputs: {
1390
1442
  value: "valueChange",
1391
- touch: "touch"
1443
+ touch: "touch",
1444
+ opened: "opened",
1445
+ closed: "closed"
1392
1446
  },
1393
1447
  host: { properties: { "class": "classes()" } },
1394
1448
  providers: [WrDateInputField],
@@ -1406,7 +1460,7 @@ var WrDatePicker = class WrDatePicker {
1406
1460
  isSignal: true
1407
1461
  }],
1408
1462
  ngImport: i0,
1409
- template: "<wr-input-group>\n <!--\n A plain textbox, per the APG date-picker-dialog pattern: `aria-haspopup` and\n `aria-expanded` are not permitted on `textbox` and belong to the trigger\n button below, which is the thing that opens the dialog.\n -->\n <input\n #input\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"ownAriaInvalid()\"\n [attr.aria-describedby]=\"ownDescribedBy()\"\n [value]=\"text()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput()\"\n (keydown)=\"onFieldKey($event)\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled()\"\n (click)=\"toggleOverlay()\"\n >\n @if (isTime()) {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <circle cx=\"7\" cy=\"7\" r=\"5.75\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"7\" y1=\"7\" x2=\"7\" y2=\"3.75\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"7\" y1=\"7\" x2=\"9.5\" y2=\"7\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n </svg>\n } @else {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n }\n </button>\n</wr-input-group>\n<!--\n Why a typed entry was refused, for a screen reader: written when the refusal is\n shown (Enter, or leaving the field) and emptied when the text is corrected. Silent\n inside a <wr-form-field> bound to the same control, whose message says it instead,\n and silent when the app's catalog has no `validation.*` sentence for the refusal.\n-->\n<span class=\"wr-date-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n",
1463
+ template: "<wr-input-group>\n <!--\n A plain textbox, per the APG date-picker-dialog pattern: `aria-haspopup` and\n `aria-expanded` are not permitted on `textbox` and belong to the trigger\n button below, which is the thing that opens the dialog.\n -->\n <input\n #input\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [size]=\"size()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"ownAriaInvalid()\"\n [attr.aria-describedby]=\"ownDescribedBy()\"\n [value]=\"text()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput()\"\n (keydown)=\"onFieldKey($event)\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n @if (clearable() && hasValue() && !disabled() && !readonly()) {\n <span\n class=\"wr-date-picker__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clear($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled()\"\n (click)=\"toggleOverlay()\"\n >\n @if (isTime()) {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <circle cx=\"7\" cy=\"7\" r=\"5.75\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"7\" y1=\"7\" x2=\"7\" y2=\"3.75\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"7\" y1=\"7\" x2=\"9.5\" y2=\"7\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n </svg>\n } @else {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n }\n </button>\n</wr-input-group>\n<!--\n Why a typed entry was refused, for a screen reader: written when the refusal is\n shown (Enter, or leaving the field) and emptied when the text is corrected. Silent\n inside a <wr-form-field> bound to the same control, whose message says it instead,\n and silent when the app's catalog has no `validation.*` sentence for the refusal.\n-->\n<span class=\"wr-date-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n",
1410
1464
  dependencies: [
1411
1465
  {
1412
1466
  kind: "directive",
@@ -1448,7 +1502,7 @@ i0.ɵɵngDeclareClassMetadata({
1448
1502
  ],
1449
1503
  providers: [WrDateInputField],
1450
1504
  viewProviders: [WR_DATE_INPUT_FIELD_VIEW_PROVIDER],
1451
- template: "<wr-input-group>\n <!--\n A plain textbox, per the APG date-picker-dialog pattern: `aria-haspopup` and\n `aria-expanded` are not permitted on `textbox` and belong to the trigger\n button below, which is the thing that opens the dialog.\n -->\n <input\n #input\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"ownAriaInvalid()\"\n [attr.aria-describedby]=\"ownDescribedBy()\"\n [value]=\"text()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput()\"\n (keydown)=\"onFieldKey($event)\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled()\"\n (click)=\"toggleOverlay()\"\n >\n @if (isTime()) {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <circle cx=\"7\" cy=\"7\" r=\"5.75\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"7\" y1=\"7\" x2=\"7\" y2=\"3.75\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"7\" y1=\"7\" x2=\"9.5\" y2=\"7\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n </svg>\n } @else {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n }\n </button>\n</wr-input-group>\n<!--\n Why a typed entry was refused, for a screen reader: written when the refusal is\n shown (Enter, or leaving the field) and emptied when the text is corrected. Silent\n inside a <wr-form-field> bound to the same control, whose message says it instead,\n and silent when the app's catalog has no `validation.*` sentence for the refusal.\n-->\n<span class=\"wr-date-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n"
1505
+ template: "<wr-input-group>\n <!--\n A plain textbox, per the APG date-picker-dialog pattern: `aria-haspopup` and\n `aria-expanded` are not permitted on `textbox` and belong to the trigger\n button below, which is the thing that opens the dialog.\n -->\n <input\n #input\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [size]=\"size()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-invalid]=\"ownAriaInvalid()\"\n [attr.aria-describedby]=\"ownDescribedBy()\"\n [value]=\"text()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput()\"\n (keydown)=\"onFieldKey($event)\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n @if (clearable() && hasValue() && !disabled() && !readonly()) {\n <span\n class=\"wr-date-picker__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clear($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled()\"\n (click)=\"toggleOverlay()\"\n >\n @if (isTime()) {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <circle cx=\"7\" cy=\"7\" r=\"5.75\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"7\" y1=\"7\" x2=\"7\" y2=\"3.75\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"7\" y1=\"7\" x2=\"9.5\" y2=\"7\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n </svg>\n } @else {\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n }\n </button>\n</wr-input-group>\n<!--\n Why a typed entry was refused, for a screen reader: written when the refusal is\n shown (Enter, or leaving the field) and emptied when the text is corrected. Silent\n inside a <wr-form-field> bound to the same control, whose message says it instead,\n and silent when the app's catalog has no `validation.*` sentence for the refusal.\n-->\n<span class=\"wr-date-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n"
1452
1506
  }]
1453
1507
  }],
1454
1508
  ctorParameters: () => [],
@@ -1525,6 +1579,30 @@ i0.ɵɵngDeclareClassMetadata({
1525
1579
  required: false
1526
1580
  }]
1527
1581
  }],
1582
+ size: [{
1583
+ type: i0.Input,
1584
+ args: [{
1585
+ isSignal: true,
1586
+ alias: "size",
1587
+ required: false
1588
+ }]
1589
+ }],
1590
+ clearable: [{
1591
+ type: i0.Input,
1592
+ args: [{
1593
+ isSignal: true,
1594
+ alias: "clearable",
1595
+ required: false
1596
+ }]
1597
+ }],
1598
+ clearLabel: [{
1599
+ type: i0.Input,
1600
+ args: [{
1601
+ isSignal: true,
1602
+ alias: "clearLabel",
1603
+ required: false
1604
+ }]
1605
+ }],
1528
1606
  disabled: [{
1529
1607
  type: i0.Input,
1530
1608
  args: [{
@@ -1564,6 +1642,14 @@ i0.ɵɵngDeclareClassMetadata({
1564
1642
  type: i0.Output,
1565
1643
  args: ["touch"]
1566
1644
  }],
1645
+ opened: [{
1646
+ type: i0.Output,
1647
+ args: ["opened"]
1648
+ }],
1649
+ closed: [{
1650
+ type: i0.Output,
1651
+ args: ["closed"]
1652
+ }],
1567
1653
  ariaLabel: [{
1568
1654
  type: i0.Input,
1569
1655
  args: [{
@@ -1612,8 +1698,8 @@ var WrDateRangePanel = class WrDateRangePanel {
1612
1698
  changed = output();
1613
1699
  timeChanged = output();
1614
1700
  adapter = inject(WrDateAdapter);
1615
- startTimeLabel = readI18nText("datePicker.startTime", "Start time");
1616
- endTimeLabel = readI18nText("datePicker.endTime", "End time");
1701
+ startTimeLabel = wrReadI18nText("datePicker.startTime", "Start time");
1702
+ endTimeLabel = wrReadI18nText("datePicker.endTime", "End time");
1617
1703
  pendingStartTime = signal(null, ...ngDevMode ? [{ debugName: "pendingStartTime" }] : /* istanbul ignore next */ []);
1618
1704
  pendingEndTime = signal(null, ...ngDevMode ? [{ debugName: "pendingEndTime" }] : /* istanbul ignore next */ []);
1619
1705
  calendarRange = computed(() => this.value(), ...ngDevMode ? [{ debugName: "calendarRange" }] : /* istanbul ignore next */ []);
@@ -1950,6 +2036,13 @@ var WrDateRangePicker = class WrDateRangePicker {
1950
2036
  ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
1951
2037
  transform: (v) => Math.max(1, coerceNumberProperty(v, 1))
1952
2038
  });
2039
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
2040
+ clearable = input(false, {
2041
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
2042
+ transform: coerceBooleanProperty
2043
+ });
2044
+ clearLabel = input(null, ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
2045
+ resolvedClear = useI18nText(this.clearLabel, "common.clear", "Clear");
1953
2046
  disabled = input(false, {
1954
2047
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1955
2048
  transform: coerceBooleanProperty
@@ -1971,8 +2064,14 @@ var WrDateRangePicker = class WrDateRangePicker {
1971
2064
  triggerEl = viewChild("trigger", ...ngDevMode ? [{ debugName: "triggerEl" }] : /* istanbul ignore next */ []);
1972
2065
  value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1973
2066
  touch = output();
2067
+ opened = output();
2068
+ closed = output();
1974
2069
  startText = signal("", ...ngDevMode ? [{ debugName: "startText" }] : /* istanbul ignore next */ []);
1975
2070
  endText = signal("", ...ngDevMode ? [{ debugName: "endText" }] : /* istanbul ignore next */ []);
2071
+ hasValue = computed(() => {
2072
+ const [start, end] = this.current();
2073
+ return start != null || end != null;
2074
+ }, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
1976
2075
  overlayOpen = signal(false, ...ngDevMode ? [{ debugName: "overlayOpen" }] : /* istanbul ignore next */ []);
1977
2076
  openedFrom = null;
1978
2077
  autoFocusPanel = false;
@@ -1983,11 +2082,11 @@ var WrDateRangePicker = class WrDateRangePicker {
1983
2082
  return clockFormat("shortDateTime", this.timeFormat(), this.showSeconds());
1984
2083
  }, ...ngDevMode ? [{ debugName: "resolvedFormat" }] : /* istanbul ignore next */ []);
1985
2084
  isDateTime = computed(() => this.mode() === "datetime", ...ngDevMode ? [{ debugName: "isDateTime" }] : /* istanbul ignore next */ []);
1986
- triggerLabel = readI18nText("datePicker.openRange", "Open range calendar");
1987
- startLabel = readI18nText("datePicker.rangeStart", "Range start");
1988
- endLabel = readI18nText("datePicker.rangeEnd", "Range end");
1989
- panelLabelRange = readI18nText("datePicker.panelRange", "Choose date range");
1990
- panelLabelRangeDateTime = readI18nText("datePicker.panelRangeDateTime", "Choose date and time range");
2085
+ triggerLabel = wrReadI18nText("datePicker.openRange", "Open range calendar");
2086
+ startLabel = wrReadI18nText("datePicker.rangeStart", "Range start");
2087
+ endLabel = wrReadI18nText("datePicker.rangeEnd", "Range end");
2088
+ panelLabelRange = wrReadI18nText("datePicker.panelRange", "Choose date range");
2089
+ panelLabelRangeDateTime = wrReadI18nText("datePicker.panelRangeDateTime", "Choose date and time range");
1991
2090
  panelAriaLabel = input(null, ...ngDevMode ? [{ debugName: "panelAriaLabel" }] : /* istanbul ignore next */ []);
1992
2091
  panelClass = input(null, ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
1993
2092
  panelId = `wr-date-range-picker-panel-${++rangePanelUid}`;
@@ -2037,6 +2136,8 @@ var WrDateRangePicker = class WrDateRangePicker {
2037
2136
  endDescribedBy = computed(() => this.shownErrors()[1]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "endDescribedBy" }] : /* istanbul ignore next */ []);
2038
2137
  classes = computed(() => {
2039
2138
  const parts = ["wr-date-range-picker", `wr-date-range-picker--${this.mode()}`];
2139
+ const size = this.size();
2140
+ if (size !== "md") parts.push(`wr-date-range-picker--${size}`);
2040
2141
  if (this.disabled()) parts.push("wr-date-range-picker--disabled");
2041
2142
  if (this.shownErrors().some(Boolean)) parts.push("wr-date-range-picker--invalid");
2042
2143
  return parts.join(" ");
@@ -2222,6 +2323,24 @@ var WrDateRangePicker = class WrDateRangePicker {
2222
2323
  this.commitRange(end === 0 ? [parsed, finish] : [start, parsed], { normalise: false });
2223
2324
  this.refuse(end, null);
2224
2325
  }
2326
+ clear(event) {
2327
+ event.stopPropagation();
2328
+ if (this.disabled() || this.readonly()) return;
2329
+ this.startText.set("");
2330
+ this.endText.set("");
2331
+ this.commitRange([null, null], { normalise: false });
2332
+ this.refuse(0, null);
2333
+ this.refuse(1, null);
2334
+ this.startEl().nativeElement.focus();
2335
+ this.touch.emit();
2336
+ }
2337
+ open() {
2338
+ if (this.disabled() || this.readonly() || this.overlayRef) return;
2339
+ this.openOverlay(this.startEl().nativeElement, false);
2340
+ }
2341
+ close() {
2342
+ if (this.overlayRef) this.closeOverlay();
2343
+ }
2225
2344
  openOverlay(openedFrom = null, autoFocus = false) {
2226
2345
  if (this.overlayRef) return;
2227
2346
  this.openedFrom = openedFrom;
@@ -2259,7 +2378,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2259
2378
  this.overlayRef = this.overlay.create({
2260
2379
  positionStrategy,
2261
2380
  scrollStrategy: this.scrollStrategies.reposition(),
2262
- panelClass: toClassList("wr-date-picker-overlay", this.panelClass())
2381
+ panelClass: wrToClassList("wr-date-picker-overlay", this.panelClass())
2263
2382
  });
2264
2383
  wrFollowDirection(this.overlayRef, this.dir, this.injector);
2265
2384
  this.overlayOpen.set(true);
@@ -2294,8 +2413,10 @@ var WrDateRangePicker = class WrDateRangePicker {
2294
2413
  this.closeOverlay();
2295
2414
  }
2296
2415
  });
2416
+ this.opened.emit();
2297
2417
  }
2298
2418
  closeOverlay() {
2419
+ const wasOpen = !!this.overlayRef;
2299
2420
  const pane = this.overlayRef?.overlayElement;
2300
2421
  const doc = this.host.nativeElement.ownerDocument;
2301
2422
  const inside = !!pane && pane.contains(doc.activeElement);
@@ -2304,6 +2425,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2304
2425
  this.commitRange(this.current(), { normalise: true });
2305
2426
  if (inside) this.restoreFocus();
2306
2427
  this.revealFor(doc.activeElement);
2428
+ if (wasOpen) this.closed.emit();
2307
2429
  }
2308
2430
  dispose() {
2309
2431
  if (this.overlayRef) {
@@ -2462,6 +2584,27 @@ var WrDateRangePicker = class WrDateRangePicker {
2462
2584
  isRequired: false,
2463
2585
  transformFunction: null
2464
2586
  },
2587
+ size: {
2588
+ classPropertyName: "size",
2589
+ publicName: "size",
2590
+ isSignal: true,
2591
+ isRequired: false,
2592
+ transformFunction: null
2593
+ },
2594
+ clearable: {
2595
+ classPropertyName: "clearable",
2596
+ publicName: "clearable",
2597
+ isSignal: true,
2598
+ isRequired: false,
2599
+ transformFunction: null
2600
+ },
2601
+ clearLabel: {
2602
+ classPropertyName: "clearLabel",
2603
+ publicName: "clearLabel",
2604
+ isSignal: true,
2605
+ isRequired: false,
2606
+ transformFunction: null
2607
+ },
2465
2608
  disabled: {
2466
2609
  classPropertyName: "disabled",
2467
2610
  publicName: "disabled",
@@ -2500,7 +2643,9 @@ var WrDateRangePicker = class WrDateRangePicker {
2500
2643
  },
2501
2644
  outputs: {
2502
2645
  value: "valueChange",
2503
- touch: "touch"
2646
+ touch: "touch",
2647
+ opened: "opened",
2648
+ closed: "closed"
2504
2649
  },
2505
2650
  host: { properties: { "class": "classes()" } },
2506
2651
  providers: [WrDateInputField],
@@ -2528,7 +2673,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2528
2673
  }
2529
2674
  ],
2530
2675
  ngImport: i0,
2531
- template: "<wr-input-group>\n <input\n #startInput\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [attr.aria-label]=\"startLabel()\"\n [attr.aria-invalid]=\"startAriaInvalid()\"\n [attr.aria-describedby]=\"startDescribedBy()\"\n [value]=\"startText()\"\n [placeholder]=\"startPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(0)\"\n (keydown)=\"onFieldKey($event, 0)\"\n (input)=\"onStartInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"wr-date-range-picker__separator\" aria-hidden=\"true\">{{ separator() }}</span>\n <!--\n `wrDateRangeEnd` hides the surrounding `<wr-form-field>` from this input, so\n only the start one adopts its `controlId` — see the directive for why the\n second half of a range carries no id at all.\n -->\n <input\n #endInput\n wrInput\n wrDateRangeEnd\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [attr.aria-label]=\"endLabel()\"\n [attr.aria-invalid]=\"endAriaInvalid()\"\n [attr.aria-describedby]=\"endDescribedBy()\"\n [value]=\"endText()\"\n [placeholder]=\"endPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(1)\"\n (keydown)=\"onFieldKey($event, 1)\"\n (input)=\"onEndInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <!--\n `readonly` refuses to open the popup, so the trigger is disabled with it —\n otherwise it stays a focusable button advertising `aria-haspopup=\"dialog\"`\n for a dialog it will never show.\n -->\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"toggleOverlay()\"\n (blur)=\"onBlur($event)\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n </button>\n</wr-input-group>\n<!--\n Why a typed end was refused, for a screen reader — the same live region\n <wr-date-picker> carries, written when a refusal is shown and emptied when it is\n corrected. Silent inside a <wr-form-field> bound to the same control, and for a\n refusal the app's catalog has no `validation.*` sentence for.\n-->\n<span class=\"wr-date-range-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n",
2676
+ template: "<wr-input-group>\n <input\n #startInput\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [size]=\"size()\"\n [attr.aria-label]=\"startLabel()\"\n [attr.aria-invalid]=\"startAriaInvalid()\"\n [attr.aria-describedby]=\"startDescribedBy()\"\n [value]=\"startText()\"\n [placeholder]=\"startPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(0)\"\n (keydown)=\"onFieldKey($event, 0)\"\n (input)=\"onStartInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"wr-date-range-picker__separator\" aria-hidden=\"true\">{{ separator() }}</span>\n <!--\n `wrDateRangeEnd` hides the surrounding `<wr-form-field>` from this input, so\n only the start one adopts its `controlId` — see the directive for why the\n second half of a range carries no id at all.\n -->\n <input\n #endInput\n wrInput\n wrDateRangeEnd\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [size]=\"size()\"\n [attr.aria-label]=\"endLabel()\"\n [attr.aria-invalid]=\"endAriaInvalid()\"\n [attr.aria-describedby]=\"endDescribedBy()\"\n [value]=\"endText()\"\n [placeholder]=\"endPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(1)\"\n (keydown)=\"onFieldKey($event, 1)\"\n (input)=\"onEndInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <!-- Pointer-only, as the select's is: emptying both fields is the keyboard way to clear. -->\n @if (clearable() && hasValue() && !disabled() && !readonly()) {\n <span\n class=\"wr-date-picker__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clear($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <!--\n `readonly` refuses to open the popup, so the trigger is disabled with it —\n otherwise it stays a focusable button advertising `aria-haspopup=\"dialog\"`\n for a dialog it will never show.\n -->\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"toggleOverlay()\"\n (blur)=\"onBlur($event)\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n </button>\n</wr-input-group>\n<!--\n Why a typed end was refused, for a screen reader — the same live region\n <wr-date-picker> carries, written when a refusal is shown and emptied when it is\n corrected. Silent inside a <wr-form-field> bound to the same control, and for a\n refusal the app's catalog has no `validation.*` sentence for.\n-->\n<span class=\"wr-date-range-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n",
2532
2677
  dependencies: [
2533
2678
  {
2534
2679
  kind: "directive",
@@ -2576,7 +2721,7 @@ i0.ɵɵngDeclareClassMetadata({
2576
2721
  ],
2577
2722
  providers: [WrDateInputField],
2578
2723
  viewProviders: [WR_DATE_INPUT_FIELD_VIEW_PROVIDER],
2579
- template: "<wr-input-group>\n <input\n #startInput\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [attr.aria-label]=\"startLabel()\"\n [attr.aria-invalid]=\"startAriaInvalid()\"\n [attr.aria-describedby]=\"startDescribedBy()\"\n [value]=\"startText()\"\n [placeholder]=\"startPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(0)\"\n (keydown)=\"onFieldKey($event, 0)\"\n (input)=\"onStartInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"wr-date-range-picker__separator\" aria-hidden=\"true\">{{ separator() }}</span>\n <!--\n `wrDateRangeEnd` hides the surrounding `<wr-form-field>` from this input, so\n only the start one adopts its `controlId` — see the directive for why the\n second half of a range carries no id at all.\n -->\n <input\n #endInput\n wrInput\n wrDateRangeEnd\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [attr.aria-label]=\"endLabel()\"\n [attr.aria-invalid]=\"endAriaInvalid()\"\n [attr.aria-describedby]=\"endDescribedBy()\"\n [value]=\"endText()\"\n [placeholder]=\"endPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(1)\"\n (keydown)=\"onFieldKey($event, 1)\"\n (input)=\"onEndInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <!--\n `readonly` refuses to open the popup, so the trigger is disabled with it —\n otherwise it stays a focusable button advertising `aria-haspopup=\"dialog\"`\n for a dialog it will never show.\n -->\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"toggleOverlay()\"\n (blur)=\"onBlur($event)\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n </button>\n</wr-input-group>\n<!--\n Why a typed end was refused, for a screen reader — the same live region\n <wr-date-picker> carries, written when a refusal is shown and emptied when it is\n corrected. Silent inside a <wr-form-field> bound to the same control, and for a\n refusal the app's catalog has no `validation.*` sentence for.\n-->\n<span class=\"wr-date-range-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n"
2724
+ template: "<wr-input-group>\n <input\n #startInput\n wrInput\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [size]=\"size()\"\n [attr.aria-label]=\"startLabel()\"\n [attr.aria-invalid]=\"startAriaInvalid()\"\n [attr.aria-describedby]=\"startDescribedBy()\"\n [value]=\"startText()\"\n [placeholder]=\"startPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(0)\"\n (keydown)=\"onFieldKey($event, 0)\"\n (input)=\"onStartInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"wr-date-range-picker__separator\" aria-hidden=\"true\">{{ separator() }}</span>\n <!--\n `wrDateRangeEnd` hides the surrounding `<wr-form-field>` from this input, so\n only the start one adopts its `controlId` — see the directive for why the\n second half of a range carries no id at all.\n -->\n <input\n #endInput\n wrInput\n wrDateRangeEnd\n type=\"text\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n class=\"wr-date-range-picker__input\"\n [size]=\"size()\"\n [attr.aria-label]=\"endLabel()\"\n [attr.aria-invalid]=\"endAriaInvalid()\"\n [attr.aria-describedby]=\"endDescribedBy()\"\n [value]=\"endText()\"\n [placeholder]=\"endPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (click)=\"openOnInput(1)\"\n (keydown)=\"onFieldKey($event, 1)\"\n (input)=\"onEndInput($event)\"\n (blur)=\"onBlur($event)\"\n />\n <!-- Pointer-only, as the select's is: emptying both fields is the keyboard way to clear. -->\n @if (clearable() && hasValue() && !disabled() && !readonly()) {\n <span\n class=\"wr-date-picker__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clear($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <!--\n `readonly` refuses to open the popup, so the trigger is disabled with it —\n otherwise it stays a focusable button advertising `aria-haspopup=\"dialog\"`\n for a dialog it will never show.\n -->\n <button\n #trigger\n type=\"button\"\n wrInputSuffix\n class=\"wr-date-picker__trigger\"\n [attr.aria-label]=\"triggerLabel()\"\n [attr.aria-haspopup]=\"'dialog'\"\n [attr.aria-expanded]=\"overlayOpen()\"\n [attr.aria-controls]=\"overlayOpen() ? panelId : null\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"toggleOverlay()\"\n (blur)=\"onBlur($event)\"\n >\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n <rect x=\"1.5\" y=\"2.5\" width=\"11\" height=\"10\" rx=\"1.5\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"1.5\" y1=\"5.5\" x2=\"12.5\" y2=\"5.5\" stroke=\"currentColor\" stroke-width=\"1.2\" />\n <line x1=\"4\" y1=\"1\" x2=\"4\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n <line x1=\"10\" y1=\"1\" x2=\"10\" y2=\"4\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" />\n @if (isDateTime()) {\n <circle cx=\"7\" cy=\"9\" r=\"1.5\" fill=\"currentColor\" />\n }\n </svg>\n </button>\n</wr-input-group>\n<!--\n Why a typed end was refused, for a screen reader — the same live region\n <wr-date-picker> carries, written when a refusal is shown and emptied when it is\n corrected. Silent inside a <wr-form-field> bound to the same control, and for a\n refusal the app's catalog has no `validation.*` sentence for.\n-->\n<span class=\"wr-date-range-picker__sr-only\" role=\"status\" [id]=\"statusId\">{{ announcement() }}</span>\n"
2580
2725
  }]
2581
2726
  }],
2582
2727
  ctorParameters: () => [],
@@ -2669,6 +2814,30 @@ i0.ɵɵngDeclareClassMetadata({
2669
2814
  required: false
2670
2815
  }]
2671
2816
  }],
2817
+ size: [{
2818
+ type: i0.Input,
2819
+ args: [{
2820
+ isSignal: true,
2821
+ alias: "size",
2822
+ required: false
2823
+ }]
2824
+ }],
2825
+ clearable: [{
2826
+ type: i0.Input,
2827
+ args: [{
2828
+ isSignal: true,
2829
+ alias: "clearable",
2830
+ required: false
2831
+ }]
2832
+ }],
2833
+ clearLabel: [{
2834
+ type: i0.Input,
2835
+ args: [{
2836
+ isSignal: true,
2837
+ alias: "clearLabel",
2838
+ required: false
2839
+ }]
2840
+ }],
2672
2841
  disabled: [{
2673
2842
  type: i0.Input,
2674
2843
  args: [{
@@ -2712,6 +2881,14 @@ i0.ɵɵngDeclareClassMetadata({
2712
2881
  type: i0.Output,
2713
2882
  args: ["touch"]
2714
2883
  }],
2884
+ opened: [{
2885
+ type: i0.Output,
2886
+ args: ["opened"]
2887
+ }],
2888
+ closed: [{
2889
+ type: i0.Output,
2890
+ args: ["closed"]
2891
+ }],
2715
2892
  panelAriaLabel: [{
2716
2893
  type: i0.Input,
2717
2894
  args: [{