@dataclouder/ngx-agent-cards 0.0.83 → 0.0.84

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.
@@ -1,15 +1,18 @@
1
1
  import { EventEmitter, type OnInit } from '@angular/core';
2
2
  import { IAgentCard } from '../../../models/agent.models';
3
+ import { MenuItem } from 'primeng/api';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class DCConversationCardUIComponent implements OnInit {
6
+ speedDialModel: MenuItem[];
5
7
  ngOnInit(): void;
6
8
  card: IAgentCard;
7
- onDetailsCard: EventEmitter<string>;
8
- onEditCard: EventEmitter<string>;
9
- onDeleteCard: EventEmitter<string>;
9
+ onCardAction: EventEmitter<{
10
+ event: string;
11
+ card: IAgentCard;
12
+ }>;
10
13
  onDetails(): void;
11
14
  onEdit(): void;
12
15
  onDelete(): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DCConversationCardUIComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<DCConversationCardUIComponent, "dc-agent-card-default-ui", never, { "card": { "alias": "card"; "required": false; }; }, { "onDetailsCard": "onDetailsCard"; "onEditCard": "onEditCard"; "onDeleteCard": "onDeleteCard"; }, never, never, true, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DCConversationCardUIComponent, "dc-agent-card-default-ui", never, { "card": { "alias": "card"; "required": false; }; }, { "onCardAction": "onCardAction"; }, never, never, true, never>;
15
18
  }
@@ -1,8 +1,8 @@
1
- import { EventEmitter, OnInit, Type, OnDestroy, ChangeDetectorRef } from '@angular/core';
1
+ import { OnInit, Type, OnDestroy, ChangeDetectorRef } from '@angular/core';
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, PColumn } from '@dataclouder/ngx-core';
5
+ import { FiltersConfig, PaginationBase, ToastAlertsAbstractService, PColumn, OnActionEvent } 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';
@@ -16,12 +16,7 @@ export declare class AgentCardListComponent extends PaginationBase implements On
16
16
  customCardComponent?: Type<DCConversationCardUIComponent>;
17
17
  gridLayout: boolean;
18
18
  getCustomButtons: (card: IAgentCard) => MenuItem[];
19
- goToDetailsEvent: EventEmitter<string>;
20
- goToEditEvent: EventEmitter<string>;
21
- deleteEvent: EventEmitter<string>;
22
- onSelect: EventEmitter<any>;
23
19
  outlets: QueryList<NgComponentOutlet>;
24
- actions: MenuItem[];
25
20
  protected columns: PColumn[];
26
21
  agentCards: IAgentCard[];
27
22
  private cardEventSubs;
@@ -34,16 +29,19 @@ export declare class AgentCardListComponent extends PaginationBase implements On
34
29
  ngOnDestroy(): void;
35
30
  private loadConversationCards;
36
31
  getAllConversationCards(): Promise<IAgentCard[]>;
37
- goToDetails(id: string): Promise<void>;
38
- goToEdit(id?: string): Promise<void>;
32
+ goToDetails(action: {
33
+ action: string;
34
+ item: IAgentCard;
35
+ }): Promise<void>;
39
36
  deleteCard(id: string): Promise<void>;
40
37
  protected loadData(): Promise<void>;
41
- search(text: string): Promise<void>;
42
- filterChange(filters: FiltersConfig): Promise<void>;
43
- doBarAction({ action, item }: {
38
+ doFilterBarAction({ action, item }: {
44
39
  action: string;
45
40
  item: MenuItem | null;
46
41
  }): void;
42
+ search(text: string): Promise<void>;
43
+ filterChange(filters: FiltersConfig): Promise<void>;
44
+ onCardAction(actionEvent: OnActionEvent): void;
47
45
  static ɵfac: i0.ɵɵFactoryDeclaration<AgentCardListComponent, never>;
48
- 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; }; "actions": { "alias": "actions"; "required": false; }; }, { "goToDetailsEvent": "goToDetailsEvent"; "goToEditEvent": "goToEditEvent"; "deleteEvent": "deleteEvent"; "onSelect": "onSelect"; }, never, never, true, never>;
46
+ 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; }; }, {}, never, never, true, never>;
49
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",