ngwr 15.9.0 → 16.1.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 (455) 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/badge/styles/_tag.scss +8 -4
  14. package/button/styles/_index.scss +13 -7
  15. package/cascader/styles/_rules.scss +4 -2
  16. package/checkbox/styles/_index.scss +4 -2
  17. package/copy-value/styles/_index.scss +104 -0
  18. package/date-picker/styles/_index.scss +121 -0
  19. package/date-stamp/styles/_index.scss +38 -0
  20. package/dialog/styles/_index.scss +38 -0
  21. package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
  22. package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
  23. package/fesm2022/internal-CVLvP9b_.mjs +33 -0
  24. package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
  25. package/fesm2022/ngwr-alert.mjs +13 -9
  26. package/fesm2022/ngwr-alert.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-aurora.mjs +21 -21
  28. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  30. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-click-sparks.mjs +2 -2
  32. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-confetti.mjs +5 -5
  34. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-decode.mjs +4 -4
  36. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-destruct.mjs +5 -5
  38. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-dot-grid.mjs +7 -7
  40. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  42. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-flow-lines.mjs +17 -17
  44. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-fluid-cursor.mjs +12 -12
  46. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-glitch.mjs +2 -2
  48. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-marquee.mjs +2 -2
  50. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-orbit.mjs +7 -7
  52. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-reveal.mjs +4 -4
  54. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-ripple-grid.mjs +5 -5
  56. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-rotate-reveal.mjs +4 -4
  58. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-shimmer.mjs +2 -2
  60. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  61. package/fesm2022/ngwr-animations-spotlight.mjs +1 -1
  62. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  63. package/fesm2022/ngwr-animations-thread-lines.mjs +16 -16
  64. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  65. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  66. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  67. package/fesm2022/ngwr-animations-typewriter.mjs +4 -4
  68. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  69. package/fesm2022/ngwr-avatar.mjs +14 -10
  70. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  71. package/fesm2022/ngwr-back-top.mjs +10 -6
  72. package/fesm2022/ngwr-back-top.mjs.map +1 -1
  73. package/fesm2022/ngwr-badge.mjs +18 -6
  74. package/fesm2022/ngwr-badge.mjs.map +1 -1
  75. package/fesm2022/ngwr-burger.mjs +9 -6
  76. package/fesm2022/ngwr-burger.mjs.map +1 -1
  77. package/fesm2022/ngwr-button.mjs +8 -4
  78. package/fesm2022/ngwr-button.mjs.map +1 -1
  79. package/fesm2022/ngwr-calendar.mjs +19 -8
  80. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  81. package/fesm2022/ngwr-card.mjs +9 -5
  82. package/fesm2022/ngwr-card.mjs.map +1 -1
  83. package/fesm2022/ngwr-cascader.mjs +54 -25
  84. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  85. package/fesm2022/ngwr-charts-bar-chart.mjs +13 -13
  86. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  87. package/fesm2022/ngwr-charts-boxplot-chart.mjs +9 -9
  88. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  89. package/fesm2022/ngwr-charts-bullet-chart.mjs +8 -8
  90. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  91. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
  92. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  93. package/fesm2022/ngwr-charts-candlestick-chart.mjs +11 -11
  94. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  95. package/fesm2022/ngwr-charts-chart-legend.mjs +2 -2
  96. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  97. package/fesm2022/ngwr-charts-core.mjs +20 -20
  98. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  99. package/fesm2022/ngwr-charts-donut-chart.mjs +2 -2
  100. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  101. package/fesm2022/ngwr-charts-funnel-chart.mjs +6 -6
  102. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  103. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  104. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  105. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  106. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  107. package/fesm2022/ngwr-charts-line-chart.mjs +10 -10
  108. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  109. package/fesm2022/ngwr-charts-meter-group.mjs +2 -2
  110. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  111. package/fesm2022/ngwr-charts-radar-chart.mjs +11 -11
  112. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  113. package/fesm2022/ngwr-charts-scatter-chart.mjs +10 -10
  114. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  115. package/fesm2022/ngwr-charts-treemap-chart.mjs +4 -4
  116. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  117. package/fesm2022/ngwr-charts-waterfall-chart.mjs +7 -7
  118. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  119. package/fesm2022/ngwr-checkbox.mjs +12 -8
  120. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  121. package/fesm2022/ngwr-clipboard.mjs +2 -1
  122. package/fesm2022/ngwr-clipboard.mjs.map +1 -1
  123. package/fesm2022/ngwr-collapse.mjs +11 -7
  124. package/fesm2022/ngwr-collapse.mjs.map +1 -1
  125. package/fesm2022/ngwr-color-picker.mjs +56 -54
  126. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  127. package/fesm2022/ngwr-command-palette.mjs +4 -4
  128. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  129. package/fesm2022/ngwr-comment.mjs +15 -9
  130. package/fesm2022/ngwr-comment.mjs.map +1 -1
  131. package/fesm2022/ngwr-compare.mjs +15 -9
  132. package/fesm2022/ngwr-compare.mjs.map +1 -1
  133. package/fesm2022/ngwr-context-menu.mjs +8 -6
  134. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  135. package/fesm2022/ngwr-copy-value-testing.mjs +58 -0
  136. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -0
  137. package/fesm2022/ngwr-copy-value.mjs +201 -0
  138. package/fesm2022/ngwr-copy-value.mjs.map +1 -0
  139. package/fesm2022/ngwr-counter.mjs +3 -3
  140. package/fesm2022/ngwr-counter.mjs.map +1 -1
  141. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  142. package/fesm2022/ngwr-date-picker.mjs +303 -70
  143. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  144. package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
  145. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
  146. package/fesm2022/ngwr-date-stamp.mjs +149 -0
  147. package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
  148. package/fesm2022/ngwr-date.mjs +304 -53
  149. package/fesm2022/ngwr-date.mjs.map +1 -1
  150. package/fesm2022/ngwr-descriptions.mjs +9 -5
  151. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  152. package/fesm2022/ngwr-dialog-testing.mjs +23 -2
  153. package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
  154. package/fesm2022/ngwr-dialog.mjs +77 -19
  155. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  156. package/fesm2022/ngwr-directives.mjs +218 -12
  157. package/fesm2022/ngwr-directives.mjs.map +1 -1
  158. package/fesm2022/ngwr-divider.mjs +4 -2
  159. package/fesm2022/ngwr-divider.mjs.map +1 -1
  160. package/fesm2022/ngwr-drawer.mjs +32 -6
  161. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  162. package/fesm2022/ngwr-dropdown.mjs +17 -14
  163. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  164. package/fesm2022/ngwr-editor.mjs +33 -30
  165. package/fesm2022/ngwr-editor.mjs.map +1 -1
  166. package/fesm2022/ngwr-event-calendar.mjs +9 -7
  167. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  168. package/fesm2022/ngwr-file-upload.mjs +17 -11
  169. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  170. package/fesm2022/ngwr-form.mjs +18 -6
  171. package/fesm2022/ngwr-form.mjs.map +1 -1
  172. package/fesm2022/ngwr-graph.mjs +3 -3
  173. package/fesm2022/ngwr-graph.mjs.map +1 -1
  174. package/fesm2022/ngwr-hotkey.mjs +22 -22
  175. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-ar.mjs +7 -0
  177. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-cs.mjs +7 -0
  179. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n-de.mjs +7 -0
  181. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  182. package/fesm2022/ngwr-i18n-en.mjs +7 -0
  183. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  184. package/fesm2022/ngwr-i18n-es.mjs +7 -0
  185. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  186. package/fesm2022/ngwr-i18n-fr.mjs +7 -0
  187. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  188. package/fesm2022/ngwr-i18n-he.mjs +7 -0
  189. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  190. package/fesm2022/ngwr-i18n-hi.mjs +7 -0
  191. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  192. package/fesm2022/ngwr-i18n-id.mjs +7 -0
  193. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  194. package/fesm2022/ngwr-i18n-it.mjs +7 -0
  195. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  196. package/fesm2022/ngwr-i18n-ja.mjs +7 -0
  197. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  198. package/fesm2022/ngwr-i18n-ko.mjs +7 -0
  199. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  200. package/fesm2022/ngwr-i18n-nl.mjs +7 -0
  201. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  202. package/fesm2022/ngwr-i18n-pl.mjs +7 -0
  203. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  204. package/fesm2022/ngwr-i18n-pt.mjs +7 -0
  205. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  206. package/fesm2022/ngwr-i18n-ru.mjs +7 -0
  207. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  208. package/fesm2022/ngwr-i18n-sv.mjs +7 -0
  209. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  210. package/fesm2022/ngwr-i18n-tr.mjs +7 -0
  211. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  212. package/fesm2022/ngwr-i18n-uk.mjs +7 -0
  213. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  214. package/fesm2022/ngwr-i18n-vi.mjs +7 -0
  215. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  216. package/fesm2022/ngwr-i18n-zh-tw.mjs +7 -0
  217. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  218. package/fesm2022/ngwr-i18n-zh.mjs +7 -0
  219. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  220. package/fesm2022/ngwr-i18n.mjs +36 -10
  221. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  222. package/fesm2022/ngwr-icon.mjs +5 -5
  223. package/fesm2022/ngwr-icon.mjs.map +1 -1
  224. package/fesm2022/ngwr-image-cropper.mjs +11 -11
  225. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  226. package/fesm2022/ngwr-input-number.mjs +13 -7
  227. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  228. package/fesm2022/ngwr-input-otp.mjs +6 -4
  229. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  230. package/fesm2022/ngwr-input.mjs +35 -25
  231. package/fesm2022/ngwr-input.mjs.map +1 -1
  232. package/fesm2022/ngwr-keyboard.mjs +37 -31
  233. package/fesm2022/ngwr-keyboard.mjs.map +1 -1
  234. package/fesm2022/ngwr-knob.mjs +13 -7
  235. package/fesm2022/ngwr-knob.mjs.map +1 -1
  236. package/fesm2022/ngwr-layout.mjs +13 -5
  237. package/fesm2022/ngwr-layout.mjs.map +1 -1
  238. package/fesm2022/ngwr-lightbox.mjs +11 -7
  239. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  240. package/fesm2022/ngwr-list.mjs +13 -5
  241. package/fesm2022/ngwr-list.mjs.map +1 -1
  242. package/fesm2022/ngwr-load-state.mjs +11 -7
  243. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  244. package/fesm2022/ngwr-mention.mjs +6 -6
  245. package/fesm2022/ngwr-mention.mjs.map +1 -1
  246. package/fesm2022/ngwr-meta.mjs +19 -3
  247. package/fesm2022/ngwr-meta.mjs.map +1 -1
  248. package/fesm2022/ngwr-overlay.mjs +87 -4
  249. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  250. package/fesm2022/ngwr-pagination.mjs +10 -7
  251. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  252. package/fesm2022/ngwr-pipes.mjs +22 -8
  253. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  254. package/fesm2022/ngwr-platform.mjs +4 -1
  255. package/fesm2022/ngwr-platform.mjs.map +1 -1
  256. package/fesm2022/ngwr-popconfirm.mjs +6 -5
  257. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  258. package/fesm2022/ngwr-popover.mjs +124 -34
  259. package/fesm2022/ngwr-popover.mjs.map +1 -1
  260. package/fesm2022/ngwr-progress.mjs +4 -2
  261. package/fesm2022/ngwr-progress.mjs.map +1 -1
  262. package/fesm2022/ngwr-pull-to-refresh.mjs +2 -2
  263. package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
  264. package/fesm2022/ngwr-qr.mjs +6 -6
  265. package/fesm2022/ngwr-qr.mjs.map +1 -1
  266. package/fesm2022/ngwr-radio.mjs +12 -8
  267. package/fesm2022/ngwr-radio.mjs.map +1 -1
  268. package/fesm2022/ngwr-rating.mjs +19 -13
  269. package/fesm2022/ngwr-rating.mjs.map +1 -1
  270. package/fesm2022/ngwr-resizable.mjs +503 -0
  271. package/fesm2022/ngwr-resizable.mjs.map +1 -0
  272. package/fesm2022/ngwr-result.mjs +9 -5
  273. package/fesm2022/ngwr-result.mjs.map +1 -1
  274. package/fesm2022/ngwr-schema-form.mjs +15 -5
  275. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  276. package/fesm2022/ngwr-segmented.mjs +4 -2
  277. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  278. package/fesm2022/ngwr-select.mjs +70 -39
  279. package/fesm2022/ngwr-select.mjs.map +1 -1
  280. package/fesm2022/ngwr-sidebar.mjs +3 -3
  281. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  282. package/fesm2022/ngwr-skeleton.mjs +6 -4
  283. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  284. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  285. package/fesm2022/ngwr-slider.mjs +17 -15
  286. package/fesm2022/ngwr-slider.mjs.map +1 -1
  287. package/fesm2022/ngwr-sortable-list.mjs +3 -3
  288. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  289. package/fesm2022/ngwr-speed-dial.mjs +4 -2
  290. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  291. package/fesm2022/ngwr-spinner.mjs +4 -2
  292. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  293. package/fesm2022/ngwr-splitter.mjs +21 -25
  294. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  295. package/fesm2022/ngwr-statistic.mjs +5 -3
  296. package/fesm2022/ngwr-statistic.mjs.map +1 -1
  297. package/fesm2022/ngwr-stepper.mjs +9 -3
  298. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  299. package/fesm2022/ngwr-storage.mjs +6 -4
  300. package/fesm2022/ngwr-storage.mjs.map +1 -1
  301. package/fesm2022/ngwr-switch.mjs +11 -7
  302. package/fesm2022/ngwr-switch.mjs.map +1 -1
  303. package/fesm2022/ngwr-table-testing.mjs +5 -1
  304. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  305. package/fesm2022/ngwr-table.mjs +396 -35
  306. package/fesm2022/ngwr-table.mjs.map +1 -1
  307. package/fesm2022/ngwr-tabs.mjs +2 -2
  308. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  309. package/fesm2022/ngwr-textarea.mjs +9 -3
  310. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  311. package/fesm2022/ngwr-timeline.mjs +18 -8
  312. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  313. package/fesm2022/ngwr-toast-testing.mjs +14 -2
  314. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  315. package/fesm2022/ngwr-toast.mjs +588 -120
  316. package/fesm2022/ngwr-toast.mjs.map +1 -1
  317. package/fesm2022/ngwr-tour.mjs +7 -7
  318. package/fesm2022/ngwr-tour.mjs.map +1 -1
  319. package/fesm2022/ngwr-transfer.mjs +24 -11
  320. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  321. package/fesm2022/ngwr-tree.mjs +68 -26
  322. package/fesm2022/ngwr-tree.mjs.map +1 -1
  323. package/fesm2022/ngwr-typography.mjs +9 -3
  324. package/fesm2022/ngwr-typography.mjs.map +1 -1
  325. package/fesm2022/ngwr-utils-router.mjs +18 -2
  326. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  327. package/fesm2022/ngwr-utils.mjs +106 -56
  328. package/fesm2022/ngwr-utils.mjs.map +1 -1
  329. package/fesm2022/ngwr-validators.mjs +2 -2
  330. package/fesm2022/ngwr-validators.mjs.map +1 -1
  331. package/fesm2022/ngwr-version.mjs +1 -1
  332. package/fesm2022/ngwr-version.mjs.map +1 -1
  333. package/fesm2022/ngwr-window.mjs +33 -30
  334. package/fesm2022/ngwr-window.mjs.map +1 -1
  335. package/fesm2022/ngwr.mjs.map +1 -1
  336. package/i18n/ar.json +11 -0
  337. package/i18n/cs.json +11 -0
  338. package/i18n/de.json +11 -0
  339. package/i18n/en.json +11 -0
  340. package/i18n/es.json +11 -0
  341. package/i18n/fr.json +11 -0
  342. package/i18n/he.json +11 -0
  343. package/i18n/hi.json +11 -0
  344. package/i18n/id.json +11 -0
  345. package/i18n/it.json +11 -0
  346. package/i18n/ja.json +11 -0
  347. package/i18n/ko.json +11 -0
  348. package/i18n/nl.json +11 -0
  349. package/i18n/pl.json +11 -0
  350. package/i18n/pt.json +11 -0
  351. package/i18n/ru.json +11 -0
  352. package/i18n/sv.json +11 -0
  353. package/i18n/tr.json +11 -0
  354. package/i18n/uk.json +11 -0
  355. package/i18n/vi.json +11 -0
  356. package/i18n/zh-TW.json +11 -0
  357. package/i18n/zh.json +11 -0
  358. package/input/styles/_index.scss +10 -5
  359. package/input-number/styles/_index.scss +12 -3
  360. package/input-otp/styles/_index.scss +4 -2
  361. package/llms-full.txt +54 -23
  362. package/llms.txt +45 -23
  363. package/mcp/providers.js +1 -1
  364. package/package.json +29 -10
  365. package/radio/styles/_index.scss +4 -2
  366. package/resizable/styles/_index.scss +154 -0
  367. package/schematics/icon-set/index.js +3 -3
  368. package/schematics/migrations/v16/index.js +742 -0
  369. package/schematics/migrations.json +5 -0
  370. package/schematics/ng-add/index.js +4 -4
  371. package/schematics/provider/index.js +4 -4
  372. package/schematics/use/rule.js +1 -0
  373. package/schematics/use/symbol-map.json +6 -0
  374. package/select/styles/_index.scss +7 -4
  375. package/skills/ngwr/SKILL.md +6 -4
  376. package/skills/ngwr/references/catalog.md +8 -3
  377. package/skills/ngwr/references/setup.md +13 -9
  378. package/switch/styles/_index.scss +4 -2
  379. package/table/styles/_index.scss +138 -29
  380. package/textarea/styles/_index.scss +4 -2
  381. package/theme/styles/_motion.scss +6 -0
  382. package/toast/styles/_index.scss +49 -0
  383. package/tree/styles/_index.scss +17 -0
  384. package/types/index-CXbgza47.d.ts +13 -0
  385. package/types/ngwr-animations-aurora.d.ts +1 -1
  386. package/types/ngwr-animations-blur-reveal.d.ts +2 -2
  387. package/types/ngwr-animations-dot-grid.d.ts +1 -2
  388. package/types/ngwr-animations-flow-lines.d.ts +1 -1
  389. package/types/ngwr-animations-fluid-cursor.d.ts +1 -1
  390. package/types/ngwr-animations-reveal.d.ts +4 -8
  391. package/types/ngwr-animations-ripple-grid.d.ts +1 -1
  392. package/types/ngwr-animations-spotlight.d.ts +1 -1
  393. package/types/ngwr-animations-thread-lines.d.ts +1 -1
  394. package/types/ngwr-animations-tilt.d.ts +1 -1
  395. package/types/ngwr-avatar.d.ts +2 -2
  396. package/types/ngwr-badge.d.ts +1 -1
  397. package/types/ngwr-burger.d.ts +0 -1
  398. package/types/ngwr-calendar.d.ts +7 -0
  399. package/types/ngwr-cascader.d.ts +12 -1
  400. package/types/ngwr-charts-boxplot-chart.d.ts +1 -1
  401. package/types/ngwr-charts-bullet-chart.d.ts +2 -2
  402. package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
  403. package/types/ngwr-charts-candlestick-chart.d.ts +1 -1
  404. package/types/ngwr-charts-core.d.ts +12 -12
  405. package/types/ngwr-charts-line-chart.d.ts +2 -2
  406. package/types/ngwr-charts-radar-chart.d.ts +1 -1
  407. package/types/ngwr-charts-scatter-chart.d.ts +2 -2
  408. package/types/ngwr-charts-waterfall-chart.d.ts +1 -1
  409. package/types/ngwr-clipboard.d.ts +7 -0
  410. package/types/ngwr-color-picker.d.ts +12 -12
  411. package/types/ngwr-copy-value-testing.d.ts +87 -0
  412. package/types/ngwr-copy-value.d.ts +95 -0
  413. package/types/ngwr-date-picker-testing.d.ts +3 -3
  414. package/types/ngwr-date-picker.d.ts +106 -3
  415. package/types/ngwr-date-stamp-testing.d.ts +47 -0
  416. package/types/ngwr-date-stamp.d.ts +81 -0
  417. package/types/ngwr-date.d.ts +179 -27
  418. package/types/ngwr-dialog-testing.d.ts +10 -0
  419. package/types/ngwr-dialog.d.ts +120 -5
  420. package/types/ngwr-directives.d.ts +76 -1
  421. package/types/ngwr-drawer.d.ts +22 -1
  422. package/types/ngwr-dropdown.d.ts +3 -2
  423. package/types/ngwr-hotkey.d.ts +5 -5
  424. package/types/ngwr-i18n.d.ts +47 -17
  425. package/types/ngwr-icon.d.ts +26 -26
  426. package/types/ngwr-input-number.d.ts +2 -2
  427. package/types/ngwr-input.d.ts +8 -8
  428. package/types/ngwr-load-state.d.ts +6 -6
  429. package/types/ngwr-meta.d.ts +18 -0
  430. package/types/ngwr-overlay.d.ts +36 -0
  431. package/types/ngwr-pipes.d.ts +21 -4
  432. package/types/ngwr-platform.d.ts +2 -1
  433. package/types/ngwr-popconfirm.d.ts +3 -2
  434. package/types/ngwr-popover.d.ts +43 -4
  435. package/types/ngwr-resizable.d.ts +228 -0
  436. package/types/ngwr-select.d.ts +33 -18
  437. package/types/ngwr-slider-testing.d.ts +2 -2
  438. package/types/ngwr-slider.d.ts +3 -3
  439. package/types/ngwr-statistic.d.ts +5 -1
  440. package/types/ngwr-storage.d.ts +1 -1
  441. package/types/ngwr-table-testing.d.ts +5 -2
  442. package/types/ngwr-table.d.ts +255 -14
  443. package/types/ngwr-tabs.d.ts +10 -2
  444. package/types/ngwr-toast-testing.d.ts +18 -3
  445. package/types/ngwr-toast.d.ts +248 -23
  446. package/types/ngwr-transfer.d.ts +5 -0
  447. package/types/ngwr-tree.d.ts +22 -2
  448. package/types/ngwr-utils-router.d.ts +22 -0
  449. package/types/ngwr-utils.d.ts +165 -83
  450. package/types/ngwr-validators.d.ts +4 -2
  451. package/types/ngwr-version.d.ts +1 -1
  452. package/types/ngwr.d.ts +2 -0
  453. package/types/pointer-tracker-D7fXxLQL.d.ts +24 -0
  454. package/fesm2022/ngwr-animations-core.mjs.map +0 -1
  455. package/types/ngwr-animations-core.d.ts +0 -294
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
- import { Component, DestroyRef, Directive, ElementRef, Injectable, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
2
+ import { Component, DestroyRef, Directive, ElementRef, EnvironmentInjector, 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
- import { WR_DATE_LOCALE, WrDateAdapter } from "ngwr/date";
7
+ import { WrDateAdapter, wrDateLocale } from "ngwr/date";
8
8
  import { ScrollStrategyOptions } from "@angular/cdk/overlay";
9
9
  import { ComponentPortal } from "@angular/cdk/portal";
10
10
  import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
@@ -123,9 +123,12 @@ var WrTimePanel = class WrTimePanel {
123
123
  });
124
124
  adapter = inject(WrDateAdapter);
125
125
  host = inject(ElementRef);
126
- locale = inject(WR_DATE_LOCALE);
127
- numerals = numeralsFor(this.locale);
128
- separator = timeSeparatorFor(this.locale);
126
+ dateLocale = wrDateLocale();
127
+ numerals = computed(() => numeralsFor(this.locale), ...ngDevMode ? [{ debugName: "numerals" }] : /* istanbul ignore next */ []);
128
+ get locale() {
129
+ return this.dateLocale();
130
+ }
131
+ separator = computed(() => timeSeparatorFor(this.locale), ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
129
132
  value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
130
133
  touch = output();
131
134
  hours = signal(0, ...ngDevMode ? [{ debugName: "hours" }] : /* istanbul ignore next */ []);
@@ -170,24 +173,24 @@ var WrTimePanel = class WrTimePanel {
170
173
  return h === 0 ? 12 : h;
171
174
  }, ...ngDevMode ? [{ debugName: "displayHours" }] : /* istanbul ignore next */ []);
172
175
  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");
176
+ hoursLabel = wrReadI18nText("datePicker.hours", "Hours");
177
+ minutesLabel = wrReadI18nText("datePicker.minutes", "Minutes");
178
+ secondsLabel = wrReadI18nText("datePicker.seconds", "Seconds");
179
+ incrementHoursLabel = wrReadI18nText("datePicker.incrementHours", "Increment hours");
180
+ decrementHoursLabel = wrReadI18nText("datePicker.decrementHours", "Decrement hours");
181
+ incrementMinutesLabel = wrReadI18nText("datePicker.incrementMinutes", "Increment minutes");
182
+ decrementMinutesLabel = wrReadI18nText("datePicker.decrementMinutes", "Decrement minutes");
183
+ incrementSecondsLabel = wrReadI18nText("datePicker.incrementSeconds", "Increment seconds");
184
+ decrementSecondsLabel = wrReadI18nText("datePicker.decrementSeconds", "Decrement seconds");
185
+ toggleAmPmLabel = wrReadI18nText("datePicker.toggleAmPm", "Toggle AM / PM");
186
+ amLabel = wrReadI18nText("datePicker.am", "AM");
187
+ pmLabel = wrReadI18nText("datePicker.pm", "PM");
185
188
  amPmLabel = computed(() => this.isPm() ? this.pmLabel() : this.amLabel(), ...ngDevMode ? [{ debugName: "amPmLabel" }] : /* istanbul ignore next */ []);
186
189
  hoursDisplay = computed(() => padLocale(this.displayHours(), this.locale), ...ngDevMode ? [{ debugName: "hoursDisplay" }] : /* istanbul ignore next */ []);
187
190
  minutesDisplay = computed(() => padLocale(this.minutes(), this.locale), ...ngDevMode ? [{ debugName: "minutesDisplay" }] : /* istanbul ignore next */ []);
188
191
  secondsDisplay = computed(() => padLocale(this.seconds(), this.locale), ...ngDevMode ? [{ debugName: "secondsDisplay" }] : /* istanbul ignore next */ []);
189
192
  classes = computed(() => {
190
- const parts = ["wr-time-picker"];
193
+ const parts = [];
191
194
  if (this.is12h()) parts.push("wr-time-picker--12h");
192
195
  if (this.showSeconds()) parts.push("wr-time-picker--with-seconds");
193
196
  if (this.effectiveDisabled()) parts.push("wr-time-picker--disabled");
@@ -197,29 +200,29 @@ var WrTimePanel = class WrTimePanel {
197
200
  onHoursInput(event) {
198
201
  const raw = event.target.value;
199
202
  if (!raw.trim()) return;
200
- const n = readNumber(raw, this.numerals);
203
+ const n = readNumber(raw, this.numerals());
201
204
  if (Number.isNaN(n)) return;
202
205
  if (this.is12h()) {
203
206
  if (Math.trunc(n) === 0) return;
204
- const h12 = clamp(Math.trunc(n), 1, 12) % 12;
207
+ const h12 = wrClamp(Math.trunc(n), 1, 12) % 12;
205
208
  this.hours.set(this.isPm() ? h12 + 12 : h12);
206
- } else this.hours.set(clamp(Math.trunc(n), 0, 23));
209
+ } else this.hours.set(wrClamp(Math.trunc(n), 0, 23));
207
210
  this.emit();
208
211
  }
209
212
  onMinutesInput(event) {
210
213
  const raw = event.target.value;
211
214
  if (!raw.trim()) return;
212
- const n = readNumber(raw, this.numerals);
215
+ const n = readNumber(raw, this.numerals());
213
216
  if (Number.isNaN(n)) return;
214
- this.minutes.set(clamp(Math.trunc(n), 0, 59));
217
+ this.minutes.set(wrClamp(Math.trunc(n), 0, 59));
215
218
  this.emit();
216
219
  }
217
220
  onSecondsInput(event) {
218
221
  const raw = event.target.value;
219
222
  if (!raw.trim()) return;
220
- const n = readNumber(raw, this.numerals);
223
+ const n = readNumber(raw, this.numerals());
221
224
  if (Number.isNaN(n)) return;
222
- this.seconds.set(clamp(Math.trunc(n), 0, 59));
225
+ this.seconds.set(wrClamp(Math.trunc(n), 0, 59));
223
226
  this.emit();
224
227
  }
225
228
  onBlur(event, shown) {
@@ -320,9 +323,12 @@ var WrTimePanel = class WrTimePanel {
320
323
  value: "valueChange",
321
324
  touch: "touch"
322
325
  },
323
- host: { properties: { "class": "classes()" } },
326
+ host: {
327
+ properties: { "class": "classes()" },
328
+ classAttribute: "wr-time-picker"
329
+ },
324
330
  ngImport: i0,
325
- template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n",
331
+ template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n",
326
332
  encapsulation: i0.ViewEncapsulation.None
327
333
  });
328
334
  };
@@ -336,8 +342,11 @@ i0.ɵɵngDeclareClassMetadata({
336
342
  args: [{
337
343
  selector: "wr-time-picker",
338
344
  encapsulation: ViewEncapsulation.None,
339
- host: { "[class]": "classes()" },
340
- template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n"
345
+ host: {
346
+ class: "wr-time-picker",
347
+ "[class]": "classes()"
348
+ },
349
+ template: "<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"hoursLabel()\"\n [value]=\"hoursDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onHoursInput($event)\"\n (blur)=\"onBlur($event, hoursDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementHoursLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepHours(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n<span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n<div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"minutesLabel()\"\n [value]=\"minutesDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onMinutesInput($event)\"\n (blur)=\"onBlur($event, minutesDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementMinutesLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepMinutes(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n</div>\n\n@if (showSeconds()) {\n <span class=\"wr-time-picker__sep\" aria-hidden=\"true\">{{ separator() }}</span>\n\n <div class=\"wr-time-picker__col\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"incrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <input\n class=\"wr-time-picker__input\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"secondsLabel()\"\n [value]=\"secondsDisplay()\"\n [disabled]=\"effectiveDisabled()\"\n [readonly]=\"readonly()\"\n (input)=\"onSecondsInput($event)\"\n (blur)=\"onBlur($event, secondsDisplay())\"\n />\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"decrementSecondsLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"stepSeconds(-1)\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n\n@if (is12h()) {\n <div class=\"wr-time-picker__col wr-time-picker__col--ampm\">\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--up\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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 15-6-6-6 6\" />\n </svg>\n </button>\n <span class=\"wr-time-picker__label\" aria-live=\"polite\">{{ amPmLabel() }}</span>\n <button\n type=\"button\"\n class=\"wr-time-picker__step wr-time-picker__step--down\"\n [attr.aria-label]=\"toggleAmPmLabel()\"\n [disabled]=\"!interactive()\"\n (click)=\"toggleAmPm()\"\n >\n <svg\n class=\"wr-time-picker__chevron\"\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=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n </div>\n}\n"
341
350
  }]
342
351
  }],
343
352
  ctorParameters: () => [],
@@ -679,14 +688,16 @@ let statusUid = 0;
679
688
  function orNothing(format) {
680
689
  return (params) => format(params) || void 0;
681
690
  }
682
- function useDateInputRefusals() {
683
- const adapter = inject(WrDateAdapter);
691
+ function useDateInputRefusals(pick) {
692
+ const injected = inject(WrDateAdapter);
693
+ const dates = pick ?? (() => injected);
684
694
  const formatText = orNothing(useI18nFormatter("validation.dateFormat", ""));
685
695
  const minText = orNothing(useI18nFormatter("validation.minDate", ""));
686
696
  const maxText = orNothing(useI18nFormatter("validation.maxDate", ""));
687
697
  const filterText = orNothing(useI18nFormatter("validation.dateFilter", ""));
688
698
  return {
689
699
  unreadable(format) {
700
+ const adapter = dates();
690
701
  const reference = adapter.setTime(adapter.createDate(adapter.getYear(adapter.today()), 11, 31), 18, 45, 0);
691
702
  const example = adapter.format(reference, format);
692
703
  return {
@@ -696,6 +707,7 @@ function useDateInputRefusals() {
696
707
  };
697
708
  },
698
709
  outOfBounds(date, { min, max, filter }) {
710
+ const adapter = dates();
699
711
  if (min && adapter.compareDate(date, min) < 0) return {
700
712
  kind: "minDate",
701
713
  date,
@@ -810,7 +822,7 @@ function tabLeavesPane(pane, event) {
810
822
  if (event.key !== "Tab" || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey) return false;
811
823
  const active = pane.ownerDocument.activeElement;
812
824
  if (!active || !pane.contains(active)) return false;
813
- const all = getFocusableElements(pane);
825
+ const all = wrGetFocusableElements(pane);
814
826
  const at = all.indexOf(active);
815
827
  if (at < 0) return false;
816
828
  return !(event.shiftKey ? all.slice(0, at) : all.slice(at + 1)).some((el) => el.tabIndex >= 0);
@@ -821,6 +833,24 @@ function tabLeavesPane(pane, event) {
821
833
  * Use of this source code is governed by an MIT-style license that can be
822
834
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
823
835
  */
836
+ function wrPickerAdapter(adapter, withTime) {
837
+ return withTime ? adapter.zoned() : adapter;
838
+ }
839
+ function wrPickerPanelInjector(parent, adapter) {
840
+ return Injector.create({
841
+ parent,
842
+ providers: [{
843
+ provide: WrDateAdapter,
844
+ useValue: adapter
845
+ }]
846
+ });
847
+ }
848
+ /**
849
+ * @license
850
+ *
851
+ * Use of this source code is governed by an MIT-style license that can be
852
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
853
+ */
824
854
  let panelUid = 0;
825
855
  const SILENCE_MS$1 = 100;
826
856
  var WrDatePicker = class WrDatePicker {
@@ -839,6 +869,13 @@ var WrDatePicker = class WrDatePicker {
839
869
  ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
840
870
  transform: (v) => Math.max(1, coerceNumberProperty(v, 1))
841
871
  });
872
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
873
+ clearable = input(false, {
874
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
875
+ transform: coerceBooleanProperty
876
+ });
877
+ clearLabel = input(null, ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
878
+ resolvedClear = useI18nText(this.clearLabel, "common.clear", "Clear");
842
879
  disabled = input(false, {
843
880
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
844
881
  transform: coerceBooleanProperty
@@ -847,7 +884,11 @@ var WrDatePicker = class WrDatePicker {
847
884
  ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
848
885
  transform: coerceBooleanProperty
849
886
  });
850
- adapter = inject(WrDateAdapter);
887
+ dayAdapter = inject(WrDateAdapter);
888
+ environment = inject(EnvironmentInjector);
889
+ get adapter() {
890
+ return wrPickerAdapter(this.dayAdapter, this.mode() !== "date");
891
+ }
851
892
  overlay = inject(WR_OVERLAY);
852
893
  outsideClick = inject(WrOutsideClick);
853
894
  scrollStrategies = inject(ScrollStrategyOptions);
@@ -859,7 +900,10 @@ var WrDatePicker = class WrDatePicker {
859
900
  triggerEl = viewChild("trigger", ...ngDevMode ? [{ debugName: "triggerEl" }] : /* istanbul ignore next */ []);
860
901
  value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
861
902
  touch = output();
903
+ opened = output();
904
+ closed = output();
862
905
  text = signal("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
906
+ hasValue = computed(() => this.value() != null, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
863
907
  overlayOpen = signal(false, ...ngDevMode ? [{ debugName: "overlayOpen" }] : /* istanbul ignore next */ []);
864
908
  openedFrom = null;
865
909
  autoFocusPanel = false;
@@ -872,12 +916,12 @@ var WrDatePicker = class WrDatePicker {
872
916
  }, ...ngDevMode ? [{ debugName: "resolvedFormat" }] : /* istanbul ignore next */ []);
873
917
  isTime = computed(() => this.mode() === "time", ...ngDevMode ? [{ debugName: "isTime" }] : /* istanbul ignore next */ []);
874
918
  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");
919
+ labelDate = wrReadI18nText("datePicker.open", "Open calendar");
920
+ labelTime = wrReadI18nText("datePicker.openTime", "Open time picker");
921
+ labelDateTime = wrReadI18nText("datePicker.openDateTime", "Open date and time picker");
922
+ panelLabelDate = wrReadI18nText("datePicker.panel", "Choose date");
923
+ panelLabelTime = wrReadI18nText("datePicker.panelTime", "Choose time");
924
+ panelLabelDateTime = wrReadI18nText("datePicker.panelDateTime", "Choose date and time");
881
925
  ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
882
926
  fieldLabel = useI18nText(this.ariaLabel, "datePicker.open", "Open calendar");
883
927
  resolvedAriaLabel = computed(() => {
@@ -903,7 +947,7 @@ var WrDatePicker = class WrDatePicker {
903
947
  if (m === "datetime") return this.panelLabelDateTime();
904
948
  return this.panelLabelDate();
905
949
  }, ...ngDevMode ? [{ debugName: "resolvedPanelLabel" }] : /* istanbul ignore next */ []);
906
- refusals = useDateInputRefusals();
950
+ refusals = useDateInputRefusals(() => this.adapter);
907
951
  reportToForm = useFormParseErrors(this.value, () => this.onFormReset());
908
952
  inputField = inject(WrDateInputField);
909
953
  refusal = signal(null, ...ngDevMode ? [{ debugName: "refusal" }] : /* istanbul ignore next */ []);
@@ -922,7 +966,9 @@ var WrDatePicker = class WrDatePicker {
922
966
  labelledBy = computed(() => this.ariaLabel() ? null : this.inputField.outer?.labelId?.() ?? null, ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
923
967
  nameLabel = computed(() => this.labelledBy() ? null : this.resolvedAriaLabel(), ...ngDevMode ? [{ debugName: "nameLabel" }] : /* istanbul ignore next */ []);
924
968
  classes = computed(() => {
925
- const parts = ["wr-date-picker", `wr-date-picker--${this.mode()}`];
969
+ const parts = [`wr-date-picker--${this.mode()}`];
970
+ const size = this.size();
971
+ if (size !== "md") parts.push(`wr-date-picker--${size}`);
926
972
  if (this.disabled()) parts.push("wr-date-picker--disabled");
927
973
  if (this.inputError()) parts.push("wr-date-picker--invalid");
928
974
  return parts.join(" ");
@@ -934,6 +980,7 @@ var WrDatePicker = class WrDatePicker {
934
980
  lastFromPanel = null;
935
981
  lastValue = null;
936
982
  lastFormat = null;
983
+ lastKey = null;
937
984
  constructor() {
938
985
  if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("date-picker");
939
986
  this.destroyRef.onDestroy(() => {
@@ -943,11 +990,13 @@ var WrDatePicker = class WrDatePicker {
943
990
  effect(() => {
944
991
  const v = this.value();
945
992
  const fmt = this.resolvedFormat();
993
+ const key = this.adapter.displayKey();
946
994
  untracked(() => {
947
995
  const outside = v !== this.lastValue;
948
- const echo = this.sameDate(v, this.lastValue) && fmt === this.lastFormat;
996
+ const echo = this.sameDate(v, this.lastValue) && fmt === this.lastFormat && key === this.lastKey;
949
997
  this.lastValue = v;
950
998
  this.lastFormat = fmt;
999
+ this.lastKey = key;
951
1000
  if (echo && !(outside && this.refusal())) return;
952
1001
  this.text.set(v && this.adapter.isValid(v) ? this.adapter.format(v, fmt) : "");
953
1002
  this.refuse(null);
@@ -1014,6 +1063,15 @@ var WrDatePicker = class WrDatePicker {
1014
1063
  this.commitValue(this.withKeptDate(parsed));
1015
1064
  this.refuse(null);
1016
1065
  }
1066
+ clear(event) {
1067
+ event.stopPropagation();
1068
+ if (this.disabled() || this.readonly()) return;
1069
+ this.text.set("");
1070
+ this.commitValue(null);
1071
+ this.refuse(null);
1072
+ this.inputEl().nativeElement.focus();
1073
+ this.touch.emit();
1074
+ }
1017
1075
  withKeptDate(parsed) {
1018
1076
  if (this.mode() !== "time") return parsed;
1019
1077
  const current = this.value();
@@ -1104,6 +1162,13 @@ var WrDatePicker = class WrDatePicker {
1104
1162
  restoreFocus() {
1105
1163
  (this.openedFrom?.isConnected ? this.openedFrom : this.inputEl().nativeElement)?.focus();
1106
1164
  }
1165
+ open() {
1166
+ if (this.disabled() || this.overlayRef) return;
1167
+ this.openOverlay(this.inputEl().nativeElement, false);
1168
+ }
1169
+ close() {
1170
+ if (this.overlayRef) this.closeOverlay();
1171
+ }
1107
1172
  openOverlay(openedFrom = null, autoFocus = false) {
1108
1173
  if (this.overlayRef) return;
1109
1174
  this.openedFrom = openedFrom;
@@ -1141,7 +1206,7 @@ var WrDatePicker = class WrDatePicker {
1141
1206
  this.overlayRef = this.overlay.create({
1142
1207
  positionStrategy,
1143
1208
  scrollStrategy: this.scrollStrategies.reposition(),
1144
- panelClass: toClassList("wr-date-picker-overlay", this.panelClass())
1209
+ panelClass: wrToClassList("wr-date-picker-overlay", this.panelClass())
1145
1210
  });
1146
1211
  wrFollowDirection(this.overlayRef, this.dir, this.injector);
1147
1212
  const pane = this.overlayRef.overlayElement;
@@ -1171,6 +1236,10 @@ var WrDatePicker = class WrDatePicker {
1171
1236
  this.closeOverlay();
1172
1237
  }
1173
1238
  });
1239
+ this.opened.emit();
1240
+ }
1241
+ panelInjector() {
1242
+ return wrPickerPanelInjector(this.environment, this.adapter);
1174
1243
  }
1175
1244
  attachDate() {
1176
1245
  if (!this.overlayRef) return;
@@ -1189,7 +1258,7 @@ var WrDatePicker = class WrDatePicker {
1189
1258
  }
1190
1259
  attachTime() {
1191
1260
  if (!this.overlayRef) return;
1192
- const ref = this.overlayRef.attach(new ComponentPortal(WrTimePanel));
1261
+ const ref = this.overlayRef.attach(new ComponentPortal(WrTimePanel, null, this.panelInjector()));
1193
1262
  ref.setInput("format", this.timeFormat());
1194
1263
  ref.setInput("showSeconds", this.showSeconds());
1195
1264
  ref.setInput("step", this.step());
@@ -1205,7 +1274,7 @@ var WrDatePicker = class WrDatePicker {
1205
1274
  }
1206
1275
  attachDateTime() {
1207
1276
  if (!this.overlayRef) return;
1208
- const ref = this.overlayRef.attach(new ComponentPortal(WrDateTimePanel));
1277
+ const ref = this.overlayRef.attach(new ComponentPortal(WrDateTimePanel, null, this.panelInjector()));
1209
1278
  ref.setInput("value", this.value());
1210
1279
  ref.setInput("min", this.min());
1211
1280
  ref.setInput("max", this.max());
@@ -1234,12 +1303,14 @@ var WrDatePicker = class WrDatePicker {
1234
1303
  this.value.set(next);
1235
1304
  }
1236
1305
  closeOverlay() {
1306
+ const wasOpen = !!this.overlayRef;
1237
1307
  const pane = this.overlayRef?.overlayElement;
1238
1308
  const inside = !!pane && pane.contains(document.activeElement);
1239
1309
  pane?.removeEventListener("focusout", this.onPaneFocusOut);
1240
1310
  this.dispose();
1241
1311
  if (inside) this.restoreFocus();
1242
1312
  if (document.activeElement !== this.inputEl().nativeElement) this.reveal();
1313
+ if (wasOpen) this.closed.emit();
1243
1314
  }
1244
1315
  dispose() {
1245
1316
  if (this.overlayRef) {
@@ -1343,6 +1414,27 @@ var WrDatePicker = class WrDatePicker {
1343
1414
  isRequired: false,
1344
1415
  transformFunction: null
1345
1416
  },
1417
+ size: {
1418
+ classPropertyName: "size",
1419
+ publicName: "size",
1420
+ isSignal: true,
1421
+ isRequired: false,
1422
+ transformFunction: null
1423
+ },
1424
+ clearable: {
1425
+ classPropertyName: "clearable",
1426
+ publicName: "clearable",
1427
+ isSignal: true,
1428
+ isRequired: false,
1429
+ transformFunction: null
1430
+ },
1431
+ clearLabel: {
1432
+ classPropertyName: "clearLabel",
1433
+ publicName: "clearLabel",
1434
+ isSignal: true,
1435
+ isRequired: false,
1436
+ transformFunction: null
1437
+ },
1346
1438
  disabled: {
1347
1439
  classPropertyName: "disabled",
1348
1440
  publicName: "disabled",
@@ -1388,9 +1480,14 @@ var WrDatePicker = class WrDatePicker {
1388
1480
  },
1389
1481
  outputs: {
1390
1482
  value: "valueChange",
1391
- touch: "touch"
1483
+ touch: "touch",
1484
+ opened: "opened",
1485
+ closed: "closed"
1486
+ },
1487
+ host: {
1488
+ properties: { "class": "classes()" },
1489
+ classAttribute: "wr-date-picker"
1392
1490
  },
1393
- host: { properties: { "class": "classes()" } },
1394
1491
  providers: [WrDateInputField],
1395
1492
  viewQueries: [{
1396
1493
  propertyName: "inputEl",
@@ -1406,7 +1503,7 @@ var WrDatePicker = class WrDatePicker {
1406
1503
  isSignal: true
1407
1504
  }],
1408
1505
  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",
1506
+ 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
1507
  dependencies: [
1411
1508
  {
1412
1509
  kind: "directive",
@@ -1440,7 +1537,10 @@ i0.ɵɵngDeclareClassMetadata({
1440
1537
  args: [{
1441
1538
  selector: "wr-date-picker",
1442
1539
  encapsulation: ViewEncapsulation.None,
1443
- host: { "[class]": "classes()" },
1540
+ host: {
1541
+ class: "wr-date-picker",
1542
+ "[class]": "classes()"
1543
+ },
1444
1544
  imports: [
1445
1545
  WrInput,
1446
1546
  WrInputGroup,
@@ -1448,7 +1548,7 @@ i0.ɵɵngDeclareClassMetadata({
1448
1548
  ],
1449
1549
  providers: [WrDateInputField],
1450
1550
  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"
1551
+ 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
1552
  }]
1453
1553
  }],
1454
1554
  ctorParameters: () => [],
@@ -1525,6 +1625,30 @@ i0.ɵɵngDeclareClassMetadata({
1525
1625
  required: false
1526
1626
  }]
1527
1627
  }],
1628
+ size: [{
1629
+ type: i0.Input,
1630
+ args: [{
1631
+ isSignal: true,
1632
+ alias: "size",
1633
+ required: false
1634
+ }]
1635
+ }],
1636
+ clearable: [{
1637
+ type: i0.Input,
1638
+ args: [{
1639
+ isSignal: true,
1640
+ alias: "clearable",
1641
+ required: false
1642
+ }]
1643
+ }],
1644
+ clearLabel: [{
1645
+ type: i0.Input,
1646
+ args: [{
1647
+ isSignal: true,
1648
+ alias: "clearLabel",
1649
+ required: false
1650
+ }]
1651
+ }],
1528
1652
  disabled: [{
1529
1653
  type: i0.Input,
1530
1654
  args: [{
@@ -1564,6 +1688,14 @@ i0.ɵɵngDeclareClassMetadata({
1564
1688
  type: i0.Output,
1565
1689
  args: ["touch"]
1566
1690
  }],
1691
+ opened: [{
1692
+ type: i0.Output,
1693
+ args: ["opened"]
1694
+ }],
1695
+ closed: [{
1696
+ type: i0.Output,
1697
+ args: ["closed"]
1698
+ }],
1567
1699
  ariaLabel: [{
1568
1700
  type: i0.Input,
1569
1701
  args: [{
@@ -1612,8 +1744,8 @@ var WrDateRangePanel = class WrDateRangePanel {
1612
1744
  changed = output();
1613
1745
  timeChanged = output();
1614
1746
  adapter = inject(WrDateAdapter);
1615
- startTimeLabel = readI18nText("datePicker.startTime", "Start time");
1616
- endTimeLabel = readI18nText("datePicker.endTime", "End time");
1747
+ startTimeLabel = wrReadI18nText("datePicker.startTime", "Start time");
1748
+ endTimeLabel = wrReadI18nText("datePicker.endTime", "End time");
1617
1749
  pendingStartTime = signal(null, ...ngDevMode ? [{ debugName: "pendingStartTime" }] : /* istanbul ignore next */ []);
1618
1750
  pendingEndTime = signal(null, ...ngDevMode ? [{ debugName: "pendingEndTime" }] : /* istanbul ignore next */ []);
1619
1751
  calendarRange = computed(() => this.value(), ...ngDevMode ? [{ debugName: "calendarRange" }] : /* istanbul ignore next */ []);
@@ -1950,6 +2082,13 @@ var WrDateRangePicker = class WrDateRangePicker {
1950
2082
  ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
1951
2083
  transform: (v) => Math.max(1, coerceNumberProperty(v, 1))
1952
2084
  });
2085
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
2086
+ clearable = input(false, {
2087
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
2088
+ transform: coerceBooleanProperty
2089
+ });
2090
+ clearLabel = input(null, ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
2091
+ resolvedClear = useI18nText(this.clearLabel, "common.clear", "Clear");
1953
2092
  disabled = input(false, {
1954
2093
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1955
2094
  transform: coerceBooleanProperty
@@ -1958,7 +2097,11 @@ var WrDateRangePicker = class WrDateRangePicker {
1958
2097
  ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
1959
2098
  transform: coerceBooleanProperty
1960
2099
  });
1961
- adapter = inject(WrDateAdapter);
2100
+ dayAdapter = inject(WrDateAdapter);
2101
+ environment = inject(EnvironmentInjector);
2102
+ get adapter() {
2103
+ return wrPickerAdapter(this.dayAdapter, this.mode() === "datetime");
2104
+ }
1962
2105
  overlay = inject(WR_OVERLAY);
1963
2106
  outsideClick = inject(WrOutsideClick);
1964
2107
  scrollStrategies = inject(ScrollStrategyOptions);
@@ -1971,8 +2114,14 @@ var WrDateRangePicker = class WrDateRangePicker {
1971
2114
  triggerEl = viewChild("trigger", ...ngDevMode ? [{ debugName: "triggerEl" }] : /* istanbul ignore next */ []);
1972
2115
  value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1973
2116
  touch = output();
2117
+ opened = output();
2118
+ closed = output();
1974
2119
  startText = signal("", ...ngDevMode ? [{ debugName: "startText" }] : /* istanbul ignore next */ []);
1975
2120
  endText = signal("", ...ngDevMode ? [{ debugName: "endText" }] : /* istanbul ignore next */ []);
2121
+ hasValue = computed(() => {
2122
+ const [start, end] = this.current();
2123
+ return start != null || end != null;
2124
+ }, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
1976
2125
  overlayOpen = signal(false, ...ngDevMode ? [{ debugName: "overlayOpen" }] : /* istanbul ignore next */ []);
1977
2126
  openedFrom = null;
1978
2127
  autoFocusPanel = false;
@@ -1983,11 +2132,11 @@ var WrDateRangePicker = class WrDateRangePicker {
1983
2132
  return clockFormat("shortDateTime", this.timeFormat(), this.showSeconds());
1984
2133
  }, ...ngDevMode ? [{ debugName: "resolvedFormat" }] : /* istanbul ignore next */ []);
1985
2134
  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");
2135
+ triggerLabel = wrReadI18nText("datePicker.openRange", "Open range calendar");
2136
+ startLabel = wrReadI18nText("datePicker.rangeStart", "Range start");
2137
+ endLabel = wrReadI18nText("datePicker.rangeEnd", "Range end");
2138
+ panelLabelRange = wrReadI18nText("datePicker.panelRange", "Choose date range");
2139
+ panelLabelRangeDateTime = wrReadI18nText("datePicker.panelRangeDateTime", "Choose date and time range");
1991
2140
  panelAriaLabel = input(null, ...ngDevMode ? [{ debugName: "panelAriaLabel" }] : /* istanbul ignore next */ []);
1992
2141
  panelClass = input(null, ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
1993
2142
  panelId = `wr-date-range-picker-panel-${++rangePanelUid}`;
@@ -1996,7 +2145,7 @@ var WrDateRangePicker = class WrDateRangePicker {
1996
2145
  if (explicit) return explicit;
1997
2146
  return this.isDateTime() ? this.panelLabelRangeDateTime() : this.panelLabelRange();
1998
2147
  }, ...ngDevMode ? [{ debugName: "resolvedPanelLabel" }] : /* istanbul ignore next */ []);
1999
- refusalBuilder = useDateInputRefusals();
2148
+ refusalBuilder = useDateInputRefusals(() => this.adapter);
2000
2149
  reportToForm = useFormParseErrors(this.value, () => this.onFormReset());
2001
2150
  inputField = inject(WrDateInputField);
2002
2151
  refusals = signal([null, null], ...ngDevMode ? [{ debugName: "refusals" }] : /* istanbul ignore next */ []);
@@ -2036,7 +2185,9 @@ var WrDateRangePicker = class WrDateRangePicker {
2036
2185
  startDescribedBy = computed(() => !this.inputField.outer && this.shownErrors()[0]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "startDescribedBy" }] : /* istanbul ignore next */ []);
2037
2186
  endDescribedBy = computed(() => this.shownErrors()[1]?.message && this.announcement() ? this.statusId : null, ...ngDevMode ? [{ debugName: "endDescribedBy" }] : /* istanbul ignore next */ []);
2038
2187
  classes = computed(() => {
2039
- const parts = ["wr-date-range-picker", `wr-date-range-picker--${this.mode()}`];
2188
+ const parts = [`wr-date-range-picker--${this.mode()}`];
2189
+ const size = this.size();
2190
+ if (size !== "md") parts.push(`wr-date-range-picker--${size}`);
2040
2191
  if (this.disabled()) parts.push("wr-date-range-picker--disabled");
2041
2192
  if (this.shownErrors().some(Boolean)) parts.push("wr-date-range-picker--invalid");
2042
2193
  return parts.join(" ");
@@ -2054,7 +2205,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2054
2205
  this.inputField.describe(computed(() => this.shownErrors()[0]));
2055
2206
  effect(() => {
2056
2207
  const v = this.value();
2057
- const fmt = this.resolvedFormat();
2208
+ const fmt = `${this.resolvedFormat()}|${this.adapter.displayKey()}`;
2058
2209
  untracked(() => {
2059
2210
  const formatMoved = this.lastFormat !== null && fmt !== this.lastFormat;
2060
2211
  this.lastFormat = fmt;
@@ -2222,6 +2373,24 @@ var WrDateRangePicker = class WrDateRangePicker {
2222
2373
  this.commitRange(end === 0 ? [parsed, finish] : [start, parsed], { normalise: false });
2223
2374
  this.refuse(end, null);
2224
2375
  }
2376
+ clear(event) {
2377
+ event.stopPropagation();
2378
+ if (this.disabled() || this.readonly()) return;
2379
+ this.startText.set("");
2380
+ this.endText.set("");
2381
+ this.commitRange([null, null], { normalise: false });
2382
+ this.refuse(0, null);
2383
+ this.refuse(1, null);
2384
+ this.startEl().nativeElement.focus();
2385
+ this.touch.emit();
2386
+ }
2387
+ open() {
2388
+ if (this.disabled() || this.readonly() || this.overlayRef) return;
2389
+ this.openOverlay(this.startEl().nativeElement, false);
2390
+ }
2391
+ close() {
2392
+ if (this.overlayRef) this.closeOverlay();
2393
+ }
2225
2394
  openOverlay(openedFrom = null, autoFocus = false) {
2226
2395
  if (this.overlayRef) return;
2227
2396
  this.openedFrom = openedFrom;
@@ -2259,7 +2428,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2259
2428
  this.overlayRef = this.overlay.create({
2260
2429
  positionStrategy,
2261
2430
  scrollStrategy: this.scrollStrategies.reposition(),
2262
- panelClass: toClassList("wr-date-picker-overlay", this.panelClass())
2431
+ panelClass: wrToClassList("wr-date-picker-overlay", this.panelClass())
2263
2432
  });
2264
2433
  wrFollowDirection(this.overlayRef, this.dir, this.injector);
2265
2434
  this.overlayOpen.set(true);
@@ -2269,7 +2438,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2269
2438
  pane.setAttribute("aria-modal", "false");
2270
2439
  pane.setAttribute("aria-label", this.resolvedPanelLabel());
2271
2440
  pane.addEventListener("focusout", this.onPaneFocusOut);
2272
- const ref = this.overlayRef.attach(new ComponentPortal(WrDateRangePanel));
2441
+ const ref = this.overlayRef.attach(new ComponentPortal(WrDateRangePanel, null, wrPickerPanelInjector(this.environment, this.adapter)));
2273
2442
  ref.setInput("value", this.value() ?? [null, null]);
2274
2443
  ref.setInput("autoFocus", this.autoFocusPanel);
2275
2444
  this.panelRef.set(ref);
@@ -2294,8 +2463,10 @@ var WrDateRangePicker = class WrDateRangePicker {
2294
2463
  this.closeOverlay();
2295
2464
  }
2296
2465
  });
2466
+ this.opened.emit();
2297
2467
  }
2298
2468
  closeOverlay() {
2469
+ const wasOpen = !!this.overlayRef;
2299
2470
  const pane = this.overlayRef?.overlayElement;
2300
2471
  const doc = this.host.nativeElement.ownerDocument;
2301
2472
  const inside = !!pane && pane.contains(doc.activeElement);
@@ -2304,6 +2475,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2304
2475
  this.commitRange(this.current(), { normalise: true });
2305
2476
  if (inside) this.restoreFocus();
2306
2477
  this.revealFor(doc.activeElement);
2478
+ if (wasOpen) this.closed.emit();
2307
2479
  }
2308
2480
  dispose() {
2309
2481
  if (this.overlayRef) {
@@ -2462,6 +2634,27 @@ var WrDateRangePicker = class WrDateRangePicker {
2462
2634
  isRequired: false,
2463
2635
  transformFunction: null
2464
2636
  },
2637
+ size: {
2638
+ classPropertyName: "size",
2639
+ publicName: "size",
2640
+ isSignal: true,
2641
+ isRequired: false,
2642
+ transformFunction: null
2643
+ },
2644
+ clearable: {
2645
+ classPropertyName: "clearable",
2646
+ publicName: "clearable",
2647
+ isSignal: true,
2648
+ isRequired: false,
2649
+ transformFunction: null
2650
+ },
2651
+ clearLabel: {
2652
+ classPropertyName: "clearLabel",
2653
+ publicName: "clearLabel",
2654
+ isSignal: true,
2655
+ isRequired: false,
2656
+ transformFunction: null
2657
+ },
2465
2658
  disabled: {
2466
2659
  classPropertyName: "disabled",
2467
2660
  publicName: "disabled",
@@ -2500,9 +2693,14 @@ var WrDateRangePicker = class WrDateRangePicker {
2500
2693
  },
2501
2694
  outputs: {
2502
2695
  value: "valueChange",
2503
- touch: "touch"
2696
+ touch: "touch",
2697
+ opened: "opened",
2698
+ closed: "closed"
2699
+ },
2700
+ host: {
2701
+ properties: { "class": "classes()" },
2702
+ classAttribute: "wr-date-range-picker"
2504
2703
  },
2505
- host: { properties: { "class": "classes()" } },
2506
2704
  providers: [WrDateInputField],
2507
2705
  viewQueries: [
2508
2706
  {
@@ -2528,7 +2726,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2528
2726
  }
2529
2727
  ],
2530
2728
  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",
2729
+ 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
2730
  dependencies: [
2533
2731
  {
2534
2732
  kind: "directive",
@@ -2567,7 +2765,10 @@ i0.ɵɵngDeclareClassMetadata({
2567
2765
  args: [{
2568
2766
  selector: "wr-date-range-picker",
2569
2767
  encapsulation: ViewEncapsulation.None,
2570
- host: { "[class]": "classes()" },
2768
+ host: {
2769
+ class: "wr-date-range-picker",
2770
+ "[class]": "classes()"
2771
+ },
2571
2772
  imports: [
2572
2773
  WrDateRangeEndInput,
2573
2774
  WrInput,
@@ -2576,7 +2777,7 @@ i0.ɵɵngDeclareClassMetadata({
2576
2777
  ],
2577
2778
  providers: [WrDateInputField],
2578
2779
  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"
2780
+ 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
2781
  }]
2581
2782
  }],
2582
2783
  ctorParameters: () => [],
@@ -2669,6 +2870,30 @@ i0.ɵɵngDeclareClassMetadata({
2669
2870
  required: false
2670
2871
  }]
2671
2872
  }],
2873
+ size: [{
2874
+ type: i0.Input,
2875
+ args: [{
2876
+ isSignal: true,
2877
+ alias: "size",
2878
+ required: false
2879
+ }]
2880
+ }],
2881
+ clearable: [{
2882
+ type: i0.Input,
2883
+ args: [{
2884
+ isSignal: true,
2885
+ alias: "clearable",
2886
+ required: false
2887
+ }]
2888
+ }],
2889
+ clearLabel: [{
2890
+ type: i0.Input,
2891
+ args: [{
2892
+ isSignal: true,
2893
+ alias: "clearLabel",
2894
+ required: false
2895
+ }]
2896
+ }],
2672
2897
  disabled: [{
2673
2898
  type: i0.Input,
2674
2899
  args: [{
@@ -2712,6 +2937,14 @@ i0.ɵɵngDeclareClassMetadata({
2712
2937
  type: i0.Output,
2713
2938
  args: ["touch"]
2714
2939
  }],
2940
+ opened: [{
2941
+ type: i0.Output,
2942
+ args: ["opened"]
2943
+ }],
2944
+ closed: [{
2945
+ type: i0.Output,
2946
+ args: ["closed"]
2947
+ }],
2715
2948
  panelAriaLabel: [{
2716
2949
  type: i0.Input,
2717
2950
  args: [{