ngwr 16.2.0 → 16.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/color-picker/styles/_index.scss +21 -0
  5. package/date-picker/styles/_index.scss +19 -0
  6. package/dropdown/styles/_index.scss +13 -19
  7. package/fesm2022/ngwr-affix.mjs +3 -3
  8. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  9. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  10. package/fesm2022/ngwr-alert.mjs +3 -3
  11. package/fesm2022/ngwr-anchor.mjs +17 -6
  12. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  13. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  14. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  15. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  16. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  17. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  18. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  19. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  20. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  21. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  22. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  23. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  25. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  26. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  27. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  28. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  29. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  30. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  31. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  32. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  33. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  34. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  35. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  36. package/fesm2022/ngwr-avatar.mjs +3 -3
  37. package/fesm2022/ngwr-back-top.mjs +3 -3
  38. package/fesm2022/ngwr-badge.mjs +129 -11
  39. package/fesm2022/ngwr-badge.mjs.map +1 -1
  40. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  42. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  43. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  45. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  46. package/fesm2022/ngwr-burger.mjs +3 -3
  47. package/fesm2022/ngwr-button.mjs +6 -6
  48. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  49. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  50. package/fesm2022/ngwr-calendar.mjs +500 -73
  51. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  52. package/fesm2022/ngwr-card.mjs +9 -9
  53. package/fesm2022/ngwr-carousel.mjs +6 -6
  54. package/fesm2022/ngwr-cascader.mjs +37 -16
  55. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  57. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  61. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  63. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  64. package/fesm2022/ngwr-charts-core.mjs +3 -3
  65. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  66. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  68. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  69. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  70. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  71. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  73. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  75. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  77. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  79. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  83. package/fesm2022/ngwr-checkbox.mjs +6 -6
  84. package/fesm2022/ngwr-clipboard.mjs +3 -3
  85. package/fesm2022/ngwr-collapse.mjs +9 -9
  86. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  87. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  88. package/fesm2022/ngwr-color-picker.mjs +153 -37
  89. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  90. package/fesm2022/ngwr-command-palette.mjs +3 -3
  91. package/fesm2022/ngwr-comment.mjs +10 -6
  92. package/fesm2022/ngwr-comment.mjs.map +1 -1
  93. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  94. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  95. package/fesm2022/ngwr-compare.mjs +3 -3
  96. package/fesm2022/ngwr-context-menu.mjs +12 -12
  97. package/fesm2022/ngwr-cookie.mjs +3 -3
  98. package/fesm2022/ngwr-copy-value.mjs +3 -3
  99. package/fesm2022/ngwr-counter.mjs +6 -6
  100. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  101. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-date-picker.mjs +342 -69
  103. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  105. package/fesm2022/ngwr-date.mjs +59 -8
  106. package/fesm2022/ngwr-date.mjs.map +1 -1
  107. package/fesm2022/ngwr-density.mjs +6 -6
  108. package/fesm2022/ngwr-descriptions.mjs +6 -6
  109. package/fesm2022/ngwr-dialog.mjs +18 -18
  110. package/fesm2022/ngwr-directives.mjs +15 -15
  111. package/fesm2022/ngwr-divider.mjs +3 -3
  112. package/fesm2022/ngwr-drawer.mjs +51 -29
  113. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  114. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  115. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  116. package/fesm2022/ngwr-dropdown.mjs +52 -95
  117. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  118. package/fesm2022/ngwr-editor.mjs +4 -3
  119. package/fesm2022/ngwr-editor.mjs.map +1 -1
  120. package/fesm2022/ngwr-empty.mjs +3 -3
  121. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  122. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  123. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  124. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  125. package/fesm2022/ngwr-file-upload.mjs +274 -15
  126. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  127. package/fesm2022/ngwr-form.mjs +9 -9
  128. package/fesm2022/ngwr-form.mjs.map +1 -1
  129. package/fesm2022/ngwr-graph-testing.mjs +3 -0
  130. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  131. package/fesm2022/ngwr-graph.mjs +102 -42
  132. package/fesm2022/ngwr-graph.mjs.map +1 -1
  133. package/fesm2022/ngwr-hotkey.mjs +6 -6
  134. package/fesm2022/ngwr-i18n-ar.mjs +19 -4
  135. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  136. package/fesm2022/ngwr-i18n-cs.mjs +19 -4
  137. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-de.mjs +19 -4
  139. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-en.mjs +19 -4
  141. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-es.mjs +19 -4
  143. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-fr.mjs +19 -4
  145. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-he.mjs +19 -4
  147. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-hi.mjs +19 -4
  149. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-id.mjs +19 -4
  151. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-it.mjs +19 -4
  153. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-ja.mjs +19 -4
  155. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-ko.mjs +19 -4
  157. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-nl.mjs +19 -4
  159. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-pl.mjs +19 -4
  161. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-pt.mjs +19 -4
  163. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-ru.mjs +19 -4
  165. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-sv.mjs +19 -4
  167. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-tr.mjs +19 -4
  169. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-uk.mjs +19 -4
  171. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-vi.mjs +19 -4
  173. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  174. package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
  175. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-zh.mjs +19 -4
  177. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n.mjs +9 -9
  179. package/fesm2022/ngwr-icon.mjs +6 -6
  180. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  181. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  182. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  183. package/fesm2022/ngwr-input-number.mjs +68 -7
  184. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  185. package/fesm2022/ngwr-input-otp.mjs +23 -3
  186. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  187. package/fesm2022/ngwr-input-testing.mjs +24 -1
  188. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  189. package/fesm2022/ngwr-input.mjs +152 -36
  190. package/fesm2022/ngwr-input.mjs.map +1 -1
  191. package/fesm2022/ngwr-keyboard.mjs +3 -3
  192. package/fesm2022/ngwr-knob.mjs +3 -3
  193. package/fesm2022/ngwr-layout.mjs +15 -15
  194. package/fesm2022/ngwr-lightbox.mjs +8 -8
  195. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  196. package/fesm2022/ngwr-list.mjs +8 -8
  197. package/fesm2022/ngwr-list.mjs.map +1 -1
  198. package/fesm2022/ngwr-load-state.mjs +15 -15
  199. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  200. package/fesm2022/ngwr-mention.mjs +6 -6
  201. package/fesm2022/ngwr-meta.mjs +6 -6
  202. package/fesm2022/ngwr-overlay.mjs +175 -13
  203. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  204. package/fesm2022/ngwr-page-header.mjs +3 -3
  205. package/fesm2022/ngwr-pagination.mjs +5 -3
  206. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  207. package/fesm2022/ngwr-pipes.mjs +31 -29
  208. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  209. package/fesm2022/ngwr-platform.mjs +9 -9
  210. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  211. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  212. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  213. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  214. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  215. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  216. package/fesm2022/ngwr-popover.mjs +58 -156
  217. package/fesm2022/ngwr-popover.mjs.map +1 -1
  218. package/fesm2022/ngwr-progress.mjs +50 -9
  219. package/fesm2022/ngwr-progress.mjs.map +1 -1
  220. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  221. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  222. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  223. package/fesm2022/ngwr-qr.mjs +3 -3
  224. package/fesm2022/ngwr-radio.mjs +6 -6
  225. package/fesm2022/ngwr-rating.mjs +3 -3
  226. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  227. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  228. package/fesm2022/ngwr-resizable.mjs +3 -3
  229. package/fesm2022/ngwr-result.mjs +12 -12
  230. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  231. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  232. package/fesm2022/ngwr-schema-form.mjs +415 -19
  233. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  234. package/fesm2022/ngwr-scroll.mjs +3 -3
  235. package/fesm2022/ngwr-segmented.mjs +3 -3
  236. package/fesm2022/ngwr-select-testing.mjs +19 -0
  237. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  238. package/fesm2022/ngwr-select.mjs +263 -83
  239. package/fesm2022/ngwr-select.mjs.map +1 -1
  240. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  241. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  242. package/fesm2022/ngwr-sidebar.mjs +3 -3
  243. package/fesm2022/ngwr-skeleton.mjs +3 -3
  244. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  245. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  246. package/fesm2022/ngwr-slider.mjs +21 -3
  247. package/fesm2022/ngwr-slider.mjs.map +1 -1
  248. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  249. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  250. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  251. package/fesm2022/ngwr-spinner.mjs +3 -3
  252. package/fesm2022/ngwr-splitter.mjs +3 -3
  253. package/fesm2022/ngwr-statistic.mjs +9 -9
  254. package/fesm2022/ngwr-stepper.mjs +42 -11
  255. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  256. package/fesm2022/ngwr-storage.mjs +3 -3
  257. package/fesm2022/ngwr-switch.mjs +3 -3
  258. package/fesm2022/ngwr-table-testing.mjs +88 -2
  259. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  260. package/fesm2022/ngwr-table.mjs +891 -74
  261. package/fesm2022/ngwr-table.mjs.map +1 -1
  262. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  263. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  264. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-tabs.mjs +15 -10
  266. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  267. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  268. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  269. package/fesm2022/ngwr-textarea.mjs +128 -16
  270. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  271. package/fesm2022/ngwr-theme.mjs +3 -3
  272. package/fesm2022/ngwr-timeline.mjs +6 -6
  273. package/fesm2022/ngwr-toast.mjs +40 -19
  274. package/fesm2022/ngwr-toast.mjs.map +1 -1
  275. package/fesm2022/ngwr-toolbar.mjs +3 -3
  276. package/fesm2022/ngwr-tour.mjs +6 -6
  277. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  278. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  279. package/fesm2022/ngwr-transfer.mjs +24 -5
  280. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  281. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  282. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tree.mjs +966 -78
  284. package/fesm2022/ngwr-tree.mjs.map +1 -1
  285. package/fesm2022/ngwr-typography.mjs +3 -3
  286. package/fesm2022/ngwr-utils-router.mjs +3 -3
  287. package/fesm2022/ngwr-utils.mjs +34 -1
  288. package/fesm2022/ngwr-utils.mjs.map +1 -1
  289. package/fesm2022/ngwr-version.mjs +1 -1
  290. package/fesm2022/ngwr-version.mjs.map +1 -1
  291. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  292. package/fesm2022/ngwr-window.mjs +33 -22
  293. package/fesm2022/ngwr-window.mjs.map +1 -1
  294. package/file-upload/styles/_index.scss +156 -0
  295. package/i18n/ar.json +21 -4
  296. package/i18n/cs.json +21 -4
  297. package/i18n/de.json +21 -4
  298. package/i18n/en.json +21 -4
  299. package/i18n/es.json +21 -4
  300. package/i18n/fr.json +21 -4
  301. package/i18n/he.json +21 -4
  302. package/i18n/hi.json +21 -4
  303. package/i18n/id.json +21 -4
  304. package/i18n/it.json +21 -4
  305. package/i18n/ja.json +21 -4
  306. package/i18n/ko.json +21 -4
  307. package/i18n/nl.json +21 -4
  308. package/i18n/pl.json +21 -4
  309. package/i18n/pt.json +21 -4
  310. package/i18n/ru.json +21 -4
  311. package/i18n/sv.json +21 -4
  312. package/i18n/tr.json +21 -4
  313. package/i18n/uk.json +21 -4
  314. package/i18n/vi.json +21 -4
  315. package/i18n/zh-TW.json +21 -4
  316. package/i18n/zh.json +21 -4
  317. package/input/styles/_index.scss +68 -1
  318. package/input-otp/styles/_index.scss +14 -0
  319. package/llms-full.txt +52 -20
  320. package/overlay/styles/_arrow.scss +4 -4
  321. package/package.json +33 -1
  322. package/popconfirm/styles/_index.scss +3 -11
  323. package/progress/styles/_index.scss +32 -0
  324. package/schema-form/styles/_index.scss +78 -0
  325. package/schematics/use/rule.js +2 -0
  326. package/schematics/use/symbol-map.json +4 -0
  327. package/select/styles/_index.scss +114 -22
  328. package/skills/ngwr/SKILL.md +1 -1
  329. package/skills/ngwr/references/catalog.md +9 -1
  330. package/slider/styles/_index.scss +22 -0
  331. package/table/styles/_index.scss +167 -3
  332. package/textarea/styles/_index.scss +80 -0
  333. package/theme/styles/_focus.scss +5 -0
  334. package/theme/styles/_motion.scss +5 -0
  335. package/transfer/styles/_index.scss +84 -0
  336. package/tree/styles/_index.scss +138 -5
  337. package/types/ngwr-alert-testing.d.ts +88 -0
  338. package/types/ngwr-badge.d.ts +72 -2
  339. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  340. package/types/ngwr-burger-testing.d.ts +51 -0
  341. package/types/ngwr-calendar-testing.d.ts +18 -6
  342. package/types/ngwr-calendar.d.ts +272 -22
  343. package/types/ngwr-cascader.d.ts +10 -1
  344. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  345. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  346. package/types/ngwr-charts-line-chart.d.ts +7 -4
  347. package/types/ngwr-color-picker-testing.d.ts +15 -4
  348. package/types/ngwr-color-picker.d.ts +76 -6
  349. package/types/ngwr-compare-testing.d.ts +72 -0
  350. package/types/ngwr-date-picker-testing.d.ts +23 -8
  351. package/types/ngwr-date-picker.d.ts +100 -9
  352. package/types/ngwr-date.d.ts +71 -1
  353. package/types/ngwr-drawer.d.ts +9 -0
  354. package/types/ngwr-dropdown-testing.d.ts +20 -0
  355. package/types/ngwr-dropdown.d.ts +24 -6
  356. package/types/ngwr-event-calendar.d.ts +66 -8
  357. package/types/ngwr-file-upload-testing.d.ts +31 -2
  358. package/types/ngwr-file-upload.d.ts +148 -1
  359. package/types/ngwr-form.d.ts +47 -3
  360. package/types/ngwr-graph-testing.d.ts +8 -3
  361. package/types/ngwr-graph.d.ts +147 -7
  362. package/types/ngwr-input-number-testing.d.ts +10 -0
  363. package/types/ngwr-input-number.d.ts +30 -1
  364. package/types/ngwr-input-otp.d.ts +10 -0
  365. package/types/ngwr-input-testing.d.ts +30 -0
  366. package/types/ngwr-input.d.ts +54 -3
  367. package/types/ngwr-overlay.d.ts +84 -5
  368. package/types/ngwr-pipes.d.ts +2 -1
  369. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  370. package/types/ngwr-popconfirm.d.ts +28 -3
  371. package/types/ngwr-popover-testing.d.ts +19 -2
  372. package/types/ngwr-popover.d.ts +22 -2
  373. package/types/ngwr-progress.d.ts +29 -1
  374. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  375. package/types/ngwr-resizable-testing.d.ts +116 -0
  376. package/types/ngwr-schema-form-testing.d.ts +260 -0
  377. package/types/ngwr-schema-form.d.ts +76 -6
  378. package/types/ngwr-select-testing.d.ts +20 -0
  379. package/types/ngwr-select.d.ts +112 -11
  380. package/types/ngwr-sidebar-testing.d.ts +176 -0
  381. package/types/ngwr-slider-testing.d.ts +3 -1
  382. package/types/ngwr-slider.d.ts +21 -1
  383. package/types/ngwr-sortable-list.d.ts +6 -0
  384. package/types/ngwr-stepper.d.ts +20 -11
  385. package/types/ngwr-table-testing.d.ts +70 -6
  386. package/types/ngwr-table.d.ts +480 -50
  387. package/types/ngwr-tabs-testing.d.ts +14 -17
  388. package/types/ngwr-tabs.d.ts +6 -0
  389. package/types/ngwr-textarea-testing.d.ts +10 -0
  390. package/types/ngwr-textarea.d.ts +48 -2
  391. package/types/ngwr-toast.d.ts +8 -1
  392. package/types/ngwr-transfer-testing.d.ts +3 -0
  393. package/types/ngwr-transfer.d.ts +24 -1
  394. package/types/ngwr-tree-testing.d.ts +65 -1
  395. package/types/ngwr-tree.d.ts +333 -12
  396. package/types/ngwr-utils.d.ts +28 -0
  397. package/types/ngwr-version.d.ts +1 -1
  398. package/types/ngwr-window.d.ts +7 -4
