angular-slickgrid 8.4.0 → 8.5.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 (21) hide show
  1. package/README.md +1 -1
  2. package/app/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +8 -3
  3. package/app/modules/angular-slickgrid/constants.d.ts +1 -1
  4. package/app/modules/angular-slickgrid/extensions/slickRowDetailView.d.ts +5 -5
  5. package/app/modules/angular-slickgrid/index.d.ts +1 -1
  6. package/app/modules/angular-slickgrid/models/angularComponentOutput.interface.d.ts +1 -1
  7. package/app/modules/angular-slickgrid/models/rowDetailView.interface.d.ts +1 -1
  8. package/esm2022/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +88 -34
  9. package/esm2022/app/modules/angular-slickgrid/constants.mjs +1 -1
  10. package/esm2022/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +4 -4
  11. package/esm2022/app/modules/angular-slickgrid/global-grid-options.mjs +1 -1
  12. package/esm2022/app/modules/angular-slickgrid/index.mjs +1 -1
  13. package/esm2022/app/modules/angular-slickgrid/models/angularComponentOutput.interface.mjs +1 -1
  14. package/esm2022/app/modules/angular-slickgrid/models/rowDetailView.interface.mjs +1 -1
  15. package/esm2022/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +4 -4
  16. package/esm2022/app/modules/angular-slickgrid/services/angularUtil.service.mjs +3 -3
  17. package/esm2022/app/modules/angular-slickgrid/services/container.service.mjs +3 -3
  18. package/esm2022/app/modules/angular-slickgrid/services/translater.service.mjs +3 -3
  19. package/fesm2022/angular-slickgrid.mjs +103 -49
  20. package/fesm2022/angular-slickgrid.mjs.map +1 -1
  21. package/package.json +9 -9
