@acvl/frontend-components 0.0.19 → 0.0.21
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -25432,7 +25432,7 @@ const ControlledDate = (props) => {
|
|
|
25432
25432
|
case "date":
|
|
25433
25433
|
return (jsx(DatePicker, { ...pickerProps, ...props.fieldProps }));
|
|
25434
25434
|
case "datetime":
|
|
25435
|
-
return (jsx(DateTimePicker, { ...
|
|
25435
|
+
return (jsx(DateTimePicker, { ...pickerProps, views: ['year', 'month', 'day', 'hours', 'minutes'], ampm: false, ...props.fieldProps }));
|
|
25436
25436
|
}
|
|
25437
25437
|
};
|
|
25438
25438
|
const renderController = (name, type) => {
|
|
@@ -25441,7 +25441,7 @@ const ControlledDate = (props) => {
|
|
|
25441
25441
|
switch (type) {
|
|
25442
25442
|
case "datetime":
|
|
25443
25443
|
if (val) {
|
|
25444
|
-
onChange(dayjs(val).format('YYYY-MM-
|
|
25444
|
+
onChange(dayjs(val).format('YYYY-MM-DDTHH:mm:ssZ'));
|
|
25445
25445
|
}
|
|
25446
25446
|
else {
|
|
25447
25447
|
onChange(null);
|