ui-kit-ck-consultant 0.5.163 → 0.5.167

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
 
@@ -3445,10 +3447,13 @@ var ListingHorizontalItem = /*#__PURE__*/function (_React$Component) {
3445
3447
  return /*#__PURE__*/React.createElement("div", {
3446
3448
  className: listingClass
3447
3449
  }, /*#__PURE__*/React.createElement("div", {
3448
- className: style$s.listing_horizontal_icon
3449
- }, this.props.icon ? this.props.icon : this.props.green ? /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3450
+ className: style$s.listing_horizontal_icon,
3451
+ style: this.props.color ? {
3452
+ backgroundColor: this.props.color
3453
+ } : null
3454
+ }, this.props.icon ? this.props.icon : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
3450
3455
  icon: faCheck
3451
- }) : ''), /*#__PURE__*/React.createElement("div", {
3456
+ })), /*#__PURE__*/React.createElement("div", {
3452
3457
  className: style$s.listing_horizontal_text
3453
3458
  }, /*#__PURE__*/React.createElement("span", null, this.props.date), /*#__PURE__*/React.createElement("span", null, this.props.title), /*#__PURE__*/React.createElement("span", null, this.props.subtitle)));
3454
3459
  };
@@ -3497,6 +3502,7 @@ var ListingHorizontal = /*#__PURE__*/function (_React$Component) {
3497
3502
  key: idx,
3498
3503
  green: element.green,
3499
3504
  orange: element.orange,
3505
+ color: element.color,
3500
3506
  title: element.title,
3501
3507
  subtitle: element.subtitle,
3502
3508
  date: element.date,
@@ -9847,23 +9853,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9847
9853
  };
9848
9854
 
9849
9855
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
9850
- if (prevProps.show !== this.props.show) {
9851
- this.getArrayDays();
9852
- this.getArrayTime();
9853
- }
9854
-
9855
9856
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
9856
9857
  this.setState({
9857
9858
  year: parseInt(moment(this.props.valueDate).format('YYYY')),
9858
9859
  month: parseInt(moment(this.props.valueDate).format('M')),
9859
9860
  activeDate: this.props.valueDate
9860
- });
9861
+ }, this.getArrayDays);
9862
+ }
9863
+
9864
+ if (prevProps.show !== this.props.show) {
9865
+ this.getArrayDays();
9861
9866
  }
9862
9867
 
9863
9868
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
9864
9869
  this.setState({
9865
9870
  activeTime: this.props.valueTime
9866
- });
9871
+ }, this.getArrayTime);
9872
+ } else if (prevProps.show !== this.props.show) {
9873
+ this.getArrayTime();
9867
9874
  }
9868
9875
  };
9869
9876
 
@@ -9924,7 +9931,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9924
9931
  onClick: function onClick() {
9925
9932
  return _this2.handleActiveClick(idxRow, idxCol);
9926
9933
  }
9927
- }, moment(col, 'D').format('DD')) : null) : null);
9934
+ }, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
9928
9935
  }));
9929
9936
  })))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React.createElement(Col, {
9930
9937
  xs: 12,