@bsol-oss/react-datatable5 12.0.0-beta.3 → 12.0.0-beta.4
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/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3772,10 +3772,11 @@ const DatePicker = ({ column, schema, prefix }) => {
|
|
|
3772
3772
|
const colLabel = `${prefix}${column}`;
|
|
3773
3773
|
const [open, setOpen] = React.useState(false);
|
|
3774
3774
|
const selectedDate = watch(colLabel);
|
|
3775
|
+
const formatedDate = dayjs(selectedDate).format("YYYY-MM-DD");
|
|
3775
3776
|
return (jsxRuntime.jsxs(Field, { label: `${translate.t(removeIndex(`${colLabel}.fieldLabel`))}`, required: isRequired, alignItems: "stretch", gridColumn,
|
|
3776
3777
|
gridRow, children: [jsxRuntime.jsxs(PopoverRoot, { open: open, onOpenChange: (e) => setOpen(e.open), closeOnInteractOutside: true, children: [jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: jsxRuntime.jsx(Button, { size: "sm", variant: "outline", onClick: () => {
|
|
3777
3778
|
setOpen(true);
|
|
3778
|
-
}, children: selectedDate !== undefined ?
|
|
3779
|
+
}, children: selectedDate !== undefined ? `${formatedDate}` : "" }) }), jsxRuntime.jsx(PopoverContent, { children: jsxRuntime.jsxs(PopoverBody, { children: [jsxRuntime.jsx(PopoverTitle, {}), jsxRuntime.jsx(DatePicker$1
|
|
3779
3780
|
// @ts-expect-error TODO: find appropriate types
|
|
3780
3781
|
, {
|
|
3781
3782
|
// @ts-expect-error TODO: find appropriate types
|
package/dist/index.mjs
CHANGED
|
@@ -3752,10 +3752,11 @@ const DatePicker = ({ column, schema, prefix }) => {
|
|
|
3752
3752
|
const colLabel = `${prefix}${column}`;
|
|
3753
3753
|
const [open, setOpen] = useState(false);
|
|
3754
3754
|
const selectedDate = watch(colLabel);
|
|
3755
|
+
const formatedDate = dayjs(selectedDate).format("YYYY-MM-DD");
|
|
3755
3756
|
return (jsxs(Field, { label: `${translate.t(removeIndex(`${colLabel}.fieldLabel`))}`, required: isRequired, alignItems: "stretch", gridColumn,
|
|
3756
3757
|
gridRow, children: [jsxs(PopoverRoot, { open: open, onOpenChange: (e) => setOpen(e.open), closeOnInteractOutside: true, children: [jsx(PopoverTrigger, { asChild: true, children: jsx(Button, { size: "sm", variant: "outline", onClick: () => {
|
|
3757
3758
|
setOpen(true);
|
|
3758
|
-
}, children: selectedDate !== undefined ?
|
|
3759
|
+
}, children: selectedDate !== undefined ? `${formatedDate}` : "" }) }), jsx(PopoverContent, { children: jsxs(PopoverBody, { children: [jsx(PopoverTitle, {}), jsx(DatePicker$1
|
|
3759
3760
|
// @ts-expect-error TODO: find appropriate types
|
|
3760
3761
|
, {
|
|
3761
3762
|
// @ts-expect-error TODO: find appropriate types
|