ui-kit-ck-consultant 0.5.162 → 0.5.166
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 +19 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -731,7 +731,8 @@ var Th = /*#__PURE__*/function (_React$Component) {
|
|
731
731
|
}, /*#__PURE__*/React__default.createElement("span", {
|
732
732
|
style: !this.props.sort ? {
|
733
733
|
margin: 'auto'
|
734
|
-
} : {}
|
734
|
+
} : {},
|
735
|
+
dangerouslySetInnerHTML: this.props.dangerouslySetInnerHTML
|
735
736
|
}, this.props.children), this.props.sort ? this.getSortButton() : ''));
|
736
737
|
};
|
737
738
|
|
@@ -756,7 +757,8 @@ var Td = /*#__PURE__*/function (_React$Component) {
|
|
756
757
|
rowSpan: this.props.rowSpan,
|
757
758
|
colSpan: this.props.colSpan,
|
758
759
|
className: tdClass,
|
759
|
-
style: this.props.style
|
760
|
+
style: this.props.style,
|
761
|
+
dangerouslySetInnerHTML: this.props.dangerouslySetInnerHTML
|
760
762
|
}, this.props.children);
|
761
763
|
};
|
762
764
|
|
@@ -3448,10 +3450,13 @@ var ListingHorizontalItem = /*#__PURE__*/function (_React$Component) {
|
|
3448
3450
|
return /*#__PURE__*/React__default.createElement("div", {
|
3449
3451
|
className: listingClass
|
3450
3452
|
}, /*#__PURE__*/React__default.createElement("div", {
|
3451
|
-
className: style$s.listing_horizontal_icon
|
3452
|
-
|
3453
|
+
className: style$s.listing_horizontal_icon,
|
3454
|
+
style: this.props.color ? {
|
3455
|
+
backgroundColor: this.props.color
|
3456
|
+
} : null
|
3457
|
+
}, this.props.icon ? this.props.icon : /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
3453
3458
|
icon: freeSolidSvgIcons.faCheck
|
3454
|
-
})
|
3459
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
3455
3460
|
className: style$s.listing_horizontal_text
|
3456
3461
|
}, /*#__PURE__*/React__default.createElement("span", null, this.props.date), /*#__PURE__*/React__default.createElement("span", null, this.props.title), /*#__PURE__*/React__default.createElement("span", null, this.props.subtitle)));
|
3457
3462
|
};
|
@@ -3500,6 +3505,7 @@ var ListingHorizontal = /*#__PURE__*/function (_React$Component) {
|
|
3500
3505
|
key: idx,
|
3501
3506
|
green: element.green,
|
3502
3507
|
orange: element.orange,
|
3508
|
+
color: element.color,
|
3503
3509
|
title: element.title,
|
3504
3510
|
subtitle: element.subtitle,
|
3505
3511
|
date: element.date,
|
@@ -9850,18 +9856,23 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9850
9856
|
};
|
9851
9857
|
|
9852
9858
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9859
|
+
if (prevProps.show !== this.props.show) {
|
9860
|
+
this.getArrayDays();
|
9861
|
+
this.getArrayTime();
|
9862
|
+
}
|
9863
|
+
|
9853
9864
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9854
9865
|
this.setState({
|
9855
9866
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9856
9867
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9857
9868
|
activeDate: this.props.valueDate
|
9858
|
-
}
|
9869
|
+
});
|
9859
9870
|
}
|
9860
9871
|
|
9861
9872
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9862
9873
|
this.setState({
|
9863
9874
|
activeTime: this.props.valueTime
|
9864
|
-
}
|
9875
|
+
});
|
9865
9876
|
}
|
9866
9877
|
};
|
9867
9878
|
|
@@ -9922,7 +9933,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9922
9933
|
onClick: function onClick() {
|
9923
9934
|
return _this2.handleActiveClick(idxRow, idxCol);
|
9924
9935
|
}
|
9925
|
-
}, moment(col, 'D').format('DD')) : null) : null);
|
9936
|
+
}, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
|
9926
9937
|
}));
|
9927
9938
|
})))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
9928
9939
|
xs: 12,
|