intelica-library-project 20.0.2 → 20.0.4

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,11 +1,14 @@
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';
8
10
  import { Location } from '@angular/common';
11
+ import { DashboardExperience, VisualExperience } from 'amazon-quicksight-embedding-sdk';
9
12
 
10
13
  interface SearchInputModel {
11
14
  operatorId: number;
@@ -494,6 +497,118 @@ 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 QuicksightVisualConfig {
515
+ visualId: string;
516
+ container: ElementRef;
517
+ }
518
+ interface QuicksightEvent {
519
+ eventName: string;
520
+ eventLevel?: string;
521
+ message?: string;
522
+ data?: any;
523
+ }
524
+ type QuicksightEmbedOptions = {
525
+ height?: string;
526
+ width?: string;
527
+ onChange?: (event: QuicksightEvent) => void;
528
+ };
529
+ interface QuicksightEventOutputs {
530
+ sdkEvent: {
531
+ emit: (event: QuicksightEvent) => void;
532
+ };
533
+ contentLoaded?: {
534
+ emit: (event: QuicksightEvent) => void;
535
+ };
536
+ errorOccurred?: {
537
+ emit: (event: QuicksightEvent) => void;
538
+ };
539
+ sessionExpired?: {
540
+ emit: (event: QuicksightEvent) => void;
541
+ };
542
+ }
543
+
544
+ declare class DashboardQsComponent {
545
+ private readonly sharedService;
546
+ private readonly route;
547
+ containers: QueryList<ElementRef>;
548
+ readonly dashboardIdInput: i0.InputSignal<string | undefined>;
549
+ readonly parametersInput: i0.InputSignal<Record<string, string[]> | undefined>;
550
+ readonly heightInput: i0.InputSignal<string | undefined>;
551
+ private readonly routeData;
552
+ readonly dashboardId: i0.Signal<string | undefined>;
553
+ readonly parameters: i0.Signal<Record<string, string[]> | undefined>;
554
+ readonly height: i0.Signal<string | undefined>;
555
+ readonly isLoading: i0.WritableSignal<boolean>;
556
+ readonly isLoadingChange: i0.OutputEmitterRef<boolean>;
557
+ readonly sdkEvent: i0.OutputEmitterRef<QuicksightEvent>;
558
+ readonly contentLoaded: i0.OutputEmitterRef<QuicksightEvent>;
559
+ readonly errorOccurred: i0.OutputEmitterRef<QuicksightEvent>;
560
+ readonly sessionExpired: i0.OutputEmitterRef<QuicksightEvent>;
561
+ private readonly viewReady;
562
+ constructor();
563
+ ngAfterViewInit(): void;
564
+ EmbedDashboard(dashboardId: string, parameters: Record<string, string[]> | undefined): Promise<void>;
565
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardQsComponent, never>;
566
+ 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>;
567
+ }
568
+
569
+ declare class DashboardQsInteractiveComponent {
570
+ private readonly sharedService;
571
+ private readonly route;
572
+ containers: QueryList<ElementRef>;
573
+ readonly dashboardIdInput: i0.InputSignal<string | undefined>;
574
+ readonly parametersInput: i0.InputSignal<Record<string, string[]> | undefined>;
575
+ readonly heightInput: i0.InputSignal<string | undefined>;
576
+ private readonly routeData;
577
+ readonly dashboardId: i0.Signal<string | undefined>;
578
+ readonly parameters: i0.Signal<Record<string, string[]> | undefined>;
579
+ readonly height: i0.Signal<string | undefined>;
580
+ readonly isLoading: i0.WritableSignal<boolean>;
581
+ readonly isLoadingChange: i0.OutputEmitterRef<boolean>;
582
+ readonly sdkEvent: i0.OutputEmitterRef<QuicksightEvent>;
583
+ readonly contentLoaded: i0.OutputEmitterRef<QuicksightEvent>;
584
+ readonly errorOccurred: i0.OutputEmitterRef<QuicksightEvent>;
585
+ readonly sessionExpired: i0.OutputEmitterRef<QuicksightEvent>;
586
+ private readonly viewReady;
587
+ private dashboardRef;
588
+ private lastEmbeddedId;
589
+ constructor();
590
+ ngAfterViewInit(): void;
591
+ firstEmbed(dashboardId: string): Promise<void>;
592
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardQsInteractiveComponent, never>;
593
+ 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>;
594
+ }
595
+
596
+ declare class AddFavoritesComponent implements OnInit {
597
+ readonly termService: GlobalTermService;
598
+ private readonly addFavoriteService;
599
+ private readonly destroyRef;
600
+ readonly favoriteChanged: i0.OutputEmitterRef<boolean>;
601
+ private isFavorite;
602
+ isToggling: boolean;
603
+ iconClass: string;
604
+ ngOnInit(): void;
605
+ toggleFavorite(): void;
606
+ private loadInitialState;
607
+ private updateIcon;
608
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddFavoritesComponent, never>;
609
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddFavoritesComponent, "intelica-add-favorites", never, {}, { "favoriteChanged": "favoriteChanged"; }, never, never, true, never>;
610
+ }
611
+
497
612
  declare class SharedService {
498
613
  private location;
499
614
  configObservable: Subject<boolean>;
@@ -578,6 +693,58 @@ declare class SharedService {
578
693
  static ɵprov: i0.ɵɵInjectableDeclaration<SharedService>;
579
694
  }
580
695
 
696
+ interface EmbedVisualCommand {
697
+ dashboardId: string;
698
+ sheetId: string;
699
+ visualId: string;
700
+ parameters: Record<string, string[]>;
701
+ }
702
+ interface EmbedWithoutVisualCommand {
703
+ dashboardId: string;
704
+ sheetId: string;
705
+ parameters: Record<string, string[]>;
706
+ }
707
+
708
+ interface EmbedVisualItem {
709
+ visualId: string;
710
+ embedUrl: string;
711
+ }
712
+
713
+ interface EmbedVisualUrlResponse {
714
+ dashboardId: string;
715
+ expiresInMinutes: number;
716
+ visual: EmbedVisualItem;
717
+ }
718
+
719
+ interface EmbedDashboardCommand {
720
+ dashboardId: string;
721
+ parameters: Record<string, string[]> | undefined;
722
+ }
723
+
724
+ declare class Shared {
725
+ private readonly http;
726
+ private readonly configService;
727
+ private readonly path;
728
+ getEmbedUrl(command: EmbedDashboardCommand): rxjs.Observable<string>;
729
+ getEmbedVisualUrl(command: EmbedVisualCommand): rxjs.Observable<EmbedVisualUrlResponse>;
730
+ getEmbedVisualUrlsAnonymous(command: EmbedVisualCommand): rxjs.Observable<EmbedVisualUrlResponse>;
731
+ createEmbedContext(embedUrl: string, container: HTMLElement, options?: QuicksightEmbedOptions): Promise<void>;
732
+ embedDashboard(command: EmbedDashboardCommand, container: HTMLElement, options?: QuicksightEmbedOptions): Promise<void>;
733
+ embedDashboardInteractive(command: EmbedDashboardCommand, container: HTMLElement, options?: QuicksightEmbedOptions): Promise<DashboardExperience>;
734
+ private toSdkChangeListener;
735
+ setDashboardParameters(dashboard: DashboardExperience, parameters: Record<string, string[]>): Promise<void>;
736
+ createEmbedVisualContext(embedUrl: string, container: HTMLElement, options?: {
737
+ height?: string;
738
+ width?: string;
739
+ }): Promise<void>;
740
+ embedSequentialVisuals(command: EmbedWithoutVisualCommand, configs: QuicksightVisualConfig[], onVisualLoaded?: (visualId: string) => void): Promise<void>;
741
+ embedSequentialVisualsInteractive(command: EmbedWithoutVisualCommand, configs: QuicksightVisualConfig[], onVisualLoaded?: (visualId: string, ref: VisualExperience) => void): Promise<Map<string, VisualExperience>>;
742
+ setVisualParameters(visual: VisualExperience, parameters: Record<string, string[]>): Promise<void>;
743
+ setVisualsParameters(visuals: Iterable<VisualExperience>, parameters: Record<string, string[]>): Promise<void>;
744
+ static ɵfac: i0.ɵɵFactoryDeclaration<Shared, never>;
745
+ static ɵprov: i0.ɵɵInjectableDeclaration<Shared>;
746
+ }
747
+
581
748
  interface ElementResponse {
582
749
  pageElementID: string;
583
750
  elementCode: string;
@@ -752,6 +919,18 @@ declare class RequestCacheService {
752
919
  static ɵprov: i0.ɵɵInjectableDeclaration<RequestCacheService>;
753
920
  }
754
921
 
922
+ declare class AddFavoritesService {
923
+ private readonly favoritesService;
924
+ private readonly globalTermService;
925
+ addPageToFavorites(): Observable<void>;
926
+ isPageFavorite(pageRoot?: string): Observable<boolean>;
927
+ watchPageFavorite(pageRoot?: string): Observable<boolean>;
928
+ removeFromFavorites(pageRoot?: string): Observable<void>;
929
+ private resolvePageRoot;
930
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddFavoritesService, never>;
931
+ static ɵprov: i0.ɵɵInjectableDeclaration<AddFavoritesService>;
932
+ }
933
+
755
934
  declare class TruncatePipe implements PipeTransform {
756
935
  transform(value: any, size?: number, original?: boolean): any;
757
936
  static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
@@ -792,6 +971,17 @@ declare class PageInformation {
792
971
  constructor(pageTitle: string, pageRoot: string | undefined);
793
972
  }
794
973
 
974
+ declare const QuicksightEventName: {
975
+ readonly ERROR_OCCURRED: "ERROR_OCCURRED";
976
+ readonly CONTENT_LOADED: "CONTENT_LOADED";
977
+ readonly PARAMETERS_CHANGED: "PARAMETERS_CHANGED";
978
+ readonly SIZE_CHANGED: "SIZE_CHANGED";
979
+ readonly SELECTED_SHEET_CHANGED: "SELECTED_SHEET_CHANGED";
980
+ readonly MODAL_OPENED: "MODAL_OPENED";
981
+ readonly EXPERIENCE_INITIALIZED: "EXPERIENCE_INITIALIZED";
982
+ };
983
+ declare const QUICKSIGHT_AUTH_ERROR_CODES: string[];
984
+
795
985
  declare enum SearchInputEnum {
796
986
  OperatorId = "operatorId",
797
987
  FieldId = "fieldId",
@@ -800,5 +990,8 @@ declare enum SearchInputEnum {
800
990
 
801
991
  declare function darkenColor(input: string, amount?: number): string;
802
992
 
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 };
993
+ declare function isQuicksightSessionExpiredEvent(event: QuicksightEvent): boolean;
994
+ declare function dispatchQuicksightEvent(event: QuicksightEvent, outputs: QuicksightEventOutputs): void;
995
+
996
+ export { AddFavoritesComponent, AddFavoritesService, BreadCrumbComponent, ColumnComponent, ColumnGroupComponent, DashboardQsComponent, DashboardQsInteractiveComponent, EchartComponent, EchartService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageElementService, PageInformation, QUICKSIGHT_AUTH_ERROR_CODES, QuicksightEventName, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, Shared, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TitleComponent, TruncatePipe, darkenColor, dispatchQuicksightEvent, isQuicksightSessionExpiredEvent };
997
+ export type { CascadeFilterModel, ElementResponse, EmbedDashboardCommand, EmbedVisualCommand, EmbedVisualItem, EmbedVisualUrlResponse, EmbedWithoutVisualCommand, QueryParametersModel, QuicksightEmbedOptions, QuicksightEvent, QuicksightEventOutputs, QuicksightVisualConfig, SearchFieldModel, SearchInputModel, SortFieldModel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelica-library-project",
3
- "version": "20.0.2",
3
+ "version": "20.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",