angular-slickgrid 4.1.3 → 4.2.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 (32) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +182 -180
  3. package/docs/assets/lib/multiple-select/README.md +17 -17
  4. package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +9 -6
  5. package/esm2020/app/modules/angular-slickgrid/constants.mjs +1 -1
  6. package/esm2020/app/modules/angular-slickgrid/extensions/index.mjs +1 -1
  7. package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +2 -2
  8. package/esm2020/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
  9. package/esm2020/app/modules/angular-slickgrid/index.mjs +1 -1
  10. package/esm2020/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
  11. package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
  12. package/esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
  13. package/esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs +1 -1
  14. package/esm2020/app/modules/angular-slickgrid/models/index.mjs +1 -1
  15. package/esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
  16. package/esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +1 -1
  17. package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +5 -5
  18. package/esm2020/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
  19. package/esm2020/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +4 -4
  20. package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +4 -4
  21. package/esm2020/app/modules/angular-slickgrid/services/index.mjs +1 -1
  22. package/esm2020/app/modules/angular-slickgrid/services/translater.service.mjs +4 -4
  23. package/esm2020/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
  24. package/esm2020/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
  25. package/esm2020/public_api.mjs +1 -1
  26. package/fesm2015/angular-slickgrid.mjs +25 -22
  27. package/fesm2015/angular-slickgrid.mjs.map +1 -1
  28. package/fesm2020/angular-slickgrid.mjs +25 -22
  29. package/fesm2020/angular-slickgrid.mjs.map +1 -1
  30. package/i18n/en.json +89 -89
  31. package/i18n/fr.json +90 -90
  32. package/package.json +13 -14
@@ -63,9 +63,9 @@ class AngularUtilService {
63
63
  return componentOutput;
64
64
  }
65
65
  }
66
- AngularUtilService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularUtilService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
67
- AngularUtilService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularUtilService });
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularUtilService, decorators: [{
66
+ AngularUtilService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularUtilService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
67
+ AngularUtilService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularUtilService });
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularUtilService, decorators: [{
69
69
  type: Injectable
70
70
  }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }]; } });
71
71
 
@@ -163,9 +163,9 @@ class BsDropDownService {
163
163
  });
164
164
  }
165
165
  }
166
- BsDropDownService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: BsDropDownService, deps: [{ token: AngularUtilService }], target: i0.ɵɵFactoryTarget.Injectable });
167
- BsDropDownService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: BsDropDownService });
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: BsDropDownService, decorators: [{
166
+ BsDropDownService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BsDropDownService, deps: [{ token: AngularUtilService }], target: i0.ɵɵFactoryTarget.Injectable });
167
+ BsDropDownService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BsDropDownService });
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BsDropDownService, decorators: [{
169
169
  type: Injectable
170
170
  }], ctorParameters: function () { return [{ type: AngularUtilService }]; } });
171
171
 
@@ -187,9 +187,9 @@ class ContainerService {
187
187
  }
188
188
  }
189
189
  }
190
- ContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
191
- ContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ContainerService });
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ContainerService, decorators: [{
190
+ ContainerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContainerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
191
+ ContainerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContainerService });
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ContainerService, decorators: [{
193
193
  type: Injectable
194
194
  }], ctorParameters: function () { return []; } });
195
195
 
@@ -225,9 +225,9 @@ class TranslaterService {
225
225
  return this.translateService?.instant?.(translationKey || ' ');
226
226
  }
227
227
  }
