jqwidgets-ng 18.0.0 → 18.2.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 (444) hide show
  1. package/ReleaseNotes.txt +5 -125
  2. package/esm2020/jqxdatatable/angular_jqxdatatable.mjs +3 -0
  3. package/esm2020/jqxgrid/angular_jqxgrid.mjs +3 -0
  4. package/esm2020/jqxtreegrid/angular_jqxtreegrid.mjs +3 -0
  5. package/fesm2015/jqwidgets-ng-jqxbarcode.mjs +4 -2
  6. package/fesm2015/jqwidgets-ng-jqxbargauge.mjs +5 -3
  7. package/fesm2015/jqwidgets-ng-jqxbulletchart.mjs +6 -4
  8. package/fesm2015/jqwidgets-ng-jqxbuttongroup.mjs +5 -3
  9. package/fesm2015/jqwidgets-ng-jqxbuttons.mjs +4 -2
  10. package/fesm2015/jqwidgets-ng-jqxcalendar.mjs +8 -6
  11. package/fesm2015/jqwidgets-ng-jqxchart.mjs +11 -9
  12. package/fesm2015/jqwidgets-ng-jqxcheckbox.mjs +4 -2
  13. package/fesm2015/jqwidgets-ng-jqxcheckboxgroup.mjs +5 -3
  14. package/fesm2015/jqwidgets-ng-jqxcolorpicker.mjs +7 -5
  15. package/fesm2015/jqwidgets-ng-jqxcombobox.mjs +8 -6
  16. package/fesm2015/jqwidgets-ng-jqxcomplexinput.mjs +5 -3
  17. package/fesm2015/jqwidgets-ng-jqxdatatable.mjs +17 -12
  18. package/fesm2015/jqwidgets-ng-jqxdatetimeinput.mjs +8 -6
  19. package/fesm2015/jqwidgets-ng-jqxdocking.mjs +6 -4
  20. package/fesm2015/jqwidgets-ng-jqxdockinglayout.mjs +10 -8
  21. package/fesm2015/jqwidgets-ng-jqxdockpanel.mjs +4 -2
  22. package/fesm2015/jqwidgets-ng-jqxdragdrop.mjs +4 -2
  23. package/fesm2015/jqwidgets-ng-jqxdraw.mjs +4 -2
  24. package/fesm2015/jqwidgets-ng-jqxdropdownbutton.mjs +5 -3
  25. package/fesm2015/jqwidgets-ng-jqxdropdownlist.mjs +8 -6
  26. package/fesm2015/jqwidgets-ng-jqxeditor.mjs +14 -12
  27. package/fesm2015/jqwidgets-ng-jqxexpander.mjs +4 -2
  28. package/fesm2015/jqwidgets-ng-jqxfileupload.mjs +5 -3
  29. package/fesm2015/jqwidgets-ng-jqxform.mjs +19 -17
  30. package/fesm2015/jqwidgets-ng-jqxformattedinput.mjs +4 -2
  31. package/fesm2015/jqwidgets-ng-jqxgantt.mjs +6 -4
  32. package/fesm2015/jqwidgets-ng-jqxgauge.mjs +5 -3
  33. package/fesm2015/jqwidgets-ng-jqxgrid.mjs +34 -29
  34. package/fesm2015/jqwidgets-ng-jqxheatmap.mjs +4 -2
  35. package/fesm2015/jqwidgets-ng-jqxinput.mjs +5 -3
  36. package/fesm2015/jqwidgets-ng-jqxkanban.mjs +7 -5
  37. package/fesm2015/jqwidgets-ng-jqxknob.mjs +5 -3
  38. package/fesm2015/jqwidgets-ng-jqxlayout.mjs +7 -5
  39. package/fesm2015/jqwidgets-ng-jqxlineargauge.mjs +5 -3
  40. package/fesm2015/jqwidgets-ng-jqxlinkbutton.mjs +4 -2
  41. package/fesm2015/jqwidgets-ng-jqxlistbox.mjs +8 -6
  42. package/fesm2015/jqwidgets-ng-jqxlistmenu.mjs +7 -5
  43. package/fesm2015/jqwidgets-ng-jqxloader.mjs +4 -2
  44. package/fesm2015/jqwidgets-ng-jqxmaskedinput.mjs +4 -2
  45. package/fesm2015/jqwidgets-ng-jqxmenu.mjs +5 -3
  46. package/fesm2015/jqwidgets-ng-jqxnavbar.mjs +4 -2
  47. package/fesm2015/jqwidgets-ng-jqxnavigationbar.mjs +4 -2
  48. package/fesm2015/jqwidgets-ng-jqxnotification.mjs +5 -3
  49. package/fesm2015/jqwidgets-ng-jqxnumberinput.mjs +5 -3
  50. package/fesm2015/jqwidgets-ng-jqxpanel.mjs +6 -4
  51. package/fesm2015/jqwidgets-ng-jqxpasswordinput.mjs +5 -3
  52. package/fesm2015/jqwidgets-ng-jqxpivotdesigner.mjs +3 -1
  53. package/fesm2015/jqwidgets-ng-jqxpivotgrid.mjs +16 -14
  54. package/fesm2015/jqwidgets-ng-jqxpopover.mjs +4 -2
  55. package/fesm2015/jqwidgets-ng-jqxprogressbar.mjs +4 -2
  56. package/fesm2015/jqwidgets-ng-jqxqrcode.mjs +5 -3
  57. package/fesm2015/jqwidgets-ng-jqxradiobutton.mjs +4 -2
  58. package/fesm2015/jqwidgets-ng-jqxradiobuttongroup.mjs +5 -3
  59. package/fesm2015/jqwidgets-ng-jqxrangeselector.mjs +6 -4
  60. package/fesm2015/jqwidgets-ng-jqxrating.mjs +4 -2
  61. package/fesm2015/jqwidgets-ng-jqxrepeatbutton.mjs +4 -2
  62. package/fesm2015/jqwidgets-ng-jqxresponsivepanel.mjs +4 -2
  63. package/fesm2015/jqwidgets-ng-jqxribbon.mjs +6 -4
  64. package/fesm2015/jqwidgets-ng-jqxscheduler.mjs +24 -22
  65. package/fesm2015/jqwidgets-ng-jqxscrollbar.mjs +5 -3
  66. package/fesm2015/jqwidgets-ng-jqxscrollview.mjs +5 -3
  67. package/fesm2015/jqwidgets-ng-jqxslider.mjs +5 -3
  68. package/fesm2015/jqwidgets-ng-jqxsortable.mjs +5 -3
  69. package/fesm2015/jqwidgets-ng-jqxsplitlayout.mjs +4 -2
  70. package/fesm2015/jqwidgets-ng-jqxsplitter.mjs +5 -3
  71. package/fesm2015/jqwidgets-ng-jqxswitchbutton.mjs +4 -2
  72. package/fesm2015/jqwidgets-ng-jqxtabs.mjs +5 -3
  73. package/fesm2015/jqwidgets-ng-jqxtagcloud.mjs +6 -4
  74. package/fesm2015/jqwidgets-ng-jqxtextarea.mjs +7 -5
  75. package/fesm2015/jqwidgets-ng-jqxtimepicker.mjs +5 -3
  76. package/fesm2015/jqwidgets-ng-jqxtogglebutton.mjs +4 -2
  77. package/fesm2015/jqwidgets-ng-jqxtoolbar.mjs +10 -8
  78. package/fesm2015/jqwidgets-ng-jqxtooltip.mjs +4 -2
  79. package/fesm2015/jqwidgets-ng-jqxtree.mjs +10 -8
  80. package/fesm2015/jqwidgets-ng-jqxtreegrid.mjs +18 -13
  81. package/fesm2015/jqwidgets-ng-jqxtreemap.mjs +6 -4
  82. package/fesm2015/jqwidgets-ng-jqxvalidator.mjs +4 -2
  83. package/fesm2015/jqwidgets-ng-jqxwindow.mjs +5 -3
  84. package/fesm2020/jqwidgets-ng-jqxbarcode.mjs +4 -2
  85. package/fesm2020/jqwidgets-ng-jqxbargauge.mjs +5 -3
  86. package/fesm2020/jqwidgets-ng-jqxbulletchart.mjs +6 -4
  87. package/fesm2020/jqwidgets-ng-jqxbuttongroup.mjs +5 -3
  88. package/fesm2020/jqwidgets-ng-jqxbuttons.mjs +4 -2
  89. package/fesm2020/jqwidgets-ng-jqxcalendar.mjs +8 -6
  90. package/fesm2020/jqwidgets-ng-jqxchart.mjs +11 -9
  91. package/fesm2020/jqwidgets-ng-jqxcheckbox.mjs +4 -2
  92. package/fesm2020/jqwidgets-ng-jqxcheckboxgroup.mjs +5 -3
  93. package/fesm2020/jqwidgets-ng-jqxcolorpicker.mjs +7 -5
  94. package/fesm2020/jqwidgets-ng-jqxcombobox.mjs +8 -6
  95. package/fesm2020/jqwidgets-ng-jqxcomplexinput.mjs +5 -3
  96. package/fesm2020/jqwidgets-ng-jqxdatatable.mjs +17 -12
  97. package/fesm2020/jqwidgets-ng-jqxdatetimeinput.mjs +8 -6
  98. package/fesm2020/jqwidgets-ng-jqxdocking.mjs +6 -4
  99. package/fesm2020/jqwidgets-ng-jqxdockinglayout.mjs +10 -8
  100. package/fesm2020/jqwidgets-ng-jqxdockpanel.mjs +4 -2
  101. package/fesm2020/jqwidgets-ng-jqxdragdrop.mjs +4 -2
  102. package/fesm2020/jqwidgets-ng-jqxdraw.mjs +4 -2
  103. package/fesm2020/jqwidgets-ng-jqxdropdownbutton.mjs +5 -3
  104. package/fesm2020/jqwidgets-ng-jqxdropdownlist.mjs +8 -6
  105. package/fesm2020/jqwidgets-ng-jqxeditor.mjs +14 -12
  106. package/fesm2020/jqwidgets-ng-jqxexpander.mjs +4 -2
  107. package/fesm2020/jqwidgets-ng-jqxfileupload.mjs +5 -3
  108. package/fesm2020/jqwidgets-ng-jqxform.mjs +19 -17
  109. package/fesm2020/jqwidgets-ng-jqxformattedinput.mjs +4 -2
  110. package/fesm2020/jqwidgets-ng-jqxgantt.mjs +6 -4
  111. package/fesm2020/jqwidgets-ng-jqxgauge.mjs +5 -3
  112. package/fesm2020/jqwidgets-ng-jqxgrid.mjs +34 -29
  113. package/fesm2020/jqwidgets-ng-jqxheatmap.mjs +4 -2
  114. package/fesm2020/jqwidgets-ng-jqxinput.mjs +5 -3
  115. package/fesm2020/jqwidgets-ng-jqxkanban.mjs +7 -5
  116. package/fesm2020/jqwidgets-ng-jqxknob.mjs +5 -3
  117. package/fesm2020/jqwidgets-ng-jqxlayout.mjs +7 -5
  118. package/fesm2020/jqwidgets-ng-jqxlineargauge.mjs +5 -3
  119. package/fesm2020/jqwidgets-ng-jqxlinkbutton.mjs +4 -2
  120. package/fesm2020/jqwidgets-ng-jqxlistbox.mjs +8 -6
  121. package/fesm2020/jqwidgets-ng-jqxlistmenu.mjs +7 -5
  122. package/fesm2020/jqwidgets-ng-jqxloader.mjs +4 -2
  123. package/fesm2020/jqwidgets-ng-jqxmaskedinput.mjs +4 -2
  124. package/fesm2020/jqwidgets-ng-jqxmenu.mjs +5 -3
  125. package/fesm2020/jqwidgets-ng-jqxnavbar.mjs +4 -2
  126. package/fesm2020/jqwidgets-ng-jqxnavigationbar.mjs +4 -2
  127. package/fesm2020/jqwidgets-ng-jqxnotification.mjs +5 -3
  128. package/fesm2020/jqwidgets-ng-jqxnumberinput.mjs +5 -3
  129. package/fesm2020/jqwidgets-ng-jqxpanel.mjs +6 -4
  130. package/fesm2020/jqwidgets-ng-jqxpasswordinput.mjs +5 -3
  131. package/fesm2020/jqwidgets-ng-jqxpivotdesigner.mjs +3 -1
  132. package/fesm2020/jqwidgets-ng-jqxpivotgrid.mjs +16 -14
  133. package/fesm2020/jqwidgets-ng-jqxpopover.mjs +4 -2
  134. package/fesm2020/jqwidgets-ng-jqxprogressbar.mjs +4 -2
  135. package/fesm2020/jqwidgets-ng-jqxqrcode.mjs +5 -3
  136. package/fesm2020/jqwidgets-ng-jqxradiobutton.mjs +4 -2
  137. package/fesm2020/jqwidgets-ng-jqxradiobuttongroup.mjs +5 -3
  138. package/fesm2020/jqwidgets-ng-jqxrangeselector.mjs +6 -4
  139. package/fesm2020/jqwidgets-ng-jqxrating.mjs +4 -2
  140. package/fesm2020/jqwidgets-ng-jqxrepeatbutton.mjs +4 -2
  141. package/fesm2020/jqwidgets-ng-jqxresponsivepanel.mjs +4 -2
  142. package/fesm2020/jqwidgets-ng-jqxribbon.mjs +6 -4
  143. package/fesm2020/jqwidgets-ng-jqxscheduler.mjs +24 -22
  144. package/fesm2020/jqwidgets-ng-jqxscrollbar.mjs +5 -3
  145. package/fesm2020/jqwidgets-ng-jqxscrollview.mjs +5 -3
  146. package/fesm2020/jqwidgets-ng-jqxslider.mjs +5 -3
  147. package/fesm2020/jqwidgets-ng-jqxsortable.mjs +5 -3
  148. package/fesm2020/jqwidgets-ng-jqxsplitlayout.mjs +4 -2
  149. package/fesm2020/jqwidgets-ng-jqxsplitter.mjs +5 -3
  150. package/fesm2020/jqwidgets-ng-jqxswitchbutton.mjs +4 -2
  151. package/fesm2020/jqwidgets-ng-jqxtabs.mjs +5 -3
  152. package/fesm2020/jqwidgets-ng-jqxtagcloud.mjs +6 -4
  153. package/fesm2020/jqwidgets-ng-jqxtextarea.mjs +7 -5
  154. package/fesm2020/jqwidgets-ng-jqxtimepicker.mjs +5 -3
  155. package/fesm2020/jqwidgets-ng-jqxtogglebutton.mjs +4 -2
  156. package/fesm2020/jqwidgets-ng-jqxtoolbar.mjs +10 -8
  157. package/fesm2020/jqwidgets-ng-jqxtooltip.mjs +4 -2
  158. package/fesm2020/jqwidgets-ng-jqxtree.mjs +10 -8
  159. package/fesm2020/jqwidgets-ng-jqxtreegrid.mjs +18 -13
  160. package/fesm2020/jqwidgets-ng-jqxtreemap.mjs +6 -4
  161. package/fesm2020/jqwidgets-ng-jqxvalidator.mjs +4 -2
  162. package/fesm2020/jqwidgets-ng-jqxwindow.mjs +5 -3
  163. package/jqwidgets/globalization/globalize.culture.cs-CZ.js +87 -87
  164. package/jqwidgets/globalization/globalize.culture.de-DE.js +83 -83
  165. package/jqwidgets/globalization/globalize.culture.en-CA.js +51 -51
  166. package/jqwidgets/globalization/globalize.culture.en-US.js +35 -35
  167. package/jqwidgets/globalization/globalize.culture.fr-FR.js +81 -81
  168. package/jqwidgets/globalization/globalize.culture.he-IL.js +99 -99
  169. package/jqwidgets/globalization/globalize.culture.hr-HR.js +83 -83
  170. package/jqwidgets/globalization/globalize.culture.hu-HU.js +82 -82
  171. package/jqwidgets/globalization/globalize.culture.it-IT.js +81 -81
  172. package/jqwidgets/globalization/globalize.culture.ja-JP.js +102 -102
  173. package/jqwidgets/globalization/globalize.culture.lt.js +85 -85
  174. package/jqwidgets/globalization/globalize.culture.ru-RU.js +84 -84
  175. package/jqwidgets/globalization/globalize.culture.sa-IN.js +73 -73
  176. package/jqwidgets/globalization/globalize.js +1591 -1591
  177. package/jqwidgets/jqx-all.js +9 -9
  178. package/jqwidgets/jqxangular.js +2 -2
  179. package/jqwidgets/jqxbarcode.js +2 -2
  180. package/jqwidgets/jqxbargauge.js +2 -2
  181. package/jqwidgets/jqxbulletchart.js +2 -2
  182. package/jqwidgets/jqxbuttongroup.js +2 -2
  183. package/jqwidgets/jqxbuttons.js +2 -2
  184. package/jqwidgets/jqxcalendar.js +2 -2
  185. package/jqwidgets/jqxchart.annotations.js +2 -2
  186. package/jqwidgets/jqxchart.api.js +2 -2
  187. package/jqwidgets/jqxchart.core.js +3 -3
  188. package/jqwidgets/jqxchart.js +3 -3
  189. package/jqwidgets/jqxchart.rangeselector.js +2 -2
  190. package/jqwidgets/jqxchart.waterfall.js +2 -2
  191. package/jqwidgets/jqxcheckbox.js +2 -2
  192. package/jqwidgets/jqxcheckboxgroup.js +2 -2
  193. package/jqwidgets/jqxcolorpicker.js +2 -2
  194. package/jqwidgets/jqxcombobox.js +2 -2
  195. package/jqwidgets/jqxcomplexinput.js +2 -2
  196. package/jqwidgets/jqxcore.js +3 -3
  197. package/jqwidgets/jqxdata.export.js +2 -2
  198. package/jqwidgets/jqxdata.js +2 -2
  199. package/jqwidgets/jqxdatatable.js +2 -2
  200. package/jqwidgets/jqxdate.js +2 -2
  201. package/jqwidgets/jqxdatetimeinput.js +2 -2
  202. package/jqwidgets/jqxdocking.js +2 -2
  203. package/jqwidgets/jqxdockinglayout.js +2 -2
  204. package/jqwidgets/jqxdockpanel.js +2 -2
  205. package/jqwidgets/jqxdragdrop.js +2 -2
  206. package/jqwidgets/jqxdraw.js +2 -2
  207. package/jqwidgets/jqxdropdownbutton.js +2 -2
  208. package/jqwidgets/jqxdropdownlist.js +2 -2
  209. package/jqwidgets/jqxeditor.js +2 -2
  210. package/jqwidgets/jqxexpander.js +2 -2
  211. package/jqwidgets/jqxfileupload.js +2 -2
  212. package/jqwidgets/jqxform.js +3 -3
  213. package/jqwidgets/jqxformattedinput.js +2 -2
  214. package/jqwidgets/jqxgantt.api.js +346 -382
  215. package/jqwidgets/jqxgantt.js +2 -2
  216. package/jqwidgets/jqxgauge.js +2 -2
  217. package/jqwidgets/jqxgrid.aggregates.js +2 -2
  218. package/jqwidgets/jqxgrid.columnsreorder.js +2 -2
  219. package/jqwidgets/jqxgrid.columnsresize.js +2 -2
  220. package/jqwidgets/jqxgrid.edit.js +2 -2
  221. package/jqwidgets/jqxgrid.export.js +2 -2
  222. package/jqwidgets/jqxgrid.filter.js +2 -2
  223. package/jqwidgets/jqxgrid.grouping.js +3 -3
  224. package/jqwidgets/jqxgrid.js +3 -3
  225. package/jqwidgets/jqxgrid.pager.js +2 -2
  226. package/jqwidgets/jqxgrid.selection.js +2 -2
  227. package/jqwidgets/jqxgrid.sort.js +3 -3
  228. package/jqwidgets/jqxgrid.storage.js +2 -2
  229. package/jqwidgets/jqxheatmap.js +2 -2
  230. package/jqwidgets/jqxinput.js +2 -2
  231. package/jqwidgets/jqxkanban.js +2 -2
  232. package/jqwidgets/jqxknob.js +2 -2
  233. package/jqwidgets/jqxknockout.js +2 -2
  234. package/jqwidgets/jqxlayout.js +2 -2
  235. package/jqwidgets/jqxlistbox.js +2 -2
  236. package/jqwidgets/jqxlistmenu.js +2 -2
  237. package/jqwidgets/jqxloader.js +2 -2
  238. package/jqwidgets/jqxmaskedinput.js +2 -2
  239. package/jqwidgets/jqxmenu.js +2 -2
  240. package/jqwidgets/jqxnavbar.js +2 -2
  241. package/jqwidgets/jqxnavigationbar.js +2 -2
  242. package/jqwidgets/jqxnotification.js +2 -2
  243. package/jqwidgets/jqxnumberinput.js +2 -2
  244. package/jqwidgets/jqxpanel.js +2 -2
  245. package/jqwidgets/jqxpasswordinput.js +2 -2
  246. package/jqwidgets/jqxpivot.js +2 -2
  247. package/jqwidgets/jqxpivotdesigner.js +2 -2
  248. package/jqwidgets/jqxpivotgrid.js +2 -2
  249. package/jqwidgets/jqxpopover.js +2 -2
  250. package/jqwidgets/jqxprogressbar.js +2 -2
  251. package/jqwidgets/jqxqrcode.js +2 -2
  252. package/jqwidgets/jqxradiobutton.js +2 -2
  253. package/jqwidgets/jqxradiobuttongroup.js +2 -2
  254. package/jqwidgets/jqxrangeselector.js +2 -2
  255. package/jqwidgets/jqxrating.js +2 -2
  256. package/jqwidgets/jqxresponsivepanel.js +2 -2
  257. package/jqwidgets/jqxribbon.js +2 -2
  258. package/jqwidgets/jqxscheduler.api.js +2 -2
  259. package/jqwidgets/jqxscheduler.js +2 -2
  260. package/jqwidgets/jqxscrollbar.js +2 -2
  261. package/jqwidgets/jqxscrollview.js +2 -2
  262. package/jqwidgets/jqxslider.js +2 -2
  263. package/jqwidgets/jqxsortable.js +2 -2
  264. package/jqwidgets/jqxsplitlayout.js +2 -2
  265. package/jqwidgets/jqxsplitter.js +2 -2
  266. package/jqwidgets/jqxswitchbutton.js +2 -2
  267. package/jqwidgets/jqxtabs.js +2 -2
  268. package/jqwidgets/jqxtagcloud.js +2 -2
  269. package/jqwidgets/jqxtextarea.js +2 -2
  270. package/jqwidgets/jqxtimepicker.js +2 -2
  271. package/jqwidgets/jqxtoolbar.js +2 -2
  272. package/jqwidgets/jqxtooltip.js +2 -2
  273. package/jqwidgets/jqxtouch.js +2 -2
  274. package/jqwidgets/jqxtree.js +2 -2
  275. package/jqwidgets/jqxtreegrid.js +3 -3
  276. package/jqwidgets/jqxtreemap.js +2 -2
  277. package/jqwidgets/jqxvalidator.js +2 -2
  278. package/jqwidgets/jqxwindow.js +2 -2
  279. package/jqwidgets/styles/font/jqx-icons.svg +268 -268
  280. package/jqwidgets/styles/gantt/font/jqx-icons.svg +332 -332
  281. package/jqwidgets/styles/gantt/jqx.gantt.css +18667 -18667
  282. package/jqwidgets/styles/jqx.fluent.css +3563 -3563
  283. package/jqwidgets/styles/jqx.fluent_old.css +1262 -1262
  284. package/jqwidgets/styles/theme.css +293 -293
  285. package/jqwidgets.d.ts +1 -1
  286. package/package.json +21 -3
  287. package/schematics/cdk/schematics/collection.json +2 -1
  288. package/schematics/cdk/schematics/index.d.ts +2 -1
  289. package/schematics/cdk/schematics/index.js +4 -4
  290. package/schematics/cdk/schematics/index.mjs +4 -4
  291. package/schematics/cdk/schematics/migration.json +4 -39
  292. package/schematics/cdk/schematics/ng-add/index.js +1 -1
  293. package/schematics/cdk/schematics/ng-add/index.mjs +1 -1
  294. package/schematics/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +6 -10
  295. package/schematics/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +7 -5
  296. package/schematics/cdk/schematics/ng-generate/drag-drop/index.js +9 -15
  297. package/schematics/cdk/schematics/ng-generate/drag-drop/index.mjs +9 -15
  298. package/schematics/cdk/schematics/ng-generate/drag-drop/schema.json +7 -0
  299. package/schematics/cdk/schematics/ng-update/data/attribute-selectors.js +2 -13
  300. package/schematics/cdk/schematics/ng-update/data/attribute-selectors.mjs +2 -13
  301. package/schematics/cdk/schematics/ng-update/data/class-names.js +2 -32
  302. package/schematics/cdk/schematics/ng-update/data/class-names.mjs +2 -32
  303. package/schematics/cdk/schematics/ng-update/data/constructor-checks.d.ts +1 -1
  304. package/schematics/cdk/schematics/ng-update/data/constructor-checks.js +2 -59
  305. package/schematics/cdk/schematics/ng-update/data/constructor-checks.mjs +2 -59
  306. package/schematics/cdk/schematics/ng-update/data/css-selectors.js +2 -5
  307. package/schematics/cdk/schematics/ng-update/data/css-selectors.mjs +2 -5
  308. package/schematics/cdk/schematics/ng-update/data/element-selectors.js +2 -5
  309. package/schematics/cdk/schematics/ng-update/data/element-selectors.mjs +2 -5
  310. package/schematics/cdk/schematics/ng-update/data/input-names.js +2 -95
  311. package/schematics/cdk/schematics/ng-update/data/input-names.mjs +2 -95
  312. package/schematics/cdk/schematics/ng-update/data/method-call-checks.js +2 -47
  313. package/schematics/cdk/schematics/ng-update/data/method-call-checks.mjs +2 -47
  314. package/schematics/cdk/schematics/ng-update/data/output-names.js +2 -19
  315. package/schematics/cdk/schematics/ng-update/data/output-names.mjs +2 -19
  316. package/schematics/cdk/schematics/ng-update/data/property-names.js +2 -127
  317. package/schematics/cdk/schematics/ng-update/data/property-names.mjs +2 -127
  318. package/schematics/cdk/schematics/ng-update/devkit-file-system.js +10 -6
  319. package/schematics/cdk/schematics/ng-update/devkit-file-system.mjs +10 -6
  320. package/schematics/cdk/schematics/ng-update/devkit-migration-rule.d.ts +2 -2
  321. package/schematics/cdk/schematics/ng-update/devkit-migration-rule.js +6 -14
  322. package/schematics/cdk/schematics/ng-update/devkit-migration-rule.mjs +6 -14
  323. package/schematics/cdk/schematics/ng-update/devkit-migration.d.ts +5 -5
  324. package/schematics/cdk/schematics/ng-update/devkit-migration.js +1 -1
  325. package/schematics/cdk/schematics/ng-update/devkit-migration.mjs +1 -1
  326. package/schematics/cdk/schematics/ng-update/find-stylesheets.js +2 -2
  327. package/schematics/cdk/schematics/ng-update/find-stylesheets.mjs +2 -2
  328. package/schematics/cdk/schematics/ng-update/html-parsing/elements.d.ts +1 -2
  329. package/schematics/cdk/schematics/ng-update/html-parsing/elements.js +2 -3
  330. package/schematics/cdk/schematics/ng-update/html-parsing/elements.mjs +2 -3
  331. package/schematics/cdk/schematics/ng-update/index.d.ts +2 -16
  332. package/schematics/cdk/schematics/ng-update/index.js +7 -43
  333. package/schematics/cdk/schematics/ng-update/index.mjs +7 -43
  334. package/schematics/cdk/schematics/ng-update/migrations/attribute-selectors.js +5 -8
  335. package/schematics/cdk/schematics/ng-update/migrations/attribute-selectors.mjs +5 -8
  336. package/schematics/cdk/schematics/ng-update/migrations/class-inheritance.js +8 -11
  337. package/schematics/cdk/schematics/ng-update/migrations/class-inheritance.mjs +8 -11
  338. package/schematics/cdk/schematics/ng-update/migrations/class-names.js +12 -15
  339. package/schematics/cdk/schematics/ng-update/migrations/class-names.mjs +12 -15
  340. package/schematics/cdk/schematics/ng-update/migrations/constructor-signature.js +7 -10
  341. package/schematics/cdk/schematics/ng-update/migrations/constructor-signature.mjs +7 -10
  342. package/schematics/cdk/schematics/ng-update/migrations/css-selectors.js +5 -8
  343. package/schematics/cdk/schematics/ng-update/migrations/css-selectors.mjs +5 -8
  344. package/schematics/cdk/schematics/ng-update/migrations/element-selectors.js +5 -8
  345. package/schematics/cdk/schematics/ng-update/migrations/element-selectors.mjs +5 -8
  346. package/schematics/cdk/schematics/ng-update/migrations/input-names.js +5 -8
  347. package/schematics/cdk/schematics/ng-update/migrations/input-names.mjs +5 -8
  348. package/schematics/cdk/schematics/ng-update/migrations/method-call-arguments.js +5 -8
  349. package/schematics/cdk/schematics/ng-update/migrations/method-call-arguments.mjs +5 -8
  350. package/schematics/cdk/schematics/ng-update/migrations/misc-template.js +4 -20
  351. package/schematics/cdk/schematics/ng-update/migrations/misc-template.mjs +4 -20
  352. package/schematics/cdk/schematics/ng-update/migrations/output-names.js +5 -8
  353. package/schematics/cdk/schematics/ng-update/migrations/output-names.mjs +5 -8
  354. package/schematics/cdk/schematics/ng-update/migrations/property-names.js +5 -8
  355. package/schematics/cdk/schematics/ng-update/migrations/property-names.mjs +5 -8
  356. package/schematics/cdk/schematics/ng-update/migrations/symbol-removal.js +6 -10
  357. package/schematics/cdk/schematics/ng-update/migrations/symbol-removal.mjs +6 -10
  358. package/schematics/cdk/schematics/ng-update/public-api.d.ts +2 -0
  359. package/schematics/cdk/schematics/ng-update/public-api.js +3 -1
  360. package/schematics/cdk/schematics/ng-update/public-api.mjs +3 -1
  361. package/schematics/cdk/schematics/ng-update/upgrade-data.js +4 -1
  362. package/schematics/cdk/schematics/ng-update/upgrade-data.mjs +4 -1
  363. package/schematics/cdk/schematics/tsconfig.json +1 -0
  364. package/schematics/cdk/schematics/update-tool/component-resource-collector.d.ts +1 -0
  365. package/schematics/cdk/schematics/update-tool/component-resource-collector.js +34 -15
  366. package/schematics/cdk/schematics/update-tool/component-resource-collector.mjs +34 -15
  367. package/schematics/cdk/schematics/update-tool/file-system.d.ts +3 -3
  368. package/schematics/cdk/schematics/update-tool/file-system.js +1 -1
  369. package/schematics/cdk/schematics/update-tool/file-system.mjs +1 -1
  370. package/schematics/cdk/schematics/update-tool/index.d.ts +6 -2
  371. package/schematics/cdk/schematics/update-tool/index.js +27 -11
  372. package/schematics/cdk/schematics/update-tool/index.mjs +27 -11
  373. package/schematics/cdk/schematics/update-tool/migration.d.ts +13 -7
  374. package/schematics/cdk/schematics/update-tool/migration.js +14 -4
  375. package/schematics/cdk/schematics/update-tool/migration.mjs +14 -4
  376. package/schematics/cdk/schematics/update-tool/public-api.d.ts +1 -0
  377. package/schematics/cdk/schematics/update-tool/public-api.js +2 -1
  378. package/schematics/cdk/schematics/update-tool/public-api.mjs +2 -1
  379. package/schematics/cdk/schematics/update-tool/target-version.d.ts +1 -8
  380. package/schematics/cdk/schematics/update-tool/target-version.js +3 -10
  381. package/schematics/cdk/schematics/update-tool/target-version.mjs +3 -10
  382. package/schematics/cdk/schematics/update-tool/utils/decorators.d.ts +1 -1
  383. package/schematics/cdk/schematics/update-tool/utils/diagnostics.d.ts +11 -0
  384. package/schematics/cdk/schematics/update-tool/utils/diagnostics.js +19 -0
  385. package/schematics/cdk/schematics/update-tool/utils/diagnostics.mjs +19 -0
  386. package/schematics/cdk/schematics/update-tool/utils/parse-tsconfig.d.ts +8 -0
  387. package/schematics/cdk/schematics/update-tool/utils/parse-tsconfig.js +30 -4
  388. package/schematics/cdk/schematics/update-tool/utils/parse-tsconfig.mjs +30 -4
  389. package/schematics/cdk/schematics/update-tool/utils/property-name.d.ts +1 -1
  390. package/schematics/cdk/schematics/update-tool/utils/virtual-host.d.ts +2 -0
  391. package/schematics/cdk/schematics/update-tool/utils/virtual-host.js +13 -3
  392. package/schematics/cdk/schematics/update-tool/utils/virtual-host.mjs +13 -3
  393. package/schematics/cdk/schematics/update-tool/version-changes.d.ts +3 -3
  394. package/schematics/cdk/schematics/utils/ast.d.ts +2 -2
  395. package/schematics/cdk/schematics/utils/ast.js +15 -25
  396. package/schematics/cdk/schematics/utils/ast.mjs +15 -25
  397. package/schematics/cdk/schematics/utils/build-component.js +22 -27
  398. package/schematics/cdk/schematics/utils/build-component.mjs +22 -27
  399. package/schematics/cdk/schematics/utils/get-project.d.ts +2 -2
  400. package/schematics/cdk/schematics/utils/get-project.js +7 -2
  401. package/schematics/cdk/schematics/utils/get-project.mjs +7 -2
  402. package/schematics/cdk/schematics/utils/html-manipulation.d.ts +1 -1
  403. package/schematics/cdk/schematics/utils/html-manipulation.js +2 -2
  404. package/schematics/cdk/schematics/utils/html-manipulation.mjs +2 -2
  405. package/schematics/cdk/schematics/utils/index.d.ts +1 -0
  406. package/schematics/cdk/schematics/utils/index.js +2 -1
  407. package/schematics/cdk/schematics/utils/index.mjs +2 -1
  408. package/schematics/cdk/schematics/utils/parse5-element.d.ts +3 -1
  409. package/schematics/cdk/schematics/utils/parse5-element.js +1 -1
  410. package/schematics/cdk/schematics/utils/parse5-element.mjs +1 -1
  411. package/schematics/cdk/schematics/utils/project-index-file.d.ts +2 -3
  412. package/schematics/cdk/schematics/utils/project-index-file.js +4 -4
  413. package/schematics/cdk/schematics/utils/project-index-file.mjs +4 -4
  414. package/schematics/cdk/schematics/utils/project-main-file.d.ts +2 -3
  415. package/schematics/cdk/schematics/utils/project-main-file.js +6 -3
  416. package/schematics/cdk/schematics/utils/project-main-file.mjs +6 -3
  417. package/schematics/cdk/schematics/utils/project-style-file.d.ts +2 -2
  418. package/schematics/cdk/schematics/utils/project-style-file.js +4 -3
  419. package/schematics/cdk/schematics/utils/project-style-file.mjs +4 -3
  420. package/schematics/cdk/schematics/utils/project-targets.d.ts +6 -10
  421. package/schematics/cdk/schematics/utils/project-targets.js +18 -13
  422. package/schematics/cdk/schematics/utils/project-targets.mjs +18 -13
  423. package/schematics/cdk/schematics/utils/project-tsconfig-paths.d.ts +3 -3
  424. package/schematics/cdk/schematics/utils/project-tsconfig-paths.js +14 -29
  425. package/schematics/cdk/schematics/utils/project-tsconfig-paths.mjs +14 -29
  426. package/schematics/cdk/schematics/utils/schematic-options.d.ts +5 -2
  427. package/schematics/cdk/schematics/utils/schematic-options.js +25 -5
  428. package/schematics/cdk/schematics/utils/schematic-options.mjs +25 -5
  429. package/schematics/fonts/material-fonts.js +8 -19
  430. package/schematics/fonts/material-fonts.mjs +35 -0
  431. package/schematics/ng-add/schema.json +1 -0
  432. package/schematics/theming/create-custom-theme.d.ts +9 -2
  433. package/schematics/theming/create-custom-theme.js +51 -11
  434. package/schematics/theming/create-custom-theme.mjs +51 -0
  435. package/schematics/theming/theming.d.ts +13 -6
  436. package/schematics/theming/theming.js +167 -179
  437. package/schematics/theming/theming.mjs +152 -0
  438. package/schematics/theming/theming2.js +179 -0
  439. package/schematics/cdk/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.d.ts +0 -14
  440. package/schematics/cdk/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +0 -39
  441. package/schematics/cdk/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +0 -39
  442. package/schematics/cdk/schematics/utils/vendored-ast-utils/index.d.ts +0 -70
  443. package/schematics/cdk/schematics/utils/vendored-ast-utils/index.js +0 -480
  444. package/schematics/cdk/schematics/utils/vendored-ast-utils/index.mjs +0 -480
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.io/license
8
+ */
9
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
10
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11
+ return new (P || (P = Promise))(function (resolve, reject) {
12
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
13
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
14
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
15
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
16
+ });
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.addTypographyClass = exports.addThemeToAppStyles = void 0;
20
+ const core_1 = require("@angular-devkit/core");
21
+ const schematics_1 = require("@angular-devkit/schematics");
22
+ const schematics_2 = require("jqwidgets-ng/schematics/cdk/schematics");
23
+ const change_1 = require("@schematics/angular/utility/change");
24
+ const workspace_1 = require("@schematics/angular/utility/workspace");
25
+ const path_1 = require("path");
26
+ const create_custom_theme_1 = require("./create-custom-theme");
27
+ /** Path segment that can be found in paths that refer to a prebuilt theme. */
28
+ let prebuiltThemePathSegment = 'jqwidgets-ng/jqwidgets/styles';
29
+ /** Default file name of the custom theme that can be generated. */
30
+ const defaultCustomThemeFilename = 'custom-theme.scss';
31
+ /** Add pre-built styles to the main project style file. */
32
+ function addThemeToAppStyles(options) {
33
+ return (host, context) => {
34
+ const themeName = options.theme || 'base';
35
+
36
+ return themeName === 'custom' ?
37
+ insertCustomTheme(options.project, host, context.logger) :
38
+ insertPrebuiltTheme(options.project, 'jqx.' + themeName, context.logger);
39
+ };
40
+ }
41
+ exports.addThemeToAppStyles = addThemeToAppStyles;
42
+ /** Adds the global typography class to the body element. */
43
+ function addTypographyClass(options) {
44
+ return (host) => __awaiter(this, void 0, void 0, function* () {
45
+ const workspace = yield workspace_1.getWorkspace(host);
46
+ const project = schematics_2.getProjectFromWorkspace(workspace, options.project);
47
+ const projectIndexFiles = schematics_2.getProjectIndexFiles(project);
48
+ if (!projectIndexFiles.length) {
49
+ throw new schematics_1.SchematicsException('No project index HTML file could be found.');
50
+ }
51
+ if (options.typography) {
52
+ projectIndexFiles.forEach(path => schematics_2.addBodyClass(host, path, 'mat-typography'));
53
+ }
54
+ });
55
+ }
56
+ exports.addTypographyClass = addTypographyClass;
57
+ /**
58
+ * Insert a custom theme to project style file. If no valid style file could be found, a new
59
+ * Scss file for the custom theme will be created.
60
+ */
61
+ function insertCustomTheme(projectName, host, logger) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const workspace = yield workspace_1.getWorkspace(host);
64
+ const project = schematics_2.getProjectFromWorkspace(workspace, projectName);
65
+ const stylesPath = schematics_2.getProjectStyleFile(project, 'scss');
66
+ const themeContent = create_custom_theme_1.createCustomTheme(projectName);
67
+ if (!stylesPath) {
68
+ if (!project.sourceRoot) {
69
+ throw new schematics_1.SchematicsException(`Could not find source root for project: "${projectName}". ` +
70
+ `Please make sure that the "sourceRoot" property is set in the workspace config.`);
71
+ }
72
+ // Normalize the path through the devkit utilities because we want to avoid having
73
+ // unnecessary path segments and windows backslash delimiters.
74
+ const customThemePath = core_1.normalize(path_1.join(project.sourceRoot, defaultCustomThemeFilename));
75
+ if (host.exists(customThemePath)) {
76
+ logger.warn(`Cannot create a custom Angular Material theme because
77
+ ${customThemePath} already exists. Skipping custom theme generation.`);
78
+ return schematics_1.noop();
79
+ }
80
+ host.create(customThemePath, themeContent);
81
+ return addThemeStyleToTarget(projectName, 'build', customThemePath, logger);
82
+ }
83
+ const insertion = new change_1.InsertChange(stylesPath, 0, themeContent);
84
+ const recorder = host.beginUpdate(stylesPath);
85
+ recorder.insertLeft(insertion.pos, insertion.toAdd);
86
+ host.commitUpdate(recorder);
87
+ return schematics_1.noop();
88
+ });
89
+ }
90
+ /** Insert a pre-built theme into the angular.json file. */
91
+ function insertPrebuiltTheme(project, theme, logger) {
92
+ // Path needs to be always relative to the `package.json` or workspace root.
93
+ const baseThemePath = `./node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css`;
94
+ const themePath = `./node_modules/jqwidgets-ng/jqwidgets/styles/${theme}.css`;
95
+
96
+ if (theme === 'jqx.base') {
97
+ return schematics_1.chain([
98
+ addThemeStyleToTarget(project, 'build', themePath, logger),
99
+ addThemeStyleToTarget(project, 'test', themePath, logger)
100
+ ]);
101
+ }
102
+ else {
103
+ prebuiltThemePathSegment += "/" + theme;
104
+
105
+ return schematics_1.chain([
106
+ addThemeStyleToTarget(project, 'build', baseThemePath, logger),
107
+ addThemeStyleToTarget(project, 'test', baseThemePath, logger),
108
+ addThemeStyleToTarget(project, 'build', themePath, logger),
109
+ addThemeStyleToTarget(project, 'test', themePath, logger)
110
+ ]);
111
+ }
112
+ }
113
+ /** Adds a theming style entry to the given project target options. */
114
+ function addThemeStyleToTarget(projectName, targetName, assetPath, logger) {
115
+ return workspace_1.updateWorkspace(workspace => {
116
+ const project = schematics_2.getProjectFromWorkspace(workspace, projectName);
117
+ // Do not update the builder options in case the target does not use the default CLI builder.
118
+ if (!validateDefaultTargetBuilder(project, targetName, logger)) {
119
+ return;
120
+ }
121
+ const targetOptions = schematics_2.getProjectTargetOptions(project, targetName);
122
+ const styles = targetOptions.styles;
123
+ if (!styles) {
124
+ targetOptions.styles = [assetPath];
125
+ }
126
+ else {
127
+ const existingStyles = styles.map(s => typeof s === 'string' ? s : s.input);
128
+ for (let [index, stylePath] of existingStyles.entries()) {
129
+ // If the given asset is already specified in the styles, we don't need to do anything.
130
+ if (stylePath === assetPath) {
131
+ return;
132
+ }
133
+ // In case a prebuilt theme is already set up, we can safely replace the theme with the new
134
+ // theme file. If a custom theme is set up, we are not able to safely replace the custom
135
+ // theme because these files can contain custom styles, while prebuilt themes are
136
+ // always packaged and considered replaceable.
137
+ if (stylePath.includes(defaultCustomThemeFilename)) {
138
+ logger.error(`Could not add the selected theme to the CLI project ` +
139
+ `configuration because there is already a custom theme file referenced.`);
140
+ logger.info(`Please manually add the following style file to your configuration:`);
141
+ logger.info(` ${assetPath}`);
142
+ return;
143
+ }
144
+ else if (stylePath.includes(prebuiltThemePathSegment)) {
145
+ styles.splice(index, 1);
146
+ }
147
+ }
148
+ styles.push(assetPath);
149
+ }
150
+ });
151
+ }
152
+ /**
153
+ * Validates that the specified project target is configured with the default builders which are
154
+ * provided by the Angular CLI. If the configured builder does not match the default builder,
155
+ * this function can either throw or just show a warning.
156
+ */
157
+ function validateDefaultTargetBuilder(project, targetName, logger) {
158
+ const defaultBuilder = schematics_2.defaultTargetBuilders[targetName];
159
+ const targetConfig = project.targets && project.targets.get(targetName);
160
+ const isDefaultBuilder = targetConfig && targetConfig['builder'] === defaultBuilder;
161
+ // Because the build setup for the Angular CLI can be customized by developers, we can't know
162
+ // where to put the theme file in the workspace configuration if custom builders are being
163
+ // used. In case the builder has been changed for the "build" target, we throw an error and
164
+ // exit because setting up a theme is a primary goal of `ng-add`. Otherwise if just the "test"
165
+ // builder has been changed, we warn because a theme is not mandatory for running tests
166
+ // with Material. See: https://github.com/angular/components/issues/14176
167
+ if (!isDefaultBuilder && targetName === 'build') {
168
+ throw new schematics_1.SchematicsException(`Your project is not using the default builders for ` +
169
+ `"${targetName}". The Angular Material schematics cannot add a theme to the workspace ` +
170
+ `configuration if the builder has been changed.`);
171
+ }
172
+ else if (!isDefaultBuilder) {
173
+ // for non-build targets we gracefully report the error without actually aborting the
174
+ // setup schematic. This is because a theme is not mandatory for running tests.
175
+ logger.warn(`Your project is not using the default builders for "${targetName}". This ` +
176
+ `means that we cannot add the configured theme to the "${targetName}" target.`);
177
+ }
178
+ return isDefaultBuilder;
179
+ }
@@ -1,14 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
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://angular.io/license
7
- */
8
- import { ResolvedResource } from '../../../update-tool/component-resource-collector';
9
- import { DevkitMigration } from '../../devkit-migration';
10
- /** Migration that removes tilde symbols from imports. */
11
- export declare class TildeImportMigration extends DevkitMigration<null> {
12
- enabled: boolean;
13
- visitStylesheet(stylesheet: ResolvedResource): void;
14
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.TildeImportMigration = void 0;
11
- const core_1 = require("@angular-devkit/core");
12
- const target_version_1 = require("../../../update-tool/target-version");
13
- const devkit_migration_1 = require("../../devkit-migration");
14
- /** Migration that removes tilde symbols from imports. */
15
- class TildeImportMigration extends devkit_migration_1.DevkitMigration {
16
- constructor() {
17
- super(...arguments);
18
- this.enabled = this.targetVersion === target_version_1.TargetVersion.V13;
19
- }
20
- visitStylesheet(stylesheet) {
21
- const extension = (0, core_1.extname)(stylesheet.filePath);
22
- if (extension === '.scss' || extension === '.css') {
23
- const content = stylesheet.content;
24
- const migratedContent = content.replace(/@(?:import|use) +['"](~@angular\/.*)['"].*;?/g, (match, importPath) => {
25
- const index = match.indexOf(importPath);
26
- const newImportPath = importPath.replace(/^~|\.scss$/g, '');
27
- return match.slice(0, index) + newImportPath + match.slice(index + importPath.length);
28
- });
29
- if (migratedContent && migratedContent !== content) {
30
- this.fileSystem
31
- .edit(stylesheet.filePath)
32
- .remove(0, stylesheet.content.length)
33
- .insertLeft(0, migratedContent);
34
- }
35
- }
36
- }
37
- }
38
- exports.TildeImportMigration = TildeImportMigration;
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlsZGUtaW1wb3J0LW1pZ3JhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvc2NoZW1hdGljcy9uZy11cGRhdGUvbWlncmF0aW9ucy90aWxkZS1pbXBvcnQtdjEzL3RpbGRlLWltcG9ydC1taWdyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsK0NBQTZDO0FBRTdDLHdFQUFrRTtBQUNsRSw2REFBdUQ7QUFFdkQseURBQXlEO0FBQ3pELE1BQWEsb0JBQXFCLFNBQVEsa0NBQXFCO0lBQS9EOztRQUNFLFlBQU8sR0FBRyxJQUFJLENBQUMsYUFBYSxLQUFLLDhCQUFhLENBQUMsR0FBRyxDQUFDO0lBd0JyRCxDQUFDO0lBdEJVLGVBQWUsQ0FBQyxVQUE0QjtRQUNuRCxNQUFNLFNBQVMsR0FBRyxJQUFBLGNBQU8sRUFBQyxVQUFVLENBQUMsUUFBUSxDQUFDLENBQUM7UUFFL0MsSUFBSSxTQUFTLEtBQUssT0FBTyxJQUFJLFNBQVMsS0FBSyxNQUFNLEVBQUU7WUFDakQsTUFBTSxPQUFPLEdBQUcsVUFBVSxDQUFDLE9BQU8sQ0FBQztZQUNuQyxNQUFNLGVBQWUsR0FBRyxPQUFPLENBQUMsT0FBTyxDQUNyQywrQ0FBK0MsRUFDL0MsQ0FBQyxLQUFLLEVBQUUsVUFBVSxFQUFFLEVBQUU7Z0JBQ3BCLE1BQU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PSBpbXBvcnRQYXRoLnJlcGxhY2UoL15+fFxcLnNjc3MkL2csICcnKTtcbiAgICAgICAgICByZXR1cm4gbWF0Y2guc2xpY2UoMCwgaW5kZXgpICsgbmV3SW1wb3J0UGF0aCArIG1hdGNoLnNsaWNlKGluZGV4ICsgaW1wb3J0UGF0aC5sZW5ndGgpO1xuICAgICAgICB9LFxuICAgICAgKTtcblxuICAgICAgaWYgKG1pZ3JhdGVkQ29udGVudCAmJiBtaWdyYXRlZENvbnRlbnQgIT09IGNvbnRlbnQpIHtcbiAgICAgICAgdGhpcy5maWxlU3lzdGVtXG4gICAgICAgICAgLmVkaXQoc3R5bGVzaGVldC5maWxlUGF0aClcbiAgICAgICAgICAucmVtb3ZlKDAsIHN0eWxlc2hlZXQuY29udGVudC5sZW5ndGgpXG4gICAgICAgICAgLmluc2VydExlZnQoMCwgbWlncmF0ZWRDb250ZW50KTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ==
@@ -1,39 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.io/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.TildeImportMigration = void 0;
11
- const core_1 = require("@angular-devkit/core");
12
- const target_version_1 = require("../../../update-tool/target-version");
13
- const devkit_migration_1 = require("../../devkit-migration");
14
- /** Migration that removes tilde symbols from imports. */
15
- class TildeImportMigration extends devkit_migration_1.DevkitMigration {
16
- constructor() {
17
- super(...arguments);
18
- this.enabled = this.targetVersion === target_version_1.TargetVersion.V13;
19
- }
20
- visitStylesheet(stylesheet) {
21
- const extension = (0, core_1.extname)(stylesheet.filePath);
22
- if (extension === '.scss' || extension === '.css') {
23
- const content = stylesheet.content;
24
- const migratedContent = content.replace(/@(?:import|use) +['"](~@angular\/.*)['"].*;?/g, (match, importPath) => {
25
- const index = match.indexOf(importPath);
26
- const newImportPath = importPath.replace(/^~|\.scss$/g, '');
27
- return match.slice(0, index) + newImportPath + match.slice(index + importPath.length);
28
- });
29
- if (migratedContent && migratedContent !== content) {
30
- this.fileSystem
31
- .edit(stylesheet.filePath)
32
- .remove(0, stylesheet.content.length)
33
- .insertLeft(0, migratedContent);
34
- }
35
- }
36
- }
37
- }
38
- exports.TildeImportMigration = TildeImportMigration;
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlsZGUtaW1wb3J0LW1pZ3JhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvc2NoZW1hdGljcy9uZy11cGRhdGUvbWlncmF0aW9ucy90aWxkZS1pbXBvcnQtdjEzL3RpbGRlLWltcG9ydC1taWdyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRzs7O0FBRUgsK0NBQTZDO0FBRTdDLHdFQUFrRTtBQUNsRSw2REFBdUQ7QUFFdkQseURBQXlEO0FBQ3pELE1BQWEsb0JBQXFCLFNBQVEsa0NBQXFCO0lBQS9EOztRQUNFLFlBQU8sR0FBRyxJQUFJLENBQUMsYUFBYSxLQUFLLDhCQUFhLENBQUMsR0FBRyxDQUFDO0lBd0JyRCxDQUFDO0lBdEJVLGVBQWUsQ0FBQyxVQUE0QjtRQUNuRCxNQUFNLFNBQVMsR0FBRyxJQUFBLGNBQU8sRUFBQyxVQUFVLENBQUMsUUFBUSxDQUFDLENBQUM7UUFFL0MsSUFBSSxTQUFTLEtBQUssT0FBTyxJQUFJLFNBQVMsS0FBSyxNQUFNLEVBQUU7WUFDakQsTUFBTSxPQUFPLEdBQUcsVUFBVSxDQUFDLE9BQU8sQ0FBQztZQUNuQyxNQUFNLGVBQWUsR0FBRyxPQUFPLENBQUMsT0FBTyxDQUNyQywrQ0FBK0MsRUFDL0Ms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9mKGltcG9ydFBhdGgpO1xuICAgICAgICAgIGNvbnN0IG5ld0ltcG9ydFBhdGggPSBpbXBvcnRQYXRoLnJlcGxhY2UoL15+fFxcLnNjc3MkL2csICcnKTtcbiAgICAgICAgICByZXR1cm4gbWF0Y2guc2xpY2UoMCwgaW5kZXgpICsgbmV3SW1wb3J0UGF0aCArIG1hdGNoLnNsaWNlKGluZGV4ICsgaW1wb3J0UGF0aC5sZW5ndGgpO1xuICAgICAgICB9LFxuICAgICAgKTtcblxuICAgICAgaWYgKG1pZ3JhdGVkQ29udGVudCAmJiBtaWdyYXRlZENvbnRlbnQgIT09IGNvbnRlbnQpIHtcbiAgICAgICAgdGhpcy5maWxlU3lzdGVtXG4gICAgICAgICAgLmVkaXQoc3R5bGVzaGVldC5maWxlUGF0aClcbiAgICAgICAgICAucmVtb3ZlKDAsIHN0eWxlc2hlZXQuY29udGVudC5sZW5ndGgpXG4gICAgICAgICAgLmluc2VydExlZnQoMCwgbWlncmF0ZWRDb250ZW50KTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ==
@@ -1,70 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
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://angular.io/license
7
- */
8
- import { Tree } from '@angular-devkit/schematics';
9
- import { Change } from '@schematics/angular/utility/change';
10
- import * as ts from 'typescript';
11
- /**
12
- * Add Import `import { symbolName } from fileName` if the import doesn't exit
13
- * already. Assumes fileToEdit can be resolved and accessed.
14
- * @param fileToEdit (file we want to add import to)
15
- * @param symbolName (item to import)
16
- * @param fileName (path to the file)
17
- * @param isDefault (if true, import follows style for importing default exports)
18
- * @return Change
19
- */
20
- export declare function insertImport(source: ts.SourceFile, fileToEdit: string, symbolName: string, fileName: string, isDefault?: boolean): Change;
21
- /**
22
- * Find all nodes from the AST in the subtree of node of SyntaxKind kind.
23
- * @param node
24
- * @param kind
25
- * @param max The maximum number of items to return.
26
- * @param recursive Continue looking for nodes of kind recursive until end
27
- * the last child even when node of kind has been found.
28
- * @return all nodes of kind, or [] if none is found
29
- */
30
- export declare function findNodes(node: ts.Node, kind: ts.SyntaxKind, max?: number, recursive?: boolean): ts.Node[];
31
- /**
32
- * Get all the nodes from a source.
33
- * @param sourceFile The source file object.
34
- * @returns {Observable<ts.Node>} An observable of all the nodes in the source.
35
- */
36
- export declare function getSourceNodes(sourceFile: ts.SourceFile): ts.Node[];
37
- export declare function findNode(node: ts.Node, kind: ts.SyntaxKind, text: string): ts.Node | null;
38
- /**
39
- * Insert `toInsert` after the last occurence of `ts.SyntaxKind[nodes[i].kind]`
40
- * or after the last of occurence of `syntaxKind` if the last occurence is a sub child
41
- * of ts.SyntaxKind[nodes[i].kind] and save the changes in file.
42
- *
43
- * @param nodes insert after the last occurence of nodes
44
- * @param toInsert string to insert
45
- * @param file file to insert changes into
46
- * @param fallbackPos position to insert if toInsert happens to be the first occurence
47
- * @param syntaxKind the ts.SyntaxKind of the subchildren to insert after
48
- * @return Change instance
49
- * @throw Error if toInsert is first occurence but fall back is not set
50
- */
51
- export declare function insertAfterLastOccurrence(nodes: ts.Node[], toInsert: string, file: string, fallbackPos: number, syntaxKind?: ts.SyntaxKind): Change;
52
- export declare function getDecoratorMetadata(source: ts.SourceFile, identifier: string, module: string): ts.Node[];
53
- export declare function getMetadataField(node: ts.ObjectLiteralExpression, metadataField: string): ts.ObjectLiteralElement[];
54
- export declare function addSymbolToNgModuleMetadata(source: ts.SourceFile, ngModulePath: string, metadataField: string, symbolName: string, importPath?: string | null): Change[];
55
- /**
56
- * Custom function to insert a declaration (component, pipe, directive)
57
- * into NgModule declarations. It also imports the component.
58
- */
59
- export declare function addDeclarationToModule(source: ts.SourceFile, modulePath: string, classifiedName: string, importPath: string): Change[];
60
- /**
61
- * Custom function to insert an NgModule into NgModule imports. It also imports the module.
62
- */
63
- export declare function addImportToModule(source: ts.SourceFile, modulePath: string, classifiedName: string, importPath: string): Change[];
64
- /**
65
- * Custom function to insert an export into NgModule. It also imports it.
66
- */
67
- export declare function addExportToModule(source: ts.SourceFile, modulePath: string, classifiedName: string, importPath: string): Change[];
68
- export declare function findBootstrapModuleCall(host: Tree, mainPath: string): ts.CallExpression | null;
69
- export declare function findBootstrapModulePath(host: Tree, mainPath: string): string;
70
- export declare function getAppModulePath(host: Tree, mainPath: string): string;