@ornikar/kitt-universal 9.46.1 → 9.46.2
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/definitions/forms/DatePicker/reducers/keyboardDatePickerReducer.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +8 -3
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +8 -3
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +8 -3
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +8 -3
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +8 -3
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +8 -3
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -2229,6 +2229,11 @@ function getYearInInterval(value, minDate, maxDate) {
|
|
|
2229
2229
|
return value !== undefined ? Math.max(minValue, Math.min(maxValue, value)) : value;
|
|
2230
2230
|
}
|
|
2231
2231
|
|
|
2232
|
+
function getValueToDisplayedString(value) {
|
|
2233
|
+
// We exclude the undefined value since 0 is a valid number
|
|
2234
|
+
if (value === undefined) return '';
|
|
2235
|
+
return value.toString();
|
|
2236
|
+
}
|
|
2232
2237
|
const keyboardDatePickerReducer = (state, action) => {
|
|
2233
2238
|
switch (action.type) {
|
|
2234
2239
|
case 'day-change':
|
|
@@ -2239,7 +2244,7 @@ const keyboardDatePickerReducer = (state, action) => {
|
|
|
2239
2244
|
return {
|
|
2240
2245
|
...state,
|
|
2241
2246
|
currentDay: nextDay,
|
|
2242
|
-
displayedDay: nextDay
|
|
2247
|
+
displayedDay: getValueToDisplayedString(nextDay)
|
|
2243
2248
|
};
|
|
2244
2249
|
}
|
|
2245
2250
|
case 'month-change':
|
|
@@ -2250,7 +2255,7 @@ const keyboardDatePickerReducer = (state, action) => {
|
|
|
2250
2255
|
return {
|
|
2251
2256
|
...state,
|
|
2252
2257
|
currentMonth: nextMonth,
|
|
2253
|
-
displayedMonth: nextMonth
|
|
2258
|
+
displayedMonth: getValueToDisplayedString(nextMonth)
|
|
2254
2259
|
};
|
|
2255
2260
|
}
|
|
2256
2261
|
case 'year-change':
|
|
@@ -2261,7 +2266,7 @@ const keyboardDatePickerReducer = (state, action) => {
|
|
|
2261
2266
|
return {
|
|
2262
2267
|
...state,
|
|
2263
2268
|
currentYear: nextYear,
|
|
2264
|
-
displayedYear: nextYear
|
|
2269
|
+
displayedYear: getValueToDisplayedString(nextYear)
|
|
2265
2270
|
};
|
|
2266
2271
|
}
|
|
2267
2272
|
case 'day-blur':
|