Upgrade PrimeNG components to 18

Proprietary

Handles component renames, deprecations, and removals for PrimeNG 18. Renames Calendar to DatePicker, Dropdown to Select, InputSwitch to ToggleSwitch, OverlayPanel to Popover, and Sidebar to Drawer (TS imports + identifier usages + HTML selectors). Migrates the Messages template usage to the <p-message> + @for loop. Marks removed modules (Chips, TriStateCheckbox, Messages, DataViewLayoutOptions, pAnimate) with TODO stubs, marks deprecated components (TabMenu, Steps, InlineMessage, TabView, pDefer) with TODO comments on their imports, and marks deprecated CSS classes (.p-link, .p-highlight, .p-fluid) and <p-drawer>/<p-sidebar> size usages with HTML TODO comments. All marked sites are written to the ManualMigrationSteps data table.

org.openrewrite.primeng.UpgradeComponentsTo18
mod run . --recipe=org.openrewrite.primeng.UpgradeComponentsTo18

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Rename Calendar to DatePicker
  2. Rename Dropdown to Select
  3. Rename InputSwitch to ToggleSwitch
  4. Rename OverlayPanel to Popover
  5. Rename Sidebar to Drawer
  6. Rename Message interface to ToastMessageOptions
  7. Rename PrimeNG selectors in HTML templates to their v18 equivalents
  8. Migrate <p-messages> to <p-message> with @for loop
  9. Migrate .p-fluid to <p-fluid> wrapper
  10. Mark imports of removed PrimeNG modules with TODO stubs
  11. Mark deprecated PrimeNG components with TODO comments
  12. Mark deprecated PrimeNG CSS classes with TODO comments
  13. Mark <p-drawer> / <p-sidebar> size usages with TODO comments