@datarailsshared/datarailsshared 1.4.111 → 1.4.113

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.
@@ -589,7 +589,7 @@
589
589
  monthYearA11yLabel: 'MMMM YYYY'
590
590
  },
591
591
  };
592
- var ɵ0$7 = MONTH_FORMATS;
592
+ var ɵ0$8 = MONTH_FORMATS;
593
593
  var MonthTagComponent = /** @class */ (function (_super) {
594
594
  __extends(MonthTagComponent, _super);
595
595
  function MonthTagComponent() {
@@ -651,7 +651,7 @@
651
651
  useClass: materialMomentAdapter.MomentDateAdapter,
652
652
  deps: [core.MAT_DATE_LOCALE, materialMomentAdapter.MAT_MOMENT_DATE_ADAPTER_OPTIONS],
653
653
  },
654
- { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$7 },
654
+ { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$8 },
655
655
  ]
656
656
  },] }
657
657
  ];
@@ -787,7 +787,7 @@
787
787
  monthYearA11yLabel: 'MMMM YYYY'
788
788
  },
789
789
  };
790
- var ɵ0$6 = WEEK_FORMATS;
790
+ var ɵ0$7 = WEEK_FORMATS;
791
791
  var WeekTagComponent = /** @class */ (function (_super) {
792
792
  __extends(WeekTagComponent, _super);
793
793
  function WeekTagComponent() {
@@ -887,7 +887,7 @@
887
887
  useClass: materialMomentAdapter.MomentDateAdapter,
888
888
  deps: [core.MAT_DATE_LOCALE, materialMomentAdapter.MAT_MOMENT_DATE_ADAPTER_OPTIONS],
889
889
  },
890
- { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$6 },
890
+ { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$7 },
891
891
  ]
892
892
  },] }
893
893
  ];
@@ -909,7 +909,7 @@
909
909
  monthYearA11yLabel: 'MMMM YYYY'
910
910
  },
911
911
  };
912
- var ɵ0$5 = YEAR_FORMATS;
912
+ var ɵ0$6 = YEAR_FORMATS;
913
913
  var YearTagComponent = /** @class */ (function (_super) {
914
914
  __extends(YearTagComponent, _super);
915
915
  function YearTagComponent() {
@@ -977,7 +977,7 @@
977
977
  useClass: materialMomentAdapter.MomentDateAdapter,
978
978
  deps: [core.MAT_DATE_LOCALE, materialMomentAdapter.MAT_MOMENT_DATE_ADAPTER_OPTIONS],
979
979
  },
980
- { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$5 },
980
+ { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$6 },
981
981
  ]
982
982
  },] }
983
983
  ];
@@ -1093,7 +1093,7 @@
1093
1093
  monthYearA11yLabel: 'MMMM YYYY'
1094
1094
  },
1095
1095
  };
1096
- var ɵ0$4 = DAY_FORMATS;
1096
+ var ɵ0$5 = DAY_FORMATS;
1097
1097
  var DayTagComponent = /** @class */ (function (_super) {
1098
1098
  __extends(DayTagComponent, _super);
1099
1099
  function DayTagComponent() {
@@ -1147,7 +1147,7 @@
1147
1147
  useClass: materialMomentAdapter.MomentDateAdapter,
1148
1148
  deps: [core.MAT_DATE_LOCALE, materialMomentAdapter.MAT_MOMENT_DATE_ADAPTER_OPTIONS],
1149
1149
  },
1150
- { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$4 },
1150
+ { provide: core.MAT_DATE_FORMATS, useValue: ɵ0$5 },
1151
1151
  ]
1152
1152
  },] }
1153
1153
  ];
@@ -2005,27 +2005,42 @@
2005
2005
  unsetMouseOn: [{ type: i0.HostListener, args: ['mouseleave',] }]
2006
2006
  };
2007
2007
 
