@datarailsshared/datarailsshared 1.6.23 → 1.6.27

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.
@@ -14,7 +14,7 @@ import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumb
14
14
  import { skip, takeUntil as takeUntil$1, startWith as startWith$1, distinctUntilChanged as distinctUntilChanged$1, map, tap, shareReplay, filter, debounceTime, switchMap, first, catchError, finalize, take } from 'rxjs/operators';
15
15
  import * as i5 from '@angular/material/datepicker';
16
16
  import { MatCalendar, DateRange, MAT_DATE_RANGE_SELECTION_STRATEGY, MatDatepickerModule } from '@angular/material/datepicker';
17
- import { transition, style, animate, trigger, state, query, animateChild } from '@angular/animations';
17
+ import { transition, style, animate, trigger, state } from '@angular/animations';
18
18
  import * as i1$1 from '@angular/cdk/overlay';
19
19
  import { OverlayConfig } from '@angular/cdk/overlay';
20
20
  import * as i4 from '@angular/cdk/portal';
@@ -1022,13 +1022,13 @@ const _c1$h = ["multiLabelTemplate"];
1022
1022
  const _c2$7 = ["optionTemplate"];
1023
1023
  const _c3$6 = ["optionHeaderTemplate"];
1024
1024
  const _c4$3 = ["optionFooterTemplate"];
1025
- const _c5$1 = function (a0) { return { item: a0 }; };
1025
+ const _c5 = function (a0) { return { item: a0 }; };
1026
1026
  function DrSelectComponent_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1027
1027
  i0.ɵɵelementContainer(0, 6);
1028
1028
  } if (rf & 2) {
1029
1029
  const item_r11 = ctx.item;
1030
1030
  const ctx_r10 = i0.ɵɵnextContext(2);
1031
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r10.optionHeaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$1, item_r11));
1031
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r10.optionHeaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5, item_r11));
1032
1032
  } }
1033
1033
  function DrSelectComponent_2_Template(rf, ctx) { if (rf & 1) {
1034
1034
  i0.ɵɵtemplate(0, DrSelectComponent_2_ng_template_0_Template, 1, 4, "ng-template", 5);
@@ -1038,19 +1038,19 @@ function DrSelectComponent_3_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1038
1038
  } if (rf & 2) {
1039
1039
  const item_r13 = ctx.item;
1040
1040
  const ctx_r12 = i0.ɵɵnextContext(2);
1041
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r12.labelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5$1, item_r13));
1041
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r12.labelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c5, item_r13));
1042
1042
  } }
1043
1043
  function DrSelectComponent_3_Template(rf, ctx) { if (rf & 1) {
1044
1044
  i0.ɵɵtemplate(0, DrSelectComponent_3_ng_template_0_Template, 1, 4, "ng-template", 7);
1045
1045
  } }
1046
- const _c6$1 = function (a0, a1) { return { items: a0, clear: a1 }; };
1046
+ const _c6 = function (a0, a1) { return { items: a0, clear: a1 }; };
1047
1047
  function DrSelectComponent_4_ng_template_0_Template(rf, ctx) { if (rf & 1) {
1048
1048
  i0.ɵɵelementContainer(0, 6);
1049
1049
  } if (rf & 2) {
1050
1050
  const items_r15 = ctx.items;
1051
1051
  const clear_r16 = ctx.clear;
1052
1052
  const ctx_r14 = i0.ɵɵnextContext(2);
1053
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r14.multiLabelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c6$1, items_r15, clear_r16));
1053
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r14.multiLabelTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c6, items_r15, clear_r16));
1054
1054
  } }