@@ -1,8 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
- import { Component, Directive, ElementRef, ViewEncapsulation, computed, inject, input, signal } from "@angular/core";
2
+ import { Component, Directive, ElementRef, Renderer2, ViewEncapsulation, afterEveryRender, computed, contentChild, effect, inject, input, output, signal } from "@angular/core";
3
3
  import { coerceBooleanProperty } from "@angular/cdk/coercion";
4
4
  import { wrCheckStyles } from "ngwr/utils";
5
5
  import { useI18nText } from "ngwr/i18n";
6
+ import { WrSpinner } from "ngwr/spinner";
6
7
  import { WR_FORM_FIELD, useFormFieldAria } from "ngwr/form";
7
8
  /**
8
9
  * @license
@@ -36,7 +37,7 @@ var WrInput = class WrInput {
36
37
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
37
38
  static ɵfac = i0.ɵɵngDeclareFactory({
38
39
  minVersion: "12.0.0",
39
- version: "22.2.5",
40
+ version: "22.2.6",
40
41
  ngImport: i0,
41
42
  type: WrInput,
42
43
  deps: [],
@@ -44,7 +45,7 @@ var WrInput = class WrInput {
44
45
  });
45
46
  static ɵdir = i0.ɵɵngDeclareDirective({
46
47
  minVersion: "17.1.0",
47
- version: "22.2.5",
48
+ version: "22.2.6",
48
49
  type: WrInput,
49
50
  isStandalone: true,
50
51
  selector: "input[wrInput], textarea[wrInput]",
@@ -78,7 +79,7 @@ var WrInput = class WrInput {
78
79
  };
79
80
  i0.ɵɵngDeclareClassMetadata({
80
81
  minVersion: "12.0.0",
81
- version: "22.2.5",
82
+ version: "22.2.6",
82
83
  ngImport: i0,
83
84
  type: WrInput,
84
85
  decorators: [{
@@ -126,7 +127,7 @@ var WrInputPrefix = class WrInputPrefix {
126
127
  }
127
128
  static ɵfac = i0.ɵɵngDeclareFactory({
128
129
  minVersion: "12.0.0",
129
- version: "22.2.5",
130
+ version: "22.2.6",
130
131
  ngImport: i0,
131
132
  type: WrInputPrefix,
132
133
  deps: [],
@@ -134,7 +135,7 @@ var WrInputPrefix = class WrInputPrefix {
134
135
  });
135
136
  static ɵdir = i0.ɵɵngDeclareDirective({
136
137
  minVersion: "14.0.0",
137
- version: "22.2.5",
138
+ version: "22.2.6",
138
139
  type: WrInputPrefix,
139
140
  isStandalone: true,
140
141
  selector: "[wrInputPrefix]",
@@ -144,7 +145,7 @@ var WrInputPrefix = class WrInputPrefix {
144
145
  };
145
146
  i0.ɵɵngDeclareClassMetadata({
146
147
  minVersion: "12.0.0",
147
- version: "22.2.5",
148
+ version: "22.2.6",
148
149
  ngImport: i0,
149
150
  type: WrInputPrefix,
150
151
  decorators: [{
@@ -168,7 +169,7 @@ var WrInputSuffix = class WrInputSuffix {
168
169
  }
169
170
  static ɵfac = i0.ɵɵngDeclareFactory({
170
171
  minVersion: "12.0.0",
171
- version: "22.2.5",
172
+ version: "22.2.6",
172
173
  ngImport: i0,
173
174
  type: WrInputSuffix,
174
175
  deps: [],
@@ -176,7 +177,7 @@ var WrInputSuffix = class WrInputSuffix {
176
177
  });
177
178
  static ɵdir = i0.ɵɵngDeclareDirective({
178
179
  minVersion: "14.0.0",
179
- version: "22.2.5",
180
+ version: "22.2.6",
180
181
  type: WrInputSuffix,
181
182
  isStandalone: true,
182
183
  selector: "[wrInputSuffix]",
@@ -186,7 +187,7 @@ var WrInputSuffix = class WrInputSuffix {
186
187
  };
187
188
  i0.ɵɵngDeclareClassMetadata({
188
189
  minVersion: "12.0.0",
189
- version: "22.2.5",
190
+ version: "22.2.6",
190
191
  ngImport: i0,
191
192
  type: WrInputSuffix,
192
193
  decorators: [{
@@ -205,13 +206,51 @@ i0.ɵɵngDeclareClassMetadata({
205
206
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
206
207
  */
