ngwr 16.2.0 → 16.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/carousel/styles/_index.scss +53 -1
  4. package/cascader/styles/_rules.scss +7 -0
  5. package/color-picker/styles/_index.scss +21 -0
  6. package/date-picker/styles/_index.scss +19 -0
  7. package/dropdown/styles/_index.scss +13 -19
  8. package/fesm2022/ngwr-affix.mjs +3 -3
  9. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  10. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  11. package/fesm2022/ngwr-alert.mjs +3 -3
  12. package/fesm2022/ngwr-anchor.mjs +17 -6
  13. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  14. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  15. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  16. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  17. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  18. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  19. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  20. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  21. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  22. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  23. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  25. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  26. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  27. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  28. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  29. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  30. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  31. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  32. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  33. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  34. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  35. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  36. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  37. package/fesm2022/ngwr-avatar.mjs +3 -3
  38. package/fesm2022/ngwr-back-top.mjs +3 -3
  39. package/fesm2022/ngwr-badge.mjs +129 -11
  40. package/fesm2022/ngwr-badge.mjs.map +1 -1
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  42. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  43. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  44. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  45. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  46. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  47. package/fesm2022/ngwr-burger.mjs +3 -3
  48. package/fesm2022/ngwr-button.mjs +6 -6
  49. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  50. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  51. package/fesm2022/ngwr-calendar.mjs +500 -73
  52. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  53. package/fesm2022/ngwr-card.mjs +9 -9
  54. package/fesm2022/ngwr-carousel-testing.mjs +24 -1
  55. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  56. package/fesm2022/ngwr-carousel.mjs +73 -10
  57. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  58. package/fesm2022/ngwr-cascader.mjs +45 -37
  59. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  60. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  61. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  62. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  63. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  64. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  65. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  66. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  67. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  68. package/fesm2022/ngwr-charts-core.mjs +3 -3
  69. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  70. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  71. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  72. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  73. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  74. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  75. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  77. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  79. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  81. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  83. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  85. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  86. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  87. package/fesm2022/ngwr-checkbox.mjs +6 -6
  88. package/fesm2022/ngwr-clipboard.mjs +3 -3
  89. package/fesm2022/ngwr-collapse.mjs +9 -9
  90. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  91. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  92. package/fesm2022/ngwr-color-picker.mjs +153 -37
  93. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  94. package/fesm2022/ngwr-command-palette.mjs +3 -3
  95. package/fesm2022/ngwr-comment.mjs +10 -6
  96. package/fesm2022/ngwr-comment.mjs.map +1 -1
  97. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  98. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  99. package/fesm2022/ngwr-compare.mjs +3 -3
  100. package/fesm2022/ngwr-context-menu.mjs +28 -13
  101. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  102. package/fesm2022/ngwr-cookie.mjs +3 -3
  103. package/fesm2022/ngwr-copy-value.mjs +3 -3
  104. package/fesm2022/ngwr-counter.mjs +6 -6
  105. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  106. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  107. package/fesm2022/ngwr-date-picker.mjs +342 -69
  108. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  109. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  110. package/fesm2022/ngwr-date.mjs +59 -8
  111. package/fesm2022/ngwr-date.mjs.map +1 -1
  112. package/fesm2022/ngwr-density.mjs +6 -6
  113. package/fesm2022/ngwr-descriptions.mjs +6 -6
  114. package/fesm2022/ngwr-dialog.mjs +18 -18
  115. package/fesm2022/ngwr-directives.mjs +15 -15
  116. package/fesm2022/ngwr-divider.mjs +3 -3
  117. package/fesm2022/ngwr-drawer.mjs +51 -29
  118. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  119. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  120. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  121. package/fesm2022/ngwr-dropdown.mjs +70 -99
  122. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  123. package/fesm2022/ngwr-editor.mjs +4 -3
  124. package/fesm2022/ngwr-editor.mjs.map +1 -1
  125. package/fesm2022/ngwr-empty.mjs +3 -3
  126. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  127. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  128. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  129. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  130. package/fesm2022/ngwr-file-upload.mjs +279 -16
  131. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  132. package/fesm2022/ngwr-form.mjs +9 -9
  133. package/fesm2022/ngwr-form.mjs.map +1 -1
  134. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  135. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  136. package/fesm2022/ngwr-graph.mjs +664 -43
  137. package/fesm2022/ngwr-graph.mjs.map +1 -1
  138. package/fesm2022/ngwr-hotkey.mjs +6 -6
  139. package/fesm2022/ngwr-i18n-ar.mjs +27 -8
  140. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-cs.mjs +27 -8
  142. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-de.mjs +27 -8
  144. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-en.mjs +27 -8
  146. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-es.mjs +27 -8
  148. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-fr.mjs +27 -8
  150. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-he.mjs +27 -8
  152. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-hi.mjs +27 -8
  154. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-id.mjs +27 -8
  156. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n-it.mjs +27 -8
  158. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  159. package/fesm2022/ngwr-i18n-ja.mjs +27 -8
  160. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  161. package/fesm2022/ngwr-i18n-ko.mjs +27 -8
  162. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  163. package/fesm2022/ngwr-i18n-nl.mjs +27 -8
  164. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  165. package/fesm2022/ngwr-i18n-pl.mjs +27 -8
  166. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  167. package/fesm2022/ngwr-i18n-pt.mjs +27 -8
  168. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  169. package/fesm2022/ngwr-i18n-ru.mjs +27 -8
  170. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  171. package/fesm2022/ngwr-i18n-sv.mjs +27 -8
  172. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  173. package/fesm2022/ngwr-i18n-tr.mjs +27 -8
  174. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  175. package/fesm2022/ngwr-i18n-uk.mjs +27 -8
  176. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  177. package/fesm2022/ngwr-i18n-vi.mjs +27 -8
  178. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  179. package/fesm2022/ngwr-i18n-zh-tw.mjs +27 -8
  180. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  181. package/fesm2022/ngwr-i18n-zh.mjs +27 -8
  182. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  183. package/fesm2022/ngwr-i18n.mjs +9 -9
  184. package/fesm2022/ngwr-icon.mjs +6 -6
  185. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  186. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  187. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  188. package/fesm2022/ngwr-input-number.mjs +68 -7
  189. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  190. package/fesm2022/ngwr-input-otp.mjs +23 -3
  191. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  192. package/fesm2022/ngwr-input-testing.mjs +24 -1
  193. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  194. package/fesm2022/ngwr-input.mjs +152 -36
  195. package/fesm2022/ngwr-input.mjs.map +1 -1
  196. package/fesm2022/ngwr-keyboard.mjs +3 -3
  197. package/fesm2022/ngwr-knob.mjs +3 -3
  198. package/fesm2022/ngwr-layout.mjs +15 -15
  199. package/fesm2022/ngwr-lightbox.mjs +8 -8
  200. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  201. package/fesm2022/ngwr-list.mjs +8 -8
  202. package/fesm2022/ngwr-list.mjs.map +1 -1
  203. package/fesm2022/ngwr-load-state.mjs +15 -15
  204. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  205. package/fesm2022/ngwr-mention.mjs +6 -6
  206. package/fesm2022/ngwr-meta.mjs +6 -6
  207. package/fesm2022/ngwr-overlay.mjs +175 -13
  208. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  209. package/fesm2022/ngwr-page-header.mjs +3 -3
  210. package/fesm2022/ngwr-pagination.mjs +6 -3
  211. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  212. package/fesm2022/ngwr-pipes.mjs +31 -29
  213. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  214. package/fesm2022/ngwr-platform.mjs +9 -9
  215. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  216. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  217. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  218. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  219. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  220. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  221. package/fesm2022/ngwr-popover.mjs +58 -156
  222. package/fesm2022/ngwr-popover.mjs.map +1 -1
  223. package/fesm2022/ngwr-progress.mjs +50 -9
  224. package/fesm2022/ngwr-progress.mjs.map +1 -1
  225. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  226. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  227. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  228. package/fesm2022/ngwr-qr.mjs +3 -3
  229. package/fesm2022/ngwr-radio.mjs +6 -6
  230. package/fesm2022/ngwr-rating.mjs +3 -3
  231. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  232. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  233. package/fesm2022/ngwr-resizable.mjs +3 -3
  234. package/fesm2022/ngwr-result.mjs +12 -12
  235. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  236. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  237. package/fesm2022/ngwr-schema-form.mjs +416 -19
  238. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  239. package/fesm2022/ngwr-scroll.mjs +3 -3
  240. package/fesm2022/ngwr-segmented.mjs +3 -3
  241. package/fesm2022/ngwr-select-testing.mjs +19 -0
  242. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  243. package/fesm2022/ngwr-select.mjs +361 -84
  244. package/fesm2022/ngwr-select.mjs.map +1 -1
  245. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  246. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  247. package/fesm2022/ngwr-sidebar.mjs +3 -3
  248. package/fesm2022/ngwr-skeleton.mjs +3 -3
  249. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  250. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  251. package/fesm2022/ngwr-slider.mjs +21 -3
  252. package/fesm2022/ngwr-slider.mjs.map +1 -1
  253. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  254. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  255. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  256. package/fesm2022/ngwr-spinner.mjs +3 -3
  257. package/fesm2022/ngwr-splitter.mjs +3 -3
  258. package/fesm2022/ngwr-statistic.mjs +9 -9
  259. package/fesm2022/ngwr-stepper.mjs +42 -11
  260. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  261. package/fesm2022/ngwr-storage.mjs +3 -3
  262. package/fesm2022/ngwr-switch.mjs +3 -3
  263. package/fesm2022/ngwr-table-testing.mjs +157 -3
  264. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-table.mjs +1051 -74
  266. package/fesm2022/ngwr-table.mjs.map +1 -1
  267. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  268. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  269. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  270. package/fesm2022/ngwr-tabs.mjs +15 -10
  271. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  272. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  273. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  274. package/fesm2022/ngwr-textarea.mjs +128 -16
  275. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  276. package/fesm2022/ngwr-theme.mjs +3 -3
  277. package/fesm2022/ngwr-timeline.mjs +6 -6
  278. package/fesm2022/ngwr-toast.mjs +40 -19
  279. package/fesm2022/ngwr-toast.mjs.map +1 -1
  280. package/fesm2022/ngwr-toolbar.mjs +3 -3
  281. package/fesm2022/ngwr-tour-testing.mjs +13 -1
  282. package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tour.mjs +19 -15
  284. package/fesm2022/ngwr-tour.mjs.map +1 -1
  285. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  286. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  287. package/fesm2022/ngwr-transfer.mjs +24 -5
  288. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  289. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  290. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  291. package/fesm2022/ngwr-tree.mjs +978 -79
  292. package/fesm2022/ngwr-tree.mjs.map +1 -1
  293. package/fesm2022/ngwr-typography.mjs +3 -3
  294. package/fesm2022/ngwr-utils-router.mjs +3 -3
  295. package/fesm2022/ngwr-utils.mjs +97 -1
  296. package/fesm2022/ngwr-utils.mjs.map +1 -1
  297. package/fesm2022/ngwr-version.mjs +1 -1
  298. package/fesm2022/ngwr-version.mjs.map +1 -1
  299. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  300. package/fesm2022/ngwr-window.mjs +33 -22
  301. package/fesm2022/ngwr-window.mjs.map +1 -1
  302. package/file-upload/styles/_index.scss +156 -0
  303. package/graph/styles/_index.scss +87 -0
  304. package/i18n/ar.json +29 -8
  305. package/i18n/cs.json +29 -8
  306. package/i18n/de.json +29 -8
  307. package/i18n/en.json +29 -8
  308. package/i18n/es.json +29 -8
  309. package/i18n/fr.json +29 -8
  310. package/i18n/he.json +29 -8
  311. package/i18n/hi.json +29 -8
  312. package/i18n/id.json +29 -8
  313. package/i18n/it.json +29 -8
  314. package/i18n/ja.json +29 -8
  315. package/i18n/ko.json +29 -8
  316. package/i18n/nl.json +29 -8
  317. package/i18n/pl.json +29 -8
  318. package/i18n/pt.json +29 -8
  319. package/i18n/ru.json +29 -8
  320. package/i18n/sv.json +29 -8
  321. package/i18n/tr.json +29 -8
  322. package/i18n/uk.json +29 -8
  323. package/i18n/vi.json +29 -8
  324. package/i18n/zh-TW.json +29 -8
  325. package/i18n/zh.json +29 -8
  326. package/input/styles/_index.scss +68 -1
  327. package/input-otp/styles/_index.scss +14 -0
  328. package/llms-full.txt +53 -21
  329. package/llms.txt +57 -24
  330. package/overlay/styles/_arrow.scss +4 -4
  331. package/package.json +33 -1
  332. package/popconfirm/styles/_index.scss +3 -11
  333. package/progress/styles/_index.scss +32 -0
  334. package/schema-form/styles/_index.scss +78 -0
  335. package/schematics/collection.json +5 -0
  336. package/schematics/eject/index.js +158 -0
  337. package/schematics/eject/schema.js +8 -0
  338. package/schematics/eject/schema.json +24 -0
  339. package/schematics/eject/source.js +295 -0
  340. package/schematics/use/rule.js +2 -0
  341. package/schematics/use/symbol-map.json +5 -0
  342. package/select/styles/_index.scss +127 -22
  343. package/skills/ngwr/SKILL.md +31 -4
  344. package/skills/ngwr/references/catalog.md +9 -1
  345. package/slider/styles/_index.scss +22 -0
  346. package/table/styles/_index.scss +191 -3
  347. package/textarea/styles/_index.scss +80 -0
  348. package/theme/styles/_focus.scss +16 -1
  349. package/theme/styles/_motion.scss +5 -0
  350. package/transfer/styles/_index.scss +84 -0
  351. package/tree/styles/_index.scss +138 -5
  352. package/types/ngwr-alert-testing.d.ts +88 -0
  353. package/types/ngwr-badge.d.ts +72 -2
  354. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  355. package/types/ngwr-burger-testing.d.ts +51 -0
  356. package/types/ngwr-calendar-testing.d.ts +18 -6
  357. package/types/ngwr-calendar.d.ts +272 -22
  358. package/types/ngwr-carousel-testing.d.ts +27 -6
  359. package/types/ngwr-carousel.d.ts +42 -6
  360. package/types/ngwr-cascader.d.ts +13 -6
  361. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  362. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  363. package/types/ngwr-charts-line-chart.d.ts +7 -4
  364. package/types/ngwr-color-picker-testing.d.ts +15 -4
  365. package/types/ngwr-color-picker.d.ts +76 -6
  366. package/types/ngwr-compare-testing.d.ts +72 -0
  367. package/types/ngwr-context-menu.d.ts +2 -0
  368. package/types/ngwr-date-picker-testing.d.ts +23 -8
  369. package/types/ngwr-date-picker.d.ts +100 -9
  370. package/types/ngwr-date.d.ts +71 -1
  371. package/types/ngwr-drawer.d.ts +9 -0
  372. package/types/ngwr-dropdown-testing.d.ts +20 -0
  373. package/types/ngwr-dropdown.d.ts +26 -6
  374. package/types/ngwr-event-calendar.d.ts +66 -8
  375. package/types/ngwr-file-upload-testing.d.ts +31 -2
  376. package/types/ngwr-file-upload.d.ts +156 -3
  377. package/types/ngwr-form.d.ts +47 -3
  378. package/types/ngwr-graph-testing.d.ts +36 -3
  379. package/types/ngwr-graph.d.ts +309 -13
  380. package/types/ngwr-input-number-testing.d.ts +10 -0
  381. package/types/ngwr-input-number.d.ts +30 -1
  382. package/types/ngwr-input-otp.d.ts +10 -0
  383. package/types/ngwr-input-testing.d.ts +30 -0
  384. package/types/ngwr-input.d.ts +54 -3
  385. package/types/ngwr-overlay.d.ts +84 -5
  386. package/types/ngwr-pipes.d.ts +2 -1
  387. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  388. package/types/ngwr-popconfirm.d.ts +28 -3
  389. package/types/ngwr-popover-testing.d.ts +19 -2
  390. package/types/ngwr-popover.d.ts +22 -2
  391. package/types/ngwr-progress.d.ts +29 -1
  392. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  393. package/types/ngwr-resizable-testing.d.ts +116 -0
  394. package/types/ngwr-schema-form-testing.d.ts +260 -0
  395. package/types/ngwr-schema-form.d.ts +76 -6
  396. package/types/ngwr-select-testing.d.ts +20 -0
  397. package/types/ngwr-select.d.ts +149 -11
  398. package/types/ngwr-sidebar-testing.d.ts +176 -0
  399. package/types/ngwr-slider-testing.d.ts +3 -1
  400. package/types/ngwr-slider.d.ts +21 -1
  401. package/types/ngwr-sortable-list.d.ts +6 -0
  402. package/types/ngwr-stepper.d.ts +20 -11
  403. package/types/ngwr-table-testing.d.ts +122 -7
  404. package/types/ngwr-table.d.ts +572 -50
  405. package/types/ngwr-tabs-testing.d.ts +14 -17
  406. package/types/ngwr-tabs.d.ts +6 -0
  407. package/types/ngwr-textarea-testing.d.ts +10 -0
  408. package/types/ngwr-textarea.d.ts +48 -2
  409. package/types/ngwr-toast.d.ts +8 -1
  410. package/types/ngwr-tour-testing.d.ts +10 -0
  411. package/types/ngwr-tour.d.ts +11 -2
  412. package/types/ngwr-transfer-testing.d.ts +3 -0
  413. package/types/ngwr-transfer.d.ts +24 -1
  414. package/types/ngwr-tree-testing.d.ts +65 -1
  415. package/types/ngwr-tree.d.ts +335 -12
  416. package/types/ngwr-utils.d.ts +107 -1
  417. package/types/ngwr-version.d.ts +1 -1
  418. package/types/ngwr-window.d.ts +7 -4
