@opengeoweb/form-fields 12.2.0 → 12.4.1
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/index.esm.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
import { DateTimePicker } from '@mui/x-date-pickers';
|
|
10
10
|
import { CalendarToday } from '@opengeoweb/theme';
|
|
11
11
|
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
|
|
12
|
-
import { AdapterDateFns } from '@mui/x-date-pickers/
|
|
12
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
|
13
13
|
|
|
14
14
|
var en = {
|
|
15
15
|
"form-fields-error-required": "This field is required",
|
|
@@ -755,7 +755,7 @@ var ReactHookFormNumberField = function ReactHookFormNumberField(_ref) {
|
|
|
755
755
|
});
|
|
756
756
|
};
|
|
757
757
|
|
|
758
|
-
var _excluded$1 = ["name", "rules", "disabled", "label", "format", "openTo", "defaultNullValue", "helperText", "onChange", "className", "sx", "isReadOnly", "
|
|
758
|
+
var _excluded$1 = ["name", "rules", "disabled", "label", "format", "openTo", "defaultNullValue", "helperText", "onChange", "className", "sx", "isReadOnly", "shouldHideUTC", "disablePast", "disableFuture"];
|
|
759
759
|
var OpenPicker = function OpenPicker() {
|
|
760
760
|
return jsx(CalendarToday, {});
|
|
761
761
|
};
|
|
@@ -808,7 +808,6 @@ var ReactHookKeyboardDateTimePicker = function ReactHookKeyboardDateTimePicker(_
|
|
|
808
808
|
className = _ref2.className,
|
|
809
809
|
sx = _ref2.sx,
|
|
810
810
|
isReadOnly = _ref2.isReadOnly,
|
|
811
|
-
inputAdornment = _ref2.inputAdornment,
|
|
812
811
|
shouldHideUTC = _ref2.shouldHideUTC,
|
|
813
812
|
disablePast = _ref2.disablePast,
|
|
814
813
|
disableFuture = _ref2.disableFuture,
|
|
@@ -879,9 +878,9 @@ var ReactHookKeyboardDateTimePicker = function ReactHookKeyboardDateTimePicker(_
|
|
|
879
878
|
}, isReadOnly && {
|
|
880
879
|
readOnly: true
|
|
881
880
|
}),
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}
|
|
881
|
+
field: {
|
|
882
|
+
openPickerButtonPosition: 'start'
|
|
883
|
+
},
|
|
885
884
|
openPickerButton: {
|
|
886
885
|
size: 'small',
|
|
887
886
|
sx: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/form-fields",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.1",
|
|
4
4
|
"description": "GeoWeb form-fields library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/theme": "12.
|
|
11
|
+
"@opengeoweb/theme": "12.4.1",
|
|
12
12
|
"react-hook-form": "^7.50.1",
|
|
13
|
-
"@mui/x-date-pickers": "^
|
|
13
|
+
"@mui/x-date-pickers": "^8.1.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"@opengeoweb/shared": "12.
|
|
15
|
+
"@opengeoweb/shared": "12.4.1",
|
|
16
16
|
"react-i18next": "^15.1.1",
|
|
17
|
-
"@mui/material": "^
|
|
18
|
-
"i18next": "^
|
|
17
|
+
"@mui/material": "^7.0.1",
|
|
18
|
+
"i18next": "^25.0.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "18",
|
|
@@ -10,7 +10,7 @@ import { ReactHookFormInput } from './types';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const getFormattedValueForDatePicker: (value: Date) => string | null;
|
|
12
12
|
export declare const getDateValue: (value: string) => Date | null;
|
|
13
|
-
type ReactHookKeyboardDateTimePickerProps = DateTimePickerProps
|
|
13
|
+
type ReactHookKeyboardDateTimePickerProps = DateTimePickerProps & DateTimePickerSlotProps<false> & ReactHookFormInput<{
|
|
14
14
|
defaultNullValue?: string | null;
|
|
15
15
|
value?: string;
|
|
16
16
|
onChange?: (value: Date | string | null) => void;
|