ui-kit-ck-consultant 0.5.165 → 0.5.169
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 +17 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -171,9 +171,13 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
171
171
|
var buttonClass = classNames$1((_classNames = {}, _classNames[style$1.button_outline] = !!this.props.outline, _classNames[style$1.button] = !this.props.outline, _classNames[style$1.button_special] = !!this.props.children, _classNames[style$1.small] = !!this.props.small, _classNames[style$1.big] = !!this.props.big, _classNames[style$1.button_red] = !!this.props.red, _classNames[style$1.button_blue] = !!this.props.blue, _classNames[style$1.button_orange] = !!this.props.orange, _classNames[style$1.button_green] = !!this.props.green, _classNames[this.props.className] = !!this.props.className, _classNames));
|
172
172
|
return /*#__PURE__*/React__default.createElement("button", {
|
173
173
|
className: buttonClass,
|
174
|
+
style: this.props.style,
|
174
175
|
onClick: this.props.onClick,
|
175
176
|
disabled: this.props.disabled
|
176
|
-
}, /*#__PURE__*/React__default.createElement("span",
|
177
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
178
|
+
style: this.props.styleSpan
|
179
|
+
}, this.props.text), this.props.children ? /*#__PURE__*/React__default.createElement("div", {
|
180
|
+
style: this.props.styleDiv,
|
177
181
|
className: classNames$1(style$1.button_special_icon)
|
178
182
|
}, this.props.children) : '');
|
179
183
|
};
|
@@ -9777,7 +9781,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9777
9781
|
if (_this.state.activeDate === currentDate) {
|
9778
9782
|
return 1;
|
9779
9783
|
} else {
|
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))) {
|
9784
|
+
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) {
|
9785
|
+
return element === 1 && idx === col;
|
9786
|
+
}).length) {
|
9781
9787
|
return 2;
|
9782
9788
|
} else {
|
9783
9789
|
return 0;
|
@@ -9856,23 +9862,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9856
9862
|
};
|
9857
9863
|
|
9858
9864
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9859
|
-
if (prevProps.show !== this.props.show) {
|
9860
|
-
this.getArrayDays();
|
9861
|
-
this.getArrayTime();
|
9862
|
-
}
|
9863
|
-
|
9864
9865
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9865
9866
|
this.setState({
|
9866
9867
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9867
9868
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9868
9869
|
activeDate: this.props.valueDate
|
9869
|
-
});
|
9870
|
+
}, this.getArrayDays);
|
9871
|
+
}
|
9872
|
+
|
9873
|
+
if (prevProps.show !== this.props.show) {
|
9874
|
+
this.getArrayDays();
|
9870
9875
|
}
|
9871
9876
|
|
9872
9877
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9873
9878
|
this.setState({
|
9874
9879
|
activeTime: this.props.valueTime
|
9875
|
-
});
|
9880
|
+
}, this.getArrayTime);
|
9881
|
+
} else if (prevProps.show !== this.props.show) {
|
9882
|
+
this.getArrayTime();
|
9876
9883
|
}
|
9877
9884
|
};
|
9878
9885
|
|
@@ -9933,7 +9940,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9933
9940
|
onClick: function onClick() {
|
9934
9941
|
return _this2.handleActiveClick(idxRow, idxCol);
|
9935
9942
|
}
|
9936
|
-
}, moment(col, 'D').format('DD')) : null) : null);
|
9943
|
+
}, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
|
9937
9944
|
}));
|
9938
9945
|
})))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React__default.createElement(reactFlexboxGrid.Col, {
|
9939
9946
|
xs: 12,
|