ngwr 16.2.0 → 16.4.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 (418) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/carousel/styles/_index.scss +53 -1
  4. package/cascader/styles/_rules.scss +7 -0
  5. package/color-picker/styles/_index.scss +21 -0
  6. package/date-picker/styles/_index.scss +19 -0
  7. package/dropdown/styles/_index.scss +13 -19
  8. package/fesm2022/ngwr-affix.mjs +3 -3
  9. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  10. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  11. package/fesm2022/ngwr-alert.mjs +3 -3
  12. package/fesm2022/ngwr-anchor.mjs +17 -6
  13. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  14. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  15. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  16. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  17. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  18. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  19. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  20. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  21. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  22. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  23. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  25. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  26. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  27. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  28. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  29. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  30. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  31. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  32. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  33. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  34. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  35. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  36. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  37. package/fesm2022/ngwr-avatar.mjs +3 -3
  38. package/fesm2022/ngwr-back-top.mjs +3 -3
  39. package/fesm2022/ngwr-badge.mjs +129 -11
  40. package/fesm2022/ngwr-badge.mjs.map +1 -1
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  42. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  43. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  44. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  45. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  46. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  47. package/fesm2022/ngwr-burger.mjs +3 -3
  48. package/fesm2022/ngwr-button.mjs +6 -6
  49. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  50. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  51. package/fesm2022/ngwr-calendar.mjs +500 -73
  52. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  53. package/fesm2022/ngwr-card.mjs +9 -9
  54. package/fesm2022/ngwr-carousel-testing.mjs +24 -1
  55. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  56. package/fesm2022/ngwr-carousel.mjs +73 -10
  57. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  58. package/fesm2022/ngwr-cascader.mjs +45 -37
  59. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  60. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  61. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  62. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  63. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  64. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  65. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  66. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  67. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  68. package/fesm2022/ngwr-charts-core.mjs +3 -3
  69. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  70. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  71. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  72. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  73. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  74. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  75. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  77. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  79. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  81. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  83. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  85. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  86. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  87. package/fesm2022/ngwr-checkbox.mjs +6 -6
  88. package/fesm2022/ngwr-clipboard.mjs +3 -3
  89. package/fesm2022/ngwr-collapse.mjs +9 -9
  90. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  91. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  92. package/fesm2022/ngwr-color-picker.mjs +153 -37
  93. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  94. package/fesm2022/ngwr-command-palette.mjs +3 -3
  95. package/fesm2022/ngwr-comment.mjs +10 -6
  96. package/fesm2022/ngwr-comment.mjs.map +1 -1
  97. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  98. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  99. package/fesm2022/ngwr-compare.mjs +3 -3
  100. package/fesm2022/ngwr-context-menu.mjs +28 -13
  101. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  102. package/fesm2022/ngwr-cookie.mjs +3 -3
  103. package/fesm2022/ngwr-copy-value.mjs +3 -3
  104. package/fesm2022/ngwr-counter.mjs +6 -6
  105. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  106. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  107. package/fesm2022/ngwr-date-picker.mjs +342 -69
  108. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  109. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  110. package/fesm2022/ngwr-date.mjs +59 -8
  111. package/fesm2022/ngwr-date.mjs.map +1 -1
  112. package/fesm2022/ngwr-density.mjs +6 -6
  113. package/fesm2022/ngwr-descriptions.mjs +6 -6
  114. package/fesm2022/ngwr-dialog.mjs +18 -18
  115. package/fesm2022/ngwr-directives.mjs +15 -15
  116. package/fesm2022/ngwr-divider.mjs +3 -3
  117. package/fesm2022/ngwr-drawer.mjs +51 -29
  118. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  119. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  120. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  121. package/fesm2022/ngwr-dropdown.mjs +70 -99
  122. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  123. package/fesm2022/ngwr-editor.mjs +4 -3
  124. package/fesm2022/ngwr-editor.mjs.map +1 -1
  125. package/fesm2022/ngwr-empty.mjs +3 -3
  126. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  127. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  128. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  129. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  130. package/fesm2022/ngwr-file-upload.mjs +279 -16
  131. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  132. package/fesm2022/ngwr-form.mjs +9 -9
  133. package/fesm2022/ngwr-form.mjs.map +1 -1
  134. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  135. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  136. package/fesm2022/ngwr-graph.mjs +664 -43
  137. package/fesm2022/ngwr-graph.mjs.map +1 -1
  138. package/fesm2022/ngwr-hotkey.mjs +6 -6
  139. package/fesm2022/ngwr-i18n-ar.mjs +27 -8
  140. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-cs.mjs +27 -8
  142. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-de.mjs +27 -8
  144. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-en.mjs +27 -8
  146. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-es.mjs +27 -8
  148. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-fr.mjs +27 -8
  150. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-he.mjs +27 -8
  152. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-hi.mjs +27 -8
  154. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-id.mjs +27 -8
  156. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n-it.mjs +27 -8
  158. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  159. package/fesm2022/ngwr-i18n-ja.mjs +27 -8
  160. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  161. package/fesm2022/ngwr-i18n-ko.mjs +27 -8
  162. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  163. package/fesm2022/ngwr-i18n-nl.mjs +27 -8
  164. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  165. package/fesm2022/ngwr-i18n-pl.mjs +27 -8
  166. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  167. package/fesm2022/ngwr-i18n-pt.mjs +27 -8
  168. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  169. package/fesm2022/ngwr-i18n-ru.mjs +27 -8
  170. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  171. package/fesm2022/ngwr-i18n-sv.mjs +27 -8
  172. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  173. package/fesm2022/ngwr-i18n-tr.mjs +27 -8
  174. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  175. package/fesm2022/ngwr-i18n-uk.mjs +27 -8
  176. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  177. package/fesm2022/ngwr-i18n-vi.mjs +27 -8
  178. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  179. package/fesm2022/ngwr-i18n-zh-tw.mjs +27 -8
  180. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  181. package/fesm2022/ngwr-i18n-zh.mjs +27 -8
  182. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  183. package/fesm2022/ngwr-i18n.mjs +9 -9
  184. package/fesm2022/ngwr-icon.mjs +6 -6
  185. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  186. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  187. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  188. package/fesm2022/ngwr-input-number.mjs +68 -7
  189. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  190. package/fesm2022/ngwr-input-otp.mjs +23 -3
  191. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  192. package/fesm2022/ngwr-input-testing.mjs +24 -1
  193. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  194. package/fesm2022/ngwr-input.mjs +152 -36
  195. package/fesm2022/ngwr-input.mjs.map +1 -1
  196. package/fesm2022/ngwr-keyboard.mjs +3 -3
  197. package/fesm2022/ngwr-knob.mjs +3 -3
  198. package/fesm2022/ngwr-layout.mjs +15 -15
  199. package/fesm2022/ngwr-lightbox.mjs +8 -8
  200. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  201. package/fesm2022/ngwr-list.mjs +8 -8
  202. package/fesm2022/ngwr-list.mjs.map +1 -1
  203. package/fesm2022/ngwr-load-state.mjs +15 -15
  204. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  205. package/fesm2022/ngwr-mention.mjs +6 -6
  206. package/fesm2022/ngwr-meta.mjs +6 -6
  207. package/fesm2022/ngwr-overlay.mjs +175 -13
  208. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  209. package/fesm2022/ngwr-page-header.mjs +3 -3
  210. package/fesm2022/ngwr-pagination.mjs +6 -3
  211. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  212. package/fesm2022/ngwr-pipes.mjs +31 -29
  213. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  214. package/fesm2022/ngwr-platform.mjs +9 -9
  215. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  216. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  217. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  218. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  219. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  220. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  221. package/fesm2022/ngwr-popover.mjs +58 -156
  222. package/fesm2022/ngwr-popover.mjs.map +1 -1
  223. package/fesm2022/ngwr-progress.mjs +50 -9
  224. package/fesm2022/ngwr-progress.mjs.map +1 -1
  225. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  226. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  227. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  228. package/fesm2022/ngwr-qr.mjs +3 -3
  229. package/fesm2022/ngwr-radio.mjs +6 -6
  230. package/fesm2022/ngwr-rating.mjs +3 -3
  231. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  232. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  233. package/fesm2022/ngwr-resizable.mjs +3 -3
  234. package/fesm2022/ngwr-result.mjs +12 -12
  235. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  236. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  237. package/fesm2022/ngwr-schema-form.mjs +416 -19
  238. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  239. package/fesm2022/ngwr-scroll.mjs +3 -3
  240. package/fesm2022/ngwr-segmented.mjs +3 -3
  241. package/fesm2022/ngwr-select-testing.mjs +19 -0
  242. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  243. package/fesm2022/ngwr-select.mjs +361 -84
  244. package/fesm2022/ngwr-select.mjs.map +1 -1
  245. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  246. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  247. package/fesm2022/ngwr-sidebar.mjs +3 -3
  248. package/fesm2022/ngwr-skeleton.mjs +3 -3
  249. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  250. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  251. package/fesm2022/ngwr-slider.mjs +21 -3
  252. package/fesm2022/ngwr-slider.mjs.map +1 -1
  253. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  254. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  255. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  256. package/fesm2022/ngwr-spinner.mjs +3 -3
  257. package/fesm2022/ngwr-splitter.mjs +3 -3
  258. package/fesm2022/ngwr-statistic.mjs +9 -9
  259. package/fesm2022/ngwr-stepper.mjs +42 -11
  260. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  261. package/fesm2022/ngwr-storage.mjs +3 -3
  262. package/fesm2022/ngwr-switch.mjs +3 -3
  263. package/fesm2022/ngwr-table-testing.mjs +157 -3
  264. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-table.mjs +1051 -74
  266. package/fesm2022/ngwr-table.mjs.map +1 -1
  267. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  268. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  269. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  270. package/fesm2022/ngwr-tabs.mjs +15 -10
  271. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  272. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  273. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  274. package/fesm2022/ngwr-textarea.mjs +128 -16
  275. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  276. package/fesm2022/ngwr-theme.mjs +3 -3
  277. package/fesm2022/ngwr-timeline.mjs +6 -6
  278. package/fesm2022/ngwr-toast.mjs +40 -19
  279. package/fesm2022/ngwr-toast.mjs.map +1 -1
  280. package/fesm2022/ngwr-toolbar.mjs +3 -3
  281. package/fesm2022/ngwr-tour-testing.mjs +13 -1
  282. package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tour.mjs +19 -15
  284. package/fesm2022/ngwr-tour.mjs.map +1 -1
  285. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  286. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  287. package/fesm2022/ngwr-transfer.mjs +24 -5
  288. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  289. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  290. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  291. package/fesm2022/ngwr-tree.mjs +978 -79
  292. package/fesm2022/ngwr-tree.mjs.map +1 -1
  293. package/fesm2022/ngwr-typography.mjs +3 -3
  294. package/fesm2022/ngwr-utils-router.mjs +3 -3
  295. package/fesm2022/ngwr-utils.mjs +97 -1
  296. package/fesm2022/ngwr-utils.mjs.map +1 -1
  297. package/fesm2022/ngwr-version.mjs +1 -1
  298. package/fesm2022/ngwr-version.mjs.map +1 -1
  299. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  300. package/fesm2022/ngwr-window.mjs +33 -22
  301. package/fesm2022/ngwr-window.mjs.map +1 -1
  302. package/file-upload/styles/_index.scss +156 -0
  303. package/graph/styles/_index.scss +87 -0
  304. package/i18n/ar.json +29 -8
  305. package/i18n/cs.json +29 -8
  306. package/i18n/de.json +29 -8
  307. package/i18n/en.json +29 -8
  308. package/i18n/es.json +29 -8
  309. package/i18n/fr.json +29 -8
  310. package/i18n/he.json +29 -8
  311. package/i18n/hi.json +29 -8
  312. package/i18n/id.json +29 -8
  313. package/i18n/it.json +29 -8
  314. package/i18n/ja.json +29 -8
  315. package/i18n/ko.json +29 -8
  316. package/i18n/nl.json +29 -8
  317. package/i18n/pl.json +29 -8
  318. package/i18n/pt.json +29 -8
  319. package/i18n/ru.json +29 -8
  320. package/i18n/sv.json +29 -8
  321. package/i18n/tr.json +29 -8
  322. package/i18n/uk.json +29 -8
  323. package/i18n/vi.json +29 -8
  324. package/i18n/zh-TW.json +29 -8
  325. package/i18n/zh.json +29 -8
  326. package/input/styles/_index.scss +68 -1
  327. package/input-otp/styles/_index.scss +14 -0
  328. package/llms-full.txt +53 -21
  329. package/llms.txt +57 -24
  330. package/overlay/styles/_arrow.scss +4 -4
  331. package/package.json +33 -1
  332. package/popconfirm/styles/_index.scss +3 -11
  333. package/progress/styles/_index.scss +32 -0
  334. package/schema-form/styles/_index.scss +78 -0
  335. package/schematics/collection.json +5 -0
  336. package/schematics/eject/index.js +158 -0
  337. package/schematics/eject/schema.js +8 -0
  338. package/schematics/eject/schema.json +24 -0
  339. package/schematics/eject/source.js +295 -0
  340. package/schematics/use/rule.js +2 -0
  341. package/schematics/use/symbol-map.json +5 -0
  342. package/select/styles/_index.scss +127 -22
  343. package/skills/ngwr/SKILL.md +31 -4
  344. package/skills/ngwr/references/catalog.md +9 -1
  345. package/slider/styles/_index.scss +22 -0
  346. package/table/styles/_index.scss +191 -3
  347. package/textarea/styles/_index.scss +80 -0
  348. package/theme/styles/_focus.scss +16 -1
  349. package/theme/styles/_motion.scss +5 -0
  350. package/transfer/styles/_index.scss +84 -0
  351. package/tree/styles/_index.scss +138 -5
  352. package/types/ngwr-alert-testing.d.ts +88 -0
  353. package/types/ngwr-badge.d.ts +72 -2
  354. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  355. package/types/ngwr-burger-testing.d.ts +51 -0
  356. package/types/ngwr-calendar-testing.d.ts +18 -6
  357. package/types/ngwr-calendar.d.ts +272 -22
  358. package/types/ngwr-carousel-testing.d.ts +27 -6
  359. package/types/ngwr-carousel.d.ts +42 -6
  360. package/types/ngwr-cascader.d.ts +13 -6
  361. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  362. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  363. package/types/ngwr-charts-line-chart.d.ts +7 -4
  364. package/types/ngwr-color-picker-testing.d.ts +15 -4
  365. package/types/ngwr-color-picker.d.ts +76 -6
  366. package/types/ngwr-compare-testing.d.ts +72 -0
  367. package/types/ngwr-context-menu.d.ts +2 -0
  368. package/types/ngwr-date-picker-testing.d.ts +23 -8
  369. package/types/ngwr-date-picker.d.ts +100 -9
  370. package/types/ngwr-date.d.ts +71 -1
  371. package/types/ngwr-drawer.d.ts +9 -0
  372. package/types/ngwr-dropdown-testing.d.ts +20 -0
  373. package/types/ngwr-dropdown.d.ts +26 -6
  374. package/types/ngwr-event-calendar.d.ts +66 -8
  375. package/types/ngwr-file-upload-testing.d.ts +31 -2
  376. package/types/ngwr-file-upload.d.ts +156 -3
  377. package/types/ngwr-form.d.ts +47 -3
  378. package/types/ngwr-graph-testing.d.ts +36 -3
  379. package/types/ngwr-graph.d.ts +309 -13
  380. package/types/ngwr-input-number-testing.d.ts +10 -0
  381. package/types/ngwr-input-number.d.ts +30 -1
  382. package/types/ngwr-input-otp.d.ts +10 -0
  383. package/types/ngwr-input-testing.d.ts +30 -0
  384. package/types/ngwr-input.d.ts +54 -3
  385. package/types/ngwr-overlay.d.ts +84 -5
  386. package/types/ngwr-pipes.d.ts +2 -1
  387. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  388. package/types/ngwr-popconfirm.d.ts +28 -3
  389. package/types/ngwr-popover-testing.d.ts +19 -2
  390. package/types/ngwr-popover.d.ts +22 -2
  391. package/types/ngwr-progress.d.ts +29 -1
  392. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  393. package/types/ngwr-resizable-testing.d.ts +116 -0
  394. package/types/ngwr-schema-form-testing.d.ts +260 -0
  395. package/types/ngwr-schema-form.d.ts +76 -6
  396. package/types/ngwr-select-testing.d.ts +20 -0
  397. package/types/ngwr-select.d.ts +149 -11
  398. package/types/ngwr-sidebar-testing.d.ts +176 -0
  399. package/types/ngwr-slider-testing.d.ts +3 -1
  400. package/types/ngwr-slider.d.ts +21 -1
  401. package/types/ngwr-sortable-list.d.ts +6 -0
  402. package/types/ngwr-stepper.d.ts +20 -11
  403. package/types/ngwr-table-testing.d.ts +122 -7
  404. package/types/ngwr-table.d.ts +572 -50
  405. package/types/ngwr-tabs-testing.d.ts +14 -17
  406. package/types/ngwr-tabs.d.ts +6 -0
  407. package/types/ngwr-textarea-testing.d.ts +10 -0
  408. package/types/ngwr-textarea.d.ts +48 -2
  409. package/types/ngwr-toast.d.ts +8 -1
  410. package/types/ngwr-tour-testing.d.ts +10 -0
  411. package/types/ngwr-tour.d.ts +11 -2
  412. package/types/ngwr-transfer-testing.d.ts +3 -0
  413. package/types/ngwr-transfer.d.ts +24 -1
  414. package/types/ngwr-tree-testing.d.ts +65 -1
  415. package/types/ngwr-tree.d.ts +335 -12
  416. package/types/ngwr-utils.d.ts +107 -1
  417. package/types/ngwr-version.d.ts +1 -1
  418. package/types/ngwr-window.d.ts +7 -4
