angular-slickgrid 3.2.0 → 4.0.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 (55) hide show
  1. package/README.md +26 -28
  2. package/angular-slickgrid.d.ts +1 -3
  3. package/app/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +8 -4
  4. package/app/modules/angular-slickgrid/extensions/index.d.ts +1 -1
  5. package/app/modules/angular-slickgrid/extensions/{rowDetailViewExtension.d.ts → slickRowDetailView.d.ts} +40 -27
  6. package/app/modules/angular-slickgrid/index.d.ts +1 -1
  7. package/app/modules/angular-slickgrid/models/angularGridInstance.interface.d.ts +1 -1
  8. package/app/modules/angular-slickgrid/modules/angular-slickgrid.module.d.ts +7 -0
  9. package/app/modules/angular-slickgrid/services/angularUtil.service.d.ts +3 -0
  10. package/app/modules/angular-slickgrid/services/bsDropdown.service.d.ts +3 -0
  11. package/app/modules/angular-slickgrid/services/container.service.d.ts +3 -0
  12. package/app/modules/angular-slickgrid/services/translater.service.d.ts +3 -0
  13. package/docs/assets/lib/multiple-select/README.md +17 -0
  14. package/esm2020/angular-slickgrid.mjs +5 -0
  15. package/esm2020/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +1168 -0
  16. package/{esm2015/app/modules/angular-slickgrid/constants.js → esm2020/app/modules/angular-slickgrid/constants.mjs} +0 -0
  17. package/{esm2015/app/modules/angular-slickgrid/extensions/index.js → esm2020/app/modules/angular-slickgrid/extensions/index.mjs} +2 -2
  18. package/esm2020/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +301 -0
  19. package/esm2020/app/modules/angular-slickgrid/global-grid-options.mjs +243 -0
  20. package/{esm2015/app/modules/angular-slickgrid/index.js → esm2020/app/modules/angular-slickgrid/index.mjs} +2 -2
  21. package/{esm2015/app/modules/angular-slickgrid/models/angularComponentOutput.interface.js → esm2020/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs} +0 -0
  22. package/esm2020/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +2 -0
  23. package/{esm2015/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.js → esm2020/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs} +0 -0
  24. package/{esm2015/app/modules/angular-slickgrid/models/gridOption.interface.js → esm2020/app/modules/angular-slickgrid/models/gridOption.interface.mjs} +0 -0
  25. package/{esm2015/app/modules/angular-slickgrid/models/index.js → esm2020/app/modules/angular-slickgrid/models/index.mjs} +0 -0
  26. package/{esm2015/app/modules/angular-slickgrid/models/rowDetailView.interface.js → esm2020/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs} +0 -0
  27. package/{esm2015/app/modules/angular-slickgrid/models/slickGrid.interface.js → esm2020/app/modules/angular-slickgrid/models/slickGrid.interface.mjs} +0 -0
  28. package/esm2020/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +46 -0
  29. package/esm2020/app/modules/angular-slickgrid/services/angularUtil.service.mjs +46 -0
  30. package/esm2020/app/modules/angular-slickgrid/services/bsDropdown.service.mjs +103 -0
  31. package/esm2020/app/modules/angular-slickgrid/services/container.service.mjs +26 -0
  32. package/{esm2015/app/modules/angular-slickgrid/services/index.js → esm2020/app/modules/angular-slickgrid/services/index.mjs} +0 -0
  33. package/esm2020/app/modules/angular-slickgrid/services/translater.service.mjs +43 -0
  34. package/{esm2015/app/modules/angular-slickgrid/services/utilities.js → esm2020/app/modules/angular-slickgrid/services/utilities.mjs} +0 -0
  35. package/{esm2015/app/modules/angular-slickgrid/slickgrid-config.js → esm2020/app/modules/angular-slickgrid/slickgrid-config.mjs} +0 -0
  36. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  37. package/fesm2015/{angular-slickgrid.js → angular-slickgrid.mjs} +247 -279
  38. package/fesm2015/angular-slickgrid.mjs.map +1 -0
  39. package/fesm2020/angular-slickgrid.mjs +2065 -0
  40. package/fesm2020/angular-slickgrid.mjs.map +1 -0
  41. package/package.json +41 -23
  42. package/angular-slickgrid.metadata.json +0 -1
  43. package/bundles/angular-slickgrid.umd.js +0 -2642
  44. package/bundles/angular-slickgrid.umd.js.map +0 -1
  45. package/esm2015/angular-slickgrid.js +0 -7
  46. package/esm2015/app/modules/angular-slickgrid/components/angular-slickgrid.component.js +0 -1202
  47. package/esm2015/app/modules/angular-slickgrid/extensions/rowDetailViewExtension.js +0 -342
  48. package/esm2015/app/modules/angular-slickgrid/global-grid-options.js +0 -243
  49. package/esm2015/app/modules/angular-slickgrid/models/angularGridInstance.interface.js +0 -2
  50. package/esm2015/app/modules/angular-slickgrid/modules/angular-slickgrid.module.js +0 -37
  51. package/esm2015/app/modules/angular-slickgrid/services/angularUtil.service.js +0 -48
  52. package/esm2015/app/modules/angular-slickgrid/services/bsDropdown.service.js +0 -103
  53. package/esm2015/app/modules/angular-slickgrid/services/container.service.js +0 -24
  54. package/esm2015/app/modules/angular-slickgrid/services/translater.service.js +0 -47
  55. package/fesm2015/angular-slickgrid.js.map +0 -1