1055
1055
  function DrSelectComponent_4_Template(rf, ctx) { if (rf & 1) {
1056
1056
  i0.ɵɵtemplate(0, DrSelectComponent_4_ng_template_0_Template, 1, 5, "ng-template", 8);
@@ -6485,8 +6485,8 @@ function DrChatComponent_dr_chat_suggestions_7_Template(rf, ctx) { if (rf & 1) {
6485
6485
  i0.ɵɵclassProp("chat__suggestions--full-height", ctx_r3.fullScreen && !(ctx_r3.messages == null ? null : ctx_r3.messages.length));
6486
6486
  i0.ɵɵproperty("values", ctx_r3.suggestions)("fullScreen", ctx_r3.fullScreen)("waitForReply", ctx_r3.waitForReply)("buttonMode", !!(ctx_r3.messages == null ? null : ctx_r3.messages.length));
6487
6487
  } }
6488
- const _c2$3 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-chat-form-with-history"]], [["dr-chat-message"]]];
6489
- const _c3$3 = ["dr-chat-alert", "dr-chat-form", "dr-chat-form-with-history", "dr-chat-message"];
6488
+ const _c2$3 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-ai-search-input"]], [["dr-chat-message"]]];
6489
+ const _c3$3 = ["dr-chat-alert", "dr-chat-form", "dr-ai-search-input", "dr-chat-message"];
6490
6490
  class DrChatComponent {
6491
6491
  set contentUpdateSubject(value) {
6492
6492
  if (value) {
@@ -6607,7 +6607,7 @@ class DrChatComponent {
6607
6607
  }
6608
6608
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatComponent, [{
6609
6609
  type: Component,
6610
- args: [{ selector: 'dr-chat', providers: [DrChatCustomMessageService], template: "<div class=\"chat\" [class.chat--in-full-screen]=\"fullScreen\">\n <div class=\"chat__sticky-top\">\n <ng-container *ngIf=\"chatHeader\" [ngTemplateOutlet]=\"chatHeader\"></ng-container>\n\n <div class=\"chat__alert\">\n <ng-content select=\"dr-chat-alert\"></ng-content>\n </div>\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\n #messagesContainer\n 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\n *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 <ng-content select=\"dr-chat-form-with-history\"></ng-content>\n </div>\n</div>\n", 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;box-shadow:0 2px 36px #00000026}.chat__sticky-top{display:flex;flex-direction:column;box-shadow:0 1px 3px #0003;z-index:1}.chat__empty-state{display:flex;justify-content:center}.chat__empty-state__text{padding:44px 0;font-family:Poppins,sans-serif;font-size:18px;font-weight:400;line-height:28px;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:8px}.chat__suggestions{flex:1}.chat__suggestions ::ng-deep .chat-suggestions__container{padding:0}.chat__suggestions--full-height{flex-grow:1;height:1px;overflow:auto}.chat--in-full-screen .chat__header{padding-left:32px;padding-right:32px}.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:912px}.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{font-size:16px}\n"] }]
6610
+ args: [{ selector: 'dr-chat', providers: [DrChatCustomMessageService], template: "<div class=\"chat\" [class.chat--in-full-screen]=\"fullScreen\">\n <div class=\"chat__sticky-top\">\n <ng-container *ngIf=\"chatHeader\" [ngTemplateOutlet]=\"chatHeader\"></ng-container>\n\n <div class=\"chat__alert\">\n <ng-content select=\"dr-chat-alert\"></ng-content>\n </div>\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\n #messagesContainer\n 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\n *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 <ng-content select=\"dr-ai-search-input\"></ng-content>\n </div>\n</div>\n", 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;box-shadow:0 2px 36px #00000026}.chat__sticky-top{display:flex;flex-direction:column;box-shadow:0 1px 3px #0003;z-index:1}.chat__empty-state{display:flex;justify-content:center}.chat__empty-state__text{padding:44px 0;font-family:Poppins,sans-serif;font-size:18px;font-weight:400;line-height:28px;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:8px}.chat__suggestions{flex:1}.chat__suggestions ::ng-deep .chat-suggestions__container{padding:0}.chat__suggestions--full-height{flex-grow:1;height:1px;overflow:auto}.chat--in-full-screen .chat__header{padding-left:32px;padding-right:32px}.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:912px}.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{font-size:16px}\n"] }]
6611
6611
  }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { fullScreen: [{
6612
6612
  type: Input
6613
6613
  }], noMessagesPlaceholder: [{
@@ -6641,6 +6641,285 @@ class DrChatComponent {
6641
6641
  args: [DrChatSuggestionsComponent]
6642
6642
  }] }); })();
6643
6643
 
6644
+ const _c0$n = ["textAreaElement"];
6645
+ const _c1$9 = ["fileInput"];
6646
+ function DrChatFormDropdownComponent_dr_chat_dropped_files_2_Template(rf, ctx) { if (rf & 1) {
6647
+ const _r7 = i0.ɵɵgetCurrentView();
6648
+ i0.ɵɵelementStart(0, "dr-chat-dropped-files", 12);
6649
+ i0.ɵɵlistener("removeFileEvent", function DrChatFormDropdownComponent_dr_chat_dropped_files_2_Template_dr_chat_dropped_files_removeFileEvent_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.removeFile($event)); });
6650
+ i0.ɵɵpipe(1, "async");
6651
+ i0.ɵɵelementEnd();
6652
+ } if (rf & 2) {
6653
+ const ctx_r0 = i0.ɵɵnextContext();
6654
+ i0.ɵɵproperty("files", i0.ɵɵpipeBind1(1, 3, ctx_r0.droppedFiles$))("isRemovable", true)("maxLengthText", 15);
6655
+ } }
6656
+ function DrChatFormDropdownComponent_i_12_Template(rf, ctx) { if (rf & 1) {
6657
+ const _r9 = i0.ɵɵgetCurrentView();
6658
+ i0.ɵɵelementStart(0, "i", 13);
6659
+ i0.ɵɵlistener("click", function DrChatFormDropdownComponent_i_12_Template_i_click_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.sendMessage($event)); });
6660
+ i0.ɵɵelementEnd();
6661
+ } }
6662
+ function DrChatFormDropdownComponent_i_13_Template(rf, ctx) { if (rf & 1) {
6663
+ const _r11 = i0.ɵɵgetCurrentView();
6664
+ i0.ɵɵelementStart(0, "i", 14);
6665
+ i0.ɵɵlistener("click", function DrChatFormDropdownComponent_i_13_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.abortMessage()); });
6666
+ i0.ɵɵelementEnd();
6667
+ } }
6668
+ function DrChatFormDropdownComponent_dr_dot_flashing_14_Template(rf, ctx) { if (rf & 1) {
6669
+ i0.ɵɵelement(0, "dr-dot-flashing", 15);
6670
+ } }
6671
+ const _c2$2 = function (a0) { return { "message-row_loading": a0 }; };
6672
+ const _c3$2 = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
6673
+ const _c4$1 = ["*"];
6674
+ class DrChatFormDropdownComponent {
6675
+ constructor(cdr, domSanitizer) {
6676
+ this.cdr = cdr;
6677
+ this.domSanitizer = domSanitizer;
6678
+ this._textareaInitialHeight = true;
6679
+ this.inputFocus = false;
6680
+ this.inputHover = false;
6681
+ this.droppedFiles$ = new BehaviorSubject([]);
6682
+ this.isLoading = false;
6683
+ /**
6684
+ * Predefined message text
6685
+ *
6686
+ * @type {string}
6687
+ */
6688
+ this.message = '';
6689
+ /**
6690
+ * Message placeholder text
6691
+ *
6692
+ * @type {string}
6693
+ */
6694
+ this.messagePlaceholder = 'Type a message';
6695
+ /**
6696
+ * Show send button
6697
+ *
6698
+ * @type {boolean}
6699
+ */
6700
+ this.dropFiles = false;
6701
+ /**
6702
+ * File drop placeholder text
6703
+ *
6704
+ * @type {string}
6705
+ */
6706
+ this.dropFilePlaceholder = 'Drop file to send';
6707
+ /**
6708
+ * Parameter to check is send message function available
6709
+ *
6710
+ * @type {boolean}
6711
+ */
6712
+ this.waitForReply = false;
6713
+ /**
6714
+ * Parameter to check is send message function available
6715
+ *
6716
+ * @type {boolean}
6717
+ */
6718
+ this.showDotFlashing = false;
6719
+ /**
6720
+ *
6721
+ * @type {EventEmitter<{ message: string, files: IFile[] }>}
6722
+ */
6723
+ this.send = new EventEmitter();
6724
+ this.uploadFiles = new EventEmitter();
6725
+ this.abort = new EventEmitter();
6726
+ /**
6727
+ * Emits when message input value has been changed
6728
+ *
6729
+ * @type {EventEmitter<string>}
6730
+ */
6731
+ this.inputChange = new EventEmitter();
6732
+ this.fileOver = false;
6733
+ }
6734
+ onDrop(event) {
6735
+ if (this.dropFiles) {
6736
+ event.preventDefault();
6737
+ event.stopPropagation();
6738
+ this.fileOver = false;
6739
+ const files = event.dataTransfer?.files;
6740
+ if (files) {
6741
+ this.saveFiles(files);
6742
+ }
6743
+ }
6744
+ }
6745
+ removeFile(file) {
6746
+ const droppedFiles = this.droppedFiles$.value;
6747
+ const index = droppedFiles.indexOf(file);
6748
+ if (index >= 0) {
6749
+ droppedFiles.splice(index, 1);
6750
+ this.droppedFiles$.next(droppedFiles);
6751
+ }
6752
+ }
6753
+ onDragOver(event) {
6754
+ event.preventDefault();
6755
+ event.stopPropagation();
6756
+ if (this.dropFiles) {
6757
+ this.fileOver = true;
6758
+ }
6759
+ }
6760
+ onDragLeave(event) {
6761
+ event.preventDefault();
6762
+ event.stopPropagation();
6763
+ if (this.dropFiles) {
6764
+ this.fileOver = false;
6765
+ }
6766
+ }
6767
+ sendMessage($event) {
6768
+ if (!$event || !$event.shiftKey) {
6769
+ $event?.preventDefault();
6770
+ $event?.stopPropagation();
6771
+ if (this.waitForReply) {
6772
+ return;
6773
+ }
6774
+ else if (this.droppedFiles$.value.length || String(this.message).trim().length) {
6775
+ this._textareaInitialHeight = true;
6776
+ this.send.emit({ message: this.message, files: this.droppedFiles$.value });
6777
+ this.message = '';
6778
+ this.droppedFiles$.next([]);
6779
+ this.cdr.markForCheck();
6780
+ }
6781
+ }
6782
+ }
6783
+ abortMessage() {
6784
+ this.abort.emit();
6785
+ }
6786
+ onModelChange(value) {
6787
+ this._textareaInitialHeight = false;
6788
+ this.inputChange.emit(value);
6789
+ }
6790
+ getTextAreaHeight(textAreaElement) {
6791
+ if (this._textareaInitialHeight) {
6792
+ textAreaElement.style.height = '30px';
6793
+ }
6794
+ else {
6795
+ textAreaElement.style.height = 'auto';
6796
+ textAreaElement.style.height = textAreaElement.scrollHeight + 'px';
6797
+ }
6798
+ return `${textAreaElement.style.height}`;
6799
+ }
6800
+ onFileSelected(event) {
6801
+ const input = event.target;
6802
+ this.fileOver = false;
6803
+ if (input.files.length) {
6804
+ this.saveFiles(Array.from(input.files));
6805
+ }
6806
+ this.fileInput.nativeElement.value = '';
6807
+ }
6808
+ async saveFiles(files) {
6809
+ const uploadedFiles = [];
6810
+ for (const file of files) {
6811
+ let res = file;
6812
+ res.data = (await this.base64Convert(res));
6813
+ this.droppedFiles$.next([...this.droppedFiles$.value, res]);
6814
+ uploadedFiles.push(res);
6815
+ this.cdr.markForCheck();
6816
+ this.cdr.detectChanges();
6817
+ }
6818
+ this.uploadFiles.emit(uploadedFiles.map((item) => ({ data: item.data, name: item.name })));
6819
+ }
6820
+ base64Convert(file) {
6821
+ return new Promise((resolve, reject) => {
6822
+ const reader = new FileReader();
6823
+ reader.onload = () => resolve(reader.result);
6824
+ reader.onerror = (error) => reject(error);
6825
+ reader.readAsDataURL(file);
6826
+ });
6827
+ }
6828
+ /** @nocollapse */ static { this.ɵfac = function DrChatFormDropdownComponent_Factory(t) { return new (t || DrChatFormDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$5.DomSanitizer)); }; }
6829
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormDropdownComponent, selectors: [["dr-chat-form-dropdown"]], viewQuery: function DrChatFormDropdownComponent_Query(rf, ctx) { if (rf & 1) {
6830
+ i0.ɵɵviewQuery(_c0$n, 5);
6831
+ i0.ɵɵviewQuery(_c1$9, 5);
6832
+ } if (rf & 2) {
6833
+ let _t;
6834
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.textAreaElementRef = _t.first);
6835
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
6836
+ } }, hostVars: 2, hostBindings: function DrChatFormDropdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
6837
+ i0.ɵɵlistener("drop", function DrChatFormDropdownComponent_drop_HostBindingHandler($event) { return ctx.onDrop($event); })("dragover", function DrChatFormDropdownComponent_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragleave", function DrChatFormDropdownComponent_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); });
6838
+ } if (rf & 2) {
6839
+ i0.ɵɵclassProp("file-over", ctx.fileOver);
6840
+ } }, inputs: { isLoading: "isLoading", message: "message", messagePlaceholder: "messagePlaceholder", dropFiles: "dropFiles", dropFilePlaceholder: "dropFilePlaceholder", waitForReply: "waitForReply", showDotFlashing: "showDotFlashing" }, outputs: { send: "send", uploadFiles: "uploadFiles", abort: "abort", inputChange: "inputChange" }, ngContentSelectors: _c4$1, decls: 15, vars: 18, consts: [[1, "message-row", 3, "ngClass"], [1, "message-row__input", 3, "ngClass"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent", 4, "ngIf"], [1, "message-row__input-textarea-wrap"], ["type", "text", 3, "ngModel", "rows", "placeholder", "focus", "blur", "mouseenter", "mouseleave", "ngModelChange", "keydown.enter"], ["textAreaElement", ""], [1, "message-row__btns"], ["type", "file", "hidden", "", "multiple", "", 3, "change"], ["fileInput", ""], ["class", "dr-icon-send-arrow-up send-button", 3, "click", 4, "ngIf"], ["class", "dr-icon-stop abort-button", 3, "click", 4, "ngIf"], ["class", "wait-reply-dot-flashing", 4, "ngIf"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent"], [1, "dr-icon-send-arrow-up", "send-button", 3, "click"], [1, "dr-icon-stop", "abort-button", 3, "click"], [1, "wait-reply-dot-flashing"]], template: function DrChatFormDropdownComponent_Template(rf, ctx) { if (rf & 1) {
6841
+ i0.ɵɵprojectionDef();
6842
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
6843
+ i0.ɵɵtemplate(2, DrChatFormDropdownComponent_dr_chat_dropped_files_2_Template, 2, 5, "dr-chat-dropped-files", 2);
6844
+ i0.ɵɵpipe(3, "async");
6845
+ i0.ɵɵelementStart(4, "div", 3)(5, "textarea", 4, 5);
6846
+ i0.ɵɵlistener("focus", function DrChatFormDropdownComponent_Template_textarea_focus_5_listener() { return ctx.inputFocus = true; })("blur", function DrChatFormDropdownComponent_Template_textarea_blur_5_listener() { return ctx.inputFocus = false; })("mouseenter", function DrChatFormDropdownComponent_Template_textarea_mouseenter_5_listener() { return ctx.inputHover = true; })("mouseleave", function DrChatFormDropdownComponent_Template_textarea_mouseleave_5_listener() { return ctx.inputHover = false; })("ngModelChange", function DrChatFormDropdownComponent_Template_textarea_ngModelChange_5_listener($event) { return ctx.message = $event; })("ngModelChange", function DrChatFormDropdownComponent_Template_textarea_ngModelChange_5_listener($event) { return ctx.onModelChange($event); })("keydown.enter", function DrChatFormDropdownComponent_Template_textarea_keydown_enter_5_listener($event) { return ctx.sendMessage($event); });
6847
+ i0.ɵɵtext(7, " ");
6848
+ i0.ɵɵelementEnd()();
6849
+ i0.ɵɵelementStart(8, "div", 6);
6850
+ i0.ɵɵprojection(9);
6851
+ i0.ɵɵelementStart(10, "input", 7, 8);
6852
+ i0.ɵɵlistener("change", function DrChatFormDropdownComponent_Template_input_change_10_listener($event) { return ctx.onFileSelected($event); });
6853
+ i0.ɵɵelementEnd();
6854
+ i0.ɵɵtemplate(12, DrChatFormDropdownComponent_i_12_Template, 1, 0, "i", 9);
6855
+ i0.ɵɵtemplate(13, DrChatFormDropdownComponent_i_13_Template, 1, 0, "i", 10);
6856
+ i0.ɵɵtemplate(14, DrChatFormDropdownComponent_dr_dot_flashing_14_Template, 1, 0, "dr-dot-flashing", 11);
6857
+ i0.ɵɵelementEnd()()();
6858
+ } if (rf & 2) {
6859
+ const _r1 = i0.ɵɵreference(6);
6860
+ let tmp_1_0;
6861
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c2$2, ctx.isLoading));
6862
+ i0.ɵɵadvance(1);
6863
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(15, _c3$2, ctx.inputFocus, !!(ctx.message == null ? null : (tmp_1_0 = ctx.message.trim()) == null ? null : tmp_1_0.length)));
6864
+ i0.ɵɵadvance(1);
6865
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 11, ctx.droppedFiles$).length);
6866
+ i0.ɵɵadvance(3);
6867
+ i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
6868
+ i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
6869
+ i0.ɵɵproperty("ngModel", ctx.message)("rows", 1);
6870
+ i0.ɵɵadvance(7);
6871
+ i0.ɵɵproperty("ngIf", !ctx.waitForReply);
6872
+ i0.ɵɵadvance(1);
6873
+ i0.ɵɵproperty("ngIf", ctx.waitForReply && !ctx.showDotFlashing);
6874
+ i0.ɵɵadvance(1);
6875
+ i0.ɵɵproperty("ngIf", ctx.waitForReply && ctx.showDotFlashing);
6876
+ } }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgModel, i1.NgClass, i1.NgIf, DrDotFlashingComponent, DrChatDroppedFilesComponent, i1.AsyncPipe], styles: ["[_nghost-%COMP%] {--disabled-bg: linear-gradient(270.95deg, rgba(130, 210, 240, .2) 10.98%, rgba(146, 146, 255, .2) 93.38%);display:flex;flex-direction:column;align-items:center;padding:0}[_nghost-%COMP%] .message-row{display:flex;justify-content:center;width:100%;padding:0 0 21px;max-width:956px}[_nghost-%COMP%] .message-row__input{flex-direction:column;background-color:#fff;position:relative;display:flex;align-items:center;flex-grow:1;padding:14px 8px 8px 15px;height:auto;overflow:visible;min-width:265px;border-radius:24px;border:1.5px solid transparent;box-shadow:0 2px 16px -10px #603cff29;transition:.35s ease}[_nghost-%COMP%] .message-row__input .abort-button, [_nghost-%COMP%] .message-row__input .send-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:24px;border-radius:100px;color:#fff;transition:.15s ease-in-out;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%) border-box}[_nghost-%COMP%] .message-row__input .send-button{background:var(--disabled-bg);pointer-events:none}[_nghost-%COMP%] .message-row__input--focused{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;height:auto!important;background:#fff}[_nghost-%COMP%] .message-row__input--filled{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;background:#fff}[_nghost-%COMP%] .message-row__input--filled .send-button{background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%) border-box;pointer-events:all}[_nghost-%COMP%] .message-row__input .wait-reply-dot-flashing{display:flex;align-items:center;width:32px;height:48px;right:25px}[_nghost-%COMP%] .message-row__input:before{content:\"\";position:absolute;inset:-3px;background:linear-gradient(266.3deg,#6969ff 25.2%,#4eb7df 90.24%);border-radius:25px;z-index:-1}[_nghost-%COMP%] .message-row__input textarea{font-size:14px;color:#333;width:100%;outline:none;min-height:30px;line-height:19px;flex-grow:1;resize:none;padding:4px 48px 4px 4px;margin:auto;border:none;border-radius:22.5px}[_nghost-%COMP%] .message-row__input textarea:focus{border:none}[_nghost-%COMP%] .message-row__input textarea::placeholder{color:#9ea1aa}[_nghost-%COMP%] .message-row__btns{display:flex;justify-content:space-between;width:100%;align-items:center}[_nghost-%COMP%] .message-row__input-textarea-wrap{display:flex;width:100%;position:relative}[_nghost-%COMP%] dr-chat-dropped-files{margin-right:auto}[_nghost-%COMP%] dr-chat-dropped-files .dropped-files{padding:0}[_nghost-%COMP%] dr-chat-dropped-files .dropped-files__item{margin:0}[_nghost-%COMP%] .message-row_loading .send-button{background:var(--disabled-bg);pointer-events:none}[_nghost-%COMP%] .message-row_loading .dropped-files__item{opacity:.5;pointer-events:none}"], changeDetection: 0 }); }
6877
+ }
6878
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatFormDropdownComponent, [{
6879
+ type: Component,
6880
+ args: [{ selector: 'dr-chat-form-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"message-row\" [ngClass]=\"{ 'message-row_loading': isLoading }\">\n <div\n class=\"message-row__input\"\n [ngClass]=\"{\n 'message-row__input--focused': inputFocus,\n 'message-row__input--filled': !!message?.trim()?.length,\n }\">\n <dr-chat-dropped-files\n *ngIf=\"(droppedFiles$ | async).length\"\n [files]=\"droppedFiles$ | async\"\n [isRemovable]=\"true\"\n [maxLengthText]=\"15\"\n (removeFileEvent)=\"removeFile($event)\"></dr-chat-dropped-files>\n\n <div class=\"message-row__input-textarea-wrap\">\n <textarea\n #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 (keydown.enter)=\"sendMessage($event)\">\n </textarea>\n </div>\n <div class=\"message-row__btns\">\n <ng-content></ng-content>\n <input #fileInput type=\"file\" hidden multiple (change)=\"onFileSelected($event)\" />\n <i *ngIf=\"!waitForReply\" (click)=\"sendMessage($event)\" class=\"dr-icon-send-arrow-up send-button\"></i>\n\n <i *ngIf=\"waitForReply && !showDotFlashing\" class=\"dr-icon-stop abort-button\" (click)=\"abortMessage()\"></i>\n <dr-dot-flashing *ngIf=\"waitForReply && showDotFlashing\" class=\"wait-reply-dot-flashing\"></dr-dot-flashing>\n </div>\n </div>\n</div>\n", styles: [":host::ng-deep{--disabled-bg: linear-gradient(270.95deg, rgba(130, 210, 240, .2) 10.98%, rgba(146, 146, 255, .2) 93.38%);display:flex;flex-direction:column;align-items:center;padding:0}:host::ng-deep .message-row{display:flex;justify-content:center;width:100%;padding:0 0 21px;max-width:956px}:host::ng-deep .message-row__input{flex-direction:column;background-color:#fff;position:relative;display:flex;align-items:center;flex-grow:1;padding:14px 8px 8px 15px;height:auto;overflow:visible;min-width:265px;border-radius:24px;border:1.5px solid transparent;box-shadow:0 2px 16px -10px #603cff29;transition:.35s ease}:host::ng-deep .message-row__input .abort-button,:host::ng-deep .message-row__input .send-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:24px;border-radius:100px;color:#fff;transition:.15s ease-in-out;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%) border-box}:host::ng-deep .message-row__input .send-button{background:var(--disabled-bg);pointer-events:none}:host::ng-deep .message-row__input--focused{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;height:auto!important;background:#fff}:host::ng-deep .message-row__input--filled{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;background:#fff}:host::ng-deep .message-row__input--filled .send-button{background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%) border-box;pointer-events:all}:host::ng-deep .message-row__input .wait-reply-dot-flashing{display:flex;align-items:center;width:32px;height:48px;right:25px}:host::ng-deep .message-row__input:before{content:\"\";position:absolute;inset:-3px;background:linear-gradient(266.3deg,#6969ff 25.2%,#4eb7df 90.24%);border-radius:25px;z-index:-1}:host::ng-deep .message-row__input textarea{font-size:14px;color:#333;width:100%;outline:none;min-height:30px;line-height:19px;flex-grow:1;resize:none;padding:4px 48px 4px 4px;margin:auto;border:none;border-radius:22.5px}:host::ng-deep .message-row__input textarea:focus{border:none}:host::ng-deep .message-row__input textarea::placeholder{color:#9ea1aa}:host::ng-deep .message-row__btns{display:flex;justify-content:space-between;width:100%;align-items:center}:host::ng-deep .message-row__input-textarea-wrap{display:flex;width:100%;position:relative}:host::ng-deep dr-chat-dropped-files{margin-right:auto}:host::ng-deep dr-chat-dropped-files .dropped-files{padding:0}:host::ng-deep dr-chat-dropped-files .dropped-files__item{margin:0}:host::ng-deep .message-row_loading .send-button{background:var(--disabled-bg);pointer-events:none}:host::ng-deep .message-row_loading .dropped-files__item{opacity:.5;pointer-events:none}\n"] }]
6881
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$5.DomSanitizer }]; }, { textAreaElementRef: [{
6882
+ type: ViewChild,
6883
+ args: ['textAreaElement']
6884
+ }], fileInput: [{
6885
+ type: ViewChild,
6886
+ args: ['fileInput']
6887
+ }], isLoading: [{
6888
+ type: Input
6889
+ }], message: [{
6890
+ type: Input
6891
+ }], messagePlaceholder: [{
6892
+ type: Input
6893
+ }], dropFiles: [{
6894
+ type: Input
6895
+ }], dropFilePlaceholder: [{
6896
+ type: Input
6897
+ }], waitForReply: [{
6898
+ type: Input
6899
+ }], showDotFlashing: [{
6900
+ type: Input
6901
+ }], send: [{
6902
+ type: Output
6903
+ }], uploadFiles: [{
6904
+ type: Output
6905
+ }], abort: [{
6906
+ type: Output
6907
+ }], inputChange: [{
6908
+ type: Output
6909
+ }], fileOver: [{
6910
+ type: HostBinding,
6911
+ args: ['class.file-over']
6912
+ }], onDrop: [{
6913
+ type: HostListener,
6914
+ args: ['drop', ['$event']]
6915
+ }], onDragOver: [{
6916
+ type: HostListener,
6917
+ args: ['dragover', ['$event']]
6918
+ }], onDragLeave: [{
6919
+ type: HostListener,
6920
+ args: ['dragleave', ['$event']]
6921
+ }] }); })();
6922
+
6644
6923
  const throwCustomMessageTypeIsRequired = () => {
6645
6924
  throw new Error('[drCustomMessage]: custom message type is required.');
6646
6925
  };
