@datarailsshared/datarailsshared 1.6.21 → 1.6.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/datarailsshared-datarailsshared-1.6.25.tgz +0 -0
- package/esm2022/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +691 -691
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/datarailsshared-datarailsshared-1.6.21.tgz +0 -0
|
@@ -6641,180 +6641,650 @@ class DrChatComponent {
|
|
|
6641
6641
|
args: [DrChatSuggestionsComponent]
|
|
6642
6642
|
}] }); })();
|
|
6643
6643
|
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
return this._type;
|
|
6644
|
+
class ClickOutsideDirective {
|
|
6645
|
+
constructor(_document /*: HTMLDocument*/, _el) {
|
|
6646
|
+
this._document = _document;
|
|
6647
|
+
this._el = _el;
|
|
6648
|
+
this.attachOutsideOnClick = false;
|
|
6649
|
+
this.exclude = '';
|
|
6650
|
+
this.clickOutside = new EventEmitter();
|
|
6651
|
+
this._nodesExcluded = [];
|
|
6652
|
+
this._initOnClickBody = this._initOnClickBody.bind(this);
|
|
6653
|
+
this._onClickBody = this._onClickBody.bind(this);
|
|
6655
6654
|
}
|
|
6656
|
-
|
|
6657
|
-
this.
|
|
6655
|
+
ngOnInit() {
|
|
6656
|
+
this._init();
|
|
6658
6657
|
}
|
|
6659
|
-
|
|
6660
|
-
|
|
6658
|
+
ngOnDestroy() {
|
|
6659
|
+
if (this.attachOutsideOnClick) {
|
|
6660
|
+
this._el.nativeElement.removeEventListener('click', this._initOnClickBody);
|
|
6661
|
+
}
|
|
6662
|
+
this._document.body.removeEventListener('click', this._onClickBody);
|
|
6661
6663
|
}
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6664
|
+
ngOnChanges(changes) {
|
|
6665
|
+
if (changes['attachOutsideOnClick'] || changes['exclude']) {
|
|
6666
|
+
this._init();
|
|
6667
|
+
}
|
|
6665
6668
|
}
|
|
6666
|
-
|
|
6667
|
-
if (
|
|
6668
|
-
|
|
6669
|
+
_init() {
|
|
6670
|
+
if (this.exclude) {
|
|
6671
|
+
this.exclude.split(',').forEach((selector) => {
|
|
6672
|
+
if (selector) {
|
|
6673
|
+
try {
|
|
6674
|
+
const node = this._document.querySelector(selector.trim());
|
|
6675
|
+
if (node) {
|
|
6676
|
+
this._nodesExcluded.push(node);
|
|
6677
|
+
}
|
|
6678
|
+
}
|
|
6679
|
+
catch (err) {
|
|
6680
|
+
if (window.console) {
|
|
6681
|
+
window.console.error('[ng2-click-outside] Check your exclude selector syntax.', err);
|
|
6682
|
+
}
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6685
|
+
});
|
|
6686
|
+
}
|
|
6687
|
+
if (this.attachOutsideOnClick) {
|
|
6688
|
+
this._el.nativeElement.addEventListener('click', this._initOnClickBody);
|
|
6689
|
+
}
|
|
6690
|
+
else {
|
|
6691
|
+
this._initOnClickBody();
|
|
6669
6692
|
}
|
|
6670
|
-
this.customMessageService.register(this.type, this);
|
|
6671
6693
|
}
|
|
6672
|
-
|
|
6673
|
-
|
|
6694
|
+
/** @internal */
|
|
6695
|
+
_initOnClickBody() {
|
|
6696
|
+
this._document.body.addEventListener('click', this._onClickBody);
|
|
6674
6697
|
}
|
|
6675
|
-
/** @
|
|
6676
|
-
|
|
6698
|
+
/** @internal */
|
|
6699
|
+
_onClickBody(e) {
|
|
6700
|
+
if (!this._el.nativeElement.contains(e.target) && !this._shouldExclude(e.target)) {
|
|
6701
|
+
this.clickOutside.emit(e);
|
|
6702
|
+
if (this.attachOutsideOnClick) {
|
|
6703
|
+
this._document.body.removeEventListener('click', this._onClickBody);
|
|
6704
|
+
}
|
|
6705
|
+
}
|
|
6706
|
+
}
|
|
6707
|
+
/** @internal */
|
|
6708
|
+
_shouldExclude(target) {
|
|
6709
|
+
for (let i = 0; i < this._nodesExcluded.length; i++) {
|
|
6710
|
+
if (this._nodesExcluded[i].contains(target)) {
|
|
6711
|
+
return true;
|
|
6712
|
+
}
|
|
6713
|
+
}
|
|
6714
|
+
return false;
|
|
6715
|
+
}
|
|
6716
|
+
/** @nocollapse */ static { this.ɵfac = function ClickOutsideDirective_Factory(t) { return new (t || ClickOutsideDirective)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
6717
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: ClickOutsideDirective, selectors: [["", "clickOutside", ""]], inputs: { attachOutsideOnClick: "attachOutsideOnClick", exclude: "exclude" }, outputs: { clickOutside: "clickOutside" }, features: [i0.ɵɵNgOnChangesFeature] }); }
|
|
6677
6718
|
}
|
|
6678
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
6719
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClickOutsideDirective, [{
|
|
6679
6720
|
type: Directive,
|
|
6680
|
-
args: [{
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6721
|
+
args: [{ selector: '[clickOutside]' }]
|
|
6722
|
+
}], function () { return [{ type: undefined, decorators: [{
|
|
6723
|
+
type: Inject,
|
|
6724
|
+
args: [DOCUMENT]
|
|
6725
|
+
}] }, { type: i0.ElementRef }]; }, { attachOutsideOnClick: [{
|
|
6684
6726
|
type: Input
|
|
6685
|
-
}]
|
|
6686
|
-
|
|
6687
|
-
const _c0$n = ["*"];
|
|
6688
|
-
class DrChatAlertComponent {
|
|
6689
|
-
constructor() {
|
|
6690
|
-
this.iconClass = 'dr-icon-info';
|
|
6691
|
-
this.close = new EventEmitter();
|
|
6692
|
-
}
|
|
6693
|
-
/** @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) {
|
|
6695
|
-
i0.ɵɵprojectionDef();
|
|
6696
|
-
i0.ɵɵelement(0, "i");
|
|
6697
|
-
i0.ɵɵprojection(1);
|
|
6698
|
-
i0.ɵɵelementStart(2, "dr-button", 0);
|
|
6699
|
-
i0.ɵɵlistener("click", function DrChatAlertComponent_Template_dr_button_click_2_listener() { return ctx.close.emit(); });
|
|
6700
|
-
i0.ɵɵelementEnd();
|
|
6701
|
-
} if (rf & 2) {
|
|
6702
|
-
i0.ɵɵclassMap(ctx.iconClass);
|
|
6703
|
-
} }, dependencies: [DrButtonComponent, DrTooltipDirective], styles: ["[_nghost-%COMP%]{display:flex;padding:8px 24px;align-items:center;min-height:40px;color:#6d6e6f;background-color:#f6f7f8;border-top:1px solid #dfe0e3;font-size:12px;line-height:20px;white-space:pre-line}[_nghost-%COMP%] i[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] .chat-alert-close-btn[_ngcontent-%COMP%]{display:none;position:absolute;right:16px;color:#aeabac}[_nghost-%COMP%]:hover .chat-alert-close-btn[_ngcontent-%COMP%]{display:block}"], changeDetection: 0 }); }
|
|
6704
|
-
}
|
|
6705
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatAlertComponent, [{
|
|
6706
|
-
type: Component,
|
|
6707
|
-
args: [{ selector: 'dr-chat-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<i [class]=\"iconClass\"></i>\n<ng-content></ng-content>\n<dr-button (click)=\"close.emit()\" theme=\"icon\" icon=\"dr-icon-exit\" class=\"chat-alert-close-btn\" drTooltip=\"Close\"> </dr-button>\n", styles: [":host{display:flex;padding:8px 24px;align-items:center;min-height:40px;color:#6d6e6f;background-color:#f6f7f8;border-top:1px solid #dfe0e3;font-size:12px;line-height:20px;white-space:pre-line}:host i{margin-right:8px}:host .chat-alert-close-btn{display:none;position:absolute;right:16px;color:#aeabac}:host:hover .chat-alert-close-btn{display:block}\n"] }]
|
|
6708
|
-
}], null, { iconClass: [{
|
|
6727
|
+
}], exclude: [{
|
|
6709
6728
|
type: Input
|
|
6710
|
-
}],
|
|
6729
|
+
}], clickOutside: [{
|
|
6711
6730
|
type: Output
|
|
6712
6731
|
}] }); })();
|
|
6713
6732
|
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6733
|
+
const _c0$n = ["textAreaElement"];
|
|
6734
|
+
const _c1$9 = ["fileInput"];
|
|
6735
|
+
function DrChatFormWithHistoryComponent_dr_chat_dropped_files_2_Template(rf, ctx) { if (rf & 1) {
|
|
6736
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
6737
|
+
i0.ɵɵelementStart(0, "dr-chat-dropped-files", 15);
|
|
6738
|
+
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)); });
|
|
6739
|
+
i0.ɵɵpipe(1, "async");
|
|
6717
6740
|
i0.ɵɵelementEnd();
|
|
6718
6741
|
} if (rf & 2) {
|
|
6719
6742
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
6720
|
-
i0.ɵɵ
|
|
6721
|
-
i0.ɵɵtextInterpolate(ctx_r0.toggleTitle);
|
|
6743
|
+
i0.ɵɵproperty("files", i0.ɵɵpipeBind1(1, 3, ctx_r0.droppedFiles$))("isRemovable", true)("maxLengthText", 15);
|
|
6722
6744
|
} }
|
|
6723
|
-
function
|
|
6724
|
-
i0.ɵɵ
|
|
6725
|
-
i0.ɵɵ
|
|
6745
|
+
function DrChatFormWithHistoryComponent_i_14_Template(rf, ctx) { if (rf & 1) {
|
|
6746
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
6747
|
+
i0.ɵɵelementStart(0, "i", 16);
|
|
6748
|
+
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)); });
|
|
6726
6749
|
i0.ɵɵelementEnd();
|
|
6727
6750
|
} if (rf & 2) {
|
|
6728
|
-
const
|
|
6751
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
6752
|
+
const _r1 = i0.ɵɵreference(6);
|
|
6753
|
+
i0.ɵɵstyleMap(ctx_r3.getSendButtonPosition(_r1));
|
|
6754
|
+
} }
|
|
6755
|
+
function DrChatFormWithHistoryComponent_i_15_Template(rf, ctx) { if (rf & 1) {
|
|
6756
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
6757
|
+
i0.ɵɵelementStart(0, "i", 17);
|
|
6758
|
+
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()); });
|
|
6759
|
+
i0.ɵɵelementEnd();
|
|
6760
|
+
} if (rf & 2) {
|
|
6761
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
6762
|
+
const _r1 = i0.ɵɵreference(6);
|
|
6763
|
+
i0.ɵɵstyleMap(ctx_r4.getSendButtonPosition(_r1));
|
|
6764
|
+
} }
|
|
6765
|
+
function DrChatFormWithHistoryComponent_dr_dot_flashing_16_Template(rf, ctx) { if (rf & 1) {
|
|
6766
|
+
i0.ɵɵelement(0, "dr-dot-flashing", 18);
|
|
6767
|
+
} }
|
|
6768
|
+
function DrChatFormWithHistoryComponent_ng_container_17_Template(rf, ctx) { if (rf & 1) {
|
|
6769
|
+
const _r14 = i0.ɵɵgetCurrentView();
|
|
6770
|
+
i0.ɵɵelementContainerStart(0);
|
|
6771
|
+
i0.ɵɵelementStart(1, "div", 19);
|
|
6772
|
+
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()); });
|
|
6773
|
+
i0.ɵɵprojection(2);
|
|
6774
|
+
i0.ɵɵelementEnd();
|
|
6775
|
+
i0.ɵɵelementContainerEnd();
|
|
6776
|
+
} if (rf & 2) {
|
|
6777
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
6729
6778
|
i0.ɵɵadvance(1);
|
|
6730
|
-
i0.ɵɵ
|
|
6779
|
+
i0.ɵɵproperty("@dropdownAnimation", ctx_r6.isShowedHistory ? "visible" : "hidden")("exclude", ".dr-icon-history");
|
|
6731
6780
|
} }
|
|
6732
|
-
const
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
}
|
|
6740
|
-
constructor(cdr) {
|
|
6781
|
+
const _c2$2 = function (a0) { return { "message-row_loading": a0 }; };
|
|
6782
|
+
const _c3$2 = function (a0) { return { height: a0 }; };
|
|
6783
|
+
const _c4$1 = function (a0, a1) { return { value: a0, params: a1 }; };
|
|
6784
|
+
const _c5 = function (a0, a1, a2) { return { "message-row__input--focused": a0, "message-row__input--filled": a1, "showed-dropdown": a2 }; };
|
|
6785
|
+
const _c6 = ["*"];
|
|
6786
|
+
class DrChatFormWithHistoryComponent {
|
|
6787
|
+
constructor(cdr, domSanitizer) {
|
|
6741
6788
|
this.cdr = cdr;
|
|
6742
|
-
this.
|
|
6743
|
-
this.
|
|
6744
|
-
this.
|
|
6745
|
-
this.
|
|
6746
|
-
this.
|
|
6789
|
+
this.domSanitizer = domSanitizer;
|
|
6790
|
+
this._textareaInitialHeight = true;
|
|
6791
|
+
this.inputFocus = false;
|
|
6792
|
+
this.inputHover = false;
|
|
6793
|
+
this.droppedFiles$ = new BehaviorSubject([]);
|
|
6794
|
+
this.isShowedHistory = false;
|
|
6795
|
+
this.isChatMode = false;
|
|
6796
|
+
this.isLoading = false;
|
|
6797
|
+
/**
|
|
6798
|
+
* Predefined message text
|
|
6799
|
+
*
|
|
6800
|
+
* @type {string}
|
|
6801
|
+
*/
|
|
6802
|
+
this.message = '';
|
|
6803
|
+
/**
|
|
6804
|
+
* Message placeholder text
|
|
6805
|
+
*
|
|
6806
|
+
* @type {string}
|
|
6807
|
+
*/
|
|
6808
|
+
this.messagePlaceholder = 'Type a message';
|
|
6809
|
+
/**
|
|
6810
|
+
* Show send button
|
|
6811
|
+
*
|
|
6812
|
+
* @type {boolean}
|
|
6813
|
+
*/
|
|
6814
|
+
this.dropFiles = false;
|
|
6815
|
+
/**
|
|
6816
|
+
* File drop placeholder text
|
|
6817
|
+
*
|
|
6818
|
+
* @type {string}
|
|
6819
|
+
*/
|
|
6820
|
+
this.dropFilePlaceholder = 'Drop file to send';
|
|
6821
|
+
/**
|
|
6822
|
+
* Parameter to check is send message function available
|
|
6823
|
+
*
|
|
6824
|
+
* @type {boolean}
|
|
6825
|
+
*/
|
|
6826
|
+
this.waitForReply = false;
|
|
6827
|
+
/**
|
|
6828
|
+
* Parameter to check is send message function available
|
|
6829
|
+
*
|
|
6830
|
+
* @type {boolean}
|
|
6831
|
+
*/
|
|
6832
|
+
this.showDotFlashing = false;
|
|
6833
|
+
/**
|
|
6834
|
+
*
|
|
6835
|
+
* @type {EventEmitter<{ message: string, files: IFile[] }>}
|
|
6836
|
+
*/
|
|
6837
|
+
this.send = new EventEmitter();
|
|
6838
|
+
this.uploadFiles = new EventEmitter();
|
|
6839
|
+
this.abort = new EventEmitter();
|
|
6840
|
+
/**
|
|
6841
|
+
* Emits when message input value has been changed
|
|
6842
|
+
*
|
|
6843
|
+
* @type {EventEmitter<string>}
|
|
6844
|
+
*/
|
|
6845
|
+
this.inputChange = new EventEmitter();
|
|
6846
|
+
this.fileOver = false;
|
|
6747
6847
|
}
|
|
6748
|
-
|
|
6749
|
-
if (this.
|
|
6750
|
-
|
|
6848
|
+
onDrop(event) {
|
|
6849
|
+
if (this.dropFiles) {
|
|
6850
|
+
event.preventDefault();
|
|
6851
|
+
event.stopPropagation();
|
|
6852
|
+
this.fileOver = false;
|
|
6853
|
+
const files = event.dataTransfer?.files;
|
|
6854
|
+
if (files) {
|
|
6855
|
+
this.saveFiles(files);
|
|
6856
|
+
}
|
|
6751
6857
|
}
|
|
6752
6858
|
}
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6859
|
+
removeFile(file) {
|
|
6860
|
+
const droppedFiles = this.droppedFiles$.value;
|
|
6861
|
+
const index = droppedFiles.indexOf(file);
|
|
6862
|
+
if (index >= 0) {
|
|
6863
|
+
droppedFiles.splice(index, 1);
|
|
6864
|
+
this.droppedFiles$.next(droppedFiles);
|
|
6865
|
+
}
|
|
6756
6866
|
}
|
|
6757
|
-
|
|
6758
|
-
|
|
6867
|
+
onDragOver(event) {
|
|
6868
|
+
event.preventDefault();
|
|
6869
|
+
event.stopPropagation();
|
|
6870
|
+
if (this.dropFiles) {
|
|
6871
|
+
this.fileOver = true;
|
|
6872
|
+
}
|
|
6759
6873
|
}
|
|
6760
|
-
|
|
6761
|
-
|
|
6874
|
+
onDragLeave(event) {
|
|
6875
|
+
event.preventDefault();
|
|
6876
|
+
event.stopPropagation();
|
|
6877
|
+
if (this.dropFiles) {
|
|
6878
|
+
this.fileOver = false;
|
|
6879
|
+
}
|
|
6762
6880
|
}
|
|
6763
|
-
|
|
6764
|
-
|
|
6881
|
+
sendMessage($event) {
|
|
6882
|
+
if (!$event || !$event.shiftKey) {
|
|
6883
|
+
$event?.preventDefault();
|
|
6884
|
+
$event?.stopPropagation();
|
|
6885
|
+
if (this.waitForReply) {
|
|
6886
|
+
return;
|
|
6887
|
+
}
|
|
6888
|
+
else if (this.droppedFiles$.value.length || String(this.message).trim().length) {
|
|
6889
|
+
this._textareaInitialHeight = true;
|
|
6890
|
+
this.send.emit({ message: this.message, files: this.droppedFiles$.value });
|
|
6891
|
+
this.message = '';
|
|
6892
|
+
this.droppedFiles$.next([]);
|
|
6893
|
+
this.cdr.markForCheck();
|
|
6894
|
+
}
|
|
6895
|
+
}
|
|
6765
6896
|
}
|
|
6766
|
-
|
|
6767
|
-
this.
|
|
6768
|
-
this.onChange(this.checkedStatus);
|
|
6769
|
-
this.checkedChange.emit(this.checkedStatus);
|
|
6770
|
-
this.onTouched();
|
|
6897
|
+
abortMessage() {
|
|
6898
|
+
this.abort.emit();
|
|
6771
6899
|
}
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6900
|
+
onModelChange(value) {
|
|
6901
|
+
this._textareaInitialHeight = false;
|
|
6902
|
+
this.inputChange.emit(value);
|
|
6903
|
+
}
|
|
6904
|
+
getTextAreaHeight(textAreaElement) {
|
|
6905
|
+
if (this._textareaInitialHeight) {
|
|
6906
|
+
textAreaElement.style.height = '48px';
|
|
6907
|
+
}
|
|
6908
|
+
else {
|
|
6909
|
+
textAreaElement.style.height = 'auto';
|
|
6910
|
+
textAreaElement.style.height = textAreaElement.scrollHeight + 'px';
|
|
6911
|
+
}
|
|
6912
|
+
return `${textAreaElement.style.height}`;
|
|
6913
|
+
}
|
|
6914
|
+
getSendButtonPosition(textAreaElement) {
|
|
6915
|
+
return `top: calc(${this.getTextAreaHeight(textAreaElement)} - var(--send-button-offset));`;
|
|
6916
|
+
}
|
|
6917
|
+
showHistory() {
|
|
6918
|
+
this.isShowedHistory = !this.isShowedHistory;
|
|
6919
|
+
}
|
|
6920
|
+
closeHistory() {
|
|
6921
|
+
this.isShowedHistory = false;
|
|
6922
|
+
this.cdr.markForCheck();
|
|
6923
|
+
}
|
|
6924
|
+
onFileSelected(event) {
|
|
6925
|
+
const input = event.target;
|
|
6926
|
+
this.fileOver = false;
|
|
6927
|
+
if (input.files.length) {
|
|
6928
|
+
this.saveFiles(Array.from(input.files));
|
|
6929
|
+
}
|
|
6930
|
+
this.fileInput.nativeElement.value = '';
|
|
6931
|
+
}
|
|
6932
|
+
async saveFiles(files) {
|
|
6933
|
+
const uploadedFiles = [];
|
|
6934
|
+
for (const file of files) {
|
|
6935
|
+
let res = file;
|
|
6936
|
+
res.data = (await this.base64Convert(res));
|
|
6937
|
+
this.droppedFiles$.next([...this.droppedFiles$.value, res]);
|
|
6938
|
+
uploadedFiles.push(res);
|
|
6939
|
+
this.cdr.markForCheck();
|
|
6940
|
+
this.cdr.detectChanges();
|
|
6941
|
+
}
|
|
6942
|
+
this.uploadFiles.emit(uploadedFiles.map((item) => ({ data: item.data, name: item.name })));
|
|
6943
|
+
}
|
|
6944
|
+
base64Convert(file) {
|
|
6945
|
+
return new Promise((resolve, reject) => {
|
|
6946
|
+
const reader = new FileReader();
|
|
6947
|
+
reader.onload = () => resolve(reader.result);
|
|
6948
|
+
reader.onerror = (error) => reject(error);
|
|
6949
|
+
reader.readAsDataURL(file);
|
|
6950
|
+
});
|
|
6951
|
+
}
|
|
6952
|
+
/** @nocollapse */ static { this.ɵfac = function DrChatFormWithHistoryComponent_Factory(t) { return new (t || DrChatFormWithHistoryComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$5.DomSanitizer)); }; }
|
|
6953
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormWithHistoryComponent, selectors: [["dr-chat-form-with-history"]], viewQuery: function DrChatFormWithHistoryComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6954
|
+
i0.ɵɵviewQuery(_c0$n, 5);
|
|
6955
|
+
i0.ɵɵviewQuery(_c1$9, 5);
|
|
6956
|
+
} if (rf & 2) {
|
|
6957
|
+
let _t;
|
|
6958
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.textAreaElementRef = _t.first);
|
|
6959
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
6960
|
+
} }, hostVars: 2, hostBindings: function DrChatFormWithHistoryComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
6961
|
+
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); });
|
|
6962
|
+
} if (rf & 2) {
|
|
6963
|
+
i0.ɵɵclassProp("file-over", ctx.fileOver);
|
|
6964
|
+
} }, 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) {
|
|
6965
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
6776
6966
|
i0.ɵɵprojectionDef();
|
|
6777
|
-
i0.ɵɵ
|
|
6778
|
-
i0.ɵɵ
|
|
6779
|
-
i0.ɵɵ
|
|
6967
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6968
|
+
i0.ɵɵtemplate(2, DrChatFormWithHistoryComponent_dr_chat_dropped_files_2_Template, 2, 5, "dr-chat-dropped-files", 2);
|
|
6969
|
+
i0.ɵɵpipe(3, "async");
|
|
6970
|
+
i0.ɵɵelementStart(4, "div", 3)(5, "textarea", 4, 5);
|
|
6971
|
+
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); });
|
|
6972
|
+
i0.ɵɵtext(7, " ");
|
|
6780
6973
|
i0.ɵɵelementEnd();
|
|
6781
|
-
i0.ɵɵelementStart(
|
|
6782
|
-
i0.ɵɵ
|
|
6974
|
+
i0.ɵɵelementStart(8, "div", 6);
|
|
6975
|
+
i0.ɵɵtext(9);
|
|
6783
6976
|
i0.ɵɵelementEnd();
|
|
6784
|
-
i0.ɵɵ
|
|
6977
|
+
i0.ɵɵelementStart(10, "input", 7, 8);
|
|
6978
|
+
i0.ɵɵlistener("change", function DrChatFormWithHistoryComponent_Template_input_change_10_listener($event) { return ctx.onFileSelected($event); });
|
|
6785
6979
|
i0.ɵɵelementEnd();
|
|
6786
|
-
i0.ɵɵ
|
|
6980
|
+
i0.ɵɵelementStart(12, "i", 9);
|
|
6981
|
+
i0.ɵɵlistener("click", function DrChatFormWithHistoryComponent_Template_i_click_12_listener() { return ctx.showHistory(); });
|
|
6982
|
+
i0.ɵɵelementEnd();
|
|
6983
|
+
i0.ɵɵelementStart(13, "i", 10);
|
|
6984
|
+
i0.ɵɵlistener("click", function DrChatFormWithHistoryComponent_Template_i_click_13_listener() { i0.ɵɵrestoreView(_r15); const _r2 = i0.ɵɵreference(11); return i0.ɵɵresetView(_r2.click()); });
|
|
6985
|
+
i0.ɵɵelementEnd();
|
|
6986
|
+
i0.ɵɵtemplate(14, DrChatFormWithHistoryComponent_i_14_Template, 1, 2, "i", 11);
|
|
6987
|
+
i0.ɵɵtemplate(15, DrChatFormWithHistoryComponent_i_15_Template, 1, 2, "i", 12);
|
|
6988
|
+
i0.ɵɵtemplate(16, DrChatFormWithHistoryComponent_dr_dot_flashing_16_Template, 1, 0, "dr-dot-flashing", 13);
|
|
6989
|
+
i0.ɵɵelementEnd();
|
|
6990
|
+
i0.ɵɵtemplate(17, DrChatFormWithHistoryComponent_ng_container_17_Template, 3, 2, "ng-container", 14);
|
|
6991
|
+
i0.ɵɵelementEnd()();
|
|
6787
6992
|
} if (rf & 2) {
|
|
6788
|
-
i0.ɵɵ
|
|
6993
|
+
const _r1 = i0.ɵɵreference(6);
|
|
6994
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$2, ctx.isLoading));
|
|
6789
6995
|
i0.ɵɵadvance(1);
|
|
6790
|
-
i0.ɵɵ
|
|
6996
|
+
i0.ɵɵproperty("@containerHeightAnimation", i0.ɵɵpureFunction2(20, _c4$1, ctx.showHistory ? "expanded" : "collapsed", i0.ɵɵpureFunction1(18, _c3$2, ctx.getTextAreaHeight(_r1))))("ngClass", i0.ɵɵpureFunction3(23, _c5, ctx.inputFocus, !!(ctx.message == null ? null : ctx.message.length), ctx.isShowedHistory));
|
|
6791
6997
|
i0.ɵɵadvance(1);
|
|
6792
|
-
i0.ɵɵproperty("
|
|
6793
|
-
i0.ɵɵ
|
|
6998
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 14, ctx.droppedFiles$).length);
|
|
6999
|
+
i0.ɵɵadvance(3);
|
|
7000
|
+
i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
|
|
7001
|
+
i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
|
|
7002
|
+
i0.ɵɵproperty("ngModel", ctx.message)("rows", 1);
|
|
6794
7003
|
i0.ɵɵadvance(4);
|
|
6795
|
-
i0.ɵɵ
|
|
6796
|
-
|
|
7004
|
+
i0.ɵɵtextInterpolate(_r1.value);
|
|
7005
|
+
i0.ɵɵadvance(5);
|
|
7006
|
+
i0.ɵɵproperty("ngIf", !ctx.waitForReply);
|
|
7007
|
+
i0.ɵɵadvance(1);
|
|
7008
|
+
i0.ɵɵproperty("ngIf", ctx.waitForReply && !ctx.showDotFlashing);
|
|
7009
|
+
i0.ɵɵadvance(1);
|
|
7010
|
+
i0.ɵɵproperty("ngIf", ctx.waitForReply && ctx.showDotFlashing);
|
|
7011
|
+
i0.ɵɵadvance(1);
|
|
7012
|
+
i0.ɵɵproperty("ngIf", !ctx.isChatMode);
|
|
7013
|
+
} }, 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: [
|
|
7014
|
+
trigger('containerHeightAnimation', [
|
|
7015
|
+
state('collapsed', style({ height: '{{height}}' }), { params: { height: '48px' } }),
|
|
7016
|
+
state('expanded', style({
|
|
7017
|
+
height: '*',
|
|
7018
|
+
})),
|
|
7019
|
+
transition('collapsed => expanded', [animate('300ms ease-in-out')]),
|
|
7020
|
+
transition('expanded => collapsed', [query('@dropdownAnimation', animateChild()), animate('300ms ease-in-out')]),
|
|
7021
|
+
]),
|
|
7022
|
+
trigger('dropdownAnimation', [
|
|
7023
|
+
state('hidden', style({
|
|
7024
|
+
opacity: 0,
|
|
7025
|
+
transform: 'translateY(-30px)',
|
|
7026
|
+
display: 'none',
|
|
7027
|
+
})),
|
|
7028
|
+
state('visible', style({
|
|
7029
|
+
opacity: 1,
|
|
7030
|
+
transform: 'translateY(0)',
|
|
7031
|
+
display: 'block',
|
|
7032
|
+
})),
|
|
7033
|
+
transition('hidden => visible', [style({ display: 'block' }), animate('300ms ease-in-out')]),
|
|
7034
|
+
transition('visible => hidden', [
|
|
7035
|
+
animate('300ms ease-in-out', style({ opacity: 0, transform: 'translateY(-30px)' })),
|
|
7036
|
+
style({ display: 'none' }),
|
|
7037
|
+
]),
|
|
7038
|
+
]),
|
|
7039
|
+
] }, changeDetection: 0 }); }
|
|
6797
7040
|
}
|
|
6798
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
7041
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatFormWithHistoryComponent, [{
|
|
6799
7042
|
type: Component,
|
|
6800
|
-
args: [{ selector: 'dr-
|
|
6801
|
-
|
|
7043
|
+
args: [{ selector: 'dr-chat-form-with-history', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
7044
|
+
trigger('containerHeightAnimation', [
|
|
7045
|
+
state('collapsed', style({ height: '{{height}}' }), { params: { height: '48px' } }),
|
|
7046
|
+
state('expanded', style({
|
|
7047
|
+
height: '*',
|
|
7048
|
+
})),
|
|
7049
|
+
transition('collapsed => expanded', [animate('300ms ease-in-out')]),
|
|
7050
|
+
transition('expanded => collapsed', [query('@dropdownAnimation', animateChild()), animate('300ms ease-in-out')]),
|
|
7051
|
+
]),
|
|
7052
|
+
trigger('dropdownAnimation', [
|
|
7053
|
+
state('hidden', style({
|
|
7054
|
+
opacity: 0,
|
|
7055
|
+
transform: 'translateY(-30px)',
|
|
7056
|
+
display: 'none',
|
|
7057
|
+
})),
|
|
7058
|
+
state('visible', style({
|
|
7059
|
+
opacity: 1,
|
|
7060
|
+
transform: 'translateY(0)',
|
|
7061
|
+
display: 'block',
|
|
7062
|
+
})),
|
|
7063
|
+
transition('hidden => visible', [style({ display: 'block' }), animate('300ms ease-in-out')]),
|
|
7064
|
+
transition('visible => hidden', [
|
|
7065
|
+
animate('300ms ease-in-out', style({ opacity: 0, transform: 'translateY(-30px)' })),
|
|
7066
|
+
style({ display: 'none' }),
|
|
7067
|
+
]),
|
|
7068
|
+
]),
|
|
7069
|
+
], 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"] }]
|
|
7070
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$5.DomSanitizer }]; }, { textAreaElementRef: [{
|
|
7071
|
+
type: ViewChild,
|
|
7072
|
+
args: ['textAreaElement']
|
|
7073
|
+
}], fileInput: [{
|
|
7074
|
+
type: ViewChild,
|
|
7075
|
+
args: ['fileInput']
|
|
7076
|
+
}], isChatMode: [{
|
|
6802
7077
|
type: Input
|
|
6803
|
-
}],
|
|
7078
|
+
}], isLoading: [{
|
|
6804
7079
|
type: Input
|
|
6805
|
-
}],
|
|
7080
|
+
}], message: [{
|
|
6806
7081
|
type: Input
|
|
6807
|
-
}],
|
|
7082
|
+
}], messagePlaceholder: [{
|
|
6808
7083
|
type: Input
|
|
6809
|
-
}],
|
|
7084
|
+
}], dropFiles: [{
|
|
6810
7085
|
type: Input
|
|
6811
|
-
}],
|
|
6812
|
-
type:
|
|
6813
|
-
}],
|
|
6814
|
-
type:
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
7086
|
+
}], dropFilePlaceholder: [{
|
|
7087
|
+
type: Input
|
|
7088
|
+
}], waitForReply: [{
|
|
7089
|
+
type: Input
|
|
7090
|
+
}], showDotFlashing: [{
|
|
7091
|
+
type: Input
|
|
7092
|
+
}], send: [{
|
|
7093
|
+
type: Output
|
|
7094
|
+
}], uploadFiles: [{
|
|
7095
|
+
type: Output
|
|
7096
|
+
}], abort: [{
|
|
7097
|
+
type: Output
|
|
7098
|
+
}], inputChange: [{
|
|
7099
|
+
type: Output
|
|
7100
|
+
}], fileOver: [{
|
|
7101
|
+
type: HostBinding,
|
|
7102
|
+
args: ['class.file-over']
|
|
7103
|
+
}], onDrop: [{
|
|
7104
|
+
type: HostListener,
|
|
7105
|
+
args: ['drop', ['$event']]
|
|
7106
|
+
}], onDragOver: [{
|
|
7107
|
+
type: HostListener,
|
|
7108
|
+
args: ['dragover', ['$event']]
|
|
7109
|
+
}], onDragLeave: [{
|
|
7110
|
+
type: HostListener,
|
|
7111
|
+
args: ['dragleave', ['$event']]
|
|
7112
|
+
}] }); })();
|
|
7113
|
+
|
|
7114
|
+
const throwCustomMessageTypeIsRequired = () => {
|
|
7115
|
+
throw new Error('[drCustomMessage]: custom message type is required.');
|
|
7116
|
+
};
|
|
7117
|
+
class DrChatCustomMessageDirective {
|
|
7118
|
+
/**
|
|
7119
|
+
* Defines a message type which should rendered with the custom message template.
|
|
7120
|
+
*
|
|
7121
|
+
* @type {string}
|
|
7122
|
+
*/
|
|
7123
|
+
get drCustomMessage() {
|
|
7124
|
+
return this._type;
|
|
7125
|
+
}
|
|
7126
|
+
set drCustomMessage(value) {
|
|
7127
|
+
this._type = value;
|
|
7128
|
+
}
|
|
7129
|
+
get type() {
|
|
7130
|
+
return this._type;
|
|
7131
|
+
}
|
|
7132
|
+
constructor(templateRef, customMessageService) {
|
|
7133
|
+
this.templateRef = templateRef;
|
|
7134
|
+
this.customMessageService = customMessageService;
|
|
7135
|
+
}
|
|
7136
|
+
ngOnInit() {
|
|
7137
|
+
if (!this._type) {
|
|
7138
|
+
throwCustomMessageTypeIsRequired();
|
|
7139
|
+
}
|
|
7140
|
+
this.customMessageService.register(this.type, this);
|
|
7141
|
+
}
|
|
7142
|
+
ngOnDestroy() {
|
|
7143
|
+
this.customMessageService.unregister(this.type);
|
|
7144
|
+
}
|
|
7145
|
+
/** @nocollapse */ static { this.ɵfac = function DrChatCustomMessageDirective_Factory(t) { return new (t || DrChatCustomMessageDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(DrChatCustomMessageService)); }; }
|
|
7146
|
+
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrChatCustomMessageDirective, selectors: [["", "drCustomMessage", ""]], inputs: { drCustomMessage: "drCustomMessage" } }); }
|
|
7147
|
+
}
|
|
7148
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatCustomMessageDirective, [{
|
|
7149
|
+
type: Directive,
|
|
7150
|
+
args: [{
|
|
7151
|
+
selector: `[drCustomMessage]`,
|
|
7152
|
+
}]
|
|
7153
|
+
}], function () { return [{ type: i0.TemplateRef }, { type: DrChatCustomMessageService }]; }, { drCustomMessage: [{
|
|
7154
|
+
type: Input
|
|
7155
|
+
}] }); })();
|
|
7156
|
+
|
|
7157
|
+
const _c0$m = ["*"];
|
|
7158
|
+
class DrChatAlertComponent {
|
|
7159
|
+
constructor() {
|
|
7160
|
+
this.iconClass = 'dr-icon-info';
|
|
7161
|
+
this.close = new EventEmitter();
|
|
7162
|
+
}
|
|
7163
|
+
/** @nocollapse */ static { this.ɵfac = function DrChatAlertComponent_Factory(t) { return new (t || DrChatAlertComponent)(); }; }
|
|
7164
|
+
/** @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) {
|
|
7165
|
+
i0.ɵɵprojectionDef();
|
|
7166
|
+
i0.ɵɵelement(0, "i");
|
|
7167
|
+
i0.ɵɵprojection(1);
|
|
7168
|
+
i0.ɵɵelementStart(2, "dr-button", 0);
|
|
7169
|
+
i0.ɵɵlistener("click", function DrChatAlertComponent_Template_dr_button_click_2_listener() { return ctx.close.emit(); });
|
|
7170
|
+
i0.ɵɵelementEnd();
|
|
7171
|
+
} if (rf & 2) {
|
|
7172
|
+
i0.ɵɵclassMap(ctx.iconClass);
|
|
7173
|
+
} }, dependencies: [DrButtonComponent, DrTooltipDirective], styles: ["[_nghost-%COMP%]{display:flex;padding:8px 24px;align-items:center;min-height:40px;color:#6d6e6f;background-color:#f6f7f8;border-top:1px solid #dfe0e3;font-size:12px;line-height:20px;white-space:pre-line}[_nghost-%COMP%] i[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%] .chat-alert-close-btn[_ngcontent-%COMP%]{display:none;position:absolute;right:16px;color:#aeabac}[_nghost-%COMP%]:hover .chat-alert-close-btn[_ngcontent-%COMP%]{display:block}"], changeDetection: 0 }); }
|
|
7174
|
+
}
|
|
7175
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrChatAlertComponent, [{
|
|
7176
|
+
type: Component,
|
|
7177
|
+
args: [{ selector: 'dr-chat-alert', changeDetection: ChangeDetectionStrategy.OnPush, template: "<i [class]=\"iconClass\"></i>\n<ng-content></ng-content>\n<dr-button (click)=\"close.emit()\" theme=\"icon\" icon=\"dr-icon-exit\" class=\"chat-alert-close-btn\" drTooltip=\"Close\"> </dr-button>\n", styles: [":host{display:flex;padding:8px 24px;align-items:center;min-height:40px;color:#6d6e6f;background-color:#f6f7f8;border-top:1px solid #dfe0e3;font-size:12px;line-height:20px;white-space:pre-line}:host i{margin-right:8px}:host .chat-alert-close-btn{display:none;position:absolute;right:16px;color:#aeabac}:host:hover .chat-alert-close-btn{display:block}\n"] }]
|
|
7178
|
+
}], null, { iconClass: [{
|
|
7179
|
+
type: Input
|
|
7180
|
+
}], close: [{
|
|
7181
|
+
type: Output
|
|
7182
|
+
}] }); })();
|
|
7183
|
+
|
|
7184
|
+
function DrToggleComponent_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
7185
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
7186
|
+
i0.ɵɵtext(1);
|
|
7187
|
+
i0.ɵɵelementEnd();
|
|
7188
|
+
} if (rf & 2) {
|
|
7189
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
7190
|
+
i0.ɵɵadvance(1);
|
|
7191
|
+
i0.ɵɵtextInterpolate(ctx_r0.toggleTitle);
|
|
7192
|
+
} }
|
|
7193
|
+
function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
7194
|
+
i0.ɵɵelementStart(0, "span", 6);
|
|
7195
|
+
i0.ɵɵtext(1);
|
|
7196
|
+
i0.ɵɵelementEnd();
|
|
7197
|
+
} if (rf & 2) {
|
|
7198
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
7199
|
+
i0.ɵɵadvance(1);
|
|
7200
|
+
i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
|
|
7201
|
+
} }
|
|
7202
|
+
const _c0$l = ["*"];
|
|
7203
|
+
class DrToggleComponent {
|
|
7204
|
+
set disabled(value) {
|
|
7205
|
+
this.setDisabledState(value);
|
|
7206
|
+
}
|
|
7207
|
+
get elementClass() {
|
|
7208
|
+
return this._elementClass.join(' ');
|
|
7209
|
+
}
|
|
7210
|
+
constructor(cdr) {
|
|
7211
|
+
this.cdr = cdr;
|
|
7212
|
+
this._disabled = false;
|
|
7213
|
+
this._elementClass = [];
|
|
7214
|
+
this.checkedChange = new EventEmitter();
|
|
7215
|
+
this.onChange = () => { };
|
|
7216
|
+
this.onTouched = () => { };
|
|
7217
|
+
}
|
|
7218
|
+
ngAfterViewInit() {
|
|
7219
|
+
if (this.toggleTitleRight) {
|
|
7220
|
+
this._elementClass.push('toggle-label-alignment');
|
|
7221
|
+
}
|
|
7222
|
+
}
|
|
7223
|
+
writeValue(value) {
|
|
7224
|
+
this.checkedStatus = value;
|
|
7225
|
+
this.cdr.markForCheck();
|
|
7226
|
+
}
|
|
7227
|
+
registerOnChange(fn) {
|
|
7228
|
+
this.onChange = fn;
|
|
7229
|
+
}
|
|
7230
|
+
registerOnTouched(fn) {
|
|
7231
|
+
this.onTouched = fn;
|
|
7232
|
+
}
|
|
7233
|
+
setDisabledState(isDisabled) {
|
|
7234
|
+
this._disabled = isDisabled;
|
|
7235
|
+
}
|
|
7236
|
+
setValue() {
|
|
7237
|
+
this.checkedStatus = !this.checkedStatus;
|
|
7238
|
+
this.onChange(this.checkedStatus);
|
|
7239
|
+
this.checkedChange.emit(this.checkedStatus);
|
|
7240
|
+
this.onTouched();
|
|
7241
|
+
}
|
|
7242
|
+
/** @nocollapse */ static { this.ɵfac = function DrToggleComponent_Factory(t) { return new (t || DrToggleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
7243
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 2, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
7244
|
+
i0.ɵɵclassMap(ctx.elementClass);
|
|
7245
|
+
} }, 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) {
|
|
7246
|
+
i0.ɵɵprojectionDef();
|
|
7247
|
+
i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
|
|
7248
|
+
i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
|
|
7249
|
+
i0.ɵɵlistener("click", function DrToggleComponent_Template_input_click_2_listener() { return ctx.setValue(); });
|
|
7250
|
+
i0.ɵɵelementEnd();
|
|
7251
|
+
i0.ɵɵelementStart(3, "span", 3);
|
|
7252
|
+
i0.ɵɵelement(4, "i");
|
|
7253
|
+
i0.ɵɵelementEnd();
|
|
7254
|
+
i0.ɵɵprojection(5);
|
|
7255
|
+
i0.ɵɵelementEnd();
|
|
7256
|
+
i0.ɵɵtemplate(6, DrToggleComponent_span_6_Template, 2, 1, "span", 4);
|
|
7257
|
+
} if (rf & 2) {
|
|
7258
|
+
i0.ɵɵproperty("ngIf", ctx.toggleTitle && !ctx.toggleTitleRight);
|
|
7259
|
+
i0.ɵɵadvance(1);
|
|
7260
|
+
i0.ɵɵclassProp("success", ctx.successType)("disabled", ctx._disabled);
|
|
7261
|
+
i0.ɵɵadvance(1);
|
|
7262
|
+
i0.ɵɵproperty("checked", ctx.checkedStatus)("disabled", ctx._disabled);
|
|
7263
|
+
i0.ɵɵattribute("data-test", ctx.checkedStatus ? "toggle-on" : "toggle-off");
|
|
7264
|
+
i0.ɵɵadvance(4);
|
|
7265
|
+
i0.ɵɵproperty("ngIf", ctx.toggleTitle && ctx.toggleTitleRight);
|
|
7266
|
+
} }, dependencies: [i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:Poppins,sans-serif}.toggle-label-alignment[_nghost-%COMP%]{justify-content:start}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]{background-color:#8f9bb329!important}[_nghost-%COMP%] .toggle-container.disabled[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:#8f9bb33d!important}[_nghost-%COMP%] .toggle-container.success[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]{background-color:#03a678}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%] > i[_ngcontent-%COMP%], [_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]:active > i[_ngcontent-%COMP%]{margin-left:16px}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + span.toggle-body[_ngcontent-%COMP%]{background-color:#4646ce}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%]:active{background-color:#a6b9cb}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .toggle-container[_ngcontent-%COMP%] .toggle-body[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}[_nghost-%COMP%] .toggle-title[_ngcontent-%COMP%]{line-height:22px}"], changeDetection: 0 }); }
|
|
7267
|
+
}
|
|
7268
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToggleComponent, [{
|
|
7269
|
+
type: Component,
|
|
7270
|
+
args: [{ selector: 'dr-toggle', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<span class=\"toggle-title mr-3\" *ngIf=\"toggleTitle && !toggleTitleRight\">{{ toggleTitle }}</span>\n<label class=\"toggle-container\" [class.success]=\"successType\" [class.disabled]=\"_disabled\">\n <input\n type=\"checkbox\"\n [attr.data-test]=\"checkedStatus ? 'toggle-on' : 'toggle-off'\"\n [checked]=\"checkedStatus\"\n [disabled]=\"_disabled\"\n (click)=\"setValue()\" />\n <span class=\"toggle-body\">\n <i></i>\n </span>\n <ng-content></ng-content>\n</label>\n<span class=\"toggle-title ml-3\" *ngIf=\"toggleTitle && toggleTitleRight\">{{ toggleTitle }}</span>\n", styles: [":host{display:flex;justify-content:space-between;align-items:center;font-family:Poppins,sans-serif}:host.toggle-label-alignment{justify-content:start}:host .toggle-container{display:flex;align-items:center}:host .toggle-container.disabled{pointer-events:none}:host .toggle-container.disabled .toggle-body{background-color:#8f9bb329!important}:host .toggle-container.disabled .toggle-body i{background:#8f9bb33d!important}:host .toggle-container.success input:checked+span.toggle-body{background-color:#03a678}:host .toggle-container input{display:none}:host .toggle-container input:checked+span.toggle-body>i,:host .toggle-container input:checked+span.toggle-body:active>i{margin-left:16px}:host .toggle-container input:checked+span.toggle-body{background-color:#4646ce}:host .toggle-container .toggle-body{cursor:pointer;display:block;width:30px;height:16px;margin:7px auto;border-radius:15px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;background-color:#8f929e;line-height:1}:host .toggle-container .toggle-body:active{background-color:#a6b9cb}:host .toggle-container .toggle-body-wrapper{display:flex;flex-direction:column}:host .toggle-container .toggle-body i{height:12px;width:12px;background:#fff;display:inline-block;border-radius:100px;margin-top:2px;margin-left:1.5px;transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;pointer-events:none}:host .toggle-title{line-height:22px}\n"] }]
|
|
7271
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { toggleTitle: [{
|
|
7272
|
+
type: Input
|
|
7273
|
+
}], toggleTitleRight: [{
|
|
7274
|
+
type: Input
|
|
7275
|
+
}], successType: [{
|
|
7276
|
+
type: Input
|
|
7277
|
+
}], checkedStatus: [{
|
|
7278
|
+
type: Input
|
|
7279
|
+
}], disabled: [{
|
|
7280
|
+
type: Input
|
|
7281
|
+
}], checkedChange: [{
|
|
7282
|
+
type: Output
|
|
7283
|
+
}], elementClass: [{
|
|
7284
|
+
type: HostBinding,
|
|
7285
|
+
args: ['class']
|
|
7286
|
+
}] }); })();
|
|
7287
|
+
|
|
6818
7288
|
var BadgeStatus;
|
|
6819
7289
|
(function (BadgeStatus) {
|
|
6820
7290
|
BadgeStatus["INFO"] = "info";
|
|
@@ -6892,7 +7362,7 @@ function DrAlertComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
6892
7362
|
i0.ɵɵadvance(1);
|
|
6893
7363
|
i0.ɵɵtextInterpolate(ctx_r0.text);
|
|
6894
7364
|
} }
|
|
6895
|
-
const _c0$
|
|
7365
|
+
const _c0$k = ["*"];
|
|
6896
7366
|
const ALERT_THEME_ICONS = {
|
|
6897
7367
|
[DrAlertTheme.SUCCESS]: 'dr-icon-uploaded-success',
|
|
6898
7368
|
[DrAlertTheme.BOLD_ERROR]: 'dr-icon-error',
|
|
@@ -6913,7 +7383,7 @@ class DrAlertComponent {
|
|
|
6913
7383
|
/** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
|
|
6914
7384
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
6915
7385
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
6916
|
-
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$
|
|
7386
|
+
} }, 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
7387
|
i0.ɵɵprojectionDef();
|
|
6918
7388
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6919
7389
|
i0.ɵɵelement(1, "i");
|
|
@@ -6959,7 +7429,7 @@ class CodeEditorHintWrapperComponent {
|
|
|
6959
7429
|
}]
|
|
6960
7430
|
}], null, null); })();
|
|
6961
7431
|
|
|
6962
|
-
const _c0$
|
|
7432
|
+
const _c0$j = ["ref"];
|
|
6963
7433
|
class DrCodemirrorComponent {
|
|
6964
7434
|
set options(value) {
|
|
6965
7435
|
this._options = value;
|
|
@@ -7089,7 +7559,7 @@ class DrCodemirrorComponent {
|
|
|
7089
7559
|
}
|
|
7090
7560
|
/** @nocollapse */ static { this.ɵfac = function DrCodemirrorComponent_Factory(t) { return new (t || DrCodemirrorComponent)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.NgZone)); }; }
|
|
7091
7561
|
/** @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$
|
|
7562
|
+
i0.ɵɵviewQuery(_c0$j, 5);
|
|
7093
7563
|
} if (rf & 2) {
|
|
7094
7564
|
let _t;
|
|
7095
7565
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ref = _t.first);
|
|
@@ -7241,7 +7711,7 @@ class DrErrorComponent {
|
|
|
7241
7711
|
args: ['class.no-icon']
|
|
7242
7712
|
}] }); })();
|
|
7243
7713
|
|
|
7244
|
-
const _c0$
|
|
7714
|
+
const _c0$i = ["codeEditor"];
|
|
7245
7715
|
function DrCodeEditorComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
7246
7716
|
i0.ɵɵelementStart(0, "span", 4);
|
|
7247
7717
|
i0.ɵɵtext(1);
|
|
@@ -7520,7 +7990,7 @@ class DrCodeEditorComponent {
|
|
|
7520
7990
|
}
|
|
7521
7991
|
/** @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
7992
|
/** @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$
|
|
7993
|
+
i0.ɵɵviewQuery(_c0$i, 5);
|
|
7524
7994
|
} if (rf & 2) {
|
|
7525
7995
|
let _t;
|
|
7526
7996
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.codeEditor = _t.first);
|
|
@@ -8288,7 +8758,7 @@ const getAlignmentDimension = (position) => {
|
|
|
8288
8758
|
return DrPopoverAlignmentDimension.Width;
|
|
8289
8759
|
};
|
|
8290
8760
|
|
|
8291
|
-
const _c0$
|
|
8761
|
+
const _c0$h = ["popoverContainer"];
|
|
8292
8762
|
function DrPopoverComponent_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8293
8763
|
i0.ɵɵelementContainer(0);
|
|
8294
8764
|
} }
|
|
@@ -8378,7 +8848,7 @@ class DrPopoverComponent {
|
|
|
8378
8848
|
}
|
|
8379
8849
|
/** @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
8850
|
/** @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$
|
|
8851
|
+
i0.ɵɵviewQuery(_c0$h, 7, ElementRef);
|
|
8382
8852
|
} if (rf & 2) {
|
|
8383
8853
|
let _t;
|
|
8384
8854
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverContainer = _t.first);
|
|
@@ -8695,7 +9165,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8695
9165
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8696
9166
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8697
9167
|
};
|
|
8698
|
-
const _c0$
|
|
9168
|
+
const _c0$g = ["menuContainer"];
|
|
8699
9169
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
8700
9170
|
i0.ɵɵelement(0, "i", 11);
|
|
8701
9171
|
} if (rf & 2) {
|
|
@@ -8745,14 +9215,14 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_2_Template(rf, ctx)
|
|
|
8745
9215
|
i0.ɵɵadvance(1);
|
|
8746
9216
|
i0.ɵɵproperty("ngIf", ctx_r5.hasChildren(act_r2));
|
|
8747
9217
|
} }
|
|
8748
|
-
const _c1$
|
|
9218
|
+
const _c1$8 = function (a0) { return { $implicit: a0 }; };
|
|
8749
9219
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
8750
9220
|
i0.ɵɵelementContainer(0, 17);
|
|
8751
9221
|
} if (rf & 2) {
|
|
8752
9222
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
8753
|
-
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$
|
|
9223
|
+
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$8, act_r2));
|
|
8754
9224
|
} }
|
|
8755
|
-
const _c2$
|
|
9225
|
+
const _c2$1 = function () { return { withoutArrow: true }; };
|
|
8756
9226
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
8757
9227
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
8758
9228
|
i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
|
|
@@ -8765,7 +9235,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
8765
9235
|
const act_r2 = ctx.$implicit;
|
|
8766
9236
|
const index_r3 = ctx.index;
|
|
8767
9237
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
8768
|
-
i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$
|
|
9238
|
+
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
9239
|
i0.ɵɵattribute("data-analytics", ctx_r1.getDataAnalyticsTag(act_r2, index_r3));
|
|
8770
9240
|
i0.ɵɵadvance(1);
|
|
8771
9241
|
i0.ɵɵproperty("ngIf", !act_r2.templateRef);
|
|
@@ -8774,8 +9244,8 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
8774
9244
|
i0.ɵɵadvance(1);
|
|
8775
9245
|
i0.ɵɵproperty("ngIf", act_r2.templateRef);
|
|
8776
9246
|
} }
|
|
8777
|
-
const _c3$
|
|
8778
|
-
const _c4
|
|
9247
|
+
const _c3$1 = [[["dr-dropdown-item"]]];
|
|
9248
|
+
const _c4 = ["dr-dropdown-item"];
|
|
8779
9249
|
class DrDropdownComponent {
|
|
8780
9250
|
set options(data) {
|
|
8781
9251
|
if (data) {
|
|
@@ -8891,12 +9361,12 @@ class DrDropdownComponent {
|
|
|
8891
9361
|
}
|
|
8892
9362
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownComponent_Factory(t) { return new (t || DrDropdownComponent)(); }; }
|
|
8893
9363
|
/** @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$
|
|
9364
|
+
i0.ɵɵviewQuery(_c0$g, 7);
|
|
8895
9365
|
} if (rf & 2) {
|
|
8896
9366
|
let _t;
|
|
8897
9367
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
8898
|
-
} }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4
|
|
8899
|
-
i0.ɵɵprojectionDef(_c3$
|
|
9368
|
+
} }, 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) {
|
|
9369
|
+
i0.ɵɵprojectionDef(_c3$1);
|
|
8900
9370
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
8901
9371
|
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
9372
|
i0.ɵɵprojection(3);
|
|
@@ -9124,12 +9594,12 @@ class DrDropdownChildDirective {
|
|
|
9124
9594
|
}]
|
|
9125
9595
|
}], null, null); })();
|
|
9126
9596
|
|
|
9127
|
-
const _c0$
|
|
9128
|
-
const _c1$
|
|
9597
|
+
const _c0$f = [[["", "dropdownItemContent", ""]], [["", "dropdownItemActions", ""]]];
|
|
9598
|
+
const _c1$7 = ["[dropdownItemContent]", "[dropdownItemActions]"];
|
|
9129
9599
|
class DrDropdownItemComponent {
|
|
9130
9600
|
/** @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$
|
|
9132
|
-
i0.ɵɵprojectionDef(_c0$
|
|
9601
|
+
/** @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) {
|
|
9602
|
+
i0.ɵɵprojectionDef(_c0$f);
|
|
9133
9603
|
i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
|
|
9134
9604
|
i0.ɵɵprojection(2);
|
|
9135
9605
|
i0.ɵɵelementEnd();
|
|
@@ -9168,7 +9638,7 @@ class DrDropdownItemShowPipe {
|
|
|
9168
9638
|
function DrTabComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
9169
9639
|
i0.ɵɵprojection(0);
|
|
9170
9640
|
} }
|
|
9171
|
-
const _c0$
|
|
9641
|
+
const _c0$e = ["*"];
|
|
9172
9642
|
class DrTabComponent {
|
|
9173
9643
|
constructor() { }
|
|
9174
9644
|
ngOnInit() { }
|
|
@@ -9178,7 +9648,7 @@ class DrTabComponent {
|
|
|
9178
9648
|
} if (rf & 2) {
|
|
9179
9649
|
let _t;
|
|
9180
9650
|
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$
|
|
9651
|
+
} }, 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
9652
|
i0.ɵɵprojectionDef();
|
|
9183
9653
|
i0.ɵɵtemplate(0, DrTabComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
9184
9654
|
} }, encapsulation: 2 }); }
|
|
@@ -9453,8 +9923,8 @@ class DrTabsComponent {
|
|
|
9453
9923
|
args: [DrTabComponent]
|
|
9454
9924
|
}] }); })();
|
|
9455
9925
|
|
|
9456
|
-
const _c0$
|
|
9457
|
-
const _c1$
|
|
9926
|
+
const _c0$d = [[["dr-accordion-item"]]];
|
|
9927
|
+
const _c1$6 = ["dr-accordion-item"];
|
|
9458
9928
|
class DrAccordionComponent {
|
|
9459
9929
|
constructor() {
|
|
9460
9930
|
this.openCloseItems = new Subject();
|
|
@@ -9487,8 +9957,8 @@ class DrAccordionComponent {
|
|
|
9487
9957
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionComponent_Factory(t) { return new (t || DrAccordionComponent)(); }; }
|
|
9488
9958
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
9489
9959
|
i0.ɵɵclassMap(ctx.theme);
|
|
9490
|
-
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$
|
|
9491
|
-
i0.ɵɵprojectionDef(_c0$
|
|
9960
|
+
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$6, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9961
|
+
i0.ɵɵprojectionDef(_c0$d);
|
|
9492
9962
|
i0.ɵɵprojection(0);
|
|
9493
9963
|
} }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
|
|
9494
9964
|
}
|
|
@@ -9505,8 +9975,8 @@ class DrAccordionComponent {
|
|
|
9505
9975
|
args: ['class']
|
|
9506
9976
|
}] }); })();
|
|
9507
9977
|
|
|
9508
|
-
const _c0$
|
|
9509
|
-
const _c1$
|
|
9978
|
+
const _c0$c = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
|
|
9979
|
+
const _c1$5 = ["dr-accordion-item-header", "dr-accordion-item-body"];
|
|
9510
9980
|
class DrAccordionItemComponent {
|
|
9511
9981
|
/**
|
|
9512
9982
|
* Item is collapse (`true` by default)
|
|
@@ -9606,8 +10076,8 @@ class DrAccordionItemComponent {
|
|
|
9606
10076
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemComponent_Factory(t) { return new (t || DrAccordionItemComponent)(i0.ɵɵdirectiveInject(DrAccordionComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
9607
10077
|
/** @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
10078
|
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$
|
|
9610
|
-
i0.ɵɵprojectionDef(_c0$
|
|
10079
|
+
} }, 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) {
|
|
10080
|
+
i0.ɵɵprojectionDef(_c0$c);
|
|
9611
10081
|
i0.ɵɵprojection(0);
|
|
9612
10082
|
i0.ɵɵprojection(1, 1);
|
|
9613
10083
|
} }, 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 +10119,8 @@ function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9649
10119
|
i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
|
|
9650
10120
|
i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
|
|
9651
10121
|
} }
|
|
9652
|
-
const _c0$
|
|
9653
|
-
const _c1$
|
|
10122
|
+
const _c0$b = function (a0) { return { rotationDegree: a0 }; };
|
|
10123
|
+
const _c1$4 = function (a0, a1) { return { value: a0, params: a1 }; };
|
|
9654
10124
|
function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
9655
10125
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
9656
10126
|
i0.ɵɵelementStart(0, "i", 2);
|
|
@@ -9659,10 +10129,10 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
9659
10129
|
} if (rf & 2) {
|
|
9660
10130
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
9661
10131
|
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
9662
|
-
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$
|
|
10132
|
+
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$4, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$b, ctx_r1.chevronRotationDegree)));
|
|
9663
10133
|
} }
|
|
9664
|
-
const _c2
|
|
9665
|
-
const _c3
|
|
10134
|
+
const _c2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
|
|
10135
|
+
const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
9666
10136
|
class DrAccordionItemHeaderComponent {
|
|
9667
10137
|
get isCollapsed() {
|
|
9668
10138
|
return this.accordionItem.collapsed;
|
|
@@ -9717,8 +10187,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
9717
10187
|
i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
|
|
9718
10188
|
i0.ɵɵclassMap(ctx.theme);
|
|
9719
10189
|
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
|
|
9721
|
-
i0.ɵɵprojectionDef(_c2
|
|
10190
|
+
} }, 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) {
|
|
10191
|
+
i0.ɵɵprojectionDef(_c2);
|
|
9722
10192
|
i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
|
|
9723
10193
|
i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
|
|
9724
10194
|
i0.ɵɵprojection(2);
|
|
@@ -9788,8 +10258,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
9788
10258
|
args: ['keydown.enter']
|
|
9789
10259
|
}] }); })();
|
|
9790
10260
|
|
|
9791
|
-
const _c0$
|
|
9792
|
-
const _c1$
|
|
10261
|
+
const _c0$a = function (a0) { return { value: a0 }; };
|
|
10262
|
+
const _c1$3 = ["*"];
|
|
9793
10263
|
const accordionItemBodyTrigger = trigger('accordionItemBody', [
|
|
9794
10264
|
state('collapsed', style({
|
|
9795
10265
|
overflow: 'hidden',
|
|
@@ -9820,13 +10290,13 @@ class DrAccordionItemBodyComponent {
|
|
|
9820
10290
|
this.destroy$.complete();
|
|
9821
10291
|
}
|
|
9822
10292
|
/** @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$
|
|
10293
|
+
/** @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
10294
|
i0.ɵɵprojectionDef();
|
|
9825
10295
|
i0.ɵɵelementStart(0, "div")(1, "div", 0);
|
|
9826
10296
|
i0.ɵɵprojection(2);
|
|
9827
10297
|
i0.ɵɵelementEnd()();
|
|
9828
10298
|
} if (rf & 2) {
|
|
9829
|
-
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$
|
|
10299
|
+
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$a, ctx.state));
|
|
9830
10300
|
} }, styles: [".item-body[_ngcontent-%COMP%]{flex:1;-ms-flex:1 1 auto;overflow:auto;position:relative}"], data: { animation: [accordionItemBodyTrigger] }, changeDetection: 0 }); }
|
|
9831
10301
|
}
|
|
9832
10302
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemBodyComponent, [{
|
|
@@ -9842,13 +10312,13 @@ class DrAccordionItemBodyComponent {
|
|
|
9842
10312
|
type: Host
|
|
9843
10313
|
}] }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
9844
10314
|
|
|
9845
|
-
const _c0$
|
|
9846
|
-
const _c1$
|
|
10315
|
+
const _c0$9 = [[["dr-layout-header"]], [["dr-layout-body"]]];
|
|
10316
|
+
const _c1$2 = ["dr-layout-header", "dr-layout-body"];
|
|
9847
10317
|
class DrLayoutComponent {
|
|
9848
10318
|
constructor() { }
|
|
9849
10319
|
/** @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$
|
|
9851
|
-
i0.ɵɵprojectionDef(_c0$
|
|
10320
|
+
/** @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) {
|
|
10321
|
+
i0.ɵɵprojectionDef(_c0$9);
|
|
9852
10322
|
i0.ɵɵelementStart(0, "div", 0);
|
|
9853
10323
|
i0.ɵɵprojection(1);
|
|
9854
10324
|
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3);
|
|
@@ -9861,11 +10331,11 @@ class DrLayoutComponent {
|
|
|
9861
10331
|
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
10332
|
}], function () { return []; }, null); })();
|
|
9863
10333
|
|
|
9864
|
-
const _c0$
|
|
10334
|
+
const _c0$8 = ["*"];
|
|
9865
10335
|
class DrLayoutHeaderComponent {
|
|
9866
10336
|
constructor() { }
|
|
9867
10337
|
/** @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$
|
|
10338
|
+
/** @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
10339
|
i0.ɵɵprojectionDef();
|
|
9870
10340
|
i0.ɵɵelementStart(0, "nav");
|
|
9871
10341
|
i0.ɵɵprojection(1);
|
|
@@ -9884,11 +10354,11 @@ class DrLayoutHeaderComponent {
|
|
|
9884
10354
|
}]
|
|
9885
10355
|
}], function () { return []; }, null); })();
|
|
9886
10356
|
|
|
9887
|
-
const _c0$
|
|
10357
|
+
const _c0$7 = ["*"];
|
|
9888
10358
|
class DrLayoutBodyComponent {
|
|
9889
10359
|
constructor() { }
|
|
9890
10360
|
/** @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$
|
|
10361
|
+
/** @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
10362
|
i0.ɵɵprojectionDef();
|
|
9893
10363
|
i0.ɵɵprojection(0);
|
|
9894
10364
|
} }, encapsulation: 2 }); }
|
|
@@ -9910,7 +10380,7 @@ function DrDetailsListComponent_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
9910
10380
|
i0.ɵɵadvance(1);
|
|
9911
10381
|
i0.ɵɵtextInterpolate(item_r1);
|
|
9912
10382
|
} }
|
|
9913
|
-
const _c0$
|
|
10383
|
+
const _c0$6 = function (a0) { return { value: a0 }; };
|
|
9914
10384
|
class DrDetailsListComponent {
|
|
9915
10385
|
set items(val) {
|
|
9916
10386
|
if (!val) {
|
|
@@ -9957,7 +10427,7 @@ class DrDetailsListComponent {
|
|
|
9957
10427
|
i0.ɵɵadvance(1);
|
|
9958
10428
|
i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
|
|
9959
10429
|
i0.ɵɵadvance(1);
|
|
9960
|
-
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$
|
|
10430
|
+
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$6, ctx.state));
|
|
9961
10431
|
i0.ɵɵadvance(1);
|
|
9962
10432
|
i0.ɵɵproperty("ngForOf", ctx.list);
|
|
9963
10433
|
} }, 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 +10471,7 @@ class DrDetailsListComponent {
|
|
|
10001
10471
|
type: Input
|
|
10002
10472
|
}] }); })();
|
|
10003
10473
|
|
|
10004
|
-
const _c0$
|
|
10474
|
+
const _c0$5 = ["content"];
|
|
10005
10475
|
function DialogWrapperComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
10006
10476
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
10007
10477
|
i0.ɵɵelementStart(0, "i", 10);
|
|
@@ -10103,7 +10573,7 @@ function DialogWrapperComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
10103
10573
|
i0.ɵɵadvance(1);
|
|
10104
10574
|
i0.ɵɵproperty("ngIf", ctx_r5.dialogData.acceptButton);
|
|
10105
10575
|
} }
|
|
10106
|
-
const _c1$
|
|
10576
|
+
const _c1$1 = function (a0) { return { "flex-position": a0 }; };
|
|
10107
10577
|
class DialogWrapperComponent {
|
|
10108
10578
|
get elementClass() {
|
|
10109
10579
|
return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
|
|
@@ -10178,7 +10648,7 @@ class DialogWrapperComponent {
|
|
|
10178
10648
|
}
|
|
10179
10649
|
/** @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
10650
|
/** @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$
|
|
10651
|
+
i0.ɵɵviewQuery(_c0$5, 5, ViewContainerRef);
|
|
10182
10652
|
} if (rf & 2) {
|
|
10183
10653
|
let _t;
|
|
10184
10654
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
|
@@ -10203,7 +10673,7 @@ class DialogWrapperComponent {
|
|
|
10203
10673
|
i0.ɵɵproperty("ngIf", ctx.dialogData.title);
|
|
10204
10674
|
i0.ɵɵadvance(1);
|
|
10205
10675
|
i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
|
|
10206
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$
|
|
10676
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$1, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
|
|
10207
10677
|
i0.ɵɵadvance(1);
|
|
10208
10678
|
i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
|
|
10209
10679
|
i0.ɵɵadvance(1);
|
|
@@ -10374,8 +10844,8 @@ function DialogModalWrapperComponent_form_7_div_2_label_9_Template(rf, ctx) { if
|
|
|
10374
10844
|
i0.ɵɵadvance(1);
|
|
10375
10845
|
i0.ɵɵtextInterpolate1(" ", ctx_r19.dialogData.serverErrorMessage, " ");
|
|
10376
10846
|
} }
|
|
10377
|
-
const _c0$
|
|
10378
|
-
const _c1
|
|
10847
|
+
const _c0$4 = function (a0) { return { display: a0 }; };
|
|
10848
|
+
const _c1 = function (a0, a1) { return { "col-md-10": a0, "col-md-12": a1 }; };
|
|
10379
10849
|
function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
10380
10850
|
i0.ɵɵelementStart(0, "div", 16);
|
|
10381
10851
|
i0.ɵɵtemplate(1, DialogModalWrapperComponent_form_7_div_2_label_1_Template, 2, 2, "label", 17);
|
|
@@ -10392,11 +10862,11 @@ function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
10392
10862
|
const field_r11 = ctx.$implicit;
|
|
10393
10863
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
10394
10864
|
i0.ɵɵclassMap(field_r11.formGroupClass);
|
|
10395
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$
|
|
10865
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$4, field_r11.isLabelFullWidth ? "block" : "flex"));
|
|
10396
10866
|
i0.ɵɵadvance(1);
|
|
10397
10867
|
i0.ɵɵproperty("ngIf", field_r11.label && field_r11.type !== ctx_r10.dialogFieldType.CHECKBOX);
|
|
10398
10868
|
i0.ɵɵadvance(1);
|
|
10399
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1
|
|
10869
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1, field_r11.label && !field_r11.isLabelFullWidth, !field_r11.label || field_r11.isLabelFullWidth));
|
|
10400
10870
|
i0.ɵɵadvance(1);
|
|
10401
10871
|
i0.ɵɵproperty("ngIf", field_r11.type === ctx_r10.dialogFieldType.SELECT);
|
|
10402
10872
|
i0.ɵɵadvance(1);
|
|
@@ -10566,11 +11036,11 @@ class DialogModalWrapperComponent {
|
|
|
10566
11036
|
i0.ɵɵproperty("ngIf", ctx.dialogData.fields);
|
|
10567
11037
|
i0.ɵɵadvance(2);
|
|
10568
11038
|
i0.ɵɵproperty("ngIf", ctx.dialogData.cancelButton || ctx.dialogData.acceptButton);
|
|
10569
|
-
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgStyle, DrButtonComponent, CheckboxComponent, DrInputComponent, DrSelectComponent, DrDatePickerComponent, i1$2.ɵNgNoValidate, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.FormGroupDirective, i1$2.FormControlName, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}.small-modal[_nghost-%COMP%], .small-modal-max-height[_nghost-%COMP%]{min-height:188px;max-height:467px;min-width:400px;max-width:400px}.medium-modal[_nghost-%COMP%], .medium-modal-max-height[_nghost-%COMP%]{min-height:188px;max-height:467px;min-width:632px;max-width:632px}.medium-small-modal[_nghost-%COMP%]{min-height:188px;max-height:345px;min-width:460px;max-width:460px}.medium-modal-max-height[_nghost-%COMP%], .small-modal-max-height[_nghost-%COMP%]{max-height:80vh}.header-dialog[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}.header-dialog[_ngcontent-%COMP%] > .icon-close[_ngcontent-%COMP%]{position:absolute;right:32px;top:16px;cursor:pointer}.title-dialog[_ngcontent-%COMP%]{display:flex;color:#333;position:static;font-weight:600;font-size:16px;line-height:24px;margin-top:0;margin-bottom:0}.title-dialog__icon[_ngcontent-%COMP%]{font-size:32px;margin-right:8px;line-height:24px;color:#6d6e6f}.content-dialog[_ngcontent-%COMP%]{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line}.icon-close[_ngcontent-%COMP%]{color:#6d6e6f;cursor:pointer}.dr-smart-from[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:22px;padding:8px 32px 24px}.dr-smart-from[_ngcontent-%COMP%] dr-checkbox[_ngcontent-%COMP%]{font-weight:400}.content-dialog[_ngcontent-%COMP%]{padding:16px 32px 0;font-weight:400;font-size:14px;line-height:22px}.content-anchor[_ngcontent-%COMP%]{display:none}.footer-dialog[_ngcontent-%COMP%]{border-top:1px solid #dfe0e3}.buttons-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:10px 32px 11px}.buttons-wrapper[_ngcontent-%COMP%] dr-button[_ngcontent-%COMP%]:nth-of-type(n+2){margin-left:12px}.buttons-wrapper--custom-btn[_ngcontent-%COMP%]{margin-right:auto}.form-field-error-alert[_ngcontent-%COMP%]{font-size:12px;color:#bf1d30;line-height:20px}.form-error-alert[_ngcontent-%COMP%]{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}.dr-select-footer__btn[_ngcontent-%COMP%]{background-color:transparent;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}"] }); }
|
|
11039
|
+
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgStyle, DrButtonComponent, CheckboxComponent, DrInputComponent, DrSelectComponent, DrDatePickerComponent, i1$2.ɵNgNoValidate, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.RequiredValidator, i1$2.FormGroupDirective, i1$2.FormControlName, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}.small-modal[_nghost-%COMP%], .small-modal-max-height[_nghost-%COMP%]{min-height:188px;max-height:467px;min-width:400px;max-width:400px}.medium-modal[_nghost-%COMP%], .medium-modal-max-height[_nghost-%COMP%]{min-height:188px;max-height:467px;min-width:632px;max-width:632px}.medium-small-modal[_nghost-%COMP%]{min-height:188px;max-height:345px;min-width:460px;max-width:460px}.medium-modal-max-height[_nghost-%COMP%], .small-modal-max-height[_nghost-%COMP%]{max-height:80vh}.header-dialog[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}.header-dialog[_ngcontent-%COMP%] > .icon-close[_ngcontent-%COMP%]{position:absolute;right:32px;top:16px;cursor:pointer}.title-dialog[_ngcontent-%COMP%]{display:flex;color:#333;position:static;font-weight:600;font-size:16px;line-height:24px;margin-top:0;margin-bottom:0}.title-dialog__icon[_ngcontent-%COMP%]{font-size:32px;margin-right:8px;line-height:24px;color:#6d6e6f}.content-dialog[_ngcontent-%COMP%]{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line;overflow:auto}.icon-close[_ngcontent-%COMP%]{color:#6d6e6f;cursor:pointer}.dr-smart-from[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:22px;padding:8px 32px 24px}.dr-smart-from[_ngcontent-%COMP%] dr-checkbox[_ngcontent-%COMP%]{font-weight:400}.content-dialog[_ngcontent-%COMP%]{padding:16px 32px 0;font-weight:400;font-size:14px;line-height:22px}.content-anchor[_ngcontent-%COMP%]{display:none}.footer-dialog[_ngcontent-%COMP%]{border-top:1px solid #dfe0e3}.buttons-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:10px 32px 11px}.buttons-wrapper[_ngcontent-%COMP%] dr-button[_ngcontent-%COMP%]:nth-of-type(n+2){margin-left:12px}.buttons-wrapper--custom-btn[_ngcontent-%COMP%]{margin-right:auto}.form-field-error-alert[_ngcontent-%COMP%]{font-size:12px;color:#bf1d30;line-height:20px}.form-error-alert[_ngcontent-%COMP%]{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}.dr-select-footer__btn[_ngcontent-%COMP%]{background-color:transparent;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}"] }); }
|
|
10570
11040
|
}
|
|
10571
11041
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogModalWrapperComponent, [{
|
|
10572
11042
|
type: Component,
|
|
10573
|
-
args: [{ selector: 'dr-dialog-modal-wrapper', template: "<div header class=\"header-dialog\">\n <h1 class=\"title-dialog\" data-test=\"modalTitle\">\n <i\n *ngIf=\"dialogData.headerIconClass\"\n (click)=\"closeDialog()\"\n class=\"title-dialog__icon\"\n [class]=\"dialogData.headerIconClass\"\n data-test=\"dialogTitleIcon\"></i>\n <span class=\"title-dialog__text\">{{ dialogData.title }}</span>\n </h1>\n <i *ngIf=\"!dialogData.hideCloseBtn\" (click)=\"closeDialog()\" class=\"dr-icon-exit icon-close\" data-test=\"xBtn\"></i>\n</div>\n<div *ngIf=\"dialogData.content\" class=\"content-dialog\" [innerHTML]=\"dialogData.content\">\n <span #content class=\"content-anchor\"></span>\n</div>\n<form *ngIf=\"dialogData.fields\" [formGroup]=\"form\" class=\"dr-smart-from\">\n <div [class]=\"dialogData.formWrapperClass || 'dr-smart-form_wrapper'\">\n <div\n *ngFor=\"let field of dialogData.fields\"\n class=\"dr-smart-form_group\"\n [class]=\"field.formGroupClass\"\n [ngStyle]=\"{ display: field.isLabelFullWidth ? 'block' : 'flex' }\">\n <label\n *ngIf=\"field.label && field.type !== dialogFieldType.CHECKBOX\"\n [ngClass]=\"field.isLabelFullWidth ? 'col-md-12 mb-2' : 'col-md-2'\"\n class=\"label p-0 d-flex align-items-center\"\n >{{ field.label }}</label\n >\n <div\n class=\"input-group p-0\"\n [ngClass]=\"{\n 'col-md-10': field.label && !field.isLabelFullWidth,\n 'col-md-12': !field.label || field.isLabelFullWidth,\n }\">\n <dr-select\n *ngIf=\"field.type === dialogFieldType.SELECT\"\n [searchable]=\"dialogData.searchable\"\n [clearable]=\"dialogData.clearable\"\n [formControlName]=\"field.name\"\n [bindLabel]=\"field.bindLabel || null\"\n [bindValue]=\"field.bindValue || null\"\n [selectedItem]=\"field.default\"\n [items]=\"field.items || (field.items$ | async)\"\n [loading]=\"fieldsItemsLoading[field.name] | async\"\n [required]=\"true\"\n [placeholder]=\"field.placeholder\">\n <ng-template *ngIf=\"dialogData?.footerTemplateData\" #optionFooterTemplate let-item=\"item\" let-close=\"close\">\n <button (click)=\"footerAction(); close()\" class=\"dr-select-footer__btn\">\n <i *ngIf=\"dialogData.footerTemplateData.icon\" class=\"{{ dialogData.footerTemplateData.icon }}\"></i>\n {{ dialogData.footerTemplateData.label }}\n </button>\n </ng-template>\n </dr-select>\n <dr-input\n *ngIf=\"field.type === dialogFieldType.INPUT\"\n data-test=\"modalInput\"\n class=\"form-control\"\n [formControlName]=\"field.name\"\n [placeholder]=\"field.placeholder\"></dr-input>\n <dr-date-picker\n *ngIf=\"field.type === dialogFieldType.DATE_PICKER\"\n [formControlName]=\"field.name\"\n [format]=\"field.datePickerFormat\"\n [placeholder]=\"field.placeholder\"></dr-date-picker>\n <dr-checkbox *ngIf=\"field.type === dialogFieldType.CHECKBOX\" [formControlName]=\"field.name\">\n {{ field.label }}\n </dr-checkbox>\n <label\n class=\"form-field-error-alert\"\n *ngIf=\"form.invalid && form.controls[field.name]?.dirty && form.controls[field.name]?.errors\">\n {{ form.controls[field.name].errors.errorString }}\n </label>\n <label class=\"form-error-alert\" *ngIf=\"dialogData.errorMessage && !form.pristine && form.invalid\">\n {{ dialogData.errorMessage }}\n </label>\n <label class=\"form-error-alert\" *ngIf=\"form.valid && showServerErrorMessage && dialogData.serverErrorMessage\">\n {{ dialogData.serverErrorMessage }}\n </label>\n </div>\n </div>\n </div>\n</form>\n\n<div footer class=\"footer-dialog\">\n <div class=\"buttons-wrapper\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <dr-button\n (click)=\"onDecline()\"\n *ngIf=\"dialogData.customButton\"\n [theme]=\"dialogData.customButton?.theme || 'secondary'\"\n class=\"buttons-wrapper--custom-btn\"\n data-test=\"declineBtn\"\n >{{ dialogData.customButton.label }}</dr-button\n >\n <dr-button *ngIf=\"dialogData.cancelButton\" data-test=\"modalCloseBtn\" (click)=\"closeDialog()\" [theme]=\"'secondary'\">{{\n dialogData.cancelButton.label\n }}</dr-button>\n <dr-button\n *ngIf=\"dialogData.acceptButton\"\n data-test=\"modalAddBtn\"\n (click)=\"onAccept()\"\n [theme]=\"'primary'\"\n [isLoading]=\"isLoading\"\n [disabled]=\"form.invalid\"\n >{{ dialogData.acceptButton.label }}</dr-button\n >\n </div>\n</div>\n", styles: [":host{display:flex;justify-content:space-between;flex-direction:column}:host.small-modal,:host.small-modal-max-height{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal,:host.medium-modal-max-height{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.medium-small-modal{min-height:188px;max-height:345px;min-width:460px;max-width:460px}:host.medium-modal-max-height,:host.small-modal-max-height{max-height:80vh}.header-dialog{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}.header-dialog>.icon-close{position:absolute;right:32px;top:16px;cursor:pointer}.title-dialog{display:flex;color:#333;position:static;font-weight:600;font-size:16px;line-height:24px;margin-top:0;margin-bottom:0}.title-dialog__icon{font-size:32px;margin-right:8px;line-height:24px;color:#6d6e6f}.content-dialog{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line}.icon-close{color:#6d6e6f;cursor:pointer}.dr-smart-from{font-size:14px;font-weight:400;line-height:22px;padding:8px 32px 24px}.dr-smart-from dr-checkbox{font-weight:400}.content-dialog{padding:16px 32px 0;font-weight:400;font-size:14px;line-height:22px}.content-anchor{display:none}.footer-dialog{border-top:1px solid #dfe0e3}.buttons-wrapper{display:flex;justify-content:flex-end;padding:10px 32px 11px}.buttons-wrapper dr-button:nth-of-type(n+2){margin-left:12px}.buttons-wrapper--custom-btn{margin-right:auto}.form-field-error-alert{font-size:12px;color:#bf1d30;line-height:20px}.form-error-alert{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}.dr-select-footer__btn{background-color:transparent;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}\n"] }]
|
|
11043
|
+
args: [{ selector: 'dr-dialog-modal-wrapper', template: "<div header class=\"header-dialog\">\n <h1 class=\"title-dialog\" data-test=\"modalTitle\">\n <i\n *ngIf=\"dialogData.headerIconClass\"\n (click)=\"closeDialog()\"\n class=\"title-dialog__icon\"\n [class]=\"dialogData.headerIconClass\"\n data-test=\"dialogTitleIcon\"></i>\n <span class=\"title-dialog__text\">{{ dialogData.title }}</span>\n </h1>\n <i *ngIf=\"!dialogData.hideCloseBtn\" (click)=\"closeDialog()\" class=\"dr-icon-exit icon-close\" data-test=\"xBtn\"></i>\n</div>\n<div *ngIf=\"dialogData.content\" class=\"content-dialog\" [innerHTML]=\"dialogData.content\">\n <span #content class=\"content-anchor\"></span>\n</div>\n<form *ngIf=\"dialogData.fields\" [formGroup]=\"form\" class=\"dr-smart-from\">\n <div [class]=\"dialogData.formWrapperClass || 'dr-smart-form_wrapper'\">\n <div\n *ngFor=\"let field of dialogData.fields\"\n class=\"dr-smart-form_group\"\n [class]=\"field.formGroupClass\"\n [ngStyle]=\"{ display: field.isLabelFullWidth ? 'block' : 'flex' }\">\n <label\n *ngIf=\"field.label && field.type !== dialogFieldType.CHECKBOX\"\n [ngClass]=\"field.isLabelFullWidth ? 'col-md-12 mb-2' : 'col-md-2'\"\n class=\"label p-0 d-flex align-items-center\"\n >{{ field.label }}</label\n >\n <div\n class=\"input-group p-0\"\n [ngClass]=\"{\n 'col-md-10': field.label && !field.isLabelFullWidth,\n 'col-md-12': !field.label || field.isLabelFullWidth,\n }\">\n <dr-select\n *ngIf=\"field.type === dialogFieldType.SELECT\"\n [searchable]=\"dialogData.searchable\"\n [clearable]=\"dialogData.clearable\"\n [formControlName]=\"field.name\"\n [bindLabel]=\"field.bindLabel || null\"\n [bindValue]=\"field.bindValue || null\"\n [selectedItem]=\"field.default\"\n [items]=\"field.items || (field.items$ | async)\"\n [loading]=\"fieldsItemsLoading[field.name] | async\"\n [required]=\"true\"\n [placeholder]=\"field.placeholder\">\n <ng-template *ngIf=\"dialogData?.footerTemplateData\" #optionFooterTemplate let-item=\"item\" let-close=\"close\">\n <button (click)=\"footerAction(); close()\" class=\"dr-select-footer__btn\">\n <i *ngIf=\"dialogData.footerTemplateData.icon\" class=\"{{ dialogData.footerTemplateData.icon }}\"></i>\n {{ dialogData.footerTemplateData.label }}\n </button>\n </ng-template>\n </dr-select>\n <dr-input\n *ngIf=\"field.type === dialogFieldType.INPUT\"\n data-test=\"modalInput\"\n class=\"form-control\"\n [formControlName]=\"field.name\"\n [placeholder]=\"field.placeholder\"></dr-input>\n <dr-date-picker\n *ngIf=\"field.type === dialogFieldType.DATE_PICKER\"\n [formControlName]=\"field.name\"\n [format]=\"field.datePickerFormat\"\n [placeholder]=\"field.placeholder\"></dr-date-picker>\n <dr-checkbox *ngIf=\"field.type === dialogFieldType.CHECKBOX\" [formControlName]=\"field.name\">\n {{ field.label }}\n </dr-checkbox>\n <label\n class=\"form-field-error-alert\"\n *ngIf=\"form.invalid && form.controls[field.name]?.dirty && form.controls[field.name]?.errors\">\n {{ form.controls[field.name].errors.errorString }}\n </label>\n <label class=\"form-error-alert\" *ngIf=\"dialogData.errorMessage && !form.pristine && form.invalid\">\n {{ dialogData.errorMessage }}\n </label>\n <label class=\"form-error-alert\" *ngIf=\"form.valid && showServerErrorMessage && dialogData.serverErrorMessage\">\n {{ dialogData.serverErrorMessage }}\n </label>\n </div>\n </div>\n </div>\n</form>\n\n<div footer class=\"footer-dialog\">\n <div class=\"buttons-wrapper\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <dr-button\n (click)=\"onDecline()\"\n *ngIf=\"dialogData.customButton\"\n [theme]=\"dialogData.customButton?.theme || 'secondary'\"\n class=\"buttons-wrapper--custom-btn\"\n data-test=\"declineBtn\"\n >{{ dialogData.customButton.label }}</dr-button\n >\n <dr-button *ngIf=\"dialogData.cancelButton\" data-test=\"modalCloseBtn\" (click)=\"closeDialog()\" [theme]=\"'secondary'\">{{\n dialogData.cancelButton.label\n }}</dr-button>\n <dr-button\n *ngIf=\"dialogData.acceptButton\"\n data-test=\"modalAddBtn\"\n (click)=\"onAccept()\"\n [theme]=\"'primary'\"\n [isLoading]=\"isLoading\"\n [disabled]=\"form.invalid\"\n >{{ dialogData.acceptButton.label }}</dr-button\n >\n </div>\n</div>\n", styles: [":host{display:flex;justify-content:space-between;flex-direction:column}:host.small-modal,:host.small-modal-max-height{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal,:host.medium-modal-max-height{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.medium-small-modal{min-height:188px;max-height:345px;min-width:460px;max-width:460px}:host.medium-modal-max-height,:host.small-modal-max-height{max-height:80vh}.header-dialog{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 56px 16px 32px;border-bottom:1px solid #dfe0e3}.header-dialog>.icon-close{position:absolute;right:32px;top:16px;cursor:pointer}.title-dialog{display:flex;color:#333;position:static;font-weight:600;font-size:16px;line-height:24px;margin-top:0;margin-bottom:0}.title-dialog__icon{font-size:32px;margin-right:8px;line-height:24px;color:#6d6e6f}.content-dialog{font-weight:400;font-size:14px;padding:16px 32px 5px;white-space:pre-line;overflow:auto}.icon-close{color:#6d6e6f;cursor:pointer}.dr-smart-from{font-size:14px;font-weight:400;line-height:22px;padding:8px 32px 24px}.dr-smart-from dr-checkbox{font-weight:400}.content-dialog{padding:16px 32px 0;font-weight:400;font-size:14px;line-height:22px}.content-anchor{display:none}.footer-dialog{border-top:1px solid #dfe0e3}.buttons-wrapper{display:flex;justify-content:flex-end;padding:10px 32px 11px}.buttons-wrapper dr-button:nth-of-type(n+2){margin-left:12px}.buttons-wrapper--custom-btn{margin-right:auto}.form-field-error-alert{font-size:12px;color:#bf1d30;line-height:20px}.form-error-alert{position:absolute;margin-top:5px;font-size:12px;color:#bf1d30}.dr-select-footer__btn{background-color:transparent;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;min-width:15rem;font-style:normal;font-weight:400;font-size:14px;line-height:24px;clear:both;width:100%;white-space:nowrap;padding:0 12px;height:36px;flex-shrink:0}\n"] }]
|
|
10574
11044
|
}], function () { return [{ type: i1$6.MatLegacyDialogRef }, { type: undefined, decorators: [{
|
|
10575
11045
|
type: Inject,
|
|
10576
11046
|
args: [MAT_LEGACY_DIALOG_DATA]
|
|
@@ -11077,7 +11547,7 @@ function TreeviewItemComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
11077
11547
|
i0.ɵɵadvance(1);
|
|
11078
11548
|
i0.ɵɵproperty("ngForOf", ctx_r2.item.children);
|
|
11079
11549
|
} }
|
|
11080
|
-
const _c0$
|
|
11550
|
+
const _c0$3 = function (a0, a1, a2) { return { item: a0, onCollapseExpand: a1, onCheckedChange: a2 }; };
|
|
11081
11551
|
function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11082
11552
|
i0.ɵɵelementStart(0, "div", 1);
|
|
11083
11553
|
i0.ɵɵtemplate(1, TreeviewItemComponent_div_0_ng_template_1_Template, 0, 0, "ng-template", 2);
|
|
@@ -11086,7 +11556,7 @@ function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11086
11556
|
} if (rf & 2) {
|
|
11087
11557
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
11088
11558
|
i0.ɵɵadvance(1);
|
|
11089
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$
|
|
11559
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$3, ctx_r0.item, ctx_r0.onCollapseExpand, ctx_r0.onCheckedChange));
|
|
11090
11560
|
i0.ɵɵadvance(1);
|
|
11091
11561
|
i0.ɵɵproperty("ngIf", !ctx_r0.item.collapsed);
|
|
11092
11562
|
} }
|
|
@@ -11671,124 +12141,35 @@ var TooltipInfoIconTheme;
|
|
|
11671
12141
|
TooltipInfoIconTheme["SUCCESS"] = "success";
|
|
11672
12142
|
})(TooltipInfoIconTheme || (TooltipInfoIconTheme = {}));
|
|
11673
12143
|
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
this.
|
|
11678
|
-
this.
|
|
11679
|
-
this.
|
|
11680
|
-
this.
|
|
11681
|
-
this._nodesExcluded = [];
|
|
11682
|
-
this._initOnClickBody = this._initOnClickBody.bind(this);
|
|
11683
|
-
this._onClickBody = this._onClickBody.bind(this);
|
|
12144
|
+
const DR_SHINE_ANIMATION_CLASS = 'dr-shine-effect-animation';
|
|
12145
|
+
class DrShineAnimationDirective {
|
|
12146
|
+
constructor(el, renderer) {
|
|
12147
|
+
this.el = el;
|
|
12148
|
+
this.renderer = renderer;
|
|
12149
|
+
this.isShineEnabled = true;
|
|
12150
|
+
this.drShineAnimationInterval = 5000; // Default interval in milliseconds
|
|
11684
12151
|
}
|
|
11685
|
-
|
|
11686
|
-
|
|
12152
|
+
ngOnChanges(changes) {
|
|
12153
|
+
if (changes.isShineEnabled) {
|
|
12154
|
+
if (this.isShineEnabled) {
|
|
12155
|
+
this.startShine();
|
|
12156
|
+
}
|
|
12157
|
+
else {
|
|
12158
|
+
this.stopShine();
|
|
12159
|
+
}
|
|
12160
|
+
}
|
|
11687
12161
|
}
|
|
11688
12162
|
ngOnDestroy() {
|
|
11689
|
-
|
|
11690
|
-
this._el.nativeElement.removeEventListener('click', this._initOnClickBody);
|
|
11691
|
-
}
|
|
11692
|
-
this._document.body.removeEventListener('click', this._onClickBody);
|
|
12163
|
+
this.stopShine();
|
|
11693
12164
|
}
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
if (selector) {
|
|
11703
|
-
try {
|
|
11704
|
-
const node = this._document.querySelector(selector.trim());
|
|
11705
|
-
if (node) {
|
|
11706
|
-
this._nodesExcluded.push(node);
|
|
11707
|
-
}
|
|
11708
|
-
}
|
|
11709
|
-
catch (err) {
|
|
11710
|
-
if (window.console) {
|
|
11711
|
-
window.console.error('[ng2-click-outside] Check your exclude selector syntax.', err);
|
|
11712
|
-
}
|
|
11713
|
-
}
|
|
11714
|
-
}
|
|
11715
|
-
});
|
|
11716
|
-
}
|
|
11717
|
-
if (this.attachOutsideOnClick) {
|
|
11718
|
-
this._el.nativeElement.addEventListener('click', this._initOnClickBody);
|
|
11719
|
-
}
|
|
11720
|
-
else {
|
|
11721
|
-
this._initOnClickBody();
|
|
11722
|
-
}
|
|
11723
|
-
}
|
|
11724
|
-
/** @internal */
|
|
11725
|
-
_initOnClickBody() {
|
|
11726
|
-
this._document.body.addEventListener('click', this._onClickBody);
|
|
11727
|
-
}
|
|
11728
|
-
/** @internal */
|
|
11729
|
-
_onClickBody(e) {
|
|
11730
|
-
if (!this._el.nativeElement.contains(e.target) && !this._shouldExclude(e.target)) {
|
|
11731
|
-
this.clickOutside.emit(e);
|
|
11732
|
-
if (this.attachOutsideOnClick) {
|
|
11733
|
-
this._document.body.removeEventListener('click', this._onClickBody);
|
|
11734
|
-
}
|
|
11735
|
-
}
|
|
11736
|
-
}
|
|
11737
|
-
/** @internal */
|
|
11738
|
-
_shouldExclude(target) {
|
|
11739
|
-
for (let i = 0; i < this._nodesExcluded.length; i++) {
|
|
11740
|
-
if (this._nodesExcluded[i].contains(target)) {
|
|
11741
|
-
return true;
|
|
11742
|
-
}
|
|
11743
|
-
}
|
|
11744
|
-
return false;
|
|
11745
|
-
}
|
|
11746
|
-
/** @nocollapse */ static { this.ɵfac = function ClickOutsideDirective_Factory(t) { return new (t || ClickOutsideDirective)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
11747
|
-
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: ClickOutsideDirective, selectors: [["", "clickOutside", ""]], inputs: { attachOutsideOnClick: "attachOutsideOnClick", exclude: "exclude" }, outputs: { clickOutside: "clickOutside" }, features: [i0.ɵɵNgOnChangesFeature] }); }
|
|
11748
|
-
}
|
|
11749
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClickOutsideDirective, [{
|
|
11750
|
-
type: Directive,
|
|
11751
|
-
args: [{ selector: '[clickOutside]' }]
|
|
11752
|
-
}], function () { return [{ type: undefined, decorators: [{
|
|
11753
|
-
type: Inject,
|
|
11754
|
-
args: [DOCUMENT]
|
|
11755
|
-
}] }, { type: i0.ElementRef }]; }, { attachOutsideOnClick: [{
|
|
11756
|
-
type: Input
|
|
11757
|
-
}], exclude: [{
|
|
11758
|
-
type: Input
|
|
11759
|
-
}], clickOutside: [{
|
|
11760
|
-
type: Output
|
|
11761
|
-
}] }); })();
|
|
11762
|
-
|
|
11763
|
-
const DR_SHINE_ANIMATION_CLASS = 'dr-shine-effect-animation';
|
|
11764
|
-
class DrShineAnimationDirective {
|
|
11765
|
-
constructor(el, renderer) {
|
|
11766
|
-
this.el = el;
|
|
11767
|
-
this.renderer = renderer;
|
|
11768
|
-
this.isShineEnabled = true;
|
|
11769
|
-
this.drShineAnimationInterval = 5000; // Default interval in milliseconds
|
|
11770
|
-
}
|
|
11771
|
-
ngOnChanges(changes) {
|
|
11772
|
-
if (changes.isShineEnabled) {
|
|
11773
|
-
if (this.isShineEnabled) {
|
|
11774
|
-
this.startShine();
|
|
11775
|
-
}
|
|
11776
|
-
else {
|
|
11777
|
-
this.stopShine();
|
|
11778
|
-
}
|
|
11779
|
-
}
|
|
11780
|
-
}
|
|
11781
|
-
ngOnDestroy() {
|
|
11782
|
-
this.stopShine();
|
|
11783
|
-
}
|
|
11784
|
-
startShine() {
|
|
11785
|
-
this.stopShine(); // Clear any existing intervals
|
|
11786
|
-
// Run the shine animation immediately
|
|
11787
|
-
this.addShineEffect();
|
|
11788
|
-
// Set interval to repeat the shine effect
|
|
11789
|
-
this.intervalId = setInterval(() => {
|
|
11790
|
-
this.addShineEffect();
|
|
11791
|
-
}, this.drShineAnimationInterval);
|
|
12165
|
+
startShine() {
|
|
12166
|
+
this.stopShine(); // Clear any existing intervals
|
|
12167
|
+
// Run the shine animation immediately
|
|
12168
|
+
this.addShineEffect();
|
|
12169
|
+
// Set interval to repeat the shine effect
|
|
12170
|
+
this.intervalId = setInterval(() => {
|
|
12171
|
+
this.addShineEffect();
|
|
12172
|
+
}, this.drShineAnimationInterval);
|
|
11792
12173
|
}
|
|
11793
12174
|
stopShine() {
|
|
11794
12175
|
if (this.intervalId) {
|
|
@@ -12366,7 +12747,7 @@ class DrImageCropperCanvasService {
|
|
|
12366
12747
|
type: Injectable
|
|
12367
12748
|
}], null, null); })();
|
|
12368
12749
|
|
|
12369
|
-
const _c0$
|
|
12750
|
+
const _c0$2 = ["imageCanvas"];
|
|
12370
12751
|
class DrImageCropperComponent {
|
|
12371
12752
|
constructor(canvasService) {
|
|
12372
12753
|
this.canvasService = canvasService;
|
|
@@ -12424,7 +12805,7 @@ class DrImageCropperComponent {
|
|
|
12424
12805
|
}
|
|
12425
12806
|
/** @nocollapse */ static { this.ɵfac = function DrImageCropperComponent_Factory(t) { return new (t || DrImageCropperComponent)(i0.ɵɵdirectiveInject(DrImageCropperCanvasService)); }; }
|
|
12426
12807
|
/** @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$
|
|
12808
|
+
i0.ɵɵviewQuery(_c0$2, 7);
|
|
12428
12809
|
} if (rf & 2) {
|
|
12429
12810
|
let _t;
|
|
12430
12811
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.canvasElement = _t.first);
|
|
@@ -12656,387 +13037,6 @@ class ClickOutsideModule {
|
|
|
12656
13037
|
}], null, null); })();
|
|
12657
13038
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ClickOutsideModule, { declarations: [ClickOutsideDirective], imports: [CommonModule], exports: [ClickOutsideDirective] }); })();
|
|
12658
13039
|
|
|
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
13040
|
const DR_CHAT_COMPONENTS = [
|
|
13041
13041
|
DrChatComponent,
|
|
13042
13042
|
DrChatMessageComponent,
|
|
@@ -13765,5 +13765,5 @@ class DrawerModule {
|
|
|
13765
13765
|
* Generated bundle index. Do not edit.
|
|
13766
13766
|
*/
|
|
13767
13767
|
|
|
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 };
|
|
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, DrChatDroppedFilesComponent, DrChatFormComponent, DrChatFormWithHistoryComponent, 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
13769
|
//# sourceMappingURL=datarailsshared-datarailsshared.mjs.map
|