207
208
  var WrInputGroup = class WrInputGroup {
209
+ renderer = inject(Renderer2);
208
210
  constructor() {
209
211
  if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("input");
212
+ afterEveryRender({ read: () => this.syncClear() });
213
+ effect(() => {
214
+ const field = this.field()?.nativeElement;
215
+ if (!field) return;
216
+ if (this.loading()) this.renderer.setAttribute(field, "aria-busy", "true");
217
+ else this.renderer.removeAttribute(field, "aria-busy");
218
+ });
210
219
  }
211
220
  rounded = input(false, {
212
221
  ...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
213
222
  transform: coerceBooleanProperty
214
223
  });
224
+ clearable = input(false, {
225
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
226
+ transform: coerceBooleanProperty
227
+ });
228
+ clearLabel = input(null, ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
229
+ loading = input(false, {
230
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
231
+ transform: coerceBooleanProperty
232
+ });
233
+ cleared = output();
234
+ resolvedClear = useI18nText(this.clearLabel, "common.clear", "Clear");
235
+ field = contentChild(WrInput, {
236
+ ...ngDevMode ? { debugName: "field" } : /* istanbul ignore next */ {},
237
+ read: ElementRef
238
+ });
239
+ fieldClearable = signal(false, ...ngDevMode ? [{ debugName: "fieldClearable" }] : /* istanbul ignore next */ []);
240
+ clearShown = computed(() => this.clearable() && this.fieldClearable(), ...ngDevMode ? [{ debugName: "clearShown" }] : /* istanbul ignore next */ []);
241
+ syncClear() {
242
+ if (!this.clearable()) return;
243
+ const field = this.field()?.nativeElement;
244
+ this.fieldClearable.set(!!field && field.value !== "" && !field.disabled && !field.readOnly);
245
+ }
246
+ clear() {
247
+ const field = this.field()?.nativeElement;
248
+ if (!field || field.disabled || field.readOnly) return;
249
+ field.value = "";
250
+ field.dispatchEvent(new Event("input", { bubbles: true }));
251
+ field.focus();
252
+ this.cleared.emit();
253
+ }
215
254
  classes = computed(() => {
216
255
  const parts = [];
217
256
  if (this.rounded()) parts.push("wr-input-group--rounded");
@@ -219,61 +258,138 @@ var WrInputGroup = class WrInputGroup {
219
258
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
220
259
  static ɵfac = i0.ɵɵngDeclareFactory({
221
260
  minVersion: "12.0.0",
222
- version: "22.2.5",
261
+ version: "22.2.6",
223
262
  ngImport: i0,
224
263
  type: WrInputGroup,
225
264
  deps: [],
226
265
  target: i0.ɵɵFactoryTarget.Component
227
266
  });
228
267
  static ɵcmp = i0.ɵɵngDeclareComponent({
229
- minVersion: "17.1.0",
230
- version: "22.2.5",
268
+ minVersion: "17.0.0",
269
+ version: "22.2.6",
231
270
  type: WrInputGroup,
232
271
  isStandalone: true,
233
272
  selector: "wr-input-group",
234
- inputs: { rounded: {
235
- classPropertyName: "rounded",
236
- publicName: "rounded",
237
- isSignal: true,
238
- isRequired: false,
239
- transformFunction: null
240
- } },
273
+ inputs: {
274
+ rounded: {
275
+ classPropertyName: "rounded",
276
+ publicName: "rounded",
277
+ isSignal: true,
278
+ isRequired: false,
279
+ transformFunction: null
280
+ },
281
+ clearable: {
282
+ classPropertyName: "clearable",
283
+ publicName: "clearable",
284
+ isSignal: true,
285
+ isRequired: false,
286
+ transformFunction: null
287
+ },
288
+ clearLabel: {
289
+ classPropertyName: "clearLabel",
290
+ publicName: "clearLabel",
291
+ isSignal: true,
292
+ isRequired: false,
293
+ transformFunction: null
294
+ },
295
+ loading: {
296
+ classPropertyName: "loading",
297
+ publicName: "loading",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ }
302
+ },
303
+ outputs: { cleared: "cleared" },
241
304
  host: {
305
+ listeners: { "input": "syncClear()" },
242
306
  properties: { "class": "classes()" },
243
307
  classAttribute: "wr-input-group"
244
308
  },
309
+ queries: [{
310
+ propertyName: "field",
311
+ first: true,
312
+ predicate: WrInput,
313
+ descendants: true,
314
+ read: ElementRef,
315
+ isSignal: true
316
+ }],
245
317
  ngImport: i0,
246
- template: "<ng-content />",
247
- isInline: true,
318
+ template: "<ng-content />\n<!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n@if (clearShown()) {\n <span class=\"wr-input-group__clear\" role=\"button\" [attr.aria-label]=\"resolvedClear()\" tabindex=\"-1\" (click)=\"clear()\">\n <svg\n class=\"wr-icon__svg\"\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=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n} @else if (clearable()) {\n <!-- Holds the ×'s room while the field is empty, so clearing does not narrow the group. -->\n <span class=\"wr-input-group__clear-space\" aria-hidden=\"true\"></span>\n}\n<!-- Hidden from the accessibility tree: the field says it is busy with `aria-busy`. -->\n@if (loading()) {\n <wr-spinner class=\"wr-input-group__spinner\" size=\"sm\" aria-hidden=\"true\" />\n}\n<ng-content select=\"[wrInputSuffix], wr-password-toggle\" />\n",
319
+ dependencies: [{
320
+ kind: "component",
321
+ type: WrSpinner,
322
+ selector: "wr-spinner",
323
+ inputs: ["size", "ariaLabel"]
324
+ }],
248
325
  encapsulation: i0.ViewEncapsulation.None
249
326
  });
250
327
  };
251
328
  i0.ɵɵngDeclareClassMetadata({
252
329
  minVersion: "12.0.0",
253
- version: "22.2.5",
330
+ version: "22.2.6",
254
331
  ngImport: i0,
255
332
  type: WrInputGroup,
256
333
  decorators: [{
257
334
  type: Component,
258
335
  args: [{
259
336
  selector: "wr-input-group",
260
- template: "<ng-content />",
261
337
  encapsulation: ViewEncapsulation.None,
262
338
  host: {
263
339
  class: "wr-input-group",
264
- "[class]": "classes()"
265
- }
340
+ "[class]": "classes()",
341
+ "(input)": "syncClear()"
342
+ },
343
+ imports: [WrSpinner],
344
+ template: "<ng-content />\n<!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n@if (clearShown()) {\n <span class=\"wr-input-group__clear\" role=\"button\" [attr.aria-label]=\"resolvedClear()\" tabindex=\"-1\" (click)=\"clear()\">\n <svg\n class=\"wr-icon__svg\"\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=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n} @else if (clearable()) {\n <!-- Holds the ×'s room while the field is empty, so clearing does not narrow the group. -->\n <span class=\"wr-input-group__clear-space\" aria-hidden=\"true\"></span>\n}\n<!-- Hidden from the accessibility tree: the field says it is busy with `aria-busy`. -->\n@if (loading()) {\n <wr-spinner class=\"wr-input-group__spinner\" size=\"sm\" aria-hidden=\"true\" />\n}\n<ng-content select=\"[wrInputSuffix], wr-password-toggle\" />\n"
266
345
  }]
267
346
  }],
268
347
  ctorParameters: () => [],
269
- propDecorators: { rounded: [{
270
- type: i0.Input,
271
- args: [{
272
- isSignal: true,
273
- alias: "rounded",
274
- required: false
348
+ propDecorators: {
349
+ rounded: [{
350
+ type: i0.Input,
351
+ args: [{
352
+ isSignal: true,
353
+ alias: "rounded",
354
+ required: false
355
+ }]
356
+ }],
357
+ clearable: [{
358
+ type: i0.Input,
359
+ args: [{
360
+ isSignal: true,
361
+ alias: "clearable",
362
+ required: false
363
+ }]
364
+ }],
365
+ clearLabel: [{
366
+ type: i0.Input,
367
+ args: [{
368
+ isSignal: true,
369
+ alias: "clearLabel",
370
+ required: false
371
+ }]
372
+ }],
373
+ loading: [{
374
+ type: i0.Input,
375
+ args: [{
376
+ isSignal: true,
377
+ alias: "loading",
378
+ required: false
379
+ }]
380
+ }],
381
+ cleared: [{
382
+ type: i0.Output,
383
+ args: ["cleared"]
384
+ }],
385
+ field: [{
386
+ type: i0.ContentChild,
387
+ args: [i0.forwardRef(() => WrInput), {
388
+ read: ElementRef,
389
+ isSignal: true
390
+ }]
275
391
  }]
276
- }] }
392
+ }
277
393
  });
278
394
  /**
279
395
  * @license
@@ -300,7 +416,7 @@ var WrPasswordToggle = class WrPasswordToggle {
300
416
  }
301
417
  static ɵfac = i0.ɵɵngDeclareFactory({
302
418
  minVersion: "12.0.0",
303
- version: "22.2.5",
419
+ version: "22.2.6",
304
420
  ngImport: i0,
305
421
  type: WrPasswordToggle,
306
422
  deps: [],
@@ -308,7 +424,7 @@ var WrPasswordToggle = class WrPasswordToggle {
308
424
  });
309
425
  static ɵcmp = i0.ɵɵngDeclareComponent({
310
426
  minVersion: "17.0.0",
311
- version: "22.2.5",
427
+ version: "22.2.6",
312
428
  type: WrPasswordToggle,
313
429
  isStandalone: true,
314
430
  selector: "wr-password-toggle",
@@ -342,7 +458,7 @@ var WrPasswordToggle = class WrPasswordToggle {
342
458
  };
343
459
  i0.ɵɵngDeclareClassMetadata({
344
460
  minVersion: "12.0.0",
345
- version: "22.2.5",
461
+ version: "22.2.6",
346
462
  ngImport: i0,
347
463
  type: WrPasswordToggle,
348
464
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-input.mjs","names":[],"sources":["../../../projects/lib/input/directives/wr-input.ts","../../../projects/lib/input/directives/wr-input-prefix.ts","../../../projects/lib/input/directives/wr-input-suffix.ts","../../../projects/lib/input/input-group.ts","../../../projects/lib/input/password-toggle.ts","../../../projects/lib/input/password-toggle.html"],"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\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, computed, inject, input } from '@angular/core';\n\nimport { WR_FORM_FIELD, useFormFieldAria } from 'ngwr/form';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrInputSize } from '../types';\n\n/**\n * Applies NGWR input styling to a native `<input>` element.\n *\n * Because this is an attribute directive on the real `<input>` (not a wrapper\n * component), any other directive that targets `input` — `[(ngModel)]`,\n * `[formControl]`, validators, third-party libraries like `ngx-mask` — composes\n * naturally on the same element.\n *\n * @example\n * ```html\n * <input wrInput [(ngModel)]=\"name\" placeholder=\"Your name\" />\n *\n * <!-- Works with ngx-mask, validators, etc. -->\n * <input wrInput [(ngModel)]=\"phone\" mask=\"(000) 000-0000\" />\n * ```\n *\n * For prefix / suffix / password-toggle layouts, wrap the input in\n * `<wr-input-group>`.\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Directive({\n selector: 'input[wrInput], textarea[wrInput]',\n host: {\n class: 'wr-input',\n '[class]': 'classes()',\n '[attr.id]': 'resolvedId()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class WrInput {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly field = inject(WR_FORM_FIELD, { optional: true });\n\n /**\n * Read once, at construction: a static `id=\"\"` in the template is already on\n * the element by the time a directive is instantiated, and it must win over\n * the field's generated one.\n */\n private readonly ownId = this.host.nativeElement.getAttribute('id');\n\n /**\n * Adopts the surrounding `<wr-form-field>`'s `controlId`, so the label it\n * already rendered actually points at this element. Without this the `for`\n * referenced an id that existed nowhere and the input had no label at all.\n */\n protected readonly resolvedId = computed(() => this.ownId ?? this.field?.controlId() ?? null);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n // Tell the field which id actually stuck. Without this its `<label for>` keeps\n // pointing at the generated id while this element answers to the author's own —\n // a label referencing nothing, which is the same as having none.\n if (this.ownId) this.field?.adoptControlId(this.ownId);\n }\n\n /**\n * Announced state, taken from the surrounding `<wr-form-field>`.\n *\n * The field renders the message but cannot reach the projected control, so\n * the control reads back: without this the error is visible on screen and\n * invisible to a screen reader, which never learns the field is invalid or\n * what the message says.\n */\n // Through the shared helper, not a local pair: the hint is described by\n // `hintId`, which only `useFormFieldAria()` composes, and `aria-invalid` keys\n // on the error COUNT rather than on \"something is described\". Hand-rolled here,\n // these three announced the error and never the hint — and `<input wrInput>` is\n // the control the report was filed against.\n private readonly fieldAria = useFormFieldAria();\n protected readonly describedBy = this.fieldAria.describedBy;\n protected readonly ariaInvalid = this.fieldAria.ariaInvalid;\n\n /**\n * Control size. @default 'md'\n *\n * Called `wrSize` until v14, to dodge the native `<input size>` attribute —\n * which measures the field in characters and which `.wr-input`'s `width: 100%`\n * has always overridden, so the clash it guarded against was never observable.\n * It made this the one size input in the catalog spelled differently from the\n * other twenty-three. The cost of the change is that a consumer who wanted the\n * NATIVE `size` on an ngwr input can no longer have it — but `width: 100%`\n * meant they never did.\n */\n readonly size = input<WrInputSize>('md');\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-input--${size}`);\n if (this.rounded()) parts.push('wr-input--rounded');\n return parts.join(' ');\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 { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **left** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's left edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputPrefix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--prefix' },\n})\nexport class WrInputPrefix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\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 { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **right** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's right edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputSuffix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--suffix' },\n})\nexport class WrInputSuffix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\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 { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Component, ViewEncapsulation, computed, input } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Container for `<input wrInput>` + `[wrInputPrefix]` / `[wrInputSuffix]` /\n * `<wr-password-toggle>` siblings. Renders the border and focus ring; the\n * inner native input drops its own border so it visually melts into the\n * group.\n *\n * Pure layout — no signals shared with the inner directive, focus styling is\n * driven entirely by `:focus-within` so any focusable child counts.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n * ```\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Component({\n selector: 'wr-input-group',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-input-group', '[class]': 'classes()' },\n})\nexport class WrInputGroup {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.rounded()) parts.push('wr-input-group--rounded');\n return parts.join(' ');\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 { Component, ViewEncapsulation, computed, input, signal } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Self-contained eye-toggle button. Flips the linked `<input>`'s `type`\n * attribute between `password` and `text`. Drop it inside an\n * `<wr-input-group>` next to a password input.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput type=\"password\" [(ngModel)]=\"pw\" #pwInput />\n * <wr-password-toggle [for]=\"pwInput\" />\n * </wr-input-group>\n * ```\n */\n@Component({\n selector: 'wr-password-toggle',\n templateUrl: './password-toggle.html',\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrPasswordToggle {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n\n /** Reference to the linked password input. */\n readonly for = input.required<HTMLInputElement>();\n\n protected readonly revealed = signal(false);\n\n /** Accessible name while the password is hidden. Falls back to `input.showPassword`. */\n readonly showPasswordLabel = input<string | null>(null);\n\n /** Accessible name while the password is revealed. Falls back to `input.hidePassword`. */\n readonly hidePasswordLabel = input<string | null>(null);\n\n private readonly resolvedShowPasswordLabel = useI18nText(\n this.showPasswordLabel,\n 'input.showPassword',\n 'Show password'\n );\n private readonly resolvedHidePasswordLabel = useI18nText(\n this.hidePasswordLabel,\n 'input.hidePassword',\n 'Hide password'\n );\n\n protected readonly ariaLabel = computed(() =>\n this.revealed() ? this.resolvedHidePasswordLabel() : this.resolvedShowPasswordLabel()\n );\n\n protected toggle(): void {\n const input = this.for();\n const next = input.type === 'password' ? 'text' : 'password';\n input.type = next;\n this.revealed.set(next === 'text');\n }\n}\n","<button\n type=\"button\"\n class=\"wr-input-group__toggle\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-pressed]=\"revealed()\"\n (click)=\"toggle()\"\n>\n @if (revealed()) {\n <svg\n class=\"wr-icon__svg\"\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=\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\" />\n <path d=\"M14.084 14.158a3 3 0 0 1-4.242-4.242\" />\n <path d=\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\" />\n <path d=\"m2 2 20 20\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\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-h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AS,IAAI,SAAS,MAAM;CACnC;CApCW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAgB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAhB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAgB,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,KAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,UAAA;EAAA,UC9B7B;EAyCA,eAAA,GAAA,kBAAA;CAAA,CAAA;;ADXa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAgB,YAAA,CAAA;EAL5B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAoB,eAEf,kBAAkB;GAAI,UAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"ngwr-input.mjs","names":[],"sources":["../../../projects/lib/input/directives/wr-input.ts","../../../projects/lib/input/directives/wr-input-prefix.ts","../../../projects/lib/input/directives/wr-input-suffix.ts","../../../projects/lib/input/input-group.ts","../../../projects/lib/input/input-group.html","../../../projects/lib/input/password-toggle.ts","../../../projects/lib/input/password-toggle.html"],"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\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, computed, inject, input } from '@angular/core';\n\nimport { WR_FORM_FIELD, useFormFieldAria } from 'ngwr/form';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrInputSize } from '../types';\n\n/**\n * Applies NGWR input styling to a native `<input>` element.\n *\n * Because this is an attribute directive on the real `<input>` (not a wrapper\n * component), any other directive that targets `input` — `[(ngModel)]`,\n * `[formControl]`, validators, third-party libraries like `ngx-mask` — composes\n * naturally on the same element.\n *\n * @example\n * ```html\n * <input wrInput [(ngModel)]=\"name\" placeholder=\"Your name\" />\n *\n * <!-- Works with ngx-mask, validators, etc. -->\n * <input wrInput [(ngModel)]=\"phone\" mask=\"(000) 000-0000\" />\n * ```\n *\n * For prefix / suffix / password-toggle layouts, wrap the input in\n * `<wr-input-group>`.\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Directive({\n selector: 'input[wrInput], textarea[wrInput]',\n host: {\n class: 'wr-input',\n '[class]': 'classes()',\n '[attr.id]': 'resolvedId()',\n '[attr.aria-invalid]': 'ariaInvalid()',\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class WrInput {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly field = inject(WR_FORM_FIELD, { optional: true });\n\n /**\n * Read once, at construction: a static `id=\"\"` in the template is already on\n * the element by the time a directive is instantiated, and it must win over\n * the field's generated one.\n */\n private readonly ownId = this.host.nativeElement.getAttribute('id');\n\n /**\n * Adopts the surrounding `<wr-form-field>`'s `controlId`, so the label it\n * already rendered actually points at this element. Without this the `for`\n * referenced an id that existed nowhere and the input had no label at all.\n */\n protected readonly resolvedId = computed(() => this.ownId ?? this.field?.controlId() ?? null);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n // Tell the field which id actually stuck. Without this its `<label for>` keeps\n // pointing at the generated id while this element answers to the author's own —\n // a label referencing nothing, which is the same as having none.\n if (this.ownId) this.field?.adoptControlId(this.ownId);\n }\n\n /**\n * Announced state, taken from the surrounding `<wr-form-field>`.\n *\n * The field renders the message but cannot reach the projected control, so\n * the control reads back: without this the error is visible on screen and\n * invisible to a screen reader, which never learns the field is invalid or\n * what the message says.\n */\n // Through the shared helper, not a local pair: the hint is described by\n // `hintId`, which only `useFormFieldAria()` composes, and `aria-invalid` keys\n // on the error COUNT rather than on \"something is described\". Hand-rolled here,\n // these three announced the error and never the hint — and `<input wrInput>` is\n // the control the report was filed against.\n private readonly fieldAria = useFormFieldAria();\n protected readonly describedBy = this.fieldAria.describedBy;\n protected readonly ariaInvalid = this.fieldAria.ariaInvalid;\n\n /**\n * Control size. @default 'md'\n *\n * Called `wrSize` until v14, to dodge the native `<input size>` attribute —\n * which measures the field in characters and which `.wr-input`'s `width: 100%`\n * has always overridden, so the clash it guarded against was never observable.\n * It made this the one size input in the catalog spelled differently from the\n * other twenty-three. The cost of the change is that a consumer who wanted the\n * NATIVE `size` on an ngwr input can no longer have it — but `width: 100%`\n * meant they never did.\n */\n readonly size = input<WrInputSize>('md');\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-input--${size}`);\n if (this.rounded()) parts.push('wr-input--rounded');\n return parts.join(' ');\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 { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **left** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's left edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputPrefix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--prefix' },\n})\nexport class WrInputPrefix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\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 { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Marks an element as the **right** decoration inside `<wr-input-group>`.\n * Adds the `.wr-input-group__affix` class so the group's layout flexes it\n * to the input's right edge.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n * ```\n */\n@Directive({\n selector: '[wrInputSuffix]',\n host: { class: 'wr-input-group__affix wr-input-group__affix--suffix' },\n})\nexport class WrInputSuffix {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\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 { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n ElementRef,\n Renderer2,\n ViewEncapsulation,\n afterEveryRender,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { WrSpinner } from 'ngwr/spinner';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport { WrInput } from './directives';\n\n/**\n * Container for `<input wrInput>` + `[wrInputPrefix]` / `[wrInputSuffix]` /\n * `<wr-password-toggle>` siblings. Renders the border and focus ring; the\n * inner native input drops its own border so it visually melts into the\n * group.\n *\n * Focus styling is driven entirely by `:focus-within`, so any focusable child\n * counts.\n *\n * `clearable` and `loading` draw a clear (×) button and a spinner after the\n * field, before any `[wrInputSuffix]` or `<wr-password-toggle>`. Both act on the\n * first `wrInput` the group wraps.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <span wrInputPrefix>$</span>\n * <input wrInput [(ngModel)]=\"amount\" type=\"number\" />\n * <span wrInputSuffix>USD</span>\n * </wr-input-group>\n *\n * <!-- a search box: a clear button, and a spinner while the lookup runs -->\n * <wr-input-group clearable [loading]=\"pending()\">\n * <input wrInput [(ngModel)]=\"query\" placeholder=\"Search\" />\n * </wr-input-group>\n * ```\n *\n * @see https://ngwr.dev/reference/components/input\n */\n@Component({\n selector: 'wr-input-group',\n templateUrl: './input-group.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-input-group', '[class]': 'classes()', '(input)': 'syncClear()' },\n imports: [WrSpinner],\n})\nexport class WrInputGroup {\n private readonly renderer = inject(Renderer2);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n\n // A native field's value is not a signal, and a model write (`ngModel`,\n // `[formField]`, a bound `[value]`) reaches it with no event. So the field\n // is read after every render, and on its own `input` events in between.\n afterEveryRender({ read: () => this.syncClear() });\n\n effect(() => {\n const field = this.field()?.nativeElement;\n if (!field) return;\n if (this.loading()) this.renderer.setAttribute(field, 'aria-busy', 'true');\n else this.renderer.removeAttribute(field, 'aria-busy');\n });\n }\n\n /** Pill-shaped corners. @default false */\n readonly rounded = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Show a clear (×) button while the field holds text and is neither disabled\n * nor read-only. Clearing empties the field through an `input` event, so\n * whatever is bound to it (`ngModel`, `[formField]`, an `(input)` listener)\n * hears it as an edit, and puts focus back in the field. It is a pointer\n * control: from the keyboard, emptying the field clears it. @default false\n */\n readonly clearable = input(false, { transform: coerceBooleanProperty });\n\n /** Clear (×) button aria-label. Falls back to `common.clear`. */\n readonly clearLabel = input<string | null>(null);\n\n /**\n * Show a spinner after the field and mark the field `aria-busy`. The field\n * stays editable. @default false\n */\n readonly loading = input(false, { transform: coerceBooleanProperty });\n\n /** Emitted after the clear (×) button emptied the field. */\n readonly cleared = output<void>();\n\n protected readonly resolvedClear = useI18nText(this.clearLabel, 'common.clear', 'Clear');\n\n private readonly field = contentChild<WrInput, ElementRef<HTMLInputElement | HTMLTextAreaElement>>(WrInput, {\n read: ElementRef,\n });\n\n /** Whether the field has text a user could clear right now. */\n private readonly fieldClearable = signal(false);\n\n protected readonly clearShown = computed(() => this.clearable() && this.fieldClearable());\n\n protected syncClear(): void {\n if (!this.clearable()) return;\n const field = this.field()?.nativeElement;\n this.fieldClearable.set(!!field && field.value !== '' && !field.disabled && !field.readOnly);\n }\n\n protected clear(): void {\n const field = this.field()?.nativeElement;\n if (!field || field.disabled || field.readOnly) return;\n field.value = '';\n field.dispatchEvent(new Event('input', { bubbles: true }));\n field.focus();\n this.cleared.emit();\n }\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.rounded()) parts.push('wr-input-group--rounded');\n return parts.join(' ');\n });\n}\n","<ng-content />\n<!-- Pointer-only, as the select's is: emptying the field is the keyboard way to clear. -->\n@if (clearShown()) {\n <span class=\"wr-input-group__clear\" role=\"button\" [attr.aria-label]=\"resolvedClear()\" tabindex=\"-1\" (click)=\"clear()\">\n <svg\n class=\"wr-icon__svg\"\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=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n} @else if (clearable()) {\n <!-- Holds the ×'s room while the field is empty, so clearing does not narrow the group. -->\n <span class=\"wr-input-group__clear-space\" aria-hidden=\"true\"></span>\n}\n<!-- Hidden from the accessibility tree: the field says it is busy with `aria-busy`. -->\n@if (loading()) {\n <wr-spinner class=\"wr-input-group__spinner\" size=\"sm\" aria-hidden=\"true\" />\n}\n<ng-content select=\"[wrInputSuffix], wr-password-toggle\" />\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 { Component, ViewEncapsulation, computed, input, signal } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Self-contained eye-toggle button. Flips the linked `<input>`'s `type`\n * attribute between `password` and `text`. Drop it inside an\n * `<wr-input-group>` next to a password input.\n *\n * @example\n * ```html\n * <wr-input-group>\n * <input wrInput type=\"password\" [(ngModel)]=\"pw\" #pwInput />\n * <wr-password-toggle [for]=\"pwInput\" />\n * </wr-input-group>\n * ```\n */\n@Component({\n selector: 'wr-password-toggle',\n templateUrl: './password-toggle.html',\n encapsulation: ViewEncapsulation.None,\n})\nexport class WrPasswordToggle {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('input');\n }\n\n /** Reference to the linked password input. */\n readonly for = input.required<HTMLInputElement>();\n\n protected readonly revealed = signal(false);\n\n /** Accessible name while the password is hidden. Falls back to `input.showPassword`. */\n readonly showPasswordLabel = input<string | null>(null);\n\n /** Accessible name while the password is revealed. Falls back to `input.hidePassword`. */\n readonly hidePasswordLabel = input<string | null>(null);\n\n private readonly resolvedShowPasswordLabel = useI18nText(\n this.showPasswordLabel,\n 'input.showPassword',\n 'Show password'\n );\n private readonly resolvedHidePasswordLabel = useI18nText(\n this.hidePasswordLabel,\n 'input.hidePassword',\n 'Hide password'\n );\n\n protected readonly ariaLabel = computed(() =>\n this.revealed() ? this.resolvedHidePasswordLabel() : this.resolvedShowPasswordLabel()\n );\n\n protected toggle(): void {\n const input = this.for();\n const next = input.type === 'password' ? 'text' : 'password';\n input.type = next;\n this.revealed.set(next === 'text');\n }\n}\n","<button\n type=\"button\"\n class=\"wr-input-group__toggle\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-pressed]=\"revealed()\"\n (click)=\"toggle()\"\n>\n @if (revealed()) {\n <svg\n class=\"wr-icon__svg\"\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=\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\" />\n <path d=\"M14.084 14.158a3 3 0 0 1-4.242-4.242\" />\n <path d=\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143\" />\n <path d=\"m2 2 20 20\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\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=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0\" />\n <circle cx=\"12\" cy=\"12\" r=\"3\" />\n </svg>\n }\n</button>\n"],"mappings":";;;;;;;;;;;;;AA8CA,IAAa,UAAb,MAAa,QAAO;CACD,OAAO,OAAgC,UAAU;CACjD,QAAQ,OAAO,eAAe,EAAE,UAAU,KAAI,CAAE;CAOhD,QAAQ,KAAK,KAAK,cAAc,aAAa,IAAI;CAO/C,aAAa,eAAe,KAAK,SAAS,KAAK,OAAO,UAAS,KAAM,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAE7F,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,OAAO;EAIxE,IAAI,KAAK,OAAO,KAAK,OAAO,eAAe,KAAK,KAAK;CACvD;CAeiB,YAAY,iBAAgB;CAC1B,cAAc,KAAK,UAAU;CAC7B,cAAc,KAAK,UAAU;CAavC,OAAO,MAAmB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAG/B,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AAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAgB,YAAA,CAAA;EAL5B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAoB,eAEf,kBAAkB;GAAI,UAAA;EAAA,CAAA"}
@@ -52,7 +52,7 @@ var WrKbd = class WrKbd {
52
52
  }
53
53
  static ɵfac = i0.ɵɵngDeclareFactory({
54
54
  minVersion: "12.0.0",
55
- version: "22.2.5",
55
+ version: "22.2.6",
56
56
  ngImport: i0,
57
57
  type: WrKbd,
58
58
  deps: [],
@@ -60,7 +60,7 @@ var WrKbd = class WrKbd {
60
60
  });
61
61
  static ɵcmp = i0.ɵɵngDeclareComponent({
62
62
  minVersion: "17.0.0",
63
- version: "22.2.5",
63
+ version: "22.2.6",
64
64
  type: WrKbd,
65
65
  isStandalone: true,
66
66
  selector: "wr-kbd",
@@ -92,7 +92,7 @@ var WrKbd = class WrKbd {
92
92
  };
93
93
  i0.ɵɵngDeclareClassMetadata({
94
94
  minVersion: "12.0.0",
95
- version: "22.2.5",
95
+ version: "22.2.6",
96
96
  ngImport: i0,
97
97
  type: WrKbd,
98
98
  decorators: [{
@@ -176,7 +176,7 @@ var WrKnob = class WrKnob {
176
176
  }
177
177
  static ɵfac = i0.ɵɵngDeclareFactory({
178
178
  minVersion: "12.0.0",
179
- version: "22.2.5",
179
+ version: "22.2.6",
180
180
  ngImport: i0,
181
181
  type: WrKnob,
182
182
  deps: [],
@@ -184,7 +184,7 @@ var WrKnob = class WrKnob {
184
184
  });
185
185
  static ɵcmp = i0.ɵɵngDeclareComponent({
186
186
  minVersion: "17.0.0",
187
- version: "22.2.5",
187
+ version: "22.2.6",
188
188
  type: WrKnob,
189
189
  isStandalone: true,
190
190
  selector: "wr-knob",
@@ -303,7 +303,7 @@ var WrKnob = class WrKnob {
303
303
  };
304
304
  i0.ɵɵngDeclareClassMetadata({
305
305
  minVersion: "12.0.0",
306
- version: "22.2.5",
306
+ version: "22.2.6",
307
307
  ngImport: i0,
308
308
  type: WrKnob,
309
309
  decorators: [{
@@ -40,7 +40,7 @@ var WrLayoutSider = class WrLayoutSider {
40
40
  }
41
41
  static ɵfac = i0.ɵɵngDeclareFactory({
42
42
  minVersion: "12.0.0",
43
- version: "22.2.5",
43
+ version: "22.2.6",
44
44
  ngImport: i0,
45
45
  type: WrLayoutSider,
46
46
  deps: [],
@@ -48,7 +48,7 @@ var WrLayoutSider = class WrLayoutSider {
48
48
  });
49
49
  static ɵcmp = i0.ɵɵngDeclareComponent({
50
50
  minVersion: "17.1.0",
51
- version: "22.2.5",
51
+ version: "22.2.6",
52
52
  type: WrLayoutSider,
53
53
  isStandalone: true,
54
54
  selector: "wr-layout-sider",
@@ -102,7 +102,7 @@ var WrLayoutSider = class WrLayoutSider {
102
102
  };
103
103
  i0.ɵɵngDeclareClassMetadata({
104
104
  minVersion: "12.0.0",
105
- version: "22.2.5",
105
+ version: "22.2.6",
106
106
  ngImport: i0,
107
107
  type: WrLayoutSider,
108
108
  decorators: [{
@@ -180,7 +180,7 @@ var WrLayout = class WrLayout {
180
180
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
181
181
  static ɵfac = i0.ɵɵngDeclareFactory({
182
182
  minVersion: "12.0.0",
183
- version: "22.2.5",
183
+ version: "22.2.6",
184
184
  ngImport: i0,
185
185
  type: WrLayout,
186
186
  deps: [],
@@ -188,7 +188,7 @@ var WrLayout = class WrLayout {
188
188
  });
189
189
  static ɵcmp = i0.ɵɵngDeclareComponent({
190
190
  minVersion: "17.2.0",
191
- version: "22.2.5",
191
+ version: "22.2.6",
192
192
  type: WrLayout,
193
193
  isStandalone: true,
194
194
  selector: "wr-layout",
@@ -209,7 +209,7 @@ var WrLayout = class WrLayout {
209
209
  };
210
210
  i0.ɵɵngDeclareClassMetadata({
211
211
  minVersion: "12.0.0",
212
- version: "22.2.5",
212
+ version: "22.2.6",
213
213
  ngImport: i0,
214
214
  type: WrLayout,
215
215
  decorators: [{
@@ -242,7 +242,7 @@ var WrLayoutHeader = class WrLayoutHeader {
242
242
  }
243
243
  static ɵfac = i0.ɵɵngDeclareFactory({
244
244
  minVersion: "12.0.0",
245
- version: "22.2.5",
245
+ version: "22.2.6",
246
246
  ngImport: i0,
247
247
  type: WrLayoutHeader,
248
248
  deps: [],
@@ -250,7 +250,7 @@ var WrLayoutHeader = class WrLayoutHeader {
250
250
  });
251
251
  static ɵcmp = i0.ɵɵngDeclareComponent({
252
252
  minVersion: "14.0.0",
253
- version: "22.2.5",
253
+ version: "22.2.6",
254
254
  type: WrLayoutHeader,
255
255
  isStandalone: true,
256
256
  selector: "wr-layout-header",
@@ -266,7 +266,7 @@ var WrLayoutHeader = class WrLayoutHeader {
266
266
  };
267
267
  i0.ɵɵngDeclareClassMetadata({
268
268
  minVersion: "12.0.0",
269
- version: "22.2.5",
269
+ version: "22.2.6",
270
270
  ngImport: i0,
271
271
  type: WrLayoutHeader,
272
272
  decorators: [{
@@ -295,7 +295,7 @@ var WrLayoutContent = class WrLayoutContent {
295
295
  }
296
296
  static ɵfac = i0.ɵɵngDeclareFactory({
297
297
  minVersion: "12.0.0",
298
- version: "22.2.5",
298
+ version: "22.2.6",
299
299
  ngImport: i0,
300
300
  type: WrLayoutContent,
301
301
  deps: [],
@@ -303,7 +303,7 @@ var WrLayoutContent = class WrLayoutContent {
303
303
  });
304
304
  static ɵcmp = i0.ɵɵngDeclareComponent({
305
305
  minVersion: "14.0.0",
306
- version: "22.2.5",
306
+ version: "22.2.6",
307
307
  type: WrLayoutContent,
308
308
  isStandalone: true,
309
309
  selector: "wr-layout-content",
@@ -319,7 +319,7 @@ var WrLayoutContent = class WrLayoutContent {
319
319
  };
320
320
  i0.ɵɵngDeclareClassMetadata({
321
321
  minVersion: "12.0.0",
322
- version: "22.2.5",
322
+ version: "22.2.6",
323
323
  ngImport: i0,
324
324
  type: WrLayoutContent,
325
325
  decorators: [{
@@ -348,7 +348,7 @@ var WrLayoutFooter = class WrLayoutFooter {
348
348
  }
349
349
  static ɵfac = i0.ɵɵngDeclareFactory({
350
350
  minVersion: "12.0.0",
351
- version: "22.2.5",
351
+ version: "22.2.6",
352
352
  ngImport: i0,
353
353
  type: WrLayoutFooter,
354
354
  deps: [],
@@ -356,7 +356,7 @@ var WrLayoutFooter = class WrLayoutFooter {
356
356
  });
357
357
  static ɵcmp = i0.ɵɵngDeclareComponent({
358
358
  minVersion: "14.0.0",
359
- version: "22.2.5",
359
+ version: "22.2.6",
360
360
  type: WrLayoutFooter,
361
361
  isStandalone: true,
362
362
  selector: "wr-layout-footer",
@@ -372,7 +372,7 @@ var WrLayoutFooter = class WrLayoutFooter {
372
372
  };
373
373
  i0.ɵɵngDeclareClassMetadata({
374
374
  minVersion: "12.0.0",
375
- version: "22.2.5",
375
+ version: "22.2.6",
376
376
  ngImport: i0,
377
377
  type: WrLayoutFooter,
378
378
  decorators: [{