Support for Angular 21
These are the biggest changes done to the library in years. Thank you @ChargeIn for the help!
It was done to keep the library up to date with the trend that Angular is going into and to keep compatiblity with Angular for years to come. Hopefully these kind of changes are required again only once in some 5+ years.
Understand that changes on the application usages of the library are necessary to keep it working correctly.
Bug fixes
Improvements
- feat: enable
ChangeDetectionStrategy.OnPushon all components b556b92 - refactor: change from
@Inputto signalinput()for gridster options 60cce62 - feat: new
api.calculateLayout()60cce62 - feat:
initCallback()has a new parametergridsterApi - refactor: improve gridster drag animations (#953) 669ec93 Thanks @ChargeIn
- refactor: demo app rename components to match the new angular styleguide 016139a
- refactor: change GridsterItem
@inputto signalinput()fb914f7 - refactor: remove
*.servicesuffix from files 207b5af - refactor: component
GridsterPreviewComponentrenamed toGridsterPreview207b5af - refactor: remove
*.interfacefrom gridsterResizeEventType.ts 207b5af - refactor: type
GridsterItemrenamed toGridsterItemConfigb18d68a - refactor: component
GridsterItemComponentrenamed toGridsterItemb18d68a - refactor: rename files
GridsterItem,GridsterItemConfigandGridsterConfigb18d68a - refactor: remove internal interface
GridsterConfigS5f7a4c4 - refactor: remove
GridsterComponentInterface&GridsterItemComponentInterface5f7a4c4 - refactor: convert remaining interfaces to types 5f7a4c4
- refactor: rename
Gridstercomponent to the newest angular guidelines 06b0062 Thanks @ChargeIn - refactor: migrate
@outputto signaloutput()0f91046 - refactor: change
gridsterPreview.component.tsinput to inject gridster 0f91046 - refactor: migrate to
inject()from constructor inject 0f91046 - refactor: migrate to host from
@HostBinding0f91046 - chore: remove
zone.jsin demo app and addmarkForCheckin draggable. 0f91046
KeepingNgZone.runandNgZone.runOutsideAngularfor apps still usingzone.jsto keep the performance high
https://angular.dev/guide/zoneless#remove-ngzoneonmicrotaskempty-ngzoneonunstable-ngzoneisstable-or-ngzoneonstable
Breaking changes
- gridster api is now available via
initCallbackorviewChild(Gridster).api60cce62 gridster.api.optionsChanged()was removed set a new object on inputoptionswhen there is a change 60cce62- removed
updateOptions()fromGridsterItemfb914f7 - removed
GridsterModule533b8a8 - rename of components and service classes according to Angular Styleguide 207b5af b18d68a 06b0062