@datarailsshared/datarailsshared 1.6.29 → 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 +35 -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 +486 -201
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +4 -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.29.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}.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.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();
|
|
@@ -2065,6 +2059,10 @@ class DrDatePickerComponent {
|
|
|
2065
2059
|
registerOnTouched(fn) {
|
|
2066
2060
|
this.onTouchedCallback = fn;
|
|
2067
2061
|
}
|
|
2062
|
+
setDisabledState(isDisabled) {
|
|
2063
|
+
this.disabled = isDisabled;
|
|
2064
|
+
this.cdr.markForCheck();
|
|
2065
|
+
}
|
|
2068
2066
|
valueChangedInCalendar(val) {
|
|
2069
2067
|
if (val !== this.innerValue) {
|
|
2070
2068
|
const valueToSet = val?.clone();
|
|
@@ -2098,6 +2096,26 @@ class DrDatePickerComponent {
|
|
|
2098
2096
|
this.datePickerService.isValueUpdating = false;
|
|
2099
2097
|
});
|
|
2100
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
|
+
}
|
|
2101
2119
|
onOpen() {
|
|
2102
2120
|
this.opened$.next(true);
|
|
2103
2121
|
}
|
|
@@ -2114,7 +2132,7 @@ class DrDatePickerComponent {
|
|
|
2114
2132
|
}
|
|
2115
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)); }; }
|
|
2116
2134
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDatePickerComponent, selectors: [["dr-date-picker"]], viewQuery: function DrDatePickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2117
|
-
i0.ɵɵviewQuery(_c0$
|
|
2135
|
+
i0.ɵɵviewQuery(_c0$D, 5);
|
|
2118
2136
|
} if (rf & 2) {
|
|
2119
2137
|
let _t;
|
|
2120
2138
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datePicker = _t.first);
|
|
@@ -2138,7 +2156,7 @@ class DrDatePickerComponent {
|
|
|
2138
2156
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 2, ctx.datePickerService.timeframe$) === "week");
|
|
2139
2157
|
i0.ɵɵadvance(2);
|
|
2140
2158
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(4, 4, ctx.datePickerService.timeframe$) !== "week");
|
|
2141
|
-
} }, 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 }); }
|
|
2142
2160
|
}
|
|
2143
2161
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrDatePickerComponent, [{
|
|
2144
2162
|
type: Component,
|
|
@@ -2147,7 +2165,7 @@ class DrDatePickerComponent {
|
|
|
2147
2165
|
{ provide: DateAdapter, useClass: CustomDateAdapter },
|
|
2148
2166
|
{ provide: MAT_DATE_RANGE_SELECTION_STRATEGY, useClass: WeekSelectionStrategy },
|
|
2149
2167
|
DrDatePickerService,
|
|
2150
|
-
], 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"] }]
|
|
2151
2169
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.DateAdapter }, { type: DrDatePickerService }]; }, { format: [{
|
|
2152
2170
|
type: Input
|
|
2153
2171
|
}], min: [{
|
|
@@ -2190,14 +2208,14 @@ const DAY_FORMATS = {
|
|
|
2190
2208
|
};
|
|
2191
2209
|
class DayTagComponent extends AnyTagComponent {
|
|
2192
2210
|
get isLocked() {
|
|
2193
|
-
return this.date ? !this.dateFilter(
|
|
2211
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2194
2212
|
}
|
|
2195
2213
|
constructor() {
|
|
2196
2214
|
super();
|
|
2197
2215
|
this.lockedDate = [];
|
|
2198
2216
|
}
|
|
2199
2217
|
initDate() {
|
|
2200
|
-
this.date = this.defaultValue ||
|
|
2218
|
+
this.date = this.defaultValue || moment__default().unix();
|
|
2201
2219
|
this.dateObj.date = this.date;
|
|
2202
2220
|
}
|
|
2203
2221
|
initName() {
|
|
@@ -2206,7 +2224,7 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
2206
2224
|
}
|
|
2207
2225
|
}
|
|
2208
2226
|
chosenTagHandler(value) {
|
|
2209
|
-
const date =
|
|
2227
|
+
const date = moment__default.unix(value);
|
|
2210
2228
|
const resultTag = {
|
|
2211
2229
|
name: this.name,
|
|
2212
2230
|
value: date.unix(),
|
|
@@ -2219,7 +2237,7 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
2219
2237
|
dateFilter(momentData) {
|
|
2220
2238
|
const date = momentData.date();
|
|
2221
2239
|
return !this.lockedDate.some((timestamp) => {
|
|
2222
|
-
const lockDate =
|
|
2240
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2223
2241
|
return lockDate.date() === date;
|
|
2224
2242
|
});
|
|
2225
2243
|
}
|
|
@@ -2277,7 +2295,7 @@ const WEEK_FORMATS = {
|
|
|
2277
2295
|
};
|
|
2278
2296
|
class WeekTagComponent extends AnyTagComponent {
|
|
2279
2297
|
get isLocked() {
|
|
2280
|
-
return this.date ? !this.dateFilter(
|
|
2298
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2281
2299
|
}
|
|
2282
2300
|
constructor() {
|
|
2283
2301
|
super();
|
|
@@ -2285,7 +2303,7 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
2285
2303
|
}
|
|
2286
2304
|
ngOnInit() {
|
|
2287
2305
|
this.initName();
|
|
2288
|
-
const timestamp = this.defaultValue ||
|
|
2306
|
+
const timestamp = this.defaultValue || moment__default().unix();
|
|
2289
2307
|
this.date = timestamp;
|
|
2290
2308
|
this.dateObj.date = timestamp;
|
|
2291
2309
|
this.chosenTagHandler(timestamp);
|
|
@@ -2299,12 +2317,12 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
2299
2317
|
const week = date.week();
|
|
2300
2318
|
const year = date.year();
|
|
2301
2319
|
return !this.lockedDate.some((timestamp) => {
|
|
2302
|
-
const lockDate =
|
|
2320
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2303
2321
|
return lockDate.week() === week && lockDate.year() === year;
|
|
2304
2322
|
});
|
|
2305
2323
|
}
|
|
2306
2324
|
chosenTagHandler(value) {
|
|
2307
|
-
const resultDate =
|
|
2325
|
+
const resultDate = moment__default.unix(value).utc().weekday(1);
|
|
2308
2326
|
const resultTag = {
|
|
2309
2327
|
name: this.name,
|
|
2310
2328
|
value: resultDate.unix(),
|
|
@@ -2371,14 +2389,14 @@ const MONTH_FORMATS = {
|
|
|
2371
2389
|
};
|
|
2372
2390
|
class MonthTagComponent extends AnyTagComponent {
|
|
2373
2391
|
get isLocked() {
|
|
2374
|
-
return this.date ? !this.dateFilter(
|
|
2392
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2375
2393
|
}
|
|
2376
2394
|
constructor() {
|
|
2377
2395
|
super();
|
|
2378
2396
|
this.lockedDate = [];
|
|
2379
2397
|
}
|
|
2380
2398
|
initDate() {
|
|
2381
|
-
this.date = this.defaultValue ||
|
|
2399
|
+
this.date = this.defaultValue || moment__default().unix();
|
|
2382
2400
|
this.dateObj.date = this.date;
|
|
2383
2401
|
}
|
|
2384
2402
|
initName() {
|
|
@@ -2387,7 +2405,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
2387
2405
|
}
|
|
2388
2406
|
}
|
|
2389
2407
|
chosenTagHandler(value) {
|
|
2390
|
-
const resultDate =
|
|
2408
|
+
const resultDate = moment__default.unix(value);
|
|
2391
2409
|
resultDate.hour(12);
|
|
2392
2410
|
const resultTag = {
|
|
2393
2411
|
name: this.name,
|
|
@@ -2403,7 +2421,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
2403
2421
|
const month = date.month();
|
|
2404
2422
|
const year = date.year();
|
|
2405
2423
|
return !this.lockedDate.some((timestamp) => {
|
|
2406
|
-
const lockDate =
|
|
2424
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2407
2425
|
return lockDate.year() === year && lockDate.month() === month;
|
|
2408
2426
|
});
|
|
2409
2427
|
}
|
|
@@ -2450,7 +2468,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
2450
2468
|
|
|
2451
2469
|
class QuarterTagComponent extends AnyTagComponent {
|
|
2452
2470
|
get isLocked() {
|
|
2453
|
-
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;
|
|
2454
2472
|
}
|
|
2455
2473
|
constructor() {
|
|
2456
2474
|
super();
|
|
@@ -2484,7 +2502,7 @@ class QuarterTagComponent extends AnyTagComponent {
|
|
|
2484
2502
|
}
|
|
2485
2503
|
}
|
|
2486
2504
|
chosenTagHandler(quarter) {
|
|
2487
|
-
const resultDate =
|
|
2505
|
+
const resultDate = moment__default.unix(quarter.value);
|
|
2488
2506
|
const resultTag = {
|
|
2489
2507
|
name: this.name,
|
|
2490
2508
|
value: resultDate.unix(),
|
|
@@ -2531,9 +2549,9 @@ class QuarterTagComponent extends AnyTagComponent {
|
|
|
2531
2549
|
return Date.UTC(date.getFullYear(), month, 1, 12, 0, 0, 0);
|
|
2532
2550
|
}
|
|
2533
2551
|
dateFilter(quarter) {
|
|
2534
|
-
const quarterDate =
|
|
2552
|
+
const quarterDate = moment__default.unix(quarter.value);
|
|
2535
2553
|
return !this.lockedDate.some((timestamp) => {
|
|
2536
|
-
const lockDate =
|
|
2554
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2537
2555
|
if (lockDate.year() === quarterDate.year() && lockDate.quarter() === quarterDate.quarter()) {
|
|
2538
2556
|
quarter.disabled = true;
|
|
2539
2557
|
return true;
|
|
@@ -2581,14 +2599,14 @@ const YEAR_FORMATS = {
|
|
|
2581
2599
|
};
|
|
2582
2600
|
class YearTagComponent extends AnyTagComponent {
|
|
2583
2601
|
get isLocked() {
|
|
2584
|
-
return this.date ? !this.dateFilter(
|
|
2602
|
+
return this.date ? !this.dateFilter(moment__default.unix(this.date)) : false;
|
|
2585
2603
|
}
|
|
2586
2604
|
constructor() {
|
|
2587
2605
|
super();
|
|
2588
2606
|
this.lockedDate = [];
|
|
2589
2607
|
}
|
|
2590
2608
|
initDate() {
|
|
2591
|
-
this.date = this.defaultValue ||
|
|
2609
|
+
this.date = this.defaultValue || moment__default().unix();
|
|
2592
2610
|
this.dateObj.date = this.date;
|
|
2593
2611
|
}
|
|
2594
2612
|
initName() {
|
|
@@ -2597,7 +2615,7 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
2597
2615
|
}
|
|
2598
2616
|
}
|
|
2599
2617
|
chosenTagHandler(value) {
|
|
2600
|
-
const resultDate =
|
|
2618
|
+
const resultDate = moment__default.unix(value);
|
|
2601
2619
|
resultDate.hour(12);
|
|
2602
2620
|
const resultTag = {
|
|
2603
2621
|
name: this.name,
|
|
@@ -2611,7 +2629,7 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
2611
2629
|
dateFilter(date) {
|
|
2612
2630
|
const calendarDateYear = date.year();
|
|
2613
2631
|
return !this.lockedDate.some((timestamp) => {
|
|
2614
|
-
const lockDate =
|
|
2632
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2615
2633
|
return lockDate.year() === calendarDateYear;
|
|
2616
2634
|
});
|
|
2617
2635
|
}
|
|
@@ -2734,10 +2752,10 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2734
2752
|
}
|
|
2735
2753
|
}
|
|
2736
2754
|
initDate() {
|
|
2737
|
-
const dateVal = this.defaultValue ?
|
|
2755
|
+
const dateVal = this.defaultValue ? moment__default.unix(this.defaultValue) : moment__default();
|
|
2738
2756
|
const fiscal_year_starts_from = this.fiscalYearStartsFrom || 1;
|
|
2739
2757
|
this.forecastValue = this.getFiscalMonthFromDate(dateVal, fiscal_year_starts_from) - 1;
|
|
2740
|
-
this.forecastYear =
|
|
2758
|
+
this.forecastYear = moment__default
|
|
2741
2759
|
.utc(`${this.firstDayMonthOfYear}/${this.firstDayMonthOfYear}/${this.getFiscalYearFromDate(dateVal, fiscal_year_starts_from, this.fiscalYearBack)}`, FORECAST_DEFAULT_DATE_FORMAT)
|
|
2742
2760
|
.set('hours', 12)
|
|
2743
2761
|
.unix();
|
|
@@ -2747,10 +2765,10 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2747
2765
|
}
|
|
2748
2766
|
}
|
|
2749
2767
|
updateLockedDate() {
|
|
2750
|
-
const year =
|
|
2768
|
+
const year = moment__default.unix(this.forecastYear).year();
|
|
2751
2769
|
this.forecastTags = this.forecastTags.map((forecastTag) => {
|
|
2752
2770
|
forecastTag.disabled = this.lockedDate.some((timestamp) => {
|
|
2753
|
-
const locked =
|
|
2771
|
+
const locked = moment__default.unix(timestamp);
|
|
2754
2772
|
return locked.month() === forecastTag.value && +locked.year() === +year;
|
|
2755
2773
|
});
|
|
2756
2774
|
return forecastTag;
|
|
@@ -2797,7 +2815,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2797
2815
|
if (this.isDateEventHappened)
|
|
2798
2816
|
return;
|
|
2799
2817
|
const month = this.forecastValue;
|
|
2800
|
-
const year =
|
|
2818
|
+
const year = moment__default.unix(this.forecastYear);
|
|
2801
2819
|
const fiscal_year_starts_from = this.fiscalYearStartsFrom || 1;
|
|
2802
2820
|
const fiscal_year_back = this.fiscalYearBack || false;
|
|
2803
2821
|
if (!Number.isNaN(month) && !Number.isNaN(year)) {
|
|
@@ -2810,7 +2828,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2810
2828
|
date.setMonth(date.getMonth() - 1 + fiscal_year_starts_from);
|
|
2811
2829
|
}
|
|
2812
2830
|
}
|
|
2813
|
-
this.dateObj.date =
|
|
2831
|
+
this.dateObj.date = moment__default(date).unix();
|
|
2814
2832
|
this.isDateEventHappened = true;
|
|
2815
2833
|
setTimeout(() => {
|
|
2816
2834
|
this.isDateEventHappened = false;
|
|
@@ -2820,7 +2838,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2820
2838
|
name: this.name,
|
|
2821
2839
|
value: this.dateObj.date,
|
|
2822
2840
|
label: `${find(this.forecastTags, { value: this.forecastValue })?.label} (${year.year()})`,
|
|
2823
|
-
locked: !this.dateFilter(
|
|
2841
|
+
locked: !this.dateFilter(moment__default.unix(this.dateObj.date)),
|
|
2824
2842
|
};
|
|
2825
2843
|
this.dateChange.emit(resultTag);
|
|
2826
2844
|
}
|
|
@@ -2828,7 +2846,7 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
2828
2846
|
const month = this.forecastValue;
|
|
2829
2847
|
const year = date.year();
|
|
2830
2848
|
return !this.lockedDate.some((timestamp) => {
|
|
2831
|
-
const lockDate =
|
|
2849
|
+
const lockDate = moment__default.unix(timestamp);
|
|
2832
2850
|
return lockDate.month() === month && lockDate.year() === year;
|
|
2833
2851
|
});
|
|
2834
2852
|
}
|
|
@@ -3305,8 +3323,8 @@ class DrModelDebounceChangeDirective {
|
|
|
3305
3323
|
type: Output
|
|
3306
3324
|
}] }); })();
|
|
3307
3325
|
|
|
3308
|
-
const _c0$
|
|
3309
|
-
const _c1$
|
|
3326
|
+
const _c0$C = ["prefix"];
|
|
3327
|
+
const _c1$g = ["suffix"];
|
|
3310
3328
|
const _c2$6 = ["inputRef"];
|
|
3311
3329
|
function DrInputComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
3312
3330
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -3515,8 +3533,8 @@ class DrInputComponent {
|
|
|
3515
3533
|
}
|
|
3516
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)); }; }
|
|
3517
3535
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrInputComponent, selectors: [["dr-input"]], contentQueries: function DrInputComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
3518
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
3519
|
-
i0.ɵɵcontentQuery(dirIndex, _c1$
|
|
3536
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$C, 5);
|
|
3537
|
+
i0.ɵɵcontentQuery(dirIndex, _c1$g, 5);
|
|
3520
3538
|
} if (rf & 2) {
|
|
3521
3539
|
let _t;
|
|
3522
3540
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.prefixIcon = _t.first);
|
|
@@ -3656,7 +3674,7 @@ function DrButtonComponent_i_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
3656
3674
|
i0.ɵɵclassMap(ctx_r2.iconAfter);
|
|
3657
3675
|
i0.ɵɵstyleProp("font-size", ctx_r2.iconAfterSize)("color", ctx_r2.iconAfterColor || "inherit");
|
|
3658
3676
|
} }
|
|
3659
|
-
const _c0$
|
|
3677
|
+
const _c0$B = ["*"];
|
|
3660
3678
|
class DrButtonComponent {
|
|
3661
3679
|
constructor() {
|
|
3662
3680
|
this.theme = 'primary';
|
|
@@ -3670,7 +3688,7 @@ class DrButtonComponent {
|
|
|
3670
3688
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrButtonComponent, selectors: [["dr-button"]], hostVars: 12, hostBindings: function DrButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
3671
3689
|
i0.ɵɵclassMap(ctx.theme);
|
|
3672
3690
|
i0.ɵɵclassProp("with-icon", ctx.icon)("with-icon-after", ctx.iconAfter)("disabled", ctx.disabled)("loading", ctx.isLoading)("active", ctx.isActive);
|
|
3673
|
-
} }, 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) {
|
|
3674
3692
|
i0.ɵɵprojectionDef();
|
|
3675
3693
|
i0.ɵɵelementStart(0, "button", 0);
|
|
3676
3694
|
i0.ɵɵtemplate(1, DrButtonComponent_i_1_Template, 1, 6, "i", 1);
|
|
@@ -3731,7 +3749,7 @@ class DrButtonComponent {
|
|
|
3731
3749
|
args: ['class.active']
|
|
3732
3750
|
}] }); })();
|
|
3733
3751
|
|
|
3734
|
-
const _c0$
|
|
3752
|
+
const _c0$A = ["dynamicInputRef"];
|
|
3735
3753
|
function DrSelectAddItemComponent_div_5_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
3736
3754
|
i0.ɵɵelementStart(0, "p", 12);
|
|
3737
3755
|
i0.ɵɵtext(1);
|
|
@@ -3821,7 +3839,7 @@ class DrSelectAddItemComponent {
|
|
|
3821
3839
|
}
|
|
3822
3840
|
/** @nocollapse */ static { this.ɵfac = function DrSelectAddItemComponent_Factory(t) { return new (t || DrSelectAddItemComponent)(i0.ɵɵdirectiveInject(DrSelectComponent)); }; }
|
|
3823
3841
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrSelectAddItemComponent, selectors: [["dr-select-add-item"]], viewQuery: function DrSelectAddItemComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3824
|
-
i0.ɵɵviewQuery(_c0$
|
|
3842
|
+
i0.ɵɵviewQuery(_c0$A, 5);
|
|
3825
3843
|
} if (rf & 2) {
|
|
3826
3844
|
let _t;
|
|
3827
3845
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputRef = _t.first);
|
|
@@ -3985,7 +4003,7 @@ class DrDynamicTagComponent {
|
|
|
3985
4003
|
getParentValueKey() {
|
|
3986
4004
|
return map$1(this.connectedTags, (connectedTag) => {
|
|
3987
4005
|
if (isNumber(connectedTag.value)) {
|
|
3988
|
-
const momentData =
|
|
4006
|
+
const momentData = moment__default.unix(connectedTag.value);
|
|
3989
4007
|
const convertedParentKey = this.parentKeyFormatterFn
|
|
3990
4008
|
? this.parentKeyFormatterFn(momentData)
|
|
3991
4009
|
: momentData.format(this.parentKeyFormat);
|
|
@@ -4281,7 +4299,7 @@ class DrTagComponent {
|
|
|
4281
4299
|
type: Output
|
|
4282
4300
|
}] }); })();
|
|
4283
4301
|
|
|
4284
|
-
const _c0$
|
|
4302
|
+
const _c0$z = ["*"];
|
|
4285
4303
|
class RadioButtonComponent {
|
|
4286
4304
|
get disabled() {
|
|
4287
4305
|
return this._disabled;
|
|
@@ -4332,7 +4350,7 @@ class RadioButtonComponent {
|
|
|
4332
4350
|
useExisting: RadioButtonComponent,
|
|
4333
4351
|
multi: true,
|
|
4334
4352
|
},
|
|
4335
|
-
])], 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) {
|
|
4336
4354
|
i0.ɵɵprojectionDef();
|
|
4337
4355
|
i0.ɵɵelementStart(0, "label")(1, "input", 0);
|
|
4338
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); });
|
|
@@ -4365,8 +4383,8 @@ class RadioButtonComponent {
|
|
|
4365
4383
|
type: Input
|
|
4366
4384
|
}] }); })();
|
|
4367
4385
|
|
|
4368
|
-
const _c0$
|
|
4369
|
-
const _c1$
|
|
4386
|
+
const _c0$y = [[["dr-radio-button"]]];
|
|
4387
|
+
const _c1$f = ["dr-radio-button"];
|
|
4370
4388
|
class RadioGroupComponent {
|
|
4371
4389
|
get value() {
|
|
4372
4390
|
return this._value;
|
|
@@ -4505,8 +4523,8 @@ class RadioGroupComponent {
|
|
|
4505
4523
|
useExisting: forwardRef((() => RadioGroupComponent)),
|
|
4506
4524
|
multi: true,
|
|
4507
4525
|
},
|
|
4508
|
-
])], ngContentSelectors: _c1$
|
|
4509
|
-
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);
|
|
4510
4528
|
i0.ɵɵprojection(0);
|
|
4511
4529
|
} }, encapsulation: 2, changeDetection: 0 }); }
|
|
4512
4530
|
}
|
|
@@ -4543,8 +4561,8 @@ class RadioGroupComponent {
|
|
|
4543
4561
|
type: Output
|
|
4544
4562
|
}] }); })();
|
|
4545
4563
|
|
|
4546
|
-
const _c0$
|
|
4547
|
-
const _c1$
|
|
4564
|
+
const _c0$x = ["checkboxContent"];
|
|
4565
|
+
const _c1$e = ["*"];
|
|
4548
4566
|
class CheckboxComponent {
|
|
4549
4567
|
get indeterminate() {
|
|
4550
4568
|
return this._indeterminate;
|
|
@@ -4593,14 +4611,14 @@ class CheckboxComponent {
|
|
|
4593
4611
|
}
|
|
4594
4612
|
/** @nocollapse */ static { this.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
4595
4613
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["dr-checkbox"]], viewQuery: function CheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4596
|
-
i0.ɵɵviewQuery(_c0$
|
|
4614
|
+
i0.ɵɵviewQuery(_c0$x, 5);
|
|
4597
4615
|
} if (rf & 2) {
|
|
4598
4616
|
let _t;
|
|
4599
4617
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxContent = _t.first);
|
|
4600
4618
|
} }, hostVars: 6, hostBindings: function CheckboxComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
4601
4619
|
i0.ɵɵclassMap(ctx.theme);
|
|
4602
4620
|
i0.ɵɵclassProp("disabled", ctx.disabled)("text-nowrap", ctx.textNowrap);
|
|
4603
|
-
} }, 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) {
|
|
4604
4622
|
i0.ɵɵprojectionDef();
|
|
4605
4623
|
i0.ɵɵelementStart(0, "label")(1, "input", 0);
|
|
4606
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(); });
|
|
@@ -4649,7 +4667,7 @@ class CheckboxComponent {
|
|
|
4649
4667
|
args: ['checkboxContent']
|
|
4650
4668
|
}] }); })();
|
|
4651
4669
|
|
|
4652
|
-
const _c0$
|
|
4670
|
+
const _c0$w = ["*"];
|
|
4653
4671
|
var LinkTheme;
|
|
4654
4672
|
(function (LinkTheme) {
|
|
4655
4673
|
LinkTheme["DEFAULT"] = "DEFAULT";
|
|
@@ -4665,7 +4683,7 @@ class DrLinkComponent {
|
|
|
4665
4683
|
this.theme = LinkTheme.DEFAULT;
|
|
4666
4684
|
}
|
|
4667
4685
|
/** @nocollapse */ static { this.ɵfac = function DrLinkComponent_Factory(t) { return new (t || DrLinkComponent)(); }; }
|
|
4668
|
-
/** @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) {
|
|
4669
4687
|
i0.ɵɵprojectionDef();
|
|
4670
4688
|
i0.ɵɵelementStart(0, "a", 0);
|
|
4671
4689
|
i0.ɵɵprojection(1);
|
|
@@ -4737,7 +4755,7 @@ function DrDatePickerWithTimeframeComponent_dr_button_11_Template(rf, ctx) { if
|
|
|
4737
4755
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
4738
4756
|
i0.ɵɵproperty("disabled", ctx_r5.isNextDateDisabled);
|
|
4739
4757
|
} }
|
|
4740
|
-
const _c0$
|
|
4758
|
+
const _c0$v = function (a0) { return { formattedValue: a0 }; };
|
|
4741
4759
|
class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
4742
4760
|
get isDashboardClassDisplayed() {
|
|
4743
4761
|
return this.isDashboardDatepicker;
|
|
@@ -4910,14 +4928,14 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4910
4928
|
i0.ɵɵadvance(1);
|
|
4911
4929
|
i0.ɵɵproperty("ngIf", ctx.isDashboardDatepicker);
|
|
4912
4930
|
i0.ɵɵadvance(2);
|
|
4913
|
-
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$)));
|
|
4914
4932
|
i0.ɵɵadvance(4);
|
|
4915
4933
|
i0.ɵɵproperty("ngModel", i0.ɵɵpipeBind1(10, 17, ctx.displayValue$))("matDatepicker", _r6)("readonly", ctx.readonly)("min", ctx._min)("max", ctx._max);
|
|
4916
4934
|
i0.ɵɵadvance(3);
|
|
4917
4935
|
i0.ɵɵproperty("ngIf", !ctx.disabled);
|
|
4918
4936
|
i0.ɵɵadvance(1);
|
|
4919
4937
|
i0.ɵɵproperty("calendarHeaderComponent", ctx.customHeader)("panelClass", ctx.datePickerService.isUsingDateTagPresets ? "date-picker-preset-tag" : "dr-timeframe-datepicker");
|
|
4920
|
-
} }, 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 }); }
|
|
4921
4939
|
}
|
|
4922
4940
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrDatePickerWithTimeframeComponent, [{
|
|
4923
4941
|
type: Component,
|
|
@@ -4925,7 +4943,7 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
4925
4943
|
{ provide: NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },
|
|
4926
4944
|
{ provide: DateAdapter, useClass: CustomDateAdapter },
|
|
4927
4945
|
{ provide: DrDatePickerService },
|
|
4928
|
-
], 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"] }]
|
|
4929
4947
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.DateAdapter }, { type: DrDatePickerService }]; }, { isDashboardClassDisplayed: [{
|
|
4930
4948
|
type: HostBinding,
|
|
4931
4949
|
args: ['class.dr-date-picker-on-dashboard']
|
|
@@ -5186,7 +5204,7 @@ class TooltipInfoComponent {
|
|
|
5186
5204
|
type: Input
|
|
5187
5205
|
}] }); })();
|
|
5188
5206
|
|
|
5189
|
-
const _c0$
|
|
5207
|
+
const _c0$u = ["stepper"];
|
|
5190
5208
|
function StepperComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
5191
5209
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
5192
5210
|
i0.ɵɵelementStart(0, "div", 6);
|
|
@@ -5202,7 +5220,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_5_Template(rf, ctx) {
|
|
|
5202
5220
|
i0.ɵɵelement(1, "i", 22);
|
|
5203
5221
|
i0.ɵɵelementEnd();
|
|
5204
5222
|
} }
|
|
5205
|
-
const _c1$
|
|
5223
|
+
const _c1$d = function (a0) { return { "blue with-ellipse": a0 }; };
|
|
5206
5224
|
function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
5207
5225
|
i0.ɵɵelementStart(0, "div", 23)(1, "div", 24);
|
|
5208
5226
|
i0.ɵɵtext(2);
|
|
@@ -5213,7 +5231,7 @@ function StepperComponent_ng_container_3_div_1_ng_template_6_Template(rf, ctx) {
|
|
|
5213
5231
|
const index_r11 = ctx_r22.index;
|
|
5214
5232
|
const ctx_r18 = i0.ɵɵnextContext();
|
|
5215
5233
|
i0.ɵɵclassProp("gray", step_r10 !== ctx_r18.currentStep);
|
|
5216
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c1$
|
|
5234
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c1$d, step_r10 === ctx_r18.currentStep));
|
|
5217
5235
|
i0.ɵɵadvance(1);
|
|
5218
5236
|
i0.ɵɵproperty("hidden", step_r10 === ctx_r18.currentStep || ctx_r18.hiddenIndex);
|
|
5219
5237
|
i0.ɵɵadvance(1);
|
|
@@ -5400,7 +5418,7 @@ class StepperComponent {
|
|
|
5400
5418
|
}
|
|
5401
5419
|
/** @nocollapse */ static { this.ɵfac = function StepperComponent_Factory(t) { return new (t || StepperComponent)(); }; }
|
|
5402
5420
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: StepperComponent, selectors: [["dr-stepper"]], viewQuery: function StepperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5403
|
-
i0.ɵɵviewQuery(_c0$
|
|
5421
|
+
i0.ɵɵviewQuery(_c0$u, 5, ElementRef);
|
|
5404
5422
|
} if (rf & 2) {
|
|
5405
5423
|
let _t;
|
|
5406
5424
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepper = _t.first);
|
|
@@ -5561,7 +5579,7 @@ function DrChatFormComponent_dr_button_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
5561
5579
|
i0.ɵɵtext(1, "Stop generating");
|
|
5562
5580
|
i0.ɵɵelementEnd();
|
|
5563
5581
|
} }
|
|
5564
|
-
const _c0$
|
|
5582
|
+
const _c0$t = function (a0, a1) { return { "message-row__input--focused": a0, "message-row__input--filled": a1 }; };
|
|
5565
5583
|
class DrChatFormComponent {
|
|
5566
5584
|
constructor(cdr, domSanitizer) {
|
|
5567
5585
|
this.cdr = cdr;
|
|
@@ -5717,7 +5735,7 @@ class DrChatFormComponent {
|
|
|
5717
5735
|
const _r1 = i0.ɵɵreference(4);
|
|
5718
5736
|
i0.ɵɵproperty("ngIf", ctx.droppedFiles == null ? null : ctx.droppedFiles.length);
|
|
5719
5737
|
i0.ɵɵadvance(2);
|
|
5720
|
-
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)));
|
|
5721
5739
|
i0.ɵɵadvance(1);
|
|
5722
5740
|
i0.ɵɵstyleMap(ctx.getTextAreaHeight(_r1));
|
|
5723
5741
|
i0.ɵɵpropertyInterpolate("placeholder", ctx.fileOver ? ctx.dropFilePlaceholder : ctx.messagePlaceholder);
|
|
@@ -5832,7 +5850,7 @@ function DrAvatarComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
5832
5850
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
5833
5851
|
i0.ɵɵstyleProp("width", ctx_r0.drAvatarSize || null)("height", ctx_r0.drAvatarSize || null);
|
|
5834
5852
|
} }
|
|
5835
|
-
const _c0$
|
|
5853
|
+
const _c0$s = function (a0, a1) { return { "users-section__default": a0, "users-section__user--clickable": a1 }; };
|
|
5836
5854
|
function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
5837
5855
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
5838
5856
|
i0.ɵɵelementStart(0, "div", 5);
|
|
@@ -5846,7 +5864,7 @@ function DrAvatarComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
5846
5864
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
5847
5865
|
i0.ɵɵclassMap(user_r5.status);
|
|
5848
5866
|
i0.ɵɵstyleProp("width", ctx_r1.drAvatarSize || null)("height", ctx_r1.drAvatarSize || null)("background-color", ctx_r1.getAvatarColor(user_r5));
|
|
5849
|
-
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);
|
|
5850
5868
|
i0.ɵɵadvance(2);
|
|
5851
5869
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 15, user_r5, "initials"), "\n");
|
|
5852
5870
|
} }
|
|
@@ -6095,7 +6113,7 @@ class DrChatMessageFileComponent {
|
|
|
6095
6113
|
type: Input
|
|
6096
6114
|
}] }); })();
|
|
6097
6115
|
|
|
6098
|
-
const _c0$
|
|
6116
|
+
const _c0$r = ["drChatMessageActions"];
|
|
6099
6117
|
function DrChatMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
6100
6118
|
i0.ɵɵelementContainerStart(0);
|
|
6101
6119
|
i0.ɵɵelement(1, "div", 8);
|
|
@@ -6197,7 +6215,7 @@ class DrChatMessageComponent {
|
|
|
6197
6215
|
}
|
|
6198
6216
|
/** @nocollapse */ static { this.ɵfac = function DrChatMessageComponent_Factory(t) { return new (t || DrChatMessageComponent)(i0.ɵɵdirectiveInject(DrChatCustomMessageService)); }; }
|
|
6199
6217
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatMessageComponent, selectors: [["dr-chat-message"]], contentQueries: function DrChatMessageComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
6200
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
6218
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$r, 5);
|
|
6201
6219
|
} if (rf & 2) {
|
|
6202
6220
|
let _t;
|
|
6203
6221
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.drChatMessageActions = _t.first);
|
|
@@ -6270,7 +6288,7 @@ class DrChatMessageComponent {
|
|
|
6270
6288
|
args: ['drChatMessageActions']
|
|
6271
6289
|
}] }); })();
|
|
6272
6290
|
|
|
6273
|
-
const _c0$
|
|
6291
|
+
const _c0$q = ["suggestionsContainer"];
|
|
6274
6292
|
function DrChatSuggestionsComponent_ng_container_2_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
6275
6293
|
i0.ɵɵelementContainer(0);
|
|
6276
6294
|
} }
|
|
@@ -6309,14 +6327,14 @@ function DrChatSuggestionsComponent_ng_template_3_div_1_Template(rf, ctx) { if (
|
|
|
6309
6327
|
i0.ɵɵadvance(1);
|
|
6310
6328
|
i0.ɵɵtextInterpolate1(" ", item_r9, " ");
|
|
6311
6329
|
} }
|
|
6312
|
-
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 }; };
|
|
6313
6331
|
function DrChatSuggestionsComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
6314
6332
|
i0.ɵɵelementStart(0, "div", 8);
|
|
6315
6333
|
i0.ɵɵtemplate(1, DrChatSuggestionsComponent_ng_template_3_div_1_Template, 2, 1, "div", 9);
|
|
6316
6334
|
i0.ɵɵelementEnd();
|
|
6317
6335
|
} if (rf & 2) {
|
|
6318
6336
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
6319
|
-
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));
|
|
6320
6338
|
i0.ɵɵadvance(1);
|
|
6321
6339
|
i0.ɵɵproperty("ngForOf", ctx_r3.visibleValues);
|
|
6322
6340
|
} }
|
|
@@ -6415,7 +6433,7 @@ class DrChatSuggestionsComponent {
|
|
|
6415
6433
|
}
|
|
6416
6434
|
/** @nocollapse */ static { this.ɵfac = function DrChatSuggestionsComponent_Factory(t) { return new (t || DrChatSuggestionsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
6417
6435
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatSuggestionsComponent, selectors: [["dr-chat-suggestions"]], viewQuery: function DrChatSuggestionsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6418
|
-
i0.ɵɵviewQuery(_c0$
|
|
6436
|
+
i0.ɵɵviewQuery(_c0$q, 5);
|
|
6419
6437
|
} if (rf & 2) {
|
|
6420
6438
|
let _t;
|
|
6421
6439
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.suggestionContainer = _t.first);
|
|
@@ -6449,8 +6467,8 @@ class DrChatSuggestionsComponent {
|
|
|
6449
6467
|
args: ['suggestionsContainer', { static: false }]
|
|
6450
6468
|
}] }); })();
|
|
6451
6469
|
|
|
6452
|
-
const _c0$
|
|
6453
|
-
const _c1$
|
|
6470
|
+
const _c0$p = ["drChatHeader"];
|
|
6471
|
+
const _c1$b = ["messagesContainer"];
|
|
6454
6472
|
function DrChatComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
6455
6473
|
i0.ɵɵelementContainer(0, 8);
|
|
6456
6474
|
} if (rf & 2) {
|
|
@@ -6565,7 +6583,7 @@ class DrChatComponent {
|
|
|
6565
6583
|
/** @nocollapse */ static { this.ɵfac = function DrChatComponent_Factory(t) { return new (t || DrChatComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
6566
6584
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatComponent, selectors: [["dr-chat"]], contentQueries: function DrChatComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
6567
6585
|
i0.ɵɵcontentQuery(dirIndex, DrChatFormComponent, 5);
|
|
6568
|
-
i0.ɵɵcontentQuery(dirIndex, _c0$
|
|
6586
|
+
i0.ɵɵcontentQuery(dirIndex, _c0$p, 5);
|
|
6569
6587
|
i0.ɵɵcontentQuery(dirIndex, DrChatMessageComponent, 4);
|
|
6570
6588
|
} if (rf & 2) {
|
|
6571
6589
|
let _t;
|
|
@@ -6573,7 +6591,7 @@ class DrChatComponent {
|
|
|
6573
6591
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chatHeader = _t.first);
|
|
6574
6592
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.messages = _t);
|
|
6575
6593
|
} }, viewQuery: function DrChatComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6576
|
-
i0.ɵɵviewQuery(_c1$
|
|
6594
|
+
i0.ɵɵviewQuery(_c1$b, 5);
|
|
6577
6595
|
i0.ɵɵviewQuery(DrChatSuggestionsComponent, 5);
|
|
6578
6596
|
} if (rf & 2) {
|
|
6579
6597
|
let _t;
|
|
@@ -6641,8 +6659,8 @@ class DrChatComponent {
|
|
|
6641
6659
|
args: [DrChatSuggestionsComponent]
|
|
6642
6660
|
}] }); })();
|
|
6643
6661
|
|
|
6644
|
-
const _c0$
|
|
6645
|
-
const _c1$
|
|
6662
|
+
const _c0$o = ["textAreaElement"];
|
|
6663
|
+
const _c1$a = ["fileInput"];
|
|
6646
6664
|
function DrChatFormDropdownComponent_dr_chat_dropped_files_2_Template(rf, ctx) { if (rf & 1) {
|
|
6647
6665
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
6648
6666
|
i0.ɵɵelementStart(0, "dr-chat-dropped-files", 12);
|
|
@@ -6828,8 +6846,8 @@ class DrChatFormDropdownComponent {
|
|
|
6828
6846
|
}
|
|
6829
6847
|
/** @nocollapse */ static { this.ɵfac = function DrChatFormDropdownComponent_Factory(t) { return new (t || DrChatFormDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$5.DomSanitizer)); }; }
|
|
6830
6848
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrChatFormDropdownComponent, selectors: [["dr-chat-form-dropdown"]], viewQuery: function DrChatFormDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6831
|
-
i0.ɵɵviewQuery(_c0$
|
|
6832
|
-
i0.ɵɵviewQuery(_c1$
|
|
6849
|
+
i0.ɵɵviewQuery(_c0$o, 5);
|
|
6850
|
+
i0.ɵɵviewQuery(_c1$a, 5);
|
|
6833
6851
|
} if (rf & 2) {
|
|
6834
6852
|
let _t;
|
|
6835
6853
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.textAreaElementRef = _t.first);
|
|
@@ -6964,14 +6982,14 @@ class DrChatCustomMessageDirective {
|
|
|
6964
6982
|
type: Input
|
|
6965
6983
|
}] }); })();
|
|
6966
6984
|
|
|
6967
|
-
const _c0$
|
|
6985
|
+
const _c0$n = ["*"];
|
|
6968
6986
|
class DrChatAlertComponent {
|
|
6969
6987
|
constructor() {
|
|
6970
6988
|
this.iconClass = 'dr-icon-info';
|
|
6971
6989
|
this.close = new EventEmitter();
|
|
6972
6990
|
}
|
|
6973
6991
|
/** @nocollapse */ static { this.ɵfac = function DrChatAlertComponent_Factory(t) { return new (t || DrChatAlertComponent)(); }; }
|
|
6974
|
-
/** @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) {
|
|
6975
6993
|
i0.ɵɵprojectionDef();
|
|
6976
6994
|
i0.ɵɵelement(0, "i");
|
|
6977
6995
|
i0.ɵɵprojection(1);
|
|
@@ -7009,7 +7027,7 @@ function DrToggleComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
7009
7027
|
i0.ɵɵadvance(1);
|
|
7010
7028
|
i0.ɵɵtextInterpolate(ctx_r1.toggleTitle);
|
|
7011
7029
|
} }
|
|
7012
|
-
const _c0$
|
|
7030
|
+
const _c0$m = ["*"];
|
|
7013
7031
|
class DrToggleComponent {
|
|
7014
7032
|
set disabled(value) {
|
|
7015
7033
|
this.setDisabledState(value);
|
|
@@ -7052,7 +7070,7 @@ class DrToggleComponent {
|
|
|
7052
7070
|
/** @nocollapse */ static { this.ɵfac = function DrToggleComponent_Factory(t) { return new (t || DrToggleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
7053
7071
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleComponent, selectors: [["dr-toggle"]], hostVars: 2, hostBindings: function DrToggleComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
7054
7072
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
7055
|
-
} }, 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) {
|
|
7056
7074
|
i0.ɵɵprojectionDef();
|
|
7057
7075
|
i0.ɵɵtemplate(0, DrToggleComponent_span_0_Template, 2, 1, "span", 0);
|
|
7058
7076
|
i0.ɵɵelementStart(1, "label", 1)(2, "input", 2);
|
|
@@ -7172,7 +7190,7 @@ function DrAlertComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
7172
7190
|
i0.ɵɵadvance(1);
|
|
7173
7191
|
i0.ɵɵtextInterpolate(ctx_r0.text);
|
|
7174
7192
|
} }
|
|
7175
|
-
const _c0$
|
|
7193
|
+
const _c0$l = ["*"];
|
|
7176
7194
|
const ALERT_THEME_ICONS = {
|
|
7177
7195
|
[DrAlertTheme.SUCCESS]: 'dr-icon-uploaded-success',
|
|
7178
7196
|
[DrAlertTheme.BOLD_ERROR]: 'dr-icon-error',
|
|
@@ -7193,7 +7211,7 @@ class DrAlertComponent {
|
|
|
7193
7211
|
/** @nocollapse */ static { this.ɵfac = function DrAlertComponent_Factory(t) { return new (t || DrAlertComponent)(); }; }
|
|
7194
7212
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAlertComponent, selectors: [["dr-alert"]], hostVars: 2, hostBindings: function DrAlertComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
7195
7213
|
i0.ɵɵclassMap(ctx.elementClass);
|
|
7196
|
-
} }, 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) {
|
|
7197
7215
|
i0.ɵɵprojectionDef();
|
|
7198
7216
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7199
7217
|
i0.ɵɵelement(1, "i");
|
|
@@ -7239,7 +7257,7 @@ class CodeEditorHintWrapperComponent {
|
|
|
7239
7257
|
}]
|
|
7240
7258
|
}], null, null); })();
|
|
7241
7259
|
|
|
7242
|
-
const _c0$
|
|
7260
|
+
const _c0$k = ["ref"];
|
|
7243
7261
|
class DrCodemirrorComponent {
|
|
7244
7262
|
set options(value) {
|
|
7245
7263
|
this._options = value;
|
|
@@ -7369,7 +7387,7 @@ class DrCodemirrorComponent {
|
|
|
7369
7387
|
}
|
|
7370
7388
|
/** @nocollapse */ static { this.ɵfac = function DrCodemirrorComponent_Factory(t) { return new (t || DrCodemirrorComponent)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.NgZone)); }; }
|
|
7371
7389
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodemirrorComponent, selectors: [["dr-codemirror"]], viewQuery: function DrCodemirrorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7372
|
-
i0.ɵɵviewQuery(_c0$
|
|
7390
|
+
i0.ɵɵviewQuery(_c0$k, 5);
|
|
7373
7391
|
} if (rf & 2) {
|
|
7374
7392
|
let _t;
|
|
7375
7393
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.ref = _t.first);
|
|
@@ -7521,7 +7539,7 @@ class DrErrorComponent {
|
|
|
7521
7539
|
args: ['class.no-icon']
|
|
7522
7540
|
}] }); })();
|
|
7523
7541
|
|
|
7524
|
-
const _c0$
|
|
7542
|
+
const _c0$j = ["codeEditor"];
|
|
7525
7543
|
function DrCodeEditorComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
7526
7544
|
i0.ɵɵelementStart(0, "span", 4);
|
|
7527
7545
|
i0.ɵɵtext(1);
|
|
@@ -7800,7 +7818,7 @@ class DrCodeEditorComponent {
|
|
|
7800
7818
|
}
|
|
7801
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)); }; }
|
|
7802
7820
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCodeEditorComponent, selectors: [["dr-code-editor"]], viewQuery: function DrCodeEditorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7803
|
-
i0.ɵɵviewQuery(_c0$
|
|
7821
|
+
i0.ɵɵviewQuery(_c0$j, 5);
|
|
7804
7822
|
} if (rf & 2) {
|
|
7805
7823
|
let _t;
|
|
7806
7824
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.codeEditor = _t.first);
|
|
@@ -8568,7 +8586,7 @@ const getAlignmentDimension = (position) => {
|
|
|
8568
8586
|
return DrPopoverAlignmentDimension.Width;
|
|
8569
8587
|
};
|
|
8570
8588
|
|
|
8571
|
-
const _c0$
|
|
8589
|
+
const _c0$i = ["popoverContainer"];
|
|
8572
8590
|
function DrPopoverComponent_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8573
8591
|
i0.ɵɵelementContainer(0);
|
|
8574
8592
|
} }
|
|
@@ -8658,7 +8676,7 @@ class DrPopoverComponent {
|
|
|
8658
8676
|
}
|
|
8659
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)); }; }
|
|
8660
8678
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrPopoverComponent, selectors: [["dr-popover"]], viewQuery: function DrPopoverComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8661
|
-
i0.ɵɵviewQuery(_c0$
|
|
8679
|
+
i0.ɵɵviewQuery(_c0$i, 7, ElementRef);
|
|
8662
8680
|
} if (rf & 2) {
|
|
8663
8681
|
let _t;
|
|
8664
8682
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverContainer = _t.first);
|
|
@@ -8975,7 +8993,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8975
8993
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8976
8994
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8977
8995
|
};
|
|
8978
|
-
const _c0$
|
|
8996
|
+
const _c0$h = ["menuContainer"];
|
|
8979
8997
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
8980
8998
|
i0.ɵɵelement(0, "i", 11);
|
|
8981
8999
|
} if (rf & 2) {
|
|
@@ -9025,12 +9043,12 @@ function DrDropdownComponent_dr_dropdown_item_4_ng_container_2_Template(rf, ctx)
|
|
|
9025
9043
|
i0.ɵɵadvance(1);
|
|
9026
9044
|
i0.ɵɵproperty("ngIf", ctx_r5.hasChildren(act_r2));
|
|
9027
9045
|
} }
|
|
9028
|
-
const _c1$
|
|
9046
|
+
const _c1$9 = function (a0) { return { $implicit: a0 }; };
|
|
9029
9047
|
function DrDropdownComponent_dr_dropdown_item_4_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
9030
9048
|
i0.ɵɵelementContainer(0, 17);
|
|
9031
9049
|
} if (rf & 2) {
|
|
9032
9050
|
const act_r2 = i0.ɵɵnextContext().$implicit;
|
|
9033
|
-
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));
|
|
9034
9052
|
} }
|
|
9035
9053
|
const _c2$1 = function () { return { withoutArrow: true }; };
|
|
9036
9054
|
function DrDropdownComponent_dr_dropdown_item_4_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -9171,7 +9189,7 @@ class DrDropdownComponent {
|
|
|
9171
9189
|
}
|
|
9172
9190
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownComponent_Factory(t) { return new (t || DrDropdownComponent)(); }; }
|
|
9173
9191
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownComponent, selectors: [["dr-dropdown"]], viewQuery: function DrDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9174
|
-
i0.ɵɵviewQuery(_c0$
|
|
9192
|
+
i0.ɵɵviewQuery(_c0$h, 7);
|
|
9175
9193
|
} if (rf & 2) {
|
|
9176
9194
|
let _t;
|
|
9177
9195
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuContainer = _t.first);
|
|
@@ -9410,12 +9428,12 @@ class DrDropdownChildDirective {
|
|
|
9410
9428
|
}]
|
|
9411
9429
|
}], null, null); })();
|
|
9412
9430
|
|
|
9413
|
-
const _c0$
|
|
9414
|
-
const _c1$
|
|
9431
|
+
const _c0$g = [[["", "dropdownItemContent", ""]], [["", "dropdownItemActions", ""]]];
|
|
9432
|
+
const _c1$8 = ["[dropdownItemContent]", "[dropdownItemActions]"];
|
|
9415
9433
|
class DrDropdownItemComponent {
|
|
9416
9434
|
/** @nocollapse */ static { this.ɵfac = function DrDropdownItemComponent_Factory(t) { return new (t || DrDropdownItemComponent)(); }; }
|
|
9417
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrDropdownItemComponent, selectors: [["dr-dropdown-item"]], inputs: { selected: "selected", disabled: "disabled", divider: "divider" }, ngContentSelectors: _c1$
|
|
9418
|
-
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);
|
|
9419
9437
|
i0.ɵɵelementStart(0, "div", 0)(1, "span", 1);
|
|
9420
9438
|
i0.ɵɵprojection(2);
|
|
9421
9439
|
i0.ɵɵelementEnd();
|
|
@@ -9454,7 +9472,7 @@ class DrDropdownItemShowPipe {
|
|
|
9454
9472
|
function DrTabComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
9455
9473
|
i0.ɵɵprojection(0);
|
|
9456
9474
|
} }
|
|
9457
|
-
const _c0$
|
|
9475
|
+
const _c0$f = ["*"];
|
|
9458
9476
|
class DrTabComponent {
|
|
9459
9477
|
constructor() { }
|
|
9460
9478
|
ngOnInit() { }
|
|
@@ -9464,7 +9482,7 @@ class DrTabComponent {
|
|
|
9464
9482
|
} if (rf & 2) {
|
|
9465
9483
|
let _t;
|
|
9466
9484
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentTemplate = _t.first);
|
|
9467
|
-
} }, 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) {
|
|
9468
9486
|
i0.ɵɵprojectionDef();
|
|
9469
9487
|
i0.ɵɵtemplate(0, DrTabComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
9470
9488
|
} }, encapsulation: 2 }); }
|
|
@@ -9739,8 +9757,8 @@ class DrTabsComponent {
|
|
|
9739
9757
|
args: [DrTabComponent]
|
|
9740
9758
|
}] }); })();
|
|
9741
9759
|
|
|
9742
|
-
const _c0$
|
|
9743
|
-
const _c1$
|
|
9760
|
+
const _c0$e = [[["dr-accordion-item"]]];
|
|
9761
|
+
const _c1$7 = ["dr-accordion-item"];
|
|
9744
9762
|
class DrAccordionComponent {
|
|
9745
9763
|
constructor() {
|
|
9746
9764
|
this.openCloseItems = new Subject();
|
|
@@ -9773,8 +9791,8 @@ class DrAccordionComponent {
|
|
|
9773
9791
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionComponent_Factory(t) { return new (t || DrAccordionComponent)(); }; }
|
|
9774
9792
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrAccordionComponent, selectors: [["dr-accordion"]], hostVars: 2, hostBindings: function DrAccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
9775
9793
|
i0.ɵɵclassMap(ctx.theme);
|
|
9776
|
-
} }, inputs: { multi: "multi", theme: "theme" }, ngContentSelectors: _c1$
|
|
9777
|
-
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);
|
|
9778
9796
|
i0.ɵɵprojection(0);
|
|
9779
9797
|
} }, styles: ["[_nghost-%COMP%]{display:block;box-shadow:#2c33491a 0 5px 10px}.borderless[_nghost-%COMP%]{box-shadow:none}"], changeDetection: 0 }); }
|
|
9780
9798
|
}
|
|
@@ -9791,8 +9809,8 @@ class DrAccordionComponent {
|
|
|
9791
9809
|
args: ['class']
|
|
9792
9810
|
}] }); })();
|
|
9793
9811
|
|
|
9794
|
-
const _c0$
|
|
9795
|
-
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"];
|
|
9796
9814
|
class DrAccordionItemComponent {
|
|
9797
9815
|
/**
|
|
9798
9816
|
* Item is collapse (`true` by default)
|
|
@@ -9892,8 +9910,8 @@ class DrAccordionItemComponent {
|
|
|
9892
9910
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemComponent_Factory(t) { return new (t || DrAccordionItemComponent)(i0.ɵɵdirectiveInject(DrAccordionComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
9893
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) {
|
|
9894
9912
|
i0.ɵɵclassProp("collapsed", ctx.collapsed)("expanded", ctx.expanded)("disabled", ctx.disabled);
|
|
9895
|
-
} }, inputs: { collapsed: "collapsed", expanded: "expanded", disabled: "disabled" }, outputs: { collapsedChange: "collapsedChange" }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$
|
|
9896
|
-
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);
|
|
9897
9915
|
i0.ɵɵprojection(0);
|
|
9898
9916
|
i0.ɵɵprojection(1, 1);
|
|
9899
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 }); }
|
|
@@ -9935,8 +9953,8 @@ function DrAccordionItemHeaderComponent_i_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9935
9953
|
i0.ɵɵclassMap("dr-accordion-item-header-icon " + ctx_r0.icon);
|
|
9936
9954
|
i0.ɵɵclassProp("dr-accordion-item-header-icon--additional-padding", ctx_r0.chevronPosition === "left");
|
|
9937
9955
|
} }
|
|
9938
|
-
const _c0$
|
|
9939
|
-
const _c1$
|
|
9956
|
+
const _c0$c = function (a0) { return { rotationDegree: a0 }; };
|
|
9957
|
+
const _c1$5 = function (a0, a1) { return { value: a0, params: a1 }; };
|
|
9940
9958
|
function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
9941
9959
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
9942
9960
|
i0.ɵɵelementStart(0, "i", 2);
|
|
@@ -9945,7 +9963,7 @@ function DrAccordionItemHeaderComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
9945
9963
|
} if (rf & 2) {
|
|
9946
9964
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
9947
9965
|
i0.ɵɵclassMap(ctx_r1.chevronIconClass);
|
|
9948
|
-
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)));
|
|
9949
9967
|
} }
|
|
9950
9968
|
const _c2 = [[["dr-accordion-item-title"]], [["dr-accordion-item-description"]], "*"];
|
|
9951
9969
|
const _c3 = ["dr-accordion-item-title", "dr-accordion-item-description", "*"];
|
|
@@ -10074,8 +10092,8 @@ class DrAccordionItemHeaderComponent {
|
|
|
10074
10092
|
args: ['keydown.enter']
|
|
10075
10093
|
}] }); })();
|
|
10076
10094
|
|
|
10077
|
-
const _c0$
|
|
10078
|
-
const _c1$
|
|
10095
|
+
const _c0$b = function (a0) { return { value: a0 }; };
|
|
10096
|
+
const _c1$4 = ["*"];
|
|
10079
10097
|
const accordionItemBodyTrigger = trigger('accordionItemBody', [
|
|
10080
10098
|
state('collapsed', style({
|
|
10081
10099
|
overflow: 'hidden',
|
|
@@ -10106,13 +10124,13 @@ class DrAccordionItemBodyComponent {
|
|
|
10106
10124
|
this.destroy$.complete();
|
|
10107
10125
|
}
|
|
10108
10126
|
/** @nocollapse */ static { this.ɵfac = function DrAccordionItemBodyComponent_Factory(t) { return new (t || DrAccordionItemBodyComponent)(i0.ɵɵdirectiveInject(DrAccordionItemComponent, 1), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
10109
|
-
/** @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) {
|
|
10110
10128
|
i0.ɵɵprojectionDef();
|
|
10111
10129
|
i0.ɵɵelementStart(0, "div")(1, "div", 0);
|
|
10112
10130
|
i0.ɵɵprojection(2);
|
|
10113
10131
|
i0.ɵɵelementEnd()();
|
|
10114
10132
|
} if (rf & 2) {
|
|
10115
|
-
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$
|
|
10133
|
+
i0.ɵɵproperty("@accordionItemBody", i0.ɵɵpureFunction1(1, _c0$b, ctx.state));
|
|
10116
10134
|
} }, styles: [".item-body[_ngcontent-%COMP%]{flex:1;-ms-flex:1 1 auto;overflow:auto;position:relative}"], data: { animation: [accordionItemBodyTrigger] }, changeDetection: 0 }); }
|
|
10117
10135
|
}
|
|
10118
10136
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrAccordionItemBodyComponent, [{
|
|
@@ -10128,13 +10146,13 @@ class DrAccordionItemBodyComponent {
|
|
|
10128
10146
|
type: Host
|
|
10129
10147
|
}] }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
10130
10148
|
|
|
10131
|
-
const _c0$
|
|
10132
|
-
const _c1$
|
|
10149
|
+
const _c0$a = [[["dr-layout-header"]], [["dr-layout-body"]]];
|
|
10150
|
+
const _c1$3 = ["dr-layout-header", "dr-layout-body"];
|
|
10133
10151
|
class DrLayoutComponent {
|
|
10134
10152
|
constructor() { }
|
|
10135
10153
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutComponent_Factory(t) { return new (t || DrLayoutComponent)(); }; }
|
|
10136
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrLayoutComponent, selectors: [["dr-layout"]], ngContentSelectors: _c1$
|
|
10137
|
-
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);
|
|
10138
10156
|
i0.ɵɵelementStart(0, "div", 0);
|
|
10139
10157
|
i0.ɵɵprojection(1);
|
|
10140
10158
|
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "div", 3);
|
|
@@ -10147,11 +10165,11 @@ class DrLayoutComponent {
|
|
|
10147
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"] }]
|
|
10148
10166
|
}], function () { return []; }, null); })();
|
|
10149
10167
|
|
|
10150
|
-
const _c0$
|
|
10168
|
+
const _c0$9 = ["*"];
|
|
10151
10169
|
class DrLayoutHeaderComponent {
|
|
10152
10170
|
constructor() { }
|
|
10153
10171
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutHeaderComponent_Factory(t) { return new (t || DrLayoutHeaderComponent)(); }; }
|
|
10154
|
-
/** @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) {
|
|
10155
10173
|
i0.ɵɵprojectionDef();
|
|
10156
10174
|
i0.ɵɵelementStart(0, "nav");
|
|
10157
10175
|
i0.ɵɵprojection(1);
|
|
@@ -10170,11 +10188,11 @@ class DrLayoutHeaderComponent {
|
|
|
10170
10188
|
}]
|
|
10171
10189
|
}], function () { return []; }, null); })();
|
|
10172
10190
|
|
|
10173
|
-
const _c0$
|
|
10191
|
+
const _c0$8 = ["*"];
|
|
10174
10192
|
class DrLayoutBodyComponent {
|
|
10175
10193
|
constructor() { }
|
|
10176
10194
|
/** @nocollapse */ static { this.ɵfac = function DrLayoutBodyComponent_Factory(t) { return new (t || DrLayoutBodyComponent)(); }; }
|
|
10177
|
-
/** @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) {
|
|
10178
10196
|
i0.ɵɵprojectionDef();
|
|
10179
10197
|
i0.ɵɵprojection(0);
|
|
10180
10198
|
} }, encapsulation: 2 }); }
|
|
@@ -10196,7 +10214,7 @@ function DrDetailsListComponent_li_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
10196
10214
|
i0.ɵɵadvance(1);
|
|
10197
10215
|
i0.ɵɵtextInterpolate(item_r1);
|
|
10198
10216
|
} }
|
|
10199
|
-
const _c0$
|
|
10217
|
+
const _c0$7 = function (a0) { return { value: a0 }; };
|
|
10200
10218
|
class DrDetailsListComponent {
|
|
10201
10219
|
set items(val) {
|
|
10202
10220
|
if (!val) {
|
|
@@ -10243,7 +10261,7 @@ class DrDetailsListComponent {
|
|
|
10243
10261
|
i0.ɵɵadvance(1);
|
|
10244
10262
|
i0.ɵɵtextInterpolate1(" ", ctx.title, " ");
|
|
10245
10263
|
i0.ɵɵadvance(1);
|
|
10246
|
-
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$
|
|
10264
|
+
i0.ɵɵproperty("@expansionIndicatorList", i0.ɵɵpureFunction1(7, _c0$7, ctx.state));
|
|
10247
10265
|
i0.ɵɵadvance(1);
|
|
10248
10266
|
i0.ɵɵproperty("ngForOf", ctx.list);
|
|
10249
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: [
|
|
@@ -10287,7 +10305,7 @@ class DrDetailsListComponent {
|
|
|
10287
10305
|
type: Input
|
|
10288
10306
|
}] }); })();
|
|
10289
10307
|
|
|
10290
|
-
const _c0$
|
|
10308
|
+
const _c0$6 = ["content"];
|
|
10291
10309
|
function DialogWrapperComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
10292
10310
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
10293
10311
|
i0.ɵɵelementStart(0, "i", 10);
|
|
@@ -10389,7 +10407,7 @@ function DialogWrapperComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
10389
10407
|
i0.ɵɵadvance(1);
|
|
10390
10408
|
i0.ɵɵproperty("ngIf", ctx_r5.dialogData.acceptButton);
|
|
10391
10409
|
} }
|
|
10392
|
-
const _c1$
|
|
10410
|
+
const _c1$2 = function (a0) { return { "flex-position": a0 }; };
|
|
10393
10411
|
class DialogWrapperComponent {
|
|
10394
10412
|
get elementClass() {
|
|
10395
10413
|
return this.dialogData?.theme?.noThemeSizeClass ? null : this.dialogData?.theme?.themeSize || 'medium-modal';
|
|
@@ -10464,7 +10482,7 @@ class DialogWrapperComponent {
|
|
|
10464
10482
|
}
|
|
10465
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)); }; }
|
|
10466
10484
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DialogWrapperComponent, selectors: [["dr-dialog-wrapper"]], viewQuery: function DialogWrapperComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10467
|
-
i0.ɵɵviewQuery(_c0$
|
|
10485
|
+
i0.ɵɵviewQuery(_c0$6, 5, ViewContainerRef);
|
|
10468
10486
|
} if (rf & 2) {
|
|
10469
10487
|
let _t;
|
|
10470
10488
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
|
@@ -10489,7 +10507,7 @@ class DialogWrapperComponent {
|
|
|
10489
10507
|
i0.ɵɵproperty("ngIf", ctx.dialogData.title);
|
|
10490
10508
|
i0.ɵɵadvance(1);
|
|
10491
10509
|
i0.ɵɵclassProp("dialog-wrapper__content--no-padding", ctx.dialogData.theme == null ? null : ctx.dialogData.theme.contentNoPadding);
|
|
10492
|
-
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));
|
|
10493
10511
|
i0.ɵɵadvance(1);
|
|
10494
10512
|
i0.ɵɵproperty("ngIf", ctx.dialogData.contentIcon == null ? null : ctx.dialogData.contentIcon.class);
|
|
10495
10513
|
i0.ɵɵadvance(1);
|
|
@@ -10660,8 +10678,8 @@ function DialogModalWrapperComponent_form_7_div_2_label_9_Template(rf, ctx) { if
|
|
|
10660
10678
|
i0.ɵɵadvance(1);
|
|
10661
10679
|
i0.ɵɵtextInterpolate1(" ", ctx_r19.dialogData.serverErrorMessage, " ");
|
|
10662
10680
|
} }
|
|
10663
|
-
const _c0$
|
|
10664
|
-
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 }; };
|
|
10665
10683
|
function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
10666
10684
|
i0.ɵɵelementStart(0, "div", 16);
|
|
10667
10685
|
i0.ɵɵtemplate(1, DialogModalWrapperComponent_form_7_div_2_label_1_Template, 2, 2, "label", 17);
|
|
@@ -10678,11 +10696,11 @@ function DialogModalWrapperComponent_form_7_div_2_Template(rf, ctx) { if (rf & 1
|
|
|
10678
10696
|
const field_r11 = ctx.$implicit;
|
|
10679
10697
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
10680
10698
|
i0.ɵɵclassMap(field_r11.formGroupClass);
|
|
10681
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$
|
|
10699
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c0$5, field_r11.isLabelFullWidth ? "block" : "flex"));
|
|
10682
10700
|
i0.ɵɵadvance(1);
|
|
10683
10701
|
i0.ɵɵproperty("ngIf", field_r11.label && field_r11.type !== ctx_r10.dialogFieldType.CHECKBOX);
|
|
10684
10702
|
i0.ɵɵadvance(1);
|
|
10685
|
-
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));
|
|
10686
10704
|
i0.ɵɵadvance(1);
|
|
10687
10705
|
i0.ɵɵproperty("ngIf", field_r11.type === ctx_r10.dialogFieldType.SELECT);
|
|
10688
10706
|
i0.ɵɵadvance(1);
|
|
@@ -11363,7 +11381,7 @@ function TreeviewItemComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
11363
11381
|
i0.ɵɵadvance(1);
|
|
11364
11382
|
i0.ɵɵproperty("ngForOf", ctx_r2.item.children);
|
|
11365
11383
|
} }
|
|
11366
|
-
const _c0$
|
|
11384
|
+
const _c0$4 = function (a0, a1, a2) { return { item: a0, onCollapseExpand: a1, onCheckedChange: a2 }; };
|
|
11367
11385
|
function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11368
11386
|
i0.ɵɵelementStart(0, "div", 1);
|
|
11369
11387
|
i0.ɵɵtemplate(1, TreeviewItemComponent_div_0_ng_template_1_Template, 0, 0, "ng-template", 2);
|
|
@@ -11372,7 +11390,7 @@ function TreeviewItemComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11372
11390
|
} if (rf & 2) {
|
|
11373
11391
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
11374
11392
|
i0.ɵɵadvance(1);
|
|
11375
|
-
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));
|
|
11376
11394
|
i0.ɵɵadvance(1);
|
|
11377
11395
|
i0.ɵɵproperty("ngIf", !ctx_r0.item.collapsed);
|
|
11378
11396
|
} }
|
|
@@ -12305,6 +12323,267 @@ class DrSpinnerModule {
|
|
|
12305
12323
|
}], null, null); })();
|
|
12306
12324
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrSpinnerModule, { declarations: [DrSpinnerComponent, DrSpinnerDirective], imports: [CommonModule], exports: [DrSpinnerComponent, DrSpinnerDirective] }); })();
|
|
12307
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
|
+
|
|
12308
12587
|
// !!! Please do not use such approach in other places
|
|
12309
12588
|
// Hard fix for 'none' calendar view selection
|
|
12310
12589
|
MatCalendar.prototype.focusActiveCell = function () {
|
|
@@ -12328,6 +12607,8 @@ const components$2 = [
|
|
|
12328
12607
|
DrShowTimeframePipe,
|
|
12329
12608
|
DrSelectAddItemComponent,
|
|
12330
12609
|
DrLinkComponent,
|
|
12610
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
12611
|
+
DrFiscalMonthCalendarHeaderComponent,
|
|
12331
12612
|
];
|
|
12332
12613
|
class DrInputsModule {
|
|
12333
12614
|
/** @nocollapse */ static { this.ɵfac = function DrInputsModule_Factory(t) { return new (t || DrInputsModule)(); }; }
|
|
@@ -12378,7 +12659,9 @@ class DrInputsModule {
|
|
|
12378
12659
|
DrModelDebounceChangeDirective,
|
|
12379
12660
|
DrShowTimeframePipe,
|
|
12380
12661
|
DrSelectAddItemComponent,
|
|
12381
|
-
DrLinkComponent
|
|
12662
|
+
DrLinkComponent,
|
|
12663
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
12664
|
+
DrFiscalMonthCalendarHeaderComponent], imports: [NgxMaskDirective,
|
|
12382
12665
|
FormsModule,
|
|
12383
12666
|
ReactiveFormsModule,
|
|
12384
12667
|
CommonModule,
|
|
@@ -12403,7 +12686,9 @@ class DrInputsModule {
|
|
|
12403
12686
|
DrModelDebounceChangeDirective,
|
|
12404
12687
|
DrShowTimeframePipe,
|
|
12405
12688
|
DrSelectAddItemComponent,
|
|
12406
|
-
DrLinkComponent
|
|
12689
|
+
DrLinkComponent,
|
|
12690
|
+
DrFiscalMonthCalendarPickerComponent,
|
|
12691
|
+
DrFiscalMonthCalendarHeaderComponent] }); })();
|
|
12407
12692
|
|
|
12408
12693
|
const components$1 = [
|
|
12409
12694
|
DateTagComponent,
|