@datarailsshared/datarailsshared 1.4.161-rocket → 1.4.162-rocket

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.
@@ -1501,7 +1501,7 @@
1501
1501
 
1502
1502
  // @ts-ignore
1503
1503
  var moment$2 = require('moment');
1504
- var DAY_FORMATS = {
1504
+ var DAY_FORMATS$1 = {
1505
1505
  parse: {
1506
1506
  dateInput: 'DD-MM-YYYY',
1507
1507
  },
@@ -1512,7 +1512,7 @@
1512
1512
  monthYearA11yLabel: 'MMMM YYYY'
1513
1513
  },
1514
1514
  };
1515
- var ɵ0$4 = DAY_FORMATS;
1515
+ var ɵ0$4 = DAY_FORMATS$1;
1516
1516
  var DayTagComponent = /** @class */ (function (_super) {
1517
1517
  __extends(DayTagComponent, _super);
1518
1518
  function DayTagComponent() {
@@ -4633,6 +4633,18 @@
4633
4633
  var noop = function () {
4634
4634
  };
4635
4635
  var ɵ0$2 = noop;
4636
+ var DAY_FORMATS = {
4637
+ parse: {
4638
+ dateInput: 'DD-MM-YYYY',
4639
+ },
4640
+ display: {
4641
+ dateInput: 'DD.MM.YYYY',
4642
+ monthYearLabel: 'MMMM YYYY',
4643
+ dateA11yLabel: 'LL',
4644
+ monthYearA11yLabel: 'MMMM YYYY'
4645
+ },
4646
+ };
4647
+ var ɵ1$1 = DAY_FORMATS;
4636
4648
  var DrDatePickerComponent = /** @class */ (function () {
4637
4649
  function DrDatePickerComponent(cdr, dateAdapter, datePickerService) {
4638
4650
  var _this = this;
@@ -4826,6 +4838,12 @@
4826
4838
  template: "<i class=\"dr-icon-schedule\"></i>\n<input [(ngModel)]=\"value\"\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<mat-datepicker #datePicker\n [calendarHeaderComponent]=\"customHeader\"\n (yearSelected)=\"chosenPeriodHandler($event, timeframeOption.YEAR)\"\n (monthSelected)=\"chosenPeriodHandler($event, timeframeOption.MONTH)\">\n</mat-datepicker>\n",
4827
4839
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4828
4840
  providers: [
4841
+ {
4842
+ provide: core.DateAdapter,
4843
+ useClass: materialMomentAdapter.MomentDateAdapter,
4844
+ deps: [core.MAT_DATE_LOCALE, materialMomentAdapter.MAT_MOMENT_DATE_ADAPTER_OPTIONS],
4845
+ },
4846
+ { provide: core.MAT_DATE_FORMATS, useValue: ɵ1$1 },
4829
4847
  { provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true },
4830
4848
  { provide: DrDatePickerService }
4831
4849
  ],