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
@@ -8,10 +8,15 @@ interface WrPopoverHarnessFilters extends BaseHarnessFilters {
8
8
  * exact match, a RegExp is tested.
9
9
  */
10
10
  readonly triggerText?: string | RegExp;
11
- /** Match only popovers (`'popover'`) or only tooltips (`'tooltip'`). */
11
+ /**
12
+ * Match only popovers (`'popover'`) or only tooltips (`'tooltip'`). A disabled
13
+ * trigger publishes no ARIA to tell them apart by, so it matches neither.
14
+ */
12
15
  readonly mode?: 'popover' | 'tooltip';
13
16
  /** Match only showing (`true`) or only hidden (`false`) panels. */
14
17
  readonly open?: boolean;
18
+ /** Match only disabled (`true`) or only enabled (`false`) triggers. */
19
+ readonly disabled?: boolean;
15
20
  }
16
21
  /**
17
22
  * Test harness for `[wrPopover]` — both shapes the one directive ships:
@@ -72,10 +77,21 @@ export declare class WrPopoverHarness extends ContentContainerComponentHarness {
72
77
  * never reaches the DOM, while `aria-haspopup="dialog"` is on every popover
73
78
  * trigger and on no tooltip trigger — a tooltip is a description of the
74
79
  * control, not a popup it owns.
80
+ *
81
+ * Throws on a disabled trigger: `wrPopoverDisabled` withdraws that ARIA from
82
+ * both shapes, and answering `'tooltip'` for a disabled popover would be a
83
+ * guess.
75
84
  */
76
85
  getMode(): Promise<'popover' | 'tooltip'>;
77
86
  /** The trigger's own visible text. The panel's content is `getContentText()`. */
78
87
  getTriggerText(): Promise<string>;
88
+ /**
89
+ * Whether `wrPopoverDisabled` has turned the trigger off — read from
90
+ * `wr-popover-trigger--disabled`, the one mark a disabled trigger carries.
91
+ * The HOST's own `disabled` is another question: the directive never sets it,
92
+ * so ask the host's harness (`WrButtonHarness.isDisabled()`).
93
+ */
94
+ isDisabled(): Promise<boolean>;
79
95
  /**
80
96
  * Whether the panel is showing.
81
97
  *
@@ -101,7 +117,8 @@ export declare class WrPopoverHarness extends ContentContainerComponentHarness {
101
117
  * `FocusMonitor`'s to grant (see {@link focus}).
102
118
  *
103
119
  * Throws when nothing appears: a tooltip with an empty string never opens, and
104
- * a spec on fake timers has to advance the clock itself.
120
+ * a spec on fake timers has to advance the clock itself. Throws at once on a
121
+ * disabled trigger, which no gesture opens.
105
122
  */
106
123
  open(timeout?: number): Promise<void>;
107
124
  /**
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import { Signal, TemplateRef } from "@angular/core";
3
3
  import { WrClassInput } from "ngwr/utils";
4
4
  import { ConnectedPosition } from "@angular/cdk/overlay";
5
+ import { WrAnchoredPosition } from "ngwr/overlay";
5
6
  /**
6
7
  * What a chart's hover tooltip says about one section.
7
8
  *
@@ -93,7 +94,8 @@ interface WrChartTooltip {
93
94
  */
94
95
  leave(event?: MouseEvent): void;
95
96
  }
96
- type WrPopoverPosition = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
97
+ /** Where the popover sits relative to its trigger. */
98
+ type WrPopoverPosition = WrAnchoredPosition;
97
99
  /**
98
100
  * A hover tooltip for a chart's sections, with ONE overlay per chart.
99
101
  *
@@ -189,7 +191,7 @@ export declare class WrPopover {
189
191
  */
190
192
  readonly trigger: import("@angular/core").InputSignal<"click" | "hover">;
191
193
  /** Anchor side. @default 'bottom' for popover, 'top' for tooltip */
192
- readonly position: import("@angular/core").InputSignal<WrPopoverPosition | null>;
194
+ readonly position: import("@angular/core").InputSignal<import("ngwr/overlay").WrAnchoredPosition | null>;
193
195
  /** Tooltip only — delay before showing, in ms. @default 120 */
