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.modern.js
CHANGED
@@ -168,9 +168,13 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
168
168
|
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));
|
169
169
|
return /*#__PURE__*/React.createElement("button", {
|
170
170
|
className: buttonClass,
|
171
|
+
style: this.props.style,
|
171
172
|
onClick: this.props.onClick,
|
172
173
|
disabled: this.props.disabled
|
173
|
-
}, /*#__PURE__*/React.createElement("span",
|
174
|
+
}, /*#__PURE__*/React.createElement("span", {
|
175
|
+
style: this.props.styleSpan
|
176
|
+
}, this.props.text), this.props.children ? /*#__PURE__*/React.createElement("div", {
|
177
|
+
style: this.props.styleDiv,
|
174
178
|
className: classNames$1(style$1.button_special_icon)
|
175
179
|
}, this.props.children) : '');
|
176
180
|
};
|
@@ -9774,7 +9778,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9774
9778
|
if (_this.state.activeDate === currentDate) {
|
9775
9779
|
return 1;
|
9776
9780
|
} else {
|
9777
|
-
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))) {
|
9781
|
+
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) {
|
9782
|
+
return element === 1 && idx === col;
|
9783
|
+
}).length) {
|
9778
9784
|
return 2;
|
9779
9785
|
} else {
|
9780
9786
|
return 0;
|
@@ -9853,23 +9859,24 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9853
9859
|
};
|
9854
9860
|
|
9855
9861
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9856
|
-
if (prevProps.show !== this.props.show) {
|
9857
|
-
this.getArrayDays();
|
9858
|
-
this.getArrayTime();
|
9859
|
-
}
|
9860
|
-
|
9861
9862
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9862
9863
|
this.setState({
|
9863
9864
|
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9864
9865
|
month: parseInt(moment(this.props.valueDate).format('M')),
|
9865
9866
|
activeDate: this.props.valueDate
|
9866
|
-
});
|
9867
|
+
}, this.getArrayDays);
|
9868
|
+
}
|
9869
|
+
|
9870
|
+
if (prevProps.show !== this.props.show) {
|
9871
|
+
this.getArrayDays();
|
9867
9872
|
}
|
9868
9873
|
|
9869
9874
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueTime) {
|
9870
9875
|
this.setState({
|
9871
9876
|
activeTime: this.props.valueTime
|
9872
|
-
});
|
9877
|
+
}, this.getArrayTime);
|
9878
|
+
} else if (prevProps.show !== this.props.show) {
|
9879
|
+
this.getArrayTime();
|
9873
9880
|
}
|
9874
9881
|
};
|
9875
9882
|
|
@@ -9930,7 +9937,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9930
9937
|
onClick: function onClick() {
|
9931
9938
|
return _this2.handleActiveClick(idxRow, idxCol);
|
9932
9939
|
}
|
9933
|
-
}, moment(col, 'D').format('DD')) : null) : null);
|
9940
|
+
}, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
|
9934
9941
|
}));
|
9935
9942
|
})))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React.createElement(Col, {
|
9936
9943
|
xs: 12,
|