angular-slickgrid 7.0.3 → 7.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.
- package/README.md +3 -0
- package/app/modules/angular-slickgrid/components/angular-slickgrid.component.d.ts +4 -2
- package/esm2022/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +16 -6
- package/fesm2022/angular-slickgrid.mjs +15 -5
- package/fesm2022/angular-slickgrid.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { unsubscribeAll, SlickRowSelectionModel, castObservableToPromise, addToArrayWhenNotExists, Filters, OperatorType, EventNamingStyle, FileType, DelimiterType, SlickEventHandler, SlickgridConfig as SlickgridConfig$1, BackendUtilityService, GridEventService, SharedService, CollectionService, ExtensionUtility, FilterFactory, FilterService, ResizerService, SortService, TreeDataService, PaginationService, ExtensionService, GridStateService, GridService, GroupingAndColspanService, emptyElement, SlickGroupItemMetadataProvider, SlickDataView, autoAddEditorFormatterToColumnsWithEditor, SlickGrid, GridStateType,
|
|
1
|
+
import { unsubscribeAll, SlickRowSelectionModel, castObservableToPromise, addToArrayWhenNotExists, Filters, OperatorType, EventNamingStyle, FileType, DelimiterType, SlickEventHandler, SlickgridConfig as SlickgridConfig$1, BackendUtilityService, GridEventService, SharedService, CollectionService, ExtensionUtility, FilterFactory, FilterService, ResizerService, SortService, TreeDataService, PaginationService, ExtensionService, GridStateService, GridService, GroupingAndColspanService, emptyElement, SlickGroupItemMetadataProvider, SlickDataView, autoAddEditorFormatterToColumnsWithEditor, SlickGrid, GridStateType, ExtensionName } from '@slickgrid-universal/common';
|
|
2
2
|
export * from '@slickgrid-universal/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, Optional, EventEmitter, ApplicationRef, Component, Inject, Input, Output, NgModule } from '@angular/core';
|
|
4
|
+
import { Injectable, Optional, EventEmitter, ApplicationRef, Component, Inject, Input, Output, ContentChild, NgModule } from '@angular/core';
|
|
5
5
|
import * as i1 from '@ngx-translate/core';
|
|
6
6
|
import { TranslateModule } from '@ngx-translate/core';
|
|
7
7
|
import { SlickRowDetailView as SlickRowDetailView$1 } from '@slickgrid-universal/row-detail-view-plugin';
|
|
@@ -12,7 +12,9 @@ import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-c
|
|
|
12
12
|
import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component';
|
|
13
13
|
import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component';
|
|
14
14
|
import { RxJsResource } from '@slickgrid-universal/rxjs-observable';
|
|
15
|
+
import { extend } from '@slickgrid-universal/utils';
|
|
15
16
|
import { dequal } from 'dequal/lite';
|
|
17
|
+
import * as i5 from '@angular/common';
|
|
16
18
|
import { CommonModule } from '@angular/common';
|
|
17
19
|
|
|
18
20
|
class AngularUtilService {
|
|
@@ -987,6 +989,8 @@ class AngularSlickgridComponent {
|
|
|
987
989
|
get registeredResources() {
|
|
988
990
|
return this._registeredResources;
|
|
989
991
|
}
|
|
992
|
+
slickgridHeader;
|
|
993
|
+
slickgridFooter;
|
|
990
994
|
constructor(angularUtilService, appRef, cd, containerService, elm, translate, translaterService, forRootConfig, externalServices) {
|
|
991
995
|
this.angularUtilService = angularUtilService;
|
|
992
996
|
this.appRef = appRef;
|
|
@@ -1801,7 +1805,7 @@ class AngularSlickgridComponent {
|
|
|
1801
1805
|
// if we have a backendServiceApi and the enablePagination is undefined, we'll assume that we do want to see it, else get that defined value
|
|
1802
1806
|
gridOptions.enablePagination = ((gridOptions.backendServiceApi && gridOptions.enablePagination === undefined) ? true : gridOptions.enablePagination) || false;
|
|
1803
1807
|
// use extend to deep merge & copy to avoid immutable properties being changed in GlobalGridOptions after a route change
|
|
1804
|
-
const options =
|
|
1808
|
+
const options = extend(true, {}, GlobalGridOptions, this.forRootConfig, gridOptions);
|
|
1805
1809
|
// using copy extend to do a deep clone has an unwanted side on objects and pageSizes but ES6 spread has other worst side effects
|
|
1806
1810
|
// so we will just overwrite the pageSizes when needed, this is the only one causing issues so far.
|
|
1807
1811
|
// On a deep extend, Object and Array are extended, but object wrappers on primitive types such as String, Boolean, and Number are not.
|
|
@@ -2003,7 +2007,7 @@ class AngularSlickgridComponent {
|
|
|
2003
2007
|
AngularUtilService,
|
|
2004
2008
|
ApplicationRef,
|
|
2005
2009
|
TranslaterService,
|
|
2006
|
-
], ngImport: i0, template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\n </div>\n</div>" });
|
|
2010
|
+
], queries: [{ propertyName: "slickgridHeader", first: true, predicate: ["slickgridHeader"], descendants: true, static: true }, { propertyName: "slickgridFooter", first: true, predicate: ["slickgridFooter"], descendants: true, static: true }], ngImport: i0, template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\n <ng-container *ngTemplateOutlet=\"slickgridHeader\"></ng-container>\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\n </div>\n <ng-container *ngTemplateOutlet=\"slickgridFooter\"></ng-container>\n</div>", dependencies: [{ kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
2007
2011
|
}
|
|
2008
2012
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: AngularSlickgridComponent, decorators: [{
|
|
2009
2013
|
type: Component,
|
|
@@ -2012,7 +2016,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
2012
2016
|
AngularUtilService,
|
|
2013
2017
|
ApplicationRef,
|
|
2014
2018
|
TranslaterService,
|
|
2015
|
-
], template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\n </div>\n</div>" }]
|
|
2019
|
+
], template: "<div id=\"slickGridContainer-{{gridId}}\" class=\"gridPane\">\n <ng-container *ngTemplateOutlet=\"slickgridHeader\"></ng-container>\n <div attr.id='{{gridId}}' class=\"slickgrid-container\" style=\"width: 100%\">\n </div>\n <ng-container *ngTemplateOutlet=\"slickgridFooter\"></ng-container>\n</div>" }]
|
|
2016
2020
|
}], ctorParameters: () => [{ type: AngularUtilService }, { type: i0.ApplicationRef }, { type: i0.ChangeDetectorRef }, { type: ContainerService }, { type: i0.ElementRef }, { type: i1.TranslateService, decorators: [{
|
|
2017
2021
|
type: Optional
|
|
2018
2022
|
}] }, { type: TranslaterService, decorators: [{
|
|
@@ -2039,6 +2043,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
2039
2043
|
type: Input
|
|
2040
2044
|
}], datasetHierarchical: [{
|
|
2041
2045
|
type: Input
|
|
2046
|
+
}], slickgridHeader: [{
|
|
2047
|
+
type: ContentChild,
|
|
2048
|
+
args: ['slickgridHeader', { static: true }]
|
|
2049
|
+
}], slickgridFooter: [{
|
|
2050
|
+
type: ContentChild,
|
|
2051
|
+
args: ['slickgridFooter', { static: true }]
|
|
2042
2052
|
}] } });
|
|
2043
2053
|
|
|
2044
2054
|
class AngularSlickgridModule {
|