intelica-library-project 20.0.3 → 20.0.5

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.
@@ -2160,44 +2160,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
2160
2160
  args: [{ selector: 'intelica-title', imports: [Button], template: "<div class=\"ptSectionTitle\">\n <div class=\"ptSectionTitle__icon\">\n <p-button class=\"prButton\" icon=\"icon icon-nav-left\" (onClick)=\"back.emit()\" />\n </div>\n <div class=\"ptSectionTitle__content\">\n <div class=\"ptSectionTitle__title\">\n {{ title() }}\n </div>\n </div>\n</div>" }]
2161
2161
  }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], back: [{ type: i0.Output, args: ["back"] }] } });
2162
2162
 
2163
- const QuicksightEventName = {
2164
- ERROR_OCCURRED: "ERROR_OCCURRED",
2165
- CONTENT_LOADED: "CONTENT_LOADED",
2166
- PARAMETERS_CHANGED: "PARAMETERS_CHANGED",
2167
- SIZE_CHANGED: "SIZE_CHANGED",
2168
- SELECTED_SHEET_CHANGED: "SELECTED_SHEET_CHANGED",
2169
- MODAL_OPENED: "MODAL_OPENED",
2170
- EXPERIENCE_INITIALIZED: "EXPERIENCE_INITIALIZED",
2171
- };
2172
- const QUICKSIGHT_AUTH_ERROR_CODES = ["Forbidden", "Unauthorized", "EmbeddingNotAuthorized", "TokenExpired"];
2173
- function isQuicksightSessionExpiredEvent(event) {
2174
- if (event.eventName !== QuicksightEventName.ERROR_OCCURRED)
2175
- return false;
2176
- const code = event.data?.errorCode ?? event.data?.code ?? "";
2177
- return typeof code === "string" && QUICKSIGHT_AUTH_ERROR_CODES.some(c => code.includes(c));
2178
- }
2179
- function dispatchQuicksightEvent(event, outputs) {
2180
- outputs.sdkEvent.emit(event);
2181
- if (event.eventName === QuicksightEventName.CONTENT_LOADED)
2182
- outputs.contentLoaded?.emit(event);
2183
- if (event.eventName === QuicksightEventName.ERROR_OCCURRED) {
2184
- outputs.errorOccurred?.emit(event);
2185
- if (isQuicksightSessionExpiredEvent(event))
2186
- outputs.sessionExpired?.emit(event);
2187
- }
2188
- }
2189
2163
  class Shared {
2190
2164
  http = inject(HttpClient);
2191
2165
  configService = inject(ConfigService);
2192
- path = `${this.configService.environment?.sharedPath}/Quicksight`;
2166
+ path = `${this.configService.environment?.sharedPath}`;
2193
2167
  getEmbedUrl(command) {
2194
- return this.http.post(`${this.path}/embed-url`, command);
2168
+ return this.http.post(`${this.path}/quicksight-embed-url`, command);
2195
2169
  }
2196
2170
  getEmbedVisualUrl(command) {
2197
- return this.http.post(`${this.path}/embed-visual-url`, command);
2171
+ return this.http.post(`${this.path}/quicksight-embed-visual-url`, command);
2198
2172
  }
2199
2173
  getEmbedVisualUrlsAnonymous(command) {
2200
- return this.http.post(`${this.path}/embed-visual-anonymous`, command);
2174
+ return this.http.post(`${this.path}/quicksight-embed-visual-anonymous`, command);
2201
2175
  }
2202
2176
  async createEmbedContext(embedUrl, container, options) {
2203
2177
  const embeddingContext = await createEmbeddingContext();
@@ -2297,6 +2271,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
2297
2271
  }]
2298
2272
  }] });
2299
2273
 
2274
+ const QuicksightEventName = {
2275
+ ERROR_OCCURRED: "ERROR_OCCURRED",
2276
+ CONTENT_LOADED: "CONTENT_LOADED",
2277
+ PARAMETERS_CHANGED: "PARAMETERS_CHANGED",
2278
+ SIZE_CHANGED: "SIZE_CHANGED",
2279
+ SELECTED_SHEET_CHANGED: "SELECTED_SHEET_CHANGED",
2280
+ MODAL_OPENED: "MODAL_OPENED",
2281
+ EXPERIENCE_INITIALIZED: "EXPERIENCE_INITIALIZED",
2282
+ };
2283
+ const QUICKSIGHT_AUTH_ERROR_CODES = ["Forbidden", "Unauthorized", "EmbeddingNotAuthorized", "TokenExpired"];
2284
+
2285
+ function isQuicksightSessionExpiredEvent(event) {
2286
+ if (event.eventName !== QuicksightEventName.ERROR_OCCURRED)
2287
+ return false;
2288
+ const code = event.data?.errorCode ?? event.data?.code ?? "";
2289
+ return typeof code === "string" && QUICKSIGHT_AUTH_ERROR_CODES.some(c => code.includes(c));
2290
+ }
2291
+ function dispatchQuicksightEvent(event, outputs) {
2292
+ outputs.sdkEvent.emit(event);
2293
+ if (event.eventName === QuicksightEventName.CONTENT_LOADED)
2294
+ outputs.contentLoaded?.emit(event);
2295
+ if (event.eventName === QuicksightEventName.ERROR_OCCURRED) {
2296
+ outputs.errorOccurred?.emit(event);
2297
+ if (isQuicksightSessionExpiredEvent(event))
2298
+ outputs.sessionExpired?.emit(event);
2299
+ }
2300
+ }
2301
+
2300
2302
  class DashboardQsComponent {
2301
2303
  sharedService = inject(Shared);
2302
2304
  route = inject(ActivatedRoute);
@@ -3350,5 +3352,5 @@ class PageInformation {
3350
3352
  * Generated bundle index. Do not edit.
3351
3353
  */
3352
3354
 
3353
- 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 };
3355
+ 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 };
3354
3356
  //# sourceMappingURL=intelica-library-project.mjs.map