194
196
  readonly showDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
195
197
  /** Tooltip only — delay before hiding, in ms. @default 60 */
@@ -207,6 +209,18 @@ export declare class WrPopover {
207
209
  * @default null
208
210
  */
209
211
  readonly origin: import("@angular/core").InputSignal<HTMLElement | null>;
212
+ /**
213
+ * Turns the trigger off: no hover, focus, click or key opens the panel,
214
+ * `open()` and `toggle()` do nothing, and an open panel closes. The host
215
+ * publishes no popup ARIA meanwhile and carries `wr-popover-trigger--disabled`.
216
+ *
217
+ * The host's own `disabled` stays yours: the directive never sets it, so a
218
+ * button keeps working as a button. Typical use is a tooltip that only shows
219
+ * for truncated text.
220
+ *
221
+ * @default false
222
+ */
223
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, any>;
210
224
  /**
211
225
  * Popover mode only — accessible name of the panel. `role="dialog"` with no
212
226
  * name announces as a bare "dialog", so the catalog's `popover.label` is used
@@ -262,6 +276,7 @@ export declare class WrPopover {
262
276
  private showTimer;
263
277
  private hideTimer;
264
278
  constructor();
279
+ /** Open the panel. Does nothing while the trigger is disabled. */
265
280
  open(): void;
266
281
  close(): void;
267
282
  /**
@@ -426,6 +441,11 @@ export declare class WrPopover {
426
441
  "required": false;
427
442
  "isSignal": true;
428
443
  };
444
+ "disabled": {
445
+ "alias": "wrPopoverDisabled";
446
+ "required": false;
447
+ "isSignal": true;
448
+ };
429
449
  "ariaLabel": {
430
450
  "alias": "ariaLabel";
431
451
  "required": false;
@@ -1,4 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
+ /** Size of a `<wr-progress>`. */
3
+ type WrProgressSize = 'sm' | 'md' | 'lg';
2
4
  /**
3
5
  * Horizontal progress bar.
4
6
  *
@@ -6,6 +8,7 @@ import * as i0 from "@angular/core";
6
8
  * ```html
7
9
  * <wr-progress [value]="42" />
8
10
  * <wr-progress color="success" [value]="80" />
11
+ * <wr-progress indeterminate />
9
12
  * ```
10
13
  *
11
14
  * @see https://ngwr.dev/reference/components/progress
@@ -21,12 +24,26 @@ export declare class WrProgress {
21
24
  * @default 'primary'
22
25
  */
23
26
  readonly color: import("@angular/core").InputSignal<"success" | "info" | "warning" | "danger" | "primary">;
27
+ /**
28
+ * Bar thickness: 4px, 8px or 12px, through `--wr-progress-height`.
29
+ *
30
+ * @default 'md'
31
+ */
32
+ readonly size: import("@angular/core").InputSignal<WrProgressSize>;
24
33
  /**
25
34
  * Progress value, clamped to `[0, 100]`.
26
35
  *
27
36
  * @default 0
28
37
  */
29
38
  readonly value: import("@angular/core").InputSignalWithTransform<number, unknown>;
39
+ /**
40
+ * Show that work is running without saying how far it has got: the bar sweeps,
41
+ * `value` is ignored and `aria-valuenow` is left off, which is how a
42
+ * progressbar says its value is unknown.
43
+ *
44
+ * @default false
45
+ */
46
+ readonly indeterminate: import("@angular/core").InputSignalWithTransform<boolean, any>;
30
47
  protected readonly clamped: import("@angular/core").Signal<number>;
31
48
  protected readonly classes: import("@angular/core").Signal<string>;
32
49
  static ɵfac: i0.ɵɵFactoryDeclaration<WrProgress, never>;
@@ -41,10 +58,21 @@ export declare class WrProgress {
41
58
  "required": false;
42
59
  "isSignal": true;
43
60
  };
61
+ "size": {
62
+ "alias": "size";
63
+ "required": false;
64
+ "isSignal": true;
65
+ };
44
66
  "value": {
45
67
  "alias": "value";
46
68
  "required": false;
47
69
  "isSignal": true;
48
70
  };
71
+ "indeterminate": {
72
+ "alias": "indeterminate";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
49
76
  }, {}, never, never, true, never>;
50
- }
77
+ }
78
+ export type { WrProgressSize };
@@ -0,0 +1,83 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ /** Narrows which `<wr-pull-to-refresh>` a harness query matches. */
3
+ interface WrPullToRefreshHarnessFilters extends BaseHarnessFilters {
4
+ /** Match only wrappers that are (`true`) or are not (`false`) showing a refresh in flight. */
5
+ readonly refreshing?: boolean;
6
+ }
7
+ /**
8
+ * Test harness for `<wr-pull-to-refresh>`.
9
+ *
10
+ * The component is a controlled spinner: a pull only fires `(refresh)`, and the
11
+ * indicator stays open while the host binds `refreshing`. So {@link pull}
12
+ * proves the gesture reached the handler, and {@link isRefreshing} proves the
13
+ * handler set the flag. A spec that wants both asserts both.
14
+ *
15
+ * The gesture is sent as `touchstart`, `touchmove` and `touchend` events
16
+ * carrying the one field the component reads, a `touches` list with a
17
+ * `clientY`. That is what a unit test can send; the feel of the rubber band
18
+ * needs a device. A pull starts only while the wrapper is scrolled to its top,
19
+ * which is where every element is in a test with no layout.
20
+ *
21
+ * There is no `isDisabled()`: `disabled` writes nothing to the page. Pull, and
22
+ * read what happened.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const list = await loader.getHarness(WrPullToRefreshHarness);
27
+ *
28
+ * await list.pull();
29
+ * expect(reload).toHaveBeenCalledOnce();
30
+ * expect(await list.isRefreshing()).toBe(true);
31
+ * ```
32
+ *
33
+ * @see https://ngwr.dev/guides/testing
34
+ */
35
+ export declare class WrPullToRefreshHarness extends ComponentHarness {
36
+ static hostSelector: string;
37
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
38
+ static with(options?: WrPullToRefreshHarnessFilters): HarnessPredicate<WrPullToRefreshHarness>;
39
+ private readonly indicator;
40
+ /**
41
+ * Whether a refresh is in flight: the indicator is drawn while no finger is
42
+ * on the wrapper. At rest the component closes the indicator unless
43
+ * `refreshing` holds it open, so the two together mean the bound flag is set.
44
+ */
45
+ isRefreshing(): Promise<boolean>;
46
+ /** Whether a pull is under way, from the host losing its `wr-pull-to-refresh--animating` modifier. */
47
+ isPulling(): Promise<boolean>;
48
+ /**
49
+ * How far the indicator is open, in pixels, from the height the component
50
+ * wrote on it: `0` when it is closed.
51
+ */
52
+ getPullDistance(): Promise<number>;
53
+ /**
54
+ * Whether a pull under way has reached the threshold, so letting go would
55
+ * refresh. Read from the spinner's opacity, which the component writes as the
56
+ * pull's progress and which reaches `1` at the threshold. `false` with no
57
+ * finger down: a refresh in flight holds the spinner at full opacity too.
58
+ */
59
+ isArmed(): Promise<boolean>;
60
+ /** The projected content, trimmed. */
61
+ getContentText(): Promise<string>;
62
+ /**
63
+ * Put a finger down at the top and drag it `travel` pixels down, without
64
+ * letting go. The indicator opens by half the travel. Follow with
65
+ * {@link release} or {@link cancel}.
66
+ */
67
+ pullBy(travel: number): Promise<void>;
68
+ /** Lift the finger. An armed pull fires `(refresh)`; a shorter one closes. */
69
+ release(): Promise<void>;
70
+ /** Abandon the pull the way the system does (`touchcancel`): nothing refreshes. */
71
+ cancel(): Promise<void>;
72
+ /**
73
+ * A whole pull: drag down until the indicator arms, then let go, which fires
74
+ * `(refresh)` once.
75
+ *
76
+ * The `threshold` is not on the page, so the drag lengthens until the
77
+ * component says it is armed. Throws when it never does, which is what a
78
+ * disabled wrapper, one already refreshing and one scrolled away from its top
79
+ * all do.
80
+ */
81
+ pull(): Promise<void>;
82
+ }
83
+ export type { WrPullToRefreshHarnessFilters };
@@ -0,0 +1,116 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ import { WrResizableEdge } from "ngwr/resizable";
3
+ /** Narrows which `[wrResizable]` element a harness query matches. */
4
+ interface WrResizableHarnessFilters extends BaseHarnessFilters {
5
+ /** Match the handle's accessible name: a string is an exact match, a RegExp is tested. */
6
+ readonly label?: string | RegExp;
7
+ /** Match the edge that drags. */
8
+ readonly edge?: WrResizableEdge;
9
+ /** Match only enabled (`false`) or only disabled (`true`) elements. */
10
+ readonly disabled?: boolean;
11
+ /** Match only collapsed (`true`) or only shown (`false`) elements. */
12
+ readonly collapsed?: boolean;
13
+ }
14
+ /**
15
+ * Test harness for an element carrying `[wrResizable]`.
16
+ *
17
+ * The directive adds its handle after the first render in a browser, so the
18
+ * harness finds none on the server or before the fixture has rendered.
19
+ *
20
+ * Two sizes, and they are two questions. {@link getSize} is the pixel size the
21
+ * directive wrote on the element, `null` until something set one.
22
+ * {@link getAnnouncedSize} is what the handle tells a screen reader, which
23
+ * falls back to the element's measured size, and a unit test measures `0`.
24
+ *
25
+ * Sizes are written with the keyboard. There is no `dragBy()`: a drag also
26
+ * works from pointer coordinates alone, but it needs pointer capture, which
27
+ * jsdom does not implement, so the method would throw in the one environment
28
+ * most specs run in. A percentage limit resolves against the parent's measured
29
+ * size, so in a unit test `maxSize="60%"` limits nothing: bind pixels there.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const panel = await loader.getHarness(WrResizableHarness);
34
+ *
35
+ * await panel.resizeBy(40);
36
+ * expect(await panel.getSize()).toBe(360);
37
+ * ```
38
+ *
39
+ * @see https://ngwr.dev/guides/testing
40
+ */
41
+ export declare class WrResizableHarness extends ComponentHarness {
42
+ static hostSelector: string;
43
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
44
+ static with(options?: WrResizableHarnessFilters): HarnessPredicate<WrResizableHarness>;
45
+ /**
46
+ * The edge that drags, from the host's `wr-resizable--<edge>` modifier.
47
+ * Throws when the host carries none: the directive always writes one.
48
+ */
49
+ getEdge(): Promise<WrResizableEdge>;
50
+ /**
51
+ * The size the directive wrote on the element, in pixels: its inline
52
+ * `width` for the `start` and `end` edges, its `height` for `top` and
53
+ * `bottom`. `null` while the element still has the size its CSS gives it,
54
+ * and `0` while collapsed.
55
+ */
56
+ getSize(): Promise<number | null>;
57
+ /**
58
+ * The size the handle announces (`aria-valuenow`), in whole pixels, or
59
+ * `null` when it announces none. Without a size set this is the element's
60
+ * measured size, which a test with no layout reports as `0`.
61
+ */
62
+ getAnnouncedSize(): Promise<number | null>;
63
+ /** The smallest size, in pixels, from `aria-valuemin`. */
64
+ getMinSize(): Promise<number | null>;
65
+ /** The largest size, in pixels, from `aria-valuemax`: `null` when there is no maximum. */
66
+ getMaxSize(): Promise<number | null>;
67
+ /** The handle's accessible name. */
68
+ getLabel(): Promise<string | null>;
69
+ /** Whether `disabled` is set, from the host's `wr-resizable--disabled` modifier. */
70
+ isDisabled(): Promise<boolean>;
71
+ /** Whether the element is collapsed to zero, from the host's `wr-resizable--collapsed` modifier. */
72
+ isCollapsed(): Promise<boolean>;
73
+ /**
74
+ * Whether the handle takes the keyboard: it is neither disabled nor
75
+ * collapsed. Read from what the handle says, `aria-disabled` and its
76
+ * `tabindex` together, since a handle that is announced inert and still a
77
+ * tab stop is the bug.
78
+ */
79
+ isHandleActive(): Promise<boolean>;
80
+ /** Move keyboard focus to the handle. */
81
+ focus(): Promise<void>;
82
+ /** Whether the handle holds focus. */
83
+ isFocused(): Promise<boolean>;
84
+ /**
85
+ * Grow (`px > 0`) or shrink (`px < 0`) the element by pressing the arrow
86
+ * keys on its handle, one `step` a press.
87
+ *
88
+ * Which arrow grows depends on the edge and on the reading direction, which a
89
+ * harness cannot read, so the walk watches where each press lands and turns
90
+ * around when the first one went the wrong way. That costs two extra
91
+ * `sizeChange` emissions under `dir="rtl"`.
92
+ *
93
+ * Throws rather than half-arriving, with where the size stopped: when `px`
94
+ * is not a multiple of `step`, when a limit is in the way, and when the
95
+ * handle is disabled or collapsed.
96
+ */
97
+ resizeBy(px: number): Promise<void>;
98
+ /** Press Home: the element goes to its smallest size. */
99
+ resizeToMin(): Promise<void>;
100
+ /**
101
+ * Press End: the element goes to its largest size. Throws when it has no
102
+ * maximum, where the key has nowhere to go and the component ignores it.
103
+ */
104
+ resizeToMax(): Promise<void>;
105
+ /** Press Enter: the size goes back to `defaultSize`, or to what the element started with. */
106
+ reset(): Promise<void>;
107
+ /**
108
+ * The directive appends its handle as the host's last child, so a resizable
109
+ * nested inside this one has its handle earlier in the document: the last
110
+ * match is this element's own.
111
+ */
112
+ private handle;
113
+ private isInline;
114
+ private numeric;
115
+ }
116
+ export type { WrResizableHarnessFilters };
@@ -0,0 +1,260 @@
1
+ import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ import { WrSegmentedHarness } from "ngwr/segmented/testing";
3
+ import { WrTextareaHarness } from "ngwr/textarea/testing";
4
+ import { WrSelectHarness } from "ngwr/select/testing";
5
+ import { WrCheckboxHarness } from "ngwr/checkbox/testing";
6
+ import { WrDatePickerHarness, WrDateRangePickerHarness } from "ngwr/date-picker/testing";
7
+ import { WrFileUploadHarness } from "ngwr/file-upload/testing";
8
+ import { WrInputHarness } from "ngwr/input/testing";
9
+ import { WrInputNumberHarness } from "ngwr/input-number/testing";
10
+ import { WrRadioGroupHarness } from "ngwr/radio/testing";
11
+ import { WrRatingHarness } from "ngwr/rating/testing";
12
+ import { WrSliderHarness } from "ngwr/slider/testing";
13
+ import { WrSwitchHarness } from "ngwr/switch/testing";
14
+ import { WrFormFieldHarness } from "ngwr/form/testing";
15
+ /**
16
+ * The harness of the control each field kind draws. `array` is absent: a
17
+ * repeating group draws no control of its own, and `WrSchemaFormArrayHarness`
18
+ * drives it.
19
+ */
20
+ interface WrSchemaFormControlHarnesses {
21
+ readonly input: WrInputHarness;
22
+ readonly textarea: WrTextareaHarness;
23
+ readonly number: WrInputNumberHarness;
24
+ readonly select: WrSelectHarness;
25
+ readonly multiselect: WrSelectHarness;
26
+ readonly tags: WrSelectHarness;
27
+ readonly checkbox: WrCheckboxHarness;
28
+ readonly switch: WrSwitchHarness;
29
+ readonly radio: WrRadioGroupHarness;
30
+ readonly segmented: WrSegmentedHarness;
31
+ readonly date: WrDatePickerHarness;
32
+ readonly daterange: WrDateRangePickerHarness;
33
+ readonly slider: WrSliderHarness;
34
+ readonly rating: WrRatingHarness;
35
+ readonly file: WrFileUploadHarness;
36
+ }
37
+ /** A field kind that draws a control: every `WrFieldKind` but `array`. */
38
+ type WrSchemaFormControlKind = keyof WrSchemaFormControlHarnesses;
39
+ /** Narrows which `<wr-schema-form>` a harness query matches. */
40
+ interface WrSchemaFormHarnessFilters extends BaseHarnessFilters {
41
+ /** Match a form that draws a field with this label: a string is an exact match, a RegExp is tested. */
42
+ readonly fieldLabel?: string | RegExp;
43
+ }
44
+ /** Narrows which field of a `<wr-schema-form>` a harness query matches. */
45
+ interface WrSchemaFormFieldHarnessFilters extends BaseHarnessFilters {
46
+ /** Match the field's label: a string is an exact match, a RegExp is tested. */
47
+ readonly label?: string | RegExp;
48
+ /** Match the kind of control the field draws. */
49
+ readonly kind?: WrSchemaFormControlKind;
50
+ /** Match only fields showing an error (`true`) or only fields showing none (`false`). */
51
+ readonly invalid?: boolean;
52
+ }
53
+ /** Narrows which section of a `<wr-schema-form>` a harness query matches. */
54
+ interface WrSchemaFormSectionHarnessFilters extends BaseHarnessFilters {
55
+ /** Match the section's title: a string is an exact match, a RegExp is tested. */
56
+ readonly title?: string | RegExp;
57
+ }
58
+ /** Narrows which repeating group of a `<wr-schema-form>` a harness query matches. */
59
+ interface WrSchemaFormArrayHarnessFilters extends BaseHarnessFilters {
60
+ /** Match the group's label: a string is an exact match, a RegExp is tested. */
61
+ readonly label?: string | RegExp;
62
+ }
63
+ /**
64
+ * Test harness for one field of a `<wr-schema-form>`: its label, its control
65
+ * and its errors.
66
+ *
67
+ * It answers nothing about the control itself. {@link getControl} hands back
68
+ * the harness that control already has, `WrSelectHarness` for a select and so
69
+ * on, and {@link getFormField} the `WrFormFieldHarness` around it, so a value
70
+ * is read and written in one place.
71
+ *
72
+ * @see https://ngwr.dev/guides/testing
73
+ */
74
+ export declare class WrSchemaFormFieldHarness extends ComponentHarness {
75
+ static hostSelector: string;
76
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
77
+ static with(options?: WrSchemaFormFieldHarnessFilters): HarnessPredicate<WrSchemaFormFieldHarness>;
78
+ private readonly formField;
79
+ /**
80
+ * The field's label: the one above the control, or, for a checkbox and a
81
+ * switch, the one they carry inside themselves.
82
+ */
83
+ getLabel(): Promise<string>;
84
+ /** The kind of control the field draws, from the element in it. */
85
+ getKind(): Promise<WrSchemaFormControlKind>;
86
+ /**
87
+ * The harness of the field's control. Name the kind and the result is typed:
88
+ * `getControl('select')` is a `WrSelectHarness`. Throws when the field draws
89
+ * another kind, and says which.
90
+ */
91
+ getControl<K extends WrSchemaFormControlKind>(kind: K): Promise<WrSchemaFormControlHarnesses[K]>;
92
+ /** The `<wr-form-field>` around the control: label wiring, hint, required mark and errors. */
93
+ getFormField(): Promise<WrFormFieldHarness>;
94
+ /** The hint under the control, or `null`. */
95
+ getHint(): Promise<string | null>;
96
+ /** Whether the field is marked required. */
97
+ isRequired(): Promise<boolean>;
98
+ /** Whether the field is showing an error. A field nobody touched shows none, valid or not. */
99
+ isInvalid(): Promise<boolean>;
100
+ /** The error messages the field is showing, in order. */
101
+ getErrors(): Promise<string[]>;
102
+ /**
103
+ * How many grid columns the field spans, from the `grid-column` the
104
+ * component wrote on it, already clamped to the form's `columns`.
105
+ */
106
+ getSpan(): Promise<number>;
107
+ /** The label for an error message, where a missing one must not throw a second error. */
108
+ private labelOrEmpty;
109
+ }
110
+ /**
111
+ * Test harness for one section of a `<wr-schema-form>`: the `<fieldset>` the
112
+ * fields naming one `section` are drawn in.
113
+ *
114
+ * A section whose every field the schema hides is not drawn, so it is not
115
+ * found.
116
+ *
117
+ * @see https://ngwr.dev/guides/testing
118
+ */
119
+ export declare class WrSchemaFormSectionHarness extends ComponentHarness {
120
+ static hostSelector: string;
121
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
122
+ static with(options?: WrSchemaFormSectionHarnessFilters): HarnessPredicate<WrSchemaFormSectionHarness>;
123
+ /** The section's title: the text of its `<legend>`, which is also the group's accessible name. */
124
+ getTitle(): Promise<string>;
125
+ /**
126
+ * The line under the title, or `null`. Read through the fieldset's
127
+ * `aria-describedby`, so a description the group does not announce reads as
128
+ * none.
129
+ */
130
+ getDescription(): Promise<string | null>;
131
+ /** The fields drawn in the section, in order. */
132
+ getFields(filters?: WrSchemaFormFieldHarnessFilters): Promise<WrSchemaFormFieldHarness[]>;
133
+ /** The label of every field drawn in the section, in order. */
134
+ getLabels(): Promise<string[]>;
135
+ /** The number of columns of the section's own grid, from the track list the component wrote on it. */
136
+ getColumns(): Promise<number>;
137
+ }
138
+ /**
139
+ * Test harness for `<wr-schema-form>`, the form drawn from a Signal Forms
140
+ * schema.
141
+ *
142
+ * Fields are found by LABEL, not by their key in the model. The key never
143
+ * reaches the page: the component draws `spec.label`, or the key
144
+ * de-camel-cased when there is none, and that text is also what a user and a
145
+ * screen reader find the field by.
146
+ *
147
+ * There is no `submit()`. The component renders fields and nothing else: no
148
+ * `<form>` element and no button, so submitting belongs to the page around it.
149
+ * A field hidden by the schema's `hidden()` is not drawn, so it is not found.
150
+ *
151
+ * A repeating group draws each item as a `<wr-schema-form>` of its own, inside
152
+ * this one. {@link getFields} and {@link getErrors} read everything this form
153
+ * draws, items included, so two items answer two fields labelled "City":
154
+ * {@link getItem} is the form of one item alone.
155
+ *
156
+ * @example
157
+ * ```ts
158
+ * const form = await loader.getHarness(WrSchemaFormHarness);
159
+ *
160
+ * const role = await form.getControl('Role', 'select');
161
+ * await role.selectOption({ text: 'Admin' });
162
+ * expect(await form.getErrors()).toEqual([]);
163
+ * ```
164
+ *
165
+ * @see https://ngwr.dev/guides/testing
166
+ */
167
+ export declare class WrSchemaFormHarness extends ComponentHarness {
168
+ static hostSelector: string;
169
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
170
+ static with(options?: WrSchemaFormHarnessFilters): HarnessPredicate<WrSchemaFormHarness>;
171
+ /** The fields drawn, in the order they are drawn, with the fields of a repeating group's items among them. */
172
+ getFields(filters?: WrSchemaFormFieldHarnessFilters): Promise<WrSchemaFormFieldHarness[]>;
173
+ /** The label of every field drawn, in order. */
174
+ getLabels(): Promise<string[]>;
175
+ /** The first field with this label, or a failure naming the fields that are drawn. */
176
+ getField(label: string | RegExp): Promise<WrSchemaFormFieldHarness>;
177
+ /**
178
+ * The harness of the control in the field with this label, typed by the kind
179
+ * named: `getControl('Role', 'select')` is a `WrSelectHarness`. Throws when
180
+ * the field draws another kind.
181
+ */
182
+ getControl<K extends WrSchemaFormControlKind>(label: string | RegExp, kind: K): Promise<WrSchemaFormControlHarnesses[K]>;
183
+ /** Every error message the form is showing, in the order drawn: each field's, and a repeating group's own. */
184
+ getErrors(): Promise<string[]>;
185
+ /** The sections drawn, in order. */
186
+ getSections(filters?: WrSchemaFormSectionHarnessFilters): Promise<WrSchemaFormSectionHarness[]>;
187
+ /** The first section with this title, or a failure naming the sections that are drawn. */
188
+ getSection(title: string | RegExp): Promise<WrSchemaFormSectionHarness>;
189
+ /** The repeating groups drawn, in order. */
190
+ getArrays(filters?: WrSchemaFormArrayHarnessFilters): Promise<WrSchemaFormArrayHarness[]>;
191
+ /** The first repeating group with this label, or a failure naming the groups that are drawn. */
192
+ getArray(label: string | RegExp): Promise<WrSchemaFormArrayHarness>;
193
+ /** Click Add on the repeating group with this label. Throws when it cannot take another item. */
194
+ addItem(arrayLabel: string | RegExp): Promise<void>;
195
+ /** Click Remove on one item of the repeating group with this label. Throws when it cannot be removed. */
196
+ removeItem(arrayLabel: string | RegExp, index: number): Promise<void>;
197
+ /** The number of items the repeating group with this label draws. */
198
+ getItemCount(arrayLabel: string | RegExp): Promise<number>;
199
+ /** The form of one item of the repeating group with this label: its fields, and nothing around them. */
200
+ getItem(arrayLabel: string | RegExp, index: number): Promise<WrSchemaFormHarness>;
201
+ /**
202
+ * The number of grid columns, from the track list the component wrote on the
203
+ * host.
204
+ */
205
+ getColumns(): Promise<number>;
206
+ }
207
+ /**
208
+ * Test harness for a repeating group of a `<wr-schema-form>`: a field of
209
+ * `kind: 'array'`, drawn as one group per item with an Add and a Remove
210
+ * button.
211
+ *
212
+ * Each item is a `<wr-schema-form>` of its own, so {@link getItem} hands back a
213
+ * `WrSchemaFormHarness` scoped to that item. Every query here is scoped by the
214
+ * id the group publishes, never by class: an item may hold a repeating group
215
+ * itself, and a class query would count its items too.
216
+ *
217
+ * @see https://ngwr.dev/guides/testing
218
+ */
219
+ export declare class WrSchemaFormArrayHarness extends ComponentHarness {
220
+ static hostSelector: string;
221
+ /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
222
+ static with(options?: WrSchemaFormArrayHarnessFilters): HarnessPredicate<WrSchemaFormArrayHarness>;
223
+ /** The group's label: the text of its `<legend>`, without the required marker. */
224
+ getLabel(): Promise<string>;
225
+ /** Whether the group is marked required. */
226
+ isRequired(): Promise<boolean>;
227
+ /** The number of items drawn. */
228
+ getItemCount(): Promise<number>;
229
+ /** The heading of every item, in order: "Address 1", "Address 2". */
230
+ getItemTitles(): Promise<string[]>;
231
+ /** The form of every item, in order. */
232
+ getItems(): Promise<WrSchemaFormHarness[]>;
233
+ /** The form of the item at this index, or a failure saying how many items there are. */
234
+ getItem(index: number): Promise<WrSchemaFormHarness>;
235
+ /** Whether the Add button is drawn and enabled. It is not drawn when the spec has no `item`. */
236
+ canAdd(): Promise<boolean>;
237
+ /** Whether items can be removed: `false` at the schema's `minLength`, and with no item to remove. */
238
+ canRemove(): Promise<boolean>;
239
+ /** Click Add. Throws when the button is not drawn or is disabled, where a click would do nothing. */
240
+ add(): Promise<void>;
241
+ /** Click Remove on the item at this index. Throws when there is no such item or its button is disabled. */
242
+ remove(index: number): Promise<void>;
243
+ /**
244
+ * The accessible name of the Remove button at this index, resolved through
245
+ * its `aria-labelledby`: its own text and then the item's heading.
246
+ */
247
+ getRemoveName(index: number): Promise<string>;
248
+ /** Whether the Add button holds focus, which is where it goes when the last item is removed. */
249
+ isAddFocused(): Promise<boolean>;
250
+ /**
251
+ * The group's OWN error messages, a `minLength` on the list for one. An
252
+ * item's errors are its fields', read off {@link getItem}.
253
+ */
254
+ getErrors(): Promise<string[]>;
255
+ private listId;
256
+ private list;
257
+ private addButton;
258
+ private removeButtons;
259
+ }
260
+ export type { WrSchemaFormArrayHarnessFilters, WrSchemaFormControlHarnesses, WrSchemaFormControlKind, WrSchemaFormFieldHarnessFilters, WrSchemaFormHarnessFilters, WrSchemaFormSectionHarnessFilters };