@@ -6684,14 +6963,14 @@ class DrChatCustomMessageDirective {
6684
6963
  type: Input
6685
6964
  }] }); })();
6686
6965
 
6687
- const _c0$n = ["*"];
6966
+ const _c0$m = ["*"];
6688
6967
  class DrChatAlertComponent {
6689
6968
  constructor() {
6690
6969
  this.iconClass = 'dr-icon-info';
6691
6970
  this.close = new EventEmitter();
6692
6971
  }
6693
6972
  /** @nocollapse */ static { this.ɵfac = function DrChatAlertComponent_Factory(t) { return new (t || DrChatAlertComponent)(); }; }
6694
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$n, decls: 3, vars: 2, consts: [["theme", "icon", "icon", "dr-icon-exit", "drTooltip", "Close", 1, "chat-alert-close-btn", 3, "click"]], template: function DrChatAlertComponent_Template(rf, ctx) { if (rf & 1) {
6973
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$m, decls: 3, vars: 2, consts: [["theme", "icon", "icon", "dr-icon-exit", "drTooltip", "Close", 1, "chat-alert-close-btn", 3, "click"]], template: function DrChatAlertComponent_Template(rf, ctx) { if (rf & 1) {
6695
6974
  i0.ɵɵprojectionDef();
6696
6975
  i0.ɵɵelement(0, "i");
6697
6976
  i0.ɵɵprojection(1);
@@ -6729,7 +7008,7 @@ function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
6729
7008
  i0.ɵɵadvance(1);
6730
7009
  i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
6731
7010
  } }
6732
- const _c0$m = ["*"];
7011
+ const _c0$l = ["*"];
6733
7012
  class DrToggleComponent {
6734
7013
  set disabled(value) {
6735
7014
  this.setDisabledState(value);
@@ -6772,7 +7051,7 @@ class DrToggleComponent {
6772
7051
  /** @nocollapse */ static { this.ɵfac = function DrToggleComponent_Factory(t) { return new (t || DrToggleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
6773
7052
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 2, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
6774
7053
  i0.ɵɵclassMap(ctx.elementClass);
6775
- } }, inputs: { toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }])], ngContentSelectors: _c0$m, decls: 7, vars: 9, consts: [["class", "toggle-title mr-3", 4, "ngIf"], [1, "toggle-container"], ["type", "checkbox", 3, "checked", "disabled", "click"], [1, "toggle-body"], ["class", "toggle-title ml-3", 4, "ngIf"], [1, "toggle-title", "mr-3"], [1, "toggle-title", "ml-3"]], template: function DrToggleComponent_Template(rf, ctx) { if (rf & 1) {
7054
+ } }, inputs: { toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }])], ngContentSelectors: _c0$l, decls: 7, vars: 9, consts: [["class", "toggle-title mr-3", 4, "ngIf"], [1, "toggle-container"], ["type", "checkbox", 3, "checked", "disabled", "click"], [1, "toggle-body"], ["class", "toggle-title ml-3", 4, "ngIf"], [1, "toggle-title", "mr-3"], [1, "toggle-title", "ml-3"]], template: function DrToggleComponent_Template(rf, ctx) { if (rf & 1) {
6776
7055
  i0.ɵɵprojectionDef();
6777
7056
  i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
6778
7057
  i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
@@ -6892,7 +7171,7 @@ function DrAlertComponent_span_2_Template(rf, ctx) { if (rf & 1) {
6892
7171
  i0.ɵɵadvance(1);
6893
7172
  i0.ɵɵtextInterpolate(ctx_r0.text);
6894
7173
  } }
6895
- const _c0$l = ["*"];
7174
+ const _c0$k = ["*"];
6896
7175
  const ALERT_THEME_ICONS = {
6897
7176
  [DrAlertTheme.SUCCESS]: 'dr-icon-uploaded-success',
6898
7177
  [DrAlertTheme.BOLD_ERROR]: 'dr-icon-error',
@@ -6913,7 +7192,7 @@ class DrAlertComponent {
6913
7192
  /** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
6914
7193
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
6915
7194
  i0.ɵɵclassMap(ctx.elementClass);
6916
- } }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$l, decls: 6, vars: 3, consts: [[1, "dr-alert__content-wrapper"], ["class", "dr-alert__text", 4, "ngIf"], [1, "dr-alert__custom-content"], ["contentRef", ""], [1, "dr-alert__text"]], template: function DrAlertComponent_Template(rf, ctx) { if (rf & 1) {
7195
+ } }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$k, decls: 6, vars: 3, consts: [[1, "dr-alert__content-wrapper"], ["class", "dr-alert__text", 4, "ngIf"], [1, "dr-alert__custom-content"], ["contentRef", ""], [1, "dr-alert__text"]], template: function DrAlertComponent_Template(rf, ctx) { if (rf & 1) {
6917
7196
  i0.ɵɵprojectionDef();
6918
7197
  i0.ɵɵelementStart(0, "div", 0);
6919
7198
  i0.ɵɵelement(1, "i");
@@ -6959,7 +7238,7 @@ class CodeEditorHintWrapperComponent {
6959
7238
  }]
6960
7239
  }], null, null); })();
6961
7240
 
6962
- const _c0$k = ["ref"];
7241
+ const _c0$j = ["ref"];
6963
7242
  class DrCodemirrorComponent {
6964
7243
  set options(value) {
6965
7244
  this._options = value;
@@ -7089,7 +7368,7 @@ class DrCodemirrorComponent {
7089
7368
  }
7090
7369
  /** @nocollapse */ static { this.ɵfac = function DrCodemirrorComponent_Factory(t) { return new (t || DrCodemirrorComponent)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.NgZone)); }; }
7091
7370
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodemirrorComponent, selectors: [["dr-codemirror"]], viewQuery: function DrCodemirrorComponent_Query(rf, ctx) { if (rf & 1) {
7092
- i0.ɵɵviewQuery(_c0$k, 5);
7371
+ i0.ɵɵviewQuery(_c0$j, 5);
7093
7372
  } if (rf & 2) {
7094
7373
  let _t;
7095
7374
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ref = _t.first);
@@ -7241,7 +7520,7 @@ class DrErrorComponent {
7241
7520
  args: ['class.no-icon']
7242
7521
  }] }); })();
7243
7522
 
7244
- const _c0$j = ["codeEditor"];
7523
+ const _c0$i = ["codeEditor"];
7245
7524
  function DrCodeEditorComponent_span_2_Template(rf, ctx) { if (rf & 1) {
7246
7525
  i0.ɵɵelementStart(0, "span", 4);
7247
7526
  i0.ɵɵtext(1);
@@ -7520,7 +7799,7 @@ class DrCodeEditorComponent {
7520
7799
  }
7521
7800
  /** @nocollapse */ static { this.ɵfac = function DrCodeEditorComponent_Factory(t) { return new (t || DrCodeEditorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.Injector)); }; }
7522
7801
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodeEditorComponent, selectors: [["dr-code-editor"]], viewQuery: function DrCodeEditorComponent_Query(rf, ctx) { if (rf & 1) {
7523
- i0.ɵɵviewQuery(_c0$j, 5);
7802
+ i0.ɵɵviewQuery(_c0$i, 5);
7524
7803
  } if (rf & 2) {
7525
7804
  let _t;
7526
7805
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.codeEditor = _t.first);
@@ -8288,7 +8567,7 @@ const getAlignmentDimension = (position) => {
8288
8567
  return DrPopoverAlignmentDimension.Width;
8289
8568
  };
8290
8569
 
8291
- const _c0$i = ["popoverContainer"];
8570
+ const _c0$h = ["popoverContainer"];
8292
8571
  function DrPopoverComponent_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
8293
8572
  i0.ɵɵelementContainer(0);
8294
8573
  } }
@@ -8378,7 +8657,7 @@ class DrPopoverComponent {
8378
8657
  }
8379
8658
  /** @nocollapse */ static { this.ɵfac = function DrPopoverComponent_Factory(t) { return new (t || DrPopoverComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DrPopoverRef)); }; }
8380
8659
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrPopoverComponent, selectors: [["dr-popover"]], viewQuery: function DrPopoverComponent_Query(rf, ctx) { if (rf & 1) {
8381
- i0.ɵɵviewQuery(_c0$i, 7, ElementRef);
8660
+ i0.ɵɵviewQuery(_c0$h, 7, ElementRef);
8382
8661
  } if (rf & 2) {
8383
8662
  let _t;
8384
8663
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverContainer = _t.first);
@@ -8695,7 +8974,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8695
8974
  var __metadata = (this && this.__metadata) || function (k, v) {
8696
8975
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
8697
8976
  };
8698
- const _c0$h = ["menuContainer"];
8977
+ const _c0$g = ["menuContainer"];
8699
8978
  function DrDropdownComponent_dr_dropdown_item_4_ng_container_1_i_1_Template(rf, ctx) { if (rf & 1) {
8700
8979
  i0.ɵɵelement(0, "i", 11);
8701
8980
  } if (rf & 2) {
@@ -8745,14 +9024,14 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_2_Template(rf, ctx)
8745
9024
  i0.ɵɵadvance(1);
8746
9025
  i0.ɵɵproperty("ngIf", ctx_r5.hasChildren(act_r2));
8747
9026
  } }
8748
- const _c1$9 = function (a0) { return { $implicit: a0 }; };
9027
+ const _c1$8 = function (a0) { return { $implicit: a0 }; };
8749
9028
  function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
8750
9029
  i0.ɵɵelementContainer(0, 17);
8751
9030
  } if (rf & 2) {
8752
9031
  const act_r2 = i0.ɵɵnextContext().$implicit;
8753
- i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$9, act_r2));
9032
+ i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$8, act_r2));
8754
9033
  } }
8755
- const _c2$2 = function () { return { withoutArrow: true }; };
9034
+ const _c2$1 = function () { return { withoutArrow: true }; };
8756
9035
  function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
8757
9036
  const _r20 = i0.ɵɵgetCurrentView();
8758
9037
  i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
@@ -8765,7 +9044,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
8765
9044
  const act_r2 = ctx.$implicit;
8766
9045
  const index_r3 = ctx.index;
8767
9046
  const ctx_r1 = i0.ɵɵnextContext();
8768
- i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$2))("drTooltipClass", "dr-dropdown__tooltip")("drDropdown", ctx_r1.hasChildren(act_r2) && act_r2.children)("drDropdownClass", act_r2.childOptions == null ? null : act_r2.childOptions.class)("drDropdownInHover", true)("drDropdownPosition", act_r2.childOptions == null ? null : act_r2.childOptions.position)("disabled", ctx_r1.disabled(act_r2))("selected", ctx_r1.selected(act_r2))("divider", act_r2.separateLine);
9047
+ i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$1))("drTooltipClass", "dr-dropdown__tooltip")("drDropdown", ctx_r1.hasChildren(act_r2) && act_r2.children)("drDropdownClass", act_r2.childOptions == null ? null : act_r2.childOptions.class)("drDropdownInHover", true)("drDropdownPosition", act_r2.childOptions == null ? null : act_r2.childOptions.position)("disabled", ctx_r1.disabled(act_r2))("selected", ctx_r1.selected(act_r2))("divider", act_r2.separateLine);
8769
9048
  i0.ɵɵattribute("data-analytics", ctx_r1.getDataAnalyticsTag(act_r2, index_r3));
8770
9049
  i0.ɵɵadvance(1);
8771
9050
  i0.ɵɵproperty("ngIf", !act_r2.templateRef);
@@ -8774,8 +9053,8 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
8774
9053
  i0.ɵɵadvance(1);
8775
9054
  i0.ɵɵproperty("ngIf", act_r2.templateRef);
8776
9055
  } }
