basesite-shared-grid-lib 15.10.19 → 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 +37 -25
- package/esm2020/lib/grid-library.module.mjs +6 -6
- package/esm2020/lib/grid-library.service.mjs +48 -16
- 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 +116 -58
- package/fesm2015/basesite-shared-grid-lib.mjs.map +1 -1
- package/fesm2020/basesite-shared-grid-lib.mjs +116 -58
- package/fesm2020/basesite-shared-grid-lib.mjs.map +1 -1
- package/lib/grid-library.component.d.ts +9 -3
- package/lib/grid-library.service.d.ts +5 -1
- package/lib/token-sharing.service.d.ts +9 -0
- package/package.json +7 -5
- package/basesite-shared-grid-lib-15.10.19.tgz +0 -0
|
@@ -1,55 +1,103 @@
|
|
|
1
|
+
import * as i1 from '@angular/common/http';
|
|
2
|
+
import { HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
4
|
import { Injectable, Component, EventEmitter, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
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 i3 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;
|
|
16
|
-
this.
|
|
34
|
+
this._tokenSharingService = _tokenSharingService;
|
|
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 (
|
|
20
|
-
this.baseUrl = 'https://
|
|
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') {
|
|
50
|
+
this.baseUrl = 'https://fcemstest.intel.com/designhub/api';
|
|
21
51
|
}
|
|
22
52
|
else if (environment == 'uat') {
|
|
23
|
-
this.baseUrl = 'https://
|
|
53
|
+
this.baseUrl = 'https://fcemsuat.intel.com/designhub/api';
|
|
24
54
|
}
|
|
25
55
|
else if (environment == 'production') {
|
|
26
|
-
this.baseUrl = 'https://
|
|
56
|
+
this.baseUrl = 'https://fcems.intel.com/designhub/api';
|
|
27
57
|
}
|
|
28
58
|
else {
|
|
29
|
-
this.baseUrl = 'https://localhost:
|
|
59
|
+
this.baseUrl = 'https://localhost:7237/api';
|
|
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
|
-
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig);
|
|
66
|
+
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig, { headers: this.getRequestHeader() });
|
|
37
67
|
}
|
|
38
68
|
getGridState(gridId, loggedInUserId) {
|
|
39
|
-
|
|
69
|
+
debugger;
|
|
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;
|
|
40
88
|
}
|
|
41
89
|
getDataForExport(serverUrl) {
|
|
42
|
-
return this.httpClient.get(`${serverUrl}
|
|
90
|
+
return this.httpClient.get(`${serverUrl}`, { headers: this.getRequestHeader() });
|
|
43
91
|
}
|
|
44
92
|
}
|
|
45
|
-
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
46
|
-
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
47
|
-
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: [{
|
|
48
96
|
type: Injectable,
|
|
49
97
|
args: [{
|
|
50
98
|
providedIn: 'root',
|
|
51
99
|
}]
|
|
52
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
100
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: TokenSharingService }]; } });
|
|
53
101
|
|
|
54
102
|
var types$1 = /*#__PURE__*/Object.freeze({
|
|
55
103
|
__proto__: null
|
|
@@ -872,15 +920,15 @@ class ButtonRendererComponent {
|
|
|
872
920
|
}
|
|
873
921
|
}
|
|
874
922
|
}
|
|
875
|
-
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
876
|
-
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: `
|
|
877
925
|
<button class="btn-actions" type="button" (click)="onClick($event)" [attr.data-title]="params.tooltip">
|
|
878
926
|
<span *ngIf="icon && !label"> <i class="{{ icon }}"></i> </span>
|
|
879
927
|
<span *ngIf="!icon && label">{{ label }}</span>
|
|
880
928
|
<span *ngIf="icon && label"><i class="{{ icon }}"></i> {{ label }}</span>
|
|
881
929
|
</button>
|
|
882
930
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
883
|
-
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: [{
|
|
884
932
|
type: Component,
|
|
885
933
|
args: [{
|
|
886
934
|
selector: 'lib-button-renderer',
|
|
@@ -903,13 +951,13 @@ class CustomTooltip {
|
|
|
903
951
|
params.value = params.valueFormatted;
|
|
904
952
|
}
|
|
905
953
|
}
|
|
906
|
-
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
907
|
-
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">
|
|
908
956
|
<p>
|
|
909
957
|
<span>{{ params.value }}</span>
|
|
910
958
|
</p>
|
|
911
959
|
</div>`, isInline: true });
|
|
912
|
-
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: [{
|
|
913
961
|
type: Component,
|
|
914
962
|
args: [{
|
|
915
963
|
selector: 'tooltip-component',
|
|
@@ -942,8 +990,8 @@ class DropdownRenderer {
|
|
|
942
990
|
}
|
|
943
991
|
}
|
|
944
992
|
}
|
|
945
|
-
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
946
|
-
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: `
|
|
947
995
|
<div class="dropdown">
|
|
948
996
|
<button type="button" class="btn btn-white" data-toggle="dropdown">
|
|
949
997
|
<i class="fa fa-ellipsis-v"></i>
|
|
@@ -953,7 +1001,7 @@ DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
953
1001
|
</div>
|
|
954
1002
|
</div>
|
|
955
1003
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
956
|
-
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: [{
|
|
957
1005
|
type: Component,
|
|
958
1006
|
args: [{
|
|
959
1007
|
selector: 'lib-dropdown-renderer',
|
|
@@ -988,16 +1036,19 @@ class ColumnValueFormatter {
|
|
|
988
1036
|
return params.value;
|
|
989
1037
|
}
|
|
990
1038
|
}
|
|
991
|
-
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
992
|
-
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
993
|
-
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: [{
|
|
994
1042
|
type: Injectable
|
|
995
1043
|
}], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
|
|
996
1044
|
|
|
997
1045
|
class GridLibraryComponent {
|
|
998
|
-
constructor(gridService, formatterService) {
|
|
1046
|
+
constructor(gridService, datePipe, formatterService, _tokenSharingService, cd) {
|
|
999
1047
|
this.gridService = gridService;
|
|
1048
|
+
this.datePipe = datePipe;
|
|
1000
1049
|
this.formatterService = formatterService;
|
|
1050
|
+
this._tokenSharingService = _tokenSharingService;
|
|
1051
|
+
this.cd = cd;
|
|
1001
1052
|
this.pageSize = 20;
|
|
1002
1053
|
this.paginationAutoPageSize = false;
|
|
1003
1054
|
this.rowSelection = 'multiple';
|
|
@@ -1005,6 +1056,7 @@ class GridLibraryComponent {
|
|
|
1005
1056
|
this.cacheBlockSize = 0;
|
|
1006
1057
|
this.rowMultiSelectWithClick = false;
|
|
1007
1058
|
this.floatingFilter = false;
|
|
1059
|
+
//@Input() set token(val: string) { this._tokenSharingService.updateToken(val) };
|
|
1008
1060
|
//event emitters
|
|
1009
1061
|
this.btnClickHandler = new EventEmitter();
|
|
1010
1062
|
this.firstDataRendered = new EventEmitter();
|
|
@@ -1064,13 +1116,7 @@ class GridLibraryComponent {
|
|
|
1064
1116
|
this.gridColumnState = this.agGrid.columnApi.getColumnState();
|
|
1065
1117
|
}
|
|
1066
1118
|
ngOnInit() {
|
|
1067
|
-
this.
|
|
1068
|
-
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1069
|
-
? this.pageSize
|
|
1070
|
-
: this.cacheBlockSize;
|
|
1071
|
-
this.gridService.setBaseUrl(this.environment);
|
|
1072
|
-
this.getGridState();
|
|
1073
|
-
this.getColDef();
|
|
1119
|
+
this._tokenSharingService.updateToken(this.token);
|
|
1074
1120
|
if (this.enableServerSidePaging == true) {
|
|
1075
1121
|
this.rowModelType = 'serverSide';
|
|
1076
1122
|
this.rowData = '';
|
|
@@ -1078,6 +1124,13 @@ class GridLibraryComponent {
|
|
|
1078
1124
|
else {
|
|
1079
1125
|
this.rowModelType = 'clientSide';
|
|
1080
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();
|
|
1081
1134
|
}
|
|
1082
1135
|
onModelUpdated() {
|
|
1083
1136
|
this.setGridState();
|
|
@@ -1086,7 +1139,7 @@ class GridLibraryComponent {
|
|
|
1086
1139
|
if (this.gridId && this.loggedInUser) {
|
|
1087
1140
|
this.gridService.getColDef(this.gridId).pipe(takeUntil(this.unsubscribe$)).subscribe((response) => {
|
|
1088
1141
|
if (response.status == 1) {
|
|
1089
|
-
let coldef = response.
|
|
1142
|
+
let coldef = response.result.map((res) => {
|
|
1090
1143
|
if (res.isButton === false) {
|
|
1091
1144
|
if (res.columnType === 'checkbox') {
|
|
1092
1145
|
return {
|
|
@@ -1197,7 +1250,7 @@ class GridLibraryComponent {
|
|
|
1197
1250
|
};
|
|
1198
1251
|
}
|
|
1199
1252
|
});
|
|
1200
|
-
this.exportColumnsList = response.
|
|
1253
|
+
this.exportColumnsList = response.result;
|
|
1201
1254
|
this.columnDefs = coldef;
|
|
1202
1255
|
this.agGrid.gridOptions?.api?.setColumnDefs(coldef);
|
|
1203
1256
|
this.getGridState();
|
|
@@ -1230,13 +1283,16 @@ class GridLibraryComponent {
|
|
|
1230
1283
|
onGridReady(params) {
|
|
1231
1284
|
this.gridPageSize = this.pageSize;
|
|
1232
1285
|
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
|
+
};
|
|
1233
1292
|
params.api.setServerSideDatasource(new OdataServerSideProvider({
|
|
1234
1293
|
isCaseSensitiveStringFilter: false,
|
|
1235
1294
|
callApi: (options) => fetch(`${this.setExternalFilters(options)}`, {
|
|
1236
|
-
headers:
|
|
1237
|
-
'Content-type': 'application/json',
|
|
1238
|
-
Accept: 'application/json',
|
|
1239
|
-
},
|
|
1295
|
+
headers: reqHeaders,
|
|
1240
1296
|
}).then((response) => response.json()),
|
|
1241
1297
|
afterLoadData: (options, rowData, totalCount) => {
|
|
1242
1298
|
if (!rowData || rowData.length <= 0) {
|
|
@@ -1279,9 +1335,9 @@ class GridLibraryComponent {
|
|
|
1279
1335
|
.pipe(takeUntil(this.unsubscribe$))
|
|
1280
1336
|
.subscribe((response) => {
|
|
1281
1337
|
if (response.status == 1 &&
|
|
1282
|
-
response.
|
|
1283
|
-
response.
|
|
1284
|
-
this.gridColumnState = JSON.parse(response.
|
|
1338
|
+
response.result &&
|
|
1339
|
+
response.result.gridConfig) {
|
|
1340
|
+
this.gridColumnState = JSON.parse(response.result.gridConfig);
|
|
1285
1341
|
this.setGridState();
|
|
1286
1342
|
}
|
|
1287
1343
|
else {
|
|
@@ -1391,8 +1447,8 @@ class GridLibraryComponent {
|
|
|
1391
1447
|
this.unsubscribe$.complete();
|
|
1392
1448
|
}
|
|
1393
1449
|
}
|
|
1394
|
-
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1395
|
-
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: `
|
|
1396
1452
|
<ag-grid-angular #agGrid
|
|
1397
1453
|
style="width: 100%;height:98.2vh"
|
|
1398
1454
|
class="ag-theme-balham shared-grid-lib"
|
|
@@ -1439,8 +1495,8 @@ GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
1439
1495
|
[cacheQuickFilter]="false"
|
|
1440
1496
|
>
|
|
1441
1497
|
</ag-grid-angular>
|
|
1442
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
1443
|
-
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: [{
|
|
1444
1500
|
type: Component,
|
|
1445
1501
|
args: [{ selector: 'lib-basesite-shared-grid-lib', template: `
|
|
1446
1502
|
<ag-grid-angular #agGrid
|
|
@@ -1490,7 +1546,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1490
1546
|
>
|
|
1491
1547
|
</ag-grid-angular>
|
|
1492
1548
|
` }]
|
|
1493
|
-
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: ColumnValueFormatter }]; }, propDecorators: { columnDefs: [{
|
|
1549
|
+
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: i1$1.DatePipe }, { type: ColumnValueFormatter }, { type: TokenSharingService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { columnDefs: [{
|
|
1494
1550
|
type: Input
|
|
1495
1551
|
}], rowData: [{
|
|
1496
1552
|
type: Input
|
|
@@ -1516,6 +1572,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1516
1572
|
type: Input
|
|
1517
1573
|
}], floatingFilter: [{
|
|
1518
1574
|
type: Input
|
|
1575
|
+
}], token: [{
|
|
1576
|
+
type: Input
|
|
1519
1577
|
}], btnClickHandler: [{
|
|
1520
1578
|
type: Output
|
|
1521
1579
|
}], firstDataRendered: [{
|
|
@@ -1529,20 +1587,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1529
1587
|
args: ['agGrid']
|
|
1530
1588
|
}] } });
|
|
1531
1589
|
|
|
1532
|
-
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");
|
|
1533
1591
|
class GridLibraryModule {
|
|
1534
1592
|
}
|
|
1535
|
-
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1536
|
-
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,
|
|
1537
1595
|
ButtonRendererComponent,
|
|
1538
1596
|
CustomTooltip,
|
|
1539
1597
|
DropdownRenderer], imports: [AgGridModule,
|
|
1540
1598
|
HttpClientModule,
|
|
1541
1599
|
CommonModule], exports: [GridLibraryComponent] });
|
|
1542
|
-
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,
|
|
1543
1601
|
HttpClientModule,
|
|
1544
1602
|
CommonModule] });
|
|
1545
|
-
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: [{
|
|
1546
1604
|
type: NgModule,
|
|
1547
1605
|
args: [{
|
|
1548
1606
|
declarations: [
|