@apexcura/ui-components 0.0.11-Beta178 → 0.0.11-Beta179
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 +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -651,10 +651,11 @@ var import_icons4 = require("@ant-design/icons");
|
|
|
651
651
|
var import_moment = __toESM(require("moment"));
|
|
652
652
|
var DatePickerElement = (props) => {
|
|
653
653
|
const [date, setDate] = (0, import_react20.useState)(null);
|
|
654
|
-
const handleChange = (date2) => {
|
|
654
|
+
const handleChange = (date2, dateString) => {
|
|
655
655
|
console.log("date---------", date2);
|
|
656
|
+
console.log("datestring", dateString);
|
|
656
657
|
if (date2) {
|
|
657
|
-
const formattedDate =
|
|
658
|
+
const formattedDate = dateString.format("lll");
|
|
658
659
|
console.log("formattedDate-----------------", formattedDate);
|
|
659
660
|
setDate(date2);
|
|
660
661
|
console.log("changedDate------------", date2);
|
package/dist/index.mjs
CHANGED
|
@@ -600,10 +600,11 @@ import { LeftOutlined, RightOutlined } from "@ant-design/icons";
|
|
|
600
600
|
import moment from "moment";
|
|
601
601
|
var DatePickerElement = (props) => {
|
|
602
602
|
const [date, setDate] = useState5(null);
|
|
603
|
-
const handleChange = (date2) => {
|
|
603
|
+
const handleChange = (date2, dateString) => {
|
|
604
604
|
console.log("date---------", date2);
|
|
605
|
+
console.log("datestring", dateString);
|
|
605
606
|
if (date2) {
|
|
606
|
-
const formattedDate =
|
|
607
|
+
const formattedDate = dateString.format("lll");
|
|
607
608
|
console.log("formattedDate-----------------", formattedDate);
|
|
608
609
|
setDate(date2);
|
|
609
610
|
console.log("changedDate------------", date2);
|