basesite-shared-grid-lib 15.10.20 → 15.10.21
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 +31 -37
- package/esm2020/lib/grid-library.module.mjs +6 -6
- package/esm2020/lib/grid-library.service.mjs +26 -10
- 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/esm2020/lib/token-sharing.service.mjs +21 -0
- package/fesm2015/basesite-shared-grid-lib.mjs +89 -63
- package/fesm2015/basesite-shared-grid-lib.mjs.map +1 -1
- package/fesm2020/basesite-shared-grid-lib.mjs +89 -63
- package/fesm2020/basesite-shared-grid-lib.mjs.map +1 -1
- package/lib/grid-library.component.d.ts +5 -2
- package/lib/grid-library.service.d.ts +4 -2
- package/lib/token-sharing.service.d.ts +9 -0
- package/package.json +2 -5
|
@@ -2,21 +2,51 @@ import * as i1 from '@angular/common/http';
|
|
|
2
2
|
import { HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Injectable, Component, EventEmitter, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
5
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
5
6
|
import * as i1$1 from '@angular/common';
|
|
6
7
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
7
8
|
import { takeUntil } from 'rxjs/operators';
|
|
8
|
-
import
|
|
9
|
-
import * as i4 from 'ag-grid-angular';
|
|
9
|
+
import * as i5 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
|
+
|
|
13
31
|
class GridLibraryService {
|
|
14
|
-
constructor(httpClient) {
|
|
32
|
+
constructor(httpClient, _tokenSharingService) {
|
|
15
33
|
this.httpClient = httpClient;
|
|
34
|
+
this._tokenSharingService = _tokenSharingService;
|
|
16
35
|
this.baseUrl = 'https://localhost:7237/api';
|
|
36
|
+
this._tokenSharingService.token$.subscribe(res => {
|
|
37
|
+
if (res && res != "") {
|
|
38
|
+
this.accessToken = res;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
17
41
|
}
|
|
18
42
|
setBaseUrl(environment) {
|
|
19
|
-
if (
|
|
43
|
+
if (window.location.host == 'fcelspx.intel.com') {
|
|
44
|
+
this.baseUrl = 'https://fcelspx.intel.com/designhub/api';
|
|
45
|
+
}
|
|
46
|
+
if (window.location.host == 'fcelspx-test.intel.com') {
|
|
47
|
+
this.baseUrl = 'https://fcelspx-test.intel.com/designhub/api';
|
|
48
|
+
}
|
|
49
|
+
else if (environment === 'test') {
|
|
20
50
|
this.baseUrl = 'https://fcemstest.intel.com/designhub/api';
|
|
21
51
|
}
|
|
22
52
|
else if (environment == 'uat') {
|
|
@@ -30,16 +60,19 @@ class GridLibraryService {
|
|
|
30
60
|
}
|
|
31
61
|
}
|
|
32
62
|
getColDef(gridId) {
|
|
33
|
-
return this.httpClient.get(`${this.baseUrl}/GridConfiguration/${gridId}
|
|
63
|
+
return this.httpClient.get(`${this.baseUrl}/GridConfiguration/${gridId}`, { headers: this.getRequestHeader() });
|
|
34
64
|
}
|
|
35
65
|
saveColumnConfig(columnConfig) {
|
|
36
66
|
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig, { headers: this.getRequestHeader() });
|
|
37
67
|
}
|
|
38
68
|
getGridState(gridId, loggedInUserId) {
|
|
69
|
+
debugger;
|
|
70
|
+
console.log("basesite-shared-lib accessToken=> ", this.accessToken);
|
|
39
71
|
return this.httpClient.get(`${this.baseUrl}/GridConfiguration?gridId=${gridId}&userId=${loggedInUserId}`, { headers: this.getRequestHeader() });
|
|
40
72
|
}
|
|
41
|
-
getRequestHeader() {
|
|
73
|
+
getRequestHeader(isLspx = false) {
|
|
42
74
|
let reqHeader;
|
|
75
|
+
console.log("basesite-shared-lib token=> ", this.accessToken);
|
|
43
76
|
if (this.accessToken) {
|
|
44
77
|
reqHeader = new HttpHeaders({
|
|
45
78
|
'Content-Type': 'application/json',
|
|
@@ -54,17 +87,17 @@ class GridLibraryService {
|
|
|
54
87
|
return reqHeader;
|
|
55
88
|
}
|
|
56
89
|
getDataForExport(serverUrl) {
|
|
57
|
-
return this.httpClient.get(`${serverUrl}
|
|
90
|
+
return this.httpClient.get(`${serverUrl}`, { headers: this.getRequestHeader() });
|
|
58
91
|
}
|
|
59
92
|
}
|
|
60
|
-
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
61
|
-
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
93
|
+
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryService, deps: [{ token: i1.HttpClient }, { token: TokenSharingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
94
|
+
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryService, providedIn: 'root' });
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryService, decorators: [{
|
|
63
96
|
type: Injectable,
|
|
64
97
|
args: [{
|
|
65
98
|
providedIn: 'root',
|
|
66
99
|
}]
|
|
67
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
100
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: TokenSharingService }]; } });
|
|
68
101
|
|
|
69
102
|
var types$1 = /*#__PURE__*/Object.freeze({
|
|
70
103
|
__proto__: null
|
|
@@ -887,15 +920,15 @@ class ButtonRendererComponent {
|
|
|
887
920
|
}
|
|
888
921
|
}
|
|
889
922
|
}
|
|
890
|
-
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
891
|
-
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
923
|
+
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
924
|
+
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ButtonRendererComponent, selector: "lib-button-renderer", ngImport: i0, template: `
|
|
892
925
|
<button class="btn-actions" type="button" (click)="onClick($event)" [attr.data-title]="params.tooltip">
|
|
893
926
|
<span *ngIf="icon && !label"> <i class="{{ icon }}"></i> </span>
|
|
894
927
|
<span *ngIf="!icon && label">{{ label }}</span>
|
|
895
928
|
<span *ngIf="icon && label"><i class="{{ icon }}"></i> {{ label }}</span>
|
|
896
929
|
</button>
|
|
897
930
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
899
932
|
type: Component,
|
|
900
933
|
args: [{
|
|
901
934
|
selector: 'lib-button-renderer',
|
|
@@ -918,13 +951,13 @@ class CustomTooltip {
|
|
|
918
951
|
params.value = params.valueFormatted;
|
|
919
952
|
}
|
|
920
953
|
}
|
|
921
|
-
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
922
|
-
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
954
|
+
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomTooltip, deps: [{ token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
955
|
+
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomTooltip, selector: "tooltip-component", ngImport: i0, template: ` <div class="custom-tooltip">
|
|
923
956
|
<p>
|
|
924
957
|
<span>{{ params.value }}</span>
|
|
925
958
|
</p>
|
|
926
959
|
</div>`, isInline: true });
|
|
927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomTooltip, decorators: [{
|
|
928
961
|
type: Component,
|
|
929
962
|
args: [{
|
|
930
963
|
selector: 'tooltip-component',
|
|
@@ -957,8 +990,8 @@ class DropdownRenderer {
|
|
|
957
990
|
}
|
|
958
991
|
}
|
|
959
992
|
}
|
|
960
|
-
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
961
|
-
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
993
|
+
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
994
|
+
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DropdownRenderer, selector: "lib-dropdown-renderer", ngImport: i0, template: `
|
|
962
995
|
<div class="dropdown">
|
|
963
996
|
<button type="button" class="btn btn-white" data-toggle="dropdown">
|
|
964
997
|
<i class="fa fa-ellipsis-v"></i>
|
|
@@ -968,7 +1001,7 @@ DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
968
1001
|
</div>
|
|
969
1002
|
</div>
|
|
970
1003
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownRenderer, decorators: [{
|
|
972
1005
|
type: Component,
|
|
973
1006
|
args: [{
|
|
974
1007
|
selector: 'lib-dropdown-renderer',
|
|
@@ -1003,17 +1036,19 @@ class ColumnValueFormatter {
|
|
|
1003
1036
|
return params.value;
|
|
1004
1037
|
}
|
|
1005
1038
|
}
|
|
1006
|
-
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1007
|
-
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1039
|
+
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnValueFormatter, deps: [{ token: i1$1.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1040
|
+
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnValueFormatter });
|
|
1041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnValueFormatter, decorators: [{
|
|
1009
1042
|
type: Injectable
|
|
1010
1043
|
}], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
|
|
1011
1044
|
|
|
1012
1045
|
class GridLibraryComponent {
|
|
1013
|
-
constructor(gridService, datePipe, formatterService) {
|
|
1046
|
+
constructor(gridService, datePipe, formatterService, _tokenSharingService, cd) {
|
|
1014
1047
|
this.gridService = gridService;
|
|
1015
1048
|
this.datePipe = datePipe;
|
|
1016
1049
|
this.formatterService = formatterService;
|
|
1050
|
+
this._tokenSharingService = _tokenSharingService;
|
|
1051
|
+
this.cd = cd;
|
|
1017
1052
|
this.pageSize = 20;
|
|
1018
1053
|
this.paginationAutoPageSize = false;
|
|
1019
1054
|
this.rowSelection = 'multiple';
|
|
@@ -1021,6 +1056,7 @@ class GridLibraryComponent {
|
|
|
1021
1056
|
this.cacheBlockSize = 0;
|
|
1022
1057
|
this.rowMultiSelectWithClick = false;
|
|
1023
1058
|
this.floatingFilter = false;
|
|
1059
|
+
//@Input() set token(val: string) { this._tokenSharingService.updateToken(val) };
|
|
1024
1060
|
//event emitters
|
|
1025
1061
|
this.btnClickHandler = new EventEmitter();
|
|
1026
1062
|
this.firstDataRendered = new EventEmitter();
|
|
@@ -1075,19 +1111,12 @@ class GridLibraryComponent {
|
|
|
1075
1111
|
];
|
|
1076
1112
|
return res;
|
|
1077
1113
|
};
|
|
1078
|
-
this.gridService.accessToken = this.token;
|
|
1079
1114
|
}
|
|
1080
1115
|
onSortChangedEvent() {
|
|
1081
1116
|
this.gridColumnState = this.agGrid.columnApi.getColumnState();
|
|
1082
1117
|
}
|
|
1083
1118
|
ngOnInit() {
|
|
1084
|
-
this.
|
|
1085
|
-
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1086
|
-
? this.pageSize
|
|
1087
|
-
: this.cacheBlockSize;
|
|
1088
|
-
this.gridService.setBaseUrl(this.environment);
|
|
1089
|
-
this.getGridState();
|
|
1090
|
-
this.getColDef();
|
|
1119
|
+
this._tokenSharingService.updateToken(this.token);
|
|
1091
1120
|
if (this.enableServerSidePaging == true) {
|
|
1092
1121
|
this.rowModelType = 'serverSide';
|
|
1093
1122
|
this.rowData = '';
|
|
@@ -1095,6 +1124,13 @@ class GridLibraryComponent {
|
|
|
1095
1124
|
else {
|
|
1096
1125
|
this.rowModelType = 'clientSide';
|
|
1097
1126
|
}
|
|
1127
|
+
this.gridPageSize = this.pageSize;
|
|
1128
|
+
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1129
|
+
? this.pageSize
|
|
1130
|
+
: this.cacheBlockSize;
|
|
1131
|
+
this.gridService.setBaseUrl(this.environment);
|
|
1132
|
+
this.getGridState();
|
|
1133
|
+
this.getColDef();
|
|
1098
1134
|
}
|
|
1099
1135
|
onModelUpdated() {
|
|
1100
1136
|
this.setGridState();
|
|
@@ -1103,7 +1139,7 @@ class GridLibraryComponent {
|
|
|
1103
1139
|
if (this.gridId && this.loggedInUser) {
|
|
1104
1140
|
this.gridService.getColDef(this.gridId).pipe(takeUntil(this.unsubscribe$)).subscribe((response) => {
|
|
1105
1141
|
if (response.status == 1) {
|
|
1106
|
-
let coldef = response.
|
|
1142
|
+
let coldef = response.result.map((res) => {
|
|
1107
1143
|
if (res.isButton === false) {
|
|
1108
1144
|
if (res.columnType === 'checkbox') {
|
|
1109
1145
|
return {
|
|
@@ -1214,7 +1250,7 @@ class GridLibraryComponent {
|
|
|
1214
1250
|
};
|
|
1215
1251
|
}
|
|
1216
1252
|
});
|
|
1217
|
-
this.exportColumnsList = response.
|
|
1253
|
+
this.exportColumnsList = response.result;
|
|
1218
1254
|
this.columnDefs = coldef;
|
|
1219
1255
|
this.agGrid.gridOptions?.api?.setColumnDefs(coldef);
|
|
1220
1256
|
this.getGridState();
|
|
@@ -1247,26 +1283,16 @@ class GridLibraryComponent {
|
|
|
1247
1283
|
onGridReady(params) {
|
|
1248
1284
|
this.gridPageSize = this.pageSize;
|
|
1249
1285
|
if (this.enableServerSidePaging == true) {
|
|
1250
|
-
let requestHeaders;
|
|
1251
|
-
//set request headers
|
|
1252
|
-
if (this.gridService.accessToken) {
|
|
1253
|
-
requestHeaders = {
|
|
1254
|
-
'Content-type': 'application/json',
|
|
1255
|
-
Accept: 'application/json',
|
|
1256
|
-
'Authorization': 'Bearer ' + this.gridService.accessToken
|
|
1257
|
-
};
|
|
1258
|
-
}
|
|
1259
|
-
else {
|
|
1260
|
-
requestHeaders = {
|
|
1261
|
-
'Content-type': 'application/json',
|
|
1262
|
-
Accept: 'application/json'
|
|
1263
|
-
};
|
|
1264
|
-
}
|
|
1265
1286
|
//call api
|
|
1287
|
+
let reqHeaders = {
|
|
1288
|
+
'Content-type': 'application/json',
|
|
1289
|
+
Accept: 'application/json',
|
|
1290
|
+
'Authorization': 'Bearer ' + this.token
|
|
1291
|
+
};
|
|
1266
1292
|
params.api.setServerSideDatasource(new OdataServerSideProvider({
|
|
1267
1293
|
isCaseSensitiveStringFilter: false,
|
|
1268
1294
|
callApi: (options) => fetch(`${this.setExternalFilters(options)}`, {
|
|
1269
|
-
headers:
|
|
1295
|
+
headers: reqHeaders,
|
|
1270
1296
|
}).then((response) => response.json()),
|
|
1271
1297
|
afterLoadData: (options, rowData, totalCount) => {
|
|
1272
1298
|
if (!rowData || rowData.length <= 0) {
|
|
@@ -1309,9 +1335,9 @@ class GridLibraryComponent {
|
|
|
1309
1335
|
.pipe(takeUntil(this.unsubscribe$))
|
|
1310
1336
|
.subscribe((response) => {
|
|
1311
1337
|
if (response.status == 1 &&
|
|
1312
|
-
response.
|
|
1313
|
-
response.
|
|
1314
|
-
this.gridColumnState = JSON.parse(response.
|
|
1338
|
+
response.result &&
|
|
1339
|
+
response.result.gridConfig) {
|
|
1340
|
+
this.gridColumnState = JSON.parse(response.result.gridConfig);
|
|
1315
1341
|
this.setGridState();
|
|
1316
1342
|
}
|
|
1317
1343
|
else {
|
|
@@ -1421,8 +1447,8 @@ class GridLibraryComponent {
|
|
|
1421
1447
|
this.unsubscribe$.complete();
|
|
1422
1448
|
}
|
|
1423
1449
|
}
|
|
1424
|
-
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1425
|
-
GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
1450
|
+
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryComponent, deps: [{ token: GridLibraryService }, { token: i1$1.DatePipe }, { token: ColumnValueFormatter }, { token: TokenSharingService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1451
|
+
GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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", token: "token" }, outputs: { btnClickHandler: "btnClickHandler", firstDataRendered: "firstDataRendered", filterChanged: "filterChanged", selectionChanged: "selectionChanged" }, viewQueries: [{ propertyName: "agGrid", first: true, predicate: ["agGrid"], descendants: true }], ngImport: i0, template: `
|
|
1426
1452
|
<ag-grid-angular #agGrid
|
|
1427
1453
|
style="width: 100%;height:98.2vh"
|
|
1428
1454
|
class="ag-theme-balham shared-grid-lib"
|
|
@@ -1469,8 +1495,8 @@ GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
1469
1495
|
[cacheQuickFilter]="false"
|
|
1470
1496
|
>
|
|
1471
1497
|
</ag-grid-angular>
|
|
1472
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
1473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1498
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i5.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", "storeRefreshed", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "sortChanged", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest"] }] });
|
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryComponent, decorators: [{
|
|
1474
1500
|
type: Component,
|
|
1475
1501
|
args: [{ selector: 'lib-basesite-shared-grid-lib', template: `
|
|
1476
1502
|
<ag-grid-angular #agGrid
|
|
@@ -1520,7 +1546,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1520
1546
|
>
|
|
1521
1547
|
</ag-grid-angular>
|
|
1522
1548
|
` }]
|
|
1523
|
-
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: i1$1.DatePipe }, { type: ColumnValueFormatter }]; }, propDecorators: { columnDefs: [{
|
|
1549
|
+
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: i1$1.DatePipe }, { type: ColumnValueFormatter }, { type: TokenSharingService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { columnDefs: [{
|
|
1524
1550
|
type: Input
|
|
1525
1551
|
}], rowData: [{
|
|
1526
1552
|
type: Input
|
|
@@ -1561,20 +1587,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1561
1587
|
args: ['agGrid']
|
|
1562
1588
|
}] } });
|
|
1563
1589
|
|
|
1564
|
-
LicenseManager.setLicenseKey("
|
|
1590
|
+
LicenseManager.setLicenseKey("Using_this_AG_Grid_Enterprise_key_( AG-040308 )_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_( legal@ag-grid.com )___For_help_with_changing_this_key_please_contact_( info@ag-grid.com )___( Basesite )_is_granted_a_( Multiple Applications )_Developer_License_for_( 2 )_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_AG_Grid_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_( 2 )_Production_Environments___This_key_works_with_AG_Grid_Enterprise_versions_released_before_( 18 May 2024 )____[v2]_MTcxNTk4NjgwMDAwMA==60418a73ee93fedd598e5d8aa02b2926");
|
|
1565
1591
|
class GridLibraryModule {
|
|
1566
1592
|
}
|
|
1567
|
-
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1568
|
-
GridLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
1593
|
+
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1594
|
+
GridLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, declarations: [GridLibraryComponent,
|
|
1569
1595
|
ButtonRendererComponent,
|
|
1570
1596
|
CustomTooltip,
|
|
1571
1597
|
DropdownRenderer], imports: [AgGridModule,
|
|
1572
1598
|
HttpClientModule,
|
|
1573
1599
|
CommonModule], exports: [GridLibraryComponent] });
|
|
1574
|
-
GridLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
1600
|
+
GridLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, providers: [DatePipe, GridLibraryService, ColumnValueFormatter], imports: [AgGridModule,
|
|
1575
1601
|
HttpClientModule,
|
|
1576
1602
|
CommonModule] });
|
|
1577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, decorators: [{
|
|
1578
1604
|
type: NgModule,
|
|
1579
1605
|
args: [{
|
|
1580
1606
|
declarations: [
|