@apexcura/ui-components 0.0.14-Beta200 → 0.0.14-Beta202

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 CHANGED
@@ -898,8 +898,11 @@ var DateRangePickerElement = (props) => {
898
898
  const { value } = props;
899
899
  const { RangePicker } = import_antd16.DatePicker;
900
900
  const handleChange = (dates, dateStrings) => {
901
+ console.log(dateStrings);
901
902
  if (dates) {
902
- props.onChange && props.onChange(dateStrings);
903
+ const formattedDate = (0, import_moment3.default)(dateStrings).format("DD-MM-YYYY");
904
+ console.log("formattedDate", formattedDate);
905
+ props.onChange && props.onChange(formattedDate);
903
906
  } else {
904
907
  props.onChange && props.onChange("");
905
908
  }
@@ -919,7 +922,7 @@ var DateRangePickerElement = (props) => {
919
922
  disabledDate,
920
923
  presets: rangePresets,
921
924
  onChange: handleChange,
922
- value: value && [(0, import_dayjs2.default)(value[0]), (0, import_dayjs2.default)(value[1])]
925
+ value: value && [(0, import_dayjs2.default)(value[0].format("DD-MM-YYYY")), (0, import_dayjs2.default)(value[1].format("DD-MM-YYYY"))]
923
926
  }
924
927
  ));
925
928
  };
package/dist/index.mjs CHANGED
@@ -832,8 +832,11 @@ var DateRangePickerElement = (props) => {
832
832
  const { value } = props;
833
833
  const { RangePicker } = DatePicker2;
834
834
  const handleChange = (dates, dateStrings) => {
835
+ console.log(dateStrings);
835
836
  if (dates) {
836
- props.onChange && props.onChange(dateStrings);
837
+ const formattedDate = moment3(dateStrings).format("DD-MM-YYYY");
838
+ console.log("formattedDate", formattedDate);
839
+ props.onChange && props.onChange(formattedDate);
837
840
  } else {
838
841
  props.onChange && props.onChange("");
839
842
  }
@@ -853,7 +856,7 @@ var DateRangePickerElement = (props) => {
853
856
  disabledDate,
854
857
  presets: rangePresets,
855
858
  onChange: handleChange,
856
- value: value && [dayjs2(value[0]), dayjs2(value[1])]
859
+ value: value && [dayjs2(value[0].format("DD-MM-YYYY")), dayjs2(value[1].format("DD-MM-YYYY"))]
857
860
  }
858
861
  ));
859
862
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta200",
3
+ "version": "0.0.14-Beta202",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",