@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.
- package/datarailsshared-datarailsshared-1.5.576.tgz +0 -0
- package/esm2022/lib/dr-chat/chat.component.mjs +7 -6
- package/esm2022/lib/dr-chat/chat.module.mjs +29 -4
- package/esm2022/lib/dr-chat/dr-chat-form-with-history/chat-form-with-history.component.mjs +380 -0
- package/fesm2022/datarailsshared-datarailsshared.mjs +560 -167
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-chat/chat.component.d.ts +1 -1
- package/lib/dr-chat/chat.module.d.ts +14 -12
- package/lib/dr-chat/dr-chat-form-with-history/chat-form-with-history.component.d.ts +81 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.5.574.tgz +0 -0
|
@@ -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-
|
|
6
|
-
import * as i5 from "./dr-chat-message/dr-chat-message-
|
|
7
|
-
import * as i6 from "./dr-chat-
|
|
8
|
-
import * as i7 from "./dr-
|
|
9
|
-
import * as i8 from "./dr-
|
|
10
|
-
import * as i9 from "./dr-chat-
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../dr-
|
|
15
|
-
import * as i14 from "../dr-
|
|
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.
|
|
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
|
Binary file
|