8777
- const _c3$2 = [[["dr-dropdown-item"]]];
8778
- const _c4$1 = ["dr-dropdown-item"];
9056
+ const _c3$1 = [[["dr-dropdown-item"]]];
9057
+ const _c4 = ["dr-dropdown-item"];
8779
9058
  class DrDropdownComponent {
8780
9059
  set options(data) {
8781
9060
  if (data) {
@@ -8891,12 +9170,12 @@ class DrDropdownComponent {
8891
9170
  }
8892
9171
  /** @nocollapse */ static { this.ɵfac = function DrDropdownComponent_Factory(t) { return new (t || DrDropdownComponent)(); }; }
8893
9172
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownComponent, selectors: [["dr-dropdown"]], viewQuery: function DrDropdownComponent_Query(rf, ctx) { if (rf & 1) {
8894
- i0.ɵɵviewQuery(_c0$h, 7);
9173
+ i0.ɵɵviewQuery(_c0$g, 7);
8895
9174
  } if (rf & 2) {
8896
9175
  let _t;
8897
9176
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
8898
- } }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4$1, decls: 6, vars: 5, consts: [[1, "dr-dropdown"], ["menuContainer", ""], ["tabindex", "-1", "role", "listbox", 1, "dr-dropdown__container", 3, "mouseenter", "mouseleave"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown", 4, "ngFor", "ngForOf"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown"], ["dropdownItemContent", "", 4, "ngIf"], ["dropdownItemActions", "", 4, "ngIf"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["dropdownItemContent", ""], ["class", "dr-dropdown__icon", 3, "class", 4, "ngIf"], [1, "dr-dropdown__text"], [1, "dr-dropdown__icon"], ["dropdownItemActions", ""], [3, "class", "showOnHover", "mousedown", 4, "ngFor", "ngForOf"], ["class", "dr-icon-arrow-right", 4, "ngIf"], [3, "mousedown"], [1, "dr-icon-arrow-right"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrDropdownComponent_Template(rf, ctx) { if (rf & 1) {
8899
- i0.ɵɵprojectionDef(_c3$2);
9177
+ } }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4, decls: 6, vars: 5, consts: [[1, "dr-dropdown"], ["menuContainer", ""], ["tabindex", "-1", "role", "listbox", 1, "dr-dropdown__container", 3, "mouseenter", "mouseleave"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown", 4, "ngFor", "ngForOf"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown"], ["dropdownItemContent", "", 4, "ngIf"], ["dropdownItemActions", "", 4, "ngIf"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["dropdownItemContent", ""], ["class", "dr-dropdown__icon", 3, "class", 4, "ngIf"], [1, "dr-dropdown__text"], [1, "dr-dropdown__icon"], ["dropdownItemActions", ""], [3, "class", "showOnHover", "mousedown", 4, "ngFor", "ngForOf"], ["class", "dr-icon-arrow-right", 4, "ngIf"], [3, "mousedown"], [1, "dr-icon-arrow-right"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrDropdownComponent_Template(rf, ctx) { if (rf & 1) {
9178
+ i0.ɵɵprojectionDef(_c3$1);
8900
9179
  i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
8901
9180
  i0.ɵɵlistener("mouseenter", function DrDropdownComponent_Template_div_mouseenter_2_listener() { return ctx.onMouseenter(); })("mouseleave", function DrDropdownComponent_Template_div_mouseleave_2_listener() { return ctx.onMouseleave(); });
8902
9181
  i0.ɵɵprojection(3);
@@ -8932,7 +9211,7 @@ class DrDropdownService {
8932
9211
  constructor() {
8933
9212
  this.popoverService = inject(DrPopoverService);
8934
9213
  }
8935
- open({ hostRef, options, position = 'left-top', asChild, providers, action$ = new EventEmitter(), }) {
9214
+ open({ hostRef, options, position = 'left-top', asChild, providers, action$ = new EventEmitter(), positionOffsetX = 2, positionOffsetY = 0, }) {
8936
9215
  return this.popoverService.open(DrDropdownComponent, {
8937
9216
  hostRef,
8938
9217
  position,
@@ -8942,8 +9221,8 @@ class DrDropdownService {
8942
9221
  onAction: action$,
8943
9222
  },
8944
9223
  overlayConfig: {
8945
- positionOffsetX: 2,
8946
- positionOffsetY: asChild ? -8 : null,
9224
+ positionOffsetX,
9225
+ positionOffsetY: asChild ? -8 : positionOffsetY,
8947
9226
  providers,
8948
9227
  },
8949
9228
  });
@@ -9031,6 +9310,8 @@ class DrDropdownDirective {
9031
9310
  asChild: !!this.child,
9032
9311
  providers: [{ provide: DropdownInstanceService, useValue: this.dropdownInstanceService }],
9033
9312
  action$: this.drDropdownAction,
9313
+ positionOffsetX: this.drDropdownPositionOffsetX,
9314
+ positionOffsetY: this.drDropdownPositionOffsetY,
9034
9315
  options: {
9035
9316
  drDropdownInHover: this.drDropdownInHover,
9036
9317
  position: this.drDropdownPosition,
@@ -9054,7 +9335,7 @@ class DrDropdownDirective {
9054
9335
  /** @nocollapse */ static { this.ɵfac = function DrDropdownDirective_Factory(t) { return new (t || DrDropdownDirective)(); }; }
9055
9336
  /** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrDropdownDirective, selectors: [["", "drDropdown", ""]], hostBindings: function DrDropdownDirective_HostBindings(rf, ctx) { if (rf & 1) {
9056
9337
  i0.ɵɵlistener("mouseenter", function DrDropdownDirective_mouseenter_HostBindingHandler() { return ctx.elementHover(); })("click", function DrDropdownDirective_click_HostBindingHandler() { return ctx.elementClick(); })("mouseleave", function DrDropdownDirective_mouseleave_HostBindingHandler() { return ctx.leaveDropdownTriggerElement(); })("mouseup", function DrDropdownDirective_mouseup_HostBindingHandler() { return ctx.documentClick(); }, false, i0.ɵɵresolveDocument);
9057
- } }, inputs: { drDropdown: "drDropdown", drDropdownPosition: "drDropdownPosition", drDropdownClass: "drDropdownClass", drDropdownInHover: "drDropdownInHover", dataAnalytics: ["data-analytics", "dataAnalytics"] }, outputs: { drDropdownAction: "drDropdownAction", dropdownClosed: "drDropdownClose", dropdownOpened: "drDropdownOpened" }, features: [i0.ɵɵProvidersFeature([
9338
+ } }, inputs: { drDropdown: "drDropdown", drDropdownPosition: "drDropdownPosition", drDropdownClass: "drDropdownClass", drDropdownInHover: "drDropdownInHover", dataAnalytics: ["data-analytics", "dataAnalytics"], drDropdownPositionOffsetX: "drDropdownPositionOffsetX", drDropdownPositionOffsetY: "drDropdownPositionOffsetY" }, outputs: { drDropdownAction: "drDropdownAction", dropdownClosed: "drDropdownClose", dropdownOpened: "drDropdownOpened" }, features: [i0.ɵɵProvidersFeature([
9058
9339
  {
9059
9340
  provide: DropdownInstanceService,
9060
9341
  useFactory: ((injector) => {
@@ -9092,6 +9373,10 @@ class DrDropdownDirective {
9092
9373
  }], dataAnalytics: [{
9093
9374
  type: Input,
9094
9375
  args: [{ alias: 'data-analytics' }]
9376
+ }], drDropdownPositionOffsetX: [{
9377
+ type: Input
9378
+ }], drDropdownPositionOffsetY: [{
9379
+ type: Input
9095
9380
  }], drDropdownAction: [{
9096
9381
  type: Output
9097
9382
  }], dropdownClosed: [{
@@ -9124,12 +9409,12 @@ class DrDropdownChildDirective {
9124
9409
  }]
9125
9410
  }], null, null); })();
9126
9411
 
9127
- const _c0$g = [[["", "dropdownItemContent", ""]], [["", "dropdownItemActions", ""]]];
9128
- const _c1$8 = ["[dropdownItemContent]", "[dropdownItemActions]"];
9412
+ const _c0$f = [[["", "dropdownItemContent", ""]], [["", "dropdownItemActions", ""]]];
9413
+ const _c1$7 = ["[dropdownItemContent]", "[dropdownItemActions]"];
9129
9414
  class DrDropdownItemComponent {
9130
9415
  /** @nocollapse */ static { this.ɵfac = function DrDropdownItemComponent_Factory(t) { return new (t || DrDropdownItemComponent)(); }; }
9131
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownItemComponent, selectors: [["dr-dropdown-item"]], inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$8, decls: 5, vars: 6, consts: [[1, "dr-dropdown-item"], [1, "dr-dropdown-text"], [1, "dr-dropdown-actions"]], template: function DrDropdownItemComponent_Template(rf, ctx) { if (rf & 1) {
9132
- i0.ɵɵprojectionDef(_c0$g);
9416
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownItemComponent, selectors: [["dr-dropdown-item"]], inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$7, decls: 5, vars: 6, consts: [[1, "dr-dropdown-item"], [1, "dr-dropdown-text"], [1, "dr-dropdown-actions"]], template: function DrDropdownItemComponent_Template(rf, ctx) { if (rf & 1) {
9417
+ i0.ɵɵprojectionDef(_c0$f);
9133
9418
  i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
9134
9419
  i0.ɵɵprojection(2);
9135
9420
  i0.ɵɵelementEnd();
@@ -9168,7 +9453,7 @@ class DrDropdownItemShowPipe {
9168
9453
  function DrTabComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
9169
9454
  i0.ɵɵprojection(0);
9170
9455
  } }
9171
- const _c0$f = ["*"];
9456
+ const _c0$e = ["*"];
9172
9457
  class DrTabComponent {
9173
9458
  constructor() { }
9174
9459
  ngOnInit() { }
@@ -9178,7 +9463,7 @@ class DrTabComponent {
9178
9463
  } if (rf & 2) {
9179
9464
  let _t;
9180
9465
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
9181
- } }, inputs: { id: "id", label: "label", icon: "icon", disabled: "disabled", tooltip: "tooltip", customLabelTemplate: "customLabelTemplate" }, ngContentSelectors: _c0$f, decls: 1, vars: 0, template: function DrTabComponent_Template(rf, ctx) { if (rf & 1) {
9466
+ } }, inputs: { id: "id", label: "label", icon: "icon", disabled: "disabled", tooltip: "tooltip", customLabelTemplate: "customLabelTemplate" }, ngContentSelectors: _c0$e, decls: 1, vars: 0, template: function DrTabComponent_Template(rf, ctx) { if (rf & 1) {
9182
9467
  i0.ɵɵprojectionDef();
9183
9468
  i0.ɵɵtemplate(0, DrTabComponent_ng_template_0_Template, 1, 0, "ng-template");
9184
9469
  } }, encapsulation: 2 }); }
@@ -9453,8 +9738,8 @@ class DrTabsComponent {
9453
9738
  args: [DrTabComponent]
9454
9739
  }] }); })();
9455
9740
 
9456
- const _c0$e = [[["dr-accordion-item"]]];
9457
- const _c1$7 = ["dr-accordion-item"];
9741
+ const _c0$d = [[["dr-accordion-item"]]];
9742
+ const _c1$6 = ["dr-accordion-item"];
9458
9743
  class DrAccordionComponent {
9459
9744
  constructor() {
9460
9745
  this.openCloseItems = new Subject();
@@ -9487,8 +9772,8 @@ class DrAccordionComponent {
9487
9772
  /** @nocollapse */ static { this.ɵfac = function DrAccordionComponent_Factory(t) { return new (t || DrAccordionComponent)(); }; }
9488
9773
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
9489
9774
  i0.ɵɵclassMap(ctx.theme);
9490
- } }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$7, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
9491
- i0.ɵɵprojectionDef(_c0$e);
9775
+ } }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$6, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
9776
+ i0.ɵɵprojectionDef(_c0$d);
9492
9777
  i0.ɵɵprojection(0);
9493
9778
  } }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
9494
9779
  }
@@ -9505,8 +9790,8 @@ class DrAccordionComponent {
9505
9790
  args: ['class']
9506
9791
  }] }); })();
9507
9792
 
9508
- const _c0$d = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
9509
- const _c1$6 = ["dr-accordion-item-header", "dr-accordion-item-body"];
9793
+ const _c0$c = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
9794
+ const _c1$5 = ["dr-accordion-item-header", "dr-accordion-item-body"];
9510
9795
  class DrAccordionItemComponent {
9511
9796
  /**
9512
9797
  * Item is collapse (`true` by default)
@@ -9606,8 +9891,8 @@ class DrAccordionItemComponent {
9606
9891
  /** @nocollapse */ static { this.ɵfac = function DrAccordionItemComponent_Factory(t) { return new (t || DrAccordionItemComponent)(i0.ɵɵdirectiveInject(DrAccordionComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
9607
9892
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemComponent, selectors: [["dr-accordion-item"]], hostVars: 6, hostBindings: function DrAccordionItemComponent_HostBindings(rf, ctx) { if (rf & 2) {
9608
9893
  i0.ɵɵclassProp("collapsed", ctx.collapsed)("expanded", ctx.expanded)("disabled", ctx.disabled);
9609
- } }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$6, decls: 2, vars: 0, template: function DrAccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
9610
- i0.ɵɵprojectionDef(_c0$d);
9894
+ } }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$5, decls: 2, vars: 0, template: function DrAccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
9895
+ i0.ɵɵprojectionDef(_c0$c);
9611
9896
  i0.ɵɵprojection(0);
9612
9897
  i0.ɵɵprojection(1, 1);
9613
9898
  } }, styles: ["[_nghost-%COMP%]{background-color:#fff;color:#222b45;font-family:Poppins,sans-serif;font-size:16px;font-weight:400;line-height:1.25rem;display:flex;flex-direction:column}"], changeDetection: 0 }); }
@@ -9649,8 +9934,8 @@ function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
9649
9934
  i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
9650
9935
  i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
9651
9936
  } }
9652
- const _c0$c = function (a0) { return { rotationDegree: a0 }; };
9653
- const _c1$5 = function (a0, a1) { return { value: a0, params: a1 }; };
9937
+ const _c0$b = function (a0) { return { rotationDegree: a0 }; };
9938
+ const _c1$4 = function (a0, a1) { return { value: a0, params: a1 }; };
9654
9939
  function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
9655
9940
  const _r3 = i0.ɵɵgetCurrentView();
9656
9941
  i0.ɵɵelementStart(0, "i", 2);
