ui-kit-ck-consultant 0.5.201 → 0.5.204

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 CHANGED
@@ -9873,7 +9873,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9873
9873
  return 1;
9874
9874
  } else {
9875
9875
  if (_this.props.enabledDates && _this.props.enabledDates.length) {
9876
- if (_this.props.enabledDates.includes(currentDate)) {
9876
+ if (_this.props.enabledDates.includes(currentDate) && !(_this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)))) {
9877
9877
  return 0;
9878
9878
  } else {
9879
9879
  return 2;
@@ -9968,12 +9968,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9968
9968
  activeDate: this.props.valueDate
9969
9969
  }, function () {
9970
9970
  _this2.getArrayDays();
9971
-
9972
- _this2.getArrayTime();
9973
9971
  });
9974
- }
9975
-
9976
- if (prevProps.show !== this.props.show) {
9972
+ } else if (prevProps.show !== this.props.show) {
9977
9973
  this.getArrayDays();
9978
9974
  }
9979
9975
 
@@ -9983,6 +9979,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9983
9979
  }, this.getArrayTime);
9984
9980
  } else if (prevProps.show !== this.props.show) {
9985
9981
  this.getArrayTime();
9982
+ } else if (this.props.timesRange && JSON.stringify(this.props.timesRange) !== JSON.stringify(prevProps.timesRange)) {
9983
+ this.getArrayTime();
9986
9984
  }
9987
9985
  };
9988
9986
 
@@ -10036,14 +10034,14 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
10036
10034
  return /*#__PURE__*/React__default.createElement("tr", {
10037
10035
  key: idxRow
10038
10036
  }, row.map(function (col, idxCol) {
10039
- return /*#__PURE__*/React__default.createElement(React.Fragment, null, _this3.props.isWeek || idxCol < 5 ? /*#__PURE__*/React__default.createElement("td", {
10040
- key: idxCol
10037
+ return _this3.props.isWeek || idxCol < 5 ? /*#__PURE__*/React__default.createElement("td", {
10038
+ key: idxRow + "-" + idxCol
10041
10039
  }, col ? /*#__PURE__*/React__default.createElement("span", {
10042
10040
  className: _this3.checkActiveClassName(idxRow, idxCol),
10043
10041
  onClick: function onClick() {
10044
10042
  return _this3.handleActiveClick(idxRow, idxCol);
10045
10043
  }
10046
- }, moment(_this3.state.year + "-" + _this3.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
10044
+ }, moment(_this3.state.year + "-" + _this3.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null;
10047
10045
  }));
10048
10046
  })))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
10049
10047
  xs: 12,