ui-kit-ck-consultant 0.5.200 → 0.5.201

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.
@@ -9956,12 +9956,18 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9956
9956
  };
9957
9957
 
9958
9958
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
9959
+ var _this2 = this;
9960
+
9959
9961
  if (prevProps.show !== this.props.show && this.props.show && this.props.valueDate) {
9960
9962
  this.setState({
9961
9963
  year: parseInt(moment(this.props.valueDate).format('YYYY')),
9962
9964
  month: parseInt(moment(this.props.valueDate).format('M')),
9963
9965
  activeDate: this.props.valueDate
9964
- }, this.getArrayDays);
9966
+ }, function () {
9967
+ _this2.getArrayDays();
9968
+
9969
+ _this2.getArrayTime();
9970
+ });
9965
9971
  }
9966
9972
 
9967
9973
  if (prevProps.show !== this.props.show) {
@@ -9978,7 +9984,7 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
9978
9984
  };
9979
9985
 
9980
9986
  _proto.render = function render() {
9981
- var _this2 = this;
9987
+ var _this3 = this;
9982
9988
 
9983
9989
  if (!this.props.show) {
9984
9990
  return null;
@@ -10027,14 +10033,14 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
10027
10033
  return /*#__PURE__*/React.createElement("tr", {
10028
10034
  key: idxRow
10029
10035
  }, row.map(function (col, idxCol) {
10030
- return /*#__PURE__*/React.createElement(Fragment$1, null, _this2.props.isWeek || idxCol < 5 ? /*#__PURE__*/React.createElement("td", {
10036
+ return /*#__PURE__*/React.createElement(Fragment$1, null, _this3.props.isWeek || idxCol < 5 ? /*#__PURE__*/React.createElement("td", {
10031
10037
  key: idxCol
10032
10038
  }, col ? /*#__PURE__*/React.createElement("span", {
10033
- className: _this2.checkActiveClassName(idxRow, idxCol),
10039
+ className: _this3.checkActiveClassName(idxRow, idxCol),
10034
10040
  onClick: function onClick() {
10035
- return _this2.handleActiveClick(idxRow, idxCol);
10041
+ return _this3.handleActiveClick(idxRow, idxCol);
10036
10042
  }
10037
- }, moment(_this2.state.year + "-" + _this2.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
10043
+ }, moment(_this3.state.year + "-" + _this3.state.month + "-" + col, 'YYYY-M-D').format('DD')) : null) : null);
10038
10044
  }));
10039
10045
  })))))), this.props.isTime && this.state.activeDate ? /*#__PURE__*/React.createElement(Col, {
10040
10046
  xs: 12,
@@ -10044,9 +10050,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
10044
10050
  }, this.state.times.map(function (time, idx) {
10045
10051
  return /*#__PURE__*/React.createElement("div", {
10046
10052
  key: idx,
10047
- className: classNames$1(style$x.calendar_time_button, time === _this2.state.activeTime ? style$x.active : '', _this2.props.disabledTime.includes(time) ? style$x.disabled : ''),
10053
+ className: classNames$1(style$x.calendar_time_button, time === _this3.state.activeTime ? style$x.active : '', _this3.props.disabledTime.includes(time) ? style$x.disabled : ''),
10048
10054
  onClick: function onClick() {
10049
- return _this2.handleTimeClick(time);
10055
+ return _this3.handleTimeClick(time);
10050
10056
  }
10051
10057
  }, /*#__PURE__*/React.createElement("span", null, time));
10052
10058
  }))) : null), /*#__PURE__*/React.createElement("div", {
@@ -10054,14 +10060,14 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
10054
10060
  }, /*#__PURE__*/React.createElement("div", {
10055
10061
  className: classNames$1(style$x.calendar_button, style$x.button_red),
10056
10062
  onClick: function onClick() {
10057
- return _this2.props.onClose();
10063
+ return _this3.props.onClose();
10058
10064
  }
10059
10065
  }, /*#__PURE__*/React.createElement("span", null, "Retour"), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
10060
10066
  icon: faTimes
10061
10067
  })), /*#__PURE__*/React.createElement("div", {
10062
10068
  className: style$x.calendar_button,
10063
10069
  onClick: function onClick() {
10064
- return _this2.props.onValid(_this2.state.activeDate, _this2.state.activeTime);
10070
+ return _this3.props.onValid(_this3.state.activeDate, _this3.state.activeTime);
10065
10071
  }
10066
10072
  }, /*#__PURE__*/React.createElement("span", null, "Valider"), /*#__PURE__*/React.createElement(FontAwesomeIcon, {
10067
10073
  icon: faCheck