ngwr 16.2.0 → 16.3.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 (398) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/color-picker/styles/_index.scss +21 -0
  5. package/date-picker/styles/_index.scss +19 -0
  6. package/dropdown/styles/_index.scss +13 -19
  7. package/fesm2022/ngwr-affix.mjs +3 -3
  8. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  9. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  10. package/fesm2022/ngwr-alert.mjs +3 -3
  11. package/fesm2022/ngwr-anchor.mjs +17 -6
  12. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  13. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  14. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  15. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  16. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  17. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  18. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  19. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  20. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  21. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  22. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  23. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  25. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  26. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  27. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  28. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  29. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  30. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  31. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  32. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  33. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  34. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  35. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  36. package/fesm2022/ngwr-avatar.mjs +3 -3
  37. package/fesm2022/ngwr-back-top.mjs +3 -3
  38. package/fesm2022/ngwr-badge.mjs +129 -11
  39. package/fesm2022/ngwr-badge.mjs.map +1 -1
  40. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  42. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  43. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  45. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  46. package/fesm2022/ngwr-burger.mjs +3 -3
  47. package/fesm2022/ngwr-button.mjs +6 -6
  48. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  49. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  50. package/fesm2022/ngwr-calendar.mjs +500 -73
  51. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  52. package/fesm2022/ngwr-card.mjs +9 -9
  53. package/fesm2022/ngwr-carousel.mjs +6 -6
  54. package/fesm2022/ngwr-cascader.mjs +37 -16
  55. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  57. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  61. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  63. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  64. package/fesm2022/ngwr-charts-core.mjs +3 -3
  65. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  66. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  68. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  69. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  70. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  71. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  73. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  75. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  77. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  79. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  83. package/fesm2022/ngwr-checkbox.mjs +6 -6
  84. package/fesm2022/ngwr-clipboard.mjs +3 -3
  85. package/fesm2022/ngwr-collapse.mjs +9 -9
  86. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  87. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  88. package/fesm2022/ngwr-color-picker.mjs +153 -37
  89. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  90. package/fesm2022/ngwr-command-palette.mjs +3 -3
  91. package/fesm2022/ngwr-comment.mjs +10 -6
  92. package/fesm2022/ngwr-comment.mjs.map +1 -1
  93. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  94. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  95. package/fesm2022/ngwr-compare.mjs +3 -3
  96. package/fesm2022/ngwr-context-menu.mjs +12 -12
  97. package/fesm2022/ngwr-cookie.mjs +3 -3
  98. package/fesm2022/ngwr-copy-value.mjs +3 -3
  99. package/fesm2022/ngwr-counter.mjs +6 -6
  100. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  101. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-date-picker.mjs +342 -69
  103. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  105. package/fesm2022/ngwr-date.mjs +59 -8
  106. package/fesm2022/ngwr-date.mjs.map +1 -1
  107. package/fesm2022/ngwr-density.mjs +6 -6
  108. package/fesm2022/ngwr-descriptions.mjs +6 -6
  109. package/fesm2022/ngwr-dialog.mjs +18 -18
  110. package/fesm2022/ngwr-directives.mjs +15 -15
  111. package/fesm2022/ngwr-divider.mjs +3 -3
  112. package/fesm2022/ngwr-drawer.mjs +51 -29
  113. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  114. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  115. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  116. package/fesm2022/ngwr-dropdown.mjs +52 -95
  117. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  118. package/fesm2022/ngwr-editor.mjs +4 -3
  119. package/fesm2022/ngwr-editor.mjs.map +1 -1
  120. package/fesm2022/ngwr-empty.mjs +3 -3
  121. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  122. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  123. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  124. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  125. package/fesm2022/ngwr-file-upload.mjs +274 -15
  126. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  127. package/fesm2022/ngwr-form.mjs +9 -9
  128. package/fesm2022/ngwr-form.mjs.map +1 -1
  129. package/fesm2022/ngwr-graph-testing.mjs +3 -0
  130. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  131. package/fesm2022/ngwr-graph.mjs +102 -42
  132. package/fesm2022/ngwr-graph.mjs.map +1 -1
  133. package/fesm2022/ngwr-hotkey.mjs +6 -6
  134. package/fesm2022/ngwr-i18n-ar.mjs +19 -4
  135. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  136. package/fesm2022/ngwr-i18n-cs.mjs +19 -4
  137. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-de.mjs +19 -4
  139. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-en.mjs +19 -4
  141. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-es.mjs +19 -4
  143. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-fr.mjs +19 -4
  145. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-he.mjs +19 -4
  147. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-hi.mjs +19 -4
  149. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-id.mjs +19 -4
  151. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-it.mjs +19 -4
  153. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-ja.mjs +19 -4
  155. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-ko.mjs +19 -4
  157. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-nl.mjs +19 -4
  159. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-pl.mjs +19 -4
  161. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-pt.mjs +19 -4
  163. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-ru.mjs +19 -4
  165. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-sv.mjs +19 -4
  167. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-tr.mjs +19 -4
  169. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-uk.mjs +19 -4
  171. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-vi.mjs +19 -4
  173. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  174. package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
  175. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-zh.mjs +19 -4
  177. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n.mjs +9 -9
  179. package/fesm2022/ngwr-icon.mjs +6 -6
  180. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  181. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  182. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  183. package/fesm2022/ngwr-input-number.mjs +68 -7
  184. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  185. package/fesm2022/ngwr-input-otp.mjs +23 -3
  186. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  187. package/fesm2022/ngwr-input-testing.mjs +24 -1
  188. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  189. package/fesm2022/ngwr-input.mjs +152 -36
  190. package/fesm2022/ngwr-input.mjs.map +1 -1
  191. package/fesm2022/ngwr-keyboard.mjs +3 -3
  192. package/fesm2022/ngwr-knob.mjs +3 -3
  193. package/fesm2022/ngwr-layout.mjs +15 -15
  194. package/fesm2022/ngwr-lightbox.mjs +8 -8
  195. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  196. package/fesm2022/ngwr-list.mjs +8 -8
  197. package/fesm2022/ngwr-list.mjs.map +1 -1
  198. package/fesm2022/ngwr-load-state.mjs +15 -15
  199. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  200. package/fesm2022/ngwr-mention.mjs +6 -6
  201. package/fesm2022/ngwr-meta.mjs +6 -6
  202. package/fesm2022/ngwr-overlay.mjs +175 -13
  203. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  204. package/fesm2022/ngwr-page-header.mjs +3 -3
  205. package/fesm2022/ngwr-pagination.mjs +5 -3
  206. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  207. package/fesm2022/ngwr-pipes.mjs +31 -29
  208. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  209. package/fesm2022/ngwr-platform.mjs +9 -9
  210. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  211. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  212. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  213. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  214. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  215. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  216. package/fesm2022/ngwr-popover.mjs +58 -156
  217. package/fesm2022/ngwr-popover.mjs.map +1 -1
  218. package/fesm2022/ngwr-progress.mjs +50 -9
  219. package/fesm2022/ngwr-progress.mjs.map +1 -1
  220. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  221. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  222. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  223. package/fesm2022/ngwr-qr.mjs +3 -3
  224. package/fesm2022/ngwr-radio.mjs +6 -6
  225. package/fesm2022/ngwr-rating.mjs +3 -3
  226. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  227. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  228. package/fesm2022/ngwr-resizable.mjs +3 -3
  229. package/fesm2022/ngwr-result.mjs +12 -12
  230. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  231. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  232. package/fesm2022/ngwr-schema-form.mjs +415 -19
  233. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  234. package/fesm2022/ngwr-scroll.mjs +3 -3
  235. package/fesm2022/ngwr-segmented.mjs +3 -3
  236. package/fesm2022/ngwr-select-testing.mjs +19 -0
  237. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  238. package/fesm2022/ngwr-select.mjs +263 -83
  239. package/fesm2022/ngwr-select.mjs.map +1 -1
  240. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  241. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  242. package/fesm2022/ngwr-sidebar.mjs +3 -3
  243. package/fesm2022/ngwr-skeleton.mjs +3 -3
  244. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  245. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  246. package/fesm2022/ngwr-slider.mjs +21 -3
  247. package/fesm2022/ngwr-slider.mjs.map +1 -1
  248. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  249. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  250. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  251. package/fesm2022/ngwr-spinner.mjs +3 -3
  252. package/fesm2022/ngwr-splitter.mjs +3 -3
  253. package/fesm2022/ngwr-statistic.mjs +9 -9
  254. package/fesm2022/ngwr-stepper.mjs +42 -11
  255. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  256. package/fesm2022/ngwr-storage.mjs +3 -3
  257. package/fesm2022/ngwr-switch.mjs +3 -3
  258. package/fesm2022/ngwr-table-testing.mjs +88 -2
  259. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  260. package/fesm2022/ngwr-table.mjs +891 -74
  261. package/fesm2022/ngwr-table.mjs.map +1 -1
  262. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  263. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  264. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-tabs.mjs +15 -10
  266. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  267. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  268. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  269. package/fesm2022/ngwr-textarea.mjs +128 -16
  270. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  271. package/fesm2022/ngwr-theme.mjs +3 -3
  272. package/fesm2022/ngwr-timeline.mjs +6 -6
  273. package/fesm2022/ngwr-toast.mjs +40 -19
  274. package/fesm2022/ngwr-toast.mjs.map +1 -1
  275. package/fesm2022/ngwr-toolbar.mjs +3 -3
  276. package/fesm2022/ngwr-tour.mjs +6 -6
  277. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  278. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  279. package/fesm2022/ngwr-transfer.mjs +24 -5
  280. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  281. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  282. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tree.mjs +966 -78
  284. package/fesm2022/ngwr-tree.mjs.map +1 -1
  285. package/fesm2022/ngwr-typography.mjs +3 -3
  286. package/fesm2022/ngwr-utils-router.mjs +3 -3
  287. package/fesm2022/ngwr-utils.mjs +34 -1
  288. package/fesm2022/ngwr-utils.mjs.map +1 -1
  289. package/fesm2022/ngwr-version.mjs +1 -1
  290. package/fesm2022/ngwr-version.mjs.map +1 -1
  291. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  292. package/fesm2022/ngwr-window.mjs +33 -22
  293. package/fesm2022/ngwr-window.mjs.map +1 -1
  294. package/file-upload/styles/_index.scss +156 -0
  295. package/i18n/ar.json +21 -4
  296. package/i18n/cs.json +21 -4
  297. package/i18n/de.json +21 -4
  298. package/i18n/en.json +21 -4
  299. package/i18n/es.json +21 -4
  300. package/i18n/fr.json +21 -4
  301. package/i18n/he.json +21 -4
  302. package/i18n/hi.json +21 -4
  303. package/i18n/id.json +21 -4
  304. package/i18n/it.json +21 -4
  305. package/i18n/ja.json +21 -4
  306. package/i18n/ko.json +21 -4
  307. package/i18n/nl.json +21 -4
  308. package/i18n/pl.json +21 -4
  309. package/i18n/pt.json +21 -4
  310. package/i18n/ru.json +21 -4
  311. package/i18n/sv.json +21 -4
  312. package/i18n/tr.json +21 -4
  313. package/i18n/uk.json +21 -4
  314. package/i18n/vi.json +21 -4
  315. package/i18n/zh-TW.json +21 -4
  316. package/i18n/zh.json +21 -4
  317. package/input/styles/_index.scss +68 -1
  318. package/input-otp/styles/_index.scss +14 -0
  319. package/llms-full.txt +52 -20
  320. package/overlay/styles/_arrow.scss +4 -4
  321. package/package.json +33 -1
  322. package/popconfirm/styles/_index.scss +3 -11
  323. package/progress/styles/_index.scss +32 -0
  324. package/schema-form/styles/_index.scss +78 -0
  325. package/schematics/use/rule.js +2 -0
  326. package/schematics/use/symbol-map.json +4 -0
  327. package/select/styles/_index.scss +114 -22
  328. package/skills/ngwr/SKILL.md +1 -1
  329. package/skills/ngwr/references/catalog.md +9 -1
  330. package/slider/styles/_index.scss +22 -0
  331. package/table/styles/_index.scss +167 -3
  332. package/textarea/styles/_index.scss +80 -0
  333. package/theme/styles/_focus.scss +5 -0
  334. package/theme/styles/_motion.scss +5 -0
  335. package/transfer/styles/_index.scss +84 -0
  336. package/tree/styles/_index.scss +138 -5
  337. package/types/ngwr-alert-testing.d.ts +88 -0
  338. package/types/ngwr-badge.d.ts +72 -2
  339. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  340. package/types/ngwr-burger-testing.d.ts +51 -0
  341. package/types/ngwr-calendar-testing.d.ts +18 -6
  342. package/types/ngwr-calendar.d.ts +272 -22
  343. package/types/ngwr-cascader.d.ts +10 -1
  344. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  345. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  346. package/types/ngwr-charts-line-chart.d.ts +7 -4
  347. package/types/ngwr-color-picker-testing.d.ts +15 -4
  348. package/types/ngwr-color-picker.d.ts +76 -6
  349. package/types/ngwr-compare-testing.d.ts +72 -0
  350. package/types/ngwr-date-picker-testing.d.ts +23 -8
  351. package/types/ngwr-date-picker.d.ts +100 -9
  352. package/types/ngwr-date.d.ts +71 -1
  353. package/types/ngwr-drawer.d.ts +9 -0
  354. package/types/ngwr-dropdown-testing.d.ts +20 -0
  355. package/types/ngwr-dropdown.d.ts +24 -6
  356. package/types/ngwr-event-calendar.d.ts +66 -8
  357. package/types/ngwr-file-upload-testing.d.ts +31 -2
  358. package/types/ngwr-file-upload.d.ts +148 -1
  359. package/types/ngwr-form.d.ts +47 -3
  360. package/types/ngwr-graph-testing.d.ts +8 -3
  361. package/types/ngwr-graph.d.ts +147 -7
  362. package/types/ngwr-input-number-testing.d.ts +10 -0
  363. package/types/ngwr-input-number.d.ts +30 -1
  364. package/types/ngwr-input-otp.d.ts +10 -0
  365. package/types/ngwr-input-testing.d.ts +30 -0
  366. package/types/ngwr-input.d.ts +54 -3
  367. package/types/ngwr-overlay.d.ts +84 -5
  368. package/types/ngwr-pipes.d.ts +2 -1
  369. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  370. package/types/ngwr-popconfirm.d.ts +28 -3
  371. package/types/ngwr-popover-testing.d.ts +19 -2
  372. package/types/ngwr-popover.d.ts +22 -2
  373. package/types/ngwr-progress.d.ts +29 -1
  374. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  375. package/types/ngwr-resizable-testing.d.ts +116 -0
  376. package/types/ngwr-schema-form-testing.d.ts +260 -0
  377. package/types/ngwr-schema-form.d.ts +76 -6
  378. package/types/ngwr-select-testing.d.ts +20 -0
  379. package/types/ngwr-select.d.ts +112 -11
  380. package/types/ngwr-sidebar-testing.d.ts +176 -0
  381. package/types/ngwr-slider-testing.d.ts +3 -1
  382. package/types/ngwr-slider.d.ts +21 -1
  383. package/types/ngwr-sortable-list.d.ts +6 -0
  384. package/types/ngwr-stepper.d.ts +20 -11
  385. package/types/ngwr-table-testing.d.ts +70 -6
  386. package/types/ngwr-table.d.ts +480 -50
  387. package/types/ngwr-tabs-testing.d.ts +14 -17
  388. package/types/ngwr-tabs.d.ts +6 -0
  389. package/types/ngwr-textarea-testing.d.ts +10 -0
  390. package/types/ngwr-textarea.d.ts +48 -2
  391. package/types/ngwr-toast.d.ts +8 -1
  392. package/types/ngwr-transfer-testing.d.ts +3 -0
  393. package/types/ngwr-transfer.d.ts +24 -1
  394. package/types/ngwr-tree-testing.d.ts +65 -1
  395. package/types/ngwr-tree.d.ts +333 -12
  396. package/types/ngwr-utils.d.ts +28 -0
  397. package/types/ngwr-version.d.ts +1 -1
  398. package/types/ngwr-window.d.ts +7 -4
