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.
- package/dist/index.js +20 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -13
- 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,23 +9856,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9850
9856
|
};
|
9851
9857
|
|
9852
9858
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9853
|
-
if (prevProps.show !== this.props.show) {
|
9854
|
-
this.getArrayDays();
|
9855
|
-
this.getArrayTime();
|
9856
|
-
}
|
9857
|
-
|
9858
9859
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9859
9860
|
this.setState({
|
9860
9861
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9861
9862
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9862
9863
|
activeDate: this.props.valueDate
|
9863
|
-
});
|
9864
|
+
}, this.getArrayDays);
|
9865
|
+
}
|
9866
|
+
|
9867
|
+
if (prevProps.show !== this.props.show) {
|
9868
|
+
this.getArrayDays();
|
9864
9869
|
}
|
9865
9870
|
|
9866
9871
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9867
9872
|
this.setState({
|
9868
9873
|
activeTime: this.props.valueTime
|
9869
|
-
});
|
9874
|
+
}, this.getArrayTime);
|
9875
|
+
} else if (prevProps.show !== this.props.show) {
|
9876
|
+
this.getArrayTime();
|
9870
9877
|
}
|
9871
9878
|
};
|
9872
9879
|
|
@@ -9927,7 +9934,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9927
9934
|
onClick: function onClick() {
|
9928
9935
|
return _this2.handleActiveClick(idxRow, idxCol);
|
9929
9936
|
}
|
9930
|
-
}, moment(col, 'D').format('DD')) : null) : null);
|
9937
|
+
}, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
|
9931
9938
|
}));
|
9932
9939
|
})))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
9933
9940
|
xs: 12,
|