package/README.md CHANGED
@@ -39,7 +39,7 @@ npm install angular-slickgrid
39
39
  - [Bootstrap 5 (single Locale)](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-locales) / [examples repo](https://github.com/ghiscoding/angular-slickgrid-demos/tree/master/bootstrap5-demo-with-locales) - Code Sample with a single Locale (without `ngx-translate`)
40
40
 
41
41
  #### Working Demo
42
- For a complete set of working demos (over 30 examples), we strongly suggest you clone [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository (instructions are provided in the demo repo). The repo provides multiple demos and they are updated for every new project release, so it is updated frequently and is also used as the GitHub live demo page for both the [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) and [Bootstrap 5 demo (single Locale)](https://ghiscoding.github.io/angular-slickgrid-demos).
42
+ For a complete set of working demos (40+ examples), we strongly suggest you clone [Angular-Slickgrid Demos](https://github.com/ghiscoding/angular-slickgrid-demos) repository (instructions are provided in the demo repo). The repo provides multiple demos and they are updated for every new project release, so it is updated frequently and is also used as the GitHub live demo page for both the [Bootstrap 5 demo](https://ghiscoding.github.io/Angular-Slickgrid) and [Bootstrap 5 demo (single Locale)](https://ghiscoding.github.io/angular-slickgrid-demos).
43
43
 
44
44
  ```sh
45
45
  git clone https://github.com/ghiscoding/angular-slickgrid-demos
@@ -1,6 +1,6 @@
1
1
  import { AfterViewInit, ApplicationRef, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { BackendServiceApi, Column, EventSubscription, ExternalResource, Locale, Metrics, Pagination, RxJsFacade, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
3
+ import { BackendService, BackendServiceApi, Column, EventSubscription, ExternalResource, Locale, Metrics, Pagination, RxJsFacade, ServicePagination, SlickDataView, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
4
4
  import { ExtensionUtility, SlickGroupItemMetadataProvider, BackendUtilityService, CollectionService, ExtensionService, FilterFactory, FilterService, GridEventService, GridService, GridStateService, GroupingAndColspanService, PaginationService, ResizerService, SharedService, SortService, TreeDataService } from '@slickgrid-universal/common';
5
5
  import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
6
6
  import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component';
@@ -37,6 +37,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
37
37
  protected _isLocalGrid: boolean;
38
38
  protected _paginationOptions: Pagination | undefined;
39
39
  protected _registeredResources: ExternalResource[];
40
+ protected _scrollEndCalled: boolean;
40
41
  dataView: SlickDataView;
41
42
  slickGrid: SlickGrid;
42
43
  groupingDefinition: any;
@@ -85,6 +86,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
85
86
  get datasetHierarchical(): any[] | undefined;
86
87
  set datasetHierarchical(newHierarchicalDataset: any[] | undefined);
87
88
  get elementRef(): ElementRef;
89
+ get backendService(): BackendService | undefined;
88
90
  get eventHandler(): SlickEventHandler;
89
91
  get gridContainerElement(): HTMLElement | null;
90
92
  /** GETTER to know if dataset was initialized or not */
@@ -103,7 +105,8 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
103
105
  emptyGridContainerElm(): void;
104
106
  /**
105
107
  * Define our internal Post Process callback, it will execute internally after we get back result from the Process backend call
106
- * For now, this is GraphQL Service ONLY feature and it will basically refresh the Dataset & Pagination without having the user to create his own PostProcess every time
108
+ * Currently ONLY available with the GraphQL Backend Service.
109
+ * The behavior is to refresh the Dataset & Pagination without requiring the user to create his own PostProcess every time
107
110
  */
108
111
  createBackendApiInternalPostProcessCallback(gridOptions: GridOption): void;
109
112
  initialization(eventHandler: SlickEventHandler): void;
@@ -122,7 +125,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
122
125
  * Check if there's any Pagination Presets defined in the Grid Options,
123
126
  * if there are then load them in the paginationOptions object
124
127
  */
125
- setPaginationOptionsWhenPresetDefined(gridOptions: GridOption, paginationOptions: Pagination): Pagination;
128
+ protected setPaginationOptionsWhenPresetDefined(gridOptions: GridOption, paginationOptions: Pagination): Pagination;
126
129
  setDarkMode(dark?: boolean): void;
127
130
  /**
128
131
  * Dynamically change or update the column definitions list.
@@ -143,6 +146,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
143
146
  protected displayEmptyDataWarning(showWarning?: boolean): void;
144
147
  protected bindDifferentHooks(grid: SlickGrid, gridOptions: GridOption, dataView: SlickDataView): void;
145
148
  protected bindBackendCallbackFunctions(gridOptions: GridOption): void;
149
+ protected addBackendInfiniteScrollCallback(): void;
146
150
  protected bindResizeHook(grid: SlickGrid, options: GridOption): void;
147
151
  protected executeAfterDataviewCreated(_grid: SlickGrid, gridOptions: GridOption): void;
148
152
  /** When data changes in the DataView, we'll refresh the metrics and/or display a warning if the dataset is empty */
@@ -163,6 +167,7 @@ export declare class AngularSlickgridComponent<TData = any> implements AfterView
163
167
  protected loadLocalGridPagination(dataset?: any[]): void;
164
168
  /** Load any Row Selections into the DataView that were presets by the user */
165
169
  protected loadRowSelectionPresetWhenExists(): void;
170
+ hasBackendInfiniteScroll(gridOptions?: GridOption): boolean;
166
171
  protected mergeGridOptions(gridOptions: GridOption): GridOption;
167
172
  /** Add a register a new external resource, user could also optional dispose all previous resources before pushing any new resources to the resources array list. */
168
173
  registerExternalResources(resources: ExternalResource[], disposePreviousResources?: boolean): void;
@@ -1,4 +1,4 @@
1
- import { Locale } from '@slickgrid-universal/common';
1
+ import type { Locale } from '@slickgrid-universal/common';
2
2
  export declare class Constants {
3
3
  static readonly locales: Locale;
4
4
  static readonly treeDataProperties: {
@@ -1,11 +1,11 @@
1
- import { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
1
+ import type { ApplicationRef, ComponentRef, Type, ViewContainerRef } from '@angular/core';
2
2
  import type { EventSubscription, OnBeforeRowDetailToggleArgs, OnRowBackToViewportRangeArgs, RxJsFacade, SlickEventData, SlickEventHandler, SlickGrid } from '@slickgrid-universal/common';
3
3
  import { SlickRowSelectionModel } from '@slickgrid-universal/common';
4
- import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
4
+ import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
5
5
  import { SlickRowDetailView as UniversalSlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin';
6
- import { Observable, Subject } from 'rxjs';
7
- import { GridOption, RowDetailView } from '../models/index';
8
- import { AngularUtilService } from '../services/angularUtil.service';
6
+ import { Observable, type Subject } from 'rxjs';
7
+ import type { GridOption, RowDetailView } from '../models/index';
8
+ import type { AngularUtilService } from '../services/angularUtil.service';
9
9
  export interface CreatedView {
10
10
  id: string | number;
11
11
  dataContext: any;
@@ -1,5 +1,5 @@
1
1
  export * from '@slickgrid-universal/common';
2
- export { AngularComponentOutput, AngularGridInstance, GridOption, RowDetailView } from './models/index';
2
+ export type { AngularComponentOutput, AngularGridInstance, GridOption, RowDetailView } from './models/index';
3
3
  export { AngularUtilService, unsubscribeAllObservables } from './services/index';
4
4
  export { SlickRowDetailView } from './extensions/index';
5
5
  export { SlickgridConfig } from './slickgrid-config';
@@ -1,4 +1,4 @@
1
- import { ComponentRef } from '@angular/core';
1
+ import type { ComponentRef } from '@angular/core';
2
2
  export interface AngularComponentOutput {
3
3
  componentRef: ComponentRef<any>;
4
4
  domElement: HTMLElement;
@@ -1,4 +1,4 @@
1
- import { Type } from '@angular/core';
1
+ import type { Type } from '@angular/core';
2
2
  import type { RowDetailView as UniversalRowDetailView } from '@slickgrid-universal/common';
3
3
  export interface RowDetailView extends UniversalRowDetailView {
4
4
  /**