package/package.json CHANGED
@@ -118,6 +118,10 @@
118
118
  "sass": "./alert/styles/_index.scss",
119
119
  "default": "./fesm2022/ngwr-alert.mjs"
120
120
  },
121
+ "./alert/testing": {
122
+ "types": "./types/ngwr-alert-testing.d.ts",
123
+ "default": "./fesm2022/ngwr-alert-testing.mjs"
124
+ },
121
125
  "./anchor": {
122
126
  "types": "./types/ngwr-anchor.d.ts",
123
127
  "sass": "./anchor/styles/_index.scss",
@@ -257,11 +261,19 @@
257
261
  "sass": "./breadcrumbs/styles/_index.scss",
258
262
  "default": "./fesm2022/ngwr-breadcrumbs.mjs"
259
263
  },
264
+ "./breadcrumbs/testing": {
265
+ "types": "./types/ngwr-breadcrumbs-testing.d.ts",
266
+ "default": "./fesm2022/ngwr-breadcrumbs-testing.mjs"
267
+ },
260
268
  "./burger": {
261
269
  "types": "./types/ngwr-burger.d.ts",
262
270
  "sass": "./burger/styles/_index.scss",
263
271
  "default": "./fesm2022/ngwr-burger.mjs"
264
272
  },
273
+ "./burger/testing": {
274
+ "types": "./types/ngwr-burger-testing.d.ts",
275
+ "default": "./fesm2022/ngwr-burger-testing.mjs"
276
+ },
265
277
  "./button": {
266
278
  "types": "./types/ngwr-button.d.ts",
267
279
  "sass": "./button/styles/_index.scss",
@@ -515,6 +527,10 @@
515
527
  "sass": "./compare/styles/_index.scss",
516
528
  "default": "./fesm2022/ngwr-compare.mjs"
517
529
  },
