max-agent-ui 0.0.24 → 0.0.25

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
@@ -428,6 +428,19 @@ declare class MaxAssistantFeedbackService {
428
428
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<MaxAssistantFeedbackService>;
429
429
  }
430
430
 
431
+ declare class MaxAssistantExportService {
432
+ exportTableToExcel(table: AssistantResponseTable): Promise<void>;
433
+ exportVisualisationToPdf(visualisation: AssistantVisualisation): Promise<void>;
434
+ private chartTotal;
435
+ private toExportCellValue;
436
+ private exportFileName;
437
+ private fallbackColor;
438
+ private pdfColor;
439
+ private downloadFile;
440
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantExportService, never>;
441
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<MaxAssistantExportService>;
442
+ }
443
+
431
444
  declare class MaxAssistantSupportService {
432
445
  readonly tagsEndpoint = "selection/support-tags";
433
446
  readonly ticketsEndpoint = "support/tickets";
@@ -474,6 +487,7 @@ interface AssistantEntitySuggestionOption extends AssistantSuggestionOption {
474
487
  }
475
488
  declare class MaxAssistantComponent implements OnInit {
476
489
  private readonly assistantService;
490
+ private readonly exportService;
477
491
  private readonly feedbackService;
478
492
  private readonly supportService;
479
493
  private readonly destroyRef;
@@ -517,7 +531,7 @@ declare class MaxAssistantComponent implements OnInit {
517
531
  severity: AssistantSupportTagSeverity;
518
532
  }>;
519
533
  protected supportTicketForm: SupportTicketFormValue;
520
- constructor(assistantService: MaxAssistantService, feedbackService: MaxAssistantFeedbackService, supportService: MaxAssistantSupportService, destroyRef: DestroyRef, defaultConfig: MaxAssistantConfig);
534
+ constructor(assistantService: MaxAssistantService, exportService: MaxAssistantExportService, feedbackService: MaxAssistantFeedbackService, supportService: MaxAssistantSupportService, destroyRef: DestroyRef, defaultConfig: MaxAssistantConfig);
521
535
  ngOnInit(): void;
522
536
  focusComposer(): void;
523
537
  protected get uiCopy(): typeof ASSISTANT_UI_COPY;
@@ -566,6 +580,8 @@ declare class MaxAssistantComponent implements OnInit {
566
580
  protected isTraceStepExpanded(messageId: string, stepId: number): boolean;
567
581
  protected toggleTraceStep(messageId: string, stepId: number): void;
568
582
  protected getResponseGrid(responseDetails: AssistantDisplayResponse): AssistantResponseTable[];
583
+ protected exportTable(table: AssistantResponseTable): void;
584
+ protected exportVisualisation(visualisation: AssistantVisualisation): void;
569
585
  protected chartTotal(visualisation: AssistantVisualisation): number;
570
586
  protected chartColor(visualisation: AssistantVisualisation, index: number): string;
571
587
  protected doughnutDashArray(visualisation: AssistantVisualisation, index: number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "max-agent-ui",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -14,8 +14,10 @@
14
14
  "rxjs": "^7.8.0"
15
15
  },
16
16
  "dependencies": {
17
+ "jspdf": "^3.0.4",
17
18
  "marked": "18.0.7",
18
- "tslib": "^2.3.0"
19
+ "tslib": "^2.3.0",
20
+ "xlsx": "^0.18.5"
19
21
  },
20
22
  "files": [
21
23
  "fesm2022",