ngwr 14.7.0 → 14.9.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 (482) hide show
  1. package/README.md +66 -332
  2. package/alert/styles/_index.scss +10 -0
  3. package/avatar/styles/_index.scss +18 -7
  4. package/badge/styles/_index.scss +7 -0
  5. package/badge/styles/_tag.scss +7 -1
  6. package/bar-chart/styles/_index.scss +1 -0
  7. package/button/styles/_index.scss +6 -0
  8. package/calendar-heatmap/styles/_index.scss +1 -0
  9. package/cascader/styles/_rules.scss +87 -15
  10. package/checkbox/styles/_index.scss +4 -0
  11. package/command-palette/styles/_index.scss +1 -1
  12. package/date-picker/styles/_index.scss +30 -0
  13. package/density/styles/_index.scss +4 -2
  14. package/divider/styles/_index.scss +2 -0
  15. package/donut-chart/styles/_index.scss +10 -0
  16. package/dropdown/styles/_index.scss +67 -5
  17. package/editor/styles/_index.scss +441 -0
  18. package/event-calendar/styles/_index.scss +209 -35
  19. package/fesm2022/ngwr-action-sheet-testing.mjs.map +1 -1
  20. package/fesm2022/ngwr-action-sheet.mjs +3 -3
  21. package/fesm2022/ngwr-action-sheet.mjs.map +1 -1
  22. package/fesm2022/ngwr-affix.mjs +3 -3
  23. package/fesm2022/ngwr-affix.mjs.map +1 -1
  24. package/fesm2022/ngwr-alert.mjs +3 -3
  25. package/fesm2022/ngwr-alert.mjs.map +1 -1
  26. package/fesm2022/ngwr-anchor.mjs +3 -3
  27. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  28. package/fesm2022/ngwr-aurora.mjs +3 -3
  29. package/fesm2022/ngwr-aurora.mjs.map +1 -1
  30. package/fesm2022/ngwr-avatar.mjs +3 -3
  31. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  32. package/fesm2022/ngwr-back-top.mjs +3 -3
  33. package/fesm2022/ngwr-back-top.mjs.map +1 -1
  34. package/fesm2022/ngwr-badge.mjs +28 -13
  35. package/fesm2022/ngwr-badge.mjs.map +1 -1
  36. package/fesm2022/ngwr-bar-chart-testing.mjs.map +1 -1
  37. package/fesm2022/ngwr-bar-chart.mjs +31 -6
  38. package/fesm2022/ngwr-bar-chart.mjs.map +1 -1
  39. package/fesm2022/ngwr-blur-text-testing.mjs.map +1 -1
  40. package/fesm2022/ngwr-blur-text.mjs +3 -3
  41. package/fesm2022/ngwr-blur-text.mjs.map +1 -1
  42. package/fesm2022/ngwr-border-glow-testing.mjs.map +1 -1
  43. package/fesm2022/ngwr-border-glow.mjs +3 -3
  44. package/fesm2022/ngwr-border-glow.mjs.map +1 -1
  45. package/fesm2022/ngwr-breadcrumbs.mjs +6 -6
  46. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  47. package/fesm2022/ngwr-burger.mjs +3 -3
  48. package/fesm2022/ngwr-burger.mjs.map +1 -1
  49. package/fesm2022/ngwr-button-testing.mjs.map +1 -1
  50. package/fesm2022/ngwr-button.mjs +6 -6
  51. package/fesm2022/ngwr-button.mjs.map +1 -1
  52. package/fesm2022/ngwr-calendar-heatmap-testing.mjs.map +1 -1
  53. package/fesm2022/ngwr-calendar-heatmap.mjs +61 -6
  54. package/fesm2022/ngwr-calendar-heatmap.mjs.map +1 -1
  55. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  56. package/fesm2022/ngwr-calendar.mjs +3 -3
  57. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  58. package/fesm2022/ngwr-card.mjs +9 -9
  59. package/fesm2022/ngwr-card.mjs.map +1 -1
  60. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  61. package/fesm2022/ngwr-carousel.mjs +6 -6
  62. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  63. package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
  64. package/fesm2022/ngwr-cascader.mjs +4 -4
  65. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  66. package/fesm2022/ngwr-checkbox-testing.mjs.map +1 -1
  67. package/fesm2022/ngwr-checkbox.mjs +18 -8
  68. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  69. package/fesm2022/ngwr-circular-text-testing.mjs.map +1 -1
  70. package/fesm2022/ngwr-circular-text.mjs +3 -3
  71. package/fesm2022/ngwr-circular-text.mjs.map +1 -1
  72. package/fesm2022/ngwr-click-spark.mjs +3 -3
  73. package/fesm2022/ngwr-click-spark.mjs.map +1 -1
  74. package/fesm2022/ngwr-clipboard.mjs +3 -3
  75. package/fesm2022/ngwr-clipboard.mjs.map +1 -1
  76. package/fesm2022/ngwr-collapse-testing.mjs.map +1 -1
  77. package/fesm2022/ngwr-collapse.mjs +9 -9
  78. package/fesm2022/ngwr-collapse.mjs.map +1 -1
  79. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  80. package/fesm2022/ngwr-color-picker.mjs +6 -6
  81. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  82. package/fesm2022/ngwr-command-palette-testing.mjs.map +1 -1
  83. package/fesm2022/ngwr-command-palette.mjs +3 -3
  84. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  85. package/fesm2022/ngwr-compare.mjs +3 -3
  86. package/fesm2022/ngwr-compare.mjs.map +1 -1
  87. package/fesm2022/ngwr-confetti.mjs +3 -3
  88. package/fesm2022/ngwr-confetti.mjs.map +1 -1
  89. package/fesm2022/ngwr-config.mjs.map +1 -1
  90. package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
  91. package/fesm2022/ngwr-context-menu.mjs +12 -12
  92. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  93. package/fesm2022/ngwr-cookie.mjs +3 -3
  94. package/fesm2022/ngwr-cookie.mjs.map +1 -1
  95. package/fesm2022/ngwr-counter.mjs +6 -6
  96. package/fesm2022/ngwr-counter.mjs.map +1 -1
  97. package/fesm2022/ngwr-date-adapters-fns.mjs +3 -3
  98. package/fesm2022/ngwr-date-adapters-fns.mjs.map +1 -1
  99. package/fesm2022/ngwr-date-adapters-luxon.mjs +3 -3
  100. package/fesm2022/ngwr-date-adapters-luxon.mjs.map +1 -1
  101. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-date-picker.mjs +721 -62
  103. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-date.mjs +3 -3
  105. package/fesm2022/ngwr-date.mjs.map +1 -1
  106. package/fesm2022/ngwr-decrypt-text-testing.mjs.map +1 -1
  107. package/fesm2022/ngwr-decrypt-text.mjs +3 -3
  108. package/fesm2022/ngwr-decrypt-text.mjs.map +1 -1
  109. package/fesm2022/ngwr-density.mjs +6 -6
  110. package/fesm2022/ngwr-density.mjs.map +1 -1
  111. package/fesm2022/ngwr-descriptions.mjs +6 -6
  112. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  113. package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
  114. package/fesm2022/ngwr-dialog.mjs +15 -15
  115. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  116. package/fesm2022/ngwr-directives.mjs +12 -12
  117. package/fesm2022/ngwr-directives.mjs.map +1 -1
  118. package/fesm2022/ngwr-divider.mjs +3 -3
  119. package/fesm2022/ngwr-divider.mjs.map +1 -1
  120. package/fesm2022/ngwr-donut-chart-testing.mjs.map +1 -1
  121. package/fesm2022/ngwr-donut-chart.mjs +48 -6
  122. package/fesm2022/ngwr-donut-chart.mjs.map +1 -1
  123. package/fesm2022/ngwr-drag-drop.mjs +6 -6
  124. package/fesm2022/ngwr-drag-drop.mjs.map +1 -1
  125. package/fesm2022/ngwr-drawer-testing.mjs.map +1 -1
  126. package/fesm2022/ngwr-drawer.mjs +18 -18
  127. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  128. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  129. package/fesm2022/ngwr-dropdown.mjs +174 -25
  130. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  131. package/fesm2022/ngwr-editor-testing.mjs +568 -0
  132. package/fesm2022/ngwr-editor-testing.mjs.map +1 -0
  133. package/fesm2022/ngwr-editor.mjs +2601 -0
  134. package/fesm2022/ngwr-editor.mjs.map +1 -0
  135. package/fesm2022/ngwr-empty.mjs +3 -3
  136. package/fesm2022/ngwr-empty.mjs.map +1 -1
  137. package/fesm2022/ngwr-event-calendar-testing.mjs.map +1 -1
  138. package/fesm2022/ngwr-event-calendar.mjs +14 -7
  139. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  140. package/fesm2022/ngwr-falling-text-testing.mjs.map +1 -1
  141. package/fesm2022/ngwr-falling-text.mjs +3 -3
  142. package/fesm2022/ngwr-falling-text.mjs.map +1 -1
  143. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  144. package/fesm2022/ngwr-file-upload.mjs +3 -3
  145. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  146. package/fesm2022/ngwr-form-testing.mjs.map +1 -1
  147. package/fesm2022/ngwr-form.mjs +61 -10
  148. package/fesm2022/ngwr-form.mjs.map +1 -1
  149. package/fesm2022/ngwr-fuzzy-text-testing.mjs.map +1 -1
  150. package/fesm2022/ngwr-fuzzy-text.mjs +3 -3
  151. package/fesm2022/ngwr-fuzzy-text.mjs.map +1 -1
  152. package/fesm2022/ngwr-gauge-testing.mjs.map +1 -1
  153. package/fesm2022/ngwr-gauge.mjs +35 -6
  154. package/fesm2022/ngwr-gauge.mjs.map +1 -1
  155. package/fesm2022/ngwr-glitch-text-testing.mjs.map +1 -1
  156. package/fesm2022/ngwr-glitch-text.mjs +3 -3
  157. package/fesm2022/ngwr-glitch-text.mjs.map +1 -1
  158. package/fesm2022/ngwr-gradient-text-testing.mjs.map +1 -1
  159. package/fesm2022/ngwr-gradient-text.mjs +3 -3
  160. package/fesm2022/ngwr-gradient-text.mjs.map +1 -1
  161. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  162. package/fesm2022/ngwr-graph.mjs +6 -6
  163. package/fesm2022/ngwr-graph.mjs.map +1 -1
  164. package/fesm2022/ngwr-hotkey.mjs +6 -6
  165. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-ar.mjs +31 -0
  167. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-cs.mjs +31 -0
  169. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-de.mjs +31 -0
  171. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-en.mjs +39 -0
  173. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  174. package/fesm2022/ngwr-i18n-es.mjs +31 -0
  175. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-fr.mjs +31 -0
  177. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-he.mjs +31 -0
  179. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n-hi.mjs +31 -0
  181. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  182. package/fesm2022/ngwr-i18n-id.mjs +31 -0
  183. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  184. package/fesm2022/ngwr-i18n-it.mjs +31 -0
  185. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  186. package/fesm2022/ngwr-i18n-ja.mjs +31 -0
  187. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  188. package/fesm2022/ngwr-i18n-ko.mjs +31 -0
  189. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  190. package/fesm2022/ngwr-i18n-nl.mjs +31 -0
  191. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  192. package/fesm2022/ngwr-i18n-pl.mjs +31 -0
  193. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  194. package/fesm2022/ngwr-i18n-pt.mjs +31 -0
  195. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  196. package/fesm2022/ngwr-i18n-ru.mjs +31 -0
  197. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  198. package/fesm2022/ngwr-i18n-sv.mjs +31 -0
  199. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  200. package/fesm2022/ngwr-i18n-tr.mjs +31 -0
  201. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  202. package/fesm2022/ngwr-i18n-uk.mjs +31 -0
  203. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  204. package/fesm2022/ngwr-i18n-vi.mjs +31 -0
  205. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  206. package/fesm2022/ngwr-i18n-zh-TW.mjs +31 -0
  207. package/fesm2022/ngwr-i18n-zh-TW.mjs.map +1 -1
  208. package/fesm2022/ngwr-i18n-zh.mjs +31 -0
  209. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  210. package/fesm2022/ngwr-i18n.mjs +9 -9
  211. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  212. package/fesm2022/ngwr-icon-adapters-feather.mjs.map +1 -1
  213. package/fesm2022/ngwr-icon-adapters-lucide.mjs.map +1 -1
  214. package/fesm2022/ngwr-icon.mjs +6 -6
  215. package/fesm2022/ngwr-icon.mjs.map +1 -1
  216. package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
  217. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  218. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  219. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  220. package/fesm2022/ngwr-input-number.mjs +15 -3
  221. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  222. package/fesm2022/ngwr-input-otp-testing.mjs.map +1 -1
  223. package/fesm2022/ngwr-input-otp.mjs +3 -3
  224. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  225. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  226. package/fesm2022/ngwr-input.mjs +15 -15
  227. package/fesm2022/ngwr-input.mjs.map +1 -1
  228. package/fesm2022/ngwr-keyboard.mjs +3 -3
  229. package/fesm2022/ngwr-keyboard.mjs.map +1 -1
  230. package/fesm2022/ngwr-knob-testing.mjs.map +1 -1
  231. package/fesm2022/ngwr-knob.mjs +3 -3
  232. package/fesm2022/ngwr-knob.mjs.map +1 -1
  233. package/fesm2022/ngwr-layout.mjs +15 -15
  234. package/fesm2022/ngwr-layout.mjs.map +1 -1
  235. package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
  236. package/fesm2022/ngwr-lightbox.mjs +3 -3
  237. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  238. package/fesm2022/ngwr-line-chart-testing.mjs.map +1 -1
  239. package/fesm2022/ngwr-line-chart.mjs +18 -7
  240. package/fesm2022/ngwr-line-chart.mjs.map +1 -1
  241. package/fesm2022/ngwr-list.mjs +6 -6
  242. package/fesm2022/ngwr-list.mjs.map +1 -1
  243. package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
  244. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  245. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  246. package/fesm2022/ngwr-markdown-testing.mjs.map +1 -1
  247. package/fesm2022/ngwr-markdown.mjs +798 -17
  248. package/fesm2022/ngwr-markdown.mjs.map +1 -1
  249. package/fesm2022/ngwr-marquee-testing.mjs.map +1 -1
  250. package/fesm2022/ngwr-marquee.mjs +3 -3
  251. package/fesm2022/ngwr-marquee.mjs.map +1 -1
  252. package/fesm2022/ngwr-media.mjs +3 -3
  253. package/fesm2022/ngwr-media.mjs.map +1 -1
  254. package/fesm2022/ngwr-mention-testing.mjs.map +1 -1
  255. package/fesm2022/ngwr-mention.mjs +6 -6
  256. package/fesm2022/ngwr-mention.mjs.map +1 -1
  257. package/fesm2022/ngwr-meta.mjs +6 -6
  258. package/fesm2022/ngwr-meta.mjs.map +1 -1
  259. package/fesm2022/ngwr-meter-group-testing.mjs +7 -3
  260. package/fesm2022/ngwr-meter-group-testing.mjs.map +1 -1
  261. package/fesm2022/ngwr-meter-group.mjs +26 -6
  262. package/fesm2022/ngwr-meter-group.mjs.map +1 -1
  263. package/fesm2022/ngwr-overlay.mjs +6 -6
  264. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  265. package/fesm2022/ngwr-page-header.mjs +13 -5
  266. package/fesm2022/ngwr-page-header.mjs.map +1 -1
  267. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  268. package/fesm2022/ngwr-pagination.mjs +3 -3
  269. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  270. package/fesm2022/ngwr-pipes.mjs +21 -21
  271. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  272. package/fesm2022/ngwr-platform.mjs +9 -9
  273. package/fesm2022/ngwr-platform.mjs.map +1 -1
  274. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  275. package/fesm2022/ngwr-popconfirm.mjs +6 -6
  276. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  277. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  278. package/fesm2022/ngwr-popover.mjs +578 -16
  279. package/fesm2022/ngwr-popover.mjs.map +1 -1
  280. package/fesm2022/ngwr-progress.mjs +3 -3
  281. package/fesm2022/ngwr-progress.mjs.map +1 -1
  282. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  283. package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
  284. package/fesm2022/ngwr-qr.mjs +3 -3
  285. package/fesm2022/ngwr-qr.mjs.map +1 -1
  286. package/fesm2022/ngwr-radio-testing.mjs.map +1 -1
  287. package/fesm2022/ngwr-radio.mjs +6 -6
  288. package/fesm2022/ngwr-radio.mjs.map +1 -1
  289. package/fesm2022/ngwr-rating-testing.mjs.map +1 -1
  290. package/fesm2022/ngwr-rating.mjs +3 -3
  291. package/fesm2022/ngwr-rating.mjs.map +1 -1
  292. package/fesm2022/ngwr-result.mjs +12 -12
  293. package/fesm2022/ngwr-result.mjs.map +1 -1
  294. package/fesm2022/ngwr-rotating-text-testing.mjs.map +1 -1
  295. package/fesm2022/ngwr-rotating-text.mjs +3 -3
  296. package/fesm2022/ngwr-rotating-text.mjs.map +1 -1
  297. package/fesm2022/ngwr-schema-form.mjs +3 -3
  298. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  299. package/fesm2022/ngwr-scroll.mjs +3 -3
  300. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  301. package/fesm2022/ngwr-segmented-testing.mjs.map +1 -1
  302. package/fesm2022/ngwr-segmented.mjs +3 -3
  303. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  304. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  305. package/fesm2022/ngwr-select.mjs +12 -12
  306. package/fesm2022/ngwr-select.mjs.map +1 -1
  307. package/fesm2022/ngwr-shiny-text-testing.mjs.map +1 -1
  308. package/fesm2022/ngwr-shiny-text.mjs +6 -6
  309. package/fesm2022/ngwr-shiny-text.mjs.map +1 -1
  310. package/fesm2022/ngwr-sidebar.mjs +10 -3
  311. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  312. package/fesm2022/ngwr-skeleton.mjs +3 -3
  313. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  314. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  315. package/fesm2022/ngwr-slider.mjs +3 -3
  316. package/fesm2022/ngwr-slider.mjs.map +1 -1
  317. package/fesm2022/ngwr-sparkline-testing.mjs.map +1 -1
  318. package/fesm2022/ngwr-sparkline.mjs +84 -10
  319. package/fesm2022/ngwr-sparkline.mjs.map +1 -1
  320. package/fesm2022/ngwr-speed-dial-testing.mjs.map +1 -1
  321. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  322. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  323. package/fesm2022/ngwr-spinner.mjs +3 -3
  324. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  325. package/fesm2022/ngwr-splash-cursor-testing.mjs.map +1 -1
  326. package/fesm2022/ngwr-splash-cursor.mjs +3 -3
  327. package/fesm2022/ngwr-splash-cursor.mjs.map +1 -1
  328. package/fesm2022/ngwr-split-text-testing.mjs.map +1 -1
  329. package/fesm2022/ngwr-split-text.mjs +3 -3
  330. package/fesm2022/ngwr-split-text.mjs.map +1 -1
  331. package/fesm2022/ngwr-splitter-testing.mjs.map +1 -1
  332. package/fesm2022/ngwr-splitter.mjs +3 -3
  333. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  334. package/fesm2022/ngwr-spotlight-card-testing.mjs.map +1 -1
  335. package/fesm2022/ngwr-spotlight-card.mjs +6 -6
  336. package/fesm2022/ngwr-spotlight-card.mjs.map +1 -1
  337. package/fesm2022/ngwr-squircle.mjs +6 -6
  338. package/fesm2022/ngwr-squircle.mjs.map +1 -1
  339. package/fesm2022/ngwr-star-border-testing.mjs.map +1 -1
  340. package/fesm2022/ngwr-star-border.mjs +3 -3
  341. package/fesm2022/ngwr-star-border.mjs.map +1 -1
  342. package/fesm2022/ngwr-statistic.mjs +9 -9
  343. package/fesm2022/ngwr-statistic.mjs.map +1 -1
  344. package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
  345. package/fesm2022/ngwr-stepper.mjs +6 -6
  346. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  347. package/fesm2022/ngwr-storage.mjs +3 -3
  348. package/fesm2022/ngwr-storage.mjs.map +1 -1
  349. package/fesm2022/ngwr-switch-testing.mjs.map +1 -1
  350. package/fesm2022/ngwr-switch.mjs +3 -3
  351. package/fesm2022/ngwr-switch.mjs.map +1 -1
  352. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  353. package/fesm2022/ngwr-table.mjs +18 -18
  354. package/fesm2022/ngwr-table.mjs.map +1 -1
  355. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  356. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  357. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  358. package/fesm2022/ngwr-tabs.mjs +6 -6
  359. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  360. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  361. package/fesm2022/ngwr-textarea.mjs +3 -3
  362. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  363. package/fesm2022/ngwr-theme.mjs +3 -3
  364. package/fesm2022/ngwr-theme.mjs.map +1 -1
  365. package/fesm2022/ngwr-tilt-card-testing.mjs.map +1 -1
  366. package/fesm2022/ngwr-tilt-card.mjs +6 -6
  367. package/fesm2022/ngwr-tilt-card.mjs.map +1 -1
  368. package/fesm2022/ngwr-timeline.mjs +6 -6
  369. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  370. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  371. package/fesm2022/ngwr-toast.mjs +9 -9
  372. package/fesm2022/ngwr-toast.mjs.map +1 -1
  373. package/fesm2022/ngwr-toolbar.mjs +10 -3
  374. package/fesm2022/ngwr-toolbar.mjs.map +1 -1
  375. package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
  376. package/fesm2022/ngwr-tour.mjs +6 -6
  377. package/fesm2022/ngwr-tour.mjs.map +1 -1
  378. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  379. package/fesm2022/ngwr-transfer.mjs +3 -3
  380. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  381. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  382. package/fesm2022/ngwr-tree.mjs +3 -3
  383. package/fesm2022/ngwr-tree.mjs.map +1 -1
  384. package/fesm2022/ngwr-typewriter-testing.mjs.map +1 -1
  385. package/fesm2022/ngwr-typewriter.mjs +3 -3
  386. package/fesm2022/ngwr-typewriter.mjs.map +1 -1
  387. package/fesm2022/ngwr-typography.mjs +7 -3
  388. package/fesm2022/ngwr-typography.mjs.map +1 -1
  389. package/fesm2022/ngwr-utils.mjs.map +1 -1
  390. package/fesm2022/ngwr-validators.mjs.map +1 -1
  391. package/fesm2022/ngwr-version.mjs +1 -1
  392. package/fesm2022/ngwr-version.mjs.map +1 -1
  393. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  394. package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
  395. package/fesm2022/ngwr-waves-testing.mjs.map +1 -1
  396. package/fesm2022/ngwr-waves.mjs +3 -3
  397. package/fesm2022/ngwr-waves.mjs.map +1 -1
  398. package/fesm2022/ngwr-window-testing.mjs.map +1 -1
  399. package/fesm2022/ngwr-window.mjs +12 -12
  400. package/fesm2022/ngwr-window.mjs.map +1 -1
  401. package/form/styles/_index.scss +16 -1
  402. package/gauge/styles/_index.scss +1 -0
  403. package/i18n/ar.json +32 -1
  404. package/i18n/cs.json +32 -1
  405. package/i18n/de.json +32 -1
  406. package/i18n/en.json +32 -1
  407. package/i18n/es.json +32 -1
  408. package/i18n/fr.json +32 -1
  409. package/i18n/he.json +32 -1
  410. package/i18n/hi.json +32 -1
  411. package/i18n/id.json +32 -1
  412. package/i18n/it.json +32 -1
  413. package/i18n/ja.json +32 -1
  414. package/i18n/ko.json +32 -1
  415. package/i18n/nl.json +32 -1
  416. package/i18n/pl.json +32 -1
  417. package/i18n/pt.json +32 -1
  418. package/i18n/ru.json +32 -1
  419. package/i18n/sv.json +32 -1
  420. package/i18n/tr.json +32 -1
  421. package/i18n/uk.json +32 -1
  422. package/i18n/vi.json +32 -1
  423. package/i18n/zh-TW.json +32 -1
  424. package/i18n/zh.json +32 -1
  425. package/input/styles/_index.scss +24 -1
  426. package/input-number/styles/_index.scss +69 -0
  427. package/input-otp/styles/_index.scss +5 -5
  428. package/line-chart/styles/_index.scss +30 -2
  429. package/llms-full.txt +14 -4
  430. package/llms.txt +188 -132
  431. package/mcp/providers.js +2 -2
  432. package/mcp/server.js +1 -1
  433. package/meter-group/styles/_index.scss +1 -0
  434. package/overlay/styles/_arrow.scss +30 -2
  435. package/package.json +43 -2
  436. package/page-header/styles/_index.scss +37 -1
  437. package/pagination/styles/_index.scss +9 -5
  438. package/popover/styles/_index.scss +73 -5
  439. package/progress/styles/_index.scss +4 -0
  440. package/radio/styles/_index.scss +4 -1
  441. package/schematics/use/symbol-map.json +1 -0
  442. package/select/styles/_index.scss +51 -12
  443. package/sidebar/styles/_index.scss +44 -2
  444. package/skeleton/styles/_index.scss +3 -0
  445. package/skills/ngwr/SKILL.md +5 -5
  446. package/skills/ngwr/references/catalog.md +2 -0
  447. package/skills/ngwr/references/setup.md +3 -3
  448. package/sparkline/styles/_index.scss +19 -0
  449. package/styles.scss +1 -0
  450. package/table/styles/_index.scss +7 -0
  451. package/textarea/styles/_index.scss +12 -3
  452. package/theme/styles/_colors.scss +39 -13
  453. package/theme/styles/_contrast.scss +9 -7
  454. package/toast/styles/_index.scss +4 -0
  455. package/toolbar/styles/_index.scss +35 -1
  456. package/tree/styles/_index.scss +46 -7
  457. package/types/ngwr-badge.d.ts +22 -7
  458. package/types/ngwr-bar-chart.d.ts +19 -1
  459. package/types/ngwr-calendar-heatmap.d.ts +29 -1
  460. package/types/ngwr-checkbox.d.ts +2 -0
  461. package/types/ngwr-config.d.ts +12 -0
  462. package/types/ngwr-date-picker.d.ts +308 -43
  463. package/types/ngwr-donut-chart.d.ts +24 -1
  464. package/types/ngwr-dropdown.d.ts +22 -2
  465. package/types/ngwr-editor-testing.d.ts +378 -0
  466. package/types/ngwr-editor.d.ts +449 -0
  467. package/types/ngwr-event-calendar.d.ts +8 -0
  468. package/types/ngwr-form.d.ts +35 -5
  469. package/types/ngwr-gauge.d.ts +20 -1
  470. package/types/ngwr-input-number.d.ts +7 -0
  471. package/types/ngwr-line-chart.d.ts +9 -1
  472. package/types/ngwr-markdown.d.ts +61 -2
  473. package/types/ngwr-meter-group-testing.d.ts +3 -2
  474. package/types/ngwr-meter-group.d.ts +14 -1
  475. package/types/ngwr-page-header.d.ts +10 -2
  476. package/types/ngwr-popover.d.ts +154 -3
  477. package/types/ngwr-sidebar.d.ts +7 -0
  478. package/types/ngwr-sparkline.d.ts +43 -1
  479. package/types/ngwr-toolbar.d.ts +7 -0
  480. package/types/ngwr-typography.d.ts +4 -0
  481. package/types/ngwr-version.d.ts +1 -1
  482. package/typography/styles/_index.scss +16 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-context-menu-testing.mjs","sources":["../../../projects/lib/context-menu/testing/wait.ts","../../../projects/lib/context-menu/testing/wr-context-menu-item-harness.ts","../../../projects/lib/context-menu/testing/wr-context-menu-harness.ts","../../../projects/lib/context-menu/testing/ngwr-context-menu-testing.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\n/** How long the waiters poll before giving up, in ms. Generous next to the 500ms hold. */\nconst DEFAULT_TIMEOUT = 1000;\n\n/** How often they re-check, in ms. */\nconst POLL_STEP = 10;\n\n/**\n * The real `setTimeout`, captured at module load — before a spec can install\n * fake timers.\n *\n * Every delay in this component family is wall-clock: a plain `setTimeout` inside\n * the directive for the 500ms long-press hold, the 120ms submenu hover and the\n * 220ms exit animation the pane is held alive through, and a `performance.now()`\n * comparison for the 200ms window in which outside presses are ignored — no timer\n * behind that one, just elapsed time. Under zoneless change detection `whenStable()` resolves\n * without waiting for a macrotask, so the waiters have to let REAL time pass —\n * reading a faked global instead would mean the sleep never fires at all, and\n * the harness would hang where it should fail with the message it prepared.\n */\nconst realSetTimeout = globalThis.setTimeout;\n\n/** Let real time pass, whatever a spec has done to the global clock. */\nfunction sleep(ms: number): Promise<void> {\n return new Promise(resolve => {\n realSetTimeout(resolve, ms);\n });\n}\n\nexport { DEFAULT_TIMEOUT, POLL_STEP, sleep };\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, type HarnessLoader, HarnessPredicate, TestKey } from '@angular/cdk/testing';\n\nimport type { WrContextMenuItemHarnessFilters } from './interfaces';\nimport { DEFAULT_TIMEOUT, POLL_STEP, sleep } from './wait';\n\n/**\n * Test harness for one `<wr-context-menu-item>` inside a context menu.\n *\n * The selector is the CLASS rather than the element, matching\n * `.wr-dropdown-item`: it is public API, and it is on the host whichever way the\n * item was written. A `<wr-context-menu-divider>` is deliberately not one of\n * these — it announces `role=\"separator\"` rather than `menuitem`, so it is not\n * something a user can land on and not a member of the item list\n * (`WrContextMenuHarness.getDividerCount()` counts those).\n *\n * An item that owns a `[submenu]` is also the way INTO it: the submenu is a\n * second overlay pane, a sibling of the root menu rather than a child of the\n * item, and it is reached through the id the item publishes as `aria-controls`\n * while it is open. `getSubmenuItems()` answers with these same harnesses, so a\n * chain of any depth is walked by repeating the call.\n *\n * @example\n * ```ts\n * const [cut, copy, more] = await menu.getItems();\n *\n * expect(await copy.isDisabled()).toBe(true);\n * await more.openSubmenu();\n * await more.clickSubmenuItem({ text: 'Duplicate' });\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrContextMenuItemHarness extends ComponentHarness {\n /** The class the item paints on its host. */\n static hostSelector = '.wr-context-menu-item';\n\n /** Build a predicate that narrows the query. */\n static with(options: WrContextMenuItemHarnessFilters = {}): HarnessPredicate<WrContextMenuItemHarness> {\n return new HarnessPredicate(WrContextMenuItemHarness, options)\n .addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text))\n .addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled)\n .addOption(\n 'hasSubmenu',\n options.hasSubmenu,\n async (harness, hasSubmenu) => (await harness.hasSubmenu()) === hasSubmenu\n );\n }\n\n /**\n * The item's label, trimmed.\n *\n * Read from the label span, not from the host: a registered icon is written in\n * with `innerHTML`, so an icon carrying a `<title>` would otherwise become\n * part of the answer.\n */\n async getText(): Promise<string> {\n return (await this.locatorFor('.wr-context-menu-item__label')()).text();\n }\n\n /** The role the item announces — `menuitem`. */\n async getRole(): Promise<string | null> {\n return (await this.host()).getAttribute('role');\n }\n\n /**\n * Whether the item refuses activation.\n *\n * `aria-disabled`, not the `--disabled` modifier class: both are there, and\n * this is the one a screen reader is told.\n */\n async isDisabled(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-disabled')) === 'true';\n }\n\n /**\n * Whether the item owns a nested submenu.\n *\n * Read from `aria-haspopup`, not from the `--has-submenu` class or the\n * `[submenu]` input: the input is always BOUND (it takes a\n * `<wr-context-menu>` reference), so it never reaches the DOM, and the ARIA\n * property is what announces the item as a drill-down.\n */\n async hasSubmenu(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-haspopup')) === 'menu';\n }\n\n /** Whether this item's submenu is showing, per `aria-expanded`. */\n async isSubmenuOpen(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-expanded')) === 'true';\n }\n\n /** Whether the item shows a leading icon. */\n async hasIcon(): Promise<boolean> {\n return (await this.locatorForOptional('.wr-context-menu-item__icon')()) !== null;\n }\n\n /** The leading icon's registered name, or `null` when the item has no icon. */\n async getIconName(): Promise<string | null> {\n const icon = await this.locatorForOptional('.wr-context-menu-item__icon')();\n // `<wr-icon>` reflects the name it was asked for as `data-icon`, whether or not\n // that name is registered — so this answers what the item MEANT to draw.\n return icon ? icon.getAttribute('data-icon') : null;\n }\n\n /**\n * Whether the item holds the menu's roving focus.\n *\n * The menu moves focus onto its first enabled row as the pane renders and the\n * arrows walk it from there, so this is where the keyboard is. Opening a\n * submenu hands the cursor to the submenu's own first row, which leaves the\n * item that owns it unfocused while its pane is up.\n */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /**\n * Click the item. A disabled item throws instead.\n *\n * Refusing is the only honest answer. A browser never delivers the click at all:\n * `pointer-events: none` on the `--disabled` modifier takes the row out of the\n * hit test. jsdom loads no stylesheets, so a click dispatched here DOES land on\n * the host, and while the component's own handler refuses it (a disabled item\n * dismisses nothing), the consumer's `(click)` on that same host is a separate\n * listener and runs — so the spec would record an activation that cannot happen\n * in a browser. Assert `isDisabled()` instead.\n *\n * Activating a LEAF item dismisses the whole chain, root menu included. An item\n * that owns a submenu is not a leaf: clicking it does nothing at all (hover or\n * `openSubmenu()` is how it opens).\n */\n async click(): Promise<void> {\n if (await this.isDisabled()) {\n throw new Error(\n `WrContextMenuItemHarness.click(): \"${await this.getText()}\" is disabled, so clicking it would ` +\n 'report behaviour a browser cannot produce — the pointer is stopped by CSS, which jsdom does ' +\n 'not load. Assert isDisabled() instead.'\n );\n }\n\n return (await this.host()).click();\n }\n\n /**\n * Press Enter on the item — the keyboard equivalent of a click, and the route\n * a spec should prefer, since it needs no hit test.\n *\n * Deliberately does NOT refuse a disabled item the way `click()` does: the\n * component guards the keyboard path itself, so the key can be sent honestly\n * and a spec can assert that nothing happened. On an item that owns a submenu\n * this OPENS the submenu rather than activating the row, which is the APG\n * behaviour — activating it would close the menu and leave the submenu\n * unreachable from the keyboard.\n */\n async activateByKeyboard(): Promise<void> {\n return (await this.host()).sendKeys(TestKey.ENTER);\n }\n\n /**\n * Open this item's submenu with the right arrow and wait until it says so.\n *\n * The keyboard, not the pointer: it opens with no delay (hover waits out\n * 120ms — `openSubmenuByHover()` covers that path) and needs no coordinates,\n * which jsdom could not supply anyway. A keyboard open walks INTO the submenu,\n * so afterwards the cursor is on the submenu's first row and `isFocused()` on\n * this item is `false` — `openSubmenuByHover()` only shows the pane and leaves\n * the cursor where it was.\n */\n async openSubmenu(timeout = DEFAULT_TIMEOUT): Promise<void> {\n await this.assertHasSubmenu('openSubmenu');\n if (await this.isSubmenuOpen()) return;\n\n await (await this.host()).sendKeys(TestKey.RIGHT_ARROW);\n if (await this.isSubmenuOpen()) return;\n if (await this.settled(true, timeout)) return;\n\n throw new Error(\n `WrContextMenuItemHarness.openSubmenu(): \"${await this.getText()}\" did not open its submenu within ` +\n `${timeout}ms. A disabled item refuses the key outright — check isDisabled().`\n );\n }\n\n /**\n * Open this item's submenu by resting the pointer on it, the gesture a mouse\n * user actually makes, and wait out the hover delay.\n */\n async openSubmenuByHover(timeout = DEFAULT_TIMEOUT): Promise<void> {\n await this.assertHasSubmenu('openSubmenuByHover');\n if (await this.isSubmenuOpen()) return;\n\n await (await this.host()).hover();\n if (await this.settled(true, timeout)) return;\n\n throw new Error(\n `WrContextMenuItemHarness.openSubmenuByHover(): \"${await this.getText()}\" did not open its submenu ` +\n `within ${timeout}ms. The hover path is a real 120ms timer, so a spec on fake timers has to ` +\n 'advance the clock itself; a disabled item ignores the pointer entirely.'\n );\n }\n\n /** Close this item's submenu with the left arrow. An item without one open is left alone. */\n async closeSubmenu(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (!(await this.isSubmenuOpen())) return;\n\n await (await this.host()).sendKeys(TestKey.LEFT_ARROW);\n if (await this.settled(false, timeout)) return;\n\n throw new Error(\n `WrContextMenuItemHarness.closeSubmenu(): \"${await this.getText()}\" still reports its submenu open ` +\n `after ${timeout}ms.`\n );\n }\n\n /**\n * The items in THIS item's submenu, in DOM order.\n *\n * Throws while the submenu is shut, and while the item owns none: both would\n * otherwise answer with an empty array, which reads like a submenu that\n * rendered nothing and fails somewhere else entirely.\n */\n async getSubmenuItems(filters: WrContextMenuItemHarnessFilters = {}): Promise<WrContextMenuItemHarness[]> {\n const loader = await this.submenuLoader();\n return loader.getAllHarnesses(WrContextMenuItemHarness.with(filters));\n }\n\n /** The labels of the items in this item's submenu, in DOM order. */\n async getSubmenuItemTexts(): Promise<string[]> {\n const items = await this.getSubmenuItems();\n return Promise.all(items.map(item => item.getText()));\n }\n\n /**\n * Open the submenu if it is shut, then click the first item in it matching the\n * filters.\n *\n * Picking a leaf dismisses the whole chain — this item's submenu and the root\n * menu with it.\n */\n async clickSubmenuItem(filters: WrContextMenuItemHarnessFilters): Promise<void> {\n await this.openSubmenu();\n\n const [item] = await this.getSubmenuItems(filters);\n if (!item) {\n const offered = await this.getSubmenuItemTexts();\n throw new Error(\n `WrContextMenuItemHarness.clickSubmenuItem(): no item matched ${JSON.stringify(filters)}. ` +\n `The submenu of \"${await this.getText()}\" offers: ${offered.join(', ')}.`\n );\n }\n\n await item.click();\n }\n\n /**\n * A loader scoped to THIS item's submenu pane.\n *\n * Scoped by the published id rather than by `.wr-context-menu`: every pane in\n * the chain — the root menu and each open submenu — carries that class in one\n * shared overlay container, so a class query would answer with whichever\n * opened first.\n */\n private async submenuLoader(): Promise<HarnessLoader> {\n return this.documentRootLocatorFactory().harnessLoaderFor(`#${await this.submenuId()}`);\n }\n\n /** The id this item publishes as `aria-controls`, which its open submenu carries. */\n private async submenuId(): Promise<string> {\n const id = await (await this.host()).getAttribute('aria-controls');\n if (!id) {\n const label = await this.getText();\n throw new Error(\n `WrContextMenuItemHarness: \"${label}\" has no submenu showing. An item publishes aria-controls only ` +\n 'while its submenu is open — call openSubmenu() first, and check that it owns one at all with ' +\n 'hasSubmenu().'\n );\n }\n return id;\n }\n\n /** Fail early, and by name, when the item is not a drill-down at all. */\n private async assertHasSubmenu(method: string): Promise<void> {\n if (await this.hasSubmenu()) return;\n\n throw new Error(\n `WrContextMenuItemHarness.${method}(): \"${await this.getText()}\" owns no submenu, so there is ` +\n 'nothing to open. An item that does advertises it with aria-haspopup=\"menu\" — hasSubmenu().'\n );\n }\n\n /** Poll until `isSubmenuOpen()` reports `open`, and say whether it did. */\n private async settled(open: boolean, timeout: number): Promise<boolean> {\n for (let waited = 0; waited <= timeout; waited += POLL_STEP) {\n if ((await this.isSubmenuOpen()) === open) return true;\n\n await sleep(POLL_STEP);\n await this.forceStabilize();\n }\n return false;\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport {\n ContentContainerComponentHarness,\n type HarnessLoader,\n HarnessPredicate,\n TestKey,\n type TestElement,\n} from '@angular/cdk/testing';\n\nimport type { WrContextMenuHarnessFilters, WrContextMenuItemHarnessFilters } from './interfaces';\nimport { DEFAULT_TIMEOUT, POLL_STEP, sleep } from './wait';\nimport { WrContextMenuItemHarness } from './wr-context-menu-item-harness';\n\n/**\n * How long to sit still before an outside press is allowed to dismiss the menu.\n *\n * The directive ignores outside events for 200ms after opening, because the very\n * right-click that opened the menu still has its own `mouseup` / `auxclick`\n * pending — without the window, lifting the finger would shut the menu again.\n */\nconst OUTSIDE_GUARD_MS = 250;\n\n/**\n * Test harness for `[wrContextMenu]` — the right-click target, and the menu it\n * opens.\n *\n * The harness matches the TARGET, because that is the only part of a context\n * menu in the fixture: `<wr-context-menu>` renders nothing of its own (it hands\n * over an `<ng-template>` and hides its host), and the menu is portalled into the\n * overlay container, a sibling of the whole app. So every item is read through\n * the document root, scoped by the `aria-controls` id the target publishes while\n * its menu is up — which is what keeps two menus on one page from answering with\n * each other's items, and what keeps a re-opened menu from answering with the one\n * still playing its exit animation.\n *\n * That scoped loader is also this harness's CONTENT loader, so\n * `menu.getHarness(…)` resolves inside THIS menu: a component the consumer\n * projected into the menu is reachable without the spec ever touching the\n * overlay.\n *\n * **How it differs from `WrDropdownHarness`, its closest sibling.**\n *\n * - The gesture is a real `contextmenu` event, not a click — `open()` sends one,\n * and `openByLongPress()` covers the touch path. There is no toggle: a second\n * right-click re-opens the menu at the new pointer position.\n * - Activating an item DISMISSES the menu (a dropdown's stays up), so\n * `clickItem()` leaves it closed.\n * - Submenus are a first-class input here rather than a nested trigger, so they\n * are driven from {@link WrContextMenuItemHarness}.\n * - Focus moves in on EVERY open, where a dropdown's does so only when a\n * keyboard opened it. There is no hover trigger here — a right-click, Shift+F10\n * or a long-press is always a deliberate request for the menu — so\n * `getFocusedItemText()` answers straight after `open()`.\n *\n * **Timing.** The waits are real: a 500ms `setTimeout` for the long-press hold and\n * another 220ms one for the exit animation the pane is held alive through, plus the\n * outside-press window above — that one is a `performance.now()` comparison against\n * the moment the menu opened rather than a timer, so only wall-clock time gets past\n * it. The methods that must sit out real time say so; a spec on fake timers should\n * drive the clock itself and read `isOpen()`.\n *\n * @example\n * ```ts\n * const menu = await loader.getHarness(WrContextMenuHarness.with({ text: 'Right-click me' }));\n *\n * await menu.open();\n * expect(await menu.getItemTexts()).toEqual(['Cut', 'Copy', 'More']);\n *\n * await menu.clickItem({ text: 'Cut' });\n * expect(await menu.isOpen()).toBe(false);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrContextMenuHarness extends ContentContainerComponentHarness {\n /** The directive's host — whatever element the consumer put `[wrContextMenu]` on. */\n static hostSelector = '.wr-context-menu-host';\n\n /** Build a predicate that narrows the query. */\n static with(options: WrContextMenuHarnessFilters = {}): HarnessPredicate<WrContextMenuHarness> {\n return new HarnessPredicate(WrContextMenuHarness, options)\n .addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getTargetText(), text))\n .addOption('open', options.open, async (harness, open) => (await harness.isOpen()) === open);\n }\n\n /** The target's own visible text — the content that gets right-clicked. */\n async getTargetText(): Promise<string> {\n return (await this.host()).text();\n }\n\n /**\n * Whether this target's menu is showing.\n *\n * Read from the target rather than from the overlay, and that is the whole\n * point: a closed menu's pane stays in the DOM for its exit animation, while\n * the reference is dropped the instant the close begins. Asking the DOM\n * \"is a menu present\" would answer `true` for a quarter of a second after every\n * dismissal.\n *\n * So the answer is only as good as the directive's claim on `aria-controls`:\n * put `[wrContextMenu]` on an element that publishes one of its own and the two\n * fight over a single attribute.\n */\n async isOpen(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-controls')) !== null;\n }\n\n /** The role the menu announces — `menu`. Throws while no menu is open. */\n async getMenuRole(): Promise<string | null> {\n return (await this.menu()).getAttribute('role');\n }\n\n /**\n * Everything the open menu renders as text, runs of whitespace collapsed.\n *\n * Wider than `getItemTexts()` on purpose: `<wr-context-menu>` projects whatever\n * it is given, so a section heading or any other markup a consumer put between\n * the items shows up here and in no item harness. Dividers contribute nothing —\n * they render no text.\n *\n * Expect to match a FRAGMENT of this rather than the whole of it: Angular\n * strips the whitespace between elements at compile time, so the labels run\n * together (`'Pick oneAppleBanana'`). The collapsing here only tidies newlines\n * inside a single block of projected text.\n */\n async getMenuText(): Promise<string> {\n return (await (await this.menu()).text()).replace(/\\s+/g, ' ').trim();\n }\n\n /**\n * Open the menu by right-clicking the target, the gesture the directive\n * actually listens for (`contextmenu`, which is also what Shift+F10 sends).\n *\n * An already-open menu is left alone — `rightClick()` is the raw gesture if\n * what you want is the re-open.\n *\n * Note for a spec with two targets: a `contextmenu` event anywhere is an\n * outside pointer event for every OTHER open menu, so this dismisses them on\n * the way in. `openByLongPress()` is the route that does not.\n */\n async open(): Promise<void> {\n if (await this.isOpen()) return;\n\n await this.rightClick();\n if (await this.isOpen()) return;\n\n throw new Error(\n 'WrContextMenuHarness.open(): the right-click did not open a menu. The directive answers ' +\n '`contextmenu` on its own host, so check this is the element you put [wrContextMenu] on. One ' +\n 'deliberate exception: a right-click within 700ms of a long-press open is swallowed, because touch ' +\n 'browsers fire a synthetic contextmenu after the hold.'\n );\n }\n\n /**\n * Send a `contextmenu` to the target whatever state the menu is in.\n *\n * On an open menu this re-opens it at the new pointer position — the previous\n * pane is dismissed and a fresh one takes its place, which is why the harness\n * scopes by a per-open id rather than by class: for the length of the exit\n * animation both are in the container, the dying one first.\n *\n * The coordinates the CDK requires are all zeros, and meaningless: jsdom has no\n * layout. Nothing here needs them — the event is dispatched on the element\n * itself, no hit test involved.\n */\n async rightClick(): Promise<void> {\n return (await this.host()).rightClick(0, 0);\n }\n\n /**\n * Open the menu with a touch long-press — hold a non-mouse pointer on the\n * target for 500ms — and wait until it is up.\n *\n * Worth its own method rather than an argument to `open()`, for the reason the\n * dropdown has `openByKeyboard()`: it is the only way to get TWO context menus\n * open at once. The press emits no `click` / `auxclick` / `contextmenu`, so it\n * is not an outside press for anyone else's menu, while a right-click is.\n *\n * The pointer fields the directive reads are assigned onto a synthetic event:\n * what matters is a primary pointer that is not a mouse. Movement beyond 10px,\n * a scroll, or an early lift cancels the hold in the component — none of which\n * this does.\n */\n async openByLongPress(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (await this.isOpen()) return;\n\n const host = await this.host();\n await host.dispatchEvent('pointerdown', {\n pointerType: 'touch',\n isPrimary: true,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n });\n\n const opened = await this.settled(true, timeout);\n // The finger comes off once the menu is up — after the hold, so it reads as a\n // completed long-press rather than the early lift that cancels one.\n await host.dispatchEvent('pointerup');\n\n if (opened) return;\n\n throw new Error(\n `WrContextMenuHarness.openByLongPress(): nothing opened within ${timeout}ms. The hold is a real 500ms ` +\n 'timer, so a spec on fake timers has to advance the clock itself and read isOpen().'\n );\n }\n\n /**\n * Dismiss the menu with Escape and wait until its pane has left the DOM.\n *\n * Escape is delivered by the CDK's keyboard dispatcher to the TOP-MOST overlay,\n * so with a later menu (or any other overlay) open on top, this one keeps\n * waiting its turn — that is what the throw below is about. The wait covers the\n * 220ms exit animation, so a spec can assert afterwards that nothing lingers.\n */\n async close(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (!(await this.isOpen())) return;\n\n // Captured first: the target drops the reference the instant the close starts,\n // and the wait below still has to know which pane to watch.\n const id = await this.menuId();\n await (await this.host()).sendKeys(TestKey.ESCAPE);\n\n if (await this.isOpen()) {\n throw new Error(\n 'WrContextMenuHarness.close(): Escape did not dismiss the menu. The CDK keyboard dispatcher ' +\n 'delivers it to the TOP-MOST overlay only, so anything opened after this menu takes it first.'\n );\n }\n\n return this.waitUntilGone(id, 'close', timeout);\n }\n\n /**\n * Dismiss the menu by pressing outside it, the way a user gets rid of one, and\n * wait until its pane has left the DOM.\n *\n * Sits out real time first: the directive ignores outside events for 200ms after\n * opening, so the right-click that opened the menu cannot immediately close it\n * again with its own trailing `auxclick`. The press then lands on the TARGET,\n * which is outside the pane and therefore counts — the page background is not\n * something a harness has a handle on. A target that carries a `(click)` of its\n * own will see it fire, so assert on the dismissal rather than on that handler.\n */\n async closeByOutsidePress(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (!(await this.isOpen())) return;\n\n const id = await this.menuId();\n await sleep(OUTSIDE_GUARD_MS);\n await this.forceStabilize();\n await (await this.host()).click();\n\n if (await this.isOpen()) {\n throw new Error(\n 'WrContextMenuHarness.closeByOutsidePress(): the menu is still open. A press inside the pane is ' +\n 'not an outside press, and neither is one that started inside it — this one lands on the target.'\n );\n }\n\n return this.waitUntilGone(id, 'closeByOutsidePress', timeout);\n }\n\n /**\n * The items in this menu, in DOM order.\n *\n * Only this menu's own: an open submenu is a separate pane, so its items are\n * `WrContextMenuItemHarness.getSubmenuItems()`, not part of this list. Dividers\n * are not items either.\n *\n * Throws while the menu is shut — the items do not exist anywhere until the\n * portal is attached, and an empty array reads like a menu that rendered\n * nothing.\n */\n async getItems(filters: WrContextMenuItemHarnessFilters = {}): Promise<WrContextMenuItemHarness[]> {\n return this.getAllHarnesses(WrContextMenuItemHarness.with(filters));\n }\n\n /** The labels of this menu's items, in DOM order. */\n async getItemTexts(): Promise<string[]> {\n const items = await this.getItems();\n return Promise.all(items.map(item => item.getText()));\n }\n\n /**\n * The label of the item that currently holds focus, or `null` when the\n * keyboard is elsewhere.\n *\n * The menu roves focus rather than drawing a cursor — it lands on the first\n * ENABLED item as the pane renders, and the arrows walk it over the enabled\n * items only — so this is the only way to ask where the keyboard is. It answers\n * `null` once a submenu has taken the cursor: that pane is a separate overlay,\n * and its own rows are reached through `WrContextMenuItemHarness`.\n */\n async getFocusedItemText(): Promise<string | null> {\n for (const item of await this.getItems()) {\n if (await item.isFocused()) return item.getText();\n }\n return null;\n }\n\n /**\n * How many separators this menu shows.\n *\n * Counted by `role=\"separator\"` rather than by `.wr-context-menu-divider`, so a\n * separator the consumer wrote themselves counts too — the role is what tells a\n * screen reader where one group of items ends. A separator is never a member of\n * `getItems()`.\n */\n async getDividerCount(): Promise<number> {\n const separators = await this.inMenuAll('[role=\"separator\"]');\n return separators.length;\n }\n\n /**\n * Open the menu if it is shut, then click the first item matching the filters.\n *\n * Picking a leaf DISMISSES the menu — unlike a dropdown, which stays up. The\n * dismissal is reported at once (the target drops its reference synchronously),\n * while the pane plays its exit animation for another 220ms.\n */\n async clickItem(filters: WrContextMenuItemHarnessFilters): Promise<void> {\n await this.open();\n\n const [item] = await this.getItems(filters);\n if (!item) {\n const offered = await this.getItemTexts();\n throw new Error(\n `WrContextMenuHarness.clickItem(): no item matched ${JSON.stringify(filters)}. ` +\n `The menu offers: ${offered.join(', ')}.`\n );\n }\n\n await item.click();\n }\n\n /**\n * A loader scoped to THIS target's menu — the content loader every\n * `HarnessLoader` method on this class runs through, `getItems()` included.\n *\n * Scoped by the published id rather than by `.wr-context-menu`: the overlay\n * container is shared by every pane on the page, so a bare class query would\n * answer with whichever menu opened first.\n */\n protected override async getRootHarnessLoader(): Promise<HarnessLoader> {\n return this.documentRootLocatorFactory().harnessLoaderFor(`#${await this.menuId()}`);\n }\n\n /** This target's menu element in the overlay. */\n private async menu(): Promise<TestElement> {\n return this.documentRootLocatorFactory().locatorFor(`#${await this.menuId()}`)();\n }\n\n /** Every element inside THIS menu matching the selector. */\n private async inMenuAll(selector: string): Promise<TestElement[]> {\n return this.documentRootLocatorFactory().locatorForAll(`#${await this.menuId()} ${selector}`)();\n }\n\n /** The id the target publishes as `aria-controls`, which its open menu carries. */\n private async menuId(): Promise<string> {\n const id = await (await this.host()).getAttribute('aria-controls');\n if (!id) {\n throw new Error(\n 'WrContextMenuHarness: no menu is open, so there is nothing inside it to read — call open() ' +\n 'first. The target publishes `aria-controls` only while its menu is up.'\n );\n }\n return id;\n }\n\n /** Poll until the pane with this id has been disposed. */\n private async waitUntilGone(id: string, method: string, timeout: number): Promise<void> {\n const locate = this.documentRootLocatorFactory().locatorForOptional(`#${id}`);\n\n for (let waited = 0; waited <= timeout; waited += POLL_STEP) {\n if ((await locate()) === null) return;\n\n await sleep(POLL_STEP);\n await this.forceStabilize();\n }\n\n throw new Error(\n `WrContextMenuHarness.${method}(): the menu was still in the DOM ${timeout}ms after it closed. The ` +\n 'directive keeps the pane alive for its 220ms exit animation and disposes it on a real timer, so a ' +\n 'spec on fake timers has to advance the clock itself.'\n );\n }\n\n /** Poll until `isOpen()` reports `open`, and say whether it did. */\n private async settled(open: boolean, timeout: number): Promise<boolean> {\n for (let waited = 0; waited <= timeout; waited += POLL_STEP) {\n if ((await this.isOpen()) === open) return true;\n\n await sleep(POLL_STEP);\n await this.forceStabilize();\n }\n return false;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;AAKG;AAEH;AACA,MAAM,eAAe,GAAG,IAAI;AAE5B;AACA,MAAM,SAAS,GAAG,EAAE;AAEpB;;;;;;;;;;;;AAYG;AACH,MAAM,cAAc,GAAG,UAAU,CAAC,UAAU;AAE5C;AACA,SAAS,KAAK,CAAC,EAAU,EAAA;AACvB,IAAA,OAAO,IAAI,OAAO,CAAC,OAAO,IAAG;AAC3B,QAAA,cAAc,CAAC,OAAO,EAAE,EAAE,CAAC;AAC7B,IAAA,CAAC,CAAC;AACJ;;ACjCA;;;;;AAKG;AAOH;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BG;AACG,MAAO,wBAAyB,SAAQ,gBAAgB,CAAA;;AAE5D,IAAA,OAAO,YAAY,GAAG,uBAAuB;;AAG7C,IAAA,OAAO,IAAI,CAAC,OAAA,GAA2C,EAAE,EAAA;AACvD,QAAA,OAAO,IAAI,gBAAgB,CAAC,wBAAwB,EAAE,OAAO;aAC1D,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC;aAC1G,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,OAAO,EAAE,QAAQ,KAAK,CAAC,MAAM,OAAO,CAAC,UAAU,EAAE,MAAM,QAAQ;aAC9G,SAAS,CACR,YAAY,EACZ,OAAO,CAAC,UAAU,EAClB,OAAO,OAAO,EAAE,UAAU,KAAK,CAAC,MAAM,OAAO,CAAC,UAAU,EAAE,MAAM,UAAU,CAC3E;IACL;AAEA;;;;;;AAMG;AACH,IAAA,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,CAAC,kBAAkB,CAAC,CAAA,CAAA,EAAI,EAAE,CAAA,CAAE,CAAC;AAE7E,QAAA,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE;AAC3D,YAAA,IAAI,CAAC,MAAM,MAAM,EAAE,MAAM,IAAI;gBAAE;AAE/B,YAAA,MAAM,KAAK,CAAC,SAAS,CAAC;AACtB,YAAA,MAAM,IAAI,CAAC,cAAc,EAAE;QAC7B;AAEA,QAAA,MAAM,IAAI,KAAK,CACb,wBAAwB,MAAM,CAAA,kCAAA,EAAqC,OAAO,CAAA,wBAAA,CAA0B;YAClG,oGAAoG;AACpG,YAAA,sDAAsD,CACzD;IACH;;AAGQ,IAAA,MAAM,OAAO,CAAC,IAAa,EAAE,OAAe,EAAA;AAClD,QAAA,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE;YAC3D,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI;AAAE,gBAAA,OAAO,IAAI;AAE/C,YAAA,MAAM,KAAK,CAAC,SAAS,CAAC;AACtB,YAAA,MAAM,IAAI,CAAC,cAAc,EAAE;QAC7B;AACA,QAAA,OAAO,KAAK;IACd;;;ACrZF;;AAEG;;;;"}
1
+ {"version":3,"file":"ngwr-context-menu-testing.mjs","sources":["../../../projects/lib/context-menu/testing/wait.ts","../../../projects/lib/context-menu/testing/wr-context-menu-item-harness.ts","../../../projects/lib/context-menu/testing/wr-context-menu-harness.ts","../../../projects/lib/context-menu/testing/ngwr-context-menu-testing.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\n/** How long the waiters poll before giving up, in ms. Generous next to the 500ms hold. */\nconst DEFAULT_TIMEOUT = 1000;\n\n/** How often they re-check, in ms. */\nconst POLL_STEP = 10;\n\n/**\n * The real `setTimeout`, captured at module load — before a spec can install\n * fake timers.\n *\n * Every delay in this component family is wall-clock: a plain `setTimeout` inside\n * the directive for the 500ms long-press hold, the 120ms submenu hover and the\n * 220ms exit animation the pane is held alive through, and a `performance.now()`\n * comparison for the 200ms window in which outside presses are ignored — no timer\n * behind that one, just elapsed time. Under zoneless change detection `whenStable()` resolves\n * without waiting for a macrotask, so the waiters have to let REAL time pass —\n * reading a faked global instead would mean the sleep never fires at all, and\n * the harness would hang where it should fail with the message it prepared.\n */\nconst realSetTimeout = globalThis.setTimeout;\n\n/** Let real time pass, whatever a spec has done to the global clock. */\nfunction sleep(ms: number): Promise<void> {\n return new Promise(resolve => {\n realSetTimeout(resolve, ms);\n });\n}\n\nexport { DEFAULT_TIMEOUT, POLL_STEP, sleep };\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, type HarnessLoader, HarnessPredicate, TestKey } from '@angular/cdk/testing';\n\nimport type { WrContextMenuItemHarnessFilters } from './interfaces';\nimport { DEFAULT_TIMEOUT, POLL_STEP, sleep } from './wait';\n\n/**\n * Test harness for one `<wr-context-menu-item>` inside a context menu.\n *\n * The selector is the CLASS rather than the element, matching\n * `.wr-dropdown-item`: it is public API, and it is on the host whichever way the\n * item was written. A `<wr-context-menu-divider>` is deliberately not one of\n * these — it announces `role=\"separator\"` rather than `menuitem`, so it is not\n * something a user can land on and not a member of the item list\n * (`WrContextMenuHarness.getDividerCount()` counts those).\n *\n * An item that owns a `[submenu]` is also the way INTO it: the submenu is a\n * second overlay pane, a sibling of the root menu rather than a child of the\n * item, and it is reached through the id the item publishes as `aria-controls`\n * while it is open. `getSubmenuItems()` answers with these same harnesses, so a\n * chain of any depth is walked by repeating the call.\n *\n * @example\n * ```ts\n * const [cut, copy, more] = await menu.getItems();\n *\n * expect(await copy.isDisabled()).toBe(true);\n * await more.openSubmenu();\n * await more.clickSubmenuItem({ text: 'Duplicate' });\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrContextMenuItemHarness extends ComponentHarness {\n /** The class the item paints on its host. */\n static hostSelector = '.wr-context-menu-item';\n\n /** Build a predicate that narrows the query. */\n static with(options: WrContextMenuItemHarnessFilters = {}): HarnessPredicate<WrContextMenuItemHarness> {\n return new HarnessPredicate(WrContextMenuItemHarness, options)\n .addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text))\n .addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled)\n .addOption(\n 'hasSubmenu',\n options.hasSubmenu,\n async (harness, hasSubmenu) => (await harness.hasSubmenu()) === hasSubmenu\n );\n }\n\n /**\n * The item's label, trimmed.\n *\n * Read from the label span, not from the host: a registered icon is written in\n * with `innerHTML`, so an icon carrying a `<title>` would otherwise become\n * part of the answer.\n */\n async getText(): Promise<string> {\n return (await this.locatorFor('.wr-context-menu-item__label')()).text();\n }\n\n /** The role the item announces — `menuitem`. */\n async getRole(): Promise<string | null> {\n return (await this.host()).getAttribute('role');\n }\n\n /**\n * Whether the item refuses activation.\n *\n * `aria-disabled`, not the `--disabled` modifier class: both are there, and\n * this is the one a screen reader is told.\n */\n async isDisabled(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-disabled')) === 'true';\n }\n\n /**\n * Whether the item owns a nested submenu.\n *\n * Read from `aria-haspopup`, not from the `--has-submenu` class or the\n * `[submenu]` input: the input is always BOUND (it takes a\n * `<wr-context-menu>` reference), so it never reaches the DOM, and the ARIA\n * property is what announces the item as a drill-down.\n */\n async hasSubmenu(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-haspopup')) === 'menu';\n }\n\n /** Whether this item's submenu is showing, per `aria-expanded`. */\n async isSubmenuOpen(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-expanded')) === 'true';\n }\n\n /** Whether the item shows a leading icon. */\n async hasIcon(): Promise<boolean> {\n return (await this.locatorForOptional('.wr-context-menu-item__icon')()) !== null;\n }\n\n /** The leading icon's registered name, or `null` when the item has no icon. */\n async getIconName(): Promise<string | null> {\n const icon = await this.locatorForOptional('.wr-context-menu-item__icon')();\n // `<wr-icon>` reflects the name it was asked for as `data-icon`, whether or not\n // that name is registered — so this answers what the item MEANT to draw.\n return icon ? icon.getAttribute('data-icon') : null;\n }\n\n /**\n * Whether the item holds the menu's roving focus.\n *\n * The menu moves focus onto its first enabled row as the pane renders and the\n * arrows walk it from there, so this is where the keyboard is. Opening a\n * submenu hands the cursor to the submenu's own first row, which leaves the\n * item that owns it unfocused while its pane is up.\n */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /**\n * Click the item. A disabled item throws instead.\n *\n * Refusing is the only honest answer. A browser never delivers the click at all:\n * `pointer-events: none` on the `--disabled` modifier takes the row out of the\n * hit test. jsdom loads no stylesheets, so a click dispatched here DOES land on\n * the host, and while the component's own handler refuses it (a disabled item\n * dismisses nothing), the consumer's `(click)` on that same host is a separate\n * listener and runs — so the spec would record an activation that cannot happen\n * in a browser. Assert `isDisabled()` instead.\n *\n * Activating a LEAF item dismisses the whole chain, root menu included. An item\n * that owns a submenu is not a leaf: clicking it does nothing at all (hover or\n * `openSubmenu()` is how it opens).\n */\n async click(): Promise<void> {\n if (await this.isDisabled()) {\n throw new Error(\n `WrContextMenuItemHarness.click(): \"${await this.getText()}\" is disabled, so clicking it would ` +\n 'report behaviour a browser cannot produce — the pointer is stopped by CSS, which jsdom does ' +\n 'not load. Assert isDisabled() instead.'\n );\n }\n\n return (await this.host()).click();\n }\n\n /**\n * Press Enter on the item — the keyboard equivalent of a click, and the route\n * a spec should prefer, since it needs no hit test.\n *\n * Deliberately does NOT refuse a disabled item the way `click()` does: the\n * component guards the keyboard path itself, so the key can be sent honestly\n * and a spec can assert that nothing happened. On an item that owns a submenu\n * this OPENS the submenu rather than activating the row, which is the APG\n * behaviour — activating it would close the menu and leave the submenu\n * unreachable from the keyboard.\n */\n async activateByKeyboard(): Promise<void> {\n return (await this.host()).sendKeys(TestKey.ENTER);\n }\n\n /**\n * Open this item's submenu with the right arrow and wait until it says so.\n *\n * The keyboard, not the pointer: it opens with no delay (hover waits out\n * 120ms — `openSubmenuByHover()` covers that path) and needs no coordinates,\n * which jsdom could not supply anyway. A keyboard open walks INTO the submenu,\n * so afterwards the cursor is on the submenu's first row and `isFocused()` on\n * this item is `false` — `openSubmenuByHover()` only shows the pane and leaves\n * the cursor where it was.\n */\n async openSubmenu(timeout = DEFAULT_TIMEOUT): Promise<void> {\n await this.assertHasSubmenu('openSubmenu');\n if (await this.isSubmenuOpen()) return;\n\n await (await this.host()).sendKeys(TestKey.RIGHT_ARROW);\n if (await this.isSubmenuOpen()) return;\n if (await this.settled(true, timeout)) return;\n\n throw new Error(\n `WrContextMenuItemHarness.openSubmenu(): \"${await this.getText()}\" did not open its submenu within ` +\n `${timeout}ms. A disabled item refuses the key outright — check isDisabled().`\n );\n }\n\n /**\n * Open this item's submenu by resting the pointer on it, the gesture a mouse\n * user actually makes, and wait out the hover delay.\n */\n async openSubmenuByHover(timeout = DEFAULT_TIMEOUT): Promise<void> {\n await this.assertHasSubmenu('openSubmenuByHover');\n if (await this.isSubmenuOpen()) return;\n\n await (await this.host()).hover();\n if (await this.settled(true, timeout)) return;\n\n throw new Error(\n `WrContextMenuItemHarness.openSubmenuByHover(): \"${await this.getText()}\" did not open its submenu ` +\n `within ${timeout}ms. The hover path is a real 120ms timer, so a spec on fake timers has to ` +\n 'advance the clock itself; a disabled item ignores the pointer entirely.'\n );\n }\n\n /** Close this item's submenu with the left arrow. An item without one open is left alone. */\n async closeSubmenu(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (!(await this.isSubmenuOpen())) return;\n\n await (await this.host()).sendKeys(TestKey.LEFT_ARROW);\n if (await this.settled(false, timeout)) return;\n\n throw new Error(\n `WrContextMenuItemHarness.closeSubmenu(): \"${await this.getText()}\" still reports its submenu open ` +\n `after ${timeout}ms.`\n );\n }\n\n /**\n * The items in THIS item's submenu, in DOM order.\n *\n * Throws while the submenu is shut, and while the item owns none: both would\n * otherwise answer with an empty array, which reads like a submenu that\n * rendered nothing and fails somewhere else entirely.\n */\n async getSubmenuItems(filters: WrContextMenuItemHarnessFilters = {}): Promise<WrContextMenuItemHarness[]> {\n const loader = await this.submenuLoader();\n return loader.getAllHarnesses(WrContextMenuItemHarness.with(filters));\n }\n\n /** The labels of the items in this item's submenu, in DOM order. */\n async getSubmenuItemTexts(): Promise<string[]> {\n const items = await this.getSubmenuItems();\n return Promise.all(items.map(item => item.getText()));\n }\n\n /**\n * Open the submenu if it is shut, then click the first item in it matching the\n * filters.\n *\n * Picking a leaf dismisses the whole chain — this item's submenu and the root\n * menu with it.\n */\n async clickSubmenuItem(filters: WrContextMenuItemHarnessFilters): Promise<void> {\n await this.openSubmenu();\n\n const [item] = await this.getSubmenuItems(filters);\n if (!item) {\n const offered = await this.getSubmenuItemTexts();\n throw new Error(\n `WrContextMenuItemHarness.clickSubmenuItem(): no item matched ${JSON.stringify(filters)}. ` +\n `The submenu of \"${await this.getText()}\" offers: ${offered.join(', ')}.`\n );\n }\n\n await item.click();\n }\n\n /**\n * A loader scoped to THIS item's submenu pane.\n *\n * Scoped by the published id rather than by `.wr-context-menu`: every pane in\n * the chain — the root menu and each open submenu — carries that class in one\n * shared overlay container, so a class query would answer with whichever\n * opened first.\n */\n private async submenuLoader(): Promise<HarnessLoader> {\n return this.documentRootLocatorFactory().harnessLoaderFor(`#${await this.submenuId()}`);\n }\n\n /** The id this item publishes as `aria-controls`, which its open submenu carries. */\n private async submenuId(): Promise<string> {\n const id = await (await this.host()).getAttribute('aria-controls');\n if (!id) {\n const label = await this.getText();\n throw new Error(\n `WrContextMenuItemHarness: \"${label}\" has no submenu showing. An item publishes aria-controls only ` +\n 'while its submenu is open — call openSubmenu() first, and check that it owns one at all with ' +\n 'hasSubmenu().'\n );\n }\n return id;\n }\n\n /** Fail early, and by name, when the item is not a drill-down at all. */\n private async assertHasSubmenu(method: string): Promise<void> {\n if (await this.hasSubmenu()) return;\n\n throw new Error(\n `WrContextMenuItemHarness.${method}(): \"${await this.getText()}\" owns no submenu, so there is ` +\n 'nothing to open. An item that does advertises it with aria-haspopup=\"menu\" — hasSubmenu().'\n );\n }\n\n /** Poll until `isSubmenuOpen()` reports `open`, and say whether it did. */\n private async settled(open: boolean, timeout: number): Promise<boolean> {\n for (let waited = 0; waited <= timeout; waited += POLL_STEP) {\n if ((await this.isSubmenuOpen()) === open) return true;\n\n await sleep(POLL_STEP);\n await this.forceStabilize();\n }\n return false;\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport {\n ContentContainerComponentHarness,\n type HarnessLoader,\n HarnessPredicate,\n TestKey,\n type TestElement,\n} from '@angular/cdk/testing';\n\nimport type { WrContextMenuHarnessFilters, WrContextMenuItemHarnessFilters } from './interfaces';\nimport { DEFAULT_TIMEOUT, POLL_STEP, sleep } from './wait';\nimport { WrContextMenuItemHarness } from './wr-context-menu-item-harness';\n\n/**\n * How long to sit still before an outside press is allowed to dismiss the menu.\n *\n * The directive ignores outside events for 200ms after opening, because the very\n * right-click that opened the menu still has its own `mouseup` / `auxclick`\n * pending — without the window, lifting the finger would shut the menu again.\n */\nconst OUTSIDE_GUARD_MS = 250;\n\n/**\n * Test harness for `[wrContextMenu]` — the right-click target, and the menu it\n * opens.\n *\n * The harness matches the TARGET, because that is the only part of a context\n * menu in the fixture: `<wr-context-menu>` renders nothing of its own (it hands\n * over an `<ng-template>` and hides its host), and the menu is portalled into the\n * overlay container, a sibling of the whole app. So every item is read through\n * the document root, scoped by the `aria-controls` id the target publishes while\n * its menu is up — which is what keeps two menus on one page from answering with\n * each other's items, and what keeps a re-opened menu from answering with the one\n * still playing its exit animation.\n *\n * That scoped loader is also this harness's CONTENT loader, so\n * `menu.getHarness(…)` resolves inside THIS menu: a component the consumer\n * projected into the menu is reachable without the spec ever touching the\n * overlay.\n *\n * **How it differs from `WrDropdownHarness`, its closest sibling.**\n *\n * - The gesture is a real `contextmenu` event, not a click — `open()` sends one,\n * and `openByLongPress()` covers the touch path. There is no toggle: a second\n * right-click re-opens the menu at the new pointer position.\n * - Activating an item DISMISSES the menu (a dropdown's stays up), so\n * `clickItem()` leaves it closed.\n * - Submenus are a first-class input here rather than a nested trigger, so they\n * are driven from {@link WrContextMenuItemHarness}.\n * - Focus moves in on EVERY open, where a dropdown's does so only when a\n * keyboard opened it. There is no hover trigger here — a right-click, Shift+F10\n * or a long-press is always a deliberate request for the menu — so\n * `getFocusedItemText()` answers straight after `open()`.\n *\n * **Timing.** The waits are real: a 500ms `setTimeout` for the long-press hold and\n * another 220ms one for the exit animation the pane is held alive through, plus the\n * outside-press window above — that one is a `performance.now()` comparison against\n * the moment the menu opened rather than a timer, so only wall-clock time gets past\n * it. The methods that must sit out real time say so; a spec on fake timers should\n * drive the clock itself and read `isOpen()`.\n *\n * @example\n * ```ts\n * const menu = await loader.getHarness(WrContextMenuHarness.with({ text: 'Right-click me' }));\n *\n * await menu.open();\n * expect(await menu.getItemTexts()).toEqual(['Cut', 'Copy', 'More']);\n *\n * await menu.clickItem({ text: 'Cut' });\n * expect(await menu.isOpen()).toBe(false);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrContextMenuHarness extends ContentContainerComponentHarness {\n /** The directive's host — whatever element the consumer put `[wrContextMenu]` on. */\n static hostSelector = '.wr-context-menu-host';\n\n /** Build a predicate that narrows the query. */\n static with(options: WrContextMenuHarnessFilters = {}): HarnessPredicate<WrContextMenuHarness> {\n return new HarnessPredicate(WrContextMenuHarness, options)\n .addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getTargetText(), text))\n .addOption('open', options.open, async (harness, open) => (await harness.isOpen()) === open);\n }\n\n /** The target's own visible text — the content that gets right-clicked. */\n async getTargetText(): Promise<string> {\n return (await this.host()).text();\n }\n\n /**\n * Whether this target's menu is showing.\n *\n * Read from the target rather than from the overlay, and that is the whole\n * point: a closed menu's pane stays in the DOM for its exit animation, while\n * the reference is dropped the instant the close begins. Asking the DOM\n * \"is a menu present\" would answer `true` for a quarter of a second after every\n * dismissal.\n *\n * So the answer is only as good as the directive's claim on `aria-controls`:\n * put `[wrContextMenu]` on an element that publishes one of its own and the two\n * fight over a single attribute.\n */\n async isOpen(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-controls')) !== null;\n }\n\n /** The role the menu announces — `menu`. Throws while no menu is open. */\n async getMenuRole(): Promise<string | null> {\n return (await this.menu()).getAttribute('role');\n }\n\n /**\n * Everything the open menu renders as text, runs of whitespace collapsed.\n *\n * Wider than `getItemTexts()` on purpose: `<wr-context-menu>` projects whatever\n * it is given, so a section heading or any other markup a consumer put between\n * the items shows up here and in no item harness. Dividers contribute nothing —\n * they render no text.\n *\n * Expect to match a FRAGMENT of this rather than the whole of it: Angular\n * strips the whitespace between elements at compile time, so the labels run\n * together (`'Pick oneAppleBanana'`). The collapsing here only tidies newlines\n * inside a single block of projected text.\n */\n async getMenuText(): Promise<string> {\n return (await (await this.menu()).text()).replace(/\\s+/g, ' ').trim();\n }\n\n /**\n * Open the menu by right-clicking the target, the gesture the directive\n * actually listens for (`contextmenu`, which is also what Shift+F10 sends).\n *\n * An already-open menu is left alone — `rightClick()` is the raw gesture if\n * what you want is the re-open.\n *\n * Note for a spec with two targets: a `contextmenu` event anywhere is an\n * outside pointer event for every OTHER open menu, so this dismisses them on\n * the way in. `openByLongPress()` is the route that does not.\n */\n async open(): Promise<void> {\n if (await this.isOpen()) return;\n\n await this.rightClick();\n if (await this.isOpen()) return;\n\n throw new Error(\n 'WrContextMenuHarness.open(): the right-click did not open a menu. The directive answers ' +\n '`contextmenu` on its own host, so check this is the element you put [wrContextMenu] on. One ' +\n 'deliberate exception: a right-click within 700ms of a long-press open is swallowed, because touch ' +\n 'browsers fire a synthetic contextmenu after the hold.'\n );\n }\n\n /**\n * Send a `contextmenu` to the target whatever state the menu is in.\n *\n * On an open menu this re-opens it at the new pointer position — the previous\n * pane is dismissed and a fresh one takes its place, which is why the harness\n * scopes by a per-open id rather than by class: for the length of the exit\n * animation both are in the container, the dying one first.\n *\n * The coordinates the CDK requires are all zeros, and meaningless: jsdom has no\n * layout. Nothing here needs them — the event is dispatched on the element\n * itself, no hit test involved.\n */\n async rightClick(): Promise<void> {\n return (await this.host()).rightClick(0, 0);\n }\n\n /**\n * Open the menu with a touch long-press — hold a non-mouse pointer on the\n * target for 500ms — and wait until it is up.\n *\n * Worth its own method rather than an argument to `open()`, for the reason the\n * dropdown has `openByKeyboard()`: it is the only way to get TWO context menus\n * open at once. The press emits no `click` / `auxclick` / `contextmenu`, so it\n * is not an outside press for anyone else's menu, while a right-click is.\n *\n * The pointer fields the directive reads are assigned onto a synthetic event:\n * what matters is a primary pointer that is not a mouse. Movement beyond 10px,\n * a scroll, or an early lift cancels the hold in the component — none of which\n * this does.\n */\n async openByLongPress(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (await this.isOpen()) return;\n\n const host = await this.host();\n await host.dispatchEvent('pointerdown', {\n pointerType: 'touch',\n isPrimary: true,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n });\n\n const opened = await this.settled(true, timeout);\n // The finger comes off once the menu is up — after the hold, so it reads as a\n // completed long-press rather than the early lift that cancels one.\n await host.dispatchEvent('pointerup');\n\n if (opened) return;\n\n throw new Error(\n `WrContextMenuHarness.openByLongPress(): nothing opened within ${timeout}ms. The hold is a real 500ms ` +\n 'timer, so a spec on fake timers has to advance the clock itself and read isOpen().'\n );\n }\n\n /**\n * Dismiss the menu with Escape and wait until its pane has left the DOM.\n *\n * Escape is delivered by the CDK's keyboard dispatcher to the TOP-MOST overlay,\n * so with a later menu (or any other overlay) open on top, this one keeps\n * waiting its turn — that is what the throw below is about. The wait covers the\n * 220ms exit animation, so a spec can assert afterwards that nothing lingers.\n */\n async close(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (!(await this.isOpen())) return;\n\n // Captured first: the target drops the reference the instant the close starts,\n // and the wait below still has to know which pane to watch.\n const id = await this.menuId();\n await (await this.host()).sendKeys(TestKey.ESCAPE);\n\n if (await this.isOpen()) {\n throw new Error(\n 'WrContextMenuHarness.close(): Escape did not dismiss the menu. The CDK keyboard dispatcher ' +\n 'delivers it to the TOP-MOST overlay only, so anything opened after this menu takes it first.'\n );\n }\n\n return this.waitUntilGone(id, 'close', timeout);\n }\n\n /**\n * Dismiss the menu by pressing outside it, the way a user gets rid of one, and\n * wait until its pane has left the DOM.\n *\n * Sits out real time first: the directive ignores outside events for 200ms after\n * opening, so the right-click that opened the menu cannot immediately close it\n * again with its own trailing `auxclick`. The press then lands on the TARGET,\n * which is outside the pane and therefore counts — the page background is not\n * something a harness has a handle on. A target that carries a `(click)` of its\n * own will see it fire, so assert on the dismissal rather than on that handler.\n */\n async closeByOutsidePress(timeout = DEFAULT_TIMEOUT): Promise<void> {\n if (!(await this.isOpen())) return;\n\n const id = await this.menuId();\n await sleep(OUTSIDE_GUARD_MS);\n await this.forceStabilize();\n await (await this.host()).click();\n\n if (await this.isOpen()) {\n throw new Error(\n 'WrContextMenuHarness.closeByOutsidePress(): the menu is still open. A press inside the pane is ' +\n 'not an outside press, and neither is one that started inside it — this one lands on the target.'\n );\n }\n\n return this.waitUntilGone(id, 'closeByOutsidePress', timeout);\n }\n\n /**\n * The items in this menu, in DOM order.\n *\n * Only this menu's own: an open submenu is a separate pane, so its items are\n * `WrContextMenuItemHarness.getSubmenuItems()`, not part of this list. Dividers\n * are not items either.\n *\n * Throws while the menu is shut — the items do not exist anywhere until the\n * portal is attached, and an empty array reads like a menu that rendered\n * nothing.\n */\n async getItems(filters: WrContextMenuItemHarnessFilters = {}): Promise<WrContextMenuItemHarness[]> {\n return this.getAllHarnesses(WrContextMenuItemHarness.with(filters));\n }\n\n /** The labels of this menu's items, in DOM order. */\n async getItemTexts(): Promise<string[]> {\n const items = await this.getItems();\n return Promise.all(items.map(item => item.getText()));\n }\n\n /**\n * The label of the item that currently holds focus, or `null` when the\n * keyboard is elsewhere.\n *\n * The menu roves focus rather than drawing a cursor — it lands on the first\n * ENABLED item as the pane renders, and the arrows walk it over the enabled\n * items only — so this is the only way to ask where the keyboard is. It answers\n * `null` once a submenu has taken the cursor: that pane is a separate overlay,\n * and its own rows are reached through `WrContextMenuItemHarness`.\n */\n async getFocusedItemText(): Promise<string | null> {\n for (const item of await this.getItems()) {\n if (await item.isFocused()) return item.getText();\n }\n return null;\n }\n\n /**\n * How many separators this menu shows.\n *\n * Counted by `role=\"separator\"` rather than by `.wr-context-menu-divider`, so a\n * separator the consumer wrote themselves counts too — the role is what tells a\n * screen reader where one group of items ends. A separator is never a member of\n * `getItems()`.\n */\n async getDividerCount(): Promise<number> {\n const separators = await this.inMenuAll('[role=\"separator\"]');\n return separators.length;\n }\n\n /**\n * Open the menu if it is shut, then click the first item matching the filters.\n *\n * Picking a leaf DISMISSES the menu — unlike a dropdown, which stays up. The\n * dismissal is reported at once (the target drops its reference synchronously),\n * while the pane plays its exit animation for another 220ms.\n */\n async clickItem(filters: WrContextMenuItemHarnessFilters): Promise<void> {\n await this.open();\n\n const [item] = await this.getItems(filters);\n if (!item) {\n const offered = await this.getItemTexts();\n throw new Error(\n `WrContextMenuHarness.clickItem(): no item matched ${JSON.stringify(filters)}. ` +\n `The menu offers: ${offered.join(', ')}.`\n );\n }\n\n await item.click();\n }\n\n /**\n * A loader scoped to THIS target's menu — the content loader every\n * `HarnessLoader` method on this class runs through, `getItems()` included.\n *\n * Scoped by the published id rather than by `.wr-context-menu`: the overlay\n * container is shared by every pane on the page, so a bare class query would\n * answer with whichever menu opened first.\n */\n protected override async getRootHarnessLoader(): Promise<HarnessLoader> {\n return this.documentRootLocatorFactory().harnessLoaderFor(`#${await this.menuId()}`);\n }\n\n /** This target's menu element in the overlay. */\n private async menu(): Promise<TestElement> {\n return this.documentRootLocatorFactory().locatorFor(`#${await this.menuId()}`)();\n }\n\n /** Every element inside THIS menu matching the selector. */\n private async inMenuAll(selector: string): Promise<TestElement[]> {\n return this.documentRootLocatorFactory().locatorForAll(`#${await this.menuId()} ${selector}`)();\n }\n\n /** The id the target publishes as `aria-controls`, which its open menu carries. */\n private async menuId(): Promise<string> {\n const id = await (await this.host()).getAttribute('aria-controls');\n if (!id) {\n throw new Error(\n 'WrContextMenuHarness: no menu is open, so there is nothing inside it to read — call open() ' +\n 'first. The target publishes `aria-controls` only while its menu is up.'\n );\n }\n return id;\n }\n\n /** Poll until the pane with this id has been disposed. */\n private async waitUntilGone(id: string, method: string, timeout: number): Promise<void> {\n const locate = this.documentRootLocatorFactory().locatorForOptional(`#${id}`);\n\n for (let waited = 0; waited <= timeout; waited += POLL_STEP) {\n if ((await locate()) === null) return;\n\n await sleep(POLL_STEP);\n await this.forceStabilize();\n }\n\n throw new Error(\n `WrContextMenuHarness.${method}(): the menu was still in the DOM ${timeout}ms after it closed. The ` +\n 'directive keeps the pane alive for its 220ms exit animation and disposes it on a real timer, so a ' +\n 'spec on fake timers has to advance the clock itself.'\n );\n }\n\n /** Poll until `isOpen()` reports `open`, and say whether it did. */\n private async settled(open: boolean, timeout: number): Promise<boolean> {\n for (let waited = 0; waited <= timeout; waited += POLL_STEP) {\n if ((await this.isOpen()) === open) return true;\n\n await sleep(POLL_STEP);\n await this.forceStabilize();\n }\n return false;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;;;;AAKG;AAEH;AACA,MAAM,eAAe,GAAG,IAAI;AAE5B;AACA,MAAM,SAAS,GAAG,EAAE;AAEpB;;;;;;;;;;;;AAYG;AACH,MAAM,cAAc,GAAG,UAAU,CAAC,UAAU;AAE5C;AACA,SAAS,KAAK,CAAC,EAAU,EAAA;AACvB,IAAA,OAAO,IAAI,OAAO,CAAC,OAAO,IAAG;AAC3B,QAAA,cAAc,CAAC,OA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IACH;;AAGQ,IAAA,MAAM,OAAO,CAAC,IAAa,EAAE,OAAe,EAAA;AAClD,QAAA,KAAK,IAAI,MAAM,GAAG,CAAC,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE;YAC3D,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI;AAAE,gBAAA,OAAO,IAAI;AAE/C,YAAA,MAAM,KAAK,CAAC,SAAS,CAAC;AACtB,YAAA,MAAM,IAAI,CAAC,cAAc,EAAE;QAC7B;AACA,QAAA,OAAO,KAAK;IACd;;;ACrZF;;AAEG;;"}
@@ -511,10 +511,10 @@ class WrContextMenuItem {
511
511
  isRtl() {
512
512
  return this.dir?.value === 'rtl';
513
513
  }
514
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenuItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
515
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: WrContextMenuItem, isStandalone: true, selector: "wr-context-menu-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "menuitem" }, listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave($event)", "click": "onClick()", "keydown.enter": "activate($event)", "keydown.space": "activate($event)", "keydown.arrowRight": "onArrowRight($event)", "keydown.arrowLeft": "onArrowLeft($event)" }, properties: { "class": "classes()", "attr.tabindex": "-1", "attr.aria-disabled": "disabled() ? true : null", "attr.aria-haspopup": "submenu() ? \"menu\" : null", "attr.aria-expanded": "submenu() ? (submenuOpen ? \"true\" : \"false\") : null", "attr.aria-controls": "submenuId()" } }, ngImport: i0, template: "@if (icon(); as name) {\n <wr-icon class=\"wr-context-menu-item__icon\" [name]=\"name\" size=\"14\" />\n}\n<span class=\"wr-context-menu-item__label\"><ng-content /></span>\n@if (submenu()) {\n <svg\n class=\"wr-icon__svg wr-context-menu-item__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n}\n", dependencies: [{ kind: "component", type: WrIcon, selector: "wr-icon", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None });
514
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenuItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
515
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: WrContextMenuItem, isStandalone: true, selector: "wr-context-menu-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "menuitem" }, listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave($event)", "click": "onClick()", "keydown.enter": "activate($event)", "keydown.space": "activate($event)", "keydown.arrowRight": "onArrowRight($event)", "keydown.arrowLeft": "onArrowLeft($event)" }, properties: { "class": "classes()", "attr.tabindex": "-1", "attr.aria-disabled": "disabled() ? true : null", "attr.aria-haspopup": "submenu() ? \"menu\" : null", "attr.aria-expanded": "submenu() ? (submenuOpen ? \"true\" : \"false\") : null", "attr.aria-controls": "submenuId()" } }, ngImport: i0, template: "@if (icon(); as name) {\n <wr-icon class=\"wr-context-menu-item__icon\" [name]=\"name\" size=\"14\" />\n}\n<span class=\"wr-context-menu-item__label\"><ng-content /></span>\n@if (submenu()) {\n <svg\n class=\"wr-icon__svg wr-context-menu-item__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n}\n", dependencies: [{ kind: "component", type: WrIcon, selector: "wr-icon", inputs: ["name"] }], encapsulation: i0.ViewEncapsulation.None });
516
516
  }
