@datarailsshared/datarailsshared 1.6.71 → 1.6.75
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.75.tgz +0 -0
- package/esm2022/lib/dr-gallery/dr-gallery.component.mjs +155 -49
- package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.mjs +2 -1
- package/esm2022/lib/dr-inputs/date-pickers/services/dr-date-picker.service.mjs +8 -4
- package/fesm2022/datarailsshared-datarailsshared.mjs +220 -108
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-gallery/dr-gallery.component.d.ts +17 -7
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +1 -1
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.71.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';
|
|
@@ -9,10 +9,10 @@ import * as moment from 'moment';
|
|
|
9
9
|
import moment__default from 'moment';
|
|
10
10
|
import * as i1$2 from '@angular/forms';
|
|
11
11
|
import { NG_VALUE_ACCESSOR, FormBuilder, FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
12
|
-
import { Observable, BehaviorSubject, distinctUntilChanged,
|
|
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$
|
|
15
|
-
import { skip, debounceTime, filter, distinctUntilChanged as distinctUntilChanged$1, takeUntil as takeUntil$1, startWith as startWith$1, map
|
|
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';
|
|
@@ -241,7 +241,10 @@ class DrDatePickerService {
|
|
|
241
241
|
this.isTimeframeSelectionEnabled = false;
|
|
242
242
|
this._timeframe$ = new BehaviorSubject(TimeframeOption.DAY);
|
|
243
243
|
this.timeframe$ = this._timeframe$.asObservable().pipe(distinctUntilChanged());
|
|
244
|
-
|
|
244
|
+
// TODO: here we can have inconsistency between format and timeframe
|
|
245
|
+
// we need to get rid of a separate subject and use pipe from timeframe$ for it
|
|
246
|
+
// making @Input() format in component just setting the timeframe
|
|
247
|
+
this.format$ = new BehaviorSubject(DateFromats.MAT_DEFAULT_DATE_FORMAT);
|
|
245
248
|
this.updatedQuarter$ = new Subject();
|
|
246
249
|
this.weekSelectionChange$ = new Subject();
|
|
247
250
|
this.updatedDateAndClose$ = new Subject();
|
|
@@ -298,8 +301,9 @@ class DrDatePickerService {
|
|
|
298
301
|
return this.formatConfig[timeframe];
|
|
299
302
|
}
|
|
300
303
|
updateTimeframeAndFormat(format) {
|
|
301
|
-
const normalizedFormat = this.normalizeValue(format);
|
|
304
|
+
const normalizedFormat = this.normalizeValue(format || this.format$.getValue());
|
|
302
305
|
this.timeframe = this.getTimeframe(normalizedFormat);
|
|
306
|
+
this.format$.next(this.getConfiguredFormat(this.timeframe));
|
|
303
307
|
}
|
|
304
308
|
normalizeValue(value) {
|
|
305
309
|
return value.replace(/d/g, 'D');
|
|
@@ -1053,7 +1057,7 @@ class DrModelDebounceChangeDirective {
|
|
|
1053
1057
|
|
|
1054
1058
|
const _c0$G = ["prefix"];
|
|
1055
1059
|
const _c1$j = ["suffix"];
|
|
1056
|
-
const _c2$
|
|
1060
|
+
const _c2$9 = ["inputRef"];
|
|
1057
1061
|
function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1058
1062
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
1059
1063
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -1098,8 +1102,8 @@ function DrInputComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
1098
1102
|
i0.ɵɵadvance(1);
|
|
1099
1103
|
i0.ɵɵtextInterpolate1(" ", ctx_r5._buttonOptions.text, "\n");
|
|
1100
1104
|
} }
|
|
1101
|
-
const _c3$
|
|
1102
|
-
const _c4$
|
|
1105
|
+
const _c3$7 = [[["", "prefixIcon", ""]], [["", "suffixIcon", ""]]];
|
|
1106
|
+
const _c4$5 = ["[prefixIcon]", "[suffixIcon]"];
|
|
1103
1107
|
class DrInputComponent {
|
|
1104
1108
|
set disabled(value) {
|
|
1105
1109
|
this.setDisabledState(value);
|
|
@@ -1268,7 +1272,7 @@ class DrInputComponent {
|
|
|
1268
1272
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
|
|
1269
1273
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suffixIcon = _t.first);
|
|
1270
1274
|
} }, viewQuery: function DrInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1271
|
-
i0.ɵɵviewQuery(_c2$
|
|
1275
|
+
i0.ɵɵviewQuery(_c2$9, 5);
|
|
1272
1276
|
} if (rf & 2) {
|
|
1273
1277
|
let _t;
|
|
1274
1278
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
@@ -1282,8 +1286,8 @@ class DrInputComponent {
|
|
|
1282
1286
|
useExisting: forwardRef((() => DrInputComponent)),
|
|
1283
1287
|
multi: true,
|
|
1284
1288
|
},
|
|
1285
|
-
])], ngContentSelectors: _c4$
|
|
1286
|
-
i0.ɵɵprojectionDef(_c3$
|
|
1289
|
+
])], ngContentSelectors: _c4$5, 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$7);
|
|
1287
1291
|
i0.ɵɵprojection(0);
|
|
1288
1292
|
i0.ɵɵtemplate(1, DrInputComponent_ng_container_1_Template, 3, 11, "ng-container", 0);
|
|
1289
1293
|
i0.ɵɵtemplate(2, DrInputComponent_ng_template_2_Template, 2, 14, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -1381,9 +1385,9 @@ class DrInputComponent {
|
|
|
1381
1385
|
|
|
1382
1386
|
const _c0$F = ["labelTemplate"];
|
|
1383
1387
|
const _c1$i = ["multiLabelTemplate"];
|
|
1384
|
-
const _c2$
|
|
1385
|
-
const _c3$
|
|
1386
|
-
const _c4$
|
|
1388
|
+
const _c2$8 = ["optionTemplate"];
|
|
1389
|
+
const _c3$6 = ["optionHeaderTemplate"];
|
|
1390
|
+
const _c4$4 = ["optionFooterTemplate"];
|
|
1387
1391
|
const _c5 = function (a0) { return { item: a0 }; };
|
|
1388
1392
|
function DrSelectComponent_2_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
1389
1393
|
i0.ɵɵelementContainer(0, 6);
|
|
@@ -1618,9 +1622,9 @@ class DrSelectComponent {
|
|
|
1618
1622
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1619
1623
|
i0.ɵɵcontentQuery(dirIndex, _c0$F, 5);
|
|
1620
1624
|
i0.ɵɵcontentQuery(dirIndex, _c1$i, 5);
|
|
1621
|
-
i0.ɵɵcontentQuery(dirIndex, _c2$
|
|
1622
|
-
i0.ɵɵcontentQuery(dirIndex, _c3$
|
|
1623
|
-
i0.ɵɵcontentQuery(dirIndex, _c4$
|
|
1625
|
+
i0.ɵɵcontentQuery(dirIndex, _c2$8, 5);
|
|
1626
|
+
i0.ɵɵcontentQuery(dirIndex, _c3$6, 5);
|
|
1627
|
+
i0.ɵɵcontentQuery(dirIndex, _c4$4, 5);
|
|
1624
1628
|
} if (rf & 2) {
|
|
1625
1629
|
let _t;
|
|
1626
1630
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.labelTemplate = _t.first);
|
|
@@ -2310,7 +2314,7 @@ class DrDatePickerComponent {
|
|
|
2310
2314
|
this.displayValue$ = combineLatest([
|
|
2311
2315
|
this.datePickerService.innerValue$.pipe(distinctUntilChanged$1()),
|
|
2312
2316
|
this.datePickerService.timeframe$.pipe(distinctUntilChanged$1()),
|
|
2313
|
-
]).pipe(startWith$1([null, null]), map
|
|
2317
|
+
]).pipe(startWith$1([null, null]), map(([value, timeframe]) => this.transformDisplayedValue(value, timeframe)), tap((value) => {
|
|
2314
2318
|
if (value && this.datePickerService.calendarInstance) {
|
|
2315
2319
|
this.datePickerService.calendarInstance.activeDate = value;
|
|
2316
2320
|
this.datePickerService.calendarInstance.selected = value;
|
|
@@ -2520,6 +2524,7 @@ class DrDatePickerComponent {
|
|
|
2520
2524
|
timeframe = this.datePickerService.getTimeframe(format);
|
|
2521
2525
|
}
|
|
2522
2526
|
this.datePickerService.timeframe = timeframe;
|
|
2527
|
+
this.datePickerService.format$.next(format);
|
|
2523
2528
|
}
|
|
2524
2529
|
onOpen() {
|
|
2525
2530
|
this.opened$.next(true);
|
|
@@ -4060,7 +4065,7 @@ class DrDynamicTagComponent {
|
|
|
4060
4065
|
return (valueFromConfig || currentValues[0]);
|
|
4061
4066
|
}
|
|
4062
4067
|
getParentValueKey() {
|
|
4063
|
-
return map$
|
|
4068
|
+
return map$1(this.connectedTags, (connectedTag) => {
|
|
4064
4069
|
if (isNumber(connectedTag.value)) {
|
|
4065
4070
|
const momentData = moment__default.unix(connectedTag.value);
|
|
4066
4071
|
const convertedParentKey = this.parentKeyFormatterFn
|
|
@@ -4248,7 +4253,7 @@ class DrTagComponent {
|
|
|
4248
4253
|
}
|
|
4249
4254
|
onDynamicHandler(event) {
|
|
4250
4255
|
const connectedDateTagConfig = find(this.tagsConfig, (tagConfig) => tagConfig.name === event.name);
|
|
4251
|
-
this.connectedTags = map$
|
|
4256
|
+
this.connectedTags = map$1(this.connectedTags, (tag) => {
|
|
4252
4257
|
if (tag.id === connectedDateTagConfig.id) {
|
|
4253
4258
|
tag.value = event.value;
|
|
4254
4259
|
tag.locked = event.locked;
|
|
@@ -5119,7 +5124,7 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
5119
5124
|
this.isNextDateDisabled = false;
|
|
5120
5125
|
this.isPrevDateDisabled = false;
|
|
5121
5126
|
this.onChangeDebounced$ = new Subject();
|
|
5122
|
-
this.displayedFormattedValue$ = this.displayValue$.pipe(takeUntil$1(this.destroyed$), map
|
|
5127
|
+
this.displayedFormattedValue$ = this.displayValue$.pipe(takeUntil$1(this.destroyed$), map((value) => {
|
|
5123
5128
|
if (!value)
|
|
5124
5129
|
return this.placeholder;
|
|
5125
5130
|
return (this.datePickerService.getDisplayPrefix() +
|
|
@@ -5568,7 +5573,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
|
|
|
5568
5573
|
i0.ɵɵadvance(1);
|
|
5569
5574
|
i0.ɵɵtextInterpolate(index_r11 + 1);
|
|
5570
5575
|
} }
|
|
5571
|
-
const _c2$
|
|
5576
|
+
const _c2$7 = function (a0, a1, a2) { return { index: a0, isLast: a1, step: a2 }; };
|
|
5572
5577
|
function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
5573
5578
|
i0.ɵɵelementContainer(0, 25);
|
|
5574
5579
|
} if (rf & 2) {
|
|
@@ -5578,7 +5583,7 @@ function StepperComponent_ng_container_3_div_1_ng_container_10_Template(rf, ctx)
|
|
|
5578
5583
|
const step_r10 = ctx_r23.$implicit;
|
|
5579
5584
|
i0.ɵɵnextContext();
|
|
5580
5585
|
const _r6 = i0.ɵɵreference(8);
|
|
5581
|
-
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));
|
|
5582
5587
|
} }
|
|
5583
5588
|
function StepperComponent_ng_container_3_div_1_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
5584
5589
|
i0.ɵɵelementStart(0, "span", 26);
|
|
@@ -5598,9 +5603,9 @@ function StepperComponent_ng_container_3_div_1_ng_container_12_Template(rf, ctx)
|
|
|
5598
5603
|
const step_r10 = ctx_r25.$implicit;
|
|
5599
5604
|
i0.ɵɵnextContext();
|
|
5600
5605
|
const _r6 = i0.ɵɵreference(8);
|
|
5601
|
-
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));
|
|
5602
5607
|
} }
|
|
5603
|
-
const _c3$
|
|
5608
|
+
const _c3$5 = function (a0) { return { step: a0 }; };
|
|
5604
5609
|
function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
5605
5610
|
const _r28 = i0.ɵɵgetCurrentView();
|
|
5606
5611
|
i0.ɵɵelementStart(0, "div", 10);
|
|
@@ -5627,7 +5632,7 @@ function StepperComponent_ng_container_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
5627
5632
|
i0.ɵɵclassProp("step-setup", ctx_r14.inlineLabels);
|
|
5628
5633
|
i0.ɵɵattribute("data-analytics", ctx_r14.getDataAnalyticsTag(step_r10));
|
|
5629
5634
|
i0.ɵɵadvance(1);
|
|
5630
|
-
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");
|
|
5631
5636
|
i0.ɵɵadvance(1);
|
|
5632
5637
|
i0.ɵɵclassProp("active", ctx_r14.currentStep === step_r10)("completed", step_r10.completed);
|
|
5633
5638
|
i0.ɵɵadvance(1);
|
|
@@ -6694,7 +6699,7 @@ function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1
|
|
|
6694
6699
|
i0.ɵɵadvance(1);
|
|
6695
6700
|
i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
|
|
6696
6701
|
} }
|
|
6697
|
-
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 }; };
|
|
6698
6703
|
class DrChatSuggestionsComponent {
|
|
6699
6704
|
get hiddenValues() {
|
|
6700
6705
|
return JSON.parse(localStorage.getItem('aiChatSuggestions')) || [];
|
|
@@ -6800,7 +6805,7 @@ class DrChatSuggestionsComponent {
|
|
|
6800
6805
|
i0.ɵɵtemplate(3, DrChatSuggestionsComponent_ng_template_3_Template, 2, 6, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
6801
6806
|
} if (rf & 2) {
|
|
6802
6807
|
const _r2 = i0.ɵɵreference(4);
|
|
6803
|
-
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));
|
|
6804
6809
|
i0.ɵɵadvance(2);
|
|
6805
6810
|
i0.ɵɵproperty("ngIf", ctx.buttonMode)("ngIfElse", _r2);
|
|
6806
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 }); }
|
|
@@ -6825,7 +6830,7 @@ class DrChatSuggestionsComponent {
|
|
|
6825
6830
|
|
|
6826
6831
|
const _c0$p = ["drChatHeader"];
|
|
6827
6832
|
const _c1$b = ["drChatContent"];
|
|
6828
|
-
const _c2$
|
|
6833
|
+
const _c2$5 = ["messagesContainer"];
|
|
6829
6834
|
function DrChatComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
6830
6835
|
i0.ɵɵelementContainer(0, 8);
|
|
6831
6836
|
} if (rf & 2) {
|
|
@@ -6869,8 +6874,8 @@ function DrChatComponent_dr_chat_suggestions_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
6869
6874
|
i0.ɵɵclassProp("chat__suggestions--full-height", ctx_r3.fullScreen && !(ctx_r3.messages == null ? null : ctx_r3.messages.length));
|
|
6870
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));
|
|
6871
6876
|
} }
|
|
6872
|
-
const _c3$
|
|
6873
|
-
const _c4$
|
|
6877
|
+
const _c3$4 = [[["dr-chat-alert"]], [["dr-chat-form"]], [["dr-ai-search-input"]], [["dr-chat-message"]]];
|
|
6878
|
+
const _c4$3 = ["dr-chat-alert", "dr-chat-form", "dr-ai-search-input", "dr-chat-message"];
|
|
6874
6879
|
class DrChatComponent {
|
|
6875
6880
|
set contentUpdateSubject(value) {
|
|
6876
6881
|
if (value) {
|
|
@@ -6960,14 +6965,14 @@ class DrChatComponent {
|
|
|
6960
6965
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatContent = _t.first);
|
|
6961
6966
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messages = _t);
|
|
6962
6967
|
} }, viewQuery: function DrChatComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6963
|
-
i0.ɵɵviewQuery(_c2$
|
|
6968
|
+
i0.ɵɵviewQuery(_c2$5, 5);
|
|
6964
6969
|
i0.ɵɵviewQuery(DrChatSuggestionsComponent, 5);
|
|
6965
6970
|
} if (rf & 2) {
|
|
6966
6971
|
let _t;
|
|
6967
6972
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messagesContainer = _t.first);
|
|
6968
6973
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._chatSuggestions = _t.first);
|
|
6969
|
-
} }, 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$
|
|
6970
|
-
i0.ɵɵprojectionDef(_c3$
|
|
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$3, 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$4);
|
|
6971
6976
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6972
6977
|
i0.ɵɵtemplate(2, DrChatComponent_ng_container_2_Template, 1, 1, "ng-container", 2);
|
|
6973
6978
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -7060,9 +7065,9 @@ function DrChatFormDropdownComponent_i_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
7060
7065
|
function DrChatFormDropdownComponent_dr_dot_flashing_15_Template(rf, ctx) { if (rf & 1) {
|
|
7061
7066
|
i0.ɵɵelement(0, "dr-dot-flashing", 15);
|
|
7062
7067
|
} }
|
|
7063
|
-
const _c2$
|
|
7064
|
-
const _c3$
|
|
7065
|
-
const _c4$
|
|
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
|
+
const _c4$2 = ["*"];
|
|
7066
7071
|
class DrChatFormDropdownComponent {
|
|
7067
7072
|
constructor(cdr, domSanitizer) {
|
|
7068
7073
|
this.cdr = cdr;
|
|
@@ -7230,7 +7235,7 @@ class DrChatFormDropdownComponent {
|
|
|
7230
7235
|
i0.ɵɵlistener("drop", function DrChatFormDropdownComponent_drop_HostBindingHandler($event) { return ctx.onDrop($event); })("dragover", function DrChatFormDropdownComponent_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragleave", function DrChatFormDropdownComponent_dragleave_HostBindingHandler($event) { return ctx.onDragLeave($event); });
|
|
7231
7236
|
} if (rf & 2) {
|
|
7232
7237
|
i0.ɵɵclassProp("file-over", ctx.fileOver);
|
|
7233
|
-
} }, inputs: { isUploadingFiles: "isUploadingFiles", message: "message", messagePlaceholder: "messagePlaceholder", dropFiles: "dropFiles", dropFilePlaceholder: "dropFilePlaceholder", waitForReply: "waitForReply", showDotFlashing: "showDotFlashing" }, outputs: { send: "send", uploadFiles: "uploadFiles", abort: "abort", inputChange: "inputChange" }, ngContentSelectors: _c4$
|
|
7238
|
+
} }, inputs: { isUploadingFiles: "isUploadingFiles", message: "message", messagePlaceholder: "messagePlaceholder", dropFiles: "dropFiles", dropFilePlaceholder: "dropFilePlaceholder", waitForReply: "waitForReply", showDotFlashing: "showDotFlashing" }, outputs: { send: "send", uploadFiles: "uploadFiles", abort: "abort", inputChange: "inputChange" }, ngContentSelectors: _c4$2, decls: 16, vars: 20, consts: [[1, "message-row", 3, "ngClass"], [1, "message-row__input", 3, "ngClass"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent", 4, "ngIf"], [1, "message-row__input-textarea-wrap"], ["type", "text", 3, "ngModel", "rows", "placeholder", "focus", "blur", "mouseenter", "mouseleave", "ngModelChange", "keydown.enter"], ["textAreaElement", ""], [1, "message-row__btns"], ["type", "file", "hidden", "", "multiple", "", 3, "change"], ["fileInput", ""], ["class", "dr-icon-send-arrow-up send-button", 3, "click", 4, "ngIf"], ["class", "dr-icon-stop abort-button", 3, "click", 4, "ngIf"], ["class", "wait-reply-dot-flashing", 4, "ngIf"], [3, "files", "isRemovable", "maxLengthText", "removeFileEvent"], [1, "dr-icon-send-arrow-up", "send-button", 3, "click"], [1, "dr-icon-stop", "abort-button", 3, "click"], [1, "wait-reply-dot-flashing"]], template: function DrChatFormDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7234
7239
|
i0.ɵɵprojectionDef();
|
|
7235
7240
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
7236
7241
|
i0.ɵɵpipe(2, "async");
|
|
@@ -7252,9 +7257,9 @@ class DrChatFormDropdownComponent {
|
|
|
7252
7257
|
} if (rf & 2) {
|
|
7253
7258
|
const _r1 = i0.ɵɵreference(7);
|
|
7254
7259
|
let tmp_1_0;
|
|
7255
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$
|
|
7260
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$4, ctx.isUploadingFiles));
|
|
7256
7261
|
i0.ɵɵadvance(1);
|
|
7257
|
-
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));
|
|
7258
7263
|
i0.ɵɵadvance(2);
|
|
7259
7264
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 13, ctx.droppedFiles$).length);
|
|
7260
7265
|
i0.ɵɵadvance(3);
|
|
@@ -7859,9 +7864,9 @@ class DrErrorComponent {
|
|
|
7859
7864
|
this.displayAsLabel = false;
|
|
7860
7865
|
this.noIcon = false;
|
|
7861
7866
|
this.controlChange$ = new BehaviorSubject(null);
|
|
7862
|
-
this.controlErrorStatus$ = this.controlChange$.pipe(filter$1(Boolean), switchMap$1((control) => control.statusChanges.pipe().pipe(map(() => control))), map((control) => control.status === 'INVALID' && !control.pristine));
|
|
7863
|
-
this.error$ = this.controlErrorStatus$.pipe(observeOn(asyncScheduler), withLatestFrom(this.controlChange$), map(([show, control]) => [show, this.displayAsLabel ? this.errorString(control) : this.label]), map(([show, label]) => (show ? label : null)));
|
|
7864
|
-
this.warning$ = this.controlChange$.pipe(map((control) => !!control.errors?.isWarning));
|
|
7867
|
+
this.controlErrorStatus$ = this.controlChange$.pipe(filter$1(Boolean), switchMap$1((control) => control.statusChanges.pipe().pipe(map$2(() => control))), map$2((control) => control.status === 'INVALID' && !control.pristine));
|
|
7868
|
+
this.error$ = this.controlErrorStatus$.pipe(observeOn(asyncScheduler), withLatestFrom(this.controlChange$), map$2(([show, control]) => [show, this.displayAsLabel ? this.errorString(control) : this.label]), map$2(([show, label]) => (show ? label : null)));
|
|
7869
|
+
this.warning$ = this.controlChange$.pipe(map$2((control) => !!control.errors?.isWarning));
|
|
7865
7870
|
}
|
|
7866
7871
|
set control(value) {
|
|
7867
7872
|
if (value) {
|
|
@@ -8484,7 +8489,7 @@ class ScenarioService {
|
|
|
8484
8489
|
return;
|
|
8485
8490
|
if (!dateTag)
|
|
8486
8491
|
return;
|
|
8487
|
-
dateTag.subTags = map$
|
|
8492
|
+
dateTag.subTags = map$1(dateTag.subTags, (subTag) => {
|
|
8488
8493
|
subTag.hidden = tag.toggle && !includes(tag.acceptableSubTags, subTag.subType);
|
|
8489
8494
|
return subTag;
|
|
8490
8495
|
});
|
|
@@ -9431,7 +9436,7 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx)
|
|
|
9431
9436
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
9432
9437
|
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$9, act_r2));
|
|
9433
9438
|
} }
|
|
9434
|
-
const _c2$
|
|
9439
|
+
const _c2$3 = function () { return { withoutArrow: true }; };
|
|
9435
9440
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
9436
9441
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
9437
9442
|
i0.ɵɵelementStart(0, "dr-dropdown-item", 4);
|
|
@@ -9444,7 +9449,7 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
9444
9449
|
const act_r2 = ctx.$implicit;
|
|
9445
9450
|
const index_r3 = ctx.index;
|
|
9446
9451
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
9447
|
-
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);
|
|
9448
9453
|
i0.ɵɵattribute("data-analytics", ctx_r1.getDataAnalyticsTag(act_r2, index_r3));
|
|
9449
9454
|
i0.ɵɵadvance(1);
|
|
9450
9455
|
i0.ɵɵproperty("ngIf", !act_r2.templateRef);
|
|
@@ -9453,8 +9458,8 @@ function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1)
|
|
|
9453
9458
|
i0.ɵɵadvance(1);
|
|
9454
9459
|
i0.ɵɵproperty("ngIf", act_r2.templateRef);
|
|
9455
9460
|
} }
|
|
9456
|
-
const _c3$
|
|
9457
|
-
const _c4 = ["dr-dropdown-item"];
|
|
9461
|
+
const _c3$2 = [[["dr-dropdown-item"]]];
|
|
9462
|
+
const _c4$1 = ["dr-dropdown-item"];
|
|
9458
9463
|
class DrDropdownComponent {
|
|
9459
9464
|
set options(data) {
|
|
9460
9465
|
if (data) {
|
|
@@ -9574,8 +9579,8 @@ class DrDropdownComponent {
|
|
|
9574
9579
|
} if (rf & 2) {
|
|
9575
9580
|
let _t;
|
|
9576
9581
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
9577
|
-
} }, 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) {
|
|
9578
|
-
i0.ɵɵprojectionDef(_c3$
|
|
9582
|
+
} }, inputs: { options: "options" }, outputs: { onAction: "action" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c4$1, decls: 6, vars: 5, consts: [[1, "dr-dropdown"], ["menuContainer", ""], ["tabindex", "-1", "role", "listbox", 1, "dr-dropdown__container", 3, "mouseenter", "mouseleave"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown", 4, "ngFor", "ngForOf"], ["drDropdownChild", "", "role", "option", "tabindex", "0", 3, "drTooltip", "drTooltipPosition", "drTooltipOptions", "drTooltipClass", "drDropdown", "drDropdownClass", "drDropdownInHover", "drDropdownPosition", "disabled", "selected", "divider", "mousedown"], ["dropdownItemContent", "", 4, "ngIf"], ["dropdownItemActions", "", 4, "ngIf"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["dropdownItemContent", ""], ["class", "dr-dropdown__icon", 3, "class", 4, "ngIf"], [1, "dr-dropdown__text"], [1, "dr-dropdown__icon"], ["dropdownItemActions", ""], [3, "class", "showOnHover", "mousedown", 4, "ngFor", "ngForOf"], ["class", "dr-icon-arrow-right", 4, "ngIf"], [3, "mousedown"], [1, "dr-icon-arrow-right"], ["dropdownItemContent", "", 3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function DrDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9583
|
+
i0.ɵɵprojectionDef(_c3$2);
|
|
9579
9584
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
9580
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(); });
|
|
9581
9586
|
i0.ɵɵprojection(3);
|
|
@@ -9660,7 +9665,7 @@ class DropdownInstanceService {
|
|
|
9660
9665
|
return this.instances.slice(this.instances.indexOf(ref));
|
|
9661
9666
|
}
|
|
9662
9667
|
inactive(ref) {
|
|
9663
|
-
return this.instances$.pipe(map(() => this.getSequence(ref)), filter$1((value) => !!value.length), switchMap$1((value) => interval(200).pipe(map(() => value))), filter$1((emissions) => emissions.every((value) => !value.active())), takeUntil(this.destroy$));
|
|
9668
|
+
return this.instances$.pipe(map$2(() => this.getSequence(ref)), filter$1((value) => !!value.length), switchMap$1((value) => interval(200).pipe(map$2(() => value))), filter$1((emissions) => emissions.every((value) => !value.active())), takeUntil(this.destroy$));
|
|
9664
9669
|
}
|
|
9665
9670
|
}
|
|
9666
9671
|
|
|
@@ -10346,8 +10351,8 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10346
10351
|
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
10347
10352
|
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$5, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$c, ctx_r1.chevronRotationDegree)));
|
|
10348
10353
|
} }
|
|
10349
|
-
const _c2$
|
|
10350
|
-
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", "*"];
|
|
10351
10356
|
class DrAccordionItemHeaderComponent {
|
|
10352
10357
|
get isCollapsed() {
|
|
10353
10358
|
return this.accordionItem.collapsed;
|
|
@@ -10402,8 +10407,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
10402
10407
|
i0.ɵɵattribute("aria-expanded", ctx.expanded)("tabindex", ctx.tabbable)("aria-disabled", ctx.disabled);
|
|
10403
10408
|
i0.ɵɵclassMap(ctx.theme);
|
|
10404
10409
|
i0.ɵɵclassProp("accordion-item-header-collapsed", ctx.isCollapsed)("accordion-item-header-expanded", ctx.expanded);
|
|
10405
|
-
} }, 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) {
|
|
10406
|
-
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);
|
|
10407
10412
|
i0.ɵɵtemplate(0, DrAccordionItemHeaderComponent_i_0_Template, 1, 4, "i", 0);
|
|
10408
10413
|
i0.ɵɵtemplate(1, DrAccordionItemHeaderComponent_i_1_Template, 1, 8, "i", 1);
|
|
10409
10414
|
i0.ɵɵprojection(2);
|
|
@@ -10799,7 +10804,7 @@ function DialogWrapperComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
10799
10804
|
i0.ɵɵadvance(1);
|
|
10800
10805
|
i0.ɵɵproperty("ngIf", ctx_r6.dialogData.acceptButton);
|
|
10801
10806
|
} }
|
|
10802
|
-
const _c2 = function (a0) { return { "flex-position": a0 }; };
|
|
10807
|
+
const _c2$1 = function (a0) { return { "flex-position": a0 }; };
|
|
10803
10808
|
class DialogWrapperComponent {
|
|
10804
10809
|
get elementClass() {
|
|
10805
10810
|
return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
|
|
@@ -10910,7 +10915,7 @@ class DialogWrapperComponent {
|
|
|
10910
10915
|
i0.ɵɵproperty("ngIf", ctx.dialogData.title);
|
|
10911
10916
|
i0.ɵɵadvance(1);
|
|
10912
10917
|
i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
|
|
10913
|
-
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));
|
|
10914
10919
|
i0.ɵɵadvance(1);
|
|
10915
10920
|
i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
|
|
10916
10921
|
i0.ɵɵadvance(1);
|
|
@@ -13628,24 +13633,42 @@ class DrChipComponent {
|
|
|
13628
13633
|
type: Output
|
|
13629
13634
|
}] }); })();
|
|
13630
13635
|
|
|
13631
|
-
|
|
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) {
|
|
13632
13647
|
i0.ɵɵelementContainer(0);
|
|
13633
13648
|
} }
|
|
13634
|
-
const
|
|
13635
|
-
const
|
|
13636
|
-
function
|
|
13637
|
-
|
|
13638
|
-
i0.ɵɵ
|
|
13649
|
+
const _c2 = function (a0) { return { "dr-gallery-item_active": a0 }; };
|
|
13650
|
+
const _c3 = function () { return {}; };
|
|
13651
|
+
const _c4 = function (a0) { return { $implicit: a0 }; };
|
|
13652
|
+
function DrGalleryComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
13653
|
+
i0.ɵɵelementStart(0, "div", 6, 7);
|
|
13654
|
+
i0.ɵɵtemplate(2, DrGalleryComponent_div_4_ng_container_2_Template, 1, 0, "ng-container", 8);
|
|
13639
13655
|
i0.ɵɵelementEnd();
|
|
13640
13656
|
} if (rf & 2) {
|
|
13641
|
-
const
|
|
13642
|
-
const
|
|
13643
|
-
const
|
|
13644
|
-
i0.ɵɵ
|
|
13645
|
-
i0.ɵɵ
|
|
13646
|
-
i0.ɵɵ
|
|
13647
|
-
i0.ɵɵ
|
|
13648
|
-
|
|
13657
|
+
const item_r6 = ctx.$implicit;
|
|
13658
|
+
const i_r7 = ctx.index;
|
|
13659
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
13660
|
+
i0.ɵɵstyleProp("transition", ctx_r2.transition);
|
|
13661
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c2, ctx_r2.centerIndex === i_r7))("ngStyle", ctx_r2.modeType === "loop" ? ctx_r2.getStyle() : i0.ɵɵpureFunction0(8, _c3));
|
|
13662
|
+
i0.ɵɵadvance(2);
|
|
13663
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.template)("ngTemplateOutletContext", i0.ɵɵpureFunction1(9, _c4, 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");
|
|
13649
13672
|
} }
|
|
13650
13673
|
class DrGalleryComponent {
|
|
13651
13674
|
set items(value) {
|
|
@@ -13670,25 +13693,57 @@ class DrGalleryComponent {
|
|
|
13670
13693
|
get centerIndex() {
|
|
13671
13694
|
return this.itemsCount > 1 && this.itemsCount % 2 !== 0 ? this.activeIndex + Math.floor(this.itemsCount / 2) : null;
|
|
13672
13695
|
}
|
|
13673
|
-
ngOnChanges() {
|
|
13674
|
-
this.activeIndex = this.itemsCount;
|
|
13675
|
-
this.initializeCarousel();
|
|
13676
|
-
this.updateTransform();
|
|
13677
|
-
}
|
|
13678
13696
|
constructor(cdr) {
|
|
13679
13697
|
this.cdr = cdr;
|
|
13680
13698
|
this._items = [];
|
|
13681
13699
|
this._itemsCount = 3;
|
|
13682
13700
|
this.defaultTransition = '250ms ease-in-out';
|
|
13683
13701
|
this.noTransition = '0ms';
|
|
13702
|
+
this.modeType = 'loop';
|
|
13703
|
+
this.isOutsideBtns = false;
|
|
13684
13704
|
this.activeIndex = 0;
|
|
13685
13705
|
this.carouselItems = [];
|
|
13686
|
-
this.transform =
|
|
13706
|
+
this.transform = 'translateX(0%)';
|
|
13687
13707
|
this.transition = this.defaultTransition;
|
|
13708
|
+
this.itemOffsets = [];
|
|
13709
|
+
this.itemWidths = [];
|
|
13710
|
+
}
|
|
13711
|
+
ngAfterViewInit() {
|
|
13712
|
+
// Wait for initial render
|
|
13713
|
+
setTimeout(() => {
|
|
13714
|
+
this.calculateItemOffsets();
|
|
13715
|
+
this.updateTransform();
|
|
13716
|
+
});
|
|
13688
13717
|
}
|
|
13689
13718
|
initializeCarousel() {
|
|
13690
|
-
|
|
13691
|
-
|
|
13719
|
+
if (this.modeType === 'loop') {
|
|
13720
|
+
this.carouselItems = [
|
|
13721
|
+
...this._items.slice(-this.itemsCount),
|
|
13722
|
+
...this._items,
|
|
13723
|
+
...this._items.slice(0, this.itemsCount),
|
|
13724
|
+
];
|
|
13725
|
+
this.activeIndex = this.itemsCount;
|
|
13726
|
+
}
|
|
13727
|
+
else {
|
|
13728
|
+
this.carouselItems = [...this._items];
|
|
13729
|
+
this.activeIndex = 0;
|
|
13730
|
+
}
|
|
13731
|
+
setTimeout(() => {
|
|
13732
|
+
this.calculateItemOffsets();
|
|
13733
|
+
this.updateTransform();
|
|
13734
|
+
});
|
|
13735
|
+
}
|
|
13736
|
+
calculateItemOffsets() {
|
|
13737
|
+
this.itemOffsets = [];
|
|
13738
|
+
this.itemWidths = [];
|
|
13739
|
+
let offset = 0;
|
|
13740
|
+
const elements = this.itemElements.toArray();
|
|
13741
|
+
for (const el of elements) {
|
|
13742
|
+
const width = el.nativeElement.offsetWidth;
|
|
13743
|
+
this.itemOffsets.push(offset);
|
|
13744
|
+
this.itemWidths.push(width);
|
|
13745
|
+
offset += width;
|
|
13746
|
+
}
|
|
13692
13747
|
}
|
|
13693
13748
|
getStyle() {
|
|
13694
13749
|
const percent = `calc(${100 / this.itemsCount}%)`;
|
|
@@ -13699,20 +13754,54 @@ class DrGalleryComponent {
|
|
|
13699
13754
|
};
|
|
13700
13755
|
}
|
|
13701
13756
|
prev() {
|
|
13702
|
-
this.
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13757
|
+
if (this.modeType === 'loop') {
|
|
13758
|
+
this.activeIndex--;
|
|
13759
|
+
this.transition = this.defaultTransition;
|
|
13760
|
+
this.updateTransform();
|
|
13761
|
+
if (this.activeIndex <= 0) {
|
|
13762
|
+
this.resetIndexAfterDelay(this.carouselItems.length - this.items.length);
|
|
13763
|
+
}
|
|
13764
|
+
}
|
|
13765
|
+
else {
|
|
13766
|
+
if (this.activeIndex > 0) {
|
|
13767
|
+
this.activeIndex--;
|
|
13768
|
+
this.updateTransform();
|
|
13769
|
+
}
|
|
13707
13770
|
}
|
|
13708
13771
|
}
|
|
13709
13772
|
next() {
|
|
13710
|
-
this.
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
this.
|
|
13773
|
+
if (this.modeType === 'loop') {
|
|
13774
|
+
this.activeIndex++;
|
|
13775
|
+
this.transition = this.defaultTransition;
|
|
13776
|
+
this.updateTransform();
|
|
13777
|
+
if (this.activeIndex + this.itemsCount > this.carouselItems.length - 1) {
|
|
13778
|
+
this.resetIndexAfterDelay(this.itemsCount);
|
|
13779
|
+
}
|
|
13715
13780
|
}
|
|
13781
|
+
else {
|
|
13782
|
+
if (this.activeIndex + 1 < this.carouselItems.length) {
|
|
13783
|
+
this.activeIndex++;
|
|
13784
|
+
this.updateTransform();
|
|
13785
|
+
}
|
|
13786
|
+
}
|
|
13787
|
+
}
|
|
13788
|
+
navigate(index) {
|
|
13789
|
+
this.activeIndex = index;
|
|
13790
|
+
this.updateTransform();
|
|
13791
|
+
}
|
|
13792
|
+
get canGoPrev() {
|
|
13793
|
+
if (this.modeType === 'loop')
|
|
13794
|
+
return true;
|
|
13795
|
+
return !!(this.activeIndex > 0);
|
|
13796
|
+
}
|
|
13797
|
+
get canGoNext() {
|
|
13798
|
+
if (this.modeType === 'loop')
|
|
13799
|
+
return true;
|
|
13800
|
+
const containerWidth = this.containerRef?.nativeElement?.offsetWidth || 0;
|
|
13801
|
+
const currentOffset = this.itemOffsets[this.activeIndex] || 0;
|
|
13802
|
+
const lastIndex = this.itemOffsets.length - 1;
|
|
13803
|
+
const totalContentWidth = this.itemOffsets[lastIndex] + this.itemWidths[lastIndex];
|
|
13804
|
+
return currentOffset + containerWidth < totalContentWidth - 1;
|
|
13716
13805
|
}
|
|
13717
13806
|
resetIndexAfterDelay(newIndex) {
|
|
13718
13807
|
setTimeout(() => {
|
|
@@ -13722,9 +13811,17 @@ class DrGalleryComponent {
|
|
|
13722
13811
|
}, 250);
|
|
13723
13812
|
}
|
|
13724
13813
|
updateTransform(skipTransition = false) {
|
|
13725
|
-
|
|
13814
|
+
if (this.modeType === 'loop') {
|
|
13815
|
+
this.transform = `translateX(${-100 * (this.activeIndex / this.itemsCount)}%)`;
|
|
13816
|
+
}
|
|
13817
|
+
else {
|
|
13818
|
+
const offset = this.itemOffsets[this.activeIndex] || 0;
|
|
13819
|
+
this.transform = `translateX(-${offset}px)`;
|
|
13820
|
+
}
|
|
13726
13821
|
if (skipTransition)
|
|
13727
13822
|
this.transition = this.noTransition;
|
|
13823
|
+
else
|
|
13824
|
+
this.transition = this.defaultTransition;
|
|
13728
13825
|
this.cdr.markForCheck();
|
|
13729
13826
|
}
|
|
13730
13827
|
/** @nocollapse */ static { this.ɵfac = function DrGalleryComponent_Factory(t) { return new (t || DrGalleryComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
@@ -13733,36 +13830,51 @@ class DrGalleryComponent {
|
|
|
13733
13830
|
} if (rf & 2) {
|
|
13734
13831
|
let _t;
|
|
13735
13832
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.template = _t.first);
|
|
13736
|
-
} },
|
|
13737
|
-
i0.ɵɵ
|
|
13738
|
-
i0.ɵɵ
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
i0.ɵɵ
|
|
13833
|
+
} }, viewQuery: function DrGalleryComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13834
|
+
i0.ɵɵviewQuery(_c0$1, 5);
|
|
13835
|
+
i0.ɵɵviewQuery(_c1, 5);
|
|
13836
|
+
} if (rf & 2) {
|
|
13837
|
+
let _t;
|
|
13838
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerRef = _t.first);
|
|
13839
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemElements = _t);
|
|
13840
|
+
} }, inputs: { modeType: "modeType", isOutsideBtns: "isOutsideBtns", items: "items", itemsCount: "itemsCount" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 6, vars: 10, 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", "ngClass", "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, "ngClass", "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) {
|
|
13841
|
+
i0.ɵɵtemplate(0, DrGalleryComponent_dr_button_0_Template, 1, 1, "dr-button", 0);
|
|
13842
|
+
i0.ɵɵelementStart(1, "div", null, 1)(3, "div", 2);
|
|
13843
|
+
i0.ɵɵtemplate(4, DrGalleryComponent_div_4_Template, 3, 11, "div", 3);
|
|
13742
13844
|
i0.ɵɵelementEnd()();
|
|
13743
|
-
i0.ɵɵ
|
|
13744
|
-
i0.ɵɵlistener("click", function DrGalleryComponent_Template_dr_button_click_4_listener() { return ctx.next(); });
|
|
13745
|
-
i0.ɵɵelementEnd();
|
|
13845
|
+
i0.ɵɵtemplate(5, DrGalleryComponent_dr_button_5_Template, 1, 2, "dr-button", 4);
|
|
13746
13846
|
} if (rf & 2) {
|
|
13747
|
-
i0.ɵɵproperty("
|
|
13847
|
+
i0.ɵɵproperty("ngIf", !ctx.isOutsideBtns);
|
|
13848
|
+
i0.ɵɵadvance(1);
|
|
13849
|
+
i0.ɵɵclassMapInterpolate1("dr-gallery-caroousel dr-gallery-caroousel_", ctx.modeType, "");
|
|
13748
13850
|
i0.ɵɵadvance(2);
|
|
13749
13851
|
i0.ɵɵstyleProp("transition", ctx.transition)("transform", ctx.transform);
|
|
13750
13852
|
i0.ɵɵadvance(1);
|
|
13751
13853
|
i0.ɵɵproperty("ngForOf", ctx.carouselItems);
|
|
13752
13854
|
i0.ɵɵadvance(1);
|
|
13753
|
-
i0.ɵɵproperty("
|
|
13754
|
-
} }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgTemplateOutlet, DrInputsModule, DrButtonComponent], styles: [".dr-gallery-caroousel[_ngcontent-%COMP%]{display:block;position:relative;overflow:hidden}.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;padding:42px 24px;margin-top:-8px;flex-grow:1
|
|
13855
|
+
i0.ɵɵproperty("ngIf", !ctx.isOutsideBtns);
|
|
13856
|
+
} }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, DrInputsModule, DrButtonComponent], styles: [".dr-gallery-caroousel[_ngcontent-%COMP%]{display:block;position:relative;overflow:hidden}.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;padding:42px 24px;margin-top:-8px;flex-grow:1}.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}.dr-gallery-caroousel_loop[_ngcontent-%COMP%] .dr-gallery-item[_ngcontent-%COMP%]{width:100%;min-height:240px}.dr-gallery-caroousel_loop[_ngcontent-%COMP%] .dr-gallery-item_active[_ngcontent-%COMP%]{transform:scale(1.2)}"], changeDetection: 0 }); }
|
|
13755
13857
|
}
|
|
13756
13858
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrGalleryComponent, [{
|
|
13757
13859
|
type: Component,
|
|
13758
|
-
args: [{ selector: 'dr-gallery', imports: [CommonModule, DrInputsModule], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dr-button
|
|
13860
|
+
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 #carouselContainer class=\"dr-gallery-caroousel dr-gallery-caroousel_{{ modeType }}\">\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 [ngClass]=\"{ 'dr-gallery-item_active': centerIndex === i }\"\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-items{display:flex;position:relative;align-items:flex-end;will-change:transform}.dr-gallery-item{box-sizing:border-box;position:relative;padding:42px 24px;margin-top:-8px;flex-grow:1}.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}.dr-gallery-caroousel_loop .dr-gallery-item{width:100%;min-height:240px}.dr-gallery-caroousel_loop .dr-gallery-item_active{transform:scale(1.2)}\n"] }]
|
|
13759
13861
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { template: [{
|
|
13760
13862
|
type: ContentChild,
|
|
13761
13863
|
args: [TemplateRef]
|
|
13864
|
+
}], modeType: [{
|
|
13865
|
+
type: Input
|
|
13866
|
+
}], isOutsideBtns: [{
|
|
13867
|
+
type: Input
|
|
13762
13868
|
}], items: [{
|
|
13763
13869
|
type: Input
|
|
13764
13870
|
}], itemsCount: [{
|
|
13765
13871
|
type: Input
|
|
13872
|
+
}], containerRef: [{
|
|
13873
|
+
type: ViewChild,
|
|
13874
|
+
args: ['carouselContainer']
|
|
13875
|
+
}], itemElements: [{
|
|
13876
|
+
type: ViewChildren,
|
|
13877
|
+
args: ['carouselItem']
|
|
13766
13878
|
}] }); })();
|
|
13767
13879
|
|
|
13768
13880
|
/**
|
|
@@ -13911,7 +14023,7 @@ class DrawerContainer extends CdkDialogContainer {
|
|
|
13911
14023
|
}
|
|
13912
14024
|
container.style.transition = 'transform 0.5s cubic-bezier(0.32, 0.72, 0, 1)';
|
|
13913
14025
|
container.style.transform = `translate3d(0px, 0px, 0px)`;
|
|
13914
|
-
}), takeUntil(mouseup$))), map((event) => this.positionStrategy.extractMousePosition(event)), distinctUntilChanged(), tap$1((position) => {
|
|
14026
|
+
}), takeUntil(mouseup$))), map$2((event) => this.positionStrategy.extractMousePosition(event)), distinctUntilChanged(), tap$1((position) => {
|
|
13915
14027
|
let containerPosition = this.getContainerPosition(container);
|
|
13916
14028
|
containerPosition = Math.min(containerPosition, lastPosition);
|
|
13917
14029
|
lastPosition = Math.min(containerPosition, lastPosition);
|
|
@@ -14019,14 +14131,14 @@ class DrawerRef {
|
|
|
14019
14131
|
this.id = _ref.id;
|
|
14020
14132
|
// Emit when opening animation completes
|
|
14021
14133
|
containerInstance._animationStateChanged
|
|
14022
|
-
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take
|
|
14134
|
+
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'visible'), take(1))
|
|
14023
14135
|
.subscribe(() => {
|
|
14024
14136
|
this._afterOpened.next();
|
|
14025
14137
|
this._afterOpened.complete();
|
|
14026
14138
|
});
|
|
14027
14139
|
// Dispose overlay when closing animation is complete
|
|
14028
14140
|
containerInstance._animationStateChanged
|
|
14029
|
-
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take
|
|
14141
|
+
.pipe(filter((event) => event.phaseName === 'done' && event.toState === 'hidden'), take(1))
|
|
14030
14142
|
.subscribe(() => {
|
|
14031
14143
|
clearTimeout(this._closeFallbackTimeout);
|
|
14032
14144
|
this._ref.close(this._result);
|
|
@@ -14053,7 +14165,7 @@ class DrawerRef {
|
|
|
14053
14165
|
if (this.containerInstance && !this._afterDismissed.closed) {
|
|
14054
14166
|
// Transition the backdrop in parallel to the drawer.
|
|
14055
14167
|
this.containerInstance._animationStateChanged
|
|
14056
|
-
.pipe(filter((event) => event.phaseName === 'start'), take
|
|
14168
|
+
.pipe(filter((event) => event.phaseName === 'start'), take(1))
|
|
14057
14169
|
.subscribe((event) => {
|
|
14058
14170
|
// The logic that disposes of the overlay depends on the exit animation completing, however
|
|
14059
14171
|
// it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback
|