@@ -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 };
@@ -1,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ import { Signal } from "@angular/core";
2
3
  import { Field, FieldTree } from "@angular/forms/signals";
3
4
  import { WrFieldSpec } from "ngwr/form";
4
5
  /** One field the template draws, resolved once per schema change. */
@@ -14,8 +15,29 @@ interface WrRenderedField {
14
15
  * template is re-run on every pass, and this is decided once per schema.
15
16
  */
16
17
  readonly labelAbove: string;
17
- /** `grid-column`, already clamped to the form's own `columns`. */
18
+ /** `grid-column`, already clamped to the columns of the grid the field sits on. */
18
19
  readonly column: string;
20
+ /** DOM id prefix for the parts of an `array` field. */
21
+ readonly id: string;
22
+ /** The item fields of an `array`, in order. Empty for every other kind. */
23
+ readonly items: Signal<readonly FieldTree<object>[]>;
24
+ }
25
+ /** A run of fields drawn inside one `<fieldset>`. */
26
+ interface WrRenderedSection {
27
+ readonly id: string;
28
+ readonly title: string;
29
+ readonly description: string;
30
+ /** `grid-template-columns` of the section's own grid. */
31
+ readonly template: string;
32
+ readonly fields: WrRenderedField[];
33
+ /** False while the schema hides every field in it: an empty fieldset announces a group of nothing. */
34
+ readonly visible: Signal<boolean>;
35
+ }
36
+ /** One child of the form's grid: a field, or a section holding several. */
37
+ interface WrRenderedCell {
38
+ readonly key: string;
39
+ readonly field?: WrRenderedField;
40
+ readonly section?: WrRenderedSection;
19
41
  }