530
+ "./compare/testing": {
531
+ "types": "./types/ngwr-compare-testing.d.ts",
532
+ "default": "./fesm2022/ngwr-compare-testing.mjs"
533
+ },
518
534
  "./context-menu": {
519
535
  "types": "./types/ngwr-context-menu.d.ts",
520
536
  "sass": "./context-menu/styles/_index.scss",
@@ -915,6 +931,10 @@
915
931
  "sass": "./pull-to-refresh/styles/_index.scss",
916
932
  "default": "./fesm2022/ngwr-pull-to-refresh.mjs"
917
933
  },
934
+ "./pull-to-refresh/testing": {
935
+ "types": "./types/ngwr-pull-to-refresh-testing.d.ts",
936
+ "default": "./fesm2022/ngwr-pull-to-refresh-testing.mjs"
937
+ },
918
938
  "./qr": {
919
939
  "types": "./types/ngwr-qr.d.ts",
920
940
  "sass": "./qr/styles/_index.scss",
@@ -943,6 +963,10 @@
943
963
  "sass": "./resizable/styles/_index.scss",
944
964
  "default": "./fesm2022/ngwr-resizable.mjs"
945
965
  },
966
+ "./resizable/testing": {
967
+ "types": "./types/ngwr-resizable-testing.d.ts",
968
+ "default": "./fesm2022/ngwr-resizable-testing.mjs"
969
+ },
946
970
  "./result": {
947
971
  "types": "./types/ngwr-result.d.ts",
948
972
  "sass": "./result/styles/_index.scss",
@@ -953,6 +977,10 @@
953
977
  "sass": "./schema-form/styles/_index.scss",
954
978
  "default": "./fesm2022/ngwr-schema-form.mjs"
955
979
  },
