ui-kit-ck-consultant 0.5.164 → 0.5.168

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.
@@ -728,7 +728,8 @@ var Th = /*#__PURE__*/function (_React$Component) {
728
728
  }, /*#__PURE__*/React.createElement("span", {
729
729
  style: !this.props.sort ? {
730
730
  margin: 'auto'
731
- } : {}
731
+ } : {},
732
+ dangerouslySetInnerHTML: this.props.dangerouslySetInnerHTML
732
733
  }, this.props.children), this.props.sort ? this.getSortButton() : ''));
733
734
  };
734
735
 
@@ -753,7 +754,8 @@ var Td = /*#__PURE__*/function (_React$Component) {
753
754
  rowSpan: this.props.rowSpan,
754
755
  colSpan: this.props.colSpan,
755
756
  className: tdClass,
756
- style: this.props.style
757
+ style: this.props.style,
758
+ dangerouslySetInnerHTML: this.props.dangerouslySetInnerHTML
757
759
  }, this.props.children);
758
760
  };
759
761
 
@@ -9772,7 +9774,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9772
9774
  if (_this.state.activeDate === currentDate) {
9773
9775
  return 1;
9774
9776
  } else {
9775
- 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))) {
9777
+ 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)) || _this.props.disabledDays && _this.props.disabledDays.filter(function (element, idx) {
9778
+ return element === 1 && idx === col;
9779
+ }).length) {
9776
9780
  return 2;
9777
9781
  } else {
9778
9782
  return 0;
@@ -9851,23 +9855,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9851
9855
  };
9852
9856
 
9853
9857
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
9854
- if (prevProps.show !== this.props.show) {
9855
- this.getArrayDays();
9856
- this.getArrayTime();
9857
- }
9858
-
9859
9858
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
9860
9859
  this.setState({
9861
9860
  year: parseInt(moment(this.props.valueDate).format('YYYY')),
9862
9861
  month: parseInt(moment(this.props.valueDate).format('M')),
9863
9862
  activeDate: this.props.valueDate
9864
- });
9863
+ }, this.getArrayDays);
9864
+ }
9865
+
9866
+ if (prevProps.show !== this.props.show) {
9867
+ this.getArrayDays();
9865
9868
  }
9866
9869
 
9867
9870
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
9868
9871
  this.setState({
9869
9872
  activeTime: this.props.valueTime
9870
- });
9873
+ }, this.getArrayTime);
9874
+ } else if (prevProps.show !== this.props.show) {
9875
+ this.getArrayTime();
9871
9876
  }
9872
9877
  };
9873
9878
 
@@ -9928,7 +9933,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9928
9933
  onClick: function onClick() {
9929
9934
  return _this2.handleActiveClick(idxRow, idxCol);
9930
9935
  }
9931
- }, moment(col, 'D').format('DD')) : null) : null);
9936
+ }, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
9932
9937
  }));
9933
9938
  })))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React.createElement(Col, {
9934
9939
  xs: 12,