intelica-library-project 20.0.13 → 20.0.15
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.
|
@@ -13,7 +13,7 @@ import { TooltipModule, Tooltip } from 'primeng/tooltip';
|
|
|
13
13
|
import { GlobalTermService, TermPipe, FormatDateConstants, ConfigService, AlertService, GlobalFavoriteService, Color, getColor } from 'intelica-library-base';
|
|
14
14
|
import * as i4 from 'primeng/button';
|
|
15
15
|
import { ButtonModule, Button } from 'primeng/button';
|
|
16
|
-
import { Subscription, Subject, BehaviorSubject, firstValueFrom, map, distinctUntilChanged,
|
|
16
|
+
import { Subscription, Subject, BehaviorSubject, firstValueFrom, map, distinctUntilChanged, shareReplay, throwError } from 'rxjs';
|
|
17
17
|
import { BadgeModule } from 'primeng/badge';
|
|
18
18
|
import * as i6 from 'primeng/checkbox';
|
|
19
19
|
import { CheckboxModule } from 'primeng/checkbox';
|
|
@@ -2305,7 +2305,8 @@ function dispatchQuicksightEvent(event, outputs) {
|
|
|
2305
2305
|
class DashboardQsComponent {
|
|
2306
2306
|
sharedService = inject(Shared);
|
|
2307
2307
|
alertService = inject(AlertService);
|
|
2308
|
-
|
|
2308
|
+
termPipe = inject(TermPipe);
|
|
2309
|
+
GlobalTermService = inject(GlobalTermService);
|
|
2309
2310
|
route = inject(ActivatedRoute);
|
|
2310
2311
|
sessionExpiredShown = false;
|
|
2311
2312
|
containers;
|
|
@@ -2360,15 +2361,11 @@ class DashboardQsComponent {
|
|
|
2360
2361
|
this.isLoading.set(false);
|
|
2361
2362
|
}
|
|
2362
2363
|
}
|
|
2363
|
-
t(key, fallback) {
|
|
2364
|
-
const value = this.term.transform(key);
|
|
2365
|
-
return value && value !== '-' ? value : fallback;
|
|
2366
|
-
}
|
|
2367
2364
|
async handleSessionExpired() {
|
|
2368
2365
|
if (this.sessionExpiredShown)
|
|
2369
2366
|
return;
|
|
2370
2367
|
this.sessionExpiredShown = true;
|
|
2371
|
-
const { isConfirmed } = await this.alertService.confirm(this.
|
|
2368
|
+
const { isConfirmed } = await this.alertService.confirm(this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_TITLE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_MESSAGE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_CONFIRM', this.GlobalTermService.languageCode), this.termPipe.transform('CANCEL', this.GlobalTermService.languageCode));
|
|
2372
2369
|
if (isConfirmed)
|
|
2373
2370
|
window.location.reload();
|
|
2374
2371
|
else
|
|
@@ -2388,7 +2385,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
|
|
|
2388
2385
|
class DashboardQsInteractiveComponent {
|
|
2389
2386
|
sharedService = inject(Shared);
|
|
2390
2387
|
alertService = inject(AlertService);
|
|
2391
|
-
|
|
2388
|
+
termPipe = inject(TermPipe);
|
|
2389
|
+
GlobalTermService = inject(GlobalTermService);
|
|
2392
2390
|
route = inject(ActivatedRoute);
|
|
2393
2391
|
sessionExpiredShown = false;
|
|
2394
2392
|
containers;
|
|
@@ -2453,15 +2451,11 @@ class DashboardQsInteractiveComponent {
|
|
|
2453
2451
|
this.isLoading.set(false);
|
|
2454
2452
|
}
|
|
2455
2453
|
}
|
|
2456
|
-
t(key, fallback) {
|
|
2457
|
-
const value = this.term.transform(key);
|
|
2458
|
-
return value && value !== '-' ? value : fallback;
|
|
2459
|
-
}
|
|
2460
2454
|
async handleSessionExpired() {
|
|
2461
2455
|
if (this.sessionExpiredShown)
|
|
2462
2456
|
return;
|
|
2463
2457
|
this.sessionExpiredShown = true;
|
|
2464
|
-
const { isConfirmed } = await this.alertService.confirm(this.
|
|
2458
|
+
const { isConfirmed } = await this.alertService.confirm(this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_TITLE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_MESSAGE', this.GlobalTermService.languageCode), this.termPipe.transform('QUICKSIGHT_SESSION_EXPIRED_CONFIRM', this.GlobalTermService.languageCode), this.termPipe.transform('CANCEL', this.GlobalTermService.languageCode));
|
|
2465
2459
|
if (isConfirmed)
|
|
2466
2460
|
window.location.reload();
|
|
2467
2461
|
else
|
|
@@ -2558,29 +2552,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
|
|
|
2558
2552
|
args: [{ selector: "intelica-add-favorites", imports: [Button, TermPipe, NgClass], template: "<p-button class=\"prButton\" severity=\"secondary\" [disabled]=\"isToggling\" (onClick)=\"toggleFavorite()\">\n\t<i class=\"icon p-button-icon-left\" [ngClass]=\"iconClass\" pButtonIcon></i>\n\t<span pButtonLabel>{{ \"ADD_TO_FAVORITES\" | term : termService.languageCode }}</span>\n</p-button>\n" }]
|
|
2559
2553
|
}], propDecorators: { favoriteChanged: [{ type: i0.Output, args: ["favoriteChanged"] }] } });
|
|
2560
2554
|
|
|
2561
|
-
class
|
|
2562
|
-
|
|
2555
|
+
class ElementHTTPService {
|
|
2556
|
+
httpClient = inject(HttpClient);
|
|
2563
2557
|
_configService = inject(ConfigService);
|
|
2564
2558
|
GetElements(pageRoot) {
|
|
2565
|
-
return this.
|
|
2559
|
+
return this.httpClient.get(`${this._configService.environment?.securityPath}/Page/GetAvailableElementsByPageRoot/${pageRoot}`);
|
|
2566
2560
|
}
|
|
2567
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type:
|
|
2568
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type:
|
|
2561
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ElementHTTPService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2562
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ElementHTTPService, providedIn: "root" });
|
|
2569
2563
|
}
|
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type:
|
|
2564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ElementHTTPService, decorators: [{
|
|
2571
2565
|
type: Injectable,
|
|
2572
2566
|
args: [{ providedIn: "root" }]
|
|
2573
2567
|
}] });
|
|
2574
2568
|
|
|
2575
2569
|
class ElementService {
|
|
2576
2570
|
Elements = [];
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
Initialize
|
|
2580
|
-
if (
|
|
2581
|
-
|
|
2582
|
-
this.
|
|
2583
|
-
|
|
2571
|
+
ElementsReady = signal(false, ...(ngDevMode ? [{ debugName: "ElementsReady" }] : []));
|
|
2572
|
+
elementService = inject(ElementHTTPService);
|
|
2573
|
+
Initialize(pageRoot) {
|
|
2574
|
+
if (pageRoot == "")
|
|
2575
|
+
this.ElementsReady.set(true);
|
|
2576
|
+
this.elementService.GetElements(pageRoot).subscribe(response => {
|
|
2577
|
+
this.Elements = response;
|
|
2578
|
+
this.ElementsReady.set(true);
|
|
2579
|
+
});
|
|
2584
2580
|
}
|
|
2585
2581
|
HasElement(description) {
|
|
2586
2582
|
return this.Elements.some(x => x.elementDescription === description);
|
|
@@ -3395,5 +3391,5 @@ class PageInformation {
|
|
|
3395
3391
|
* Generated bundle index. Do not edit.
|
|
3396
3392
|
*/
|
|
3397
3393
|
|
|
3398
|
-
export { AddFavoritesComponent, AddFavoritesService, BreadCrumbComponent, ColumnComponent, ColumnGroupComponent, DashboardQsComponent, DashboardQsInteractiveComponent, EchartComponent, EchartService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants,
|
|
3394
|
+
export { AddFavoritesComponent, AddFavoritesService, BreadCrumbComponent, ColumnComponent, ColumnGroupComponent, DashboardQsComponent, DashboardQsInteractiveComponent, EchartComponent, EchartService, ElementHTTPService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageInformation, QUICKSIGHT_AUTH_ERROR_CODES, QuicksightEventName, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, Shared, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TitleComponent, TruncatePipe, darkenColor, dispatchQuicksightEvent, isQuicksightSessionExpiredEvent };
|
|
3399
3395
|
//# sourceMappingURL=intelica-library-project.mjs.map
|