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.
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -11
- 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
|
|
@@ -9775,7 +9777,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9775
9777
|
if (_this.state.activeDate === currentDate) {
|
9776
9778
|
return 1;
|
9777
9779
|
} else {
|
9778
|
-
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))) {
|
9780
|
+
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) {
|
9781
|
+
return element === 1 && idx === col;
|
9782
|
+
}).length) {
|
9779
9783
|
return 2;
|
9780
9784
|
} else {
|
9781
9785
|
return 0;
|
@@ -9854,23 +9858,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9854
9858
|
};
|
9855
9859
|
|
9856
9860
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9857
|
-
if (prevProps.show !== this.props.show) {
|
9858
|
-
this.getArrayDays();
|
9859
|
-
this.getArrayTime();
|
9860
|
-
}
|
9861
|
-
|
9862
9861
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9863
9862
|
this.setState({
|
9864
9863
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9865
9864
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9866
9865
|
activeDate: this.props.valueDate
|
9867
|
-
});
|
9866
|
+
}, this.getArrayDays);
|
9867
|
+
}
|
9868
|
+
|
9869
|
+
if (prevProps.show !== this.props.show) {
|
9870
|
+
this.getArrayDays();
|
9868
9871
|
}
|
9869
9872
|
|
9870
9873
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9871
9874
|
this.setState({
|
9872
9875
|
activeTime: this.props.valueTime
|
9873
|
-
});
|
9876
|
+
}, this.getArrayTime);
|
9877
|
+
} else if (prevProps.show !== this.props.show) {
|
9878
|
+
this.getArrayTime();
|
9874
9879
|
}
|
9875
9880
|
};
|
9876
9881
|
|
@@ -9931,7 +9936,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9931
9936
|
onClick: function onClick() {
|
9932
9937
|
return _this2.handleActiveClick(idxRow, idxCol);
|
9933
9938
|
}
|
9934
|
-
}, moment(col, 'D').format('DD')) : null) : null);
|
9939
|
+
}, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
|
9935
9940
|
}));
|
9936
9941
|
})))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
9937
9942
|
xs: 12,
|