@@ -166,6 +166,90 @@
166
166
  transform: scaleX(-1);
167
167
  }
168
168
 
169
+ // Sizes. The pane's two dimensions and the gap are the host's own hooks, the
170
+ // rest live on the parts. A row keeps its 24px pitch at `sm`: the checkbox in
171
+ // it is a 16px target, and any tighter the rows fail the 24px spacing rule.
172
+ &--sm,
173
+ &:where([size='sm']) {
174
+ --wr-transfer-pane-width: 12rem;
175
+ --wr-transfer-pane-height: 12rem;
176
+ --wr-transfer-gap: var(--wr-space-sm);
177
+ }
178
+
179
+ &--sm &__head,
180
+ &:where([size='sm']) &__head {
181
+ --wr-transfer-head-padding-y: var(--wr-space-xs);
182
+ --wr-transfer-head-padding-x: var(--wr-space-sm);
183
+ }
184
+
185
+ &--sm &__title,
186
+ &:where([size='sm']) &__title {
187
+ --wr-transfer-title-font-size: var(--wr-text-xs);
188
+ }
189
+
190
+ &--sm &__search,
191
+ &:where([size='sm']) &__search {
192
+ --wr-transfer-search-padding-y: var(--wr-space-xs);
193
+ --wr-transfer-search-padding-x: var(--wr-space-sm);
194
+ }
195
+
196
+ &--sm &__item,
197
+ &:where([size='sm']) &__item {
198
+ --wr-transfer-item-padding-x: var(--wr-space-xs);
199
+ }
200
+
201
+ &--sm &__empty,
202
+ &:where([size='sm']) &__empty {
203
+ --wr-transfer-empty-padding-y: var(--wr-space-md);
204
+ --wr-transfer-empty-font-size: var(--wr-text-xs);
205
+ }
206
+
207
+ &--lg,
208
+ &:where([size='lg']) {
209
+ --wr-transfer-pane-width: 16rem;
210
+ --wr-transfer-pane-height: 18rem;
211
+ --wr-transfer-gap: var(--wr-space-lg);
212
+ }
213
+
214
+ &--lg &__head,
215
+ &:where([size='lg']) &__head {
216
+ --wr-transfer-head-padding-y: var(--wr-space-md);
217
+ --wr-transfer-head-padding-x: var(--wr-space-lg);
218
+ }
219
+
220
+ &--lg &__title,
221
+ &:where([size='lg']) &__title {
222
+ --wr-transfer-title-font-size: var(--wr-text-base);
223
+ }
224
+
225
+ &--lg &__count,
226
+ &:where([size='lg']) &__count {
227
+ --wr-transfer-count-font-size: var(--wr-text-sm);
228
+ }
229
+
230
+ &--lg &__search,
231
+ &:where([size='lg']) &__search {
232
+ --wr-transfer-search-padding-y: var(--wr-space-md);
233
+ --wr-transfer-search-padding-x: var(--wr-space-lg);
234
+ }
235
+
236
+ &--lg &__list,
237
+ &:where([size='lg']) &__list {
238
+ --wr-transfer-list-padding: var(--wr-space-sm);
239
+ }
240
+
241
+ &--lg &__item,
242
+ &:where([size='lg']) &__item {
243
+ --wr-transfer-item-padding-y: var(--wr-space-sm);
244
+ --wr-transfer-item-padding-x: var(--wr-space-md);
245
+ }
246
+
247
+ &--lg &__empty,
248
+ &:where([size='lg']) &__empty {
249
+ --wr-transfer-empty-padding-y: var(--wr-space-xl);
250
+ --wr-transfer-empty-font-size: var(--wr-text-base);
251
+ }
252
+
169
253
  // No container query here on purpose: `@container` only styles DESCENDANTS, so
