angular-slickgrid 7.1.0 → 7.3.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
@@ -11,13 +11,13 @@
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 features, customizability and performance (it can easily deal with even a million row). Angular-Slickgrid is a wrapper on top of SlickGrid and it requires [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal/) dependency since the original one was put on pause by its original author for personal reasons and originally we used the `6pac/SlickGrid` fork but that was dropped in v7.0, so we no longer need external SlickGrid dependencies anymore apart from Slickgrid-Universal since [v7.0](https://github.com/ghiscoding/Angular-Slickgrid/releases/tag/v7.0.3). Also, SlickGrid was recently refactored to be browser native, which means that jQuery is no longer required in Angular-Slickgrid v6.0 and higher.
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 it requires [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal/) dependency, originally we used the `6pac/SlickGrid` fork but that was dropped in >=7.0, so we no longer need external SlickGrid dependencies anymore apart from Slickgrid-Universal since [v7.0](https://github.com/ghiscoding/Angular-Slickgrid/releases/tag/v7.0.3). SlickGrid was also recently refactored to be browser native (no more jQuery).
15
15
 
16
16
  ### License
17
17
  [MIT License](LICENSE)
18
18
 
19
19
  ## Documentation
20
- A new [Documentation](https://ghiscoding.gitbook.io/angular-slickgrid/getting-started/quick-start) website is powered by GitBook.
20
+ 📕 [Documentation](https://ghiscoding.gitbook.io/angular-slickgrid/getting-started/quick-start) website powered by GitBook.
21
21
 
22
22
  ## Installation
23
23
  A good starting point is the **[Docs - Quick Start](https://ghiscoding.gitbook.io/angular-slickgrid/getting-started/quick-start)** and/or simply clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository. Please review all documentation 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.
@@ -27,9 +27,10 @@ npm install angular-slickgrid
27
27
  ```
28
28
 
29
29
  ### Demo page
30
- `Angular-Slickgrid` works with all `Bootstrap` versions, you can see a demo of each one below. There are also extra styling themes for not just Bootstrap but also 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)
30
+ `Angular-Slickgrid` works with all `Bootstrap` versions, you can see a demo of each one below. It also with any other framework like Material or Bulma and there are also extra styling themes for not just Bootstrap but also 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)
31
31
  - [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) / [examples repo](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-translate)
32
32
  - [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)
33
+ - `Bootstrap 5 demo with Single Locale` / [examples repo](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-locales)
33
34
 
34
35
  [Bootstrap 5 with single Locale](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-locales) - Code Sample with single Locale (without `ngx-translate`)
35
36
 
@@ -43,8 +44,8 @@ npm install
43
44
  npm start
44
45
  ```
45
46
 
46
- ### Like it? :star: it
47
- You like to use **Angular-Slickgrid**? Be sure to upvote :star: and maybe support me with caffeine :coffee: and feel free to contribute. 👷👷‍♀️
47
+ ### Like it? it
48
+ You like to use **Angular-Slickgrid**? Be sure to upvote and maybe support me with caffeine [☕](https://ko-fi.com/ghiscoding) and feel free to contribute. 👷👷‍♀️
48
49
 
49
50
  <a href='https://ko-fi.com/ghiscoding' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' />
50
51
 
@@ -28,6 +28,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
28
28
  protected _eventPubSubService: EventPubSubService;
29
29
  protected _angularGridInstances: AngularGridInstance | undefined;
30
30
  protected _hideHeaderRowAfterPageLoad: boolean;
31
+ protected _isAutosizeColsCalled: boolean;
31
32
  protected _isGridInitialized: boolean;
32
33
  protected _isDatasetInitialized: boolean;
33
34
  protected _isDatasetHierarchicalInitialized: boolean;
@@ -115,6 +116,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
115
116
  * @param dataset
116
117
  */
117
118
  refreshGridData(dataset: any[], totalCount?: number): void;
119
+ setData(data: TData[], shouldAutosizeColumns?: boolean): void;
118
120
  /**
119
121
  * Check if there's any Pagination Presets defined in the Grid Options,
120
122
  * if there are then load them in the paginationOptions object
@@ -1,5 +1,5 @@
1
1
  import { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
2
- import type { EventSubscription, OnRowBackToViewportRangeArgs, RxJsFacade, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
2
+ import type { EventSubscription, OnBeforeRowDetailToggleArgs, OnRowBackToViewportRangeArgs, RxJsFacade, SlickEventData, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
3
3
  import { SlickRowSelectionModel } from '@slickgrid-universal/common';
4
4
  import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
5
5
  import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
@@ -72,10 +72,10 @@ export declare class SlickRowDetailView extends UniversalSlickRowDetailView {
72
72
  * if it's expanding we will add it to our View Components reference array if we don't already have it
73
73
  * or if it's collapsing we will remove it from our View Components reference array
74
74
  */
75
- protected handleOnBeforeRowDetailToggle(e: Event, args: {
75
+ protected handleOnBeforeRowDetailToggle(_e: SlickEventData<OnBeforeRowDetailToggleArgs>, args: {
76
76
  grid: SlickGrid;
77
77
  item: any;
78
78
  }): void;
79
79
  /** When Row comes back to Viewport Range, we need to redraw the View */
80
- protected handleOnRowBackToViewportRange(_e: Event, args: OnRowBackToViewportRangeArgs): void;
80
+ protected handleOnRowBackToViewportRange(_e: SlickEventData<OnRowBackToViewportRangeArgs>, args: OnRowBackToViewportRangeArgs): void;
81
81
  }
@@ -1,5 +1,5 @@
1
1
  export * from '@slickgrid-universal/common';
2
- export { AngularComponentOutput, AngularGridInstance, GridOption, SlickGrid, RowDetailView } from './models/index';
2
+ export { AngularComponentOutput, AngularGridInstance, GridOption, RowDetailView } from './models/index';
3
3
  export { AngularUtilService, unsubscribeAllObservables } from './services/index';
4
4
  export { SlickRowDetailView } from './extensions/index';
5
5
  export { SlickgridConfig } from './slickgrid-config';
@@ -3,4 +3,3 @@ export * from './angularGridInstance.interface';
3
3
  export * from './externalTestingDependencies.interface';
4
4
  export * from './gridOption.interface';
5
5
  export * from './rowDetailView.interface';
6
- export * from './slickGrid.interface';
@@ -10,16 +10,4 @@ export interface RowDetailView extends UniversalRowDetailView {
10
10
  preloadComponent?: Type<object>;
11
11
  /** View Component that will be loaded in the row detail after the async function completed */
12
12
  viewComponent: Type<object>;
13
- /**
14
- * HTML Preload Template that will be used before the async process (typically used to show a spinner/loading)
15
- * It's preferable to use the "preloadView" property to use an Angular View instead of plain HTML.
16
- * If you still wish to use these methods, we strongly suggest you to sanitize your HTML, e.g. "DOMPurify.sanitize()"
17
- */
18
- preTemplate?: () => string;
19
- /**
20
- * HTML Post Template (when Row Detail data is available) that will be loaded once the async function finishes
21
- * It's preferable to use the "preloadView" property to use an Angular View instead of plain HTML
22
- * If you still wish to use these methods, we strongly suggest you to sanitize your HTML, e.g. "DOMPurify.sanitize()"
23
- */
24
- postTemplate?: (item: any) => string;
25
13
  }