ngwr 16.6.0 → 16.7.1

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 (321) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/button/styles/_index.scss +45 -2
  3. package/checkbox/styles/_index.scss +4 -0
  4. package/copy-value/styles/_index.scss +4 -0
  5. package/dropdown/styles/_index.scss +17 -0
  6. package/fesm2022/ngwr-affix.mjs +3 -3
  7. package/fesm2022/ngwr-alert.mjs +3 -3
  8. package/fesm2022/ngwr-anchor.mjs +3 -3
  9. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  10. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  11. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  12. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  13. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  14. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  15. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  16. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  17. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  18. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  19. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  20. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  21. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  22. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  23. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  24. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  25. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  26. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  27. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  28. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  29. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  30. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  31. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  32. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  33. package/fesm2022/ngwr-avatar.mjs +171 -6
  34. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  35. package/fesm2022/ngwr-back-top.mjs +3 -3
  36. package/fesm2022/ngwr-badge.mjs +6 -6
  37. package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
  38. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  39. package/fesm2022/ngwr-burger.mjs +3 -3
  40. package/fesm2022/ngwr-button.mjs +26 -6
  41. package/fesm2022/ngwr-button.mjs.map +1 -1
  42. package/fesm2022/ngwr-calendar.mjs +3 -3
  43. package/fesm2022/ngwr-card.mjs +9 -9
  44. package/fesm2022/ngwr-carousel.mjs +6 -6
  45. package/fesm2022/ngwr-cascader.mjs +5 -5
  46. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  47. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  48. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  49. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  50. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  51. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  52. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  53. package/fesm2022/ngwr-charts-core.mjs +6 -6
  54. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  55. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  56. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  57. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  58. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
  60. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  61. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  63. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  64. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  65. package/fesm2022/ngwr-checkbox.mjs +6 -6
  66. package/fesm2022/ngwr-clipboard.mjs +3 -3
  67. package/fesm2022/ngwr-collapse.mjs +9 -9
  68. package/fesm2022/ngwr-color-picker.mjs +6 -6
  69. package/fesm2022/ngwr-command-palette.mjs +3 -3
  70. package/fesm2022/ngwr-comment.mjs +7 -6
  71. package/fesm2022/ngwr-comment.mjs.map +1 -1
  72. package/fesm2022/ngwr-compare.mjs +3 -3
  73. package/fesm2022/ngwr-context-menu.mjs +12 -12
  74. package/fesm2022/ngwr-cookie.mjs +3 -3
  75. package/fesm2022/ngwr-copy-value.mjs +3 -3
  76. package/fesm2022/ngwr-counter.mjs +6 -6
  77. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  78. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  79. package/fesm2022/ngwr-date-picker.mjs +103 -53
  80. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  81. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  82. package/fesm2022/ngwr-date.mjs +40 -16
  83. package/fesm2022/ngwr-date.mjs.map +1 -1
  84. package/fesm2022/ngwr-density.mjs +6 -6
  85. package/fesm2022/ngwr-descriptions.mjs +6 -6
  86. package/fesm2022/ngwr-dialog.mjs +19 -18
  87. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  88. package/fesm2022/ngwr-directives.mjs +181 -18
  89. package/fesm2022/ngwr-directives.mjs.map +1 -1
  90. package/fesm2022/ngwr-divider.mjs +3 -3
  91. package/fesm2022/ngwr-drawer.mjs +18 -18
  92. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  93. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  94. package/fesm2022/ngwr-dropdown.mjs +59 -16
  95. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  96. package/fesm2022/ngwr-editor.mjs +6 -5
  97. package/fesm2022/ngwr-editor.mjs.map +1 -1
  98. package/fesm2022/ngwr-empty.mjs +3 -3
  99. package/fesm2022/ngwr-event-calendar.mjs +7 -6
  100. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  101. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  102. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  103. package/fesm2022/ngwr-file-upload.mjs +68 -13
  104. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  105. package/fesm2022/ngwr-form.mjs +18 -16
  106. package/fesm2022/ngwr-form.mjs.map +1 -1
  107. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  108. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  109. package/fesm2022/ngwr-graph.mjs +100 -11
  110. package/fesm2022/ngwr-graph.mjs.map +1 -1
  111. package/fesm2022/ngwr-hotkey.mjs +6 -6
  112. package/fesm2022/ngwr-i18n-ar.mjs +6 -2
  113. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  114. package/fesm2022/ngwr-i18n-cs.mjs +6 -2
  115. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  116. package/fesm2022/ngwr-i18n-de.mjs +6 -2
  117. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  118. package/fesm2022/ngwr-i18n-en.mjs +6 -2
  119. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  120. package/fesm2022/ngwr-i18n-es.mjs +6 -2
  121. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  122. package/fesm2022/ngwr-i18n-fr.mjs +6 -2
  123. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  124. package/fesm2022/ngwr-i18n-he.mjs +6 -2
  125. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  126. package/fesm2022/ngwr-i18n-hi.mjs +6 -2
  127. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  128. package/fesm2022/ngwr-i18n-id.mjs +6 -2
  129. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  130. package/fesm2022/ngwr-i18n-it.mjs +6 -2
  131. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  132. package/fesm2022/ngwr-i18n-ja.mjs +6 -2
  133. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  134. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  135. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  136. package/fesm2022/ngwr-i18n-ko.mjs +6 -2
  137. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-nl.mjs +6 -2
  139. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-pl.mjs +6 -2
  141. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-pt.mjs +6 -2
  143. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-ru.mjs +6 -2
  145. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-sv.mjs +6 -2
  147. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-tr.mjs +6 -2
  149. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-uk.mjs +6 -2
  151. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-vi.mjs +6 -2
  153. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-zh-tw.mjs +6 -2
  155. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-zh.mjs +6 -2
  157. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n.mjs +9 -9
  159. package/fesm2022/ngwr-icon.mjs +6 -6
  160. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  161. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  162. package/fesm2022/ngwr-input-number.mjs +3 -3
  163. package/fesm2022/ngwr-input-otp.mjs +3 -3
  164. package/fesm2022/ngwr-input.mjs +15 -15
  165. package/fesm2022/ngwr-keyboard.mjs +3 -3
  166. package/fesm2022/ngwr-knob.mjs +3 -3
  167. package/fesm2022/ngwr-layout.mjs +15 -15
  168. package/fesm2022/ngwr-lightbox.mjs +8 -8
  169. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  170. package/fesm2022/ngwr-list.mjs +8 -8
  171. package/fesm2022/ngwr-list.mjs.map +1 -1
  172. package/fesm2022/ngwr-load-state.mjs +16 -15
  173. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  174. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  175. package/fesm2022/ngwr-mention.mjs +6 -6
  176. package/fesm2022/ngwr-meta.mjs +6 -6
  177. package/fesm2022/ngwr-overlay.mjs +9 -9
  178. package/fesm2022/ngwr-page-header.mjs +3 -3
  179. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  180. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  181. package/fesm2022/ngwr-pagination.mjs +32 -5
  182. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  183. package/fesm2022/ngwr-pipes.mjs +27 -27
  184. package/fesm2022/ngwr-platform.mjs +9 -9
  185. package/fesm2022/ngwr-popconfirm.mjs +7 -6
  186. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  187. package/fesm2022/ngwr-popover.mjs +126 -16
  188. package/fesm2022/ngwr-popover.mjs.map +1 -1
  189. package/fesm2022/ngwr-progress.mjs +75 -10
  190. package/fesm2022/ngwr-progress.mjs.map +1 -1
  191. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  192. package/fesm2022/ngwr-qr.mjs +3 -3
  193. package/fesm2022/ngwr-radio.mjs +6 -6
  194. package/fesm2022/ngwr-rating.mjs +3 -3
  195. package/fesm2022/ngwr-resizable.mjs +3 -3
  196. package/fesm2022/ngwr-result.mjs +12 -12
  197. package/fesm2022/ngwr-schema-form.mjs +10 -6
  198. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  199. package/fesm2022/ngwr-scroll.mjs +255 -7
  200. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  201. package/fesm2022/ngwr-segmented.mjs +3 -3
  202. package/fesm2022/ngwr-select.mjs +28 -19
  203. package/fesm2022/ngwr-select.mjs.map +1 -1
  204. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  205. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  206. package/fesm2022/ngwr-sidebar.mjs +66 -11
  207. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  208. package/fesm2022/ngwr-skeleton.mjs +3 -3
  209. package/fesm2022/ngwr-slider.mjs +3 -3
  210. package/fesm2022/ngwr-sortable-list.mjs +11 -11
  211. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  212. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  213. package/fesm2022/ngwr-spinner.mjs +3 -3
  214. package/fesm2022/ngwr-splitter.mjs +3 -3
  215. package/fesm2022/ngwr-statistic.mjs +9 -9
  216. package/fesm2022/ngwr-stepper.mjs +6 -6
  217. package/fesm2022/ngwr-storage.mjs +3 -3
  218. package/fesm2022/ngwr-switch.mjs +3 -3
  219. package/fesm2022/ngwr-table-router.mjs +89 -0
  220. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  221. package/fesm2022/ngwr-table-testing.mjs +5 -0
  222. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  223. package/fesm2022/ngwr-table.mjs +282 -43
  224. package/fesm2022/ngwr-table.mjs.map +1 -1
  225. package/fesm2022/ngwr-tabs-router.mjs +11 -7
  226. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  227. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  228. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  229. package/fesm2022/ngwr-tabs.mjs +60 -10
  230. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  231. package/fesm2022/ngwr-textarea.mjs +3 -3
  232. package/fesm2022/ngwr-theme.mjs +3 -3
  233. package/fesm2022/ngwr-timeline.mjs +6 -6
  234. package/fesm2022/ngwr-toast.mjs +15 -15
  235. package/fesm2022/ngwr-toolbar.mjs +3 -3
  236. package/fesm2022/ngwr-tour.mjs +7 -6
  237. package/fesm2022/ngwr-tour.mjs.map +1 -1
  238. package/fesm2022/ngwr-transfer.mjs +4 -3
  239. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  240. package/fesm2022/ngwr-tree.mjs +3 -3
  241. package/fesm2022/ngwr-typography.mjs +3 -3
  242. package/fesm2022/ngwr-utils-router.mjs +3 -3
  243. package/fesm2022/ngwr-utils.mjs +30 -2
  244. package/fesm2022/ngwr-utils.mjs.map +1 -1
  245. package/fesm2022/ngwr-version.mjs +1 -1
  246. package/fesm2022/ngwr-version.mjs.map +1 -1
  247. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  248. package/fesm2022/ngwr-window.mjs +18 -13
  249. package/fesm2022/ngwr-window.mjs.map +1 -1
  250. package/file-upload/styles/_index.scss +16 -0
  251. package/graph/styles/_index.scss +48 -0
  252. package/i18n/ar.json +4 -2
  253. package/i18n/cs.json +4 -2
  254. package/i18n/de.json +4 -2
  255. package/i18n/en.json +4 -2
  256. package/i18n/es.json +4 -2
  257. package/i18n/fr.json +4 -2
  258. package/i18n/he.json +4 -2
  259. package/i18n/hi.json +4 -2
  260. package/i18n/id.json +4 -2
  261. package/i18n/it.json +4 -2
  262. package/i18n/ja.json +4 -2
  263. package/i18n/kk.json +567 -0
  264. package/i18n/ko.json +4 -2
  265. package/i18n/nl.json +4 -2
  266. package/i18n/pl.json +4 -2
  267. package/i18n/pt.json +4 -2
  268. package/i18n/ru.json +4 -2
  269. package/i18n/sv.json +4 -2
  270. package/i18n/tr.json +4 -2
  271. package/i18n/uk.json +4 -2
  272. package/i18n/vi.json +4 -2
  273. package/i18n/zh-TW.json +4 -2
  274. package/i18n/zh.json +4 -2
  275. package/llms-full.txt +29 -18
  276. package/llms.txt +4 -1
  277. package/package.json +15 -7
  278. package/pagination/styles/_index.scss +6 -0
  279. package/popover/styles/_index.scss +4 -2
  280. package/progress/styles/_index.scss +64 -0
  281. package/radio/styles/_index.scss +4 -0
  282. package/schematics/use/symbol-map.json +5 -0
  283. package/sidebar/styles/_index.scss +58 -6
  284. package/skills/ngwr/SKILL.md +7 -6
  285. package/skills/ngwr/references/catalog.md +6 -4
  286. package/switch/styles/_index.scss +4 -0
  287. package/table/styles/_index.scss +128 -32
  288. package/tabs/styles/_index.scss +9 -0
  289. package/theme/styles/_focus.scss +3 -1
  290. package/tour/styles/_index.scss +3 -2
  291. package/types/ngwr-avatar.d.ts +39 -0
  292. package/types/ngwr-button.d.ts +12 -0
  293. package/types/ngwr-date-picker-testing.d.ts +22 -0
  294. package/types/ngwr-date-picker.d.ts +84 -17
  295. package/types/ngwr-date.d.ts +51 -0
  296. package/types/ngwr-directives.d.ts +45 -0
  297. package/types/ngwr-dropdown-testing.d.ts +8 -1
  298. package/types/ngwr-dropdown.d.ts +29 -0
  299. package/types/ngwr-file-upload-testing.d.ts +10 -0
  300. package/types/ngwr-file-upload.d.ts +55 -1
  301. package/types/ngwr-form.d.ts +3 -1
  302. package/types/ngwr-graph-testing.d.ts +28 -1
  303. package/types/ngwr-graph.d.ts +53 -3
  304. package/types/ngwr-i18n-kk.d.ts +3 -0
  305. package/types/ngwr-image-cropper.d.ts +6 -0
  306. package/types/ngwr-pagination-testing.d.ts +8 -0
  307. package/types/ngwr-pagination.d.ts +16 -0
  308. package/types/ngwr-popover.d.ts +39 -0
  309. package/types/ngwr-progress.d.ts +63 -1
  310. package/types/ngwr-scroll.d.ts +95 -0
  311. package/types/ngwr-select.d.ts +31 -12
  312. package/types/ngwr-sidebar-testing.d.ts +21 -7
  313. package/types/ngwr-sidebar.d.ts +66 -4
  314. package/types/ngwr-table-router.d.ts +49 -0
  315. package/types/ngwr-table-testing.d.ts +7 -0
  316. package/types/ngwr-table.d.ts +185 -6
  317. package/types/ngwr-tabs-router.d.ts +4 -5
  318. package/types/ngwr-tabs-testing.d.ts +5 -1
  319. package/types/ngwr-tabs.d.ts +34 -1
  320. package/types/ngwr-utils.d.ts +13 -0
  321. package/types/ngwr-version.d.ts +1 -1
