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
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXJlbmRlcmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Jhc2VzaXRlLXNoYXJlZC1ncmlkLWxpYi9zcmMvbGliL3JlbmRlcmVyL2J1dHRvbi1yZW5kZXJlci9idXR0b24tcmVuZGVyZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQWExQyxNQUFNLE9BQU8sdUJBQXVCO0lBS2xDLE1BQU0sQ0FBQyx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W1zLmxhYmVsIHx8IG51bGw7XHJcbiAgICB0aGlzLmljb24gPSB0aGlzLnBhcmFtcy5pY29uO1xyXG4gIH1cclxuXHJcbiAgcmVmcmVzaChwYXJhbXM/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcC1kb3duLXJlbmRlcmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFzZXNpdGUtc2hhcmVkLWdyaWQtbGliL3NyYy9saWIvcmVuZGVyZXIvZHJvcGRvd24tcmVuZGVyZXIvZHJvcC1kb3duLXJ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BhcmFtcyA9IHBhcmFtcztcclxuICAgIHRoaXMuZHJvcERvd25EYXRhPXRoaXMucGFyYW1zLmRyb3BEb3duRGF0YT90aGlzLnBhcmFtcy5kcm9wRG93bkRhdGEuc3BsaXQoJywnKTpbXVxyXG4gIH1cclxuXHJcbiAgcmVmcmVzaChwYXJhbXM/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXRvb2x0aXAtcmVuZGVyZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXNlc2l0ZS1zaGFyZWQtZ3JpZC1saWIvc3JjL2xpYi9yZW5kZXJlci90b29sdGlwLXJlbmRlcmVyL2N1c3RvbS10b29sdGlwLXJlbmRlcmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7OztBQVkxQyxNQUFNLE9BQU8sYUFBYTtJQUN4QixZQUFvQixRQUFrQjtRQUFsQixhQUFRLEdBQVIsUUFBUSxDQUFVO0lBQUcsQ0FBQztJQUUxQyxNQUFNLENBQUMsTUFBMEM7UUFDL0MsSU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FyYW1zOiB7IGNvbG9yOiBzdHJpbmcgfSAmIElUb29sdGlwUGFyYW1zKTogdm9pZCB7XHJcbiAgICB0aGlzLnBhcmFtcyA9IHBhcmFtcztcclxuICAgIHBhcmFtcy52YWx1ZSA9IHBhcmFtcy52YWx1ZUZvcm1hdHRlZDtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4tc2hhcmluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFzZXNpdGUtc2hhcmVkLWdyaWQtbGliL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4gIHVwZGF0ZVRva2VuKG5ld1Rva2VuOnN0cmluZyl7XHJcbiAgICB0aGlzLnRva2VuU3ViamVjdC5uZXh0KG5ld1Rva2VuKTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -1,56 +1,104 @@
|
|
|
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 { __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 i3 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;
|
|
17
|
-
this.
|
|
35
|
+
this._tokenSharingService = _tokenSharingService;
|
|
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 (
|
|
21
|
-
this.baseUrl = 'https://
|
|
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') {
|
|
51
|
+
this.baseUrl = 'https://fcemstest.intel.com/designhub/api';
|
|
22
52
|
}
|
|
23
53
|
else if (environment == 'uat') {
|
|
24
|
-
this.baseUrl = 'https://
|
|
54
|
+
this.baseUrl = 'https://fcemsuat.intel.com/designhub/api';
|
|
25
55
|
}
|
|
26
56
|
else if (environment == 'production') {
|
|
27
|
-
this.baseUrl = 'https://
|
|
57
|
+
this.baseUrl = 'https://fcems.intel.com/designhub/api';
|
|
28
58
|
}
|
|
29
59
|
else {
|
|
30
|
-
this.baseUrl = 'https://localhost:
|
|
60
|
+
this.baseUrl = 'https://localhost:7237/api';
|
|
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
|
-
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig);
|
|
67
|
+
return this.httpClient.post(`${this.baseUrl}/GridConfiguration/saveUIUserGridConfiguration`, columnConfig, { headers: this.getRequestHeader() });
|
|
38
68
|
}
|
|
39
69
|
getGridState(gridId, loggedInUserId) {
|
|
40
|
-
|
|
70
|
+
debugger;
|
|
71
|
+
console.log("basesite-shared-lib accessToken=> ", this.accessToken);
|
|
72
|
+
return this.httpClient.get(`${this.baseUrl}/GridConfiguration?gridId=${gridId}&userId=${loggedInUserId}`, { headers: this.getRequestHeader() });
|
|
73
|
+
}
|
|
74
|
+
getRequestHeader(isLspx = false) {
|
|
75
|
+
let reqHeader;
|
|
76
|
+
console.log("basesite-shared-lib token=> ", this.accessToken);
|
|
77
|
+
if (this.accessToken) {
|
|
78
|
+
reqHeader = new HttpHeaders({
|
|
79
|
+
'Content-Type': 'application/json',
|
|
80
|
+
'Authorization': 'Bearer ' + this.accessToken
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
reqHeader = new HttpHeaders({
|
|
85
|
+
'Content-Type': 'application/json',
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return reqHeader;
|
|
41
89
|
}
|
|
42
90
|
getDataForExport(serverUrl) {
|
|
43
|
-
return this.httpClient.get(`${serverUrl}
|
|
91
|
+
return this.httpClient.get(`${serverUrl}`, { headers: this.getRequestHeader() });
|
|
44
92
|
}
|
|
45
93
|
}
|
|
46
|
-
GridLibraryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
47
|
-
GridLibraryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
48
|
-
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: [{
|
|
49
97
|
type: Injectable,
|
|
50
98
|
args: [{
|
|
51
99
|
providedIn: 'root',
|
|
52
100
|
}]
|
|
53
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
101
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: TokenSharingService }]; } });
|
|
54
102
|
|
|
55
103
|
var types$1 = /*#__PURE__*/Object.freeze({
|
|
56
104
|
__proto__: null
|
|
@@ -874,15 +922,15 @@ class ButtonRendererComponent {
|
|
|
874
922
|
}
|
|
875
923
|
}
|
|
876
924
|
}
|
|
877
|
-
ButtonRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
878
|
-
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: `
|
|
879
927
|
<button class="btn-actions" type="button" (click)="onClick($event)" [attr.data-title]="params.tooltip">
|
|
880
928
|
<span *ngIf="icon && !label"> <i class="{{ icon }}"></i> </span>
|
|
881
929
|
<span *ngIf="!icon && label">{{ label }}</span>
|
|
882
930
|
<span *ngIf="icon && label"><i class="{{ icon }}"></i> {{ label }}</span>
|
|
883
931
|
</button>
|
|
884
932
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
885
|
-
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: [{
|
|
886
934
|
type: Component,
|
|
887
935
|
args: [{
|
|
888
936
|
selector: 'lib-button-renderer',
|
|
@@ -905,13 +953,13 @@ class CustomTooltip {
|
|
|
905
953
|
params.value = params.valueFormatted;
|
|
906
954
|
}
|
|
907
955
|
}
|
|
908
|
-
CustomTooltip.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
909
|
-
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">
|
|
910
958
|
<p>
|
|
911
959
|
<span>{{ params.value }}</span>
|
|
912
960
|
</p>
|
|
913
961
|
</div>`, isInline: true });
|
|
914
|
-
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: [{
|
|
915
963
|
type: Component,
|
|
916
964
|
args: [{
|
|
917
965
|
selector: 'tooltip-component',
|
|
@@ -944,8 +992,8 @@ class DropdownRenderer {
|
|
|
944
992
|
}
|
|
945
993
|
}
|
|
946
994
|
}
|
|
947
|
-
DropdownRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
948
|
-
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: `
|
|
949
997
|
<div class="dropdown">
|
|
950
998
|
<button type="button" class="btn btn-white" data-toggle="dropdown">
|
|
951
999
|
<i class="fa fa-ellipsis-v"></i>
|
|
@@ -955,7 +1003,7 @@ DropdownRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
955
1003
|
</div>
|
|
956
1004
|
</div>
|
|
957
1005
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
958
|
-
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: [{
|
|
959
1007
|
type: Component,
|
|
960
1008
|
args: [{
|
|
961
1009
|
selector: 'lib-dropdown-renderer',
|
|
@@ -990,16 +1038,19 @@ class ColumnValueFormatter {
|
|
|
990
1038
|
return params.value;
|
|
991
1039
|
}
|
|
992
1040
|
}
|
|
993
|
-
ColumnValueFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
994
|
-
ColumnValueFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
995
|
-
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: [{
|
|
996
1044
|
type: Injectable
|
|
997
1045
|
}], ctorParameters: function () { return [{ type: i1$1.DatePipe }]; } });
|
|
998
1046
|
|
|
999
1047
|
class GridLibraryComponent {
|
|
1000
|
-
constructor(gridService, formatterService) {
|
|
1048
|
+
constructor(gridService, datePipe, formatterService, _tokenSharingService, cd) {
|
|
1001
1049
|
this.gridService = gridService;
|
|
1050
|
+
this.datePipe = datePipe;
|
|
1002
1051
|
this.formatterService = formatterService;
|
|
1052
|
+
this._tokenSharingService = _tokenSharingService;
|
|
1053
|
+
this.cd = cd;
|
|
1003
1054
|
this.pageSize = 20;
|
|
1004
1055
|
this.paginationAutoPageSize = false;
|
|
1005
1056
|
this.rowSelection = 'multiple';
|
|
@@ -1007,6 +1058,7 @@ class GridLibraryComponent {
|
|
|
1007
1058
|
this.cacheBlockSize = 0;
|
|
1008
1059
|
this.rowMultiSelectWithClick = false;
|
|
1009
1060
|
this.floatingFilter = false;
|
|
1061
|
+
//@Input() set token(val: string) { this._tokenSharingService.updateToken(val) };
|
|
1010
1062
|
//event emitters
|
|
1011
1063
|
this.btnClickHandler = new EventEmitter();
|
|
1012
1064
|
this.firstDataRendered = new EventEmitter();
|
|
@@ -1067,13 +1119,7 @@ class GridLibraryComponent {
|
|
|
1067
1119
|
this.gridColumnState = this.agGrid.columnApi.getColumnState();
|
|
1068
1120
|
}
|
|
1069
1121
|
ngOnInit() {
|
|
1070
|
-
this.
|
|
1071
|
-
this.cacheBlockSize = this.cacheBlockSize = 0
|
|
1072
|
-
? this.pageSize
|
|
1073
|
-
: this.cacheBlockSize;
|
|
1074
|
-
this.gridService.setBaseUrl(this.environment);
|
|
1075
|
-
this.getGridState();
|
|
1076
|
-
this.getColDef();
|
|
1122
|
+
this._tokenSharingService.updateToken(this.token);
|
|
1077
1123
|
if (this.enableServerSidePaging == true) {
|
|
1078
1124
|
this.rowModelType = 'serverSide';
|
|
1079
1125
|
this.rowData = '';
|
|
@@ -1081,6 +1127,13 @@ class GridLibraryComponent {
|
|
|
1081
1127
|
else {
|
|
1082
1128
|
this.rowModelType = 'clientSide';
|
|
1083
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();
|
|
1084
1137
|
}
|
|
1085
1138
|
onModelUpdated() {
|
|
1086
1139
|
this.setGridState();
|
|
@@ -1090,7 +1143,7 @@ class GridLibraryComponent {
|
|
|
1090
1143
|
this.gridService.getColDef(this.gridId).pipe(takeUntil(this.unsubscribe$)).subscribe((response) => {
|
|
1091
1144
|
var _a, _b;
|
|
1092
1145
|
if (response.status == 1) {
|
|
1093
|
-
let coldef = response.
|
|
1146
|
+
let coldef = response.result.map((res) => {
|
|
1094
1147
|
if (res.isButton === false) {
|
|
1095
1148
|
if (res.columnType === 'checkbox') {
|
|
1096
1149
|
return {
|
|
@@ -1201,7 +1254,7 @@ class GridLibraryComponent {
|
|
|
1201
1254
|
};
|
|
1202
1255
|
}
|
|
1203
1256
|
});
|
|
1204
|
-
this.exportColumnsList = response.
|
|
1257
|
+
this.exportColumnsList = response.result;
|
|
1205
1258
|
this.columnDefs = coldef;
|
|
1206
1259
|
(_b = (_a = this.agGrid.gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.setColumnDefs(coldef);
|
|
1207
1260
|
this.getGridState();
|
|
@@ -1234,13 +1287,16 @@ class GridLibraryComponent {
|
|
|
1234
1287
|
onGridReady(params) {
|
|
1235
1288
|
this.gridPageSize = this.pageSize;
|
|
1236
1289
|
if (this.enableServerSidePaging == true) {
|
|
1290
|
+
//call api
|
|
1291
|
+
let reqHeaders = {
|
|
1292
|
+
'Content-type': 'application/json',
|
|
1293
|
+
Accept: 'application/json',
|
|
1294
|
+
'Authorization': 'Bearer ' + this.token
|
|
1295
|
+
};
|
|
1237
1296
|
params.api.setServerSideDatasource(new OdataServerSideProvider({
|
|
1238
1297
|
isCaseSensitiveStringFilter: false,
|
|
1239
1298
|
callApi: (options) => fetch(`${this.setExternalFilters(options)}`, {
|
|
1240
|
-
headers:
|
|
1241
|
-
'Content-type': 'application/json',
|
|
1242
|
-
Accept: 'application/json',
|
|
1243
|
-
},
|
|
1299
|
+
headers: reqHeaders,
|
|
1244
1300
|
}).then((response) => response.json()),
|
|
1245
1301
|
afterLoadData: (options, rowData, totalCount) => {
|
|
1246
1302
|
if (!rowData || rowData.length <= 0) {
|
|
@@ -1283,9 +1339,9 @@ class GridLibraryComponent {
|
|
|
1283
1339
|
.pipe(takeUntil(this.unsubscribe$))
|
|
1284
1340
|
.subscribe((response) => {
|
|
1285
1341
|
if (response.status == 1 &&
|
|
1286
|
-
response.
|
|
1287
|
-
response.
|
|
1288
|
-
this.gridColumnState = JSON.parse(response.
|
|
1342
|
+
response.result &&
|
|
1343
|
+
response.result.gridConfig) {
|
|
1344
|
+
this.gridColumnState = JSON.parse(response.result.gridConfig);
|
|
1289
1345
|
this.setGridState();
|
|
1290
1346
|
}
|
|
1291
1347
|
else {
|
|
@@ -1396,8 +1452,8 @@ class GridLibraryComponent {
|
|
|
1396
1452
|
this.unsubscribe$.complete();
|
|
1397
1453
|
}
|
|
1398
1454
|
}
|
|
1399
|
-
GridLibraryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1400
|
-
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: `
|
|
1401
1457
|
<ag-grid-angular #agGrid
|
|
1402
1458
|
style="width: 100%;height:98.2vh"
|
|
1403
1459
|
class="ag-theme-balham shared-grid-lib"
|
|
@@ -1444,8 +1500,8 @@ GridLibraryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
1444
1500
|
[cacheQuickFilter]="false"
|
|
1445
1501
|
>
|
|
1446
1502
|
</ag-grid-angular>
|
|
1447
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
1448
|
-
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: [{
|
|
1449
1505
|
type: Component,
|
|
1450
1506
|
args: [{ selector: 'lib-basesite-shared-grid-lib', template: `
|
|
1451
1507
|
<ag-grid-angular #agGrid
|
|
@@ -1495,7 +1551,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1495
1551
|
>
|
|
1496
1552
|
</ag-grid-angular>
|
|
1497
1553
|
` }]
|
|
1498
|
-
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: ColumnValueFormatter }]; }, propDecorators: { columnDefs: [{
|
|
1554
|
+
}], ctorParameters: function () { return [{ type: GridLibraryService }, { type: i1$1.DatePipe }, { type: ColumnValueFormatter }, { type: TokenSharingService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { columnDefs: [{
|
|
1499
1555
|
type: Input
|
|
1500
1556
|
}], rowData: [{
|
|
1501
1557
|
type: Input
|
|
@@ -1521,6 +1577,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1521
1577
|
type: Input
|
|
1522
1578
|
}], floatingFilter: [{
|
|
1523
1579
|
type: Input
|
|
1580
|
+
}], token: [{
|
|
1581
|
+
type: Input
|
|
1524
1582
|
}], btnClickHandler: [{
|
|
1525
1583
|
type: Output
|
|
1526
1584
|
}], firstDataRendered: [{
|
|
@@ -1534,20 +1592,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.6", ngImpor
|
|
|
1534
1592
|
args: ['agGrid']
|
|
1535
1593
|
}] } });
|
|
1536
1594
|
|
|
1537
|
-
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");
|
|
1538
1596
|
class GridLibraryModule {
|
|
1539
1597
|
}
|
|
1540
|
-
GridLibraryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1541
|
-
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,
|
|
1542
1600
|
ButtonRendererComponent,
|
|
1543
1601
|
CustomTooltip,
|
|
1544
1602
|
DropdownRenderer], imports: [AgGridModule,
|
|
1545
1603
|
HttpClientModule,
|
|
1546
1604
|
CommonModule], exports: [GridLibraryComponent] });
|
|
1547
|
-
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,
|
|
1548
1606
|
HttpClientModule,
|
|
1549
1607
|
CommonModule] });
|
|
1550
|
-
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: [{
|
|
1551
1609
|
type: NgModule,
|
|
1552
1610
|
args: [{
|
|
1553
1611
|
declarations: [
|