package/README.md CHANGED
@@ -11,13 +11,27 @@
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 javascript datagrid [SlickGrid](https://github.com/mleibman/SlickGrid) which was originally developed by @mleibman is now available to Angular. I have used a few datagrids and SlickGrid beats most of them in terms of functionalities and performance (it can easily deal with even a million row). We will be using the [6pac/SlickGrid](https://github.com/6pac/SlickGrid/) fork, it is the most active fork since the original author @mleibman stopped working on his original repo. Also worth knowing that I have contributed a lot to the 6pac/SlickGrid fork for the benefit of Angular-Slickgrid... also a reminder, this is a wrapper of a jQuery lib (SlickGrid) and a big portion of the lib (like Editors, Filters and others) are written in jQuery/JavaScript, so just keep that in mind and that also means jQuery is a dependency.
14
+ One of the best javascript datagrid [SlickGrid](https://github.com/mleibman/SlickGrid) which was originally developed by @mleibman is now available to Angular. I have used a few datagrids and SlickGrid beats most of them in terms of functionalities and performance (it can easily deal with even a million row). We will be using the [6pac/SlickGrid](https://github.com/6pac/SlickGrid/) fork, it is the most active fork since the original author @mleibman stopped working on his original repo. Also worth knowing that I have contributed a lot to the 6pac/SlickGrid fork for the benefit of Angular-Slickgrid... also a reminder, this is a wrapper of a jQuery lib (SlickGrid) and a big portion of the lib (like Editors, Filters and others) are written in jQuery/JavaScript, so just keep that in mind and it also mean that jQuery is a dependency.
15
+
16
+ ### License
17
+ [MIT License](LICENSE)
15
18
 
16
19
  ### NPM Package
17
20
  [Angular-Slickgrid on NPM](https://www.npmjs.com/package/angular-slickgrid)
18
21
 
19
- ### License
20
- [MIT License](LICENSE)
22
+ ### Demo page
23
+ `Angular-Slickgrid` works with all `Bootstrap` versions, you can see a demo of each one below. There are also 2 new styling Themes, Material & Salesforce which are also available. You can also use different SVG icons, you may want to look at the [Wiki - SVG Icons](https://github.com/ghiscoding/Angular-Slickgrid/wiki/SVG-Icons)
24
+ - [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) / [examples repo](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-translate)
25
+ - [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)
26
+
27
+ #### Working Demo
28
+ 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).
29
+ ```bash
30
+ git clone https://github.com/ghiscoding/angular-slickgrid-demos
31
+ cd bootstrap4-demo-with-translate # or any of the 4 demos
32
+ npm install
33
+ npm start
34
+ ```
21
35
 
22
36
  ### Like it? :star: it
23
37
  You like and use **Angular-Slickgrid**? Be sure to upvote :star: and feel free to contribute. :construction_worker:👷‍♀️
@@ -39,13 +53,13 @@ Check out the [Releases](https://github.com/ghiscoding/Angular-Slickgrid/release
39
53
 
40
54
  ## Angular Compatibility
41
55
  - version `1.x.x` for Angular 4 to 6
42
- - Angular 6, is only supported through `rxjs-compat` as shown in this [post](https://github.com/ghiscoding/Angular-Slickgrid/issues/36#issuecomment-395710915). It's preferable to upgrade to Angular 7+ to avoid using the `rxjs-compat` package.
43
56
  - version `2.x.x` for Angular 7+
44
- - since version `2.11.0`, you can also change your build `target` to `ES2015` for modern browser.
45
- - version `3.x.x` for Angular 12+ and RxJS 7+
57
+ - version `3.x.x` for Angular 12+ and RxJS 7+ ([migration guide to 3.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-3.x))
46
58
  - build `target` got bumped to `ES2018` for modern browser **only**
47
59
  - IE11 is reaching EOL by year end and is **no longer supported**, if you still need to support it then stick with version 2.x
48
60
  - uses [Slickgrid-Universal](https://github.com/ghiscoding/slickgrid-universal) monorepo
61
+ - version `4.x.x` for Angular 13+ and RxJS 7+ (**Ivy only**, [migration guide to 4.x](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Migration-to-4.x))
62
+ - for Ivy build only (no more UMD bundle), IE is definitely out of the picture
49
63
 
50
64
  For Angular 12+ see the instructions below - [Angular 12 with WebPack 5 - polyfill issue](https://github.com/ghiscoding/Angular-Slickgrid#angular-12-with-webpack-5---how-to-fix-polyfill-error)
51
65
 
@@ -55,10 +69,10 @@ If you are facing any issues with `ngx-translate` library while building your An
55
69
 
56
70
  | Angular Version | @ngx-translate/core |
57
71
  |-----------------|---------------------|
58
- | 10 | 13.x+ |
59
- | 9 | 12.x+ |
60
- | 8 | 12.x+ |
61
- | 7 | 11.x+ |
72
+ | 13+ (Ivy only) | 14.x+ |
73
+ | 10-13 | 13.x+ |
74
+ | 8-9 | 12.x+ |
75
+ | 7 | 11.x+ |
62
76
 
63
77
  ### Build Warnings (Angular 8+)
64
78
  You might get warnings about SlickGrid while doing a production build, most of them are fine and the best way to fix them, is to simply remove/ignore the warnings, all you have to do is to add a file named `ngcc.config.js` in your project root (same location as the `angular.json` file) with the following content (you can also see this [commit](https://github.com/ghiscoding/angular-slickgrid-demos/commit/1fe8092bcd2e99ede5ab048f4a7ebe6254e4bee0) which fixes the Angular-Slickgrid-Demos prod build):
@@ -77,7 +91,7 @@ module.exports = {
77
91
  }
78
92
  };
79
93
  ```
80
- You should also add `Angular-Slickgrid` as an allowed CommonJS dependency to your `angular.json` file to silent the warnings.
94
+ You should also add `Angular-Slickgrid` as an allowed CommonJS dependency to your `angular.json` file to silence the warnings.
81
95
  ```json
82
96
  "options": {
83
97
  "allowedCommonJsDependencies": ["angular-slickgrid"]
@@ -117,29 +131,13 @@ This is no longer the case. Verify if you need this module and configure a polyf
117
131
  ```
118
132
 
119
133
  ### Fully Tested with [Jest](https://jestjs.io/) (Unit Tests) - [Cypress](https://www.cypress.io/) (E2E Tests)
120
- Angular-Slickgrid and Slickgrid-Universal both have **100%** Unit Test Coverage, we are talking about +13,000 lines of code (+3,000 unit tests) that are fully tested with [Jest](https://jestjs.io/). On the UI side, all Angular-Slickgrid Examples are tested with [Cypress](https://www.cypress.io/), there are over +450 Cypress E2E tests.
134
+ Angular-Slickgrid and Slickgrid-Universal both have **100%** Unit Test Coverage, we are talking about +15,000 lines of code (+3,750 unit tests) that are fully tested with [Jest](https://jestjs.io/). On the UI side, all Angular-Slickgrid Examples are tested with [Cypress](https://www.cypress.io/), there are over +500 Cypress E2E tests.
121
135
 
122
136
  ## Installation
123
137
  Refer to the **[Wiki - HOWTO Step by Step](https://github.com/ghiscoding/angular-slickgrid/wiki/HOWTO---Step-by-Step)** and/or clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository. Please don't open any issue unless you have followed these steps (from the Wiki), and if any of the steps are incorrect or confusing, then please let me know.
124
138
 
125
139
  **NOTE:** if you have any question, please consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid)
126
140
 
127
- ### Demo page
128
- `Angular-Slickgrid` works with `Bootstrap 4` and even latest `Bootstrap 5` version, you can see a demo of each one below.
129
- - [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) / [examples repo](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-translate)
130
- - [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)
131
-
132
- There are also 2 new styling Themes, Material & Salesforce are also available and you could also use SVG icons if so take a look at the [Wiki - SVG Icons](https://github.com/ghiscoding/Angular-Slickgrid/wiki/SVG-Icons)
133
-
134
- #### Working Demo
135
- For a complete and working local demo (with +30 examples), you can (should) clone the [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository. That repo is updated frequently and is used to update the GitHub demo pages for both the [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) and [Bootstrap 4 demo](https://ghiscoding.github.io/angular-slickgrid-demos).
136
- ```bash
137
- git clone https://github.com/ghiscoding/angular-slickgrid-demos
138
- cd bootstrap4-demo-with-translate
139
- npm install
140
- npm start
141
- ```
142
-
143
141
  #### How to load data with `HttpClient`?
144
142
  You might notice that all demos are coded with mocked dataset in each of the examples, that is mainly for demo purposes, but you might be wondering how to connect this with an `HttpClient`? Easy... just replace the mocked data, assigned to the `dataset` property, by your `HttpClient` call it and that's it. The `dataset` property can be changed or refreshed at any time, which is why you can use local data and/or connect it to a `Promise` or an `Observable` with `HttpClient` (internally it's just a SETTER that refreshes the grid). See [Example 24](https://ghiscoding.github.io/Angular-Slickgrid/#/gridtabs) for a demo showing how to load a JSON file with `HttpClient`.
145
143
 
@@ -1,7 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="angular-slickgrid" />
4
5
  export * from './public_api';
5
- export { ExternalTestingDependencies as ɵa } from './app/modules/angular-slickgrid/models/externalTestingDependencies.interface';
6
- export { ContainerService as ɵb } from './app/modules/angular-slickgrid/services/container.service';
7
- export { TranslaterService as ɵc } from './app/modules/angular-slickgrid/services/translater.service';
@@ -6,18 +6,19 @@ import 'slickgrid/lib/jquery.mousewheel';
6
6
  import 'slickgrid/slick.core';
7
7
  import 'slickgrid/slick.grid';
8
8
  import 'slickgrid/slick.dataview';
9
- import 'slickgrid/slick.groupitemmetadataprovider';
10
9
  import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
11
10
  import { TranslateService } from '@ngx-translate/core';
12
11
  import { Subscription } from 'rxjs';
13
- import { BackendServiceApi, Column, ExternalResource, Locale, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TreeDataService, ExtensionUtility } from '@slickgrid-universal/common';
12
+ import { BackendServiceApi, Column, 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';
14
13
  import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
15
14
  import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
16
15
  import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
17
16
  import { ExternalTestingDependencies, GridOption } from './../models/index';
18
17
  import { TranslaterService } from '../services/translater.service';
19
18
  import { AngularUtilService } from '../services/angularUtil.service';
19
+ import { SlickRowDetailView } from '../extensions/slickRowDetailView';
20
20
  import { ContainerService } from '../services/container.service';
21
+ import * as i0 from "@angular/core";
21
22
  export declare class AngularSlickgridComponent implements AfterViewInit, OnDestroy {
22
23
  private readonly angularUtilService;
23
24
  private readonly appRef;
@@ -44,7 +45,7 @@ export declare class AngularSlickgridComponent implements AfterViewInit, OnDestr
44
45
  dataView: SlickDataView;
45
46
  slickGrid: SlickGrid;
46
47
  groupingDefinition: any;
47
- groupItemMetadataProvider: any;
48
+ groupItemMetadataProvider?: SlickGroupItemMetadataProvider;
48
49
  backendServiceApi?: BackendServiceApi;
49
50
  locales: Locale;
50
51
  metrics?: Metrics;
@@ -59,10 +60,11 @@ export declare class AngularSlickgridComponent implements AfterViewInit, OnDestr
59
60
  slickEmptyWarning?: SlickEmptyWarningComponent;
60
61
  slickFooter?: SlickFooterComponent;
61
62
  slickPagination?: SlickPaginationComponent;
62
- extensionUtility: ExtensionUtility;
63
+ slickRowDetailView?: SlickRowDetailView;
63
64
  backendUtilityService: BackendUtilityService;
64
65
  collectionService: CollectionService;
65
66
  extensionService: ExtensionService;
67
+ extensionUtility: ExtensionUtility;
66
68
  filterFactory: FilterFactory;
67
69
  filterService: FilterService;
68
70
  gridEventService: GridEventService;
@@ -194,4 +196,6 @@ export declare class AngularSlickgridComponent implements AfterViewInit, OnDestr
194
196
  * Once we found the new pointer, we will reassign the "editor" and "collection" to the "internalColumnEditor" so it has newest collection
195
197
  */
196
198
  private updateEditorCollection;
199
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularSlickgridComponent, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, null]>;
200
+ static ɵcmp: i0.ɵɵComponentDeclaration<AngularSlickgridComponent, "angular-slickgrid", never, { "customDataView": "customDataView"; "gridId": "gridId"; "gridOptions": "gridOptions"; "paginationOptions": "paginationOptions"; "columnDefinitions": "columnDefinitions"; "dataset": "dataset"; "datasetHierarchical": "datasetHierarchical"; }, {}, never, never>;
197
201
  }
@@ -1 +1 @@
1
- export * from './rowDetailViewExtension';
1
+ export * from './slickRowDetailView';
@@ -1,8 +1,10 @@
1
1
  import 'slickgrid/plugins/slick.rowdetailview';
2
2
  import 'slickgrid/plugins/slick.rowselectionmodel';
3
- import { ApplicationRef, ComponentRef, ViewContainerRef } from '@angular/core';
4
- import { Column, RowDetailViewExtension as UniversalRowDetailViewExtension, RxJsFacade, SharedService, SlickEventHandler, SlickRowDetailView } from '@slickgrid-universal/common';
3
+ import { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
4
+ import { RxJsFacade, SlickEventHandler, SlickGrid, SlickRowSelectionModel } from '@slickgrid-universal/common';
5
5
  import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
6
+ import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
7
+ import { Observable, Subject, Subscription } from 'rxjs';
6
8
  import { GridOption, RowDetailView } from '../models/index';
7
9
  import { AngularUtilService } from '../services/angularUtil.service';
8
10
  export interface CreatedView {
@@ -10,24 +12,25 @@ export interface CreatedView {
10
12
  dataContext: any;
11
13
  componentRef?: ComponentRef<any>;
12
14
  }
13
- export declare class RowDetailViewExtension implements UniversalRowDetailViewExtension {
14
- private readonly angularUtilService;
15
- private readonly appRef;
16
- private readonly eventPubSubService;
17
- private readonly sharedService;
18
- private rxjs?;
15
+ export declare class SlickRowDetailView extends UniversalSlickRowDetailView {
16
+ protected readonly angularUtilService: AngularUtilService;
17
+ protected readonly appRef: ApplicationRef;
18
+ protected readonly eventPubSubService: EventPubSubService;
19
+ protected readonly gridContainerElement: HTMLDivElement;
20
+ protected rxjs?: RxJsFacade;
19
21
  rowDetailContainer: ViewContainerRef;
20
- private _addon;
21
- private _addonOptions;
22
- private _eventHandler;
23
- private _preloadComponent;
24
- private _views;
25
- private _viewComponent;
26
- private _subscriptions;
27
- private _userProcessFn;
28
- constructor(angularUtilService: AngularUtilService, appRef: ApplicationRef, eventPubSubService: EventPubSubService, sharedService: SharedService, rxjs?: RxJsFacade);
29
- private get datasetIdPropName();
22
+ protected _eventHandler: SlickEventHandler;
23
+ protected _preloadComponent: Type<object> | undefined;
24
+ protected _views: CreatedView[];
25
+ protected _viewComponent: Type<object>;
26
+ protected _subscriptions: Subscription[];
27
+ protected _userProcessFn: (item: any) => Promise<any> | Observable<any> | Subject<any>;
28
+ constructor(angularUtilService: AngularUtilService, appRef: ApplicationRef, eventPubSubService: EventPubSubService, gridContainerElement: HTMLDivElement, rxjs?: RxJsFacade);
29
+ get addonOptions(): import("@slickgrid-universal/common").RowDetailViewOption;
30
+ protected get datasetIdPropName(): string;
30
31
  get eventHandler(): SlickEventHandler;
32
+ set eventHandler(eventHandler: SlickEventHandler);
33
+ /** Getter for the Grid Options pulled through the Grid Object */
31
34
  get gridOptions(): GridOption;
32
35
  get rowDetailViewOptions(): RowDetailView | undefined;
33
36
  addRxJsResource(rxjs: RxJsFacade): void;
@@ -35,14 +38,14 @@ export declare class RowDetailViewExtension implements UniversalRowDetailViewExt
35
38
  dispose(): void;
36
39
  /** Dispose of all the opened Row Detail Panels Angular View Components */
37
40
  disposeAllViewComponents(): void;
41
+ /** Get the instance of the SlickGrid addon (control or plugin). */
42
+ getAddonInstance(): SlickRowDetailView | null;
43
+ init(grid: SlickGrid): void;
38
44
  /**
39
45
  * Create the plugin before the Grid creation, else it will behave oddly.
40
46
  * Mostly because the column definitions might change after the grid creation
41
47
  */
42
- create(columnDefinitions: Column[], gridOptions: GridOption): SlickRowDetailView | null;
43
- /** Get the instance of the SlickGrid addon (control or plugin). */
44
- getAddonInstance(): any;
45
- register(rowSelectionPlugin?: any): any;
48
+ register(rowSelectionPlugin?: SlickRowSelectionModel): this;
46
49
  /** Redraw (re-render) all the expanded row detail View Components */
47
50
  redrawAllViewComponents(): void;
48
51
  /** Render all the expanded row detail View Components */
@@ -53,25 +56,35 @@ export declare class RowDetailViewExtension implements UniversalRowDetailViewExt
53
56
  renderPreloadView(): void;
54
57
  /** Render (or re-render) the View Component (Row Detail) */
55
58
  renderViewModel(item: any): CreatedView | undefined;
56
- private disposeViewComponent;
59
+ protected disposeViewComponent(expandedView: CreatedView): CreatedView | void;
57
60
  /**
58
61
  * notify the onAsyncResponse with the "args.item" (required property)
59
62
  * the plugin will then use item to populate the row detail panel with the "postTemplate"
60
63
  * @param item
61
64
  */
62
- private notifyTemplate;
65
+ protected notifyTemplate(item: any): void;
63
66
  /**
64
67
  * On Processing, we will notify the plugin with the new item detail once backend server call completes
65
68
  * @param item
66
69
  */
67
- private onProcessing;
70
+ protected onProcessing(item: any): Promise<void>;
68
71
  /**
69
72
  * Just before the row get expanded or collapsed we will do the following
70
73
  * First determine if the row is expanding or collapsing,
71
74
  * if it's expanding we will add it to our View Components reference array if we don't already have it
72
75
  * or if it's collapsing we will remove it from our View Components reference array
73
76
  */
74
- private onBeforeRowDetailToggle;
77
+ protected handleOnBeforeRowDetailToggle(e: Event, args: {
78
+ grid: SlickGrid;
79
+ item: any;
80
+ }): void;
75
81
  /** When Row comes back to Viewport Range, we need to redraw the View */
76
- private onRowBackToViewportRange;
82
+ protected handleOnRowBackToViewportRange(e: Event, args: {
83
+ grid: SlickGrid;
84
+ item: any;
85
+ rowId: number;
86
+ rowIndex: number;
87
+ expandedRows: any[];
88
+ rowIdsOutOfViewport: number[];
89
+ }): void;
77
90
  }
@@ -1,7 +1,7 @@
1
1
  export * from '@slickgrid-universal/common';
2
2
  export { AngularComponentOutput, AngularGridInstance, GridOption, SlickGrid, RowDetailView } from './models/index';
3
3
  export { AngularUtilService, BsDropDownService, unsubscribeAllObservables } from './services/index';
4
- export { RowDetailViewExtension } from './extensions/index';
4
+ export { SlickRowDetailView } from './extensions/index';
5
5
  export { SlickgridConfig } from './slickgrid-config';
6
6
  export { AngularSlickgridComponent } from './components/angular-slickgrid.component';
7
7
  export { AngularSlickgridModule } from './modules/angular-slickgrid.module';
@@ -5,7 +5,7 @@ export interface AngularGridInstance {
5
5
  /** Slick Grid object */
6
6
  slickGrid: SlickGrid;
7
7
  /** SlickGrid extensions (external controls/plugins) */
8
- extensions: ExtensionList<any, any>;
8
+ extensions: ExtensionList<any>;
9
9
  /** Dispose of the grid and optionally empty the DOM element grid container as well */
10
10
  destroy: (emptyDomElementContainer?: boolean) => void;
11
11
  /** Backend Service, when available */
@@ -1,5 +1,12 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { GridOption } from './../models/gridOption.interface';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "../components/angular-slickgrid.component";
5
+ import * as i2 from "@angular/common";
6
+ import * as i3 from "@ngx-translate/core";
3
7
  export declare class AngularSlickgridModule {
4
8
  static forRoot(config?: GridOption): ModuleWithProviders<AngularSlickgridModule>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularSlickgridModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularSlickgridModule, [typeof i1.AngularSlickgridComponent], [typeof i2.CommonModule, typeof i3.TranslateModule], [typeof i1.AngularSlickgridComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularSlickgridModule>;
5
12
  }
@@ -1,5 +1,6 @@
1
1
  import { AngularComponentOutput } from '../models/angularComponentOutput.interface';
2
2
  import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class AngularUtilService {
4
5
  private compFactoryResolver;
5
6
  private appRef;
@@ -7,4 +8,6 @@ export declare class AngularUtilService {
7
8
  constructor(compFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector);
8
9
  createAngularComponent(component: any): AngularComponentOutput;
9
10
  createAngularComponentAppendToDom(component: any, targetElement?: HTMLElement | Element, clearTargetContent?: boolean): AngularComponentOutput;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularUtilService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<AngularUtilService>;
10
13
  }
@@ -1,4 +1,5 @@
1
1
  import { AngularUtilService } from './angularUtil.service';
2
+ import * as i0 from "@angular/core";
2
3
  interface DropDownServiceParams {
3
4
  /** the custom action formatter component that contains the dropdown */
4
5
  component: any;
@@ -24,5 +25,7 @@ export declare class BsDropDownService {
24
25
  dispose(): void;
25
26
  dropContainerShow(): void;
26
27
  render(dropdownParams: DropDownServiceParams): Promise<unknown>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<BsDropDownService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<BsDropDownService>;
27
30
  }
28
31
  export {};
@@ -1,7 +1,10 @@
1
1
  import { ContainerInstance, ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class ContainerService implements UniversalContainerService {
3
4
  dependencies: ContainerInstance[];
4
5
  constructor();
5
6
  get<T = any>(key: string): T | null;
6
7
  registerInstance(key: string, instance: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContainerService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContainerService>;
7
10
  }
@@ -1,5 +1,6 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
2
  import { TranslaterService as UniversalTranslateService } from '@slickgrid-universal/common';
3
+ import * as i0 from "@angular/core";
3
4
  /**
4
5
  * This is a Translate Service Wrapper for Slickgrid-Universal monorepo lib to work properly,
5
6
  * it must implement Slickgrid-Universal TranslaterService interface to work properly
@@ -24,4 +25,6 @@ export declare class TranslaterService implements UniversalTranslateService {
24
25
  * @return {string} translated value
25
26
  */
26
27
  translate(translationKey: string): string;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslaterService, [{ optional: true; }]>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslaterService>;
27
30
  }
@@ -0,0 +1,17 @@
1
+ # Multiple Select
2
+
3
+ Multiple select is a jQuery plugin to select multiple elements with checkboxes :).
4
+
5
+ To get started checkout examples and documentation at http://wenzhixin.net.cn/p/multiple-select
6
+
7
+ ## jsFiddle examples
8
+
9
+ https://github.com/wenzhixin/multiple-select/issues/255
10
+
11
+ ## Changelog
12
+
13
+ [CHANGELOG](https://github.com/wenzhixin/multiple-select/blob/master/CHANGELOG.md)
14
+
15
+ ## LICENSE
16
+
17
+ [The MIT License](https://github.com/wenzhixin/multiple-select/blob/master/LICENSE)
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public_api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1zbGlja2dyaWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYW5ndWxhci1zbGlja2dyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==