@tetacom/ng-components 1.0.72 → 1.0.73
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/component/date-picker/day-select/day-select.component.d.ts +4 -2
- package/esm2020/component/date-picker/date-picker/date-picker.component.mjs +2 -2
- package/esm2020/component/date-picker/day-select/day-select.component.mjs +18 -2
- package/fesm2015/tetacom-ng-components.mjs +18 -2
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +18 -2
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/style/table.scss +1 -1
|
@@ -1466,6 +1466,22 @@ class DaySelectComponent {
|
|
|
1466
1466
|
this.locale = locale;
|
|
1467
1467
|
});
|
|
1468
1468
|
}
|
|
1469
|
+
set minDate(d) {
|
|
1470
|
+
this._minDate = d;
|
|
1471
|
+
if (this._currentValue) {
|
|
1472
|
+
this.createDays();
|
|
1473
|
+
}
|
|
1474
|
+
this._cdr.markForCheck();
|
|
1475
|
+
}
|
|
1476
|
+
;
|
|
1477
|
+
set maxDate(d) {
|
|
1478
|
+
this._maxDate = d;
|
|
1479
|
+
if (this._currentValue) {
|
|
1480
|
+
this.createDays();
|
|
1481
|
+
}
|
|
1482
|
+
this._cdr.markForCheck();
|
|
1483
|
+
}
|
|
1484
|
+
;
|
|
1469
1485
|
set currentValue(val) {
|
|
1470
1486
|
if (!this._currentValue ||
|
|
1471
1487
|
DateUtil.truncateToDay(val)?.getTime() !==
|
|
@@ -1558,7 +1574,7 @@ class DaySelectComponent {
|
|
|
1558
1574
|
return result;
|
|
1559
1575
|
}
|
|
1560
1576
|
createDays() {
|
|
1561
|
-
this.days = DatePickerUtil.getPickerDays(this.currentValue, this.firstDayOfWeek, this.
|
|
1577
|
+
this.days = DatePickerUtil.getPickerDays(this.currentValue, this.firstDayOfWeek, this._minDate, this._maxDate, this.disabledDates, this.disabledDays, this.disabledPeriods);
|
|
1562
1578
|
}
|
|
1563
1579
|
checkDays() {
|
|
1564
1580
|
if (this.days) {
|
|
@@ -2146,7 +2162,7 @@ class DatePickerComponent {
|
|
|
2146
2162
|
if (this.isScrollIgnored()) {
|
|
2147
2163
|
return false;
|
|
2148
2164
|
}
|
|
2149
|
-
this.currentValue = DatePickerUtil.
|
|
2165
|
+
this.currentValue = DatePickerUtil.scrollYear(e.deltaY, this.internalValue);
|
|
2150
2166
|
};
|
|
2151
2167
|
this.openPicker = (show) => {
|
|
2152
2168
|
if (this.disabled) {
|