ui-kit-ck-consultant 0.5.160 → 0.5.161
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -9771,7 +9771,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9771
9771
|
if (_this.state.activeDate === currentDate) {
|
9772
9772
|
return 1;
|
9773
9773
|
} else {
|
9774
|
-
if (_this.props.disabledDates && _this.props.disabledDates.includes(currentDate) || !_this.props.isWeek && [6, 7].includes(parseInt(moment(currentDate).isoWeekday())) || !_this.props.isHoliday && _this.holidays.includes(currentDate)) {
|
9774
|
+
if (_this.props.disabledDates && _this.props.disabledDates.includes(currentDate) || !_this.props.isWeek && [6, 7].includes(parseInt(moment(currentDate).isoWeekday())) || !_this.props.isHoliday && _this.holidays.includes(currentDate) || _this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)) || _this.props.maxDate && moment(_this.props.maxDate).isBefore(moment(currentDate))) {
|
9775
9775
|
return 2;
|
9776
9776
|
} else {
|
9777
9777
|
return 0;
|
@@ -9842,8 +9842,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9842
9842
|
this.getArrayDays();
|
9843
9843
|
this.getArrayTime();
|
9844
9844
|
this.setState({
|
9845
|
-
year: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('YYYY')) : this.
|
9846
|
-
month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.
|
9845
|
+
year: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('YYYY')) : this.state.year,
|
9846
|
+
month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.state.month,
|
9847
9847
|
activeDate: this.props.valueDate ? this.props.valueDate : this.state.activeDate,
|
9848
9848
|
activeTime: this.props.valueTime ? this.props.valueTime : this.state.Time
|
9849
9849
|
});
|