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