@apexcura/ui-components 0.0.14-Beta290 → 0.0.14-Beta292
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 +6 -12
- package/dist/index.mjs +6 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -898,18 +898,12 @@ var DateRangePickerElement = (props) => {
|
|
|
898
898
|
{ label: "Last 30 Days", value: [(0, import_dayjs2.default)().subtract(29, "d"), today] },
|
|
899
899
|
{ label: "Last 90 Days", value: [(0, import_dayjs2.default)().subtract(89, "d"), today] }
|
|
900
900
|
];
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
disabledDate = (current2) => {
|
|
908
|
-
return current2 && current2 > (0, import_moment2.default)();
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
}
|
|
901
|
+
const disabledDate = (current) => {
|
|
902
|
+
if (props.weekrange) {
|
|
903
|
+
return current && current < today.subtract(7, "d");
|
|
904
|
+
}
|
|
905
|
+
return current && current > (0, import_moment2.default)();
|
|
906
|
+
};
|
|
913
907
|
const handleCalendarChange = (dates) => {
|
|
914
908
|
if (dates) {
|
|
915
909
|
let [start, end] = dates;
|
package/dist/index.mjs
CHANGED
|
@@ -831,18 +831,12 @@ var DateRangePickerElement = (props) => {
|
|
|
831
831
|
{ label: "Last 30 Days", value: [dayjs2().subtract(29, "d"), today] },
|
|
832
832
|
{ label: "Last 90 Days", value: [dayjs2().subtract(89, "d"), today] }
|
|
833
833
|
];
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
disabledDate = (current2) => {
|
|
841
|
-
return current2 && current2 > moment2();
|
|
842
|
-
};
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
|
-
}
|
|
834
|
+
const disabledDate = (current) => {
|
|
835
|
+
if (props.weekrange) {
|
|
836
|
+
return current && current < today.subtract(7, "d");
|
|
837
|
+
}
|
|
838
|
+
return current && current > moment2();
|
|
839
|
+
};
|
|
846
840
|
const handleCalendarChange = (dates) => {
|
|
847
841
|
if (dates) {
|
|
848
842
|
let [start, end] = dates;
|