@datarailsshared/datarailsshared 1.6.73 → 1.6.77
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.77.tgz +0 -0
- package/esm2022/lib/dr-gallery/dr-gallery.component.mjs +189 -48
- package/fesm2022/datarailsshared-datarailsshared.mjs +226 -84
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-gallery/dr-gallery.component.d.ts +24 -7
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.73.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Output, Input, Injectable, inject, ChangeDetectorRef, DestroyRef, ChangeDetectionStrategy, HostBinding, TemplateRef, HostListener, Directive, forwardRef, ViewChild, ContentChild, Pipe, ComponentFactoryResolver, Injector, Inject, Optional, ViewEncapsulation, PLATFORM_ID, ContentChildren, ElementRef, Host, ViewContainerRef, NgModule, InjectionToken, SkipSelf } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Output, Input, Injectable, inject, ChangeDetectorRef, DestroyRef, ChangeDetectionStrategy, HostBinding, TemplateRef, HostListener, Directive, forwardRef, ViewChild, ContentChild, Pipe, ComponentFactoryResolver, Injector, Inject, Optional, ViewEncapsulation, PLATFORM_ID, ContentChildren, ElementRef, Host, ViewContainerRef, NgModule, ViewChildren, InjectionToken, SkipSelf } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
|
|
5
5
|
import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
|
@@ -11,8 +11,8 @@ import * as i1$2 from '@angular/forms';
|
|
|
11
11
|
import { NG_VALUE_ACCESSOR, FormBuilder, FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
12
12
|
import { Observable, BehaviorSubject, distinctUntilChanged, Subject, startWith, takeUntil, noop as noop$3, combineLatest, from, merge as merge$1, fromEvent, filter as filter$1, switchMap as switchMap$1, map as map$2, observeOn, asyncScheduler, withLatestFrom, first as first$1, interval, throwError, finalize as finalize$1, tap as tap$1, defer } from 'rxjs';
|
|
13
13
|
import * as _ from 'lodash';
|
|
14
|
-
import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumber, merge, forEach, some, orderBy, filter as filter$2, includes, pull, concat, isString, isBoolean
|
|
15
|
-
import { skip, debounceTime, filter, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, startWith as startWith$1, map, tap, shareReplay, switchMap, first, catchError, finalize, take
|
|
14
|
+
import { isNil, isObject, cloneDeep, find, indexOf, reduce, map as map$1, isNumber, merge, forEach, some, orderBy, filter as filter$2, includes, pull, concat, isString, isBoolean } from 'lodash';
|
|
15
|
+
import { skip, debounceTime, filter, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, startWith as startWith$1, map, tap, shareReplay, switchMap, first, catchError, finalize, take } from 'rxjs/operators';
|
|
16
16
|
import * as i5 from '@angular/material/datepicker';
|
|
17
17
|
import { MatCalendar, DateRange, MAT_DATE_RANGE_SELECTION_STRATEGY, MatDatepickerModule } from '@angular/material/datepicker';
|
|
18
18
|
import { transition, style, animate, trigger, state } from '@angular/animations';
|
|
@@ -1057,7 +1057,7 @@ class DrModelDebounceChangeDirective {
|
|
|
1057
1057
|
|
|
1058
1058
|
const _c0$G = ["prefix"];
|
|
1059
1059
|
const _c1$j = ["suffix"];
|
|
1060
|
-
const _c2$
|
|
1060
|
+
const _c2$9 = ["inputRef"];
|
|
1061
1061
|
function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1062
1062
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
1063
1063
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -1102,7 +1102,7 @@ function DrInputComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1102
1102
|
i0.ɵɵadvance(1);
|
|
1103
1103
|
i0.ɵɵtextInterpolate1(" ", ctx_r5._buttonOptions.text, "\n");
|
|
1104
1104
|
} }
|
|
1105
|
-
const _c3$
|
|
1105
|
+
const _c3$7 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
|
|
1106
1106
|
const _c4$4 = ["[prefixIcon]", "[suffixIcon]"];
|
|
1107
1107
|
class DrInputComponent {
|
|
1108
1108
|
set disabled(value) {
|
|
@@ -1272,7 +1272,7 @@ class DrInputComponent {
|
|
|
1272
1272
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
|
|
1273
1273
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suffixIcon = _t.first);
|
|
1274
1274
|
} }, viewQuery: function DrInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1275
|
-
i0.ɵɵviewQuery(_c2$
|
|
1275
|
+
i0.ɵɵviewQuery(_c2$9, 5);
|
|
1276
1276
|
} if (rf & 2) {
|
|
1277
1277
|
let _t;
|
|
1278
1278
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
@@ -1287,7 +1287,7 @@ class DrInputComponent {
|
|
|
1287
1287
|
multi: true,
|
|
1288
1288
|
},
|
|
1289
1289
|
])], ngContentSelectors: _c4$4, decls: 8, vars: 5, consts: [[4, "ngIf", "ngIfElse"], ["maskedInput", ""], ["class", "clear-icon", 3, "click", 4, "ngIf"], ["class", "search-icon", 3, "click", 4, "ngIf"], [3, "click", 4, "ngIf"], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], ["inputRef", ""], [3, "ngModel", "disabled", "readonly", "type", "placeholder", "name", "min", "max", "minlength", "maxlength", "mask", "suffix", "prefix", "step", "ngModelChange", "ngModelDebounceChange", "blur", "focus"], [1, "clear-icon", 3, "click"], [1, "search-icon", 3, "click"], [3, "click"]], template: function DrInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1290
|
-
i0.ɵɵprojectionDef(_c3$
|
|
1290
|
+
i0.ɵɵprojectionDef(_c3$7);
|
|
1291
1291
|
i0.ɵɵprojection(0);
|
|
1292
1292
|
i0.ɵɵtemplate(1, DrInputComponent_ng_container_1_Template, 3, 11, "ng-container", 0);
|
|
1293
1293
|
i0.ɵɵtemplate(2, DrInputComponent_ng_template_2_Template, 2, 14, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -1385,8 +1385,8 @@ class DrInputComponent {
|
|
|
1385
1385
|
|
|
1386
1386
|
const _c0$F = ["labelTemplate"];
|
|
1387
1387
|
const _c1$i = ["multiLabelTemplate"];
|
|
1388
|
-
const _c2$
|
|
1389
|
-
const _c3$
|
|
1388
|
+
const _c2$8 = ["optionTemplate"];
|
|
1389
|
+
const _c3$6 = ["optionHeaderTemplate"];
|
|
1390
1390
|
const _c4$3 = ["optionFooterTemplate"];
|
|
1391
1391
|
const _c5 = function (a0) { return { item: a0 }; };
|
|
1392
1392
|
function DrSelectComponent_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1622,8 +1622,8 @@ class DrSelectComponent {
|
|
|
1622
1622
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1623
1623
|
i0.ɵɵcontentQuery(dirIndex, _c0$F, 5);
|
|
1624
1624
|
i0.ɵɵcontentQuery(dirIndex, _c1$i, 5);
|
|
1625
|
-
i0.ɵɵcontentQuery(dirIndex, _c2$
|
|
1626
|
-
i0.ɵɵcontentQuery(dirIndex, _c3$
|
|
1625
|
+
i0.ɵɵcontentQuery(dirIndex, _c2$8, 5);
|
|
1626
|
+
i0.ɵɵcontentQuery(dirIndex, _c3$6, 5);
|
|
1627
1627
|
i0.ɵɵcontentQuery(dirIndex, _c4$3, 5);
|
|
1628
1628
|
} if (rf & 2) {
|
|
1629
1629
|
let _t;
|
|
@@ -5573,7 +5573,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
|
|
|
5573
5573
|
i0.ɵɵadvance(1);
|
|
5574
5574
|
i0.ɵɵtextInterpolate(index_r11 + 1);
|
|
5575
5575
|
} }
|
|
5576
|
-
const _c2$
|
|
5576
|
+
const _c2$7 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
|
|
5577
5577
|
function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
5578
5578
|
i0.ɵɵelementContainer(0, 25);
|
|
5579
5579
|
} if (rf & 2) {
|
|
@@ -5583,7 +5583,7 @@ function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx)
|
|
|
5583
5583
|
const step_r10 = ctx_r23.$implicit;
|
|
5584
5584
|
i0.ɵɵnextContext();
|
|
5585
5585
|
const _r6 = i0.ɵɵreference(8);
|
|
5586
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$
|
|
5586
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$7, index_r11, isLast_r12, step_r10));
|
|
5587
5587
|
} }
|
|
5588
5588
|
function StepperComponent_ng_container_3_div_1_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
5589
5589
|
i0.ɵɵelementStart(0, "span", 26);
|
|
@@ -5603,9 +5603,9 @@ function StepperComponent_ng_container_3_div_1_ng_container_12_Template(rf, ctx)
|
|
|
5603
5603
|
const step_r10 = ctx_r25.$implicit;
|
|
5604
5604
|
i0.ɵɵnextContext();
|
|
5605
5605
|
const _r6 = i0.ɵɵreference(8);
|
|
5606
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$
|
|
5606
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r6)("ngTemplateOutletContext", i0.ɵɵpureFunction3(2, _c2$7, index_r11, isLast_r12, step_r10));
|
|
5607
5607
|
} }
|
|
5608
|
-
const _c3$
|
|
5608
|
+
const _c3$5 = function (a0) { return { step: a0 }; };
|
|
5609
5609
|
function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
5610
5610
|
const _r28 = i0.ɵɵgetCurrentView();
|
|
5611
5611
|
i0.ɵɵelementStart(0, "div", 10);
|
|
@@ -5632,7 +5632,7 @@ function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
5632
5632
|
i0.ɵɵclassProp("step-setup", ctx_r14.inlineLabels);
|
|
5633
5633
|
i0.ɵɵattribute("data-analytics", ctx_r14.getDataAnalyticsTag(step_r10));
|
|
5634
5634
|
i0.ɵɵadvance(1);
|
|
5635
|
-
i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(22, _c3$
|
|
5635
|
+
i0.ɵɵproperty("drTooltip", step_r10.description && _r4)("drTooltipContext", i0.ɵɵpureFunction1(22, _c3$5, step_r10))("drTooltipPosition", "bottom");
|
|
5636
5636
|
i0.ɵɵadvance(1);
|
|
5637
5637
|
i0.ɵɵclassProp("active", ctx_r14.currentStep === step_r10)("completed", step_r10.completed);
|
|
5638
5638
|
i0.ɵɵadvance(1);
|
|
@@ -6699,7 +6699,7 @@ function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1
|
|
|
6699
6699
|
i0.ɵɵadvance(1);
|
|
6700
6700
|
i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
|
|
6701
6701
|
} }
|
|
6702
|
-
const _c2$
|
|
6702
|
+
const _c2$6 = function (a0, a1, a2, a3) { return { "chat-suggestions--three-cols": a0, "chat-suggestions--two-cols": a1, "chat-suggestions--one-col": a2, "chat-suggestions--button-mode": a3 }; };
|
|
6703
6703
|
class DrChatSuggestionsComponent {
|
|
6704
6704
|
get hiddenValues() {
|
|
6705
6705
|
return JSON.parse(localStorage.getItem('aiChatSuggestions')) || [];
|
|
@@ -6805,7 +6805,7 @@ class DrChatSuggestionsComponent {
|
|
|
6805
6805
|
i0.ɵɵtemplate(3, DrChatSuggestionsComponent_ng_template_3_Template, 2, 6, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
6806
6806
|
} if (rf & 2) {
|
|
6807
6807
|
const _r2 = i0.ɵɵreference(4);
|
|
6808
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$
|
|
6808
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(3, _c2$6, ctx.colsCount === 3, ctx.colsCount === 2, ctx.colsCount === 1, ctx.buttonMode));
|
|
6809
6809
|
i0.ɵɵadvance(2);
|
|
6810
6810
|
i0.ɵɵproperty("ngIf", ctx.buttonMode)("ngIfElse", _r2);
|
|
6811
6811
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, DrButtonComponent], styles: ["[_nghost-%COMP%]{display:flex;align-items:flex-start;justify-content:center}[_nghost-%COMP%] .chat-suggestions[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center;max-width:956px}[_nghost-%COMP%] .chat-suggestions--button-mode[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] .chat-suggestions--button-mode[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{padding-top:32px}[_nghost-%COMP%] .chat-suggestions--one-col[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(1,300px)}[_nghost-%COMP%] .chat-suggestions--one-col[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(1,300px)}[_nghost-%COMP%] .chat-suggestions--two-cols[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(2,300px)}[_nghost-%COMP%] .chat-suggestions--two-cols[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(2,300px)}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%]{padding-left:0;grid-template-columns:repeat(3,300px)}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .chat-suggestions--three-cols[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{grid-template-columns:repeat(3,300px)}[_nghost-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%]{display:flex;position:relative;width:auto;margin-top:12px;padding:0 16px}[_nghost-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%]{z-index:3;background:linear-gradient(-90deg,#6969ff,#4eb7df) border-box;border-radius:2em;border:1.5px solid transparent}[_nghost-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%] button{background:#fff;border-radius:24px;color:#4646ce;border:none;cursor:pointer}[_nghost-%COMP%] .chat-suggestions__container[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{display:none;position:absolute;width:100%;bottom:0;left:0;padding-bottom:56px;z-index:2}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%] .chat-suggestions__container__button[_ngcontent-%COMP%] button{color:#4646ce;background:#f2f2fb}[_nghost-%COMP%] .chat-suggestions__container--opened[_ngcontent-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{display:grid;align-items:center;justify-content:center}[_nghost-%COMP%] .chat-suggestions__items[_ngcontent-%COMP%]{padding:0 16px;display:grid;gap:28px;grid-auto-rows:minmax(86px,auto);background:#ffffffb3}[_nghost-%COMP%] .chat-suggestions__items__item[_ngcontent-%COMP%]{display:inline-flex;min-height:86px;width:300px;align-items:center;justify-content:center;text-align:center;padding:16px;border-radius:8px;background:#f2f2fb;box-shadow:0 1px 2px #00000026;font-size:14px;line-height:24px;color:#25258c}[_nghost-%COMP%] .chat-suggestions__items__item[_ngcontent-%COMP%]:hover{cursor:pointer;background:#eaeaff}"], changeDetection: 0 }); }
|
|
@@ -6830,7 +6830,7 @@ class DrChatSuggestionsComponent {
|
|
|
6830
6830
|
|
|
6831
6831
|
const _c0$p = ["drChatHeader"];
|
|
6832
6832
|
const _c1$b = ["drChatContent"];
|
|
6833
|
-
const _c2$
|
|
6833
|
+
const _c2$5 = ["messagesContainer"];
|
|
6834
6834
|
function DrChatComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
6835
6835
|
i0.ɵɵelementContainer(0, 8);
|
|
6836
6836
|
} if (rf & 2) {
|
|
@@ -6874,7 +6874,7 @@ function DrChatComponent_dr_chat_suggestions_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
6874
6874
|
i0.ɵɵclassProp("chat__suggestions--full-height", ctx_r3.fullScreen && !(ctx_r3.messages == null ? null : ctx_r3.messages.length));
|
|
6875
6875
|
i0.ɵɵproperty("values", ctx_r3.suggestions)("fullScreen", ctx_r3.fullScreen)("waitForReply", ctx_r3.waitForReply)("buttonMode", !!(ctx_r3.messages == null ? null : ctx_r3.messages.length));
|
|
6876
6876
|
} }
|
|
6877
|
-
const _c3$
|
|
6877
|
+
const _c3$4 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-ai-search-input"]], [["dr-chat-message"]]];
|
|
6878
6878
|
const _c4$2 = ["dr-chat-alert", "dr-chat-form", "dr-ai-search-input", "dr-chat-message"];
|
|
6879
6879
|
class DrChatComponent {
|
|
6880
6880
|
set contentUpdateSubject(value) {
|
|
@@ -6965,14 +6965,14 @@ class DrChatComponent {
|
|
|
6965
6965
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatContent = _t.first);
|
|
6966
6966
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messages = _t);
|
|
6967
6967
|
} }, viewQuery: function DrChatComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6968
|
-
i0.ɵɵviewQuery(_c2$
|
|
6968
|
+
i0.ɵɵviewQuery(_c2$5, 5);
|
|
6969
6969
|
i0.ɵɵviewQuery(DrChatSuggestionsComponent, 5);
|
|
6970
6970
|
} if (rf & 2) {
|
|
6971
6971
|
let _t;
|
|
6972
6972
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messagesContainer = _t.first);
|
|
6973
6973
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._chatSuggestions = _t.first);
|
|
6974
6974
|
} }, inputs: { fullScreen: "fullScreen", noMessagesPlaceholder: "noMessagesPlaceholder", contentUpdateSubject: "contentUpdateSubject", scrollBottom: "scrollBottom", suggestions: "suggestions", reopen: "reopen", waitForReply: "waitForReply", scrollDelay: "scrollDelay" }, outputs: { suggestionSelect: "suggestionSelect" }, features: [i0.ɵɵProvidersFeature([DrChatCustomMessageService])], ngContentSelectors: _c4$2, decls: 11, vars: 6, consts: [[1, "chat"], [1, "chat__sticky-top"], [3, "ngTemplateOutlet", 4, "ngIf"], [1, "chat__alert"], ["class", "chat__empty-state", 4, "ngIf"], ["class", "chat__messages", 4, "ngIf"], ["class", "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "chat__suggestions--full-height", "buttonMode", "suggestionSelect", 4, "ngIf"], [1, "form"], [3, "ngTemplateOutlet"], [1, "chat__empty-state"], [1, "chat__empty-state__text"], [1, "chat__messages"], [1, "chat__messages__container"], ["messagesContainer", ""], [1, "chat__suggestions", 3, "values", "fullScreen", "waitForReply", "buttonMode", "suggestionSelect"]], template: function DrChatComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6975
|
-
i0.ɵɵprojectionDef(_c3$
|
|
6975
|
+
i0.ɵɵprojectionDef(_c3$4);
|
|
6976
6976
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6977
6977
|
i0.ɵɵtemplate(2, DrChatComponent_ng_container_2_Template, 1, 1, "ng-container", 2);
|
|
6978
6978
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -7065,8 +7065,8 @@ function DrChatFormDropdownComponent_i_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
7065
7065
|
function DrChatFormDropdownComponent_dr_dot_flashing_15_Template(rf, ctx) { if (rf & 1) {
|
|
7066
7066
|
i0.ɵɵelement(0, "dr-dot-flashing", 15);
|
|
7067
7067
|
} }
|
|
7068
|
-
const _c2$
|
|
7069
|
-
const _c3$
|
|
7068
|
+
const _c2$4 = function (a0) { return { "message-row_loading": a0 }; };
|
|
7069
|
+
const _c3$3 = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
|
|
7070
7070
|
const _c4$1 = ["*"];
|
|
7071
7071
|
class DrChatFormDropdownComponent {
|
|
7072
7072
|
constructor(cdr, domSanitizer) {
|
|
@@ -7257,9 +7257,9 @@ class DrChatFormDropdownComponent {
|
|
|
7257
7257
|
} if (rf & 2) {
|
|
7258
7258
|
const _r1 = i0.ɵɵreference(7);
|
|
7259
7259
|
let tmp_1_0;
|
|
7260
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$
|
|
7260
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$4, ctx.isUploadingFiles));
|
|
7261
7261
|
i0.ɵɵadvance(1);
|
|
7262
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(17, _c3$
|
|
7262
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(17, _c3$3, ctx.inputFocus, !!(ctx.message == null ? null : (tmp_1_0 = ctx.message.trim()) == null ? null : tmp_1_0.length) || !!i0.ɵɵpipeBind1(2, 11, ctx.droppedFiles$).length));
|
|
7263
7263
|
i0.ɵɵadvance(2);
|
|
7264
7264
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 13, ctx.droppedFiles$).length);
|
|
7265
7265
|
i0.ɵɵadvance(3);
|
|
@@ -9436,7 +9436,7 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx)
|
|
|
9436
9436
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
9437
9437
|
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$9, act_r2));
|
|
9438
9438
|
} }
|
|
9439
|
-
const _c2$
|
|
9439
|
+
const _c2$3 = function () { return { withoutArrow: true }; };
|
|
9440
9440
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
9441
9441
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
9442
9442
|
i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
|
|
@@ -9449,7 +9449,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
9449
9449
|
const act_r2 = ctx.$implicit;
|
|
9450
9450
|
const index_r3 = ctx.index;
|
|
9451
9451
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
9452
|
-
i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$
|
|
9452
|
+
i0.ɵɵproperty("drTooltip", ctx_r1.tooltipToShow(act_r2))("drTooltipPosition", "left")("drTooltipOptions", i0.ɵɵpureFunction0(15, _c2$3))("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);
|
|
9453
9453
|
i0.ɵɵattribute("data-analytics", ctx_r1.getDataAnalyticsTag(act_r2, index_r3));
|
|
9454
9454
|
i0.ɵɵadvance(1);
|
|
9455
9455
|
i0.ɵɵproperty("ngIf", !act_r2.templateRef);
|
|
@@ -9458,7 +9458,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
9458
9458
|
i0.ɵɵadvance(1);
|
|
9459
9459
|
i0.ɵɵproperty("ngIf", act_r2.templateRef);
|
|
9460
9460
|
} }
|
|
9461
|
-
const _c3$
|
|
9461
|
+
const _c3$2 = [[["dr-dropdown-item"]]];
|
|
9462
9462
|
const _c4 = ["dr-dropdown-item"];
|
|
9463
9463
|
class DrDropdownComponent {
|
|
9464
9464
|
set options(data) {
|
|
@@ -9580,7 +9580,7 @@ class DrDropdownComponent {
|
|
|
9580
9580
|
let _t;
|
|
9581
9581
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
9582
9582
|
} }, 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) {
|
|
9583
|
-
i0.ɵɵprojectionDef(_c3$
|
|
9583
|
+
i0.ɵɵprojectionDef(_c3$2);
|
|
9584
9584
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
9585
9585
|
i0.ɵɵlistener("mouseenter", function DrDropdownComponent_Template_div_mouseenter_2_listener() { return ctx.onMouseenter(); })("mouseleave", function DrDropdownComponent_Template_div_mouseleave_2_listener() { return ctx.onMouseleave(); });
|
|
9586
9586
|
i0.ɵɵprojection(3);
|
|
@@ -10351,8 +10351,8 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10351
10351
|
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
10352
10352
|
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$5, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$c, ctx_r1.chevronRotationDegree)));
|
|
10353
10353
|
} }
|
|
10354
|
-
const _c2$
|
|
10355
|
-
const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
10354
|
+
const _c2$2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
|
|
10355
|
+
const _c3$1 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
10356
10356
|
class DrAccordionItemHeaderComponent {
|
|
10357
10357
|
get isCollapsed() {
|
|
10358
10358
|
return this.accordionItem.collapsed;
|
|
@@ -10407,8 +10407,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
10407
10407
|
i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
|
|
10408
10408
|
i0.ɵɵclassMap(ctx.theme);
|
|
10409
10409
|
i0.ɵɵclassProp("accordion-item-header-collapsed", ctx.isCollapsed)("accordion-item-header-expanded", ctx.expanded);
|
|
10410
|
-
} }, 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) {
|
|
10411
|
-
i0.ɵɵprojectionDef(_c2$
|
|
10410
|
+
} }, inputs: { chevronOrientation: "chevronOrientation", chevronPosition: "chevronPosition", icon: "icon", toggleOnChevronClick: "toggleOnChevronClick" }, ngContentSelectors: _c3$1, decls: 5, vars: 2, consts: [[3, "class", "dr-accordion-item-header-icon--additional-padding", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], [3, "click"]], template: function DrAccordionItemHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10411
|
+
i0.ɵɵprojectionDef(_c2$2);
|
|
10412
10412
|
i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
|
|
10413
10413
|
i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
|
|
10414
10414
|
i0.ɵɵprojection(2);
|
|
@@ -10804,7 +10804,7 @@ function DialogWrapperComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
10804
10804
|
i0.ɵɵadvance(1);
|
|
10805
10805
|
i0.ɵɵproperty("ngIf", ctx_r6.dialogData.acceptButton);
|
|
10806
10806
|
} }
|
|
10807
|
-
const _c2 = function (a0) { return { "flex-position": a0 }; };
|
|
10807
|
+
const _c2$1 = function (a0) { return { "flex-position": a0 }; };
|
|
10808
10808
|
class DialogWrapperComponent {
|
|
10809
10809
|
get elementClass() {
|
|
10810
10810
|
return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
|
|
@@ -10915,7 +10915,7 @@ class DialogWrapperComponent {
|
|
|
10915
10915
|
i0.ɵɵproperty("ngIf", ctx.dialogData.title);
|
|
10916
10916
|
i0.ɵɵadvance(1);
|
|
10917
10917
|
i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
|
|
10918
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
|
|
10918
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2$1, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
|
|
10919
10919
|
i0.ɵɵadvance(1);
|
|
10920
10920
|
i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
|
|
10921
10921
|
i0.ɵɵadvance(1);
|
|
@@ -13633,24 +13633,42 @@ class DrChipComponent {
|
|
|
13633
13633
|
type: Output
|
|
13634
13634
|
}] }); })();
|
|
13635
13635
|
|
|
13636
|
-
|
|
13636
|
+
const _c0$1 = ["carouselContainer"];
|
|
13637
|
+
const _c1 = ["carouselItem"];
|
|
13638
|
+
function DrGalleryComponent_dr_button_0_Template(rf, ctx) { if (rf & 1) {
|
|
13639
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
13640
|
+
i0.ɵɵelementStart(0, "dr-button", 5);
|
|
13641
|
+
i0.ɵɵlistener("click", function DrGalleryComponent_dr_button_0_Template_dr_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.prev()); });
|
|
13642
|
+
i0.ɵɵelementEnd();
|
|
13643
|
+
} if (rf & 2) {
|
|
13644
|
+
i0.ɵɵproperty("icon", "dr-icon-arrow-left");
|
|
13645
|
+
} }
|
|
13646
|
+
function DrGalleryComponent_div_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
13637
13647
|
i0.ɵɵelementContainer(0);
|
|
13638
13648
|
} }
|
|
13639
|
-
const
|
|
13640
|
-
const
|
|
13641
|
-
function
|
|
13642
|
-
i0.ɵɵelementStart(0, "div",
|
|
13643
|
-
i0.ɵɵtemplate(
|
|
13649
|
+
const _c2 = function () { return {}; };
|
|
13650
|
+
const _c3 = function (a0) { return { $implicit: a0 }; };
|
|
13651
|
+
function DrGalleryComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
13652
|
+
i0.ɵɵelementStart(0, "div", 6, 7);
|
|
13653
|
+
i0.ɵɵtemplate(2, DrGalleryComponent_div_4_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
13644
13654
|
i0.ɵɵelementEnd();
|
|
13645
13655
|
} if (rf & 2) {
|
|
13646
|
-
const
|
|
13647
|
-
const
|
|
13648
|
-
const
|
|
13649
|
-
i0.ɵɵ
|
|
13650
|
-
i0.ɵɵ
|
|
13651
|
-
i0.ɵɵproperty("
|
|
13652
|
-
i0.ɵɵadvance(
|
|
13653
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
13656
|
+
const item_r6 = ctx.$implicit;
|
|
13657
|
+
const i_r7 = ctx.index;
|
|
13658
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
13659
|
+
i0.ɵɵstyleProp("transition", ctx_r2.transition);
|
|
13660
|
+
i0.ɵɵclassProp("dr-gallery-item_active", ctx_r2.centerIndex === i_r7)("dr-gallery-item_fadein", ctx_r2.fadeIn && ctx_r2.centerIndex === i_r7 + 1);
|
|
13661
|
+
i0.ɵɵproperty("ngStyle", ctx_r2.modeType === "loop" ? ctx_r2.getStyle() : i0.ɵɵpureFunction0(9, _c2));
|
|
13662
|
+
i0.ɵɵadvance(2);
|
|
13663
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.template)("ngTemplateOutletContext", i0.ɵɵpureFunction1(10, _c3, item_r6));
|
|
13664
|
+
} }
|
|
13665
|
+
function DrGalleryComponent_dr_button_5_Template(rf, ctx) { if (rf & 1) {
|
|
13666
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
13667
|
+
i0.ɵɵelementStart(0, "dr-button", 9);
|
|
13668
|
+
i0.ɵɵlistener("click", function DrGalleryComponent_dr_button_5_Template_dr_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.next()); });
|
|
13669
|
+
i0.ɵɵelementEnd();
|
|
13670
|
+
} if (rf & 2) {
|
|
13671
|
+
i0.ɵɵproperty("iconSize", "24px")("icon", "dr-icon-arrow-right");
|
|
13654
13672
|
} }
|
|
13655
13673
|
class DrGalleryComponent {
|
|
13656
13674
|
set items(value) {
|
|
@@ -13675,25 +13693,66 @@ class DrGalleryComponent {
|
|
|
13675
13693
|
get centerIndex() {
|
|
13676
13694
|
return this.itemsCount > 1 && this.itemsCount % 2 !== 0 ? this.activeIndex + Math.floor(this.itemsCount / 2) : null;
|
|
13677
13695
|
}
|
|
13678
|
-
ngOnChanges() {
|
|
13679
|
-
this.activeIndex = this.itemsCount;
|
|
13680
|
-
this.initializeCarousel();
|
|
13681
|
-
this.updateTransform();
|
|
13682
|
-
}
|
|
13683
13696
|
constructor(cdr) {
|
|
13684
13697
|
this.cdr = cdr;
|
|
13685
13698
|
this._items = [];
|
|
13686
13699
|
this._itemsCount = 3;
|
|
13687
13700
|
this.defaultTransition = '250ms ease-in-out';
|
|
13688
13701
|
this.noTransition = '0ms';
|
|
13702
|
+
this.modeType = 'loop';
|
|
13703
|
+
this.isOutsideBtns = false;
|
|
13704
|
+
this.fadeIn = false;
|
|
13705
|
+
this.autoPlay = false;
|
|
13706
|
+
this.autoplayInterval = 5000; //5 seconds
|
|
13689
13707
|
this.activeIndex = 0;
|
|
13690
13708
|
this.carouselItems = [];
|
|
13691
|
-
this.transform =
|
|
13709
|
+
this.transform = 'translateX(0%)';
|
|
13692
13710
|
this.transition = this.defaultTransition;
|
|
13711
|
+
this.itemOffsets = [];
|
|
13712
|
+
this.itemWidths = [];
|
|
13713
|
+
}
|
|
13714
|
+
ngAfterViewInit() {
|
|
13715
|
+
// Wait for initial render
|
|
13716
|
+
setTimeout(() => {
|
|
13717
|
+
this.calculateItemOffsets();
|
|
13718
|
+
this.updateTransform();
|
|
13719
|
+
if (this.autoPlay) {
|
|
13720
|
+
this.startAutoplay();
|
|
13721
|
+
}
|
|
13722
|
+
});
|
|
13723
|
+
}
|
|
13724
|
+
ngOnDestroy() {
|
|
13725
|
+
this.clearAutoplay();
|
|
13693
13726
|
}
|
|
13694
13727
|
initializeCarousel() {
|
|
13695
|
-
|
|
13696
|
-
|
|
13728
|
+
if (this.modeType === 'loop') {
|
|
13729
|
+
this.carouselItems = [
|
|
13730
|
+
...this._items.slice(-this.itemsCount),
|
|
13731
|
+
...this._items,
|
|
13732
|
+
...this._items.slice(0, this.itemsCount),
|
|
13733
|
+
];
|
|
13734
|
+
this.activeIndex = this.itemsCount;
|
|
13735
|
+
}
|
|
13736
|
+
else {
|
|
13737
|
+
this.carouselItems = [...this._items];
|
|
13738
|
+
this.activeIndex = 0;
|
|
13739
|
+
}
|
|
13740
|
+
setTimeout(() => {
|
|
13741
|
+
this.calculateItemOffsets();
|
|
13742
|
+
this.updateTransform();
|
|
13743
|
+
});
|
|
13744
|
+
}
|
|
13745
|
+
calculateItemOffsets() {
|
|
13746
|
+
this.itemOffsets = [];
|
|
13747
|
+
this.itemWidths = [];
|
|
13748
|
+
let offset = 0;
|
|
13749
|
+
const elements = this.itemElements.toArray();
|
|
13750
|
+
for (const el of elements) {
|
|
13751
|
+
const width = el.nativeElement.offsetWidth;
|
|
13752
|
+
this.itemOffsets.push(offset);
|
|
13753
|
+
this.itemWidths.push(width);
|
|
13754
|
+
offset += width;
|
|
13755
|
+
}
|
|
13697
13756
|
}
|
|
13698
13757
|
getStyle() {
|
|
13699
13758
|
const percent = `calc(${100 / this.itemsCount}%)`;
|
|
@@ -13704,21 +13763,62 @@ class DrGalleryComponent {
|
|
|
13704
13763
|
};
|
|
13705
13764
|
}
|
|
13706
13765
|
prev() {
|
|
13707
|
-
this.
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13766
|
+
if (this.modeType === 'loop') {
|
|
13767
|
+
this.activeIndex--;
|
|
13768
|
+
this.transition = this.defaultTransition;
|
|
13769
|
+
this.updateTransform();
|
|
13770
|
+
if (this.activeIndex <= 0) {
|
|
13771
|
+
this.resetIndexAfterDelay(this.carouselItems.length - this.items.length);
|
|
13772
|
+
}
|
|
13773
|
+
}
|
|
13774
|
+
else {
|
|
13775
|
+
if (this.activeIndex > 0) {
|
|
13776
|
+
this.activeIndex--;
|
|
13777
|
+
this.updateTransform();
|
|
13778
|
+
}
|
|
13712
13779
|
}
|
|
13713
13780
|
}
|
|
13714
13781
|
next() {
|
|
13715
|
-
this.
|
|
13716
|
-
|
|
13782
|
+
if (this.modeType === 'loop') {
|
|
13783
|
+
this.activeIndex++;
|
|
13784
|
+
this.transition = this.defaultTransition;
|
|
13785
|
+
this.updateTransform();
|
|
13786
|
+
if (this.activeIndex + this.itemsCount > this.carouselItems.length - 1) {
|
|
13787
|
+
this.resetIndexAfterDelay(this.itemsCount);
|
|
13788
|
+
}
|
|
13789
|
+
}
|
|
13790
|
+
else {
|
|
13791
|
+
if (this.activeIndex + 1 < this.carouselItems.length) {
|
|
13792
|
+
this.activeIndex++;
|
|
13793
|
+
this.updateTransform();
|
|
13794
|
+
}
|
|
13795
|
+
else {
|
|
13796
|
+
this.activeIndex = 0;
|
|
13797
|
+
this.updateTransform();
|
|
13798
|
+
}
|
|
13799
|
+
}
|
|
13800
|
+
}
|
|
13801
|
+
navigate(index) {
|
|
13802
|
+
this.activeIndex = index;
|
|
13717
13803
|
this.updateTransform();
|
|
13718
|
-
if (this.
|
|
13719
|
-
this.
|
|
13804
|
+
if (this.autoPlay) {
|
|
13805
|
+
this.startAutoplay();
|
|
13720
13806
|
}
|
|
13721
13807
|
}
|
|
13808
|
+
get canGoPrev() {
|
|
13809
|
+
if (this.modeType === 'loop')
|
|
13810
|
+
return true;
|
|
13811
|
+
return !!(this.activeIndex > 0);
|
|
13812
|
+
}
|
|
13813
|
+
get canGoNext() {
|
|
13814
|
+
if (this.modeType === 'loop')
|
|
13815
|
+
return true;
|
|
13816
|
+
const containerWidth = this.containerRef?.nativeElement?.offsetWidth || 0;
|
|
13817
|
+
const currentOffset = this.itemOffsets[this.activeIndex] || 0;
|
|
13818
|
+
const lastIndex = this.itemOffsets.length - 1;
|
|
13819
|
+
const totalContentWidth = this.itemOffsets[lastIndex] + this.itemWidths[lastIndex];
|
|
13820
|
+
return currentOffset + containerWidth < totalContentWidth - 1;
|
|
13821
|
+
}
|
|
13722
13822
|
resetIndexAfterDelay(newIndex) {
|
|
13723
13823
|
setTimeout(() => {
|
|
13724
13824
|
this.transition = this.noTransition;
|
|
@@ -13727,47 +13827,89 @@ class DrGalleryComponent {
|
|
|
13727
13827
|
}, 250);
|
|
13728
13828
|
}
|
|
13729
13829
|
updateTransform(skipTransition = false) {
|
|
13730
|
-
|
|
13830
|
+
if (this.modeType === 'loop') {
|
|
13831
|
+
this.transform = `translateX(${-100 * (this.activeIndex / this.itemsCount)}%)`;
|
|
13832
|
+
}
|
|
13833
|
+
else {
|
|
13834
|
+
const offset = this.itemOffsets[this.activeIndex] || 0;
|
|
13835
|
+
this.transform = `translateX(-${offset}px)`;
|
|
13836
|
+
}
|
|
13731
13837
|
if (skipTransition)
|
|
13732
13838
|
this.transition = this.noTransition;
|
|
13839
|
+
else
|
|
13840
|
+
this.transition = this.defaultTransition;
|
|
13733
13841
|
this.cdr.markForCheck();
|
|
13734
13842
|
}
|
|
13843
|
+
startAutoplay() {
|
|
13844
|
+
this.clearAutoplay();
|
|
13845
|
+
this.autoplayTimer = setInterval(() => {
|
|
13846
|
+
this.next();
|
|
13847
|
+
}, this.autoplayInterval);
|
|
13848
|
+
}
|
|
13849
|
+
clearAutoplay() {
|
|
13850
|
+
if (this.autoplayTimer) {
|
|
13851
|
+
clearInterval(this.autoplayTimer);
|
|
13852
|
+
this.autoplayTimer = null;
|
|
13853
|
+
}
|
|
13854
|
+
}
|
|
13735
13855
|
/** @nocollapse */ static { this.ɵfac = function DrGalleryComponent_Factory(t) { return new (t || DrGalleryComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
13736
13856
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrGalleryComponent, selectors: [["dr-gallery"]], contentQueries: function DrGalleryComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
13737
13857
|
i0.ɵɵcontentQuery(dirIndex, TemplateRef, 5);
|
|
13738
13858
|
} if (rf & 2) {
|
|
13739
13859
|
let _t;
|
|
13740
13860
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
13741
|
-
} },
|
|
13742
|
-
i0.ɵɵ
|
|
13743
|
-
i0.ɵɵ
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
i0.ɵɵ
|
|
13861
|
+
} }, viewQuery: function DrGalleryComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13862
|
+
i0.ɵɵviewQuery(_c0$1, 5);
|
|
13863
|
+
i0.ɵɵviewQuery(_c1, 5);
|
|
13864
|
+
} if (rf & 2) {
|
|
13865
|
+
let _t;
|
|
13866
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerRef = _t.first);
|
|
13867
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemElements = _t);
|
|
13868
|
+
} }, inputs: { modeType: "modeType", isOutsideBtns: "isOutsideBtns", fadeIn: "fadeIn", autoPlay: "autoPlay", autoplayInterval: "autoplayInterval", items: "items", itemsCount: "itemsCount" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 6, vars: 12, consts: [["class", "dr-gallery-btn dr-gallery-btn_left", "theme", "icon", 3, "icon", "click", 4, "ngIf"], ["carouselContainer", ""], [1, "dr-gallery-items"], ["class", "dr-gallery-item", 3, "transition", "dr-gallery-item_active", "dr-gallery-item_fadein", "ngStyle", 4, "ngFor", "ngForOf"], ["class", "dr-gallery-btn dr-gallery-btn_right", "theme", "icon", 3, "iconSize", "icon", "click", 4, "ngIf"], ["theme", "icon", 1, "dr-gallery-btn", "dr-gallery-btn_left", 3, "icon", "click"], [1, "dr-gallery-item", 3, "ngStyle"], ["carouselItem", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["theme", "icon", 1, "dr-gallery-btn", "dr-gallery-btn_right", 3, "iconSize", "icon", "click"]], template: function DrGalleryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13869
|
+
i0.ɵɵtemplate(0, DrGalleryComponent_dr_button_0_Template, 1, 1, "dr-button", 0);
|
|
13870
|
+
i0.ɵɵelementStart(1, "div", null, 1)(3, "div", 2);
|
|
13871
|
+
i0.ɵɵtemplate(4, DrGalleryComponent_div_4_Template, 3, 12, "div", 3);
|
|
13747
13872
|
i0.ɵɵelementEnd()();
|
|
13748
|
-
i0.ɵɵ
|
|
13749
|
-
i0.ɵɵlistener("click", function DrGalleryComponent_Template_dr_button_click_4_listener() { return ctx.next(); });
|
|
13750
|
-
i0.ɵɵelementEnd();
|
|
13873
|
+
i0.ɵɵtemplate(5, DrGalleryComponent_dr_button_5_Template, 1, 2, "dr-button", 4);
|
|
13751
13874
|
} if (rf & 2) {
|
|
13752
|
-
i0.ɵɵproperty("
|
|
13875
|
+
i0.ɵɵproperty("ngIf", !ctx.isOutsideBtns);
|
|
13876
|
+
i0.ɵɵadvance(1);
|
|
13877
|
+
i0.ɵɵclassMapInterpolate1("dr-gallery-caroousel dr-gallery-caroousel_", ctx.modeType, "");
|
|
13878
|
+
i0.ɵɵclassProp("dr-gallery-caroousel_fadein", ctx.fadeIn);
|
|
13753
13879
|
i0.ɵɵadvance(2);
|
|
13754
13880
|
i0.ɵɵstyleProp("transition", ctx.transition)("transform", ctx.transform);
|
|
13755
13881
|
i0.ɵɵadvance(1);
|
|
13756
13882
|
i0.ɵɵproperty("ngForOf", ctx.carouselItems);
|
|
13757
13883
|
i0.ɵɵadvance(1);
|
|
13758
|
-
i0.ɵɵproperty("
|
|
13759
|
-
} }, dependencies: [CommonModule, i1.
|
|
13884
|
+
i0.ɵɵproperty("ngIf", !ctx.isOutsideBtns);
|
|
13885
|
+
} }, dependencies: [CommonModule, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, DrInputsModule, DrButtonComponent], styles: [".dr-gallery-caroousel[_ngcontent-%COMP%]{display:block;position:relative;overflow:hidden}.dr-gallery-caroousel.dr-gallery-caroousel_loop[_ngcontent-%COMP%] .dr-gallery-item[_ngcontent-%COMP%]{width:100%;min-height:240px}.dr-gallery-caroousel.dr-gallery-caroousel_loop[_ngcontent-%COMP%] .dr-gallery-item_active[_ngcontent-%COMP%]{transform:scale(1.2)}.dr-gallery-caroousel.dr-gallery-caroousel_fadein[_ngcontent-%COMP%] .dr-gallery-item[_ngcontent-%COMP%]{opacity:0}.dr-gallery-items[_ngcontent-%COMP%]{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item[_ngcontent-%COMP%]{box-sizing:border-box;position:relative;flex-grow:1;padding:42px 24px;margin-top:-8px}.dr-gallery-item_fadein[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeIn .3s ease-in .25s forwards}.dr-gallery-btn[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);z-index:9999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 4px #00000040}.dr-gallery-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:40px!important;height:40px!important}.dr-gallery-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:50%}.dr-gallery-btn_left[_ngcontent-%COMP%]{left:0}.dr-gallery-btn_right[_ngcontent-%COMP%]{right:0}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}"], changeDetection: 0 }); }
|
|
13760
13886
|
}
|
|
13761
13887
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrGalleryComponent, [{
|
|
13762
13888
|
type: Component,
|
|
13763
|
-
args: [{ selector: 'dr-gallery', imports: [CommonModule, DrInputsModule], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dr-button
|
|
13889
|
+
args: [{ selector: 'dr-gallery', imports: [CommonModule, DrInputsModule], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dr-button\n *ngIf=\"!isOutsideBtns\"\n class=\"dr-gallery-btn dr-gallery-btn_left\"\n (click)=\"prev()\"\n theme=\"icon\"\n [icon]=\"'dr-icon-arrow-left'\">\n</dr-button>\n\n<div\n #carouselContainer\n class=\"dr-gallery-caroousel dr-gallery-caroousel_{{ modeType }}\"\n [class.dr-gallery-caroousel_fadein]=\"fadeIn\">\n <div class=\"dr-gallery-items\" [style.transition]=\"transition\" [style.transform]=\"transform\">\n <div\n #carouselItem\n *ngFor=\"let item of carouselItems; let i = index\"\n class=\"dr-gallery-item\"\n [style.transition]=\"transition\"\n [class.dr-gallery-item_active]=\"centerIndex === i\"\n [class.dr-gallery-item_fadein]=\"fadeIn && centerIndex === i + 1\"\n [ngStyle]=\"modeType === 'loop' ? getStyle() : {}\">\n <ng-container *ngTemplateOutlet=\"template; context: { $implicit: item }\"></ng-container>\n </div>\n </div>\n</div>\n\n<dr-button\n *ngIf=\"!isOutsideBtns\"\n class=\"dr-gallery-btn dr-gallery-btn_right\"\n (click)=\"next()\"\n [iconSize]=\"'24px'\"\n theme=\"icon\"\n [icon]=\"'dr-icon-arrow-right'\">\n</dr-button>\n", styles: [".dr-gallery-caroousel{display:block;position:relative;overflow:hidden}.dr-gallery-caroousel.dr-gallery-caroousel_loop .dr-gallery-item{width:100%;min-height:240px}.dr-gallery-caroousel.dr-gallery-caroousel_loop .dr-gallery-item_active{transform:scale(1.2)}.dr-gallery-caroousel.dr-gallery-caroousel_fadein .dr-gallery-item{opacity:0}.dr-gallery-items{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item{box-sizing:border-box;position:relative;flex-grow:1;padding:42px 24px;margin-top:-8px}.dr-gallery-item_fadein{animation:fadeIn .3s ease-in .25s forwards}.dr-gallery-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:9999;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;box-shadow:0 4px 4px #00000040}.dr-gallery-btn button{width:40px!important;height:40px!important}.dr-gallery-btn button:hover{border-radius:50%}.dr-gallery-btn_left{left:0}.dr-gallery-btn_right{right:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}\n"] }]
|
|
13764
13890
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { template: [{
|
|
13765
13891
|
type: ContentChild,
|
|
13766
13892
|
args: [TemplateRef]
|
|
13893
|
+
}], modeType: [{
|
|
13894
|
+
type: Input
|
|
13895
|
+
}], isOutsideBtns: [{
|
|
13896
|
+
type: Input
|
|
13897
|
+
}], fadeIn: [{
|
|
13898
|
+
type: Input
|
|
13899
|
+
}], autoPlay: [{
|
|
13900
|
+
type: Input
|
|
13901
|
+
}], autoplayInterval: [{
|
|
13902
|
+
type: Input
|
|
13767
13903
|
}], items: [{
|
|
13768
13904
|
type: Input
|
|
13769
13905
|
}], itemsCount: [{
|
|
13770
13906
|
type: Input
|
|
13907
|
+
}], containerRef: [{
|
|
13908
|
+
type: ViewChild,
|
|
13909
|
+
args: ['carouselContainer']
|
|
13910
|
+
}], itemElements: [{
|
|
13911
|
+
type: ViewChildren,
|
|
13912
|
+
args: ['carouselItem']
|
|
13771
13913
|
}] }); })();
|
|
13772
13914
|
|
|
13773
13915
|
/**
|
|
@@ -14024,14 +14166,14 @@ class DrawerRef {
|
|
|
14024
14166
|
this.id = _ref.id;
|
|
14025
14167
|
// Emit when opening animation completes
|
|
14026
14168
|
containerInstance._animationStateChanged
|
|
14027
|
-
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take
|
|
14169
|
+
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take(1))
|
|
14028
14170
|
.subscribe(() => {
|
|
14029
14171
|
this._afterOpened.next();
|
|
14030
14172
|
this._afterOpened.complete();
|
|
14031
14173
|
});
|
|
14032
14174
|
// Dispose overlay when closing animation is complete
|
|
14033
14175
|
containerInstance._animationStateChanged
|
|
14034
|
-
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take
|
|
14176
|
+
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take(1))
|
|
14035
14177
|
.subscribe(() => {
|
|
14036
14178
|
clearTimeout(this._closeFallbackTimeout);
|
|
14037
14179
|
this._ref.close(this._result);
|
|
@@ -14058,7 +14200,7 @@ class DrawerRef {
|
|
|
14058
14200
|
if (this.containerInstance && !this._afterDismissed.closed) {
|
|
14059
14201
|
// Transition the backdrop in parallel to the drawer.
|
|
14060
14202
|
this.containerInstance._animationStateChanged
|
|
14061
|
-
.pipe(filter((event) => event.phaseName === 'start'), take
|
|
14203
|
+
.pipe(filter((event) => event.phaseName === 'start'), take(1))
|
|
14062
14204
|
.subscribe((event) => {
|
|
14063
14205
|
// The logic that disposes of the overlay depends on the exit animation completing, however
|
|
14064
14206
|
// it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
|