@datarailsshared/datarailsshared 1.5.574 → 1.5.576

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.
@@ -39,5 +39,5 @@ export declare class DrChatComponent implements AfterViewInit, OnDestroy {
39
39
  clearHiddenSuggestions(): void;
40
40
  hideSuggestions(): void;
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<DrChatComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<DrChatComponent, "dr-chat", never, { "fullScreen": { "alias": "fullScreen"; "required": false; }; "noMessagesPlaceholder": { "alias": "noMessagesPlaceholder"; "required": false; }; "contentUpdateSubject": { "alias": "contentUpdateSubject"; "required": false; }; "scrollBottom": { "alias": "scrollBottom"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "reopen": { "alias": "reopen"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; }, { "suggestionSelect": "suggestionSelect"; }, ["chatForm", "chatHeader", "messages"], ["dr-chat-alert", "dr-chat-message", "dr-chat-form"], false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DrChatComponent, "dr-chat", never, { "fullScreen": { "alias": "fullScreen"; "required": false; }; "noMessagesPlaceholder": { "alias": "noMessagesPlaceholder"; "required": false; }; "contentUpdateSubject": { "alias": "contentUpdateSubject"; "required": false; }; "scrollBottom": { "alias": "scrollBottom"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "reopen": { "alias": "reopen"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; }, { "suggestionSelect": "suggestionSelect"; }, ["chatForm", "chatHeader", "messages"], ["dr-chat-alert", "dr-chat-message", "dr-chat-form", "dr-chat-form-with-history"], false, never>;
43
43
  }
@@ -2,19 +2,21 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./chat.component";
3
3
  import * as i2 from "./dr-chat-message/chat-message.component";
4
4
  import * as i3 from "./dr-chat-form/chat-form.component";
5
- import * as i4 from "./dr-chat-message/dr-chat-message-text/chat-message-text.component";
6
- import * as i5 from "./dr-chat-message/dr-chat-message-file/chat-message-file.component";
7
- import * as i6 from "./dr-chat-suggestions/chat-suggestions.component";
8
- import * as i7 from "./dr-dot-flashing/dr-dot-flashing.component";
9
- import * as i8 from "./dr-chat-alert/dr-chat-alert.component";
10
- import * as i9 from "./dr-chat-message/dr-chat-message-custom/chat-custom-message.directive";
11
- import * as i10 from "@angular/forms";
12
- import * as i11 from "@angular/common";
13
- import * as i12 from "../dr-avatar/dr-avatar.module";
14
- import * as i13 from "../dr-inputs/dr-inputs.module";
15
- import * as i14 from "../dr-tooltip/dr-tooltip.module";
5
+ import * as i4 from "./dr-chat-form-with-history/chat-form-with-history.component";
6
+ import * as i5 from "./dr-chat-message/dr-chat-message-text/chat-message-text.component";
7
+ import * as i6 from "./dr-chat-message/dr-chat-message-file/chat-message-file.component";
8
+ import * as i7 from "./dr-chat-suggestions/chat-suggestions.component";
9
+ import * as i8 from "./dr-dot-flashing/dr-dot-flashing.component";
10
+ import * as i9 from "./dr-chat-alert/dr-chat-alert.component";
11
+ import * as i10 from "./dr-chat-message/dr-chat-message-custom/chat-custom-message.directive";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "@angular/common";
14
+ import * as i13 from "../dr-avatar/dr-avatar.module";
15
+ import * as i14 from "../dr-inputs/dr-inputs.module";
16
+ import * as i15 from "../dr-tooltip/dr-tooltip.module";
17
+ import * as i16 from "../directives/click-outside/click-outside.module";
16
18
  export declare class DrChatModule {
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<DrChatModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<DrChatModule, [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.DrChatMessageTextComponent, typeof i5.DrChatMessageFileComponent, typeof i6.DrChatSuggestionsComponent, typeof i7.DrDotFlashingComponent, typeof i8.DrChatAlertComponent, typeof i9.DrChatCustomMessageDirective], [typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.CommonModule, typeof i12.DrAvatarModule, typeof i13.DrInputsModule, typeof i14.DrTooltipModule], [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.DrChatMessageTextComponent, typeof i5.DrChatMessageFileComponent, typeof i6.DrChatSuggestionsComponent, typeof i7.DrDotFlashingComponent, typeof i8.DrChatAlertComponent, typeof i9.DrChatCustomMessageDirective]>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DrChatModule, [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.DrChatFormWithHistoryComponent, typeof i5.DrChatMessageTextComponent, typeof i6.DrChatMessageFileComponent, typeof i7.DrChatSuggestionsComponent, typeof i8.DrDotFlashingComponent, typeof i9.DrChatAlertComponent, typeof i10.DrChatCustomMessageDirective], [typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.CommonModule, typeof i13.DrAvatarModule, typeof i14.DrInputsModule, typeof i15.DrTooltipModule, typeof i16.ClickOutsideModule], [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.DrChatFormWithHistoryComponent, typeof i5.DrChatMessageTextComponent, typeof i6.DrChatMessageFileComponent, typeof i7.DrChatSuggestionsComponent, typeof i8.DrDotFlashingComponent, typeof i9.DrChatAlertComponent, typeof i10.DrChatCustomMessageDirective]>;
19
21
  static ɵinj: i0.ɵɵInjectorDeclaration<DrChatModule>;
20
22
  }
@@ -0,0 +1,81 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DrChatFormWithHistoryComponent {
5
+ protected cdr: ChangeDetectorRef;
6
+ protected domSanitizer: DomSanitizer;
7
+ textAreaElementRef: ElementRef;
8
+ _textareaInitialHeight: boolean;
9
+ inputFocus: boolean;
10
+ inputHover: boolean;
11
+ droppedFiles: any[];
12
+ isShowedHistory: boolean;
13
+ isChatMode: boolean;
14
+ /**
15
+ * Predefined message text
16
+ *
17
+ * @type {string}
18
+ */
19
+ message: string;
20
+ /**
21
+ * Message placeholder text
22
+ *
23
+ * @type {string}
24
+ */
25
+ messagePlaceholder: string;
26
+ /**
27
+ * Show send button
28
+ *
29
+ * @type {boolean}
30
+ */
31
+ dropFiles: boolean;
32
+ /**
33
+ * File drop placeholder text
34
+ *
35
+ * @type {string}
36
+ */
37
+ dropFilePlaceholder: string;
38
+ /**
39
+ * Parameter to check is send message function available
40
+ *
41
+ * @type {boolean}
42
+ */
43
+ waitForReply: boolean;
44
+ /**
45
+ * Parameter to check is send message function available
46
+ *
47
+ * @type {boolean}
48
+ */
49
+ showDisabledButtonInsteadOfDotFlashing: boolean;
50
+ /**
51
+ *
52
+ * @type {EventEmitter<{ message: string, files: File[] }>}
53
+ */
54
+ send: EventEmitter<{
55
+ message: string;
56
+ files: File[];
57
+ }>;
58
+ abort: EventEmitter<any>;
59
+ /**
60
+ * Emits when message input value has been changed
61
+ *
62
+ * @type {EventEmitter<string>}
63
+ */
64
+ inputChange: EventEmitter<string>;
65
+ fileOver: boolean;
66
+ constructor(cdr: ChangeDetectorRef, domSanitizer: DomSanitizer);
67
+ onDrop(event: any): void;
68
+ removeFile(file: any): void;
69
+ onDragOver(event: DragEvent): void;
70
+ onDragLeave(event: DragEvent): void;
71
+ sendMessage($event: any): void;
72
+ abortMessage(): void;
73
+ onModelChange(value: string): void;
74
+ getTextAreaHeight(textAreaElement: HTMLTextAreaElement): string;
75
+ getSendButtonPosition(textAreaElement: HTMLTextAreaElement): string;
76
+ showHistory(): void;
77
+ closeHistory(): void;
78
+ onFileSelected(event: Event): void;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<DrChatFormWithHistoryComponent, never>;
80
+ static ɵcmp: i0.ɵɵComponentDeclaration<DrChatFormWithHistoryComponent, "dr-chat-form-with-history", never, { "isChatMode": { "alias": "isChatMode"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "dropFiles": { "alias": "dropFiles"; "required": false; }; "dropFilePlaceholder": { "alias": "dropFilePlaceholder"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; "showDisabledButtonInsteadOfDotFlashing": { "alias": "showDisabledButtonInsteadOfDotFlashing"; "required": false; }; }, { "send": "send"; "abort": "abort"; "inputChange": "inputChange"; }, never, ["*"], false, never>;
81
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.5.574",
3
+ "version": "1.5.576",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",