ngwr 15.8.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/animations/aurora/styles/_index.scss +1 -1
  2. package/animations/blur-reveal/styles/_index.scss +1 -1
  3. package/animations/decode/styles/_index.scss +1 -1
  4. package/animations/dot-grid/styles/_index.scss +1 -1
  5. package/animations/flow-lines/styles/_index.scss +1 -1
  6. package/animations/fluid-cursor/styles/_index.scss +1 -1
  7. package/animations/{core → internal}/styles/_mixins.scss +1 -1
  8. package/animations/reveal/styles/_index.scss +1 -1
  9. package/animations/ripple-grid/styles/_index.scss +1 -1
  10. package/animations/rotate-reveal/styles/_index.scss +1 -1
  11. package/animations/thread-lines/styles/_index.scss +1 -1
  12. package/animations/typewriter/styles/_index.scss +1 -1
  13. package/copy-value/styles/_index.scss +104 -0
  14. package/date-picker/styles/_index.scss +117 -0
  15. package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
  16. package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
  17. package/fesm2022/ngwr-alert.mjs +2 -2
  18. package/fesm2022/ngwr-alert.mjs.map +1 -1
  19. package/fesm2022/ngwr-animations-aurora.mjs +21 -21
  20. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  21. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  22. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-click-sparks.mjs +2 -2
  24. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  25. package/fesm2022/ngwr-animations-confetti.mjs +5 -5
  26. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-decode.mjs +4 -4
  28. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-destruct.mjs +5 -5
  30. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-dot-grid.mjs +7 -7
  32. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  34. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-flow-lines.mjs +17 -17
  36. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-fluid-cursor.mjs +12 -12
  38. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-glitch.mjs +2 -2
  40. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-marquee.mjs +2 -2
  42. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-orbit.mjs +7 -7
  44. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-reveal.mjs +4 -4
  46. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-ripple-grid.mjs +5 -5
  48. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-rotate-reveal.mjs +4 -4
  50. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-shimmer.mjs +2 -2
  52. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-spotlight.mjs +1 -1
  54. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-thread-lines.mjs +16 -16
  56. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  58. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-typewriter.mjs +4 -4
  60. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  61. package/fesm2022/ngwr-avatar.mjs +3 -3
  62. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  63. package/fesm2022/ngwr-badge.mjs.map +1 -1
  64. package/fesm2022/ngwr-cascader.mjs +43 -20
  65. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  66. package/fesm2022/ngwr-charts-bar-chart.mjs +13 -13
  67. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  68. package/fesm2022/ngwr-charts-boxplot-chart.mjs +9 -9
  69. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  70. package/fesm2022/ngwr-charts-bullet-chart.mjs +8 -8
  71. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-candlestick-chart.mjs +11 -11
  73. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-chart-legend.mjs +2 -2
  75. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-core.mjs +20 -20
  77. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-donut-chart.mjs +2 -2
  79. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-funnel-chart.mjs +6 -6
  81. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  83. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  85. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  86. package/fesm2022/ngwr-charts-line-chart.mjs +10 -10
  87. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-meter-group.mjs +2 -2
  89. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  90. package/fesm2022/ngwr-charts-radar-chart.mjs +11 -11
  91. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  92. package/fesm2022/ngwr-charts-scatter-chart.mjs +10 -10
  93. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  94. package/fesm2022/ngwr-charts-treemap-chart.mjs +4 -4
  95. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  96. package/fesm2022/ngwr-charts-waterfall-chart.mjs +7 -7
  97. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  98. package/fesm2022/ngwr-checkbox.mjs +2 -2
  99. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  100. package/fesm2022/ngwr-collapse.mjs +2 -2
  101. package/fesm2022/ngwr-collapse.mjs.map +1 -1
  102. package/fesm2022/ngwr-color-picker.mjs +52 -52
  103. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-command-palette.mjs +4 -4
  105. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  106. package/fesm2022/ngwr-comment.mjs +2 -2
  107. package/fesm2022/ngwr-comment.mjs.map +1 -1
  108. package/fesm2022/ngwr-compare.mjs +6 -6
  109. package/fesm2022/ngwr-compare.mjs.map +1 -1
  110. package/fesm2022/ngwr-context-menu.mjs +4 -4
  111. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  112. package/fesm2022/ngwr-copy-value-testing.mjs +58 -0
  113. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -0
  114. package/fesm2022/ngwr-copy-value.mjs +196 -0
  115. package/fesm2022/ngwr-copy-value.mjs.map +1 -0
  116. package/fesm2022/ngwr-counter.mjs +3 -3
  117. package/fesm2022/ngwr-counter.mjs.map +1 -1
  118. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  119. package/fesm2022/ngwr-date-picker.mjs +217 -40
  120. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  121. package/fesm2022/ngwr-date.mjs +27 -5
  122. package/fesm2022/ngwr-date.mjs.map +1 -1
  123. package/fesm2022/ngwr-dialog.mjs +32 -3
  124. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  125. package/fesm2022/ngwr-directives.mjs +116 -1
  126. package/fesm2022/ngwr-directives.mjs.map +1 -1
  127. package/fesm2022/ngwr-drawer.mjs +3 -3
  128. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  129. package/fesm2022/ngwr-dropdown.mjs +13 -12
  130. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  131. package/fesm2022/ngwr-editor.mjs +28 -28
  132. package/fesm2022/ngwr-editor.mjs.map +1 -1
  133. package/fesm2022/ngwr-event-calendar.mjs +5 -5
  134. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  135. package/fesm2022/ngwr-file-upload.mjs +8 -8
  136. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  137. package/fesm2022/ngwr-graph.mjs +3 -3
  138. package/fesm2022/ngwr-graph.mjs.map +1 -1
  139. package/fesm2022/ngwr-hotkey.mjs +22 -22
  140. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-ar.mjs +5 -0
  142. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-cs.mjs +5 -0
  144. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-de.mjs +5 -0
  146. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-en.mjs +5 -0
  148. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-es.mjs +5 -0
  150. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-fr.mjs +5 -0
  152. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-he.mjs +5 -0
  154. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-hi.mjs +5 -0
  156. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n-id.mjs +5 -0
  158. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  159. package/fesm2022/ngwr-i18n-it.mjs +5 -0
  160. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  161. package/fesm2022/ngwr-i18n-ja.mjs +5 -0
  162. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  163. package/fesm2022/ngwr-i18n-ko.mjs +5 -0
  164. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  165. package/fesm2022/ngwr-i18n-nl.mjs +5 -0
  166. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  167. package/fesm2022/ngwr-i18n-pl.mjs +5 -0
  168. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  169. package/fesm2022/ngwr-i18n-pt.mjs +5 -0
  170. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  171. package/fesm2022/ngwr-i18n-ru.mjs +5 -0
  172. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  173. package/fesm2022/ngwr-i18n-sv.mjs +5 -0
  174. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  175. package/fesm2022/ngwr-i18n-tr.mjs +5 -0
  176. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  177. package/fesm2022/ngwr-i18n-uk.mjs +5 -0
  178. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  179. package/fesm2022/ngwr-i18n-vi.mjs +5 -0
  180. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  181. package/fesm2022/ngwr-i18n-zh-tw.mjs +5 -0
  182. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  183. package/fesm2022/ngwr-i18n-zh.mjs +5 -0
  184. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  185. package/fesm2022/ngwr-i18n.mjs +2 -2
  186. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  187. package/fesm2022/ngwr-icon.mjs +5 -5
  188. package/fesm2022/ngwr-icon.mjs.map +1 -1
  189. package/fesm2022/ngwr-image-cropper.mjs +11 -11
  190. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  191. package/fesm2022/ngwr-input-number.mjs +4 -4
  192. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  193. package/fesm2022/ngwr-input-otp.mjs +2 -2
  194. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  195. package/fesm2022/ngwr-input.mjs +15 -15
  196. package/fesm2022/ngwr-input.mjs.map +1 -1
  197. package/fesm2022/ngwr-keyboard.mjs +28 -28
  198. package/fesm2022/ngwr-keyboard.mjs.map +1 -1
  199. package/fesm2022/ngwr-knob.mjs +4 -4
  200. package/fesm2022/ngwr-knob.mjs.map +1 -1
  201. package/fesm2022/ngwr-lightbox.mjs +2 -2
  202. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  203. package/fesm2022/ngwr-load-state.mjs +2 -2
  204. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  205. package/fesm2022/ngwr-mention.mjs +6 -6
  206. package/fesm2022/ngwr-mention.mjs.map +1 -1
  207. package/fesm2022/ngwr-meta.mjs +19 -3
  208. package/fesm2022/ngwr-meta.mjs.map +1 -1
  209. package/fesm2022/ngwr-overlay.mjs +3 -3
  210. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  211. package/fesm2022/ngwr-pagination.mjs +7 -5
  212. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  213. package/fesm2022/ngwr-pipes.mjs +3 -5
  214. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  215. package/fesm2022/ngwr-platform.mjs +4 -1
  216. package/fesm2022/ngwr-platform.mjs.map +1 -1
  217. package/fesm2022/ngwr-popconfirm.mjs +6 -5
  218. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  219. package/fesm2022/ngwr-popover.mjs +31 -30
  220. package/fesm2022/ngwr-popover.mjs.map +1 -1
  221. package/fesm2022/ngwr-pull-to-refresh.mjs +2 -2
  222. package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
  223. package/fesm2022/ngwr-qr.mjs +6 -6
  224. package/fesm2022/ngwr-qr.mjs.map +1 -1
  225. package/fesm2022/ngwr-radio.mjs +3 -3
  226. package/fesm2022/ngwr-radio.mjs.map +1 -1
  227. package/fesm2022/ngwr-rating.mjs +10 -10
  228. package/fesm2022/ngwr-rating.mjs.map +1 -1
  229. package/fesm2022/ngwr-schema-form.mjs +15 -5
  230. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  231. package/fesm2022/ngwr-select.mjs +57 -34
  232. package/fesm2022/ngwr-select.mjs.map +1 -1
  233. package/fesm2022/ngwr-sidebar.mjs +3 -3
  234. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  235. package/fesm2022/ngwr-skeleton.mjs +2 -2
  236. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  237. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  238. package/fesm2022/ngwr-slider.mjs +13 -13
  239. package/fesm2022/ngwr-slider.mjs.map +1 -1
  240. package/fesm2022/ngwr-sortable-list.mjs +3 -3
  241. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  242. package/fesm2022/ngwr-splitter.mjs +5 -5
  243. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  244. package/fesm2022/ngwr-statistic.mjs +5 -3
  245. package/fesm2022/ngwr-statistic.mjs.map +1 -1
  246. package/fesm2022/ngwr-storage.mjs +6 -4
  247. package/fesm2022/ngwr-storage.mjs.map +1 -1
  248. package/fesm2022/ngwr-switch.mjs +2 -2
  249. package/fesm2022/ngwr-switch.mjs.map +1 -1
  250. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  251. package/fesm2022/ngwr-table.mjs +263 -32
  252. package/fesm2022/ngwr-table.mjs.map +1 -1
  253. package/fesm2022/ngwr-tabs.mjs +2 -2
  254. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  255. package/fesm2022/ngwr-toast-testing.mjs +8 -1
  256. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  257. package/fesm2022/ngwr-toast.mjs +63 -20
  258. package/fesm2022/ngwr-toast.mjs.map +1 -1
  259. package/fesm2022/ngwr-tour.mjs +7 -7
  260. package/fesm2022/ngwr-tour.mjs.map +1 -1
  261. package/fesm2022/ngwr-transfer.mjs +20 -9
  262. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  263. package/fesm2022/ngwr-tree.mjs +64 -24
  264. package/fesm2022/ngwr-tree.mjs.map +1 -1
  265. package/fesm2022/ngwr-utils.mjs +98 -55
  266. package/fesm2022/ngwr-utils.mjs.map +1 -1
  267. package/fesm2022/ngwr-validators.mjs +2 -2
  268. package/fesm2022/ngwr-validators.mjs.map +1 -1
  269. package/fesm2022/ngwr-version.mjs +1 -1
  270. package/fesm2022/ngwr-version.mjs.map +1 -1
  271. package/fesm2022/ngwr-window.mjs +26 -26
  272. package/fesm2022/ngwr-window.mjs.map +1 -1
  273. package/fesm2022/ngwr.mjs.map +1 -1
  274. package/i18n/ar.json +5 -0
  275. package/i18n/cs.json +5 -0
  276. package/i18n/de.json +5 -0
  277. package/i18n/en.json +5 -0
  278. package/i18n/es.json +5 -0
  279. package/i18n/fr.json +5 -0
  280. package/i18n/he.json +5 -0
  281. package/i18n/hi.json +5 -0
  282. package/i18n/id.json +5 -0
  283. package/i18n/it.json +5 -0
  284. package/i18n/ja.json +5 -0
  285. package/i18n/ko.json +5 -0
  286. package/i18n/nl.json +5 -0
  287. package/i18n/pl.json +5 -0
  288. package/i18n/pt.json +5 -0
  289. package/i18n/ru.json +5 -0
  290. package/i18n/sv.json +5 -0
  291. package/i18n/tr.json +5 -0
  292. package/i18n/uk.json +5 -0
  293. package/i18n/vi.json +5 -0
  294. package/i18n/zh-TW.json +5 -0
  295. package/i18n/zh.json +5 -0
  296. package/input-number/styles/_index.scss +6 -0
  297. package/llms-full.txt +31 -19
  298. package/llms.txt +37 -19
  299. package/mcp/providers.js +1 -1
  300. package/package.json +15 -10
  301. package/pagination/styles/_index.scss +8 -0
  302. package/schematics/icon-set/index.js +3 -3
  303. package/schematics/migrations/v16/index.js +742 -0
  304. package/schematics/migrations.json +5 -0
  305. package/schematics/ng-add/index.js +4 -4
  306. package/schematics/provider/index.js +4 -4
  307. package/schematics/use/symbol-map.json +2 -0
  308. package/select/styles/_index.scss +1 -1
  309. package/skills/ngwr/SKILL.md +6 -4
  310. package/skills/ngwr/references/catalog.md +4 -2
  311. package/skills/ngwr/references/setup.md +10 -9
  312. package/table/styles/_index.scss +92 -30
  313. package/toast/styles/_index.scss +30 -0
  314. package/tree/styles/_index.scss +17 -0
  315. package/types/index-CXbgza47.d.ts +13 -0
  316. package/types/ngwr-animations-aurora.d.ts +1 -1
  317. package/types/ngwr-animations-blur-reveal.d.ts +2 -2
  318. package/types/ngwr-animations-dot-grid.d.ts +1 -2
  319. package/types/ngwr-animations-flow-lines.d.ts +1 -1
  320. package/types/ngwr-animations-fluid-cursor.d.ts +1 -1
  321. package/types/ngwr-animations-reveal.d.ts +4 -8
  322. package/types/ngwr-animations-ripple-grid.d.ts +1 -1
  323. package/types/ngwr-animations-spotlight.d.ts +1 -1
  324. package/types/ngwr-animations-thread-lines.d.ts +1 -1
  325. package/types/ngwr-animations-tilt.d.ts +1 -1
  326. package/types/ngwr-avatar.d.ts +2 -2
  327. package/types/ngwr-badge.d.ts +1 -1
  328. package/types/ngwr-cascader.d.ts +12 -1
  329. package/types/ngwr-charts-boxplot-chart.d.ts +1 -1
  330. package/types/ngwr-charts-bullet-chart.d.ts +2 -2
  331. package/types/ngwr-charts-candlestick-chart.d.ts +1 -1
  332. package/types/ngwr-charts-core.d.ts +12 -12
  333. package/types/ngwr-charts-line-chart.d.ts +2 -2
  334. package/types/ngwr-charts-radar-chart.d.ts +1 -1
  335. package/types/ngwr-charts-scatter-chart.d.ts +2 -2
  336. package/types/ngwr-charts-waterfall-chart.d.ts +1 -1
  337. package/types/ngwr-color-picker.d.ts +12 -12
  338. package/types/ngwr-copy-value-testing.d.ts +87 -0
  339. package/types/ngwr-copy-value.d.ts +95 -0
  340. package/types/ngwr-date-picker-testing.d.ts +3 -3
  341. package/types/ngwr-date-picker.d.ts +97 -1
  342. package/types/ngwr-date.d.ts +44 -3
  343. package/types/ngwr-dialog.d.ts +50 -3
  344. package/types/ngwr-directives.d.ts +40 -0
  345. package/types/ngwr-drawer.d.ts +1 -1
  346. package/types/ngwr-dropdown.d.ts +3 -2
  347. package/types/ngwr-hotkey.d.ts +5 -5
  348. package/types/ngwr-i18n.d.ts +3 -3
  349. package/types/ngwr-icon.d.ts +26 -26
  350. package/types/ngwr-input-number.d.ts +2 -2
  351. package/types/ngwr-input.d.ts +8 -8
  352. package/types/ngwr-load-state.d.ts +6 -6
  353. package/types/ngwr-meta.d.ts +18 -0
  354. package/types/ngwr-pipes.d.ts +6 -4
  355. package/types/ngwr-platform.d.ts +2 -1
  356. package/types/ngwr-popconfirm.d.ts +3 -2
  357. package/types/ngwr-popover.d.ts +4 -3
  358. package/types/ngwr-select.d.ts +33 -18
  359. package/types/ngwr-slider-testing.d.ts +2 -2
  360. package/types/ngwr-slider.d.ts +3 -3
  361. package/types/ngwr-statistic.d.ts +5 -1
  362. package/types/ngwr-storage.d.ts +1 -1
  363. package/types/ngwr-table-testing.d.ts +2 -1
  364. package/types/ngwr-table.d.ts +155 -18
  365. package/types/ngwr-tabs.d.ts +10 -2
  366. package/types/ngwr-toast-testing.d.ts +6 -2
  367. package/types/ngwr-toast.d.ts +33 -5
  368. package/types/ngwr-transfer.d.ts +5 -0
  369. package/types/ngwr-tree.d.ts +22 -2
  370. package/types/ngwr-utils.d.ts +157 -82
  371. package/types/ngwr-validators.d.ts +4 -2
  372. package/types/ngwr-version.d.ts +1 -1
  373. package/types/ngwr.d.ts +1 -0
  374. package/types/pointer-tracker-D7fXxLQL.d.ts +24 -0
  375. package/fesm2022/ngwr-animations-core.mjs.map +0 -1
  376. package/types/ngwr-animations-core.d.ts +0 -294
