thm-p3-configurator 0.0.279 → 0.0.281

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.
@@ -75,6 +75,6 @@ const App = () => {
75
75
  defaultCountry: APP_CONFIG.country
76
76
  }, /*#__PURE__*/_react.default.createElement(_OrderSessionContext.OrderSessionController, null, /*#__PURE__*/_react.default.createElement(_reactQuery.QueryClientProvider, {
77
77
  client: _queryClient.default
78
- }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_reactHotLoader.AppContainer, null, /*#__PURE__*/_react.default.createElement(_ActiveMarkerContext.ActiveMarkerProvider, null, /*#__PURE__*/_react.default.createElement(_StyleWrapper.default, null, !APP_CONFIG.internal && /*#__PURE__*/_react.default.createElement(_Navbar.default, null), APP_CONFIG.internal && /*#__PURE__*/_react.default.createElement(_InternalBranchSelectorModal.default, null), /*#__PURE__*/_react.default.createElement(_pages__.default, null))))))))));
78
+ }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react.default.createElement(_reactHotLoader.AppContainer, null, /*#__PURE__*/_react.default.createElement(_ActiveMarkerContext.ActiveMarkerProvider, null, /*#__PURE__*/_react.default.createElement(_StyleWrapper.default, null, !APP_CONFIG.internal && /*#__PURE__*/_react.default.createElement(_Navbar.default, null), APP_CONFIG.internal && /*#__PURE__*/_react.default.createElement(_InternalBranchSelectorModal.default, null), APP_CONFIG.nodeEnv === 'development' && APP_CONFIG.internal === true && /*#__PURE__*/_react.default.createElement(_TEST_ONLY_INTERNAL_ROUTES.default, null))))))))));
79
79
  };
80
80
  var _default = exports.default = App;
@@ -52,7 +52,9 @@ const DatePickerInput = _ref => {
52
52
  name,
53
53
  isRequired,
54
54
  label,
55
- errorMessage
55
+ errorMessage,
56
+ minDate = new Date(),
57
+ maxDate
56
58
  } = _ref;
57
59
  const [value, setValue] = (0, _react.useState)();
58
60
  const [isTouched, setIsTouched] = (0, _react.useState)(false);
@@ -86,7 +88,8 @@ const DatePickerInput = _ref => {
86
88
  e.preventDefault();
87
89
  },
88
90
  wrapperClassName: (0, _helpers__.withStyle)('react-datepicker-wrapper'),
89
- minDate: new Date(),
91
+ minDate: minDate,
92
+ maxDate: maxDate,
90
93
  locale: "nl",
91
94
  onFocus: handleFocus,
92
95
  onChange: date => handleChange(date),
@@ -41,7 +41,11 @@ const InternalPriceCalculationSelector = () => {
41
41
  name: 'Prijsberekeningsdatum',
42
42
  isRequired: true,
43
43
  label: "Prijsberekeningsdatum:",
44
- initialValue: priceCalculationDate ? new Date(priceCalculationDate) : null,
44
+ initialValue: priceCalculationDate ? new Date(priceCalculationDate) : null
45
+ // Allow any date (past and future) for price calculation.
46
+ ,
47
+
48
+ minDate: null,
45
49
  isStrict: false
46
50
  });
47
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.279",
3
+ "version": "0.0.281",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",