max-agent-ui 0.0.40 → 0.0.41

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
@@ -137,6 +137,7 @@ interface AssistantDeveloperTrace {
137
137
  steps: AssistantTraceStep[];
138
138
  }
139
139
  interface AssistantCard {
140
+ person?: AssistantPerson;
140
141
  title: string;
141
142
  subtitle?: string;
142
143
  metrics: Array<{
@@ -277,10 +278,14 @@ interface AssistantRotaCalendar {
277
278
  }>;
278
279
  }
279
280
  interface AssistantResponseTableColumn {
281
+ secondaryField?: string;
282
+ kind?: 'person';
280
283
  field: string;
281
284
  header: string;
282
285
  }
283
286
  interface AssistantResponseTable {
287
+ people?: AssistantPerson[];
288
+ bulkActions?: AssistantResponseTableAction[];
284
289
  title?: string;
285
290
  actionsHeader?: string;
286
291
  columns: AssistantResponseTableColumn[];
@@ -288,6 +293,12 @@ interface AssistantResponseTable {
288
293
  actions?: AssistantResponseTableAction[];
289
294
  pagination?: AssistantResponseTablePagination;
290
295
  }
296
+ interface AssistantPerson {
297
+ name: string;
298
+ id?: string | number;
299
+ code?: string | number;
300
+ photo?: string;
301
+ }
291
302
  interface AssistantResponseTablePagination {
292
303
  query: string;
293
304
  offset: number;
@@ -300,6 +311,7 @@ interface AssistantResponseTablePagination {
300
311
  nextOffset?: number;
301
312
  }
302
313
  interface AssistantResponseTableAction {
314
+ outlined?: boolean;
303
315
  disabled?: boolean;
304
316
  rowIndex: number;
305
317
  label: string;
@@ -472,6 +484,8 @@ interface AssistantBootstrapConfig {
472
484
  initialSuggestions: string[];
473
485
  }
474
486
 
487
+ declare function personCard(card: AssistantCard): AssistantCard;
488
+
475
489
  declare const ASSISTANT_UI_COPY: {
476
490
  title: string;
477
491
  subtitle: string;
@@ -616,6 +630,7 @@ declare class MaxAssistantComponent implements OnInit, DoCheck {
616
630
  protected isTraceStepExpanded(messageId: string, stepId: number): boolean;
617
631
  protected toggleTraceStep(messageId: string, stepId: number): void;
618
632
  protected getResponseGrid(responseDetails: AssistantDisplayResponse): AssistantResponseTable[];
633
+ protected readonly personCard: typeof personCard;
619
634
  protected retrieveNextTablePage(message: AssistantMessage, table: AssistantResponseTable, tableIndex: number): void;
620
635
  protected tablePageStatus(table: AssistantResponseTable): string;
621
636
  protected hasNextTablePage(table: AssistantResponseTable): boolean;
@@ -762,17 +777,13 @@ declare class MaxAssistantSupportService {
762
777
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<MaxAssistantSupportService>;
763
778
  }
764
779
 
765
- declare class MaxAgentEntityOptionComponent implements OnChanges {
780
+ declare class MaxAgentEntityOptionComponent {
766
781
  entity: AssistantSuggestionEntity;
767
782
  disabled: boolean;
768
783
  availability?: AssistantAvailablePerson;
769
784
  icons: AssistantEntityIcons;
770
- protected photoUnavailable: boolean;
771
- ngOnChanges(): void;
772
785
  selected: EventEmitter<void>;
773
786
  protected get isPerson(): boolean;
774
- protected get displayCode(): string | number | undefined;
775
- protected get initials(): string;
776
787
  protected get entityColor(): string | undefined;
777
788
  protected get entityTextColor(): string | undefined;
778
789
  protected get entityIcon(): string;
@@ -782,6 +793,18 @@ declare class MaxAgentEntityOptionComponent implements OnChanges {
782
793
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAgentEntityOptionComponent, "max-agent-entity-option", never, { "entity": { "alias": "entity"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; "availability": { "alias": "availability"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; }, { "selected": "selected"; }, never, never, true, never>;
783
794
  }
784
795
 
796
+ declare class MaxAgentPersonComponent implements OnChanges {
797
+ person: AssistantPerson;
798
+ protected photoUnavailable: boolean;
799
+ private previousPhoto?;
800
+ ngOnChanges(): void;
801
+ protected get code(): string | number | undefined;
802
+ protected get photo(): string | undefined;
803
+ protected get initials(): string;
804
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAgentPersonComponent, never>;
805
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAgentPersonComponent, "max-agent-person", never, { "person": { "alias": "person"; "required": true; }; }, {}, never, never, true, never>;
806
+ }
807
+
785
808
  type MaxAgentShiftCardVariant = 'definition' | 'rota' | 'assignment';
786
809
  declare class MaxAgentShiftCardComponent {
787
810
  shift: AssistantShiftCard;
@@ -792,11 +815,10 @@ declare class MaxAgentShiftCardComponent {
792
815
  protected get timeLabel(): string;
793
816
  protected get departmentLabel(): string;
794
817
  protected get taskLabel(): string;
795
- private formatTime;
796
818
  private formatTimeToAmPm;
797
819
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAgentShiftCardComponent, never>;
798
820
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAgentShiftCardComponent, "max-agent-shift-card", never, { "shift": { "alias": "shift"; "required": true; }; "variant": { "alias": "variant"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; }, {}, never, never, true, never>;
799
821
  }
800
822
 
801
- export { MAX_ASSISTANT_CONFIG, MaxAgentEntityOptionComponent, MaxAgentShiftCardComponent, MaxAssistantComponent, MaxAssistantFeedbackService, MaxAssistantService, MaxAssistantSupportService };
802
- export type { AssistantAnalyticsPage, AssistantApiCall, AssistantAvailablePerson, AssistantCard, AssistantChatActivity, AssistantChatData, AssistantChatDelta, AssistantChatProgress, AssistantChatRequest, AssistantChatResponse, AssistantChatStreamEvent, AssistantConfirmation, AssistantContextResolution, AssistantConversationMessage, AssistantDeveloperTrace, AssistantDisplayResponse, AssistantEntityIcons, AssistantExtractedIntent, AssistantFeedbackCategory, AssistantFeedbackRequest, AssistantFeedbackResponse, AssistantFieldMap, AssistantFieldValue, AssistantHelpGuide, AssistantHelpIcon, AssistantHostAction, AssistantMessage, AssistantPendingAction, AssistantProduct, AssistantRequestContext, AssistantResponseTable, AssistantResponseTableAction, AssistantResponseTableColumn, AssistantResponseTablePagination, AssistantRotaCalendar, AssistantSearchResult, AssistantSelectableEntity, AssistantShiftCard, AssistantShiftCardGroup, AssistantSource, AssistantStructuredAction, AssistantSuggestion, AssistantSuggestionEntity, AssistantSuggestionOption, AssistantSupportSeverity, AssistantSupportTag, AssistantSupportTagSeverity, AssistantSupportTicketRequest, AssistantSupportTicketResponse, AssistantToolExecution, AssistantTraceControl, AssistantTraceStep, AssistantTraceStepCategory, AssistantTraceStepMetadata, AssistantTraceStepStatus, AssistantTraceTechnology, AssistantUser, AssistantVisualisation, AssistantVisualisationDataset, AssistantVisualisationType, MaxAgentShiftCardVariant, MaxAssistantConfig };
823
+ export { MAX_ASSISTANT_CONFIG, MaxAgentEntityOptionComponent, MaxAgentPersonComponent, MaxAgentShiftCardComponent, MaxAssistantComponent, MaxAssistantFeedbackService, MaxAssistantService, MaxAssistantSupportService };
824
+ export type { AssistantAnalyticsPage, AssistantApiCall, AssistantAvailablePerson, AssistantCard, AssistantChatActivity, AssistantChatData, AssistantChatDelta, AssistantChatProgress, AssistantChatRequest, AssistantChatResponse, AssistantChatStreamEvent, AssistantConfirmation, AssistantContextResolution, AssistantConversationMessage, AssistantDeveloperTrace, AssistantDisplayResponse, AssistantEntityIcons, AssistantExtractedIntent, AssistantFeedbackCategory, AssistantFeedbackRequest, AssistantFeedbackResponse, AssistantFieldMap, AssistantFieldValue, AssistantHelpGuide, AssistantHelpIcon, AssistantHostAction, AssistantMessage, AssistantPendingAction, AssistantPerson, AssistantProduct, AssistantRequestContext, AssistantResponseTable, AssistantResponseTableAction, AssistantResponseTableColumn, AssistantResponseTablePagination, AssistantRotaCalendar, AssistantSearchResult, AssistantSelectableEntity, AssistantShiftCard, AssistantShiftCardGroup, AssistantSource, AssistantStructuredAction, AssistantSuggestion, AssistantSuggestionEntity, AssistantSuggestionOption, AssistantSupportSeverity, AssistantSupportTag, AssistantSupportTagSeverity, AssistantSupportTicketRequest, AssistantSupportTicketResponse, AssistantToolExecution, AssistantTraceControl, AssistantTraceStep, AssistantTraceStepCategory, AssistantTraceStepMetadata, AssistantTraceStepStatus, AssistantTraceTechnology, AssistantUser, AssistantVisualisation, AssistantVisualisationDataset, AssistantVisualisationType, MaxAgentShiftCardVariant, MaxAssistantConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "max-agent-ui",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },