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.
- package/README.md +13 -10
- package/app/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +3 -2
- package/app/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +2 -1
- package/app/modules/angular-slickgrid/global-grid-options.d.ts +1 -1
- package/app/modules/angular-slickgrid/models/angularGridInstance.interface.d.ts +2 -2
- package/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.d.ts +2 -2
- package/app/modules/angular-slickgrid/models/gridOption.interface.d.ts +3 -3
- package/app/modules/angular-slickgrid/models/rowDetailView.interface.d.ts +1 -1
- package/app/modules/angular-slickgrid/models/slickGrid.interface.d.ts +2 -2
- package/app/modules/angular-slickgrid/modules/angular-slickgrid.module.d.ts +1 -1
- package/app/modules/angular-slickgrid/services/angularUtil.service.d.ts +1 -1
- package/app/modules/angular-slickgrid/services/container.service.d.ts +1 -1
- package/app/modules/angular-slickgrid/slickgrid-config.d.ts +1 -1
- package/esm2022/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +6 -6
- package/esm2022/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +2 -2
- package/esm2022/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/gridOption.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/slickGrid.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +5 -5
- package/esm2022/app/modules/angular-slickgrid/services/angularUtil.service.mjs +4 -4
- package/esm2022/app/modules/angular-slickgrid/services/container.service.mjs +4 -4
- package/esm2022/app/modules/angular-slickgrid/services/translater.service.mjs +3 -3
- package/esm2022/app/modules/angular-slickgrid/slickgrid-config.mjs +1 -1
- package/fesm2022/angular-slickgrid.mjs +16 -16
- package/fesm2022/angular-slickgrid.mjs.map +1 -1
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/angular-slickgrid)
|
|
7
7
|
|
|
8
8
|
[](https://github.com/ghiscoding/Angular-Slickgrid/actions)
|
|
9
|
-
[](https://www.cypress.io/)
|
|
9
|
+
[](https://www.cypress.io/)
|
|
10
10
|
[](https://github.com/facebook/jest)
|
|
11
11
|
[](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
|
|
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
|
|
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
|
|
33
|
-
|
|
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
|
|
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
|
|
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,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[];
|