ui-kit-ck-consultant 0.5.159 → 0.5.163
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 +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -1
- 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,14 +9842,23 @@ 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.state.year,
|
9846
|
+
month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.state.month,
|
9845
9847
|
activeDate: this.props.valueDate ? this.props.valueDate : this.state.activeDate,
|
9846
9848
|
activeTime: this.props.valueTime ? this.props.valueTime : this.state.Time
|
9847
9849
|
});
|
9848
9850
|
};
|
9849
9851
|
|
9850
9852
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9853
|
+
if (prevProps.show !== this.props.show) {
|
9854
|
+
this.getArrayDays();
|
9855
|
+
this.getArrayTime();
|
9856
|
+
}
|
9857
|
+
|
9851
9858
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9852
9859
|
this.setState({
|
9860
|
+
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9861
|
+
month: parseInt(moment(this.props.valueDate).format('M')),
|
9853
9862
|
activeDate: this.props.valueDate
|
9854
9863
|
});
|
9855
9864
|
}
|