@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.
Files changed (37) hide show
  1. package/CHANGELOG.md +67 -3
  2. package/LICENSE +1 -1
  3. package/README.md +30 -30
  4. package/dist/commonjs/components/slick-vanilla-grid-bundle.d.ts +151 -43
  5. package/dist/commonjs/components/slick-vanilla-grid-bundle.js +27 -63
  6. package/dist/commonjs/components/slick-vanilla-grid-bundle.js.map +1 -1
  7. package/dist/commonjs/index.d.ts +16 -26
  8. package/dist/commonjs/index.js +1 -3
  9. package/dist/commonjs/index.js.map +1 -1
  10. package/dist/esm/components/slick-vanilla-grid-bundle.d.ts +151 -44
  11. package/dist/esm/components/slick-vanilla-grid-bundle.js +30 -68
  12. package/dist/esm/components/slick-vanilla-grid-bundle.js.map +1 -1
  13. package/dist/esm/index.d.ts +16 -27
  14. package/dist/esm/index.js +1 -2
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/interfaces/index.d.ts +0 -1
  17. package/dist/esm/interfaces/slickerGridInstance.interface.d.ts +0 -1
  18. package/dist/esm/services/index.d.ts +0 -1
  19. package/dist/esm/services/universalContainer.service.d.ts +0 -1
  20. package/package.json +10 -25
  21. package/dist/bundle/index.d.ts +0 -451
  22. package/dist/bundle/slickgrid-vanilla-bundle.js +0 -3
  23. package/dist/bundle/slickgrid-vanilla-bundle.js.LICENSE.txt +0 -189
  24. package/dist/bundle/slickgrid-vanilla-bundle.js.map +0 -1
  25. package/dist/commonjs/salesforce-global-grid-options.d.ts +0 -3
  26. package/dist/commonjs/salesforce-global-grid-options.js +0 -82
  27. package/dist/commonjs/salesforce-global-grid-options.js.map +0 -1
  28. package/dist/esm/components/slick-vanilla-grid-bundle.d.ts.map +0 -1
  29. package/dist/esm/index.d.ts.map +0 -1
  30. package/dist/esm/interfaces/index.d.ts.map +0 -1
  31. package/dist/esm/interfaces/slickerGridInstance.interface.d.ts.map +0 -1
  32. package/dist/esm/salesforce-global-grid-options.d.ts +0 -4
  33. package/dist/esm/salesforce-global-grid-options.d.ts.map +0 -1
  34. package/dist/esm/salesforce-global-grid-options.js +0 -79
  35. package/dist/esm/salesforce-global-grid-options.js.map +0 -1
  36. package/dist/esm/services/index.d.ts.map +0 -1
  37. package/dist/esm/services/universalContainer.service.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAA+I;AA2BtI,4FA3BA,oBAAW,OA2BA;AAAE,wFA3BA,gBAAO,OA2BA;AAAE,sFA3BA,cAAK,OA2BA;AAAsB,wFA3BpB,gBAAO,OA2BoB;AAAE,2FA3BpB,mBAAU,OA2BoB;AAAE,qGA3BpB,6BAAoB,OA2BoB;AAAE,8FA3BpB,sBAAa,OA2BoB;AAAE,0FA3BpB,kBAAS,OA2BoB;AA1B7H,0DAA8D;AAyBrD,+FAzBA,wBAAc,OAyBA;AAxBvB,sEAAwE;AAyBlC,mGAzB7B,kCAAkB,OAyB6B;AAxBxD,gGAAgG;AAyBvF,8GAzBA,0DAA6B,OAyBA;AAxBtC,0FAA0F;AAwBlD,2GAxB/B,oDAA0B,OAwB+B;AAvBlE,oFAAqF;AAuBjB,yGAvB3D,+CAAwB,OAuB2D;AAtB5F,sFAAgF;AAsBc,uGAtBrF,kDAAsB,OAsBqF;AApBpH,MAAM,OAAO,GAAG;IACd,UAAU,EAAE,kDAAsB;IAClC,WAAW,EAAX,oBAAW;IACX,cAAc,EAAd,wBAAc;IACd,OAAO,EAAP,gBAAO;IACP,KAAK,EAAL,cAAK;IACL,OAAO,EAAP,gBAAO;IACP,UAAU,EAAV,mBAAU;IACV,oBAAoB,EAApB,6BAAoB;IACpB,aAAa,EAAb,sBAAa;IACb,SAAS,EAAT,kBAAS;CACV,CAAC;AAUO,0BAAO;AARhB,6DAA6D;AAC7D,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IAChC,MAAc,CAAC,OAAO,GAAG,OAAO,CAAC;CACnC;AAMD,qDAAmC;AACnC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAA+I;AA0BtI,4FA1BA,oBAAW,OA0BA;AAAE,wFA1BA,gBAAO,OA0BA;AAAE,sFA1BA,cAAK,OA0BA;AAAsB,wFA1BpB,gBAAO,OA0BoB;AAAE,2FA1BpB,mBAAU,OA0BoB;AAAE,qGA1BpB,6BAAoB,OA0BoB;AAAE,8FA1BpB,sBAAa,OA0BoB;AAAE,0FA1BpB,kBAAS,OA0BoB;AAzB7H,0DAA8D;AAwBrD,+FAxBA,wBAAc,OAwBA;AAvBvB,sEAAwE;AAwBlC,mGAxB7B,kCAAkB,OAwB6B;AAvBxD,0FAA0F;AAwBjF,2GAxBA,oDAA0B,OAwBA;AAvBnC,oFAAqF;AAuBhD,yGAvB5B,+CAAwB,OAuB4B;AAtB7D,sFAAgF;AAsBjB,uGAtBtD,kDAAsB,OAsBsD;AApBrF,MAAM,OAAO,GAAG;IACd,UAAU,EAAE,kDAAsB;IAClC,WAAW,EAAX,oBAAW;IACX,cAAc,EAAd,wBAAc;IACd,OAAO,EAAP,gBAAO;IACP,KAAK,EAAL,cAAK;IACL,OAAO,EAAP,gBAAO;IACP,UAAU,EAAV,mBAAU;IACV,oBAAoB,EAApB,6BAAoB;IACpB,aAAa,EAAb,sBAAa;IACb,SAAS,EAAT,kBAAS;CACV,CAAC;AAUO,0BAAO;AARhB,6DAA6D;AAC7D,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IAChC,MAAc,CAAC,OAAO,GAAG,OAAO,CAAC;CACnC;AAMD,qDAAmC;AACnC,mDAAiC"}