@@ -9659,10 +9944,10 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
9659
9944
  } if (rf & 2) {
9660
9945
  const ctx_r1 = i0.ɵɵnextContext();
9661
9946
  i0.ɵɵclassMap(ctx_r1.chevronIconClass);
9662
- i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$5, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$c, ctx_r1.chevronRotationDegree)));
9947
+ i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$4, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$b, ctx_r1.chevronRotationDegree)));
9663
9948
  } }
9664
- const _c2$1 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
9665
- const _c3$1 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
9949
+ const _c2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
9950
+ const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
9666
9951
  class DrAccordionItemHeaderComponent {
9667
9952
  get isCollapsed() {
9668
9953
  return this.accordionItem.collapsed;
@@ -9717,8 +10002,8 @@ class DrAccordionItemHeaderComponent {
9717
10002
  i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
9718
10003
  i0.ɵɵclassMap(ctx.theme);
9719
10004
  i0.ɵɵclassProp("accordion-item-header-collapsed", ctx.isCollapsed)("accordion-item-header-expanded", ctx.expanded);
9720
- } }, inputs: { chevronOrientation: "chevronOrientation", chevronPosition: "chevronPosition", icon: "icon", toggleOnChevronClick: "toggleOnChevronClick" }, ngContentSelectors: _c3$1, decls: 5, vars: 2, consts: [[3, "class", "dr-accordion-item-header-icon--additional-padding", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], [3, "click"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
9721
- i0.ɵɵprojectionDef(_c2$1);
10005
+ } }, inputs: { chevronOrientation: "chevronOrientation", chevronPosition: "chevronPosition", icon: "icon", toggleOnChevronClick: "toggleOnChevronClick" }, ngContentSelectors: _c3, decls: 5, vars: 2, consts: [[3, "class", "dr-accordion-item-header-icon--additional-padding", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], [3, "click"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
10006
+ i0.ɵɵprojectionDef(_c2);
9722
10007
  i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
9723
10008
  i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
9724
10009
  i0.ɵɵprojection(2);
@@ -9788,8 +10073,8 @@ class DrAccordionItemHeaderComponent {
9788
10073
  args: ['keydown.enter']
9789
10074
  }] }); })();
9790
10075
 
9791
- const _c0$b = function (a0) { return { value: a0 }; };
9792
- const _c1$4 = ["*"];
10076
+ const _c0$a = function (a0) { return { value: a0 }; };
10077
+ const _c1$3 = ["*"];
9793
10078
  const accordionItemBodyTrigger = trigger('accordionItemBody', [
9794
10079
  state('collapsed', style({
9795
10080
  overflow: 'hidden',
@@ -9820,13 +10105,13 @@ class DrAccordionItemBodyComponent {
9820
10105
  this.destroy$.complete();
9821
10106
  }
9822
10107
  /** @nocollapse */ static { this.ɵfac = function DrAccordionItemBodyComponent_Factory(t) { return new (t || DrAccordionItemBodyComponent)(i0.ɵɵdirectiveInject(DrAccordionItemComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
9823
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemBodyComponent, selectors: [["dr-accordion-item-body"]], ngContentSelectors: _c1$4, decls: 3, vars: 3, consts: [[1, "item-body"]], template: function DrAccordionItemBodyComponent_Template(rf, ctx) { if (rf & 1) {
10108
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemBodyComponent, selectors: [["dr-accordion-item-body"]], ngContentSelectors: _c1$3, decls: 3, vars: 3, consts: [[1, "item-body"]], template: function DrAccordionItemBodyComponent_Template(rf, ctx) { if (rf & 1) {
9824
10109
  i0.ɵɵprojectionDef();
9825
10110
  i0.ɵɵelementStart(0, "div")(1, "div", 0);
9826
10111
  i0.ɵɵprojection(2);
9827
10112
  i0.ɵɵelementEnd()();
9828
10113
  } if (rf & 2) {
9829
- i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$b, ctx.state));
10114
+ i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$a, ctx.state));
9830
10115
  } }, styles: [".item-body[_ngcontent-%COMP%]{flex:1;-ms-flex:1 1 auto;overflow:auto;position:relative}"], data: { animation: [accordionItemBodyTrigger] }, changeDetection: 0 }); }
9831
10116
  }
9832
10117
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemBodyComponent, [{
@@ -9842,13 +10127,13 @@ class DrAccordionItemBodyComponent {
9842
10127
  type: Host
9843
10128
  }] }, { type: i0.ChangeDetectorRef }]; }, null); })();
9844
10129
 
9845
- const _c0$a = [[["dr-layout-header"]], [["dr-layout-body"]]];
9846
- const _c1$3 = ["dr-layout-header", "dr-layout-body"];
10130
+ const _c0$9 = [[["dr-layout-header"]], [["dr-layout-body"]]];
10131
+ const _c1$2 = ["dr-layout-header", "dr-layout-body"];
9847
10132
  class DrLayoutComponent {
9848
10133
  constructor() { }
9849
10134
  /** @nocollapse */ static { this.ɵfac = function DrLayoutComponent_Factory(t) { return new (t || DrLayoutComponent)(); }; }
9850
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$3, decls: 6, vars: 0, consts: [[1, "dr-layout"], [1, "dr-layout__container"], [1, "content"], [1, "columns"]], template: function DrLayoutComponent_Template(rf, ctx) { if (rf & 1) {
9851
- i0.ɵɵprojectionDef(_c0$a);
10135
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$2, decls: 6, vars: 0, consts: [[1, "dr-layout"], [1, "dr-layout__container"], [1, "content"], [1, "columns"]], template: function DrLayoutComponent_Template(rf, ctx) { if (rf & 1) {
10136
+ i0.ɵɵprojectionDef(_c0$9);
9852
10137
  i0.ɵɵelementStart(0, "div", 0);
9853
10138
  i0.ɵɵprojection(1);
9854
10139
  i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3);
@@ -9861,11 +10146,11 @@ class DrLayoutComponent {
9861
10146
  args: [{ selector: 'dr-layout', template: "<div class=\"dr-layout\">\n <ng-content select=\"dr-layout-header\"></ng-content>\n <div class=\"dr-layout__container\">\n <div class=\"content\">\n <div class=\"columns\">\n <ng-content select=\"dr-layout-body\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{font-size:16px;font-weight:400;font-family:Poppins,sans-serif;line-height:1.25rem;-webkit-font-smoothing:antialiased}:host .dr-layout{display:flex;flex-direction:column;min-height:100vh;font-size:16px;font-weight:400;line-height:1.4rem}:host .dr-layout ::ng-deep dr-layout-header{display:block;position:fixed;top:0;left:0;right:0;z-index:1040}:host .dr-layout ::ng-deep dr-layout-header nav{align-items:center;justify-content:flex-start;display:flex}:host .dr-layout__container{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row}:host .dr-layout__container .content{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:column;min-width:0}:host .dr-layout__container .content .columns{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row;width:100%}:host .dr-layout__container .content .columns ::ng-deep dr-layout-body{flex:1 0;min-width:0}\n"] }]
9862
10147
  }], function () { return []; }, null); })();
9863
10148
 
9864
- const _c0$9 = ["*"];
10149
+ const _c0$8 = ["*"];
9865
10150
  class DrLayoutHeaderComponent {
9866
10151
  constructor() { }
9867
10152
  /** @nocollapse */ static { this.ɵfac = function DrLayoutHeaderComponent_Factory(t) { return new (t || DrLayoutHeaderComponent)(); }; }
9868
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutHeaderComponent, selectors: [["dr-layout-header"]], ngContentSelectors: _c0$9, decls: 2, vars: 0, template: function DrLayoutHeaderComponent_Template(rf, ctx) { if (rf & 1) {
10153
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutHeaderComponent, selectors: [["dr-layout-header"]], ngContentSelectors: _c0$8, decls: 2, vars: 0, template: function DrLayoutHeaderComponent_Template(rf, ctx) { if (rf & 1) {
9869
10154
  i0.ɵɵprojectionDef();
9870
10155
  i0.ɵɵelementStart(0, "nav");
9871
10156
  i0.ɵɵprojection(1);
@@ -9884,11 +10169,11 @@ class DrLayoutHeaderComponent {
9884
10169
  }]
9885
10170
  }], function () { return []; }, null); })();
9886
10171
 
9887
- const _c0$8 = ["*"];
10172
+ const _c0$7 = ["*"];
9888
10173
  class DrLayoutBodyComponent {
9889
10174
  constructor() { }
9890
10175
  /** @nocollapse */ static { this.ɵfac = function DrLayoutBodyComponent_Factory(t) { return new (t || DrLayoutBodyComponent)(); }; }
9891
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutBodyComponent, selectors: [["dr-layout-body"]], ngContentSelectors: _c0$8, decls: 1, vars: 0, template: function DrLayoutBodyComponent_Template(rf, ctx) { if (rf & 1) {
10176
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutBodyComponent, selectors: [["dr-layout-body"]], ngContentSelectors: _c0$7, decls: 1, vars: 0, template: function DrLayoutBodyComponent_Template(rf, ctx) { if (rf & 1) {
9892
10177
  i0.ɵɵprojectionDef();
9893
10178
  i0.ɵɵprojection(0);
9894
10179
  } }, encapsulation: 2 }); }
@@ -9910,7 +10195,7 @@ function DrDetailsListComponent_li_5_Template(rf, ctx) { if (rf & 1) {
9910
10195
  i0.ɵɵadvance(1);
9911
10196
  i0.ɵɵtextInterpolate(item_r1);
9912
10197
  } }
9913
- const _c0$7 = function (a0) { return { value: a0 }; };
10198
+ const _c0$6 = function (a0) { return { value: a0 }; };
9914
10199
  class DrDetailsListComponent {
9915
10200
  set items(val) {
9916
10201
  if (!val) {
@@ -9957,7 +10242,7 @@ class DrDetailsListComponent {
9957
10242
  i0.ɵɵadvance(1);
9958
10243
  i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
9959
10244
  i0.ɵɵadvance(1);
9960
- i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$7, ctx.state));
10245
+ i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$6, ctx.state));
9961
10246
  i0.ɵɵadvance(1);
9962
10247
  i0.ɵɵproperty("ngForOf", ctx.list);
9963
10248
  } }, dependencies: [i1.NgForOf], styles: ["[_nghost-%COMP%]{font-family:Poppins,sans-serif;font-size:14px;line-height:22px;color:#6d6e6f;font-weight:400}[_nghost-%COMP%] .details[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .details__header[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}[_nghost-%COMP%] .details__header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%] .details__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:28px;margin:8px 0}[_nghost-%COMP%] .details__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:disc}"], data: { animation: [
@@ -10001,7 +10286,7 @@ class DrDetailsListComponent {
10001
10286
  type: Input
10002
10287
  }] }); })();
10003
10288
 
10004
- const _c0$6 = ["content"];
10289
+ const _c0$5 = ["content"];
10005
10290
  function DialogWrapperComponent_i_1_Template(rf, ctx) { if (rf & 1) {
10006
10291
  const _r7 = i0.ɵɵgetCurrentView();
10007
10292
  i0.ɵɵelementStart(0, "i", 10);
@@ -10103,7 +10388,7 @@ function DialogWrapperComponent_div_9_Template(rf, ctx) { if (rf & 1) {
10103
10388
  i0.ɵɵadvance(1);
10104
10389
  i0.ɵɵproperty("ngIf", ctx_r5.dialogData.acceptButton);
10105
10390
  } }
10106
- const _c1$2 = function (a0) { return { "flex-position": a0 }; };
10391
+ const _c1$1 = function (a0) { return { "flex-position": a0 }; };
10107
10392
  class DialogWrapperComponent {
10108
10393
  get elementClass() {
10109
10394
  return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
@@ -10178,7 +10463,7 @@ class DialogWrapperComponent {
10178
10463
  }
10179
10464
  /** @nocollapse */ static { this.ɵfac = function DialogWrapperComponent_Factory(t) { return new (t || DialogWrapperComponent)(i0.ɵɵdirectiveInject(i1$6.MatLegacyDialogRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); }; }
10180
10465
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DialogWrapperComponent, selectors: [["dr-dialog-wrapper"]], viewQuery: function DialogWrapperComponent_Query(rf, ctx) { if (rf & 1) {
10181
- i0.ɵɵviewQuery(_c0$6, 5, ViewContainerRef);
10466
+ i0.ɵɵviewQuery(_c0$5, 5, ViewContainerRef);
10182
10467
  } if (rf & 2) {
10183
10468
  let _t;
10184
10469
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
@@ -10203,7 +10488,7 @@ class DialogWrapperComponent {
10203
10488
  i0.ɵɵproperty("ngIf", ctx.dialogData.title);
10204
10489
  i0.ɵɵadvance(1);
10205
10490
  i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
10206
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$2, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
10491
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$1, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
10207
10492
  i0.ɵɵadvance(1);
10208
10493
  i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
10209
10494
  i0.ɵɵadvance(1);
@@ -10374,8 +10659,8 @@ function DialogModalWrapperComponent_form_7_div_2_label_9_Template(rf, ctx) { if
10374
10659
  i0.ɵɵadvance(1);
10375
10660
  i0.ɵɵtextInterpolate1(" ", ctx_r19.dialogData.serverErrorMessage, " ");
10376
10661
  } }
10377
- const _c0$5 = function (a0) { return { display: a0 }; };
10378
- const _c1$1 = function (a0, a1) { return { "col-md-10": a0, "col-md-12": a1 }; };
10662
+ const _c0$4 = function (a0) { return { display: a0 }; };
10663
+ const _c1 = function (a0, a1) { return { "col-md-10": a0, "col-md-12": a1 }; };
10379
10664
  function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1) {
10380
10665
  i0.ɵɵelementStart(0, "div", 16);
10381
10666
  i0.ɵɵtemplate(1, DialogModalWrapperComponent_form_7_div_2_label_1_Template, 2, 2, "label", 17);
@@ -10392,11 +10677,11 @@ function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1
10392
10677
  const field_r11 = ctx.$implicit;
10393
10678
  const ctx_r10 = i0.ɵɵnextContext(2);
10394
10679
  i0.ɵɵclassMap(field_r11.formGroupClass);
10395
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$5, field_r11.isLabelFullWidth ? "block" : "flex"));
10680
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$4, field_r11.isLabelFullWidth ? "block" : "flex"));
10396
10681
  i0.ɵɵadvance(1);
10397
10682
  i0.ɵɵproperty("ngIf", field_r11.label && field_r11.type !== ctx_r10.dialogFieldType.CHECKBOX);
10398
10683
  i0.ɵɵadvance(1);
10399
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1$1, field_r11.label && !field_r11.isLabelFullWidth, !field_r11.label || field_r11.isLabelFullWidth));
10684
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1, field_r11.label && !field_r11.isLabelFullWidth, !field_r11.label || field_r11.isLabelFullWidth));
10400
10685
  i0.ɵɵadvance(1);