170
254
  // a rule that reflows `.wr-transfer` itself could never match its own query.
171
255
  // Doing it properly means the house `responsive` opt-in modifier (a wrapper
@@ -1,10 +1,17 @@
1
1
  @use '../../theme/styles' as theme;
2
+
3
+ // Styles for the entry points this component's own markup renders: the cascade
4
+ // box is the checkbox's, drawn from its classes, and the loading row spins.
5
+ @use '../../checkbox/styles' as checkbox-styles; // WrCheckbox
6
+ @use '../../empty/styles' as empty-styles; // WrEmpty
7
+ @use '../../spinner/styles' as spinner-styles; // WrSpinner
2
8
  @include theme.loaded('tree');
3
9
 
4
- .wr-tree {
10
+ // Row hooks are declared on the panel as well: its rows render in the CDK
11
+ // overlay container, outside the `.wr-tree` host, and would read them unset.
12
+ .wr-tree,
13
+ .wr-tree-panel {
5
14
  --wr-tree-indent: 1.25rem;
6
- --wr-tree-font-family: var(--wr-font-family-base);
7
- --wr-tree-font-size: var(--wr-text-sm);
8
15
  --wr-tree-list-padding-y: var(--wr-space-xs);
9
16
  --wr-tree-row-gap: var(--wr-space-sm);
10
17
  --wr-tree-row-padding-y: var(--wr-space-xs);
@@ -12,6 +19,18 @@
12
19
  --wr-tree-row-radius: var(--wr-border-radius-sm);
13
20
  --wr-tree-row-selected-font-weight: var(--wr-font-weight-medium);
14
21
  --wr-tree-toggle-radius: var(--wr-border-radius-sm);
22
+ --wr-tree-status-color: var(--wr-color-on-surface-muted);
23
+ --wr-tree-status-error-color: var(--wr-color-danger-ink);
24
+ --wr-tree-retry-color: var(--wr-color-primary-ink);
25
+ --wr-tree-row-hover-bg: var(--wr-color-hover);
26
+ --wr-tree-match-bg: var(--wr-color-warning-soft);
27
+ --wr-tree-match-color: var(--wr-color-warning-ink);
28
+ --wr-tree-drop-color: var(--wr-color-primary);
29
+ }
30
+
31
+ .wr-tree {
32
+ --wr-tree-font-family: var(--wr-font-family-base);
33
+ --wr-tree-font-size: var(--wr-text-sm);
15
34
  // The combobox trigger's own hooks live on the BASE rather than inside
16
35
  // `&--combobox`, although nothing paints them until that modifier is on.
17
36
  // `.wr-tree` and `.wr-tree--combobox` are the same element, so the modifier's
@@ -71,8 +90,8 @@
71
90
  background var(--wr-transition-base),
72
91
  color var(--wr-transition-base);
73
92
 
74
- &:hover:not(.wr-tree__row--disabled) {
75
- background: var(--wr-color-hover);
93
+ &:hover:not(.wr-tree__row--disabled, [aria-disabled='true']) {
94
+ background: var(--wr-tree-row-hover-bg);
76
95
  }
77
96
 
78
97
  // A selected row had nothing but the tint, and `wr-tree` — unlike its
@@ -86,6 +105,45 @@
86
105
  color: var(--wr-color-primary-ink);
87
106
  }
88
107
 
108
+ // Cascade: the box says it, so a checked row keeps its plain face. `:where`
109
+ // holds the specificity down, and hover and the cursor still win.
110
+ &--selected:where([aria-checked]) {
111
+ background: transparent;
112
+ font-weight: inherit;
113
+ color: inherit;
114
+ }
115
+
116
+ // The row being moved, by drag or by keyboard. It stays in place until the
117
+ // consumer applies the move, so it only steps back.
118
+ &--dragging {
119
+ opacity: var(--wr-disabled-opacity);
120
+ }
121
+
122
+ // Where a drop would land: a line above or below the row, indented to the
123
+ // level the node would take, or a frame when the row becomes its parent.
124
+ &--drop-inside {
125
+ box-shadow: inset 0 0 0 2px var(--wr-tree-drop-color);
126
+ }
127
+
128
+ &--drop-before::after,
129
+ &--drop-after::after {
130
+ content: '';
131
+ position: absolute;
132
+ inset-inline: calc(0.5rem + var(--wr-tree-drop-depth, 0) * var(--wr-tree-indent)) 0;
133
+ height: 2px;
134
+ border-radius: 1px;
135
+ background: var(--wr-tree-drop-color);
136
+ pointer-events: none;
137
+ }
138
+
139
+ &--drop-before::after {
140
+ inset-block-start: -1px;
141
+ }
142
+
143
+ &--drop-after::after {
144
+ inset-block-end: -1px;
145
+ }
146
+
89
147
  // Visible ring only when the row truly has keyboard focus — not
90
148
  // just because it's the roving-tabindex cursor row.
91
149
  &:focus-visible {
@@ -119,6 +177,81 @@
119
177
  }
120
178
  }
121
179
 
180
+ // A branch's pending or failed load. The row's own box, so a windowed list
181
+ // keeps its one row height; the spinner sits in the toggle's slot.
182
+ &__status {
183
+ display: flex;
184
+ align-items: center;
185
+ gap: var(--wr-tree-row-gap);
186
+ padding: var(--wr-tree-row-padding-y) var(--wr-tree-row-padding-x);
187
+ padding-inline-start: calc(0.5rem + var(--wr-tree-depth, 0) * var(--wr-tree-indent));
188
+ border-radius: var(--wr-tree-row-radius);
189
+ color: var(--wr-tree-status-color);
190
+ cursor: default;
191
+ user-select: none;
192
+ outline: 0;
193
+ position: relative;
194
+
195
+ &:focus-visible {
196
+ @include theme.focus-ring;
197
+ }
198
+
199
+ &--error {
200
+ color: var(--wr-tree-status-error-color);
201
+ }
202
+
203
+ &--active {
204
+ background: var(--wr-color-hover);
205
+ }
206
+ }
207
+
208
+ &__spinner {
209
+ --wr-spinner-size: 1rem;
210
+
211
+ flex: 0 0 auto;
212
+ }
213
+
214
+ &__status-text {
215
+ overflow: hidden;
216
+ text-overflow: ellipsis;
217
+ white-space: nowrap;
218
+ }
219
+
220
+ &__retry {
221
+ appearance: none;
222
+ background: transparent;
223
+ border: 0;
224
+ padding: 0;
225
+ font: inherit;
226
+ color: var(--wr-tree-retry-color);
227
+ text-decoration: underline;
228
+ cursor: pointer;
229
+ }
230
+
231
+ &__check {
232
+ flex: 0 0 auto;
233
+ }
234
+
235
+ // The filter's match inside a label.
236
+ &__label mark {
237
+ background: var(--wr-tree-match-bg);
238
+ color: var(--wr-tree-match-color);
239
+ border-radius: 2px;
240
+ }
241
+
242
+ // The keyboard move's description and live region.
243
+ &__sr-only {
244
+ position: absolute;
245
+ width: 1px;
246
+ height: 1px;
247
+ padding: 0;
248
+ margin: -1px;
249
+ overflow: hidden;
250
+ clip: rect(0, 0, 0, 0);
251
+ white-space: nowrap;
252
+ border: 0;
253
+ }
254
+
122
255
  // Virtualized list: the container owns scrolling + keyboard focus.
123
256
  &__list--virtual {
124
257
  overflow-y: auto;
@@ -0,0 +1,88 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ import { WrAlertType } from "ngwr/alert";
3
+ /** Narrows which `<wr-alert>` a harness query matches. */
4
+ interface WrAlertHarnessFilters extends BaseHarnessFilters {
5
+ /** Match the headline: a string is an exact match, a RegExp is tested. */
6
+ readonly title?: string | RegExp;
7
+ /** Match the whole text of the alert: a string is an exact match, a RegExp is tested. */
8
+ readonly text?: string | RegExp;
9
+ /** Match the variant. */
10
+ readonly type?: WrAlertType;
11
+ /** Match only alerts with (`true`) or without (`false`) a close button. */
12
+ readonly closable?: boolean;
13
+ }
14
+ /**
15
+ * Test harness for `<wr-alert>`, the inline status banner.
16
+ *
17
+ * A dismissed alert keeps its host element and renders nothing inside it, so
18
+ * every reader below answers `null` or `''` for one and {@link isDismissed} is
19
+ * how a spec tells "closed" from "empty". There is no `getIcon()`: the default
20
+ * glyph is an inline `<svg>` whose only difference between variants is its path
21
+ * data, and {@link getType} already answers the question a spec has.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const alert = await loader.getHarness(WrAlertHarness.with({ type: 'danger' }));
26
+ *
27
+ * expect(await alert.getTitle()).toBe('Sync failed');
28
+ * await alert.close();
29
+ * expect(await alert.isDismissed()).toBe(true);
30
+ * ```
31
+ *
32
+ * @see https://ngwr.dev/guides/testing
33
+ */
34
+ export declare class WrAlertHarness extends ComponentHarness {
35
+ static hostSelector: string;
36
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
37
+ static with(options?: WrAlertHarnessFilters): HarnessPredicate<WrAlertHarness>;
38
+ private readonly closeButton;
39
+ /**
40
+ * The headline, or `null` when the alert has none.
41
+ *
42
+ * A `message` with no `title` IS the headline: the component draws it in
43
+ * `.wr-alert__title`, so it is answered here and {@link getMessage} is `null`.
44
+ */
45
+ getTitle(): Promise<string | null>;
46
+ /** The secondary line under the headline, or `null`. Only drawn when a `title` sits above it. */
47
+ getMessage(): Promise<string | null>;
48
+ /** The projected default content, trimmed: `''` when nothing was projected or the alert is dismissed. */
49
+ getContentText(): Promise<string>;
50
+ /**
51
+ * Everything the alert says: headline, message, projected content and the
52
+ * labels of projected actions, in that order, one space between them. `''`
53
+ * once dismissed.
54
+ *
55
+ * Joined here rather than read off the body in one go: the pieces are
56
+ * separate blocks with no text between them, so their raw text runs together
57
+ * as `Sync failedThe server…`.
58
+ */
59
+ getText(): Promise<string>;
60
+ /**
61
+ * The variant, from the host's `wr-alert--<type>` modifier.
62
+ *
63
+ * Throws when the host carries none of them rather than answering `'info'`:
64
+ * the component always writes one, so its absence is the bug.
65
+ */
66
+ getType(): Promise<WrAlertType>;
67
+ /**
68
+ * How the alert is announced: `'alert'` for `danger`, `'status'` for the
69
+ * rest, `null` once dismissed.
70
+ */
71
+ getRole(): Promise<string | null>;
72
+ /** The `aria-live` level: `'assertive'` for `danger` and `warning`, `'polite'` otherwise, `null` once dismissed. */
73
+ getLiveLevel(): Promise<string | null>;
74
+ /** Whether the leading status icon is drawn. */
75
+ hasIcon(): Promise<boolean>;
76
+ /** Whether the alert renders a close button. `false` once dismissed: the button goes with the rest. */
77
+ isClosable(): Promise<boolean>;
78
+ /** The close button's accessible name, or `null` when there is no button. */
79
+ getCloseLabel(): Promise<string | null>;
80
+ /** Whether the user closed the alert, from the host's `wr-alert--dismissed` modifier. */
81
+ isDismissed(): Promise<boolean>;
82
+ /**
83
+ * Click the close button. Throws when there is none: the alert is not
84
+ * `closable`, or it is already dismissed.
85
+ */
86
+ close(): Promise<void>;
87
+ }
88
+ export type { WrAlertHarnessFilters };
@@ -35,6 +35,16 @@ type WrBadgeSize = 'sm' | 'md' | 'lg';
35
35
  * Where the icon (or loading spinner) sits relative to the tag content.
36
36
  */
37
37
  type WrTagIconPosition = 'start' | 'end';
38
+ /**
39
+ * @license
40
+ *
41
+ * Use of this source code is governed by an MIT-style license that can be
42
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
43
+ */
44
+ /**
45
+ * Tag size variant.
46
+ */
47
+ type WrTagSize = 'sm' | 'md' | 'lg';
38
48
  /**
39
49
  * Lean chip — color, size, rounded/pill. Use for short labels and counts
40
50
  * (e.g. "ONLINE", "3 unread", "v2.1"), where the words say the state and the
@@ -118,6 +128,7 @@ export declare class WrBadge {
118
128
  * <wr-tag color="success" icon="checkmark">Done</wr-tag>
119
129
  * <wr-tag color="primary" outlined rounded>Beta</wr-tag>
120
130
  * <wr-tag color="warning" loading>Saving</wr-tag>
131
+ * <wr-tag closable (removed)="drop(topic)">{{ topic }}</wr-tag>
121
132
  * ```
122
133
  *
123
134
  * @see https://ngwr.dev/reference/components/badge
@@ -137,6 +148,13 @@ export declare class WrTag {
137
148
  * @default 'primary'
138
149
  */
139
150
  readonly color: import("@angular/core").InputSignal<"success" | "info" | "warning" | "danger" | "primary" | null>;
151
+ /**
152
+ * Size variant. `md` is the 22px chip that sits beside an `sm` control, `sm`
153
+ * is 18px and `lg` 30px, the heights of a badge at those sizes.
154
+ *
155
+ * @default 'md'
156
+ */
157
+ readonly size: import("@angular/core").InputSignal<WrTagSize>;
140
158
  /**
141
159
  * Icon name shown alongside the content — the one channel besides the label
142
160
  * that a tag has, so the one to reach for when colour is carrying a status.
@@ -182,7 +200,42 @@ export declare class WrTag {
182
200
  * @default false
183
201
  */
184
202
  readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
203
+ /**
204
+ * Renders a remove button at the end of the tag. The tag does not remove
205
+ * itself: drop it from your list in `(removed)`. A `loading` tag keeps the
206
+ * button; bind `[closable]="!saving"` to withhold it.
207
+ *
208
+ * @default false
209
+ */
210
+ readonly closable: import("@angular/core").InputSignalWithTransform<boolean, any>;
211
+ /**
212
+ * Accessible name of the remove button. Falls back to the catalog's
213
+ * `tag.remove` with the tag's own text, "Remove Angular", or to
214
+ * `common.remove` for a tag with no text.
215
+ *
216
+ * @default null
217
+ */
218
+ readonly removeLabel: import("@angular/core").InputSignal<string | null>;
219
+ /**
220
+ * Emitted when the user removes the tag: a click on the remove button, or
221
+ * Delete / Backspace on it (or on the tag itself, if you made it focusable).
222
+ * The click does not reach a `(click)` on the tag. If the button had focus and
223
+ * the tag is gone after the next render, focus moves to the next tab stop, or
224
+ * the one before it when nothing follows.
225
+ */
226
+ readonly removed: import("@angular/core").OutputEmitterRef<void>;
227
+ private readonly host;
228
+ private readonly environment;
229
+ private readonly text;
230
+ private readonly removeText;
231
+ private readonly removeBare;
232
+ protected readonly removeName: import("@angular/core").Signal<string>;
185
233
  protected readonly classes: import("@angular/core").Signal<string>;
234
+ protected onRemove(event: Event): void;
235
+ protected onRemoveKey(event: Event): void;
236
+ private remove;
237
+ private removeButton;
238
+ private readText;
186
239
  static ɵfac: i0.ɵɵFactoryDeclaration<WrTag, never>;
187
240
  static ɵcmp: i0.ɵɵComponentDeclaration<WrTag, "wr-tag", never, {
188
241
  "color": {
@@ -190,6 +243,11 @@ export declare class WrTag {
190
243
  "required": false;
191
244
  "isSignal": true;
192
245
  };
246
+ "size": {
247
+ "alias": "size";
248
+ "required": false;
249
+ "isSignal": true;
250
+ };
193
251
  "icon": {
194
252
  "alias": "icon";
195
253
  "required": false;
@@ -225,6 +283,18 @@ export declare class WrTag {
225
283
  "required": false;
226
284
  "isSignal": true;
227
285
  };
228
- }, {}, never, ["*"], true, never>;
286
+ "closable": {
287
+ "alias": "closable";
288
+ "required": false;
289
+ "isSignal": true;
290
+ };
291
+ "removeLabel": {
292
+ "alias": "removeLabel";
293
+ "required": false;
294
+ "isSignal": true;
295
+ };
296
+ }, {
297
+ "removed": "removed";
298
+ }, never, ["*"], true, never>;
229
299
  }
230
- export type { WrBadgeShape, WrBadgeSize, WrTagIconPosition };
300
+ export type { WrBadgeShape, WrBadgeSize, WrTagIconPosition, WrTagSize };
@@ -0,0 +1,92 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ /** Narrows which `<wr-breadcrumbs>` a harness query matches. */
3
+ interface WrBreadcrumbsHarnessFilters extends BaseHarnessFilters {
4
+ /** Match the landmark's accessible name: a string is an exact match, a RegExp is tested. */
5
+ readonly label?: string | RegExp;
6
+ }
7
+ /** Narrows which `<wr-breadcrumbs-item>` a harness query matches. */
8
+ interface WrBreadcrumbsItemHarnessFilters extends BaseHarnessFilters {
9
+ /** Match the crumb's text: a string is an exact match, a RegExp is tested. */
10
+ readonly text?: string | RegExp;
11
+ /** Match only the current page (`true`) or only the links above it (`false`). */
12
+ readonly current?: boolean;
13
+ }
14
+ /**
15
+ * Test harness for one `<wr-breadcrumbs-item>`: a link, or the current page.
16
+ *
17
+ * A crumb with neither `href` nor `routerLink` is the current page. It is
18
+ * still an `<a>`, with `aria-current="page"` and out of the tab order, so
19
+ * {@link isCurrent} reads the attribute and never the tag.
20
+ *
21
+ * @see https://ngwr.dev/guides/testing
22
+ */
23
+ export declare class WrBreadcrumbsItemHarness extends ComponentHarness {
24
+ static hostSelector: string;
25
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
26
+ static with(options?: WrBreadcrumbsItemHarnessFilters): HarnessPredicate<WrBreadcrumbsItemHarness>;
27
+ private readonly anchor;
28
+ /** The crumb's text, trimmed. */
29
+ getText(): Promise<string>;
30
+ /** Whether this crumb is the current page, from `aria-current="page"`. */
31
+ isCurrent(): Promise<boolean>;
32
+ /** Whether this crumb navigates somewhere: it was given an `href` or a `routerLink`. */
33
+ isLink(): Promise<boolean>;
34
+ /** The `href` the anchor carries, as written: `null` for the current page. */
35
+ getHref(): Promise<string | null>;
36
+ /** Whether the link opens in a new tab (`external`). */
37
+ isExternal(): Promise<boolean>;
38
+ /** Whether the crumb draws a leading icon. */
39
+ hasIcon(): Promise<boolean>;
40
+ /**
41
+ * Click the crumb. Throws for the current page, which is text and goes
42
+ * nowhere: a click that resolved there would read as a navigation.
43
+ */
44
+ click(): Promise<void>;
45
+ }
46
+ /**
47
+ * Test harness for `<wr-breadcrumbs>`, the trail of {@link WrBreadcrumbsItemHarness} crumbs.
48
+ *
49
+ * The glyph between crumbs is generated content, drawn by the stylesheet from a
50
+ * custom property the component writes on the host. {@link getSeparator} reads
51
+ * that property: it says which glyph was asked for, and a unit test, which
52
+ * loads no stylesheet, has no way to say it was drawn.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const trail = await loader.getHarness(WrBreadcrumbsHarness);
57
+ *
58
+ * expect(await trail.getItems()).toEqual(['Home', 'Docs', 'Testing']);
59
+ * expect(await trail.getCurrent()).toBe('Testing');
60
+ * await trail.clickItem('Docs');
61
+ * ```
62
+ *
63
+ * @see https://ngwr.dev/guides/testing
64
+ */
65
+ export declare class WrBreadcrumbsHarness extends ComponentHarness {
66
+ static hostSelector: string;
67
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
68
+ static with(options?: WrBreadcrumbsHarnessFilters): HarnessPredicate<WrBreadcrumbsHarness>;
69
+ /** The accessible name of the `<nav>` landmark. */
70
+ getLabel(): Promise<string | null>;
71
+ /**
72
+ * The separator the component asked the stylesheet to draw, from the
73
+ * `--wr-breadcrumbs-separator` it wrote on the host, unquoted and unescaped.
74
+ */
75
+ getSeparator(): Promise<string | null>;
76
+ /** The text of every crumb, in order. */
77
+ getItems(): Promise<string[]>;
78
+ /** The crumbs themselves, in order, for what the texts do not say. */
79
+ getItemHarnesses(filters?: WrBreadcrumbsItemHarnessFilters): Promise<WrBreadcrumbsItemHarness[]>;
80
+ /** The first crumb with this text, or a failure naming the crumbs that exist. */
81
+ getItem(text: string | RegExp): Promise<WrBreadcrumbsItemHarness>;
82
+ /**
83
+ * The text of the current page, or `null` when no crumb is marked.
84
+ *
85
+ * Throws when more than one is: a trail announcing two current pages is the
86
+ * bug, and answering with the first would hide it.
87
+ */
88
+ getCurrent(): Promise<string | null>;
89
+ /** Click the first crumb with this text. Throws when nothing matched, or when it is the current page. */
90
+ clickItem(text: string | RegExp): Promise<void>;
91
+ }
92
+ export type { WrBreadcrumbsHarnessFilters, WrBreadcrumbsItemHarnessFilters };
@@ -0,0 +1,51 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ /** Narrows which `<wr-burger>` a harness query matches. */
3
+ interface WrBurgerHarnessFilters extends BaseHarnessFilters {
4
+ /** Match the button's accessible name: a string is an exact match, a RegExp is tested. */
5
+ readonly label?: string | RegExp;
6
+ /** Match only open (`true`) or only closed (`false`) toggles, as the button announces it. */
7
+ readonly open?: boolean;
8
+ /** Match only enabled (`false`) or only disabled (`true`) toggles. */
9
+ readonly disabled?: boolean;
10
+ }
11
+ /**
12
+ * Test harness for `<wr-burger>`, the animated menu toggle.
13
+ *
14
+ * Open and closed are read from the button's `aria-expanded`, not from the
15
+ * `wr-burger--opened` modifier that drives the morph: the attribute is what a
16
+ * screen reader is told. The morph itself is a CSS tween, which a unit test has
17
+ * no way to see, so nothing here asks about it.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const burger = await loader.getHarness(WrBurgerHarness);
22
+ *
23
+ * await burger.open();
24
+ * expect(await burger.isOpen()).toBe(true);
25
+ * ```
26
+ *
27
+ * @see https://ngwr.dev/guides/testing
28
+ */
29
+ export declare class WrBurgerHarness extends ComponentHarness {
30
+ static hostSelector: string;
31
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
32
+ static with(options?: WrBurgerHarnessFilters): HarnessPredicate<WrBurgerHarness>;
33
+ private readonly button;
34
+ /** The button's accessible name (`label`, else the `burger.label` catalog entry). */
35
+ getLabel(): Promise<string | null>;
36
+ /** Whether the toggle is open, from the button's `aria-expanded`. */
37
+ isOpen(): Promise<boolean>;
38
+ /** Whether the button refuses interaction, from its own `disabled` property. */
39
+ isDisabled(): Promise<boolean>;
40
+ /** Click the button. A disabled toggle ignores it: assert, or use {@link open} / {@link close}. */
41
+ toggle(): Promise<void>;
42
+ /** Open the toggle. An already-open one is left alone; a disabled one throws. */
43
+ open(): Promise<void>;
44
+ /** Close the toggle. An already-closed one is left alone; a disabled one throws. */
45
+ close(): Promise<void>;
46
+ /** Move keyboard focus to the button. */
47
+ focus(): Promise<void>;
48
+ /** Whether the button holds focus. */
49
+ isFocused(): Promise<boolean>;
50
+ }
51
+ export type { WrBurgerHarnessFilters };
@@ -1,5 +1,5 @@
1
1
  import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
- import { WrCalendarMode } from "ngwr/calendar";
2
+ import { WrCalendarGranularity, WrCalendarMode } from "ngwr/calendar";
3
3
  /**
4
4
  * An arrow key, by the direction a user would say out loud — the parameter type
5
5
  * of `WrCalendarHarness.pressArrow`, exported so a consumer's own test helper can
@@ -7,10 +7,10 @@ import { WrCalendarMode } from "ngwr/calendar";
7
7
  */
8
8
  type WrCalendarArrowKey = 'left' | 'right' | 'up' | 'down';
9
9
  /** Which of the three sub-views the calendar is showing. */
10
- type WrCalendarView = 'day' | 'month' | 'year';
10
+ type WrCalendarView = 'day' | 'month' | 'quarter' | 'year';
11
11
  /** One month or year chip, as the picker views render them. */
12
12
  interface WrCalendarChip {
13
- /** The label as printed — a short month name, or the year. */
13
+ /** The label as printed: a short month name, a quarter (`Q1`), or the year. */
14
14
  readonly label: string;
15
15
  /** Whether it is the current selection. */
16
16
  readonly selected: boolean;
@@ -123,7 +123,9 @@ export declare class WrCalendarDayHarness extends ComponentHarness {
123
123
  *
124
124
  * **It is three views behind one header.** Clicking the header label walks
125
125
  * `day → month → year`, and each view renders something different: a
126
- * `role="grid"` of day cells, or a `role="listbox"` of chips. Every day method
126
+ * `role="grid"` of day cells, or a `role="listbox"` of chips. Under a
127
+ * `granularity` the calendar opens on the view that granularity picks from, and
128
+ * `quarter` is a fourth view only `granularity="quarter"` reaches. Every day method
127
129
  * throws off the day view rather than answering `[]`, which would read as "this
128
130
  * month has no days".
129
131
  *
@@ -161,8 +163,15 @@ export declare class WrCalendarHarness extends ComponentHarness {
161
163
  getView(): Promise<WrCalendarView>;
162
164
  /** Single- or range-selection, from the host modifier. */
163
165
  getMode(): Promise<WrCalendarMode>;
166
+ /**
167
+ * What one pick names, from the host modifier: a day unless `granularity` says
168
+ * a week, a month, a quarter or a year.
169
+ */
170
+ getGranularity(): Promise<WrCalendarGranularity>;
164
171
  /** Whether the whole calendar refuses interaction. */
165
172
  isDisabled(): Promise<boolean>;
173
+ /** Whether the calendar is read-only: still browsable, but a day click picks nothing. */
174
+ isReadonly(): Promise<boolean>;
166
175
  /** The header text — `March 2026`, `2026`, or `2016 – 2027` depending on the view. */
167
176
  getHeaderLabel(): Promise<string>;
168
177
  /**
@@ -220,11 +229,14 @@ export declare class WrCalendarHarness extends ComponentHarness {
220
229
  getActiveDayNumber(): Promise<number | null>;
221
230
  /** The month chips, with their state. Throws off the month view. */
222
231
  getMonths(): Promise<WrCalendarChip[]>;
232
+ /** The quarter chips, with their state. Throws off the quarter view, which only `granularity="quarter"` has. */
233
+ getQuarters(): Promise<WrCalendarChip[]>;
223
234
  /** The year chips, with their state. Throws off the year view. */
224
235
  getYears(): Promise<WrCalendarChip[]>;
225
236
  /**
226
- * Click a month or year chip by its printed label — which drops the calendar back
227
- * one view, the way clicking the header climbed up.
237
+ * Click a month, quarter or year chip by its printed label, which drops the
238
+ * calendar back one view, the way clicking the header climbed up. Where the chip
239
+ * is what `granularity` picks, the click is the pick and the view stays.
228
240
  *
229
241
  * Throws on the day view, where there are no chips, and on a label the view does
230
242
  * not offer, naming what it does.