@@ -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[]);
@@ -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, any> | undefined;
89
+ get extensions(): ExtensionList<any> | undefined;
92
90
  get registeredResources(): any[];
93
91
  /**
94
92
  * Slicker Grid Bundle constructor
@@ -164,59 +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
- private copyColumnWidthsReference;
168
- private displayEmptyDataWarning;
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
- private handleOnItemCountChanged;
168
+ protected handleOnItemCountChanged(currentPageRowItemCount: number, totalItemCount: number): void;
171
169
  /** Initialize the Pagination Service once */
172
- private initializePaginationService;
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
- private renderPagination;
177
+ protected renderPagination(showPagination?: boolean): void;
180
178
  /** Load the Editor Collection asynchronously and replace the "collection" property when Promise resolves */
181
- private loadEditorCollectionAsync;
179
+ protected loadEditorCollectionAsync(column: Column): void;
182
180
  /** Load any possible Columns Grid Presets */
183
- private loadColumnPresetsWhenDatasetInitialized;
181
+ protected loadColumnPresetsWhenDatasetInitialized(): void;
184
182
  /** Load any possible Filters Grid Presets */
185
- private loadFilterPresetsWhenDatasetInitialized;
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
- private loadLocalGridPagination;
189
+ protected loadLocalGridPagination(dataset?: any[]): void;
192
190
  /** Load any Row Selections into the DataView that were presets by the user */