10401
10686
  i0.ɵɵproperty("ngIf", field_r11.type === ctx_r10.dialogFieldType.SELECT);
10402
10687
  i0.ɵɵadvance(1);
@@ -11077,7 +11362,7 @@ function TreeviewItemComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
11077
11362
  i0.ɵɵadvance(1);
11078
11363
  i0.ɵɵproperty("ngForOf", ctx_r2.item.children);
11079
11364
  } }
11080
- const _c0$4 = function (a0, a1, a2) { return { item: a0, onCollapseExpand: a1, onCheckedChange: a2 }; };
11365
+ const _c0$3 = function (a0, a1, a2) { return { item: a0, onCollapseExpand: a1, onCheckedChange: a2 }; };
11081
11366
  function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
11082
11367
  i0.ɵɵelementStart(0, "div", 1);
11083
11368
  i0.ɵɵtemplate(1, TreeviewItemComponent_div_0_ng_template_1_Template, 0, 0, "ng-template", 2);
@@ -11086,7 +11371,7 @@ function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
11086
11371
  } if (rf & 2) {
11087
11372
  const ctx_r0 = i0.ɵɵnextContext();
11088
11373
  i0.ɵɵadvance(1);
11089
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$4, ctx_r0.item, ctx_r0.onCollapseExpand, ctx_r0.onCheckedChange));
11374
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$3, ctx_r0.item, ctx_r0.onCollapseExpand, ctx_r0.onCheckedChange));
11090
11375
  i0.ɵɵadvance(1);
11091
11376
  i0.ɵɵproperty("ngIf", !ctx_r0.item.collapsed);
11092
11377
  } }
@@ -12366,7 +12651,7 @@ class DrImageCropperCanvasService {
12366
12651
  type: Injectable
12367
12652
  }], null, null); })();
12368
12653
 
12369
- const _c0$3 = ["imageCanvas"];
12654
+ const _c0$2 = ["imageCanvas"];
12370
12655
  class DrImageCropperComponent {
12371
12656
  constructor(canvasService) {
12372
12657
  this.canvasService = canvasService;
@@ -12424,7 +12709,7 @@ class DrImageCropperComponent {
12424
12709
  }
12425
12710
  /** @nocollapse */ static { this.ɵfac = function DrImageCropperComponent_Factory(t) { return new (t || DrImageCropperComponent)(i0.ɵɵdirectiveInject(DrImageCropperCanvasService)); }; }
12426
12711
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrImageCropperComponent, selectors: [["dr-image-cropper"]], viewQuery: function DrImageCropperComponent_Query(rf, ctx) { if (rf & 1) {
12427
- i0.ɵɵviewQuery(_c0$3, 7);
12712
+ i0.ɵɵviewQuery(_c0$2, 7);
12428
12713
  } if (rf & 2) {
12429
12714
  let _t;
12430
12715
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.canvasElement = _t.first);
@@ -12656,392 +12941,11 @@ class ClickOutsideModule {
12656
12941
  }], null, null); })();
12657
12942
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ClickOutsideModule, { declarations: [ClickOutsideDirective], imports: [CommonModule], exports: [ClickOutsideDirective] }); })();
12658
12943
 
