@apexcura/ui-components 0.0.14-Beta293 → 0.0.14-Beta294

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
@@ -885,7 +885,9 @@ var DateRangePickerElement = (props) => {
885
885
  if (start && start.isBefore(today) && end && end.isAfter(today)) {
886
886
  end = today;
887
887
  }
888
- const adjustedDates = [start, end].map((date) => date ? date.format("DD-MM-YYYY") : null);
888
+ const adjustedDates = [start, end].map(
889
+ (date) => date ? date.format("DD-MM-YYYY") : null
890
+ );
889
891
  props.onChange && props.onChange(adjustedDates);
890
892
  } else {
891
893
  props.onChange && props.onChange("");
@@ -909,8 +911,12 @@ var DateRangePickerElement = (props) => {
909
911
  if (start && start.isBefore(today) && end && end.isAfter(today)) {
910
912
  end = today;
911
913
  }
912
- const adjustedDates = [start, end];
914
+ const adjustedDates = [start, end].map(
915
+ (date) => date ? date.format("DD-MM-YYYY") : null
916
+ );
913
917
  props.onChange && props.onChange(adjustedDates);
918
+ } else {
919
+ props.onChange && props.onChange("");
914
920
  }
915
921
  };
916
922
  return /* @__PURE__ */ import_react21.default.createElement(import_antd15.Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ import_react21.default.createElement(
package/dist/index.mjs CHANGED
@@ -818,7 +818,9 @@ var DateRangePickerElement = (props) => {
818
818
  if (start && start.isBefore(today) && end && end.isAfter(today)) {
819
819
  end = today;
820
820
  }
821
- const adjustedDates = [start, end].map((date) => date ? date.format("DD-MM-YYYY") : null);
821
+ const adjustedDates = [start, end].map(
822
+ (date) => date ? date.format("DD-MM-YYYY") : null
823
+ );
822
824
  props.onChange && props.onChange(adjustedDates);
823
825
  } else {
824
826
  props.onChange && props.onChange("");
@@ -842,8 +844,12 @@ var DateRangePickerElement = (props) => {
842
844
  if (start && start.isBefore(today) && end && end.isAfter(today)) {
843
845
  end = today;
844
846
  }
845
- const adjustedDates = [start, end];
847
+ const adjustedDates = [start, end].map(
848
+ (date) => date ? date.format("DD-MM-YYYY") : null
849
+ );
846
850
  props.onChange && props.onChange(adjustedDates);
851
+ } else {
852
+ props.onChange && props.onChange("");
847
853
  }
848
854
  };
849
855
  return /* @__PURE__ */ React21.createElement(Space, { direction: "vertical", size: 12 }, /* @__PURE__ */ React21.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14-Beta293",
3
+ "version": "0.0.14-Beta294",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",