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.modern.js
CHANGED
@@ -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
|
-
|
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
|
-
})
|
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,18 +9853,23 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9847
9853
|
};
|
9848
9854
|
|
9849
9855
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9856
|
+
if (prevProps.show !== this.props.show) {
|
9857
|
+
this.getArrayDays();
|
9858
|
+
this.getArrayTime();
|
9859
|
+
}
|
9860
|
+
|
9850
9861
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9851
9862
|
this.setState({
|
9852
9863
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9853
9864
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9854
9865
|
activeDate: this.props.valueDate
|
9855
|
-
}
|
9866
|
+
});
|
9856
9867
|
}
|
9857
9868
|
|
9858
9869
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9859
9870
|
this.setState({
|
9860
9871
|
activeTime: this.props.valueTime
|
9861
|
-
}
|
9872
|
+
});
|
9862
9873
|
}
|
9863
9874
|
};
|
9864
9875
|
|
@@ -9919,7 +9930,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9919
9930
|
onClick: function onClick() {
|
9920
9931
|
return _this2.handleActiveClick(idxRow, idxCol);
|
9921
9932
|
}
|
9922
|
-
}, moment(col, 'D').format('DD')) : null) : null);
|
9933
|
+
}, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
|
9923
9934
|
}));
|
9924
9935
|
})))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React.createElement(Col, {
|
9925
9936
|
xs: 12,
|