intelica-library-project 20.0.3 → 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
@@ -7,8 +7,8 @@ import { GlobalTermService, DateMode } from 'intelica-library-base';
7
7
  import * as echarts from 'echarts';
8
8
  import { EChartsOption, LabelFormatterCallback, DefaultLabelFormatterCallbackParams, TooltipComponentFormatterCallback, TooltipComponentFormatterCallbackParams } from 'echarts';
9
9
  import { MenuItem } from 'primeng/api';
10
- import { DashboardExperience, VisualExperience } from 'amazon-quicksight-embedding-sdk';
11
10
  import { Location } from '@angular/common';
11
+ import { DashboardExperience, VisualExperience } from 'amazon-quicksight-embedding-sdk';
12
12
 
13
13
  interface SearchInputModel {
14
14
  operatorId: number;
@@ -511,34 +511,6 @@ declare class TitleComponent {
511
511
  static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "intelica-title", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, { "back": "back"; }, never, never, true, never>;
512
512
  }
513
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
514
  interface QuicksightVisualConfig {
543
515
  visualId: string;
544
516
  container: ElementRef;
@@ -549,16 +521,6 @@ interface QuicksightEvent {
549
521
  message?: string;
550
522
  data?: any;
551
523
  }
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
524
  type QuicksightEmbedOptions = {
563
525
  height?: string;
564
526
  width?: string;
@@ -578,30 +540,6 @@ interface QuicksightEventOutputs {
578
540
  emit: (event: QuicksightEvent) => void;
579
541
  };
580
542
  }
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
543
 
606
544
  declare class DashboardQsComponent {
607
545
  private readonly sharedService;
@@ -755,6 +693,58 @@ declare class SharedService {
755
693
  static ɵprov: i0.ɵɵInjectableDeclaration<SharedService>;
756
694
  }
757
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
+
758
748
  interface ElementResponse {
759
749
  pageElementID: string;
760
750
  elementCode: string;
@@ -981,6 +971,17 @@ declare class PageInformation {
981
971
  constructor(pageTitle: string, pageRoot: string | undefined);
982
972
  }
983
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
+
984
985
  declare enum SearchInputEnum {
985
986
  OperatorId = "operatorId",
986
987
  FieldId = "fieldId",
@@ -989,5 +990,8 @@ declare enum SearchInputEnum {
989
990
 
990
991
  declare function darkenColor(input: string, amount?: number): string;
991
992
 
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
+ 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 };
993
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.3",
3
+ "version": "20.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",