@datarailsshared/datarailsshared 1.4.168 → 1.4.170
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/bundles/datarailsshared-datarailsshared.umd.js +57 -8
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.170.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +4 -3
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +5 -4
- package/esm2015/lib/dr-chat/chat.component.js +9 -2
- package/esm2015/lib/dr-chat/chat.module.js +3 -1
- package/esm2015/lib/dr-chat/dr-chat-form/chat-form.component.js +18 -3
- package/esm2015/lib/dr-chat/dr-chat-suggestions/chat-suggestions.component.js +13 -3
- package/esm2015/lib/dr-chat/dr-dot-flashing/dr-dot-flashing.component.js +15 -0
- package/fesm2015/datarailsshared-datarailsshared.js +53 -6
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-chat/chat.component.d.ts +6 -0
- package/lib/dr-chat/dr-chat-form/chat-form.component.d.ts +8 -0
- package/lib/dr-chat/dr-chat-suggestions/chat-suggestions.component.d.ts +6 -0
- package/lib/dr-chat/dr-dot-flashing/dr-dot-flashing.component.d.ts +3 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.168.tgz +0 -0
|
@@ -6196,11 +6196,18 @@
|
|
|
6196
6196
|
* @type {string}
|
|
6197
6197
|
*/
|
|
6198
6198
|
this.dropFilePlaceholder = 'Drop file to send';
|
|
6199
|
+
/**
|
|
6200
|
+
* Parameter to check is send message function available
|
|
6201
|
+
*
|
|
6202
|
+
* @type {boolean}
|
|
6203
|
+
*/
|
|
6204
|
+
this.waitForReply = false;
|
|
6199
6205
|
/**
|
|
6200
6206
|
*
|
|
6201
6207
|
* @type {EventEmitter<{ message: string, files: File[] }>}
|
|
6202
6208
|
*/
|
|
6203
6209
|
this.send = new i0.EventEmitter();
|
|
6210
|
+
this.abort = new i0.EventEmitter();
|
|
6204
6211
|
/**
|
|
6205
6212
|
* Emits when message input value has been changed
|
|
6206
6213
|
*
|
|
@@ -6269,6 +6276,9 @@
|
|
|
6269
6276
|
}
|
|
6270
6277
|
};
|
|
6271
6278
|
DrChatFormComponent.prototype.sendMessage = function () {
|
|
6279
|
+
if (this.waitForReply) {
|
|
6280
|
+
return;
|
|
6281
|
+
}
|
|
6272
6282
|
if (this.droppedFiles.length || String(this.message).trim().length) {
|
|
6273
6283
|
this._textareaInitialHeight = true;
|
|
6274
6284
|
this.send.emit({ message: this.message, files: this.droppedFiles });
|
|
@@ -6277,6 +6287,9 @@
|
|
|
6277
6287
|
this.cdr.markForCheck();
|
|
6278
6288
|
}
|
|
6279
6289
|
};
|
|
6290
|
+
DrChatFormComponent.prototype.abortMessage = function () {
|
|
6291
|
+
this.abort.emit();
|
|
6292
|
+
};
|
|
6280
6293
|
DrChatFormComponent.prototype.onModelChange = function (value) {
|
|
6281
6294
|
this._textareaInitialHeight = false;
|
|
6282
6295
|
this.inputChange.emit(value);
|
|
@@ -6296,9 +6309,9 @@
|
|
|
6296
6309
|
DrChatFormComponent.decorators = [
|
|
6297
6310
|
{ type: i0.Component, args: [{
|
|
6298
6311
|
selector: 'dr-chat-form',
|
|
6299
|
-
template: "<div class=\"dropped-files\" *ngIf=\"droppedFiles?.length\">\n <div class=\"dropped-files__item\" *ngFor=\"let file of droppedFiles\">\n <div class=\"dropped-files__item__preview\" [style.background-image]=\"file.urlStyle || 'none'\">\n <i class=\"dr-icon-file\" *ngIf=\"!file.urlStyle\"></i>\n </div>\n <div class=\"dropped-files__item__name\">{{ file.name }}</div>\n <i class=\"dropped-files__item__remove dr-icon-exit\" (click)=\"removeFile(file)\"></i>\n </div>\n</div>\n<div class=\"message-row\">\n <div class=\"message-row__input\">\n <textarea #textAreaElement\n (focus)=\"inputFocus = true\"\n (blur)=\"inputFocus = false\"\n (mouseenter)=\"inputHover = true\"\n (mouseleave)=\"inputHover = false\"\n [(ngModel)]=\"message\"\n [rows]=\"1\"\n [style]=\"getTextAreaHeight(textAreaElement)\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"text\"\n placeholder=\"{{ fileOver ? dropFilePlaceholder : messagePlaceholder }}\"\n (keyup.enter)=\"sendMessage()\">\n </textarea>\n <i (click)=\"sendMessage()\" class=\"dr-icon-notify send-button\"></i>\n </div>\n</div>\n",
|
|
6312
|
+
template: "<div class=\"dropped-files\" *ngIf=\"droppedFiles?.length\">\n <div class=\"dropped-files__item\" *ngFor=\"let file of droppedFiles\">\n <div class=\"dropped-files__item__preview\" [style.background-image]=\"file.urlStyle || 'none'\">\n <i class=\"dr-icon-file\" *ngIf=\"!file.urlStyle\"></i>\n </div>\n <div class=\"dropped-files__item__name\">{{ file.name }}</div>\n <i class=\"dropped-files__item__remove dr-icon-exit\" (click)=\"removeFile(file)\"></i>\n </div>\n</div>\n<div class=\"message-row\">\n <div class=\"message-row__input\">\n <textarea #textAreaElement\n (focus)=\"inputFocus = true\"\n (blur)=\"inputFocus = false\"\n (mouseenter)=\"inputHover = true\"\n (mouseleave)=\"inputHover = false\"\n [(ngModel)]=\"message\"\n [rows]=\"1\"\n [style]=\"getTextAreaHeight(textAreaElement)\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"text\"\n placeholder=\"{{ fileOver ? dropFilePlaceholder : messagePlaceholder }}\"\n (keyup.enter)=\"sendMessage()\">\n </textarea>\n <i *ngIf=\"!waitForReply\" (click)=\"sendMessage()\" class=\"dr-icon-notify send-button\"></i>\n <dr-dot-flashing *ngIf=\"waitForReply\" class=\"wait-reply-dot-flashing\"></dr-dot-flashing>\n <dr-button *ngIf=\"waitForReply\" (click)=\"abortMessage()\" theme=\"ghost\" class=\"abort-button\">Stop generating</dr-button>\n </div>\n</div>\n",
|
|
6300
6313
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6301
|
-
styles: [":host{display:flex;flex-direction:column;align-items:center;padding:0 24px;margin-top:12px}:host .message-row{display:flex;justify-content:center;width:100%;padding:0 0 21px;max-width:970px}:host .message-row__input{position:relative;display:flex;align-items:center;flex-grow:1;flex-direction:row;height:auto;overflow:
|
|
6314
|
+
styles: [":host{display:flex;flex-direction:column;align-items:center;padding:0 24px;margin-top:12px}:host .message-row{display:flex;justify-content:center;width:100%;padding:0 0 21px;max-width:970px}:host .message-row__input{position:relative;display:flex;align-items:center;flex-grow:1;flex-direction:row;height:auto;overflow:visible;min-width:265px}:host .message-row__input textarea{font-size:14px;line-height:22px;max-height:100%;flex-grow:1;resize:none;padding:14px 40px 12px 23px;margin:auto;border:1px solid #DFE0E3;border-radius:12px;min-height:50px}:host .message-row__input textarea:focus{border:1px solid #7F7FDD}:host .message-row__input textarea::placeholder{color:#9ea1aa}:host .message-row__input .send-button{position:absolute;right:14px;cursor:pointer;color:#dfe0e3;font-size:28px}:host .message-row__input .wait-reply-dot-flashing{position:absolute;right:20px}:host .message-row__input textarea:focus+.send-button,:host .message-row__input .send-button:hover{color:#25258c}:host .message-row__input .abort-button{position:absolute;right:0;top:-44px}:host .message-row__input .abort-button::ng-deep button{background:#F2F2FF!important;border-radius:4px}:host input{flex:1}:host input.with-button{border-bottom-right-radius:0;border-top-right-radius:0}:host .dropped-files{display:flex;flex-direction:row;margin-bottom:.5rem;flex-wrap:wrap}:host .dropped-files__item{display:flex;flex-direction:column;justify-content:center;margin:0 10px 10px 0;position:relative}:host .dropped-files__item__preview{background-size:cover;background-position:center;width:64px;height:64px;border-radius:8px;border:1px solid #ccc}:host .dropped-files__item__preview i{font-size:62px}:host .dropped-files__item__name{white-space:nowrap;font-size:12px;color:#8f929e;margin-top:4px;max-width:64px;overflow:hidden;text-overflow:ellipsis}:host .dropped-files__item__remove{position:absolute;right:-4px;top:-4px;cursor:pointer;background:white;border-radius:12px;color:#8f929e;border:1px solid #8f929e;font-size:14px}\n"]
|
|
6302
6315
|
},] }
|
|
6303
6316
|
];
|
|
6304
6317
|
DrChatFormComponent.ctorParameters = function () { return [
|
|
@@ -6310,7 +6323,9 @@
|
|
|
6310
6323
|
messagePlaceholder: [{ type: i0.Input }],
|
|
6311
6324
|
dropFiles: [{ type: i0.Input }],
|
|
6312
6325
|
dropFilePlaceholder: [{ type: i0.Input }],
|
|
6326
|
+
waitForReply: [{ type: i0.Input }],
|
|
6313
6327
|
send: [{ type: i0.Output }],
|
|
6328
|
+
abort: [{ type: i0.Output }],
|
|
6314
6329
|
inputChange: [{ type: i0.Output }],
|
|
6315
6330
|
fileOver: [{ type: i0.HostBinding, args: ['class.file-over',] }],
|
|
6316
6331
|
onDrop: [{ type: i0.HostListener, args: ['drop', ['$event'],] }],
|
|
@@ -6428,6 +6443,12 @@
|
|
|
6428
6443
|
this.values = [];
|
|
6429
6444
|
this.fullScreen = false;
|
|
6430
6445
|
this.buttonMode = false;
|
|
6446
|
+
/**
|
|
6447
|
+
* Parameter to check is send message function available
|
|
6448
|
+
*
|
|
6449
|
+
* @type {boolean}
|
|
6450
|
+
*/
|
|
6451
|
+
this.waitForReply = false;
|
|
6431
6452
|
this.suggestionSelect = new i0.EventEmitter();
|
|
6432
6453
|
}
|
|
6433
6454
|
Object.defineProperty(DrChatSuggestionsComponent.prototype, "hiddenValues", {
|
|
@@ -6445,6 +6466,9 @@
|
|
|
6445
6466
|
};
|
|
6446
6467
|
DrChatSuggestionsComponent.prototype.onItemClick = function (item) {
|
|
6447
6468
|
var _this = this;
|
|
6469
|
+
if (this.waitForReply) {
|
|
6470
|
+
return;
|
|
6471
|
+
}
|
|
6448
6472
|
this.suggestionSelect.emit(item);
|
|
6449
6473
|
this.hiddenValues = __spreadArray(__spreadArray([], __read(this.hiddenValues)), [item]);
|
|
6450
6474
|
this.filterValues();
|
|
@@ -6478,9 +6502,9 @@
|
|
|
6478
6502
|
DrChatSuggestionsComponent.decorators = [
|
|
6479
6503
|
{ type: i0.Component, args: [{
|
|
6480
6504
|
selector: 'dr-chat-suggestions',
|
|
6481
|
-
template: "<div class=\"chat-suggestions\">\n <ng-container *ngIf=\"buttonMode; else suggestionCards\">\n <div class=\"chat-suggestions__container\" (mouseenter)=\"fillVisibleValues()\">\n <
|
|
6505
|
+
template: "<div class=\"chat-suggestions\">\n <ng-container *ngIf=\"buttonMode; else suggestionCards\">\n <div class=\"chat-suggestions__container\" (mouseenter)=\"fillVisibleValues()\">\n <dr-button theme=\"ghost\" class=\"chat-suggestions__container__button\">\n Suggested chats\n </dr-button>\n <ng-container *ngTemplateOutlet=\"suggestionCards\"></ng-container>\n </div>\n </ng-container>\n</div>\n\n<ng-template #suggestionCards>\n <div class=\"chat-suggestions__items\" #suggestionCardsList>\n <div class=\"chat-suggestions__items__background\"></div>\n <div *ngFor=\"let item of visibleValues\"\n class=\"chat-suggestions__items__item\" (click)=\"onItemClick(item)\">\n {{ item }}\n </div>\n </div>\n</ng-template>\n",
|
|
6482
6506
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6483
|
-
styles: [":host{display:flex;align-items:flex-start;justify-content:center}:host .chat-suggestions{display:flex;width:100%;max-width:970px}:host .chat-suggestions__container{display:flex;position:relative;width:auto;margin-top:12px;padding:0 24px}:host .chat-suggestions__container:hover{width:100%}:host .chat-suggestions__container:hover .chat-suggestions__container__button{background:#
|
|
6507
|
+
styles: [":host{display:flex;align-items:flex-start;justify-content:center}:host .chat-suggestions{display:flex;width:100%;max-width:970px}:host .chat-suggestions__container{display:flex;position:relative;width:auto;margin-top:12px;padding:0 24px}:host .chat-suggestions__container:hover{width:100%}:host .chat-suggestions__container:hover .chat-suggestions__container__button::ng-deep button{color:#4646ce;background:#f2f2fb}:host .chat-suggestions__container:hover .chat-suggestions__items,:host .chat-suggestions__container:hover .chat-suggestions__items__background{display:flex}:host .chat-suggestions__container__button::ng-deep button{background:#F2F2FF!important;border-radius:4px}:host .chat-suggestions__container .chat-suggestions__items{display:none;position:absolute;width:100%;bottom:0;left:0;padding-bottom:32px;z-index:2}:host .chat-suggestions__items{display:flex;flex-wrap:wrap;width:100%;justify-content:space-between;padding:0 24px}:host .chat-suggestions__items__background{display:none;position:absolute;top:-32px;right:0;bottom:32px;left:0;background:white;opacity:.7;z-index:-1}:host .chat-suggestions__items__item{margin:0 0 20px;display:inline-flex;height:76px;width:275px;padding:16px;border-radius:8px;background:#F2F2FF;box-shadow:0 1px 2px #00000026;font-size:14px;line-height:24px;color:#25258c}:host .chat-suggestions__items__item:hover{cursor:pointer;background:#EAEAFF}\n"]
|
|
6484
6508
|
},] }
|
|
6485
6509
|
];
|
|
6486
6510
|
DrChatSuggestionsComponent.ctorParameters = function () { return []; };
|
|
@@ -6488,6 +6512,7 @@
|
|
|
6488
6512
|
values: [{ type: i0.Input }],
|
|
6489
6513
|
fullScreen: [{ type: i0.Input }],
|
|
6490
6514
|
buttonMode: [{ type: i0.Input }],
|
|
6515
|
+
waitForReply: [{ type: i0.Input }],
|
|
6491
6516
|
suggestionSelect: [{ type: i0.Output }],
|
|
6492
6517
|
suggestionCardsList: [{ type: i0.ViewChild, args: ['suggestionCardsList',] }]
|
|
6493
6518
|
};
|
|
@@ -6500,6 +6525,12 @@
|
|
|
6500
6525
|
this.noMessagesPlaceholder = 'No messages yet.';
|
|
6501
6526
|
this._scrollBottom = true;
|
|
6502
6527
|
this.suggestions = [];
|
|
6528
|
+
/**
|
|
6529
|
+
* Parameter to check is send message function available
|
|
6530
|
+
*
|
|
6531
|
+
* @type {boolean}
|
|
6532
|
+
*/
|
|
6533
|
+
this.waitForReply = false;
|
|
6503
6534
|
this.clear = new i0.EventEmitter();
|
|
6504
6535
|
this.close = new i0.EventEmitter();
|
|
6505
6536
|
this.suggestionSelect = new i0.EventEmitter();
|
|
@@ -6581,7 +6612,7 @@
|
|
|
6581
6612
|
DrChatComponent.decorators = [
|
|
6582
6613
|
{ type: i0.Component, args: [{
|
|
6583
6614
|
selector: 'dr-chat',
|
|
6584
|
-
template: "<div class=\"chat\" [class.chat--in-full-screen]=\"fullScreen\">\n <div class=\"chat__header\">\n <div class=\"chat__header__logo\"></div>\n\n <div class=\"chat__header__text\">\n <div class=\"chat__header__text__title\">{{ title }}</div>\n <div *ngIf=\"subtitle\" class=\"chat__header__text__subtitle\">{{ subtitle }}</div>\n </div>\n\n <dr-button *ngIf=\"showClearButton\"\n (click)=\"onClearClick($event)\"\n theme=\"icon\"\n icon=\"dr-icon-clear\"\n class=\"ml-auto\"\n drTooltip=\"Clear chat\">\n </dr-button>\n\n <dr-button *ngIf=\"!fullScreen\"\n (click)=\"close.emit($event)\"\n theme=\"icon\"\n icon=\"dr-icon-exit\"\n class=\"ml-4\"\n drTooltip=\"Close\">\n </dr-button>\n </div>\n\n <div *ngIf=\"!messages?.length\" class=\"chat__empty-state\">\n <span class=\"chat__empty-state__text\">{{ noMessagesPlaceholder }}</span>\n </div>\n\n <div *ngIf=\"messages?.length\" class=\"chat__messages\">\n <div #messagesContainer class=\"chat__messages__container\"\n [class.chat__messages__container--scroll]=\"messagesContainerWithScroll\">\n <ng-content select=\"dr-chat-message\"></ng-content>\n </div>\n </div>\n\n <dr-chat-suggestions *ngIf=\"suggestions?.length\"\n [values]=\"suggestions\"\n [fullScreen]=\"fullScreen\"\n class=\"chat__suggestions\"\n [class.chat__suggestions--full-height]=\"fullScreen && !messages?.length\"\n [buttonMode]=\"!!messages?.length\"\n (suggestionSelect)=\"suggestionSelect.emit($event)\">\n </dr-chat-suggestions>\n\n <div class=\"form\">\n <ng-content select=\"dr-chat-form\"></ng-content>\n </div>\n</div>\n",
|
|
6615
|
+
template: "<div class=\"chat\" [class.chat--in-full-screen]=\"fullScreen\">\n <div class=\"chat__header\">\n <div class=\"chat__header__logo\"></div>\n\n <div class=\"chat__header__text\">\n <div class=\"chat__header__text__title\">{{ title }}</div>\n <div *ngIf=\"subtitle\" class=\"chat__header__text__subtitle\">{{ subtitle }}</div>\n </div>\n\n <dr-button *ngIf=\"showClearButton\"\n (click)=\"onClearClick($event)\"\n theme=\"icon\"\n icon=\"dr-icon-clear\"\n class=\"ml-auto\"\n drTooltip=\"Clear chat\">\n </dr-button>\n\n <dr-button *ngIf=\"!fullScreen\"\n (click)=\"close.emit($event)\"\n theme=\"icon\"\n icon=\"dr-icon-exit\"\n class=\"ml-4\"\n drTooltip=\"Close\">\n </dr-button>\n </div>\n\n <div *ngIf=\"!messages?.length\" class=\"chat__empty-state\">\n <span class=\"chat__empty-state__text\">{{ noMessagesPlaceholder }}</span>\n </div>\n\n <div *ngIf=\"messages?.length\" class=\"chat__messages\">\n <div #messagesContainer class=\"chat__messages__container\"\n [class.chat__messages__container--scroll]=\"messagesContainerWithScroll\">\n <ng-content select=\"dr-chat-message\"></ng-content>\n </div>\n </div>\n\n <dr-chat-suggestions *ngIf=\"suggestions?.length\"\n [values]=\"suggestions\"\n [fullScreen]=\"fullScreen\"\n [waitForReply]=\"waitForReply\"\n class=\"chat__suggestions\"\n [class.chat__suggestions--full-height]=\"fullScreen && !messages?.length\"\n [buttonMode]=\"!!messages?.length\"\n (suggestionSelect)=\"suggestionSelect.emit($event)\">\n </dr-chat-suggestions>\n\n <div class=\"form\">\n <ng-content select=\"dr-chat-form\"></ng-content>\n </div>\n</div>\n",
|
|
6585
6616
|
providers: [DrChatCustomMessageService],
|
|
6586
6617
|
styles: [":host{height:100%;width:100%;display:flex;flex-direction:column}.chat{position:relative;display:flex;flex-grow:1;flex-direction:column;height:100%;background-color:#fff;color:#4e566c;font-family:\"Poppins\",sans-serif;font-size:14px;font-weight:400;line-height:22px}.chat__header{display:flex;align-items:center;background-color:#f2f2ff;color:#25258c;padding:15px 24px;font-weight:400;font-size:20px;line-height:28px;box-shadow:0 1px 3px #0003;z-index:1}.chat__header__logo{display:flex;width:43px;height:38px;background:url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22UTF-8%22%3F%3E%3Csvg id%3D%22Layer_1%22 data-name%3D%22Layer 1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 viewBox%3D%220 0 74 65%22%3E %3Cdefs%3E %3Cstyle%3E .cls-1%2C .cls-2%2C .cls-3 %7B fill%3A none%3B %7D .cls-4 %7B fill%3A url(%23linear-gradient)%3B %7D .cls-5 %7B fill%3A %234eb7df%3B %7D .cls-2 %7B stroke%3A %23a6a8aa%3B stroke-miterlimit%3A 10%3B stroke-width%3A .37px%3B %7D .cls-6 %7B fill%3A url(%23linear-gradient-3)%3B %7D .cls-7 %7B fill%3A url(%23linear-gradient-2)%3B %7D .cls-3 %7B clip-path%3A url(%23clippath)%3B %7D %3C%2Fstyle%3E %3CclipPath id%3D%22clippath%22%3E %3Crect class%3D%22cls-1%22 width%3D%2274%22 height%3D%2265%22%2F%3E %3C%2FclipPath%3E %3ClinearGradient id%3D%22linear-gradient%22 x1%3D%2224.26%22 y1%3D%22-3.79%22 x2%3D%2295.63%22 y2%3D%2288.82%22 gradientTransform%3D%22translate(0 65.89) scale(1 -1)%22 gradientUnits%3D%22userSpaceOnUse%22%3E %3Cstop offset%3D%220%22 stop-color%3D%22%237676ff%22%2F%3E %3Cstop offset%3D%22.18%22 stop-color%3D%22%235959ff%22%2F%3E %3Cstop offset%3D%22.35%22 stop-color%3D%22%235757e0%22%2F%3E %3Cstop offset%3D%22.61%22 stop-color%3D%22%234646ce%22%2F%3E %3Cstop offset%3D%22.84%22 stop-color%3D%22%234b4be4%22%2F%3E %3Cstop offset%3D%221%22 stop-color%3D%22%234444eb%22%2F%3E %3C%2FlinearGradient%3E %3ClinearGradient id%3D%22linear-gradient-2%22 x1%3D%2212.05%22 y1%3D%2277.06%22 x2%3D%2210.77%22 y2%3D%2213.85%22 gradientTransform%3D%22translate(0 65.89) scale(1 -1)%22 gradientUnits%3D%22userSpaceOnUse%22%3E %3Cstop offset%3D%22.45%22 stop-color%3D%22%232f92b8%22%2F%3E %3Cstop offset%3D%22.84%22 stop-color%3D%22%234eb7df%22%2F%3E %3Cstop offset%3D%221%22 stop-color%3D%22%234eb7df%22%2F%3E %3C%2FlinearGradient%3E %3ClinearGradient id%3D%22linear-gradient-3%22 x1%3D%2262.26%22 y1%3D%22-2.54%22 x2%3D%2261.76%22 y2%3D%2285.91%22 gradientTransform%3D%22translate(0 65.89) scale(1 -1)%22 gradientUnits%3D%22userSpaceOnUse%22%3E %3Cstop offset%3D%220%22 stop-color%3D%22%2336369b%22%2F%3E %3Cstop offset%3D%22.52%22 stop-color%3D%22%234848d0%22%2F%3E %3C%2FlinearGradient%3E %3C%2Fdefs%3E %3Cg class%3D%22cls-3%22%3E %3Cg%3E %3Cpath class%3D%22cls-4%22 d%3D%22m73.32%2C24.79v15.73c0%2C13.12-9.87%2C23.79-22%2C23.79h-21.32c-3.46-.06-6.25-3.11-6.25-6.87s2.79-6.81%2C6.25-6.87h21.32c5.13%2C0%2C9.29-4.51%2C9.29-10.05v-15.73c0-5.54-4.17-10.05-9.29-10.05h-7.46c3.51%2C0%2C6.35-3.08%2C6.35-6.88s-2.79-6.8-6.25-6.87h7.35c12.12%2C0%2C22%2C10.67%2C22%2C23.79h0Z%22%2F%3E %3Cpath class%3D%22cls-5%22 d%3D%22m50.26%2C7.82c0%2C3.8-2.9%2C6.93-6.41%2C6.93h-21.86c-5.13%2C0-9.29%2C4.51-9.29%2C10.05v15.73c0%2C5.54%2C4.17%2C10.05%2C9.29%2C10.05h8.01c-3.46.06-6.25%2C3.11-6.25%2C6.87s2.79%2C6.81%2C6.25%2C6.87h-8.01c-12.12%2C0-22-10.67-22-23.79v-15.73C0%2C11.68%2C9.87%2C1%2C21.99%2C1h21.97c3.46.06%2C6.3%2C3.06%2C6.3%2C6.82Z%22%2F%3E %3Cpath class%3D%22cls-2%22 d%3D%22m66.45%2C1h-.22.22%2C0Z%22%2F%3E %3Cpath class%3D%22cls-2%22 d%3D%22m36.05%2C50.58h-.22.22%2C0Z%22%2F%3E %3Cpath class%3D%22cls-7%22 d%3D%22m0%2C33.78v-2.76C0%2C12.9%2C13.62%2C14.48%2C13.62%2C14.48h8.38c-5.5.46-9.5%2C4.71-9.5%2C9.96l.02%2C15.8c0%2C5.54%2C4.44%2C10.59%2C9.48%2C10.59l-8-.5S0%2C51.88%2C0%2C33.77h0Z%22%2F%3E %3Cpath class%3D%22cls-6%22 d%3D%22m73%2C31.51v2.76c0%2C18.12-13.62%2C16.53-13.62%2C16.53h-7.99c5.61-.85%2C9.09-4.76%2C9.09-10.02l.02-16.33c0-5.54-4.46-10-9.5-10h8s13.99-1.05%2C13.99%2C17.07h0Z%22%2F%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat;background-size:100% 100%}.chat__header__text{display:flex;flex-direction:column;flex-grow:1;margin-left:20px}.chat__header__text__title{display:flex;align-items:center}.chat__header__text__title:after{content:\"BETA\";display:inline-flex;padding:2px 10px;background:#25258C;color:#f4f4f3;font-weight:600;font-size:10px;line-height:14px;border-radius:8px;margin-left:12px;font-family:\"Nunito Sans\",sans-serif}.chat__header__text__subtitle{font-size:14px;line-height:22px}.chat__header dr-button::ng-deep button:not(:hover){color:#25258c}.chat__empty-state{display:flex;justify-content:center}.chat__empty-state__text{padding:20px 0;font-family:Poppins,sans-serif;font-size:20px;font-weight:300;line-height:30px;text-align:center;max-width:440px;color:#4646ce}.chat__messages{display:flex;flex-grow:1;overflow-x:hidden;overflow-y:auto;height:100%;width:100%}.chat__messages__container{overflow-y:auto;overflow-x:hidden;display:flex;flex-shrink:0;flex-direction:column;width:100%;padding-bottom:1px}.chat__messages__container--scroll::ng-deep dr-chat-message{padding-right:16px}.chat__suggestions--full-height{flex-grow:1;height:1px;overflow:auto}.chat--in-full-screen .chat__header{padding-left:48px;padding-right:48px}.chat--in-full-screen .chat__empty-state__text{padding:77px 0;font-size:28px;line-height:46px;max-width:570px}.chat--in-full-screen .chat__messages::ng-deep dr-chat-message{justify-content:center}.chat--in-full-screen .chat__messages::ng-deep .message{max-width:919px}.chat--in-full-screen .chat__suggestions::ng-deep .chat-suggestions__items{padding-left:0;padding-right:0}.chat--in-full-screen .chat__suggestions::ng-deep .chat-suggestions__items__item{margin:0 0 26px;height:80px;width:310px;font-size:16px}.chat--in-full-screen .chat__suggestions::ng-deep .chat-suggestions__container{padding:0}\n"]
|
|
6587
6618
|
},] }
|
|
@@ -6599,6 +6630,7 @@
|
|
|
6599
6630
|
scrollBottom: [{ type: i0.Input }],
|
|
6600
6631
|
suggestions: [{ type: i0.Input }],
|
|
6601
6632
|
reopen: [{ type: i0.Input }],
|
|
6633
|
+
waitForReply: [{ type: i0.Input }],
|
|
6602
6634
|
messagesContainer: [{ type: i0.ViewChild, args: ['messagesContainer',] }],
|
|
6603
6635
|
messages: [{ type: i0.ContentChildren, args: [DrChatMessageComponent,] }],
|
|
6604
6636
|
chatForm: [{ type: i0.ContentChild, args: [DrChatFormComponent,] }],
|
|
@@ -6733,6 +6765,21 @@
|
|
|
6733
6765
|
drCustomMessage: [{ type: i0.Input }]
|
|
6734
6766
|
};
|
|
6735
6767
|
|
|
6768
|
+
var DrDotFlashingComponent = /** @class */ (function () {
|
|
6769
|
+
function DrDotFlashingComponent() {
|
|
6770
|
+
}
|
|
6771
|
+
return DrDotFlashingComponent;
|
|
6772
|
+
}());
|
|
6773
|
+
DrDotFlashingComponent.decorators = [
|
|
6774
|
+
{ type: i0.Component, args: [{
|
|
6775
|
+
selector: 'dr-dot-flashing',
|
|
6776
|
+
template: "<div class=\"dot-flashing\"></div>\n",
|
|
6777
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6778
|
+
styles: [":host .dot-flashing{position:relative;width:6px;height:6px;border-radius:5px;background-color:#25258c;color:#25258c;animation:dot-flashing 1s infinite linear alternate;animation-delay:.5s;margin-left:11px}:host .dot-flashing:before,:host .dot-flashing:after{content:\"\";display:inline-block;position:absolute;top:0}:host .dot-flashing:before{left:-10px;width:6px;height:6px;border-radius:5px;background-color:#25258c;color:#25258c;animation:dot-flashing 1s infinite alternate;animation-delay:0s}:host .dot-flashing:after{left:10px;width:6px;height:6px;border-radius:5px;background-color:#25258c;color:#25258c;animation:dot-flashing 1s infinite alternate;animation-delay:1s}@keyframes dot-flashing{0%{background-color:#25258c}50%,to{background-color:#9880ff33}}\n"]
|
|
6779
|
+
},] }
|
|
6780
|
+
];
|
|
6781
|
+
DrDotFlashingComponent.ctorParameters = function () { return []; };
|
|
6782
|
+
|
|
6736
6783
|
var DR_CHAT_COMPONENTS = [
|
|
6737
6784
|
DrChatComponent,
|
|
6738
6785
|
DrChatMessageComponent,
|
|
@@ -6740,6 +6787,7 @@
|
|
|
6740
6787
|
DrChatMessageTextComponent,
|
|
6741
6788
|
DrChatMessageFileComponent,
|
|
6742
6789
|
DrChatSuggestionsComponent,
|
|
6790
|
+
DrDotFlashingComponent,
|
|
6743
6791
|
];
|
|
6744
6792
|
var DR_CHAT_DIRECTIVES = [DrChatCustomMessageDirective];
|
|
6745
6793
|
var DrChatModule = /** @class */ (function () {
|
|
@@ -7036,8 +7084,9 @@
|
|
|
7036
7084
|
exports.YearTagComponent = YearTagComponent;
|
|
7037
7085
|
exports["ɵa"] = components$2;
|
|
7038
7086
|
exports["ɵb"] = POPUP_ANIMATION;
|
|
7039
|
-
exports["ɵba"] =
|
|
7040
|
-
exports["ɵbb"] =
|
|
7087
|
+
exports["ɵba"] = DrChatCustomMessageDirective;
|
|
7088
|
+
exports["ɵbb"] = DrScenarioConfigurationComponent;
|
|
7089
|
+
exports["ɵbc"] = DrScenarioTagConfigurationComponent;
|
|
7041
7090
|
exports["ɵc"] = DrDatePickerComponent;
|
|
7042
7091
|
exports["ɵd"] = DrDatePickerService;
|
|
7043
7092
|
exports["ɵe"] = DrDatePickerWithTimeframeComponent;
|
|
@@ -7061,7 +7110,7 @@
|
|
|
7061
7110
|
exports["ɵw"] = DrChatSuggestionsComponent;
|
|
7062
7111
|
exports["ɵx"] = DrChatMessageTextComponent;
|
|
7063
7112
|
exports["ɵy"] = DrChatMessageFileComponent;
|
|
7064
|
-
exports["ɵz"] =
|
|
7113
|
+
exports["ɵz"] = DrDotFlashingComponent;
|
|
7065
7114
|
|
|
7066
7115
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7067
7116
|
|