193
- private loadRowSelectionPresetWhenExists;
191
+ protected loadRowSelectionPresetWhenExists(): void;
194
192
  /** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource) */
195
- private preRegisterResources;
196
- private registerResources;
193
+ protected preRegisterResources(): void;
194
+ protected registerResources(): void;
197
195
  /** Register the RxJS Resource in all necessary services which uses */
198
- private registerRxJsResource;
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
- private sortTreeDataset;
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
- private swapInternalEditorToSlickGridFactoryEditor;
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
- private translateColumnHeaderTitleKeys;
320
+ protected translateColumnHeaderTitleKeys(): void;
213
321
  /** translate all column groups (including hidden columns) */
214
- private translateColumnGroupKeys;
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
- private updateEditorCollection;
328
+ protected updateEditorCollection<T = any>(column: Column<T>, newCollection: T[]): void;
221
329
  }
222
- //# sourceMappingURL=slick-vanilla-grid-bundle.d.ts.map
@@ -9,22 +9,15 @@ import 'slickgrid/lib/jquery.mousewheel';
9
9
  import 'slickgrid/slick.core';
10
10
  import 'slickgrid/slick.grid';
11
11
  import 'slickgrid/slick.dataview';
12
- import 'slickgrid/slick.groupitemmetadataprovider';
13
- import { autoAddEditorFormatterToColumnsWithEditor, EventNamingStyle, GlobalGridOptions, GridStateType,
14
- // extensions
15
- AutoTooltipExtension, CheckboxSelectorExtension, CellExternalCopyManagerExtension, CellMenuExtension, ColumnPickerExtension, ContextMenuExtension, DraggableGroupingExtension, ExtensionUtility, GridMenuExtension, GroupItemMetaProviderExtension, HeaderMenuExtension, HeaderButtonExtension, RowDetailViewExtension, RowSelectionExtension,
12
+ import { autoAddEditorFormatterToColumnsWithEditor, EventNamingStyle, GlobalGridOptions, GridStateType, SlickGroupItemMetadataProvider,
16
13
  // services
17
- BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, RowMoveManagerExtension, SharedService, SortService, SlickgridConfig, TreeDataService,
14
+ BackendUtilityService, CollectionService, ExtensionService, ExtensionUtility, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SharedService, SortService, SlickgridConfig, TreeDataService,
18
15
  // utilities
19
- emptyElement, } from '@slickgrid-universal/common';
16
+ emptyElement, unsubscribeAll, } from '@slickgrid-universal/common';
20
17
  import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
21
- import { SlickCompositeEditorComponent } from '@slickgrid-universal/composite-editor-component';
22
18
  import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
23
19
  import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
24
20
  import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
25
- import { SlickCustomTooltip } from '@slickgrid-universal/custom-tooltip-plugin';
26
- import { TextExportService } from '@slickgrid-universal/text-export';
27
- import { SalesforceGlobalGridOptions } from '../salesforce-global-grid-options';
28
21
  import { UniversalContainerService } from '../services/universalContainer.service';
