@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1

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 (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exhaustive-ui/core",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.1",
4
4
  "author": "e-xiste",
5
5
  "description": "ExhaustiveUI is a community-maintained, MIT licensed UI library for Angular with 80+ accessible components and design-agnostic theming, including Aura, Material, Lara and Nora presets.",
6
6
  "homepage": "https://exhaustive-ui.e-xiste.com/",
@@ -56,10 +56,10 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "tslib": "^2.3.0",
59
- "@exhaustive-ui/motion": "3.0.0-alpha.0",
60
- "@exhaustive-ui/styled": "3.0.0-alpha.0",
61
- "@exhaustive-ui/styles": "3.0.0-alpha.0",
62
- "@exhaustive-ui/utils": "3.0.0-alpha.0"
59
+ "@exhaustive-ui/motion": "3.0.0-alpha.1",
60
+ "@exhaustive-ui/styled": "3.0.0-alpha.1",
61
+ "@exhaustive-ui/utils": "3.0.0-alpha.1",
62
+ "@exhaustive-ui/styles": "3.0.0-alpha.1"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "chart.js": {
@@ -13,23 +13,230 @@ const removed_inputs_1 = require("../../utils/removed-inputs");
13
13
  * show/hide animation is driven by `motionOptions`, which has no transition-options equivalent.
14
14
  * `showTransitionOptions`/`hideTransitionOptions` on Overlay were stored but never read: its
15
15
  * show/hide animation is driven by `motionOptions` too.
16
+ * `showTransitionOptions`/`hideTransitionOptions` on ColorPicker were stored but never read either:
17
+ * its overlay animation is driven by `motionOptions`.
18
+ * The deprecated `size` on OverlayBadge was stored and logged a deprecation warning but never
19
+ * forwarded to the inner badge: only `badgeSize` ever sized it.
20
+ * The deprecated `transitionOptions` on Fieldset, Panel and Accordion was stored but never read: their toggle
21
+ * animation is driven by `motionOptions`.
22
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on ScrollTop were stored but never
23
+ * read: its show/hide animation is driven by `motionOptions`.
24
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on ConfirmPopup were stored but never
25
+ * read: its overlay animation is driven by `motionOptions`.
26
+ * `inputId` on ToggleButton was stored but never read: the host element is the button itself and
27
+ * there has been no inner input element left to identify.
28
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on Popover were stored but never
29
+ * read: its show/hide animation is driven by `motionOptions`. `ariaCloseLabel` on Popover was stored
30
+ * but never read either: the popover renders no close button to label.
31
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on Image were stored but never read:
32
+ * its preview animation is driven by `motionOptions`/`maskMotionOptions`. `modalEnterAnimation`/
33
+ * `modalLeaveAnimation` on Image were stored but never read either: the mask motion classes are fixed.
34
+ * The deprecated `transitionOptions` on Drawer was stored but never read: its slide animation is
35
+ * driven by `motionOptions`.
36
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on Menu were stored but never read:
37
+ * its popup animation is driven by `motionOptions`.
38
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on SplitButton were stored but never
39
+ * read: its menu animation is driven by `motionOptions`. `plain` on SplitButton was stored but never
40
+ * read either: neither the root class nor the inner buttons ever received it. SplitButton's `dir`
41
+ * was never read either, but it is deliberately left out of this list: a `dir`/`[dir]` binding on the
42
+ * selector keeps working as the host element's native `dir` attribute, so there is nothing to remove.
43
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on Password were stored but never
44
+ * read: its overlay animation is driven by `motionOptions`.
45
+ * The deprecated `badgeClass` on Button was stored but never read: the inner badge is styled through
46
+ * `badgeSeverity` only.
47
+ * `autoZIndex`/`baseZIndex`/`popup` on ContextMenuSub were stored but never read: the layering of the
48
+ * context menu overlay is handled by the parent ContextMenu, and a context menu sub list is never a popup.
49
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on TieredMenu were stored but never
50
+ * read: its popup animation is driven by `motionOptions`.
51
+ * `autoZIndex`/`baseZIndex` on Menubar were only forwarded to MenubarSub, which never read them (the
52
+ * mobile menu layers with the configured `zIndex.menu` directly), and MenubarSub's own `autoZIndex`/
53
+ * `baseZIndex`/`mobileActive`/`ariaLabel`/`ariaLabelledBy` were never read either (Menubar sets the aria
54
+ * attributes on the root list itself and `mobileActive` was only passed down to nested submenus).
55
+ * The deprecated `transitionOptions` and `tabindex` on PanelMenu were only forwarded to its internal lists,
56
+ * which never read them: the toggle animation is driven by `motionOptions` and the sub list host always
57
+ * sets its own `tabindex="-1"`.
58
+ * `disabled`/`queryMatches` on MegaMenuSub were stored but never read: the parent MegaMenu applies the
59
+ * disabled tabindex itself and the mobile classes read MegaMenu's own `queryMatches`.
60
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` and `containerClass` on Galleria were
61
+ * stored but never read: its animations are driven by `motionOptions`/`maskMotionOptions` and no
62
+ * element ever received the container class.
63
+ * `removeStyleClass` on FileUpload was stored but never read: the file remove buttons are styled through
64
+ * the PassThrough API only.
65
+ * `inputLabel`/`emptyMessage` on CascadeSelect were never read: the hidden input is labelled by `ariaLabel`/`ariaLabelledBy`, and the only consumer of `emptyMessage` was an `emptyMessageText` getter nothing rendered.
66
+ * The deprecated `showTransitionOptions`/`hideTransitionOptions` on DatePicker were stored but never read:
67
+ * its overlay animation is driven by `motionOptions`.
68
+ * The deprecated `transitionOptions` on Dialog only delayed the focus of the first focusable element, which
69
+ * already runs once the enter animation driven by `motionOptions` is over, and `rtl` on Dialog was stored
70
+ * but never read.
71
+ * `closeAriaLabel`, `acceptAriaLabel`, `rejectAriaLabel`, `rtl`, `transitionOptions` and `focusTrap` on
72
+ * ConfirmDialog were stored but never read or forwarded to the inner dialog, and its `defaultFocus` was only
73
+ * read by `getElementToFocus()`, which nothing called.
74
+ * `rowNode`/`root`/`firstChild`/`lastChild` on the internal TreeNode were bound by Tree but never read (and
75
+ * are left out of the leftover scan: TreeTable still exposes `rowNode`, and the others are DOM/common names).
76
+ * `visible`/`itemSize` on SelectItem were stored but never read (and never bound by Select): the option
77
+ * height comes from the scroller options and every rendered option is visible.
78
+ * `frozenColumns`/`frozenWidth` on Table were stored but never read: frozen columns are declared with the `pFrozenColumn` directive.
79
+ * `autoZIndex`/`baseZIndex` and the deprecated `showTransitionOptions`/`hideTransitionOptions` on AutoComplete
80
+ * were stored but never read or forwarded to its overlay, whose layering and animation come from `overlayOptions`/`motionOptions`.
81
+ * `filterFields` on MultiSelect was stored but never read: the filter searches `filterBy`, else `optionLabel`
82
+ * (kept out of the leftover scan, Select and Listbox still read it).
16
83
  */
17
84
  const REMOVED_INPUT_GROUPS = [
18
85
  { selector: 'p-toast', names: ['showTransformOptions', 'hideTransformOptions', 'showTransitionOptions', 'hideTransitionOptions'] },
19
86
  { selector: 'p-toastItem', names: ['showTransformOptions', 'hideTransformOptions', 'showTransitionOptions', 'hideTransitionOptions'] },
20
87
  { selector: 'p-message', names: ['showTransitionOptions', 'hideTransitionOptions'] },
21
- { selector: 'p-overlay', names: ['showTransitionOptions', 'hideTransitionOptions'] }
88
+ { selector: 'p-overlay', names: ['showTransitionOptions', 'hideTransitionOptions'] },
89
+ { selector: 'p-colorPicker', names: ['showTransitionOptions', 'hideTransitionOptions'] },
90
+ { selector: 'p-colorpicker', names: ['showTransitionOptions', 'hideTransitionOptions'] },
91
+ { selector: 'p-color-picker', names: ['showTransitionOptions', 'hideTransitionOptions'] },
92
+ { selector: 'p-overlayBadge', names: ['size'] },
93
+ { selector: 'p-overlay-badge', names: ['size'] },
94
+ { selector: 'p-overlaybadge', names: ['size'] },
95
+ { selector: 'p-fieldset', names: ['transitionOptions'] },
96
+ { selector: 'p-panel', names: ['transitionOptions'] },
97
+ { selector: 'p-accordion', names: ['transitionOptions'] },
98
+ { selector: 'p-scrollTop', names: ['showTransitionOptions', 'hideTransitionOptions'] },
99
+ { selector: 'p-scrolltop', names: ['showTransitionOptions', 'hideTransitionOptions'] },
100
+ { selector: 'p-scroll-top', names: ['showTransitionOptions', 'hideTransitionOptions'] },
101
+ { selector: 'p-confirmpopup', names: ['showTransitionOptions', 'hideTransitionOptions'] },
102
+ { selector: 'p-togglebutton', names: ['inputId'] },
103
+ { selector: 'p-toggleButton', names: ['inputId'] },
104
+ { selector: 'p-toggle-button', names: ['inputId'] },
105
+ { selector: 'p-popover', names: ['showTransitionOptions', 'hideTransitionOptions', 'ariaCloseLabel'] },
106
+ { selector: 'p-image', names: ['showTransitionOptions', 'hideTransitionOptions', 'modalEnterAnimation', 'modalLeaveAnimation'] },
107
+ { selector: 'p-drawer', names: ['transitionOptions'] },
108
+ { selector: 'p-menu', names: ['showTransitionOptions', 'hideTransitionOptions'] },
109
+ { selector: 'p-splitbutton', names: ['showTransitionOptions', 'hideTransitionOptions', 'plain'] },
110
+ { selector: 'p-splitButton', names: ['showTransitionOptions', 'hideTransitionOptions', 'plain'] },
111
+ { selector: 'p-split-button', names: ['showTransitionOptions', 'hideTransitionOptions', 'plain'] },
112
+ { selector: 'p-password', names: ['showTransitionOptions', 'hideTransitionOptions'] },
113
+ { selector: 'p-button', names: ['badgeClass'] },
114
+ { selector: 'p-contextMenuSub', names: ['autoZIndex', 'baseZIndex', 'popup'] },
115
+ { selector: 'p-contextmenu-sub', names: ['autoZIndex', 'baseZIndex', 'popup'] },
116
+ { selector: 'p-tieredMenu', names: ['showTransitionOptions', 'hideTransitionOptions'] },
117
+ { selector: 'p-tieredmenu', names: ['showTransitionOptions', 'hideTransitionOptions'] },
118
+ { selector: 'p-tiered-menu', names: ['showTransitionOptions', 'hideTransitionOptions'] },
119
+ { selector: 'p-menubar', names: ['autoZIndex', 'baseZIndex'] },
120
+ { selector: 'p-menubarSub', names: ['autoZIndex', 'baseZIndex', 'mobileActive', 'ariaLabel', 'ariaLabelledBy'] },
121
+ { selector: 'p-menubarsub', names: ['autoZIndex', 'baseZIndex', 'mobileActive', 'ariaLabel', 'ariaLabelledBy'] },
122
+ { selector: 'p-panelMenu', names: ['transitionOptions', 'tabindex'] },
123
+ { selector: 'p-panelmenu', names: ['transitionOptions', 'tabindex'] },
124
+ { selector: 'p-panel-menu', names: ['transitionOptions', 'tabindex'] },
125
+ { selector: 'p-megaMenuSub', names: ['disabled', 'queryMatches'] },
126
+ { selector: 'p-megamenu-sub', names: ['disabled', 'queryMatches'] },
127
+ { selector: 'p-galleria', names: ['showTransitionOptions', 'hideTransitionOptions', 'containerClass'] },
128
+ { selector: 'p-fileupload', names: ['removeStyleClass'] },
129
+ { selector: 'p-fileUpload', names: ['removeStyleClass'] },
130
+ { selector: 'p-cascadeSelect', names: ['inputLabel', 'emptyMessage'] },
131
+ { selector: 'p-cascadeselect', names: ['inputLabel', 'emptyMessage'] },
132
+ { selector: 'p-cascade-select', names: ['inputLabel', 'emptyMessage'] },
133
+ { selector: 'p-datePicker', names: ['showTransitionOptions', 'hideTransitionOptions'] },
134
+ { selector: 'p-datepicker', names: ['showTransitionOptions', 'hideTransitionOptions'] },
135
+ { selector: 'p-date-picker', names: ['showTransitionOptions', 'hideTransitionOptions'] },
136
+ { selector: 'p-dialog', names: ['transitionOptions', 'rtl'] },
137
+ { selector: 'p-confirmDialog', names: ['closeAriaLabel', 'acceptAriaLabel', 'rejectAriaLabel', 'rtl', 'transitionOptions', 'focusTrap', 'defaultFocus'] },
138
+ { selector: 'p-confirmdialog', names: ['closeAriaLabel', 'acceptAriaLabel', 'rejectAriaLabel', 'rtl', 'transitionOptions', 'focusTrap', 'defaultFocus'] },
139
+ { selector: 'p-confirm-dialog', names: ['closeAriaLabel', 'acceptAriaLabel', 'rejectAriaLabel', 'rtl', 'transitionOptions', 'focusTrap', 'defaultFocus'] },
140
+ { selector: 'p-treeNode', names: ['rowNode', 'root', 'firstChild', 'lastChild'] },
141
+ { selector: 'p-selectItem', names: ['visible', 'itemSize'] },
142
+ { selector: 'p-table', names: ['frozenColumns', 'frozenWidth'] },
143
+ { selector: 'p-autoComplete', names: ['autoZIndex', 'baseZIndex', 'showTransitionOptions', 'hideTransitionOptions'] },
144
+ { selector: 'p-autocomplete', names: ['autoZIndex', 'baseZIndex', 'showTransitionOptions', 'hideTransitionOptions'] },
145
+ { selector: 'p-auto-complete', names: ['autoZIndex', 'baseZIndex', 'showTransitionOptions', 'hideTransitionOptions'] },
146
+ { selector: 'p-multiSelect', names: ['filterFields'] },
147
+ { selector: 'p-multiselect', names: ['filterFields'] },
148
+ { selector: 'p-multi-select', names: ['filterFields'] }
22
149
  ];
150
+ /**
151
+ * Removed input names whose programmatic reads/writes are reported for manual review. OverlayBadge's
152
+ * `size` is left out on purpose: a name-only scan cannot tell an OverlayBadge instance's `size` apart
153
+ * from the countless other `size` properties (Map#size, DOM sizes, option objects) in an application.
154
+ * Fieldset's, Panel's, Accordion's and Drawer's `transitionOptions` is left out too: the same input is still alive on
155
+ * other components (p-stepper, ...), so a name-only scan cannot tell their reads apart.
156
+ * ToggleButton's `inputId` is left out for the same reason: every other form component still exposes
157
+ * a working `inputId`. Popover's `ariaCloseLabel` is left out as well: Dialog and Drawer still read it.
158
+ * SplitButton's `plain` is left out too: Button and pButton still expose a working `plain`.
159
+ * ContextMenuSub's `autoZIndex`, `baseZIndex` and `popup` are left out too: ContextMenu itself and every
160
+ * other overlay component still expose them.
161
+ * Menubar's and MenubarSub's `autoZIndex`/`baseZIndex`/`mobileActive`/`ariaLabel`/`ariaLabelledBy` are left
162
+ * out as well: Menu, TieredMenu, ContextMenu and most other components still expose working inputs of
163
+ * the same names.
164
+ * PanelMenu's `tabindex` is left out too: it is a native attribute and an input on many other components.
165
+ * MegaMenuSub's `disabled` and `queryMatches` are left out too: `disabled` is a live input almost
166
+ * everywhere and MegaMenu itself still exposes `queryMatches`.
167
+ * CascadeSelect's `emptyMessage` is left out too: Select, Listbox, Table and other components still read it.
168
+ * ConfirmDialog's `closeAriaLabel`, `focusTrap` and `defaultFocus` are left out too: Dialog still reads
169
+ * `closeAriaLabel` and `focusTrap`, and ConfirmPopup still reads `defaultFocus`.
170
+ * SelectItem's `visible` and `itemSize` are left out as well: Dialog, Overlay and many others still expose
171
+ * `visible`, and Scroller still exposes `itemSize`.
172
+ * Table's `frozenColumns`/`frozenWidth` are left out too: TreeTable still exposes working inputs of the same names.
173
+ */
174
+ const LEFTOVER_SCAN_NAMES = Array.from(new Set(REMOVED_INPUT_GROUPS.flatMap((group) => group.names))).filter((name) => ![
175
+ 'size',
176
+ 'transitionOptions',
177
+ 'inputId',
178
+ 'ariaCloseLabel',
179
+ 'plain',
180
+ 'autoZIndex',
181
+ 'baseZIndex',
182
+ 'popup',
183
+ 'disabled',
184
+ 'queryMatches',
185
+ 'mobileActive',
186
+ 'ariaLabel',
187
+ 'ariaLabelledBy',
188
+ 'tabindex',
189
+ 'emptyMessage',
190
+ 'closeAriaLabel',
191
+ 'focusTrap',
192
+ 'defaultFocus',
193
+ 'rowNode',
194
+ 'root',
195
+ 'firstChild',
196
+ 'lastChild',
197
+ 'visible',
198
+ 'itemSize',
199
+ 'frozenColumns',
200
+ 'frozenWidth',
201
+ 'filterFields'
202
+ ].includes(name));
23
203
  /**
24
204
  * Removes usages of inputs that stopped doing anything before being deleted from
205
+ * @exhaustive-ui/core in this version. The removed inputs are listed per selector in
206
+ * {@link REMOVED_INPUT_GROUPS}; the header comment of this file explains why each of them was dead.
25
207
  * @exhaustive-ui/core in this version: Toast/ToastItem's showTransformOptions, hideTransformOptions,
26
208
  * showTransitionOptions and hideTransitionOptions, dead since the show/hide animation moved to the
27
209
  * shared Motion directive (which has no equivalent transform/transition-options input); and
28
- * Message's showTransitionOptions/hideTransitionOptions, dead for the same reason; and Overlay's
29
- * showTransitionOptions/hideTransitionOptions, stored but never read.
210
+ * Message's showTransitionOptions/hideTransitionOptions, dead for the same reason; Overlay's
211
+ * showTransitionOptions/hideTransitionOptions, stored but never read; ColorPicker's
212
+ * showTransitionOptions/hideTransitionOptions, stored but never read either; OverlayBadge's
213
+ * deprecated size, never forwarded to the inner badge (badgeSize is the input that sizes it);
214
+ * Fieldset's, Panel's and Accordion's deprecated transitionOptions, stored but never read (motionOptions drives the toggle animation);
215
+ * ScrollTop's deprecated showTransitionOptions/hideTransitionOptions, stored but never read
216
+ * (motionOptions drives the show/hide animation); ToggleButton's inputId, stored but never read
217
+ * since the host element became the button itself; and Popover's deprecated
218
+ * showTransitionOptions/hideTransitionOptions (motionOptions drives the show/hide animation) and
219
+ * ariaCloseLabel, stored but never read since the popover renders no close button; Image's deprecated
220
+ * showTransitionOptions/hideTransitionOptions (motionOptions drives the preview animation) and
221
+ * modalEnterAnimation/modalLeaveAnimation, stored but never read since the mask motion classes are fixed;
222
+ * Drawer's deprecated transitionOptions, stored but never read (motionOptions drives the slide
223
+ * animation); Password's deprecated showTransitionOptions/hideTransitionOptions, stored but never
224
+ * read (motionOptions drives the overlay animation); Button's deprecated badgeClass, stored but
225
+ * never read (badgeSeverity styles the inner badge); ContextMenuSub's autoZIndex/baseZIndex/popup,
226
+ * stored but never read (the parent ContextMenu handles layering); TieredMenu's deprecated
227
+ * showTransitionOptions/hideTransitionOptions (motionOptions drives the popup animation);
228
+ * Menubar's autoZIndex/baseZIndex plus MenubarSub's autoZIndex/baseZIndex/mobileActive/ariaLabel/
229
+ * ariaLabelledBy, never read (the mobile menu layers with zIndex.menu); PanelMenu's transitionOptions
230
+ * and tabindex, forwarded to internal lists that never read them; MegaMenuSub's disabled and
231
+ * queryMatches, never read (MegaMenu handles both itself); Galleria's deprecated
232
+ * showTransitionOptions/hideTransitionOptions plus its never-applied containerClass; FileUpload's
233
+ * removeStyleClass, never read (the remove buttons are styled through PassThrough); CascadeSelect's
234
+ * inputLabel and emptyMessage, never read; DatePicker's deprecated
235
+ * showTransitionOptions/hideTransitionOptions (motionOptions drives the overlay animation); Dialog's deprecated transitionOptions and never-read rtl; ConfirmDialog's closeAriaLabel,
236
+ * acceptAriaLabel, rejectAriaLabel, rtl, transitionOptions, focusTrap and defaultFocus, never read; the internal TreeNode's rowNode, root, firstChild and lastChild, never read; SelectItem's visible and itemSize, never read; Table's frozenColumns and frozenWidth, never read (frozen columns use pFrozenColumn); AutoComplete's autoZIndex, baseZIndex, showTransitionOptions and hideTransitionOptions, never read; and MultiSelect's filterFields, never read.
30
237
  *
31
- * `name="..."`/`[name]="..."` template bindings on `p-toast`/`p-toastItem`/`p-message`/`p-overlay` are removed
32
- * automatically — safe to delete outright, since the values they passed were already unused.
238
+ * `name="..."`/`[name]="..."` template bindings on those selectors are removed automatically —
239
+ * safe to delete outright, since the values they passed were already unused.
33
240
  * Programmatic reads/writes of the same property name elsewhere (e.g. on a `@ViewChild`-queried
34
241
  * instance) are reported for manual review instead of being rewritten automatically.
35
242
  */
@@ -69,8 +276,7 @@ function default_1() {
69
276
  attrsRemoved += result.removed.length;
70
277
  context.logger.info(`${path}: removed ${result.removed.join(', ')} binding(s) from inline template`);
71
278
  }
72
- const allNames = Array.from(new Set(REMOVED_INPUT_GROUPS.flatMap((group) => group.names)));
73
- const lines = (0, removed_outputs_1.findLeftoversInTypeScript)(path, text, allNames);
279
+ const lines = (0, removed_outputs_1.findLeftoversInTypeScript)(path, text, LEFTOVER_SCAN_NAMES);
74
280
  for (const line of lines) {
75
281
  leftovers.push(`${path}:${line}`);
76
282
  }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RENAMED_INPUT_GROUPS = void 0;
4
+ exports.default = default_1;
5
+ const package_json_1 = require("../../utils/package-json");
6
+ const removed_outputs_1 = require("../../utils/removed-outputs");
7
+ const renamed_inputs_1 = require("../../utils/renamed-inputs");
8
+ const AUTOCOMPLETE = ['p-autoComplete', 'p-autocomplete', 'p-auto-complete'];
9
+ const TREESELECT = ['p-treeSelect', 'p-treeselect', 'p-tree-select'];
10
+ const TREETABLE = ['p-treeTable', 'p-treetable', 'p-tree-table'];
11
+ /**
12
+ * Deprecated input aliases removed in this version, each replaced by the input (or native
13
+ * attribute) its deprecation notice already pointed to:
14
+ * Drawer's `showCloseIcon` → `closable` (the close button rendered only when both were true, and
15
+ * both default to true); Paginator's `dropdownAppendTo` → `appendTo`; Password's `maxLength` →
16
+ * `maxlength`; AutoComplete's `minLength` → `minQueryLength` (the default minimum stays 1);
17
+ * TreeSelect's `containerStyleClass` → `class` and `containerStyle` → `style`; TreeTable's
18
+ * `virtualRowHeight` → `virtualScrollItemSize`.
19
+ */
20
+ exports.RENAMED_INPUT_GROUPS = [
21
+ { selector: 'p-drawer', renames: [{ from: 'showCloseIcon', to: 'closable' }] },
22
+ { selector: 'p-paginator', renames: [{ from: 'dropdownAppendTo', to: 'appendTo' }] },
23
+ { selector: 'p-password', renames: [{ from: 'maxLength', to: 'maxlength' }] },
24
+ ...AUTOCOMPLETE.map((selector) => ({ selector, renames: [{ from: 'minLength', to: 'minQueryLength' }] })),
25
+ ...TREESELECT.map((selector) => ({
26
+ selector,
27
+ renames: [
28
+ { from: 'containerStyleClass', to: 'class' },
29
+ { from: 'containerStyle', to: 'style' }
30
+ ]
31
+ })),
32
+ ...TREETABLE.map((selector) => ({ selector, renames: [{ from: 'virtualRowHeight', to: 'virtualScrollItemSize' }] }))
33
+ ];
34
+ /**
35
+ * Names searched for in TypeScript code outside templates (e.g. `drawer.showCloseIcon()` on a
36
+ * queried instance), reported for manual review. `maxLength` and `minLength` are left out: they are
37
+ * common DOM/validator property names and would mostly report unrelated code.
38
+ */
39
+ const LEFTOVER_SCAN_NAMES = ['showCloseIcon', 'dropdownAppendTo', 'containerStyleClass', 'virtualRowHeight'];
40
+ /**
41
+ * Rewrites template bindings of the removed deprecated input aliases listed in
42
+ * {@link RENAMED_INPUT_GROUPS} to their replacement, keeping the binding form (`name="..."`,
43
+ * `[name]="..."`) and value. A tag that already binds the replacement name is left untouched and
44
+ * reported, since only the author can decide how the two values combine (static `class` values
45
+ * are the exception: they are merged into one `class` attribute).
46
+ */
47
+ function default_1() {
48
+ return (tree, context) => {
49
+ let filesChanged = 0;
50
+ let renamedCount = 0;
51
+ const conflicts = [];
52
+ const leftovers = [];
53
+ tree.visit((path) => {
54
+ if (package_json_1.SKIP_DIRS.test(path)) {
55
+ return;
56
+ }
57
+ const isHtml = path.endsWith('.html');
58
+ if (!isHtml && !path.endsWith('.ts') && !path.endsWith('.mts')) {
59
+ return;
60
+ }
61
+ const original = tree.read(path)?.toString();
62
+ if (original === undefined) {
63
+ return;
64
+ }
65
+ const result = isHtml ? (0, renamed_inputs_1.renameInputsInHtml)(original, exports.RENAMED_INPUT_GROUPS) : (0, renamed_inputs_1.renameInputsInTypeScript)(path, original, exports.RENAMED_INPUT_GROUPS);
66
+ if (result.changed) {
67
+ tree.overwrite(path, result.text);
68
+ filesChanged++;
69
+ renamedCount += result.renamed.length;
70
+ context.logger.info(`${path}: renamed ${result.renamed.join(', ')}`);
71
+ }
72
+ conflicts.push(...result.conflictLines.map((line) => `${path}:${line}`));
73
+ if (!isHtml) {
74
+ leftovers.push(...(0, removed_outputs_1.findLeftoversInTypeScript)(path, result.text, LEFTOVER_SCAN_NAMES).map((line) => `${path}:${line}`));
75
+ }
76
+ });
77
+ if (renamedCount > 0) {
78
+ context.logger.info(`Renamed ${renamedCount} deprecated input binding(s) across ${filesChanged} file(s).`);
79
+ }
80
+ else {
81
+ context.logger.info('No bindings of the removed deprecated input aliases were found to rename.');
82
+ }
83
+ if (conflicts.length > 0) {
84
+ context.logger.warn(`Found ${conflicts.length} tag(s) binding both a removed deprecated input and its replacement — merge them by hand:`);
85
+ for (const conflict of conflicts) {
86
+ context.logger.warn(` ${conflict}`);
87
+ }
88
+ }
89
+ if (leftovers.length > 0) {
90
+ context.logger.warn(`Found ${leftovers.length} programmatic reference(s) to a removed deprecated input that need manual review:`);
91
+ for (const leftover of leftovers) {
92
+ context.logger.warn(` ${leftover}`);
93
+ }
94
+ }
95
+ return tree;
96
+ };
97
+ }
@@ -23,7 +23,98 @@ exports.MIGRATED_SELECTORS = [
23
23
  'p-divider',
24
24
  'p-progressspinner',
25
25
  'p-progressSpinner',
26
- 'p-progress-spinner'
26
+ 'p-progress-spinner',
27
+ 'p-timeline',
28
+ 'p-toolbar',
29
+ 'p-avatar',
30
+ 'p-chip',
31
+ 'p-inputgroup',
32
+ 'p-inputGroup',
33
+ 'p-input-group',
34
+ 'p-iconfield',
35
+ 'p-iconField',
36
+ 'p-icon-field',
37
+ 'p-inputicon',
38
+ 'p-inputIcon',
39
+ 'p-input-icon',
40
+ 'p-toggleswitch',
41
+ 'p-toggleSwitch',
42
+ 'p-toggle-switch',
43
+ 'p-colorPicker',
44
+ 'p-colorpicker',
45
+ 'p-color-picker',
46
+ 'p-metergroup',
47
+ 'p-meterGroup',
48
+ 'p-meter-group',
49
+ 'p-inplace',
50
+ 'p-togglebutton',
51
+ 'p-toggleButton',
52
+ 'p-toggle-button',
53
+ 'p-terminal',
54
+ 'p-blockui',
55
+ 'p-blockUI',
56
+ 'p-block-ui',
57
+ 'p-badge',
58
+ 'p-checkbox',
59
+ 'p-checkBox',
60
+ 'p-check-box',
61
+ 'p-panel',
62
+ 'p-dock',
63
+ 'p-accordion',
64
+ 'p-knob',
65
+ 'p-splitter',
66
+ 'p-scrollpanel',
67
+ 'p-scrollPanel',
68
+ 'p-scroll-panel',
69
+ 'p-image',
70
+ 'p-editor',
71
+ 'p-slider',
72
+ 'p-paginator',
73
+ 'p-organizationchart',
74
+ 'p-organizationChart',
75
+ 'p-organization-chart',
76
+ 'p-carousel',
77
+ 'p-dataview',
78
+ 'p-dataView',
79
+ 'p-data-view',
80
+ 'p-splitbutton',
81
+ 'p-splitButton',
82
+ 'p-split-button',
83
+ 'p-password',
84
+ 'p-inputnumber',
85
+ 'p-inputNumber',
86
+ 'p-input-number',
87
+ 'p-menubar',
88
+ 'p-panelMenu',
89
+ 'p-panelmenu',
90
+ 'p-panel-menu',
91
+ 'p-megaMenu',
92
+ 'p-megamenu',
93
+ 'p-mega-menu',
94
+ 'p-cascadeSelect',
95
+ 'p-cascadeselect',
96
+ 'p-cascade-select',
97
+ 'p-datePicker',
98
+ 'p-datepicker',
99
+ 'p-date-picker',
100
+ 'p-tree',
101
+ 'p-select',
102
+ 'p-listbox',
103
+ 'p-listBox',
104
+ 'p-list-box',
105
+ 'p-orderlist',
106
+ 'p-orderList',
107
+ 'p-order-list',
108
+ 'p-table',
109
+ 'p-autocomplete',
110
+ 'p-autoComplete',
111
+ 'p-auto-complete',
112
+ 'p-multiSelect',
113
+ 'p-multiselect',
114
+ 'p-multi-select',
115
+ 'p-treeTable',
116
+ 'p-treetable',
117
+ 'p-tree-table'
27
118
  ];
28
119
  /**
29
120
  * Rewrites `styleClass="x"` to `class="x"` (merging into an existing static `class` attribute) and
@@ -9,17 +9,22 @@
9
9
  "styleclass-to-class": {
10
10
  "version": "3.0.0",
11
11
  "factory": "./migrations/styleclass-to-class/migration",
12
- "description": "Rewrite styleClass/[styleClass] to class/[class] on selectors whose styleClass input was removed in this version in favor of the native class attribute: p-toast, p-message, p-tag, p-skeleton, p-card, p-radiobutton/p-radioButton/p-radio-button, p-progressbar/p-progressBar/p-progress-bar, p-divider and p-progressspinner/p-progressSpinner/p-progress-spinner."
12
+ "description": "Rewrite styleClass/[styleClass] to class/[class] on selectors whose styleClass input was removed in this version in favor of the native class attribute: p-toast, p-message, p-tag, p-skeleton, p-card, p-radiobutton/p-radioButton/p-radio-button, p-progressbar/p-progressBar/p-progress-bar, p-divider, p-progressspinner/p-progressSpinner/p-progress-spinner, p-timeline, p-toolbar, p-avatar, p-chip, p-inputgroup/p-inputGroup/p-input-group, p-iconfield/p-iconField/p-icon-field, p-inputicon/p-inputIcon/p-input-icon, p-toggleswitch/p-toggleSwitch/p-toggle-switch, p-colorpicker/p-colorPicker/p-color-picker, p-metergroup/p-meterGroup/p-meter-group, p-inplace, p-togglebutton/p-toggleButton/p-toggle-button, p-terminal, p-blockui/p-blockUI/p-block-ui, p-badge, p-checkbox/p-checkBox/p-check-box, p-panel, p-dock, p-accordion, p-knob, p-splitter, p-scrollpanel/p-scrollPanel/p-scroll-panel, p-image, p-editor, p-slider, p-paginator, p-organizationchart/p-organizationChart/p-organization-chart, p-carousel, p-dataview/p-dataView/p-data-view, p-splitbutton/p-splitButton/p-split-button, p-password, p-inputnumber/p-inputNumber/p-input-number, p-menubar, p-panelmenu/p-panelMenu/p-panel-menu, p-megamenu/p-megaMenu/p-mega-menu, p-cascadeselect/p-cascadeSelect/p-cascade-select, p-datepicker/p-datePicker/p-date-picker, p-tree, p-select, p-listbox/p-listBox/p-list-box, p-orderlist/p-orderList/p-order-list, p-table, p-autocomplete/p-autoComplete/p-auto-complete, p-multiselect/p-multiSelect/p-multi-select and p-treetable/p-treeTable/p-tree-table."
13
13
  },
14
14
  "remove-dead-inputs": {
15
15
  "version": "3.0.0",
16
16
  "factory": "./migrations/remove-dead-inputs/migration",
17
- "description": "Remove usages of inputs removed in this version that had already stopped doing anything: p-toast/p-toastItem's showTransformOptions, hideTransformOptions, showTransitionOptions and hideTransitionOptions; p-message's showTransitionOptions and hideTransitionOptions; and p-overlay's showTransitionOptions and hideTransitionOptions."
17
+ "description": "Remove usages of inputs removed in this version that had already stopped doing anything: showTransformOptions, hideTransformOptions, showTransitionOptions and hideTransitionOptions of p-toast; showTransformOptions, hideTransformOptions, showTransitionOptions and hideTransitionOptions of p-toastItem; showTransitionOptions and hideTransitionOptions of p-message; showTransitionOptions and hideTransitionOptions of p-overlay; showTransitionOptions and hideTransitionOptions of p-colorPicker/p-colorpicker/p-color-picker; size of p-overlayBadge/p-overlay-badge/p-overlaybadge; transitionOptions of p-fieldset; transitionOptions of p-panel; transitionOptions of p-accordion; showTransitionOptions and hideTransitionOptions of p-scrollTop/p-scrolltop/p-scroll-top; showTransitionOptions and hideTransitionOptions of p-confirmpopup; inputId of p-togglebutton/p-toggleButton/p-toggle-button; showTransitionOptions, hideTransitionOptions and ariaCloseLabel of p-popover; showTransitionOptions, hideTransitionOptions, modalEnterAnimation and modalLeaveAnimation of p-image; transitionOptions of p-drawer; showTransitionOptions and hideTransitionOptions of p-menu; showTransitionOptions, hideTransitionOptions and plain of p-splitbutton/p-splitButton/p-split-button; showTransitionOptions and hideTransitionOptions of p-password; badgeClass of p-button; autoZIndex, baseZIndex and popup of p-contextMenuSub/p-contextmenu-sub; showTransitionOptions and hideTransitionOptions of p-tieredMenu/p-tieredmenu/p-tiered-menu; autoZIndex and baseZIndex of p-menubar; autoZIndex, baseZIndex, mobileActive, ariaLabel and ariaLabelledBy of p-menubarSub/p-menubarsub; transitionOptions and tabindex of p-panelMenu/p-panelmenu/p-panel-menu; disabled and queryMatches of p-megaMenuSub/p-megamenu-sub; showTransitionOptions, hideTransitionOptions and containerClass of p-galleria; removeStyleClass of p-fileupload/p-fileUpload; inputLabel and emptyMessage of p-cascadeSelect/p-cascadeselect/p-cascade-select; showTransitionOptions and hideTransitionOptions of p-datePicker/p-datepicker/p-date-picker; transitionOptions and rtl of p-dialog; closeAriaLabel, acceptAriaLabel, rejectAriaLabel, rtl, transitionOptions, focusTrap and defaultFocus of p-confirmDialog/p-confirmdialog/p-confirm-dialog; rowNode, root, firstChild and lastChild of p-treeNode; visible and itemSize of p-selectItem; frozenColumns and frozenWidth of p-table; autoZIndex, baseZIndex, showTransitionOptions and hideTransitionOptions of p-autoComplete/p-autocomplete/p-auto-complete; filterFields of p-multiSelect/p-multiselect/p-multi-select. The dead dir input of p-splitbutton/p-splitButton/p-split-button is removed too, but its dir/[dir] bindings are left in place: they keep working as the host element's native dir attribute. Programmatic reads/writes of the removed names are reported for manual review."
18
18
  },
19
19
  "config-overlay-options-signal": {
20
20
  "version": "3.0.0",
21
21
  "factory": "./migrations/config-overlay-options-signal/migration",
22
22
  "description": "Rewrite programmatic access to Exhaustive.overlayOptions, which is a signal in this version: assignments become .set(value) and reads become () calls."
23
+ },
24
+ "renamed-inputs": {
25
+ "version": "3.0.0",
26
+ "factory": "./migrations/renamed-inputs/migration",
27
+ "description": "Rename bindings of deprecated input aliases removed in this version to their replacement: showCloseIcon to closable on p-drawer; dropdownAppendTo to appendTo on p-paginator; maxLength to maxlength on p-password; minLength to minQueryLength on p-autoComplete/p-autocomplete/p-auto-complete; containerStyleClass to class and containerStyle to style on p-treeSelect/p-treeselect/p-tree-select; virtualRowHeight to virtualScrollItemSize on p-treeTable/p-treetable/p-tree-table. A tag that already binds the replacement is reported for manual review, as are programmatic reads/writes of the removed names."
23
28
  }
24
29
  }
25
30
  }
Binary file