intelica-library-project 20.0.2 → 20.0.3
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/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, OnInit, EventEmitter, OnChanges, TemplateRef, AfterContentInit, QueryList, ChangeDetectorRef, SimpleChanges, AfterViewInit, ElementRef, PipeTransform } from '@angular/core';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
4
5
|
import { Subscription, Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
5
6
|
import { GlobalTermService, DateMode } from 'intelica-library-base';
|
|
6
7
|
import * as echarts from 'echarts';
|
|
7
8
|
import { EChartsOption, LabelFormatterCallback, DefaultLabelFormatterCallbackParams, TooltipComponentFormatterCallback, TooltipComponentFormatterCallbackParams } from 'echarts';
|
|
9
|
+
import { MenuItem } from 'primeng/api';
|
|
10
|
+
import { DashboardExperience, VisualExperience } from 'amazon-quicksight-embedding-sdk';
|
|
8
11
|
import { Location } from '@angular/common';
|
|
9
12
|
|
|
10
13
|
interface SearchInputModel {
|
|
@@ -494,6 +497,180 @@ declare class EchartComponent implements AfterViewInit {
|
|
|
494
497
|
static ɵcmp: i0.ɵɵComponentDeclaration<EchartComponent, "intelica-echart", never, { "config": { "alias": "config"; "required": false; }; "id": { "alias": "id"; "required": false; }; "renderer": { "alias": "renderer"; "required": false; }; "containerStyle": { "alias": "containerStyle"; "required": false; }; }, { "event": "event"; }, never, never, true, never>;
|
|
495
498
|
}
|
|
496
499
|
|
|
500
|
+
declare class BreadCrumbComponent {
|
|
501
|
+
fullItems: i0.InputSignal<MenuItem[]>;
|
|
502
|
+
itemClick: i0.OutputEmitterRef<MenuItem>;
|
|
503
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadCrumbComponent, never>;
|
|
504
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadCrumbComponent, "intelica-bread-crumb", never, { "fullItems": { "alias": "fullItems"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
declare class TitleComponent {
|
|
508
|
+
title: i0.InputSignal<string>;
|
|
509
|
+
back: i0.OutputEmitterRef<void>;
|
|
510
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitleComponent, never>;
|
|
511
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "intelica-title", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "back": "back"; }, never, never, true, never>;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
interface EmbedVisualCommand {
|
|
515
|
+
dashboardId: string;
|
|
516
|
+
sheetId: string;
|
|
517
|
+
visualId: string;
|
|
518
|
+
parameters: Record<string, string[]>;
|
|
519
|
+
}
|
|
520
|
+
interface EmbedWithoutVisualCommand {
|
|
521
|
+
dashboardId: string;
|
|
522
|
+
sheetId: string;
|
|
523
|
+
parameters: Record<string, string[]>;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
interface EmbedVisualItem {
|
|
527
|
+
visualId: string;
|
|
528
|
+
embedUrl: string;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
interface EmbedVisualUrlResponse {
|
|
532
|
+
dashboardId: string;
|
|
533
|
+
expiresInMinutes: number;
|
|
534
|
+
visual: EmbedVisualItem;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
interface EmbedDashboardCommand {
|
|
538
|
+
dashboardId: string;
|
|
539
|
+
parameters: Record<string, string[]> | undefined;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
interface QuicksightVisualConfig {
|
|
543
|
+
visualId: string;
|
|
544
|
+
container: ElementRef;
|
|
545
|
+
}
|
|
546
|
+
interface QuicksightEvent {
|
|
547
|
+
eventName: string;
|
|
548
|
+
eventLevel?: string;
|
|
549
|
+
message?: string;
|
|
550
|
+
data?: any;
|
|
551
|
+
}
|
|
552
|
+
declare const QuicksightEventName: {
|
|
553
|
+
readonly ERROR_OCCURRED: "ERROR_OCCURRED";
|
|
554
|
+
readonly CONTENT_LOADED: "CONTENT_LOADED";
|
|
555
|
+
readonly PARAMETERS_CHANGED: "PARAMETERS_CHANGED";
|
|
556
|
+
readonly SIZE_CHANGED: "SIZE_CHANGED";
|
|
557
|
+
readonly SELECTED_SHEET_CHANGED: "SELECTED_SHEET_CHANGED";
|
|
558
|
+
readonly MODAL_OPENED: "MODAL_OPENED";
|
|
559
|
+
readonly EXPERIENCE_INITIALIZED: "EXPERIENCE_INITIALIZED";
|
|
560
|
+
};
|
|
561
|
+
declare function isQuicksightSessionExpiredEvent(event: QuicksightEvent): boolean;
|
|
562
|
+
type QuicksightEmbedOptions = {
|
|
563
|
+
height?: string;
|
|
564
|
+
width?: string;
|
|
565
|
+
onChange?: (event: QuicksightEvent) => void;
|
|
566
|
+
};
|
|
567
|
+
interface QuicksightEventOutputs {
|
|
568
|
+
sdkEvent: {
|
|
569
|
+
emit: (event: QuicksightEvent) => void;
|
|
570
|
+
};
|
|
571
|
+
contentLoaded?: {
|
|
572
|
+
emit: (event: QuicksightEvent) => void;
|
|
573
|
+
};
|
|
574
|
+
errorOccurred?: {
|
|
575
|
+
emit: (event: QuicksightEvent) => void;
|
|
576
|
+
};
|
|
577
|
+
sessionExpired?: {
|
|
578
|
+
emit: (event: QuicksightEvent) => void;
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
declare function dispatchQuicksightEvent(event: QuicksightEvent, outputs: QuicksightEventOutputs): void;
|
|
582
|
+
declare class Shared {
|
|
583
|
+
private readonly http;
|
|
584
|
+
private readonly configService;
|
|
585
|
+
private readonly path;
|
|
586
|
+
getEmbedUrl(command: EmbedDashboardCommand): rxjs.Observable<string>;
|
|
587
|
+
getEmbedVisualUrl(command: EmbedVisualCommand): rxjs.Observable<EmbedVisualUrlResponse>;
|
|
588
|
+
getEmbedVisualUrlsAnonymous(command: EmbedVisualCommand): rxjs.Observable<EmbedVisualUrlResponse>;
|
|
589
|
+
createEmbedContext(embedUrl: string, container: HTMLElement, options?: QuicksightEmbedOptions): Promise<void>;
|
|
590
|
+
embedDashboard(command: EmbedDashboardCommand, container: HTMLElement, options?: QuicksightEmbedOptions): Promise<void>;
|
|
591
|
+
embedDashboardInteractive(command: EmbedDashboardCommand, container: HTMLElement, options?: QuicksightEmbedOptions): Promise<DashboardExperience>;
|
|
592
|
+
private toSdkChangeListener;
|
|
593
|
+
setDashboardParameters(dashboard: DashboardExperience, parameters: Record<string, string[]>): Promise<void>;
|
|
594
|
+
createEmbedVisualContext(embedUrl: string, container: HTMLElement, options?: {
|
|
595
|
+
height?: string;
|
|
596
|
+
width?: string;
|
|
597
|
+
}): Promise<void>;
|
|
598
|
+
embedSequentialVisuals(command: EmbedWithoutVisualCommand, configs: QuicksightVisualConfig[], onVisualLoaded?: (visualId: string) => void): Promise<void>;
|
|
599
|
+
embedSequentialVisualsInteractive(command: EmbedWithoutVisualCommand, configs: QuicksightVisualConfig[], onVisualLoaded?: (visualId: string, ref: VisualExperience) => void): Promise<Map<string, VisualExperience>>;
|
|
600
|
+
setVisualParameters(visual: VisualExperience, parameters: Record<string, string[]>): Promise<void>;
|
|
601
|
+
setVisualsParameters(visuals: Iterable<VisualExperience>, parameters: Record<string, string[]>): Promise<void>;
|
|
602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Shared, never>;
|
|
603
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Shared>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
declare class DashboardQsComponent {
|
|
607
|
+
private readonly sharedService;
|
|
608
|
+
private readonly route;
|
|
609
|
+
containers: QueryList<ElementRef>;
|
|
610
|
+
readonly dashboardIdInput: i0.InputSignal<string | undefined>;
|
|
611
|
+
readonly parametersInput: i0.InputSignal<Record<string, string[]> | undefined>;
|
|
612
|
+
readonly heightInput: i0.InputSignal<string | undefined>;
|
|
613
|
+
private readonly routeData;
|
|
614
|
+
readonly dashboardId: i0.Signal<string | undefined>;
|
|
615
|
+
readonly parameters: i0.Signal<Record<string, string[]> | undefined>;
|
|
616
|
+
readonly height: i0.Signal<string | undefined>;
|
|
617
|
+
readonly isLoading: i0.WritableSignal<boolean>;
|
|
618
|
+
readonly isLoadingChange: i0.OutputEmitterRef<boolean>;
|
|
619
|
+
readonly sdkEvent: i0.OutputEmitterRef<QuicksightEvent>;
|
|
620
|
+
readonly contentLoaded: i0.OutputEmitterRef<QuicksightEvent>;
|
|
621
|
+
readonly errorOccurred: i0.OutputEmitterRef<QuicksightEvent>;
|
|
622
|
+
readonly sessionExpired: i0.OutputEmitterRef<QuicksightEvent>;
|
|
623
|
+
private readonly viewReady;
|
|
624
|
+
constructor();
|
|
625
|
+
ngAfterViewInit(): void;
|
|
626
|
+
EmbedDashboard(dashboardId: string, parameters: Record<string, string[]> | undefined): Promise<void>;
|
|
627
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardQsComponent, never>;
|
|
628
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardQsComponent, "intelica-dashboard-qs", never, { "dashboardIdInput": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "parametersInput": { "alias": "parameters"; "required": false; "isSignal": true; }; "heightInput": { "alias": "height"; "required": false; "isSignal": true; }; }, { "isLoadingChange": "isLoadingChange"; "sdkEvent": "sdkEvent"; "contentLoaded": "contentLoaded"; "errorOccurred": "errorOccurred"; "sessionExpired": "sessionExpired"; }, never, never, true, never>;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare class DashboardQsInteractiveComponent {
|
|
632
|
+
private readonly sharedService;
|
|
633
|
+
private readonly route;
|
|
634
|
+
containers: QueryList<ElementRef>;
|
|
635
|
+
readonly dashboardIdInput: i0.InputSignal<string | undefined>;
|
|
636
|
+
readonly parametersInput: i0.InputSignal<Record<string, string[]> | undefined>;
|
|
637
|
+
readonly heightInput: i0.InputSignal<string | undefined>;
|
|
638
|
+
private readonly routeData;
|
|
639
|
+
readonly dashboardId: i0.Signal<string | undefined>;
|
|
640
|
+
readonly parameters: i0.Signal<Record<string, string[]> | undefined>;
|
|
641
|
+
readonly height: i0.Signal<string | undefined>;
|
|
642
|
+
readonly isLoading: i0.WritableSignal<boolean>;
|
|
643
|
+
readonly isLoadingChange: i0.OutputEmitterRef<boolean>;
|
|
644
|
+
readonly sdkEvent: i0.OutputEmitterRef<QuicksightEvent>;
|
|
645
|
+
readonly contentLoaded: i0.OutputEmitterRef<QuicksightEvent>;
|
|
646
|
+
readonly errorOccurred: i0.OutputEmitterRef<QuicksightEvent>;
|
|
647
|
+
readonly sessionExpired: i0.OutputEmitterRef<QuicksightEvent>;
|
|
648
|
+
private readonly viewReady;
|
|
649
|
+
private dashboardRef;
|
|
650
|
+
private lastEmbeddedId;
|
|
651
|
+
constructor();
|
|
652
|
+
ngAfterViewInit(): void;
|
|
653
|
+
firstEmbed(dashboardId: string): Promise<void>;
|
|
654
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardQsInteractiveComponent, never>;
|
|
655
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardQsInteractiveComponent, "intelica-dashboard-qs-interactive", never, { "dashboardIdInput": { "alias": "dashboardId"; "required": false; "isSignal": true; }; "parametersInput": { "alias": "parameters"; "required": false; "isSignal": true; }; "heightInput": { "alias": "height"; "required": false; "isSignal": true; }; }, { "isLoadingChange": "isLoadingChange"; "sdkEvent": "sdkEvent"; "contentLoaded": "contentLoaded"; "errorOccurred": "errorOccurred"; "sessionExpired": "sessionExpired"; }, never, never, true, never>;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
declare class AddFavoritesComponent implements OnInit {
|
|
659
|
+
readonly termService: GlobalTermService;
|
|
660
|
+
private readonly addFavoriteService;
|
|
661
|
+
private readonly destroyRef;
|
|
662
|
+
readonly favoriteChanged: i0.OutputEmitterRef<boolean>;
|
|
663
|
+
private isFavorite;
|
|
664
|
+
isToggling: boolean;
|
|
665
|
+
iconClass: string;
|
|
666
|
+
ngOnInit(): void;
|
|
667
|
+
toggleFavorite(): void;
|
|
668
|
+
private loadInitialState;
|
|
669
|
+
private updateIcon;
|
|
670
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFavoritesComponent, never>;
|
|
671
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFavoritesComponent, "intelica-add-favorites", never, {}, { "favoriteChanged": "favoriteChanged"; }, never, never, true, never>;
|
|
672
|
+
}
|
|
673
|
+
|
|
497
674
|
declare class SharedService {
|
|
498
675
|
private location;
|
|
499
676
|
configObservable: Subject<boolean>;
|
|
@@ -752,6 +929,18 @@ declare class RequestCacheService {
|
|
|
752
929
|
static ɵprov: i0.ɵɵInjectableDeclaration<RequestCacheService>;
|
|
753
930
|
}
|
|
754
931
|
|
|
932
|
+
declare class AddFavoritesService {
|
|
933
|
+
private readonly favoritesService;
|
|
934
|
+
private readonly globalTermService;
|
|
935
|
+
addPageToFavorites(): Observable<void>;
|
|
936
|
+
isPageFavorite(pageRoot?: string): Observable<boolean>;
|
|
937
|
+
watchPageFavorite(pageRoot?: string): Observable<boolean>;
|
|
938
|
+
removeFromFavorites(pageRoot?: string): Observable<void>;
|
|
939
|
+
private resolvePageRoot;
|
|
940
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddFavoritesService, never>;
|
|
941
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddFavoritesService>;
|
|
942
|
+
}
|
|
943
|
+
|
|
755
944
|
declare class TruncatePipe implements PipeTransform {
|
|
756
945
|
transform(value: any, size?: number, original?: boolean): any;
|
|
757
946
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
|
|
@@ -800,5 +989,5 @@ declare enum SearchInputEnum {
|
|
|
800
989
|
|
|
801
990
|
declare function darkenColor(input: string, amount?: number): string;
|
|
802
991
|
|
|
803
|
-
export { ColumnComponent, ColumnGroupComponent, EchartComponent, EchartService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageElementService, PageInformation, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TruncatePipe, darkenColor };
|
|
804
|
-
export type { CascadeFilterModel, ElementResponse, QueryParametersModel, SearchFieldModel, SearchInputModel, SortFieldModel };
|
|
992
|
+
export { AddFavoritesComponent, AddFavoritesService, BreadCrumbComponent, ColumnComponent, ColumnGroupComponent, DashboardQsComponent, DashboardQsInteractiveComponent, EchartComponent, EchartService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageElementService, PageInformation, QuicksightEventName, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, Shared, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TitleComponent, TruncatePipe, darkenColor, dispatchQuicksightEvent, isQuicksightSessionExpiredEvent };
|
|
993
|
+
export type { CascadeFilterModel, ElementResponse, EmbedDashboardCommand, EmbedVisualCommand, EmbedVisualItem, EmbedVisualUrlResponse, EmbedWithoutVisualCommand, QueryParametersModel, QuicksightEmbedOptions, QuicksightEvent, QuicksightEventOutputs, QuicksightVisualConfig, SearchFieldModel, SearchInputModel, SortFieldModel };
|