29
22
  export class SlickVanillaGridBundle {
30
23
  /**
@@ -81,32 +74,17 @@ export class SlickVanillaGridBundle {
81
74
  this.gridEventService = (_j = services === null || services === void 0 ? void 0 : services.gridEventService) !== null && _j !== void 0 ? _j : new GridEventService();
82
75
  this.sharedService = (_k = services === null || services === void 0 ? void 0 : services.sharedService) !== null && _k !== void 0 ? _k : new SharedService();
83
76
  this.collectionService = (_l = services === null || services === void 0 ? void 0 : services.collectionService) !== null && _l !== void 0 ? _l : new CollectionService(this.translaterService);
84
- this.extensionUtility = (_m = services === null || services === void 0 ? void 0 : services.extensionUtility) !== null && _m !== void 0 ? _m : new ExtensionUtility(this.sharedService, this.translaterService);
77
+ this.extensionUtility = (_m = services === null || services === void 0 ? void 0 : services.extensionUtility) !== null && _m !== void 0 ? _m : new ExtensionUtility(this.sharedService, this.backendUtilityService, this.translaterService);
85
78
  this.filterFactory = new FilterFactory(slickgridConfig, this.translaterService, this.collectionService);
86
79
  this.filterService = (_o = services === null || services === void 0 ? void 0 : services.filterService) !== null && _o !== void 0 ? _o : new FilterService(this.filterFactory, this._eventPubSubService, this.sharedService, this.backendUtilityService);
87
80
  this.resizerService = (_p = services === null || services === void 0 ? void 0 : services.resizerService) !== null && _p !== void 0 ? _p : new ResizerService(this._eventPubSubService);
88
81
  this.sortService = (_q = services === null || services === void 0 ? void 0 : services.sortService) !== null && _q !== void 0 ? _q : new SortService(this.sharedService, this._eventPubSubService, this.backendUtilityService);
89
82
  this.treeDataService = (_r = services === null || services === void 0 ? void 0 : services.treeDataService) !== null && _r !== void 0 ? _r : new TreeDataService(this._eventPubSubService, this.sharedService, this.sortService);
90
83
  this.paginationService = (_s = services === null || services === void 0 ? void 0 : services.paginationService) !== null && _s !== void 0 ? _s : new PaginationService(this._eventPubSubService, this.sharedService, this.backendUtilityService);
91
- // extensions
92
- const autoTooltipExtension = new AutoTooltipExtension(this.sharedService);
93
- const cellExternalCopyManagerExtension = new CellExternalCopyManagerExtension(this.extensionUtility, this.sharedService);
94
- const cellMenuExtension = new CellMenuExtension(this.extensionUtility, this.sharedService, this.translaterService);
95
- const contextMenuExtension = new ContextMenuExtension(this.extensionUtility, this._eventPubSubService, this.sharedService, this.treeDataService, this.translaterService);
96
- const columnPickerExtension = new ColumnPickerExtension(this.extensionUtility, this.sharedService);
97
- const checkboxExtension = new CheckboxSelectorExtension(this.sharedService);
98
- const draggableGroupingExtension = new DraggableGroupingExtension(this.extensionUtility, this._eventPubSubService, this.sharedService);
99
- const gridMenuExtension = new GridMenuExtension(this.extensionUtility, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.backendUtilityService, this.translaterService);
100
- const groupItemMetaProviderExtension = new GroupItemMetaProviderExtension(this.sharedService);
101
- const headerButtonExtension = new HeaderButtonExtension(this.extensionUtility, this.sharedService);
102
- const headerMenuExtension = new HeaderMenuExtension(this.extensionUtility, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.translaterService);
103
- const rowDetailViewExtension = new RowDetailViewExtension();
104
- const rowMoveManagerExtension = new RowMoveManagerExtension(this.sharedService);
105
- const rowSelectionExtension = new RowSelectionExtension(this.sharedService);
106
- this.extensionService = (_t = services === null || services === void 0 ? void 0 : services.extensionService) !== null && _t !== void 0 ? _t : new ExtensionService(autoTooltipExtension, cellExternalCopyManagerExtension, cellMenuExtension, checkboxExtension, columnPickerExtension, contextMenuExtension, draggableGroupingExtension, gridMenuExtension, groupItemMetaProviderExtension, headerButtonExtension, headerMenuExtension, rowDetailViewExtension, rowMoveManagerExtension, rowSelectionExtension, this.sharedService, this.translaterService);
84
+ this.extensionService = (_t = services === null || services === void 0 ? void 0 : services.extensionService) !== null && _t !== void 0 ? _t : new ExtensionService(this.extensionUtility, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.treeDataService, this.translaterService);
107
85
  this.gridStateService = (_u = services === null || services === void 0 ? void 0 : services.gridStateService) !== null && _u !== void 0 ? _u : new GridStateService(this.extensionService, this.filterService, this._eventPubSubService, this.sharedService, this.sortService, this.treeDataService);
108
86
  this.gridService = (_v = services === null || services === void 0 ? void 0 : services.gridService) !== null && _v !== void 0 ? _v : new GridService(this.gridStateService, this.filterService, this._eventPubSubService, this.paginationService, this.sharedService, this.sortService, this.treeDataService);
109
- this.groupingService = (_w = services === null || services === void 0 ? void 0 : services.groupingAndColspanService) !== null && _w !== void 0 ? _w : new GroupingAndColspanService(this.extensionUtility, this.extensionService, this._eventPubSubService);
87
+ this.groupingService = (_w = services === null || services === void 0 ? void 0 : services.groupingAndColspanService) !== null && _w !== void 0 ? _w : new GroupingAndColspanService(this.extensionUtility, this._eventPubSubService);
110
88
  if (hierarchicalDataset) {
111
89
  this.sharedService.hierarchicalDataset = (isDeepCopyDataOnPageLoadEnabled ? $.extend(true, [], hierarchicalDataset) : hierarchicalDataset) || [];
112
90
  }
@@ -199,6 +177,9 @@ export class SlickVanillaGridBundle {
199
177
  }
200
178
  this._isDatasetHierarchicalInitialized = true;
201
179
  }
180
+ set eventPubSubService(pubSub) {
181
+ this._eventPubSubService = pubSub;
182
+ }
202
183
  get gridOptions() {
203
184
  return this._gridOptions || {};
204
185
  }
@@ -260,7 +241,7 @@ export class SlickVanillaGridBundle {
260
241
  }
261
242
  /** Dispose of the Component */
262
243
  dispose(shouldEmptyDomElementContainer = false) {
263
- var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
244
+ var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
264
245
  (_a = this._eventPubSubService) === null || _a === void 0 ? void 0 : _a.publish('onBeforeGridDestroy', this.slickGrid);
265
246
  (_b = this._eventHandler) === null || _b === void 0 ? void 0 : _b.unsubscribeAll();
266
247
  (_c = this._eventPubSubService) === null || _c === void 0 ? void 0 : _c.publish('onAfterGridDestroyed', true);
@@ -289,6 +270,7 @@ export class SlickVanillaGridBundle {
289
270
  (_q = this.slickFooter) === null || _q === void 0 ? void 0 : _q.dispose();
290
271
  (_r = this.slickEmptyWarning) === null || _r === void 0 ? void 0 : _r.dispose();
291
272
  (_s = this.slickPagination) === null || _s === void 0 ? void 0 : _s.dispose();
273
+ unsubscribeAll(this.subscriptions);
292
274
  (_t = this._eventPubSubService) === null || _t === void 0 ? void 0 : _t.unsubscribeAll();
293
275
  (_u = this.dataView) === null || _u === void 0 ? void 0 : _u.setItems([]);
294
276
  if ((_v = this.dataView) === null || _v === void 0 ? void 0 : _v.destroy) {
@@ -298,6 +280,8 @@ export class SlickVanillaGridBundle {
298
280
  this.slickGrid = null;
299
281
  emptyElement(this._gridContainerElm);
300
282
  emptyElement(this._gridParentContainerElm);
283
+ (_y = this._gridContainerElm) === null || _y === void 0 ? void 0 : _y.remove();
284
+ (_z = this._gridParentContainerElm) === null || _z === void 0 ? void 0 : _z.remove();
301
285
  if (this.backendServiceApi) {
302
286
  for (const prop of Object.keys(this.backendServiceApi)) {
303
287
  this.backendServiceApi[prop] = null;
@@ -316,6 +300,9 @@ export class SlickVanillaGridBundle {
316
300
  if (shouldEmptyDomElementContainer) {
317
301
  this.emptyGridContainerElm();
318
302
  }
303
+ (_0 = this._eventPubSubService) === null || _0 === void 0 ? void 0 : _0.dispose();
304
+ this._slickerGridInstances = null;
305
+ delete window.Slicker;
319
306
  }
320
307
  initialization(gridContainerElm, eventHandler) {
321
308
  var _a, _b, _c, _d, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
@@ -337,7 +324,7 @@ export class SlickVanillaGridBundle {
337
324
  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;
338
325
  let dataViewOptions = { inlineFilters: dataviewInlineFilters };
339
326
  if (this.gridOptions.draggableGrouping || this.gridOptions.enableGrouping) {
340
- this.groupItemMetadataProvider = new Slick.Data.GroupItemMetadataProvider();
327
+ this.groupItemMetadataProvider = new SlickGroupItemMetadataProvider();
341
328
  this.sharedService.groupItemMetadataProvider = this.groupItemMetadataProvider;
342
329
  dataViewOptions = { ...dataViewOptions, groupItemMetadataProvider: this.groupItemMetadataProvider };
343
330
  }
@@ -367,6 +354,7 @@ export class SlickVanillaGridBundle {
367
354
  this.slickGrid = new Slick.Grid(gridContainerElm, this.dataView, this._columnDefinitions, this._gridOptions);
368
355
  this.sharedService.dataView = this.dataView;
369
356
  this.sharedService.slickGrid = this.slickGrid;
357
+ this.sharedService.gridContainerElement = this._gridContainerElm;
370
358
  this.extensionService.bindDifferentExtensions();
371
359
  this.bindDifferentHooks(this.slickGrid, this._gridOptions, this.dataView);
372
360
  this._slickgridInitialized = true;
@@ -474,8 +462,7 @@ export class SlickVanillaGridBundle {
474
462
  this._isGridInitialized = true;
475
463
  }
476
464
  mergeGridOptions(gridOptions) {
477
- const extraOptions = (gridOptions.useSalesforceDefaultGridOptions || (this._gridOptions && this._gridOptions.useSalesforceDefaultGridOptions)) ? SalesforceGlobalGridOptions : {};
478
- const options = $.extend(true, {}, GlobalGridOptions, extraOptions, gridOptions);
465
+ const options = $.extend(true, {}, GlobalGridOptions, gridOptions);
479
466
  // also make sure to show the header row if user have enabled filtering
480
467
  if (options.enableFiltering && !options.showHeaderRow) {
481
468
  options.showHeaderRow = options.enableFiltering;
@@ -527,20 +514,16 @@ export class SlickVanillaGridBundle {
527
514
  if (gridOptions.enableTranslate && ((_a = this.translaterService) === null || _a === void 0 ? void 0 : _a.addPubSubMessaging)) {
528
515
  this.translaterService.addPubSubMessaging(this._eventPubSubService);
529
516
  }
530
- // translate some of them on first load, then on each language change
517
+ // translate them all on first load, then on each language change
531
518
  if (gridOptions.enableTranslate) {
519
+ this.extensionService.translateAllExtensions();
532
520
  this.translateColumnHeaderTitleKeys();
533
521
  this.translateColumnGroupKeys();
534
522
  }
535
523
  // on locale change, we have to manually translate the Headers, GridMenu
536
524
  this.subscriptions.push(this._eventPubSubService.subscribe('onLanguageChange', () => {
537
525
  if (gridOptions.enableTranslate) {
538
- this.extensionService.translateCellMenu();
539
- this.extensionService.translateColumnHeaders();
540
- this.extensionService.translateColumnPicker();
541
- this.extensionService.translateContextMenu();
542
- this.extensionService.translateGridMenu();
543
- this.extensionService.translateHeaderMenu();
526
+ this.extensionService.translateAllExtensions();
544
527
  this.translateColumnHeaderTitleKeys();
545
528
  this.translateColumnGroupKeys();
546
529
  if (gridOptions.createPreHeaderPanel && !gridOptions.enableDraggableGrouping) {
@@ -559,8 +542,7 @@ export class SlickVanillaGridBundle {
559
542
  // expose all Slick Grid Events through dispatch
560
543
  for (const prop in grid) {
561
544
  if (grid.hasOwnProperty(prop) && prop.startsWith('on')) {
562
- const gridEventHandler = grid[prop];
563
- this._eventHandler.subscribe(gridEventHandler, (event, args) => {
545
+ this._eventHandler.subscribe(grid[prop], (event, args) => {
564
546
  var _a, _b;
565
547
  const gridEventName = this._eventPubSubService.getEventNameByNamingConvention(prop, (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.defaultSlickgridEventPrefix) !== null && _b !== void 0 ? _b : '');
566
548
  return this._eventPubSubService.dispatchCustomEvent(gridEventName, { eventData: event, args });
@@ -570,8 +552,7 @@ export class SlickVanillaGridBundle {
570
552
  // expose all Slick DataView Events through dispatch
571
553
  for (const prop in dataView) {
572
554
  if (dataView.hasOwnProperty(prop) && prop.startsWith('on')) {
573
- const dataViewEventHandler = dataView[prop];
574
- this._eventHandler.subscribe(dataViewEventHandler, (event, args) => {
555
+ this._eventHandler.subscribe(dataView[prop], (event, args) => {
575
556
  var _a, _b;
576
557
  const dataViewEventName = this._eventPubSubService.getEventNameByNamingConvention(prop, (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.defaultSlickgridEventPrefix) !== null && _b !== void 0 ? _b : '');
577
558
  return this._eventPubSubService.dispatchCustomEvent(dataViewEventName, { eventData: event, args });
@@ -601,14 +582,12 @@ export class SlickVanillaGridBundle {
601
582
  }
602
583
  }
603
584
  // When data changes in the DataView, we need to refresh the metrics and/or display a warning if the dataset is empty
604
- const onRowCountChangedHandler = dataView.onRowCountChanged;
605
- this._eventHandler.subscribe(onRowCountChangedHandler, () => {
585
+ this._eventHandler.subscribe(dataView.onRowCountChanged, () => {
606
586
  var _a, _b, _c;
607
587
  grid.invalidate();
608
588
  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);
609
589
  });
610
- const onSetItemsCalledHandler = dataView.onSetItemsCalled;
611
- this._eventHandler.subscribe(onSetItemsCalledHandler, (_e, args) => {
590
+ this._eventHandler.subscribe(dataView.onSetItemsCalled, (_e, args) => {
612
591
  var _a, _b;
613
592
  this.handleOnItemCountChanged(((_a = this.dataView) === null || _a === void 0 ? void 0 : _a.getFilteredItemCount()) || 0, args.itemCount);
614
593
  // when user has resize by content enabled, we'll force a full width calculation since we change our entire dataset
@@ -619,8 +598,7 @@ export class SlickVanillaGridBundle {
619
598
  // when filtering data with local dataset, we need to update each row else it will not always show correctly in the UI
620
599
  // also don't use "invalidateRows" since it destroys the entire row and as bad user experience when updating a row
621
600
  if (gridOptions && gridOptions.enableFiltering && !gridOptions.enableRowDetailView) {
622
- const onRowsChangedHandler = dataView.onRowsChanged;
623
- this._eventHandler.subscribe(onRowsChangedHandler, (_e, args) => {
601
+ this._eventHandler.subscribe(dataView.onRowsChanged, (_e, args) => {
624
602
  if ((args === null || args === void 0 ? void 0 : args.rows) && Array.isArray(args.rows)) {
625
603
  args.rows.forEach((row) => grid.updateRow(row));
626
604
  grid.render();
@@ -628,8 +606,7 @@ export class SlickVanillaGridBundle {
628
606
  });
629
607
  }
630
608
  // when column are reordered, we need to update the visibleColumn array
631
- const onColumnsReorderedHandler = grid.onColumnsReordered;
632
- this._eventHandler.subscribe(onColumnsReorderedHandler, (_e, args) => {
609
+ this._eventHandler.subscribe(grid.onColumnsReordered, (_e, args) => {
633
610
  this.sharedService.hasColumnsReordered = true;
634
611
  this.sharedService.visibleColumns = args.impactedColumns;
635
612
  });
@@ -876,7 +853,7 @@ export class SlickVanillaGridBundle {
876
853
  return paginationOptions;
877
854
  }
878
855
  // --
879
- // private functions
856
+ // protected functions
880
857
  // ------------------
881
858
  /**
882
859
  * Loop through all column definitions and copy the original optional `width` properties optionally provided by the user.
@@ -917,7 +894,7 @@ export class SlickVanillaGridBundle {
917
894
  };
918
895
  this.paginationService.totalItems = this.totalItems;
919
896
  this.paginationService.init(this.slickGrid, paginationOptions, this.backendServiceApi);
920
- this.subscriptions.push(this._eventPubSubService.subscribe('onPaginationChanged', (paginationChanges) => this.paginationChanged(paginationChanges)), this._eventPubSubService.subscribe('onPaginationVisibilityChanged', (visibility) => {
897
+ this.subscriptions.push(this._eventPubSubService.subscribe('onPaginationChanged', paginationChanges => this.paginationChanged(paginationChanges)), this._eventPubSubService.subscribe('onPaginationVisibilityChanged', visibility => {
921
898
  var _a, _b, _c;
922
899
  this.showPagination = (_a = visibility === null || visibility === void 0 ? void 0 : visibility.visible) !== null && _a !== void 0 ? _a : false;
923
900
  if ((_b = this.gridOptions) === null || _b === void 0 ? void 0 : _b.backendServiceApi) {
@@ -1082,13 +1059,6 @@ export class SlickVanillaGridBundle {
1082
1059
  }
1083
1060
  }
1084
1061
  registerResources() {
1085
- // when using Salesforce, we want the Export to CSV always enabled without registering it
1086
- if (this.gridOptions.enableTextExport && this.gridOptions.useSalesforceDefaultGridOptions) {
1087
- this._registeredResources.push(new TextExportService());
1088
- }
1089
- if (this.gridOptions.useSalesforceDefaultGridOptions) {
1090
- this._registeredResources.push(new SlickCustomTooltip());
1091
- }
1092
1062
  // at this point, we consider all the registered services as external services, anything else registered afterward aren't external
1093
1063
  if (Array.isArray(this._registeredResources)) {
1094
1064
  this.sharedService.externalRegisteredResources = this._registeredResources;
@@ -1110,14 +1080,6 @@ export class SlickVanillaGridBundle {
1110
1080
  // also initialize (render) the empty warning component
1111
1081
  this.slickEmptyWarning = new SlickEmptyWarningComponent();
1112
1082
  this._registeredResources.push(this.slickEmptyWarning);
1113
- // also initialize (render) the pagination component when using the salesforce default options
1114
- // however before adding a new instance, just make sure there isn't one that might have been loaded by calling "registerExternalResources"
1115
- if (this.gridOptions.enableCompositeEditor && this.gridOptions.useSalesforceDefaultGridOptions) {
1116
- if (!this._registeredResources.some((resource => resource instanceof SlickCompositeEditorComponent))) {
1117
- this.slickCompositeEditor = new SlickCompositeEditorComponent();
1118
- this._registeredResources.push(this.slickCompositeEditor);
1119
- }
1120
- }
1121
1083
  // bind & initialize all Components/Services that were tagged as enabled
1122
1084
  // register all services by executing their init method and providing them with the Grid object
1123
1085
  if (Array.isArray(this._registeredResources)) {