@dmsi/wedgekit-react 0.0.851 → 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
|
@@ -5912,17 +5912,6 @@ var DateInput = (_a) => {
|
|
|
5912
5912
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
5913
5913
|
};
|
|
5914
5914
|
});
|
|
5915
|
-
(0, import_react40.useEffect)(() => {
|
|
5916
|
-
const handleClickOutside = (event) => {
|
|
5917
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
5918
|
-
setVisible(false);
|
|
5919
|
-
}
|
|
5920
|
-
};
|
|
5921
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
5922
|
-
return () => {
|
|
5923
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
5924
|
-
};
|
|
5925
|
-
}, []);
|
|
5926
5915
|
function handleDateChange(fromValue) {
|
|
5927
5916
|
onChange(fromValue);
|
|
5928
5917
|
setVisible(false);
|
|
@@ -6024,34 +6013,56 @@ var DateInput = (_a) => {
|
|
|
6024
6013
|
})
|
|
6025
6014
|
),
|
|
6026
6015
|
visible && !readOnly && (0, import_react_dom4.createPortal)(
|
|
6027
|
-
/* @__PURE__ */ (0, import_jsx_runtime67.
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6016
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
|
|
6017
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6018
|
+
"div",
|
|
6019
|
+
{
|
|
6020
|
+
className: "fixed inset-0 z-30",
|
|
6021
|
+
onClick: () => setVisible(false),
|
|
6022
|
+
onMouseDown: (e) => {
|
|
6023
|
+
e.preventDefault();
|
|
6024
|
+
},
|
|
6025
|
+
onWheel: (e) => {
|
|
6026
|
+
var _a2;
|
|
6027
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
6028
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
6029
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
6030
|
+
},
|
|
6031
|
+
onTouchMove: (e) => {
|
|
6032
|
+
e.stopPropagation();
|
|
6033
|
+
},
|
|
6034
|
+
style: { touchAction: "pan-y pan-x" },
|
|
6035
|
+
"aria-hidden": "true"
|
|
6036
|
+
}
|
|
6037
|
+
),
|
|
6038
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6039
|
+
"div",
|
|
6040
|
+
{
|
|
6041
|
+
ref: (el) => {
|
|
6042
|
+
popoverRef.current = el;
|
|
6043
|
+
},
|
|
6044
|
+
className: "absolute z-50 bg-white",
|
|
6045
|
+
style: {
|
|
6046
|
+
top: `${calendarPosition.top + 4}px`,
|
|
6047
|
+
left: `${calendarPosition.left}px`
|
|
6048
|
+
},
|
|
6049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6050
|
+
CalendarRange,
|
|
6051
|
+
{
|
|
6052
|
+
id: id ? `${id}-calendar` : void 0,
|
|
6053
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
6054
|
+
from,
|
|
6055
|
+
to: to || from,
|
|
6056
|
+
onChange: handleDateChange,
|
|
6057
|
+
cardStyle: true,
|
|
6058
|
+
mode: "single",
|
|
6059
|
+
disableRange: true,
|
|
6060
|
+
isDateAvailable
|
|
6061
|
+
}
|
|
6062
|
+
)
|
|
6063
|
+
}
|
|
6064
|
+
)
|
|
6065
|
+
] }),
|
|
6055
6066
|
findDocumentRoot(popoverRef.current)
|
|
6056
6067
|
)
|
|
6057
6068
|
] });
|
|
@@ -4510,17 +4510,6 @@ var DateInput = (_a) => {
|
|
|
4510
4510
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
4511
4511
|
};
|
|
4512
4512
|
});
|
|
4513
|
-
(0, import_react20.useEffect)(() => {
|
|
4514
|
-
const handleClickOutside = (event) => {
|
|
4515
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4516
|
-
setVisible(false);
|
|
4517
|
-
}
|
|
4518
|
-
};
|
|
4519
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
4520
|
-
return () => {
|
|
4521
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
4522
|
-
};
|
|
4523
|
-
}, []);
|
|
4524
4513
|
function handleDateChange(fromValue) {
|
|
4525
4514
|
onChange(fromValue);
|
|
4526
4515
|
setVisible(false);
|
|
@@ -4622,34 +4611,56 @@ var DateInput = (_a) => {
|
|
|
4622
4611
|
})
|
|
4623
4612
|
),
|
|
4624
4613
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
4625
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4614
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
|
|
4615
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4616
|
+
"div",
|
|
4617
|
+
{
|
|
4618
|
+
className: "fixed inset-0 z-30",
|
|
4619
|
+
onClick: () => setVisible(false),
|
|
4620
|
+
onMouseDown: (e) => {
|
|
4621
|
+
e.preventDefault();
|
|
4622
|
+
},
|
|
4623
|
+
onWheel: (e) => {
|
|
4624
|
+
var _a2;
|
|
4625
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
4626
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
4627
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
4628
|
+
},
|
|
4629
|
+
onTouchMove: (e) => {
|
|
4630
|
+
e.stopPropagation();
|
|
4631
|
+
},
|
|
4632
|
+
style: { touchAction: "pan-y pan-x" },
|
|
4633
|
+
"aria-hidden": "true"
|
|
4634
|
+
}
|
|
4635
|
+
),
|
|
4636
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4637
|
+
"div",
|
|
4638
|
+
{
|
|
4639
|
+
ref: (el) => {
|
|
4640
|
+
popoverRef.current = el;
|
|
4641
|
+
},
|
|
4642
|
+
className: "absolute z-50 bg-white",
|
|
4643
|
+
style: {
|
|
4644
|
+
top: `${calendarPosition.top + 4}px`,
|
|
4645
|
+
left: `${calendarPosition.left}px`
|
|
4646
|
+
},
|
|
4647
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4648
|
+
CalendarRange,
|
|
4649
|
+
{
|
|
4650
|
+
id: id ? `${id}-calendar` : void 0,
|
|
4651
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
4652
|
+
from,
|
|
4653
|
+
to: to || from,
|
|
4654
|
+
onChange: handleDateChange,
|
|
4655
|
+
cardStyle: true,
|
|
4656
|
+
mode: "single",
|
|
4657
|
+
disableRange: true,
|
|
4658
|
+
isDateAvailable
|
|
4659
|
+
}
|
|
4660
|
+
)
|
|
4661
|
+
}
|
|
4662
|
+
)
|
|
4663
|
+
] }),
|
|
4653
4664
|
findDocumentRoot(popoverRef.current)
|
|
4654
4665
|
)
|
|
4655
4666
|
] });
|
|
@@ -4963,17 +4963,6 @@ var DateInput = (_a) => {
|
|
|
4963
4963
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
4964
4964
|
};
|
|
4965
4965
|
});
|
|
4966
|
-
(0, import_react21.useEffect)(() => {
|
|
4967
|
-
const handleClickOutside = (event) => {
|
|
4968
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
4969
|
-
setVisible(false);
|
|
4970
|
-
}
|
|
4971
|
-
};
|
|
4972
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
4973
|
-
return () => {
|
|
4974
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
4975
|
-
};
|
|
4976
|
-
}, []);
|
|
4977
4966
|
function handleDateChange(fromValue) {
|
|
4978
4967
|
onChange(fromValue);
|
|
4979
4968
|
setVisible(false);
|
|
@@ -5075,34 +5064,56 @@ var DateInput = (_a) => {
|
|
|
5075
5064
|
})
|
|
5076
5065
|
),
|
|
5077
5066
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
5078
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5067
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
5068
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5069
|
+
"div",
|
|
5070
|
+
{
|
|
5071
|
+
className: "fixed inset-0 z-30",
|
|
5072
|
+
onClick: () => setVisible(false),
|
|
5073
|
+
onMouseDown: (e) => {
|
|
5074
|
+
e.preventDefault();
|
|
5075
|
+
},
|
|
5076
|
+
onWheel: (e) => {
|
|
5077
|
+
var _a2;
|
|
5078
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5079
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5080
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5081
|
+
},
|
|
5082
|
+
onTouchMove: (e) => {
|
|
5083
|
+
e.stopPropagation();
|
|
5084
|
+
},
|
|
5085
|
+
style: { touchAction: "pan-y pan-x" },
|
|
5086
|
+
"aria-hidden": "true"
|
|
5087
|
+
}
|
|
5088
|
+
),
|
|
5089
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5090
|
+
"div",
|
|
5091
|
+
{
|
|
5092
|
+
ref: (el) => {
|
|
5093
|
+
popoverRef.current = el;
|
|
5094
|
+
},
|
|
5095
|
+
className: "absolute z-50 bg-white",
|
|
5096
|
+
style: {
|
|
5097
|
+
top: `${calendarPosition.top + 4}px`,
|
|
5098
|
+
left: `${calendarPosition.left}px`
|
|
5099
|
+
},
|
|
5100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5101
|
+
CalendarRange,
|
|
5102
|
+
{
|
|
5103
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5104
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5105
|
+
from,
|
|
5106
|
+
to: to || from,
|
|
5107
|
+
onChange: handleDateChange,
|
|
5108
|
+
cardStyle: true,
|
|
5109
|
+
mode: "single",
|
|
5110
|
+
disableRange: true,
|
|
5111
|
+
isDateAvailable
|
|
5112
|
+
}
|
|
5113
|
+
)
|
|
5114
|
+
}
|
|
5115
|
+
)
|
|
5116
|
+
] }),
|
|
5106
5117
|
findDocumentRoot(popoverRef.current)
|
|
5107
5118
|
)
|
|
5108
5119
|
] });
|
|
@@ -5270,17 +5270,6 @@ var DateInput = (_a) => {
|
|
|
5270
5270
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
5271
5271
|
};
|
|
5272
5272
|
});
|
|
5273
|
-
(0, import_react21.useEffect)(() => {
|
|
5274
|
-
const handleClickOutside = (event) => {
|
|
5275
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
5276
|
-
setVisible(false);
|
|
5277
|
-
}
|
|
5278
|
-
};
|
|
5279
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
5280
|
-
return () => {
|
|
5281
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
5282
|
-
};
|
|
5283
|
-
}, []);
|
|
5284
5273
|
function handleDateChange(fromValue) {
|
|
5285
5274
|
onChange(fromValue);
|
|
5286
5275
|
setVisible(false);
|
|
@@ -5382,34 +5371,56 @@ var DateInput = (_a) => {
|
|
|
5382
5371
|
})
|
|
5383
5372
|
),
|
|
5384
5373
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
5385
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5374
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
5375
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5376
|
+
"div",
|
|
5377
|
+
{
|
|
5378
|
+
className: "fixed inset-0 z-30",
|
|
5379
|
+
onClick: () => setVisible(false),
|
|
5380
|
+
onMouseDown: (e) => {
|
|
5381
|
+
e.preventDefault();
|
|
5382
|
+
},
|
|
5383
|
+
onWheel: (e) => {
|
|
5384
|
+
var _a2;
|
|
5385
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5386
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5387
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5388
|
+
},
|
|
5389
|
+
onTouchMove: (e) => {
|
|
5390
|
+
e.stopPropagation();
|
|
5391
|
+
},
|
|
5392
|
+
style: { touchAction: "pan-y pan-x" },
|
|
5393
|
+
"aria-hidden": "true"
|
|
5394
|
+
}
|
|
5395
|
+
),
|
|
5396
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5397
|
+
"div",
|
|
5398
|
+
{
|
|
5399
|
+
ref: (el) => {
|
|
5400
|
+
popoverRef.current = el;
|
|
5401
|
+
},
|
|
5402
|
+
className: "absolute z-50 bg-white",
|
|
5403
|
+
style: {
|
|
5404
|
+
top: `${calendarPosition.top + 4}px`,
|
|
5405
|
+
left: `${calendarPosition.left}px`
|
|
5406
|
+
},
|
|
5407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5408
|
+
CalendarRange,
|
|
5409
|
+
{
|
|
5410
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5411
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5412
|
+
from,
|
|
5413
|
+
to: to || from,
|
|
5414
|
+
onChange: handleDateChange,
|
|
5415
|
+
cardStyle: true,
|
|
5416
|
+
mode: "single",
|
|
5417
|
+
disableRange: true,
|
|
5418
|
+
isDateAvailable
|
|
5419
|
+
}
|
|
5420
|
+
)
|
|
5421
|
+
}
|
|
5422
|
+
)
|
|
5423
|
+
] }),
|
|
5413
5424
|
findDocumentRoot(popoverRef.current)
|
|
5414
5425
|
)
|
|
5415
5426
|
] });
|
|
@@ -5270,17 +5270,6 @@ var DateInput = (_a) => {
|
|
|
5270
5270
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
5271
5271
|
};
|
|
5272
5272
|
});
|
|
5273
|
-
(0, import_react21.useEffect)(() => {
|
|
5274
|
-
const handleClickOutside = (event) => {
|
|
5275
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
5276
|
-
setVisible(false);
|
|
5277
|
-
}
|
|
5278
|
-
};
|
|
5279
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
5280
|
-
return () => {
|
|
5281
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
5282
|
-
};
|
|
5283
|
-
}, []);
|
|
5284
5273
|
function handleDateChange(fromValue) {
|
|
5285
5274
|
onChange(fromValue);
|
|
5286
5275
|
setVisible(false);
|
|
@@ -5382,34 +5371,56 @@ var DateInput = (_a) => {
|
|
|
5382
5371
|
})
|
|
5383
5372
|
),
|
|
5384
5373
|
visible && !readOnly && (0, import_react_dom3.createPortal)(
|
|
5385
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5374
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
5375
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5376
|
+
"div",
|
|
5377
|
+
{
|
|
5378
|
+
className: "fixed inset-0 z-30",
|
|
5379
|
+
onClick: () => setVisible(false),
|
|
5380
|
+
onMouseDown: (e) => {
|
|
5381
|
+
e.preventDefault();
|
|
5382
|
+
},
|
|
5383
|
+
onWheel: (e) => {
|
|
5384
|
+
var _a2;
|
|
5385
|
+
const scrollableParent = (_a2 = document.scrollingElement) != null ? _a2 : document.documentElement;
|
|
5386
|
+
scrollableParent.scrollTop += e.deltaY;
|
|
5387
|
+
scrollableParent.scrollLeft += e.deltaX;
|
|
5388
|
+
},
|
|
5389
|
+
onTouchMove: (e) => {
|
|
5390
|
+
e.stopPropagation();
|
|
5391
|
+
},
|
|
5392
|
+
style: { touchAction: "pan-y pan-x" },
|
|
5393
|
+
"aria-hidden": "true"
|
|
5394
|
+
}
|
|
5395
|
+
),
|
|
5396
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5397
|
+
"div",
|
|
5398
|
+
{
|
|
5399
|
+
ref: (el) => {
|
|
5400
|
+
popoverRef.current = el;
|
|
5401
|
+
},
|
|
5402
|
+
className: "absolute z-50 bg-white",
|
|
5403
|
+
style: {
|
|
5404
|
+
top: `${calendarPosition.top + 4}px`,
|
|
5405
|
+
left: `${calendarPosition.left}px`
|
|
5406
|
+
},
|
|
5407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
5408
|
+
CalendarRange,
|
|
5409
|
+
{
|
|
5410
|
+
id: id ? `${id}-calendar` : void 0,
|
|
5411
|
+
testid: testid ? `${testid}-calendar` : void 0,
|
|
5412
|
+
from,
|
|
5413
|
+
to: to || from,
|
|
5414
|
+
onChange: handleDateChange,
|
|
5415
|
+
cardStyle: true,
|
|
5416
|
+
mode: "single",
|
|
5417
|
+
disableRange: true,
|
|
5418
|
+
isDateAvailable
|
|
5419
|
+
}
|
|
5420
|
+
)
|
|
5421
|
+
}
|
|
5422
|
+
)
|
|
5423
|
+
] }),
|
|
5413
5424
|
findDocumentRoot(popoverRef.current)
|
|
5414
5425
|
)
|
|
5415
5426
|
] });
|