20
42
  /**
21
43
  * A form drawn from a Signal Forms schema — one `<wr-form-field>`, one control
@@ -52,8 +74,15 @@ interface WrRenderedField {
52
74
  * Re-declaring any of them here would be a second source of truth for state the
53
75
  * form already owns.
54
76
  *
55
- * **Why its own entry point rather than `ngwr/form`.** Drawing nine kinds means
56
- * depending on nine controls, and `ngwr/form` is the layout primitive every
77
+ * **A section is a spec key, a repeating group is a kind.** Fields naming the
78
+ * same `section` are drawn in one `<fieldset>` under its title. A field of
79
+ * `kind: 'array'` over an array of objects draws one group per item, each a
80
+ * `<wr-schema-form>` of its own, so the items' fields are described once with
81
+ * `applyEach`. Add and Remove write the array, and `minLength` and `maxLength`
82
+ * on it are the bounds they stop at.
83
+ *
84
+ * **Why its own entry point rather than `ngwr/form`.** Drawing every kind means
85
+ * depending on every control, and `ngwr/form` is the layout primitive every
57
86
  * form imports — folding this in would put a date picker and a slider into the
58
87
  * bundle of an app that only wanted `<wr-form-field>`.
59
88
  *
@@ -71,22 +100,53 @@ export declare class WrSchemaForm<T extends object> {
71
100
  * @default 1
72
101
  */
