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
|
@@ -25,15 +25,15 @@ export class ButtonRendererComponent {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
29
|
-
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
28
|
+
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ButtonRendererComponent, selector: "lib-button-renderer", ngImport: i0, template: `
|
|
30
30
|
<button class="btn-actions" type="button" (click)="onClick($event)" [attr.data-title]="params.tooltip">
|
|
31
31
|
<span *ngIf="icon && !label"> <i class="{{ icon }}"></i> </span>
|
|
32
32
|
<span *ngIf="!icon && label">{{ label }}</span>
|
|
33
33
|
<span *ngIf="icon && label"><i class="{{ icon }}"></i> {{ label }}</span>
|
|
34
34
|
</button>
|
|
35
35
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
37
37
|
type: Component,
|
|
38
38
|
args: [{
|
|
39
39
|
selector: 'lib-button-renderer',
|
|
@@ -46,4 +46,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
46
46
|
`,
|
|
47
47
|
}]
|
|
48
48
|
}] });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXJlbmRlcmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Jhc2VzaXRlLXNoYXJlZC1ncmlkLWxpYi9zcmMvbGliL3JlbmRlcmVyL2J1dHRvbi1yZW5kZXJlci9idXR0b24tcmVuZGVyZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQWExQyxNQUFNLE9BQU8sdUJBQXVCO0lBS2xDLE1BQU0sQ0FBQyxNQUFXO1FBQ2hCLElBQUksQ0FBQyxNQU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B0aGlzLmljb24gPSB0aGlzLnBhcmFtcy5pY29uO1xyXG4gIH1cclxuXHJcbiAgcmVmcmVzaChwYXJhbXM/OiBhbnkpOiBib29sZWFuIHtcclxuICAgIHJldHVybiBmYWxzZTtcclxuICB9XHJcblxyXG4gIG9uQ2xpY2soJGV2ZW50OiBhbnkpIHtcclxuICAgIGlmICh0aGlzLnBhcmFtcy5vbkNsaWNrIGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgLy8gcHV0IGFueXRoaW5nIGludG8gcGFyYW1zIHUgd2FudCBwYXNzIGludG8gcGFyZW50cyBjb21wb25lbnRcclxuICAgICAgY29uc3QgcGFyYW1zID0ge1xyXG4gICAgICAgIGV2ZW50OiAkZXZlbnQsXHJcbiAgICAgICAgcm93RGF0YTogT2JqZWN0LmFzc2lnbih7fSwgdGhpcy5wYXJhbXMubm9kZS5kYXRhLCB7XHJcbiAgICAgICAgICBidXR0b25OYW1lOiB0aGlzLnBhcmFtcy5idXR0b25OYW1lLFxyXG4gICAgICAgICAgYnV0dG9uVGV4dDogdGhpcy5wYXJhbXMubGFiZWwsXHJcbiAgICAgICAgICBidXR0b25JY29uOiB0aGlzLnBhcmFtcy5pY29uLFxyXG4gICAgICAgIH0pLFxyXG4gICAgICB9O1xyXG4gICAgICB0aGlzLnBhcmFtcy5vbkNsaWNrKHBhcmFtcyk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -22,8 +22,8 @@ export class DropdownRenderer {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
26
|
-
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
25
|
+
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DropdownRenderer, selector: "lib-dropdown-renderer", ngImport: i0, template: `
|
|
27
27
|
<div class="dropdown">
|
|
28
28
|
<button type="button" class="btn btn-white" data-toggle="dropdown">
|
|
29
29
|
<i class="fa fa-ellipsis-v"></i>
|
|
@@ -33,7 +33,7 @@ DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
35
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownRenderer, decorators: [{
|
|
37
37
|
type: Component,
|
|
38
38
|
args: [{
|
|
39
39
|
selector: 'lib-dropdown-renderer',
|
|
@@ -49,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
49
49
|
`,
|
|
50
50
|
}]
|
|
51
51
|
}] });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcC1kb3duLXJlbmRlcmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFzZXNpdGUtc2hhcmVkLWdyaWQtbGliL3NyYy9saWIvcmVuZGVyZXIvZHJvcGRvd24tcmVuZGVyZXIvZHJvcC1kb3duLXJlbmRlcmVyLnRzIl0sIm5hbWVzIjpbXS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aXMuZHJvcERvd25EYXRhPXRoaXMucGFyYW1zLmRyb3BEb3duRGF0YT90aGlzLnBhcmFtcy5kcm9wRG93bkRhdGEuc3BsaXQoJywnKTpbXVxyXG4gIH1cclxuXHJcbiAgcmVmcmVzaChwYXJhbXM/OiBhbnkpOiBib29sZWFuIHtcclxuICAgIHJldHVybiBmYWxzZTtcclxuICB9XHJcblxyXG4gIG9uQ2xpY2soJGV2ZW50OiBhbnkpIHtcclxuICAgIGlmICh0aGlzLnBhcmFtcy5vbkNsaWNrIGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgY29uc3QgcGFyYW1zID0ge1xyXG4gICAgICAgIGV2ZW50OiAkZXZlbnQsXHJcbiAgICAgICAgcm93RGF0YTogT2JqZWN0LmFzc2lnbih7fSwgdGhpcy5wYXJhbXMubm9kZS5kYXRhLCB7XHJcbiAgICAgICAgICBidXR0b25OYW1lOiAkZXZlbnQudGFyZ2V0LmlubmVyVGV4dCxcclxuICAgICAgICB9KSxcclxuICAgICAgfTtcclxuICAgICAgY29uc29sZS5sb2coJ0hpdCcsIHBhcmFtcyk7XHJcbiAgICAgIHRoaXMucGFyYW1zLm9uQ2xpY2socGFyYW1zKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -10,13 +10,13 @@ export class CustomTooltip {
|
|
|
10
10
|
params.value = params.valueFormatted;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
14
|
-
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
13
|
+
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomTooltip, deps: [{ token: i1.DatePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomTooltip, selector: "tooltip-component", ngImport: i0, template: ` <div class="custom-tooltip">
|
|
15
15
|
<p>
|
|
16
16
|
<span>{{ params.value }}</span>
|
|
17
17
|
</p>
|
|
18
18
|
</div>`, isInline: true });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomTooltip, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{
|
|
22
22
|
selector: 'tooltip-component',
|
|
@@ -27,4 +27,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
27
27
|
</div>`,
|
|
28
28
|
}]
|
|
29
29
|
}], ctorParameters: function () { return [{ type: i1.DatePipe }]; } });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXRvb2x0aXAtcmVuZGVyZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXNlc2l0ZS1zaGFyZWQtZ3JpZC1saWIvc3JjL2xpYi9yZW5kZXJlci90b29sdGlwLXJlbmRlcmVyL2N1c3RvbS10b29sdGlwLXJlbmRlcmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQVkxQyxNQUFNLE9BQU8sYUFBYTtJQUN4QixZQUFvQixRQUFrQjtRQUFsQixhQUFRLEdBQVIsUUFBUSxDQUFVO0lBQUcsQ0FBQztJQUUxQyxNQUFNLENBQUMsTUFBMEM7UUFDL0MsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNL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SAmIElUb29sdGlwUGFyYW1zKTogdm9pZCB7XHJcbiAgICB0aGlzLnBhcmFtcyA9IHBhcmFtcztcclxuICAgIHBhcmFtcy52YWx1ZSA9IHBhcmFtcy52YWx1ZUZvcm1hdHRlZDtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class TokenSharingService {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.tokenSubject = new BehaviorSubject("");
|
|
7
|
+
this.token$ = this.tokenSubject.asObservable();
|
|
8
|
+
}
|
|
9
|
+
updateToken(newToken) {
|
|
10
|
+
this.tokenSubject.next(newToken);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
TokenSharingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14
|
+
TokenSharingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, providedIn: 'root' });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, decorators: [{
|
|
16
|
+
type: Injectable,
|
|
17
|
+
args: [{
|
|
18
|
+
providedIn: 'root'
|
|
19
|
+
}]
|
|
20
|
+
}], ctorParameters: function () { return []; } });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4tc2hhcmluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFzZXNpdGUtc2hhcmVkLWdyaWQtbGliL3NyYy9saWIvdG9rZW4tc2hhcmluZy5zZX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nN0cmluZyl7XHJcbiAgICB0aGlzLnRva2VuU3ViamVjdC5uZXh0KG5ld1Rva2VuKTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -2,22 +2,52 @@ 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 { __awaiter } from 'tslib';
|
|
6
7
|
import * as i1$1 from '@angular/common';
|
|
7
8
|
import { CommonModule, DatePipe } from '@angular/common';
|
|
8
9
|
import { takeUntil } from 'rxjs/operators';
|
|
9
|
-
import
|
|
10
|
-
import * as i4 from 'ag-grid-angular';
|
|
10
|
+
import * as i5 from 'ag-grid-angular';
|
|
11
11
|
import { AgGridModule } from 'ag-grid-angular';
|
|
12
12
|
import { LicenseManager } from 'ag-grid-enterprise';
|
|
13
13
|
|
|
14
|
+
class TokenSharingService {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.tokenSubject = new BehaviorSubject("");
|
|
17
|
+
this.token$ = this.tokenSubject.asObservable();
|
|
18
|
+
}
|
|
19
|
+
updateToken(newToken) {
|
|
20
|
+
this.tokenSubject.next(newToken);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
TokenSharingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
24
|
+
TokenSharingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, providedIn: 'root' });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TokenSharingService, decorators: [{
|
|
26
|
+
type: Injectable,
|
|
27
|
+
args: [{
|
|
28
|
+
providedIn: 'root'
|
|
29
|
+
}]
|
|
30
|
+
}], ctorParameters: function () { return []; } });
|
|
31
|
+
|
|
14
32
|
class GridLibraryService {
|
|
15
|
-
constructor(httpClient) {
|
|
33
|
+
constructor(httpClient, _tokenSharingService) {
|
|
16
34
|
this.httpClient = httpClient;
|
|
35
|
+
this._tokenSharingService = _tokenSharingService;
|
|
17
36
|
this.baseUrl = 'https://localhost:7237/api';
|
|
37
|
+
this._tokenSharingService.token$.subscribe(res => {
|
|
38
|
+
if (res && res != "") {
|
|
39
|
+
this.accessToken = res;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
18
42
|
}
|
|
19
43
|
setBaseUrl(environment) {
|
|
20
|
-
if (
|
|
44
|
+
if (window.location.host == 'fcelspx.intel.com') {
|
|
45
|
+
this.baseUrl = 'https://fcelspx.intel.com/designhub/api';
|
|
46
|
+
}
|
|
47
|
+
if (window.location.host == 'fcelspx-test.intel.com') {
|
|
48
|
+
this.baseUrl = 'https://fcelspx-test.intel.com/designhub/api';
|
|
49
|
+
}
|
|
50
|
+
else if (environment === 'test') {
|
|
21
51
|
this.baseUrl = 'https://fcemstest.intel.com/designhub/api';
|
|
22
52
|
}
|
|
23
53
|
else if (environment == 'uat') {
|
|
@@ -31,16 +61,19 @@ class GridLibraryService {
|
|
|
31
61
|
}
|
|
32
62
|
}
|
|
33
63
|
getColDef(gridId) {
|
|
34
|
-
return this.httpClient.get(`${this.baseUrl}/GridConfiguration/${gridId}
|
|
64
|
+
return this.httpClient.get(`${this.baseUrl}/GridConfiguration/${gridId}`, { headers: this.getRequestHeader() });
|
|
35
65
|
}
|
|
36
66
|
saveColumnConfig(columnConfig) {
|
|
37
67
|
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig, { headers: this.getRequestHeader() });
|
|
38
68
|
}
|
|
39
69
|
getGridState(gridId, loggedInUserId) {
|
|
70
|
+
debugger;
|
|
71
|
+
console.log("basesite-shared-lib accessToken=> ", this.accessToken);
|
|
40
72
|
return this.httpClient.get(`${this.baseUrl}/GridConfiguration?gridId=${gridId}&userId=${loggedInUserId}`, { headers: this.getRequestHeader() });
|
|
41
73
|
}
|
|
42
|
-
getRequestHeader() {
|
|
74
|
+
getRequestHeader(isLspx = false) {
|
|
43
75
|
let reqHeader;
|
|
76
|
+
console.log("basesite-shared-lib token=> ", this.accessToken);
|
|
44
77
|
if (this.accessToken) {
|
|
45
78
|
reqHeader = new HttpHeaders({
|
|
46
79
|
'Content-Type': 'application/json',
|
|
@@ -55,17 +88,17 @@ class GridLibraryService {
|
|
|
55
88
|
return reqHeader;
|
|
56
89
|
}
|
|
57
90
|
getDataForExport(serverUrl) {
|
|
58
|
-
return this.httpClient.get(`${serverUrl}
|
|
91
|
+
return this.httpClient.get(`${serverUrl}`, { headers: this.getRequestHeader() });
|
|
59
92
|
}
|
|
60
93
|
}
|
|
61
|
-
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
62
|
-
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
94
|
+
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 });
|
|
95
|
+
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryService, providedIn: 'root' });
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryService, decorators: [{
|
|
64
97
|
type: Injectable,
|
|
65
98
|
args: [{
|
|
66
99
|
providedIn: 'root',
|
|
67
100
|
}]
|
|
68
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
101
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: TokenSharingService }]; } });
|
|
69
102
|
|
|
70
103
|
var types$1 = /*#__PURE__*/Object.freeze({
|
|
71
104
|
__proto__: null
|
|
@@ -889,15 +922,15 @@ class ButtonRendererComponent {
|
|
|
889
922
|
}
|
|
890
923
|
}
|
|
891
924
|
}
|
|
892
|
-
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
893
|
-
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
925
|
+
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
926
|
+
ButtonRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ButtonRendererComponent, selector: "lib-button-renderer", ngImport: i0, template: `
|
|
894
927
|
<button class="btn-actions" type="button" (click)="onClick($event)" [attr.data-title]="params.tooltip">
|
|
895
928
|
<span *ngIf="icon && !label"> <i class="{{ icon }}"></i> </span>
|
|
896
929
|
<span *ngIf="!icon && label">{{ label }}</span>
|
|
897
930
|
<span *ngIf="icon && label"><i class="{{ icon }}"></i> {{ label }}</span>
|
|
898
931
|
</button>
|
|
899
932
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonRendererComponent, decorators: [{
|
|
901
934
|
type: Component,
|
|
902
935
|
args: [{
|
|
903
936
|
selector: 'lib-button-renderer',
|
|
@@ -920,13 +953,13 @@ class CustomTooltip {
|
|
|
920
953
|
params.value = params.valueFormatted;
|
|
921
954
|
}
|
|
922
955
|
}
|
|
923
|
-
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
924
|
-
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
956
|
+
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 });
|
|
957
|
+
CustomTooltip.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomTooltip, selector: "tooltip-component", ngImport: i0, template: ` <div class="custom-tooltip">
|
|
925
958
|
<p>
|
|
926
959
|
<span>{{ params.value }}</span>
|
|
927
960
|
</p>
|
|
928
961
|
</div>`, isInline: true });
|
|
929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomTooltip, decorators: [{
|
|
930
963
|
type: Component,
|
|
931
964
|
args: [{
|
|
932
965
|
selector: 'tooltip-component',
|
|
@@ -959,8 +992,8 @@ class DropdownRenderer {
|
|
|
959
992
|
}
|
|
960
993
|
}
|
|
961
994
|
}
|
|
962
|
-
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
963
|
-
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
995
|
+
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
996
|
+
DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DropdownRenderer, selector: "lib-dropdown-renderer", ngImport: i0, template: `
|
|
964
997
|
<div class="dropdown">
|
|
965
998
|
<button type="button" class="btn btn-white" data-toggle="dropdown">
|
|
966
999
|
<i class="fa fa-ellipsis-v"></i>
|
|
@@ -970,7 +1003,7 @@ DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
970
1003
|
</div>
|
|
971
1004
|
</div>
|
|
972
1005
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropdownRenderer, decorators: [{
|
|
974
1007
|
type: Component,
|
|
975
1008
|
args: [{
|
|
976
1009
|
selector: 'lib-dropdown-renderer',
|
|
@@ -1005,17 +1038,19 @@ class ColumnValueFormatter {
|
|
|
1005
1038
|
return params.value;
|
|
1006
1039
|
}
|
|
1007
1040
|
}
|
|
1008
|
-
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1009
|
-
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1010
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1041
|
+
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 });
|
|
1042
|
+
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnValueFormatter });
|
|
1043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnValueFormatter, decorators: [{
|
|
1011
1044
|
type: Injectable
|
|
1012
1045
|
}], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
|
|
1013
1046
|
|
|
1014
1047
|
class GridLibraryComponent {
|
|
1015
|
-
constructor(gridService, datePipe, formatterService) {
|
|
1048
|
+
constructor(gridService, datePipe, formatterService, _tokenSharingService, cd) {
|
|
1016
1049
|
this.gridService = gridService;
|
|
1017
1050
|
this.datePipe = datePipe;
|
|
1018
1051
|
this.formatterService = formatterService;
|
|
1052
|
+
this._tokenSharingService = _tokenSharingService;
|
|
1053
|
+
this.cd = cd;
|
|
1019
1054
|
this.pageSize = 20;
|
|
1020
1055
|
this.paginationAutoPageSize = false;
|
|
1021
1056
|
this.rowSelection = 'multiple';
|
|
@@ -1023,6 +1058,7 @@ class GridLibraryComponent {
|
|
|
1023
1058
|
this.cacheBlockSize = 0;
|
|
1024
1059
|
this.rowMultiSelectWithClick = false;
|
|
1025
1060
|
this.floatingFilter = false;
|
|
1061
|
+
//@Input() set token(val: string) { this._tokenSharingService.updateToken(val) };
|
|
1026
1062
|
//event emitters
|
|
1027
1063
|
this.btnClickHandler = new EventEmitter();
|
|
1028
1064
|
this.firstDataRendered = new EventEmitter();
|
|
@@ -1078,19 +1114,12 @@ class GridLibraryComponent {
|
|
|
1078
1114
|
];
|
|
1079
1115
|
return res;
|
|
1080
1116
|
};
|
|
1081
|
-
this.gridService.accessToken = this.token;
|
|
1082
1117
|
}
|
|
1083
1118
|
onSortChangedEvent() {
|
|
1084
1119
|
this.gridColumnState = this.agGrid.columnApi.getColumnState();
|
|
1085
1120
|
}
|
|
1086
1121
|
ngOnInit() {
|
|
1087
|
-
this.
|
|
1088
|
-
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1089
|
-
? this.pageSize
|
|
1090
|
-
: this.cacheBlockSize;
|
|
1091
|
-
this.gridService.setBaseUrl(this.environment);
|
|
1092
|
-
this.getGridState();
|
|
1093
|
-
this.getColDef();
|
|
1122
|
+
this._tokenSharingService.updateToken(this.token);
|
|
1094
1123
|
if (this.enableServerSidePaging == true) {
|
|
1095
1124
|
this.rowModelType = 'serverSide';
|
|
1096
1125
|
this.rowData = '';
|
|
@@ -1098,6 +1127,13 @@ class GridLibraryComponent {
|
|
|
1098
1127
|
else {
|
|
1099
1128
|
this.rowModelType = 'clientSide';
|
|
1100
1129
|
}
|
|
1130
|
+
this.gridPageSize = this.pageSize;
|
|
1131
|
+
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1132
|
+
? this.pageSize
|
|
1133
|
+
: this.cacheBlockSize;
|
|
1134
|
+
this.gridService.setBaseUrl(this.environment);
|
|
1135
|
+
this.getGridState();
|
|
1136
|
+
this.getColDef();
|
|
1101
1137
|
}
|
|
1102
1138
|
onModelUpdated() {
|
|
1103
1139
|
this.setGridState();
|
|
@@ -1107,7 +1143,7 @@ class GridLibraryComponent {
|
|
|
1107
1143
|
this.gridService.getColDef(this.gridId).pipe(takeUntil(this.unsubscribe$)).subscribe((response) => {
|
|
1108
1144
|
var _a, _b;
|
|
1109
1145
|
if (response.status == 1) {
|
|
1110
|
-
let coldef = response.
|
|
1146
|
+
let coldef = response.result.map((res) => {
|
|
1111
1147
|
if (res.isButton === false) {
|
|
1112
1148
|
if (res.columnType === 'checkbox') {
|
|
1113
1149
|
return {
|
|
@@ -1218,7 +1254,7 @@ class GridLibraryComponent {
|
|
|
1218
1254
|
};
|
|
1219
1255
|
}
|
|
1220
1256
|
});
|
|
1221
|
-
this.exportColumnsList = response.
|
|
1257
|
+
this.exportColumnsList = response.result;
|
|
1222
1258
|
this.columnDefs = coldef;
|
|
1223
1259
|
(_b = (_a = this.agGrid.gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.setColumnDefs(coldef);
|
|
1224
1260
|
this.getGridState();
|
|
@@ -1251,26 +1287,16 @@ class GridLibraryComponent {
|
|
|
1251
1287
|
onGridReady(params) {
|
|
1252
1288
|
this.gridPageSize = this.pageSize;
|
|
1253
1289
|
if (this.enableServerSidePaging == true) {
|
|
1254
|
-
let requestHeaders;
|
|
1255
|
-
//set request headers
|
|
1256
|
-
if (this.gridService.accessToken) {
|
|
1257
|
-
requestHeaders = {
|
|
1258
|
-
'Content-type': 'application/json',
|
|
1259
|
-
Accept: 'application/json',
|
|
1260
|
-
'Authorization': 'Bearer ' + this.gridService.accessToken
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
else {
|
|
1264
|
-
requestHeaders = {
|
|
1265
|
-
'Content-type': 'application/json',
|
|
1266
|
-
Accept: 'application/json'
|
|
1267
|
-
};
|
|
1268
|
-
}
|
|
1269
1290
|
//call api
|
|
1291
|
+
let reqHeaders = {
|
|
1292
|
+
'Content-type': 'application/json',
|
|
1293
|
+
Accept: 'application/json',
|
|
1294
|
+
'Authorization': 'Bearer ' + this.token
|
|
1295
|
+
};
|
|
1270
1296
|
params.api.setServerSideDatasource(new OdataServerSideProvider({
|
|
1271
1297
|
isCaseSensitiveStringFilter: false,
|
|
1272
1298
|
callApi: (options) => fetch(`${this.setExternalFilters(options)}`, {
|
|
1273
|
-
headers:
|
|
1299
|
+
headers: reqHeaders,
|
|
1274
1300
|
}).then((response) => response.json()),
|
|
1275
1301
|
afterLoadData: (options, rowData, totalCount) => {
|
|
1276
1302
|
if (!rowData || rowData.length <= 0) {
|
|
@@ -1313,9 +1339,9 @@ class GridLibraryComponent {
|
|
|
1313
1339
|
.pipe(takeUntil(this.unsubscribe$))
|
|
1314
1340
|
.subscribe((response) => {
|
|
1315
1341
|
if (response.status == 1 &&
|
|
1316
|
-
response.
|
|
1317
|
-
response.
|
|
1318
|
-
this.gridColumnState = JSON.parse(response.
|
|
1342
|
+
response.result &&
|
|
1343
|
+
response.result.gridConfig) {
|
|
1344
|
+
this.gridColumnState = JSON.parse(response.result.gridConfig);
|
|
1319
1345
|
this.setGridState();
|
|
1320
1346
|
}
|
|
1321
1347
|
else {
|
|
@@ -1426,8 +1452,8 @@ class GridLibraryComponent {
|
|
|
1426
1452
|
this.unsubscribe$.complete();
|
|
1427
1453
|
}
|
|
1428
1454
|
}
|
|
1429
|
-
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1430
|
-
GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.
|
|
1455
|
+
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 });
|
|
1456
|
+
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: `
|
|
1431
1457
|
<ag-grid-angular #agGrid
|
|
1432
1458
|
style="width: 100%;height:98.2vh"
|
|
1433
1459
|
class="ag-theme-balham shared-grid-lib"
|
|
@@ -1474,8 +1500,8 @@ GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
1474
1500
|
[cacheQuickFilter]="false"
|
|
1475
1501
|
>
|
|
1476
1502
|
</ag-grid-angular>
|
|
1477
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
1478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1503
|
+
`, 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"] }] });
|
|
1504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryComponent, decorators: [{
|
|
1479
1505
|
type: Component,
|
|
1480
1506
|
args: [{ selector: 'lib-basesite-shared-grid-lib', template: `
|
|
1481
1507
|
<ag-grid-angular #agGrid
|
|
@@ -1525,7 +1551,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1525
1551
|
>
|
|
1526
1552
|
</ag-grid-angular>
|
|
1527
1553
|
` }]
|
|
1528
|
-
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: i1$1.DatePipe }, { type: ColumnValueFormatter }]; }, propDecorators: { columnDefs: [{
|
|
1554
|
+
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: i1$1.DatePipe }, { type: ColumnValueFormatter }, { type: TokenSharingService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { columnDefs: [{
|
|
1529
1555
|
type: Input
|
|
1530
1556
|
}], rowData: [{
|
|
1531
1557
|
type: Input
|
|
@@ -1566,20 +1592,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1566
1592
|
args: ['agGrid']
|
|
1567
1593
|
}] } });
|
|
1568
1594
|
|
|
1569
|
-
LicenseManager.setLicenseKey("
|
|
1595
|
+
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");
|
|
1570
1596
|
class GridLibraryModule {
|
|
1571
1597
|
}
|
|
1572
|
-
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1573
|
-
GridLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
1598
|
+
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1599
|
+
GridLibraryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, declarations: [GridLibraryComponent,
|
|
1574
1600
|
ButtonRendererComponent,
|
|
1575
1601
|
CustomTooltip,
|
|
1576
1602
|
DropdownRenderer], imports: [AgGridModule,
|
|
1577
1603
|
HttpClientModule,
|
|
1578
1604
|
CommonModule], exports: [GridLibraryComponent] });
|
|
1579
|
-
GridLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
1605
|
+
GridLibraryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, providers: [DatePipe, GridLibraryService, ColumnValueFormatter], imports: [AgGridModule,
|
|
1580
1606
|
HttpClientModule,
|
|
1581
1607
|
CommonModule] });
|
|
1582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridLibraryModule, decorators: [{
|
|
1583
1609
|
type: NgModule,
|
|
1584
1610
|
args: [{
|
|
1585
1611
|
declarations: [
|