980
+ "./schema-form/testing": {
981
+ "types": "./types/ngwr-schema-form-testing.d.ts",
982
+ "default": "./fesm2022/ngwr-schema-form-testing.mjs"
983
+ },
956
984
  "./scroll": {
957
985
  "types": "./types/ngwr-scroll.d.ts",
958
986
  "default": "./fesm2022/ngwr-scroll.mjs"
@@ -980,6 +1008,10 @@
980
1008
  "sass": "./sidebar/styles/_index.scss",
981
1009
  "default": "./fesm2022/ngwr-sidebar.mjs"
982
1010
  },
1011
+ "./sidebar/testing": {
1012
+ "types": "./types/ngwr-sidebar-testing.d.ts",
1013
+ "default": "./fesm2022/ngwr-sidebar-testing.mjs"
1014
+ },
983
1015
  "./skeleton": {
984
1016
  "types": "./types/ngwr-skeleton.d.ts",
985
1017
  "sass": "./skeleton/styles/_index.scss",
@@ -1186,5 +1218,5 @@
1186
1218
  "sass": "./styles/_typography.scss"
1187
1219
  }
1188
1220
  },
1189
- "version": "16.2.0"
1221
+ "version": "16.4.0"
1190
1222
  }
@@ -60,19 +60,11 @@
60
60
  // The arrow that ties the panel to the control it is asking about — the same one
