@slickgrid-universal/vanilla-bundle 0.19.2 → 1.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +34 -3
  2. package/README.md +30 -30
  3. package/dist/commonjs/components/slick-vanilla-grid-bundle.d.ts +159 -43
  4. package/dist/commonjs/components/slick-vanilla-grid-bundle.js +16 -61
  5. package/dist/commonjs/components/slick-vanilla-grid-bundle.js.map +1 -1
  6. package/dist/commonjs/index.d.ts +16 -26
  7. package/dist/commonjs/index.js +1 -3
  8. package/dist/commonjs/index.js.map +1 -1
  9. package/dist/esm/components/slick-vanilla-grid-bundle.d.ts +159 -44
  10. package/dist/esm/components/slick-vanilla-grid-bundle.js +18 -65
  11. package/dist/esm/components/slick-vanilla-grid-bundle.js.map +1 -1
  12. package/dist/esm/index.d.ts +16 -27
  13. package/dist/esm/index.js +1 -2
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/interfaces/index.d.ts +0 -1
  16. package/dist/esm/interfaces/slickerGridInstance.interface.d.ts +0 -1
  17. package/dist/esm/services/index.d.ts +0 -1
  18. package/dist/esm/services/universalContainer.service.d.ts +0 -1
  19. package/package.json +5 -20
  20. package/dist/bundle/index.d.ts +0 -451
  21. package/dist/bundle/slickgrid-vanilla-bundle.js +0 -3
  22. package/dist/bundle/slickgrid-vanilla-bundle.js.LICENSE.txt +0 -189
  23. package/dist/bundle/slickgrid-vanilla-bundle.js.map +0 -1
  24. package/dist/commonjs/salesforce-global-grid-options.d.ts +0 -3
  25. package/dist/commonjs/salesforce-global-grid-options.js +0 -82
  26. package/dist/commonjs/salesforce-global-grid-options.js.map +0 -1
  27. package/dist/esm/components/slick-vanilla-grid-bundle.d.ts.map +0 -1
  28. package/dist/esm/index.d.ts.map +0 -1
  29. package/dist/esm/interfaces/index.d.ts.map +0 -1
  30. package/dist/esm/interfaces/slickerGridInstance.interface.d.ts.map +0 -1
  31. package/dist/esm/salesforce-global-grid-options.d.ts +0 -4
  32. package/dist/esm/salesforce-global-grid-options.d.ts.map +0 -1
  33. package/dist/esm/salesforce-global-grid-options.js +0 -79
  34. package/dist/esm/salesforce-global-grid-options.js.map +0 -1
  35. package/dist/esm/services/index.d.ts.map +0 -1
  36. package/dist/esm/services/universalContainer.service.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,18 +3,49 @@
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
- ## [0.19.2](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.1...v0.19.2) (2021-11-19)
6
+ # [1.1.0](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.2...v1.1.0) (2021-12-11)
7
7
 
8
8
 
9
9
  ### Bug Fixes
10
10
 