228
- TranslaterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: TranslaterService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
229
- TranslaterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: TranslaterService });
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: TranslaterService, decorators: [{
228
+ TranslaterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TranslaterService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
229
+ TranslaterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TranslaterService });
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TranslaterService, decorators: [{
231
231
  type: Injectable
232
232
  }], ctorParameters: function () { return [{ type: i1.TranslateService, decorators: [{
233
233
  type: Optional
@@ -499,7 +499,7 @@ class SlickRowDetailView extends SlickRowDetailView$1 {
499
499
  awaitedItemDetail = await castObservableToPromise(this.rxjs, response); // from Angular-http-client
500
500
  }
501
501
  if (!awaitedItemDetail || !awaitedItemDetail.hasOwnProperty(this.datasetIdPropName)) {
502
- throw new Error(`[Angular-Slickgrid] could not process the Row Detail, you must make sure that your "process" callback
502
+ throw new Error(`[Angular-Slickgrid] could not process the Row Detail, you must make sure that your "process" callback
503
503
  (a Promise or an HttpClient call returning an Observable) returns an item object that has an "${this.datasetIdPropName}" property`);
504
504
  }
505
505
  // notify the plugin with the new item details
@@ -1056,6 +1056,9 @@ class AngularSlickgridComponent {
1056
1056
  return this._registeredResources;
1057
1057
  }
1058
1058
  ngAfterViewInit() {
1059
+ if (!this.gridOptions || !this.columnDefinitions) {
1060
+ throw new Error('Using `<angular-slickgrid>` requires [gridOptions] and [columnDefinitions], it seems that you might have forgot to provide them since at least of them is undefined.');
1061
+ }
1059
1062
  this.initialization(this._eventHandler);
1060
1063
  this._isGridInitialized = true;
1061
1064
  // recheck the empty warning message after grid is shown so that it works in every use case
@@ -1979,21 +1982,21 @@ class AngularSlickgridComponent {
1979
1982
  }
1980
1983
  }
1981
1984
  }
1982
- AngularSlickgridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularSlickgridComponent, deps: [{ token: AngularUtilService }, { token: i0.ApplicationRef }, { token: i0.ChangeDetectorRef }, { token: ContainerService }, { token: i0.ElementRef }, { token: i1.TranslateService, optional: true }, { token: TranslaterService, optional: true }, { token: 'config' }, { token: 'externalService' }], target: i0.ɵɵFactoryTarget.Component });
1983
- AngularSlickgridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.5", type: AngularSlickgridComponent, selector: "angular-slickgrid", inputs: { customDataView: "customDataView", gridId: "gridId", gridOptions: "gridOptions", paginationOptions: "paginationOptions", columnDefinitions: "columnDefinitions", dataset: "dataset", datasetHierarchical: "datasetHierarchical" }, providers: [
1985
+ AngularSlickgridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularSlickgridComponent, deps: [{ token: AngularUtilService }, { token: i0.ApplicationRef }, { token: i0.ChangeDetectorRef }, { token: ContainerService }, { token: i0.ElementRef }, { token: i1.TranslateService, optional: true }, { token: TranslaterService, optional: true }, { token: 'config' }, { token: 'externalService' }], target: i0.ɵɵFactoryTarget.Component });
1986
+ AngularSlickgridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AngularSlickgridComponent, selector: "angular-slickgrid", inputs: { customDataView: "customDataView", gridId: "gridId", gridOptions: "gridOptions", paginationOptions: "paginationOptions", columnDefinitions: "columnDefinitions", dataset: "dataset", datasetHierarchical: "datasetHierarchical" }, providers: [
1984
1987
  // make everything transient (non-singleton)
1985
1988
  AngularUtilService,
1986
1989
  ApplicationRef,
1987
1990
  TranslaterService,
1988
- ], ngImport: i0, template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\r\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\r\n </div>\r\n</div>" });
1989
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularSlickgridComponent, decorators: [{
1991
+ ], ngImport: i0, template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\n </div>\n</div>" });
1992
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularSlickgridComponent, decorators: [{
1990
1993
  type: Component,
1991
1994
  args: [{ selector: 'angular-slickgrid', providers: [
1992
1995
  // make everything transient (non-singleton)
1993
1996
  AngularUtilService,
1994
1997
  ApplicationRef,
1995
1998
  TranslaterService,
1996
- ], template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\r\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\r\n </div>\r\n</div>" }]
1999
+ ], template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\n </div>\n</div>" }]
1997
2000
  }], ctorParameters: function () { return [{ type: AngularUtilService }, { type: i0.ApplicationRef }, { type: i0.ChangeDetectorRef }, { type: ContainerService }, { type: i0.ElementRef }, { type: i1.TranslateService, decorators: [{
1998
2001
  type: Optional
1999
2002
  }] }, { type: TranslaterService, decorators: [{
@@ -2034,14 +2037,14 @@ class AngularSlickgridModule {
2034
2037
  };
2035
2038
  }
2036
2039
  }
2037
- AngularSlickgridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularSlickgridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2038
- AngularSlickgridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularSlickgridModule, declarations: [AngularSlickgridComponent], imports: [CommonModule,
2040
+ AngularSlickgridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularSlickgridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2041
+ AngularSlickgridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularSlickgridModule, declarations: [AngularSlickgridComponent], imports: [CommonModule,
2039
2042
  TranslateModule], exports: [AngularSlickgridComponent] });
2040
- AngularSlickgridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularSlickgridModule, imports: [[
2043
+ AngularSlickgridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularSlickgridModule, imports: [[
2041
2044
  CommonModule,
2042
2045
  TranslateModule
2043
2046
  ]] });
2044
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: AngularSlickgridModule, decorators: [{
2047
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AngularSlickgridModule, decorators: [{
2045
2048
  type: NgModule,
2046
2049
  args: [{
2047
2050
  imports: [