@dmsi/wedgekit-react 0.0.413 → 0.0.415
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-7ULLUUVJ.js +61 -0
- package/dist/components/CalendarRange.cjs +39 -35
- package/dist/components/CalendarRange.css +9 -0
- package/dist/components/CalendarRange.js +6 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +6 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +6 -5
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +13 -9
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +6 -5
- package/dist/components/DataGrid/PinnedColumns.cjs +27 -23
- package/dist/components/DataGrid/PinnedColumns.css +9 -0
- package/dist/components/DataGrid/PinnedColumns.js +6 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +9 -5
- package/dist/components/DataGrid/TableBody/LoadingCell.css +9 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +6 -5
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +14 -10
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +9 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +6 -5
- package/dist/components/DataGrid/TableBody/index.cjs +29 -25
- package/dist/components/DataGrid/TableBody/index.css +9 -0
- package/dist/components/DataGrid/TableBody/index.js +6 -5
- package/dist/components/DataGrid/index.cjs +98 -94
- package/dist/components/DataGrid/index.css +9 -0
- package/dist/components/DataGrid/index.js +6 -5
- package/dist/components/DataGrid/utils.cjs +9 -5
- package/dist/components/DataGrid/utils.css +9 -0
- package/dist/components/DataGrid/utils.js +6 -5
- package/dist/components/DateInput.cjs +45 -41
- package/dist/components/DateInput.css +9 -0
- package/dist/components/DateInput.js +6 -5
- package/dist/components/DateRangeInput.cjs +45 -41
- package/dist/components/DateRangeInput.css +9 -0
- package/dist/components/DateRangeInput.js +6 -5
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +12 -8
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +9 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +6 -5
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +20 -16
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +9 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +6 -5
- package/dist/components/MobileDataGrid/index.cjs +103 -99
- package/dist/components/MobileDataGrid/index.css +9 -0
- package/dist/components/MobileDataGrid/index.js +6 -5
- package/dist/components/ProductImagePreview/index.js +2 -2
- package/dist/components/SimpleTable.cjs +485 -0
- package/dist/components/SimpleTable.js +10 -0
- package/dist/components/index.cjs +53 -0
- package/dist/components/index.css +9 -0
- package/dist/components/index.js +9 -5
- package/dist/index.css +9 -0
- package/package.json +1 -1
- package/src/components/SimpleTable.tsx +77 -0
- package/src/components/index.ts +1 -0
- package/dist/{chunk-OBY5EH47.js → chunk-BK7SPR6Y.js} +6 -6
- package/dist/{chunk-LZGYABCX.js → chunk-ZHZIIVJN.js} +3 -3
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Subheader
|
|
3
|
+
} from "./chunk-FA7IFW66.js";
|
|
4
|
+
import {
|
|
5
|
+
Stack
|
|
6
|
+
} from "./chunk-GB4ZTUQV.js";
|
|
7
|
+
|
|
8
|
+
// src/components/SimpleTable.tsx
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function SimpleTable({
|
|
12
|
+
columns,
|
|
13
|
+
data,
|
|
14
|
+
additionalRows
|
|
15
|
+
}) {
|
|
16
|
+
const allRows = additionalRows && additionalRows.length > 0 ? [...data, ...additionalRows] : data;
|
|
17
|
+
return /* @__PURE__ */ jsx(Stack, { elevation: 4, rounded: true, overflowX: "hidden", overflowY: "hidden", children: /* @__PURE__ */ jsxs("table", { className: "w-full border-collapse text-left text-sm border overflow-hidden rounded border-border-primary-normal", children: [
|
|
18
|
+
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { className: "bg-background-primary-normal divide-x divide-border-primary-normal", children: columns.map((column, index) => {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
"th",
|
|
22
|
+
{
|
|
23
|
+
scope: "col",
|
|
24
|
+
className: clsx(
|
|
25
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding font-semibold text-text-primary-normal",
|
|
26
|
+
((_a = column.meta) == null ? void 0 : _a.headerWidth) ? column.meta.headerWidth : "w-2/3"
|
|
27
|
+
),
|
|
28
|
+
children: /* @__PURE__ */ jsx(Subheader, { children: (_b = column.header) == null ? void 0 : _b.toString() })
|
|
29
|
+
},
|
|
30
|
+
index
|
|
31
|
+
);
|
|
32
|
+
}) }) }),
|
|
33
|
+
/* @__PURE__ */ jsx("tbody", { children: allRows.map((row, rowIndex) => /* @__PURE__ */ jsx(
|
|
34
|
+
"tr",
|
|
35
|
+
{
|
|
36
|
+
className: "border-t border-border-primary-normal divide-x divide-border-primary-normal",
|
|
37
|
+
children: columns.map((column, colIndex) => {
|
|
38
|
+
var _a;
|
|
39
|
+
const rawValue = column.id ? row[column.id] : null;
|
|
40
|
+
const cellValue = rawValue != null ? rawValue : null;
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
"td",
|
|
43
|
+
{
|
|
44
|
+
className: clsx(
|
|
45
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding align-middle text-text-primary-normal",
|
|
46
|
+
(_a = column.meta) == null ? void 0 : _a.headerWidth
|
|
47
|
+
),
|
|
48
|
+
children: cellValue !== null && cellValue !== void 0 ? typeof cellValue === "string" || typeof cellValue === "number" ? cellValue.toString() : cellValue : ""
|
|
49
|
+
},
|
|
50
|
+
colIndex
|
|
51
|
+
);
|
|
52
|
+
})
|
|
53
|
+
},
|
|
54
|
+
rowIndex
|
|
55
|
+
)) })
|
|
56
|
+
] }) });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
SimpleTable
|
|
61
|
+
};
|
|
@@ -64,7 +64,7 @@ __export(CalendarRange_exports, {
|
|
|
64
64
|
isWeekend: () => isWeekend
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(CalendarRange_exports);
|
|
67
|
-
var
|
|
67
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
68
68
|
|
|
69
69
|
// src/classNames.ts
|
|
70
70
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
@@ -4669,8 +4669,12 @@ var import_react32 = require("react");
|
|
|
4669
4669
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4670
4670
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4671
4671
|
|
|
4672
|
-
// src/components/
|
|
4672
|
+
// src/components/SimpleTable.tsx
|
|
4673
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4673
4674
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4675
|
+
|
|
4676
|
+
// src/components/CalendarRange.tsx
|
|
4677
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4674
4678
|
function isWeekend(date) {
|
|
4675
4679
|
return date.dayOfWeek === 6 || date.dayOfWeek === 7;
|
|
4676
4680
|
}
|
|
@@ -4708,12 +4712,12 @@ function DateCell(_a) {
|
|
|
4708
4712
|
"id",
|
|
4709
4713
|
"testid"
|
|
4710
4714
|
]);
|
|
4711
|
-
return /* @__PURE__ */ (0,
|
|
4715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4712
4716
|
"span",
|
|
4713
4717
|
__spreadProps(__spreadValues({}, props), {
|
|
4714
4718
|
id,
|
|
4715
4719
|
"data-testid": testid,
|
|
4716
|
-
className: (0,
|
|
4720
|
+
className: (0, import_clsx35.default)(
|
|
4717
4721
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
4718
4722
|
typography.caption,
|
|
4719
4723
|
cellPadding,
|
|
@@ -4862,12 +4866,12 @@ function CalendarRange({
|
|
|
4862
4866
|
}
|
|
4863
4867
|
return false;
|
|
4864
4868
|
}
|
|
4865
|
-
return /* @__PURE__ */ (0,
|
|
4869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4866
4870
|
"div",
|
|
4867
4871
|
{
|
|
4868
4872
|
id,
|
|
4869
4873
|
"data-testid": testid,
|
|
4870
|
-
className: (0,
|
|
4874
|
+
className: (0, import_clsx35.default)(
|
|
4871
4875
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
4872
4876
|
layoutPaddding,
|
|
4873
4877
|
layoutGap,
|
|
@@ -4875,15 +4879,15 @@ function CalendarRange({
|
|
|
4875
4879
|
// baseTransition,
|
|
4876
4880
|
"overflow-hidden"
|
|
4877
4881
|
),
|
|
4878
|
-
children: /* @__PURE__ */ (0,
|
|
4882
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4879
4883
|
"div",
|
|
4880
4884
|
{
|
|
4881
|
-
className: (0,
|
|
4885
|
+
className: (0, import_clsx35.default)(
|
|
4882
4886
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
4883
4887
|
layoutGap
|
|
4884
4888
|
),
|
|
4885
4889
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
4886
|
-
return /* @__PURE__ */ (0,
|
|
4890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4887
4891
|
CalendarPane,
|
|
4888
4892
|
{
|
|
4889
4893
|
getMonthData,
|
|
@@ -4948,38 +4952,38 @@ function CalendarPane({
|
|
|
4948
4952
|
const month = getMonthData(offset);
|
|
4949
4953
|
const totalCells = 42;
|
|
4950
4954
|
const emptyCells = month.firstDayOffset;
|
|
4951
|
-
return /* @__PURE__ */ (0,
|
|
4952
|
-
/* @__PURE__ */ (0,
|
|
4955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react33.default.Fragment, { children: [
|
|
4956
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4953
4957
|
"div",
|
|
4954
4958
|
{
|
|
4955
|
-
className: (0,
|
|
4959
|
+
className: (0, import_clsx35.default)("flex flex-col"),
|
|
4956
4960
|
children: [
|
|
4957
|
-
/* @__PURE__ */ (0,
|
|
4961
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
4958
4962
|
"div",
|
|
4959
4963
|
{
|
|
4960
|
-
className: (0,
|
|
4964
|
+
className: (0, import_clsx35.default)(
|
|
4961
4965
|
"flex flex-row items-center justify-between",
|
|
4962
4966
|
typography.label,
|
|
4963
4967
|
"text-text-action-primary-normal"
|
|
4964
4968
|
),
|
|
4965
4969
|
children: [
|
|
4966
|
-
idx === 0 ? /* @__PURE__ */ (0,
|
|
4970
|
+
idx === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4967
4971
|
"button",
|
|
4968
4972
|
{
|
|
4969
4973
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
4970
4974
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
4971
4975
|
type: "button",
|
|
4972
|
-
className: (0,
|
|
4976
|
+
className: (0, import_clsx35.default)(
|
|
4973
4977
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
4974
4978
|
componentPadding
|
|
4975
4979
|
),
|
|
4976
4980
|
"aria-label": "Previous month",
|
|
4977
4981
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
4978
|
-
children: /* @__PURE__ */ (0,
|
|
4982
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
4979
4983
|
}
|
|
4980
|
-
) : /* @__PURE__ */ (0,
|
|
4981
|
-
/* @__PURE__ */ (0,
|
|
4982
|
-
/* @__PURE__ */ (0,
|
|
4984
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "mr-1") }),
|
|
4985
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
4986
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4983
4987
|
"button",
|
|
4984
4988
|
{
|
|
4985
4989
|
ref: (el) => {
|
|
@@ -4994,13 +4998,13 @@ function CalendarPane({
|
|
|
4994
4998
|
children: month.name
|
|
4995
4999
|
}
|
|
4996
5000
|
),
|
|
4997
|
-
/* @__PURE__ */ (0,
|
|
5001
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4998
5002
|
Menu,
|
|
4999
5003
|
{
|
|
5000
5004
|
show: monthMenuOpen,
|
|
5001
5005
|
positionTo: monthMenuRef,
|
|
5002
5006
|
setShow: () => setMonthMenuOpen(false),
|
|
5003
|
-
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0,
|
|
5007
|
+
children: months.map((x) => [x, getMonthDataWith(x + 1)]).map(([x, m]) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5004
5008
|
MenuOption,
|
|
5005
5009
|
{
|
|
5006
5010
|
selected: baseMonth.month === x + 1,
|
|
@@ -5014,7 +5018,7 @@ function CalendarPane({
|
|
|
5014
5018
|
))
|
|
5015
5019
|
}
|
|
5016
5020
|
),
|
|
5017
|
-
/* @__PURE__ */ (0,
|
|
5021
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5018
5022
|
"button",
|
|
5019
5023
|
{
|
|
5020
5024
|
ref: (el) => {
|
|
@@ -5029,13 +5033,13 @@ function CalendarPane({
|
|
|
5029
5033
|
children: month.year
|
|
5030
5034
|
}
|
|
5031
5035
|
),
|
|
5032
|
-
/* @__PURE__ */ (0,
|
|
5036
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5033
5037
|
Menu,
|
|
5034
5038
|
{
|
|
5035
5039
|
show: yearMenuOpen,
|
|
5036
5040
|
positionTo: yearMenuRef,
|
|
5037
5041
|
setShow: () => setYearMenuOpen(false),
|
|
5038
|
-
children: years.map((y) => /* @__PURE__ */ (0,
|
|
5042
|
+
children: years.map((y) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5039
5043
|
MenuOption,
|
|
5040
5044
|
{
|
|
5041
5045
|
selected: baseMonth.year === y,
|
|
@@ -5050,28 +5054,28 @@ function CalendarPane({
|
|
|
5050
5054
|
}
|
|
5051
5055
|
)
|
|
5052
5056
|
] }),
|
|
5053
|
-
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0,
|
|
5057
|
+
(mode === "double" ? idx === 1 : true) ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5054
5058
|
"button",
|
|
5055
5059
|
{
|
|
5056
5060
|
id: id ? `${id}-next-month-button` : void 0,
|
|
5057
5061
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
5058
5062
|
type: "button",
|
|
5059
|
-
className: (0,
|
|
5063
|
+
className: (0, import_clsx35.default)(
|
|
5060
5064
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
5061
5065
|
componentPadding
|
|
5062
5066
|
),
|
|
5063
5067
|
"aria-label": "Next month",
|
|
5064
5068
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
5065
|
-
children: /* @__PURE__ */ (0,
|
|
5069
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
5066
5070
|
}
|
|
5067
|
-
) : /* @__PURE__ */ (0,
|
|
5071
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: (0, import_clsx35.default)(componentPadding, "ml-1") })
|
|
5068
5072
|
]
|
|
5069
5073
|
}
|
|
5070
5074
|
),
|
|
5071
|
-
/* @__PURE__ */ (0,
|
|
5075
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5072
5076
|
"span",
|
|
5073
5077
|
{
|
|
5074
|
-
className: (0,
|
|
5078
|
+
className: (0, import_clsx35.default)(
|
|
5075
5079
|
typography.caption,
|
|
5076
5080
|
"text-text-secondary-normal text-center",
|
|
5077
5081
|
"w-10"
|
|
@@ -5080,7 +5084,7 @@ function CalendarPane({
|
|
|
5080
5084
|
},
|
|
5081
5085
|
d
|
|
5082
5086
|
)) }),
|
|
5083
|
-
/* @__PURE__ */ (0,
|
|
5087
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: (0, import_clsx35.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
5084
5088
|
const day = i - emptyCells + 1;
|
|
5085
5089
|
const date = month.date.with({ day: 1 }).add({
|
|
5086
5090
|
days: i - emptyCells
|
|
@@ -5094,7 +5098,7 @@ function CalendarPane({
|
|
|
5094
5098
|
const hoverDateIsAfterPendingFrom = hoveredDate && pendingFrom && import_polyfill.Temporal.PlainDate.compare(hoveredDate, pendingFrom) >= 0;
|
|
5095
5099
|
const isRangeStart = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && fromDate && date.equals(fromDate) || hoverDateIsAfterPendingFrom && date.equals(pendingFrom);
|
|
5096
5100
|
const isRangeEnd = mode === "single" && disableRange ? false : !pendingFrom && isInMonth && toDate && date.equals(toDate) || hoverDateIsBeforePendingFrom && date.equals(pendingFrom);
|
|
5097
|
-
return /* @__PURE__ */ (0,
|
|
5101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5098
5102
|
DateCell,
|
|
5099
5103
|
{
|
|
5100
5104
|
id: id ? `${id}-date-${date.toString()}` : void 0,
|
|
@@ -5119,10 +5123,10 @@ function CalendarPane({
|
|
|
5119
5123
|
]
|
|
5120
5124
|
}
|
|
5121
5125
|
),
|
|
5122
|
-
mode === "double" && idx === 0 && /* @__PURE__ */ (0,
|
|
5126
|
+
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5123
5127
|
"div",
|
|
5124
5128
|
{
|
|
5125
|
-
className: (0,
|
|
5129
|
+
className: (0, import_clsx35.default)(
|
|
5126
5130
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
5127
5131
|
// 1px width, full height, matches Figma divider
|
|
5128
5132
|
"w-px"
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -3,25 +3,26 @@ import {
|
|
|
3
3
|
CalendarRange_default,
|
|
4
4
|
isWeekend
|
|
5
5
|
} from "../chunk-UOHCOOC2.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-M7INAUAJ.js";
|
|
6
|
+
import "../chunk-BK7SPR6Y.js";
|
|
8
7
|
import "../chunk-6I5LZ2ZC.js";
|
|
8
|
+
import "../chunk-M7INAUAJ.js";
|
|
9
9
|
import "../chunk-44TDIHUP.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-ZHZIIVJN.js";
|
|
11
|
+
import "../chunk-2IKT6IHB.js";
|
|
11
12
|
import "../chunk-G5DEC7H3.js";
|
|
12
13
|
import "../chunk-3X3Y4TMS.js";
|
|
13
14
|
import "../chunk-BQNPOGD5.js";
|
|
14
15
|
import "../chunk-MBZ55T2D.js";
|
|
15
|
-
import "../chunk-2IKT6IHB.js";
|
|
16
16
|
import "../chunk-AA6GE3TH.js";
|
|
17
17
|
import "../chunk-KZZKQLKF.js";
|
|
18
18
|
import "../chunk-5IFPG6TS.js";
|
|
19
19
|
import "../chunk-AJ5M6MVX.js";
|
|
20
20
|
import "../chunk-M6TSTDNZ.js";
|
|
21
|
+
import "../chunk-EWGHVZL5.js";
|
|
21
22
|
import "../chunk-QQ5G773N.js";
|
|
22
23
|
import "../chunk-AT4AWD6B.js";
|
|
23
|
-
import "../chunk-EWGHVZL5.js";
|
|
24
24
|
import "../chunk-J5V2JRIK.js";
|
|
25
|
+
import "../chunk-7ULLUUVJ.js";
|
|
25
26
|
import "../chunk-D6YCMQPO.js";
|
|
26
27
|
import "../chunk-4RJKB7LC.js";
|
|
27
28
|
import "../chunk-XM7IQHBU.js";
|
|
@@ -4635,8 +4635,12 @@ var import_react31 = require("react");
|
|
|
4635
4635
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4636
4636
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4637
4637
|
|
|
4638
|
-
// src/components/
|
|
4638
|
+
// src/components/SimpleTable.tsx
|
|
4639
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4639
4640
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4641
|
+
|
|
4642
|
+
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4643
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4640
4644
|
function ColumnSelectorMenuOption({
|
|
4641
4645
|
id,
|
|
4642
4646
|
testid,
|
|
@@ -4645,7 +4649,7 @@ function ColumnSelectorMenuOption({
|
|
|
4645
4649
|
}) {
|
|
4646
4650
|
const [isVisible, setIsVisible] = (0, import_react32.useState)(column.getIsVisible());
|
|
4647
4651
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4648
|
-
return /* @__PURE__ */ (0,
|
|
4652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4649
4653
|
Checkbox,
|
|
4650
4654
|
{
|
|
4651
4655
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelectorMenuOption
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../../chunk-BK7SPR6Y.js";
|
|
5
4
|
import "../../../chunk-6I5LZ2ZC.js";
|
|
5
|
+
import "../../../chunk-M7INAUAJ.js";
|
|
6
6
|
import "../../../chunk-44TDIHUP.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-ZHZIIVJN.js";
|
|
8
|
+
import "../../../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../../../chunk-G5DEC7H3.js";
|
|
9
10
|
import "../../../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../../../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
|
-
import "../../../chunk-2IKT6IHB.js";
|
|
13
13
|
import "../../../chunk-AA6GE3TH.js";
|
|
14
14
|
import "../../../chunk-KZZKQLKF.js";
|
|
15
15
|
import "../../../chunk-5IFPG6TS.js";
|
|
16
16
|
import "../../../chunk-AJ5M6MVX.js";
|
|
17
17
|
import "../../../chunk-M6TSTDNZ.js";
|
|
18
|
+
import "../../../chunk-EWGHVZL5.js";
|
|
18
19
|
import "../../../chunk-QQ5G773N.js";
|
|
19
20
|
import "../../../chunk-AT4AWD6B.js";
|
|
20
|
-
import "../../../chunk-EWGHVZL5.js";
|
|
21
21
|
import "../../../chunk-J5V2JRIK.js";
|
|
22
|
+
import "../../../chunk-7ULLUUVJ.js";
|
|
22
23
|
import "../../../chunk-D6YCMQPO.js";
|
|
23
24
|
import "../../../chunk-4RJKB7LC.js";
|
|
24
25
|
import "../../../chunk-XM7IQHBU.js";
|
|
@@ -4557,9 +4557,13 @@ var import_react30 = require("react");
|
|
|
4557
4557
|
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
4558
4558
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4559
4559
|
|
|
4560
|
+
// src/components/SimpleTable.tsx
|
|
4561
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
4562
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4563
|
+
|
|
4560
4564
|
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
4561
4565
|
var import_react31 = require("react");
|
|
4562
|
-
var
|
|
4566
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4563
4567
|
function ColumnSelectorMenuOption({
|
|
4564
4568
|
id,
|
|
4565
4569
|
testid,
|
|
@@ -4568,7 +4572,7 @@ function ColumnSelectorMenuOption({
|
|
|
4568
4572
|
}) {
|
|
4569
4573
|
const [isVisible, setIsVisible] = (0, import_react31.useState)(column.getIsVisible());
|
|
4570
4574
|
const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
|
|
4571
|
-
return /* @__PURE__ */ (0,
|
|
4575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4572
4576
|
Checkbox,
|
|
4573
4577
|
{
|
|
4574
4578
|
id: id ? `${id}-checkbox` : void 0,
|
|
@@ -4584,7 +4588,7 @@ function ColumnSelectorMenuOption({
|
|
|
4584
4588
|
}
|
|
4585
4589
|
|
|
4586
4590
|
// src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
|
|
4587
|
-
var
|
|
4591
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4588
4592
|
function ColumnSelectorHeaderCell({
|
|
4589
4593
|
id,
|
|
4590
4594
|
testid,
|
|
@@ -4594,7 +4598,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4594
4598
|
}) {
|
|
4595
4599
|
const ref = (0, import_react32.useRef)(null);
|
|
4596
4600
|
const [show, setShow] = (0, import_react32.useState)(false);
|
|
4597
|
-
return /* @__PURE__ */ (0,
|
|
4601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
4598
4602
|
DataGridCell,
|
|
4599
4603
|
{
|
|
4600
4604
|
id,
|
|
@@ -4604,7 +4608,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4604
4608
|
color: "text-secondary-normal",
|
|
4605
4609
|
ref,
|
|
4606
4610
|
children: [
|
|
4607
|
-
/* @__PURE__ */ (0,
|
|
4611
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4608
4612
|
Button,
|
|
4609
4613
|
{
|
|
4610
4614
|
id: id ? `${id}-button` : void 0,
|
|
@@ -4612,10 +4616,10 @@ function ColumnSelectorHeaderCell({
|
|
|
4612
4616
|
onClick: () => setShow((prev) => !prev),
|
|
4613
4617
|
variant: "navigation",
|
|
4614
4618
|
iconOnly: true,
|
|
4615
|
-
leftIcon: /* @__PURE__ */ (0,
|
|
4619
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { name: "tune" })
|
|
4616
4620
|
}
|
|
4617
4621
|
),
|
|
4618
|
-
/* @__PURE__ */ (0,
|
|
4622
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
4619
4623
|
Menu,
|
|
4620
4624
|
{
|
|
4621
4625
|
id: id ? `${id}-menu` : void 0,
|
|
@@ -4626,7 +4630,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4626
4630
|
setShow,
|
|
4627
4631
|
calculateMinMaxHeight: true,
|
|
4628
4632
|
children: [
|
|
4629
|
-
/* @__PURE__ */ (0,
|
|
4633
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4630
4634
|
Button,
|
|
4631
4635
|
{
|
|
4632
4636
|
id: id ? `${id}-reset-button` : void 0,
|
|
@@ -4642,7 +4646,7 @@ function ColumnSelectorHeaderCell({
|
|
|
4642
4646
|
table.getAllColumns().filter((x) => {
|
|
4643
4647
|
var _a;
|
|
4644
4648
|
return (_a = x.columnDef.meta) == null ? void 0 : _a.inVisibilityMenu;
|
|
4645
|
-
}).map((column) => /* @__PURE__ */ (0,
|
|
4649
|
+
}).map((column) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4646
4650
|
ColumnSelectorMenuOption,
|
|
4647
4651
|
{
|
|
4648
4652
|
id: id ? `${id}-option-${column.id}` : void 0,
|
|
@@ -841,6 +841,9 @@
|
|
|
841
841
|
.\!w-20 {
|
|
842
842
|
width: calc(var(--spacing) * 20) !important;
|
|
843
843
|
}
|
|
844
|
+
.w-2\/3 {
|
|
845
|
+
width: calc(2/3 * 100%);
|
|
846
|
+
}
|
|
844
847
|
.w-3 {
|
|
845
848
|
width: calc(var(--spacing) * 3);
|
|
846
849
|
}
|
|
@@ -961,6 +964,9 @@
|
|
|
961
964
|
.grow-0 {
|
|
962
965
|
flex-grow: 0;
|
|
963
966
|
}
|
|
967
|
+
.border-collapse {
|
|
968
|
+
border-collapse: collapse;
|
|
969
|
+
}
|
|
964
970
|
.translate-x-0 {
|
|
965
971
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
966
972
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -2035,6 +2041,9 @@
|
|
|
2035
2041
|
.text-right {
|
|
2036
2042
|
text-align: right;
|
|
2037
2043
|
}
|
|
2044
|
+
.align-middle {
|
|
2045
|
+
vertical-align: middle;
|
|
2046
|
+
}
|
|
2038
2047
|
.font-sans {
|
|
2039
2048
|
font-family: var(--font-sans);
|
|
2040
2049
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ColumnSelectorHeaderCell
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-M7INAUAJ.js";
|
|
3
|
+
} from "../../../chunk-BK7SPR6Y.js";
|
|
5
4
|
import "../../../chunk-6I5LZ2ZC.js";
|
|
5
|
+
import "../../../chunk-M7INAUAJ.js";
|
|
6
6
|
import "../../../chunk-44TDIHUP.js";
|
|
7
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-ZHZIIVJN.js";
|
|
8
|
+
import "../../../chunk-2IKT6IHB.js";
|
|
8
9
|
import "../../../chunk-G5DEC7H3.js";
|
|
9
10
|
import "../../../chunk-3X3Y4TMS.js";
|
|
10
11
|
import "../../../chunk-BQNPOGD5.js";
|
|
11
12
|
import "../../../chunk-MBZ55T2D.js";
|
|
12
|
-
import "../../../chunk-2IKT6IHB.js";
|
|
13
13
|
import "../../../chunk-AA6GE3TH.js";
|
|
14
14
|
import "../../../chunk-KZZKQLKF.js";
|
|
15
15
|
import "../../../chunk-5IFPG6TS.js";
|
|
16
16
|
import "../../../chunk-AJ5M6MVX.js";
|
|
17
17
|
import "../../../chunk-M6TSTDNZ.js";
|
|
18
|
+
import "../../../chunk-EWGHVZL5.js";
|
|
18
19
|
import "../../../chunk-QQ5G773N.js";
|
|
19
20
|
import "../../../chunk-AT4AWD6B.js";
|
|
20
|
-
import "../../../chunk-EWGHVZL5.js";
|
|
21
21
|
import "../../../chunk-J5V2JRIK.js";
|
|
22
|
+
import "../../../chunk-7ULLUUVJ.js";
|
|
22
23
|
import "../../../chunk-D6YCMQPO.js";
|
|
23
24
|
import "../../../chunk-4RJKB7LC.js";
|
|
24
25
|
import "../../../chunk-XM7IQHBU.js";
|