11
- * **resizer:** use autosize width when total width smaller than viewport ([555fb0c](https://github.com/ghiscoding/slickgrid-universal/commit/555fb0cb793c111de837ffe6e9f212fcbf5ed701))
12
- * **translation:** add new UNFREEZE_COLUMNS to fix translation ([22ed231](https://github.com/ghiscoding/slickgrid-universal/commit/22ed2313c45587f2ebdb279c9e47df881c6f83d6))
11
+ * **context:** strip hidden special chars on context menu Copy command ([f94ca83](https://github.com/ghiscoding/slickgrid-universal/commit/f94ca834b1fdee94e4e44bdc3d245956a4437de6))
12
+ * **locales:** add missing text & remove global config texts fix Locales ([655a872](https://github.com/ghiscoding/slickgrid-universal/commit/655a872d7160ab53530f8e2fdc575817af782b5d))
13
13
 
14
14
 
15
+ ### Features
15
16
 
17
+ * **build:** create `salesforce-vanilla-bundle` standalone package ([214d8e7](https://github.com/ghiscoding/slickgrid-universal/commit/214d8e77646d3fdac278cf18227c96f346c94522))
18
+ * **controls:** convert and add ColumnPicker into Slickgrid-Universal ([1f937b9](https://github.com/ghiscoding/slickgrid-universal/commit/1f937b9a3abe43cf1a2bb1f52ba625c34431e328))
19
+ * **controls:** move external Grid Menu into Slickgrid-Universal ([40adff4](https://github.com/ghiscoding/slickgrid-universal/commit/40adff49c2a74769823dfbed3d32b239608e2a59))
20
+ * **plugins:** move Checkbox and Row Selection plugins to universal ([06f0ab1](https://github.com/ghiscoding/slickgrid-universal/commit/06f0ab155a2f0ee06681d3e94780397c5e4f9f67))
21
+ * **plugins:** move external Cell Menu into Slickgrid-Universal ([6f34c10](https://github.com/ghiscoding/slickgrid-universal/commit/6f34c10b9a8522ae430e13c9519083451bf71ebf))
22
+ * **plugins:** move external cell related plugins to universal ([11e15d8](https://github.com/ghiscoding/slickgrid-universal/commit/11e15d88360b7b30ca7ab94624a7928201f15945))
23
+ * **plugins:** move external Context Menu into Slickgrid-Universal ([2170bb4](https://github.com/ghiscoding/slickgrid-universal/commit/2170bb4e3f02ef6f45ad13a1c59730047942651e))
24
+ * **plugins:** move external Draggable Grouping into Slickgrid-Universal ([8e6eb48](https://github.com/ghiscoding/slickgrid-universal/commit/8e6eb4881741313b7d582d2e3d17ffef582ecb35))
25
+ * **plugins:** move external GroupItemMetataProvider into Universal ([8f18c7d](https://github.com/ghiscoding/slickgrid-universal/commit/8f18c7d3d616e4cd72eb5478d544ec241c53154f))
26
+ * **plugins:** move external Header Button into Slickgrid-Universal ([69711ad](https://github.com/ghiscoding/slickgrid-universal/commit/69711aded5aa835091789800214f82cd7c72753e))
27
+ * **plugins:** move external Header Menu into Slickgrid-Universal ([aeba480](https://github.com/ghiscoding/slickgrid-universal/commit/aeba4801fdb5cba3976984f5c591be8c1ad97e4b))
28
+ * **plugins:** move Row Detail View plugin to universal ([fb327a6](https://github.com/ghiscoding/slickgrid-universal/commit/fb327a6abe85b86683572cde2a550de43a01f9e1))
29
+ * **plugins:** move Row Move Manager plugin to universal ([b19b2ed](https://github.com/ghiscoding/slickgrid-universal/commit/b19b2ed2da669662fbbdcf9fdefac243132909b2))
30
+ * **plugins:** replace AutoTooltips Extension by plugin ([80df14d](https://github.com/ghiscoding/slickgrid-universal/commit/80df14da9b66e9e1b8314e5adb1b96890cc7baa1))
16
31
 
17
32
 
33
+
34
+
35
+
36
+
37
+ ## [0.19.2](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.1...v0.19.2) (2021-11-19)
38
+
39
+
40
+ ### Bug Fixes
41
+
42
+ * **resizer:** use autosize width when total width smaller than viewport ([555fb0c](https://github.com/ghiscoding/slickgrid-universal/commit/555fb0cb793c111de837ffe6e9f212fcbf5ed701))
43
+ * **translation:** add new UNFREEZE_COLUMNS to fix translation ([22ed231](https://github.com/ghiscoding/slickgrid-universal/commit/22ed2313c45587f2ebdb279c9e47df881c6f83d6))
44
+
45
+
46
+
47
+
48
+
18
49
 
19
50
  ## [0.19.1](https://github.com/ghiscoding/slickgrid-universal/compare/v0.19.0...v0.19.1) (2021-11-15)
20
51
 
package/README.md CHANGED
@@ -1,30 +1,30 @@
1
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2
- [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
3
- [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
4
- [![npm](https://img.shields.io/npm/v/@slickgrid-universal/vanilla-bundle.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
5
- [![npm](https://img.shields.io/npm/dy/@slickgrid-universal/vanilla-bundle?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
6
-
7
- [![Actions Status](https://github.com/ghiscoding/slickgrid-universal/workflows/CI%20Build/badge.svg)](https://github.com/ghiscoding/slickgrid-universal/actions)
8
- [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
9
- [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
10
- [![codecov](https://codecov.io/gh/ghiscoding/slickgrid-universal/branch/master/graph/badge.svg)](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, that is to make all the features usable in 1 bundle so that it could then be used by other Apps/Projects, for example we use this bundle in our SalesForce (with Lighning Web Component) App and it requires plain ES6 JavaScript which this bundle also produce (for that there's a `dist-grid-bundle-zip` folder which will zip the ES6 `dist` folder which we then import in SalesForce).
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 in our SalesForce implementation (since it requires plain ES6) and is also used by the standalone `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)
1
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2
+ [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
3
+ [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
4
+ [![npm](https://img.shields.io/npm/v/@slickgrid-universal/vanilla-bundle.svg?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
5
+ [![npm](https://img.shields.io/npm/dy/@slickgrid-universal/vanilla-bundle?color=forest)](https://www.npmjs.com/package/@slickgrid-universal/vanilla-bundle)
6
+
7
+ [![Actions Status](https://github.com/ghiscoding/slickgrid-universal/workflows/CI%20Build/badge.svg)](https://github.com/ghiscoding/slickgrid-universal/actions)
8
+ [![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
9
+ [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
10
+ [![codecov](https://codecov.io/gh/ghiscoding/slickgrid-universal/branch/master/graph/badge.svg)](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, that is to make all the features usable in 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/slick.groupitemmetadataprovider';
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
- private _currentDatasetLength;
22
- private _eventPubSubService;
23
- private _columnDefinitions?;
24
- private _gridOptions?;
25
- private _gridContainerElm;
26
- private _gridParentContainerElm;
27
- private _hideHeaderRowAfterPageLoad;
28
- private _isDatasetInitialized;
29
- private _isDatasetHierarchicalInitialized;
30
- private _isGridInitialized;
31
- private _isLocalGrid;
32
- private _isPaginationInitialized;
33
- private _eventHandler;
34
- private _extensions;
35
- private _paginationOptions;
36
- private _registeredResources;
37
- private _slickgridInitialized;
38
- private _slickerGridInstances;
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[]);
@@ -88,7 +85,7 @@ export declare class SlickVanillaGridBundle {
88
85
  set isDatasetInitialized(isInitialized: boolean);
89
86
  get isGridInitialized(): boolean;
90
87
  get instances(): SlickerGridInstance | undefined;
91
- get extensions(): ExtensionList<any, any> | undefined;
88
+ get extensions(): ExtensionList<any> | undefined;
92
89
  get registeredResources(): any[];
93
90
  /**
94
91
  * Slicker Grid Bundle constructor
@@ -164,58 +161,177 @@ export declare class SlickVanillaGridBundle {
164
161
  * Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
165
162
  * We will use this when doing a resize by cell content, if user provided a `width` it won't override it.
166
163
  */
167
- private copyColumnWidthsReference;
168
- private displayEmptyDataWarning;
164
+ protected copyColumnWidthsReference(columnDefinitions: Column[]): void;
165
+ protected displayEmptyDataWarning(showWarning?: boolean): void;
169
166
  /** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
170
- private handleOnItemCountChanged;
167
+ protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
171
168
  /** Initialize the Pagination Service once */
172
- private initializePaginationService;
169
+ protected initializePaginationService(paginationOptions: Pagination): void;
173
170
  /**
174
171
  * Render (or dispose) the Pagination Component, user can optionally provide False (to not show it) which will in term dispose of the Pagination,
175
172
  * 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
173
  * @param {Boolean} showPagination - show (new render) or not (dispose) the Pagination
177
174
  * @param {Boolean} shouldDisposePaginationService - when disposing the Pagination, do we also want to dispose of the Pagination Service? (defaults to True)
178
175
  */
179
- private renderPagination;
176
+ protected renderPagination(showPagination?: boolean): void;
180
177
  /** Load the Editor Collection asynchronously and replace the "collection" property when Promise resolves */
181
- private loadEditorCollectionAsync;
178
+ protected loadEditorCollectionAsync(column: Column): void;
182
179
  /** Load any possible Columns Grid Presets */
183
- private loadColumnPresetsWhenDatasetInitialized;
180
+ protected loadColumnPresetsWhenDatasetInitialized(): void;
184
181
  /** Load any possible Filters Grid Presets */
185
- private loadFilterPresetsWhenDatasetInitialized;
182
+ protected loadFilterPresetsWhenDatasetInitialized(): void;
186
183
  /**
187
184
  * local grid, check if we need to show the Pagination
188
185
  * if so then also check if there's any presets and finally initialize the PaginationService
189
186
  * 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
187
  */
191
- private loadLocalGridPagination;
188
+ protected loadLocalGridPagination(dataset?: any[]): void;
192
189
  /** Load any Row Selections into the DataView that were presets by the user */
193
- private loadRowSelectionPresetWhenExists;
190
+ protected loadRowSelectionPresetWhenExists(): void;
194
191
  /** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
195
- private preRegisterResources;
196
- private registerResources;
192
+ protected preRegisterResources(): void;
193
+ protected registerResources(): void;
197
194
  /** Register the RxJS Resource in all necessary services which uses */
198
- private registerRxJsResource;
195
+ protected registerRxJsResource(resource: RxJsFacade): void;
199
196
  /**
200
197
  * Takes a flat dataset with parent/child relationship, sort it (via its tree structure) and return the sorted flat array
201
198
  * @returns {Array<Object>} sort flat parent/child dataset
202
199
  */
203
- private sortTreeDataset;
200
+ protected sortTreeDataset<T>(flatDatasetInput: T[], forceGridRefresh?: boolean): T[];
204
201
  /**
205
202
  * For convenience to the user, we provide the property "editor" as an Slickgrid-Universal editor complex object
206
203
  * however "editor" is used internally by SlickGrid for it's own Editor Factory
207
204
  * so in our lib we will swap "editor" and copy it into a new property called "internalColumnEditor"
208
205
  * then take back "editor.model" and make it the new "editor" so that SlickGrid Editor Factory still works
209
206
  */
210
- private swapInternalEditorToSlickGridFactoryEditor;
207
+ protected swapInternalEditorToSlickGridFactoryEditor(columnDefinitions: Column[]): {
208
+ editor: any;
209
+ internalColumnEditor: {
210
+ alwaysSaveOnEnterKey?: boolean | undefined;
211
+ ariaLabel?: string | undefined;
212
+ callbacks?: any;
213
+ collectionAsync?: Promise<any> | Observable<any> | undefined;
214
+ collection?: any[] | undefined;
215
+ collectionFilterBy?: import("@slickgrid-universal/common").CollectionFilterBy | import("@slickgrid-universal/common").CollectionFilterBy[] | undefined;
216
+ collectionOptions?: import("@slickgrid-universal/common").CollectionOption | undefined;
217
+ collectionOverride?: ((collectionInput: any[], args: import("@slickgrid-universal/common").CollectionOverrideArgs) => any[]) | undefined;
218
+ collectionSortBy?: import("@slickgrid-universal/common").CollectionSortBy | import("@slickgrid-universal/common").CollectionSortBy[] | undefined;
219
+ complexObjectPath?: string | undefined;
220
+ compositeEditorFormOrder?: number | undefined;
221
+ customStructure?: import("@slickgrid-universal/common").CollectionCustomStructure | undefined;
222
+ decimal?: number | undefined;
223
+ disabled?: boolean | undefined;
224
+ editorOptions?: any;
225
+ enableRenderHtml?: boolean | undefined;
226
+ enableTranslateLabel?: boolean | undefined;
227
+ errorMessage?: string | undefined;
228
+ massUpdate?: boolean | undefined;
229
+ maxLength?: number | undefined;
230
+ maxValue?: string | number | undefined;
231
+ minLength?: number | undefined;
232
+ minValue?: string | number | undefined;
233
+ model?: any;
234
+ placeholder?: string | undefined;
235
+ operatorConditionalType?: "inclusive" | "exclusive" | undefined;
236
+ queryField?: string | undefined;
237
+ required?: boolean | undefined;
238
+ serializeComplexValueFormat?: "object" | "flat" | undefined;
239
+ title?: string | undefined;
240
+ 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;
241
+ validator?: import("@slickgrid-universal/common").EditorValidator | undefined;
242
+ valueStep?: string | number | undefined;
243
+ params?: any;
244
+ };
245
+ alwaysRenderColumn?: boolean | undefined;
246
+ asyncPostRender?: ((domCellNode: any, row: number, dataContext: any, columnDef: Column<any>) => void) | undefined;
247
+ behavior?: string | undefined;
248
+ cannotTriggerInsert?: boolean | undefined;
249
+ cellMenu?: import("@slickgrid-universal/common").CellMenu | undefined;
250
+ columnGroup?: string | undefined;
251
+ columnGroupKey?: string | undefined;
252
+ colspan?: number | "*" | undefined;
253
+ cssClass?: string | undefined;
254
+ customTooltip?: import("@slickgrid-universal/common").CustomTooltipOption<any> | undefined;
255
+ dataKey?: string | undefined;
256
+ defaultSortAsc?: boolean | undefined;
257
+ denyPaste?: boolean | undefined;
258
+ disableTooltip?: boolean | undefined;
259
+ excludeFromColumnPicker?: boolean | undefined;
260
+ excludeFromExport?: boolean | undefined;
261
+ excludeFromGridMenu?: boolean | undefined;
262
+ excludeFromQuery?: boolean | undefined;
263
+ excludeFromHeaderMenu?: boolean | undefined;
264
+ exportColumnWidth?: number | undefined;
265
+ exportCustomFormatter?: import("@slickgrid-universal/common").Formatter<any> | undefined;
266
+ exportCustomGroupTotalsFormatter?: import("@slickgrid-universal/common").GroupTotalsFormatter | undefined;
267
+ exportWithFormatter?: boolean | undefined;
268
+ exportCsvForceToKeepAsString?: boolean | undefined;
269
+ field: string;
270
+ fields?: string[] | undefined;
271
+ filter?: import("@slickgrid-universal/common").ColumnFilter | undefined;
272
+ filterable?: boolean | undefined;
273
+ 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;
274
+ focusable?: boolean | undefined;
275
+ formatter?: import("@slickgrid-universal/common").Formatter<any> | undefined;
276
+ grouping?: import("@slickgrid-universal/common").Grouping<any> | undefined;
277
+ groupTotalsFormatter?: import("@slickgrid-universal/common").GroupTotalsFormatter | undefined;
278
+ header?: import("@slickgrid-universal/common").HeaderButtonsOrMenu | undefined;
279
+ headerCssClass?: string | undefined;
280
+ id: string | number;
281
+ labelKey?: string | undefined;
282
+ maxWidth?: number | undefined;
283
+ minWidth?: number | undefined;
284
+ originalWidth?: number | undefined;
285
+ name?: string | undefined;
286
+ nameCompositeEditor?: string | undefined;
287
+ nameKey?: string | undefined;
288
+ nameCompositeEditorKey?: string | undefined;
289
+ onBeforeEditCell?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
290
+ onCellChange?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
291
+ onCellClick?: ((e: import("@slickgrid-universal/common").SlickEventData, args: import("@slickgrid-universal/common").OnEventArgs) => void) | undefined;
292
+ 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;
293
+ /**
294
+ * Slicker Grid Bundle constructor
295
+ * @param {Object} gridParentContainerElm - div HTML DOM element container
296
+ * @param {Array<Column>} columnDefs - Column Definitions
297
+ * @param {Object} options - Grid Options
298
+ * @param {Array<Object>} dataset - Dataset
299
+ * @param {Array<Object>} hierarchicalDataset - Hierarchical Dataset
300
+ * @param {Object} services - Typically only used for Unit Testing when we want to pass Mocked/Stub Services
301
+ */
302
+ 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;
303
+ params?: any;
304
+ previousWidth?: number | undefined;
305
+ queryField?: string | undefined;
306
+ queryFieldNameGetterFn?: ((dataContext: any) => string) | undefined;
307
+ queryFieldFilter?: string | undefined;
308
+ queryFieldSorter?: string | undefined;
309
+ resizable?: boolean | undefined;
310
+ resizeAlwaysRecalculateWidth?: boolean | undefined;
311
+ resizeCalcWidthRatio?: number | undefined;
312
+ resizeCharWidthInPx?: number | undefined;
313
+ resizeMaxWidthThreshold?: number | undefined;
314
+ resizeExtraWidthPadding?: number | undefined;
315
+ rerenderOnResize?: boolean | undefined;
316
+ sanitizeDataExport?: boolean | undefined;
317
+ selectable?: boolean | undefined;
318
+ sortable?: boolean | undefined;
319
+ sortComparer?: import("@slickgrid-universal/common").SortComparer | undefined;
320
+ toolTip?: string | undefined;
321
+ 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;
322
+ unselectable?: boolean | undefined;
323
+ validator?: import("@slickgrid-universal/common").EditorValidator | undefined;
324
+ valueCouldBeUndefined?: boolean | undefined;
325
+ width?: number | undefined;
326
+ }[];
211
327
  /** translate all columns (including hidden columns) */
212
- private translateColumnHeaderTitleKeys;
328
+ protected translateColumnHeaderTitleKeys(): void;
213
329
  /** translate all column groups (including hidden columns) */
214
- private translateColumnGroupKeys;
330
+ protected translateColumnGroupKeys(): void;
215
331
  /**
216
332
  * Update the "internalColumnEditor.collection" property.
217
333
  * Since this is called after the async call resolves, the pointer will not be the same as the "column" argument passed.
218
334
  * Once we found the new pointer, we will reassign the "editor" and "collection" to the "internalColumnEditor" so it has newest collection
219
335
  */
220
- private updateEditorCollection;
336
+ protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
221
337
  }
@@ -12,16 +12,11 @@ require("slickgrid/lib/jquery.mousewheel");
12
12
  require("slickgrid/slick.core");
13
13
  require("slickgrid/slick.grid");
14
14
  require("slickgrid/slick.dataview");
15
- require("slickgrid/slick.groupitemmetadataprovider");
16
15
  const common_1 = require("@slickgrid-universal/common");
17
16
  const event_pub_sub_1 = require("@slickgrid-universal/event-pub-sub");
18
- const composite_editor_component_1 = require("@slickgrid-universal/composite-editor-component");
19
17
  const empty_warning_component_1 = require("@slickgrid-universal/empty-warning-component");
20
18
  const custom_footer_component_1 = require("@slickgrid-universal/custom-footer-component");
21
19
  const pagination_component_1 = require("@slickgrid-universal/pagination-component");
22
- const custom_tooltip_plugin_1 = require("@slickgrid-universal/custom-tooltip-plugin");
23
- const text_export_1 = require("@slickgrid-universal/text-export");
24
- const salesforce_global_grid_options_1 = require("../salesforce-global-grid-options");
25
20
  const universalContainer_service_1 = require("../services/universalContainer.service");
26
21
  class SlickVanillaGridBundle {
27
22
  /**
@@ -78,32 +73,17 @@ class SlickVanillaGridBundle {
78
73
  this.gridEventService = (_j = services === null || services === void 0 ? void 0 : services.gridEventService) !== null && _j !== void 0 ? _j : new common_1.GridEventService();
79
74
  this.sharedService = (_k = services === null || services === void 0 ? void 0 : services.sharedService) !== null && _k !== void 0 ? _k : new common_1.SharedService();
80
75
  this.collectionService = (_l = services === null || services === void 0 ? void 0 : services.collectionService) !== null && _l !== void 0 ? _l : new common_1.CollectionService(this.translaterService);
81
- this.extensionUtility = (_m = services === null || services === void 0 ? void 0 : services.extensionUtility) !== null && _m !== void 0 ? _m : new common_1.ExtensionUtility(this.sharedService, this.translaterService);
76
+ this.extensionUtility = (_m = services === null || services === void 0 ? void 0 : services.extensionUtility) !== null && _m !== void 0 ? _m : new common_1.ExtensionUtility(this.sharedService, this.backendUtilityService, this.translaterService);
82
77
  this.filterFactory = new common_1.FilterFactory(slickgridConfig, this.translaterService, this.collectionService);
83
78
  this.filterService = (_o = services === null || services === void 0 ? void 0 : services.filterService) !== null && _o !== void 0 ? _o : new common_1.FilterService(this.filterFactory, this._eventPubSubService, this.sharedService, this.backendUtilityService);
84
79
  this.resizerService = (_p = services === null || services === void 0 ? void 0 : services.resizerService) !== null && _p !== void 0 ? _p : new common_1.ResizerService(this._eventPubSubService);
85
80
  this.sortService = (_q = services === null || services === void 0 ? void 0 : services.sortService) !== null && _q !== void 0 ? _q : new common_1.SortService(this.sharedService, this._eventPubSubService, this.backendUtilityService);
86
81
  this.treeDataService = (_r = services === null || services === void 0 ? void 0 : services.treeDataService) !== null && _r !== void 0 ? _r : new common_1.TreeDataService(this._eventPubSubService, this.sharedService, this.sortService);
87
82
  this.paginationService = (_s = services === null || services === void 0 ? void 0 : services.paginationService) !== null && _s !== void 0 ? _s : new common_1.PaginationService(this._eventPubSubService, this.sharedService, this.backendUtilityService);
88
- // extensions
89
- const autoTooltipExtension = new common_1.AutoTooltipExtension(this.sharedService);
90
- const cellExternalCopyManagerExtension = new common_1.CellExternalCopyManagerExtension(this.extensionUtility, this.sharedService);
91
- const cellMenuExtension = new common_1.CellMenuExtension(this.extensionUtility, this.sharedService, this.translaterService);
92
- const contextMenuExtension = new common_1.ContextMenuExtension(this.extensionUtility, this._eventPubSubService, this.sharedService, this.treeDataService, this.translaterService);
93
- const columnPickerExtension = new common_1.ColumnPickerExtension(this.extensionUtility, this.sharedService);
94
- const checkboxExtension = new common_1.CheckboxSelectorExtension(this.sharedService);
95
- const draggableGroupingExtension = new common_1.DraggableGroupingExtension(this.extensionUtility, this._eventPubSubService, this.sharedService);
96
- const gridMenuExtension = new common_1.GridMenuExtension(this.extensionUtility, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.backendUtilityService, this.translaterService);
97
- const groupItemMetaProviderExtension = new common_1.GroupItemMetaProviderExtension(this.sharedService);
98
- const headerButtonExtension = new common_1.HeaderButtonExtension(this.extensionUtility, this.sharedService);
99
- const headerMenuExtension = new common_1.HeaderMenuExtension(this.extensionUtility, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.translaterService);
100
- const rowDetailViewExtension = new common_1.RowDetailViewExtension();
101
- const rowMoveManagerExtension = new common_1.RowMoveManagerExtension(this.sharedService);
102
- const rowSelectionExtension = new common_1.RowSelectionExtension(this.sharedService);
103
- this.extensionService = (_t = services === null || services === void 0 ? void 0 : services.extensionService) !== null && _t !== void 0 ? _t : new common_1.ExtensionService(autoTooltipExtension, cellExternalCopyManagerExtension, cellMenuExtension, checkboxExtension, columnPickerExtension, contextMenuExtension, draggableGroupingExtension, gridMenuExtension, groupItemMetaProviderExtension, headerButtonExtension, headerMenuExtension, rowDetailViewExtension, rowMoveManagerExtension, rowSelectionExtension, this.sharedService, this.translaterService);
83
+ this.extensionService = (_t = services === null || services === void 0 ? void 0 : services.extensionService) !== null && _t !== void 0 ? _t : new common_1.ExtensionService(this.extensionUtility, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.treeDataService, this.translaterService);
104
84
  this.gridStateService = (_u = services === null || services === void 0 ? void 0 : services.gridStateService) !== null && _u !== void 0 ? _u : new common_1.GridStateService(this.extensionService, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.treeDataService);
105
85
  this.gridService = (_v = services === null || services === void 0 ? void 0 : services.gridService) !== null && _v !== void 0 ? _v : new common_1.GridService(this.gridStateService, this.filterService, this._eventPubSubService, this.paginationService, this.sharedService, this.sortService, this.treeDataService);
106
- this.groupingService = (_w = services === null || services === void 0 ? void 0 : services.groupingAndColspanService) !== null && _w !== void 0 ? _w : new common_1.GroupingAndColspanService(this.extensionUtility, this.extensionService, this._eventPubSubService);
86
+ this.groupingService = (_w = services === null || services === void 0 ? void 0 : services.groupingAndColspanService) !== null && _w !== void 0 ? _w : new common_1.GroupingAndColspanService(this.extensionUtility, this._eventPubSubService);
107
87
  if (hierarchicalDataset) {
108
88
  this.sharedService.hierarchicalDataset = (isDeepCopyDataOnPageLoadEnabled ? $.extend(true, [], hierarchicalDataset) : hierarchicalDataset) || [];
109
89
  }
@@ -334,7 +314,7 @@ class SlickVanillaGridBundle {
334
314
  const dataviewInlineFilters = (_h = (_g = (_f = this._gridOptions) === null || _f === void 0 ? void 0 : _f.dataView) === null || _g === void 0 ? void 0 : _g.inlineFilters) !== null && _h !== void 0 ? _h : false;
335
315
  let dataViewOptions = { inlineFilters: dataviewInlineFilters };
336
316
  if (this.gridOptions.draggableGrouping || this.gridOptions.enableGrouping) {
337
- this.groupItemMetadataProvider = new Slick.Data.GroupItemMetadataProvider();
317
+ this.groupItemMetadataProvider = new common_1.SlickGroupItemMetadataProvider();
338
318
  this.sharedService.groupItemMetadataProvider = this.groupItemMetadataProvider;
339
319
  dataViewOptions = { ...dataViewOptions, groupItemMetadataProvider: this.groupItemMetadataProvider };
340
320
  }
@@ -364,6 +344,7 @@ class SlickVanillaGridBundle {
364
344
  this.slickGrid = new Slick.Grid(gridContainerElm, this.dataView, this._columnDefinitions, this._gridOptions);
365
345
  this.sharedService.dataView = this.dataView;
366
346
  this.sharedService.slickGrid = this.slickGrid;
347
+ this.sharedService.gridContainerElement = this._gridContainerElm;
367
348
  this.extensionService.bindDifferentExtensions();
368
349
  this.bindDifferentHooks(this.slickGrid, this._gridOptions, this.dataView);
369
350
  this._slickgridInitialized = true;
@@ -471,8 +452,7 @@ class SlickVanillaGridBundle {
471
452
  this._isGridInitialized = true;
472
453
  }
473
454
  mergeGridOptions(gridOptions) {
474
- const extraOptions = (gridOptions.useSalesforceDefaultGridOptions || (this._gridOptions && this._gridOptions.useSalesforceDefaultGridOptions)) ? salesforce_global_grid_options_1.SalesforceGlobalGridOptions : {};
475
- const options = $.extend(true, {}, common_1.GlobalGridOptions, extraOptions, gridOptions);
455
+ const options = $.extend(true, {}, common_1.GlobalGridOptions, gridOptions);
476
456
  // also make sure to show the header row if user have enabled filtering
477
457
  if (options.enableFiltering && !options.showHeaderRow) {
478
458
  options.showHeaderRow = options.enableFiltering;
@@ -524,20 +504,16 @@ class SlickVanillaGridBundle {
524
504
  if (gridOptions.enableTranslate && ((_a = this.translaterService) === null || _a === void 0 ? void 0 : _a.addPubSubMessaging)) {
525
505
  this.translaterService.addPubSubMessaging(this._eventPubSubService);
526
506
  }
527
- // translate some of them on first load, then on each language change
507
+ // translate them all on first load, then on each language change
528
508
  if (gridOptions.enableTranslate) {
509
+ this.extensionService.translateAllExtensions();
529
510
  this.translateColumnHeaderTitleKeys();
530
511
  this.translateColumnGroupKeys();
531
512
  }
532
513
  // on locale change, we have to manually translate the Headers, GridMenu
533
514
  this.subscriptions.push(this._eventPubSubService.subscribe('onLanguageChange', () => {
534
515
  if (gridOptions.enableTranslate) {
535
- this.extensionService.translateCellMenu();
536
- this.extensionService.translateColumnHeaders();
537
- this.extensionService.translateColumnPicker();
538
- this.extensionService.translateContextMenu();
539
- this.extensionService.translateGridMenu();
540
- this.extensionService.translateHeaderMenu();
516
+ this.extensionService.translateAllExtensions();
541
517
  this.translateColumnHeaderTitleKeys();
542
518
  this.translateColumnGroupKeys();
543
519
  if (gridOptions.createPreHeaderPanel && !gridOptions.enableDraggableGrouping) {
@@ -556,8 +532,7 @@ class SlickVanillaGridBundle {
556
532
  // expose all Slick Grid Events through dispatch
557
533
  for (const prop in grid) {
558
534
  if (grid.hasOwnProperty(prop) && prop.startsWith('on')) {
559
- const gridEventHandler = grid[prop];
560
- this._eventHandler.subscribe(gridEventHandler, (event, args) => {
535
+ this._eventHandler.subscribe(grid[prop], (event, args) => {
561
536
  var _a, _b;
562
537
  const gridEventName = this._eventPubSubService.getEventNameByNamingConvention(prop, (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.defaultSlickgridEventPrefix) !== null && _b !== void 0 ? _b : '');
563
538
  return this._eventPubSubService.dispatchCustomEvent(gridEventName, { eventData: event, args });
@@ -567,8 +542,7 @@ class SlickVanillaGridBundle {
567
542
  // expose all Slick DataView Events through dispatch
568
543
  for (const prop in dataView) {
569
544
  if (dataView.hasOwnProperty(prop) && prop.startsWith('on')) {
570
- const dataViewEventHandler = dataView[prop];
571
- this._eventHandler.subscribe(dataViewEventHandler, (event, args) => {
545
+ this._eventHandler.subscribe(dataView[prop], (event, args) => {
572
546
  var _a, _b;
573
547
  const dataViewEventName = this._eventPubSubService.getEventNameByNamingConvention(prop, (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.defaultSlickgridEventPrefix) !== null && _b !== void 0 ? _b : '');
574
548
  return this._eventPubSubService.dispatchCustomEvent(dataViewEventName, { eventData: event, args });
@@ -598,14 +572,12 @@ class SlickVanillaGridBundle {
598
572
  }
599
573
  }
600
574
  // When data changes in the DataView, we need to refresh the metrics and/or display a warning if the dataset is empty
601
- const onRowCountChangedHandler = dataView.onRowCountChanged;
602
- this._eventHandler.subscribe(onRowCountChangedHandler, () => {
575
+ this._eventHandler.subscribe(dataView.onRowCountChanged, () => {
603
576
  var _a, _b, _c;
604
577
  grid.invalidate();
605
578
  this.handleOnItemCountChanged(((_a = this.dataView) === null || _a === void 0 ? void 0 : _a.getFilteredItemCount()) || 0, (_c = (_b = this.dataView) === null || _b === void 0 ? void 0 : _b.getItemCount()) !== null && _c !== void 0 ? _c : 0);
606
579
  });
607
- const onSetItemsCalledHandler = dataView.onSetItemsCalled;
608
- this._eventHandler.subscribe(onSetItemsCalledHandler, (_e, args) => {
580
+ this._eventHandler.subscribe(dataView.onSetItemsCalled, (_e, args) => {
609
581
  var _a, _b;
610
582
  this.handleOnItemCountChanged(((_a = this.dataView) === null || _a === void 0 ? void 0 : _a.getFilteredItemCount()) || 0, args.itemCount);
611
583
  // when user has resize by content enabled, we'll force a full width calculation since we change our entire dataset
@@ -616,8 +588,7 @@ class SlickVanillaGridBundle {
616
588
  // when filtering data with local dataset, we need to update each row else it will not always show correctly in the UI
617
589
  // also don't use "invalidateRows" since it destroys the entire row and as bad user experience when updating a row
618
590
  if (gridOptions && gridOptions.enableFiltering && !gridOptions.enableRowDetailView) {
619
- const onRowsChangedHandler = dataView.onRowsChanged;
620
- this._eventHandler.subscribe(onRowsChangedHandler, (_e, args) => {
591
+ this._eventHandler.subscribe(dataView.onRowsChanged, (_e, args) => {
621
592
  if ((args === null || args === void 0 ? void 0 : args.rows) && Array.isArray(args.rows)) {
622
593
  args.rows.forEach((row) => grid.updateRow(row));
623
594
  grid.render();
@@ -625,8 +596,7 @@ class SlickVanillaGridBundle {
625
596
  });
626
597
  }
627
598
  // when column are reordered, we need to update the visibleColumn array
628
- const onColumnsReorderedHandler = grid.onColumnsReordered;
629
- this._eventHandler.subscribe(onColumnsReorderedHandler, (_e, args) => {
599
+ this._eventHandler.subscribe(grid.onColumnsReordered, (_e, args) => {
630
600
  this.sharedService.hasColumnsReordered = true;
631
601
  this.sharedService.visibleColumns = args.impactedColumns;
632
602
  });
@@ -873,7 +843,7 @@ class SlickVanillaGridBundle {
873
843
  return paginationOptions;
874
844
  }
875
845
  // --
876
- // private functions
846
+ // protected functions
877
847
  // ------------------
878
848
  /**
879
849
  * Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
@@ -1079,13 +1049,6 @@ class SlickVanillaGridBundle {
1079
1049
  }
1080
1050
  }
1081
1051
  registerResources() {
1082
- // when using Salesforce, we want the Export to CSV always enabled without registering it
1083
- if (this.gridOptions.enableTextExport && this.gridOptions.useSalesforceDefaultGridOptions) {
1084
- this._registeredResources.push(new text_export_1.TextExportService());
1085
- }
1086
- if (this.gridOptions.useSalesforceDefaultGridOptions) {
1087
- this._registeredResources.push(new custom_tooltip_plugin_1.SlickCustomTooltip());
1088
- }
1089
1052
  // at this point, we consider all the registered services as external services, anything else registered afterward aren't external
1090
1053
  if (Array.isArray(this._registeredResources)) {
1091
1054
  this.sharedService.externalRegisteredResources = this._registeredResources;
@@ -1107,14 +1070,6 @@ class SlickVanillaGridBundle {
1107
1070
  // also initialize (render) the empty warning component
1108
1071
  this.slickEmptyWarning = new empty_warning_component_1.SlickEmptyWarningComponent();
1109
1072
  this._registeredResources.push(this.slickEmptyWarning);
1110
- // also initialize (render) the pagination component when using the salesforce default options
1111
- // however before adding a new instance, just make sure there isn't one that might have been loaded by calling "registerExternalResources"
1112
- if (this.gridOptions.enableCompositeEditor && this.gridOptions.useSalesforceDefaultGridOptions) {
1113
- if (!this._registeredResources.some((resource => resource instanceof composite_editor_component_1.SlickCompositeEditorComponent))) {
1114
- this.slickCompositeEditor = new composite_editor_component_1.SlickCompositeEditorComponent();
1115
- this._registeredResources.push(this.slickCompositeEditor);
1116
- }
1117
- }
1118
1073
  // bind & initialize all Components/Services that were tagged as enabled
1119
1074
  // register all services by executing their init method and providing them with the Grid object
1120
1075
  if (Array.isArray(this._registeredResources)) {