ui-kit-ck-consultant 0.5.159 → 0.5.160
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 +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -9839,6 +9839,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9839
9839
|
this.getArrayDays();
|
9840
9840
|
this.getArrayTime();
|
9841
9841
|
this.setState({
|
9842
|
+
year: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('YYYY')) : this.tate.year,
|
9843
|
+
month: this.props.valueDate ? parseInt(moment(this.props.valueDate).format('M')) : this.tate.month,
|
9842
9844
|
activeDate: this.props.valueDate ? this.props.valueDate : this.state.activeDate,
|
9843
9845
|
activeTime: this.props.valueTime ? this.props.valueTime : this.state.Time
|
9844
9846
|
});
|
@@ -9847,6 +9849,8 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9847
9849
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
9848
9850
|
if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
|
9849
9851
|
this.setState({
|
9852
|
+
year: parseInt(moment(this.props.valueDate).format('YYYY')),
|
9853
|
+
month: parseInt(moment(this.props.valueDate).format('M')),
|
9850
9854
|
activeDate: this.props.valueDate
|
9851
9855
|
});
|
9852
9856
|
}
|