@slickgrid-universal/vanilla-bundle 0.19.2 → 1.2.1
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/CHANGELOG.md +67 -3
- package/LICENSE +1 -1
- package/README.md +30 -30
- package/dist/commonjs/components/slick-vanilla-grid-bundle.d.ts +151 -43
- package/dist/commonjs/components/slick-vanilla-grid-bundle.js +27 -63
- package/dist/commonjs/components/slick-vanilla-grid-bundle.js.map +1 -1
- package/dist/commonjs/index.d.ts +16 -26
- package/dist/commonjs/index.js +1 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/components/slick-vanilla-grid-bundle.d.ts +151 -44
- package/dist/esm/components/slick-vanilla-grid-bundle.js +30 -68
- package/dist/esm/components/slick-vanilla-grid-bundle.js.map +1 -1
- package/dist/esm/index.d.ts +16 -27
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/index.d.ts +0 -1
- package/dist/esm/interfaces/slickerGridInstance.interface.d.ts +0 -1
- package/dist/esm/services/index.d.ts +0 -1
- package/dist/esm/services/universalContainer.service.d.ts +0 -1
- package/package.json +10 -25
- package/dist/bundle/index.d.ts +0 -451
- package/dist/bundle/slickgrid-vanilla-bundle.js +0 -3
- package/dist/bundle/slickgrid-vanilla-bundle.js.LICENSE.txt +0 -189
- package/dist/bundle/slickgrid-vanilla-bundle.js.map +0 -1
- package/dist/commonjs/salesforce-global-grid-options.d.ts +0 -3
- package/dist/commonjs/salesforce-global-grid-options.js +0 -82
- package/dist/commonjs/salesforce-global-grid-options.js.map +0 -1
- package/dist/esm/components/slick-vanilla-grid-bundle.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/interfaces/index.d.ts.map +0 -1
- package/dist/esm/interfaces/slickerGridInstance.interface.d.ts.map +0 -1
- package/dist/esm/salesforce-global-grid-options.d.ts +0 -4
- package/dist/esm/salesforce-global-grid-options.d.ts.map +0 -1
- package/dist/esm/salesforce-global-grid-options.js +0 -79
- package/dist/esm/salesforce-global-grid-options.js.map +0 -1
- package/dist/esm/services/index.d.ts.map +0 -1
- package/dist/esm/services/universalContainer.service.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,18 +3,82 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [
|
|
6
|
+
## [1.2.1](https://github.com/ghiscoding/slickgrid-universal/compare/v1.2.0...v1.2.1) (2022-01-18)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* **
|
|
12
|
-
* **translation:** add new UNFREEZE_COLUMNS to fix translation ([22ed231](https://github.com/ghiscoding/slickgrid-universal/commit/22ed2313c45587f2ebdb279c9e47df881c6f83d6))
|
|
11
|
+
* **memory:** clear & dispose of grid to avoid mem leaks & detached elm ([7035db5](https://github.com/ghiscoding/slickgrid-universal/commit/7035db5f878187f6fb8b9d2effacb7443f25e2c9))
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
17
|
+
# [1.2.0](https://github.com/ghiscoding/slickgrid-universal/compare/v1.1.1...v1.2.0) (2022-01-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **services:** add extra features to EventPubSub Service ([9bd02b5](https://github.com/ghiscoding/slickgrid-universal/commit/9bd02b5d92bcf6aaf89a828c4e6496a24e795c53))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [1.1.1](https://github.com/ghiscoding/slickgrid-universal/compare/v1.1.0...v1.1.1) (2021-12-11)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **build:** bump version manually bcoz of previous force push ([5e9a610](https://github.com/ghiscoding/slickgrid-universal/commit/5e9a610ad01d752673856591f9b5de73b0ece0e9))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# [1.1.0](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.2...v1.1.0) (2021-12-11)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* **context:** strip hidden special chars on context menu Copy command ([f94ca83](https://github.com/ghiscoding/slickgrid-universal/commit/f94ca834b1fdee94e4e44bdc3d245956a4437de6))
|
|
45
|
+
* **locales:** add missing text & remove global config texts fix Locales ([655a872](https://github.com/ghiscoding/slickgrid-universal/commit/655a872d7160ab53530f8e2fdc575817af782b5d))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **build:** create `salesforce-vanilla-bundle` standalone package ([214d8e7](https://github.com/ghiscoding/slickgrid-universal/commit/214d8e77646d3fdac278cf18227c96f346c94522))
|
|
51
|
+
* **controls:** convert and add ColumnPicker into Slickgrid-Universal ([1f937b9](https://github.com/ghiscoding/slickgrid-universal/commit/1f937b9a3abe43cf1a2bb1f52ba625c34431e328))
|
|
52
|
+
* **controls:** move external Grid Menu into Slickgrid-Universal ([40adff4](https://github.com/ghiscoding/slickgrid-universal/commit/40adff49c2a74769823dfbed3d32b239608e2a59))
|
|
53
|
+
* **plugins:** move Checkbox and Row Selection plugins to universal ([06f0ab1](https://github.com/ghiscoding/slickgrid-universal/commit/06f0ab155a2f0ee06681d3e94780397c5e4f9f67))
|
|
54
|
+
* **plugins:** move external Cell Menu into Slickgrid-Universal ([6f34c10](https://github.com/ghiscoding/slickgrid-universal/commit/6f34c10b9a8522ae430e13c9519083451bf71ebf))
|
|
55
|
+
* **plugins:** move external cell related plugins to universal ([11e15d8](https://github.com/ghiscoding/slickgrid-universal/commit/11e15d88360b7b30ca7ab94624a7928201f15945))
|
|
56
|
+
* **plugins:** move external Context Menu into Slickgrid-Universal ([2170bb4](https://github.com/ghiscoding/slickgrid-universal/commit/2170bb4e3f02ef6f45ad13a1c59730047942651e))
|
|
57
|
+
* **plugins:** move external Draggable Grouping into Slickgrid-Universal ([8e6eb48](https://github.com/ghiscoding/slickgrid-universal/commit/8e6eb4881741313b7d582d2e3d17ffef582ecb35))
|
|
58
|
+
* **plugins:** move external GroupItemMetataProvider into Universal ([8f18c7d](https://github.com/ghiscoding/slickgrid-universal/commit/8f18c7d3d616e4cd72eb5478d544ec241c53154f))
|
|
59
|
+
* **plugins:** move external Header Button into Slickgrid-Universal ([69711ad](https://github.com/ghiscoding/slickgrid-universal/commit/69711aded5aa835091789800214f82cd7c72753e))
|
|
60
|
+
* **plugins:** move external Header Menu into Slickgrid-Universal ([aeba480](https://github.com/ghiscoding/slickgrid-universal/commit/aeba4801fdb5cba3976984f5c591be8c1ad97e4b))
|
|
61
|
+
* **plugins:** move Row Detail View plugin to universal ([fb327a6](https://github.com/ghiscoding/slickgrid-universal/commit/fb327a6abe85b86683572cde2a550de43a01f9e1))
|
|
62
|
+
* **plugins:** move Row Move Manager plugin to universal ([b19b2ed](https://github.com/ghiscoding/slickgrid-universal/commit/b19b2ed2da669662fbbdcf9fdefac243132909b2))
|
|
63
|
+
* **plugins:** replace AutoTooltips Extension by plugin ([80df14d](https://github.com/ghiscoding/slickgrid-universal/commit/80df14da9b66e9e1b8314e5adb1b96890cc7baa1))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [0.19.2](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.1...v0.19.2) (2021-11-19)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Bug Fixes
|
|
74
|
+
|
|
75
|
+
* **resizer:** use autosize width when total width smaller than viewport ([555fb0c](https://github.com/ghiscoding/slickgrid-universal/commit/555fb0cb793c111de837ffe6e9f212fcbf5ed701))
|
|
76
|
+
* **translation:** add new UNFREEZE_COLUMNS to fix translation ([22ed231](https://github.com/ghiscoding/slickgrid-universal/commit/22ed2313c45587f2ebdb279c9e47df881c6f83d6))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
18
82
|
|
|
19
83
|
## [0.19.1](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.0...v0.19.1) (2021-11-15)
|
|
20
84
|
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
[](https://opensource.org/licenses/MIT)
|
|
2
|
-
[](http://www.typescriptlang.org/)
|
|
3
|
-
[](https://lerna.js.org/)
|
|
4
|
-
[](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
|
|
5
|
-
[](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
|
|
6
|
-
|
|
7
|
-
[](https://github.com/ghiscoding/slickgrid-universal/actions)
|
|
8
|
-
[](https://www.cypress.io/)
|
|
9
|
-
[](https://github.com/facebook/jest)
|
|
10
|
-
[](https://codecov.io/gh/ghiscoding/slickgrid-universal)
|
|
11
|
-
|
|
12
|
-
## Vanilla Bundle
|
|
13
|
-
#### @slickgrid-universal/vanilla-bundle
|
|
14
|
-
|
|
15
|
-
Vanilla Bundle implementation (no framework, plain TypeSript implementation). This package does what other framework would do
|
|
16
|
-
|
|
17
|
-
### Internal Dependencies
|
|
18
|
-
- [@slickgrid-universal/common](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/common)
|
|
19
|
-
- [@slickgrid-universal/event-pub-sub](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/event-pub-sub)
|
|
20
|
-
- [@slickgrid-universal/custom-footer-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/custom-footer-component)
|
|
21
|
-
- [@slickgrid-universal/empty-warning-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/empty-warning-component)
|
|
22
|
-
- [@slickgrid-universal/pagination-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/pagination-component)
|
|
23
|
-
|
|
24
|
-
### External Dependencies
|
|
25
|
-
- [whatwg-fetch](https://github.com/whatwg/fetch) - Fetch Standard
|
|
26
|
-
|
|
27
|
-
### Installation
|
|
28
|
-
This Vanilla Bundle is used
|
|
29
|
-
|
|
30
|
-
Go to the root of the repo and follow the instructions provided in the main [README](https://github.com/ghiscoding/slickgrid-universal#installation)
|
|
1
|
+
[](https://opensource.org/licenses/MIT)
|
|
2
|
+
[](http://www.typescriptlang.org/)
|
|
3
|
+
[](https://lerna.js.org/)
|
|
4
|
+
[](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
|
|
5
|
+
[](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
|
|
6
|
+
|
|
7
|
+
[](https://github.com/ghiscoding/slickgrid-universal/actions)
|
|
8
|
+
[](https://www.cypress.io/)
|
|
9
|
+
[](https://github.com/facebook/jest)
|
|
10
|
+
[](https://codecov.io/gh/ghiscoding/slickgrid-universal)
|
|
11
|
+
|
|
12
|
+
## Vanilla Bundle
|
|
13
|
+
#### @slickgrid-universal/vanilla-bundle
|
|
14
|
+
|
|
15
|
+
Vanilla Bundle implementation (no framework, plain TypeSript implementation). This package does what other framework would do which is to make all these features usable into 1 bundle so that it could then be used by other Apps/Projects.
|
|
16
|
+
|
|
17
|
+
### Internal Dependencies
|
|
18
|
+
- [@slickgrid-universal/common](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/common)
|
|
19
|
+
- [@slickgrid-universal/event-pub-sub](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/event-pub-sub)
|
|
20
|
+
- [@slickgrid-universal/custom-footer-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/custom-footer-component)
|
|
21
|
+
- [@slickgrid-universal/empty-warning-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/empty-warning-component)
|
|
22
|
+
- [@slickgrid-universal/pagination-component](https://github.com/ghiscoding/slickgrid-universal/tree/master/packages/pagination-component)
|
|
23
|
+
|
|
24
|
+
### External Dependencies
|
|
25
|
+
- [whatwg-fetch](https://github.com/whatwg/fetch) - Fetch Standard
|
|
26
|
+
|
|
27
|
+
### Installation
|
|
28
|
+
This Vanilla Bundle is used used by the standalone [webpack-demo-vanilla-bundle](https://github.com/ghiscoding/slickgrid-universal/tree/master/examples/webpack-demo-vanilla-bundle) which serves for demo purposes.
|
|
29
|
+
|
|
30
|
+
Go to the root of the repo and follow the instructions provided in the main [README](https://github.com/ghiscoding/slickgrid-universal#installation)
|
|
@@ -8,34 +8,32 @@ import 'slickgrid/lib/jquery.mousewheel';
|
|
|
8
8
|
import 'slickgrid/slick.core';
|
|
9
9
|
import 'slickgrid/slick.grid';
|
|
10
10
|
import 'slickgrid/slick.dataview';
|
|
11
|
-
import 'slickgrid/
|
|
12
|
-
import { BackendServiceApi, Column, ExtensionList, GridOption, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, SlickGroupItemMetadataProvider, Subscription, ExtensionUtility, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TranslaterService, TreeDataService } from '@slickgrid-universal/common';
|
|
11
|
+
import { BackendServiceApi, Column, ExtensionList, ExternalResource, GridOption, Metrics, Pagination, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid, SlickGroupItemMetadataProvider, Subscription, BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, Observable, PaginationService, ResizerService, RxJsFacade, SharedService, SortService, TranslaterService, TreeDataService } from '@slickgrid-universal/common';
|
|
13
12
|
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
14
|
-
import { SlickCompositeEditorComponent } from '@slickgrid-universal/composite-editor-component';
|
|
15
13
|
import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
|
|
16
14
|
import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
|
|
17
15
|
import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
|
|
18
16
|
import { SlickerGridInstance } from '../interfaces/slickerGridInstance.interface';
|
|
19
17
|
import { UniversalContainerService } from '../services/universalContainer.service';
|
|
20
18
|
export declare class SlickVanillaGridBundle {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
19
|
+
protected _currentDatasetLength: number;
|
|
20
|
+
protected _eventPubSubService: EventPubSubService;
|
|
21
|
+
protected _columnDefinitions?: Column[];
|
|
22
|
+
protected _gridOptions?: GridOption;
|
|
23
|
+
protected _gridContainerElm: HTMLElement;
|
|
24
|
+
protected _gridParentContainerElm: HTMLElement;
|
|
25
|
+
protected _hideHeaderRowAfterPageLoad: boolean;
|
|
26
|
+
protected _isDatasetInitialized: boolean;
|
|
27
|
+
protected _isDatasetHierarchicalInitialized: boolean;
|
|
28
|
+
protected _isGridInitialized: boolean;
|
|
29
|
+
protected _isLocalGrid: boolean;
|
|
30
|
+
protected _isPaginationInitialized: boolean;
|
|
31
|
+
protected _eventHandler: SlickEventHandler;
|
|
32
|
+
protected _extensions: ExtensionList<any> | undefined;
|
|
33
|
+
protected _paginationOptions: Pagination | undefined;
|
|
34
|
+
protected _registeredResources: ExternalResource[];
|
|
35
|
+
protected _slickgridInitialized: boolean;
|
|
36
|
+
protected _slickerGridInstances: SlickerGridInstance | undefined;
|
|
39
37
|
backendServiceApi: BackendServiceApi | undefined;
|
|
40
38
|
dataView?: SlickDataView;
|
|
41
39
|
slickGrid?: SlickGrid;
|
|
@@ -56,6 +54,8 @@ export declare class SlickVanillaGridBundle {
|
|
|
56
54
|
extensionService: ExtensionService;
|
|
57
55
|
filterFactory: FilterFactory;
|
|
58
56
|
filterService: FilterService;
|
|
57
|
+
gridClass: string;
|
|
58
|
+
gridClassName: string;
|
|
59
59
|
gridEventService: GridEventService;
|
|
60
60
|
gridService: GridService;
|
|
61
61
|
gridStateService: GridStateService;
|
|
@@ -67,12 +67,9 @@ export declare class SlickVanillaGridBundle {
|
|
|
67
67
|
translaterService: TranslaterService | undefined;
|
|
68
68
|
treeDataService: TreeDataService;
|
|
69
69
|
universalContainerService: UniversalContainerService;
|
|
70
|
-
slickCompositeEditor: SlickCompositeEditorComponent | undefined;
|
|
71
70
|
slickEmptyWarning: SlickEmptyWarningComponent | undefined;
|
|
72
71
|
slickFooter: SlickFooterComponent | undefined;
|
|
73
72
|
slickPagination: SlickPaginationComponent | undefined;
|
|
74
|
-
gridClass: string;
|
|
75
|
-
gridClassName: string;
|
|
76
73
|
get eventHandler(): SlickEventHandler;
|
|
77
74
|
get columnDefinitions(): Column[];
|
|
78
75
|
set columnDefinitions(columnDefinitions: Column[]);
|
|
@@ -80,6 +77,7 @@ export declare class SlickVanillaGridBundle {
|
|
|
80
77
|
set dataset(newDataset: any[]);
|
|
81
78
|
get datasetHierarchical(): any[] | undefined;
|
|
82
79
|
set datasetHierarchical(newHierarchicalDataset: any[] | undefined);
|
|
80
|
+
set eventPubSubService(pubSub: EventPubSubService);
|
|
83
81
|
get gridOptions(): GridOption;
|
|
84
82
|
set gridOptions(options: GridOption);
|
|
85
83
|
get paginationOptions(): Pagination | undefined;
|
|
@@ -88,7 +86,7 @@ export declare class SlickVanillaGridBundle {
|
|
|
88
86
|
set isDatasetInitialized(isInitialized: boolean);
|
|
89
87
|
get isGridInitialized(): boolean;
|
|
90
88
|
get instances(): SlickerGridInstance | undefined;
|
|
91
|
-
get extensions(): ExtensionList<any
|
|
89
|
+
get extensions(): ExtensionList<any> | undefined;
|
|
92
90
|
get registeredResources(): any[];
|
|
93
91
|
/**
|
|
94
92
|
* Slicker Grid Bundle constructor
|
|
@@ -164,58 +162,168 @@ export declare class SlickVanillaGridBundle {
|
|
|
164
162
|
* Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
|
|
165
163
|
* We will use this when doing a resize by cell content, if user provided a `width` it won't override it.
|
|
166
164
|
*/
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
protected copyColumnWidthsReference(columnDefinitions: Column[]): void;
|
|
166
|
+
protected displayEmptyDataWarning(showWarning?: boolean): void;
|
|
169
167
|
/** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
|
|
170
|
-
|
|
168
|
+
protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
|
|
171
169
|
/** Initialize the Pagination Service once */
|
|
172
|
-
|
|
170
|
+
protected initializePaginationService(paginationOptions: Pagination): void;
|
|
173
171
|
/**
|
|
174
172
|
* Render (or dispose) the Pagination Component, user can optionally provide False (to not show it) which will in term dispose of the Pagination,
|
|
175
173
|
* also while disposing we can choose to omit the disposable of the Pagination Service (if we are simply toggling the Pagination, we want to keep the Service alive)
|
|
176
174
|
* @param {Boolean} showPagination - show (new render) or not (dispose) the Pagination
|
|
177
175
|
* @param {Boolean} shouldDisposePaginationService - when disposing the Pagination, do we also want to dispose of the Pagination Service? (defaults to True)
|
|
178
176
|
*/
|
|
179
|
-
|
|
177
|
+
protected renderPagination(showPagination?: boolean): void;
|
|
180
178
|
/** Load the Editor Collection asynchronously and replace the "collection" property when Promise resolves */
|
|
181
|
-
|
|
179
|
+
protected loadEditorCollectionAsync(column: Column): void;
|
|
182
180
|
/** Load any possible Columns Grid Presets */
|
|
183
|
-
|
|
181
|
+
protected loadColumnPresetsWhenDatasetInitialized(): void;
|
|
184
182
|
/** Load any possible Filters Grid Presets */
|
|
185
|
-
|
|
183
|
+
protected loadFilterPresetsWhenDatasetInitialized(): void;
|
|
186
184
|
/**
|
|
187
185
|
* local grid, check if we need to show the Pagination
|
|
188
186
|
* if so then also check if there's any presets and finally initialize the PaginationService
|
|
189
187
|
* a local grid with Pagination presets will potentially have a different total of items, we'll need to get it from the DataView and update our total
|
|
190
188
|
*/
|
|
191
|
-
|
|
189
|
+
protected loadLocalGridPagination(dataset?: any[]): void;
|
|
192
190
|
/** Load any Row Selections into the DataView that were presets by the user */
|
|
193
|
-
|
|
191
|
+
protected loadRowSelectionPresetWhenExists(): void;
|
|
194
192
|
/** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
protected preRegisterResources(): void;
|
|
194
|
+
protected registerResources(): void;
|
|
197
195
|
/** Register the RxJS Resource in all necessary services which uses */
|
|
198
|
-
|
|
196
|
+
protected registerRxJsResource(resource: RxJsFacade): void;
|
|
199
197
|
/**
|
|
200
198
|
* Takes a flat dataset with parent/child relationship, sort it (via its tree structure) and return the sorted flat array
|
|
201
199
|
* @returns {Array<Object>} sort flat parent/child dataset
|
|
202
200
|
*/
|
|
203
|
-
|
|
201
|
+
protected sortTreeDataset<T>(flatDatasetInput: T[], forceGridRefresh?: boolean): T[];
|
|
204
202
|
/**
|
|
205
203
|
* For convenience to the user, we provide the property "editor" as an Slickgrid-Universal editor complex object
|
|
206
204
|
* however "editor" is used internally by SlickGrid for it's own Editor Factory
|
|
207
205
|
* so in our lib we will swap "editor" and copy it into a new property called "internalColumnEditor"
|
|
208
206
|
* then take back "editor.model" and make it the new "editor" so that SlickGrid Editor Factory still works
|
|
209
207
|
*/
|
|
210
|
-
|
|
208
|
+
protected swapInternalEditorToSlickGridFactoryEditor(columnDefinitions: Column[]): {
|
|
209
|
+
editor: any;
|
|
210
|
+
internalColumnEditor: {
|
|
211
|
+
alwaysSaveOnEnterKey?: boolean | undefined;
|
|
212
|
+
ariaLabel?: string | undefined;
|
|
213
|
+
callbacks?: any;
|
|
214
|
+
collectionAsync?: Promise<any> | Observable<any> | undefined;
|
|
215
|
+
collection?: any[] | undefined;
|
|
216
|
+
collectionFilterBy?: import("@slickgrid-universal/common").CollectionFilterBy | import("@slickgrid-universal/common").CollectionFilterBy[] | undefined;
|
|
217
|
+
collectionOptions?: import("@slickgrid-universal/common").CollectionOption | undefined;
|
|
218
|
+
collectionOverride?: ((collectionInput: any[], args: import("@slickgrid-universal/common").CollectionOverrideArgs) => any[]) | undefined;
|
|
219
|
+
collectionSortBy?: import("@slickgrid-universal/common").CollectionSortBy | import("@slickgrid-universal/common").CollectionSortBy[] | undefined;
|
|
220
|
+
complexObjectPath?: string | undefined;
|
|
221
|
+
compositeEditorFormOrder?: number | undefined;
|
|
222
|
+
customStructure?: import("@slickgrid-universal/common").CollectionCustomStructure | undefined;
|
|
223
|
+
decimal?: number | undefined;
|
|
224
|
+
disabled?: boolean | undefined;
|
|
225
|
+
editorOptions?: any;
|
|
226
|
+
enableRenderHtml?: boolean | undefined;
|
|
227
|
+
enableTranslateLabel?: boolean | undefined;
|
|
228
|
+
errorMessage?: string | undefined;
|
|
229
|
+
massUpdate?: boolean | undefined;
|
|
230
|
+
maxLength?: number | undefined;
|
|
231
|
+
maxValue?: string | number | undefined;
|
|
232
|
+
minLength?: number | undefined;
|
|
233
|
+
minValue?: string | number | undefined;
|
|
234
|
+
model?: any;
|
|
235
|
+
placeholder?: string | undefined;
|
|
236
|
+
operatorConditionalType?: "inclusive" | "exclusive" | undefined;
|
|
237
|
+
queryField?: string | undefined;
|
|
238
|
+
required?: boolean | undefined;
|
|
239
|
+
serializeComplexValueFormat?: "object" | "flat" | undefined;
|
|
240
|
+
title?: string | undefined;
|
|
241
|
+
type?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
242
|
+
validator?: import("@slickgrid-universal/common").EditorValidator | undefined;
|
|
243
|
+
valueStep?: string | number | undefined;
|
|
244
|
+
params?: any;
|
|
245
|
+
};
|
|
246
|
+
alwaysRenderColumn?: boolean | undefined;
|
|
247
|
+
asyncPostRender?: ((domCellNode: any, row: number, dataContext: any, columnDef: Column<any>) => void) | undefined;
|
|
248
|
+
behavior?: string | undefined;
|
|
249
|
+
cannotTriggerInsert?: boolean | undefined;
|
|
250
|
+
cellMenu?: import("@slickgrid-universal/common").CellMenu | undefined;
|
|
251
|
+
columnGroup?: string | undefined;
|
|
252
|
+
columnGroupKey?: string | undefined;
|
|
253
|
+
colspan?: number | "*" | undefined;
|
|
254
|
+
cssClass?: string | undefined;
|
|
255
|
+
customTooltip?: import("@slickgrid-universal/common").CustomTooltipOption<any> | undefined;
|
|
256
|
+
dataKey?: string | undefined;
|
|
257
|
+
defaultSortAsc?: boolean | undefined;
|
|
258
|
+
denyPaste?: boolean | undefined;
|
|
259
|
+
disableTooltip?: boolean | undefined;
|
|
260
|
+
excludeFromColumnPicker?: boolean | undefined;
|
|
261
|
+
excludeFromExport?: boolean | undefined;
|
|
262
|
+
excludeFromGridMenu?: boolean | undefined;
|
|
263
|
+
excludeFromQuery?: boolean | undefined;
|
|
264
|
+
excludeFromHeaderMenu?: boolean | undefined;
|
|
265
|
+
exportColumnWidth?: number | undefined;
|
|
266
|
+
exportCustomFormatter?: import("@slickgrid-universal/common").Formatter<any> | undefined;
|
|
267
|
+
exportCustomGroupTotalsFormatter?: import("@slickgrid-universal/common").GroupTotalsFormatter | undefined;
|
|
268
|
+
exportWithFormatter?: boolean | undefined;
|
|
269
|
+
exportCsvForceToKeepAsString?: boolean | undefined;
|
|
270
|
+
field: string;
|
|
271
|
+
fields?: string[] | undefined;
|
|
272
|
+
filter?: import("@slickgrid-universal/common").ColumnFilter | undefined;
|
|
273
|
+
filterable?: boolean | undefined;
|
|
274
|
+
filterSearchType?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
275
|
+
focusable?: boolean | undefined;
|
|
276
|
+
formatter?: import("@slickgrid-universal/common").Formatter<any> | undefined;
|
|
277
|
+
grouping?: import("@slickgrid-universal/common").Grouping<any> | undefined;
|
|
278
|
+
groupTotalsFormatter?: import("@slickgrid-universal/common").GroupTotalsFormatter | undefined;
|
|
279
|
+
header?: import("@slickgrid-universal/common").HeaderButtonsOrMenu | undefined;
|
|
280
|
+
headerCssClass?: string | undefined;
|
|
281
|
+
id: string | number;
|
|
282
|
+
labelKey?: string | undefined;
|
|
283
|
+
maxWidth?: number | undefined;
|
|
284
|
+
minWidth?: number | undefined;
|
|
285
|
+
originalWidth?: number | undefined;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
nameCompositeEditor?: string | undefined;
|
|
288
|
+
nameKey?: string | undefined;
|
|
289
|
+
nameCompositeEditorKey?: string | undefined;
|
|
290
|
+
onBeforeEditCell?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
|
|
291
|
+
onCellChange?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
|
|
292
|
+
onCellClick?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
|
|
293
|
+
outputType?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
294
|
+
saveOutputType?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
295
|
+
params?: any;
|
|
296
|
+
previousWidth?: number | undefined;
|
|
297
|
+
queryField?: string | undefined;
|
|
298
|
+
queryFieldNameGetterFn?: ((dataContext: any) => string) | undefined;
|
|
299
|
+
queryFieldFilter?: string | undefined;
|
|
300
|
+
queryFieldSorter?: string | undefined;
|
|
301
|
+
resizable?: boolean | undefined;
|
|
302
|
+
resizeAlwaysRecalculateWidth?: boolean | undefined;
|
|
303
|
+
resizeCalcWidthRatio?: number | undefined;
|
|
304
|
+
resizeCharWidthInPx?: number | undefined;
|
|
305
|
+
resizeMaxWidthThreshold?: number | undefined;
|
|
306
|
+
resizeExtraWidthPadding?: number | undefined;
|
|
307
|
+
rerenderOnResize?: boolean | undefined;
|
|
308
|
+
sanitizeDataExport?: boolean | undefined;
|
|
309
|
+
selectable?: boolean | undefined;
|
|
310
|
+
sortable?: boolean | undefined;
|
|
311
|
+
sortComparer?: import("@slickgrid-universal/common").SortComparer | undefined;
|
|
312
|
+
toolTip?: string | undefined;
|
|
313
|
+
type?: "string" | "number" | "boolean" | "object" | "text" | "unknown" | "integer" | "float" | "date" | "dateIso" | "dateUtc" | "dateTime" | "dateTimeIso" | "dateTimeIsoAmPm" | "dateTimeIsoAM_PM" | "dateTimeShortIso" | "dateEuro" | "dateEuroShort" | "dateTimeShortEuro" | "dateTimeEuro" | "dateTimeEuroAmPm" | "dateTimeEuroAM_PM" | "dateTimeEuroShort" | "dateTimeEuroShortAmPm" | "dateTimeEuroShortAM_PM" | "dateUs" | "dateUsShort" | "dateTimeShortUs" | "dateTimeUs" | "dateTimeUsAmPm" | "dateTimeUsAM_PM" | "dateTimeUsShort" | "dateTimeUsShortAmPm" | "dateTimeUsShortAM_PM" | "password" | "readonly" | undefined;
|
|
314
|
+
unselectable?: boolean | undefined;
|
|
315
|
+
validator?: import("@slickgrid-universal/common").EditorValidator | undefined;
|
|
316
|
+
valueCouldBeUndefined?: boolean | undefined;
|
|
317
|
+
width?: number | undefined;
|
|
318
|
+
}[];
|
|
211
319
|
/** translate all columns (including hidden columns) */
|
|
212
|
-
|
|
320
|
+
protected translateColumnHeaderTitleKeys(): void;
|
|
213
321
|
/** translate all column groups (including hidden columns) */
|
|
214
|
-
|
|
322
|
+
protected translateColumnGroupKeys(): void;
|
|
215
323
|
/**
|
|
216
324
|
* Update the "internalColumnEditor.collection" property.
|
|
217
325
|
* Since this is called after the async call resolves, the pointer will not be the same as the "column" argument passed.
|
|
218
326
|
* Once we found the new pointer, we will reassign the "editor" and "collection" to the "internalColumnEditor" so it has newest collection
|
|
219
327
|
*/
|
|
220
|
-
|
|
328
|
+
protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
|
|
221
329
|
}
|