@opengeoweb/form-fields 9.10.1 → 9.11.0
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
|
@@ -700,6 +700,8 @@ var ReactHookFormNumberField = function ReactHookFormNumberField(_a) {
|
|
|
700
700
|
}, otherProps)));
|
|
701
701
|
};
|
|
702
702
|
|
|
703
|
+
var DEFAULT_DATE_FORMAT = 'DD/MM/YYYY HH:mm';
|
|
704
|
+
var DATE_FORMAT_FNS = 'dd/MM/yyyy HH:mm';
|
|
703
705
|
var OpenPicker = function OpenPicker() {
|
|
704
706
|
return /*#__PURE__*/React.createElement(CalendarToday, null);
|
|
705
707
|
};
|
|
@@ -716,7 +718,7 @@ var ReactHookKeyboardDateTimePicker = function ReactHookKeyboardDateTimePicker(_
|
|
|
716
718
|
_a$label = _a.label,
|
|
717
719
|
label = _a$label === void 0 ? 'Select date and time' : _a$label,
|
|
718
720
|
_a$format = _a.format,
|
|
719
|
-
format = _a$format === void 0 ?
|
|
721
|
+
format = _a$format === void 0 ? DEFAULT_DATE_FORMAT : _a$format,
|
|
720
722
|
_a$openTo = _a.openTo,
|
|
721
723
|
openTo = _a$openTo === void 0 ? 'hours' : _a$openTo,
|
|
722
724
|
_a$defaultNullValue = _a.defaultNullValue,
|
|
@@ -924,4 +926,4 @@ var useDraftFormHelpers = function useDraftFormHelpers() {
|
|
|
924
926
|
};
|
|
925
927
|
};
|
|
926
928
|
|
|
927
|
-
export { HIDDEN_INPUT_HELPER_IS_DRAFT, ReactHookKeyboardDateTimePicker as ReactHookFormDateTime, ReactHookFormFormControl, ReactHookFormHiddenInput, ReactHookFormNumberField, ReactHookFormProviderWrapper as ReactHookFormProvider, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormTextField, defaultFormOptions, errorMessages, getDeepProperty, hasIntersectionWithFIR, hasMaxFeaturePoints, hasMulitpleIntersections, isAfter, isBefore, isBetween, isEmpty, isGeometryDirty, isInteger, isLatitude, isLongitude, isMaximumOneDrawing, isNonOrBothCoordinates, isValidDate, isValidGeoJsonCoordinates, isValidMax, isValidMin, isXHoursAfter, isXHoursBefore, useDraftFormHelpers };
|
|
929
|
+
export { DATE_FORMAT_FNS, HIDDEN_INPUT_HELPER_IS_DRAFT, ReactHookKeyboardDateTimePicker as ReactHookFormDateTime, ReactHookFormFormControl, ReactHookFormHiddenInput, ReactHookFormNumberField, ReactHookFormProviderWrapper as ReactHookFormProvider, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormTextField, defaultFormOptions, errorMessages, getDeepProperty, getFormattedValue, hasIntersectionWithFIR, hasMaxFeaturePoints, hasMulitpleIntersections, isAfter, isBefore, isBetween, isEmpty, isGeometryDirty, isInteger, isLatitude, isLongitude, isMaximumOneDrawing, isNonOrBothCoordinates, isValidDate, isValidGeoJsonCoordinates, isValidMax, isValidMin, isXHoursAfter, isXHoursBefore, useDraftFormHelpers };
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { SxProps, Theme } from '@mui/material';
|
|
|
3
3
|
import { Moment } from 'moment-timezone';
|
|
4
4
|
import { DateTimePickerProps, DateTimePickerSlotsComponentsProps } from '@mui/x-date-pickers';
|
|
5
5
|
import { ReactHookFormInput } from './types';
|
|
6
|
+
export declare const DATE_FORMAT_FNS = "dd/MM/yyyy HH:mm";
|
|
6
7
|
export declare const getFormattedValue: (value: Moment | string) => string | Moment;
|
|
7
8
|
type ReactHookKeyboardDateTimePickerProps = DateTimePickerProps<Moment> & DateTimePickerSlotsComponentsProps<Moment> & ReactHookFormInput<{
|
|
8
9
|
defaultNullValue?: string | null;
|
|
@@ -4,6 +4,7 @@ export { default as ReactHookFormTextField } from './ReactHookFormTextField';
|
|
|
4
4
|
export { default as ReactHookFormNumberField } from './ReactHookFormNumberField';
|
|
5
5
|
export { default as ReactHookFormFormControl } from './ReactHookFormFormControl';
|
|
6
6
|
export { default as ReactHookFormDateTime } from './ReactHookFormDateTime';
|
|
7
|
+
export * from './ReactHookFormDateTime';
|
|
7
8
|
export { default as ReactHookFormProvider } from './ReactHookFormProvider';
|
|
8
9
|
export { default as ReactHookFormHiddenInput } from './ReactHookFormHiddenInput';
|
|
9
10
|
export { defaultFormOptions } from './ReactHookFormProvider';
|