@@ -0,0 +1,196 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, ViewEncapsulation, computed, inject, input, output, signal } from "@angular/core";
3
+ import { coerceBooleanProperty } from "@angular/cdk/coercion";
4
+ import { wrCheckStyles } from "ngwr/utils";
5
+ import { useI18nText } from "ngwr/i18n";
6
+ import { WrClipboard } from "ngwr/clipboard";
7
+ /**
8
+ * @license
9
+ *
10
+ * Use of this source code is governed by an MIT-style license that can be
11
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
12
+ */
13
+ const COPIED_MS = 1500;
14
+ var WrCopyValue = class WrCopyValue {
15
+ constructor() {
16
+ if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("copy-value");
17
+ inject(DestroyRef).onDestroy(() => {
18
+ this.destroyed = true;
19
+ this.clearTimer();
20
+ });
21
+ }
22
+ value = input(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
23
+ wrap = input(false, {
24
+ ...ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {},
25
+ transform: coerceBooleanProperty
26
+ });
27
+ copyLabel = input(null, ...ngDevMode ? [{ debugName: "copyLabel" }] : /* istanbul ignore next */ []);
28
+ copiedLabel = input(null, ...ngDevMode ? [{ debugName: "copiedLabel" }] : /* istanbul ignore next */ []);
29
+ emptyLabel = input(null, ...ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []);
30
+ copied = output();
31
+ copyFailed = output();
32
+ resolvedCopyLabel = useI18nText(this.copyLabel, "copyValue.copy", "Copy");
33
+ resolvedCopiedLabel = useI18nText(this.copiedLabel, "copyValue.copied", "Copied");
34
+ resolvedEmptyLabel = useI18nText(this.emptyLabel, "copyValue.empty", "-");
35
+ text = computed(() => String(this.value() ?? ""), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
36
+ empty = computed(() => this.text() === "", ...ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []);
37
+ justCopied = signal(false, ...ngDevMode ? [{ debugName: "justCopied" }] : /* istanbul ignore next */ []);
38
+ classes = computed(() => {
39
+ const parts = ["wr-copy-value"];
40
+ if (this.wrap()) parts.push("wr-copy-value--wrap");
41
+ if (this.empty()) parts.push("wr-copy-value--empty");
42
+ if (this.justCopied()) parts.push("wr-copy-value--copied");
43
+ return parts.join(" ");
44
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
45
+ clipboard = inject(WrClipboard);
46
+ destroyed = false;
47
+ timer = null;
48
+ async copy() {
49
+ const text = this.text();
50
+ if (text === "") return false;
51
+ const written = await this.clipboard.write(text);
52
+ if (this.destroyed) return written;
53
+ if (!written) {
54
+ this.copyFailed.emit();
55
+ return false;
56
+ }
57
+ this.clearTimer();
58
+ this.justCopied.set(true);
59
+ this.timer = setTimeout(() => this.justCopied.set(false), COPIED_MS);
60
+ this.copied.emit(text);
61
+ return true;
62
+ }
63
+ clearTimer() {
64
+ if (this.timer !== null) clearTimeout(this.timer);
65
+ this.timer = null;
66
+ }
67
+ static ɵfac = i0.ɵɵngDeclareFactory({
68
+ minVersion: "12.0.0",
69
+ version: "22.2.5",
70
+ ngImport: i0,
71
+ type: WrCopyValue,
72
+ deps: [],
73
+ target: i0.ɵɵFactoryTarget.Component
74
+ });
75
+ static ɵcmp = i0.ɵɵngDeclareComponent({
76
+ minVersion: "17.0.0",
77
+ version: "22.2.5",
78
+ type: WrCopyValue,
79
+ isStandalone: true,
80
+ selector: "wr-copy-value",
81
+ inputs: {
82
+ value: {
83
+ classPropertyName: "value",
84
+ publicName: "value",
85
+ isSignal: true,
86
+ isRequired: false,
87
+ transformFunction: null
88
+ },
89
+ wrap: {
90
+ classPropertyName: "wrap",
91
+ publicName: "wrap",
92
+ isSignal: true,
93
+ isRequired: false,
94
+ transformFunction: null
95
+ },
96
+ copyLabel: {
97
+ classPropertyName: "copyLabel",
98
+ publicName: "copyLabel",
99
+ isSignal: true,
100
+ isRequired: false,
101
+ transformFunction: null
102
+ },
103
+ copiedLabel: {
104
+ classPropertyName: "copiedLabel",
105
+ publicName: "copiedLabel",
106
+ isSignal: true,
107
+ isRequired: false,
108
+ transformFunction: null
109
+ },
110
+ emptyLabel: {
111
+ classPropertyName: "emptyLabel",
112
+ publicName: "emptyLabel",
113
+ isSignal: true,
114
+ isRequired: false,
115
+ transformFunction: null
116
+ }
117
+ },
118
+ outputs: {
119
+ copied: "copied",
120
+ copyFailed: "copyFailed"
121
+ },
122
+ host: { properties: { "class": "classes()" } },
123
+ ngImport: i0,
124
+ template: "@if (empty()) {\n <span class=\"wr-copy-value__empty\">{{ resolvedEmptyLabel() }}</span>\n} @else {\n <span class=\"wr-copy-value__text\" [attr.title]=\"wrap() ? null : text()\">{{ text() }}</span>\n <button\n type=\"button\"\n class=\"wr-copy-value__button\"\n [attr.aria-label]=\"resolvedCopyLabel()\"\n [attr.title]=\"justCopied() ? resolvedCopiedLabel() : resolvedCopyLabel()\"\n (click)=\"copy()\"\n >\n <svg\n class=\"wr-copy-value__icon\"\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 @if (justCopied()) {\n <path d=\"M20 6 9 17l-5-5\" />\n } @else {\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n }\n </svg>\n </button>\n <!-- Rendered before the copy, empty: a live region announces a change to its\n content, and one inserted together with its text is often not read. -->\n <span class=\"wr-copy-value__status\" role=\"status\" aria-live=\"polite\">{{\n justCopied() ? resolvedCopiedLabel() : ''\n }}</span>\n}\n",
125
+ encapsulation: i0.ViewEncapsulation.None
126
+ });
127
+ };
128
+ i0.ɵɵngDeclareClassMetadata({
129
+ minVersion: "12.0.0",
130
+ version: "22.2.5",
131
+ ngImport: i0,
132
+ type: WrCopyValue,
133
+ decorators: [{
134
+ type: Component,
135
+ args: [{
136
+ selector: "wr-copy-value",
137
+ encapsulation: ViewEncapsulation.None,
138
+ host: { "[class]": "classes()" },
139
+ template: "@if (empty()) {\n <span class=\"wr-copy-value__empty\">{{ resolvedEmptyLabel() }}</span>\n} @else {\n <span class=\"wr-copy-value__text\" [attr.title]=\"wrap() ? null : text()\">{{ text() }}</span>\n <button\n type=\"button\"\n class=\"wr-copy-value__button\"\n [attr.aria-label]=\"resolvedCopyLabel()\"\n [attr.title]=\"justCopied() ? resolvedCopiedLabel() : resolvedCopyLabel()\"\n (click)=\"copy()\"\n >\n <svg\n class=\"wr-copy-value__icon\"\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 @if (justCopied()) {\n <path d=\"M20 6 9 17l-5-5\" />\n } @else {\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n }\n </svg>\n </button>\n <!-- Rendered before the copy, empty: a live region announces a change to its\n content, and one inserted together with its text is often not read. -->\n <span class=\"wr-copy-value__status\" role=\"status\" aria-live=\"polite\">{{\n justCopied() ? resolvedCopiedLabel() : ''\n }}</span>\n}\n"
140
+ }]
141
+ }],
142
+ ctorParameters: () => [],
143
+ propDecorators: {
144
+ value: [{
145
+ type: i0.Input,
146
+ args: [{
147
+ isSignal: true,
148
+ alias: "value",
149
+ required: false
150
+ }]
151
+ }],
152
+ wrap: [{
153
+ type: i0.Input,
154
+ args: [{
155
+ isSignal: true,
156
+ alias: "wrap",
157
+ required: false
158
+ }]
159
+ }],
160
+ copyLabel: [{
161
+ type: i0.Input,
162
+ args: [{
163
+ isSignal: true,
164
+ alias: "copyLabel",
165
+ required: false
166
+ }]
167
+ }],
168
+ copiedLabel: [{
169
+ type: i0.Input,
170
+ args: [{
171
+ isSignal: true,
172
+ alias: "copiedLabel",
173
+ required: false
174
+ }]
175
+ }],
176
+ emptyLabel: [{
177
+ type: i0.Input,
178
+ args: [{
179
+ isSignal: true,
180
+ alias: "emptyLabel",
181
+ required: false
182
+ }]
183
+ }],
184
+ copied: [{
185
+ type: i0.Output,
186
+ args: ["copied"]
187
+ }],
188
+ copyFailed: [{
189
+ type: i0.Output,
190
+ args: ["copyFailed"]
191
+ }]
192
+ }
193
+ });
194
+ export { WrCopyValue };
195
+
196
+ //# sourceMappingURL=ngwr-copy-value.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-copy-value.mjs","names":[],"sources":["../../../projects/lib/copy-value/copy-value.ts","../../../projects/lib/copy-value/copy-value.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, DestroyRef, ViewEncapsulation, computed, inject, input, output, signal } from '@angular/core';\n\nimport { WrClipboard } from 'ngwr/clipboard';\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/** How long the tick and the \"Copied\" text stay, the same as the toast's copy button. */\nconst COPIED_MS = 1500;\n\n/**\n * A short value with a copy button beside it: an id, a serial number, an\n * address, a name in a table cell.\n *\n * The value truncates on one line and keeps the whole text in its `title`;\n * `wrap` lets it run over several lines instead. `null`, `undefined` and `''`\n * are empty: the component shows `emptyLabel` and no button. `0` is a value.\n *\n * The write goes through `WrClipboard`, so it also works on a plain `http://`\n * origin. After it succeeds the button shows a tick and the \"Copied\" text is\n * announced politely; a refused write changes nothing and emits `copyFailed`.\n *\n * @example\n * ```html\n * <wr-copy-value [value]=\"order.id\" />\n * <wr-copy-value [value]=\"user.fullName\" wrap (copied)=\"track($event)\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/copy-value\n */\n@Component({\n selector: 'wr-copy-value',\n templateUrl: './copy-value.html',\n encapsulation: ViewEncapsulation.None,\n host: { '[class]': 'classes()' },\n})\nexport class WrCopyValue {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('copy-value');\n inject(DestroyRef).onDestroy(() => {\n this.destroyed = true;\n this.clearTimer();\n });\n }\n\n /**\n * The value shown and copied. `null`, `undefined` and `''` are empty.\n *\n * @default null\n */\n readonly value = input<string | number | null | undefined>(null);\n\n /**\n * Let a long value wrap over several lines instead of truncating it.\n *\n * @default false\n */\n readonly wrap = input(false, { transform: coerceBooleanProperty });\n\n /** Accessible name and tooltip of the button. Falls back to `copyValue.copy`, then `'Copy'`. */\n readonly copyLabel = input<string | null>(null);\n\n /** Tooltip and announcement after a copy. Falls back to `copyValue.copied`, then `'Copied'`. */\n readonly copiedLabel = input<string | null>(null);\n\n /** What stands in for an empty value. Falls back to `copyValue.empty`, then `'-'`. */\n readonly emptyLabel = input<string | null>(null);\n\n /** Emitted with the text that reached the clipboard. */\n readonly copied = output<string>();\n\n /** Emitted when the browser refused the write. */\n readonly copyFailed = output<void>();\n\n protected readonly resolvedCopyLabel = useI18nText(this.copyLabel, 'copyValue.copy', 'Copy');\n protected readonly resolvedCopiedLabel = useI18nText(this.copiedLabel, 'copyValue.copied', 'Copied');\n protected readonly resolvedEmptyLabel = useI18nText(this.emptyLabel, 'copyValue.empty', '-');\n\n protected readonly text = computed(() => String(this.value() ?? ''));\n protected readonly empty = computed(() => this.text() === '');\n\n /** True for a moment after a successful copy. */\n protected readonly justCopied = signal(false);\n\n protected readonly classes = computed(() => {\n const parts = ['wr-copy-value'];\n if (this.wrap()) parts.push('wr-copy-value--wrap');\n if (this.empty()) parts.push('wr-copy-value--empty');\n if (this.justCopied()) parts.push('wr-copy-value--copied');\n return parts.join(' ');\n });\n\n private readonly clipboard = inject(WrClipboard);\n private destroyed = false;\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * Copies the value, as a click on the button does. Resolves to whether the\n * text reached the clipboard; an empty value resolves to `false` and emits\n * nothing.\n */\n async copy(): Promise<boolean> {\n const text = this.text();\n if (text === '') return false;\n\n const written = await this.clipboard.write(text);\n // An output refuses to emit once its component is gone.\n if (this.destroyed) return written;\n\n if (!written) {\n this.copyFailed.emit();\n return false;\n }\n\n this.clearTimer();\n this.justCopied.set(true);\n this.timer = setTimeout(() => this.justCopied.set(false), COPIED_MS);\n this.copied.emit(text);\n return true;\n }\n\n private clearTimer(): void {\n if (this.timer !== null) clearTimeout(this.timer);\n this.timer = null;\n }\n}\n","@if (empty()) {\n <span class=\"wr-copy-value__empty\">{{ resolvedEmptyLabel() }}</span>\n} @else {\n <span class=\"wr-copy-value__text\" [attr.title]=\"wrap() ? null : text()\">{{ text() }}</span>\n <button\n type=\"button\"\n class=\"wr-copy-value__button\"\n [attr.aria-label]=\"resolvedCopyLabel()\"\n [attr.title]=\"justCopied() ? resolvedCopiedLabel() : resolvedCopyLabel()\"\n (click)=\"copy()\"\n >\n <svg\n class=\"wr-copy-value__icon\"\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 @if (justCopied()) {\n <path d=\"M20 6 9 17l-5-5\" />\n } @else {\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n }\n </svg>\n </button>\n <!-- Rendered before the copy, empty: a live region announces a change to its\n content, and one inserted together with its text is often not read. -->\n <span class=\"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GAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,aAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,YAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA;GAAA,QAAA;GAAA,YAAA;EAAA;EAAA,MAAA,EAAA,YAAA,EAAA,SAAA,YAAA,EAAA;EAAA,UAAA;EAAA,UC3CxB;EAoCA,eAAA,GAAA,kBAAA;CAAA,CAAA;;ADOa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EANvB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,eAEV,kBAAkB;GAAI,MAC/B,EAAE,WAAW,YAAW;GAAE,UAAA;EAAA,CAAA"}
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import { Component, DestroyRef, ElementRef, LOCALE_ID, PLATFORM_ID, ViewEncapsulation, afterNextRender, computed, effect, inject, input, output, signal, untracked } from "@angular/core";
3
3
  import { coerceNumberProperty } from "@angular/cdk/coercion";
4
4
  import { isPlatformBrowser } from "@angular/common";
5
- import { numAttr, wrCheckStyles } from "ngwr/utils";
5
+ import { wrCheckStyles, wrNumAttr } from "ngwr/utils";
6
6
  import { WrPlatform } from "ngwr/platform";
7
7
  function easeOutCubic(t) {
8
8
  return 1 - Math.pow(1 - t, 3);
@@ -293,7 +293,7 @@ const SPRING_SETTLE_SHARE = .001;
293
293
  var WrCountUp = class WrCountUp {
294
294
  from = input(0, {
295
295
  ...ngDevMode ? { debugName: "from" } : /* istanbul ignore next */ {},
296
- transform: numAttr(0)
296
+ transform: wrNumAttr(0)
297
297
  });
298
298
  to = input.required(...ngDevMode ? [{ debugName: "to" }] : /* istanbul ignore next */ []);
299
299
  duration = input(null, {
@@ -303,7 +303,7 @@ var WrCountUp = class WrCountUp {
303
303
  resolvedDuration = computed(() => this.duration() ?? (this.easing() === "spring" ? 2 : 1200), ...ngDevMode ? [{ debugName: "resolvedDuration" }] : /* istanbul ignore next */ []);
304
304
  delay = input(0, {
305
305
  ...ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {},
306
- transform: numAttr(0)
306
+ transform: wrNumAttr(0)
307
307
  });
308
308
  easing = input("ease-out", ...ngDevMode ? [{ debugName: "easing" }] : /* istanbul ignore next */ []);
309
309
  trigger = input("mount", ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-counter.mjs","names":[],"sources":["../../../projects/lib/counter/easing.ts","../../../projects/lib/counter/counter.ts","../../../projects/lib/counter/counter.html","../../../projects/lib/counter/count-up.ts"],"sourcesContent":["/** Cubic ease-out — the shared tween curve for counter / count-up. */\nexport function easeOutCubic(t: number): number {\n return 1 - Math.pow(1 - t, 3);\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n LOCALE_ID,\n PLATFORM_ID,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n signal,\n untracked,\n} from '@angular/core';\n\nimport { WrPlatform } from 'ngwr/platform';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { easeOutCubic } from './easing';\nimport type { WrCounterMode } from './types';\n\n/**\n * Visual cell in odometer mode — either a 0-9 column or a static glyph. `key` is the\n * column's place counted from the RIGHT, so a wheel keeps its element when columns\n * come or go on the left.\n */\ntype Cell = { readonly key: number } & (\n { readonly kind: 'digit'; readonly fraction: number } | { readonly kind: 'static'; readonly char: string }\n);\n\n/**\n * Animated number display with two modes:\n *\n * - **`odometer`** (default) — each digit is a vertical strip of 0-9 that\n * rolls into place, continuously interpolated for smooth motion when the\n * value changes.\n * - **`tween`** — a single eased count-up between the previous and new value,\n * rendered through `Intl.NumberFormat`.\n *\n * Reacts to `[value]` changes — animate from any number to any number.\n *\n * @example\n * ```html\n * <wr-counter [value]=\"123456\" mode=\"odometer\" />\n * <wr-counter [value]=\"9.99\" mode=\"tween\" [decimals]=\"2\" prefix=\"$\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/counter\n */\n@Component({\n selector: 'wr-counter',\n templateUrl: './counter.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-counter' },\n})\nexport class WrCounter {\n /** Target value. */\n /**\n * The number to show. Coerced like every other numeric input here — it was the only one\n * without it, and `Intl.NumberFormat().format(NaN)` renders the literal text `NaN`.\n */\n readonly value = input.required<number, unknown>({\n transform: (v: unknown): number => coerceNumberProperty(v, 0),\n });\n\n /** Animation mode. @default 'odometer' */\n readonly mode = input<WrCounterMode>('odometer');\n\n /** Duration (ms). @default 900 */\n readonly duration = input(900, {\n transform: (v: unknown): number => Math.max(100, coerceNumberProperty(v, 900)),\n });\n\n /** Fixed number of decimals. @default 0 */\n readonly decimals = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /** Optional prefix (e.g. `'$'`). */\n readonly prefix = input<string>('');\n\n /** Optional suffix (e.g. `'%'`). */\n readonly suffix = input<string>('');\n\n /** Group thousands. @default true */\n readonly grouping = input<boolean>(true);\n\n /** Pad integer part to at least this many digits. @default 0 (no padding) */\n readonly minIntegerDigits = input(0, {\n transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)),\n });\n\n private readonly current = signal<number>(0);\n /** Where the running roll started; read only while `current` is short of the value. */\n private readonly from = signal<number>(0);\n private readonly locale = inject(LOCALE_ID);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly platform = inject(WrPlatform);\n private rafId: number | null = null;\n\n /** Tween-mode formatted output. */\n protected readonly tweenText = computed(() => this.format(this.current()));\n\n /**\n * Odometer-mode text for assistive tech and prerendered output. The strip\n * renders every digit 0-9 per column and picks one with a transform, so its\n * markup carries no usable text — screen readers would announce all ten, and\n * static HTML would ship the same noise. This node holds the real value.\n */\n protected readonly odoText = computed(() => `${this.prefix()}${this.format(this.value())}${this.suffix()}`);\n\n /** Odometer cells — one per character of the widest string the roll passes through. */\n protected readonly cells = computed<readonly Cell[]>(() => {\n const target = this.value();\n const live = this.current();\n // The layout of the whole roll is the longer of where it started and where it ends,\n // right-aligned so trailing digits line up. Laid out from the target and the live\n // value alone, a large decrease kept a wheel only where BOTH had a digit: 123456 to\n // 7 rolled the ones column and blanked the other five at once. Every column either\n // end has is a wheel now, so each rolls to its own digit — down to 0 for a place the\n // target does not have — and the width holds still until the roll lands.\n const values = live === target ? [target, live] : [target, live, this.from()];\n // Places only: a sign laid out with them landed mid-number whenever the start was\n // wider than the live value (-1,234 to 5 drew `0-935`), so it goes in front below.\n const strings = values.map(n => this.format(Math.abs(n)));\n const maxLen = Math.max(...strings.map(s => s.length));\n const padded = strings.map(s => s.padStart(maxLen, ' '));\n\n const cells: Cell[] = [];\n let digitsRight = 0;\n for (let i = maxLen - 1; i >= 0; i--) {\n const chars = padded.map(s => s[i]);\n const key = maxLen - i;\n if (chars.some(c => /[0-9]/.test(c))) {\n // Interpolate the fractional digit so the strip rolls smoothly —\n // multi-digit rollover (9 → 0 carries 1) looks continuous.\n const fraction = this.digitFraction(live, target, digitsRight - this.decimals());\n cells.unshift({ key, kind: 'digit', fraction });\n digitsRight++;\n } else {\n // A separator, the target's first; a pad is nothing.\n cells.unshift({ key, kind: 'static', char: chars.find(c => c !== ' ') ?? '' });\n }\n }\n\n // The live value's sign, whatever the locale writes ahead of its digits.\n const signed = this.format(live);\n const sign = signed.endsWith(strings[1]) ? signed.slice(0, signed.length - strings[1].length) : '';\n if (sign) cells.unshift({ key: maxLen + 1, kind: 'static', char: sign });\n return cells;\n });\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('counter');\n inject(DestroyRef).onDestroy(() => this.cancel());\n\n effect(() => {\n const target = this.value();\n // Snapshot the current value WITHOUT tracking it — the RAF tick below\n // writes `current` every frame, and tracking it here would re-trigger\n // this effect each frame, cancelling + restarting the tween endlessly\n // (the wheels hang mid-roll and only snap once the restarts converge).\n const start = untracked(() => this.current());\n // Straight to the answer when there is nothing to animate for: no browser, or a\n // reader who asked for less motion. `wr-scroll` already falls back the same way, and a\n // component whose entire purpose is a count-up should be the first to honour it.\n if (!this.isBrowser || this.platform.prefersReducedMotion()) {\n this.current.set(target);\n return;\n }\n this.cancel();\n this.from.set(start);\n const startTs = performance.now();\n const dur = this.duration();\n const tick = (now: number): void => {\n const t = Math.min(1, (now - startTs) / dur);\n // Snap exactly to target on the final frame. Without this,\n // `start + (target - start) * 1` carries FP rounding (e.g.\n // 0.1 + (0.3 - 0.1) * 1 = 0.30000000000000004), so\n // `digitFractionAt`'s `live === target` rest-state check\n // fails — wheels visibly stop on a fractional position and\n // never settle to the clean integer glyph.\n const v = t >= 1 ? target : start + (target - start) * easeOutCubic(t);\n this.current.set(v);\n if (t < 1) this.rafId = requestAnimationFrame(tick);\n else this.rafId = null;\n };\n this.rafId = requestAnimationFrame(tick);\n });\n }\n\n private cancel(): void {\n if (this.rafId !== null) cancelAnimationFrame(this.rafId);\n this.rafId = null;\n }\n\n private format(n: number): string {\n return new Intl.NumberFormat(this.locale, {\n minimumFractionDigits: this.decimals(),\n maximumFractionDigits: this.decimals(),\n minimumIntegerDigits: this.minIntegerDigits() || 1,\n useGrouping: this.grouping(),\n }).format(n);\n }\n\n /**\n * The smoothly-interpolated digit (0..10) of `live` at the column whose place value is\n * `10 ** placePower`. Returns the integer digit + a fraction so the strip CSS translate\n * looks like a real rolling odometer.\n */\n private digitFraction(live: number, target: number, placePower: number): number {\n const place = Math.pow(10, placePower);\n const raw = Math.abs(live) / place;\n // Modulo 10 gives the digit at this column with fractional rollover —\n // mid-animation this looks like a real wheel rolling between digits.\n const mod = raw - Math.floor(raw / 10) * 10;\n // At rest (live === target) every wheel must rest on an exact integer\n // — otherwise upper digits show as partial (e.g. tens reads \"5.6\"\n // for value 123456, visibly clipping between 5 and 6 in the\n // overflow:hidden window). The continuous-mechanical look is only\n // wanted DURING the tween, not after it settles.\n if (live === target) return Math.floor(mod + 1e-9);\n return mod;\n }\n}\n","@if (mode() === 'tween') {\n <span class=\"wr-counter__tween\">{{ prefix() }}{{ tweenText() }}{{ suffix() }}</span>\n} @else {\n <span class=\"wr-counter__sr-only\">{{ odoText() }}</span>\n <span class=\"wr-counter__odo\" aria-hidden=\"true\">\n @if (prefix()) {\n <span class=\"wr-counter__static\">{{ prefix() }}</span>\n }\n @for (cell of cells(); track cell.key) {\n @if (cell.kind === 'digit') {\n <span class=\"wr-counter__digit\">\n <span class=\"wr-counter__strip\" [style.transform]=\"`translateY(-${cell.fraction}em)`\">\n <span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span\n ><span>7</span><span>8</span><span>9</span>\n </span>\n </span>\n } @else {\n <span class=\"wr-counter__static\">{{ cell.char }}</span>\n }\n }\n @if (suffix()) {\n <span class=\"wr-counter__static\">{{ suffix() }}</span>\n }\n </span>\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n LOCALE_ID,\n PLATFORM_ID,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { WrPlatform } from 'ngwr/platform';\nimport { numAttr, wrCheckStyles } from 'ngwr/utils';\n\nimport { easeOutCubic } from './easing';\nimport type { WrCountUpDirection, WrCountUpEasing, WrCountUpTrigger } from './types';\n\n/**\n * The `w*t` at which a critically damped spring has closed all but about 0.05%\n * of its gap: `(1 + x) * e^(-x)` crosses that share near 9.6. Dividing it by\n * the duration gives the natural frequency that settles in that many seconds.\n */\nconst SPRING_SETTLE_UNITS = 9.6;\n\n/** The share of the gap left when the spring is called settled and snaps to its target. */\nconst SPRING_SETTLE_SHARE = 0.001;\n\n/**\n * Animated number tick. Animates from `from` to the current `to`, formatting\n * via `Intl.NumberFormat`. Re-runs whenever `to` changes.\n *\n * @example Basic\n * ```html\n * <wr-count-up [to]=\"12345\" />\n * <wr-count-up [to]=\"9.99\" [decimals]=\"2\" prefix=\"$\" />\n * ```\n *\n * @example Spring curve + viewport trigger\n * ```html\n * <wr-count-up [to]=\"100\" easing=\"spring\" trigger=\"visible\" [delay]=\"200\" />\n * ```\n *\n * @example Count down\n * ```html\n * <wr-count-up [from]=\"0\" [to]=\"60\" direction=\"down\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/counter\n */\n@Component({\n selector: 'wr-count-up',\n template: `{{ prefix() }}{{ formatted() }}{{ suffix() }}`,\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-count-up' },\n})\nexport class WrCountUp {\n /** Starting value. @default 0 */\n readonly from = input(0, { transform: numAttr(0) });\n\n /** Target value. */\n readonly to = input.required<number>();\n\n // Nullable rather than defaulting to a number, because the two easings read\n // two different units and so want two different defaults. It used to default\n // to `1200` for both, so a `<wr-count-up easing=\"spring\">` with no duration\n // was handed 1200 SECONDS — stiffness 0.083, damping 20.03, and a counter\n // that never visibly moved. The doc already promised 2; the code had one\n // default where the units are two.\n /**\n * Animation duration, in the units its easing reads, or `null` for that\n * easing's own default:\n *\n * - `ease-out` — milliseconds (default 1200, min 100)\n * - `spring` — seconds, roughly how long the spring takes to settle\n * (default 2, min 0.05)\n */\n readonly duration = input<number | null>(null, {\n // Not `numAttr`, which takes a numeric fallback and so cannot express\n // \"absent\": an empty or unparsable value has to stay `null` here, or the\n // easing-dependent default below can never be reached.\n transform: (value: unknown): number | null =>\n value === null || value === undefined || value === '' ? null : coerceNumberProperty(value, 0) || null,\n });\n\n /** The duration this run uses, in the units its easing reads. */\n private readonly resolvedDuration = computed(() => this.duration() ?? (this.easing() === 'spring' ? 2 : 1200));\n\n /** Optional delay (ms) before the animation starts. @default 0 */\n readonly delay = input(0, { transform: numAttr(0) });\n\n /** Animation curve. @default 'ease-out' */\n readonly easing = input<WrCountUpEasing>('ease-out');\n\n /**\n * When to start the animation.\n *\n * - `'mount'` (default) — start as soon as the component is rendered.\n * - `'visible'` — wait for the host to enter the viewport\n * (IntersectionObserver). Useful for long pages or hero numbers\n * below the fold.\n */\n readonly trigger = input<WrCountUpTrigger>('mount');\n\n /** Counting direction. `'down'` swaps `from` ↔ `to`. @default 'up' */\n readonly direction = input<WrCountUpDirection>('up');\n\n /** Fixed number of decimals. @default 0 */\n readonly decimals = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /** Optional prefix (e.g. `'$'`). */\n readonly prefix = input<string>('');\n\n /** Optional suffix (e.g. `'%'`). */\n readonly suffix = input<string>('');\n\n /** Disable grouping separators (`1,234` → `1234`). @default true (grouping on) */\n readonly grouping = input<boolean>(true);\n\n /** Emits when the animation begins. */\n readonly started = output<void>();\n\n /** Emits when the animation settles. */\n readonly completed = output<void>();\n\n private readonly value = signal<number>(0);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly locale = inject(LOCALE_ID);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly platform = inject(WrPlatform);\n private readonly destroyRef = inject(DestroyRef);\n\n private rafId: number | null = null;\n private delayTimer: ReturnType<typeof setTimeout> | undefined;\n private observer: IntersectionObserver | null = null;\n private hasFiredForVisible = false;\n\n protected readonly formatted = computed(() => {\n return new Intl.NumberFormat(this.locale, {\n minimumFractionDigits: this.decimals(),\n maximumFractionDigits: this.decimals(),\n useGrouping: this.grouping(),\n }).format(this.value());\n });\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('counter');\n if (!this.isBrowser) {\n // SSR: settle on the value the animation ENDS on. Seeding the start\n // instead would bake the placeholder (usually 0) into prerendered HTML,\n // so readers and crawlers would get 0 rather than the real figure. The\n // browser rewinds to the start and animates once it boots.\n effect(() => this.value.set(this.direction() === 'down' ? this.from() : this.to()));\n return;\n }\n\n // Seed the resting value so first paint shows the start, not 0 — except for a reader\n // who asked for less motion, who is seeded on the value the animation ENDS on, the\n // same way the server branch above is. Seeding the start for them would leave the\n // placeholder on screen, and with `trigger=\"visible\"` it would stay there until the\n // host scrolls into view and then never be animated off it.\n effect(() => {\n const down = this.direction() === 'down';\n const start = down ? this.to() : this.from();\n const end = down ? this.from() : this.to();\n this.value.set(this.platform.prefersReducedMotion() ? end : start);\n });\n\n // Run the animation whenever the `to` target changes (or on first mount).\n // For `trigger=\"visible\"` the first run waits for the IntersectionObserver\n // to fire; subsequent `to` changes re-run immediately.\n effect(() => {\n // Establish dependencies so the effect re-runs on `to` changes.\n this.to();\n this.from();\n this.direction();\n this.duration();\n this.easing();\n this.delay();\n\n if (this.trigger() === 'visible' && !this.hasFiredForVisible) return;\n this.scheduleRun();\n });\n\n afterNextRender(() => {\n if (this.trigger() === 'visible') this.setupViewportTrigger();\n });\n\n this.destroyRef.onDestroy(() => {\n this.cancel();\n // `cancel()` only stops timers and the rAF loop. The IntersectionObserver\n // disconnects itself from inside its callback, which never fires if the\n // host is destroyed before it ever scrolls into view — so it would keep\n // observing a detached element for the life of the page.\n this.observer?.disconnect();\n this.observer = null;\n });\n }\n\n // Scheduling\n\n private setupViewportTrigger(): void {\n this.observer = new IntersectionObserver(\n (entries, obs) => {\n for (const e of entries) {\n if (e.isIntersecting && !this.hasFiredForVisible) {\n obs.disconnect();\n this.hasFiredForVisible = true;\n this.scheduleRun();\n break;\n }\n }\n },\n { threshold: 0, rootMargin: '0px' }\n );\n this.observer.observe(this.host.nativeElement);\n }\n\n private scheduleRun(): void {\n this.cancel();\n const d = this.delay();\n if (d > 0) {\n this.delayTimer = setTimeout(() => this.run(), d);\n } else {\n this.run();\n }\n }\n\n private run(): void {\n const start = this.direction() === 'down' ? this.to() : this.from();\n const end = this.direction() === 'down' ? this.from() : this.to();\n this.started.emit();\n // Straight to the answer for a reader who asked for less motion — `wr-counter` in this\n // same folder already does this, and a component whose entire purpose is a count-up\n // should not be the one that ignores it. Both outputs still fire, in order, so a\n // consumer wired to `completed` is not left waiting on a tween that never ran.\n if (this.platform.prefersReducedMotion()) {\n this.value.set(end);\n this.completed.emit();\n return;\n }\n if (this.easing() === 'spring') this.tweenSpring(start, end);\n else this.tweenEaseOut(start, end);\n }\n\n // Tweens\n\n private tweenEaseOut(start: number, target: number): void {\n const duration = Math.max(100, this.resolvedDuration());\n const startTs = performance.now();\n const tick = (now: number): void => {\n const t = Math.min(1, (now - startTs) / duration);\n const v = start + (target - start) * easeOutCubic(t);\n this.value.set(v);\n if (t < 1) {\n this.rafId = requestAnimationFrame(tick);\n } else {\n this.completed.emit();\n }\n };\n this.rafId = requestAnimationFrame(tick);\n }\n\n /**\n * Critically damped spring, evaluated in closed form. A mass released at rest\n * a distance `gap` from its target, with damping exactly at the critical\n * value, moves as\n *\n * x(t) = target - gap * (1 + w*t) * e^(-w*t)\n *\n * with `w` the natural frequency: no overshoot, and the fastest return to\n * rest that has none. The curve is sampled by wall-clock time rather than\n * integrated frame by frame, so a dropped frame or a 120 Hz screen changes\n * nothing about where the number is at a given moment. The tween ends when\n * the remaining gap is under the settle threshold, and snaps to the target.\n */\n private tweenSpring(start: number, target: number): void {\n const duration = Math.max(0.05, this.resolvedDuration());\n const gap = target - start;\n // `(1 + w*t) * e^(-w*t)` is below 0.05% once `w*t` is about 9.6, so this\n // `w` puts the settle within `duration` seconds of the start.\n const w = SPRING_SETTLE_UNITS / duration;\n const settle = SPRING_SETTLE_SHARE * Math.max(1, Math.abs(gap));\n const startTs = performance.now();\n\n const frame = (now: number): void => {\n const t = Math.max(0, (now - startTs) / 1000);\n const wt = w * t;\n const remaining = gap * (1 + wt) * Math.exp(-wt);\n if (Math.abs(remaining) < settle) {\n this.value.set(target);\n this.completed.emit();\n return;\n }\n this.value.set(target - remaining);\n this.rafId = requestAnimationFrame(frame);\n };\n this.rafId = requestAnimationFrame(frame);\n }\n\n // Cleanup\n\n private cancel(): void {\n if (this.rafId !== null) cancelAnimationFrame(this.rafId);\n this.rafId = null;\n if (this.delayTimer !== undefined) {\n clearTimeout(this.delayTimer);\n this.delayTimer = undefined;\n }\n }\n}\n\nexport type { WrCountUpEasing, WrCountUpTrigger, WrCountUpDirection } from './types';\n"],"mappings":";;;;;;AACA,SAAgB,aAAa,GAAS;CACpC,OAAO,IAAI,KAAK,IAAI,IAAI,GAAG,CAAC;AAC9B;;;;;;;AC4DA,IAAa,YAAb,MAAa,UAAS;CAMX,QAAQ,MAAM,SAAQ;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAC7B,YAAY,MAAuB,qBAAqB,GAAG,CAAC;CAAC,CAAA;CAItD,OAAO,MAAqB,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAGvC,WAAW,MAAM,KAAG;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAC3B,YAAY,MAAuB,KAAK,IAAI,KAAK,qBAAqB,GAAG,GAAG,CAAC;CAAC,CAAA;CAIvE,WAAW,MAAM,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,YAAY,MAAuB,KAAK,IAAI,GAAG,qBAAqB,GAAG,CAAC,CAAC;CAAC,CAAA;CAGhG,SAAS,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAG1B,SAAS,MAAc,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAG1B,WAAW,MAAe,MAAK,GAAA,YAA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AA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,SAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,QAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,QAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,UAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA;GAAA,SAAA;GAAA,WAAA;EAAA;EAAA,MAAA,EAAA,gBAAA,cAAA;EAAA,UAAA;EAAA,UAJV;EAA+C,UAAA;EAAA,eAAA,GAAA,kBAAA;CAAA,CAAA;;AAI9C,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EANrB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,UAAU;GACV,eAAe,kBAAkB;GACjC,MAAM,EAAE,OAAO,cAAa;EAC7B,CAAA"}
1
+ {"version":3,"file":"ngwr-counter.mjs","names":[],"sources":["../../../projects/lib/counter/easing.ts","../../../projects/lib/counter/counter.ts","../../../projects/lib/counter/counter.html","../../../projects/lib/counter/count-up.ts"],"sourcesContent":["/** Cubic ease-out — the shared tween curve for counter / count-up. */\nexport function easeOutCubic(t: number): number {\n return 1 - Math.pow(1 - t, 3);\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n LOCALE_ID,\n PLATFORM_ID,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n signal,\n untracked,\n} from '@angular/core';\n\nimport { WrPlatform } from 'ngwr/platform';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { easeOutCubic } from './easing';\nimport type { WrCounterMode } from './types';\n\n/**\n * Visual cell in odometer mode — either a 0-9 column or a static glyph. `key` is the\n * column's place counted from the RIGHT, so a wheel keeps its element when columns\n * come or go on the left.\n */\ntype Cell = { readonly key: number } & (\n { readonly kind: 'digit'; readonly fraction: number } | { readonly kind: 'static'; readonly char: string }\n);\n\n/**\n * Animated number display with two modes:\n *\n * - **`odometer`** (default) — each digit is a vertical strip of 0-9 that\n * rolls into place, continuously interpolated for smooth motion when the\n * value changes.\n * - **`tween`** — a single eased count-up between the previous and new value,\n * rendered through `Intl.NumberFormat`.\n *\n * Reacts to `[value]` changes — animate from any number to any number.\n *\n * @example\n * ```html\n * <wr-counter [value]=\"123456\" mode=\"odometer\" />\n * <wr-counter [value]=\"9.99\" mode=\"tween\" [decimals]=\"2\" prefix=\"$\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/counter\n */\n@Component({\n selector: 'wr-counter',\n templateUrl: './counter.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-counter' },\n})\nexport class WrCounter {\n /** Target value. */\n /**\n * The number to show. Coerced like every other numeric input here — it was the only one\n * without it, and `Intl.NumberFormat().format(NaN)` renders the literal text `NaN`.\n */\n readonly value = input.required<number, unknown>({\n transform: (v: unknown): number => coerceNumberProperty(v, 0),\n });\n\n /** Animation mode. @default 'odometer' */\n readonly mode = input<WrCounterMode>('odometer');\n\n /** Duration (ms). @default 900 */\n readonly duration = input(900, {\n transform: (v: unknown): number => Math.max(100, coerceNumberProperty(v, 900)),\n });\n\n /** Fixed number of decimals. @default 0 */\n readonly decimals = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /** Optional prefix (e.g. `'$'`). */\n readonly prefix = input<string>('');\n\n /** Optional suffix (e.g. `'%'`). */\n readonly suffix = input<string>('');\n\n /** Group thousands. @default true */\n readonly grouping = input<boolean>(true);\n\n /** Pad integer part to at least this many digits. @default 0 (no padding) */\n readonly minIntegerDigits = input(0, {\n transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)),\n });\n\n private readonly current = signal<number>(0);\n /** Where the running roll started; read only while `current` is short of the value. */\n private readonly from = signal<number>(0);\n private readonly locale = inject(LOCALE_ID);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly platform = inject(WrPlatform);\n private rafId: number | null = null;\n\n /** Tween-mode formatted output. */\n protected readonly tweenText = computed(() => this.format(this.current()));\n\n /**\n * Odometer-mode text for assistive tech and prerendered output. The strip\n * renders every digit 0-9 per column and picks one with a transform, so its\n * markup carries no usable text — screen readers would announce all ten, and\n * static HTML would ship the same noise. This node holds the real value.\n */\n protected readonly odoText = computed(() => `${this.prefix()}${this.format(this.value())}${this.suffix()}`);\n\n /** Odometer cells — one per character of the widest string the roll passes through. */\n protected readonly cells = computed<readonly Cell[]>(() => {\n const target = this.value();\n const live = this.current();\n // The layout of the whole roll is the longer of where it started and where it ends,\n // right-aligned so trailing digits line up. Laid out from the target and the live\n // value alone, a large decrease kept a wheel only where BOTH had a digit: 123456 to\n // 7 rolled the ones column and blanked the other five at once. Every column either\n // end has is a wheel now, so each rolls to its own digit — down to 0 for a place the\n // target does not have — and the width holds still until the roll lands.\n const values = live === target ? [target, live] : [target, live, this.from()];\n // Places only: a sign laid out with them landed mid-number whenever the start was\n // wider than the live value (-1,234 to 5 drew `0-935`), so it goes in front below.\n const strings = values.map(n => this.format(Math.abs(n)));\n const maxLen = Math.max(...strings.map(s => s.length));\n const padded = strings.map(s => s.padStart(maxLen, ' '));\n\n const cells: Cell[] = [];\n let digitsRight = 0;\n for (let i = maxLen - 1; i >= 0; i--) {\n const chars = padded.map(s => s[i]);\n const key = maxLen - i;\n if (chars.some(c => /[0-9]/.test(c))) {\n // Interpolate the fractional digit so the strip rolls smoothly —\n // multi-digit rollover (9 → 0 carries 1) looks continuous.\n const fraction = this.digitFraction(live, target, digitsRight - this.decimals());\n cells.unshift({ key, kind: 'digit', fraction });\n digitsRight++;\n } else {\n // A separator, the target's first; a pad is nothing.\n cells.unshift({ key, kind: 'static', char: chars.find(c => c !== ' ') ?? '' });\n }\n }\n\n // The live value's sign, whatever the locale writes ahead of its digits.\n const signed = this.format(live);\n const sign = signed.endsWith(strings[1]) ? signed.slice(0, signed.length - strings[1].length) : '';\n if (sign) cells.unshift({ key: maxLen + 1, kind: 'static', char: sign });\n return cells;\n });\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('counter');\n inject(DestroyRef).onDestroy(() => this.cancel());\n\n effect(() => {\n const target = this.value();\n // Snapshot the current value WITHOUT tracking it — the RAF tick below\n // writes `current` every frame, and tracking it here would re-trigger\n // this effect each frame, cancelling + restarting the tween endlessly\n // (the wheels hang mid-roll and only snap once the restarts converge).\n const start = untracked(() => this.current());\n // Straight to the answer when there is nothing to animate for: no browser, or a\n // reader who asked for less motion. `wr-scroll` already falls back the same way, and a\n // component whose entire purpose is a count-up should be the first to honour it.\n if (!this.isBrowser || this.platform.prefersReducedMotion()) {\n this.current.set(target);\n return;\n }\n this.cancel();\n this.from.set(start);\n const startTs = performance.now();\n const dur = this.duration();\n const tick = (now: number): void => {\n const t = Math.min(1, (now - startTs) / dur);\n // Snap exactly to target on the final frame. Without this,\n // `start + (target - start) * 1` carries FP rounding (e.g.\n // 0.1 + (0.3 - 0.1) * 1 = 0.30000000000000004), so\n // `digitFractionAt`'s `live === target` rest-state check\n // fails — wheels visibly stop on a fractional position and\n // never settle to the clean integer glyph.\n const v = t >= 1 ? target : start + (target - start) * easeOutCubic(t);\n this.current.set(v);\n if (t < 1) this.rafId = requestAnimationFrame(tick);\n else this.rafId = null;\n };\n this.rafId = requestAnimationFrame(tick);\n });\n }\n\n private cancel(): void {\n if (this.rafId !== null) cancelAnimationFrame(this.rafId);\n this.rafId = null;\n }\n\n private format(n: number): string {\n return new Intl.NumberFormat(this.locale, {\n minimumFractionDigits: this.decimals(),\n maximumFractionDigits: this.decimals(),\n minimumIntegerDigits: this.minIntegerDigits() || 1,\n useGrouping: this.grouping(),\n }).format(n);\n }\n\n /**\n * The smoothly-interpolated digit (0..10) of `live` at the column whose place value is\n * `10 ** placePower`. Returns the integer digit + a fraction so the strip CSS translate\n * looks like a real rolling odometer.\n */\n private digitFraction(live: number, target: number, placePower: number): number {\n const place = Math.pow(10, placePower);\n const raw = Math.abs(live) / place;\n // Modulo 10 gives the digit at this column with fractional rollover —\n // mid-animation this looks like a real wheel rolling between digits.\n const mod = raw - Math.floor(raw / 10) * 10;\n // At rest (live === target) every wheel must rest on an exact integer\n // — otherwise upper digits show as partial (e.g. tens reads \"5.6\"\n // for value 123456, visibly clipping between 5 and 6 in the\n // overflow:hidden window). The continuous-mechanical look is only\n // wanted DURING the tween, not after it settles.\n if (live === target) return Math.floor(mod + 1e-9);\n return mod;\n }\n}\n","@if (mode() === 'tween') {\n <span class=\"wr-counter__tween\">{{ prefix() }}{{ tweenText() }}{{ suffix() }}</span>\n} @else {\n <span class=\"wr-counter__sr-only\">{{ odoText() }}</span>\n <span class=\"wr-counter__odo\" aria-hidden=\"true\">\n @if (prefix()) {\n <span class=\"wr-counter__static\">{{ prefix() }}</span>\n }\n @for (cell of cells(); track cell.key) {\n @if (cell.kind === 'digit') {\n <span class=\"wr-counter__digit\">\n <span class=\"wr-counter__strip\" [style.transform]=\"`translateY(-${cell.fraction}em)`\">\n <span>0</span><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span><span>6</span\n ><span>7</span><span>8</span><span>9</span>\n </span>\n </span>\n } @else {\n <span class=\"wr-counter__static\">{{ cell.char }}</span>\n }\n }\n @if (suffix()) {\n <span class=\"wr-counter__static\">{{ suffix() }}</span>\n }\n </span>\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n LOCALE_ID,\n PLATFORM_ID,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { WrPlatform } from 'ngwr/platform';\nimport { wrNumAttr, wrCheckStyles } from 'ngwr/utils';\n\nimport { easeOutCubic } from './easing';\nimport type { WrCountUpDirection, WrCountUpEasing, WrCountUpTrigger } from './types';\n\n/**\n * The `w*t` at which a critically damped spring has closed all but about 0.05%\n * of its gap: `(1 + x) * e^(-x)` crosses that share near 9.6. Dividing it by\n * the duration gives the natural frequency that settles in that many seconds.\n */\nconst SPRING_SETTLE_UNITS = 9.6;\n\n/** The share of the gap left when the spring is called settled and snaps to its target. */\nconst SPRING_SETTLE_SHARE = 0.001;\n\n/**\n * Animated number tick. Animates from `from` to the current `to`, formatting\n * via `Intl.NumberFormat`. Re-runs whenever `to` changes.\n *\n * @example Basic\n * ```html\n * <wr-count-up [to]=\"12345\" />\n * <wr-count-up [to]=\"9.99\" [decimals]=\"2\" prefix=\"$\" />\n * ```\n *\n * @example Spring curve + viewport trigger\n * ```html\n * <wr-count-up [to]=\"100\" easing=\"spring\" trigger=\"visible\" [delay]=\"200\" />\n * ```\n *\n * @example Count down\n * ```html\n * <wr-count-up [from]=\"0\" [to]=\"60\" direction=\"down\" />\n * ```\n *\n * @see https://ngwr.dev/reference/components/counter\n */\n@Component({\n selector: 'wr-count-up',\n template: `{{ prefix() }}{{ formatted() }}{{ suffix() }}`,\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-count-up' },\n})\nexport class WrCountUp {\n /** Starting value. @default 0 */\n readonly from = input(0, { transform: wrNumAttr(0) });\n\n /** Target value. */\n readonly to = input.required<number>();\n\n // Nullable rather than defaulting to a number, because the two easings read\n // two different units and so want two different defaults. It used to default\n // to `1200` for both, so a `<wr-count-up easing=\"spring\">` with no duration\n // was handed 1200 SECONDS — stiffness 0.083, damping 20.03, and a counter\n // that never visibly moved. The doc already promised 2; the code had one\n // default where the units are two.\n /**\n * Animation duration, in the units its easing reads, or `null` for that\n * easing's own default:\n *\n * - `ease-out` — milliseconds (default 1200, min 100)\n * - `spring` — seconds, roughly how long the spring takes to settle\n * (default 2, min 0.05)\n */\n readonly duration = input<number | null>(null, {\n // Not `wrNumAttr`, which takes a numeric fallback and so cannot express\n // \"absent\": an empty or unparsable value has to stay `null` here, or the\n // easing-dependent default below can never be reached.\n transform: (value: unknown): number | null =>\n value === null || value === undefined || value === '' ? null : coerceNumberProperty(value, 0) || null,\n });\n\n /** The duration this run uses, in the units its easing reads. */\n private readonly resolvedDuration = computed(() => this.duration() ?? (this.easing() === 'spring' ? 2 : 1200));\n\n /** Optional delay (ms) before the animation starts. @default 0 */\n readonly delay = input(0, { transform: wrNumAttr(0) });\n\n /** Animation curve. @default 'ease-out' */\n readonly easing = input<WrCountUpEasing>('ease-out');\n\n /**\n * When to start the animation.\n *\n * - `'mount'` (default) — start as soon as the component is rendered.\n * - `'visible'` — wait for the host to enter the viewport\n * (IntersectionObserver). Useful for long pages or hero numbers\n * below the fold.\n */\n readonly trigger = input<WrCountUpTrigger>('mount');\n\n /** Counting direction. `'down'` swaps `from` ↔ `to`. @default 'up' */\n readonly direction = input<WrCountUpDirection>('up');\n\n /** Fixed number of decimals. @default 0 */\n readonly decimals = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /** Optional prefix (e.g. `'$'`). */\n readonly prefix = input<string>('');\n\n /** Optional suffix (e.g. `'%'`). */\n readonly suffix = input<string>('');\n\n /** Disable grouping separators (`1,234` → `1234`). @default true (grouping on) */\n readonly grouping = input<boolean>(true);\n\n /** Emits when the animation begins. */\n readonly started = output<void>();\n\n /** Emits when the animation settles. */\n readonly completed = output<void>();\n\n private readonly value = signal<number>(0);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly locale = inject(LOCALE_ID);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly platform = inject(WrPlatform);\n private readonly destroyRef = inject(DestroyRef);\n\n private rafId: number | null = null;\n private delayTimer: ReturnType<typeof setTimeout> | undefined;\n private observer: IntersectionObserver | null = null;\n private hasFiredForVisible = false;\n\n protected readonly formatted = computed(() => {\n return new Intl.NumberFormat(this.locale, {\n minimumFractionDigits: this.decimals(),\n maximumFractionDigits: this.decimals(),\n useGrouping: this.grouping(),\n }).format(this.value());\n });\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('counter');\n if (!this.isBrowser) {\n // SSR: settle on the value the animation ENDS on. Seeding the start\n // instead would bake the placeholder (usually 0) into prerendered HTML,\n // so readers and crawlers would get 0 rather than the real figure. The\n // browser rewinds to the start and animates once it boots.\n effect(() => this.value.set(this.direction() === 'down' ? this.from() : this.to()));\n return;\n }\n\n // Seed the resting value so first paint shows the start, not 0 — except for a reader\n // who asked for less motion, who is seeded on the value the animation ENDS on, the\n // same way the server branch above is. Seeding the start for them would leave the\n // placeholder on screen, and with `trigger=\"visible\"` it would stay there until the\n // host scrolls into view and then never be animated off it.\n effect(() => {\n const down = this.direction() === 'down';\n const start = down ? this.to() : this.from();\n const end = down ? this.from() : this.to();\n this.value.set(this.platform.prefersReducedMotion() ? end : start);\n });\n\n // Run the animation whenever the `to` target changes (or on first mount).\n // For `trigger=\"visible\"` the first run waits for the IntersectionObserver\n // to fire; subsequent `to` changes re-run immediately.\n effect(() => {\n // Establish dependencies so the effect re-runs on `to` changes.\n this.to();\n this.from();\n this.direction();\n this.duration();\n this.easing();\n this.delay();\n\n if (this.trigger() === 'visible' && !this.hasFiredForVisible) return;\n this.scheduleRun();\n });\n\n afterNextRender(() => {\n if (this.trigger() === 'visible') this.setupViewportTrigger();\n });\n\n this.destroyRef.onDestroy(() => {\n this.cancel();\n // `cancel()` only stops timers and the rAF loop. The IntersectionObserver\n // disconnects itself from inside its callback, which never fires if the\n // host is destroyed before it ever scrolls into view — so it would keep\n // observing a detached element for the life of the page.\n this.observer?.disconnect();\n this.observer = null;\n });\n }\n\n // Scheduling\n\n private setupViewportTrigger(): void {\n this.observer = new IntersectionObserver(\n (entries, obs) => {\n for (const e of entries) {\n if (e.isIntersecting && !this.hasFiredForVisible) {\n obs.disconnect();\n this.hasFiredForVisible = true;\n this.scheduleRun();\n break;\n }\n }\n },\n { threshold: 0, rootMargin: '0px' }\n );\n this.observer.observe(this.host.nativeElement);\n }\n\n private scheduleRun(): void {\n this.cancel();\n const d = this.delay();\n if (d > 0) {\n this.delayTimer = setTimeout(() => this.run(), d);\n } else {\n this.run();\n }\n }\n\n private run(): void {\n const start = this.direction() === 'down' ? this.to() : this.from();\n const end = this.direction() === 'down' ? this.from() : this.to();\n this.started.emit();\n // Straight to the answer for a reader who asked for less motion — `wr-counter` in this\n // same folder already does this, and a component whose entire purpose is a count-up\n // should not be the one that ignores it. Both outputs still fire, in order, so a\n // consumer wired to `completed` is not left waiting on a tween that never ran.\n if (this.platform.prefersReducedMotion()) {\n this.value.set(end);\n this.completed.emit();\n return;\n }\n if (this.easing() === 'spring') this.tweenSpring(start, end);\n else this.tweenEaseOut(start, end);\n }\n\n // Tweens\n\n private tweenEaseOut(start: number, target: number): void {\n const duration = Math.max(100, this.resolvedDuration());\n const startTs = performance.now();\n const tick = (now: number): void => {\n const t = Math.min(1, (now - startTs) / duration);\n const v = start + (target - start) * easeOutCubic(t);\n this.value.set(v);\n if (t < 1) {\n this.rafId = requestAnimationFrame(tick);\n } else {\n this.completed.emit();\n }\n };\n this.rafId = requestAnimationFrame(tick);\n }\n\n /**\n * Critically damped spring, evaluated in closed form. A mass released at rest\n * a distance `gap` from its target, with damping exactly at the critical\n * value, moves as\n *\n * x(t) = target - gap * (1 + w*t) * e^(-w*t)\n *\n * with `w` the natural frequency: no overshoot, and the fastest return to\n * rest that has none. The curve is sampled by wall-clock time rather than\n * integrated frame by frame, so a dropped frame or a 120 Hz screen changes\n * nothing about where the number is at a given moment. The tween ends when\n * the remaining gap is under the settle threshold, and snaps to the target.\n */\n private tweenSpring(start: number, target: number): void {\n const duration = Math.max(0.05, this.resolvedDuration());\n const gap = target - start;\n // `(1 + w*t) * e^(-w*t)` is below 0.05% once `w*t` is about 9.6, so this\n // `w` puts the settle within `duration` seconds of the start.\n const w = SPRING_SETTLE_UNITS / duration;\n const settle = SPRING_SETTLE_SHARE * Math.max(1, Math.abs(gap));\n const startTs = performance.now();\n\n const frame = (now: number): void => {\n const t = Math.max(0, (now - startTs) / 1000);\n const wt = w * t;\n const remaining = gap * (1 + wt) * Math.exp(-wt);\n if (Math.abs(remaining) < settle) {\n this.value.set(target);\n this.completed.emit();\n return;\n }\n this.value.set(target - remaining);\n this.rafId = requestAnimationFrame(frame);\n };\n this.rafId = requestAnimationFrame(frame);\n }\n\n // Cleanup\n\n private cancel(): void {\n if (this.rafId !== null) cancelAnimationFrame(this.rafId);\n this.rafId = null;\n if (this.delayTimer !== undefined) {\n clearTimeout(this.delayTimer);\n this.delayTimer = undefined;\n }\n }\n}\n\nexport type { WrCountUpEasing, WrCountUpTrigger, WrCountUpDirection } from './types';\n"],"mappings":";;;;;;AACA,SAAgB,aAAa,GAAS;CACpC,OAAO,IAAI,KAAK,IAAI,IAAI,GAAG,CAAC;AAC9B;;;;;;;AC4DA,IAAa,YAAb,MAAa,UAAS;CAMX,QAAQ,MAAM,SAAQ;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAC7B,YAAY,MAAuB,qBAAqB,GAAG,CAAC;CAAC,CAAA;CAItD,OAAO,MAAqB,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAGvC,WAAW,MAA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