61
61
  // `wr-popover` draws, from the same mixin, because the two are the same kind of
62
62
  // anchored non-modal panel and a second copy of the geometry would drift.
63
- //
64
- // Four placements, not twelve: `WrPopconfirmPosition` is `top | bottom | left |
65
- // right`, and the eight `-start` / `-end` rules would be selectors that can
66
- // never match. Widen this list if the input ever grows them.
63
+ // All twelve placements, the mixin's default: `WrPopconfirmPosition` is the
64
+ // shared set.
67
65
  @include arrow.anchored-arrow(
68
66
  $pane: '.wr-popconfirm-overlay',
69
67
  $panel: '> .wr-popconfirm',
70
68
  $background: var(--wr-color-surface),
71
- $border: var(--wr-popconfirm-border),
72
- $placements-used: (
73
- top,
74
- bottom,
75
- left,
76
- right,
77
- )
69
+ $border: var(--wr-popconfirm-border)
78
70
  );
@@ -11,6 +11,7 @@
11
11
  --wr-progress-radius: var(--wr-border-radius-pill);
12
12
  --wr-progress-track: var(--wr-color-fill);
13
13
  --wr-progress-bar: var(--wr-color-primary);
14
+ --wr-progress-indeterminate-duration: 1.4s;
14
15
 
15
16
  // `flex: 1 1 100%` here would claim 100% basis on the flex MAIN axis —
16
17
  // fine in a row wrapper (=full width), broken in a column wrapper
@@ -24,6 +25,16 @@
24
25
  border-radius: var(--wr-progress-radius);
25
26
  background: var(--wr-progress-track);
26
27
 
28
+ &--sm,
29
+ &:where([size='sm']) {
30
+ --wr-progress-height: 0.25rem;
31
+ }
32
+
33
+ &--lg,
34
+ &:where([size='lg']) {
35
+ --wr-progress-height: 0.75rem;
36
+ }
37
+
27
38
  &__bar {
28
39
  height: 100%;
29
40
  background: var(--wr-progress-bar);
@@ -31,6 +42,17 @@
31
42
  transition: width var(--wr-transition-base);
32
43
  }
33
44
 
45
+ // No value to draw: a segment sweeps the track instead.
46
+ &--indeterminate &__bar {
47
+ position: absolute;
48
+ inset-block: 0;
49
+ // rtl-ok: an indeterminate sweep has no reading direction
50
+ left: 0;
51
+ width: 40%;
52
+ transition: none;
53
+ animation: wr-progress-indeterminate var(--wr-progress-indeterminate-duration) var(--wr-ease-in-out) infinite;
54
+ }
55
+
34
56
  // Forced colors paints every background `Canvas`, the page itself, so the
35
57
  // track and the bar both vanished and left a progressbar with nothing drawn.
36
58
  // The track gets an edge and the bar the text colour, the two system colours
