angular-slickgrid 6.0.0 → 6.1.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/README.md +13 -10
  2. package/app/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +3 -2
  3. package/app/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +2 -1
  4. package/app/modules/angular-slickgrid/global-grid-options.d.ts +1 -1
  5. package/app/modules/angular-slickgrid/models/angularGridInstance.interface.d.ts +2 -2
  6. package/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.d.ts +2 -2
  7. package/app/modules/angular-slickgrid/models/gridOption.interface.d.ts +3 -3
  8. package/app/modules/angular-slickgrid/models/rowDetailView.interface.d.ts +1 -1
  9. package/app/modules/angular-slickgrid/models/slickGrid.interface.d.ts +2 -2
  10. package/app/modules/angular-slickgrid/modules/angular-slickgrid.module.d.ts +1 -1
  11. package/app/modules/angular-slickgrid/services/angularUtil.service.d.ts +1 -1
  12. package/app/modules/angular-slickgrid/services/container.service.d.ts +1 -1
  13. package/app/modules/angular-slickgrid/slickgrid-config.d.ts +1 -1
  14. package/esm2022/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +6 -6
  15. package/esm2022/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +2 -2
  16. package/esm2022/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
  17. package/esm2022/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
  18. package/esm2022/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
  19. package/esm2022/app/modules/angular-slickgrid/models/gridOption.interface.mjs +1 -1
  20. package/esm2022/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
  21. package/esm2022/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +1 -1
  22. package/esm2022/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +5 -5
  23. package/esm2022/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
  24. package/esm2022/app/modules/angular-slickgrid/services/container.service.mjs +4 -4
  25. package/esm2022/app/modules/angular-slickgrid/services/translater.service.mjs +3 -3
  26. package/esm2022/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
  27. package/fesm2022/angular-slickgrid.mjs +16 -16
  28. package/fesm2022/angular-slickgrid.mjs.map +1 -1
  29. package/package.json +11 -10
