@datarailsshared/datarailsshared 1.6.31 → 1.6.33
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.33.tgz +0 -0
- package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.mjs +31 -21
- package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.mjs +2 -2
- package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.mjs +12 -9
- package/esm2022/lib/dr-inputs/date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-header.component.mjs +136 -0
- package/esm2022/lib/dr-inputs/date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-picker.component.mjs +148 -0
- package/esm2022/lib/dr-inputs/dr-inputs.module.mjs +11 -3
- package/esm2022/lib/dr-inputs/dr-select/dr-select.component.mjs +2 -2
- package/fesm2022/datarailsshared-datarailsshared.mjs +482 -201
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +3 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.d.ts +7 -5
- package/lib/dr-inputs/date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-header.component.d.ts +9 -0
- package/lib/dr-inputs/date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-picker.component.d.ts +23 -0
- package/lib/dr-inputs/dr-inputs.module.d.ts +12 -10
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.31.tgz +0 -0
|
@@ -5,7 +5,8 @@ import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
|
|
|
5
5
|
import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
|
6
6
|
import * as i1$3 from '@angular/material/core';
|
|
7
7
|
import { MAT_DATE_FORMATS, DateAdapter, MAT_DATE_LOCALE, MatNativeDateModule, MatCommonModule } from '@angular/material/core';
|
|
8
|
-
import moment from 'moment';
|
|
8
|
+
import * as moment from 'moment';
|
|
9
|
+
import moment__default from 'moment';
|
|
9
10
|
import * as i1$2 from '@angular/forms';
|
|
10
11
|
import { NG_VALUE_ACCESSOR, FormBuilder, FormGroup, FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
12
|
import { Observable, BehaviorSubject, distinctUntilChanged, Subject, startWith, takeUntil, combineLatest, noop as noop$3, 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';
|
|
@@ -181,7 +182,7 @@ class DrSharedUtils {
|
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
static getDateByTag(tag) {
|
|
184
|
-
const todayDate =
|
|
185
|
+
const todayDate = moment__default().utc().endOf('day');
|
|
185
186
|
switch (tag) {
|
|
186
187
|
case DateTags.TODAY:
|
|
187
188
|
return todayDate;
|
|
@@ -574,7 +575,7 @@ class WeekSelectorComponent {
|
|
|
574
575
|
});
|
|
575
576
|
this.calendar.stateChanges.pipe(startWith(null), takeUntil(this.destroy$)).subscribe(() => {
|
|
576
577
|
setTimeout(() => {
|
|
577
|
-
const activeDate =
|
|
578
|
+
const activeDate = moment__default(this.calendar.activeDate);
|
|
578
579
|
const selectedRange = this.calendar.selected;
|
|
579
580
|
this.currentMonthWeeks = this.getWeeksInMonth(activeDate, selectedRange);
|
|
580
581
|
this.cdr.detectChanges();
|
|
@@ -583,27 +584,27 @@ class WeekSelectorComponent {
|
|
|
583
584
|
}
|
|
584
585
|
getWeeksInMonth(date, selectedRange) {
|
|
585
586
|
const weeks = [];
|
|
586
|
-
const firstDay =
|
|
587
|
-
const lastDay =
|
|
588
|
-
const firstWeekStart =
|
|
589
|
-
const lastWeekEnd =
|
|
590
|
-
let currentWeekStart =
|
|
587
|
+
const firstDay = moment__default(date).startOf('month');
|
|
588
|
+
const lastDay = moment__default(date).endOf('month');
|
|
589
|
+
const firstWeekStart = moment__default(firstDay).startOf('isoWeek');
|
|
590
|
+
const lastWeekEnd = moment__default(lastDay).endOf('isoWeek');
|
|
591
|
+
let currentWeekStart = moment__default(firstWeekStart);
|
|
591
592
|
let weekNumber = 1;
|
|
592
593
|
while (currentWeekStart.isSameOrBefore(lastWeekEnd)) {
|
|
593
|
-
const weekEnd =
|
|
594
|
+
const weekEnd = moment__default(currentWeekStart).endOf('isoWeek');
|
|
594
595
|
const days = [];
|
|
595
596
|
for (let i = 0; i < 7; i++) {
|
|
596
|
-
days.push(
|
|
597
|
+
days.push(moment__default(currentWeekStart).add(i, 'days'));
|
|
597
598
|
}
|
|
598
599
|
const isPartial = days.some((day) => !day.isSame(date, 'month'));
|
|
599
600
|
const selected = days.some((day) => day.isSame(selectedRange.start, 'day'));
|
|
600
601
|
// isoWeek() returns the ISO week number (1-53)
|
|
601
|
-
const yearWeekNumber =
|
|
602
|
+
const yearWeekNumber = moment__default(currentWeekStart).isoWeek();
|
|
602
603
|
weeks.push({
|
|
603
604
|
weekNumber,
|
|
604
605
|
yearWeekNumber,
|
|
605
|
-
start:
|
|
606
|
-
end:
|
|
606
|
+
start: moment__default(currentWeekStart),
|
|
607
|
+
end: moment__default(weekEnd),
|
|
607
608
|
days,
|
|
608
609
|
isPartial,
|
|
609
610
|
selected,
|
|
@@ -638,7 +639,7 @@ var TooltipTheme;
|
|
|
638
639
|
TooltipTheme["DARK"] = "dark";
|
|
639
640
|
})(TooltipTheme || (TooltipTheme = {}));
|
|
640
641
|
|
|
641
|
-
const _c0$
|
|
642
|
+
const _c0$H = ["*"];
|
|
642
643
|
class TooltipDefaultComponent {
|
|
643
644
|
constructor() {
|
|
644
645
|
this.theme = TooltipTheme.LIGHT;
|
|
@@ -646,7 +647,7 @@ class TooltipDefaultComponent {
|
|
|
646
647
|
/** @nocollapse */ static { this.ɵfac = function TooltipDefaultComponent_Factory(t) { return new (t || TooltipDefaultComponent)(); }; }
|
|
647
648
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TooltipDefaultComponent, selectors: [["dr-tooltip-default"]], hostVars: 2, hostBindings: function TooltipDefaultComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
648
649
|
i0.ɵɵclassMap(ctx.theme);
|
|
649
|
-
} }, inputs: { content: "content", theme: "theme" }, ngContentSelectors: _c0$
|
|
650
|
+
} }, inputs: { content: "content", theme: "theme" }, ngContentSelectors: _c0$H, decls: 2, vars: 1, consts: [[1, "content", 3, "innerHTML"]], template: function TooltipDefaultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
650
651
|
i0.ɵɵprojectionDef();
|
|
651
652
|
i0.ɵɵelement(0, "span", 0);
|
|
652
653
|
i0.ɵɵprojection(1);
|
|
@@ -687,7 +688,7 @@ function TooltipComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
687
688
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
688
689
|
i0.ɵɵproperty("content", ctx_r3.content)("theme", ctx_r3.theme);
|
|
689
690
|
} }
|
|
690
|
-
const _c0$
|
|
691
|
+
const _c0$G = function (a0) { return { "dr-tooltip": a0 }; };
|
|
691
692
|
class TooltipComponent {
|
|
692
693
|
constructor() {
|
|
693
694
|
this.isContentTemplate = false;
|
|
@@ -714,7 +715,7 @@ class TooltipComponent {
|
|
|
714
715
|
} if (rf & 2) {
|
|
715
716
|
const _r2 = i0.ɵɵreference(4);
|
|
716
717
|
i0.ɵɵclassMap(ctx.position + " " + ctx.class + " " + ctx.theme);
|
|
717
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
718
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$G, !(ctx.options == null ? null : ctx.options.withoutContainerStyles)));
|
|
718
719
|
i0.ɵɵadvance(1);
|
|
719
720
|
i0.ɵɵproperty("ngIf", !(ctx.options == null ? null : ctx.options.withoutArrow));
|
|
720
721
|
i0.ɵɵadvance(1);
|
|
@@ -1017,8 +1018,8 @@ class DrSpinnerDirective {
|
|
|
1017
1018
|
type: Input
|
|
1018
1019
|
}] }); })();
|
|
1019
1020
|
|
|
1020
|
-
const _c0$
|
|
1021
|
-
const _c1$
|
|
1021
|
+
const _c0$F = ["labelTemplate"];
|
|
1022
|
+
const _c1$i = ["multiLabelTemplate"];
|
|
1022
1023
|
const _c2$7 = ["optionTemplate"];
|
|
1023
1024
|
const _c3$6 = ["optionHeaderTemplate"];
|
|
1024
1025
|
const _c4$3 = ["optionFooterTemplate"];
|
|
@@ -1233,8 +1234,8 @@ class DrSelectComponent {
|
|
|
1233
1234
|
}
|
|
1234
1235
|
/** @nocollapse */ static { this.ɵfac = function DrSelectComponent_Factory(t) { return new (t || DrSelectComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); }; }
|
|
1235
1236
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectComponent, selectors: [["dr-select"]], contentQueries: function DrSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1236
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
1237
|
-
i0.ɵɵcontentQuery(dirIndex, _c1$
|
|
1237
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$F, 5);
|
|
1238
|
+
i0.ɵɵcontentQuery(dirIndex, _c1$i, 5);
|
|
1238
1239
|
i0.ɵɵcontentQuery(dirIndex, _c2$7, 5);
|
|
1239
1240
|
i0.ɵɵcontentQuery(dirIndex, _c3$6, 5);
|
|
1240
1241
|
i0.ɵɵcontentQuery(dirIndex, _c4$3, 5);
|
|
@@ -1293,7 +1294,7 @@ class DrSelectComponent {
|
|
|
1293
1294
|
i0.ɵɵproperty("ngIf", ctx.groupBy);
|
|
1294
1295
|
i0.ɵɵadvance(2);
|
|
1295
1296
|
i0.ɵɵproperty("ngIf", ctx.type === "search-input");
|
|
1296
|
-
} }, dependencies: [i1$2.NgControlStatus, i1$2.NgModel, i1.NgIf, i1.NgTemplateOutlet, i3.NgSelectComponent, i3.NgOptgroupTemplateDirective, i3.NgOptionTemplateDirective, i3.NgLabelTemplateDirective, i3.NgMultiLabelTemplateDirective, i3.NgHeaderTemplateDirective, i3.NgFooterTemplateDirective, i3.NgLoadingSpinnerTemplateDirective, DrSpinnerDirective], styles: ["[_nghost-%COMP%]{width:100%;height:32px;font-family:Poppins,sans-serif}.textView[_nghost-%COMP%] {width:auto}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container{padding:0;color:#4646ce}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container:hover{text-decoration-line:underline}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#fff!important;border:none!important;cursor:default}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-value-container:hover{text-decoration-line:none}.no-left-border-radius[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.no-right-border-radius[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.no-right-border[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-right:none!important}.no-left-border[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-left:none!important}[_nghost-%COMP%] ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px;border:1px solid #9ea1aa;box-shadow:none!important}[_nghost-%COMP%] ng-select.ng-select .ng-select-container:hover{border-color:#4646ce}[_nghost-%COMP%] ng-select.ng-select .ng-select-container:focus-within{border-color:#4646ce}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#333;font-size:14px;font-weight:400}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper{margin-right:7px}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border:none;width:auto;height:auto;display:flex;text-decoration-line:none;top:0}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow:before{font-family:DataRails!important;content:\"\\ea15\";font-size:24px;color:#6d6e6f}[_nghost-%COMP%] ng-select.ng-select.ng-select-opened .ng-select-container{border-radius:6px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#333;height:24px;padding:2px 16px;font-size:12px;margin:2px 4px 2px 0;background:#f0f1f4;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0!important;width:20px;display:flex;align-items:center;color:transparent;margin-left:4px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:before{font-family:DataRails!important;content:\"\\ea64\";font-size:20px;color:#333}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon, [_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#f0f1f4!important;border:1px solid #aeabac!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow{color:#aeabac}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow:before{color:#aeabac}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}[_nghost-%COMP%] ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container, [_nghost-%COMP%] ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#bf1d30}[_nghost-%COMP%] ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container{max-height:88px}[_nghost-%COMP%] ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container .ng-value-container{max-height:88px}[_nghost-%COMP%] ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value, [_nghost-%COMP%] ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value{padding:0}[_nghost-%COMP%] ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value .ng-select-user-label, [_nghost-%COMP%] ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-select-user-label{height:100%}.ng-invalid.ng-touched[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-color:#bf1d30}[_nghost-%COMP%] .dr-select__loading[_ngcontent-%COMP%]{position:relative;height:32px;width:24px}.search-input[_nghost-%COMP%]{position:relative}.search-input[_nghost-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:16px;color:#6d6e6f;z-index:1001}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-radius:16px}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none!important}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-clear-wrapper{display:flex;justify-content:center;align-items:center;right:40px;top:1px;width:24px;height:24px}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-clear-wrapper .ng-clear{font-size:24px;font-weight:300;color:#6d6e6f}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input, .search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 16px!important;width:calc(100% - 63px)}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input input, .search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container input{height:100%} ng-dropdown-panel.ng-dropdown-panel.dr-select{font-family:Poppins,sans-serif;border:1px solid #dfe0e3;border-radius:4px!important;margin:8px 0;box-shadow:0 4px 8px 1px #00000040;background-color:#fff;overflow:hidden;padding:8px 0} ng-dropdown-panel.ng-dropdown-panel.dr-select.textView{width:auto!important} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px;background:#fff} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#f5f5f5} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected, ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#eaeaff;color:#333} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span, ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:400!important} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled{cursor:default} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div{color:#aeabac} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div.dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#aeabac} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]{font-size:14px;line-height:22px;color:#aeabac;cursor:default} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:not(:first-of-type){border-top:1px solid #dfe0e3} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:hover{background:#fff} ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper{color:#333} ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:-moz-fit-content;max-width:fit-content;word-break:break-word;white-space:normal;color:#6d6e6f;font-weight:400;font-size:12px;line-height:20px} ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description, ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#6d6e6f}.custom-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;overflow:hidden;pointer-events:none}"] }); }
|
|
1297
|
+
} }, dependencies: [i1$2.NgControlStatus, i1$2.NgModel, i1.NgIf, i1.NgTemplateOutlet, i3.NgSelectComponent, i3.NgOptgroupTemplateDirective, i3.NgOptionTemplateDirective, i3.NgLabelTemplateDirective, i3.NgMultiLabelTemplateDirective, i3.NgHeaderTemplateDirective, i3.NgFooterTemplateDirective, i3.NgLoadingSpinnerTemplateDirective, DrSpinnerDirective], styles: ["[_nghost-%COMP%]{width:100%;height:32px;font-family:Poppins,sans-serif}.textView[_nghost-%COMP%] {width:auto}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container{padding:0;color:#4646ce}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container:hover{text-decoration-line:underline}.textView[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#fff!important;border:none!important;cursor:default}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value, .textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}.textView[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-value-container:hover{text-decoration-line:none}.no-left-border-radius[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.no-right-border-radius[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.no-right-border[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-right:none!important}.no-left-border[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-left:none!important}[_nghost-%COMP%] ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px;border:1px solid #9ea1aa;box-shadow:none!important}[_nghost-%COMP%] ng-select.ng-select .ng-select-container:hover{border-color:#4646ce}[_nghost-%COMP%] ng-select.ng-select .ng-select-container:focus-within{border-color:#4646ce}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#333;font-size:14px;font-weight:400}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper{margin-right:7px}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border:none;width:auto;height:auto;display:flex;text-decoration-line:none;top:0}[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow:before{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f}[_nghost-%COMP%] ng-select.ng-select.ng-select-opened .ng-select-container{border-radius:6px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#333;height:24px;padding:2px 16px;font-size:12px;margin:2px 4px 2px 0;background:#f0f1f4;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0!important;width:20px;display:flex;align-items:center;color:transparent;margin-left:4px}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:before{font-family:DataRails!important;content:\"\\ea6c\";font-size:20px;color:#333}[_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon, [_nghost-%COMP%] ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#f0f1f4!important;border:1px solid #aeabac!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value, [_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow{color:#aeabac}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow:before{color:#aeabac}[_nghost-%COMP%] ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}[_nghost-%COMP%] ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container, [_nghost-%COMP%] ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#bf1d30}[_nghost-%COMP%] ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container{max-height:88px}[_nghost-%COMP%] ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container .ng-value-container{max-height:88px}[_nghost-%COMP%] ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value, [_nghost-%COMP%] ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value{padding:0}[_nghost-%COMP%] ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value .ng-select-user-label, [_nghost-%COMP%] ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-select-user-label{height:100%}.ng-invalid.ng-touched[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-color:#bf1d30}[_nghost-%COMP%] .dr-select__loading[_ngcontent-%COMP%]{position:relative;height:32px;width:24px}.search-input[_nghost-%COMP%]{position:relative}.search-input[_nghost-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;top:4px;right:16px;color:#6d6e6f;z-index:1001}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container{border-radius:16px}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none!important}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-clear-wrapper{display:flex;justify-content:center;align-items:center;right:40px;top:1px;width:24px;height:24px}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-clear-wrapper .ng-clear{font-size:24px;font-weight:300;color:#6d6e6f}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input, .search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 16px!important;width:calc(100% - 63px)}.search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-input input, .search-input[_nghost-%COMP%] ng-select.ng-select .ng-select-container .ng-value-container input{height:100%} ng-dropdown-panel.ng-dropdown-panel.dr-select{font-family:Poppins,sans-serif;border:1px solid #dfe0e3;border-radius:4px!important;margin:8px 0;box-shadow:0 4px 8px 1px #00000040;background-color:#fff;overflow:hidden;padding:8px 0} ng-dropdown-panel.ng-dropdown-panel.dr-select.textView{width:auto!important} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px;background:#fff} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#f5f5f5} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected, ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#eaeaff;color:#333} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span, ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:400!important} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled{cursor:default} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div{color:#aeabac} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div.dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#aeabac} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]{font-size:14px;line-height:22px;color:#aeabac;cursor:default} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:not(:first-of-type){border-top:1px solid #dfe0e3} ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:hover{background:#fff} ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper{color:#333} ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:-moz-fit-content;max-width:fit-content;word-break:break-word;white-space:normal;color:#6d6e6f;font-weight:400;font-size:12px;line-height:20px} ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description, ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#6d6e6f}.custom-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;overflow:hidden;pointer-events:none}"] }); }
|
|
1297
1298
|
}
|
|
1298
1299
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrSelectComponent, [{
|
|
1299
1300
|
type: Component,
|
|
@@ -1303,7 +1304,7 @@ class DrSelectComponent {
|
|
|
1303
1304
|
useExisting: DrSelectComponent,
|
|
1304
1305
|
multi: true,
|
|
1305
1306
|
},
|
|
1306
|
-
], template: "<ng-select\n [(ngModel)]=\"selectedItem\"\n [items]=\"items\"\n [bindLabel]=\"bindLabel\"\n [bindValue]=\"bindValue\"\n [multiple]=\"multiple\"\n [addTag]=\"addTag\"\n [appendTo]=\"appendTo\"\n [clearable]=\"clearable\"\n [searchable]=\"searchable\"\n [hideSelected]=\"hideSelected\"\n [placeholder]=\"placeholder\"\n [loading]=\"loading\"\n [loadingText]=\"loadingText\"\n [readonly]=\"readonly\"\n [closeOnSelect]=\"closeOnSelect\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [maxSelectedItems]=\"maxSelectedItems\"\n [keyDownFn]=\"keyDownFn\"\n [searchFn]=\"searchFn\"\n [isOpen]=\"(type !== 'search-input' || !!selectComponent.searchTerm?.length) && isOpen\"\n [groupBy]=\"groupBy\"\n [attr.autofocus]=\"autofocus\"\n [selectOnTab]=\"selectOnTabKeyPress\"\n (keydown.tab)=\"onTabKeypress($event)\"\n (change)=\"onValueSelected(selectedItem)\"\n (open)=\"open.emit($event); onDropdownOpen()\"\n (close)=\"onClose($event)\"\n class=\"dr-select\"\n [class.ng-select--no-value-padding]=\"noValuePadding\"\n [class.ng-select--multiple-height-increased]=\"multipleHeightIncreased\"\n #selectComponent>\n <ng-template *ngIf=\"optionHeaderTemplate\" ng-header-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionHeaderTemplate\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"labelTemplate\" ng-label-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"multiLabelTemplate\" ng-multi-label-tmp let-items=\"items\" let-clear=\"clear\">\n <ng-container [ngTemplateOutlet]=\"multiLabelTemplate\" [ngTemplateOutletContext]=\"{ items: items, clear: clear }\">\n </ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionTemplate\" ng-option-tmp let-item=\"item\" let-item$=\"item$\">\n <ng-container [ngTemplateOutlet]=\"optionTemplate\" [ngTemplateOutletContext]=\"{ item: item, item$: item$ }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionWithDescription\" ng-option-tmp let-item=\"item\">\n <div class=\"dr-select__option-with-desc__wrapper\">\n <div>{{ item.name }}</div>\n <div class=\"dr-select__option-with-desc__description\">{{ item?.description }}</div>\n </div>\n </ng-template>\n <ng-template *ngIf=\"optionFooterTemplate\" ng-footer-tmp let-item=\"item\">\n <ng-container\n [ngTemplateOutlet]=\"optionFooterTemplate\"\n [ngTemplateOutletContext]=\"{ item: item, close: selectComponent.close.bind(selectComponent) }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"groupBy\" ng-optgroup-tmp let-item=\"item\">\n {{ item[groupBy] }}\n </ng-template>\n <ng-template ng-loadingspinner-tmp>\n <div\n *ngIf=\"loading\"\n class=\"dr-select__loading\"\n [drSpinner]=\"loading\"\n [drSpinnerType]=\"'circle'\"\n [drSpinnerSize]=\"'small'\"\n [drSpinnerNoOverlay]=\"true\"></div>\n </ng-template>\n</ng-select>\n<i *ngIf=\"type === 'search-input'\" class=\"search-icon dr-icon-search\"></i>\n", styles: [":host{width:100%;height:32px;font-family:Poppins,sans-serif}:host.textView::ng-deep{width:auto}:host.textView::ng-deep ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0;color:#4646ce}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container:hover{text-decoration-line:underline}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#fff!important;border:none!important;cursor:default}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-value-container:hover{text-decoration-line:none}:host.no-left-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}:host.no-right-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}:host.no-right-border ::ng-deep ng-select.ng-select .ng-select-container{border-right:none!important}:host.no-left-border ::ng-deep ng-select.ng-select .ng-select-container{border-left:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px;border:1px solid #9ea1aa;box-shadow:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container:hover{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container:focus-within{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#333;font-size:14px;font-weight:400}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{margin-right:7px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border:none;width:auto;height:auto;display:flex;text-decoration-line:none;top:0}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow:before{font-family:DataRails!important;content:\"\\ea15\";font-size:24px;color:#6d6e6f}:host ::ng-deep ng-select.ng-select.ng-select-opened .ng-select-container{border-radius:6px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#333;height:24px;padding:2px 16px;font-size:12px;margin:2px 4px 2px 0;background:#f0f1f4;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0!important;width:20px;display:flex;align-items:center;color:transparent;margin-left:4px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:before{font-family:DataRails!important;content:\"\\ea64\";font-size:20px;color:#333}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon,:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#f0f1f4!important;border:1px solid #aeabac!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow:before{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#bf1d30}:host ::ng-deep ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container{max-height:88px}:host ::ng-deep ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container .ng-value-container{max-height:88px}:host ::ng-deep ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value,:host ::ng-deep ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value{padding:0}:host ::ng-deep ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value .ng-select-user-label,:host ::ng-deep ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-select-user-label{height:100%}:host.ng-invalid.ng-touched::ng-deep ng-select.ng-select .ng-select-container{border-color:#bf1d30}:host .dr-select__loading{position:relative;height:32px;width:24px}:host.search-input{position:relative}:host.search-input .search-icon{position:absolute;top:4px;right:16px;color:#6d6e6f;z-index:1001}:host.search-input::ng-deep ng-select.ng-select .ng-select-container{border-radius:16px}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none!important}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-clear-wrapper{display:flex;justify-content:center;align-items:center;right:40px;top:1px;width:24px;height:24px}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-clear-wrapper .ng-clear{font-size:24px;font-weight:300;color:#6d6e6f}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-input,:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 16px!important;width:calc(100% - 63px)}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-input input,:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-value-container input{height:100%}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select{font-family:Poppins,sans-serif;border:1px solid #dfe0e3;border-radius:4px!important;margin:8px 0;box-shadow:0 4px 8px 1px #00000040;background-color:#fff;overflow:hidden;padding:8px 0}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.textView{width:auto!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px;background:#fff}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#f5f5f5}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#eaeaff;color:#333}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:400!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled{cursor:default}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div{color:#aeabac}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div.dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#aeabac}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]{font-size:14px;line-height:22px;color:#aeabac;cursor:default}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:not(:first-of-type){border-top:1px solid #dfe0e3}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:hover{background:#fff}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper{color:#333}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:-moz-fit-content;max-width:fit-content;word-break:break-word;white-space:normal;color:#6d6e6f;font-weight:400;font-size:12px;line-height:20px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#6d6e6f}.custom-backdrop{position:fixed;inset:0;overflow:hidden;pointer-events:none}\n"] }]
|
|
1307
|
+
], template: "<ng-select\n [(ngModel)]=\"selectedItem\"\n [items]=\"items\"\n [bindLabel]=\"bindLabel\"\n [bindValue]=\"bindValue\"\n [multiple]=\"multiple\"\n [addTag]=\"addTag\"\n [appendTo]=\"appendTo\"\n [clearable]=\"clearable\"\n [searchable]=\"searchable\"\n [hideSelected]=\"hideSelected\"\n [placeholder]=\"placeholder\"\n [loading]=\"loading\"\n [loadingText]=\"loadingText\"\n [readonly]=\"readonly\"\n [closeOnSelect]=\"closeOnSelect\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [maxSelectedItems]=\"maxSelectedItems\"\n [keyDownFn]=\"keyDownFn\"\n [searchFn]=\"searchFn\"\n [isOpen]=\"(type !== 'search-input' || !!selectComponent.searchTerm?.length) && isOpen\"\n [groupBy]=\"groupBy\"\n [attr.autofocus]=\"autofocus\"\n [selectOnTab]=\"selectOnTabKeyPress\"\n (keydown.tab)=\"onTabKeypress($event)\"\n (change)=\"onValueSelected(selectedItem)\"\n (open)=\"open.emit($event); onDropdownOpen()\"\n (close)=\"onClose($event)\"\n class=\"dr-select\"\n [class.ng-select--no-value-padding]=\"noValuePadding\"\n [class.ng-select--multiple-height-increased]=\"multipleHeightIncreased\"\n #selectComponent>\n <ng-template *ngIf=\"optionHeaderTemplate\" ng-header-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"optionHeaderTemplate\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"labelTemplate\" ng-label-tmp let-item=\"item\">\n <ng-container [ngTemplateOutlet]=\"labelTemplate\" [ngTemplateOutletContext]=\"{ item: item }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"multiLabelTemplate\" ng-multi-label-tmp let-items=\"items\" let-clear=\"clear\">\n <ng-container [ngTemplateOutlet]=\"multiLabelTemplate\" [ngTemplateOutletContext]=\"{ items: items, clear: clear }\">\n </ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionTemplate\" ng-option-tmp let-item=\"item\" let-item$=\"item$\">\n <ng-container [ngTemplateOutlet]=\"optionTemplate\" [ngTemplateOutletContext]=\"{ item: item, item$: item$ }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"optionWithDescription\" ng-option-tmp let-item=\"item\">\n <div class=\"dr-select__option-with-desc__wrapper\">\n <div>{{ item.name }}</div>\n <div class=\"dr-select__option-with-desc__description\">{{ item?.description }}</div>\n </div>\n </ng-template>\n <ng-template *ngIf=\"optionFooterTemplate\" ng-footer-tmp let-item=\"item\">\n <ng-container\n [ngTemplateOutlet]=\"optionFooterTemplate\"\n [ngTemplateOutletContext]=\"{ item: item, close: selectComponent.close.bind(selectComponent) }\"></ng-container>\n </ng-template>\n <ng-template *ngIf=\"groupBy\" ng-optgroup-tmp let-item=\"item\">\n {{ item[groupBy] }}\n </ng-template>\n <ng-template ng-loadingspinner-tmp>\n <div\n *ngIf=\"loading\"\n class=\"dr-select__loading\"\n [drSpinner]=\"loading\"\n [drSpinnerType]=\"'circle'\"\n [drSpinnerSize]=\"'small'\"\n [drSpinnerNoOverlay]=\"true\"></div>\n </ng-template>\n</ng-select>\n<i *ngIf=\"type === 'search-input'\" class=\"search-icon dr-icon-search\"></i>\n", styles: [":host{width:100%;height:32px;font-family:Poppins,sans-serif}:host.textView::ng-deep{width:auto}:host.textView::ng-deep ng-select.ng-select .ng-select-container{border:none!important;cursor:pointer}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0;color:#4646ce}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-value-container:hover{text-decoration-line:underline}:host.textView::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#fff!important;border:none!important;cursor:default}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}:host.textView::ng-deep ng-select.ng-select.ng-select-disabled .ng-value-container:hover{text-decoration-line:none}:host.no-left-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-left-radius:0!important;border-top-left-radius:0!important}:host.no-right-border-radius ::ng-deep ng-select.ng-select .ng-select-container{border-bottom-right-radius:0!important;border-top-right-radius:0!important}:host.no-right-border ::ng-deep ng-select.ng-select .ng-select-container{border-right:none!important}:host.no-left-border ::ng-deep ng-select.ng-select .ng-select-container{border-left:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container{min-height:32px;height:32px;width:100%;border-radius:6px;border:1px solid #9ea1aa;box-shadow:none!important}:host ::ng-deep ng-select.ng-select .ng-select-container:hover{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container:focus-within{border-color:#4646ce}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input{top:0!important;line-height:30px;padding:0 50px 0 8px!important;color:#333;font-size:14px;font-weight:400}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-input input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 8px;height:100%;overflow:auto;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-value-container .ng-input{padding:0 0 0 3px!important}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{margin-right:7px}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow{border:none;width:auto;height:auto;display:flex;text-decoration-line:none;top:0}:host ::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper .ng-arrow:before{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f}:host ::ng-deep ng-select.ng-select.ng-select-opened .ng-select-container{border-radius:6px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container{max-height:58px;height:100%}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container{max-height:58px;font-size:14px;line-height:18px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{color:#333;height:24px;padding:2px 16px;font-size:12px;margin:2px 4px 2px 0;background:#f0f1f4;display:flex;flex-direction:row-reverse;align-items:center;border-radius:12px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-label{line-height:20px;padding:0!important}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon{border:none!important;padding:0!important;width:20px;display:flex;align-items:center;color:transparent;margin-left:4px}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:before{font-family:DataRails!important;content:\"\\ea6c\";font-size:20px;color:#333}:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon,:host ::ng-deep ng-select.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value-icon:hover{background:transparent!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within{background:#f0f1f4!important;border:1px solid #aeabac!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:hover .ng-value,:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container:focus-within .ng-value{color:#aeabac!important}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-arrow:before{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-disabled .ng-select-container .ng-input input::placeholder{color:#aeabac}:host ::ng-deep ng-select.ng-select.ng-select-single.ng-invalid.ng-touched .ng-select-container,:host ::ng-deep ng-select.ng-select.ng-select-multiple.ng-invalid.ng-touched .ng-select-container{border-color:#bf1d30}:host ::ng-deep ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container{max-height:88px}:host ::ng-deep ng-select.ng-select--multiple-height-increased.ng-select-multiple .ng-select-container .ng-value-container{max-height:88px}:host ::ng-deep ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value,:host ::ng-deep ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value{padding:0}:host ::ng-deep ng-select.ng-select--no-value-padding .ng-select-container .ng-value-container .ng-value .ng-select-user-label,:host ::ng-deep ng-select.ng-select--no-value-padding.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-select-user-label{height:100%}:host.ng-invalid.ng-touched::ng-deep ng-select.ng-select .ng-select-container{border-color:#bf1d30}:host .dr-select__loading{position:relative;height:32px;width:24px}:host.search-input{position:relative}:host.search-input .search-icon{position:absolute;top:4px;right:16px;color:#6d6e6f;z-index:1001}:host.search-input::ng-deep ng-select.ng-select .ng-select-container{border-radius:16px}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-arrow-wrapper{display:none!important}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-clear-wrapper{display:flex;justify-content:center;align-items:center;right:40px;top:1px;width:24px;height:24px}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-clear-wrapper .ng-clear{font-size:24px;font-weight:300;color:#6d6e6f}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-input,:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-value-container{padding:0 0 0 16px!important;width:calc(100% - 63px)}:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-input input,:host.search-input::ng-deep ng-select.ng-select .ng-select-container .ng-value-container input{height:100%}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select{font-family:Poppins,sans-serif;border:1px solid #dfe0e3;border-radius:4px!important;margin:8px 0;box-shadow:0 4px 8px 1px #00000040;background-color:#fff;overflow:hidden;padding:8px 0}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.textView{width:auto!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option:empty{display:none}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option{display:flex;align-items:center;min-height:36px;padding:8px 12px;font-size:14px;line-height:22px;background:#fff}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option>.ng-option-label{text-overflow:ellipsis;overflow:hidden}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-marked{background:#f5f5f5}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{background:#eaeaff;color:#333}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected span,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked span{font-weight:400!important}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled{cursor:default}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div{color:#aeabac}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled>div.dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#aeabac}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]{font-size:14px;line-height:22px;color:#aeabac;cursor:default}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:not(:first-of-type){border-top:1px solid #dfe0e3}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .ng-dropdown-panel-items .ng-option.ng-option-disabled[role=group]:hover{background:#fff}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper{color:#333}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{max-width:-moz-fit-content;max-width:fit-content;word-break:break-word;white-space:normal;color:#6d6e6f;font-weight:400;font-size:12px;line-height:20px}::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description,::ng-deep ng-dropdown-panel.ng-dropdown-panel.dr-select.ng-option-selected.ng-option-marked .dr-select__option-with-desc__wrapper .dr-select__option-with-desc__description{color:#6d6e6f}.custom-backdrop{position:fixed;inset:0;overflow:hidden;pointer-events:none}\n"] }]
|
|
1307
1308
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, { type: [{
|
|
1308
1309
|
type: Input
|
|
1309
1310
|
}, {
|
|
@@ -1414,8 +1415,8 @@ class DrShowTimeframePipe {
|
|
|
1414
1415
|
}]
|
|
1415
1416
|
}], null, null); })();
|
|
1416
1417
|
|
|
1417
|
-
const _c0$
|
|
1418
|
-
const _c1$
|
|
1418
|
+
const _c0$E = ["class", "component"];
|
|
1419
|
+
const _c1$h = function (a0) { return { "dr-datepicker-preset-date__tags__tag--selected": a0 }; };
|
|
1419
1420
|
function DrDatePickerCustomHeaderComponent_div_0_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1420
1421
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
1421
1422
|
i0.ɵɵelementStart(0, "div", 14);
|
|
@@ -1425,7 +1426,7 @@ function DrDatePickerCustomHeaderComponent_div_0_div_1_div_2_Template(rf, ctx) {
|
|
|
1425
1426
|
} if (rf & 2) {
|
|
1426
1427
|
const tag_r4 = ctx.$implicit;
|
|
1427
1428
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
1428
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
1429
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$h, tag_r4.key === ctx_r3.selectedPresetTag))("drTooltip", ctx_r3.selectedPresetTag === tag_r4.key ? "Unselect preset" : "")("drTooltipPosition", "top");
|
|
1429
1430
|
i0.ɵɵadvance(1);
|
|
1430
1431
|
i0.ɵɵtextInterpolate1(" ", tag_r4.label, " ");
|
|
1431
1432
|
} }
|
|
@@ -1509,14 +1510,14 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1509
1510
|
title: 'Month',
|
|
1510
1511
|
value: CalendarView.FOR_MONTHS,
|
|
1511
1512
|
format: this.datePickerService.formatConfig.month,
|
|
1512
|
-
periodLabel: () => String(
|
|
1513
|
+
periodLabel: () => String(moment__default(this._calendar.activeDate).utc().year()),
|
|
1513
1514
|
},
|
|
1514
1515
|
{
|
|
1515
1516
|
timeframe: TimeframeOption.QUARTER,
|
|
1516
1517
|
title: 'Quarter',
|
|
1517
1518
|
value: CalendarView.FOR_QUARTERS,
|
|
1518
1519
|
format: this.datePickerService.formatConfig.quarter,
|
|
1519
|
-
periodLabel: () => String(
|
|
1520
|
+
periodLabel: () => String(moment__default(this.datePickerService.subtractFiscalYearMonthsFromDate(this._calendar.activeDate)).utc().year()),
|
|
1520
1521
|
},
|
|
1521
1522
|
{
|
|
1522
1523
|
timeframe: TimeframeOption.YEAR,
|
|
@@ -1524,7 +1525,7 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1524
1525
|
value: CalendarView.FOR_YEARS,
|
|
1525
1526
|
format: this.datePickerService.formatConfig.year,
|
|
1526
1527
|
periodLabel: () => {
|
|
1527
|
-
const currentYear =
|
|
1528
|
+
const currentYear = moment__default(this.datePickerService.subtractFiscalYearMonthsFromDate(this._calendar.activeDate))
|
|
1528
1529
|
.utc()
|
|
1529
1530
|
.year();
|
|
1530
1531
|
const startPeriod = Math.floor(currentYear / 24) * 24;
|
|
@@ -1556,12 +1557,7 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1556
1557
|
this.selectedQuarter = this.datePickerService.getQuarterAccordingToFiscalYear(this._calendar.activeDate);
|
|
1557
1558
|
}
|
|
1558
1559
|
});
|
|
1559
|
-
|
|
1560
|
-
this.setPeriodLabels();
|
|
1561
|
-
if (_calendar.multiYearView) {
|
|
1562
|
-
this.transformDateInMultiyearViewAccordingToFY();
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1560
|
+
this.listenToCalendarViewChanges();
|
|
1565
1561
|
_calendar._userSelection.subscribe((date) => {
|
|
1566
1562
|
if (!this.datePickerService.isValueUpdating) {
|
|
1567
1563
|
this.datePickerService.onSameDaySelectedInCalendar$.next(date.value);
|
|
@@ -1594,8 +1590,8 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1594
1590
|
const currentTimeframeOption = this.timeframeOptions.filter((option) => option.value === this._calendar.currentView)[0];
|
|
1595
1591
|
const fullPeriodLabel = currentTimeframeOption.periodLabel();
|
|
1596
1592
|
if (this._calendar.currentView === CalendarView.FOR_DAYS) {
|
|
1597
|
-
this.periodMonthLabel = fullPeriodLabel.match(/[a-zA-Z]+/g)
|
|
1598
|
-
this.periodYearLabel = fullPeriodLabel.match(/[0-9]+/g)
|
|
1593
|
+
this.periodMonthLabel = fullPeriodLabel.match(/[a-zA-Z]+/g)?.toString();
|
|
1594
|
+
this.periodYearLabel = fullPeriodLabel.match(/[0-9]+/g)?.toString() ?? fullPeriodLabel;
|
|
1599
1595
|
}
|
|
1600
1596
|
else {
|
|
1601
1597
|
this.periodMonthLabel = '';
|
|
@@ -1645,7 +1641,7 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1645
1641
|
if (this.datePickerService.isTimeframeDependingOnFY(this.datePickerService.timeframe) &&
|
|
1646
1642
|
!this.datePickerService.fiscalYearBack &&
|
|
1647
1643
|
this.datePickerService.fiscalYearMonthsModifier) {
|
|
1648
|
-
multuYearView._todayYear =
|
|
1644
|
+
multuYearView._todayYear = moment__default.utc().year() + 1;
|
|
1649
1645
|
multuYearView._changeDetectorRef.markForCheck();
|
|
1650
1646
|
}
|
|
1651
1647
|
}
|
|
@@ -1662,7 +1658,7 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1662
1658
|
const isNeedMoveToDate = !this.datePickerService.innerValue &&
|
|
1663
1659
|
[TimeframeOption.QUARTER, TimeframeOption.YEAR].includes(this.datePickerService.timeframe);
|
|
1664
1660
|
if (isNeedMoveToDate) {
|
|
1665
|
-
const momentWithShift = this.datePickerService.addFiscalYearShiftForYear(
|
|
1661
|
+
const momentWithShift = this.datePickerService.addFiscalYearShiftForYear(moment__default.utc());
|
|
1666
1662
|
if (momentWithShift) {
|
|
1667
1663
|
this.datePickerService.calendarInstance._goToDateInView(momentWithShift, this.datePickerService.calendarInstance.currentView);
|
|
1668
1664
|
}
|
|
@@ -1677,13 +1673,21 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
1677
1673
|
}
|
|
1678
1674
|
return false;
|
|
1679
1675
|
}
|
|
1676
|
+
listenToCalendarViewChanges() {
|
|
1677
|
+
this._calendar.viewChanged.pipe(takeUntil$1(this._destroyed)).subscribe(() => {
|
|
1678
|
+
this.setPeriodLabels();
|
|
1679
|
+
if (this._calendar.multiYearView) {
|
|
1680
|
+
this.transformDateInMultiyearViewAccordingToFY();
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1680
1684
|
insertWeekSelector() {
|
|
1681
1685
|
const selector = this.cfr.resolveComponentFactory(WeekSelectorComponent).create(this.injector);
|
|
1682
1686
|
const calendar = document.querySelector('.mat-calendar-content');
|
|
1683
1687
|
calendar.insertBefore(selector.location.nativeElement, calendar.firstChild);
|
|
1684
1688
|
}
|
|
1685
1689
|
/** @nocollapse */ static { this.ɵfac = function DrDatePickerCustomHeaderComponent_Factory(t) { return new (t || DrDatePickerCustomHeaderComponent)(i0.ɵɵdirectiveInject(i5.MatCalendar), i0.ɵɵdirectiveInject(i1$3.DateAdapter), i0.ɵɵdirectiveInject(MAT_DATE_FORMATS), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(DrDatePickerService)); }; }
|
|
1686
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerCustomHeaderComponent, selectors: [["dr-date-picker_custom-header", 8, "component"]], attrs: _c0$
|
|
1690
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerCustomHeaderComponent, selectors: [["dr-date-picker_custom-header", 8, "component"]], attrs: _c0$E, decls: 12, vars: 4, consts: [["class", "dr-datepicker__timeframe-select__wrapper", 4, "ngIf"], [1, "dr-date-paging"], [1, "dr-date-paging", "flip-page-button", 3, "click"], [1, "dr-icon-arrow-left", "presentation_buttons-navigate_input"], [1, "example-header-label"], [3, "click"], [1, "dr-icon-arrow-right", "presentation_buttons-navigate_input"], ["class", "dr-quarterly-datepicker", 4, "ngIf"], [1, "dr-datepicker__timeframe-select__wrapper"], ["class", "dr-datepicker-preset-date", 4, "ngIf"], ["bindLabel", "title", "bindValue", "value", 1, "dr-datepicker__timeframe-select", 3, "ngModel", "items", "ngModelChange"], [1, "dr-datepicker-preset-date"], [1, "dr-datepicker-preset-date__tags"], ["id", "preset_tag", "class", "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click", 4, "ngFor", "ngForOf"], ["id", "preset_tag", 1, "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click"], [1, "dr-quarterly-datepicker"], ["quarterlyDatePicker", ""], ["class", "quarter-selector", 3, "class", "quarter-selector--disabled", "click", 4, "ngFor", "ngForOf"], [1, "quarter-selector", 3, "click"]], template: function DrDatePickerCustomHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1687
1691
|
i0.ɵɵtemplate(0, DrDatePickerCustomHeaderComponent_div_0_Template, 4, 6, "div", 0);
|
|
1688
1692
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
1689
1693
|
i0.ɵɵlistener("click", function DrDatePickerCustomHeaderComponent_Template_div_click_2_listener() { return ctx.pagingClicked(false); });
|
|
@@ -1735,8 +1739,8 @@ class WeekSelectionStrategy {
|
|
|
1735
1739
|
return new DateRange(null, null);
|
|
1736
1740
|
}
|
|
1737
1741
|
// ISO week
|
|
1738
|
-
const startDays =
|
|
1739
|
-
const endDays =
|
|
1742
|
+
const startDays = moment__default(date).diff(moment__default(date).startOf('isoWeek'), 'days');
|
|
1743
|
+
const endDays = moment__default(date).diff(moment__default(date).endOf('isoWeek'), 'days');
|
|
1740
1744
|
const start = this._dateAdapter.addCalendarDays(date, -Math.abs(startDays));
|
|
1741
1745
|
const end = this._dateAdapter.addCalendarDays(date, Math.abs(endDays));
|
|
1742
1746
|
return new DateRange(start, end);
|
|
@@ -1796,7 +1800,7 @@ class DrDatePickerFormatDirective {
|
|
|
1796
1800
|
args: ['drDatePickerFormat']
|
|
1797
1801
|
}] }); })();
|
|
1798
1802
|
|
|
1799
|
-
const _c0$
|
|
1803
|
+
const _c0$D = ["datePicker"];
|
|
1800
1804
|
function DrDatePickerComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
1801
1805
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
1802
1806
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -1857,10 +1861,10 @@ class CustomDateAdapter extends MomentDateAdapter {
|
|
|
1857
1861
|
}
|
|
1858
1862
|
class DrDatePickerComponent {
|
|
1859
1863
|
set min(minDate) {
|
|
1860
|
-
this._min = minDate ?
|
|
1864
|
+
this._min = minDate ? moment__default.unix(minDate).utc() : null;
|
|
1861
1865
|
}
|
|
1862
1866
|
set max(maxDate) {
|
|
1863
|
-
this._max = maxDate ?
|
|
1867
|
+
this._max = maxDate ? moment__default.unix(maxDate).utc() : null;
|
|
1864
1868
|
}
|
|
1865
1869
|
set datePicker(value) {
|
|
1866
1870
|
this._datePicker = value;
|
|
@@ -1904,13 +1908,7 @@ class DrDatePickerComponent {
|
|
|
1904
1908
|
this.displayValue$ = combineLatest([
|
|
1905
1909
|
this.datePickerService.innerValue$.pipe(distinctUntilChanged$1()),
|
|
1906
1910
|
this.datePickerService.timeframe$.pipe(distinctUntilChanged$1()),
|
|
1907
|
-
]).pipe(startWith$1([null, null]), map(([value, timeframe]) => {
|
|
1908
|
-
const valueToReturn = value?.clone();
|
|
1909
|
-
if (valueToReturn && this.datePickerService.isTimeframeDependingOnFY(timeframe)) {
|
|
1910
|
-
this.datePickerService.addFiscalYearShiftForYear(valueToReturn);
|
|
1911
|
-
}
|
|
1912
|
-
return valueToReturn;
|
|
1913
|
-
}), tap((value) => {
|
|
1911
|
+
]).pipe(startWith$1([null, null]), map(([value, timeframe]) => this.transformDisplayedValue(value, timeframe)), tap((value) => {
|
|
1914
1912
|
if (value && this.datePickerService.calendarInstance) {
|
|
1915
1913
|
this.datePickerService.calendarInstance.activeDate = value;
|
|
1916
1914
|
this.datePickerService.calendarInstance.selected = value;
|
|
@@ -1961,17 +1959,13 @@ class DrDatePickerComponent {
|
|
|
1961
1959
|
}
|
|
1962
1960
|
ngOnChanges(changes) {
|
|
1963
1961
|
if (changes.format?.currentValue && changes.format.currentValue !== changes.format.previousValue) {
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
timeframe = this.datePickerService.getTimeframe(format);
|
|
1972
|
-
}
|
|
1973
|
-
this.datePickerService.timeframe = timeframe;
|
|
1974
|
-
this.datePickerService.format$.next(format);
|
|
1962
|
+
this.updateFormat();
|
|
1963
|
+
}
|
|
1964
|
+
if (changes.fiscalYearMonthsModifier) {
|
|
1965
|
+
this.datePickerService.fiscalYearMonthsModifier = this.fiscalYearMonthsModifier;
|
|
1966
|
+
}
|
|
1967
|
+
if (changes.fiscalYearBack) {
|
|
1968
|
+
this.datePickerService.fiscalYearBack = this.fiscalYearBack;
|
|
1975
1969
|
}
|
|
1976
1970
|
}
|
|
1977
1971
|
/**
|
|
@@ -2052,7 +2046,7 @@ class DrDatePickerComponent {
|
|
|
2052
2046
|
* We need keep local timestamp for Electron Application
|
|
2053
2047
|
* Issue in electron: when we select date, date select with -1 (if we're choosing 2023, output will be 2022)
|
|
2054
2048
|
*/
|
|
2055
|
-
const convertedValue = document.is_electron ?
|
|
2049
|
+
const convertedValue = document.is_electron ? moment__default.unix(value) : moment__default.unix(value).utc();
|
|
2056
2050
|
this.innerValue = value ? convertedValue : null;
|
|
2057
2051
|
if (this.innerValue) {
|
|
2058
2052
|
this.tryToNormalizeTimeframe();
|
|
@@ -2102,6 +2096,26 @@ class DrDatePickerComponent {
|
|
|
2102
2096
|
this.datePickerService.isValueUpdating = false;
|
|
2103
2097
|
});
|
|
2104
2098
|
}
|
|
2099
|
+
transformDisplayedValue(value, timeframe) {
|
|
2100
|
+
const valueToReturn = value?.clone();
|
|
2101
|
+
if (valueToReturn && this.datePickerService.isTimeframeDependingOnFY(timeframe)) {
|
|
2102
|
+
this.datePickerService.addFiscalYearShiftForYear(valueToReturn);
|
|
2103
|
+
}
|
|
2104
|
+
return valueToReturn;
|
|
2105
|
+
}
|
|
2106
|
+
updateFormat() {
|
|
2107
|
+
let timeframe;
|
|
2108
|
+
let format = this.datePickerService.getConfiguredFormat(this.format);
|
|
2109
|
+
if (format) {
|
|
2110
|
+
timeframe = this.format;
|
|
2111
|
+
}
|
|
2112
|
+
else {
|
|
2113
|
+
format = this.datePickerService.normalizeValue(this.format);
|
|
2114
|
+
timeframe = this.datePickerService.getTimeframe(format);
|
|
2115
|
+
}
|
|
2116
|
+
this.datePickerService.timeframe = timeframe;
|
|
2117
|
+
this.datePickerService.format$.next(format);
|
|
2118
|
+
}
|
|
2105
2119
|
onOpen() {
|
|
2106
2120
|
this.opened$.next(true);
|
|
2107
2121
|
}
|
|
@@ -2118,7 +2132,7 @@ class DrDatePickerComponent {
|
|
|
2118
2132
|
}
|
|
2119
2133
|
/** @nocollapse */ static { this.ɵfac = function DrDatePickerComponent_Factory(t) { return new (t || DrDatePickerComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$3.DateAdapter), i0.ɵɵdirectiveInject(DrDatePickerService)); }; }
|
|
2120
2134
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerComponent, selectors: [["dr-date-picker"]], viewQuery: function DrDatePickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2121
|
-
i0.ɵɵviewQuery(_c0$
|
|
2135
|
+
i0.ɵɵviewQuery(_c0$D, 5);
|
|
2122
2136
|
} if (rf & 2) {
|
|
2123
2137
|
let _t;
|
|
2124
2138
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datePicker = _t.first);
|
|
@@ -2142,7 +2156,7 @@ class DrDatePickerComponent {
|
|
|
2142
2156
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 2, ctx.datePickerService.timeframe$) === "week");
|
|
2143
2157
|
i0.ɵɵadvance(2);
|
|
2144
2158
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 4, ctx.datePickerService.timeframe$) !== "week");
|
|
2145
|
-
} }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.NgModel, i1$2.FormGroupDirective, i1$2.FormControlName, i1.NgIf, i5.MatDatepicker, i5.MatDatepickerInput, i5.MatDateRangeInput, i5.MatStartDate, i5.MatEndDate, i5.MatDateRangePicker, DrDatePickerFormatDirective, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}[_nghost-%COMP%]:hover{border-color:#9ea1aa}.active[_nghost-%COMP%], [_nghost-%COMP%]:focus-within{border-color:#4646ce!important;color:#333}.disabled[_nghost-%COMP%]{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}.disabled[_nghost-%COMP%]:after{color:#aeabac}.ng-valid.ng-dirty[_nghost-%COMP%]{border-color:#037c5a}.ng-invalid.ng-dirty[_nghost-%COMP%]:not(:focus-within){border-color:#bf1d30!important}.ng-untouched.ng-valid[_nghost-%COMP%]{border-color:#9ea1aa}[_nghost-%COMP%]:after, [_nghost-%COMP%]:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}[_nghost-%COMP%]:after{font-family:DataRails!important;content:\"\\
|
|
2159
|
+
} }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.NgModel, i1$2.FormGroupDirective, i1$2.FormControlName, i1.NgIf, i5.MatDatepicker, i5.MatDatepickerInput, i5.MatDateRangeInput, i5.MatStartDate, i5.MatEndDate, i5.MatDateRangePicker, DrDatePickerFormatDirective, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}[_nghost-%COMP%]:hover{border-color:#9ea1aa}.active[_nghost-%COMP%], [_nghost-%COMP%]:focus-within{border-color:#4646ce!important;color:#333}.disabled[_nghost-%COMP%]{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}.disabled[_nghost-%COMP%]:after{color:#aeabac}.ng-valid.ng-dirty[_nghost-%COMP%]{border-color:#037c5a}.ng-invalid.ng-dirty[_nghost-%COMP%]:not(:focus-within){border-color:#bf1d30!important}.ng-untouched.ng-valid[_nghost-%COMP%]{border-color:#9ea1aa}[_nghost-%COMP%]:after, [_nghost-%COMP%]:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}[_nghost-%COMP%]:after{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;pointer-events:none;position:absolute;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] i[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}[_nghost-%COMP%] input.when-quarter[_ngcontent-%COMP%]{position:absolute;visibility:hidden}[_nghost-%COMP%] input[_ngcontent-%COMP%]:disabled{border:none;color:#aeabac;background:transparent}[_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}[_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}[_nghost-%COMP%] .range-input[_ngcontent-%COMP%]{position:absolute;height:0;width:0;bottom:0;left:0;z-index:-1} .mat-datepicker-popup .dr-week-datepicker{width:386px!important} .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range:before{background:initial!important} .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-selected, .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-cell-content{background:#f2f2fb!important;color:#4646ce!important;font-weight:600!important} .mat-datepicker-popup .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important} .mat-datepicker-popup .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit} .mat-datepicker-popup .mat-datepicker-content button[disabled]:hover{border:inherit} .mat-datepicker-popup .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .mat-datepicker-popup .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#fff} .mat-datepicker-popup .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600} .mat-datepicker-popup .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600} .mat-datepicker-popup .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none} .mat-datepicker-popup .mat-button-focus-overlay{background:#f5f5f5} .mat-datepicker-popup .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f5f5f5;transition:opacity .2s cubic-bezier(.35,0,.25,1)} .mat-datepicker-popup .mat-calendar-controls .mat-calendar-period-button:hover{background:#f5f5f5;transition:background .2s cubic-bezier(.35,0,.25,1)} .mat-datepicker-popup .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333} .mat-datepicker-popup .mat-calendar-table-header-divider{display:none} .mat-datepicker-popup .mat-calendar-body-label{color:#fff;padding:0} .mat-datepicker-popup .mat-calendar-body>tr[aria-hidden=true]>.mat-calendar-body-label{display:none} .mat-datepicker-popup .mat-calendar-content{display:flex} .mat-datepicker-popup .mat-calendar-content dr-week-selector{flex:0} .mat-datepicker-popup .mat-calendar-content mat-month-view, .mat-datepicker-popup .mat-calendar-content mat-multi-year-view, .mat-datepicker-popup .mat-calendar-content mat-year-view{flex:1}"], changeDetection: 0 }); }
|
|
2146
2160
|
}
|
|
2147
2161
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrDatePickerComponent, [{
|
|
2148
2162
|
type: Component,
|
|
@@ -2151,7 +2165,7 @@ class DrDatePickerComponent {
|
|
|
2151
2165
|
{ provide: DateAdapter, useClass: CustomDateAdapter },
|
|
2152
2166
|
{ provide: MAT_DATE_RANGE_SELECTION_STRATEGY, useClass: WeekSelectionStrategy },
|
|
2153
2167
|
DrDatePickerService,
|
|
2154
|
-
], template: "<i class=\"dr-icon-date\" (click)=\"datePicker.open()\"></i>\n\n<ng-container *ngIf=\"(datePickerService.timeframe$ | async) === 'week'\">\n <input\n [ngModel]=\"input.value\"\n (click)=\"datePicker.open()\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n\n <mat-date-range-input [formGroup]=\"rangeForm\" [rangePicker]=\"datePicker\" [dateFilter]=\"dateFilter\" class=\"range-input\">\n <input\n matStartDate\n #input\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n formControlName=\"start\"\n (dateChange)=\"valueChangedInCalendar(rangeForm.value.start)\" />\n <input matEndDate [drDatePickerFormat]=\"datePickerService.format$ | async\" formControlName=\"end\" />\n </mat-date-range-input>\n\n <mat-date-range-picker\n #datePicker\n [panelClass]=\"'dr-week-datepicker'\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\">\n </mat-date-range-picker>\n</ng-container>\n\n<ng-container *ngIf=\"(datePickerService.timeframe$ | async) !== 'week'\">\n <input\n [ngModel]=\"displayValue$ | async\"\n (ngModelChange)=\"valueChangedInCalendar($event)\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"dateFilter\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n\n <mat-datepicker\n #datePicker\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\">\n </mat-datepicker>\n</ng-container>\n", styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\
|
|
2168
|
+
], template: "<i class=\"dr-icon-date\" (click)=\"datePicker.open()\"></i>\n\n<ng-container *ngIf=\"(datePickerService.timeframe$ | async) === 'week'\">\n <input\n [ngModel]=\"input.value\"\n (click)=\"datePicker.open()\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n\n <mat-date-range-input [formGroup]=\"rangeForm\" [rangePicker]=\"datePicker\" [dateFilter]=\"dateFilter\" class=\"range-input\">\n <input\n matStartDate\n #input\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n formControlName=\"start\"\n (dateChange)=\"valueChangedInCalendar(rangeForm.value.start)\" />\n <input matEndDate [drDatePickerFormat]=\"datePickerService.format$ | async\" formControlName=\"end\" />\n </mat-date-range-input>\n\n <mat-date-range-picker\n #datePicker\n [panelClass]=\"'dr-week-datepicker'\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\">\n </mat-date-range-picker>\n</ng-container>\n\n<ng-container *ngIf=\"(datePickerService.timeframe$ | async) !== 'week'\">\n <input\n [ngModel]=\"displayValue$ | async\"\n (ngModelChange)=\"valueChangedInCalendar($event)\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"dateFilter\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n\n <mat-datepicker\n #datePicker\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\">\n </mat-datepicker>\n</ng-container>\n", styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;pointer-events:none;position:absolute;display:flex;align-items:center;justify-content:center}:host i{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}:host input{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}:host input.when-quarter{position:absolute;visibility:hidden}:host input:disabled{border:none;color:#aeabac;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}:host input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host .range-input{position:absolute;height:0;width:0;bottom:0;left:0;z-index:-1}::ng-deep .mat-datepicker-popup .dr-week-datepicker{width:386px!important}::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range:before{background:initial!important}::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-selected,::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-cell-content{background:#f2f2fb!important;color:#4646ce!important;font-weight:600!important}::ng-deep .mat-datepicker-popup .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-popup .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-popup .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .mat-datepicker-popup .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),::ng-deep .mat-datepicker-popup .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#fff}::ng-deep .mat-datepicker-popup .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600}::ng-deep .mat-datepicker-popup .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-datepicker-popup .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-datepicker-popup .mat-button-focus-overlay{background:#f5f5f5}::ng-deep .mat-datepicker-popup .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f5f5f5;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-datepicker-popup .mat-calendar-controls .mat-calendar-period-button:hover{background:#f5f5f5;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-datepicker-popup .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333}::ng-deep .mat-datepicker-popup .mat-calendar-table-header-divider{display:none}::ng-deep .mat-datepicker-popup .mat-calendar-body-label{color:#fff;padding:0}::ng-deep .mat-datepicker-popup .mat-calendar-body>tr[aria-hidden=true]>.mat-calendar-body-label{display:none}::ng-deep .mat-datepicker-popup .mat-calendar-content{display:flex}::ng-deep .mat-datepicker-popup .mat-calendar-content dr-week-selector{flex:0}::ng-deep .mat-datepicker-popup .mat-calendar-content mat-month-view,::ng-deep .mat-datepicker-popup .mat-calendar-content mat-multi-year-view,::ng-deep .mat-datepicker-popup .mat-calendar-content mat-year-view{flex:1}\n"] }]
|
|
2155
2169
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.DateAdapter }, { type: DrDatePickerService }]; }, { format: [{
|
|
2156
2170
|
type: Input
|
|
2157
2171
|
}], min: [{
|
|
@@ -2194,14 +2208,14 @@ const DAY_FORMATS = {
|
|
|
2194
2208
|
};
|
|
2195
2209
|
class DayTagComponent extends AnyTagComponent {
|
|
2196
2210
|
get isLocked() {
|
|
2197
|
-
return this.date ? !this.dateFilter(
|
|
2211
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2198
2212
|
}
|
|
2199
2213
|
constructor() {
|
|
2200
2214
|
super();
|
|
2201
2215
|
this.lockedDate = [];
|
|
2202
2216
|
}
|
|
2203
2217
|
initDate() {
|
|
2204
|
-
this.date = this.defaultValue ||
|
|
2218
|
+
this.date = this.defaultValue || moment__default().unix();
|
|
2205
2219
|
this.dateObj.date = this.date;
|
|
2206
2220
|
}
|
|
2207
2221
|
initName() {
|
|
@@ -2210,7 +2224,7 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
2210
2224
|
}
|
|
2211
2225
|
}
|
|
2212
2226
|
chosenTagHandler(value) {
|
|
2213
|
-
const date =
|
|
2227
|
+
const date = moment__default.unix(value);
|
|
2214
2228
|
const resultTag = {
|
|
2215
2229
|
name: this.name,
|
|
2216
2230
|
value: date.unix(),
|
|
@@ -2223,7 +2237,7 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
2223
2237
|
dateFilter(momentData) {
|
|
2224
2238
|
const date = momentData.date();
|
|
2225
2239
|
return !this.lockedDate.some((timestamp) => {
|
|
2226
|
-
const lockDate =
|
|
2240
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2227
2241
|
return lockDate.date() === date;
|
|
2228
2242
|
});
|
|
2229
2243
|
}
|
|
@@ -2281,7 +2295,7 @@ const WEEK_FORMATS = {
|
|
|
2281
2295
|
};
|
|
2282
2296
|
class WeekTagComponent extends AnyTagComponent {
|
|
2283
2297
|
get isLocked() {
|
|
2284
|
-
return this.date ? !this.dateFilter(
|
|
2298
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2285
2299
|
}
|
|
2286
2300
|
constructor() {
|
|
2287
2301
|
super();
|
|
@@ -2289,7 +2303,7 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
2289
2303
|
}
|
|
2290
2304
|
ngOnInit() {
|
|
2291
2305
|
this.initName();
|
|
2292
|
-
const timestamp = this.defaultValue ||
|
|
2306
|
+
const timestamp = this.defaultValue || moment__default().unix();
|
|
2293
2307
|
this.date = timestamp;
|
|
2294
2308
|
this.dateObj.date = timestamp;
|
|
2295
2309
|
this.chosenTagHandler(timestamp);
|
|
@@ -2303,12 +2317,12 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
2303
2317
|
const week = date.week();
|
|
2304
2318
|
const year = date.year();
|
|
2305
2319
|
return !this.lockedDate.some((timestamp) => {
|
|
2306
|
-
const lockDate =
|
|
2320
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2307
2321
|
return lockDate.week() === week && lockDate.year() === year;
|
|
2308
2322
|
});
|
|
2309
2323
|
}
|
|
2310
2324
|
chosenTagHandler(value) {
|
|
2311
|
-
const resultDate =
|
|
2325
|
+
const resultDate = moment__default.unix(value).utc().weekday(1);
|
|
2312
2326
|
const resultTag = {
|
|
2313
2327
|
name: this.name,
|
|
2314
2328
|
value: resultDate.unix(),
|
|
@@ -2375,14 +2389,14 @@ const MONTH_FORMATS = {
|
|
|
2375
2389
|
};
|
|
2376
2390
|
class MonthTagComponent extends AnyTagComponent {
|
|
2377
2391
|
get isLocked() {
|
|
2378
|
-
return this.date ? !this.dateFilter(
|
|
2392
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2379
2393
|
}
|
|
2380
2394
|
constructor() {
|
|
2381
2395
|
super();
|
|
2382
2396
|
this.lockedDate = [];
|
|
2383
2397
|
}
|
|
2384
2398
|
initDate() {
|
|
2385
|
-
this.date = this.defaultValue ||
|
|
2399
|
+
this.date = this.defaultValue || moment__default().unix();
|
|
2386
2400
|
this.dateObj.date = this.date;
|
|
2387
2401
|
}
|
|
2388
2402
|
initName() {
|
|
@@ -2391,7 +2405,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
2391
2405
|
}
|
|
2392
2406
|
}
|
|
2393
2407
|
chosenTagHandler(value) {
|
|
2394
|
-
const resultDate =
|
|
2408
|
+
const resultDate = moment__default.unix(value);
|
|
2395
2409
|
resultDate.hour(12);
|
|
2396
2410
|
const resultTag = {
|
|
2397
2411
|
name: this.name,
|
|
@@ -2407,7 +2421,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
2407
2421
|
const month = date.month();
|
|
2408
2422
|
const year = date.year();
|
|
2409
2423
|
return !this.lockedDate.some((timestamp) => {
|
|
2410
|
-
const lockDate =
|
|
2424
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2411
2425
|
return lockDate.year() === year && lockDate.month() === month;
|
|
2412
2426
|
});
|
|
2413
2427
|
}
|
|
@@ -2454,7 +2468,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
2454
2468
|
|
|
2455
2469
|
class QuarterTagComponent extends AnyTagComponent {
|
|
2456
2470
|
get isLocked() {
|
|
2457
|
-
return this.quarters ? this.quarters.some((quarter) => !this.dateFilter(
|
|
2471
|
+
return this.quarters ? this.quarters.some((quarter) => !this.dateFilter(moment__default.unix(quarter.value))) : false;
|
|
2458
2472
|
}
|
|
2459
2473
|
constructor() {
|
|
2460
2474
|
super();
|
|
@@ -2488,7 +2502,7 @@ class QuarterTagComponent extends AnyTagComponent {
|
|
|
2488
2502
|
}
|
|
2489
2503
|
}
|
|
2490
2504
|
chosenTagHandler(quarter) {
|
|
2491
|
-
const resultDate =
|
|
2505
|
+
const resultDate = moment__default.unix(quarter.value);
|
|
2492
2506
|
const resultTag = {
|
|
2493
2507
|
name: this.name,
|
|
2494
2508
|
value: resultDate.unix(),
|
|
@@ -2535,9 +2549,9 @@ class QuarterTagComponent extends AnyTagComponent {
|
|
|
2535
2549
|
return Date.UTC(date.getFullYear(), month, 1, 12, 0, 0, 0);
|
|
2536
2550
|
}
|
|
2537
2551
|
dateFilter(quarter) {
|
|
2538
|
-
const quarterDate =
|
|
2552
|
+
const quarterDate = moment__default.unix(quarter.value);
|
|
2539
2553
|
return !this.lockedDate.some((timestamp) => {
|
|
2540
|
-
const lockDate =
|
|
2554
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2541
2555
|
if (lockDate.year() === quarterDate.year() && lockDate.quarter() === quarterDate.quarter()) {
|
|
2542
2556
|
quarter.disabled = true;
|
|
2543
2557
|
return true;
|
|
@@ -2585,14 +2599,14 @@ const YEAR_FORMATS = {
|
|
|
2585
2599
|
};
|
|
2586
2600
|
class YearTagComponent extends AnyTagComponent {
|
|
2587
2601
|
get isLocked() {
|
|
2588
|
-
return this.date ? !this.dateFilter(
|
|
2602
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2589
2603
|
}
|
|
2590
2604
|
constructor() {
|
|
2591
2605
|
super();
|
|
2592
2606
|
this.lockedDate = [];
|
|
2593
2607
|
}
|
|
2594
2608
|
initDate() {
|
|
2595
|
-
this.date = this.defaultValue ||
|
|
2609
|
+
this.date = this.defaultValue || moment__default().unix();
|
|
2596
2610
|
this.dateObj.date = this.date;
|
|
2597
2611
|
}
|
|
2598
2612
|
initName() {
|
|
@@ -2601,7 +2615,7 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
2601
2615
|
}
|
|
2602
2616
|
}
|
|
2603
2617
|
chosenTagHandler(value) {
|
|
2604
|
-
const resultDate =
|
|
2618
|
+
const resultDate = moment__default.unix(value);
|
|
2605
2619
|
resultDate.hour(12);
|
|
2606
2620
|
const resultTag = {
|
|
2607
2621
|
name: this.name,
|
|
@@ -2615,7 +2629,7 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
2615
2629
|
dateFilter(date) {
|
|
2616
2630
|
const calendarDateYear = date.year();
|
|
2617
2631
|
return !this.lockedDate.some((timestamp) => {
|
|
2618
|
-
const lockDate =
|
|
2632
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2619
2633
|
return lockDate.year() === calendarDateYear;
|
|
2620
2634
|
});
|
|
2621
2635
|
}
|
|
@@ -2738,10 +2752,10 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2738
2752
|
}
|
|
2739
2753
|
}
|
|
2740
2754
|
initDate() {
|
|
2741
|
-
const dateVal = this.defaultValue ?
|
|
2755
|
+
const dateVal = this.defaultValue ? moment__default.unix(this.defaultValue) : moment__default();
|
|
2742
2756
|
const fiscal_year_starts_from = this.fiscalYearStartsFrom || 1;
|
|
2743
2757
|
this.forecastValue = this.getFiscalMonthFromDate(dateVal, fiscal_year_starts_from) - 1;
|
|
2744
|
-
this.forecastYear =
|
|
2758
|
+
this.forecastYear = moment__default
|
|
2745
2759
|
.utc(`${this.firstDayMonthOfYear}/${this.firstDayMonthOfYear}/${this.getFiscalYearFromDate(dateVal, fiscal_year_starts_from, this.fiscalYearBack)}`, FORECAST_DEFAULT_DATE_FORMAT)
|
|
2746
2760
|
.set('hours', 12)
|
|
2747
2761
|
.unix();
|
|
@@ -2751,10 +2765,10 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2751
2765
|
}
|
|
2752
2766
|
}
|
|
2753
2767
|
updateLockedDate() {
|
|
2754
|
-
const year =
|
|
2768
|
+
const year = moment__default.unix(this.forecastYear).year();
|
|
2755
2769
|
this.forecastTags = this.forecastTags.map((forecastTag) => {
|
|
2756
2770
|
forecastTag.disabled = this.lockedDate.some((timestamp) => {
|
|
2757
|
-
const locked =
|
|
2771
|
+
const locked = moment__default.unix(timestamp);
|
|
2758
2772
|
return locked.month() === forecastTag.value && +locked.year() === +year;
|
|
2759
2773
|
});
|
|
2760
2774
|
return forecastTag;
|
|
@@ -2801,7 +2815,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2801
2815
|
if (this.isDateEventHappened)
|
|
2802
2816
|
return;
|
|
2803
2817
|
const month = this.forecastValue;
|
|
2804
|
-
const year =
|
|
2818
|
+
const year = moment__default.unix(this.forecastYear);
|
|
2805
2819
|
const fiscal_year_starts_from = this.fiscalYearStartsFrom || 1;
|
|
2806
2820
|
const fiscal_year_back = this.fiscalYearBack || false;
|
|
2807
2821
|
if (!Number.isNaN(month) && !Number.isNaN(year)) {
|
|
@@ -2814,7 +2828,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2814
2828
|
date.setMonth(date.getMonth() - 1 + fiscal_year_starts_from);
|
|
2815
2829
|
}
|
|
2816
2830
|
}
|
|
2817
|
-
this.dateObj.date =
|
|
2831
|
+
this.dateObj.date = moment__default(date).unix();
|
|
2818
2832
|
this.isDateEventHappened = true;
|
|
2819
2833
|
setTimeout(() => {
|
|
2820
2834
|
this.isDateEventHappened = false;
|
|
@@ -2824,7 +2838,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2824
2838
|
name: this.name,
|
|
2825
2839
|
value: this.dateObj.date,
|
|
2826
2840
|
label: `${find(this.forecastTags, { value: this.forecastValue })?.label} (${year.year()})`,
|
|
2827
|
-
locked: !this.dateFilter(
|
|
2841
|
+
locked: !this.dateFilter(moment__default.unix(this.dateObj.date)),
|
|
2828
2842
|
};
|
|
2829
2843
|
this.dateChange.emit(resultTag);
|
|
2830
2844
|
}
|
|
@@ -2832,7 +2846,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2832
2846
|
const month = this.forecastValue;
|
|
2833
2847
|
const year = date.year();
|
|
2834
2848
|
return !this.lockedDate.some((timestamp) => {
|
|
2835
|
-
const lockDate =
|
|
2849
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2836
2850
|
return lockDate.month() === month && lockDate.year() === year;
|
|
2837
2851
|
});
|
|
2838
2852
|
}
|
|
@@ -3309,8 +3323,8 @@ class DrModelDebounceChangeDirective {
|
|
|
3309
3323
|
type: Output
|
|
3310
3324
|
}] }); })();
|
|
3311
3325
|
|
|
3312
|
-
const _c0$
|
|
3313
|
-
const _c1$
|
|
3326
|
+
const _c0$C = ["prefix"];
|
|
3327
|
+
const _c1$g = ["suffix"];
|
|
3314
3328
|
const _c2$6 = ["inputRef"];
|
|
3315
3329
|
function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
3316
3330
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -3519,8 +3533,8 @@ class DrInputComponent {
|
|
|
3519
3533
|
}
|
|
3520
3534
|
/** @nocollapse */ static { this.ɵfac = function DrInputComponent_Factory(t) { return new (t || DrInputComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
3521
3535
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrInputComponent, selectors: [["dr-input"]], contentQueries: function DrInputComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
3522
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
3523
|
-
i0.ɵɵcontentQuery(dirIndex, _c1$
|
|
3536
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$C, 5);
|
|
3537
|
+
i0.ɵɵcontentQuery(dirIndex, _c1$g, 5);
|
|
3524
3538
|
} if (rf & 2) {
|
|
3525
3539
|
let _t;
|
|
3526
3540
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
|
|
@@ -3660,7 +3674,7 @@ function DrButtonComponent_i_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
3660
3674
|
i0.ɵɵclassMap(ctx_r2.iconAfter);
|
|
3661
3675
|
i0.ɵɵstyleProp("font-size", ctx_r2.iconAfterSize)("color", ctx_r2.iconAfterColor || "inherit");
|
|
3662
3676
|
} }
|
|
3663
|
-
const _c0$
|
|
3677
|
+
const _c0$B = ["*"];
|
|
3664
3678
|
class DrButtonComponent {
|
|
3665
3679
|
constructor() {
|
|
3666
3680
|
this.theme = 'primary';
|
|
@@ -3674,7 +3688,7 @@ class DrButtonComponent {
|
|
|
3674
3688
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrButtonComponent, selectors: [["dr-button"]], hostVars: 12, hostBindings: function DrButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3675
3689
|
i0.ɵɵclassMap(ctx.theme);
|
|
3676
3690
|
i0.ɵɵclassProp("with-icon", ctx.icon)("with-icon-after", ctx.iconAfter)("disabled", ctx.disabled)("loading", ctx.isLoading)("active", ctx.isActive);
|
|
3677
|
-
} }, inputs: { theme: "theme", icon: "icon", iconColor: "iconColor", iconSize: "iconSize", iconAfter: "iconAfter", iconAfterColor: "iconAfterColor", iconAfterSize: "iconAfterSize", disabled: "disabled", isLoading: "isLoading", isActive: "isActive" }, ngContentSelectors: _c0$
|
|
3691
|
+
} }, inputs: { theme: "theme", icon: "icon", iconColor: "iconColor", iconSize: "iconSize", iconAfter: "iconAfter", iconAfterColor: "iconAfterColor", iconAfterSize: "iconAfterSize", disabled: "disabled", isLoading: "isLoading", isActive: "isActive" }, ngContentSelectors: _c0$B, decls: 5, vars: 4, consts: [[3, "disabled"], ["class", "dr-button__icon", 3, "class", "font-size", "color", 4, "ngIf"], ["class", "dr-button__spinner", 4, "ngIf"], ["class", "dr-button__icon dr-button__icon--after", 3, "class", "font-size", "color", 4, "ngIf"], [1, "dr-button__icon"], [1, "dr-button__spinner"], [1, "dr-icon-load"], [1, "dr-button__icon", "dr-button__icon--after"]], template: function DrButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3678
3692
|
i0.ɵɵprojectionDef();
|
|
3679
3693
|
i0.ɵɵelementStart(0, "button", 0);
|
|
3680
3694
|
i0.ɵɵtemplate(1, DrButtonComponent_i_1_Template, 1, 6, "i", 1);
|
|
@@ -3735,7 +3749,7 @@ class DrButtonComponent {
|
|
|
3735
3749
|
args: ['class.active']
|
|
3736
3750
|
}] }); })();
|
|
3737
3751
|
|
|
3738
|
-
const _c0$
|
|
3752
|
+
const _c0$A = ["dynamicInputRef"];
|
|
3739
3753
|
function DrSelectAddItemComponent_div_5_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
3740
3754
|
i0.ɵɵelementStart(0, "p", 12);
|
|
3741
3755
|
i0.ɵɵtext(1);
|
|
@@ -3825,7 +3839,7 @@ class DrSelectAddItemComponent {
|
|
|
3825
3839
|
}
|
|
3826
3840
|
/** @nocollapse */ static { this.ɵfac = function DrSelectAddItemComponent_Factory(t) { return new (t || DrSelectAddItemComponent)(i0.ɵɵdirectiveInject(DrSelectComponent)); }; }
|
|
3827
3841
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectAddItemComponent, selectors: [["dr-select-add-item"]], viewQuery: function DrSelectAddItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3828
|
-
i0.ɵɵviewQuery(_c0$
|
|
3842
|
+
i0.ɵɵviewQuery(_c0$A, 5);
|
|
3829
3843
|
} if (rf & 2) {
|
|
3830
3844
|
let _t;
|
|
3831
3845
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputRef = _t.first);
|
|
@@ -3989,7 +4003,7 @@ class DrDynamicTagComponent {
|
|
|
3989
4003
|
getParentValueKey() {
|
|
3990
4004
|
return map$1(this.connectedTags, (connectedTag) => {
|
|
3991
4005
|
if (isNumber(connectedTag.value)) {
|
|
3992
|
-
const momentData =
|
|
4006
|
+
const momentData = moment__default.unix(connectedTag.value);
|
|
3993
4007
|
const convertedParentKey = this.parentKeyFormatterFn
|
|
3994
4008
|
? this.parentKeyFormatterFn(momentData)
|
|
3995
4009
|
: momentData.format(this.parentKeyFormat);
|
|
@@ -4285,7 +4299,7 @@ class DrTagComponent {
|
|
|
4285
4299
|
type: Output
|
|
4286
4300
|
}] }); })();
|
|
4287
4301
|
|
|
4288
|
-
const _c0$
|
|
4302
|
+
const _c0$z = ["*"];
|
|
4289
4303
|
class RadioButtonComponent {
|
|
4290
4304
|
get disabled() {
|
|
4291
4305
|
return this._disabled;
|
|
@@ -4336,7 +4350,7 @@ class RadioButtonComponent {
|
|
|
4336
4350
|
useExisting: RadioButtonComponent,
|
|
4337
4351
|
multi: true,
|
|
4338
4352
|
},
|
|
4339
|
-
])], ngContentSelectors: _c0$
|
|
4353
|
+
])], ngContentSelectors: _c0$z, decls: 4, vars: 4, consts: [["type", "radio", 3, "name", "value", "ngModel", "disabled", "change", "ngModelChange", "click"]], template: function RadioButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4340
4354
|
i0.ɵɵprojectionDef();
|
|
4341
4355
|
i0.ɵɵelementStart(0, "label")(1, "input", 0);
|
|
4342
4356
|
i0.ɵɵlistener("change", function RadioButtonComponent_Template_input_change_1_listener() { return ctx.valueChanged(ctx.value); })("ngModelChange", function RadioButtonComponent_Template_input_ngModelChange_1_listener($event) { return ctx.modelValue = $event; })("click", function RadioButtonComponent_Template_input_click_1_listener($event) { return ctx.toggleChange($event); });
|
|
@@ -4369,8 +4383,8 @@ class RadioButtonComponent {
|
|
|
4369
4383
|
type: Input
|
|
4370
4384
|
}] }); })();
|
|
4371
4385
|
|
|
4372
|
-
const _c0$
|
|
4373
|
-
const _c1$
|
|
4386
|
+
const _c0$y = [[["dr-radio-button"]]];
|
|
4387
|
+
const _c1$f = ["dr-radio-button"];
|
|
4374
4388
|
class RadioGroupComponent {
|
|
4375
4389
|
get value() {
|
|
4376
4390
|
return this._value;
|
|
@@ -4509,8 +4523,8 @@ class RadioGroupComponent {
|
|
|
4509
4523
|
useExisting: forwardRef((() => RadioGroupComponent)),
|
|
4510
4524
|
multi: true,
|
|
4511
4525
|
},
|
|
4512
|
-
])], ngContentSelectors: _c1$
|
|
4513
|
-
i0.ɵɵprojectionDef(_c0$
|
|
4526
|
+
])], ngContentSelectors: _c1$f, decls: 1, vars: 0, template: function RadioGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4527
|
+
i0.ɵɵprojectionDef(_c0$y);
|
|
4514
4528
|
i0.ɵɵprojection(0);
|
|
4515
4529
|
} }, encapsulation: 2, changeDetection: 0 }); }
|
|
4516
4530
|
}
|
|
@@ -4547,8 +4561,8 @@ class RadioGroupComponent {
|
|
|
4547
4561
|
type: Output
|
|
4548
4562
|
}] }); })();
|
|
4549
4563
|
|
|
4550
|
-
const _c0$
|
|
4551
|
-
const _c1$
|
|
4564
|
+
const _c0$x = ["checkboxContent"];
|
|
4565
|
+
const _c1$e = ["*"];
|
|
4552
4566
|
class CheckboxComponent {
|
|
4553
4567
|
get indeterminate() {
|
|
4554
4568
|
return this._indeterminate;
|
|
@@ -4597,14 +4611,14 @@ class CheckboxComponent {
|
|
|
4597
4611
|
}
|
|
4598
4612
|
/** @nocollapse */ static { this.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
4599
4613
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["dr-checkbox"]], viewQuery: function CheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4600
|
-
i0.ɵɵviewQuery(_c0$
|
|
4614
|
+
i0.ɵɵviewQuery(_c0$x, 5);
|
|
4601
4615
|
} if (rf & 2) {
|
|
4602
4616
|
let _t;
|
|
4603
4617
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxContent = _t.first);
|
|
4604
4618
|
} }, hostVars: 6, hostBindings: function CheckboxComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
4605
4619
|
i0.ɵɵclassMap(ctx.theme);
|
|
4606
4620
|
i0.ɵɵclassProp("disabled", ctx.disabled)("text-nowrap", ctx.textNowrap);
|
|
4607
|
-
} }, inputs: { checkedStatus: "checkedStatus", disabled: "disabled", icon: "icon", theme: "theme", indeterminate: "indeterminate", textNowrap: "textNowrap" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }])], ngContentSelectors: _c1$
|
|
4621
|
+
} }, inputs: { checkedStatus: "checkedStatus", disabled: "disabled", icon: "icon", theme: "theme", indeterminate: "indeterminate", textNowrap: "textNowrap" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }])], ngContentSelectors: _c1$e, decls: 5, vars: 8, consts: [["type", "checkbox", 3, "checked", "disabled", "change", "click"], [3, "drTooltip"], ["checkboxContent", ""]], template: function CheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4608
4622
|
i0.ɵɵprojectionDef();
|
|
4609
4623
|
i0.ɵɵelementStart(0, "label")(1, "input", 0);
|
|
4610
4624
|
i0.ɵɵlistener("change", function CheckboxComponent_Template_input_change_1_listener($event) { return ctx.setValue($event); })("click", function CheckboxComponent_Template_input_click_1_listener($event) { return $event.stopPropagation(); });
|
|
@@ -4653,7 +4667,7 @@ class CheckboxComponent {
|
|
|
4653
4667
|
args: ['checkboxContent']
|
|
4654
4668
|
}] }); })();
|
|
4655
4669
|
|
|
4656
|
-
const _c0$
|
|
4670
|
+
const _c0$w = ["*"];
|
|
4657
4671
|
var LinkTheme;
|
|
4658
4672
|
(function (LinkTheme) {
|
|
4659
4673
|
LinkTheme["DEFAULT"] = "DEFAULT";
|
|
@@ -4669,7 +4683,7 @@ class DrLinkComponent {
|
|
|
4669
4683
|
this.theme = LinkTheme.DEFAULT;
|
|
4670
4684
|
}
|
|
4671
4685
|
/** @nocollapse */ static { this.ɵfac = function DrLinkComponent_Factory(t) { return new (t || DrLinkComponent)(); }; }
|
|
4672
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLinkComponent, selectors: [["dr-link"]], inputs: { link: "link", fontSize: "fontSize", fontWeight: "fontWeight", theme: "theme" }, ngContentSelectors: _c0$
|
|
4686
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLinkComponent, selectors: [["dr-link"]], inputs: { link: "link", fontSize: "fontSize", fontWeight: "fontWeight", theme: "theme" }, ngContentSelectors: _c0$w, decls: 2, vars: 7, consts: [[1, "dr-link", 3, "href"]], template: function DrLinkComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4673
4687
|
i0.ɵɵprojectionDef();
|
|
4674
4688
|
i0.ɵɵelementStart(0, "a", 0);
|
|
4675
4689
|
i0.ɵɵprojection(1);
|
|
@@ -4741,7 +4755,7 @@ function DrDatePickerWithTimeframeComponent_dr_button_11_Template(rf, ctx) { if
|
|
|
4741
4755
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
4742
4756
|
i0.ɵɵproperty("disabled", ctx_r5.isNextDateDisabled);
|
|
4743
4757
|
} }
|
|
4744
|
-
const _c0$
|
|
4758
|
+
const _c0$v = function (a0) { return { formattedValue: a0 }; };
|
|
4745
4759
|
class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
4746
4760
|
get isDashboardClassDisplayed() {
|
|
4747
4761
|
return this.isDashboardDatepicker;
|
|
@@ -4914,14 +4928,14 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4914
4928
|
i0.ɵɵadvance(1);
|
|
4915
4929
|
i0.ɵɵproperty("ngIf", ctx.isDashboardDatepicker);
|
|
4916
4930
|
i0.ɵɵadvance(2);
|
|
4917
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(19, _c0$
|
|
4931
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(19, _c0$v, i0.ɵɵpipeBind1(5, 15, ctx.displayedFormattedValue$)));
|
|
4918
4932
|
i0.ɵɵadvance(4);
|
|
4919
4933
|
i0.ɵɵproperty("ngModel", i0.ɵɵpipeBind1(10, 17, ctx.displayValue$))("matDatepicker", _r6)("readonly", ctx.readonly)("min", ctx._min)("max", ctx._max);
|
|
4920
4934
|
i0.ɵɵadvance(3);
|
|
4921
4935
|
i0.ɵɵproperty("ngIf", !ctx.disabled);
|
|
4922
4936
|
i0.ɵɵadvance(1);
|
|
4923
4937
|
i0.ɵɵproperty("calendarHeaderComponent", ctx.customHeader)("panelClass", ctx.datePickerService.isUsingDateTagPresets ? "date-picker-preset-tag" : "dr-timeframe-datepicker");
|
|
4924
|
-
} }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgModel, i1.NgIf, i1.NgTemplateOutlet, i5.MatDatepicker, i5.MatDatepickerInput, DrTooltipDirective, DrButtonComponent, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}[_nghost-%COMP%]:hover{border-color:#9ea1aa}.active[_nghost-%COMP%], [_nghost-%COMP%]:focus-within{border-color:#4646ce!important;color:#333}.disabled[_nghost-%COMP%]{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}.disabled[_nghost-%COMP%]:after{color:#aeabac}.ng-valid.ng-dirty[_nghost-%COMP%]{border-color:#037c5a}.ng-invalid.ng-dirty[_nghost-%COMP%]:not(:focus-within){border-color:#bf1d30!important}.ng-untouched.ng-valid[_nghost-%COMP%]{border-color:#9ea1aa}[_nghost-%COMP%]:after, [_nghost-%COMP%]:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}[_nghost-%COMP%]:after{font-family:DataRails!important;content:\"\\
|
|
4938
|
+
} }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgModel, i1.NgIf, i1.NgTemplateOutlet, i5.MatDatepicker, i5.MatDatepickerInput, DrTooltipDirective, DrButtonComponent, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}[_nghost-%COMP%]:hover{border-color:#9ea1aa}.active[_nghost-%COMP%], [_nghost-%COMP%]:focus-within{border-color:#4646ce!important;color:#333}.disabled[_nghost-%COMP%]{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}.disabled[_nghost-%COMP%]:after{color:#aeabac}.ng-valid.ng-dirty[_nghost-%COMP%]{border-color:#037c5a}.ng-invalid.ng-dirty[_nghost-%COMP%]:not(:focus-within){border-color:#bf1d30!important}.ng-untouched.ng-valid[_nghost-%COMP%]{border-color:#9ea1aa}[_nghost-%COMP%]:after, [_nghost-%COMP%]:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}[_nghost-%COMP%]:after{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;pointer-events:none;position:absolute;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] i[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}[_nghost-%COMP%] input.when-quarter[_ngcontent-%COMP%]{position:absolute;visibility:hidden}[_nghost-%COMP%] input[_ngcontent-%COMP%]:disabled{border:none;color:#aeabac;background:transparent}[_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}[_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}[_nghost-%COMP%] .range-input[_ngcontent-%COMP%]{position:absolute;height:0;width:0;bottom:0;left:0;z-index:-1} .mat-datepicker-popup .dr-week-datepicker{width:386px!important} .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range:before{background:initial!important} .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-selected, .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-cell-content{background:#f2f2fb!important;color:#4646ce!important;font-weight:600!important} .mat-datepicker-popup .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important} .mat-datepicker-popup .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit} .mat-datepicker-popup .mat-datepicker-content button[disabled]:hover{border:inherit} .mat-datepicker-popup .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .mat-datepicker-popup .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#fff} .mat-datepicker-popup .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600} .mat-datepicker-popup .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600} .mat-datepicker-popup .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none} .mat-datepicker-popup .mat-button-focus-overlay{background:#f5f5f5} .mat-datepicker-popup .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f5f5f5;transition:opacity .2s cubic-bezier(.35,0,.25,1)} .mat-datepicker-popup .mat-calendar-controls .mat-calendar-period-button:hover{background:#f5f5f5;transition:background .2s cubic-bezier(.35,0,.25,1)} .mat-datepicker-popup .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333} .mat-datepicker-popup .mat-calendar-table-header-divider{display:none} .mat-datepicker-popup .mat-calendar-body-label{color:#fff;padding:0} .mat-datepicker-popup .mat-calendar-body>tr[aria-hidden=true]>.mat-calendar-body-label{display:none} .mat-datepicker-popup .mat-calendar-content{display:flex} .mat-datepicker-popup .mat-calendar-content dr-week-selector{flex:0} .mat-datepicker-popup .mat-calendar-content mat-month-view, .mat-datepicker-popup .mat-calendar-content mat-multi-year-view, .mat-datepicker-popup .mat-calendar-content mat-year-view{flex:1}[_nghost-%COMP%]{border:none;display:flex;align-items:center}.disabled[_nghost-%COMP%]{background:transparent;color:#aeabac}.disabled.dr-date-picker-on-dashboard[_nghost-%COMP%]{border:none;padding:0 8px}.disabled.dr-date-picker-on-dashboard[_nghost-%COMP%] .dr-datepicker-input-container__formatted-value-display[_ngcontent-%COMP%]{text-decoration:none;color:#aeabac;font-weight:400}.disabled.dr-date-picker-on-dashboard[_nghost-%COMP%] .dr-datepicker-input-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#aeabac}.dr-date-picker-on-dashboard[_nghost-%COMP%]{width:-moz-fit-content;width:fit-content;justify-content:space-between}.dr-date-picker-on-dashboard[_nghost-%COMP%] mat-datepicker[_ngcontent-%COMP%]{position:absolute}.dr-date-picker-on-dashboard[_nghost-%COMP%]:after{visibility:hidden}.dr-date-picker-on-dashboard[_nghost-%COMP%] .dr-datepicker-input-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:-10px}.dr-date-picker-on-dashboard[_nghost-%COMP%] .dr-datepicker-input-container__formatted-value-display[_ngcontent-%COMP%]{font-weight:600;width:auto;margin-left:5px}.dr-date-picker-on-dashboard[_nghost-%COMP%] .dr-datepicker-input-container[_ngcontent-%COMP%] .dr-icon-date[_ngcontent-%COMP%]{display:block;position:relative;top:0;margin-right:8px;color:#4e566c}[_nghost-%COMP%] .dr-datepicker-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{visibility:hidden;position:absolute;width:100%}[_nghost-%COMP%] .dr-datepicker-input-container__formatted-value-display[_ngcontent-%COMP%]{width:100px;height:22px;padding-left:0;text-align:center;line-height:22px;color:#0c142b;text-decoration-line:underline}[_nghost-%COMP%] .dr-datepicker-input-container__formatted-value-display[_ngcontent-%COMP%]:hover{background-color:#f2f2fb;border-radius:5px;cursor:pointer;text-decoration-line:underline;color:#4646ce} .date-picker-preset-tag{width:386px!important} .date-picker-preset-tag .mat-calendar-content{padding-left:32px!important;padding-right:32px!important}@media screen and (max-width: 410px){.mat-datepicker-input[_ngcontent-%COMP%]{width:100vw!important} .date-picker-preset-tag{width:calc(100vw - 16px)!important} .date-picker-preset-tag .dr-datepicker-preset-date__tags{justify-content:center;margin-left:-32px;margin-right:-32px} .date-picker-preset-tag .dr-datepicker-preset-date__tags__tag{font-size:10px}}"], changeDetection: 0 }); }
|
|
4925
4939
|
}
|
|
4926
4940
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrDatePickerWithTimeframeComponent, [{
|
|
4927
4941
|
type: Component,
|
|
@@ -4929,7 +4943,7 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4929
4943
|
{ provide: NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },
|
|
4930
4944
|
{ provide: DateAdapter, useClass: CustomDateAdapter },
|
|
4931
4945
|
{ provide: DrDatePickerService },
|
|
4932
|
-
], template: "<dr-button\n [disabled]=\"isPrevDateDisabled\"\n *ngIf=\"!disabled\"\n theme=\"icon\"\n icon=\"dr-icon-arrow-left\"\n (click)=\"pagingClicked(false)\"></dr-button>\n<div\n [drTooltip]=\"datepickerTooltip\"\n [drTooltipPosition]=\"datepickerTooltipPosition\"\n [drTooltipMousleaveTimeout]=\"datepickerTooltipTimeout\"\n class=\"dr-datepicker-input-container\">\n <i *ngIf=\"isDashboardDatepicker\" class=\"dr-icon-date\"></i>\n\n <div class=\"dr-datepicker-input-container__formatted-value-display\" (click)=\"datepickerInput.click()\">\n <ng-container\n [ngTemplateOutlet]=\"formattedValueTmpl\"\n [ngTemplateOutletContext]=\"{\n formattedValue: displayedFormattedValue$ | async,\n }\">\n </ng-container>\n <ng-template #formattedValueTmpl let-value=\"formattedValue\">\n <span>\n {{\n datePickerService.isUsingDateTagPresets && !!presetTagSelected\n ? presetTagSelected + ' (' + value + ')'\n : value\n }}\n </span>\n </ng-template>\n </div>\n <input\n #datepickerInput\n [ngModel]=\"displayValue$ | async\"\n (ngModelChange)=\"valueChangedInCalendar($event)\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n</div>\n<dr-button\n [disabled]=\"isNextDateDisabled\"\n *ngIf=\"!disabled\"\n theme=\"icon\"\n icon=\"dr-icon-arrow-right\"\n (click)=\"pagingClicked(true)\"></dr-button>\n\n<mat-datepicker\n #datePicker\n class=\"dr-timeframe-datepicker\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\"\n [panelClass]=\"datePickerService.isUsingDateTagPresets ? 'date-picker-preset-tag' : 'dr-timeframe-datepicker'\">\n</mat-datepicker>\n", styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\
|
|
4946
|
+
], template: "<dr-button\n [disabled]=\"isPrevDateDisabled\"\n *ngIf=\"!disabled\"\n theme=\"icon\"\n icon=\"dr-icon-arrow-left\"\n (click)=\"pagingClicked(false)\"></dr-button>\n<div\n [drTooltip]=\"datepickerTooltip\"\n [drTooltipPosition]=\"datepickerTooltipPosition\"\n [drTooltipMousleaveTimeout]=\"datepickerTooltipTimeout\"\n class=\"dr-datepicker-input-container\">\n <i *ngIf=\"isDashboardDatepicker\" class=\"dr-icon-date\"></i>\n\n <div class=\"dr-datepicker-input-container__formatted-value-display\" (click)=\"datepickerInput.click()\">\n <ng-container\n [ngTemplateOutlet]=\"formattedValueTmpl\"\n [ngTemplateOutletContext]=\"{\n formattedValue: displayedFormattedValue$ | async,\n }\">\n </ng-container>\n <ng-template #formattedValueTmpl let-value=\"formattedValue\">\n <span>\n {{\n datePickerService.isUsingDateTagPresets && !!presetTagSelected\n ? presetTagSelected + ' (' + value + ')'\n : value\n }}\n </span>\n </ng-template>\n </div>\n <input\n #datepickerInput\n [ngModel]=\"displayValue$ | async\"\n (ngModelChange)=\"valueChangedInCalendar($event)\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n</div>\n<dr-button\n [disabled]=\"isNextDateDisabled\"\n *ngIf=\"!disabled\"\n theme=\"icon\"\n icon=\"dr-icon-arrow-right\"\n (click)=\"pagingClicked(true)\"></dr-button>\n\n<mat-datepicker\n #datePicker\n class=\"dr-timeframe-datepicker\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\"\n [panelClass]=\"datePickerService.isUsingDateTagPresets ? 'date-picker-preset-tag' : 'dr-timeframe-datepicker'\">\n</mat-datepicker>\n", styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;pointer-events:none;position:absolute;display:flex;align-items:center;justify-content:center}:host i{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}:host input{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}:host input.when-quarter{position:absolute;visibility:hidden}:host input:disabled{border:none;color:#aeabac;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}:host input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host .range-input{position:absolute;height:0;width:0;bottom:0;left:0;z-index:-1}::ng-deep .mat-datepicker-popup .dr-week-datepicker{width:386px!important}::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range:before{background:initial!important}::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-selected,::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-cell-content{background:#f2f2fb!important;color:#4646ce!important;font-weight:600!important}::ng-deep .mat-datepicker-popup .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-popup .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-popup .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .mat-datepicker-popup .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),::ng-deep .mat-datepicker-popup .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#fff}::ng-deep .mat-datepicker-popup .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600}::ng-deep .mat-datepicker-popup .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-datepicker-popup .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-datepicker-popup .mat-button-focus-overlay{background:#f5f5f5}::ng-deep .mat-datepicker-popup .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f5f5f5;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-datepicker-popup .mat-calendar-controls .mat-calendar-period-button:hover{background:#f5f5f5;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-datepicker-popup .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333}::ng-deep .mat-datepicker-popup .mat-calendar-table-header-divider{display:none}::ng-deep .mat-datepicker-popup .mat-calendar-body-label{color:#fff;padding:0}::ng-deep .mat-datepicker-popup .mat-calendar-body>tr[aria-hidden=true]>.mat-calendar-body-label{display:none}::ng-deep .mat-datepicker-popup .mat-calendar-content{display:flex}::ng-deep .mat-datepicker-popup .mat-calendar-content dr-week-selector{flex:0}::ng-deep .mat-datepicker-popup .mat-calendar-content mat-month-view,::ng-deep .mat-datepicker-popup .mat-calendar-content mat-multi-year-view,::ng-deep .mat-datepicker-popup .mat-calendar-content mat-year-view{flex:1}:host{border:none;display:flex;align-items:center}:host.disabled{background:transparent;color:#aeabac}:host.disabled.dr-date-picker-on-dashboard{border:none;padding:0 8px}:host.disabled.dr-date-picker-on-dashboard .dr-datepicker-input-container__formatted-value-display{text-decoration:none;color:#aeabac;font-weight:400}:host.disabled.dr-date-picker-on-dashboard .dr-datepicker-input-container i{color:#aeabac}:host.dr-date-picker-on-dashboard{width:-moz-fit-content;width:fit-content;justify-content:space-between}:host.dr-date-picker-on-dashboard mat-datepicker{position:absolute}:host.dr-date-picker-on-dashboard:after{visibility:hidden}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:-10px}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container__formatted-value-display{font-weight:600;width:auto;margin-left:5px}:host.dr-date-picker-on-dashboard .dr-datepicker-input-container .dr-icon-date{display:block;position:relative;top:0;margin-right:8px;color:#4e566c}:host .dr-datepicker-input-container input{visibility:hidden;position:absolute;width:100%}:host .dr-datepicker-input-container__formatted-value-display{width:100px;height:22px;padding-left:0;text-align:center;line-height:22px;color:#0c142b;text-decoration-line:underline}:host .dr-datepicker-input-container__formatted-value-display:hover{background-color:#f2f2fb;border-radius:5px;cursor:pointer;text-decoration-line:underline;color:#4646ce}::ng-deep .date-picker-preset-tag{width:386px!important}::ng-deep .date-picker-preset-tag .mat-calendar-content{padding-left:32px!important;padding-right:32px!important}@media screen and (max-width: 410px){.mat-datepicker-input{width:100vw!important}::ng-deep .date-picker-preset-tag{width:calc(100vw - 16px)!important}::ng-deep .date-picker-preset-tag .dr-datepicker-preset-date__tags{justify-content:center;margin-left:-32px;margin-right:-32px}::ng-deep .date-picker-preset-tag .dr-datepicker-preset-date__tags__tag{font-size:10px}}\n"] }]
|
|
4933
4947
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.DateAdapter }, { type: DrDatePickerService }]; }, { isDashboardClassDisplayed: [{
|
|
4934
4948
|
type: HostBinding,
|
|
4935
4949
|
args: ['class.dr-date-picker-on-dashboard']
|
|
@@ -5190,7 +5204,7 @@ class TooltipInfoComponent {
|
|
|
5190
5204
|
type: Input
|
|
5191
5205
|
}] }); })();
|
|
5192
5206
|
|
|
5193
|
-
const _c0$
|
|
5207
|
+
const _c0$u = ["stepper"];
|
|
5194
5208
|
function StepperComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
5195
5209
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
5196
5210
|
i0.ɵɵelementStart(0, "div", 6);
|
|
@@ -5206,7 +5220,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_5_Template(rf, ctx) {
|
|
|
5206
5220
|
i0.ɵɵelement(1, "i", 22);
|
|
5207
5221
|
i0.ɵɵelementEnd();
|
|
5208
5222
|
} }
|
|
5209
|
-
const _c1$
|
|
5223
|
+
const _c1$d = function (a0) { return { "blue with-ellipse": a0 }; };
|
|
5210
5224
|
function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
5211
5225
|
i0.ɵɵelementStart(0, "div", 23)(1, "div", 24);
|
|
5212
5226
|
i0.ɵɵtext(2);
|
|
@@ -5217,7 +5231,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
|
|
|
5217
5231
|
const index_r11 = ctx_r22.index;
|
|
5218
5232
|
const ctx_r18 = i0.ɵɵnextContext();
|
|
5219
5233
|
i0.ɵɵclassProp("gray", step_r10 !== ctx_r18.currentStep);
|
|
5220
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c1$
|
|
5234
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c1$d, step_r10 === ctx_r18.currentStep));
|
|
5221
5235
|
i0.ɵɵadvance(1);
|
|
5222
5236
|
i0.ɵɵproperty("hidden", step_r10 === ctx_r18.currentStep || ctx_r18.hiddenIndex);
|
|
5223
5237
|
i0.ɵɵadvance(1);
|
|
@@ -5404,7 +5418,7 @@ class StepperComponent {
|
|
|
5404
5418
|
}
|
|
5405
5419
|
/** @nocollapse */ static { this.ɵfac = function StepperComponent_Factory(t) { return new (t || StepperComponent)(); }; }
|
|
5406
5420
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: StepperComponent, selectors: [["dr-stepper"]], viewQuery: function StepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5407
|
-
i0.ɵɵviewQuery(_c0$
|
|
5421
|
+
i0.ɵɵviewQuery(_c0$u, 5, ElementRef);
|
|
5408
5422
|
} if (rf & 2) {
|
|
5409
5423
|
let _t;
|
|
5410
5424
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepper = _t.first);
|
|
@@ -5565,7 +5579,7 @@ function DrChatFormComponent_dr_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
5565
5579
|
i0.ɵɵtext(1, "Stop generating");
|
|
5566
5580
|
i0.ɵɵelementEnd();
|
|
5567
5581
|
} }
|
|
5568
|
-
const _c0$
|
|
5582
|
+
const _c0$t = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
|
|
5569
5583
|
class DrChatFormComponent {
|
|
5570
5584
|
constructor(cdr, domSanitizer) {
|
|
5571
5585
|
this.cdr = cdr;
|
|
@@ -5721,7 +5735,7 @@ class DrChatFormComponent {
|
|
|
5721
5735
|
const _r1 = i0.ɵɵreference(4);
|
|
5722
5736
|
i0.ɵɵproperty("ngIf", ctx.droppedFiles == null ? null : ctx.droppedFiles.length);
|
|
5723
5737
|
i0.ɵɵadvance(2);
|
|
5724
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c0$
|
|
5738
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c0$t, ctx.inputFocus, !!(ctx.message == null ? null : ctx.message.length)));
|
|
5725
5739
|
i0.ɵɵadvance(1);
|
|
5726
5740
|
i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
|
|
5727
5741
|
i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
|
|
@@ -5836,7 +5850,7 @@ function DrAvatarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
5836
5850
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
5837
5851
|
i0.ɵɵstyleProp("width", ctx_r0.drAvatarSize || null)("height", ctx_r0.drAvatarSize || null);
|
|
5838
5852
|
} }
|
|
5839
|
-
const _c0$
|
|
5853
|
+
const _c0$s = function (a0, a1) { return { "users-section__default": a0, "users-section__user--clickable": a1 }; };
|
|
5840
5854
|
function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
5841
5855
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
5842
5856
|
i0.ɵɵelementStart(0, "div", 5);
|
|
@@ -5850,7 +5864,7 @@ function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
5850
5864
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
5851
5865
|
i0.ɵɵclassMap(user_r5.status);
|
|
5852
5866
|
i0.ɵɵstyleProp("width", ctx_r1.drAvatarSize || null)("height", ctx_r1.drAvatarSize || null)("background-color", ctx_r1.getAvatarColor(user_r5));
|
|
5853
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c0$
|
|
5867
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c0$s, ctx_r1.showUnassigned && !user_r5.email, ctx_r1.drAvatarIsClickable))("drTooltip", i0.ɵɵpipeBind1(1, 13, user_r5))("drTooltipClass", ctx_r1.drAvatarTooltipClass)("drTooltipPosition", ctx_r1.drAvatarTooltipPosition);
|
|
5854
5868
|
i0.ɵɵadvance(2);
|
|
5855
5869
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 15, user_r5, "initials"), "\n");
|
|
5856
5870
|
} }
|
|
@@ -6099,7 +6113,7 @@ class DrChatMessageFileComponent {
|
|
|
6099
6113
|
type: Input
|
|
6100
6114
|
}] }); })();
|
|
6101
6115
|
|
|
6102
|
-
const _c0$
|
|
6116
|
+
const _c0$r = ["drChatMessageActions"];
|
|
6103
6117
|
function DrChatMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
6104
6118
|
i0.ɵɵelementContainerStart(0);
|
|
6105
6119
|
i0.ɵɵelement(1, "div", 8);
|
|
@@ -6201,7 +6215,7 @@ class DrChatMessageComponent {
|
|
|
6201
6215
|
}
|
|
6202
6216
|
/** @nocollapse */ static { this.ɵfac = function DrChatMessageComponent_Factory(t) { return new (t || DrChatMessageComponent)(i0.ɵɵdirectiveInject(DrChatCustomMessageService)); }; }
|
|
6203
6217
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatMessageComponent, selectors: [["dr-chat-message"]], contentQueries: function DrChatMessageComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
6204
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
6218
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$r, 5);
|
|
6205
6219
|
} if (rf & 2) {
|
|
6206
6220
|
let _t;
|
|
6207
6221
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.drChatMessageActions = _t.first);
|
|
@@ -6274,7 +6288,7 @@ class DrChatMessageComponent {
|
|
|
6274
6288
|
args: ['drChatMessageActions']
|
|
6275
6289
|
}] }); })();
|
|
6276
6290
|
|
|
6277
|
-
const _c0$
|
|
6291
|
+
const _c0$q = ["suggestionsContainer"];
|
|
6278
6292
|
function DrChatSuggestionsComponent_ng_container_2_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
6279
6293
|
i0.ɵɵelementContainer(0);
|
|
6280
6294
|
} }
|
|
@@ -6313,14 +6327,14 @@ function DrChatSuggestionsComponent_ng_template_3_div_1_Template(rf, ctx) { if (
|
|
|
6313
6327
|
i0.ɵɵadvance(1);
|
|
6314
6328
|
i0.ɵɵtextInterpolate1(" ", item_r9, " ");
|
|
6315
6329
|
} }
|
|
6316
|
-
const _c1$
|
|
6330
|
+
const _c1$c = function (a0, a1, a2) { return { "chat-suggestions__items--three-cols": a0, "chat-suggestions__items--two-cols": a1, "chat-suggestions__items--one-col": a2 }; };
|
|
6317
6331
|
function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
6318
6332
|
i0.ɵɵelementStart(0, "div", 8);
|
|
6319
6333
|
i0.ɵɵtemplate(1, DrChatSuggestionsComponent_ng_template_3_div_1_Template, 2, 1, "div", 9);
|
|
6320
6334
|
i0.ɵɵelementEnd();
|
|
6321
6335
|
} if (rf & 2) {
|
|
6322
6336
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
6323
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(2, _c1$
|
|
6337
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(2, _c1$c, ctx_r3.colsCount === 3, ctx_r3.colsCount === 2, ctx_r3.colsCount === 1));
|
|
6324
6338
|
i0.ɵɵadvance(1);
|
|
6325
6339
|
i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
|
|
6326
6340
|
} }
|
|
@@ -6419,7 +6433,7 @@ class DrChatSuggestionsComponent {
|
|
|
6419
6433
|
}
|
|
6420
6434
|
/** @nocollapse */ static { this.ɵfac = function DrChatSuggestionsComponent_Factory(t) { return new (t || DrChatSuggestionsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
6421
6435
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatSuggestionsComponent, selectors: [["dr-chat-suggestions"]], viewQuery: function DrChatSuggestionsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6422
|
-
i0.ɵɵviewQuery(_c0$
|
|
6436
|
+
i0.ɵɵviewQuery(_c0$q, 5);
|
|
6423
6437
|
} if (rf & 2) {
|
|
6424
6438
|
let _t;
|
|
6425
6439
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suggestionContainer = _t.first);
|
|
@@ -6453,8 +6467,8 @@ class DrChatSuggestionsComponent {
|
|
|
6453
6467
|
args: ['suggestionsContainer', { static: false }]
|
|
6454
6468
|
}] }); })();
|
|
6455
6469
|
|
|
6456
|
-
const _c0$
|
|
6457
|
-
const _c1$
|
|
6470
|
+
const _c0$p = ["drChatHeader"];
|
|
6471
|
+
const _c1$b = ["messagesContainer"];
|
|
6458
6472
|
function DrChatComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
6459
6473
|
i0.ɵɵelementContainer(0, 8);
|
|
6460
6474
|
} if (rf & 2) {
|
|
@@ -6569,7 +6583,7 @@ class DrChatComponent {
|
|
|
6569
6583
|
/** @nocollapse */ static { this.ɵfac = function DrChatComponent_Factory(t) { return new (t || DrChatComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
6570
6584
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatComponent, selectors: [["dr-chat"]], contentQueries: function DrChatComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
6571
6585
|
i0.ɵɵcontentQuery(dirIndex, DrChatFormComponent, 5);
|
|
6572
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
6586
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$p, 5);
|
|
6573
6587
|
i0.ɵɵcontentQuery(dirIndex, DrChatMessageComponent, 4);
|
|
6574
6588
|
} if (rf & 2) {
|
|
6575
6589
|
let _t;
|
|
@@ -6577,7 +6591,7 @@ class DrChatComponent {
|
|
|
6577
6591
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatHeader = _t.first);
|
|
6578
6592
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messages = _t);
|
|
6579
6593
|
} }, viewQuery: function DrChatComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6580
|
-
i0.ɵɵviewQuery(_c1$
|
|
6594
|
+
i0.ɵɵviewQuery(_c1$b, 5);
|
|
6581
6595
|
i0.ɵɵviewQuery(DrChatSuggestionsComponent, 5);
|
|
6582
6596
|
} if (rf & 2) {
|
|
6583
6597
|
let _t;
|
|
@@ -6645,8 +6659,8 @@ class DrChatComponent {
|
|
|
6645
6659
|
args: [DrChatSuggestionsComponent]
|
|
6646
6660
|
}] }); })();
|
|
6647
6661
|
|
|
6648
|
-
const _c0$
|
|
6649
|
-
const _c1$
|
|
6662
|
+
const _c0$o = ["textAreaElement"];
|
|
6663
|
+
const _c1$a = ["fileInput"];
|
|
6650
6664
|
function DrChatFormDropdownComponent_dr_chat_dropped_files_2_Template(rf, ctx) { if (rf & 1) {
|
|
6651
6665
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
6652
6666
|
i0.ɵɵelementStart(0, "dr-chat-dropped-files", 12);
|
|
@@ -6832,8 +6846,8 @@ class DrChatFormDropdownComponent {
|
|
|
6832
6846
|
}
|
|
6833
6847
|
/** @nocollapse */ static { this.ɵfac = function DrChatFormDropdownComponent_Factory(t) { return new (t || DrChatFormDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$5.DomSanitizer)); }; }
|
|
6834
6848
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormDropdownComponent, selectors: [["dr-chat-form-dropdown"]], viewQuery: function DrChatFormDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6835
|
-
i0.ɵɵviewQuery(_c0$
|
|
6836
|
-
i0.ɵɵviewQuery(_c1$
|
|
6849
|
+
i0.ɵɵviewQuery(_c0$o, 5);
|
|
6850
|
+
i0.ɵɵviewQuery(_c1$a, 5);
|
|
6837
6851
|
} if (rf & 2) {
|
|
6838
6852
|
let _t;
|
|
6839
6853
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.textAreaElementRef = _t.first);
|
|
@@ -6968,14 +6982,14 @@ class DrChatCustomMessageDirective {
|
|
|
6968
6982
|
type: Input
|
|
6969
6983
|
}] }); })();
|
|
6970
6984
|
|
|
6971
|
-
const _c0$
|
|
6985
|
+
const _c0$n = ["*"];
|
|
6972
6986
|
class DrChatAlertComponent {
|
|
6973
6987
|
constructor() {
|
|
6974
6988
|
this.iconClass = 'dr-icon-info';
|
|
6975
6989
|
this.close = new EventEmitter();
|
|
6976
6990
|
}
|
|
6977
6991
|
/** @nocollapse */ static { this.ɵfac = function DrChatAlertComponent_Factory(t) { return new (t || DrChatAlertComponent)(); }; }
|
|
6978
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$
|
|
6992
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatAlertComponent, selectors: [["dr-chat-alert"]], inputs: { iconClass: "iconClass" }, outputs: { close: "close" }, ngContentSelectors: _c0$n, decls: 3, vars: 2, consts: [["theme", "icon", "icon", "dr-icon-exit", "drTooltip", "Close", 1, "chat-alert-close-btn", 3, "click"]], template: function DrChatAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6979
6993
|
i0.ɵɵprojectionDef();
|
|
6980
6994
|
i0.ɵɵelement(0, "i");
|
|
6981
6995
|
i0.ɵɵprojection(1);
|
|
@@ -7013,7 +7027,7 @@ function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
7013
7027
|
i0.ɵɵadvance(1);
|
|
7014
7028
|
i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
|
|
7015
7029
|
} }
|
|
7016
|
-
const _c0$
|
|
7030
|
+
const _c0$m = ["*"];
|
|
7017
7031
|
class DrToggleComponent {
|
|
7018
7032
|
set disabled(value) {
|
|
7019
7033
|
this.setDisabledState(value);
|
|
@@ -7056,7 +7070,7 @@ class DrToggleComponent {
|
|
|
7056
7070
|
/** @nocollapse */ static { this.ɵfac = function DrToggleComponent_Factory(t) { return new (t || DrToggleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
7057
7071
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 2, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
7058
7072
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
7059
|
-
} }, inputs: { toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }])], ngContentSelectors: _c0$
|
|
7073
|
+
} }, inputs: { toggleTitle: "toggleTitle", toggleTitleRight: "toggleTitleRight", successType: "successType", checkedStatus: "checkedStatus", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: DrToggleComponent, multi: true }])], ngContentSelectors: _c0$m, decls: 7, vars: 9, consts: [["class", "toggle-title mr-3", 4, "ngIf"], [1, "toggle-container"], ["type", "checkbox", 3, "checked", "disabled", "click"], [1, "toggle-body"], ["class", "toggle-title ml-3", 4, "ngIf"], [1, "toggle-title", "mr-3"], [1, "toggle-title", "ml-3"]], template: function DrToggleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7060
7074
|
i0.ɵɵprojectionDef();
|
|
7061
7075
|
i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
|
|
7062
7076
|
i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
|
|
@@ -7176,7 +7190,7 @@ function DrAlertComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
7176
7190
|
i0.ɵɵadvance(1);
|
|
7177
7191
|
i0.ɵɵtextInterpolate(ctx_r0.text);
|
|
7178
7192
|
} }
|
|
7179
|
-
const _c0$
|
|
7193
|
+
const _c0$l = ["*"];
|
|
7180
7194
|
const ALERT_THEME_ICONS = {
|
|
7181
7195
|
[DrAlertTheme.SUCCESS]: 'dr-icon-uploaded-success',
|
|
7182
7196
|
[DrAlertTheme.BOLD_ERROR]: 'dr-icon-error',
|
|
@@ -7197,7 +7211,7 @@ class DrAlertComponent {
|
|
|
7197
7211
|
/** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
|
|
7198
7212
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
7199
7213
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
7200
|
-
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$
|
|
7214
|
+
} }, inputs: { theme: "theme", customIconClass: "customIconClass", text: "text" }, ngContentSelectors: _c0$l, decls: 6, vars: 3, consts: [[1, "dr-alert__content-wrapper"], ["class", "dr-alert__text", 4, "ngIf"], [1, "dr-alert__custom-content"], ["contentRef", ""], [1, "dr-alert__text"]], template: function DrAlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7201
7215
|
i0.ɵɵprojectionDef();
|
|
7202
7216
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7203
7217
|
i0.ɵɵelement(1, "i");
|
|
@@ -7243,7 +7257,7 @@ class CodeEditorHintWrapperComponent {
|
|
|
7243
7257
|
}]
|
|
7244
7258
|
}], null, null); })();
|
|
7245
7259
|
|
|
7246
|
-
const _c0$
|
|
7260
|
+
const _c0$k = ["ref"];
|
|
7247
7261
|
class DrCodemirrorComponent {
|
|
7248
7262
|
set options(value) {
|
|
7249
7263
|
this._options = value;
|
|
@@ -7373,7 +7387,7 @@ class DrCodemirrorComponent {
|
|
|
7373
7387
|
}
|
|
7374
7388
|
/** @nocollapse */ static { this.ɵfac = function DrCodemirrorComponent_Factory(t) { return new (t || DrCodemirrorComponent)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.NgZone)); }; }
|
|
7375
7389
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodemirrorComponent, selectors: [["dr-codemirror"]], viewQuery: function DrCodemirrorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7376
|
-
i0.ɵɵviewQuery(_c0$
|
|
7390
|
+
i0.ɵɵviewQuery(_c0$k, 5);
|
|
7377
7391
|
} if (rf & 2) {
|
|
7378
7392
|
let _t;
|
|
7379
7393
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ref = _t.first);
|
|
@@ -7525,7 +7539,7 @@ class DrErrorComponent {
|
|
|
7525
7539
|
args: ['class.no-icon']
|
|
7526
7540
|
}] }); })();
|
|
7527
7541
|
|
|
7528
|
-
const _c0$
|
|
7542
|
+
const _c0$j = ["codeEditor"];
|
|
7529
7543
|
function DrCodeEditorComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
7530
7544
|
i0.ɵɵelementStart(0, "span", 4);
|
|
7531
7545
|
i0.ɵɵtext(1);
|
|
@@ -7804,7 +7818,7 @@ class DrCodeEditorComponent {
|
|
|
7804
7818
|
}
|
|
7805
7819
|
/** @nocollapse */ static { this.ɵfac = function DrCodeEditorComponent_Factory(t) { return new (t || DrCodeEditorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
7806
7820
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodeEditorComponent, selectors: [["dr-code-editor"]], viewQuery: function DrCodeEditorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7807
|
-
i0.ɵɵviewQuery(_c0$
|
|
7821
|
+
i0.ɵɵviewQuery(_c0$j, 5);
|
|
7808
7822
|
} if (rf & 2) {
|
|
7809
7823
|
let _t;
|
|
7810
7824
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.codeEditor = _t.first);
|
|
@@ -8572,7 +8586,7 @@ const getAlignmentDimension = (position) => {
|
|
|
8572
8586
|
return DrPopoverAlignmentDimension.Width;
|
|
8573
8587
|
};
|
|
8574
8588
|
|
|
8575
|
-
const _c0$
|
|
8589
|
+
const _c0$i = ["popoverContainer"];
|
|
8576
8590
|
function DrPopoverComponent_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8577
8591
|
i0.ɵɵelementContainer(0);
|
|
8578
8592
|
} }
|
|
@@ -8662,7 +8676,7 @@ class DrPopoverComponent {
|
|
|
8662
8676
|
}
|
|
8663
8677
|
/** @nocollapse */ static { this.ɵfac = function DrPopoverComponent_Factory(t) { return new (t || DrPopoverComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DrPopoverRef)); }; }
|
|
8664
8678
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrPopoverComponent, selectors: [["dr-popover"]], viewQuery: function DrPopoverComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8665
|
-
i0.ɵɵviewQuery(_c0$
|
|
8679
|
+
i0.ɵɵviewQuery(_c0$i, 7, ElementRef);
|
|
8666
8680
|
} if (rf & 2) {
|
|
8667
8681
|
let _t;
|
|
8668
8682
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverContainer = _t.first);
|
|
@@ -8979,7 +8993,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8979
8993
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8980
8994
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8981
8995
|
};
|
|
8982
|
-
const _c0$
|
|
8996
|
+
const _c0$h = ["menuContainer"];
|
|
8983
8997
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
8984
8998
|
i0.ɵɵelement(0, "i", 11);
|
|
8985
8999
|
} if (rf & 2) {
|
|
@@ -9029,12 +9043,12 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_2_Template(rf, ctx)
|
|
|
9029
9043
|
i0.ɵɵadvance(1);
|
|
9030
9044
|
i0.ɵɵproperty("ngIf", ctx_r5.hasChildren(act_r2));
|
|
9031
9045
|
} }
|
|
9032
|
-
const _c1$
|
|
9046
|
+
const _c1$9 = function (a0) { return { $implicit: a0 }; };
|
|
9033
9047
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
9034
9048
|
i0.ɵɵelementContainer(0, 17);
|
|
9035
9049
|
} if (rf & 2) {
|
|
9036
9050
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
9037
|
-
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$
|
|
9051
|
+
i0.ɵɵproperty("ngTemplateOutlet", act_r2.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$9, act_r2));
|
|
9038
9052
|
} }
|
|
9039
9053
|
const _c2$1 = function () { return { withoutArrow: true }; };
|
|
9040
9054
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -9175,7 +9189,7 @@ class DrDropdownComponent {
|
|
|
9175
9189
|
}
|
|
9176
9190
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownComponent_Factory(t) { return new (t || DrDropdownComponent)(); }; }
|
|
9177
9191
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownComponent, selectors: [["dr-dropdown"]], viewQuery: function DrDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9178
|
-
i0.ɵɵviewQuery(_c0$
|
|
9192
|
+
i0.ɵɵviewQuery(_c0$h, 7);
|
|
9179
9193
|
} if (rf & 2) {
|
|
9180
9194
|
let _t;
|
|
9181
9195
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
@@ -9414,12 +9428,12 @@ class DrDropdownChildDirective {
|
|
|
9414
9428
|
}]
|
|
9415
9429
|
}], null, null); })();
|
|
9416
9430
|
|
|
9417
|
-
const _c0$
|
|
9418
|
-
const _c1$
|
|
9431
|
+
const _c0$g = [[["", "dropdownItemContent", ""]], [["", "dropdownItemActions", ""]]];
|
|
9432
|
+
const _c1$8 = ["[dropdownItemContent]", "[dropdownItemActions]"];
|
|
9419
9433
|
class DrDropdownItemComponent {
|
|
9420
9434
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownItemComponent_Factory(t) { return new (t || DrDropdownItemComponent)(); }; }
|
|
9421
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownItemComponent, selectors: [["dr-dropdown-item"]], inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$
|
|
9422
|
-
i0.ɵɵprojectionDef(_c0$
|
|
9435
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownItemComponent, selectors: [["dr-dropdown-item"]], inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$8, decls: 5, vars: 6, consts: [[1, "dr-dropdown-item"], [1, "dr-dropdown-text"], [1, "dr-dropdown-actions"]], template: function DrDropdownItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9436
|
+
i0.ɵɵprojectionDef(_c0$g);
|
|
9423
9437
|
i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
|
|
9424
9438
|
i0.ɵɵprojection(2);
|
|
9425
9439
|
i0.ɵɵelementEnd();
|
|
@@ -9458,7 +9472,7 @@ class DrDropdownItemShowPipe {
|
|
|
9458
9472
|
function DrTabComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
9459
9473
|
i0.ɵɵprojection(0);
|
|
9460
9474
|
} }
|
|
9461
|
-
const _c0$
|
|
9475
|
+
const _c0$f = ["*"];
|
|
9462
9476
|
class DrTabComponent {
|
|
9463
9477
|
constructor() { }
|
|
9464
9478
|
ngOnInit() { }
|
|
@@ -9468,7 +9482,7 @@ class DrTabComponent {
|
|
|
9468
9482
|
} if (rf & 2) {
|
|
9469
9483
|
let _t;
|
|
9470
9484
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
|
9471
|
-
} }, inputs: { id: "id", label: "label", icon: "icon", disabled: "disabled", tooltip: "tooltip", customLabelTemplate: "customLabelTemplate" }, ngContentSelectors: _c0$
|
|
9485
|
+
} }, inputs: { id: "id", label: "label", icon: "icon", disabled: "disabled", tooltip: "tooltip", customLabelTemplate: "customLabelTemplate" }, ngContentSelectors: _c0$f, decls: 1, vars: 0, template: function DrTabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9472
9486
|
i0.ɵɵprojectionDef();
|
|
9473
9487
|
i0.ɵɵtemplate(0, DrTabComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
9474
9488
|
} }, encapsulation: 2 }); }
|
|
@@ -9743,8 +9757,8 @@ class DrTabsComponent {
|
|
|
9743
9757
|
args: [DrTabComponent]
|
|
9744
9758
|
}] }); })();
|
|
9745
9759
|
|
|
9746
|
-
const _c0$
|
|
9747
|
-
const _c1$
|
|
9760
|
+
const _c0$e = [[["dr-accordion-item"]]];
|
|
9761
|
+
const _c1$7 = ["dr-accordion-item"];
|
|
9748
9762
|
class DrAccordionComponent {
|
|
9749
9763
|
constructor() {
|
|
9750
9764
|
this.openCloseItems = new Subject();
|
|
@@ -9777,8 +9791,8 @@ class DrAccordionComponent {
|
|
|
9777
9791
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionComponent_Factory(t) { return new (t || DrAccordionComponent)(); }; }
|
|
9778
9792
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
9779
9793
|
i0.ɵɵclassMap(ctx.theme);
|
|
9780
|
-
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$
|
|
9781
|
-
i0.ɵɵprojectionDef(_c0$
|
|
9794
|
+
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$7, decls: 1, vars: 0, template: function DrAccordionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9795
|
+
i0.ɵɵprojectionDef(_c0$e);
|
|
9782
9796
|
i0.ɵɵprojection(0);
|
|
9783
9797
|
} }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
|
|
9784
9798
|
}
|
|
@@ -9795,8 +9809,8 @@ class DrAccordionComponent {
|
|
|
9795
9809
|
args: ['class']
|
|
9796
9810
|
}] }); })();
|
|
9797
9811
|
|
|
9798
|
-
const _c0$
|
|
9799
|
-
const _c1$
|
|
9812
|
+
const _c0$d = [[["dr-accordion-item-header"]], [["dr-accordion-item-body"]]];
|
|
9813
|
+
const _c1$6 = ["dr-accordion-item-header", "dr-accordion-item-body"];
|
|
9800
9814
|
class DrAccordionItemComponent {
|
|
9801
9815
|
/**
|
|
9802
9816
|
* Item is collapse (`true` by default)
|
|
@@ -9896,8 +9910,8 @@ class DrAccordionItemComponent {
|
|
|
9896
9910
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemComponent_Factory(t) { return new (t || DrAccordionItemComponent)(i0.ɵɵdirectiveInject(DrAccordionComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
9897
9911
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemComponent, selectors: [["dr-accordion-item"]], hostVars: 6, hostBindings: function DrAccordionItemComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
9898
9912
|
i0.ɵɵclassProp("collapsed", ctx.collapsed)("expanded", ctx.expanded)("disabled", ctx.disabled);
|
|
9899
|
-
} }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$
|
|
9900
|
-
i0.ɵɵprojectionDef(_c0$
|
|
9913
|
+
} }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$6, decls: 2, vars: 0, template: function DrAccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9914
|
+
i0.ɵɵprojectionDef(_c0$d);
|
|
9901
9915
|
i0.ɵɵprojection(0);
|
|
9902
9916
|
i0.ɵɵprojection(1, 1);
|
|
9903
9917
|
} }, styles: ["[_nghost-%COMP%]{background-color:#fff;color:#222b45;font-family:Poppins,sans-serif;font-size:16px;font-weight:400;line-height:1.25rem;display:flex;flex-direction:column}"], changeDetection: 0 }); }
|
|
@@ -9939,8 +9953,8 @@ function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9939
9953
|
i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
|
|
9940
9954
|
i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
|
|
9941
9955
|
} }
|
|
9942
|
-
const _c0$
|
|
9943
|
-
const _c1$
|
|
9956
|
+
const _c0$c = function (a0) { return { rotationDegree: a0 }; };
|
|
9957
|
+
const _c1$5 = function (a0, a1) { return { value: a0, params: a1 }; };
|
|
9944
9958
|
function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
9945
9959
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
9946
9960
|
i0.ɵɵelementStart(0, "i", 2);
|
|
@@ -9949,7 +9963,7 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
9949
9963
|
} if (rf & 2) {
|
|
9950
9964
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
9951
9965
|
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
9952
|
-
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$
|
|
9966
|
+
i0.ɵɵproperty("@expansionIndicator", i0.ɵɵpureFunction2(5, _c1$5, ctx_r1.state, i0.ɵɵpureFunction1(3, _c0$c, ctx_r1.chevronRotationDegree)));
|
|
9953
9967
|
} }
|
|
9954
9968
|
const _c2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
|
|
9955
9969
|
const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
@@ -10078,8 +10092,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
10078
10092
|
args: ['keydown.enter']
|
|
10079
10093
|
}] }); })();
|
|
10080
10094
|
|
|
10081
|
-
const _c0$
|
|
10082
|
-
const _c1$
|
|
10095
|
+
const _c0$b = function (a0) { return { value: a0 }; };
|
|
10096
|
+
const _c1$4 = ["*"];
|
|
10083
10097
|
const accordionItemBodyTrigger = trigger('accordionItemBody', [
|
|
10084
10098
|
state('collapsed', style({
|
|
10085
10099
|
overflow: 'hidden',
|
|
@@ -10110,13 +10124,13 @@ class DrAccordionItemBodyComponent {
|
|
|
10110
10124
|
this.destroy$.complete();
|
|
10111
10125
|
}
|
|
10112
10126
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemBodyComponent_Factory(t) { return new (t || DrAccordionItemBodyComponent)(i0.ɵɵdirectiveInject(DrAccordionItemComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
10113
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemBodyComponent, selectors: [["dr-accordion-item-body"]], ngContentSelectors: _c1$
|
|
10127
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionItemBodyComponent, selectors: [["dr-accordion-item-body"]], ngContentSelectors: _c1$4, decls: 3, vars: 3, consts: [[1, "item-body"]], template: function DrAccordionItemBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10114
10128
|
i0.ɵɵprojectionDef();
|
|
10115
10129
|
i0.ɵɵelementStart(0, "div")(1, "div", 0);
|
|
10116
10130
|
i0.ɵɵprojection(2);
|
|
10117
10131
|
i0.ɵɵelementEnd()();
|
|
10118
10132
|
} if (rf & 2) {
|
|
10119
|
-
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$
|
|
10133
|
+
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$b, ctx.state));
|
|
10120
10134
|
} }, styles: [".item-body[_ngcontent-%COMP%]{flex:1;-ms-flex:1 1 auto;overflow:auto;position:relative}"], data: { animation: [accordionItemBodyTrigger] }, changeDetection: 0 }); }
|
|
10121
10135
|
}
|
|
10122
10136
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemBodyComponent, [{
|
|
@@ -10132,13 +10146,13 @@ class DrAccordionItemBodyComponent {
|
|
|
10132
10146
|
type: Host
|
|
10133
10147
|
}] }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
10134
10148
|
|
|
10135
|
-
const _c0$
|
|
10136
|
-
const _c1$
|
|
10149
|
+
const _c0$a = [[["dr-layout-header"]], [["dr-layout-body"]]];
|
|
10150
|
+
const _c1$3 = ["dr-layout-header", "dr-layout-body"];
|
|
10137
10151
|
class DrLayoutComponent {
|
|
10138
10152
|
constructor() { }
|
|
10139
10153
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutComponent_Factory(t) { return new (t || DrLayoutComponent)(); }; }
|
|
10140
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$
|
|
10141
|
-
i0.ɵɵprojectionDef(_c0$
|
|
10154
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$3, decls: 6, vars: 0, consts: [[1, "dr-layout"], [1, "dr-layout__container"], [1, "content"], [1, "columns"]], template: function DrLayoutComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10155
|
+
i0.ɵɵprojectionDef(_c0$a);
|
|
10142
10156
|
i0.ɵɵelementStart(0, "div", 0);
|
|
10143
10157
|
i0.ɵɵprojection(1);
|
|
10144
10158
|
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3);
|
|
@@ -10151,11 +10165,11 @@ class DrLayoutComponent {
|
|
|
10151
10165
|
args: [{ selector: 'dr-layout', template: "<div class=\"dr-layout\">\n <ng-content select=\"dr-layout-header\"></ng-content>\n <div class=\"dr-layout__container\">\n <div class=\"content\">\n <div class=\"columns\">\n <ng-content select=\"dr-layout-body\"></ng-content>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{font-size:16px;font-weight:400;font-family:Poppins,sans-serif;line-height:1.25rem;-webkit-font-smoothing:antialiased}:host .dr-layout{display:flex;flex-direction:column;min-height:100vh;font-size:16px;font-weight:400;line-height:1.4rem}:host .dr-layout ::ng-deep dr-layout-header{display:block;position:fixed;top:0;left:0;right:0;z-index:1040}:host .dr-layout ::ng-deep dr-layout-header nav{align-items:center;justify-content:flex-start;display:flex}:host .dr-layout__container{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row}:host .dr-layout__container .content{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:column;min-width:0}:host .dr-layout__container .content .columns{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row;width:100%}:host .dr-layout__container .content .columns ::ng-deep dr-layout-body{flex:1 0;min-width:0}\n"] }]
|
|
10152
10166
|
}], function () { return []; }, null); })();
|
|
10153
10167
|
|
|
10154
|
-
const _c0$
|
|
10168
|
+
const _c0$9 = ["*"];
|
|
10155
10169
|
class DrLayoutHeaderComponent {
|
|
10156
10170
|
constructor() { }
|
|
10157
10171
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutHeaderComponent_Factory(t) { return new (t || DrLayoutHeaderComponent)(); }; }
|
|
10158
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutHeaderComponent, selectors: [["dr-layout-header"]], ngContentSelectors: _c0$
|
|
10172
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutHeaderComponent, selectors: [["dr-layout-header"]], ngContentSelectors: _c0$9, decls: 2, vars: 0, template: function DrLayoutHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10159
10173
|
i0.ɵɵprojectionDef();
|
|
10160
10174
|
i0.ɵɵelementStart(0, "nav");
|
|
10161
10175
|
i0.ɵɵprojection(1);
|
|
@@ -10174,11 +10188,11 @@ class DrLayoutHeaderComponent {
|
|
|
10174
10188
|
}]
|
|
10175
10189
|
}], function () { return []; }, null); })();
|
|
10176
10190
|
|
|
10177
|
-
const _c0$
|
|
10191
|
+
const _c0$8 = ["*"];
|
|
10178
10192
|
class DrLayoutBodyComponent {
|
|
10179
10193
|
constructor() { }
|
|
10180
10194
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutBodyComponent_Factory(t) { return new (t || DrLayoutBodyComponent)(); }; }
|
|
10181
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutBodyComponent, selectors: [["dr-layout-body"]], ngContentSelectors: _c0$
|
|
10195
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutBodyComponent, selectors: [["dr-layout-body"]], ngContentSelectors: _c0$8, decls: 1, vars: 0, template: function DrLayoutBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10182
10196
|
i0.ɵɵprojectionDef();
|
|
10183
10197
|
i0.ɵɵprojection(0);
|
|
10184
10198
|
} }, encapsulation: 2 }); }
|
|
@@ -10200,7 +10214,7 @@ function DrDetailsListComponent_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
10200
10214
|
i0.ɵɵadvance(1);
|
|
10201
10215
|
i0.ɵɵtextInterpolate(item_r1);
|
|
10202
10216
|
} }
|
|
10203
|
-
const _c0$
|
|
10217
|
+
const _c0$7 = function (a0) { return { value: a0 }; };
|
|
10204
10218
|
class DrDetailsListComponent {
|
|
10205
10219
|
set items(val) {
|
|
10206
10220
|
if (!val) {
|
|
@@ -10247,7 +10261,7 @@ class DrDetailsListComponent {
|
|
|
10247
10261
|
i0.ɵɵadvance(1);
|
|
10248
10262
|
i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
|
|
10249
10263
|
i0.ɵɵadvance(1);
|
|
10250
|
-
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$
|
|
10264
|
+
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$7, ctx.state));
|
|
10251
10265
|
i0.ɵɵadvance(1);
|
|
10252
10266
|
i0.ɵɵproperty("ngForOf", ctx.list);
|
|
10253
10267
|
} }, dependencies: [i1.NgForOf], styles: ["[_nghost-%COMP%]{font-family:Poppins,sans-serif;font-size:14px;line-height:22px;color:#6d6e6f;font-weight:400}[_nghost-%COMP%] .details[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .details__header[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}[_nghost-%COMP%] .details__header[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%] .details__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-left:28px;margin:8px 0}[_nghost-%COMP%] .details__list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:disc}"], data: { animation: [
|
|
@@ -10291,7 +10305,7 @@ class DrDetailsListComponent {
|
|
|
10291
10305
|
type: Input
|
|
10292
10306
|
}] }); })();
|
|
10293
10307
|
|
|
10294
|
-
const _c0$
|
|
10308
|
+
const _c0$6 = ["content"];
|
|
10295
10309
|
function DialogWrapperComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
10296
10310
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
10297
10311
|
i0.ɵɵelementStart(0, "i", 10);
|
|
@@ -10393,7 +10407,7 @@ function DialogWrapperComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
10393
10407
|
i0.ɵɵadvance(1);
|
|
10394
10408
|
i0.ɵɵproperty("ngIf", ctx_r5.dialogData.acceptButton);
|
|
10395
10409
|
} }
|
|
10396
|
-
const _c1$
|
|
10410
|
+
const _c1$2 = function (a0) { return { "flex-position": a0 }; };
|
|
10397
10411
|
class DialogWrapperComponent {
|
|
10398
10412
|
get elementClass() {
|
|
10399
10413
|
return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
|
|
@@ -10468,7 +10482,7 @@ class DialogWrapperComponent {
|
|
|
10468
10482
|
}
|
|
10469
10483
|
/** @nocollapse */ static { this.ɵfac = function DialogWrapperComponent_Factory(t) { return new (t || DialogWrapperComponent)(i0.ɵɵdirectiveInject(i1$6.MatLegacyDialogRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); }; }
|
|
10470
10484
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DialogWrapperComponent, selectors: [["dr-dialog-wrapper"]], viewQuery: function DialogWrapperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10471
|
-
i0.ɵɵviewQuery(_c0$
|
|
10485
|
+
i0.ɵɵviewQuery(_c0$6, 5, ViewContainerRef);
|
|
10472
10486
|
} if (rf & 2) {
|
|
10473
10487
|
let _t;
|
|
10474
10488
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
|
@@ -10493,7 +10507,7 @@ class DialogWrapperComponent {
|
|
|
10493
10507
|
i0.ɵɵproperty("ngIf", ctx.dialogData.title);
|
|
10494
10508
|
i0.ɵɵadvance(1);
|
|
10495
10509
|
i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
|
|
10496
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$
|
|
10510
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$2, (ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class) && !ctx.childComponent));
|
|
10497
10511
|
i0.ɵɵadvance(1);
|
|
10498
10512
|
i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
|
|
10499
10513
|
i0.ɵɵadvance(1);
|
|
@@ -10664,8 +10678,8 @@ function DialogModalWrapperComponent_form_7_div_2_label_9_Template(rf, ctx) { if
|
|
|
10664
10678
|
i0.ɵɵadvance(1);
|
|
10665
10679
|
i0.ɵɵtextInterpolate1(" ", ctx_r19.dialogData.serverErrorMessage, " ");
|
|
10666
10680
|
} }
|
|
10667
|
-
const _c0$
|
|
10668
|
-
const _c1 = function (a0, a1) { return { "col-md-10": a0, "col-md-12": a1 }; };
|
|
10681
|
+
const _c0$5 = function (a0) { return { display: a0 }; };
|
|
10682
|
+
const _c1$1 = function (a0, a1) { return { "col-md-10": a0, "col-md-12": a1 }; };
|
|
10669
10683
|
function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
10670
10684
|
i0.ɵɵelementStart(0, "div", 16);
|
|
10671
10685
|
i0.ɵɵtemplate(1, DialogModalWrapperComponent_form_7_div_2_label_1_Template, 2, 2, "label", 17);
|
|
@@ -10682,11 +10696,11 @@ function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
10682
10696
|
const field_r11 = ctx.$implicit;
|
|
10683
10697
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
10684
10698
|
i0.ɵɵclassMap(field_r11.formGroupClass);
|
|
10685
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$
|
|
10699
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$5, field_r11.isLabelFullWidth ? "block" : "flex"));
|
|
10686
10700
|
i0.ɵɵadvance(1);
|
|
10687
10701
|
i0.ɵɵproperty("ngIf", field_r11.label && field_r11.type !== ctx_r10.dialogFieldType.CHECKBOX);
|
|
10688
10702
|
i0.ɵɵadvance(1);
|
|
10689
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1, field_r11.label && !field_r11.isLabelFullWidth, !field_r11.label || field_r11.isLabelFullWidth));
|
|
10703
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(14, _c1$1, field_r11.label && !field_r11.isLabelFullWidth, !field_r11.label || field_r11.isLabelFullWidth));
|
|
10690
10704
|
i0.ɵɵadvance(1);
|
|
10691
10705
|
i0.ɵɵproperty("ngIf", field_r11.type === ctx_r10.dialogFieldType.SELECT);
|
|
10692
10706
|
i0.ɵɵadvance(1);
|
|
@@ -11367,7 +11381,7 @@ function TreeviewItemComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
11367
11381
|
i0.ɵɵadvance(1);
|
|
11368
11382
|
i0.ɵɵproperty("ngForOf", ctx_r2.item.children);
|
|
11369
11383
|
} }
|
|
11370
|
-
const _c0$
|
|
11384
|
+
const _c0$4 = function (a0, a1, a2) { return { item: a0, onCollapseExpand: a1, onCheckedChange: a2 }; };
|
|
11371
11385
|
function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11372
11386
|
i0.ɵɵelementStart(0, "div", 1);
|
|
11373
11387
|
i0.ɵɵtemplate(1, TreeviewItemComponent_div_0_ng_template_1_Template, 0, 0, "ng-template", 2);
|
|
@@ -11376,7 +11390,7 @@ function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11376
11390
|
} if (rf & 2) {
|
|
11377
11391
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
11378
11392
|
i0.ɵɵadvance(1);
|
|
11379
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$
|
|
11393
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c0$4, ctx_r0.item, ctx_r0.onCollapseExpand, ctx_r0.onCheckedChange));
|
|
11380
11394
|
i0.ɵɵadvance(1);
|
|
11381
11395
|
i0.ɵɵproperty("ngIf", !ctx_r0.item.collapsed);
|
|
11382
11396
|
} }
|
|
@@ -12309,6 +12323,267 @@ class DrSpinnerModule {
|
|
|
12309
12323
|
}], null, null); })();
|
|
12310
12324
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrSpinnerModule, { declarations: [DrSpinnerComponent, DrSpinnerDirective], imports: [CommonModule], exports: [DrSpinnerComponent, DrSpinnerDirective] }); })();
|
|
12311
12325
|
|
|
12326
|
+
const _c0$3 = ["class", "component"];
|
|
12327
|
+
const _c1 = function (a0) { return { "dr-datepicker-preset-date__tags__tag--selected": a0 }; };
|
|
12328
|
+
function DrFiscalMonthCalendarHeaderComponent_div_0_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12329
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
12330
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
12331
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_div_0_div_1_div_2_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r6); const tag_r4 = restoredCtx.$implicit; const ctx_r5 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r5.onSelectPresetTag(tag_r4)); });
|
|
12332
|
+
i0.ɵɵtext(1);
|
|
12333
|
+
i0.ɵɵelementEnd();
|
|
12334
|
+
} if (rf & 2) {
|
|
12335
|
+
const tag_r4 = ctx.$implicit;
|
|
12336
|
+
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
12337
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1, tag_r4.key === ctx_r3.selectedPresetTag))("drTooltip", ctx_r3.selectedPresetTag === tag_r4.key ? "Unselect preset" : "")("drTooltipPosition", "top");
|
|
12338
|
+
i0.ɵɵadvance(1);
|
|
12339
|
+
i0.ɵɵtextInterpolate1(" ", tag_r4.label, " ");
|
|
12340
|
+
} }
|
|
12341
|
+
function DrFiscalMonthCalendarHeaderComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12342
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "div", 12);
|
|
12343
|
+
i0.ɵɵtemplate(2, DrFiscalMonthCalendarHeaderComponent_div_0_div_1_div_2_Template, 2, 6, "div", 13);
|
|
12344
|
+
i0.ɵɵelementEnd()();
|
|
12345
|
+
} if (rf & 2) {
|
|
12346
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
12347
|
+
i0.ɵɵadvance(2);
|
|
12348
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.presetTagList);
|
|
12349
|
+
} }
|
|
12350
|
+
function DrFiscalMonthCalendarHeaderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12351
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
12352
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
12353
|
+
i0.ɵɵtemplate(1, DrFiscalMonthCalendarHeaderComponent_div_0_div_1_Template, 3, 1, "div", 9);
|
|
12354
|
+
i0.ɵɵelementStart(2, "dr-select", 10);
|
|
12355
|
+
i0.ɵɵlistener("ngModelChange", function DrFiscalMonthCalendarHeaderComponent_div_0_Template_dr_select_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.setTimeframe($event)); });
|
|
12356
|
+
i0.ɵɵpipe(3, "drShowTimeframePipe");
|
|
12357
|
+
i0.ɵɵelementEnd()();
|
|
12358
|
+
} if (rf & 2) {
|
|
12359
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
12360
|
+
i0.ɵɵadvance(1);
|
|
12361
|
+
i0.ɵɵproperty("ngIf", ctx_r0.datePickerService.isUsingDateTagPresets);
|
|
12362
|
+
i0.ɵɵadvance(1);
|
|
12363
|
+
i0.ɵɵproperty("ngModel", ctx_r0.selectedTimeframe)("items", i0.ɵɵpipeBind2(3, 3, ctx_r0.timeframeOptions, ctx_r0.datePickerService.availableTimeframes));
|
|
12364
|
+
} }
|
|
12365
|
+
function DrFiscalMonthCalendarHeaderComponent_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12366
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
12367
|
+
i0.ɵɵelementStart(0, "div", 18);
|
|
12368
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_div_11_div_2_Template_div_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r13); const quarter_r11 = restoredCtx.$implicit; const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.onSelectQuarter(quarter_r11)); });
|
|
12369
|
+
i0.ɵɵtext(1);
|
|
12370
|
+
i0.ɵɵelementEnd();
|
|
12371
|
+
} if (rf & 2) {
|
|
12372
|
+
const quarter_r11 = ctx.$implicit;
|
|
12373
|
+
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
12374
|
+
i0.ɵɵclassMap(quarter_r11 === ctx_r10.selectedQuarter ? "selected" : "");
|
|
12375
|
+
i0.ɵɵclassProp("quarter-selector--disabled", ctx_r10.isQuarterDisabled(quarter_r11));
|
|
12376
|
+
i0.ɵɵadvance(1);
|
|
12377
|
+
i0.ɵɵtextInterpolate1(" Q", quarter_r11, " ");
|
|
12378
|
+
} }
|
|
12379
|
+
function DrFiscalMonthCalendarHeaderComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
12380
|
+
i0.ɵɵelementStart(0, "div", 15, 16);
|
|
12381
|
+
i0.ɵɵtemplate(2, DrFiscalMonthCalendarHeaderComponent_div_11_div_2_Template, 2, 5, "div", 17);
|
|
12382
|
+
i0.ɵɵelementEnd();
|
|
12383
|
+
} if (rf & 2) {
|
|
12384
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
12385
|
+
i0.ɵɵadvance(2);
|
|
12386
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.quarters);
|
|
12387
|
+
} }
|
|
12388
|
+
class DrFiscalMonthCalendarHeaderComponent extends DrDatePickerCustomHeaderComponent {
|
|
12389
|
+
ngOnInit() {
|
|
12390
|
+
setTimeout(() => {
|
|
12391
|
+
if (this._calendar.multiYearView) {
|
|
12392
|
+
this.transformDateInMultiyearViewAccordingToFY();
|
|
12393
|
+
}
|
|
12394
|
+
if (this._calendar.yearView) {
|
|
12395
|
+
this.transformDateInFiscalMonthViewAccordingToFY();
|
|
12396
|
+
}
|
|
12397
|
+
this.goToCurrentDateInViewByFY();
|
|
12398
|
+
});
|
|
12399
|
+
}
|
|
12400
|
+
transformDateInFiscalMonthViewAccordingToFY() {
|
|
12401
|
+
if (this._calendar.selected) {
|
|
12402
|
+
this._calendar.selected = this.datePickerService.subtractFiscalYearMonthsFromDate(this._calendar.activeDate);
|
|
12403
|
+
this._calendar.activeDate = this._calendar.selected;
|
|
12404
|
+
this._calendar._changeDetectorRef.markForCheck();
|
|
12405
|
+
}
|
|
12406
|
+
}
|
|
12407
|
+
listenToCalendarViewChanges() {
|
|
12408
|
+
this._calendar.viewChanged.pipe(takeUntil$1(this._destroyed)).subscribe(() => {
|
|
12409
|
+
this.setPeriodLabels();
|
|
12410
|
+
if (this._calendar.multiYearView) {
|
|
12411
|
+
this.transformDateInMultiyearViewAccordingToFY();
|
|
12412
|
+
}
|
|
12413
|
+
if (this._calendar.yearView) {
|
|
12414
|
+
this.transformDateInFiscalMonthViewAccordingToFY();
|
|
12415
|
+
}
|
|
12416
|
+
});
|
|
12417
|
+
}
|
|
12418
|
+
/** @nocollapse */ static { this.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵDrFiscalMonthCalendarHeaderComponent_BaseFactory; return function DrFiscalMonthCalendarHeaderComponent_Factory(t) { return (ɵDrFiscalMonthCalendarHeaderComponent_BaseFactory || (ɵDrFiscalMonthCalendarHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DrFiscalMonthCalendarHeaderComponent)))(t || DrFiscalMonthCalendarHeaderComponent); }; }(); }
|
|
12419
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrFiscalMonthCalendarHeaderComponent, selectors: [["dr-fiscal-month-calendar-header", 8, "component"]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$3, decls: 12, vars: 4, consts: [["class", "dr-datepicker__timeframe-select__wrapper", 4, "ngIf"], [1, "dr-date-paging"], [1, "dr-date-paging", "flip-page-button", 3, "click"], [1, "dr-icon-arrow-left", "presentation_buttons-navigate_input"], [1, "example-header-label"], [3, "click"], [1, "dr-icon-arrow-right", "presentation_buttons-navigate_input"], ["class", "dr-quarterly-datepicker", 4, "ngIf"], [1, "dr-datepicker__timeframe-select__wrapper"], ["class", "dr-datepicker-preset-date", 4, "ngIf"], ["bindLabel", "title", "bindValue", "value", 1, "dr-datepicker__timeframe-select", 3, "ngModel", "items", "ngModelChange"], [1, "dr-datepicker-preset-date"], [1, "dr-datepicker-preset-date__tags"], ["id", "preset_tag", "class", "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click", 4, "ngFor", "ngForOf"], ["id", "preset_tag", 1, "dr-datepicker-preset-date__tags__tag", 3, "ngClass", "drTooltip", "drTooltipPosition", "click"], [1, "dr-quarterly-datepicker"], ["quarterlyDatePicker", ""], ["class", "quarter-selector", 3, "class", "quarter-selector--disabled", "click", 4, "ngFor", "ngForOf"], [1, "quarter-selector", 3, "click"]], template: function DrFiscalMonthCalendarHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12420
|
+
i0.ɵɵtemplate(0, DrFiscalMonthCalendarHeaderComponent_div_0_Template, 4, 6, "div", 0);
|
|
12421
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
12422
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_Template_div_click_2_listener() { return ctx.pagingClicked(false); });
|
|
12423
|
+
i0.ɵɵelement(3, "i", 3);
|
|
12424
|
+
i0.ɵɵelementEnd();
|
|
12425
|
+
i0.ɵɵelementStart(4, "span", 4)(5, "span", 5);
|
|
12426
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_Template_span_click_5_listener() { return ctx.switchViewOnClickOnPeriodLabel(ctx.calendarView.FOR_MONTHS); });
|
|
12427
|
+
i0.ɵɵtext(6);
|
|
12428
|
+
i0.ɵɵelementEnd();
|
|
12429
|
+
i0.ɵɵelementStart(7, "span", 5);
|
|
12430
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_Template_span_click_7_listener() { return ctx.switchViewOnClickOnPeriodLabel(ctx.calendarView.FOR_YEARS); });
|
|
12431
|
+
i0.ɵɵtext(8);
|
|
12432
|
+
i0.ɵɵelementEnd()();
|
|
12433
|
+
i0.ɵɵelementStart(9, "div", 2);
|
|
12434
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarHeaderComponent_Template_div_click_9_listener() { return ctx.pagingClicked(true); });
|
|
12435
|
+
i0.ɵɵelement(10, "i", 6);
|
|
12436
|
+
i0.ɵɵelementEnd()();
|
|
12437
|
+
i0.ɵɵtemplate(11, DrFiscalMonthCalendarHeaderComponent_div_11_Template, 3, 1, "div", 7);
|
|
12438
|
+
} if (rf & 2) {
|
|
12439
|
+
i0.ɵɵproperty("ngIf", ctx.datePickerService.isTimeframeSelectionEnabled);
|
|
12440
|
+
i0.ɵɵadvance(6);
|
|
12441
|
+
i0.ɵɵtextInterpolate(ctx.periodMonthLabel + " ");
|
|
12442
|
+
i0.ɵɵadvance(2);
|
|
12443
|
+
i0.ɵɵtextInterpolate(ctx.periodYearLabel);
|
|
12444
|
+
i0.ɵɵadvance(3);
|
|
12445
|
+
i0.ɵɵproperty("ngIf", ctx.currentViewIsQuarter);
|
|
12446
|
+
} }, dependencies: [i1$2.NgControlStatus, i1$2.NgModel, i1.NgClass, i1.NgForOf, i1.NgIf, DrTooltipDirective, DrSelectComponent, DrShowTimeframePipe], styles: ["[_nghost-%COMP%]{height:54px;align-items:center;font-family:Poppins;font-style:normal;font-weight:600;font-size:14px;line-height:22px}.dr-datepicker__timeframe-select__wrapper[_ngcontent-%COMP%]{background-color:#f9faff;padding:16px 32px;border-radius:18px 18px 0 0}.dr-datepicker-preset-date[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dr-datepicker-preset-date__tags[_ngcontent-%COMP%]{display:flex;padding-bottom:21px;padding-top:10px;font-size:12px}.dr-datepicker-preset-date__tags__tag[_ngcontent-%COMP%]{cursor:pointer;font-weight:400;line-height:20px!important;padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;background:#fff;margin-right:4px}.dr-datepicker-preset-date__tags__tag--selected[_ngcontent-%COMP%]{color:#4646ce;background:#f2f2fb;border:1px solid #4646ce}.dr-date-paging[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 32px 32px;gap:4px}.dr-date-paging.flip-page-button[_ngcontent-%COMP%]{width:20px;height:20px;padding:0;color:#4e566c}.dr-date-paging.flip-page-button[_ngcontent-%COMP%]:hover{border-radius:50%;background:#f2f2fb;color:#4646ce}.example-header-label[_ngcontent-%COMP%]{cursor:pointer}.dr-quarterly-datepicker[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px}.dr-quarterly-datepicker[_ngcontent-%COMP%] .quarter-selector[_ngcontent-%COMP%]{display:block;width:74px;height:40px;text-align:center;border-radius:40px;font-weight:400;padding-top:9px}.dr-quarterly-datepicker[_ngcontent-%COMP%] .quarter-selector[_ngcontent-%COMP%]:hover{background:#f2f2fb;color:#4646ce;font-weight:600;cursor:pointer}.dr-quarterly-datepicker[_ngcontent-%COMP%] .quarter-selector.selected[_ngcontent-%COMP%]{background-color:#4646ce;color:#f3f7ff;font-weight:600}.dr-quarterly-datepicker[_ngcontent-%COMP%] .quarter-selector--disabled[_ngcontent-%COMP%], .dr-quarterly-datepicker[_ngcontent-%COMP%] .quarter-selector--disabled.selected[_ngcontent-%COMP%]{pointer-events:none;background-color:transparent;color:#aeabac;font-weight:400}"], changeDetection: 0 }); }
|
|
12447
|
+
}
|
|
12448
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrFiscalMonthCalendarHeaderComponent, [{
|
|
12449
|
+
type: Component,
|
|
12450
|
+
args: [{ selector: 'dr-fiscal-month-calendar-header.component', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <div *ngIf=\"datePickerService.isUsingDateTagPresets\" class=\"dr-datepicker-preset-date\">\n <div class=\"dr-datepicker-preset-date__tags\">\n <div\n *ngFor=\"let tag of presetTagList\"\n id=\"preset_tag\"\n class=\"dr-datepicker-preset-date__tags__tag\"\n (click)=\"onSelectPresetTag(tag)\"\n [ngClass]=\"{ 'dr-datepicker-preset-date__tags__tag--selected': tag.key === selectedPresetTag }\"\n [drTooltip]=\"selectedPresetTag === tag.key ? 'Unselect preset' : ''\"\n [drTooltipPosition]=\"'top'\">\n {{ tag.label }}\n </div>\n </div>\n </div>\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [ngModel]=\"selectedTimeframe\"\n [items]=\"timeframeOptions | drShowTimeframePipe: datePickerService.availableTimeframes\"\n bindLabel=\"title\"\n bindValue=\"value\"\n (ngModelChange)=\"setTimeframe($event)\">\n </dr-select>\n</div>\n\n<div class=\"dr-date-paging\">\n <div class=\"dr-date-paging flip-page-button\" (click)=\"pagingClicked(false)\">\n <i class=\"dr-icon-arrow-left presentation_buttons-navigate_input\"></i>\n </div>\n <span class=\"example-header-label\">\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_MONTHS)\">{{ periodMonthLabel + ' ' }}</span>\n <span (click)=\"switchViewOnClickOnPeriodLabel(calendarView.FOR_YEARS)\">{{ periodYearLabel }}</span>\n </span>\n <div class=\"dr-date-paging flip-page-button\" (click)=\"pagingClicked(true)\">\n <i class=\"dr-icon-arrow-right presentation_buttons-navigate_input\"></i>\n </div>\n</div>\n<div #quarterlyDatePicker class=\"dr-quarterly-datepicker\" *ngIf=\"currentViewIsQuarter\">\n <div\n *ngFor=\"let quarter of quarters\"\n class=\"quarter-selector\"\n (click)=\"onSelectQuarter(quarter)\"\n [class]=\"quarter === selectedQuarter ? 'selected' : ''\"\n [class.quarter-selector--disabled]=\"isQuarterDisabled(quarter)\">\n Q{{ quarter }}\n </div>\n</div>\n", styles: [":host{height:54px;align-items:center;font-family:Poppins;font-style:normal;font-weight:600;font-size:14px;line-height:22px}.dr-datepicker__timeframe-select__wrapper{background-color:#f9faff;padding:16px 32px;border-radius:18px 18px 0 0}.dr-datepicker-preset-date{display:flex;flex-direction:column}.dr-datepicker-preset-date__tags{display:flex;padding-bottom:21px;padding-top:10px;font-size:12px}.dr-datepicker-preset-date__tags__tag{cursor:pointer;font-weight:400;line-height:20px!important;padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;background:#fff;margin-right:4px}.dr-datepicker-preset-date__tags__tag--selected{color:#4646ce;background:#f2f2fb;border:1px solid #4646ce}.dr-date-paging{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 32px 32px;gap:4px}.dr-date-paging.flip-page-button{width:20px;height:20px;padding:0;color:#4e566c}.dr-date-paging.flip-page-button:hover{border-radius:50%;background:#f2f2fb;color:#4646ce}.example-header-label{cursor:pointer}.dr-quarterly-datepicker{display:flex;justify-content:space-between;padding:10px}.dr-quarterly-datepicker .quarter-selector{display:block;width:74px;height:40px;text-align:center;border-radius:40px;font-weight:400;padding-top:9px}.dr-quarterly-datepicker .quarter-selector:hover{background:#f2f2fb;color:#4646ce;font-weight:600;cursor:pointer}.dr-quarterly-datepicker .quarter-selector.selected{background-color:#4646ce;color:#f3f7ff;font-weight:600}.dr-quarterly-datepicker .quarter-selector--disabled,.dr-quarterly-datepicker .quarter-selector--disabled.selected{pointer-events:none;background-color:transparent;color:#aeabac;font-weight:400}\n"] }]
|
|
12451
|
+
}], null, null); })();
|
|
12452
|
+
|
|
12453
|
+
function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
12454
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
12455
|
+
i0.ɵɵelementContainerStart(0);
|
|
12456
|
+
i0.ɵɵelementStart(1, "input", 2);
|
|
12457
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template_input_click_1_listener() { i0.ɵɵrestoreView(_r5); const _r3 = i0.ɵɵreference(9); return i0.ɵɵresetView(_r3.open()); });
|
|
12458
|
+
i0.ɵɵelementEnd();
|
|
12459
|
+
i0.ɵɵelementStart(2, "mat-date-range-input", 3)(3, "input", 4, 5);
|
|
12460
|
+
i0.ɵɵlistener("dateChange", function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template_input_dateChange_3_listener() { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.valueChangedInCalendar(ctx_r6.rangeForm.value.start)); });
|
|
12461
|
+
i0.ɵɵpipe(5, "async");
|
|
12462
|
+
i0.ɵɵelementEnd();
|
|
12463
|
+
i0.ɵɵelement(6, "input", 6);
|
|
12464
|
+
i0.ɵɵpipe(7, "async");
|
|
12465
|
+
i0.ɵɵelementEnd();
|
|
12466
|
+
i0.ɵɵelementStart(8, "mat-date-range-picker", 7, 8);
|
|
12467
|
+
i0.ɵɵlistener("yearSelected", function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template_mat_date_range_picker_yearSelected_8_listener($event) { i0.ɵɵrestoreView(_r5); const _r3 = i0.ɵɵreference(9); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.chosenPeriodHandler($event, ctx_r7.timeframeOption.YEAR, _r3)); })("monthSelected", function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template_mat_date_range_picker_monthSelected_8_listener($event) { i0.ɵɵrestoreView(_r5); const _r3 = i0.ɵɵreference(9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.chosenPeriodHandler($event, ctx_r8.timeframeOption.MONTH, _r3)); })("opened", function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template_mat_date_range_picker_opened_8_listener() { i0.ɵɵrestoreView(_r5); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.onOpen()); })("closed", function DrFiscalMonthCalendarPickerComponent_ng_container_1_Template_mat_date_range_picker_closed_8_listener() { i0.ɵɵrestoreView(_r5); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.onCLose()); });
|
|
12468
|
+
i0.ɵɵelementEnd();
|
|
12469
|
+
i0.ɵɵelementContainerEnd();
|
|
12470
|
+
} if (rf & 2) {
|
|
12471
|
+
const _r2 = i0.ɵɵreference(4);
|
|
12472
|
+
const _r3 = i0.ɵɵreference(9);
|
|
12473
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
12474
|
+
i0.ɵɵadvance(1);
|
|
12475
|
+
i0.ɵɵproperty("ngModel", _r2.value)("disabled", ctx_r0.disabled)("placeholder", ctx_r0.placeholder)("readonly", ctx_r0.readonly)("min", ctx_r0._min)("max", ctx_r0._max);
|
|
12476
|
+
i0.ɵɵadvance(1);
|
|
12477
|
+
i0.ɵɵproperty("formGroup", ctx_r0.rangeForm)("rangePicker", _r3)("dateFilter", ctx_r0.dateFilter);
|
|
12478
|
+
i0.ɵɵadvance(1);
|
|
12479
|
+
i0.ɵɵproperty("drDatePickerFormat", i0.ɵɵpipeBind1(5, 13, ctx_r0.datePickerService.format$));
|
|
12480
|
+
i0.ɵɵadvance(3);
|
|
12481
|
+
i0.ɵɵproperty("drDatePickerFormat", i0.ɵɵpipeBind1(7, 15, ctx_r0.datePickerService.format$));
|
|
12482
|
+
i0.ɵɵadvance(2);
|
|
12483
|
+
i0.ɵɵproperty("panelClass", "dr-week-datepicker")("calendarHeaderComponent", ctx_r0.customHeader);
|
|
12484
|
+
} }
|
|
12485
|
+
function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12486
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
12487
|
+
i0.ɵɵelementContainerStart(0);
|
|
12488
|
+
i0.ɵɵelementStart(1, "input", 9);
|
|
12489
|
+
i0.ɵɵlistener("ngModelChange", function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.valueChangedInCalendar($event)); })("click", function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template_input_click_1_listener() { i0.ɵɵrestoreView(_r13); const _r11 = i0.ɵɵreference(5); return i0.ɵɵresetView(_r11.open()); });
|
|
12490
|
+
i0.ɵɵpipe(2, "async");
|
|
12491
|
+
i0.ɵɵpipe(3, "async");
|
|
12492
|
+
i0.ɵɵelementEnd();
|
|
12493
|
+
i0.ɵɵelementStart(4, "mat-datepicker", 10, 8);
|
|
12494
|
+
i0.ɵɵlistener("yearSelected", function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template_mat_datepicker_yearSelected_4_listener($event) { i0.ɵɵrestoreView(_r13); const _r11 = i0.ɵɵreference(5); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.chosenPeriodHandler($event, ctx_r15.timeframeOption.YEAR, _r11)); })("monthSelected", function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template_mat_datepicker_monthSelected_4_listener($event) { i0.ɵɵrestoreView(_r13); const _r11 = i0.ɵɵreference(5); const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.chosenPeriodHandler($event, ctx_r16.timeframeOption.MONTH, _r11)); })("opened", function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template_mat_datepicker_opened_4_listener() { i0.ɵɵrestoreView(_r13); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.onOpen()); })("closed", function DrFiscalMonthCalendarPickerComponent_ng_container_3_Template_mat_datepicker_closed_4_listener() { i0.ɵɵrestoreView(_r13); const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.onCLose()); });
|
|
12495
|
+
i0.ɵɵelementEnd();
|
|
12496
|
+
i0.ɵɵelementContainerEnd();
|
|
12497
|
+
} if (rf & 2) {
|
|
12498
|
+
const _r11 = i0.ɵɵreference(5);
|
|
12499
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
12500
|
+
i0.ɵɵadvance(1);
|
|
12501
|
+
i0.ɵɵproperty("ngModel", i0.ɵɵpipeBind1(2, 10, ctx_r1.displayValue$))("matDatepicker", _r11)("matDatepickerFilter", ctx_r1.dateFilter)("disabled", ctx_r1.disabled)("placeholder", ctx_r1.placeholder)("drDatePickerFormat", i0.ɵɵpipeBind1(3, 12, ctx_r1.datePickerService.format$))("readonly", ctx_r1.readonly)("min", ctx_r1._min)("max", ctx_r1._max);
|
|
12502
|
+
i0.ɵɵadvance(3);
|
|
12503
|
+
i0.ɵɵproperty("calendarHeaderComponent", ctx_r1.customHeader);
|
|
12504
|
+
} }
|
|
12505
|
+
class FiscalMonthAdapter extends CustomDateAdapter {
|
|
12506
|
+
constructor() {
|
|
12507
|
+
super(...arguments);
|
|
12508
|
+
this.datePickerService = inject(DrDatePickerService);
|
|
12509
|
+
}
|
|
12510
|
+
getMonthNames(style) {
|
|
12511
|
+
return ForecastTagService.getForecastMonthTemplates();
|
|
12512
|
+
}
|
|
12513
|
+
format(date, displayFormat) {
|
|
12514
|
+
if (!date)
|
|
12515
|
+
return '';
|
|
12516
|
+
const dateToFormat = this.datePickerService.subtractFiscalYearMonthsFromDate(date.clone());
|
|
12517
|
+
const month = dateToFormat.month();
|
|
12518
|
+
const year = dateToFormat.year();
|
|
12519
|
+
return `${ForecastTagService.getForecastLabel(month + 1)} (${year})`;
|
|
12520
|
+
}
|
|
12521
|
+
today() {
|
|
12522
|
+
const currentMoment = moment.utc();
|
|
12523
|
+
const momentWithSubstrMonth = this.datePickerService.subtractFiscalYearMonthsFromDate(currentMoment);
|
|
12524
|
+
const momentWithShiftedYear = this.datePickerService.addFiscalYearShiftForYear(momentWithSubstrMonth);
|
|
12525
|
+
return momentWithShiftedYear ? momentWithShiftedYear : momentWithSubstrMonth;
|
|
12526
|
+
}
|
|
12527
|
+
}
|
|
12528
|
+
class DrFiscalMonthCalendarPickerComponent extends DrDatePickerComponent {
|
|
12529
|
+
constructor() {
|
|
12530
|
+
super(...arguments);
|
|
12531
|
+
this.customHeader = DrFiscalMonthCalendarHeaderComponent;
|
|
12532
|
+
this.format = TimeframeOption.MONTH;
|
|
12533
|
+
}
|
|
12534
|
+
ngOnInit() {
|
|
12535
|
+
this.updateFormat();
|
|
12536
|
+
}
|
|
12537
|
+
chosenPeriodHandler(chosenDate, timeframe, picker) {
|
|
12538
|
+
if (timeframe === TimeframeOption.YEAR) {
|
|
12539
|
+
chosenDate = this.datePickerService.addFiscalYearMonthsToDate(chosenDate);
|
|
12540
|
+
}
|
|
12541
|
+
if (timeframe === TimeframeOption.MONTH) {
|
|
12542
|
+
const momentWithShiftedYear = this.datePickerService.subtractFiscalYearShiftForYear(chosenDate);
|
|
12543
|
+
chosenDate = this.datePickerService.addFiscalYearMonthsToDate(momentWithShiftedYear ? momentWithShiftedYear : chosenDate);
|
|
12544
|
+
}
|
|
12545
|
+
if (this.datePickerService.timeframe === timeframe) {
|
|
12546
|
+
this.valueChangedInCalendar(chosenDate);
|
|
12547
|
+
picker.close();
|
|
12548
|
+
}
|
|
12549
|
+
}
|
|
12550
|
+
transformDisplayedValue(value, timeframe) {
|
|
12551
|
+
const valueToReturn = value?.clone();
|
|
12552
|
+
if (valueToReturn &&
|
|
12553
|
+
(this.datePickerService.isTimeframeDependingOnFY(timeframe) || timeframe === TimeframeOption.MONTH)) {
|
|
12554
|
+
this.datePickerService.addFiscalYearShiftForYear(valueToReturn);
|
|
12555
|
+
}
|
|
12556
|
+
return valueToReturn;
|
|
12557
|
+
}
|
|
12558
|
+
/** @nocollapse */ static { this.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵDrFiscalMonthCalendarPickerComponent_BaseFactory; return function DrFiscalMonthCalendarPickerComponent_Factory(t) { return (ɵDrFiscalMonthCalendarPickerComponent_BaseFactory || (ɵDrFiscalMonthCalendarPickerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DrFiscalMonthCalendarPickerComponent)))(t || DrFiscalMonthCalendarPickerComponent); }; }(); }
|
|
12559
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrFiscalMonthCalendarPickerComponent, selectors: [["dr-fiscal-month-picker"]], features: [i0.ɵɵProvidersFeature([
|
|
12560
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: DrFiscalMonthCalendarPickerComponent, multi: true },
|
|
12561
|
+
{ provide: DateAdapter, useClass: FiscalMonthAdapter },
|
|
12562
|
+
DrDatePickerService,
|
|
12563
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 6, consts: [[1, "dr-icon-date", 3, "click"], [4, "ngIf"], [3, "ngModel", "disabled", "placeholder", "readonly", "min", "max", "click"], [1, "range-input", 3, "formGroup", "rangePicker", "dateFilter"], ["matStartDate", "", "formControlName", "start", 3, "drDatePickerFormat", "dateChange"], ["input", ""], ["matEndDate", "", "formControlName", "end", 3, "drDatePickerFormat"], [3, "panelClass", "calendarHeaderComponent", "yearSelected", "monthSelected", "opened", "closed"], ["datePicker", ""], [3, "ngModel", "matDatepicker", "matDatepickerFilter", "disabled", "placeholder", "drDatePickerFormat", "readonly", "min", "max", "ngModelChange", "click"], [3, "calendarHeaderComponent", "yearSelected", "monthSelected", "opened", "closed"]], template: function DrFiscalMonthCalendarPickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12564
|
+
i0.ɵɵelementStart(0, "i", 0);
|
|
12565
|
+
i0.ɵɵlistener("click", function DrFiscalMonthCalendarPickerComponent_Template_i_click_0_listener() { return ctx.datePicker.open(); });
|
|
12566
|
+
i0.ɵɵelementEnd();
|
|
12567
|
+
i0.ɵɵtemplate(1, DrFiscalMonthCalendarPickerComponent_ng_container_1_Template, 10, 17, "ng-container", 1);
|
|
12568
|
+
i0.ɵɵpipe(2, "async");
|
|
12569
|
+
i0.ɵɵtemplate(3, DrFiscalMonthCalendarPickerComponent_ng_container_3_Template, 6, 14, "ng-container", 1);
|
|
12570
|
+
i0.ɵɵpipe(4, "async");
|
|
12571
|
+
} if (rf & 2) {
|
|
12572
|
+
i0.ɵɵadvance(1);
|
|
12573
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 2, ctx.datePickerService.timeframe$) === "week");
|
|
12574
|
+
i0.ɵɵadvance(2);
|
|
12575
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 4, ctx.datePickerService.timeframe$) !== "week");
|
|
12576
|
+
} }, dependencies: [i1$2.DefaultValueAccessor, i1$2.NgControlStatus, i1$2.NgControlStatusGroup, i1$2.NgModel, i1$2.FormGroupDirective, i1$2.FormControlName, i1.NgIf, i5.MatDatepicker, i5.MatDatepickerInput, i5.MatDateRangeInput, i5.MatStartDate, i5.MatEndDate, i5.MatDateRangePicker, DrDatePickerFormatDirective, i1.AsyncPipe], styles: ["[_nghost-%COMP%]{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}[_nghost-%COMP%]:hover{border-color:#9ea1aa}.active[_nghost-%COMP%], [_nghost-%COMP%]:focus-within{border-color:#4646ce!important;color:#333}.disabled[_nghost-%COMP%]{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}.disabled[_nghost-%COMP%]:after{color:#aeabac}.ng-valid.ng-dirty[_nghost-%COMP%]{border-color:#037c5a}.ng-invalid.ng-dirty[_nghost-%COMP%]:not(:focus-within){border-color:#bf1d30!important}.ng-untouched.ng-valid[_nghost-%COMP%]{border-color:#9ea1aa}[_nghost-%COMP%]:after, [_nghost-%COMP%]:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}[_nghost-%COMP%]:after{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;pointer-events:none;position:absolute;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] i[_ngcontent-%COMP%]{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}[_nghost-%COMP%] input[_ngcontent-%COMP%]{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}[_nghost-%COMP%] input.when-quarter[_ngcontent-%COMP%]{position:absolute;visibility:hidden}[_nghost-%COMP%] input[_ngcontent-%COMP%]:disabled{border:none;color:#aeabac;background:transparent}[_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}[_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}[_nghost-%COMP%] .range-input[_ngcontent-%COMP%]{position:absolute;height:0;width:0;bottom:0;left:0;z-index:-1} .mat-datepicker-popup .dr-week-datepicker{width:386px!important} .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range:before{background:initial!important} .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-selected, .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-cell-content{background:#f2f2fb!important;color:#4646ce!important;font-weight:600!important} .mat-datepicker-popup .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important} .mat-datepicker-popup .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit} .mat-datepicker-popup .mat-datepicker-content button[disabled]:hover{border:inherit} .mat-datepicker-popup .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .mat-datepicker-popup .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#fff} .mat-datepicker-popup .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600} .mat-datepicker-popup .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600} .mat-datepicker-popup .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none} .mat-datepicker-popup .mat-button-focus-overlay{background:#f5f5f5} .mat-datepicker-popup .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f5f5f5;transition:opacity .2s cubic-bezier(.35,0,.25,1)} .mat-datepicker-popup .mat-calendar-controls .mat-calendar-period-button:hover{background:#f5f5f5;transition:background .2s cubic-bezier(.35,0,.25,1)} .mat-datepicker-popup .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333} .mat-datepicker-popup .mat-calendar-table-header-divider{display:none} .mat-datepicker-popup .mat-calendar-body-label{color:#fff;padding:0} .mat-datepicker-popup .mat-calendar-body>tr[aria-hidden=true]>.mat-calendar-body-label{display:none} .mat-datepicker-popup .mat-calendar-content{display:flex} .mat-datepicker-popup .mat-calendar-content dr-week-selector{flex:0} .mat-datepicker-popup .mat-calendar-content mat-month-view, .mat-datepicker-popup .mat-calendar-content mat-multi-year-view, .mat-datepicker-popup .mat-calendar-content mat-year-view{flex:1}"], changeDetection: 0 }); }
|
|
12577
|
+
}
|
|
12578
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrFiscalMonthCalendarPickerComponent, [{
|
|
12579
|
+
type: Component,
|
|
12580
|
+
args: [{ selector: 'dr-fiscal-month-picker', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
12581
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: DrFiscalMonthCalendarPickerComponent, multi: true },
|
|
12582
|
+
{ provide: DateAdapter, useClass: FiscalMonthAdapter },
|
|
12583
|
+
DrDatePickerService,
|
|
12584
|
+
], template: "<i class=\"dr-icon-date\" (click)=\"datePicker.open()\"></i>\n\n<ng-container *ngIf=\"(datePickerService.timeframe$ | async) === 'week'\">\n <input\n [ngModel]=\"input.value\"\n (click)=\"datePicker.open()\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n\n <mat-date-range-input [formGroup]=\"rangeForm\" [rangePicker]=\"datePicker\" [dateFilter]=\"dateFilter\" class=\"range-input\">\n <input\n matStartDate\n #input\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n formControlName=\"start\"\n (dateChange)=\"valueChangedInCalendar(rangeForm.value.start)\" />\n <input matEndDate [drDatePickerFormat]=\"datePickerService.format$ | async\" formControlName=\"end\" />\n </mat-date-range-input>\n\n <mat-date-range-picker\n #datePicker\n [panelClass]=\"'dr-week-datepicker'\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\">\n </mat-date-range-picker>\n</ng-container>\n\n<ng-container *ngIf=\"(datePickerService.timeframe$ | async) !== 'week'\">\n <input\n [ngModel]=\"displayValue$ | async\"\n (ngModelChange)=\"valueChangedInCalendar($event)\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"dateFilter\"\n [disabled]=\"disabled\"\n [placeholder]=\"placeholder\"\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\" />\n\n <mat-datepicker\n #datePicker\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR, datePicker)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH, datePicker)\"\n (opened)=\"onOpen()\"\n (closed)=\"onCLose()\">\n </mat-datepicker>\n</ng-container>\n", styles: [":host{position:relative;width:100%;display:flex;flex-direction:row;min-height:32px;height:32px;font-size:14px;font-family:Poppins,sans-serif;background-color:#fff;border:1px solid #9ea1aa;border-radius:6px;color:#333;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#9ea1aa}:host.active,:host:focus-within{border-color:#4646ce!important;color:#333}:host.disabled{pointer-events:none;border:1px solid #aeabac;background:#f0f1f4;color:#aeabac}:host.disabled:after{color:#aeabac}:host.ng-valid.ng-dirty{border-color:#037c5a}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#bf1d30!important}:host.ng-untouched.ng-valid{border-color:#9ea1aa}:host:after,:host:before{position:absolute;display:flex;border-color:#6d6e6f transparent transparent;color:#6d6e6f}:host:after{font-family:DataRails!important;content:\"\\ea16\";font-size:24px;color:#6d6e6f;top:0;bottom:0;right:8px;pointer-events:none;position:absolute;display:flex;align-items:center;justify-content:center}:host i{display:flex;align-items:center;position:absolute;color:#6d6e6f;left:8px;top:0;bottom:0}:host input{display:flex;flex-grow:1;height:100%;border:none;text-align:left;padding-left:35px;padding-right:25px;cursor:pointer!important;outline:none}:host input.when-quarter{position:absolute;visibility:hidden}:host input:disabled{border:none;color:#aeabac;background:transparent}:host input::-webkit-search-decoration,:host input::-webkit-search-cancel-button,:host input::-webkit-search-results-button,:host input::-webkit-search-results-decoration{-webkit-appearance:none}:host input::placeholder{color:#6d6e6f;font-size:14px;line-height:18px}:host .range-input{position:absolute;height:0;width:0;bottom:0;left:0;z-index:-1}::ng-deep .mat-datepicker-popup .dr-week-datepicker{width:386px!important}::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range:before{background:initial!important}::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-selected,::ng-deep .mat-datepicker-popup .dr-week-datepicker .mat-calendar-body-in-range .mat-calendar-body-cell-content{background:#f2f2fb!important;color:#4646ce!important;font-weight:600!important}::ng-deep .mat-datepicker-popup .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-popup .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-popup .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .mat-datepicker-popup .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),::ng-deep .mat-datepicker-popup .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:#fff}::ng-deep .mat-datepicker-popup .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background:#f2f2fb;color:#4646ce;font-weight:600}::ng-deep .mat-datepicker-popup .mat-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-datepicker-popup .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-datepicker-popup .mat-button-focus-overlay{background:#f5f5f5}::ng-deep .mat-datepicker-popup .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#f5f5f5;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-datepicker-popup .mat-calendar-controls .mat-calendar-period-button:hover{background:#f5f5f5;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-datepicker-popup .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#333}::ng-deep .mat-datepicker-popup .mat-calendar-table-header-divider{display:none}::ng-deep .mat-datepicker-popup .mat-calendar-body-label{color:#fff;padding:0}::ng-deep .mat-datepicker-popup .mat-calendar-body>tr[aria-hidden=true]>.mat-calendar-body-label{display:none}::ng-deep .mat-datepicker-popup .mat-calendar-content{display:flex}::ng-deep .mat-datepicker-popup .mat-calendar-content dr-week-selector{flex:0}::ng-deep .mat-datepicker-popup .mat-calendar-content mat-month-view,::ng-deep .mat-datepicker-popup .mat-calendar-content mat-multi-year-view,::ng-deep .mat-datepicker-popup .mat-calendar-content mat-year-view{flex:1}\n"] }]
|
|
12585
|
+
}], null, null); })();
|
|
12586
|
+
|
|
12312
12587
|
// !!! Please do not use such approach in other places
|
|
12313
12588
|
// Hard fix for 'none' calendar view selection
|
|
12314
12589
|
MatCalendar.prototype.focusActiveCell = function () {
|
|
@@ -12332,6 +12607,8 @@ const components$2 = [
|
|
|
12332
12607
|
DrShowTimeframePipe,
|
|
12333
12608
|
DrSelectAddItemComponent,
|
|
12334
12609
|
DrLinkComponent,
|
|
12610
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
12611
|
+
DrFiscalMonthCalendarHeaderComponent,
|
|
12335
12612
|
];
|
|
12336
12613
|
class DrInputsModule {
|
|
12337
12614
|
/** @nocollapse */ static { this.ɵfac = function DrInputsModule_Factory(t) { return new (t || DrInputsModule)(); }; }
|
|
@@ -12382,7 +12659,9 @@ class DrInputsModule {
|
|
|
12382
12659
|
DrModelDebounceChangeDirective,
|
|
12383
12660
|
DrShowTimeframePipe,
|
|
12384
12661
|
DrSelectAddItemComponent,
|
|
12385
|
-
DrLinkComponent
|
|
12662
|
+
DrLinkComponent,
|
|
12663
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
12664
|
+
DrFiscalMonthCalendarHeaderComponent], imports: [NgxMaskDirective,
|
|
12386
12665
|
FormsModule,
|
|
12387
12666
|
ReactiveFormsModule,
|
|
12388
12667
|
CommonModule,
|
|
@@ -12407,7 +12686,9 @@ class DrInputsModule {
|
|
|
12407
12686
|
DrModelDebounceChangeDirective,
|
|
12408
12687
|
DrShowTimeframePipe,
|
|
12409
12688
|
DrSelectAddItemComponent,
|
|
12410
|
-
DrLinkComponent
|
|
12689
|
+
DrLinkComponent,
|
|
12690
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
12691
|
+
DrFiscalMonthCalendarHeaderComponent] }); })();
|
|
12411
12692
|
|
|
12412
12693
|
const components$1 = [
|
|
12413
12694
|
DateTagComponent,
|