@dmsi/wedgekit-react 0.0.410 → 0.0.412
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/components/CalendarRange.cjs +46 -71
- package/dist/components/CalendarRange.js +1 -6
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +4 -29
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +1 -6
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -38
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +1 -6
- package/dist/components/DataGrid/PinnedColumns.cjs +29 -54
- package/dist/components/DataGrid/PinnedColumns.js +1 -6
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +5 -30
- package/dist/components/DataGrid/TableBody/LoadingCell.js +1 -6
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +11 -36
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +1 -6
- package/dist/components/DataGrid/TableBody/index.cjs +26 -51
- package/dist/components/DataGrid/TableBody/index.js +1 -6
- package/dist/components/DataGrid/index.cjs +115 -140
- package/dist/components/DataGrid/index.js +1 -6
- package/dist/components/DataGrid/utils.cjs +5 -30
- package/dist/components/DataGrid/utils.js +1 -6
- package/dist/components/DateInput.cjs +65 -90
- package/dist/components/DateInput.js +1 -6
- package/dist/components/DateRangeInput.cjs +65 -90
- package/dist/components/DateRangeInput.js +1 -6
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -37
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +1 -6
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -45
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +1 -6
- package/dist/components/MobileDataGrid/index.cjs +499 -524
- package/dist/components/MobileDataGrid/index.js +1 -6
- package/dist/components/PDFViewer/index.js +109 -6
- package/dist/components/index.cjs +0 -286
- package/dist/components/index.js +1 -9
- package/package.json +1 -1
- package/src/components/index.ts +0 -1
- package/dist/chunk-LLZ3SSZJ.js +0 -114
- /package/dist/{chunk-OW3WN3JV.js → chunk-OBY5EH47.js} +0 -0
|
@@ -62,7 +62,7 @@ __export(DateRangeInput_exports, {
|
|
|
62
62
|
DateRangeInput: () => DateRangeInput
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(DateRangeInput_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react34 = require("react");
|
|
66
66
|
var import_react_dom4 = require("react-dom");
|
|
67
67
|
|
|
68
68
|
// src/components/Input.tsx
|
|
@@ -716,8 +716,8 @@ Currency.displayName = "Currency";
|
|
|
716
716
|
Percentage.displayName = "Percentage";
|
|
717
717
|
|
|
718
718
|
// src/components/CalendarRange.tsx
|
|
719
|
-
var
|
|
720
|
-
var
|
|
719
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
720
|
+
var import_react33 = __toESM(require("react"), 1);
|
|
721
721
|
var import_polyfill = require("@js-temporal/polyfill");
|
|
722
722
|
|
|
723
723
|
// src/components/DataGridCell.tsx
|
|
@@ -4747,33 +4747,8 @@ var import_react32 = require("react");
|
|
|
4747
4747
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4748
4748
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4749
4749
|
|
|
4750
|
-
// src/components/PDFViewer/index.tsx
|
|
4751
|
-
var import_react35 = require("react");
|
|
4752
|
-
|
|
4753
|
-
// src/components/PDFViewer/PDFElement.tsx
|
|
4754
|
-
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4755
|
-
var import_react34 = require("react");
|
|
4756
|
-
|
|
4757
|
-
// src/components/PDFViewer/PDFPage.tsx
|
|
4758
|
-
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4759
|
-
var import_react33 = require("react");
|
|
4760
|
-
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4761
|
-
|
|
4762
|
-
// src/components/PDFViewer/PDFElement.tsx
|
|
4763
|
-
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4764
|
-
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4765
|
-
|
|
4766
|
-
// src/components/PDFViewer/DownloadIcon.tsx
|
|
4767
|
-
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4768
|
-
|
|
4769
|
-
// src/components/PDFViewer/PDFNavigation.tsx
|
|
4770
|
-
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4771
|
-
|
|
4772
|
-
// src/components/PDFViewer/index.tsx
|
|
4773
|
-
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4774
|
-
|
|
4775
4750
|
// src/components/CalendarRange.tsx
|
|
4776
|
-
var
|
|
4751
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4777
4752
|
function DateCell(_a) {
|
|
4778
4753
|
var _b = _a, {
|
|
4779
4754
|
date,
|
|
@@ -4808,12 +4783,12 @@ function DateCell(_a) {
|
|
|
4808
4783
|
"id",
|
|
4809
4784
|
"testid"
|
|
4810
4785
|
]);
|
|
4811
|
-
return /* @__PURE__ */ (0,
|
|
4786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4812
4787
|
"span",
|
|
4813
4788
|
__spreadProps(__spreadValues({}, props), {
|
|
4814
4789
|
id,
|
|
4815
4790
|
"data-testid": testid,
|
|
4816
|
-
className: (0,
|
|
4791
|
+
className: (0, import_clsx34.default)(
|
|
4817
4792
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4818
4793
|
typography.caption,
|
|
4819
4794
|
cellPadding,
|
|
@@ -4883,20 +4858,20 @@ function CalendarRange({
|
|
|
4883
4858
|
const fromDate = parseDate(from);
|
|
4884
4859
|
const toDate = parseDate(to);
|
|
4885
4860
|
const today = import_polyfill.Temporal.Now.plainDateISO();
|
|
4886
|
-
const [baseMonth, setBaseMonth] = (0,
|
|
4861
|
+
const [baseMonth, setBaseMonth] = (0, import_react33.useState)(
|
|
4887
4862
|
fromDate != null ? fromDate : today.with({ day: 1 })
|
|
4888
4863
|
);
|
|
4889
|
-
const [selecting, setSelecting] = (0,
|
|
4890
|
-
const [pendingFrom, setPendingFrom] = (0,
|
|
4891
|
-
const [hoveredDate, setHoveredDate] = (0,
|
|
4892
|
-
(0,
|
|
4864
|
+
const [selecting, setSelecting] = (0, import_react33.useState)("from");
|
|
4865
|
+
const [pendingFrom, setPendingFrom] = (0, import_react33.useState)(void 0);
|
|
4866
|
+
const [hoveredDate, setHoveredDate] = (0, import_react33.useState)(void 0);
|
|
4867
|
+
(0, import_react33.useEffect)(() => {
|
|
4893
4868
|
if (fromDate) {
|
|
4894
4869
|
setBaseMonth(fromDate.with({ day: 1 }));
|
|
4895
4870
|
} else if (toDate) {
|
|
4896
4871
|
setBaseMonth(toDate.with({ day: 1 }));
|
|
4897
4872
|
}
|
|
4898
4873
|
}, [from, to]);
|
|
4899
|
-
(0,
|
|
4874
|
+
(0, import_react33.useEffect)(() => {
|
|
4900
4875
|
if (fromDate && toDate) {
|
|
4901
4876
|
setSelecting("from");
|
|
4902
4877
|
setPendingFrom(void 0);
|
|
@@ -4962,12 +4937,12 @@ function CalendarRange({
|
|
|
4962
4937
|
}
|
|
4963
4938
|
return false;
|
|
4964
4939
|
}
|
|
4965
|
-
return /* @__PURE__ */ (0,
|
|
4940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4966
4941
|
"div",
|
|
4967
4942
|
{
|
|
4968
4943
|
id,
|
|
4969
4944
|
"data-testid": testid,
|
|
4970
|
-
className: (0,
|
|
4945
|
+
className: (0, import_clsx34.default)(
|
|
4971
4946
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
4972
4947
|
layoutPaddding,
|
|
4973
4948
|
layoutGap,
|
|
@@ -4975,15 +4950,15 @@ function CalendarRange({
|
|
|
4975
4950
|
// baseTransition,
|
|
4976
4951
|
"overflow-hidden"
|
|
4977
4952
|
),
|
|
4978
|
-
children: /* @__PURE__ */ (0,
|
|
4953
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4979
4954
|
"div",
|
|
4980
4955
|
{
|
|
4981
|
-
className: (0,
|
|
4956
|
+
className: (0, import_clsx34.default)(
|
|
4982
4957
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
4983
4958
|
layoutGap
|
|
4984
4959
|
),
|
|
4985
4960
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
4986
|
-
return /* @__PURE__ */ (0,
|
|
4961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4987
4962
|
CalendarPane,
|
|
4988
4963
|
{
|
|
4989
4964
|
getMonthData,
|
|
@@ -5041,45 +5016,45 @@ function CalendarPane({
|
|
|
5041
5016
|
const years = Array.from({ length: 100 }).map(
|
|
5042
5017
|
(_, i) => baseMonth.year - 50 + i
|
|
5043
5018
|
);
|
|
5044
|
-
const [monthMenuOpen, setMonthMenuOpen] = (0,
|
|
5045
|
-
const [yearMenuOpen, setYearMenuOpen] = (0,
|
|
5046
|
-
const monthMenuRef = (0,
|
|
5047
|
-
const yearMenuRef = (0,
|
|
5019
|
+
const [monthMenuOpen, setMonthMenuOpen] = (0, import_react33.useState)(false);
|
|
5020
|
+
const [yearMenuOpen, setYearMenuOpen] = (0, import_react33.useState)(false);
|
|
5021
|
+
const monthMenuRef = (0, import_react33.useRef)(null);
|
|
5022
|
+
const yearMenuRef = (0, import_react33.useRef)(null);
|
|
5048
5023
|
const month = getMonthData(offset);
|
|
5049
5024
|
const totalCells = 42;
|
|
5050
5025
|
const emptyCells = month.firstDayOffset;
|
|
5051
|
-
return /* @__PURE__ */ (0,
|
|
5052
|
-
/* @__PURE__ */ (0,
|
|
5026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_react33.default.Fragment, { children: [
|
|
5027
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5053
5028
|
"div",
|
|
5054
5029
|
{
|
|
5055
|
-
className: (0,
|
|
5030
|
+
className: (0, import_clsx34.default)("flex flex-col"),
|
|
5056
5031
|
children: [
|
|
5057
|
-
/* @__PURE__ */ (0,
|
|
5032
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5058
5033
|
"div",
|
|
5059
5034
|
{
|
|
5060
|
-
className: (0,
|
|
5035
|
+
className: (0, import_clsx34.default)(
|
|
5061
5036
|
"flex flex-row items-center justify-between",
|
|
5062
5037
|
typography.label,
|
|
5063
5038
|
"text-text-action-primary-normal"
|
|
5064
5039
|
),
|
|
5065
5040
|
children: [
|
|
5066
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
5041
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5067
5042
|
"button",
|
|
5068
5043
|
{
|
|
5069
5044
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
5070
5045
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
5071
5046
|
type: "button",
|
|
5072
|
-
className: (0,
|
|
5047
|
+
className: (0, import_clsx34.default)(
|
|
5073
5048
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5074
5049
|
componentPadding
|
|
5075
5050
|
),
|
|
5076
5051
|
"aria-label": "Previous month",
|
|
5077
5052
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
5078
|
-
children: /* @__PURE__ */ (0,
|
|
5053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
5079
5054
|
}
|
|
5080
|
-
) : /* @__PURE__ */ (0,
|
|
5081
|
-
/* @__PURE__ */ (0,
|
|
5082
|
-
/* @__PURE__ */ (0,
|
|
5055
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: (0, import_clsx34.default)(componentPadding, "mr-1") }),
|
|
5056
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
5057
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5083
5058
|
"button",
|
|
5084
5059
|
{
|
|
5085
5060
|
ref: (el) => {
|
|
@@ -5094,13 +5069,13 @@ function CalendarPane({
|
|
|
5094
5069
|
children: month.name
|
|
5095
5070
|
}
|
|
5096
5071
|
),
|
|
5097
|
-
/* @__PURE__ */ (0,
|
|
5072
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5098
5073
|
Menu,
|
|
5099
5074
|
{
|
|
5100
5075
|
show: monthMenuOpen,
|
|
5101
5076
|
positionTo: monthMenuRef,
|
|
5102
5077
|
setShow: () => setMonthMenuOpen(false),
|
|
5103
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5078
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5104
5079
|
MenuOption,
|
|
5105
5080
|
{
|
|
5106
5081
|
selected: baseMonth.month === x + 1,
|
|
@@ -5114,7 +5089,7 @@ function CalendarPane({
|
|
|
5114
5089
|
))
|
|
5115
5090
|
}
|
|
5116
5091
|
),
|
|
5117
|
-
/* @__PURE__ */ (0,
|
|
5092
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5118
5093
|
"button",
|
|
5119
5094
|
{
|
|
5120
5095
|
ref: (el) => {
|
|
@@ -5129,13 +5104,13 @@ function CalendarPane({
|
|
|
5129
5104
|
children: month.year
|
|
5130
5105
|
}
|
|
5131
5106
|
),
|
|
5132
|
-
/* @__PURE__ */ (0,
|
|
5107
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5133
5108
|
Menu,
|
|
5134
5109
|
{
|
|
5135
5110
|
show: yearMenuOpen,
|
|
5136
5111
|
positionTo: yearMenuRef,
|
|
5137
5112
|
setShow: () => setYearMenuOpen(false),
|
|
5138
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5113
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5139
5114
|
MenuOption,
|
|
5140
5115
|
{
|
|
5141
5116
|
selected: baseMonth.year === y,
|
|
@@ -5150,28 +5125,28 @@ function CalendarPane({
|
|
|
5150
5125
|
}
|
|
5151
5126
|
)
|
|
5152
5127
|
] }),
|
|
5153
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5128
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5154
5129
|
"button",
|
|
5155
5130
|
{
|
|
5156
5131
|
id: id ? `${id}-next-month-button` : void 0,
|
|
5157
5132
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
5158
5133
|
type: "button",
|
|
5159
|
-
className: (0,
|
|
5134
|
+
className: (0, import_clsx34.default)(
|
|
5160
5135
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5161
5136
|
componentPadding
|
|
5162
5137
|
),
|
|
5163
5138
|
"aria-label": "Next month",
|
|
5164
5139
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5165
|
-
children: /* @__PURE__ */ (0,
|
|
5140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5166
5141
|
}
|
|
5167
|
-
) : /* @__PURE__ */ (0,
|
|
5142
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: (0, import_clsx34.default)(componentPadding, "ml-1") })
|
|
5168
5143
|
]
|
|
5169
5144
|
}
|
|
5170
5145
|
),
|
|
5171
|
-
/* @__PURE__ */ (0,
|
|
5146
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: (0, import_clsx34.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5172
5147
|
"span",
|
|
5173
5148
|
{
|
|
5174
|
-
className: (0,
|
|
5149
|
+
className: (0, import_clsx34.default)(
|
|
5175
5150
|
typography.caption,
|
|
5176
5151
|
"text-text-secondary-normal text-center",
|
|
5177
5152
|
"w-10"
|
|
@@ -5180,7 +5155,7 @@ function CalendarPane({
|
|
|
5180
5155
|
},
|
|
5181
5156
|
d
|
|
5182
5157
|
)) }),
|
|
5183
|
-
/* @__PURE__ */ (0,
|
|
5158
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: (0, import_clsx34.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5184
5159
|
const day = i - emptyCells + 1;
|
|
5185
5160
|
const date = month.date.with({ day: 1 }).add({
|
|
5186
5161
|
days: i - emptyCells
|
|
@@ -5194,7 +5169,7 @@ function CalendarPane({
|
|
|
5194
5169
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5195
5170
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5196
5171
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5197
|
-
return /* @__PURE__ */ (0,
|
|
5172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5198
5173
|
DateCell,
|
|
5199
5174
|
{
|
|
5200
5175
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5219,10 +5194,10 @@ function CalendarPane({
|
|
|
5219
5194
|
]
|
|
5220
5195
|
}
|
|
5221
5196
|
),
|
|
5222
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5197
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5223
5198
|
"div",
|
|
5224
5199
|
{
|
|
5225
|
-
className: (0,
|
|
5200
|
+
className: (0, import_clsx34.default)(
|
|
5226
5201
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
5227
5202
|
// 1px width, full height, matches Figma divider
|
|
5228
5203
|
"w-px"
|
|
@@ -5233,7 +5208,7 @@ function CalendarPane({
|
|
|
5233
5208
|
}
|
|
5234
5209
|
|
|
5235
5210
|
// src/components/DateRangeInput.tsx
|
|
5236
|
-
var
|
|
5211
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5237
5212
|
var DateRangeInput = (_a) => {
|
|
5238
5213
|
var _b = _a, {
|
|
5239
5214
|
id,
|
|
@@ -5258,24 +5233,24 @@ var DateRangeInput = (_a) => {
|
|
|
5258
5233
|
"disableRange",
|
|
5259
5234
|
"label"
|
|
5260
5235
|
]);
|
|
5261
|
-
const [visible, setVisible] = (0,
|
|
5262
|
-
const [inputValue, setInputValue] = (0,
|
|
5263
|
-
const [isTyping, setIsTyping] = (0,
|
|
5264
|
-
const popoverRef = (0,
|
|
5265
|
-
const rootRef = (0,
|
|
5266
|
-
const triggerRef = (0,
|
|
5267
|
-
const [calendarPosition, setCalendarPosition] = (0,
|
|
5236
|
+
const [visible, setVisible] = (0, import_react34.useState)(false);
|
|
5237
|
+
const [inputValue, setInputValue] = (0, import_react34.useState)("");
|
|
5238
|
+
const [isTyping, setIsTyping] = (0, import_react34.useState)(false);
|
|
5239
|
+
const popoverRef = (0, import_react34.useRef)(null);
|
|
5240
|
+
const rootRef = (0, import_react34.useRef)(null);
|
|
5241
|
+
const triggerRef = (0, import_react34.useRef)(null);
|
|
5242
|
+
const [calendarPosition, setCalendarPosition] = (0, import_react34.useState)({
|
|
5268
5243
|
top: 0,
|
|
5269
5244
|
left: 0,
|
|
5270
5245
|
width: 0
|
|
5271
5246
|
});
|
|
5272
5247
|
const [from, to] = value.split("|");
|
|
5273
|
-
(0,
|
|
5248
|
+
(0, import_react34.useEffect)(() => {
|
|
5274
5249
|
if (!isTyping) {
|
|
5275
5250
|
setInputValue(formatDisplayValue(from, to));
|
|
5276
5251
|
}
|
|
5277
5252
|
}, [from, to, isTyping, disableRange]);
|
|
5278
|
-
(0,
|
|
5253
|
+
(0, import_react34.useLayoutEffect)(() => {
|
|
5279
5254
|
if (visible) {
|
|
5280
5255
|
updatePosition();
|
|
5281
5256
|
}
|
|
@@ -5290,7 +5265,7 @@ var DateRangeInput = (_a) => {
|
|
|
5290
5265
|
});
|
|
5291
5266
|
}
|
|
5292
5267
|
};
|
|
5293
|
-
(0,
|
|
5268
|
+
(0, import_react34.useEffect)(() => {
|
|
5294
5269
|
updatePosition();
|
|
5295
5270
|
const resizeObserver = new ResizeObserver(updatePosition);
|
|
5296
5271
|
if (triggerRef.current) {
|
|
@@ -5302,7 +5277,7 @@ var DateRangeInput = (_a) => {
|
|
|
5302
5277
|
window.removeEventListener("scroll", updatePosition);
|
|
5303
5278
|
};
|
|
5304
5279
|
}, []);
|
|
5305
|
-
(0,
|
|
5280
|
+
(0, import_react34.useEffect)(() => {
|
|
5306
5281
|
const handleKeyDown2 = (event) => {
|
|
5307
5282
|
var _a2;
|
|
5308
5283
|
if (event.key === "Escape" && popoverRef.current) {
|
|
@@ -5315,7 +5290,7 @@ var DateRangeInput = (_a) => {
|
|
|
5315
5290
|
document.removeEventListener("keydown", handleKeyDown2);
|
|
5316
5291
|
};
|
|
5317
5292
|
}, []);
|
|
5318
|
-
(0,
|
|
5293
|
+
(0, import_react34.useEffect)(() => {
|
|
5319
5294
|
const handleClickOutside = (event) => {
|
|
5320
5295
|
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
5321
5296
|
setVisible(false);
|
|
@@ -5650,8 +5625,8 @@ var DateRangeInput = (_a) => {
|
|
|
5650
5625
|
}
|
|
5651
5626
|
}
|
|
5652
5627
|
};
|
|
5653
|
-
return /* @__PURE__ */ (0,
|
|
5654
|
-
/* @__PURE__ */ (0,
|
|
5628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
5629
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5655
5630
|
InputBase,
|
|
5656
5631
|
__spreadProps(__spreadValues({
|
|
5657
5632
|
id,
|
|
@@ -5665,7 +5640,7 @@ var DateRangeInput = (_a) => {
|
|
|
5665
5640
|
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
5666
5641
|
disabled,
|
|
5667
5642
|
readOnly,
|
|
5668
|
-
after: /* @__PURE__ */ (0,
|
|
5643
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "calendar_month" }),
|
|
5669
5644
|
onFocus: handleFocus,
|
|
5670
5645
|
onClick: handleClick,
|
|
5671
5646
|
onChange: handleInputChange,
|
|
@@ -5676,7 +5651,7 @@ var DateRangeInput = (_a) => {
|
|
|
5676
5651
|
})
|
|
5677
5652
|
),
|
|
5678
5653
|
visible && !readOnly && (0, import_react_dom4.createPortal)(
|
|
5679
|
-
/* @__PURE__ */ (0,
|
|
5654
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5680
5655
|
"div",
|
|
5681
5656
|
{
|
|
5682
5657
|
ref: (el) => {
|
|
@@ -5688,7 +5663,7 @@ var DateRangeInput = (_a) => {
|
|
|
5688
5663
|
left: `${calendarPosition.left}px`,
|
|
5689
5664
|
minWidth: `${calendarPosition.width}px`
|
|
5690
5665
|
},
|
|
5691
|
-
children: /* @__PURE__ */ (0,
|
|
5666
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5692
5667
|
CalendarRange,
|
|
5693
5668
|
{
|
|
5694
5669
|
id: id ? `${id}-calendar` : void 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarRange
|
|
3
3
|
} from "../chunk-UOHCOOC2.js";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-OBY5EH47.js";
|
|
5
5
|
import "../chunk-M7INAUAJ.js";
|
|
6
6
|
import "../chunk-6I5LZ2ZC.js";
|
|
7
7
|
import "../chunk-44TDIHUP.js";
|
|
@@ -9,11 +9,6 @@ import "../chunk-LZGYABCX.js";
|
|
|
9
9
|
import "../chunk-G5DEC7H3.js";
|
|
10
10
|
import "../chunk-3X3Y4TMS.js";
|
|
11
11
|
import "../chunk-BQNPOGD5.js";
|
|
12
|
-
import "../chunk-LLZ3SSZJ.js";
|
|
13
|
-
import "../chunk-EJSPFQCY.js";
|
|
14
|
-
import "../chunk-ERW5DEIO.js";
|
|
15
|
-
import "../chunk-2HMCS25C.js";
|
|
16
|
-
import "../chunk-VJVY6NPF.js";
|
|
17
12
|
import "../chunk-MBZ55T2D.js";
|
|
18
13
|
import "../chunk-2IKT6IHB.js";
|
|
19
14
|
import "../chunk-AA6GE3TH.js";
|
|
@@ -62,7 +62,7 @@ __export(ColumnSelector_exports, {
|
|
|
62
62
|
ColumnSelector: () => ColumnSelector
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(ColumnSelector_exports);
|
|
65
|
-
var
|
|
65
|
+
var import_react32 = require("react");
|
|
66
66
|
|
|
67
67
|
// src/components/DataGridCell.tsx
|
|
68
68
|
var import_sortable = require("@dnd-kit/sortable");
|
|
@@ -4666,37 +4666,12 @@ var import_react31 = require("react");
|
|
|
4666
4666
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4667
4667
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4668
4668
|
|
|
4669
|
-
// src/components/PDFViewer/index.tsx
|
|
4670
|
-
var import_react34 = require("react");
|
|
4671
|
-
|
|
4672
|
-
// src/components/PDFViewer/PDFElement.tsx
|
|
4673
|
-
var import_react_pdf2 = require("@mikecousins/react-pdf");
|
|
4674
|
-
var import_react33 = require("react");
|
|
4675
|
-
|
|
4676
|
-
// src/components/PDFViewer/PDFPage.tsx
|
|
4677
|
-
var import_react_pdf = require("@mikecousins/react-pdf");
|
|
4678
|
-
var import_react32 = require("react");
|
|
4679
|
-
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4680
|
-
|
|
4681
|
-
// src/components/PDFViewer/PDFElement.tsx
|
|
4682
|
-
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4683
|
-
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4684
|
-
|
|
4685
|
-
// src/components/PDFViewer/DownloadIcon.tsx
|
|
4686
|
-
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4687
|
-
|
|
4688
|
-
// src/components/PDFViewer/PDFNavigation.tsx
|
|
4689
|
-
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4690
|
-
|
|
4691
|
-
// src/components/PDFViewer/index.tsx
|
|
4692
|
-
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
4693
|
-
|
|
4694
4669
|
// src/components/MobileDataGrid/ColumnSelector/index.tsx
|
|
4695
|
-
var
|
|
4670
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4696
4671
|
function ColumnSelector() {
|
|
4697
4672
|
const context = useGridContext();
|
|
4698
|
-
const ref = (0,
|
|
4699
|
-
const [show, setShow] = (0,
|
|
4673
|
+
const ref = (0, import_react32.useRef)(null);
|
|
4674
|
+
const [show, setShow] = (0, import_react32.useState)(false);
|
|
4700
4675
|
const {
|
|
4701
4676
|
columns,
|
|
4702
4677
|
id,
|
|
@@ -4707,13 +4682,13 @@ function ColumnSelector() {
|
|
|
4707
4682
|
resetColumnVisibility,
|
|
4708
4683
|
dispatch
|
|
4709
4684
|
} = context;
|
|
4710
|
-
const toggleColumnVisibility = (0,
|
|
4685
|
+
const toggleColumnVisibility = (0, import_react32.useCallback)(
|
|
4711
4686
|
(index, visible) => {
|
|
4712
4687
|
dispatch({ type: "UPDATE", index, payload: { meta: { visible } } });
|
|
4713
4688
|
},
|
|
4714
4689
|
[dispatch]
|
|
4715
4690
|
);
|
|
4716
|
-
return /* @__PURE__ */ (0,
|
|
4691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4717
4692
|
"div",
|
|
4718
4693
|
{
|
|
4719
4694
|
id: id ? `${id}-column-selector` : void 0,
|
|
@@ -4721,7 +4696,7 @@ function ColumnSelector() {
|
|
|
4721
4696
|
className: "text-text-secondary-normal border-l border-brand-200 p-mobile-container-padding",
|
|
4722
4697
|
ref,
|
|
4723
4698
|
children: [
|
|
4724
|
-
/* @__PURE__ */ (0,
|
|
4699
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4725
4700
|
Button,
|
|
4726
4701
|
{
|
|
4727
4702
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4730,10 +4705,10 @@ function ColumnSelector() {
|
|
|
4730
4705
|
variant: "navigation",
|
|
4731
4706
|
iconOnly: true,
|
|
4732
4707
|
size: 24,
|
|
4733
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4708
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { name: "tune" })
|
|
4734
4709
|
}
|
|
4735
4710
|
),
|
|
4736
|
-
/* @__PURE__ */ (0,
|
|
4711
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
4737
4712
|
Menu,
|
|
4738
4713
|
{
|
|
4739
4714
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4744,7 +4719,7 @@ function ColumnSelector() {
|
|
|
4744
4719
|
setShow,
|
|
4745
4720
|
calculateMinMaxHeight: true,
|
|
4746
4721
|
children: [
|
|
4747
|
-
/* @__PURE__ */ (0,
|
|
4722
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4748
4723
|
Button,
|
|
4749
4724
|
{
|
|
4750
4725
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4762,11 +4737,11 @@ function ColumnSelector() {
|
|
|
4762
4737
|
return (_a = x.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4763
4738
|
}).map((column) => {
|
|
4764
4739
|
var _a, _b, _c;
|
|
4765
|
-
return /* @__PURE__ */ (0,
|
|
4740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4766
4741
|
MenuOption,
|
|
4767
4742
|
{
|
|
4768
4743
|
testid: testid ? `${testid}-option-${column.id}` : void 0,
|
|
4769
|
-
children: /* @__PURE__ */ (0,
|
|
4744
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4770
4745
|
Checkbox,
|
|
4771
4746
|
{
|
|
4772
4747
|
id: id ? `${id}-checkbox-${column.id}` : void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelector
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-OBY5EH47.js";
|
|
4
4
|
import "../../../chunk-M7INAUAJ.js";
|
|
5
5
|
import "../../../chunk-6I5LZ2ZC.js";
|
|
6
6
|
import "../../../chunk-44TDIHUP.js";
|
|
@@ -8,11 +8,6 @@ import "../../../chunk-LZGYABCX.js";
|
|
|
8
8
|
import "../../../chunk-G5DEC7H3.js";
|
|
9
9
|
import "../../../chunk-3X3Y4TMS.js";
|
|
10
10
|
import "../../../chunk-BQNPOGD5.js";
|
|
11
|
-
import "../../../chunk-LLZ3SSZJ.js";
|
|
12
|
-
import "../../../chunk-EJSPFQCY.js";
|
|
13
|
-
import "../../../chunk-ERW5DEIO.js";
|
|
14
|
-
import "../../../chunk-2HMCS25C.js";
|
|
15
|
-
import "../../../chunk-VJVY6NPF.js";
|
|
16
11
|
import "../../../chunk-MBZ55T2D.js";
|
|
17
12
|
import "../../../chunk-2IKT6IHB.js";
|
|
18
13
|
import "../../../chunk-AA6GE3TH.js";
|