@datarailsshared/datarailsshared 1.4.133 → 1.4.135

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.
@@ -5,7 +5,9 @@ import { Subject } from 'rxjs';
5
5
  export declare class DrChatComponent implements AfterViewInit, OnDestroy {
6
6
  private cdr;
7
7
  private destroy$;
8
+ fullScreen: boolean;
8
9
  title: string;
10
+ subtitle: string;
9
11
  showClearButton: boolean;
10
12
  noMessagesPlaceholder: string;
11
13
  set contentUpdateSubject(value: Subject<any>);
@@ -15,11 +17,13 @@ export declare class DrChatComponent implements AfterViewInit, OnDestroy {
15
17
  get scrollBottom(): boolean;
16
18
  set scrollBottom(value: boolean);
17
19
  protected _scrollBottom: boolean;
20
+ suggestions: string[];
18
21
  messagesContainer: ElementRef;
19
22
  messages: QueryList<DrChatMessageComponent>;
20
23
  chatForm: DrChatFormComponent;
21
24
  clear: EventEmitter<any>;
22
25
  close: EventEmitter<any>;
26
+ suggestionSelect: EventEmitter<string>;
23
27
  constructor(cdr: ChangeDetectorRef);
24
28
  ngAfterViewInit(): void;
25
29
  updateView(): void;
@@ -3,6 +3,7 @@ import { DomSanitizer } from '@angular/platform-browser';
3
3
  export declare class DrChatFormComponent {
4
4
  protected cdr: ChangeDetectorRef;
5
5
  protected domSanitizer: DomSanitizer;
6
+ _textareaInitialHeight: boolean;
6
7
  inputFocus: boolean;
7
8
  inputHover: boolean;
8
9
  droppedFiles: any[];
@@ -5,7 +5,6 @@ import { DrChatCustomMessageService } from './dr-chat-message-custom/chat-custom
5
5
  export declare class DrChatMessageComponent {
6
6
  private customMessageService;
7
7
  MESSAGE_TYPE: typeof CHAT_MESSAGE_TYPE;
8
- MESSAGE_TYPE_CUSTOM: CHAT_MESSAGE_TYPE;
9
8
  get flyInOut(): boolean;
10
9
  get notReply(): boolean;
11
10
  /**
@@ -28,13 +27,9 @@ export declare class DrChatMessageComponent {
28
27
  */
29
28
  customMessageData: any;
30
29
  /**
31
- * The outer flag is whether the message is empty. Needed if it is impossible to calculate it inside.
32
- *
33
- * @type {boolean}
30
+ * User info for avatar
34
31
  */
35
- get isEmpty(): boolean;
36
- set isEmpty(value: boolean);
37
- protected _isEmpty: boolean;
32
+ user: any;
38
33
  customMessage: boolean;
39
34
  constructor(customMessageService: DrChatCustomMessageService);
40
35
  getTemplate(): TemplateRef<any>;
@@ -0,0 +1,8 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class DrChatSuggestionsComponent {
3
+ values: string[];
4
+ buttonMode: boolean;
5
+ suggestionSelect: EventEmitter<string>;
6
+ constructor();
7
+ onItemClick(item: string): void;
8
+ }
@@ -21,8 +21,8 @@ export interface IChatMessageBase extends IChatMessageRef {
21
21
  kind: string | CHAT_MESSAGE_TYPE;
22
22
  reply: boolean;
23
23
  role: ChatRole;
24
- useDefaultAvatar?: boolean;
25
24
  avatarUrl?: string;
25
+ user?: any;
26
26
  }
27
27
  export interface IChatTextMessage extends IChatMessageBase {
28
28
  kind: string | CHAT_MESSAGE_TYPE.TEXT;
@@ -60,7 +60,7 @@ export declare class ChatMessage implements IChatMessageBase, IChatTextMessage,
60
60
  label?: string;
61
61
  parameters?: any;
62
62
  data?: any;
63
- useDefaultAvatar?: boolean;
64
63
  avatarUrl?: string;
64
+ user?: any;
65
65
  constructor(obj: any);
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.4.133",
3
+ "version": "1.4.135",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",