ngwr 10.2.1 → 11.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 (425) hide show
  1. package/README.md +39 -19
  2. package/anchor/styles/_index.scss +4 -4
  3. package/back-top/styles/_index.scss +6 -1
  4. package/blur-text/styles/_index.scss +13 -0
  5. package/button/styles/_index.scss +11 -6
  6. package/carousel/styles/_index.scss +13 -2
  7. package/cascader/styles/_index.scss +2 -2
  8. package/circular-text/styles/_index.scss +2 -0
  9. package/collapse/styles/_index.scss +1 -1
  10. package/color-picker/styles/_index.scss +6 -1
  11. package/compare/styles/_index.scss +1 -2
  12. package/context-menu/styles/_index.scss +6 -1
  13. package/descriptions/styles/_index.scss +2 -2
  14. package/dialog/styles/_index.scss +7 -0
  15. package/drawer/styles/_index.scss +20 -1
  16. package/dropdown/styles/_index.scss +19 -5
  17. package/empty/styles/_index.scss +10 -0
  18. package/fesm2022/ngwr-action-sheet.mjs +13 -3
  19. package/fesm2022/ngwr-action-sheet.mjs.map +1 -1
  20. package/fesm2022/ngwr-affix.mjs +40 -13
  21. package/fesm2022/ngwr-affix.mjs.map +1 -1
  22. package/fesm2022/ngwr-anchor.mjs +18 -6
  23. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  24. package/fesm2022/ngwr-aurora.mjs +2 -2
  25. package/fesm2022/ngwr-aurora.mjs.map +1 -1
  26. package/fesm2022/ngwr-avatar.mjs +31 -7
  27. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  28. package/fesm2022/ngwr-back-top.mjs +6 -2
  29. package/fesm2022/ngwr-back-top.mjs.map +1 -1
  30. package/fesm2022/ngwr-badge.mjs +1 -1
  31. package/fesm2022/ngwr-badge.mjs.map +1 -1
  32. package/fesm2022/ngwr-bar-chart.mjs +30 -9
  33. package/fesm2022/ngwr-bar-chart.mjs.map +1 -1
  34. package/fesm2022/ngwr-blur-text.mjs +2 -2
  35. package/fesm2022/ngwr-blur-text.mjs.map +1 -1
  36. package/fesm2022/ngwr-border-glow.mjs +2 -2
  37. package/fesm2022/ngwr-border-glow.mjs.map +1 -1
  38. package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
  39. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  40. package/fesm2022/ngwr-burger.mjs +9 -4
  41. package/fesm2022/ngwr-burger.mjs.map +1 -1
  42. package/fesm2022/ngwr-button-testing.mjs +96 -0
  43. package/fesm2022/ngwr-button-testing.mjs.map +1 -0
  44. package/fesm2022/ngwr-button.mjs +31 -14
  45. package/fesm2022/ngwr-button.mjs.map +1 -1
  46. package/fesm2022/ngwr-calendar-heatmap.mjs +40 -8
  47. package/fesm2022/ngwr-calendar-heatmap.mjs.map +1 -1
  48. package/fesm2022/ngwr-calendar.mjs +20 -1
  49. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  50. package/fesm2022/ngwr-card.mjs +2 -2
  51. package/fesm2022/ngwr-card.mjs.map +1 -1
  52. package/fesm2022/ngwr-carousel-testing.mjs +377 -0
  53. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -0
  54. package/fesm2022/ngwr-carousel.mjs +67 -13
  55. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  56. package/fesm2022/ngwr-cascader-testing.mjs +534 -0
  57. package/fesm2022/ngwr-cascader-testing.mjs.map +1 -0
  58. package/fesm2022/ngwr-cascader.mjs +2 -2
  59. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  60. package/fesm2022/ngwr-checkbox-testing.mjs +90 -0
  61. package/fesm2022/ngwr-checkbox-testing.mjs.map +1 -0
  62. package/fesm2022/ngwr-checkbox.mjs +9 -3
  63. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  64. package/fesm2022/ngwr-circular-text.mjs +2 -2
  65. package/fesm2022/ngwr-circular-text.mjs.map +1 -1
  66. package/fesm2022/ngwr-click-spark.mjs +2 -2
  67. package/fesm2022/ngwr-click-spark.mjs.map +1 -1
  68. package/fesm2022/ngwr-collapse-testing.mjs +368 -0
  69. package/fesm2022/ngwr-collapse-testing.mjs.map +1 -0
  70. package/fesm2022/ngwr-color-picker.mjs +134 -14
  71. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  72. package/fesm2022/ngwr-command-palette-testing.mjs +589 -0
  73. package/fesm2022/ngwr-command-palette-testing.mjs.map +1 -0
  74. package/fesm2022/ngwr-command-palette.mjs +58 -8
  75. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  76. package/fesm2022/ngwr-compare.mjs +103 -13
  77. package/fesm2022/ngwr-compare.mjs.map +1 -1
  78. package/fesm2022/ngwr-config.mjs +106 -0
  79. package/fesm2022/ngwr-config.mjs.map +1 -0
  80. package/fesm2022/ngwr-context-menu-testing.mjs +631 -0
  81. package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -0
  82. package/fesm2022/ngwr-context-menu.mjs +94 -8
  83. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  84. package/fesm2022/ngwr-cookie.mjs +5 -1
  85. package/fesm2022/ngwr-cookie.mjs.map +1 -1
  86. package/fesm2022/ngwr-counter.mjs +11 -3
  87. package/fesm2022/ngwr-counter.mjs.map +1 -1
  88. package/fesm2022/ngwr-date-adapter-luxon.mjs +52 -4
  89. package/fesm2022/ngwr-date-adapter-luxon.mjs.map +1 -1
  90. package/fesm2022/ngwr-date-adapter.mjs +54 -8
  91. package/fesm2022/ngwr-date-adapter.mjs.map +1 -1
  92. package/fesm2022/ngwr-date-picker-testing.mjs +766 -0
  93. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -0
  94. package/fesm2022/ngwr-date-picker.mjs +73 -3
  95. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  96. package/fesm2022/ngwr-decrypt-text.mjs +27 -9
  97. package/fesm2022/ngwr-decrypt-text.mjs.map +1 -1
  98. package/fesm2022/ngwr-dialog-testing.mjs +89 -0
  99. package/fesm2022/ngwr-dialog-testing.mjs.map +1 -0
  100. package/fesm2022/ngwr-directives.mjs +36 -12
  101. package/fesm2022/ngwr-directives.mjs.map +1 -1
  102. package/fesm2022/ngwr-donut-chart.mjs +22 -5
  103. package/fesm2022/ngwr-donut-chart.mjs.map +1 -1
  104. package/fesm2022/ngwr-drag-drop.mjs +2 -2
  105. package/fesm2022/ngwr-drag-drop.mjs.map +1 -1
  106. package/fesm2022/ngwr-drawer-testing.mjs +250 -0
  107. package/fesm2022/ngwr-drawer-testing.mjs.map +1 -0
  108. package/fesm2022/ngwr-dropdown-testing.mjs +291 -0
  109. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -0
  110. package/fesm2022/ngwr-dropdown.mjs +10 -2
  111. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  112. package/fesm2022/ngwr-empty.mjs +24 -7
  113. package/fesm2022/ngwr-empty.mjs.map +1 -1
  114. package/fesm2022/ngwr-event-calendar.mjs +57 -10
  115. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  116. package/fesm2022/ngwr-falling-text.mjs +2 -2
  117. package/fesm2022/ngwr-falling-text.mjs.map +1 -1
  118. package/fesm2022/ngwr-file-upload-testing.mjs +332 -0
  119. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -0
  120. package/fesm2022/ngwr-form-testing.mjs +451 -0
  121. package/fesm2022/ngwr-form-testing.mjs.map +1 -0
  122. package/fesm2022/ngwr-form.mjs +19 -3
  123. package/fesm2022/ngwr-form.mjs.map +1 -1
  124. package/fesm2022/ngwr-fuzzy-text.mjs +9 -2
  125. package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -1
  126. package/fesm2022/ngwr-gauge.mjs +19 -5
  127. package/fesm2022/ngwr-gauge.mjs.map +1 -1
  128. package/fesm2022/ngwr-glitch-text.mjs +2 -2
  129. package/fesm2022/ngwr-glitch-text.mjs.map +1 -1
  130. package/fesm2022/ngwr-gradient-text.mjs +2 -2
  131. package/fesm2022/ngwr-gradient-text.mjs.map +1 -1
  132. package/fesm2022/ngwr-i18n-en.mjs +50 -0
  133. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  134. package/fesm2022/ngwr-i18n-ru.mjs +48 -0
  135. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  136. package/fesm2022/ngwr-image-cropper.mjs +23 -0
  137. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  138. package/fesm2022/ngwr-input-number-testing.mjs +306 -0
  139. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -0
  140. package/fesm2022/ngwr-input-number.mjs +35 -3
  141. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  142. package/fesm2022/ngwr-input-otp-testing.mjs +419 -0
  143. package/fesm2022/ngwr-input-otp-testing.mjs.map +1 -0
  144. package/fesm2022/ngwr-input-otp.mjs +36 -5
  145. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  146. package/fesm2022/ngwr-input-testing.mjs +102 -0
  147. package/fesm2022/ngwr-input-testing.mjs.map +1 -0
  148. package/fesm2022/ngwr-input.mjs +47 -10
  149. package/fesm2022/ngwr-input.mjs.map +1 -1
  150. package/fesm2022/ngwr-knob.mjs +44 -8
  151. package/fesm2022/ngwr-knob.mjs.map +1 -1
  152. package/fesm2022/ngwr-layout.mjs +21 -5
  153. package/fesm2022/ngwr-layout.mjs.map +1 -1
  154. package/fesm2022/ngwr-lightbox.mjs +33 -6
  155. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  156. package/fesm2022/ngwr-line-chart.mjs +17 -4
  157. package/fesm2022/ngwr-line-chart.mjs.map +1 -1
  158. package/fesm2022/ngwr-list.mjs +2 -2
  159. package/fesm2022/ngwr-list.mjs.map +1 -1
  160. package/fesm2022/ngwr-loading-bar.mjs +2 -2
  161. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  162. package/fesm2022/ngwr-markdown-testing.mjs +516 -0
  163. package/fesm2022/ngwr-markdown-testing.mjs.map +1 -0
  164. package/fesm2022/ngwr-markdown.mjs +1492 -0
  165. package/fesm2022/ngwr-markdown.mjs.map +1 -0
  166. package/fesm2022/ngwr-marquee.mjs +17 -6
  167. package/fesm2022/ngwr-marquee.mjs.map +1 -1
  168. package/fesm2022/ngwr-mention-testing.mjs +513 -0
  169. package/fesm2022/ngwr-mention-testing.mjs.map +1 -0
  170. package/fesm2022/ngwr-mention.mjs +10 -1
  171. package/fesm2022/ngwr-mention.mjs.map +1 -1
  172. package/fesm2022/ngwr-meta.mjs +22 -7
  173. package/fesm2022/ngwr-meta.mjs.map +1 -1
  174. package/fesm2022/ngwr-meter-group.mjs +19 -5
  175. package/fesm2022/ngwr-meter-group.mjs.map +1 -1
  176. package/fesm2022/ngwr-overlay.mjs +41 -1
  177. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  178. package/fesm2022/ngwr-pagination-testing.mjs +389 -0
  179. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -0
  180. package/fesm2022/ngwr-pagination.mjs +14 -2
  181. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  182. package/fesm2022/ngwr-popconfirm-testing.mjs +309 -0
  183. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -0
  184. package/fesm2022/ngwr-popconfirm.mjs +95 -17
  185. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  186. package/fesm2022/ngwr-popover-testing.mjs +316 -0
  187. package/fesm2022/ngwr-popover-testing.mjs.map +1 -0
  188. package/fesm2022/ngwr-popover.mjs +21 -3
  189. package/fesm2022/ngwr-popover.mjs.map +1 -1
  190. package/fesm2022/ngwr-pull-to-refresh.mjs +17 -2
  191. package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
  192. package/fesm2022/ngwr-qr.mjs +13 -3
  193. package/fesm2022/ngwr-qr.mjs.map +1 -1
  194. package/fesm2022/ngwr-radio-testing.mjs +392 -0
  195. package/fesm2022/ngwr-radio-testing.mjs.map +1 -0
  196. package/fesm2022/ngwr-radio.mjs +10 -3
  197. package/fesm2022/ngwr-radio.mjs.map +1 -1
  198. package/fesm2022/ngwr-rating-testing.mjs +384 -0
  199. package/fesm2022/ngwr-rating-testing.mjs.map +1 -0
  200. package/fesm2022/ngwr-rating.mjs +37 -2
  201. package/fesm2022/ngwr-rating.mjs.map +1 -1
  202. package/fesm2022/ngwr-segmented-testing.mjs +512 -0
  203. package/fesm2022/ngwr-segmented-testing.mjs.map +1 -0
  204. package/fesm2022/ngwr-select-testing.mjs +268 -0
  205. package/fesm2022/ngwr-select-testing.mjs.map +1 -0
  206. package/fesm2022/ngwr-select.mjs +87 -16
  207. package/fesm2022/ngwr-select.mjs.map +1 -1
  208. package/fesm2022/ngwr-shiny-text.mjs +2 -2
  209. package/fesm2022/ngwr-shiny-text.mjs.map +1 -1
  210. package/fesm2022/ngwr-sidebar.mjs +65 -12
  211. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  212. package/fesm2022/ngwr-slider-testing.mjs +478 -0
  213. package/fesm2022/ngwr-slider-testing.mjs.map +1 -0
  214. package/fesm2022/ngwr-slider.mjs +57 -13
  215. package/fesm2022/ngwr-slider.mjs.map +1 -1
  216. package/fesm2022/ngwr-sparkline.mjs +26 -6
  217. package/fesm2022/ngwr-sparkline.mjs.map +1 -1
  218. package/fesm2022/ngwr-speed-dial.mjs +37 -4
  219. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  220. package/fesm2022/ngwr-spinner.mjs +12 -3
  221. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  222. package/fesm2022/ngwr-splash-cursor.mjs +2 -2
  223. package/fesm2022/ngwr-splash-cursor.mjs.map +1 -1
  224. package/fesm2022/ngwr-split-text.mjs +2 -2
  225. package/fesm2022/ngwr-split-text.mjs.map +1 -1
  226. package/fesm2022/ngwr-splitter.mjs +70 -9
  227. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  228. package/fesm2022/ngwr-spotlight-card.mjs +2 -2
  229. package/fesm2022/ngwr-spotlight-card.mjs.map +1 -1
  230. package/fesm2022/ngwr-star-border.mjs +2 -2
  231. package/fesm2022/ngwr-star-border.mjs.map +1 -1
  232. package/fesm2022/ngwr-statistic.mjs +24 -7
  233. package/fesm2022/ngwr-statistic.mjs.map +1 -1
  234. package/fesm2022/ngwr-stepper-testing.mjs +477 -0
  235. package/fesm2022/ngwr-stepper-testing.mjs.map +1 -0
  236. package/fesm2022/ngwr-switch-testing.mjs +77 -0
  237. package/fesm2022/ngwr-switch-testing.mjs.map +1 -0
  238. package/fesm2022/ngwr-switch.mjs +9 -3
  239. package/fesm2022/ngwr-switch.mjs.map +1 -1
  240. package/fesm2022/ngwr-table-testing.mjs +580 -0
  241. package/fesm2022/ngwr-table-testing.mjs.map +1 -0
  242. package/fesm2022/ngwr-table.mjs +87 -14
  243. package/fesm2022/ngwr-table.mjs.map +1 -1
  244. package/fesm2022/ngwr-tabs-testing.mjs +617 -0
  245. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -0
  246. package/fesm2022/ngwr-tabs.mjs +38 -6
  247. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  248. package/fesm2022/ngwr-textarea-testing.mjs +238 -0
  249. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -0
  250. package/fesm2022/ngwr-textarea.mjs +32 -4
  251. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  252. package/fesm2022/ngwr-tilt-card.mjs +2 -2
  253. package/fesm2022/ngwr-tilt-card.mjs.map +1 -1
  254. package/fesm2022/ngwr-toast-testing.mjs +101 -0
  255. package/fesm2022/ngwr-toast-testing.mjs.map +1 -0
  256. package/fesm2022/ngwr-toast.mjs +2 -2
  257. package/fesm2022/ngwr-toast.mjs.map +1 -1
  258. package/fesm2022/ngwr-tour.mjs +61 -9
  259. package/fesm2022/ngwr-tour.mjs.map +1 -1
  260. package/fesm2022/ngwr-transfer-testing.mjs +538 -0
  261. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -0
  262. package/fesm2022/ngwr-transfer.mjs +45 -14
  263. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  264. package/fesm2022/ngwr-tree-testing.mjs +734 -0
  265. package/fesm2022/ngwr-tree-testing.mjs.map +1 -0
  266. package/fesm2022/ngwr-tree.mjs +73 -7
  267. package/fesm2022/ngwr-tree.mjs.map +1 -1
  268. package/fesm2022/ngwr-typewriter.mjs +5 -3
  269. package/fesm2022/ngwr-typewriter.mjs.map +1 -1
  270. package/fesm2022/ngwr-version.mjs +1 -1
  271. package/fesm2022/ngwr-version.mjs.map +1 -1
  272. package/fesm2022/ngwr-virtual-scroll.mjs +31 -5
  273. package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
  274. package/fesm2022/ngwr-waves.mjs +3 -3
  275. package/fesm2022/ngwr-waves.mjs.map +1 -1
  276. package/fesm2022/ngwr-window.mjs +8 -0
  277. package/fesm2022/ngwr-window.mjs.map +1 -1
  278. package/gauge/styles/_index.scss +1 -1
  279. package/glitch-text/styles/_index.scss +4 -0
  280. package/i18n/en.json +48 -0
  281. package/i18n/ru.json +48 -0
  282. package/image-cropper/styles/_index.scss +13 -1
  283. package/input/styles/_index.scss +2 -2
  284. package/input-number/styles/_index.scss +7 -2
  285. package/knob/styles/_index.scss +8 -1
  286. package/layout/styles/_index.scss +3 -3
  287. package/lightbox/styles/_index.scss +10 -2
  288. package/line-chart/styles/_index.scss +6 -0
  289. package/llms-full.txt +151 -4
  290. package/llms.txt +57 -8
  291. package/loading-bar/styles/_index.scss +1 -2
  292. package/markdown/styles/_index.scss +296 -0
  293. package/marquee/styles/_index.scss +12 -0
  294. package/mcp/api.js +512 -0
  295. package/mcp/catalog.js +157 -0
  296. package/mcp/server.js +273 -0
  297. package/mcp/tools.js +366 -0
  298. package/meter-group/styles/_index.scss +1 -1
  299. package/package.json +186 -35
  300. package/pagination/styles/_index.scss +6 -6
  301. package/popover/styles/_index.scss +37 -5
  302. package/rating/styles/_index.scss +10 -0
  303. package/schematics/use/symbol-map.json +2 -0
  304. package/segmented/styles/_index.scss +7 -0
  305. package/select/styles/_index.scss +29 -9
  306. package/sidebar/styles/_index.scss +30 -5
  307. package/slider/styles/_index.scss +15 -0
  308. package/speed-dial/styles/_index.scss +20 -0
  309. package/split-text/styles/_index.scss +13 -0
  310. package/star-border/styles/_index.scss +2 -0
  311. package/stepper/styles/_index.scss +1 -1
  312. package/styles/_grid.scss +4 -4
  313. package/styles.scss +1 -0
  314. package/switch/styles/_index.scss +5 -3
  315. package/table/styles/_index.scss +22 -11
  316. package/tabs/styles/_index.scss +11 -1
  317. package/textarea/styles/_index.scss +5 -0
  318. package/theme/styles/_colors.scss +29 -13
  319. package/theme/styles/_dark.scss +11 -3
  320. package/theme/styles/_mixins.scss +3 -0
  321. package/timeline/styles/_index.scss +2 -2
  322. package/toast/styles/_index.scss +17 -8
  323. package/toolbar/styles/_index.scss +3 -3
  324. package/tour/styles/_index.scss +7 -1
  325. package/tree/styles/_index.scss +5 -3
  326. package/types/ngwr-action-sheet.d.ts +9 -1
  327. package/types/ngwr-affix.d.ts +7 -1
  328. package/types/ngwr-anchor.d.ts +8 -1
  329. package/types/ngwr-avatar.d.ts +13 -3
  330. package/types/ngwr-bar-chart.d.ts +16 -0
  331. package/types/ngwr-burger.d.ts +6 -2
  332. package/types/ngwr-button-testing.d.ts +85 -0
  333. package/types/ngwr-button.d.ts +26 -10
  334. package/types/ngwr-calendar-heatmap.d.ts +16 -2
  335. package/types/ngwr-calendar.d.ts +10 -0
  336. package/types/ngwr-carousel-testing.d.ts +257 -0
  337. package/types/ngwr-carousel.d.ts +20 -4
  338. package/types/ngwr-cascader-testing.d.ts +392 -0
  339. package/types/ngwr-checkbox-testing.d.ts +77 -0
  340. package/types/ngwr-checkbox.d.ts +7 -2
  341. package/types/ngwr-collapse-testing.d.ts +290 -0
  342. package/types/ngwr-color-picker.d.ts +20 -11
  343. package/types/ngwr-command-palette-testing.d.ts +437 -0
  344. package/types/ngwr-command-palette.d.ts +25 -2
  345. package/types/ngwr-compare.d.ts +50 -2
  346. package/types/ngwr-config.d.ts +176 -0
  347. package/types/ngwr-context-menu-testing.d.ts +401 -0
  348. package/types/ngwr-context-menu.d.ts +65 -17
  349. package/types/ngwr-counter.d.ts +6 -1
  350. package/types/ngwr-date-adapter-luxon.d.ts +26 -0
  351. package/types/ngwr-date-picker-testing.d.ts +518 -0
  352. package/types/ngwr-date-picker.d.ts +4 -0
  353. package/types/ngwr-dialog-testing.d.ts +79 -0
  354. package/types/ngwr-directives.d.ts +10 -1
  355. package/types/ngwr-donut-chart.d.ts +8 -1
  356. package/types/ngwr-drawer-testing.d.ts +196 -0
  357. package/types/ngwr-dropdown-testing.d.ts +202 -0
  358. package/types/ngwr-dropdown.d.ts +7 -1
  359. package/types/ngwr-empty.d.ts +19 -4
  360. package/types/ngwr-event-calendar.d.ts +26 -1
  361. package/types/ngwr-file-upload-testing.d.ts +194 -0
  362. package/types/ngwr-form-testing.d.ts +379 -0
  363. package/types/ngwr-form.d.ts +17 -0
  364. package/types/ngwr-gauge.d.ts +13 -1
  365. package/types/ngwr-image-cropper.d.ts +10 -0
  366. package/types/ngwr-input-number-testing.d.ts +226 -0
  367. package/types/ngwr-input-number.d.ts +29 -1
  368. package/types/ngwr-input-otp-testing.d.ts +299 -0
  369. package/types/ngwr-input-otp.d.ts +23 -2
  370. package/types/ngwr-input-testing.d.ts +84 -0
  371. package/types/ngwr-input.d.ts +20 -6
  372. package/types/ngwr-knob.d.ts +18 -0
  373. package/types/ngwr-layout.d.ts +1 -0
  374. package/types/ngwr-lightbox.d.ts +17 -3
  375. package/types/ngwr-line-chart.d.ts +9 -2
  376. package/types/ngwr-markdown-testing.d.ts +462 -0
  377. package/types/ngwr-markdown.d.ts +534 -0
  378. package/types/ngwr-marquee.d.ts +12 -2
  379. package/types/ngwr-mention-testing.d.ts +359 -0
  380. package/types/ngwr-meta.d.ts +4 -2
  381. package/types/ngwr-meter-group.d.ts +11 -1
  382. package/types/ngwr-overlay.d.ts +33 -2
  383. package/types/ngwr-pagination-testing.d.ts +291 -0
  384. package/types/ngwr-pagination.d.ts +1 -0
  385. package/types/ngwr-popconfirm-testing.d.ts +235 -0
  386. package/types/ngwr-popconfirm.d.ts +31 -21
  387. package/types/ngwr-popover-testing.d.ts +221 -0
  388. package/types/ngwr-popover.d.ts +9 -0
  389. package/types/ngwr-pull-to-refresh.d.ts +7 -0
  390. package/types/ngwr-qr.d.ts +9 -1
  391. package/types/ngwr-radio-testing.d.ts +296 -0
  392. package/types/ngwr-radio.d.ts +8 -2
  393. package/types/ngwr-rating-testing.d.ts +291 -0
  394. package/types/ngwr-rating.d.ts +23 -0
  395. package/types/ngwr-segmented-testing.d.ts +401 -0
  396. package/types/ngwr-select-testing.d.ts +175 -0
  397. package/types/ngwr-select.d.ts +45 -4
  398. package/types/ngwr-sidebar.d.ts +17 -2
  399. package/types/ngwr-slider-testing.d.ts +329 -0
  400. package/types/ngwr-slider.d.ts +35 -1
  401. package/types/ngwr-sparkline.d.ts +12 -2
  402. package/types/ngwr-speed-dial.d.ts +17 -18
  403. package/types/ngwr-spinner.d.ts +8 -1
  404. package/types/ngwr-splitter.d.ts +24 -1
  405. package/types/ngwr-statistic.d.ts +12 -2
  406. package/types/ngwr-stepper-testing.d.ts +346 -0
  407. package/types/ngwr-switch-testing.d.ts +66 -0
  408. package/types/ngwr-switch.d.ts +7 -2
  409. package/types/ngwr-table-testing.d.ts +423 -0
  410. package/types/ngwr-table.d.ts +42 -0
  411. package/types/ngwr-tabs-testing.d.ts +470 -0
  412. package/types/ngwr-tabs.d.ts +9 -0
  413. package/types/ngwr-textarea-testing.d.ts +184 -0
  414. package/types/ngwr-textarea.d.ts +7 -2
  415. package/types/ngwr-toast-testing.d.ts +80 -0
  416. package/types/ngwr-tour.d.ts +27 -0
  417. package/types/ngwr-transfer-testing.d.ts +444 -0
  418. package/types/ngwr-transfer.d.ts +16 -1
  419. package/types/ngwr-tree-testing.d.ts +501 -0
  420. package/types/ngwr-tree.d.ts +33 -0
  421. package/types/ngwr-version.d.ts +1 -1
  422. package/types/ngwr-virtual-scroll.d.ts +13 -1
  423. package/typewriter/styles/_index.scss +1 -1
  424. package/typography/styles/_index.scss +1 -1
  425. package/window/styles/_index.scss +32 -9
