@dmsi/wedgekit-react 0.0.852 → 0.0.853
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/{chunk-ILHEM6BK.js → chunk-T7NSOCGM.js} +51 -40
- package/dist/components/CalendarRange.cjs +50 -39
- package/dist/components/CalendarRange.css +3 -0
- package/dist/components/CalendarRange.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +50 -39
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +3 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +50 -39
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +3 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -1
- package/dist/components/DataGrid/PinnedColumns.cjs +50 -39
- package/dist/components/DataGrid/PinnedColumns.css +3 -0
- package/dist/components/DataGrid/PinnedColumns.js +1 -1
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +50 -39
- package/dist/components/DataGrid/TableBody/LoadingCell.css +3 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -1
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +50 -39
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +3 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -1
- package/dist/components/DataGrid/TableBody/index.cjs +50 -39
- package/dist/components/DataGrid/TableBody/index.css +3 -0
- package/dist/components/DataGrid/TableBody/index.js +1 -1
- package/dist/components/DataGrid/index.cjs +50 -39
- package/dist/components/DataGrid/index.css +3 -0
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DataGrid/utils.cjs +50 -39
- package/dist/components/DataGrid/utils.css +3 -0
- package/dist/components/DataGrid/utils.js +1 -1
- package/dist/components/DateInput.cjs +50 -39
- package/dist/components/DateInput.css +3 -0
- package/dist/components/DateInput.js +1 -1
- package/dist/components/DateRangeInput.cjs +50 -39
- package/dist/components/DateRangeInput.css +3 -0
- package/dist/components/DateRangeInput.js +1 -1
- package/dist/components/MobileDataGrid/ColumnList.css +3 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +50 -39
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +3 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +50 -39
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +3 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -1
- package/dist/components/MobileDataGrid/index.cjs +50 -39
- package/dist/components/MobileDataGrid/index.css +3 -0
- package/dist/components/MobileDataGrid/index.js +1 -1
- package/dist/components/index.cjs +50 -39
- package/dist/components/index.css +3 -0
- package/dist/components/index.js +1 -1
- package/dist/index.css +3 -0
- package/package.json +1 -1
|
@@ -4927,17 +4927,6 @@ var DateInput = (_a) => {
|
|
|
4927
4927
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
4928
4928
|
};
|
|
4929
4929
|
});
|
|
4930
|
-
(0, import_react21.useEffect)(() => {
|
|
4931
|
-
const handleClickOutside = (event) => {
|
|
4932
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4933
|
-
setVisible(false);
|
|
4934
|
-
}
|
|
4935
|
-
};
|
|
4936
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
4937
|
-
return () => {
|
|
4938
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
4939
|
-
};
|
|
4940
|
-
}, []);
|
|
4941
4930
|
function handleDateChange(fromValue) {
|
|
4942
4931
|
onChange(fromValue);
|
|
4943
4932
|
setVisible(false);
|
|
@@ -5039,34 +5028,56 @@ var DateInput = (_a) => {
|
|
|
5039
5028
|
})
|
|
5040
5029
|
),
|
|
5041
5030
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
5042
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5031
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
5032
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5033
|
+
"div",
|
|
5034
|
+
{
|
|
5035
|
+
className: "fixed inset-0 z-30",
|
|
5036
|
+
onClick: () => setVisible(false),
|
|
5037
|
+
onMouseDown: (e) => {
|
|
5038
|
+
e.preventDefault();
|
|
5039
|
+
},
|
|
5040
|
+
onWheel: (e) => {
|
|
5041
|
+
var _a2;
|
|
5042
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5043
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5044
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5045
|
+
},
|
|
5046
|
+
onTouchMove: (e) => {
|
|
5047
|
+
e.stopPropagation();
|
|
5048
|
+
},
|
|
5049
|
+
style: { touchAction: "pan-y pan-x" },
|
|
5050
|
+
"aria-hidden": "true"
|
|
5051
|
+
}
|
|
5052
|
+
),
|
|
5053
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5054
|
+
"div",
|
|
5055
|
+
{
|
|
5056
|
+
ref: (el) => {
|
|
5057
|
+
popoverRef.current = el;
|
|
5058
|
+
},
|
|
5059
|
+
className: "absolute z-50 bg-white",
|
|
5060
|
+
style: {
|
|
5061
|
+
top: `${calendarPosition.top + 4}px`,
|
|
5062
|
+
left: `${calendarPosition.left}px`
|
|
5063
|
+
},
|
|
5064
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5065
|
+
CalendarRange,
|
|
5066
|
+
{
|
|
5067
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5068
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5069
|
+
from,
|
|
5070
|
+
to: to || from,
|
|
5071
|
+
onChange: handleDateChange,
|
|
5072
|
+
cardStyle: true,
|
|
5073
|
+
mode: "single",
|
|
5074
|
+
disableRange: true,
|
|
5075
|
+
isDateAvailable
|
|
5076
|
+
}
|
|
5077
|
+
)
|
|
5078
|
+
}
|
|
5079
|
+
)
|
|
5080
|
+
] }),
|
|
5070
5081
|
findDocumentRoot(popoverRef.current)
|
|
5071
5082
|
)
|
|
5072
5083
|
] });
|
|
@@ -4854,17 +4854,6 @@ var DateInput = (_a) => {
|
|
|
4854
4854
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
4855
4855
|
};
|
|
4856
4856
|
});
|
|
4857
|
-
(0, import_react20.useEffect)(() => {
|
|
4858
|
-
const handleClickOutside = (event) => {
|
|
4859
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4860
|
-
setVisible(false);
|
|
4861
|
-
}
|
|
4862
|
-
};
|
|
4863
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
4864
|
-
return () => {
|
|
4865
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
4866
|
-
};
|
|
4867
|
-
}, []);
|
|
4868
4857
|
function handleDateChange(fromValue) {
|
|
4869
4858
|
onChange(fromValue);
|
|
4870
4859
|
setVisible(false);
|
|
@@ -4966,34 +4955,56 @@ var DateInput = (_a) => {
|
|
|
4966
4955
|
})
|
|
4967
4956
|
),
|
|
4968
4957
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
4969
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4958
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
4959
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4960
|
+
"div",
|
|
4961
|
+
{
|
|
4962
|
+
className: "fixed inset-0 z-30",
|
|
4963
|
+
onClick: () => setVisible(false),
|
|
4964
|
+
onMouseDown: (e) => {
|
|
4965
|
+
e.preventDefault();
|
|
4966
|
+
},
|
|
4967
|
+
onWheel: (e) => {
|
|
4968
|
+
var _a2;
|
|
4969
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
4970
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
4971
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
4972
|
+
},
|
|
4973
|
+
onTouchMove: (e) => {
|
|
4974
|
+
e.stopPropagation();
|
|
4975
|
+
},
|
|
4976
|
+
style: { touchAction: "pan-y pan-x" },
|
|
4977
|
+
"aria-hidden": "true"
|
|
4978
|
+
}
|
|
4979
|
+
),
|
|
4980
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4981
|
+
"div",
|
|
4982
|
+
{
|
|
4983
|
+
ref: (el) => {
|
|
4984
|
+
popoverRef.current = el;
|
|
4985
|
+
},
|
|
4986
|
+
className: "absolute z-50 bg-white",
|
|
4987
|
+
style: {
|
|
4988
|
+
top: `${calendarPosition.top + 4}px`,
|
|
4989
|
+
left: `${calendarPosition.left}px`
|
|
4990
|
+
},
|
|
4991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4992
|
+
CalendarRange,
|
|
4993
|
+
{
|
|
4994
|
+
id: id ? `${id}-calendar` : void 0,
|
|
4995
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
4996
|
+
from,
|
|
4997
|
+
to: to || from,
|
|
4998
|
+
onChange: handleDateChange,
|
|
4999
|
+
cardStyle: true,
|
|
5000
|
+
mode: "single",
|
|
5001
|
+
disableRange: true,
|
|
5002
|
+
isDateAvailable
|
|
5003
|
+
}
|
|
5004
|
+
)
|
|
5005
|
+
}
|
|
5006
|
+
)
|
|
5007
|
+
] }),
|
|
4997
5008
|
findDocumentRoot(popoverRef.current)
|
|
4998
5009
|
)
|
|
4999
5010
|
] });
|
|
@@ -4666,17 +4666,6 @@ var DateInput = (_a) => {
|
|
|
4666
4666
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
4667
4667
|
};
|
|
4668
4668
|
});
|
|
4669
|
-
(0, import_react20.useEffect)(() => {
|
|
4670
|
-
const handleClickOutside = (event) => {
|
|
4671
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4672
|
-
setVisible(false);
|
|
4673
|
-
}
|
|
4674
|
-
};
|
|
4675
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
4676
|
-
return () => {
|
|
4677
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
4678
|
-
};
|
|
4679
|
-
}, []);
|
|
4680
4669
|
function handleDateChange(fromValue) {
|
|
4681
4670
|
onChange(fromValue);
|
|
4682
4671
|
setVisible(false);
|
|
@@ -4778,34 +4767,56 @@ var DateInput = (_a) => {
|
|
|
4778
4767
|
})
|
|
4779
4768
|
),
|
|
4780
4769
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
4781
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4770
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
4771
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4772
|
+
"div",
|
|
4773
|
+
{
|
|
4774
|
+
className: "fixed inset-0 z-30",
|
|
4775
|
+
onClick: () => setVisible(false),
|
|
4776
|
+
onMouseDown: (e) => {
|
|
4777
|
+
e.preventDefault();
|
|
4778
|
+
},
|
|
4779
|
+
onWheel: (e) => {
|
|
4780
|
+
var _a2;
|
|
4781
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
4782
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
4783
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
4784
|
+
},
|
|
4785
|
+
onTouchMove: (e) => {
|
|
4786
|
+
e.stopPropagation();
|
|
4787
|
+
},
|
|
4788
|
+
style: { touchAction: "pan-y pan-x" },
|
|
4789
|
+
"aria-hidden": "true"
|
|
4790
|
+
}
|
|
4791
|
+
),
|
|
4792
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4793
|
+
"div",
|
|
4794
|
+
{
|
|
4795
|
+
ref: (el) => {
|
|
4796
|
+
popoverRef.current = el;
|
|
4797
|
+
},
|
|
4798
|
+
className: "absolute z-50 bg-white",
|
|
4799
|
+
style: {
|
|
4800
|
+
top: `${calendarPosition.top + 4}px`,
|
|
4801
|
+
left: `${calendarPosition.left}px`
|
|
4802
|
+
},
|
|
4803
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4804
|
+
CalendarRange,
|
|
4805
|
+
{
|
|
4806
|
+
id: id ? `${id}-calendar` : void 0,
|
|
4807
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
4808
|
+
from,
|
|
4809
|
+
to: to || from,
|
|
4810
|
+
onChange: handleDateChange,
|
|
4811
|
+
cardStyle: true,
|
|
4812
|
+
mode: "single",
|
|
4813
|
+
disableRange: true,
|
|
4814
|
+
isDateAvailable
|
|
4815
|
+
}
|
|
4816
|
+
)
|
|
4817
|
+
}
|
|
4818
|
+
)
|
|
4819
|
+
] }),
|
|
4809
4820
|
findDocumentRoot(popoverRef.current)
|
|
4810
4821
|
)
|
|
4811
4822
|
] });
|
|
@@ -3798,17 +3798,6 @@ var DateInput = (_a) => {
|
|
|
3798
3798
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
3799
3799
|
};
|
|
3800
3800
|
});
|
|
3801
|
-
(0, import_react16.useEffect)(() => {
|
|
3802
|
-
const handleClickOutside = (event) => {
|
|
3803
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
3804
|
-
setVisible(false);
|
|
3805
|
-
}
|
|
3806
|
-
};
|
|
3807
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
3808
|
-
return () => {
|
|
3809
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
3810
|
-
};
|
|
3811
|
-
}, []);
|
|
3812
3801
|
function handleDateChange(fromValue) {
|
|
3813
3802
|
onChange(fromValue);
|
|
3814
3803
|
setVisible(false);
|
|
@@ -3910,34 +3899,56 @@ var DateInput = (_a) => {
|
|
|
3910
3899
|
})
|
|
3911
3900
|
),
|
|
3912
3901
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
3913
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3902
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
3903
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3904
|
+
"div",
|
|
3905
|
+
{
|
|
3906
|
+
className: "fixed inset-0 z-30",
|
|
3907
|
+
onClick: () => setVisible(false),
|
|
3908
|
+
onMouseDown: (e) => {
|
|
3909
|
+
e.preventDefault();
|
|
3910
|
+
},
|
|
3911
|
+
onWheel: (e) => {
|
|
3912
|
+
var _a2;
|
|
3913
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
3914
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
3915
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
3916
|
+
},
|
|
3917
|
+
onTouchMove: (e) => {
|
|
3918
|
+
e.stopPropagation();
|
|
3919
|
+
},
|
|
3920
|
+
style: { touchAction: "pan-y pan-x" },
|
|
3921
|
+
"aria-hidden": "true"
|
|
3922
|
+
}
|
|
3923
|
+
),
|
|
3924
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3925
|
+
"div",
|
|
3926
|
+
{
|
|
3927
|
+
ref: (el) => {
|
|
3928
|
+
popoverRef.current = el;
|
|
3929
|
+
},
|
|
3930
|
+
className: "absolute z-50 bg-white",
|
|
3931
|
+
style: {
|
|
3932
|
+
top: `${calendarPosition.top + 4}px`,
|
|
3933
|
+
left: `${calendarPosition.left}px`
|
|
3934
|
+
},
|
|
3935
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3936
|
+
CalendarRange,
|
|
3937
|
+
{
|
|
3938
|
+
id: id ? `${id}-calendar` : void 0,
|
|
3939
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
3940
|
+
from,
|
|
3941
|
+
to: to || from,
|
|
3942
|
+
onChange: handleDateChange,
|
|
3943
|
+
cardStyle: true,
|
|
3944
|
+
mode: "single",
|
|
3945
|
+
disableRange: true,
|
|
3946
|
+
isDateAvailable
|
|
3947
|
+
}
|
|
3948
|
+
)
|
|
3949
|
+
}
|
|
3950
|
+
)
|
|
3951
|
+
] }),
|
|
3941
3952
|
findDocumentRoot(popoverRef.current)
|
|
3942
3953
|
)
|
|
3943
3954
|
] });
|
|
@@ -4946,17 +4946,6 @@ var DateInput = (_a) => {
|
|
|
4946
4946
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
4947
4947
|
};
|
|
4948
4948
|
});
|
|
4949
|
-
(0, import_react21.useEffect)(() => {
|
|
4950
|
-
const handleClickOutside = (event) => {
|
|
4951
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4952
|
-
setVisible(false);
|
|
4953
|
-
}
|
|
4954
|
-
};
|
|
4955
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
4956
|
-
return () => {
|
|
4957
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
4958
|
-
};
|
|
4959
|
-
}, []);
|
|
4960
4949
|
function handleDateChange(fromValue) {
|
|
4961
4950
|
onChange(fromValue);
|
|
4962
4951
|
setVisible(false);
|
|
@@ -5058,34 +5047,56 @@ var DateInput = (_a) => {
|
|
|
5058
5047
|
})
|
|
5059
5048
|
),
|
|
5060
5049
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
5061
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5050
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
5051
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5052
|
+
"div",
|
|
5053
|
+
{
|
|
5054
|
+
className: "fixed inset-0 z-30",
|
|
5055
|
+
onClick: () => setVisible(false),
|
|
5056
|
+
onMouseDown: (e) => {
|
|
5057
|
+
e.preventDefault();
|
|
5058
|
+
},
|
|
5059
|
+
onWheel: (e) => {
|
|
5060
|
+
var _a2;
|
|
5061
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5062
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5063
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5064
|
+
},
|
|
5065
|
+
onTouchMove: (e) => {
|
|
5066
|
+
e.stopPropagation();
|
|
5067
|
+
},
|
|
5068
|
+
style: { touchAction: "pan-y pan-x" },
|
|
5069
|
+
"aria-hidden": "true"
|
|
5070
|
+
}
|
|
5071
|
+
),
|
|
5072
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5073
|
+
"div",
|
|
5074
|
+
{
|
|
5075
|
+
ref: (el) => {
|
|
5076
|
+
popoverRef.current = el;
|
|
5077
|
+
},
|
|
5078
|
+
className: "absolute z-50 bg-white",
|
|
5079
|
+
style: {
|
|
5080
|
+
top: `${calendarPosition.top + 4}px`,
|
|
5081
|
+
left: `${calendarPosition.left}px`
|
|
5082
|
+
},
|
|
5083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
5084
|
+
CalendarRange,
|
|
5085
|
+
{
|
|
5086
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5087
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5088
|
+
from,
|
|
5089
|
+
to: to || from,
|
|
5090
|
+
onChange: handleDateChange,
|
|
5091
|
+
cardStyle: true,
|
|
5092
|
+
mode: "single",
|
|
5093
|
+
disableRange: true,
|
|
5094
|
+
isDateAvailable
|
|
5095
|
+
}
|
|
5096
|
+
)
|
|
5097
|
+
}
|
|
5098
|
+
)
|
|
5099
|
+
] }),
|
|
5089
5100
|
findDocumentRoot(popoverRef.current)
|
|
5090
5101
|
)
|
|
5091
5102
|
] });
|