@toolbox-web/grid-angular 1.7.0 → 1.8.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 (29) hide show
  1. package/fesm2022/toolbox-web-grid-angular-features-filtering.mjs +26 -1
  2. package/fesm2022/toolbox-web-grid-angular-features-filtering.mjs.map +1 -1
  3. package/fesm2022/toolbox-web-grid-angular-features-grouping-columns.mjs.map +1 -1
  4. package/fesm2022/toolbox-web-grid-angular-features-grouping-rows.mjs.map +1 -1
  5. package/fesm2022/toolbox-web-grid-angular-features-master-detail.mjs +33 -1
  6. package/fesm2022/toolbox-web-grid-angular-features-master-detail.mjs.map +1 -1
  7. package/fesm2022/toolbox-web-grid-angular-features-pinned-rows.mjs.map +1 -1
  8. package/fesm2022/toolbox-web-grid-angular-features-responsive.mjs +30 -1
  9. package/fesm2022/toolbox-web-grid-angular-features-responsive.mjs.map +1 -1
  10. package/fesm2022/toolbox-web-grid-angular-features-shell.mjs +32 -0
  11. package/fesm2022/toolbox-web-grid-angular-features-shell.mjs.map +1 -0
  12. package/fesm2022/toolbox-web-grid-angular.mjs +34 -4
  13. package/fesm2022/toolbox-web-grid-angular.mjs.map +1 -1
  14. package/package.json +5 -1
  15. package/types/toolbox-web-grid-angular-features-filtering.d.ts +22 -3
  16. package/types/toolbox-web-grid-angular-features-filtering.d.ts.map +1 -1
  17. package/types/toolbox-web-grid-angular-features-grouping-columns.d.ts +16 -12
  18. package/types/toolbox-web-grid-angular-features-grouping-columns.d.ts.map +1 -1
  19. package/types/toolbox-web-grid-angular-features-grouping-rows.d.ts +9 -7
  20. package/types/toolbox-web-grid-angular-features-grouping-rows.d.ts.map +1 -1
  21. package/types/toolbox-web-grid-angular-features-master-detail.d.ts +22 -2
  22. package/types/toolbox-web-grid-angular-features-master-detail.d.ts.map +1 -1
  23. package/types/toolbox-web-grid-angular-features-pinned-rows.d.ts +71 -2
  24. package/types/toolbox-web-grid-angular-features-pinned-rows.d.ts.map +1 -1
  25. package/types/toolbox-web-grid-angular-features-responsive.d.ts +22 -2
  26. package/types/toolbox-web-grid-angular-features-responsive.d.ts.map +1 -1
  27. package/types/toolbox-web-grid-angular-features-shell.d.ts +2 -0
  28. package/types/toolbox-web-grid-angular-features-shell.d.ts.map +1 -0
  29. package/types/toolbox-web-grid-angular.d.ts.map +1 -1
@@ -4131,13 +4131,28 @@ class GridHeaderContent {
4131
4131
  };
4132
4132
  },
4133
4133
  };
4134
- grid.registerHeaderContent?.(def);
4134
+ // Route through the shell plugin (#370). The core grid-element delegates
4135
+ // (`grid.registerHeaderContent`) are deprecated (TBW076) and removed at v3;
4136
+ // fall back to them only on cores that predate the shell plugin.
4137
+ const shell = grid.getPluginByName?.('shell');
4138
+ if (shell?.registerHeaderContent) {
4139
+ shell.registerHeaderContent(def);
4140
+ }
4141
+ else {
4142
+ grid.registerHeaderContent?.(def);
4143
+ }
4135
4144
  this.registeredId = id;
4136
4145
  }
4137
4146
  unregister() {
4138
4147
  const grid = this.findGrid();
4139
4148
  if (grid && this.registeredId) {
4140
- grid.unregisterHeaderContent?.(this.registeredId);
4149
+ const shell = grid.getPluginByName?.('shell');
4150
+ if (shell?.unregisterHeaderContent) {
4151
+ shell.unregisterHeaderContent(this.registeredId);
4152
+ }
4153
+ else {
4154
+ grid.unregisterHeaderContent?.(this.registeredId);
4155
+ }
4141
4156
  }
4142
4157
  this.registeredId = null;
4143
4158
  if (this.viewRef) {
@@ -4944,13 +4959,28 @@ class GridToolbarContent {
4944
4959
  };
4945
4960
  },
4946
4961
  };
4947
- grid.registerToolbarContent?.(def);
4962
+ // Route through the shell plugin (#370). The core grid-element delegates
4963
+ // (`grid.registerToolbarContent`) are deprecated (TBW076) and removed at v3;
4964
+ // fall back to them only on cores that predate the shell plugin.
4965
+ const shell = grid.getPluginByName?.('shell');
4966
+ if (shell?.registerToolbarContent) {
4967
+ shell.registerToolbarContent(def);
4968
+ }
4969
+ else {
4970
+ grid.registerToolbarContent?.(def);
4971
+ }
4948
4972
  this.registeredId = id;
4949
4973
  }
4950
4974
  unregister() {
4951
4975
  const grid = this.findGrid();
4952
4976
  if (grid && this.registeredId) {
4953
- grid.unregisterToolbarContent?.(this.registeredId);
4977
+ const shell = grid.getPluginByName?.('shell');
4978
+ if (shell?.unregisterToolbarContent) {
4979
+ shell.unregisterToolbarContent(this.registeredId);
4980
+ }
4981
+ else {
4982
+ grid.unregisterToolbarContent?.(this.registeredId);
4983
+ }
4954
4984
  }
4955
4985
  this.registeredId = null;
4956
4986
  if (this.viewRef) {