angular-slickgrid 8.8.0 → 8.9.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 CHANGED
@@ -3,14 +3,15 @@
3
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
4
  [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
5
5
  [![NPM downloads](https://img.shields.io/npm/dy/angular-slickgrid)](https://npmjs.org/package/angular-slickgrid)
6
+ <a href="https://pkg-size.dev/angular-slickgrid?no-peers"><img src="https://pkg-size.dev/badge/bundle/889360" title="Bundle size for angular-slickgrid"></a>
6
7
  [![npm](https://img.shields.io/npm/v/angular-slickgrid.svg?logo=npm&logoColor=fff&label=npm)](https://www.npmjs.com/package/angular-slickgrid)
7
- <!--[![npm bundle size](https://img.shields.io/bundlephobia/minzip/angular-slickgrid?color=success&label=gzip)](https://bundlephobia.com/result?p=angular-slickgrid)-->
8
8
 
9
9
  [![Actions Status](https://github.com/ghiscoding/Angular-Slickgrid/workflows/CI%20Build/badge.svg)](https://github.com/ghiscoding/Angular-Slickgrid/actions)
10
10
  [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg?logo=cypress)](https://www.cypress.io/)
11
11
  [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
12
12
  [![codecov](https://codecov.io/gh/ghiscoding/Angular-Slickgrid/branch/master/graph/badge.svg)](https://codecov.io/gh/ghiscoding/Angular-Slickgrid)
13
13
 
14
+
14
15
  ### Brief introduction
15
16
  One of the best JavasSript datagrid [SlickGrid](https://github.com/mleibman/SlickGrid), which was originally developed by @mleibman, is now available to the Angular world. SlickGrid beats most other datagrids in terms of features, customizability and performance (running smoothly with even a million rows). Angular-Slickgrid is a wrapper on top of [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal/) (which is required), in the early beginning we used the `6pac/SlickGrid` fork but that was dropped in >=[v7.0](https://github.com/ghiscoding/Angular-Slickgrid/releases/tag/v7.0.3) since Slickgrid-Universal is now a standalone project. SlickGrid was also recently rewritten with browser native code (no more ~jQuery~ 🎉).
16
17
 
@@ -33,6 +34,15 @@ A good starting point is the **[Docs - Quick Start](https://ghiscoding.gitbook.i
33
34
  npm install angular-slickgrid
34
35
  ```
35
36
 
37
+ ### Styling Themes
38
+
39
+ Multiple styling themes are available
40
+ - Bootstrap (see all Angular-Slickgrid [live demos](https://ghiscoding.github.io/Angular-Slickgrid/))
41
+ - Material (see [Slickgrid-Universal](https://ghiscoding.github.io/slickgrid-universal/#/example07))
42
+ - Salesforce (see [Slickgrid-Universal](https://ghiscoding.github.io/slickgrid-universal/#/example16))
43
+
44
+ Also note that all of these themes also have **Dark Theme** equivalent and even though Bootstrap if often used as the default, it also works well with any other UI framework like Bulma, Material, ...
45
+
36
46
  ### Demo page
37
47
  `Angular-Slickgrid` works with all `Bootstrap` versions, you can see a demo of each one below. It also works well with any other frameworks like Material or Bulma and there are also couple of extra styling themes based on Material & Salesforce which are also available. You can also use different SVG icons, you may want to look at the [Docs - SVG Icons](https://ghiscoding.gitbook.io/angular-slickgrid/styling/svg-icons)
38
48
 
@@ -1,11 +1,10 @@
1
1
  import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import { BackendService, BackendServiceApi, Column, EventSubscription, ExternalResource, Locale, Metrics, Pagination, RxJsFacade, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
4
- import { ExtensionUtility, SlickGroupItemMetadataProvider, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
2
+ import { BackendService, BackendServiceApi, BasePaginationComponent, Column, EventSubscription, ExternalResource, Locale, Metrics, Pagination, PaginationMetadata, RxJsFacade, SlickDataView, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
3
+ import { ExtensionUtility, SlickGroupItemMetadataProvider, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, HeaderGroupingService, PaginationService, ResizerService, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
5
4
  import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
6
5
  import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
7
6
  import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
8
- import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
7
+ import { TranslateService } from '@ngx-translate/core';
9
8
  import type { AngularGridInstance, ExternalTestingDependencies, GridOption } from './../models/index';
10
9
  import { TranslaterService } from '../services/translater.service';
11
10
  import { AngularUtilService } from '../services/angularUtil.service';
@@ -55,7 +54,8 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
55
54
  subscriptions: EventSubscription[];
56
55
  slickEmptyWarning?: SlickEmptyWarningComponent;
57
56
  slickFooter?: SlickFooterComponent;
58
- slickPagination?: SlickPaginationComponent;
57
+ slickPagination?: BasePaginationComponent;
58
+ paginationComponent: BasePaginationComponent | undefined;
59
59
  slickRowDetailView?: SlickRowDetailView;
60
60
  backendUtilityService: BackendUtilityService;
61
61
  collectionService: CollectionService;
@@ -66,7 +66,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
66
66
  gridEventService: GridEventService;
67
67
  gridService: GridService;
68
68
  gridStateService: GridStateService;
69
- groupingService: GroupingAndColspanService;
69
+ headerGroupingService: HeaderGroupingService;
70
70
  paginationService: PaginationService;
71
71
  resizerService: ResizerService;
72
72
  rxjs?: RxJsFacade;
@@ -114,7 +114,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
114
114
  * On a Pagination changed, we will trigger a Grid State changed with the new pagination info
115
115
  * Also if we use Row Selection or the Checkbox Selector with a Backend Service (Odata, GraphQL), we need to reset any selection
116
116
  */
117
- paginationChanged(pagination: ServicePagination): void;
117
+ paginationChanged(pagination: PaginationMetadata): void;
118
118
  /**
119
119
  * When dataset changes, we need to refresh the entire grid UI & possibly resize it as well
120
120
  * @param dataset
@@ -1,4 +1,4 @@
1
- import type { BackendService, ExtensionList, ExtensionService, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
1
+ import type { BackendService, BasePaginationComponent, ExtensionList, ExtensionService, FilterService, GridEventService, GridService, GridStateService, HeaderGroupingService, PaginationService, ResizerService, SlickDataView, SlickGrid, SortService, TreeDataService } from '@slickgrid-universal/common';
2
2
  import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
3
3
  export interface AngularGridInstance {
4
4
  /** Slick DataView object */
@@ -23,8 +23,12 @@ export interface AngularGridInstance {
23
23
  gridEventService: GridEventService;
24
24
  /** Grid State Service */
25
25
  gridStateService: GridStateService;
26
+ /** @deprecated @use `headerGroupingService` */
27
+ groupingService: HeaderGroupingService;
26
28
  /** Grouping (and colspan) Service */
27
- groupingService: GroupingAndColspanService;
29
+ headerGroupingService: HeaderGroupingService;
30
+ /** Pagination Component */
31
+ paginationComponent?: BasePaginationComponent;
28
32
  /** Pagination Service (allows you to programmatically go to first/last page, etc...) */
29
33
  paginationService?: PaginationService;
30
34
  /** Resizer Service (including auto-resize) */
@@ -1,4 +1,4 @@
1
- import type { BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
1
+ import type { BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterService, GridEventService, GridService, GridStateService, HeaderGroupingService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
2
2
  import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
3
3
  export interface ExternalTestingDependencies {
4
4
  backendUtilityService?: BackendUtilityService;
@@ -10,7 +10,7 @@ export interface ExternalTestingDependencies {
10
10
  gridEventService?: GridEventService;
11
11
  gridService?: GridService;
12
12
  gridStateService?: GridStateService;
13
- groupingAndColspanService?: GroupingAndColspanService;
13
+ headerGroupingService?: HeaderGroupingService;
14
14
  paginationService?: PaginationService;
15
15
  resizerService?: ResizerService;
16
16
  rxjs?: RxJsFacade;