basesite-shared-grid-lib 15.10.21 → 15.10.23
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/esm2020/lib/formatters/column-value-formatter.mjs +4 -4
- package/esm2020/lib/grid-library.component.mjs +25 -37
- package/esm2020/lib/grid-library.module.mjs +6 -6
- package/esm2020/lib/grid-library.service.mjs +18 -46
- package/esm2020/lib/renderer/button-renderer/button-renderer.component.mjs +4 -4
- package/esm2020/lib/renderer/dropdown-renderer/drop-down-renderer.mjs +4 -4
- package/esm2020/lib/renderer/tooltip-renderer/custom-tooltip-renderer.mjs +4 -4
- package/fesm2015/basesite-shared-grid-lib.mjs +60 -114
- package/fesm2015/basesite-shared-grid-lib.mjs.map +1 -1
- package/fesm2020/basesite-shared-grid-lib.mjs +60 -114
- package/fesm2020/basesite-shared-grid-lib.mjs.map +1 -1
- package/lib/grid-library.component.d.ts +3 -9
- package/lib/grid-library.service.d.ts +1 -5
- package/package.json +5 -7
- package/esm2020/lib/token-sharing.service.mjs +0 -21
- package/lib/token-sharing.service.d.ts +0 -9
|
@@ -1,103 +1,59 @@
|
|
|
1
|
-
import * as i1 from '@angular/common/http';
|
|
2
|
-
import { HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
2
|
import { Injectable, Component, EventEmitter, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
5
|
-
import
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
6
5
|
import * as i1$1 from '@angular/common';
|
|
7
6
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
8
7
|
import { takeUntil } from 'rxjs/operators';
|
|
9
|
-
import
|
|
8
|
+
import { Subject } from 'rxjs';
|
|
9
|
+
import * as i3 from 'ag-grid-angular';
|
|
10
10
|
import { AgGridModule } from 'ag-grid-angular';
|
|
11
11
|
import { LicenseManager } from 'ag-grid-enterprise';
|
|
12
12
|
|
|
13
|
-
class TokenSharingService {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.tokenSubject = new BehaviorSubject("");
|
|
16
|
-
this.token$ = this.tokenSubject.asObservable();
|
|
17
|
-
}
|
|
18
|
-
updateToken(newToken) {
|
|
19
|
-
this.tokenSubject.next(newToken);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
TokenSharingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
23
|
-
TokenSharingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, providedIn: 'root' });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, decorators: [{
|
|
25
|
-
type: Injectable,
|
|
26
|
-
args: [{
|
|
27
|
-
providedIn: 'root'
|
|
28
|
-
}]
|
|
29
|
-
}], ctorParameters: function () { return []; } });
|
|
30
|
-
|
|
31
13
|
class GridLibraryService {
|
|
32
|
-
constructor(httpClient
|
|
14
|
+
constructor(httpClient) {
|
|
33
15
|
this.httpClient = httpClient;
|
|
34
|
-
this.
|
|
35
|
-
this.baseUrl = 'https://localhost:7237/api';
|
|
36
|
-
this._tokenSharingService.token$.subscribe(res => {
|
|
37
|
-
if (res && res != "") {
|
|
38
|
-
this.accessToken = res;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
16
|
+
this.baseUrl = 'https://localhost:8075/api';
|
|
41
17
|
}
|
|
42
18
|
setBaseUrl(environment) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (window.location.host == 'fcelspx-test.intel.com') {
|
|
47
|
-
this.baseUrl = 'https://fcelspx-test.intel.com/designhub/api';
|
|
19
|
+
console.log("sharedgridapi - ", window.location.origin + "/fcesharedgrid/api");
|
|
20
|
+
if (window.location.origin.includes('fcelspx')) {
|
|
21
|
+
this.baseUrl = window.location.origin + "/fcesharedgrid/api";
|
|
48
22
|
}
|
|
49
23
|
else if (environment === 'test') {
|
|
50
|
-
this.baseUrl = 'https://
|
|
24
|
+
this.baseUrl = 'https://fcesharedgridtest.intel.com/api';
|
|
51
25
|
}
|
|
52
26
|
else if (environment == 'uat') {
|
|
53
|
-
this.baseUrl = 'https://
|
|
27
|
+
this.baseUrl = 'https://fcesharedgriduat.intel.com/api';
|
|
54
28
|
}
|
|
55
29
|
else if (environment == 'production') {
|
|
56
|
-
this.baseUrl = 'https://
|
|
30
|
+
this.baseUrl = 'https://fcesharedgrid.intel.com/api';
|
|
57
31
|
}
|
|
58
32
|
else {
|
|
59
|
-
this.baseUrl = 'https://localhost:
|
|
33
|
+
this.baseUrl = 'https://localhost:8075/api';
|
|
60
34
|
}
|
|
61
35
|
}
|
|
62
36
|
getColDef(gridId) {
|
|
63
|
-
return this.httpClient.get(`${this.baseUrl}/GridConfiguration/${gridId}
|
|
37
|
+
return this.httpClient.get(`${this.baseUrl}/GridConfiguration/${gridId}`);
|
|
64
38
|
}
|
|
65
39
|
saveColumnConfig(columnConfig) {
|
|
66
|
-
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig
|
|
40
|
+
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig);
|
|
67
41
|
}
|
|
68
42
|
getGridState(gridId, loggedInUserId) {
|
|
69
|
-
|
|
70
|
-
console.log("basesite-shared-lib accessToken=> ", this.accessToken);
|
|
71
|
-
return this.httpClient.get(`${this.baseUrl}/GridConfiguration?gridId=${gridId}&userId=${loggedInUserId}`, { headers: this.getRequestHeader() });
|
|
72
|
-
}
|
|
73
|
-
getRequestHeader(isLspx = false) {
|
|
74
|
-
let reqHeader;
|
|
75
|
-
console.log("basesite-shared-lib token=> ", this.accessToken);
|
|
76
|
-
if (this.accessToken) {
|
|
77
|
-
reqHeader = new HttpHeaders({
|
|
78
|
-
'Content-Type': 'application/json',
|
|
79
|
-
'Authorization': 'Bearer ' + this.accessToken
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
reqHeader = new HttpHeaders({
|
|
84
|
-
'Content-Type': 'application/json',
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
return reqHeader;
|
|
43
|
+
return this.httpClient.get(`${this.baseUrl}/GridConfiguration?gridId=${gridId}&userId=${loggedInUserId}`);
|
|
88
44
|
}
|
|
89
45
|
getDataForExport(serverUrl) {
|
|
90
|
-
return this.httpClient.get(`${serverUrl}
|
|
46
|
+
return this.httpClient.get(`${serverUrl}`);
|
|
91
47
|
}
|
|
92
48
|
}
|
|
93
|
-
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
94
|
-
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
49
|
+
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
+
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryService, providedIn: 'root' });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryService, decorators: [{
|
|
96
52
|
type: Injectable,
|
|
97
53
|
args: [{
|
|
98
54
|
providedIn: 'root',
|
|
99
55
|
}]
|
|
100
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }
|
|
56
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
101
57
|
|
|
102
58
|
var types$1 = /*#__PURE__*/Object.freeze({
|
|
103
59
|
__proto__: null
|
|
@@ -920,15 +876,15 @@ class ButtonRendererComponent {
|
|
|
920
876
|
}
|
|
921
877
|
}
|
|
922
878
|
}
|
|
923
|
-
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
924
|
-
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
879
|
+
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
880
|
+
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.6", type: ButtonRendererComponent, selector: "lib-button-renderer", ngImport: i0, template: `
|
|
925
881
|
<button class="btn-actions" type="button" (click)="onClick($event)" [attr.data-title]="params.tooltip">
|
|
926
882
|
<span *ngIf="icon && !label"> <i class="{{ icon }}"></i> </span>
|
|
927
883
|
<span *ngIf="!icon && label">{{ label }}</span>
|
|
928
884
|
<span *ngIf="icon && label"><i class="{{ icon }}"></i> {{ label }}</span>
|
|
929
885
|
</button>
|
|
930
886
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
932
888
|
type: Component,
|
|
933
889
|
args: [{
|
|
934
890
|
selector: 'lib-button-renderer',
|
|
@@ -951,13 +907,13 @@ class CustomTooltip {
|
|
|
951
907
|
params.value = params.valueFormatted;
|
|
952
908
|
}
|
|
953
909
|
}
|
|
954
|
-
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
955
|
-
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
910
|
+
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CustomTooltip, deps: [{ token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
911
|
+
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.6", type: CustomTooltip, selector: "tooltip-component", ngImport: i0, template: ` <div class="custom-tooltip">
|
|
956
912
|
<p>
|
|
957
913
|
<span>{{ params.value }}</span>
|
|
958
914
|
</p>
|
|
959
915
|
</div>`, isInline: true });
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: CustomTooltip, decorators: [{
|
|
961
917
|
type: Component,
|
|
962
918
|
args: [{
|
|
963
919
|
selector: 'tooltip-component',
|
|
@@ -990,8 +946,8 @@ class DropdownRenderer {
|
|
|
990
946
|
}
|
|
991
947
|
}
|
|
992
948
|
}
|
|
993
|
-
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
994
|
-
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
949
|
+
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DropdownRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
950
|
+
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.6", type: DropdownRenderer, selector: "lib-dropdown-renderer", ngImport: i0, template: `
|
|
995
951
|
<div class="dropdown">
|
|
996
952
|
<button type="button" class="btn btn-white" data-toggle="dropdown">
|
|
997
953
|
<i class="fa fa-ellipsis-v"></i>
|
|
@@ -1001,7 +957,7 @@ DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
1001
957
|
</div>
|
|
1002
958
|
</div>
|
|
1003
959
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: DropdownRenderer, decorators: [{
|
|
1005
961
|
type: Component,
|
|
1006
962
|
args: [{
|
|
1007
963
|
selector: 'lib-dropdown-renderer',
|
|
@@ -1036,19 +992,16 @@ class ColumnValueFormatter {
|
|
|
1036
992
|
return params.value;
|
|
1037
993
|
}
|
|
1038
994
|
}
|
|
1039
|
-
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1040
|
-
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
995
|
+
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ColumnValueFormatter, deps: [{ token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
996
|
+
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ColumnValueFormatter });
|
|
997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: ColumnValueFormatter, decorators: [{
|
|
1042
998
|
type: Injectable
|
|
1043
999
|
}], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
|
|
1044
1000
|
|
|
1045
1001
|
class GridLibraryComponent {
|
|
1046
|
-
constructor(gridService,
|
|
1002
|
+
constructor(gridService, formatterService) {
|
|
1047
1003
|
this.gridService = gridService;
|
|
1048
|
-
this.datePipe = datePipe;
|
|
1049
1004
|
this.formatterService = formatterService;
|
|
1050
|
-
this._tokenSharingService = _tokenSharingService;
|
|
1051
|
-
this.cd = cd;
|
|
1052
1005
|
this.pageSize = 20;
|
|
1053
1006
|
this.paginationAutoPageSize = false;
|
|
1054
1007
|
this.rowSelection = 'multiple';
|
|
@@ -1056,7 +1009,6 @@ class GridLibraryComponent {
|
|
|
1056
1009
|
this.cacheBlockSize = 0;
|
|
1057
1010
|
this.rowMultiSelectWithClick = false;
|
|
1058
1011
|
this.floatingFilter = false;
|
|
1059
|
-
//@Input() set token(val: string) { this._tokenSharingService.updateToken(val) };
|
|
1060
1012
|
//event emitters
|
|
1061
1013
|
this.btnClickHandler = new EventEmitter();
|
|
1062
1014
|
this.firstDataRendered = new EventEmitter();
|
|
@@ -1116,14 +1068,6 @@ class GridLibraryComponent {
|
|
|
1116
1068
|
this.gridColumnState = this.agGrid.columnApi.getColumnState();
|
|
1117
1069
|
}
|
|
1118
1070
|
ngOnInit() {
|
|
1119
|
-
this._tokenSharingService.updateToken(this.token);
|
|
1120
|
-
if (this.enableServerSidePaging == true) {
|
|
1121
|
-
this.rowModelType = 'serverSide';
|
|
1122
|
-
this.rowData = '';
|
|
1123
|
-
}
|
|
1124
|
-
else {
|
|
1125
|
-
this.rowModelType = 'clientSide';
|
|
1126
|
-
}
|
|
1127
1071
|
this.gridPageSize = this.pageSize;
|
|
1128
1072
|
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1129
1073
|
? this.pageSize
|
|
@@ -1131,6 +1075,13 @@ class GridLibraryComponent {
|
|
|
1131
1075
|
this.gridService.setBaseUrl(this.environment);
|
|
1132
1076
|
this.getGridState();
|
|
1133
1077
|
this.getColDef();
|
|
1078
|
+
if (this.enableServerSidePaging == true) {
|
|
1079
|
+
this.rowModelType = 'serverSide';
|
|
1080
|
+
this.rowData = '';
|
|
1081
|
+
}
|
|
1082
|
+
else {
|
|
1083
|
+
this.rowModelType = 'clientSide';
|
|
1084
|
+
}
|
|
1134
1085
|
}
|
|
1135
1086
|
onModelUpdated() {
|
|
1136
1087
|
this.setGridState();
|
|
@@ -1139,7 +1090,7 @@ class GridLibraryComponent {
|
|
|
1139
1090
|
if (this.gridId && this.loggedInUser) {
|
|
1140
1091
|
this.gridService.getColDef(this.gridId).pipe(takeUntil(this.unsubscribe$)).subscribe((response) => {
|
|
1141
1092
|
if (response.status == 1) {
|
|
1142
|
-
let coldef = response.
|
|
1093
|
+
let coldef = response.list.map((res) => {
|
|
1143
1094
|
if (res.isButton === false) {
|
|
1144
1095
|
if (res.columnType === 'checkbox') {
|
|
1145
1096
|
return {
|
|
@@ -1250,7 +1201,7 @@ class GridLibraryComponent {
|
|
|
1250
1201
|
};
|
|
1251
1202
|
}
|
|
1252
1203
|
});
|
|
1253
|
-
this.exportColumnsList = response.
|
|
1204
|
+
this.exportColumnsList = response.list;
|
|
1254
1205
|
this.columnDefs = coldef;
|
|
1255
1206
|
this.agGrid.gridOptions?.api?.setColumnDefs(coldef);
|
|
1256
1207
|
this.getGridState();
|
|
@@ -1283,16 +1234,13 @@ class GridLibraryComponent {
|
|
|
1283
1234
|
onGridReady(params) {
|
|
1284
1235
|
this.gridPageSize = this.pageSize;
|
|
1285
1236
|
if (this.enableServerSidePaging == true) {
|
|
1286
|
-
//call api
|
|
1287
|
-
let reqHeaders = {
|
|
1288
|
-
'Content-type': 'application/json',
|
|
1289
|
-
Accept: 'application/json',
|
|
1290
|
-
'Authorization': 'Bearer ' + this.token
|
|
1291
|
-
};
|
|
1292
1237
|
params.api.setServerSideDatasource(new OdataServerSideProvider({
|
|
1293
1238
|
isCaseSensitiveStringFilter: false,
|
|
1294
1239
|
callApi: (options) => fetch(`${this.setExternalFilters(options)}`, {
|
|
1295
|
-
headers:
|
|
1240
|
+
headers: {
|
|
1241
|
+
'Content-type': 'application/json',
|
|
1242
|
+
Accept: 'application/json',
|
|
1243
|
+
},
|
|
1296
1244
|
}).then((response) => response.json()),
|
|
1297
1245
|
afterLoadData: (options, rowData, totalCount) => {
|
|
1298
1246
|
if (!rowData || rowData.length <= 0) {
|
|
@@ -1335,9 +1283,9 @@ class GridLibraryComponent {
|
|
|
1335
1283
|
.pipe(takeUntil(this.unsubscribe$))
|
|
1336
1284
|
.subscribe((response) => {
|
|
1337
1285
|
if (response.status == 1 &&
|
|
1338
|
-
response.
|
|
1339
|
-
response.
|
|
1340
|
-
this.gridColumnState = JSON.parse(response.
|
|
1286
|
+
response.object &&
|
|
1287
|
+
response.object.gridConfig) {
|
|
1288
|
+
this.gridColumnState = JSON.parse(response.object.gridConfig);
|
|
1341
1289
|
this.setGridState();
|
|
1342
1290
|
}
|
|
1343
1291
|
else {
|
|
@@ -1447,8 +1395,8 @@ class GridLibraryComponent {
|
|
|
1447
1395
|
this.unsubscribe$.complete();
|
|
1448
1396
|
}
|
|
1449
1397
|
}
|
|
1450
|
-
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1451
|
-
GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
1398
|
+
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryComponent, deps: [{ token: GridLibraryService }, { token: ColumnValueFormatter }], target: i0.ɵɵFactoryTarget.Component });
|
|
1399
|
+
GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.6", type: GridLibraryComponent, selector: "lib-basesite-shared-grid-lib", inputs: { columnDefs: "columnDefs", rowData: "rowData", pageSize: "pageSize", paginationAutoPageSize: "paginationAutoPageSize", rowSelection: "rowSelection", gridId: "gridId", loggedInUser: "loggedInUser", enableServerSidePaging: "enableServerSidePaging", serverDataUrl: "serverDataUrl", environment: "environment", cacheBlockSize: "cacheBlockSize", rowMultiSelectWithClick: "rowMultiSelectWithClick", floatingFilter: "floatingFilter" }, outputs: { btnClickHandler: "btnClickHandler", firstDataRendered: "firstDataRendered", filterChanged: "filterChanged", selectionChanged: "selectionChanged" }, viewQueries: [{ propertyName: "agGrid", first: true, predicate: ["agGrid"], descendants: true }], ngImport: i0, template: `
|
|
1452
1400
|
<ag-grid-angular #agGrid
|
|
1453
1401
|
style="width: 100%;height:98.2vh"
|
|
1454
1402
|
class="ag-theme-balham shared-grid-lib"
|
|
@@ -1495,8 +1443,8 @@ GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
1495
1443
|
[cacheQuickFilter]="false"
|
|
1496
1444
|
>
|
|
1497
1445
|
</ag-grid-angular>
|
|
1498
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
1499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1446
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i3.AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "suppressMenuHide", "enableBrowserTooltips", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "maintainColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressDragLeaveHidesColumns", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "components", "frameworkComponents", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterMovesDown", "enterMovesDownAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "quickFilterText", "cacheQuickFilter", "excludeHiddenColumnsFromQuickFilter", "excludeChildrenWhenTreeDataFiltering", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "enableChartToolPanelsButton", "suppressChartToolPanelsButton", "chartToolPanelsDef", "loadingCellRenderer", "loadingCellRendererFramework", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererFramework", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressParentsInRowNodes", "suppressTouch", "suppressFocusAfterRefresh", "suppressAsyncEvents", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentFramework", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentFramework", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "suppressAggAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "enableCellChangeFlash", "cellFlashDelay", "cellFadeDelay", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "fullWidthCellRenderer", "fullWidthCellRendererFramework", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupAggFiltering", "groupIncludeFooter", "groupIncludeTotalFooter", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererFramework", "groupRowRendererParams", "suppressMakeColumnVisibleAfterUnGroup", "treeData", "rowGroupPanelSuppressSort", "groupRowsSticky", "rememberGroupStateWhenNewData", "pinnedTopRowData", "pinnedBottomRowData", "rowModelType", "rowData", "immutableData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "serverSideStoreType", "suppressServerSideInfiniteScroll", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideFilterAllLevels", "serverSideSortOnServer", "serverSideFilterOnServer", "serverSideSortingAlwaysResets", "serverSideFilteringAlwaysResets", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellSelection", "suppressCellFocus", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "deltaSort", "treeDataDisplayType", "functionsPassive", "enableGroupEdit", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "localeTextFunc", "getLocaleText", "getDocument", "paginationNumberFormatter", "groupRowAggNodes", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "defaultGroupOrderComparator", "processSecondaryColDef", "processSecondaryColGroupDef", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "getServerSideStoreParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowNodeId", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSort", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthCell", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "filterOpened", "filterChanged", "filterModified", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "cellKeyPress", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pinnedRowDataChanged", "rowDataChanged", "rowDataUpdated", "asyncTransactionsFlushed", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "sortChanged", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest"] }] });
|
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryComponent, decorators: [{
|
|
1500
1448
|
type: Component,
|
|
1501
1449
|
args: [{ selector: 'lib-basesite-shared-grid-lib', template: `
|
|
1502
1450
|
<ag-grid-angular #agGrid
|
|
@@ -1546,7 +1494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1546
1494
|
>
|
|
1547
1495
|
</ag-grid-angular>
|
|
1548
1496
|
` }]
|
|
1549
|
-
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type:
|
|
1497
|
+
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: ColumnValueFormatter }]; }, propDecorators: { columnDefs: [{
|
|
1550
1498
|
type: Input
|
|
1551
1499
|
}], rowData: [{
|
|
1552
1500
|
type: Input
|
|
@@ -1572,8 +1520,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1572
1520
|
type: Input
|
|
1573
1521
|
}], floatingFilter: [{
|
|
1574
1522
|
type: Input
|
|
1575
|
-
}], token: [{
|
|
1576
|
-
type: Input
|
|
1577
1523
|
}], btnClickHandler: [{
|
|
1578
1524
|
type: Output
|
|
1579
1525
|
}], firstDataRendered: [{
|
|
@@ -1587,20 +1533,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1587
1533
|
args: ['agGrid']
|
|
1588
1534
|
}] } });
|
|
1589
1535
|
|
|
1590
|
-
LicenseManager.setLicenseKey("
|
|
1536
|
+
LicenseManager.setLicenseKey("CompanyName=Basesite,LicensedGroup=Basesite,LicenseType=MultipleApplications,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=2,AssetReference=AG-028469,ExpiryDate=19_May_2023_[v2]_MTY4NDQ1MDgwMDAwMA==ed6f437ea331cf602f669128db7b5387");
|
|
1591
1537
|
class GridLibraryModule {
|
|
1592
1538
|
}
|
|
1593
|
-
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1594
|
-
GridLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
1539
|
+
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1540
|
+
GridLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryModule, declarations: [GridLibraryComponent,
|
|
1595
1541
|
ButtonRendererComponent,
|
|
1596
1542
|
CustomTooltip,
|
|
1597
1543
|
DropdownRenderer], imports: [AgGridModule,
|
|
1598
1544
|
HttpClientModule,
|
|
1599
1545
|
CommonModule], exports: [GridLibraryComponent] });
|
|
1600
|
-
GridLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
1546
|
+
GridLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryModule, providers: [DatePipe, GridLibraryService, ColumnValueFormatter], imports: [AgGridModule,
|
|
1601
1547
|
HttpClientModule,
|
|
1602
1548
|
CommonModule] });
|
|
1603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImport: i0, type: GridLibraryModule, decorators: [{
|
|
1604
1550
|
type: NgModule,
|
|
1605
1551
|
args: [{
|
|
1606
1552
|
declarations: [
|