@datarailsshared/datarailsshared 1.4.25-tigers → 1.4.26-tigers
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/bundles/datarailsshared-datarailsshared.umd.js +120 -99
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.26-tigers.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +8 -7
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +17 -10
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.js +15 -14
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +14 -15
- package/esm2015/lib/models/datePicker.js +25 -8
- package/fesm2015/datarailsshared-datarailsshared.js +115 -91
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +4 -3
- package/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.d.ts +3 -3
- package/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.d.ts +7 -6
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +6 -7
- package/lib/models/datePicker.d.ts +21 -5
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.25-tigers.tgz +0 -0
|
@@ -90,7 +90,7 @@ AnyTagComponent.propDecorators = {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
// @ts-ignore
|
|
93
|
-
const moment$
|
|
93
|
+
const moment$8 = require("moment");
|
|
94
94
|
class ForecastTagComponent extends AnyTagComponent {
|
|
95
95
|
constructor() {
|
|
96
96
|
super();
|
|
@@ -111,10 +111,10 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
111
111
|
{ "value": 11, "label": "11+1" }
|
|
112
112
|
];
|
|
113
113
|
this.dateFilter = (date) => {
|
|
114
|
-
const forecastDate = moment$
|
|
114
|
+
const forecastDate = moment$8.unix(date);
|
|
115
115
|
let status = true;
|
|
116
116
|
this.lockedDate.forEach(timestamp => {
|
|
117
|
-
const locked = moment$
|
|
117
|
+
const locked = moment$8.unix(timestamp);
|
|
118
118
|
return status = !(locked.month() === forecastDate.month() && locked.year() === forecastDate.year());
|
|
119
119
|
});
|
|
120
120
|
return status;
|
|
@@ -130,14 +130,14 @@ class ForecastTagComponent extends AnyTagComponent {
|
|
|
130
130
|
this.forecastValue = this.getFiscalMonthFromDate(dateVal, fiscal_year_starts_from) - 1;
|
|
131
131
|
let fiscal_year = this.getFiscalYearFromDate(dateVal, fiscal_year_starts_from, fiscal_year_back);
|
|
132
132
|
console.log("test", dateVal, fiscal_year_starts_from, this.forecastValue, fiscal_year);
|
|
133
|
-
this.dateObj.date = moment$
|
|
133
|
+
this.dateObj.date = moment$8(new Date(fiscal_year, 0, 1)).format("YYYY");
|
|
134
134
|
this.updateLockedDate();
|
|
135
135
|
}
|
|
136
136
|
updateLockedDate() {
|
|
137
137
|
for (let forecastTag of this.forecastTags) {
|
|
138
138
|
forecastTag.disable = false;
|
|
139
139
|
this.lockedDate.forEach(timestamp => {
|
|
140
|
-
const locked = moment$
|
|
140
|
+
const locked = moment$8.unix(timestamp);
|
|
141
141
|
if (locked.month() - 1 === forecastTag.value && +locked.year() + 1 === +this.dateObj.date) {
|
|
142
142
|
forecastTag.disable = true;
|
|
143
143
|
}
|
|
@@ -231,7 +231,7 @@ ForecastTagComponent.propDecorators = {
|
|
|
231
231
|
};
|
|
232
232
|
|
|
233
233
|
// @ts-ignore
|
|
234
|
-
const moment$
|
|
234
|
+
const moment$7 = require("moment");
|
|
235
235
|
const MONTH_FORMATS = {
|
|
236
236
|
parse: {
|
|
237
237
|
dateInput: "DD-MM-YYYY",
|
|
@@ -248,12 +248,12 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
248
248
|
constructor() {
|
|
249
249
|
super();
|
|
250
250
|
this.lockedDate = [];
|
|
251
|
-
this.date = new FormControl(moment$
|
|
251
|
+
this.date = new FormControl(moment$7());
|
|
252
252
|
this.dateFilter = (date) => {
|
|
253
|
-
const calendarDate = moment$
|
|
253
|
+
const calendarDate = moment$7(date);
|
|
254
254
|
let status = true;
|
|
255
255
|
this.lockedDate.forEach(timestamp => {
|
|
256
|
-
const lockDate = moment$
|
|
256
|
+
const lockDate = moment$7.unix(timestamp);
|
|
257
257
|
return status = !(lockDate.year() === calendarDate.year() && lockDate.month() === calendarDate.month());
|
|
258
258
|
});
|
|
259
259
|
return status;
|
|
@@ -261,11 +261,11 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
261
261
|
}
|
|
262
262
|
initDate() {
|
|
263
263
|
if (this.defaultValue) {
|
|
264
|
-
this.dateObj.date = moment$
|
|
265
|
-
this.date = new FormControl(moment$
|
|
264
|
+
this.dateObj.date = moment$7(this.defaultValue * 1000).utc().format("YYYY-MM");
|
|
265
|
+
this.date = new FormControl(moment$7(this.defaultValue * 1000));
|
|
266
266
|
}
|
|
267
267
|
else {
|
|
268
|
-
this.dateObj.date = moment$
|
|
268
|
+
this.dateObj.date = moment$7(new Date()).format("YYYY-MM");
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
initName() {
|
|
@@ -274,7 +274,7 @@ class MonthTagComponent extends AnyTagComponent {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
chosenTagHandler(value) {
|
|
277
|
-
const resultDate = moment$
|
|
277
|
+
const resultDate = moment$7.utc(value);
|
|
278
278
|
resultDate.hour(12);
|
|
279
279
|
const resultTag = {
|
|
280
280
|
name: this.name,
|
|
@@ -312,7 +312,7 @@ MonthTagComponent.propDecorators = {
|
|
|
312
312
|
};
|
|
313
313
|
|
|
314
314
|
// @ts-ignore
|
|
315
|
-
const moment$
|
|
315
|
+
const moment$6 = require("moment");
|
|
316
316
|
class QuarterTagComponent extends AnyTagComponent {
|
|
317
317
|
constructor() {
|
|
318
318
|
super();
|
|
@@ -322,8 +322,8 @@ class QuarterTagComponent extends AnyTagComponent {
|
|
|
322
322
|
this.dateFilter = (date) => {
|
|
323
323
|
let status = true;
|
|
324
324
|
this.lockedDate.forEach(timestamp => {
|
|
325
|
-
const lockDate = moment$
|
|
326
|
-
const quarterDate = moment$
|
|
325
|
+
const lockDate = moment$6.unix(timestamp);
|
|
326
|
+
const quarterDate = moment$6.unix(date.value);
|
|
327
327
|
if (lockDate.year() === quarterDate.year() && lockDate.month() === quarterDate.month()) {
|
|
328
328
|
date.disable = true;
|
|
329
329
|
status = false;
|
|
@@ -354,7 +354,7 @@ class QuarterTagComponent extends AnyTagComponent {
|
|
|
354
354
|
}
|
|
355
355
|
chosenTagHandler(value) {
|
|
356
356
|
const date = new Date(value * 1000);
|
|
357
|
-
const resultDate = moment$
|
|
357
|
+
const resultDate = moment$6.utc(date);
|
|
358
358
|
const resultTag = {
|
|
359
359
|
name: this.name,
|
|
360
360
|
value: parseInt(resultDate.format("X"), 10),
|
|
@@ -411,7 +411,7 @@ QuarterTagComponent.propDecorators = {
|
|
|
411
411
|
};
|
|
412
412
|
|
|
413
413
|
// @ts-ignore
|
|
414
|
-
const moment$
|
|
414
|
+
const moment$5 = require("moment");
|
|
415
415
|
const WEEK_FORMATS = {
|
|
416
416
|
parse: {
|
|
417
417
|
dateInput: "WW-YYYY",
|
|
@@ -428,13 +428,13 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super();
|
|
430
430
|
this.lockedDate = [];
|
|
431
|
-
this.date = new FormControl(moment$
|
|
431
|
+
this.date = new FormControl(moment$5());
|
|
432
432
|
this.selectedValue = "";
|
|
433
433
|
this.dateFilter = (date) => {
|
|
434
|
-
const calendarDate = moment$
|
|
434
|
+
const calendarDate = moment$5(date);
|
|
435
435
|
let status = true;
|
|
436
436
|
this.lockedDate.forEach(timestamp => {
|
|
437
|
-
const lockDate = moment$
|
|
437
|
+
const lockDate = moment$5.unix(timestamp);
|
|
438
438
|
return status = !(lockDate.week() === calendarDate.week() && lockDate.year() === calendarDate.year());
|
|
439
439
|
});
|
|
440
440
|
return status;
|
|
@@ -464,7 +464,7 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
chosenDateHandler(normalizedDay) {
|
|
467
|
-
const date = moment$
|
|
467
|
+
const date = moment$5(normalizedDay).unix();
|
|
468
468
|
this.chosenTagHandler(date);
|
|
469
469
|
}
|
|
470
470
|
chosenTagHandler(value) {
|
|
@@ -476,7 +476,7 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
476
476
|
else {
|
|
477
477
|
date = new Date(value * 1000);
|
|
478
478
|
}
|
|
479
|
-
const resultDate = moment$
|
|
479
|
+
const resultDate = moment$5(date);
|
|
480
480
|
const resultTag = {
|
|
481
481
|
name: this.name,
|
|
482
482
|
value: parseInt(resultDate.format("X"), 10),
|
|
@@ -487,8 +487,8 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
487
487
|
this.dateChange.emit(resultTag);
|
|
488
488
|
}
|
|
489
489
|
getWeekLabel(date) {
|
|
490
|
-
return "W" + this.pad(moment$
|
|
491
|
-
" " + moment$
|
|
490
|
+
return "W" + this.pad(moment$5(date).isoWeek(), 2) +
|
|
491
|
+
" " + moment$5(date).year();
|
|
492
492
|
}
|
|
493
493
|
getUTCTimestamp(date) {
|
|
494
494
|
return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 12, 0, 0, 0);
|
|
@@ -501,7 +501,7 @@ class WeekTagComponent extends AnyTagComponent {
|
|
|
501
501
|
return date;
|
|
502
502
|
}
|
|
503
503
|
getWeekNumberByDate(date) {
|
|
504
|
-
return this.pad(moment$
|
|
504
|
+
return this.pad(moment$5(date).isoWeek(), 2);
|
|
505
505
|
}
|
|
506
506
|
pad(n, width, z = "0") {
|
|
507
507
|
z = z || "0";
|
|
@@ -529,7 +529,7 @@ WeekTagComponent.propDecorators = {
|
|
|
529
529
|
};
|
|
530
530
|
|
|
531
531
|
// @ts-ignore
|
|
532
|
-
const moment$
|
|
532
|
+
const moment$4 = require("moment");
|
|
533
533
|
const YEAR_FORMATS = {
|
|
534
534
|
parse: {
|
|
535
535
|
dateInput: "YYYY",
|
|
@@ -546,12 +546,12 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
546
546
|
constructor() {
|
|
547
547
|
super();
|
|
548
548
|
this.lockedDate = [];
|
|
549
|
-
this.date = new FormControl(moment$
|
|
549
|
+
this.date = new FormControl(moment$4());
|
|
550
550
|
this.dateFilter = (date) => {
|
|
551
|
-
const calendarDateYear = moment$
|
|
551
|
+
const calendarDateYear = moment$4(date).year();
|
|
552
552
|
let status = true;
|
|
553
553
|
this.lockedDate.forEach(timestamp => {
|
|
554
|
-
const lockDate = moment$
|
|
554
|
+
const lockDate = moment$4.unix(timestamp);
|
|
555
555
|
return status = !(lockDate.year() === calendarDateYear);
|
|
556
556
|
});
|
|
557
557
|
return status;
|
|
@@ -559,11 +559,11 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
559
559
|
}
|
|
560
560
|
initDate() {
|
|
561
561
|
if (this.defaultValue) {
|
|
562
|
-
this.dateObj.date = moment$
|
|
563
|
-
this.date = new FormControl(moment$
|
|
562
|
+
this.dateObj.date = moment$4(new Date(this.defaultValue * 1000)).utc().format("YYYY");
|
|
563
|
+
this.date = new FormControl(moment$4(this.defaultValue * 1000));
|
|
564
564
|
}
|
|
565
565
|
else {
|
|
566
|
-
this.dateObj.date = moment$
|
|
566
|
+
this.dateObj.date = moment$4(new Date()).format("YYYY");
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
initName() {
|
|
@@ -573,10 +573,10 @@ class YearTagComponent extends AnyTagComponent {
|
|
|
573
573
|
}
|
|
574
574
|
chosenTagHandler(value) {
|
|
575
575
|
const date = new Date();
|
|
576
|
-
const year = moment$
|
|
576
|
+
const year = moment$4(value).year();
|
|
577
577
|
date.setTime(0);
|
|
578
578
|
date.setFullYear(year, 0, 1);
|
|
579
|
-
const resultDate = moment$
|
|
579
|
+
const resultDate = moment$4.utc(date);
|
|
580
580
|
resultDate.hour(12);
|
|
581
581
|
const resultTag = {
|
|
582
582
|
name: this.name,
|
|
@@ -668,7 +668,7 @@ DrTagComponent.propDecorators = {
|
|
|
668
668
|
tagChange: [{ type: Output }]
|
|
669
669
|
};
|
|
670
670
|
|
|
671
|
-
const moment$
|
|
671
|
+
const moment$3 = momentImported;
|
|
672
672
|
class ListTagComponent {
|
|
673
673
|
constructor() {
|
|
674
674
|
this.defaultValue = "";
|
|
@@ -708,7 +708,7 @@ ListTagComponent.propDecorators = {
|
|
|
708
708
|
};
|
|
709
709
|
|
|
710
710
|
// @ts-ignore
|
|
711
|
-
const moment$
|
|
711
|
+
const moment$2 = require("moment");
|
|
712
712
|
const DAY_FORMATS = {
|
|
713
713
|
parse: {
|
|
714
714
|
dateInput: "DD-MM-YYYY",
|
|
@@ -725,9 +725,9 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
725
725
|
constructor() {
|
|
726
726
|
super();
|
|
727
727
|
this.lockedDate = [];
|
|
728
|
-
this.date = new FormControl(moment$
|
|
728
|
+
this.date = new FormControl(moment$2());
|
|
729
729
|
this.dateFilter = (date) => {
|
|
730
|
-
const calendarDate = moment$
|
|
730
|
+
const calendarDate = moment$2(date).unix();
|
|
731
731
|
let status = true;
|
|
732
732
|
this.lockedDate.forEach(timestamp => {
|
|
733
733
|
return status = !(timestamp === calendarDate);
|
|
@@ -736,10 +736,10 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
736
736
|
};
|
|
737
737
|
}
|
|
738
738
|
initDate() {
|
|
739
|
-
const utcOffsetInMilliseconds = moment$
|
|
740
|
-
this.dateObj.date = moment$
|
|
739
|
+
const utcOffsetInMilliseconds = moment$2().utcOffset() * 60 * 1000;
|
|
740
|
+
this.dateObj.date = moment$2(moment$2().valueOf() + utcOffsetInMilliseconds);
|
|
741
741
|
if (this.defaultValue) {
|
|
742
|
-
this.dateObj.date = moment$
|
|
742
|
+
this.dateObj.date = moment$2(new Date(this.defaultValue * 1000)).utc();
|
|
743
743
|
this.date.setValue(this.dateObj.date);
|
|
744
744
|
}
|
|
745
745
|
}
|
|
@@ -749,11 +749,11 @@ class DayTagComponent extends AnyTagComponent {
|
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
chosenTagHandler(value) {
|
|
752
|
-
const date = moment$
|
|
752
|
+
const date = moment$2(value).unix();
|
|
753
753
|
const resultTag = {
|
|
754
754
|
name: this.name,
|
|
755
755
|
value: date,
|
|
756
|
-
label: moment$
|
|
756
|
+
label: moment$2.unix(date).format("MM/DD/YYYY"),
|
|
757
757
|
locked: !this.dateFilter(value)
|
|
758
758
|
};
|
|
759
759
|
console.log("resultTag", resultTag);
|
|
@@ -2894,18 +2894,21 @@ DrModelDebounceChangeDirective.propDecorators = {
|
|
|
2894
2894
|
ngModelDebounceChange: [{ type: Output }]
|
|
2895
2895
|
};
|
|
2896
2896
|
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2897
|
+
var DateFromats;
|
|
2898
|
+
(function (DateFromats) {
|
|
2899
|
+
DateFromats["MAT_DEFAULT_DATE_FORMAT"] = "MM/DD/yyyy";
|
|
2900
|
+
DateFromats["DATE_INPUT_FORMAT"] = "YYYY/MM/DD";
|
|
2901
|
+
DateFromats["YEAR_FORMAT"] = "yyyy";
|
|
2902
|
+
DateFromats["MONTH_YEAR_FORMAT"] = "MM/yyyy";
|
|
2903
|
+
DateFromats["QUARTER_FORMAT"] = "Q/yyyy";
|
|
2904
|
+
})(DateFromats || (DateFromats = {}));
|
|
2902
2905
|
class CustomDateFormat {
|
|
2903
2906
|
constructor() {
|
|
2904
2907
|
this._parse = {
|
|
2905
|
-
dateInput: DATE_INPUT_FORMAT
|
|
2908
|
+
dateInput: DateFromats.DATE_INPUT_FORMAT,
|
|
2906
2909
|
};
|
|
2907
2910
|
this._display = {
|
|
2908
|
-
dateInput: DATE_INPUT_FORMAT,
|
|
2911
|
+
dateInput: DateFromats.DATE_INPUT_FORMAT,
|
|
2909
2912
|
monthYearLabel: 'MMM YYYY',
|
|
2910
2913
|
dateA11yLabel: 'LL',
|
|
2911
2914
|
monthYearA11yLabel: 'MMM YYYY',
|
|
@@ -2940,6 +2943,20 @@ var DatePickerPeriodPosition;
|
|
|
2940
2943
|
DatePickerPeriodPosition[DatePickerPeriodPosition["START_OF_PERIOD"] = 2] = "START_OF_PERIOD";
|
|
2941
2944
|
DatePickerPeriodPosition[DatePickerPeriodPosition["DEFAULT"] = 3] = "DEFAULT";
|
|
2942
2945
|
})(DatePickerPeriodPosition || (DatePickerPeriodPosition = {}));
|
|
2946
|
+
var TimeframeOption;
|
|
2947
|
+
(function (TimeframeOption) {
|
|
2948
|
+
TimeframeOption["DAY"] = "day";
|
|
2949
|
+
TimeframeOption["MONTH"] = "month";
|
|
2950
|
+
TimeframeOption["QUARTER"] = "quarter";
|
|
2951
|
+
TimeframeOption["YEAR"] = "year";
|
|
2952
|
+
})(TimeframeOption || (TimeframeOption = {}));
|
|
2953
|
+
var CalendarView;
|
|
2954
|
+
(function (CalendarView) {
|
|
2955
|
+
CalendarView["FOR_DAYS"] = "month";
|
|
2956
|
+
CalendarView["FOR_MONTHS"] = "year";
|
|
2957
|
+
CalendarView["FOR_QUARTERS"] = "none";
|
|
2958
|
+
CalendarView["FOR_YEARS"] = "multi-year";
|
|
2959
|
+
})(CalendarView || (CalendarView = {}));
|
|
2943
2960
|
|
|
2944
2961
|
const components$2 = [DateTagComponent,
|
|
2945
2962
|
DayTagComponent,
|
|
@@ -3012,38 +3029,37 @@ DrTagModule.decorators = [
|
|
|
3012
3029
|
},] }
|
|
3013
3030
|
];
|
|
3014
3031
|
|
|
3015
|
-
const moment$2 = require('moment');
|
|
3016
3032
|
class DrDatePickerService {
|
|
3017
3033
|
constructor() {
|
|
3018
3034
|
this.isTimeframeSelectionEnabled = false;
|
|
3019
|
-
this.timeframe =
|
|
3020
|
-
this.format$ = new BehaviorSubject(MAT_DEFAULT_DATE_FORMAT);
|
|
3035
|
+
this.timeframe = TimeframeOption.DAY;
|
|
3036
|
+
this.format$ = new BehaviorSubject(DateFromats.MAT_DEFAULT_DATE_FORMAT);
|
|
3021
3037
|
this.updatedQuarter$ = new Subject();
|
|
3022
3038
|
this.formatConfig = {
|
|
3023
|
-
day: MAT_DEFAULT_DATE_FORMAT,
|
|
3024
|
-
month: MONTH_YEAR_FORMAT,
|
|
3025
|
-
year: YEAR_FORMAT,
|
|
3026
|
-
quarter: QUARTER_FORMAT,
|
|
3039
|
+
day: DateFromats.MAT_DEFAULT_DATE_FORMAT,
|
|
3040
|
+
month: DateFromats.MONTH_YEAR_FORMAT,
|
|
3041
|
+
year: DateFromats.YEAR_FORMAT,
|
|
3042
|
+
quarter: DateFromats.QUARTER_FORMAT,
|
|
3027
3043
|
};
|
|
3028
3044
|
}
|
|
3029
3045
|
getQuarterDisplay(value) {
|
|
3030
|
-
return 'Q' +
|
|
3046
|
+
return 'Q' + value.quarter() + this.format$.getValue().charAt(1) + value.year();
|
|
3031
3047
|
}
|
|
3032
3048
|
getTimeframe(format) {
|
|
3033
|
-
const defaultFrame =
|
|
3049
|
+
const defaultFrame = TimeframeOption.DAY;
|
|
3034
3050
|
if (!format) {
|
|
3035
3051
|
return defaultFrame;
|
|
3036
3052
|
}
|
|
3037
3053
|
const lowerCaseFormat = format.toLowerCase();
|
|
3038
3054
|
switch (true) {
|
|
3039
3055
|
case lowerCaseFormat.includes('q'):
|
|
3040
|
-
return
|
|
3056
|
+
return TimeframeOption.QUARTER;
|
|
3041
3057
|
case lowerCaseFormat.includes('d'):
|
|
3042
|
-
return
|
|
3058
|
+
return TimeframeOption.DAY;
|
|
3043
3059
|
case lowerCaseFormat.includes('m'):
|
|
3044
|
-
return
|
|
3060
|
+
return TimeframeOption.MONTH;
|
|
3045
3061
|
case lowerCaseFormat.includes('y'):
|
|
3046
|
-
return
|
|
3062
|
+
return TimeframeOption.YEAR;
|
|
3047
3063
|
default:
|
|
3048
3064
|
return defaultFrame;
|
|
3049
3065
|
}
|
|
@@ -3077,24 +3093,24 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
3077
3093
|
this.selectedQuarter = 1;
|
|
3078
3094
|
this.timeframeOptions = [{
|
|
3079
3095
|
title: 'Day',
|
|
3080
|
-
value:
|
|
3096
|
+
value: CalendarView.FOR_DAYS,
|
|
3081
3097
|
format: this.datePickerService.formatConfig.day,
|
|
3082
3098
|
periodLabel: () => this._dateAdapter
|
|
3083
3099
|
.format(this._calendar.activeDate, this._dateFormats.display.monthYearLabel)
|
|
3084
3100
|
.toLocaleUpperCase()
|
|
3085
3101
|
}, {
|
|
3086
3102
|
title: 'Month',
|
|
3087
|
-
value:
|
|
3103
|
+
value: CalendarView.FOR_MONTHS,
|
|
3088
3104
|
format: this.datePickerService.formatConfig.month,
|
|
3089
3105
|
periodLabel: () => String(moment$1(this._calendar.activeDate).year())
|
|
3090
3106
|
}, {
|
|
3091
3107
|
title: 'Quarter',
|
|
3092
|
-
value:
|
|
3108
|
+
value: CalendarView.FOR_QUARTERS,
|
|
3093
3109
|
format: this.datePickerService.formatConfig.quarter,
|
|
3094
3110
|
periodLabel: () => String(moment$1(this._calendar.activeDate).year())
|
|
3095
3111
|
}, {
|
|
3096
3112
|
title: 'Year',
|
|
3097
|
-
value:
|
|
3113
|
+
value: CalendarView.FOR_YEARS,
|
|
3098
3114
|
format: this.datePickerService.formatConfig.year,
|
|
3099
3115
|
periodLabel: () => {
|
|
3100
3116
|
const currentYear = moment$1(this._calendar.activeDate).year();
|
|
@@ -3103,15 +3119,16 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
3103
3119
|
}
|
|
3104
3120
|
}];
|
|
3105
3121
|
this.pagingSetup = {
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3122
|
+
[CalendarView.FOR_MONTHS]: (forward) => this.pagingDateChange('addCalendarYears', 1, forward),
|
|
3123
|
+
[CalendarView.FOR_QUARTERS]: (forward) => this.pagingDateChange('addCalendarYears', 1, forward),
|
|
3124
|
+
[CalendarView.FOR_DAYS]: (forward) => this.pagingDateChange('addCalendarMonths', 1, forward),
|
|
3125
|
+
[CalendarView.FOR_YEARS]: (forward) => this.pagingDateChange('addCalendarYears', 24, forward)
|
|
3110
3126
|
};
|
|
3111
|
-
this.selectedTimeframe =
|
|
3127
|
+
this.selectedTimeframe = CalendarView.FOR_DAYS;
|
|
3112
3128
|
this.timeframeSelection = false;
|
|
3113
3129
|
this.periodMonthLabel = '';
|
|
3114
3130
|
this.periodYearLabel = '';
|
|
3131
|
+
this.calendarView = CalendarView;
|
|
3115
3132
|
_calendar.stateChanges.pipe(takeUntil(this._destroyed)).subscribe(() => this.setPeriodLabels());
|
|
3116
3133
|
this.datePickerService.format$
|
|
3117
3134
|
.pipe(take(1))
|
|
@@ -3143,12 +3160,12 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
3143
3160
|
this._calendar.currentView = this.selectedTimeframe;
|
|
3144
3161
|
const chosenTimeframeOption = this.timeframeOptions.filter(option => option.value === this.selectedTimeframe)[0];
|
|
3145
3162
|
this.datePickerService.updateTimeframeAndFormat(chosenTimeframeOption.format);
|
|
3146
|
-
if (this.selectedTimeframe
|
|
3163
|
+
if (this.selectedTimeframe === CalendarView.FOR_QUARTERS) {
|
|
3147
3164
|
this.selectedQuarter = moment$1(this._calendar.activeDate).quarter();
|
|
3148
3165
|
}
|
|
3149
3166
|
}
|
|
3150
3167
|
get currentViewIsQuarter() {
|
|
3151
|
-
return ![
|
|
3168
|
+
return ![CalendarView.FOR_DAYS, CalendarView.FOR_MONTHS, CalendarView.FOR_YEARS].includes(this._calendar.currentView);
|
|
3152
3169
|
}
|
|
3153
3170
|
switchViewOnClickOnPeriodLabel(view) {
|
|
3154
3171
|
this._calendar.currentView = view;
|
|
@@ -3172,7 +3189,7 @@ class DrDatePickerCustomHeaderComponent {
|
|
|
3172
3189
|
DrDatePickerCustomHeaderComponent.decorators = [
|
|
3173
3190
|
{ type: Component, args: [{
|
|
3174
3191
|
selector: 'dr-date-picker_custom-header.component',
|
|
3175
|
-
template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [(ngModel)]=\"selectedTimeframe\"\n [items]=\"timeframeOptions\"\n bindLabel=\"title\"\n bindValue=\"value\"\n (ngModelChange)=\"setTimeframe()\">\n </dr-select>\n</div>\n\n<div class=\"dr-date-paging\">\n <div class=\"dr-date-paging flip-page-button\"\n (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(
|
|
3192
|
+
template: "<div *ngIf=\"datePickerService.isTimeframeSelectionEnabled\" class=\"dr-datepicker__timeframe-select__wrapper\">\n <dr-select\n class=\"dr-datepicker__timeframe-select\"\n [(ngModel)]=\"selectedTimeframe\"\n [items]=\"timeframeOptions\"\n bindLabel=\"title\"\n bindValue=\"value\"\n (ngModelChange)=\"setTimeframe()\">\n </dr-select>\n</div>\n\n<div class=\"dr-date-paging\">\n <div class=\"dr-date-paging flip-page-button\"\n (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\"\n (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 *ngFor=\"let quarter of quarters\"\n class=\"quarter-selector\" (click)=\"onSelectQuarter(quarter)\"\n [class]=\"quarter == selectedQuarter ? 'selected' : ''\"\n >Q{{quarter}}</div>\n</div>\n\n",
|
|
3176
3193
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3177
3194
|
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-date-paging{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:16px 8px;grid-gap:4px;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}\n"]
|
|
3178
3195
|
},] }
|
|
@@ -3204,6 +3221,7 @@ class DrDatePickerComponent {
|
|
|
3204
3221
|
};
|
|
3205
3222
|
this.customHeader = DrDatePickerCustomHeaderComponent;
|
|
3206
3223
|
this.readonly = true;
|
|
3224
|
+
this.timeframeOption = TimeframeOption;
|
|
3207
3225
|
this.innerValue = null;
|
|
3208
3226
|
this.destroyed$ = new Subject();
|
|
3209
3227
|
this.onTouchedCallback = noop;
|
|
@@ -3233,8 +3251,8 @@ class DrDatePickerComponent {
|
|
|
3233
3251
|
this.cdr.markForCheck();
|
|
3234
3252
|
}
|
|
3235
3253
|
ngAfterViewInit() {
|
|
3236
|
-
this.datePickerService.calendarInstance = this.
|
|
3237
|
-
this.
|
|
3254
|
+
this.datePickerService.calendarInstance = this.datePicker;
|
|
3255
|
+
this.datePicker.startView = this.calendarViewsTimeframeMapping[this.datePickerService.timeframe];
|
|
3238
3256
|
}
|
|
3239
3257
|
ngOnDestroy() {
|
|
3240
3258
|
this.destroyed$.next();
|
|
@@ -3267,7 +3285,7 @@ class DrDatePickerComponent {
|
|
|
3267
3285
|
chosenPeriodHandler(chosenDate, timeframe) {
|
|
3268
3286
|
if (this.datePickerService.timeframe === timeframe) {
|
|
3269
3287
|
this.setValueFromMoment(chosenDate);
|
|
3270
|
-
this.
|
|
3288
|
+
this.datePicker.close();
|
|
3271
3289
|
}
|
|
3272
3290
|
}
|
|
3273
3291
|
/**
|
|
@@ -3305,7 +3323,7 @@ class DrDatePickerComponent {
|
|
|
3305
3323
|
DrDatePickerComponent.decorators = [
|
|
3306
3324
|
{ type: Component, args: [{
|
|
3307
3325
|
selector: 'dr-date-picker',
|
|
3308
|
-
template: "<i class=\"dr-icon-schedule\"></i>\n<input [(ngModel)]=\"value\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [placeholder]=\"placeholder\"\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\"/>\n<mat-datepicker #datePicker\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event,
|
|
3326
|
+
template: "<i class=\"dr-icon-schedule\"></i>\n<input [(ngModel)]=\"value\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [placeholder]=\"placeholder\"\n [drDatePickerFormat]=\"datePickerService.format$ | async\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\"/>\n<mat-datepicker #datePicker\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH)\">\n</mat-datepicker>\n",
|
|
3309
3327
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3310
3328
|
providers: [
|
|
3311
3329
|
{ provide: NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true },
|
|
@@ -3325,7 +3343,7 @@ DrDatePickerComponent.propDecorators = {
|
|
|
3325
3343
|
max: [{ type: Input }],
|
|
3326
3344
|
periodPosition: [{ type: Input }],
|
|
3327
3345
|
placeholder: [{ type: Input }],
|
|
3328
|
-
|
|
3346
|
+
datePicker: [{ type: ViewChild, args: ['datePicker',] }]
|
|
3329
3347
|
};
|
|
3330
3348
|
|
|
3331
3349
|
class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
@@ -3337,10 +3355,10 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
3337
3355
|
this.isDashboardDatepicker = false;
|
|
3338
3356
|
this.onChangeFormat = new EventEmitter();
|
|
3339
3357
|
this.pagingSetup = {
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3358
|
+
[TimeframeOption.YEAR]: (forward) => this.pagingDateChange('addCalendarYears', 1, forward),
|
|
3359
|
+
[TimeframeOption.QUARTER]: (forward) => this.pagingDateChange('addCalendarMonths', 3, forward),
|
|
3360
|
+
[TimeframeOption.MONTH]: (forward) => this.pagingDateChange('addCalendarMonths', 1, forward),
|
|
3361
|
+
[TimeframeOption.DAY]: (forward) => this.pagingDateChange('addCalendarDays', 1, forward)
|
|
3344
3362
|
};
|
|
3345
3363
|
datePickerService.isTimeframeSelectionEnabled = true;
|
|
3346
3364
|
datePickerService.format$
|
|
@@ -3353,8 +3371,14 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
3353
3371
|
return this.isDashboardDatepicker;
|
|
3354
3372
|
}
|
|
3355
3373
|
;
|
|
3356
|
-
get
|
|
3357
|
-
|
|
3374
|
+
get displayedFormattedValue() {
|
|
3375
|
+
var _a;
|
|
3376
|
+
if (!this.value) {
|
|
3377
|
+
return this.placeholder;
|
|
3378
|
+
}
|
|
3379
|
+
return ((_a = this.datePickerService.format$.getValue()) === null || _a === void 0 ? void 0 : _a.includes('Q'))
|
|
3380
|
+
? this.datePickerService.getQuarterDisplay(this.value)
|
|
3381
|
+
: this.value.format(this.datePickerService.format$.getValue());
|
|
3358
3382
|
}
|
|
3359
3383
|
ngOnInit() {
|
|
3360
3384
|
if (this.dateFormatConfig) {
|
|
@@ -3363,7 +3387,7 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
3363
3387
|
}
|
|
3364
3388
|
pagingClicked(forward) {
|
|
3365
3389
|
this.pagingSetup[this.datePickerService.timeframe] && this.pagingSetup[this.datePickerService.timeframe](forward);
|
|
3366
|
-
this.
|
|
3390
|
+
this.datePicker.close();
|
|
3367
3391
|
}
|
|
3368
3392
|
pagingDateChange(actionCall, amount, forward) {
|
|
3369
3393
|
const newValue = this.dateAdapter[actionCall](this.innerValue, forward ? amount : -amount);
|
|
@@ -3373,13 +3397,13 @@ class DrDatePickerWithTimeframeComponent extends DrDatePickerComponent {
|
|
|
3373
3397
|
DrDatePickerWithTimeframeComponent.decorators = [
|
|
3374
3398
|
{ type: Component, args: [{
|
|
3375
3399
|
selector: 'dr-date-picker-with-timeframe',
|
|
3376
|
-
template: "<
|
|
3400
|
+
template: "<dr-button theme=\"icon\" icon=\"dr-icon-arrow-left\" (click)=\"pagingClicked(false)\"></dr-button>\n<div class=\"dr-datepicker-input-container\">\n <i *ngIf=\"isDashboardDatepicker\" class=\"dr-icon-date\"></i>\n <div\n class=\"dr-datepicker-input-container__formatted-value-display\"\n (click)=\"datepickerInput.click()\"\n >\n {{ displayedFormattedValue }}\n </div>\n <input\n #datepickerInput\n [(ngModel)]=\"value\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [readonly]=\"readonly\"\n [min]=\"_min\"\n [max]=\"_max\"\n />\n</div>\n<dr-button theme=\"icon\" icon=\"dr-icon-arrow-right\" (click)=\"pagingClicked(true)\"></dr-button>\n<mat-datepicker #datePicker\n class=\"dr-timeframe-datepicker\"\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH)\">\n</mat-datepicker>\n",
|
|
3377
3401
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3378
3402
|
providers: [
|
|
3379
3403
|
{ provide: NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },
|
|
3380
3404
|
{ provide: DrDatePickerService }
|
|
3381
3405
|
],
|
|
3382
|
-
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 #C3C4CE;border-radius:6px;color:#85889c;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#E5E6EA}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host:after,:host:before{position:absolute;display:flex;border-color:#999999 transparent transparent;color:#999}:host:after{content:\"\";height:0;width:0;border-style:solid;border-width:5px 5px 2.5px;right:11px;top:13px}:host i{position:absolute;color:#999;left:8px;top:3px}: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:#85889c;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}::ng-deep .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .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-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-button-focus-overlay{background:#F3F7FF}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#F3F7FF;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#F3F7FF;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#19181a}::ng-deep .mat-calendar-table-header-divider{display:none}::ng-deep .mat-calendar-body-label{color:#fff;padding:0}:host{border:none;display:flex;align-items:center}:host.dr-date-picker-on-dashboard{width:180px;justify-content:space-between}:host.dr-date-picker-on-dashboard mat-datepicker{position:absolute}:host.dr-date-picker-on-dashboard .dr-
|
|
3406
|
+
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 #C3C4CE;border-radius:6px;color:#85889c;overflow:hidden;outline:none;cursor:pointer}:host:hover{border-color:#85889c}:host:focus-within{border-color:#21b8f1!important;color:#151b3f}:host.disabled{pointer-events:none;border:none;color:#85889c;background:#E5E6EA}:host.ng-valid.ng-dirty{border-color:#03a678}:host.ng-invalid.ng-dirty:not(:focus-within){border-color:#de2833!important}:host.ng-untouched.ng-valid{border-color:#c3c4ce}:host:after,:host:before{position:absolute;display:flex;border-color:#999999 transparent transparent;color:#999}:host:after{content:\"\";height:0;width:0;border-style:solid;border-width:5px 5px 2.5px;right:11px;top:13px}:host i{position:absolute;color:#999;left:8px;top:3px}: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:#85889c;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}::ng-deep .mat-datepicker-content{margin:7px 0;box-shadow:0 4px 8px 1px #00000040;border-radius:12px!important}::ng-deep .mat-datepicker-content button[disabled]{border:inherit;color:inherit;background-color:inherit}::ng-deep .mat-datepicker-content button[disabled]:hover{border:inherit}::ng-deep .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-calendar-body-selected{background-color:#4646ce;color:#f2f2fb;font-weight:600}::ng-deep .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:none}::ng-deep .mat-button-focus-overlay{background:#F3F7FF}::ng-deep .mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:1!important;background:#F3F7FF;transition:opacity .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-controls .mat-calendar-period-button:hover{background:#F3F7FF;transition:background .2s cubic-bezier(.35,0,.25,1)}::ng-deep .mat-calendar-table-header th{font-size:14px;font-weight:600;color:#19181a}::ng-deep .mat-calendar-table-header-divider{display:none}::ng-deep .mat-calendar-body-label{color:#fff;padding:0}:host{border:none;display:flex;align-items:center}:host.dr-date-picker-on-dashboard{width:180px;justify-content:space-between}:host.dr-date-picker-on-dashboard mat-datepicker{position:absolute}: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:90px;height:22px;padding-left:0;text-align:center;line-height:22px;color:#0c142b;-webkit-text-decoration-line:underline;text-decoration-line:underline}:host .dr-datepicker-input-container__formatted-value-display:hover{background-color:#f2f2fb;border-radius:5px;cursor:pointer;-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#4646ce}\n"]
|
|
3383
3407
|
},] }
|
|
3384
3408
|
];
|
|
3385
3409
|
DrDatePickerWithTimeframeComponent.ctorParameters = () => [
|
|
@@ -3617,5 +3641,5 @@ DrAccordionModule.decorators = [
|
|
|
3617
3641
|
* Generated bundle index. Do not edit.
|
|
3618
3642
|
*/
|
|
3619
3643
|
|
|
3620
|
-
export { AnyTagComponent, CheckboxComponent, CustomDateFormat,
|
|
3644
|
+
export { AnyTagComponent, CalendarView, CheckboxComponent, CustomDateFormat, DateFromats, DatePickerPeriodPosition, DateTagComponent, DateTagModule, DayTagComponent, DrAccordionComponent, DrAccordionItemBodyComponent, DrAccordionItemComponent, DrAccordionItemHeaderComponent, DrAccordionModule, DrAvatarComponent, DrAvatarModule, DrAvatarPipe, DrButtonComponent, DrDropdownComponent, DrDropdownDirective, DrDropdownItemShowPipe, DrDropdownModule, DrDropdownPositionDirective, DrDropdownService, DrInputComponent, DrInputsModule, DrModelDebounceChangeDirective, DrPopoverAlignmentDimension, DrPopoverComponent, DrPopoverDirective, DrPopoverModule, DrPopoverRef, DrPopoverService, DrSelectComponent, DrSpinnerComponent, DrSpinnerDirective, DrSpinnerModule, DrTabComponent, DrTabsComponent, DrTabsModule, DrTagComponent, DrTagModule, DrToggleButtonComponent, DrToggleComponent, DrTooltipDirective, DrTooltipModule, ForecastTagComponent, ListTagComponent, ListTagModule, MonthTagComponent, QuarterTagComponent, RadioButtonComponent, RadioGroupComponent, SpinnerSize, SpinnerType, TimeframeOption, TooltipComponent, WeekTagComponent, YearTagComponent, components$2 as ɵa, POPUP_ANIMATION as ɵb, DrDatePickerComponent as ɵc, DrDatePickerService as ɵd, DrDatePickerWithTimeframeComponent as ɵe, DrDatePickerFormatDirective as ɵf, DrDatePickerCustomHeaderComponent as ɵg };
|
|
3621
3645
|
//# sourceMappingURL=datarailsshared-datarailsshared.js.map
|