package/README.md CHANGED
@@ -6,18 +6,18 @@
6
6
  [![npm](https://img.shields.io/npm/v/angular-slickgrid.svg?logo=npm&logoColor=fff&label=npm)](https://www.npmjs.com/package/angular-slickgrid)
7
7
 
8
8
  [![Actions Status](https://github.com/ghiscoding/Angular-Slickgrid/workflows/CI%20Build/badge.svg)](https://github.com/ghiscoding/Angular-Slickgrid/actions)
9
- [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
9
+ [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg?logo=cypress)](https://www.cypress.io/)
10
10
  [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
11
11
  [![codecov](https://codecov.io/gh/ghiscoding/Angular-Slickgrid/branch/master/graph/badge.svg)](https://codecov.io/gh/ghiscoding/Angular-Slickgrid)
12
12
 
13
13
  ### Brief introduction
14
- One of the best JavasSript datagrid [SlickGrid](https://github.com/mleibman/SlickGrid) which was originally developed by @mleibman is now available to Angular. SlickGrid beats most other datagrids in terms of functionalities and performance (it can easily deal with even a million row). Angular-Slickgrid is a wrapper on top of SlickGrid and we are using the [6pac/SlickGrid](https://github.com/6pac/SlickGrid/) fork which is the most active fork since the original was put on pause by its original author for personal reasons. Also worth to know, that I also contributed a lot to the 6pac/SlickGrid fork for the benefit of all the SlickGrid libraries that I maintain like this one here... SlickGrid is now also native and no longer requires jQuery (its only dependency is SortableJS)
14
+ One of the best JavasSript datagrid [SlickGrid](https://github.com/mleibman/SlickGrid), which was originally developed by @mleibman, is now available to Angular. SlickGrid beats most other datagrids in terms of features, customizability and performance (it can easily deal with even a million row). Angular-Slickgrid is a wrapper on top of SlickGrid and we are using the [6pac/SlickGrid](https://github.com/6pac/SlickGrid/) fork which is the most active one since the original one was put on pause by its original author for personal reasons. Also worth to know, that I also contributed a lot to the 6pac/SlickGrid fork over the years for the benefit of all the SlickGrid libraries that I maintain including this one here... SlickGrid was recently refactored to be browser native, which means that jQuery is no longer required in Angular-Slickgrid [v6.0](https://github.com/ghiscoding/Angular-Slickgrid/releases/tag/v6.0.0) and higher.
15
15
 
16
16
  ### License
17
17
  [MIT License](LICENSE)
18
18
 
19
19
  ## Installation
20
- A good starting point is the **[Wiki - HOWTO Step by Step](https://github.com/ghiscoding/angular-slickgrid/wiki/HOWTO---Step-by-Step)** and/or simply clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository. Please consult all Wikis and closed issues before opening new ones, also consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid) unless you think there's a bug with the library.
20
+ A good starting point is the **[Wiki - HOWTO Step by Step](https://github.com/ghiscoding/angular-slickgrid/wiki/HOWTO---Step-by-Step)** and/or simply clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository. Please review all Wikis and closed issues before opening any new issue, also consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid) unless you think there's a bug with the library.
21
21
 
22
22
  ```sh
23
23
  npm install angular-slickgrid
@@ -29,8 +29,9 @@ npm install angular-slickgrid
29
29
  - [Bootstrap 4 demo](https://ghiscoding.github.io/angular-slickgrid-demos) / [examples repo](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap4-demo-with-translate)
30
30
 
31
31
  #### Working Demo
32
- For a complete & working local demo (30+ examples), you can (and should) clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository to get started. That repo is updated frequently and is used to update the GitHub demo page for both the [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) and [Bootstrap 4 demo](https://ghiscoding.github.io/angular-slickgrid-demos).
33
- ```bash
32
+ For a complete set of working demos (over 30 examples), we strongly suggest you to clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository (instructions are provided in the demo repo). The repo provides multiple demos and they are updated every time a new version is out, so it is updated frequently and is also used as the GitHub live demo page for both the [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) and [Bootstrap 4 demo](https://ghiscoding.github.io/angular-slickgrid-demos).
33
+
34
+ ```sh
34
35
  git clone https://github.com/ghiscoding/angular-slickgrid-demos
35
36
  cd bootstrap4-demo-with-translate # or any of the 4 demos
36
37
  npm install
@@ -47,14 +48,16 @@ Check out the [Releases](https://github.com/ghiscoding/Angular-Slickgrid/release
47
48
 
48
49
  ## Angular Compatibility
49
50
 
51
+ > **Note** please be aware that only the latest version of Angular-Slickgrid, shown in the table below, can receive bug fixes because that is already a lot of work for a single developer like me.
52
+
50
53
  | Angular-Slickgrid | Angular version | Migration Guide | Notes |
51
54
  |-------------------|-----------------------|-----------------|------|
52
- | 1.x | 4-6.x | | |
53
- | 2.x | 7-11.x | | |
54
- | 3.x | >=12.0 | [Migration 3.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-3.x) | the lib now uses [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal) monorepo version [v0.19.2](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v0.19.2). Also, IE11 is EOL and no longer supported. |
55
- | 4.x | >=13.0 | [Migration 4.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-4.x) | for Ivy build only, uses Slickgrid-Universal [1.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v1.1.1) version |
56
- | 5.x | >=14.0 | [Migration 5.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-5.x) | removal of jQueryUI, uses Slickgrid-Universal [2.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v2.0.0) version |
57
55
  | 6.x | >=16.0 | [Migration 6.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-6.x) | removal of jQuery (now uses browser native code), uses Slickgrid-Universal [3.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v3.0.0) version |
56
+ | 5.x | >=14.0 | [Migration 5.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-5.x) | removal of jQueryUI, uses Slickgrid-Universal [2.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v2.0.0) version |
57
+ | 4.x | >=13.0 | [Migration 4.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-4.x) | for Ivy build only, uses Slickgrid-Universal [1.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v1.1.1) version |
58
+ | 3.x | >=12.0 | [Migration 3.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-3.x) | the lib now uses [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal) monorepo version [v0.19.2](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v0.19.2). Also, IE11 is EOL and no longer supported. |
59
+ | 2.x | 7-11.x | [Migration 2.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-2.x) | support multiple grids on same page |
60
+ | 1.x | 4-6.x | | |
58
61
 
59
62
  **Note** For a full compatibility table of Angular-Slickgrid with Slickgrid-Universal, please take a look at the [Versions Compatibility Table - Wiki](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Versions-Compatibility-Table).
60
63
 
@@ -4,11 +4,12 @@ import 'slickgrid/slick.grid';
4
4
  import 'slickgrid/slick.dataview';
5
5
  import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
6
6
  import { TranslateService } from '@ngx-translate/core';
7
- import { BackendServiceApi, Column, EventSubscription, ExternalResource, Locale, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SlickGroupItemMetadataProvider, SortService, TreeDataService } from '@slickgrid-universal/common';
7
+ import type { BackendServiceApi, Column, EventSubscription, ExternalResource, Locale, Metrics, Pagination, RxJsFacade, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
8
+ import { ExtensionUtility, SlickGroupItemMetadataProvider, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
8
9
  import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
9
10
  import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
10
11
  import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
11
- import { ExternalTestingDependencies, GridOption } from './../models/index';
12
+ import type { ExternalTestingDependencies, GridOption } from './../models/index';
12
13
  import { TranslaterService } from '../services/translater.service';
13
14
  import { AngularUtilService } from '../services/angularUtil.service';
14
15
  import { SlickRowDetailView } from '../extensions/slickRowDetailView';
@@ -1,5 +1,6 @@
1
1
  import { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
2
- import { EventSubscription, RxJsFacade, SlickEventHandler, SlickGrid, SlickRowSelectionModel } from '@slickgrid-universal/common';
2
+ import type { EventSubscription, RxJsFacade, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
3
+ import { SlickRowSelectionModel } from '@slickgrid-universal/common';
3
4
  import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
4
5
  import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
5
6
  import { Observable, Subject } from 'rxjs';
@@ -1,3 +1,3 @@
1
- import { GridOption } from './models/index';
1
+ import type { GridOption } from './models/index';
2
2
  /** Global Grid Options Defaults */
3
3
  export declare const GlobalGridOptions: Partial<GridOption>;
@@ -1,5 +1,5 @@
1
- import { BackendService, ExtensionList, ExtensionService, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
2
- import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
1
+ import type { BackendService, ExtensionList, ExtensionService, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
2
+ import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
3
3
  export interface AngularGridInstance {
4
4
  /** Slick DataView object */
5
5
  dataView: SlickDataView;
@@ -1,5 +1,5 @@
1
- import { BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
2
- import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
1
+ import type { BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
2
+ import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
3
3
  export interface ExternalTestingDependencies {
4
4
  backendUtilityService?: BackendUtilityService;
5
5
  collectionService?: CollectionService;
@@ -1,6 +1,6 @@
1
- import { TranslateService } from '@ngx-translate/core';
2
- import { GridOption as UniversalGridOption } from '@slickgrid-universal/common';
3
- import { RowDetailView } from './index';
1
+ import type { TranslateService } from '@ngx-translate/core';
2
+ import type { GridOption as UniversalGridOption } from '@slickgrid-universal/common';
3
+ import type { RowDetailView } from './index';
4
4
  export interface GridOption extends UniversalGridOption {
5
5
  /** ngx-translate i18n translation service instance */
6
6
  i18n?: TranslateService;
@@ -1,5 +1,5 @@
1
1
  import { Type } from '@angular/core';
2
- import { RowDetailView as UniversalRowDetailView } from '@slickgrid-universal/common';
2
+ import type { RowDetailView as UniversalRowDetailView } from '@slickgrid-universal/common';
3
3
  export interface RowDetailView extends UniversalRowDetailView {
4
4
  /**
5
5
  * Optionally pass your Parent Component reference to your Child Component (row detail component).
@@ -1,5 +1,5 @@
1
- import { SlickGrid as UniversalSlickGrid } from '@slickgrid-universal/common';
2
- import { GridOption } from './gridOption.interface';
1
+ import type { SlickGrid as UniversalSlickGrid } from '@slickgrid-universal/common';
2
+ import type { GridOption } from './gridOption.interface';
3
3
  export interface SlickGrid extends UniversalSlickGrid {
4
4
  /** Returns an object containing all of the Grid options set on the grid. See a list of Grid Options here. */
5
5
  getOptions(): GridOption;
@@ -1,4 +1,4 @@
1
- import { ModuleWithProviders } from '@angular/core';
1
+ import { type ModuleWithProviders } from '@angular/core';
2
2
  import { GridOption } from './../models/gridOption.interface';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "../components/angular-slickgrid.component";
@@ -1,5 +1,5 @@
1
1
  import { ViewContainerRef } from '@angular/core';
2
- import { AngularComponentOutput } from '../models/angularComponentOutput.interface';
2
+ import type { AngularComponentOutput } from '../models/angularComponentOutput.interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AngularUtilService {
5
5
  private vcr;
@@ -1,4 +1,4 @@
1
- import { ContainerInstance, ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
1
+ import { type ContainerInstance, ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ContainerService implements UniversalContainerService {
4
4
  dependencies: ContainerInstance[];
@@ -1,4 +1,4 @@
1
- import { GridOption } from './models/gridOption.interface';
1
+ import type { GridOption } from './models/gridOption.interface';
2
2
  export declare class SlickgridConfig {
3
3
  options: Partial<GridOption>;
4
4
  constructor();