@apexcura/ui-components 0.0.14-Beta283 → 0.0.14-Beta285
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 -5
- package/dist/index.mjs +2 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -886,7 +886,7 @@ var DateRangePickerElement = (props) => {
|
|
|
886
886
|
if (end && end.isAfter(today2)) {
|
|
887
887
|
end = today2;
|
|
888
888
|
}
|
|
889
|
-
if (start && start.
|
|
889
|
+
if (start && end && start.isSame(today2)) {
|
|
890
890
|
start = today2;
|
|
891
891
|
}
|
|
892
892
|
const adjustedDates = [start, end].map((date) => date ? date.format("DD-MM-YYYY") : null);
|
|
@@ -919,10 +919,7 @@ var DateRangePickerElement = (props) => {
|
|
|
919
919
|
if (dates) {
|
|
920
920
|
let [start, end] = dates;
|
|
921
921
|
const today2 = (0, import_dayjs2.default)();
|
|
922
|
-
if (end &&
|
|
923
|
-
end = today2;
|
|
924
|
-
}
|
|
925
|
-
if (start && start.isAfter(today2)) {
|
|
922
|
+
if (start && end && start.isSame(today2)) {
|
|
926
923
|
start = today2;
|
|
927
924
|
}
|
|
928
925
|
if (start && end && (start.isSame(today2) || end.isAfter(today2))) {
|
package/dist/index.mjs
CHANGED
|
@@ -819,7 +819,7 @@ var DateRangePickerElement = (props) => {
|
|
|
819
819
|
if (end && end.isAfter(today2)) {
|
|
820
820
|
end = today2;
|
|
821
821
|
}
|
|
822
|
-
if (start && start.
|
|
822
|
+
if (start && end && start.isSame(today2)) {
|
|
823
823
|
start = today2;
|
|
824
824
|
}
|
|
825
825
|
const adjustedDates = [start, end].map((date) => date ? date.format("DD-MM-YYYY") : null);
|
|
@@ -852,10 +852,7 @@ var DateRangePickerElement = (props) => {
|
|
|
852
852
|
if (dates) {
|
|
853
853
|
let [start, end] = dates;
|
|
854
854
|
const today2 = dayjs2();
|
|
855
|
-
if (end &&
|
|
856
|
-
end = today2;
|
|
857
|
-
}
|
|
858
|
-
if (start && start.isAfter(today2)) {
|
|
855
|
+
if (start && end && start.isSame(today2)) {
|
|
859
856
|
start = today2;
|
|
860
857
|
}
|
|
861
858
|
if (start && end && (start.isSame(today2) || end.isAfter(today2))) {
|