73
102
  readonly columns: import("@angular/core").InputSignalWithTransform<number, unknown>;
103
+ /** Text of the button that adds an item to a repeating group. Falls back to `common.add`. */
104
+ readonly addLabel: import("@angular/core").InputSignal<string | null>;
105
+ /** Text of the button that removes one item of a repeating group. Falls back to `common.remove`. */
106
+ readonly removeLabel: import("@angular/core").InputSignal<string | null>;
107
+ protected readonly resolvedAdd: Signal<string>;
108
+ protected readonly resolvedRemove: Signal<string>;
109
+ private readonly injector;
110
+ private readonly uid;
74
111
  /**
75
112
  * The track list, written as a style rather than published as a
76
113
  * `--wr-schema-form-columns` hook: `columns` always has a value, so the
77
114
  * inline style would win over any declaration a consumer wrote and the hook
78
115
  * would be one nobody could use.
79
116
  */
80
- protected readonly template: import("@angular/core").Signal<string>;
117
+ protected readonly template: Signal<string>;
81
118
  /**
82
- * The described fields, in the model's key order.
119
+ * The described fields, in the model's key order, with the fields of a
120
+ * section gathered where its first field stands.
83
121
  *
84
122
  * A field tree over an object is iterable as `[key, field]` pairs, which is
85
123
  * the whole reason this component needs no field list of its own. `isFieldTree`
86
124
  * guards the pair: a model carrying a method or a non-field property would
87
125
  * otherwise be read as a field and answer `undefined` to everything.
88
126
  */
