@datarailsshared/datarailsshared 1.4.130-rocket → 1.4.131
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 +14 -23
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.131.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 +9 -17
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +7 -8
- package/fesm2015/datarailsshared-datarailsshared.js +14 -22
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +12 -12
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +12 -11
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.130-rocket.tgz +0 -0
|
@@ -4169,7 +4169,6 @@
|
|
|
4169
4169
|
return DrSharedUtils;
|
|
4170
4170
|
}());
|
|
4171
4171
|
|
|
4172
|
-
// @ts-ignore
|
|
4173
4172
|
var moment$2 = require('moment');
|
|
4174
4173
|
var DrDatePickerService = /** @class */ (function () {
|
|
4175
4174
|
function DrDatePickerService() {
|
|
@@ -4339,9 +4338,11 @@
|
|
|
4339
4338
|
DrDatePickerService.prototype.selectDateInCalendarMonthView = function (date, calender) {
|
|
4340
4339
|
setTimeout(function () {
|
|
4341
4340
|
var monthView = calender.monthView;
|
|
4342
|
-
monthView
|
|
4343
|
-
|
|
4344
|
-
|
|
4341
|
+
if (monthView) {
|
|
4342
|
+
monthView._activeDate = date;
|
|
4343
|
+
monthView._selected = date;
|
|
4344
|
+
monthView._init();
|
|
4345
|
+
}
|
|
4345
4346
|
});
|
|
4346
4347
|
};
|
|
4347
4348
|
DrDatePickerService.prototype.resetPresetTag = function () {
|
|
@@ -4354,9 +4355,8 @@
|
|
|
4354
4355
|
};
|
|
4355
4356
|
return DrDatePickerService;
|
|
4356
4357
|
}());
|
|
4357
|
-
DrDatePickerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DrDatePickerService_Factory() { return new DrDatePickerService(); }, token: DrDatePickerService, providedIn: "root" });
|
|
4358
4358
|
DrDatePickerService.decorators = [
|
|
4359
|
-
{ type: i0.Injectable
|
|
4359
|
+
{ type: i0.Injectable }
|
|
4360
4360
|
];
|
|
4361
4361
|
|
|
4362
4362
|
var moment$1 = require('moment');
|
|
@@ -4582,17 +4582,13 @@
|
|
|
4582
4582
|
}
|
|
4583
4583
|
return true;
|
|
4584
4584
|
};
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
});
|
|
4589
|
-
}
|
|
4585
|
+
datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
|
|
4586
|
+
_this.setValueFromMoment(value);
|
|
4587
|
+
});
|
|
4590
4588
|
}
|
|
4591
4589
|
Object.defineProperty(DrDatePickerComponent.prototype, "format", {
|
|
4592
4590
|
set: function (value) {
|
|
4593
|
-
|
|
4594
|
-
this.datePickerService.updateTimeframeAndFormat(value);
|
|
4595
|
-
}
|
|
4591
|
+
this.datePickerService.updateTimeframeAndFormat(value);
|
|
4596
4592
|
},
|
|
4597
4593
|
enumerable: false,
|
|
4598
4594
|
configurable: true
|
|
@@ -4624,14 +4620,6 @@
|
|
|
4624
4620
|
enumerable: false,
|
|
4625
4621
|
configurable: true
|
|
4626
4622
|
});
|
|
4627
|
-
DrDatePickerComponent.prototype.ngOnInit = function () {
|
|
4628
|
-
var _this = this;
|
|
4629
|
-
if (this.datePickerService && this.datePickerService.updatedQuarter$) {
|
|
4630
|
-
this.datePickerService.updatedQuarter$.pipe(operators.takeUntil(this.destroyed$)).subscribe(function (value) {
|
|
4631
|
-
_this.setValueFromMoment(value);
|
|
4632
|
-
});
|
|
4633
|
-
}
|
|
4634
|
-
};
|
|
4635
4623
|
DrDatePickerComponent.prototype.ngAfterViewInit = function () {
|
|
4636
4624
|
this.datePickerService.fiscalYearMonthsModifier = this.fiscalYearMonthsModifier;
|
|
4637
4625
|
this.datePickerService.datePickerInstance = this.datePicker;
|
|
@@ -4756,7 +4744,10 @@
|
|
|
4756
4744
|
selector: 'dr-date-picker',
|
|
4757
4745
|
template: "<i class=\"dr-icon-schedule\"></i>\n<input [(ngModel)]=\"value\"\n (click)=\"datePicker.open()\"\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"dateFilter\"\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",
|
|
4758
4746
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4759
|
-
providers: [
|
|
4747
|
+
providers: [
|
|
4748
|
+
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: DrDatePickerComponent, multi: true },
|
|
4749
|
+
{ provide: DrDatePickerService }
|
|
4750
|
+
],
|
|
4760
4751
|
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}\n"]
|
|
4761
4752
|
},] }
|
|
4762
4753
|
];
|