@dataclouder/ngx-agent-cards 0.0.75 → 0.0.77

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.
@@ -2,22 +2,25 @@ import { EventEmitter, OnInit, Type, OnDestroy, ChangeDetectorRef } from '@angul
2
2
  import { AgentCardsAbstractService } from '../../models/conversation-ai.class';
3
3
  import { IAgentCard } from '../../models/agent.models';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
- import { FiltersConfig, PaginationBase, ToastAlertsAbstractService } from '@dataclouder/ngx-core';
5
+ import { FiltersConfig, PaginationBase, ToastAlertsAbstractService, PColumn } from '@dataclouder/ngx-core';
6
6
  import { DCConversationCardUIComponent } from './agent-card-default-ui/agent-card-default-ui.component';
7
7
  import { NgComponentOutlet } from '@angular/common';
8
8
  import { QueryList } from '@angular/core';
9
9
  import { MenuItem } from 'primeng/api';
10
10
  import * as i0 from "@angular/core";
11
- export declare class ConversationCardListsComponent extends PaginationBase implements OnInit, OnDestroy {
11
+ export declare class AgentCardListComponent extends PaginationBase implements OnInit, OnDestroy {
12
12
  private agentCardService;
13
13
  private toastService;
14
14
  private cdr;
15
+ viewMode: 'cards' | 'table';
15
16
  customCardComponent?: Type<DCConversationCardUIComponent>;
16
17
  gridLayout: boolean;
17
18
  getCustomButtons: (card: IAgentCard) => MenuItem[];
18
19
  goToDetailsEvent: EventEmitter<string>;
19
20
  goToEditEvent: EventEmitter<string>;
20
21
  deleteEvent: EventEmitter<string>;
22
+ onSelect: EventEmitter<any>;
23
+ columns: PColumn[];
21
24
  conversationCards: IAgentCard[];
22
25
  private cardEventSubs;
23
26
  outlets: QueryList<NgComponentOutlet>;
@@ -37,6 +40,7 @@ export declare class ConversationCardListsComponent extends PaginationBase imple
37
40
  protected loadData(): Promise<void>;
38
41
  search(text: string): Promise<void>;
39
42
  filterChange(filters: FiltersConfig): Promise<void>;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<ConversationCardListsComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<ConversationCardListsComponent, "dc-agent-card-lists", never, { "customCardComponent": { "alias": "customCardComponent"; "required": false; }; "gridLayout": { "alias": "gridLayout"; "required": false; }; "getCustomButtons": { "alias": "getCustomButtons"; "required": false; }; }, { "goToDetailsEvent": "goToDetailsEvent"; "goToEditEvent": "goToEditEvent"; "deleteEvent": "deleteEvent"; }, never, never, true, never>;
43
+ selectItem(item: any): void;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentCardListComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<AgentCardListComponent, "dc-agent-card-lists", never, { "viewMode": { "alias": "viewMode"; "required": false; }; "customCardComponent": { "alias": "customCardComponent"; "required": false; }; "gridLayout": { "alias": "gridLayout"; "required": false; }; "getCustomButtons": { "alias": "getCustomButtons"; "required": false; }; }, { "goToDetailsEvent": "goToDetailsEvent"; "goToEditEvent": "goToEditEvent"; "deleteEvent": "deleteEvent"; "onSelect": "onSelect"; }, never, never, true, never>;
42
46
  }
@@ -25,9 +25,18 @@ export declare class DCAgentCardFormComponent implements OnInit {
25
25
  label: string;
26
26
  }[];
27
27
  voiceTTSOptions: import("@dataclouder/ngx-agent-cards").VoiceTTSOption[];
28
+ textEngineOptions: {
29
+ value: TextEngines;
30
+ label: string;
31
+ }[];
32
+ accountsOptions: EAccountsPlatform[];
33
+ languageOptions: {
34
+ value: string;
35
+ label: string;
36
+ }[];
28
37
  conversation: IAgentCard;
29
38
  agentCardId: string;
30
- accountsOptions: EAccountsPlatform[];
39
+ imageSettings: any;
31
40
  storageSettings: StorageImageSettings;
32
41
  bannerImgSettings: StorageImageSettings;
33
42
  imageStorageSettings: StorageImageSettings;
@@ -36,11 +45,6 @@ export declare class DCAgentCardFormComponent implements OnInit {
36
45
  onSave: EventEmitter<any>;
37
46
  onGoDetails: EventEmitter<string>;
38
47
  onTranslate: EventEmitter<any>;
39
- imageSettings: any;
40
- textEngineOptions: {
41
- value: TextEngines;
42
- label: string;
43
- }[];
44
48
  markdownForm: import("@angular/forms").FormGroup<{
45
49
  seeMarkdown: import("@angular/forms").FormControl<boolean>;
46
50
  }>;
@@ -89,10 +93,6 @@ export declare class DCAgentCardFormComponent implements OnInit {
89
93
  }>;
90
94
  accounts: FormArray<import("@angular/forms").FormControl<unknown>>;
91
95
  }>;
92
- languageOptions: {
93
- value: string;
94
- label: string;
95
- }[];
96
96
  constructor(fb: FormBuilder, storageService: MultiImagesStorageService, agentCardService: AgentCardsAbstractService, cdr: ChangeDetectorRef, router: Router, activatedRoute: ActivatedRoute, dialogService: DialogService, promptBuilder: DCConversationPromptBuilderService, toastService?: ToastAlertsAbstractService);
97
97
  ngOnInit(): void;
98
98
  private loadConversationCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",