89
- protected readonly fields: import("@angular/core").Signal<readonly WrRenderedField[]>;
127
+ protected readonly cells: Signal<readonly WrRenderedCell[]>;
128
+ /** Types the context of the cell template, which an outlet hands over untyped. */
129
+ protected rendered(field: unknown): WrRenderedField;
130
+ /** Whether a repeating group may take one more item: not past `maxLength`, and not disabled or read-only. */
131
+ protected canAdd(f: WrRenderedField): boolean;
132
+ /** Whether a repeating group may lose an item: not under `minLength`, and not disabled or read-only. */
133
+ protected canRemove(f: WrRenderedField): boolean;
134
+ /**
135
+ * What describes a repeating group: its own errors while it shows any, else
136
+ * its hint. The ids are the ones `<wr-form-field>` derives from `controlId`,
137
+ * and the condition is the one it shows errors on, so the reference never
138
+ * names an element that is not drawn.
139
+ */
140
+ protected describedBy(f: WrRenderedField): string | null;
141
+ /** Append a new item and move focus into it. */
142
+ protected add(f: WrRenderedField): void;
143
+ /**
144
+ * Remove one item. Focus goes to the item that took its place, and from the
145
+ * last one to the Add button, so it never falls back to the page.
146
+ */
147
+ protected remove(f: WrRenderedField, index: number, list: HTMLElement): void;
148
+ private write;
149
+ private focusItem;
90
150
  static ɵfac: i0.ɵɵFactoryDeclaration<WrSchemaForm<any>, never>;