@@ -0,0 +1,291 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
+ import { WrRatingSize } from 'ngwr/rating';
3
+
4
+ /**
5
+ * @license
6
+ *
7
+ * Use of this source code is governed by an MIT-style license that can be
8
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
9
+ */
10
+
11
+ /** Narrows which `<wr-rating>` a harness query matches. */
12
+ interface WrRatingHarnessFilters extends BaseHarnessFilters {
13
+ /**
14
+ * Match the rating's accessible name — the readable way to tell two ratings on
15
+ * one page apart, since a rating projects no text of its own. A string is an
16
+ * exact match, a RegExp is tested.
17
+ */
18
+ readonly label?: string | RegExp;
19
+ /**
20
+ * Match the value the slider announces. A cleared rating announces `0`, so
21
+ * `{ value: 0 }` matches both "zero stars" and "no rating yet".
22
+ */
23
+ readonly value?: number;
24
+ /** Match only read-only (`true`) or only editable (`false`) ratings. */
25
+ readonly readonly?: boolean;
26
+ /** Match only disabled (`true`) or only enabled (`false`) ratings. */
27
+ readonly disabled?: boolean;
28
+ }
29
+ /** Narrows which star a harness query matches. */
30
+ interface WrRatingItemHarnessFilters extends BaseHarnessFilters {
31
+ /** Match the star's fill ratio exactly — `1` for full, `0.5` for a half, `0` for empty. */
32
+ readonly fill?: number;
33
+ /** Match only stars that accept the pointer (`true`) — a readonly or disabled rating has none. */
34
+ readonly interactive?: boolean;
35
+ }
36
+
37
+ /**
38
+ * @license
39
+ *
40
+ * Use of this source code is governed by an MIT-style license that can be
41
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
42
+ */
43
+
44
+ /**
45
+ * Test harness for one star of a `<wr-rating>`.
46
+ *
47
+ * A star is invisible to a screen reader — the row above it is the `slider` and
48
+ * owns the whole accessible story — but it carries the state the eye reads: how
49
+ * far it is filled, whether it is still a click target, and, while the pointer is
50
+ * over the row, the PREVIEW rather than the committed value. That is the reason
51
+ * this exists as a harness of its own.
52
+ *
53
+ * The fill is read from `--wr-rating-fill`, the per-star custom property the
54
+ * component sets and the stylesheet clips the filled glyph with — a public token,
55
+ * and the only place a half star exists in the DOM.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const rating = await loader.getHarness(WrRatingHarness.with({ label: 'Overall' }));
60
+ * const [, , third] = await rating.getItems();
61
+ *
62
+ * expect(await third.isPartiallyFilled()).toBe(true);
63
+ * ```
64
+ *
65
+ * @see https://ngwr.dev/guides/testing
66
+ */
67
+ declare class WrRatingItemHarness extends ComponentHarness {
68
+ static hostSelector: string;
69
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
70
+ static with(options?: WrRatingItemHarnessFilters): HarnessPredicate<WrRatingItemHarness>;
71
+ /**
72
+ * How much of this star is painted, `0` to `1`.
73
+ *
74
+ * While the pointer is over the rating this is the PREVIEW — the component
75
+ * paints `hoverValue ?? value`, so a hovered star reads full before anything is
76
+ * committed. `WrRatingHarness.getValue()` is the committed one.
77
+ */
78
+ getFill(): Promise<number>;
79
+ /** Whether the star is painted whole. */
80
+ isFilled(): Promise<boolean>;
81
+ /**
82
+ * Whether the star is painted part-way — a half star.
83
+ *
84
+ * Any fractional value paints one, not only `step="0.5"`: the step governs the
85
+ * keyboard and the pointer, but a fraction written straight into `value` is only
86
+ * clamped to `[0, count]`, never snapped — so `[value]="3.5"` half-fills star four
87
+ * on a whole-star rating.
88
+ */
89
+ isPartiallyFilled(): Promise<boolean>;
90
+ /** Whether the star still takes the pointer — a readonly or disabled rating drops the modifier. */
91
+ isInteractive(): Promise<boolean>;
92
+ /**
93
+ * Click this star, picking it whole — star three sets the value to `3`.
94
+ *
95
+ * Clicking the value the rating ALREADY holds clears it instead; that is the
96
+ * component's toggle-off, not an accident of this harness.
97
+ *
98
+ * Needs real layout: the component snaps the value from where the pointer sits
99
+ * inside the star, so this aims at the star's inline-END edge. In jsdom every
100
+ * element is 0×0 and a pointer position over one cannot mean anything — this
101
+ * throws rather than committing the `NaN` such a click computes. Reach for
102
+ * `WrRatingHarness.setValue()` there, which drives the keyboard.
103
+ */
104
+ click(): Promise<void>;
105
+ /**
106
+ * Click the leading half of this star — `2.5` on star three.
107
+ *
108
+ * On a whole-star rating this is the same as {@link click}: the component snaps
109
+ * UP to its `step`, so half of star three is still three stars. Carries the same
110
+ * layout requirement.
111
+ */
112
+ clickHalf(): Promise<void>;
113
+ /**
114
+ * Move the pointer onto this star, previewing it whole.
115
+ *
116
+ * Sends `mousemove` rather than the `TestElement.hover()` pair: the rating
117
+ * tracks the pointer's x across a star to decide whether it is over the half or
118
+ * the whole, so `mouseenter` alone tells it nothing and leaves the preview
119
+ * unchanged. `WrRatingHarness.unhover()` ends it. Carries the same layout
120
+ * requirement as {@link click}.
121
+ */
122
+ hover(): Promise<void>;
123
+ /**
124
+ * The x, relative to the star's own box, that lands on its inline-END edge —
125
+ * the far side of the star, where the rating reads a whole one.
126
+ *
127
+ * The component measures the pointer from the star's inline-START edge, which
128
+ * is the right one once `dir="rtl"` mirrors the row; aiming at the physical
129
+ * right edge there reads ratio 0 and picks one star FEWER. So the side is asked
130
+ * for rather than assumed: `direction` is a computed style, which the harness
131
+ * can read in every environment — jsdom included, where it inherits from an
132
+ * ancestor `dir` attribute like any other browser.
133
+ */
134
+ private inlineEndX;
135
+ /** The star's box, or a failure that names the reason it has none. */
136
+ private box;
137
+ }
138
+
139
+ /**
140
+ * @license
141
+ *
142
+ * Use of this source code is governed by an MIT-style license that can be
143
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
144
+ */
145
+
146
+ /**
147
+ * Test harness for `<wr-rating>` — the root of a two-class family, since a star
148
+ * carries state of its own: {@link WrRatingItemHarness}.
149
+ *
150
+ * The stars are decoration. Everything a screen reader is told lives on the
151
+ * `.wr-rating__row` inside them, which is the `slider`: `aria-valuenow` is the
152
+ * committed value, `aria-valuemax` the top of the range, and the row — not the
153
+ * host — is the tab stop. So this harness reads the row and, for writes, drives
154
+ * its KEYBOARD: arrows step by the rating's own `step`, `Home` / `End` jump to
155
+ * the ends, `Delete` clears. That is the accessible path, and it is the only one a
156
+ * unit test can take unaided, because the pointer path snaps the value from where
157
+ * the cursor sits inside a star — which needs layout jsdom does not have, so a
158
+ * spec that wants it has to stub the star's box (see
159
+ * {@link WrRatingItemHarness.click}).
160
+ *
161
+ * @example
162
+ * ```ts
163
+ * const rating = await loader.getHarness(WrRatingHarness.with({ label: 'Overall' }));
164
+ *
165
+ * await rating.setValue(4);
166
+ * expect(await rating.getValue()).toBe(4);
167
+ * ```
168
+ *
169
+ * @see https://ngwr.dev/guides/testing
170
+ */
171
+ declare class WrRatingHarness extends ComponentHarness {
172
+ static hostSelector: string;
173
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
174
+ static with(options?: WrRatingHarnessFilters): HarnessPredicate<WrRatingHarness>;
175
+ private readonly row;
176
+ /**
177
+ * What the control announces itself as — `slider`.
178
+ *
179
+ * Not a `radiogroup`: the value is a number on a continuum with a `step`, the
180
+ * arrows move it and `Home` / `End` bound it, and that is a slider's contract
181
+ * rather than a group of one-of-N choices.
182
+ */
183
+ getRole(): Promise<string | null>;
184
+ /**
185
+ * The rating's accessible name, from `ariaLabel` or the i18n catalogue.
186
+ *
187
+ * A rating projects no text, so this is the only name it has — and it sits on
188
+ * the row, not on the host, because the row is what carries the role.
189
+ */
190
+ getLabel(): Promise<string | null>;
191
+ /**
192
+ * The committed value, from `aria-valuenow` — what a screen reader is told, not
193
+ * what is painted, which during a hover is the preview instead.
194
+ *
195
+ * A CLEARED rating is announced as `0`, exactly like a rating of zero stars:
196
+ * `value` is `number | null` and ARIA has no null. So `0` here means "zero or
197
+ * nothing" — assert the bound model when the difference matters, and see
198
+ * {@link clear}.
199
+ */
200
+ getValue(): Promise<number>;
201
+ /** The top of the range, from `aria-valuemax` — the `count` of stars. */
202
+ getMax(): Promise<number>;
203
+ /** How many stars are painted. Should always agree with {@link getMax}. */
204
+ getCount(): Promise<number>;
205
+ /** The stars, left to right. */
206
+ getItems(filters?: WrRatingItemHarnessFilters): Promise<WrRatingItemHarness[]>;
207
+ /**
208
+ * Each star's fill ratio, left to right — `[1, 1, 0.5, 0, 0]` for two and a
209
+ * half stars out of five.
210
+ *
211
+ * This is what the eye sees, so it follows the hover preview while there is one;
212
+ * {@link getValue} stays on the committed value throughout.
213
+ */
214
+ getFills(): Promise<number[]>;
215
+ /** The control size. `'md'` is the default and paints no modifier of its own. */
216
+ getSize(): Promise<WrRatingSize>;
217
+ /**
218
+ * Whether the rating displays a value it will not let you change.
219
+ *
220
+ * Read from `aria-readonly` rather than from the `wr-rating--readonly` class:
221
+ * both are public, but the attribute is the one a screen reader acts on, and a
222
+ * rating that looks read-only without saying so is the bug worth catching.
223
+ */
224
+ isReadonly(): Promise<boolean>;
225
+ /** Whether the rating refuses interaction — `aria-disabled`, for the same reason. */
226
+ isDisabled(): Promise<boolean>;
227
+ /**
228
+ * Whether the rating is in the tab order.
229
+ *
230
+ * A rating that takes no input takes itself out of it (`tabindex="-1"`), so this
231
+ * is `false` while readonly or disabled.
232
+ */
233
+ isFocusable(): Promise<boolean>;
234
+ /**
235
+ * Set the rating, from the keyboard.
236
+ *
237
+ * `Home` first, then one `ArrowUp` per step — the step is not in the DOM, so
238
+ * the only honest way to reach a value is to walk to it and watch where the
239
+ * rating lands. (The top of the range takes `End` instead of walking there.) A
240
+ * host counting value changes therefore sees the intermediate ones, which is what
241
+ * a keyboard user produces too.
242
+ *
243
+ * The BLOCK-axis arrow, deliberately: the stars lie on the inline axis, so
244
+ * `ArrowRight` raises the value in LTR and lowers it under `dir="rtl"`, where
245
+ * the arrows follow visual order. `ArrowUp` means "more" in both, so a spec
246
+ * written against this harness reads the same either way.
247
+ *
248
+ * Throws rather than settling for a near miss: on a value outside `[0, max]`, on
249
+ * one the step cannot land on (`2.5` on a whole-star rating), and on a rating
250
+ * that took no input at all because it is readonly or disabled.
251
+ *
252
+ * `setValue(0)` commits ZERO. It is {@link clear} that returns the model to
253
+ * `null`, and the two are indistinguishable from the DOM.
254
+ */
255
+ setValue(value: number): Promise<void>;
256
+ /**
257
+ * Clear the rating, the way `Delete` does — the bound value becomes `null`, not
258
+ * `0`.
259
+ *
260
+ * The slider then announces `aria-valuenow="0"` and every star empties, so
261
+ * {@link getValue} cannot tell you this happened. Assert the model.
262
+ */
263
+ clear(): Promise<void>;
264
+ /**
265
+ * Bump the rating up by one step — one `ArrowUp`, the arrow that means "more"
266
+ * in both reading directions (see {@link setValue}).
267
+ *
268
+ * The step is the rating's, not this harness's, so this is also how a spec finds
269
+ * out what it is: clear the rating, step up once, read the value.
270
+ * Already at the top, this does nothing; the value clamps rather than wrapping.
271
+ */
272
+ stepUp(): Promise<void>;
273
+ /** Bump the rating down by one step — one `ArrowDown`. Clamps at `0`. */
274
+ stepDown(): Promise<void>;
275
+ /**
276
+ * End a hover preview, dropping the stars back to the committed value.
277
+ *
278
+ * It lives here rather than on the star because the component listens for
279
+ * `mouseleave` on the ROW: leaving one star for the next is not leaving the
280
+ * rating.
281
+ */
282
+ unhover(): Promise<void>;
283
+ /** Move keyboard focus to the rating — onto the row, which is the tab stop. */
284
+ focus(): Promise<void>;
285
+ /** Blur the rating. This is what emits `touch`, so a bound field marks itself touched. */
286
+ blur(): Promise<void>;
287
+ isFocused(): Promise<boolean>;
288
+ }
289
+
290
+ export { WrRatingHarness, WrRatingItemHarness };
291
+ export type { WrRatingHarnessFilters, WrRatingItemHarnessFilters };
@@ -13,6 +13,10 @@ import { FormValueControl } from '@angular/forms/signals';
13
13
  * Keyboard: `←` / `→` bump by `step`, `Home` / `End` jump to 0 / max.
14
14
  * Clicking the current value clears it (toggle off).
15
15
  *
16
+ * The stars sit on the inline axis, so under `dir="rtl"` the row is mirrored and
17
+ * both halves of the input mirror with it: `→` walks toward the low end, and a
18
+ * click is measured from the star's inline-start (right) edge.
19
+ *
16
20
  * @example
17
21
  * ```html
18
22
  * <!-- signal forms -->
@@ -55,6 +59,16 @@ declare class WrRating implements FormValueControl<number | null> {
55
59
  /** What we actually render — hover wins while hovering. */
56
60
  protected readonly displayValue: _angular_core.Signal<number>;
57
61
  protected readonly slots: _angular_core.Signal<number[]>;
62
+ /**
63
+ * Reading direction, for the two places it changes the answer: the arrows and
64
+ * the pointer ratio inside a star.
65
+ *
66
+ * `optional` because a consumer who never set a direction should not have to
67
+ * provide anything — `Directionality` is root-provided, so this only resolves
68
+ * to `null` in a bare `TestBed`, where LTR is the right assumption. Read per
69
+ * interaction rather than cached, so a runtime flip needs no subscription.
70
+ */
71
+ private readonly directionality;
58
72
  protected readonly classes: _angular_core.Signal<string>;
59
73
  constructor();
60
74
  /** Fill ratio for slot `i` in `[0, 1]` — drives the CSS clip width. */
@@ -64,6 +78,15 @@ declare class WrRating implements FormValueControl<number | null> {
64
78
  protected onSlotClick(event: MouseEvent, index: number): void;
65
79
  protected onKeydown(event: KeyboardEvent): void;
66
80
  protected onBlur(): void;
81
+ /** Whether the row reads right-to-left. */
82
+ private isRtl;
83
+ /**
84
+ * How far into the star the pointer sits, `0` to `1`, measured from its
85
+ * INLINE-start edge — the left one in LTR, the right one in RTL, where the row
86
+ * is mirrored. Taken from `rect.left` alone it reads 1 exactly where an RTL
87
+ * user sees the start of the star, which inverts every half step.
88
+ */
89
+ private inlineRatio;
67
90
  /** Convert a mouse position over slot `index` to a snapped value. */
68
91
  private computeValue;
69
92
  private commit;