12659
- const _c0$2 = ["textAreaElement"];
12660
- const _c1 = ["fileInput"];
12661
- function DrChatFormWithHistoryComponent_dr_chat_dropped_files_2_Template(rf, ctx) { if (rf & 1) {
12662
- const _r8 = i0.ɵɵgetCurrentView();
12663
- i0.ɵɵelementStart(0, "dr-chat-dropped-files", 15);
12664
- i0.ɵɵlistener("removeFileEvent", function DrChatFormWithHistoryComponent_dr_chat_dropped_files_2_Template_dr_chat_dropped_files_removeFileEvent_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.removeFile($event)); });
12665
- i0.ɵɵpipe(1, "async");
12666
- i0.ɵɵelementEnd();
12667
- } if (rf & 2) {
12668
- const ctx_r0 = i0.ɵɵnextContext();
12669
- i0.ɵɵproperty("files", i0.ɵɵpipeBind1(1, 3, ctx_r0.droppedFiles$))("isRemovable", true)("maxLengthText", 15);
12670
- } }
12671
- function DrChatFormWithHistoryComponent_i_14_Template(rf, ctx) { if (rf & 1) {
12672
- const _r10 = i0.ɵɵgetCurrentView();
12673
- i0.ɵɵelementStart(0, "i", 16);
12674
- i0.ɵɵlistener("click", function DrChatFormWithHistoryComponent_i_14_Template_i_click_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.sendMessage($event)); });
12675
- i0.ɵɵelementEnd();
12676
- } if (rf & 2) {
12677
- const ctx_r3 = i0.ɵɵnextContext();
12678
- const _r1 = i0.ɵɵreference(6);
12679
- i0.ɵɵstyleMap(ctx_r3.getSendButtonPosition(_r1));
12680
- } }
12681
- function DrChatFormWithHistoryComponent_i_15_Template(rf, ctx) { if (rf & 1) {
12682
- const _r12 = i0.ɵɵgetCurrentView();
12683
- i0.ɵɵelementStart(0, "i", 17);
12684
- i0.ɵɵlistener("click", function DrChatFormWithHistoryComponent_i_15_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.abortMessage()); });
12685
- i0.ɵɵelementEnd();
12686
- } if (rf & 2) {
12687
- const ctx_r4 = i0.ɵɵnextContext();
12688
- const _r1 = i0.ɵɵreference(6);
12689
- i0.ɵɵstyleMap(ctx_r4.getSendButtonPosition(_r1));
12690
- } }
12691
- function DrChatFormWithHistoryComponent_dr_dot_flashing_16_Template(rf, ctx) { if (rf & 1) {
12692
- i0.ɵɵelement(0, "dr-dot-flashing", 18);
12693
- } }
12694
- function DrChatFormWithHistoryComponent_ng_container_17_Template(rf, ctx) { if (rf & 1) {
12695
- const _r14 = i0.ɵɵgetCurrentView();
12696
- i0.ɵɵelementContainerStart(0);
12697
- i0.ɵɵelementStart(1, "div", 19);
12698
- i0.ɵɵlistener("clickOutside", function DrChatFormWithHistoryComponent_ng_container_17_Template_div_clickOutside_1_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.closeHistory()); });
12699
- i0.ɵɵprojection(2);
12700
- i0.ɵɵelementEnd();
12701
- i0.ɵɵelementContainerEnd();
12702
- } if (rf & 2) {
12703
- const ctx_r6 = i0.ɵɵnextContext();
12704
- i0.ɵɵadvance(1);
12705
- i0.ɵɵproperty("@dropdownAnimation", ctx_r6.isShowedHistory ? "visible" : "hidden")("exclude", ".dr-icon-history");
12706
- } }
12707
- const _c2 = function (a0) { return { "message-row_loading": a0 }; };
12708
- const _c3 = function (a0) { return { height: a0 }; };
12709
- const _c4 = function (a0, a1) { return { value: a0, params: a1 }; };
12710
- const _c5 = function (a0, a1, a2) { return { "message-row__input--focused": a0, "message-row__input--filled": a1, "showed-dropdown": a2 }; };
12711
- const _c6 = ["*"];
12712
- class DrChatFormWithHistoryComponent {
12713
- constructor(cdr, domSanitizer) {
12714
- this.cdr = cdr;
12715
- this.domSanitizer = domSanitizer;
12716
- this._textareaInitialHeight = true;
12717
- this.inputFocus = false;
12718
- this.inputHover = false;
12719
- this.droppedFiles$ = new BehaviorSubject([]);
12720
- this.isShowedHistory = false;
12721
- this.isChatMode = false;
12722
- this.isLoading = false;
12723
- /**
12724
- * Predefined message text
12725
- *
12726
- * @type {string}
12727
- */
12728
- this.message = '';
12729
- /**
12730
- * Message placeholder text
12731
- *
12732
- * @type {string}
12733
- */
12734
- this.messagePlaceholder = 'Type a message';
12735
- /**
12736
- * Show send button
12737
- *
12738
- * @type {boolean}
12739
- */
12740
- this.dropFiles = false;
12741
- /**
12742
- * File drop placeholder text
12743
- *
12744
- * @type {string}
12745
- */
12746
- this.dropFilePlaceholder = 'Drop file to send';
12747
- /**
12748
- * Parameter to check is send message function available
12749
- *
12750
- * @type {boolean}
12751
- */
12752
- this.waitForReply = false;
12753
- /**
12754
- * Parameter to check is send message function available
12755
- *
12756
- * @type {boolean}
12757
- */
12758
- this.showDotFlashing = false;
12759
- /**
12760
- *
12761
- * @type {EventEmitter<{ message: string, files: IFile[] }>}
12762
- */
12763
- this.send = new EventEmitter();
12764
- this.uploadFiles = new EventEmitter();
12765
- this.abort = new EventEmitter();
12766
- /**
12767
- * Emits when message input value has been changed
12768
- *
12769
- * @type {EventEmitter<string>}
12770
- */
12771
- this.inputChange = new EventEmitter();
12772
- this.fileOver = false;
12773
- }
12774
- onDrop(event) {
12775
- if (this.dropFiles) {
12776
- event.preventDefault();
12777
- event.stopPropagation();
12778
- this.fileOver = false;
12779
- const files = event.dataTransfer?.files;
12780
- if (files) {
12781
- this.saveFiles(files);
12782
- }
12783
- }
12784
- }
12785
- removeFile(file) {
12786
- const droppedFiles = this.droppedFiles$.value;
12787
- const index = droppedFiles.indexOf(file);
12788
- if (index >= 0) {
12789
- droppedFiles.splice(index, 1);
12790
- this.droppedFiles$.next(droppedFiles);
12791
- }
12792
- }
12793
- onDragOver(event) {
12794
- event.preventDefault();
12795
- event.stopPropagation();
12796
- if (this.dropFiles) {
12797
- this.fileOver = true;
12798
- }
12799
- }
12800
- onDragLeave(event) {
12801
- event.preventDefault();
12802
- event.stopPropagation();
12803
- if (this.dropFiles) {
12804
- this.fileOver = false;
12805
- }
12806
- }
12807
- sendMessage($event) {
12808
- if (!$event || !$event.shiftKey) {
12809
- $event?.preventDefault();
12810
- $event?.stopPropagation();
12811
- if (this.waitForReply) {
12812
- return;
12813
- }
12814
- else if (this.droppedFiles$.value.length || String(this.message).trim().length) {
12815
- this._textareaInitialHeight = true;
12816
- this.send.emit({ message: this.message, files: this.droppedFiles$.value });
12817
- this.message = '';
12818
- this.droppedFiles$.next([]);
12819
- this.cdr.markForCheck();
12820
- }
12821
- }
12822
- }
12823
- abortMessage() {
12824
- this.abort.emit();
12825
- }
12826
- onModelChange(value) {
12827
- this._textareaInitialHeight = false;
12828
- this.inputChange.emit(value);
12829
- }
12830
- getTextAreaHeight(textAreaElement) {
12831
- if (this._textareaInitialHeight) {
12832
- textAreaElement.style.height = '48px';
12833
- }
12834
- else {
12835
- textAreaElement.style.height = 'auto';
12836
- textAreaElement.style.height = textAreaElement.scrollHeight + 'px';
12837
- }
12838
- return `${textAreaElement.style.height}`;
12839
- }
12840
- getSendButtonPosition(textAreaElement) {
12841
- return `top: calc(${this.getTextAreaHeight(textAreaElement)} - var(--send-button-offset));`;
12842
- }
12843
- showHistory() {
12844
- this.isShowedHistory = !this.isShowedHistory;
12845
- }
12846
- closeHistory() {
12847
- this.isShowedHistory = false;
12848
- this.cdr.markForCheck();
12849
- }
12850
- onFileSelected(event) {
12851
- const input = event.target;
12852
- this.fileOver = false;
12853
- if (input.files.length) {
12854
- this.saveFiles(Array.from(input.files));
12855
- }
12856
- this.fileInput.nativeElement.value = '';
12857
- }
12858
- async saveFiles(files) {
12859
- const uploadedFiles = [];
12860
- for (const file of files) {
12861
- let res = file;
12862
- res.data = (await this.base64Convert(res));
12863
- this.droppedFiles$.next([...this.droppedFiles$.value, res]);
12864
- uploadedFiles.push(res);
12865
- this.cdr.markForCheck();
12866
- this.cdr.detectChanges();
12867
- }
12868
- this.uploadFiles.emit(uploadedFiles.map((item) => ({ data: item.data, name: item.name })));
12869
- }
12870
- base64Convert(file) {
12871
- return new Promise((resolve, reject) => {
12872
- const reader = new FileReader();
12873
- reader.onload = () => resolve(reader.result);
12874
- reader.onerror = (error) => reject(error);
12875
- reader.readAsDataURL(file);
12876
- });
12877
- }
12878
- /** @nocollapse */ static { this.ɵfac = function DrChatFormWithHistoryComponent_Factory(t) { return new (t || DrChatFormWithHistoryComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$5.DomSanitizer)); }; }
12879
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormWithHistoryComponent, selectors: [["dr-chat-form-with-history"]], viewQuery: function DrChatFormWithHistoryComponent_Query(rf, ctx) { if (rf & 1) {
12880
- i0.ɵɵviewQuery(_c0$2, 5);
12881
- i0.ɵɵviewQuery(_c1, 5);
12882
- } if (rf & 2) {
12883
- let _t;
12884
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.textAreaElementRef = _t.first);
12885
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
12886
- } }, hostVars: 2, hostBindings: function DrChatFormWithHistoryComponent_HostBindings(rf, ctx) { if (rf & 1) {
12887
- i0.ɵɵlistener("drop", function DrChatFormWithHistoryComponent_drop_HostBindingHandler($event) { return ctx.onDrop($event); })("dragover", function DrChatFormWithHistoryComponent_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragleave", function DrChatFormWithHistoryComponent_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); });
12888
- } if (rf & 2) {
12889
- i0.ɵɵclassProp("file-over", ctx.fileOver);
12890
- } }, inputs: { isChatMode: "isChatMode", isLoading: "isLoading", message: "message", messagePlaceholder: "messagePlaceholder", dropFiles: "dropFiles", dropFilePlaceholder: "dropFilePlaceholder", waitForReply: "waitForReply", showDotFlashing: "showDotFlashing" }, outputs: { send: "send", uploadFiles: "uploadFiles", abort: "abort", inputChange: "inputChange" }, ngContentSelectors: _c6, decls: 18, vars: 27, consts: [[1, "message-row", 3, "ngClass"], [1, "message-row__input", 3, "ngClass"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent", 4, "ngIf"], [1, "message-row__input-textarea-wrap"], ["type", "text", 3, "ngModel", "rows", "placeholder", "focus", "blur", "mouseenter", "mouseleave", "ngModelChange", "keydown.enter"], ["textAreaElement", ""], [1, "message-input-tmp"], ["type", "file", "hidden", "", "multiple", "", 3, "change"], ["fileInput", ""], [1, "dr-icon-history", 3, "click"], [1, "dr-icon-attachment", 3, "click"], ["class", "dr-icon-send-arrow-up send-button", 3, "style", "click", 4, "ngIf"], ["class", "dr-icon-stop abort-button", 3, "style", "click", 4, "ngIf"], ["class", "wait-reply-dot-flashing", 4, "ngIf"], [4, "ngIf"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent"], [1, "dr-icon-send-arrow-up", "send-button", 3, "click"], [1, "dr-icon-stop", "abort-button", 3, "click"], [1, "wait-reply-dot-flashing"], [1, "history-dropdown", 3, "exclude", "clickOutside"]], template: function DrChatFormWithHistoryComponent_Template(rf, ctx) { if (rf & 1) {
12891
- const _r15 = i0.ɵɵgetCurrentView();
12892
- i0.ɵɵprojectionDef();
12893
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
12894
- i0.ɵɵtemplate(2, DrChatFormWithHistoryComponent_dr_chat_dropped_files_2_Template, 2, 5, "dr-chat-dropped-files", 2);
12895
- i0.ɵɵpipe(3, "async");
12896
- i0.ɵɵelementStart(4, "div", 3)(5, "textarea", 4, 5);
12897
- i0.ɵɵlistener("focus", function DrChatFormWithHistoryComponent_Template_textarea_focus_5_listener() { return ctx.inputFocus = true; })("blur", function DrChatFormWithHistoryComponent_Template_textarea_blur_5_listener() { return ctx.inputFocus = false; })("mouseenter", function DrChatFormWithHistoryComponent_Template_textarea_mouseenter_5_listener() { return ctx.inputHover = true; })("mouseleave", function DrChatFormWithHistoryComponent_Template_textarea_mouseleave_5_listener() { return ctx.inputHover = false; })("ngModelChange", function DrChatFormWithHistoryComponent_Template_textarea_ngModelChange_5_listener($event) { return ctx.message = $event; })("ngModelChange", function DrChatFormWithHistoryComponent_Template_textarea_ngModelChange_5_listener($event) { return ctx.onModelChange($event); })("keydown.enter", function DrChatFormWithHistoryComponent_Template_textarea_keydown_enter_5_listener($event) { return ctx.sendMessage($event); });
12898
- i0.ɵɵtext(7, " ");
12899
- i0.ɵɵelementEnd();
12900
- i0.ɵɵelementStart(8, "div", 6);
12901
- i0.ɵɵtext(9);
12902
- i0.ɵɵelementEnd();
12903
- i0.ɵɵelementStart(10, "input", 7, 8);
12904
- i0.ɵɵlistener("change", function DrChatFormWithHistoryComponent_Template_input_change_10_listener($event) { return ctx.onFileSelected($event); });
12905
- i0.ɵɵelementEnd();
12906
- i0.ɵɵelementStart(12, "i", 9);
12907
- i0.ɵɵlistener("click", function DrChatFormWithHistoryComponent_Template_i_click_12_listener() { return ctx.showHistory(); });
12908
- i0.ɵɵelementEnd();
12909
- i0.ɵɵelementStart(13, "i", 10);
12910
- i0.ɵɵlistener("click", function DrChatFormWithHistoryComponent_Template_i_click_13_listener() { i0.ɵɵrestoreView(_r15); const _r2 = i0.ɵɵreference(11); return i0.ɵɵresetView(_r2.click()); });
12911
- i0.ɵɵelementEnd();
12912
- i0.ɵɵtemplate(14, DrChatFormWithHistoryComponent_i_14_Template, 1, 2, "i", 11);
12913
- i0.ɵɵtemplate(15, DrChatFormWithHistoryComponent_i_15_Template, 1, 2, "i", 12);
12914
- i0.ɵɵtemplate(16, DrChatFormWithHistoryComponent_dr_dot_flashing_16_Template, 1, 0, "dr-dot-flashing", 13);
12915
- i0.ɵɵelementEnd();
12916
- i0.ɵɵtemplate(17, DrChatFormWithHistoryComponent_ng_container_17_Template, 3, 2, "ng-container", 14);
12917
- i0.ɵɵelementEnd()();
12918
- } if (rf & 2) {
12919
- const _r1 = i0.ɵɵreference(6);
12920
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2, ctx.isLoading));
12921
- i0.ɵɵadvance(1);
12922
- i0.ɵɵproperty("@containerHeightAnimation", i0.ɵɵpureFunction2(20, _c4, ctx.showHistory ? "expanded" : "collapsed", i0.ɵɵpureFunction1(18, _c3, ctx.getTextAreaHeight(_r1))))("ngClass", i0.ɵɵpureFunction3(23, _c5, ctx.inputFocus, !!(ctx.message == null ? null : ctx.message.length), ctx.isShowedHistory));
12923
- i0.ɵɵadvance(1);
12924
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 14, ctx.droppedFiles$).length);
12925
- i0.ɵɵadvance(3);
12926
- i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
12927
- i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
12928
- i0.ɵɵproperty("ngModel", ctx.message)("rows", 1);
12929
- i0.ɵɵadvance(4);
12930
- i0.ɵɵtextInterpolate(_r1.value);
12931
- i0.ɵɵadvance(5);
12932
- i0.ɵɵproperty("ngIf", !ctx.waitForReply);
12933
- i0.ɵɵadvance(1);
12934
- i0.ɵɵproperty("ngIf", ctx.waitForReply && !ctx.showDotFlashing);
12935
- i0.ɵɵadvance(1);
12936
- i0.ɵɵproperty("ngIf", ctx.waitForReply && ctx.showDotFlashing);
12937
- i0.ɵɵadvance(1);
12938
- i0.ɵɵproperty("ngIf", !ctx.isChatMode);
12939
- } }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgModel, i1.NgClass, i1.NgIf, ClickOutsideDirective, DrDotFlashingComponent, DrChatDroppedFilesComponent, i1.AsyncPipe], styles: ["[_nghost-%COMP%] {--send-button-offset: 42px;display:flex;flex-direction:column;align-items:center;padding:0 16px}[_nghost-%COMP%] .message-row{display:flex;justify-content:center;width:100%;padding:0 0 21px;max-width:956px}[_nghost-%COMP%] .message-row__input{flex-direction:column;background-color:#fff;position:relative;display:flex;align-items:center;flex-grow:1;height:auto;overflow:visible;min-width:265px;border-radius:24px;border:1.5px solid transparent;box-shadow:0 2px 16px -10px #603cff29;transition:.35s ease}[_nghost-%COMP%] .message-row__input .abort-button, [_nghost-%COMP%] .message-row__input .send-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;position:absolute;top:2.5px;right:8px;cursor:pointer;font-size:24px;border-radius:100px;color:#fff;transition:.15s ease-in-out;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%) border-box}[_nghost-%COMP%] .message-row__input .dr-icon-history, [_nghost-%COMP%] .message-row__input .dr-icon-attachment{display:flex;align-items:center;position:absolute;cursor:pointer;width:32px;height:48px;left:16px;top:-1px}[_nghost-%COMP%] .message-row__input .dr-icon-attachment{left:52px}[_nghost-%COMP%] .message-row__input .send-button{opacity:.5;pointer-events:none}[_nghost-%COMP%] .message-row__input--focused{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;height:auto!important;background:#fff}[_nghost-%COMP%] .message-row__input--filled{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;background:#fff}[_nghost-%COMP%] .message-row__input--filled .send-button{opacity:1;pointer-events:all}[_nghost-%COMP%] .message-row__input .message-input-tmp{display:none}[_nghost-%COMP%] .message-row__input.showed-dropdown .send-button{opacity:.5}[_nghost-%COMP%] .message-row__input .wait-reply-dot-flashing{display:flex;position:absolute;align-items:center;width:32px;height:48px;right:25px}[_nghost-%COMP%] .message-row__input:before{content:\"\";position:absolute;inset:-3px;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%);border-radius:25px;z-index:-1}[_nghost-%COMP%] .message-row__input textarea, [_nghost-%COMP%] .message-row__input .message-input-tmp{font-size:14px;color:#333;width:100%;outline:none;min-height:48px;line-height:19px;flex-grow:1;resize:none;padding:13px 55px 13px 88px;margin:auto;border:none;border-radius:22.5px}[_nghost-%COMP%] .message-row__input textarea:focus, [_nghost-%COMP%] .message-row__input .message-input-tmp:focus{border:none}[_nghost-%COMP%] .message-row__input textarea::placeholder, [_nghost-%COMP%] .message-row__input .message-input-tmp::placeholder{color:#9ea1aa}[_nghost-%COMP%] .message-row__input-textarea-wrap{display:flex;width:100%;position:relative}[_nghost-%COMP%] .history-dropdown{width:100%;max-height:220px;overflow-y:auto;padding:12px 16px 0}[_nghost-%COMP%] .showed-dropdown textarea{visibility:hidden;position:absolute}[_nghost-%COMP%] .showed-dropdown .message-input-tmp{display:block;margin-left:inherit;white-space:nowrap;font-family:monospace;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .showed-dropdown .send-button{top:2.5px!important}[_nghost-%COMP%] dr-chat-dropped-files{margin-right:auto}[_nghost-%COMP%] .message-row_loading .send-button, [_nghost-%COMP%] .message-row_loading .dropped-files__item{opacity:.5;pointer-events:none}"], data: { animation: [
12940
- trigger('containerHeightAnimation', [
12941
- state('collapsed', style({ height: '{{height}}' }), { params: { height: '48px' } }),
12942
- state('expanded', style({
12943
- height: '*',
12944
- })),
12945
- transition('collapsed => expanded', [animate('300ms ease-in-out')]),
12946
- transition('expanded => collapsed', [query('@dropdownAnimation', animateChild()), animate('300ms ease-in-out')]),
12947
- ]),
12948
- trigger('dropdownAnimation', [
12949
- state('hidden', style({
12950
- opacity: 0,
12951
- transform: 'translateY(-30px)',
12952
- display: 'none',
12953
- })),
12954
- state('visible', style({
12955
- opacity: 1,
12956
- transform: 'translateY(0)',
12957
- display: 'block',
12958
- })),
12959
- transition('hidden => visible', [style({ display: 'block' }), animate('300ms ease-in-out')]),
12960
- transition('visible => hidden', [
12961
- animate('300ms ease-in-out', style({ opacity: 0, transform: 'translateY(-30px)' })),
12962
- style({ display: 'none' }),
12963
- ]),
12964
- ]),
12965
- ] }, changeDetection: 0 }); }
12966
- }
12967
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatFormWithHistoryComponent, [{
12968
- type: Component,
12969
- args: [{ selector: 'dr-chat-form-with-history', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
12970
- trigger('containerHeightAnimation', [
12971
- state('collapsed', style({ height: '{{height}}' }), { params: { height: '48px' } }),
12972
- state('expanded', style({
12973
- height: '*',
12974
- })),
12975
- transition('collapsed => expanded', [animate('300ms ease-in-out')]),
12976
- transition('expanded => collapsed', [query('@dropdownAnimation', animateChild()), animate('300ms ease-in-out')]),
12977
- ]),
12978
- trigger('dropdownAnimation', [
12979
- state('hidden', style({
12980
- opacity: 0,
12981
- transform: 'translateY(-30px)',
12982
- display: 'none',
12983
- })),
12984
- state('visible', style({
12985
- opacity: 1,
12986
- transform: 'translateY(0)',
12987
- display: 'block',
12988
- })),
12989
- transition('hidden => visible', [style({ display: 'block' }), animate('300ms ease-in-out')]),
12990
- transition('visible => hidden', [
12991
- animate('300ms ease-in-out', style({ opacity: 0, transform: 'translateY(-30px)' })),
12992
- style({ display: 'none' }),
12993
- ]),
12994
- ]),
12995
- ], template: "<div class=\"message-row\" [ngClass]=\"{ 'message-row_loading': isLoading }\">\n <div\n [@containerHeightAnimation]=\"{\n value: showHistory ? 'expanded' : 'collapsed',\n params: { height: getTextAreaHeight(textAreaElement) },\n }\"\n class=\"message-row__input\"\n [ngClass]=\"{\n 'message-row__input--focused': inputFocus,\n 'message-row__input--filled': !!message?.length,\n 'showed-dropdown': isShowedHistory,\n }\">\n <dr-chat-dropped-files\n *ngIf=\"(droppedFiles$ | async).length\"\n [files]=\"droppedFiles$ | async\"\n [isRemovable]=\"true\"\n [maxLengthText]=\"15\"\n (removeFileEvent)=\"removeFile($event)\"></dr-chat-dropped-files>\n\n <div class=\"message-row__input-textarea-wrap\">\n <textarea\n #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 (keydown.enter)=\"sendMessage($event)\">\n </textarea>\n\n <div class=\"message-input-tmp\">{{ textAreaElement.value }}</div>\n\n <input #fileInput type=\"file\" hidden multiple (change)=\"onFileSelected($event)\" />\n <i (click)=\"showHistory()\" class=\"dr-icon-history\"></i>\n <i (click)=\"fileInput.click()\" class=\"dr-icon-attachment\"></i>\n\n <i\n *ngIf=\"!waitForReply\"\n [style]=\"getSendButtonPosition(textAreaElement)\"\n (click)=\"sendMessage($event)\"\n class=\"dr-icon-send-arrow-up send-button\"></i>\n\n <i\n *ngIf=\"waitForReply && !showDotFlashing\"\n [style]=\"getSendButtonPosition(textAreaElement)\"\n class=\"dr-icon-stop abort-button\"\n (click)=\"abortMessage()\"></i>\n <dr-dot-flashing *ngIf=\"waitForReply && showDotFlashing\" class=\"wait-reply-dot-flashing\"></dr-dot-flashing>\n </div>\n\n <ng-container *ngIf=\"!isChatMode\">\n <div\n [@dropdownAnimation]=\"isShowedHistory ? 'visible' : 'hidden'\"\n class=\"history-dropdown\"\n [exclude]=\"'.dr-icon-history'\"\n (clickOutside)=\"closeHistory()\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n </div>\n</div>\n", styles: [":host::ng-deep{--send-button-offset: 42px;display:flex;flex-direction:column;align-items:center;padding:0 16px}:host::ng-deep .message-row{display:flex;justify-content:center;width:100%;padding:0 0 21px;max-width:956px}:host::ng-deep .message-row__input{flex-direction:column;background-color:#fff;position:relative;display:flex;align-items:center;flex-grow:1;height:auto;overflow:visible;min-width:265px;border-radius:24px;border:1.5px solid transparent;box-shadow:0 2px 16px -10px #603cff29;transition:.35s ease}:host::ng-deep .message-row__input .abort-button,:host::ng-deep .message-row__input .send-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;position:absolute;top:2.5px;right:8px;cursor:pointer;font-size:24px;border-radius:100px;color:#fff;transition:.15s ease-in-out;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%) border-box}:host::ng-deep .message-row__input .dr-icon-history,:host::ng-deep .message-row__input .dr-icon-attachment{display:flex;align-items:center;position:absolute;cursor:pointer;width:32px;height:48px;left:16px;top:-1px}:host::ng-deep .message-row__input .dr-icon-attachment{left:52px}:host::ng-deep .message-row__input .send-button{opacity:.5;pointer-events:none}:host::ng-deep .message-row__input--focused{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;height:auto!important;background:#fff}:host::ng-deep .message-row__input--filled{box-shadow:8px 8px 16px #6969ff40,-4px -4px 8px #40b6e340,8px 8px 60px #00000040;background:#fff}:host::ng-deep .message-row__input--filled .send-button{opacity:1;pointer-events:all}:host::ng-deep .message-row__input .message-input-tmp{display:none}:host::ng-deep .message-row__input.showed-dropdown .send-button{opacity:.5}:host::ng-deep .message-row__input .wait-reply-dot-flashing{display:flex;position:absolute;align-items:center;width:32px;height:48px;right:25px}:host::ng-deep .message-row__input:before{content:\"\";position:absolute;inset:-3px;background:linear-gradient(266deg,#6969ff 25.2%,#4eb7df 90.24%);border-radius:25px;z-index:-1}:host::ng-deep .message-row__input textarea,:host::ng-deep .message-row__input .message-input-tmp{font-size:14px;color:#333;width:100%;outline:none;min-height:48px;line-height:19px;flex-grow:1;resize:none;padding:13px 55px 13px 88px;margin:auto;border:none;border-radius:22.5px}:host::ng-deep .message-row__input textarea:focus,:host::ng-deep .message-row__input .message-input-tmp:focus{border:none}:host::ng-deep .message-row__input textarea::placeholder,:host::ng-deep .message-row__input .message-input-tmp::placeholder{color:#9ea1aa}:host::ng-deep .message-row__input-textarea-wrap{display:flex;width:100%;position:relative}:host::ng-deep .history-dropdown{width:100%;max-height:220px;overflow-y:auto;padding:12px 16px 0}:host::ng-deep .showed-dropdown textarea{visibility:hidden;position:absolute}:host::ng-deep .showed-dropdown .message-input-tmp{display:block;margin-left:inherit;white-space:nowrap;font-family:monospace;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .showed-dropdown .send-button{top:2.5px!important}:host::ng-deep dr-chat-dropped-files{margin-right:auto}:host::ng-deep .message-row_loading .send-button,:host::ng-deep .message-row_loading .dropped-files__item{opacity:.5;pointer-events:none}\n"] }]
12996
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$5.DomSanitizer }]; }, { textAreaElementRef: [{
12997
- type: ViewChild,
12998
- args: ['textAreaElement']
12999
- }], fileInput: [{
13000
- type: ViewChild,
13001
- args: ['fileInput']
13002
- }], isChatMode: [{
13003
- type: Input
13004
- }], isLoading: [{
13005
- type: Input
13006
- }], message: [{
13007
- type: Input
13008
- }], messagePlaceholder: [{
13009
- type: Input
13010
- }], dropFiles: [{
13011
- type: Input
13012
- }], dropFilePlaceholder: [{
13013
- type: Input
13014
- }], waitForReply: [{
13015
- type: Input
13016
- }], showDotFlashing: [{
13017
- type: Input
13018
- }], send: [{
13019
- type: Output
13020
- }], uploadFiles: [{
13021
- type: Output
13022
- }], abort: [{
13023
- type: Output
13024
- }], inputChange: [{
13025
- type: Output
13026
- }], fileOver: [{
13027
- type: HostBinding,
13028
- args: ['class.file-over']
13029
- }], onDrop: [{
13030
- type: HostListener,
13031
- args: ['drop', ['$event']]
13032
- }], onDragOver: [{
13033
- type: HostListener,
13034
- args: ['dragover', ['$event']]
13035
- }], onDragLeave: [{
13036
- type: HostListener,
13037
- args: ['dragleave', ['$event']]
13038
- }] }); })();
13039
-
13040
12944
  const DR_CHAT_COMPONENTS = [
13041
12945
  DrChatComponent,
13042
12946
  DrChatMessageComponent,
13043
12947
  DrChatFormComponent,
13044
- DrChatFormWithHistoryComponent,
12948
+ DrChatFormDropdownComponent,
13045
12949
  DrChatMessageTextComponent,
13046
12950
  DrChatMessageFileComponent,
13047
12951
  DrChatSuggestionsComponent,
@@ -13081,7 +12985,7 @@ class DrChatModule {
13081
12985
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrChatModule, { declarations: [DrChatComponent,
13082
12986
  DrChatMessageComponent,
13083
12987
  DrChatFormComponent,
13084
- DrChatFormWithHistoryComponent,
12988
+ DrChatFormDropdownComponent,
13085
12989
  DrChatMessageTextComponent,
13086
12990
  DrChatMessageFileComponent,
13087
12991
  DrChatSuggestionsComponent,
@@ -13096,7 +13000,7 @@ class DrChatModule {
13096
13000
  ClickOutsideModule], exports: [DrChatComponent,
13097
13001
  DrChatMessageComponent,
13098
13002
  DrChatFormComponent,
13099
- DrChatFormWithHistoryComponent,
13003
+ DrChatFormDropdownComponent,
13100
13004
  DrChatMessageTextComponent,
13101
13005
  DrChatMessageFileComponent,
13102
13006
  DrChatSuggestionsComponent,
@@ -13765,5 +13669,5 @@ class DrawerModule {
13765
13669
  * Generated bundle index. Do not edit.
13766
13670
  */
13767
13671
 
13768
- export { AnyTagComponent, BadgeStatus, CHAT_MESSAGE_TYPE, CROP_IMAGE_MODES, CalendarView, ChatMessage, ChatRole, CheckboxComponent, ClickOutsideDirective, ClickOutsideModule, CodeEditorHintWrapperComponent, CustomDateAdapter, CustomDateFormat, DEFAULT_LINK_FONT_SIZE, DEFAULT_LINK_FONT_WEIGHT, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DR_DRAWER_DATA, DR_DRAWER_DEFAULT_OPTIONS, DR_SHINE_ANIMATION_CLASS, DataAnalyticsService, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DefaultToastrComponent, DefaultTreeviewEventParser, DefaultTreeviewI18n, DialogModalWrapperComponent, DialogService, DialogWrapperComponent, DownlineTreeviewEventParser, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAlertComponent, DrAlertModule, DrAlertTheme, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrAvatarService, DrBadgeStatusComponent, DrBadgeStatusModule, DrButtonComponent, DrChatAlertComponent, DrChatComponent, DrChatCustomMessageDirective, DrChatFormComponent, DrChatMessageComponent, DrChatMessageFileComponent, DrChatMessageTextComponent, DrChatModule, DrChatSuggestionsComponent, DrChipComponent, DrCodeEditorComponent, DrCodeEditorModule, DrCodemirrorComponent, DrDatePickerComponent, DrDatePickerCustomHeaderComponent, DrDatePickerFormatDirective, DrDatePickerRangeComponent, DrDatePickerWithTimeframeComponent, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDotFlashingComponent, DrDropdownChildDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemComponent, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownService, DrErrorComponent, DrErrorModule, DrImageCropperComponent, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrLinkComponent, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrScenarioConfigurationComponent, DrScenarioModule, DrScenarioTagConfigurationComponent, DrSelectAddItemComponent, DrSelectComponent, DrSharedUtils, DrShineAnimationDirective, DrShowTimeframePipe, DrSliderComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrTagsConstructorComponent, DrTagsConstructorModule, DrToastrModule, DrToastrService, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, Drawer, DrawerConfig, DrawerContainer, DrawerModule, DrawerRef, DropdownInstanceService, FeedbackSentiment, FilterPipe, ForecastTagComponent, ForecastTagService, ICodeEditorHintIcon, IMAGE_TYPES, ImgPipe, LetContext, LetDirective, LinkTheme, ListTagComponent, ListTagModule, MonthTagComponent, OrderDownlineTreeviewEventParser, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, StepperComponent, TagTypes, TagsConfigSubType, TagsConstructorService, TimeframeOption, ToastrStatus, ToastrStatusIcon, ToggleButtonMode, TooltipComponent, TooltipDefaultComponent, TooltipInfoComponent, TooltipInfoIconTheme, TooltipInfoWidth, TooltipPosition, TooltipTheme, TrackByPropertyDirective, TreeviewComponent, TreeviewConfig, TreeviewEventParser, TreeviewHelper, TreeviewI18n, TreeviewItem, TreeviewModule, TreeviewPipe, WeekTagComponent, YearTagComponent };
13672
+ export { AnyTagComponent, BadgeStatus, CHAT_MESSAGE_TYPE, CROP_IMAGE_MODES, CalendarView, ChatMessage, ChatRole, CheckboxComponent, ClickOutsideDirective, ClickOutsideModule, CodeEditorHintWrapperComponent, CustomDateAdapter, CustomDateFormat, DEFAULT_LINK_FONT_SIZE, DEFAULT_LINK_FONT_WEIGHT, DIALOG_BUTTON_LABEL, DIALOG_FIELD_TYPE, DIALOG_SIZE, DR_DRAWER_DATA, DR_DRAWER_DEFAULT_OPTIONS, DR_SHINE_ANIMATION_CLASS, DataAnalyticsService, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DateTags, DayTagComponent, DefaultToastrComponent, DefaultTreeviewEventParser, DefaultTreeviewI18n, DialogModalWrapperComponent, DialogService, DialogWrapperComponent, DownlineTreeviewEventParser, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAlertComponent, DrAlertModule, DrAlertTheme, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrAvatarService, DrBadgeStatusComponent, DrBadgeStatusModule, DrButtonComponent, DrChatAlertComponent, DrChatComponent, DrChatCustomMessageDirective, DrChatDroppedFilesComponent, DrChatFormComponent, DrChatFormDropdownComponent, DrChatMessageComponent, DrChatMessageFileComponent, DrChatMessageTextComponent, DrChatModule, DrChatSuggestionsComponent, DrChipComponent, DrCodeEditorComponent, DrCodeEditorModule, DrCodemirrorComponent, DrDatePickerComponent, DrDatePickerCustomHeaderComponent, DrDatePickerFormatDirective, DrDatePickerRangeComponent, DrDatePickerWithTimeframeComponent, DrDetailsListComponent, DrDetailsListModule, DrDialogModule, DrDotFlashingComponent, DrDropdownChildDirective, DrDropdownComponent, DrDropdownDirective, DrDropdownItemComponent, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownService, DrErrorComponent, DrErrorModule, DrImageCropperComponent, DrInputComponent, DrInputsModule, DrLayoutBodyComponent, DrLayoutComponent, DrLayoutHeaderComponent, DrLayoutModule, DrLinkComponent, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrScenarioConfigurationComponent, DrScenarioModule, DrScenarioTagConfigurationComponent, DrSelectAddItemComponent, DrSelectComponent, DrSharedUtils, DrShineAnimationDirective, DrShowTimeframePipe, DrSliderComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrStepperModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrTagsConstructorComponent, DrTagsConstructorModule, DrToastrModule, DrToastrService, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, Drawer, DrawerConfig, DrawerContainer, DrawerModule, DrawerRef, DropdownInstanceService, FeedbackSentiment, FilterPipe, ForecastTagComponent, ForecastTagService, ICodeEditorHintIcon, IMAGE_TYPES, ImgPipe, LetContext, LetDirective, LinkTheme, ListTagComponent, ListTagModule, MonthTagComponent, OrderDownlineTreeviewEventParser, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, Scenario, ScenarioService, StepperComponent, TagTypes, TagsConfigSubType, TagsConstructorService, TimeframeOption, ToastrStatus, ToastrStatusIcon, ToggleButtonMode, TooltipComponent, TooltipDefaultComponent, TooltipInfoComponent, TooltipInfoIconTheme, TooltipInfoWidth, TooltipPosition, TooltipTheme, TrackByPropertyDirective, TreeviewComponent, TreeviewConfig, TreeviewEventParser, TreeviewHelper, TreeviewI18n, TreeviewItem, TreeviewModule, TreeviewPipe, WeekTagComponent, YearTagComponent };
13769
13673
  //# sourceMappingURL=datarailsshared-datarailsshared.mjs.map