@apexcura/ui-components 0.0.14-Beta292 → 0.0.14-Beta293
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 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -874,7 +874,6 @@ var DatePickerElement = (props) => {
|
|
|
874
874
|
var import_react21 = __toESM(require("react"));
|
|
875
875
|
var import_antd15 = require("antd");
|
|
876
876
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
877
|
-
var import_moment2 = __toESM(require("moment"));
|
|
878
877
|
var DateRangePickerElement = (props) => {
|
|
879
878
|
const { value } = props;
|
|
880
879
|
const { RangePicker } = import_antd15.DatePicker;
|
|
@@ -900,9 +899,9 @@ var DateRangePickerElement = (props) => {
|
|
|
900
899
|
];
|
|
901
900
|
const disabledDate = (current) => {
|
|
902
901
|
if (props.weekrange) {
|
|
903
|
-
return current && current < today.subtract(7, "d");
|
|
902
|
+
return current && current < today.subtract(7, "d") || current > today;
|
|
904
903
|
}
|
|
905
|
-
return current && current >
|
|
904
|
+
return current && current > today;
|
|
906
905
|
};
|
|
907
906
|
const handleCalendarChange = (dates) => {
|
|
908
907
|
if (dates) {
|
package/dist/index.mjs
CHANGED
|
@@ -807,7 +807,6 @@ var DatePickerElement = (props) => {
|
|
|
807
807
|
import React21 from "react";
|
|
808
808
|
import { DatePicker as DatePicker2, Space } from "antd";
|
|
809
809
|
import dayjs2 from "dayjs";
|
|
810
|
-
import moment2 from "moment";
|
|
811
810
|
var DateRangePickerElement = (props) => {
|
|
812
811
|
const { value } = props;
|
|
813
812
|
const { RangePicker } = DatePicker2;
|
|
@@ -833,9 +832,9 @@ var DateRangePickerElement = (props) => {
|
|
|
833
832
|
];
|
|
834
833
|
const disabledDate = (current) => {
|
|
835
834
|
if (props.weekrange) {
|
|
836
|
-
return current && current < today.subtract(7, "d");
|
|
835
|
+
return current && current < today.subtract(7, "d") || current > today;
|
|
837
836
|
}
|
|
838
|
-
return current && current >
|
|
837
|
+
return current && current > today;
|
|
839
838
|
};
|
|
840
839
|
const handleCalendarChange = (dates) => {
|
|
841
840
|
if (dates) {
|