@@ -50,3 +72,13 @@
50
72
  }
51
73
  }
52
74
  }
75
+
76
+ @keyframes wr-progress-indeterminate {
77
+ from {
78
+ transform: translateX(-100%);
79
+ }
80
+
81
+ to {
82
+ transform: translateX(250%);
83
+ }
84
+ }
@@ -12,12 +12,16 @@
12
12
  //
13
13
  // Sass deduplicates `@use` within a compilation, so an app that also loads one of
14
14
  // these by hand still emits it once.
15
+ @use '../../button/styles' as button-styles; // WrButton
15
16
  @use '../../checkbox/styles' as checkbox-styles; // WrCheckbox
16
17
  @use '../../date-picker/styles' as date_picker-styles; // WrDatePicker
18
+ @use '../../file-upload/styles' as file_upload-styles; // WrFileUpload
17
19
  @use '../../form/styles' as form-styles; // WrFormField
18
20
  @use '../../input/styles' as input-styles; // WrInput
19
21
  @use '../../input-number/styles' as input_number-styles; // WrInputNumber
20
22
  @use '../../radio/styles' as radio-styles; // WrRadio
23
+ @use '../../rating/styles' as rating-styles; // WrRating
24
+ @use '../../segmented/styles' as segmented-styles; // WrSegmented
21
25
  @use '../../select/styles' as select-styles; // WrOption
22
26
  @use '../../slider/styles' as slider-styles; // WrSlider
23
27
  @use '../../switch/styles' as switch-styles; // WrSwitch
@@ -26,6 +30,17 @@
26
30
 
27
31
  .wr-schema-form {
28
32
  --wr-schema-form-gap: var(--wr-space-lg);
33
+ --wr-schema-form-legend-color: var(--wr-color-on-surface);
34
+ --wr-schema-form-legend-font-size: var(--wr-text-base);
35
+ --wr-schema-form-legend-font-weight: var(--wr-font-weight-semibold);
36
+ --wr-schema-form-description-color: var(--wr-color-on-surface-muted);
37
+ --wr-schema-form-description-font-size: var(--wr-text-sm);
38
+ --wr-schema-form-item-gap: var(--wr-space-md);
39
+ --wr-schema-form-item-padding: var(--wr-space-md);
40
+ --wr-schema-form-item-border: var(--wr-border-base);
41
+ --wr-schema-form-item-radius: var(--wr-border-radius-base);
42
+ --wr-schema-form-item-title-color: var(--wr-color-on-surface-muted);
43
+ --wr-schema-form-item-title-font-size: var(--wr-text-sm);
29
44
 
30
45
  display: grid;
31
46
  gap: var(--wr-schema-form-gap);
@@ -37,3 +52,66 @@
37
52
  // content, so a long option label pushes the whole column past the form.
38
53
  min-width: 0;
39
54
  }
55
+
56
+ .wr-schema-form__section,
57
+ .wr-schema-form__array {
58
+ // A fieldset's default `min-inline-size: min-content` is the same refusal.
59
+ min-inline-size: 0;
60
+ margin: 0;
61
+ padding: 0;
62
+ border: 0;
63
+ }
64
+
65
+ // A section is a row of its own, whatever the form's column count.
66
+ .wr-schema-form__section {
67
+ grid-column: 1 / -1;
68
+ }
69
+
70
+ .wr-schema-form__legend {
71
+ margin-block-end: var(--wr-schema-form-item-gap);
72
+ padding: 0;
73
+ color: var(--wr-schema-form-legend-color);
74
+ font-size: var(--wr-schema-form-legend-font-size);
75
+ font-weight: var(--wr-schema-form-legend-font-weight);
76
+ }
77
+
78
+ .wr-schema-form__description {
79
+ margin-block: 0 var(--wr-schema-form-item-gap);
80
+ color: var(--wr-schema-form-description-color);
81
+ font-size: var(--wr-schema-form-description-font-size);
82
+ }
83
+
84
+ .wr-schema-form__grid {
85
+ display: grid;
86
+ gap: var(--wr-schema-form-gap);
87
+ }
88
+
89
+ .wr-schema-form__items {
90
+ display: flex;
91
+ flex-direction: column;
92
+ align-items: flex-start;
93
+ gap: var(--wr-schema-form-item-gap);
94
+ }
95
+
96
+ .wr-schema-form__item {
97
+ display: flex;
98
+ flex-direction: column;
99
+ gap: var(--wr-schema-form-item-gap);
100
+ box-sizing: border-box;
101
+ width: 100%;
102
+ padding: var(--wr-schema-form-item-padding);
103
+ border: 1px solid var(--wr-schema-form-item-border);
104
+ border-radius: var(--wr-schema-form-item-radius);
105
+ }
106
+
107
+ .wr-schema-form__item-head {
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: space-between;
111
+ gap: var(--wr-schema-form-item-gap);
112
+ }
113
+
114
+ .wr-schema-form__item-title {
115
+ color: var(--wr-schema-form-item-title-color);
116
+ font-size: var(--wr-schema-form-item-title-font-size);
117
+ }
@@ -28,6 +28,11 @@
28
28
  "schema": "./component-style/schema.json",
29
29
  "aliases": ["style"]