517
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenuItem, decorators: [{
517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenuItem, decorators: [{
518
518
  type: Component,
519
519
  args: [{ selector: 'wr-context-menu-item', encapsulation: ViewEncapsulation.None, host: {
520
520
  role: 'menuitem',
@@ -1072,10 +1072,10 @@ class WrContextMenu {
1072
1072
  this.closeOverlay();
1073
1073
  }, WrContextMenu.LEAVE_DELAY);
1074
1074
  }
1075
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1076
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", type: WrContextMenu, isStandalone: true, selector: "[wrContextMenu]", inputs: { menu: { classPropertyName: "menu", publicName: "wrContextMenu", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "contextmenu": "onContextMenu($event)", "pointerdown": "onPointerDown($event)", "pointermove": "onPointerMove($event)", "pointerup": "onPointerUp()", "pointercancel": "onPointerUp()" }, properties: { "attr.aria-controls": "openMenuId()" }, classAttribute: "wr-context-menu-host" }, exportAs: ["wrContextMenuTrigger"], ngImport: i0 });
1075
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1076
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.7", type: WrContextMenu, isStandalone: true, selector: "[wrContextMenu]", inputs: { menu: { classPropertyName: "menu", publicName: "wrContextMenu", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "contextmenu": "onContextMenu($event)", "pointerdown": "onPointerDown($event)", "pointermove": "onPointerMove($event)", "pointerup": "onPointerUp()", "pointercancel": "onPointerUp()" }, properties: { "attr.aria-controls": "openMenuId()" }, classAttribute: "wr-context-menu-host" }, exportAs: ["wrContextMenuTrigger"], ngImport: i0 });
1077
1077
  }
1078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenu, decorators: [{
1078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenu, decorators: [{
1079
1079
  type: Directive,
1080
1080
  args: [{
1081
1081
  selector: '[wrContextMenu]',
@@ -1121,10 +1121,10 @@ class WrContextMenuPanel {
1121
1121
  /** The internal template the directive portals into the overlay. @internal */
1122
1122
  contentTpl = viewChild.required(TemplateRef, /* @ts-ignore */
1123
1123
  ...(ngDevMode ? [{ debugName: "contentTpl" }] : /* istanbul ignore next */ []));
1124
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenuPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
1125
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.6", type: WrContextMenuPanel, isStandalone: true, selector: "wr-context-menu", host: { properties: { "style.display": "'none'" } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], exportAs: ["wrContextMenu"], ngImport: i0, template: '<ng-template><div class="wr-context-menu" role="menu"><ng-content /></div></ng-template>', isInline: true, encapsulation: i0.ViewEncapsulation.None });
1124
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenuPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
1125
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", type: WrContextMenuPanel, isStandalone: true, selector: "wr-context-menu", host: { properties: { "style.display": "'none'" } }, viewQueries: [{ propertyName: "contentTpl", first: true, predicate: TemplateRef, descendants: true, isSignal: true }], exportAs: ["wrContextMenu"], ngImport: i0, template: '<ng-template><div class="wr-context-menu" role="menu"><ng-content /></div></ng-template>', isInline: true, encapsulation: i0.ViewEncapsulation.None });
1126
1126
  }
1127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenuPanel, decorators: [{
1127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenuPanel, decorators: [{
1128
1128
  type: Component,
1129
1129
  args: [{
1130
1130
  selector: 'wr-context-menu',
@@ -1161,10 +1161,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
1161
1161
  * ```
1162
1162
  */
1163
1163
  class WrContextMenuDivider {
1164
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenuDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });
1165
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.6", type: WrContextMenuDivider, isStandalone: true, selector: "wr-context-menu-divider", host: { attributes: { "role": "separator", "aria-orientation": "horizontal" }, classAttribute: "wr-context-menu-divider" }, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None });
1164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenuDivider, deps: [], target: i0.ɵɵFactoryTarget.Component });
1165
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", type: WrContextMenuDivider, isStandalone: true, selector: "wr-context-menu-divider", host: { attributes: { "role": "separator", "aria-orientation": "horizontal" }, classAttribute: "wr-context-menu-divider" }, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None });
1166
1166
  }
1167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: WrContextMenuDivider, decorators: [{
1167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: WrContextMenuDivider, decorators: [{
1168
1168
  type: Component,
1169
1169
  args: [{
1170
1170
  selector: 'wr-context-menu-divider',