91
151
  static ɵcmp: i0.ɵɵComponentDeclaration<WrSchemaForm<any>, "wr-schema-form", never, {
92
152
  "field": {
@@ -99,6 +159,16 @@ export declare class WrSchemaForm<T extends object> {
99
159
  "required": false;
100
160
  "isSignal": true;
101
161
  };
162
+ "addLabel": {
163
+ "alias": "addLabel";
164
+ "required": false;
165
+ "isSignal": true;
166
+ };
167
+ "removeLabel": {
168
+ "alias": "removeLabel";
169
+ "required": false;
170
+ "isSignal": true;
171
+ };
102
172
  }, {}, never, never, true, never>;
103
173
  }
104
174
  export {};
@@ -136,6 +136,25 @@ export declare class WrSelectHarness extends ComponentHarness {
136
136
  getOptionLabels(): Promise<string[]>;
137
137
  /** Open the panel if needed, then click the first option matching the filters. */
138
138
  selectOption(filters: WrOptionHarnessFilters): Promise<void>;
139
+ /**
140
+ * Open the panel if needed, then click the select-all row.
141
+ *
142
+ * Throws when the panel has no such row, and names the reasons: the row needs
143
+ * `selectAll`, multi mode, and at least one option on offer, so a search that
144
+ * matches nothing takes it away.
145
+ */
146
+ toggleSelectAll(): Promise<void>;
147
+ /**
148
+ * Whether every option the panel is offering is selected: the row's
149
+ * `aria-checked="true"`. Under a search that is every MATCHING option, which
150
+ * is what the row toggles. `false` covers both "none" and "some";
151
+ * {@link getSelectAllState} tells those apart.
152
+ */
153
+ isAllSelected(): Promise<boolean>;
154
+ /** The select-all row's state, read from `aria-checked`. Throws when there is no row. */
155
+ getSelectAllState(): Promise<'checked' | 'mixed' | 'unchecked'>;
156
+ /** Whether the open panel is showing a select-all row. */
157
+ hasSelectAll(): Promise<boolean>;
139
158
  /** Type into a search or tag select's input, replacing whatever is there. */
140
159
  typeSearch(query: string): Promise<void>;
141
160
  /** Click the clear (×) control. It only exists on a `clearable` select with a selection. */
@@ -157,6 +176,7 @@ export declare class WrSelectHarness extends ComponentHarness {
157
176
  isLoading(): Promise<boolean>;
158
177
  /** Move keyboard focus to the select. */
159
178
  focus(): Promise<void>;
179
+ private selectAllRow;
160
180
  /** The text input of a search or tag select, or `null` for the button trigger. */
161
181
  private searchInput;
162
182
  /** One element inside THIS select's panel, or `null`. */