30
30
  },
31
+ "eject": {
32
+ "description": "Copy a component's source into the app, with its imports of other entry points rewritten to their package paths. `ng update` no longer updates the copy.",
33
+ "factory": "./eject/index#default",
34
+ "schema": "./eject/schema.json"
35
+ },
31
36
  "page": {
32
37
  "description": "Scaffold a starter page (form / table / dashboard) wired up with ngwr components.",
33
38
  "factory": "./page/index#default",
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const node_fs_1 = require("node:fs");
10
+ const node_path_1 = require("node:path");
11
+ const schematics_1 = require("@angular-devkit/schematics");
12
+ const source_1 = require("./source");
13
+ /**
14
+ * The manifest of the installed ngwr, two levels up from the compiled schematic:
15
+ * `node_modules/ngwr/package.json`. `null` where that cannot be read, as in a
16
+ * spec, which loads this source as an ES module and passes its own.
17
+ */
18
+ function shippedManifest() {
19
+ if (typeof __dirname !== 'string')
20
+ return null;
21
+ const file = (0, node_path_1.join)(__dirname, '..', '..', 'package.json');
22
+ if (!(0, node_fs_1.existsSync)(file))
23
+ return null;
24
+ const manifest = JSON.parse((0, node_fs_1.readFileSync)(file, 'utf8'));
25
+ return manifest.name === 'ngwr' && manifest.version && manifest.exports
26
+ ? { version: manifest.version, exports: manifest.exports, repository: manifest.repository }
27
+ : null;
28
+ }
29
+ /** The library folder of a checkout given as its root or as `projects/lib` itself. */
30
+ function localLibrary(from) {
31
+ const dir = (0, node_path_1.isAbsolute)(from) ? from : (0, node_path_1.resolve)(process.cwd(), from);
32
+ const lib = [(0, node_path_1.join)(dir, 'projects', 'lib'), dir].find(candidate => (0, node_fs_1.existsSync)((0, node_path_1.join)(candidate, 'package.json')));
33
+ if (!lib) {
34
+ throw new schematics_1.SchematicsException(`ngwr:eject: ${from} is not an ngwr checkout: no package.json there or under its projects/lib.`);
35
+ }
36
+ return lib;
37
+ }
38
+ /** Reads the sources of a release from GitHub, at the tag `v<version>`. */
39
+ function remoteSource(manifest, fetchFile) {
40
+ return async (file) => {
41
+ const url = (0, source_1.ejectRawUrl)(manifest.version, file, manifest.repository);
42
+ let response;
43
+ try {
44
+ response = await fetchFile(url);
45
+ }
46
+ catch (error) {
47
+ throw new schematics_1.SchematicsException(`ngwr:eject: could not reach ${url} (${error instanceof Error ? error.message : String(error)}). ` +
48
+ 'The published package carries no sources, so they are fetched from GitHub. Offline, pass ' +
49
+ '`--from <dir>` with a local checkout of the ngwr repository.');
50
+ }
51
+ if (response.status === 404)
52
+ return null;
53
+ if (!response.ok)
54
+ throw new schematics_1.SchematicsException(`ngwr:eject: ${url} answered ${response.status}.`);
55
+ return response.text();
56
+ };
57
+ }
58
+ /** How many of the files sit in the shared folder. */
59
+ function sharedCount(files, isShared) {
60
+ return files.filter(file => isShared(file.path)).length;
61
+ }
62
+ /**
63
+ * `ng g ngwr:eject <entry>`: copies one component's source into the app, where
64
+ * it can be edited freely and `ng update` no longer reaches it.
65
+ *
66
+ * The sources are fetched from the repository at the tag of the installed
67
+ * version, since the tarball ships compiled output only; `--from` reads a local
68
+ * checkout instead. Imports that reach other entry points are rewritten to
69
+ * their package paths, so the copy still uses the installed ngwr for everything
70
+ * but itself; a private file it reads, which no package path exposes, is copied
71
+ * into `_ngwr-internal` beside the ejected folder, once for every component
72
+ * ejected there. See `./source` for which files are copied and how.
73
+ *
74
+ * `manifest` and `fetchFile` are parameters so a spec can pass its own; the
75
+ * devkit calls this with the options alone.
76
+ */
77
+ function eject(options, manifest = shippedManifest(), fetchFile = url => fetch(url)) {
78
+ return async (tree, context) => {
79
+ const name = options.entry
80
+ .trim()
81
+ .replace(/^['"]+|['"]+$/g, '')
82
+ .replace(/^ngwr\//, '')
83
+ .replace(/^\/+|\/+$/g, '');
84
+ if (!name)
85
+ throw new schematics_1.SchematicsException('ngwr:eject: missing `entry`.');
86
+ if (!manifest)
87
+ throw new schematics_1.SchematicsException('ngwr:eject: could not read the installed ngwr manifest.');
88
+ const { logger } = context;
89
+ const entry = (0, source_1.ejectTarget)(name, manifest.exports);
90
+ if (entry !== name)
91
+ logger.info(`ngwr: ${name} is ngwr/${entry}.`);
92
+ const refusal = (0, source_1.ejectRefusal)(entry, manifest.exports);
93
+ if (refusal)
94
+ throw new schematics_1.SchematicsException(`ngwr:eject: ${refusal}`);
95
+ let read;
96
+ let version = manifest.version;
97
+ if (options.from) {
98
+ const lib = localLibrary(options.from);
99
+ version =
100
+ JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(lib, 'package.json'), 'utf8')).version ?? version;
101
+ read = file => Promise.resolve((0, node_fs_1.existsSync)((0, node_path_1.join)(lib, file)) ? (0, node_fs_1.readFileSync)((0, node_path_1.join)(lib, file), 'utf8') : null);
102
+ }
103
+ else {
104
+ read = remoteSource(manifest, fetchFile);
105
+ }
106
+ const dest = (options.path?.trim() ? options.path.trim() : `src/app/ngwr/${entry}`).replace(/^\/+|\/+$/g, '');
107
+ const ejected = await (0, source_1.collectEjected)(entry, manifest.exports, version, read, node_path_1.posix.basename(dest));
108
+ if (!ejected) {
109
+ throw new schematics_1.SchematicsException(options.from
110
+ ? `ngwr:eject: ${options.from} has no ${entry}/public-api.ts.`
111
+ : `ngwr:eject: ${(0, source_1.ejectRawUrl)(version, `${entry}/public-api.ts`, manifest.repository)} does not exist: ` +
112
+ `there is no v${version} tag, or it has no ngwr/${entry}. Pass \`--from <dir>\` with a local checkout.`);
113
+ }
114
+ if (!ejected.declarable) {
115
+ throw new schematics_1.SchematicsException(`ngwr:eject: ngwr/${entry} declares no component or directive, so there is nothing to eject.`);
116
+ }
117
+ const shared = node_path_1.posix.join(dest, '..', source_1.EJECT_SHARED_DIR);
118
+ const placed = ejected.files.map(file => ({ ...file, path: node_path_1.posix.join(dest, file.path) }));
119
+ const isShared = (path) => path.startsWith(`${shared}/`);
120
+ const taken = placed.find(file => !isShared(file.path) && tree.exists(file.path));
121
+ if (taken) {
122
+ throw new schematics_1.SchematicsException(`ngwr:eject: ${taken.path} already exists. Delete the folder first, or pass another \`--path\`.`);
123
+ }
124
+ // A private file an earlier eject brought stays as it is: it may have been edited since.
125
+ const kept = [];
126
+ let brought = 0;
127
+ for (const file of placed) {
128
+ if (!tree.exists(file.path)) {
129
+ tree.create(file.path, file.content);
130
+ if (isShared(file.path))
131
+ brought++;
132
+ }
133
+ else if (tree.readText(file.path) !== file.content) {
134
+ kept.push(file.path);
135
+ }
136
+ }
137
+ logger.info(`✓ Copied ngwr/${entry}@${version} into ${dest} (${placed.length - sharedCount(placed, isShared)} files).`);
138
+ if (sharedCount(placed, isShared) > 0) {
139
+ logger.info(` It reads ${sharedCount(placed, isShared)} private files of ngwr, kept in ${shared} and shared by the ` +
140
+ `components ejected beside it (${brought} added now).`);
141
+ }
142
+ logger.info(` Import it from that folder instead of 'ngwr/${entry}'. \`ng update\` no longer updates this copy.`);
143
+ if (ejected.styles) {
144
+ const sheet = `${dest}/${ejected.styles.replace(/\/_index\.scss$/, '')}`;
145
+ logger.info(` In the global stylesheet, replace \`@use 'ngwr/${entry}';\` with a \`@use\` of ${sheet}.`);
146
+ }
147
+ logger.info(` The copy keeps its selectors and classes: never import it and 'ngwr/${entry}' into the same component. ` +
148
+ 'To use both, rename the selector and the `.wr-*` classes in the copy.');
149
+ for (const path of kept) {
150
+ logger.warn(`ngwr: ${path} already exists and differs from ngwr@${version}; it was left as it is.`);
151
+ }
152
+ for (const warning of ejected.warnings) {
153
+ logger.warn(`ngwr: ${node_path_1.posix.join(dest, warning.file)}:${warning.line} '${warning.specifier}' ${warning.reason}.`);
154
+ }
155
+ return tree;
156
+ };
157
+ }
158
+ exports.default = eject;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "ngwr-eject",
4
+ "title": "ngwr eject",
5
+ "type": "object",
6
+ "properties": {
7
+ "entry": {
8
+ "type": "string",
9
+ "description": "The component's path under `ngwr/`, nested ones included — e.g. `button`, `select`, `charts/bar-chart`.",
10
+ "$default": { "$source": "argv", "index": 0 },
11
+ "x-prompt": "Which component? (e.g. button, select, charts/bar-chart)"
12
+ },
13
+ "path": {
14
+ "type": "string",
15
+ "format": "path",
16
+ "description": "Folder the copy is written to, from the workspace root. Defaults to `src/app/ngwr/<entry>`."
17
+ },
18
+ "from": {
19
+ "type": "string",
20
+ "description": "A local checkout of the ngwr repository (its root, or its `projects/lib`) to copy from, instead of fetching the sources of the installed version from GitHub."
21
+ }
22
+ },
23
+ "required": ["entry"]
24
+ }