2008
+ var getOverlayPosition = function (position) { return (Object.assign({}, POPUP_POSITIONS[position])); };
2009
+ var ɵ0$4 = getOverlayPosition;
2008
2010
  var DrTooltipDirective = /** @class */ (function () {
2009
2011
  function DrTooltipDirective(overlay, overlayPositionBuilder, elementRef) {
2010
2012
  this.overlay = overlay;
2011
2013
  this.overlayPositionBuilder = overlayPositionBuilder;
2012
2014
  this.elementRef = elementRef;
2013
2015
  this.contentContext = {};
2014
- this.position = 'top';
2016
+ this._position = 'top';
2015
2017
  this.class = '';
2016
2018
  // is used for preserve tooltip from being hidden for N milliseconds
2017
2019
  this.drTooltipMousleaveTimeout = 0;
2020
+ this.overlayPosition = getOverlayPosition(this.position);
2018
2021
  }
2022
+ Object.defineProperty(DrTooltipDirective.prototype, "position", {
2023
+ get: function () {
2024
+ return this._position;
2025
+ },
2026
+ set: function (value) {
2027
+ this._position = value;
2028
+ this.overlayPosition = getOverlayPosition(value);
2029
+ },
2030
+ enumerable: false,
2031
+ configurable: true
2032
+ });
2019
2033
  Object.defineProperty(DrTooltipDirective.prototype, "drTooltipOptions", {
2020
2034
  set: function (options) {
2021
2035
  if (options === null || options === void 0 ? void 0 : options.indent) {
2022
- var position = POPUP_POSITIONS[this.position];
2023
- if (position.offsetY) {
2036
+ var position = getOverlayPosition(this.position);
2037
+ if (position === null || position === void 0 ? void 0 : position.offsetY) {
2024
2038
  position.offsetY = position.offsetY < 0 ? -options.indent : options.indent;
2025
2039
  }
2026
- if (position.offsetX) {
2040
+ if (position === null || position === void 0 ? void 0 : position.offsetX) {
2027
2041
  position.offsetX = position.offsetX < 0 ? -options.indent : options.indent;
2028
2042
  }
2043
+ this.overlayPosition = position;
2029
2044
  }
2030
2045
  this.options = options;
2031
2046
  },
@@ -2088,7 +2103,7 @@
2088
2103
  }
2089
2104
  };
2090
2105
  DrTooltipDirective.prototype.createOverlay = function () {
2091
- var positionStrategy = this.overlayPositionBuilder.flexibleConnectedTo(this.elementRef).withPositions([POPUP_POSITIONS[this.position]]);
2106
+ var positionStrategy = this.overlayPositionBuilder.flexibleConnectedTo(this.elementRef).withPositions([this.overlayPosition]);
2092
2107
  this.overlayRef = this.overlay.create({ positionStrategy: positionStrategy });
2093
2108
  };
2094
2109
  DrTooltipDirective.prototype.renderTooltip = function () {
@@ -3522,10 +3537,12 @@
3522
3537
  DrLayoutBodyComponent.ctorParameters = function () { return []; };
3523
3538
 
3524
3539
  var DrErrorComponent = /** @class */ (function () {
3525
- function DrErrorComponent(cdr) {
3540
+ function DrErrorComponent(cdr, formGroupDirective) {
3526
3541
  this.cdr = cdr;
3542
+ this.formGroupDirective = formGroupDirective;
3527
3543
  this.destroyed$ = new rxjs.Subject();
3528
3544
  this.label = 'Field error';
3545
+ this.noIcon = false;
3529
3546
  }
3530
3547
  Object.defineProperty(DrErrorComponent.prototype, "control", {
3531
3548
  set: function (value) {
@@ -3541,6 +3558,18 @@
3541
3558
  enumerable: false,
3542
3559
  configurable: true
3543
3560
  });
3561
+ Object.defineProperty(DrErrorComponent.prototype, "controlName", {
3562
+ set: function (value) {
3563
+ if (!value || typeof value !== 'string')
3564
+ return;
3565
+ if (!this.formGroupDirective) {
3566
+ throw new Error('You must provide a formGroupDirective to use this input');
3567
+ }
3568
+ this.control = this.formGroupDirective.control.get(value);
3569
+ },
3570
+ enumerable: false,
3571
+ configurable: true
3572
+ });
3544
3573
  Object.defineProperty(DrErrorComponent.prototype, "errorString", {
3545
3574
  get: function () {
3546
3575
  var _a;
@@ -3568,18 +3597,21 @@
3568
3597
  }());
3569
3598
  DrErrorComponent.decorators = [
3570
3599
  { type: i0.Component, args: [{
3571
- template: "<div *ngIf=\"_control.status === 'INVALID' && !_control.pristine\"\n [drTooltip]=\"errorString\"\n class=\"error-container\"\n [class.warning]=\"isWarning\">\n <i class=\"dr-icon-status-error\"></i>\n <span>{{label}}</span>\n</div>\n",
3600
+ template: "<div *ngIf=\"_control.status === 'INVALID' && !_control.pristine\"\n [drTooltip]=\"errorString\"\n class=\"error-container\"\n [class.warning]=\"isWarning\">\n <i *ngIf=\"!noIcon\" class=\"dr-icon-status-error\"></i>\n <span>{{label}}</span>\n</div>\n",
3572
3601
  selector: 'dr-error',
3573
3602
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
3574
- styles: [":host{display:flex;margin-top:8px}:host:empty{display:none}:host .error-container{display:flex;align-items:center;cursor:pointer;width:auto;color:#bf1d30}:host .error-container i{font-size:16px;margin-right:2px}:host .error-container span{font-family:\"Poppins\",sans-serif;font-style:normal;font-weight:400;font-size:11px;line-height:20px}:host .error-container.warning{color:#ffb800}:host .error-container.warning span{color:#9e5f00}\n"]
3603
+ styles: [":host{display:flex;margin-top:8px}:host:empty{display:none}:host .error-container{display:flex;align-items:center;cursor:pointer;width:auto;color:#bf1d30}:host .error-container i{font-size:16px;margin-right:2px}:host .error-container span{font-family:\"Poppins\",sans-serif;font-style:normal;font-weight:400;font-size:11px;line-height:20px}:host .error-container.warning{color:#ffb800}:host .error-container.warning span{color:#9e5f00}:host.no-icon{margin-top:2px}:host.no-icon .error-container span{font-size:12px}\n"]
3575
3604
  },] }
3576
3605
  ];
3577
3606
  DrErrorComponent.ctorParameters = function () { return [
3578
- { type: i0.ChangeDetectorRef }
3607
+ { type: i0.ChangeDetectorRef },
3608
+ { type: forms.FormGroupDirective, decorators: [{ type: i0.Optional }] }
3579
3609
  ]; };
3580
3610
  DrErrorComponent.propDecorators = {
3581
3611
  control: [{ type: i0.Input }],
3582
- label: [{ type: i0.Input }]
3612
+ controlName: [{ type: i0.Input }],
3613
+ label: [{ type: i0.Input }],
3614
+ noIcon: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.no-icon',] }]
3583
3615
  };
3584
3616
 
3585
3617
  var DialogWrapperComponent = /** @class */ (function () {
@@ -3652,7 +3684,7 @@
3652
3684
  { type: i0.Component, args: [{
3653
3685
  selector: 'dr-dialog-wrapper',
3654
3686
  template: "<div class=\"dialog-wrapper\"\n [class.dialog-wrapper--confirmation-no-title]=\"dialogData.theme?.isConfirmation && !dialogData.title\">\n <i class=\"dr-icon-exit\" data-test=\"close_btn\" (click)=\"closeDialog()\" *ngIf=\"!dialogData?.hideCloseBtn\"></i>\n\n <div header class=\"dialog-wrapper__header\" *ngIf=\"dialogData.title\">\n <h1 class=\"dialog-wrapper__header__title\" data-test=\"dialogTitle\">{{ dialogData.title }}</h1>\n <h1 class=\"dialog-wrapper__header__subtitle\" data-test=\"dialogSubtitle\"\n *ngIf=\"dialogData.subtitle\">{{ dialogData.subtitle }}</h1>\n </div>\n <div class=\"dialog-wrapper__content\"\n [class.dialog-wrapper__content--no-padding]=\"dialogData.theme?.contentNoPadding\"\n [ngClass]=\"{ 'flex-position': dialogData.contentIcon?.class && !childComponent }\">\n <span *ngIf=\"dialogData.contentIcon?.class\" class=\"dialog-wrapper__content__icon\">\n <i [ngClass]=\"dialogData.contentIcon.class\" [style.color]=\"dialogData.contentIcon?.color || 'inherit'\"></i>\n </span>\n <span [innerHTML]=\"dialogData.content\"></span>\n <span #content class=\"dialog-wrapper__content__anchor\"> </span>\n </div>\n <div footer class=\"dialog-wrapper__footer\" *ngIf=\"dialogData.cancelButton || dialogData.acceptButton\">\n <div class=\"dialog-wrapper__footer__buttons\">\n <span *ngIf=\"dialogData.customButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.customButton.isDisabled && dialogData.tooltips?.customDisabled\">\n <dr-button (click)=\"onDecline()\"\n [theme]=\"'secondary'\"\n [isLoading]=\"isLoading\"\n data-test=\"declineBtn\"\n [disabled]=\"dialogData.customButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.custom\">{{ dialogData.customButton.label }}</dr-button>\n </span>\n <span *ngIf=\"dialogData.cancelButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.cancelButton.isDisabled && dialogData.tooltips?.cancelDisabled\">\n <dr-button (click)=\"closeDialog()\"\n [theme]=\"'secondary'\"\n data-test=\"closeBtn\"\n [disabled]=\"dialogData.cancelButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.cancel\">{{ dialogData.cancelButton.label }}</dr-button>\n </span>\n <span *ngIf=\"dialogData.acceptButton\"\n class=\"dialog-wrapper__footer__button-wrapper\"\n [drTooltip]=\"dialogData.acceptButton.isDisabled && dialogData.tooltips?.acceptDisabled\">\n <dr-button (click)=\"onAcceptDialog()\"\n [theme]=\"dialogData.acceptButton?.theme || 'primary'\"\n [isLoading]=\"isLoading\"\n data-test=\"acceptBtn\"\n [disabled]=\"dialogData.acceptButton.isDisabled\"\n [drTooltip]=\"dialogData.tooltips?.accept\">{{ dialogData.acceptButton.label }}</dr-button>\n </span>\n </div>\n </div>\n</div>\n",
3655
- styles: [":host.small-modal{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.large-modal{min-width:750px;max-width:750px}:host.medium-large-modal{min-width:669px;max-width:669px}:host.xl-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:1100px}:host.xl-custom-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:100%}::ng-deep .dialog-wrapper{display:flex;justify-content:space-between;flex-direction:column;position:relative}::ng-deep .dialog-wrapper>.dr-icon-exit{z-index:1;position:absolute;right:32px;top:20px;color:#51566f;cursor:pointer}::ng-deep .dialog-wrapper__header{display:flex;flex-direction:column;padding:8px 52px 8px 32px;border-bottom:1px solid #e5e6ea}::ng-deep .dialog-wrapper__header__title{color:#151b3f;position:static;font-weight:600;font-size:18px;line-height:24px}::ng-deep .dialog-wrapper__header__subtitle{font-size:14px;line-height:20px;margin:0}::ng-deep .dialog-wrapper--confirmation-no-title{padding-top:16px;height:100%}::ng-deep .dialog-wrapper__content{overflow-y:inherit;font-size:14px;font-weight:400;line-height:22px;padding:24px 32px 32px}::ng-deep .dialog-wrapper__content__anchor{display:none}::ng-deep .dialog-wrapper__content--no-padding{padding:0}::ng-deep .dialog-wrapper__content__icon{margin-right:10px;top:5px;position:relative}::ng-deep .dialog-wrapper__content.flex-position{display:flex}::ng-deep .dialog-wrapper__footer{border-top:1px solid #e5e6ea}::ng-deep .dialog-wrapper__footer__buttons{display:flex;justify-content:flex-end;padding-top:10px;padding-right:32px;padding-bottom:11px}::ng-deep .dialog-wrapper__footer__button-wrapper:nth-child(n+2){margin-left:12px}\n"]
3687
+ styles: [":host.small-modal{min-height:188px;max-height:467px;min-width:400px;max-width:400px}:host.medium-modal{min-height:188px;max-height:467px;min-width:632px;max-width:632px}:host.large-modal{min-width:750px;max-width:750px}:host.medium-large-modal{min-width:669px;max-width:669px}:host.xl-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:1100px}:host.xl-custom-modal{min-height:188px;max-height:800px;min-width:1100px;max-width:100%}::ng-deep .dialog-wrapper{display:flex;justify-content:space-between;flex-direction:column;position:relative}::ng-deep .dialog-wrapper>.dr-icon-exit{z-index:1;position:absolute;right:32px;top:20px;color:#51566f;cursor:pointer}::ng-deep .dialog-wrapper__header{display:flex;flex-direction:column;padding:8px 52px 8px 32px;border-bottom:1px solid #e5e6ea}::ng-deep .dialog-wrapper__header__title{color:#151b3f;position:static;font-weight:600;font-size:18px;line-height:24px}::ng-deep .dialog-wrapper__header__subtitle{font-size:14px;line-height:20px;margin:0}::ng-deep .dialog-wrapper--confirmation-no-title{padding-top:16px;height:100%}::ng-deep .dialog-wrapper__content{overflow-y:inherit;font-size:14px;font-weight:400;line-height:22px;padding:24px 32px 32px}::ng-deep .dialog-wrapper__content__anchor{display:none}::ng-deep .dialog-wrapper__content--no-padding{padding:0}::ng-deep .dialog-wrapper__content__icon{margin-right:10px;top:5px;position:relative}::ng-deep .dialog-wrapper__content.flex-position{display:flex}::ng-deep .dialog-wrapper__footer{border-top:1px solid #e5e6ea}::ng-deep .dialog-wrapper__footer__buttons{display:flex;justify-content:flex-end;padding:11px 32px}::ng-deep .dialog-wrapper__footer__buttons>dr-button:nth-child(n+2){margin-left:12px}::ng-deep .dialog-wrapper__footer__button-wrapper:nth-child(n+2){margin-left:12px}\n"]
3656
3688
  },] }
3657
3689
  ];
3658
3690
  DialogWrapperComponent.ctorParameters = function () { return [
@@ -4598,7 +4630,7 @@
4598
4630
  var DrDatePickerWithTimeframeComponent = /** @class */ (function (_super) {
4599
4631
  __extends(DrDatePickerWithTimeframeComponent, _super);
4600
4632
  function DrDatePickerWithTimeframeComponent(cdr, dateAdapter, datePickerService) {
4601
- var _a;
4633
+ var _c;
4602
4634
  var _this = _super.call(this, cdr, dateAdapter, datePickerService) || this;
4603
4635
  _this.cdr = cdr;
4604
4636
  _this.dateAdapter = dateAdapter;
@@ -4607,13 +4639,15 @@
4607
4639
  _this.canSelectTimeframe = true;
4608
4640
  // eslint-disable-next-line
4609
4641
  _this.onChangeFormat = new i0.EventEmitter();
4610
- _this.pagingSetup = (_a = {},
4611
- _a[exports.TimeframeOption.YEAR] = function (forward) { return _this.pagingDateChange('addCalendarYears', 1, forward); },
4612
- _a[exports.TimeframeOption.QUARTER] = function (forward) { return _this.pagingDateChange('addCalendarMonths', 3, forward); },
4613
- _a[exports.TimeframeOption.MONTH] = function (forward) { return _this.pagingDateChange('addCalendarMonths', 1, forward); },
4614
- _a[exports.TimeframeOption.DAY] = function (forward) { return _this.pagingDateChange('addCalendarDays', 1, forward); },
4615
- _a[exports.TimeframeOption.WEEK] = function (forward) { return _this.pagingDateChange('addCalendarDays', 7, forward); },
4616
- _a);
4642
+ _this.pagingSetup = (_c = {},
4643
+ _c[exports.TimeframeOption.YEAR] = function (forward) { return _this.getNextDate('addCalendarYears', 1, forward); },
4644
+ _c[exports.TimeframeOption.QUARTER] = function (forward) { return _this.getNextDate('addCalendarMonths', 3, forward); },
4645
+ _c[exports.TimeframeOption.MONTH] = function (forward) { return _this.getNextDate('addCalendarMonths', 1, forward); },
4646
+ _c[exports.TimeframeOption.DAY] = function (forward) { return _this.getNextDate('addCalendarDays', 1, forward); },
4647
+ _c[exports.TimeframeOption.WEEK] = function (forward) { return _this.getNextDate('addCalendarDays', 7, forward); },
4648
+ _c);
4649
+ _this.isNextDateDisabled = false;
4650
+ _this.isPrevDateDisabled = false;
4617
4651
  _this.onChangeDebounced$ = new rxjs.Subject();
4618
4652
  datePickerService.isTimeframeSelectionEnabled = true;
4619
4653
  datePickerService.format$.pipe(operators.takeUntil(_this.destroyed$)).subscribe(function (value) {
@@ -4675,12 +4709,12 @@
4675
4709
  };
4676
4710
  DrDatePickerWithTimeframeComponent.prototype.pagingClicked = function (forward) {
4677
4711
  if (this.pagingSetup[this.datePickerService.timeframe]) {
4678
- this.pagingSetup[this.datePickerService.timeframe](forward);
4712
+ var nextValue = this.pagingSetup[this.datePickerService.timeframe](forward);
4713
+ this.pagingDateChange(nextValue);
4679
4714
  }
4680
4715
  this.datePicker.close();
4681
4716
  };
4682
- DrDatePickerWithTimeframeComponent.prototype.pagingDateChange = function (actionCall, amount, forward) {
4683
- var newValue = this.dateAdapter[actionCall](this.innerValue, forward ? amount : -amount);
4717
+ DrDatePickerWithTimeframeComponent.prototype.pagingDateChange = function (newValue) {
4684
4718
  if (this.paginationDebounce) {
4685
4719
  // this is required for not sending extra requests when user quickly clicking on pagination
4686
4720
  // here we do the same as in setValueFromMoment(newValue) with difference
@@ -4693,12 +4727,30 @@
4693
4727
  this.setValueFromMoment(newValue);
4694
4728
  }
4695
4729
  };
4730
+ DrDatePickerWithTimeframeComponent.prototype.writeValue = function (value) {
4731
+ _super.prototype.writeValue.call(this, value);
4732
+ if (!value)
4733
+ return;
4734
+ this.restrictPagination();
4735
+ };
4736
+ DrDatePickerWithTimeframeComponent.prototype.getNextDate = function (actionCall, amount, forward) {
4737
+ var _a, _b;
4738
+ return (_b = (_a = this.dateAdapter)[actionCall]) === null || _b === void 0 ? void 0 : _b.call(_a, this.innerValue, forward ? amount : -amount);
4739
+ };
4740
+ DrDatePickerWithTimeframeComponent.prototype.restrictPagination = function () {
4741
+ if (!this._min && !this._max)
4742
+ return;
4743
+ var nextValue = this.pagingSetup[this.datePickerService.timeframe](true);
4744
+ var prevValue = this.pagingSetup[this.datePickerService.timeframe](false);
4745
+ this.isNextDateDisabled = this._max && nextValue && nextValue.unix() > this._max.unix();
4746
+ this.isPrevDateDisabled = this._min && prevValue && prevValue.unix() < this._min.unix();
4747
+ };
4696
4748
  return DrDatePickerWithTimeframeComponent;
4697
4749
  }(DrDatePickerComponent));
4698
4750
  DrDatePickerWithTimeframeComponent.decorators = [
4699
4751
  { type: i0.Component, args: [{
4700
4752
  selector: 'dr-date-picker-with-timeframe',
4701
- 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",
4753
+ template: "<dr-button [disabled]=\"isPrevDateDisabled\" 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 [disabled]=\"isNextDateDisabled\" 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",
4702
4754
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4703
4755
  providers: [
4704
4756
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerWithTimeframeComponent, multi: true },