@@ -4,7 +4,7 @@ import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coerci
4
4
  import { wrCheckStyles, wrClamp, wrGetFocusableElements, wrToClassList } from "ngwr/utils";
5
5
  import { useI18nFormatter, useI18nText, wrReadI18nText } from "ngwr/i18n";
6
6
  import { Directionality } from "@angular/cdk/bidi";
7
- import { WrDateAdapter, wrDateLocale, wrPeriodEnd, wrPeriodStart, wrWeekOfYear, wrWeekStart } from "ngwr/date";
7
+ import { WrDateAdapter, wrDateLocale, wrFromDay, wrPeriodEnd, wrPeriodStart, wrToDay, wrWeekOfYear, wrWeekStart } from "ngwr/date";
8
8
  import { WR_FORM_FIELD } from "ngwr/form";
9
9
  import { ScrollStrategyOptions } from "@angular/cdk/overlay";
10
10
  import { ComponentPortal } from "@angular/cdk/portal";
@@ -256,7 +256,7 @@ var WrTimePanel = class WrTimePanel {
256
256
  }
257
257
  static ɵfac = i0.ɵɵngDeclareFactory({
258
258
  minVersion: "12.0.0",
259
- version: "22.2.6",
259
+ version: "22.3.0",
260
260
  ngImport: i0,
261
261
  type: WrTimePanel,
262
262
  deps: [],
@@ -264,7 +264,7 @@ var WrTimePanel = class WrTimePanel {
264
264
  });
265
265
  static ɵcmp = i0.ɵɵngDeclareComponent({
266
266
  minVersion: "17.0.0",
267
- version: "22.2.6",
267
+ version: "22.3.0",
268
268
  type: WrTimePanel,
269
269
  isStandalone: true,
270
270
  selector: "wr-time-picker",
@@ -334,7 +334,7 @@ var WrTimePanel = class WrTimePanel {
334
334
  };
335
335
  i0.ɵɵngDeclareClassMetadata({
336
336
  minVersion: "12.0.0",
337
- version: "22.2.6",
337
+ version: "22.3.0",
338
338
  ngImport: i0,
339
339
  type: WrTimePanel,
340
340
  decorators: [{
@@ -458,7 +458,7 @@ var WrDateTimePanel = class WrDateTimePanel {
458
458
  }
459
459
  static ɵfac = i0.ɵɵngDeclareFactory({
460
460
  minVersion: "12.0.0",
461
- version: "22.2.6",
461
+ version: "22.3.0",
462
462
  ngImport: i0,
463
463
  type: WrDateTimePanel,
464
464
  deps: [],
@@ -466,7 +466,7 @@ var WrDateTimePanel = class WrDateTimePanel {
466
466
  });
467
467
  static ɵcmp = i0.ɵɵngDeclareComponent({
468
468
  minVersion: "17.2.0",
469
- version: "22.2.6",
469
+ version: "22.3.0",
470
470
  type: WrDateTimePanel,
471
471
  isStandalone: true,
472
472
  selector: "wr-date-time-panel",
@@ -599,7 +599,7 @@ var WrDateTimePanel = class WrDateTimePanel {
599
599
  };
600
600
  i0.ɵɵngDeclareClassMetadata({
601
601
  minVersion: "12.0.0",
602
- version: "22.2.6",
602
+ version: "22.3.0",
603
603
  ngImport: i0,
604
604
  type: WrDateTimePanel,
605
605
  decorators: [{
@@ -820,7 +820,7 @@ var WrDateInputField = class WrDateInputField {
820
820
  }
821
821
  static ɵfac = i0.ɵɵngDeclareFactory({
822
822
  minVersion: "12.0.0",
823
- version: "22.2.6",
823
+ version: "22.3.0",
824
824
  ngImport: i0,
825
825
  type: WrDateInputField,
826
826
  deps: [],
@@ -828,14 +828,14 @@ var WrDateInputField = class WrDateInputField {
828
828
  });
829
829
  static ɵprov = i0.ɵɵngDeclareInjectable({
830
830
  minVersion: "12.0.0",
831
- version: "22.2.6",
831
+ version: "22.3.0",
832
832
  ngImport: i0,
833
833
  type: WrDateInputField
834
834
  });
835
835
  };
836
836
  i0.ɵɵngDeclareClassMetadata({
837
837
  minVersion: "12.0.0",
838
- version: "22.2.6",
838
+ version: "22.3.0",
839
839
  ngImport: i0,
840
840
  type: WrDateInputField,
841
841
  decorators: [{ type: Injectable }]
@@ -1012,10 +1012,14 @@ function wrPickerPanelInjector(parent, adapter) {
1012
1012
  */
1013
1013
  let panelUid = 0;
1014
1014
  const SILENCE_MS$1 = 100;
1015
+ function toBound(value) {
1016
+ return typeof value === "string" ? wrFromDay(value) ?? void 0 : value;
1017
+ }
1015
1018
  var WrDatePicker = class WrDatePicker {
1016
1019
  mode = input("date", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
1017
1020
  format = input(null, ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
1018
1021
  placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
1022
+ valueFormat = input("date", ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
1019
1023
  min = input(void 0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
1020
1024
  max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
1021
1025
  dateFilter = input(null, ...ngDevMode ? [{ debugName: "dateFilter" }] : /* istanbul ignore next */ []);
@@ -1067,11 +1071,23 @@ var WrDatePicker = class WrDatePicker {
1067
1071
  inputEl = viewChild.required("input", ...ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []);
1068
1072
  triggerEl = viewChild("trigger", ...ngDevMode ? [{ debugName: "triggerEl" }] : /* istanbul ignore next */ []);
1069
1073
  value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1074
+ holdsDay = computed(() => {
1075
+ const mode = this.mode();
1076
+ return this.valueFormat() === "day" && mode !== "time" && mode !== "datetime";
1077
+ }, ...ngDevMode ? [{ debugName: "holdsDay" }] : /* istanbul ignore next */ []);
1078
+ date = computed(() => this.toDate(this.value()), ...ngDevMode ? [{ debugName: "date" }] : /* istanbul ignore next */ []);
1079
+ minDate = computed(() => toBound(this.min()), ...ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []);
1080
+ maxDate = computed(() => toBound(this.max()), ...ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []);
1081
+ dayAttr = computed(() => {
1082
+ if (!this.holdsDay()) return null;
1083
+ const date = this.date();
1084
+ return date ? wrToDay(date) : "";
1085
+ }, ...ngDevMode ? [{ debugName: "dayAttr" }] : /* istanbul ignore next */ []);
1070
1086
  touch = output();
1071
1087
  opened = output();
1072
1088
  closed = output();
1073
1089
  text = signal("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
1074
- hasValue = computed(() => this.value() != null, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
1090
+ hasValue = computed(() => this.date() != null, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
1075
1091
  overlayOpen = signal(false, ...ngDevMode ? [{ debugName: "overlayOpen" }] : /* istanbul ignore next */ []);
1076
1092
  isOpen = this.overlayOpen.asReadonly();
1077
1093
  openedFrom = null;
@@ -1166,18 +1182,24 @@ var WrDatePicker = class WrDatePicker {
1166
1182
  lastKey = null;
1167
1183
  constructor() {
1168
1184
  if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("date-picker");
1185
+ if (typeof ngDevMode === "undefined" || ngDevMode) effect(() => {
1186
+ const mode = this.mode();
1187
+ if (this.valueFormat() !== "day" || mode !== "time" && mode !== "datetime") return;
1188
+ console.warn(`[NGWR] <wr-date-picker mode="${mode}"> ignores valueFormat="day": a day string cannot hold a time, so the value stays a Date. Drop valueFormat, or use mode="date" or a period mode.`);
1189
+ });
1169
1190
  this.destroyRef.onDestroy(() => {
1170
1191
  this.dispose();
1171
1192
  clearTimeout(this.silenceTimer);
1172
1193
  });
1173
1194
  effect(() => {
1174
- const v = this.value();
1195
+ const raw = this.value();
1196
+ const v = this.date();
1175
1197
  const fmt = this.resolvedFormat();
1176
1198
  const key = this.fieldText.key();
1177
1199
  untracked(() => {
1178
- const outside = v !== this.lastValue;
1179
- const echo = this.sameDate(v, this.lastValue) && fmt === this.lastFormat && key === this.lastKey;
1180
- this.lastValue = v;
1200
+ const outside = raw !== this.lastValue;
1201
+ const echo = this.sameValue(raw, this.lastValue) && fmt === this.lastFormat && key === this.lastKey;
1202
+ this.lastValue = raw;
1181
1203
  this.lastFormat = fmt;
1182
1204
  this.lastKey = key;
1183
1205
  if (echo && !(outside && this.refusal())) return;
@@ -1194,13 +1216,13 @@ var WrDatePicker = class WrDatePicker {
1194
1216
  this.inputField.describe(this.inputError);
1195
1217
  effect(() => {
1196
1218
  const ref = this.dateRef();
1197
- if (ref) ref.setInput("date", this.value());
1219
+ if (ref) ref.setInput("date", this.date());
1198
1220
  });
1199
1221
  effect(() => {
1200
1222
  const ref = this.dateRef();
1201
1223
  if (!ref) return;
1202
- ref.setInput("min", this.min());
1203
- ref.setInput("max", this.max());
1224
+ ref.setInput("min", this.minDate());
1225
+ ref.setInput("max", this.maxDate());
1204
1226
  ref.setInput("dateFilter", this.dateFilter());
1205
1227
  ref.setInput("granularity", this.period() ?? "day");
1206
1228
  });
@@ -1215,10 +1237,10 @@ var WrDatePicker = class WrDatePicker {
1215
1237
  effect(() => {
1216
1238
  const ref = this.dateTimeRef();
1217
1239
  if (!ref) return;
1218
- const value = this.value();
1240
+ const value = this.date();
1219
1241
  if (value !== this.lastFromPanel) ref.setInput("value", value);
1220
- ref.setInput("min", this.min());
1221
- ref.setInput("max", this.max());
1242
+ ref.setInput("min", this.minDate());
1243
+ ref.setInput("max", this.maxDate());
1222
1244
  ref.setInput("dateFilter", this.dateFilter());
1223
1245
  ref.setInput("timeFormat", this.timeFormat());
1224
1246
  ref.setInput("showSeconds", this.showSeconds());
@@ -1235,7 +1257,7 @@ var WrDatePicker = class WrDatePicker {
1235
1257
  return;
1236
1258
  }
1237
1259
  const parsed = this.fieldText.read(raw);
1238
- if (!parsed) {
1260
+ if (!parsed || this.holdsDay() && !wrToDay(parsed)) {
1239
1261
  this.refuse(this.fieldText.unreadable());
1240
1262
  return;
1241
1263
  }
@@ -1258,7 +1280,7 @@ var WrDatePicker = class WrDatePicker {
1258
1280
  }
1259
1281
  withKeptDate(parsed) {
1260
1282
  if (this.mode() !== "time") return parsed;
1261
- const current = this.value();
1283
+ const current = this.date();
1262
1284
  if (!current || !this.adapter.isValid(current)) return parsed;
1263
1285
  return this.adapter.setTime(current, this.adapter.getHours(parsed), this.adapter.getMinutes(parsed), this.adapter.getSeconds(parsed));
1264
1286
  }
@@ -1287,7 +1309,7 @@ var WrDatePicker = class WrDatePicker {
1287
1309
  this.revealed.set(true);
1288
1310
  }
1289
1311
  settleText() {
1290
- const v = this.value();
1312
+ const v = this.date();
1291
1313
  if (v && this.adapter.isValid(v)) this.text.set(this.fieldText.show(v));
1292
1314
  else if (!this.text()) this.commitValue(null);
1293
1315
  }
@@ -1301,7 +1323,7 @@ var WrDatePicker = class WrDatePicker {
1301
1323
  }
1302
1324
  onFormReset() {
1303
1325
  if (!this.refusal()) return;
1304
- const v = this.value();
1326
+ const v = this.date();
1305
1327
  this.text.set(v && this.adapter.isValid(v) ? this.fieldText.show(v) : "");
1306
1328
  this.refuse(null);
1307
1329
  }
@@ -1434,10 +1456,10 @@ var WrDatePicker = class WrDatePicker {
1434
1456
  if (!this.overlayRef) return;
1435
1457
  const ref = this.overlayRef.attach(new ComponentPortal(WrCalendar));
1436
1458
  ref.setInput("granularity", this.period() ?? "day");
1437
- ref.setInput("date", this.value());
1459
+ ref.setInput("date", this.date());
1438
1460
  this.dateRef.set(ref);
1439
- ref.setInput("min", this.min());
1440
- ref.setInput("max", this.max());
1461
+ ref.setInput("min", this.minDate());
1462
+ ref.setInput("max", this.maxDate());
1441
1463
  ref.setInput("dateFilter", this.dateFilter());
1442
1464
  ref.setInput("autoFocus", this.autoFocusPanel);
1443
1465
  ref.instance.date.subscribe((next) => {
@@ -1454,7 +1476,7 @@ var WrDatePicker = class WrDatePicker {
1454
1476
  ref.setInput("step", this.step());
1455
1477
  ref.setInput("autoFocus", this.autoFocusPanel);
1456
1478
  ref.setInput("readonly", this.readonly());
1457
- ref.setInput("value", this.value() ?? this.adapter.today());
1479
+ ref.setInput("value", this.date() ?? this.adapter.today());
1458
1480
  this.timeRef.set(ref);
1459
1481
  ref.instance.value.subscribe((next) => {
1460
1482
  if (!next) return;
@@ -1465,9 +1487,9 @@ var WrDatePicker = class WrDatePicker {
1465
1487
  attachDateTime() {
1466
1488
  if (!this.overlayRef) return;
1467
1489
  const ref = this.overlayRef.attach(new ComponentPortal(WrDateTimePanel, null, this.panelInjector()));
1468
- ref.setInput("value", this.value());
1469
- ref.setInput("min", this.min());
1470
- ref.setInput("max", this.max());
1490
+ ref.setInput("value", this.date());
1491
+ ref.setInput("min", this.minDate());
1492
+ ref.setInput("max", this.maxDate());
1471
1493
  ref.setInput("dateFilter", this.dateFilter());
1472
1494
  ref.setInput("timeFormat", this.timeFormat());
1473
1495
  ref.setInput("showSeconds", this.showSeconds());
@@ -1478,19 +1500,21 @@ var WrDatePicker = class WrDatePicker {
1478
1500
  ref.instance.changed.subscribe((next) => {
1479
1501
  this.lastFromPanel = next;
1480
1502
  this.commit(next);
1481
- ref.setInput("value", this.value());
1503
+ ref.setInput("value", this.date());
1482
1504
  });
1483
1505
  }
1484
1506
  commit(next) {
1485
1507
  if (this.readonly() || this.disabled()) return;
1508
+ if (this.holdsDay() && !wrToDay(next)) return;
1486
1509
  this.text.set(this.fieldText.show(next));
1487
1510
  this.commitValue(next);
1488
1511
  this.refuse(null);
1489
1512
  }
1490
1513
  commitValue(next) {
1491
1514
  if (this.readonly() || this.disabled()) return;
1492
- this.lastValue = next;
1493
- this.value.set(next);
1515
+ const held = this.toModel(next);
1516
+ this.lastValue = held;
1517
+ this.value.set(held);
1494
1518
  }
1495
1519
  closeOverlay() {
1496
1520
  const wasOpen = !!this.overlayRef;
@@ -1517,19 +1541,26 @@ var WrDatePicker = class WrDatePicker {
1517
1541
  if (this.mode() === "time") return null;
1518
1542
  const period = this.period();
1519
1543
  return this.refusals.outOfBounds(date, {
1520
- min: this.min(),
1521
- max: this.max(),
1544
+ min: this.minDate(),
1545
+ max: this.maxDate(),
1522
1546
  filter: this.dateFilter()
1523
1547
  }, period ? wrPeriodEnd(this.adapter, date, period) : date);
1524
1548
  }
1525
- sameDate(a, b) {
1549
+ sameValue(a, b) {
1526
1550
  if (a === b) return true;
1527
- if (!a || !b) return false;
1551
+ if (!(a instanceof Date) || !(b instanceof Date)) return false;
1528
1552
  return a.getTime() === b.getTime();
1529
1553
  }
1554
+ toDate(value) {
1555
+ if (this.holdsDay() && !(value instanceof Date)) return wrFromDay(value);
1556
+ return value ?? null;
1557
+ }
1558
+ toModel(date) {
1559
+ return date && this.holdsDay() ? wrToDay(date) : date;
1560
+ }
1530
1561
  static ɵfac = i0.ɵɵngDeclareFactory({
1531
1562
  minVersion: "12.0.0",
1532
- version: "22.2.6",
1563
+ version: "22.3.0",
1533
1564
  ngImport: i0,
1534
1565
  type: WrDatePicker,
1535
1566
  deps: [],
@@ -1537,7 +1568,7 @@ var WrDatePicker = class WrDatePicker {
1537
1568
  });
1538
1569
  static ɵcmp = i0.ɵɵngDeclareComponent({
1539
1570
  minVersion: "17.0.0",
1540
- version: "22.2.6",
1571
+ version: "22.3.0",
1541
1572
  type: WrDatePicker,
1542
1573
  isStandalone: true,
1543
1574
  selector: "wr-date-picker",
@@ -1563,6 +1594,13 @@ var WrDatePicker = class WrDatePicker {
1563
1594
  isRequired: false,
1564
1595
  transformFunction: null
1565
1596
  },
1597
+ valueFormat: {
1598
+ classPropertyName: "valueFormat",
1599
+ publicName: "valueFormat",
1600
+ isSignal: true,
1601
+ isRequired: false,
1602
+ transformFunction: null
1603
+ },
1566
1604
  min: {
1567
1605
  classPropertyName: "min",
1568
1606
  publicName: "min",
@@ -1697,7 +1735,10 @@ var WrDatePicker = class WrDatePicker {
1697
1735
  closed: "closed"
1698
1736
  },
1699
1737
  host: {
1700
- properties: { "class": "classes()" },
1738
+ properties: {
1739
+ "class": "classes()",
1740
+ "attr.data-day": "dayAttr()"
1741
+ },
1701
1742
  classAttribute: "wr-date-picker"
1702
1743
  },
1703
1744
  providers: [WrDateInputField],
@@ -1747,7 +1788,7 @@ var WrDatePicker = class WrDatePicker {
1747
1788
  };
1748
1789
  i0.ɵɵngDeclareClassMetadata({
1749
1790
  minVersion: "12.0.0",
1750
- version: "22.2.6",
1791
+ version: "22.3.0",
1751
1792
  ngImport: i0,
1752
1793
  type: WrDatePicker,
1753
1794
  decorators: [{
@@ -1757,7 +1798,8 @@ i0.ɵɵngDeclareClassMetadata({
1757
1798
  encapsulation: ViewEncapsulation.None,
1758
1799
  host: {
1759
1800
  class: "wr-date-picker",
1760
- "[class]": "classes()"
1801
+ "[class]": "classes()",
1802
+ "[attr.data-day]": "dayAttr()"
1761
1803
  },
1762
1804
  imports: [
1763
1805
  WrInput,
@@ -1795,6 +1837,14 @@ i0.ɵɵngDeclareClassMetadata({
1795
1837
  required: false
1796
1838
  }]
1797
1839
  }],
1840
+ valueFormat: [{
1841
+ type: i0.Input,
1842
+ args: [{
1843
+ isSignal: true,
1844
+ alias: "valueFormat",
1845
+ required: false
1846
+ }]
1847
+ }],
1798
1848
  min: [{
1799
1849
  type: i0.Input,
1800
1850
  args: [{
@@ -2061,7 +2111,7 @@ var WrDateRangePanel = class WrDateRangePanel {
2061
2111
  }
2062
2112
  static ɵfac = i0.ɵɵngDeclareFactory({
2063
2113
  minVersion: "12.0.0",
2064
- version: "22.2.6",
2114
+ version: "22.3.0",
2065
2115
  ngImport: i0,
2066
2116
  type: WrDateRangePanel,
2067
2117
  deps: [],
@@ -2069,7 +2119,7 @@ var WrDateRangePanel = class WrDateRangePanel {
2069
2119
  });
2070
2120
  static ɵcmp = i0.ɵɵngDeclareComponent({
2071
2121
  minVersion: "17.0.0",
2072
- version: "22.2.6",
2122
+ version: "22.3.0",
2073
2123
  type: WrDateRangePanel,
2074
2124
  isStandalone: true,
2075
2125
  selector: "wr-date-range-panel",
@@ -2226,7 +2276,7 @@ var WrDateRangePanel = class WrDateRangePanel {
2226
2276
  };
2227
2277
  i0.ɵɵngDeclareClassMetadata({
2228
2278
  minVersion: "12.0.0",
2229
- version: "22.2.6",
2279
+ version: "22.3.0",
2230
2280
  ngImport: i0,
2231
2281
  type: WrDateRangePanel,
2232
2282
  decorators: [{
@@ -2367,7 +2417,7 @@ var WrDateRangeEndInput = class WrDateRangeEndInput {
2367
2417
  }
2368
2418
  static ɵfac = i0.ɵɵngDeclareFactory({
2369
2419
  minVersion: "12.0.0",
2370
- version: "22.2.6",
2420
+ version: "22.3.0",
2371
2421
  ngImport: i0,
2372
2422
  type: WrDateRangeEndInput,
2373
2423
  deps: [],
@@ -2375,7 +2425,7 @@ var WrDateRangeEndInput = class WrDateRangeEndInput {
2375
2425
  });
2376
2426
  static ɵdir = i0.ɵɵngDeclareDirective({
2377
2427
  minVersion: "14.0.0",
2378
- version: "22.2.6",
2428
+ version: "22.3.0",
2379
2429
  type: WrDateRangeEndInput,
2380
2430
  isStandalone: true,
2381
2431
  selector: "input[wrDateRangeEnd]",
@@ -2388,7 +2438,7 @@ var WrDateRangeEndInput = class WrDateRangeEndInput {
2388
2438
  };
2389
2439
  i0.ɵɵngDeclareClassMetadata({
2390
2440
  minVersion: "12.0.0",
2391
- version: "22.2.6",
2441
+ version: "22.3.0",
2392
2442
  ngImport: i0,
2393
2443
  type: WrDateRangeEndInput,
2394
2444
  decorators: [{
@@ -2944,7 +2994,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2944
2994
  }
2945
2995
  static ɵfac = i0.ɵɵngDeclareFactory({
2946
2996
  minVersion: "12.0.0",
2947
- version: "22.2.6",
2997
+ version: "22.3.0",
2948
2998
  ngImport: i0,
2949
2999
  type: WrDateRangePicker,
2950
3000
  deps: [],
@@ -2952,7 +3002,7 @@ var WrDateRangePicker = class WrDateRangePicker {
2952
3002
  });
2953
3003
  static ɵcmp = i0.ɵɵngDeclareComponent({
2954
3004
  minVersion: "17.0.0",
2955
- version: "22.2.6",
3005
+ version: "22.3.0",
2956
3006
  type: WrDateRangePicker,
2957
3007
  isStandalone: true,
2958
3008
  selector: "wr-date-range-picker",
@@ -3198,7 +3248,7 @@ var WrDateRangePicker = class WrDateRangePicker {
3198
3248
  };
3199
3249
  i0.ɵɵngDeclareClassMetadata({
3200
3250
  minVersion: "12.0.0",
3201
- version: "22.2.6",
3251
+ version: "22.3.0",
3202
3252
  ngImport: i0,
3203
3253
  type: WrDateRangePicker,
3204
3254
  decorators: [{