@dmsi/wedgekit-react 0.0.172 → 0.0.173

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.
Files changed (39) hide show
  1. package/dist/{chunk-PMBEIP24.js → chunk-IDSFWKOR.js} +1 -1
  2. package/dist/{chunk-XH65MD2C.js → chunk-KADNOKNW.js} +1 -1
  3. package/dist/{chunk-F6YFWBVV.js → chunk-REGRTR2Y.js} +2 -2
  4. package/dist/{chunk-O4JGGMFE.js → chunk-TB7VTSDP.js} +26 -15
  5. package/dist/components/DataGridCell.cjs +20 -9
  6. package/dist/components/DataGridCell.js +6 -6
  7. package/dist/components/DateInput.js +10 -10
  8. package/dist/components/DateRangeInput.js +10 -10
  9. package/dist/components/FilterGroup.js +5 -5
  10. package/dist/components/Input.js +2 -2
  11. package/dist/components/MobileDataGrid.js +3 -3
  12. package/dist/components/Modal.js +4 -4
  13. package/dist/components/ModalButtons.js +2 -2
  14. package/dist/components/ModalHeader.js +2 -2
  15. package/dist/components/NavigationTab.js +2 -2
  16. package/dist/components/NavigationTabs.js +2 -2
  17. package/dist/components/Notification.js +3 -3
  18. package/dist/components/OptionPill.js +2 -2
  19. package/dist/components/PDFViewer.js +6 -6
  20. package/dist/components/Password.js +2 -2
  21. package/dist/components/Search.js +3 -3
  22. package/dist/components/Select.js +3 -3
  23. package/dist/components/Stepper.js +5 -5
  24. package/dist/components/Time.js +2 -2
  25. package/dist/components/Toast.js +3 -3
  26. package/dist/components/Upload.js +3 -3
  27. package/dist/components/index.cjs +213 -181
  28. package/dist/components/index.js +205 -184
  29. package/package.json +1 -1
  30. package/src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx +1 -1
  31. package/src/components/DataGrid/PinnedColumns.tsx +19 -6
  32. package/src/components/DataGrid/TableBody/TableBodyRow.tsx +7 -2
  33. package/src/components/DataGrid/index.tsx +38 -9
  34. package/src/components/DataGridCell.tsx +16 -4
  35. package/dist/{chunk-4T3DRGLF.js → chunk-MVGOAMTP.js} +3 -3
  36. package/dist/{chunk-C4JGTH6G.js → chunk-T7NDKJDP.js} +3 -3
  37. package/dist/{chunk-LM5MKBPM.js → chunk-UGNB32SL.js} +3 -3
  38. package/dist/{chunk-ZGFQN47L.js → chunk-ZR4E5A43.js} +3 -3
  39. package/dist/{chunk-MJKBQSNI.js → chunk-ZSKLCKIR.js} +3 -3
@@ -1881,7 +1881,7 @@ function DataCellHeader(_a) {
1881
1881
  "testid",
1882
1882
  "useMenuDefaultMinWidth"
1883
1883
  ]);
1884
- var _a2;
1884
+ var _a2, _b2, _c;
1885
1885
  const [showMenu, setShowMenu] = (0, import_react10.useState)(false);
1886
1886
  const [filter, setFilter] = (0, import_react10.useState)(
1887
1887
  (_a2 = header.column.getFilterValue()) != null ? _a2 : ""
@@ -1915,7 +1915,7 @@ function DataCellHeader(_a) {
1915
1915
  const style = __spreadValues({
1916
1916
  position: "relative",
1917
1917
  whiteSpace: "nowrap",
1918
- width: header.column.getSize(),
1918
+ width: (_c = (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.headerWidth) != null ? _c : header.column.getSize(),
1919
1919
  "--color-text-primary-normal": "var(--color-text-brand-primary-normal)",
1920
1920
  "--color-icon-on-action-primary-normal": "var(--color-text-brand-primary-normal)",
1921
1921
  "--background-action-secondary-normal": "var(--color-text-brand-primary-normal)"
@@ -1952,8 +1952,8 @@ function DataCellHeader(_a) {
1952
1952
  id: id ? `${id}-filter-option` : void 0,
1953
1953
  testid: testid ? `${testid}-filter-option` : void 0
1954
1954
  }, subMenuListeners), {
1955
- subMenu: (_b2) => {
1956
- var _c = _b2, { menuId, subMenuLevel } = _c, props2 = __objRest(_c, ["menuId", "subMenuLevel"]);
1955
+ subMenu: (_d) => {
1956
+ var _e = _d, { menuId, subMenuLevel } = _e, props2 = __objRest(_e, ["menuId", "subMenuLevel"]);
1957
1957
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1958
1958
  Menu,
1959
1959
  __spreadProps(__spreadValues({
@@ -2026,8 +2026,8 @@ function DataCellHeader(_a) {
2026
2026
  setShowMenu(!showMenu);
2027
2027
  }
2028
2028
  }, subMenuListeners), {
2029
- subMenu: (_d) => {
2030
- var _e = _d, { menuId, subMenuLevel } = _e, props2 = __objRest(_e, ["menuId", "subMenuLevel"]);
2029
+ subMenu: (_f) => {
2030
+ var _g = _f, { menuId, subMenuLevel } = _g, props2 = __objRest(_g, ["menuId", "subMenuLevel"]);
2031
2031
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2032
2032
  Menu,
2033
2033
  __spreadProps(__spreadValues({}, props2), {
@@ -2115,6 +2115,7 @@ function DraggableCellHeader(_a) {
2115
2115
  "header",
2116
2116
  "children"
2117
2117
  ]);
2118
+ var _a2, _b2;
2118
2119
  const { attributes, isDragging, listeners, setNodeRef, transform, node } = (0, import_sortable.useSortable)({
2119
2120
  id: header.column.id
2120
2121
  });
@@ -2125,7 +2126,7 @@ function DraggableCellHeader(_a) {
2125
2126
  transition: "width transform 0.2s ease-in-out",
2126
2127
  whiteSpace: "nowrap",
2127
2128
  zIndex: isDragging ? 1 : 0,
2128
- width: header.column.getSize(),
2129
+ width: (_b2 = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.headerWidth) != null ? _b2 : header.column.getSize(),
2129
2130
  "--color-text-primary-normal": "var(--color-action-000)",
2130
2131
  "--color-icon-on-action-primary-normal": "var(--color-action-000)",
2131
2132
  userSelect: "none"
@@ -2151,6 +2152,7 @@ function DragAlongCell(_a) {
2151
2152
  "cell",
2152
2153
  "children"
2153
2154
  ]);
2155
+ var _a2, _b2, _c, _d;
2154
2156
  const { isDragging, setNodeRef, transform } = (0, import_sortable.useSortable)({
2155
2157
  id: cell.column.id
2156
2158
  });
@@ -2159,10 +2161,19 @@ function DragAlongCell(_a) {
2159
2161
  position: "relative",
2160
2162
  transform: CSS.Translate.toString(transform),
2161
2163
  transition: "width transform 0.2s ease-in-out",
2162
- width: cell.column.getSize(),
2164
+ width: (_b2 = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.headerWidth) != null ? _b2 : cell.column.getSize(),
2163
2165
  zIndex: isDragging ? 1 : 0
2164
2166
  };
2165
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DataGridCell, __spreadProps(__spreadValues({ style, ref: setNodeRef }, props), { children }));
2167
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2168
+ DataGridCell,
2169
+ __spreadProps(__spreadValues({
2170
+ style,
2171
+ ref: setNodeRef,
2172
+ width: (_d = (_c = cell.column.columnDef.meta) == null ? void 0 : _c.headerWidth) != null ? _d : `${cell.column.getSize()}px`
2173
+ }, props), {
2174
+ children
2175
+ })
2176
+ );
2166
2177
  }
2167
2178
  DragAlongCell.displayName = "DragAlongCell";
2168
2179
 
@@ -2254,7 +2265,7 @@ function TableBodyRow({
2254
2265
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { style: { display: "flex", width: virtualPaddingLeft } })
2255
2266
  ) : null,
2256
2267
  columns.map((column) => {
2257
- var _a2, _b;
2268
+ var _a2, _b, _c;
2258
2269
  const cell = locked ? column : visibleCells[column.index];
2259
2270
  if (!cell) {
2260
2271
  return;
@@ -2269,7 +2280,7 @@ function TableBodyRow({
2269
2280
  className: (0, import_clsx10.default)({
2270
2281
  "justify-end": typeof cellValue === "number"
2271
2282
  }),
2272
- width: (_b = cell.column.columnDef.meta) == null ? void 0 : _b.headerWidth,
2283
+ width: (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.headerWidth) != null ? _c : `${cell.column.getSize()}px`,
2273
2284
  children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2274
2285
  Tooltip,
2275
2286
  {
@@ -2496,68 +2507,75 @@ function PinnedColumns(_a) {
2496
2507
  "data-testid": pinnedTestId,
2497
2508
  children: [
2498
2509
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("thead", { className: "sticky top-0 z-20 grid", children: headerGroups.map((headerGroup) => {
2499
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("tr", { "data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0, className: "flex w-full", children: headerGroup.headers.map((header) => {
2500
- var _a3, _b2, _c;
2501
- if (!header) {
2502
- return;
2503
- }
2504
- if (typeof header.column.columnDef.header === "string") {
2505
- const customHeaderWidth = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth;
2506
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2507
- DataCellHeader,
2508
- {
2509
- locked: true,
2510
- testid: pinnedTestId ? `${pinnedTestId}-header-${header.id}` : void 0,
2511
- header,
2512
- center: centerHeader,
2513
- width: customHeaderWidth,
2514
- className: (0, import_clsx12.default)(
2515
- header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
2516
- "group"
2517
- ),
2518
- children: [
2519
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2520
- getSortIcon(header.column.getIsSorted()),
2521
- !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
2522
- header.column.getNextSortingOrder(),
2523
- true
2524
- ),
2525
- header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
2526
- !((_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2527
- "div",
2528
- {
2529
- onDoubleClick: (e) => {
2530
- e.stopPropagation();
2531
- header.column.resetSize();
2532
- },
2533
- onMouseDown: (e) => {
2534
- e.stopPropagation();
2535
- header.getResizeHandler()(e);
2536
- },
2537
- onTouchStart: (e) => {
2538
- e.stopPropagation();
2539
- header.getResizeHandler()(e);
2540
- },
2541
- className: "absolute right-0 inset-y-0 w-px bg-black cursor-col-resize"
2542
- }
2543
- )
2544
- ]
2545
- },
2546
- header.id
2547
- );
2548
- }
2549
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react12.default.Fragment, { children: ((_c = header.column.columnDef.meta) == null ? void 0 : _c.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2550
- Checkbox,
2551
- {
2552
- checked: allSelectedAcrossPages,
2553
- indeterminate: someSelectedAcrossPages,
2554
- onChange: toggleSelectAllAcrossPages
2555
- }
2556
- ) }) : (0, import_react_table2.flexRender)(
2557
- header.column.columnDef.header,
2558
- header.getContext()
2559
- ) }, header.id);
2560
- }) }, headerGroup.id);
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2511
+ "tr",
2512
+ {
2513
+ "data-testid": pinnedTestId ? `${pinnedTestId}-header-row-${headerGroup.id}` : void 0,
2514
+ className: "flex w-full",
2515
+ children: headerGroup.headers.map((header) => {
2516
+ var _a3, _b2, _c, _d;
2517
+ if (!header) {
2518
+ return;
2519
+ }
2520
+ if (typeof header.column.columnDef.header === "string") {
2521
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2522
+ DataCellHeader,
2523
+ {
2524
+ locked: true,
2525
+ testid: pinnedTestId ? `${pinnedTestId}-header-${header.id}` : void 0,
2526
+ header,
2527
+ center: centerHeader,
2528
+ width: (_b2 = (_a3 = header.column.columnDef.meta) == null ? void 0 : _a3.headerWidth) != null ? _b2 : `${header.column.getSize()}px`,
2529
+ className: (0, import_clsx12.default)(
2530
+ header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
2531
+ "group"
2532
+ ),
2533
+ children: [
2534
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2535
+ getSortIcon(header.column.getIsSorted()),
2536
+ !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
2537
+ header.column.getNextSortingOrder(),
2538
+ true
2539
+ ),
2540
+ header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
2541
+ !((_c = header.column.columnDef.meta) == null ? void 0 : _c.locked) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2542
+ "div",
2543
+ {
2544
+ onDoubleClick: (e) => {
2545
+ e.stopPropagation();
2546
+ header.column.resetSize();
2547
+ },
2548
+ onMouseDown: (e) => {
2549
+ e.stopPropagation();
2550
+ header.getResizeHandler()(e);
2551
+ },
2552
+ onTouchStart: (e) => {
2553
+ e.stopPropagation();
2554
+ header.getResizeHandler()(e);
2555
+ },
2556
+ className: "absolute right-0 inset-y-0 w-px bg-black cursor-col-resize"
2557
+ }
2558
+ )
2559
+ ]
2560
+ },
2561
+ header.id
2562
+ );
2563
+ }
2564
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react12.default.Fragment, { children: ((_d = header.column.columnDef.meta) == null ? void 0 : _d.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2565
+ Checkbox,
2566
+ {
2567
+ checked: allSelectedAcrossPages,
2568
+ indeterminate: someSelectedAcrossPages,
2569
+ onChange: toggleSelectAllAcrossPages
2570
+ }
2571
+ ) }) : (0, import_react_table2.flexRender)(
2572
+ header.column.columnDef.header,
2573
+ header.getContext()
2574
+ ) }, header.id);
2575
+ })
2576
+ },
2577
+ headerGroup.id
2578
+ );
2561
2579
  }) }),
2562
2580
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2563
2581
  TableBody,
@@ -2619,7 +2637,7 @@ function ColumnSelectorHeaderCell({
2619
2637
  {
2620
2638
  id,
2621
2639
  testid,
2622
- width: "48",
2640
+ width: "48px",
2623
2641
  type: "header",
2624
2642
  color: "text-secondary-normal",
2625
2643
  ref,
@@ -2865,7 +2883,7 @@ function DataGrid({
2865
2883
  //estimate width of each column for accurate scrollbar dragging
2866
2884
  getScrollElement: () => containerRef.current,
2867
2885
  horizontal: true,
2868
- overscan: 3
2886
+ overscan: 8
2869
2887
  //how many columns to render on each side off screen each way
2870
2888
  });
2871
2889
  const virtualColumns = columnVirtualizer.getVirtualItems();
@@ -2920,118 +2938,126 @@ function DataGrid({
2920
2938
  }
2921
2939
  ),
2922
2940
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("table", { className: "flex-1 flex flex-col min-h-min", children: [
2923
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("thead", { className: "sticky top-0 z-10 grid", children: table.getCenterHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("tr", { "data-testid": testid ? `${testid}-header-row-${headerGroup.id}` : void 0, className: "flex w-full", children: [
2924
- virtualPaddingLeft ? (
2925
- // fake empty column to the left for virtualization scroll padding
2926
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2927
- "th",
2928
- {
2929
- style: { display: "flex", width: virtualPaddingLeft }
2930
- }
2931
- )
2932
- ) : null,
2933
- virtualColumns.map((virtualColumn) => {
2934
- var _a2, _b2, _c2, _d2;
2935
- const header = headerGroup.headers[virtualColumn.index];
2936
- if (!header) {
2937
- return;
2938
- }
2939
- if (typeof header.column.columnDef.header === "string") {
2940
- const customHeaderWidth = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.headerWidth;
2941
- const cellValue = (_b2 = table.getRowModel().rows[0]) == null ? void 0 : _b2.getValue(header.column.id);
2942
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2943
- DraggableCellHeader,
2944
- {
2945
- id: id ? `${id}-header-${header.id}` : void 0,
2946
- testid: testid ? `${testid}-header-${header.id}` : void 0,
2947
- header,
2948
- locked: (_c2 = header.column.columnDef.meta) == null ? void 0 : _c2.locked,
2949
- center: centerHeader,
2950
- width: customHeaderWidth,
2951
- className: (0, import_clsx13.default)(
2952
- header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
2953
- "group",
2941
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("thead", { className: "sticky top-0 z-10 grid", children: table.getCenterHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2942
+ "tr",
2943
+ {
2944
+ "data-testid": testid ? `${testid}-header-row-${headerGroup.id}` : void 0,
2945
+ className: "flex w-full",
2946
+ children: [
2947
+ virtualPaddingLeft ? (
2948
+ // fake empty column to the left for virtualization scroll padding
2949
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2950
+ "th",
2951
+ {
2952
+ style: { display: "flex", width: virtualPaddingLeft }
2953
+ }
2954
+ )
2955
+ ) : null,
2956
+ virtualColumns.map((virtualColumn) => {
2957
+ var _a2, _b2, _c2, _d2;
2958
+ const header = headerGroup.headers[virtualColumn.index];
2959
+ if (!header) {
2960
+ return;
2961
+ }
2962
+ if (typeof header.column.columnDef.header === "string") {
2963
+ const customHeaderWidth = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.headerWidth;
2964
+ const cellValue = (_b2 = table.getRowModel().rows[0]) == null ? void 0 : _b2.getValue(header.column.id);
2965
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
2966
+ DraggableCellHeader,
2954
2967
  {
2955
- "justify-end": typeof cellValue === "number"
2956
- }
2957
- ),
2958
- useMenuDefaultMinWidth,
2959
- children: [
2960
- typeof cellValue !== "number" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2961
- getSortIcon(header.column.getIsSorted()),
2962
- !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
2963
- header.column.getNextSortingOrder(),
2964
- true
2965
- ),
2966
- header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
2967
- typeof cellValue === "number" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2968
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2969
- "div",
2968
+ id: id ? `${id}-header-${header.id}` : void 0,
2969
+ testid: testid ? `${testid}-header-${header.id}` : void 0,
2970
+ header,
2971
+ locked: (_c2 = header.column.columnDef.meta) == null ? void 0 : _c2.locked,
2972
+ center: centerHeader,
2973
+ width: customHeaderWidth,
2974
+ className: (0, import_clsx13.default)(
2975
+ header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
2976
+ "group",
2977
+ {
2978
+ "justify-end": typeof cellValue === "number"
2979
+ }
2980
+ ),
2981
+ useMenuDefaultMinWidth,
2982
+ children: [
2983
+ typeof cellValue !== "number" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2984
+ getSortIcon(header.column.getIsSorted()),
2985
+ !header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
2986
+ header.column.getNextSortingOrder(),
2987
+ true
2988
+ ),
2989
+ header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
2990
+ typeof cellValue === "number" && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Subheader, { tall: true, children: header.column.columnDef.header }),
2991
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2992
+ "div",
2993
+ {
2994
+ onDoubleClick: (e) => {
2995
+ e.stopPropagation();
2996
+ header.column.resetSize();
2997
+ },
2998
+ onMouseDown: (e) => {
2999
+ e.stopPropagation();
3000
+ header.getResizeHandler()(e);
3001
+ },
3002
+ onTouchStart: (e) => {
3003
+ e.stopPropagation();
3004
+ header.getResizeHandler()(e);
3005
+ },
3006
+ className: "absolute right-0 inset-y-0 w-px bg-black cursor-col-resize"
3007
+ }
3008
+ )
3009
+ ]
3010
+ },
3011
+ header.id
3012
+ );
3013
+ }
3014
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_d2 = header.column.columnDef.meta) == null ? void 0 : _d2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3015
+ DataGridCell,
3016
+ {
3017
+ id: id ? `${id}-header-${header.id}` : void 0,
3018
+ testid: testid ? `${testid}-header-${header.id}` : void 0,
3019
+ type: "header",
3020
+ component: "checkbox",
3021
+ locked: true,
3022
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3023
+ Checkbox,
2970
3024
  {
2971
- onDoubleClick: (e) => {
2972
- e.stopPropagation();
2973
- header.column.resetSize();
2974
- },
2975
- onMouseDown: (e) => {
2976
- e.stopPropagation();
2977
- header.getResizeHandler()(e);
2978
- },
2979
- onTouchStart: (e) => {
2980
- e.stopPropagation();
2981
- header.getResizeHandler()(e);
2982
- },
2983
- className: "absolute right-0 inset-y-0 w-px bg-black cursor-col-resize"
3025
+ id: id ? `${id}-select-all-checkbox` : void 0,
3026
+ testid: testid ? `${testid}-select-all-checkbox` : void 0,
3027
+ checked: allSelectedAcrossPages,
3028
+ indeterminate: someSelectedAcrossPages,
3029
+ onChange: toggleSelectAllAcrossPages
2984
3030
  }
2985
3031
  )
2986
- ]
2987
- },
2988
- header.id
2989
- );
2990
- }
2991
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_d2 = header.column.columnDef.meta) == null ? void 0 : _d2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2992
- DataGridCell,
2993
- {
2994
- id: id ? `${id}-header-${header.id}` : void 0,
2995
- testid: testid ? `${testid}-header-${header.id}` : void 0,
2996
- type: "header",
2997
- component: "checkbox",
2998
- locked: true,
2999
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3000
- Checkbox,
3032
+ }
3033
+ ) : (0, import_react_table3.flexRender)(
3034
+ header.column.columnDef.header,
3035
+ header.getContext()
3036
+ ) }, header.id);
3037
+ }),
3038
+ virtualPaddingRight ? (
3039
+ //fake empty column to the right for virtualization scroll padding
3040
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3041
+ "th",
3001
3042
  {
3002
- id: id ? `${id}-select-all-checkbox` : void 0,
3003
- testid: testid ? `${testid}-select-all-checkbox` : void 0,
3004
- checked: allSelectedAcrossPages,
3005
- indeterminate: someSelectedAcrossPages,
3006
- onChange: toggleSelectAllAcrossPages
3043
+ style: { display: "flex", width: virtualPaddingRight }
3007
3044
  }
3008
3045
  )
3009
- }
3010
- ) : (0, import_react_table3.flexRender)(
3011
- header.column.columnDef.header,
3012
- header.getContext()
3013
- ) }, header.id);
3014
- }),
3015
- virtualPaddingRight ? (
3016
- //fake empty column to the right for virtualization scroll padding
3017
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3018
- "th",
3019
- {
3020
- style: { display: "flex", width: virtualPaddingRight }
3021
- }
3022
- )
3023
- ) : null,
3024
- enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3025
- ColumnSelectorHeaderCell,
3026
- {
3027
- id: id ? `${id}-column-selector` : void 0,
3028
- testid: testid ? `${testid}-column-selector` : void 0,
3029
- table,
3030
- toggleColumnVisibility,
3031
- resetColumnVisibility
3032
- }
3033
- )
3034
- ] }, headerGroup.id)) }),
3046
+ ) : null,
3047
+ enableColumnSelector && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3048
+ ColumnSelectorHeaderCell,
3049
+ {
3050
+ id: id ? `${id}-column-selector` : void 0,
3051
+ testid: testid ? `${testid}-column-selector` : void 0,
3052
+ table,
3053
+ toggleColumnVisibility,
3054
+ resetColumnVisibility
3055
+ }
3056
+ )
3057
+ ]
3058
+ },
3059
+ headerGroup.id
3060
+ )) }),
3035
3061
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3036
3062
  TableBody,
3037
3063
  {
@@ -3160,7 +3186,13 @@ function DataGrid({
3160
3186
  )
3161
3187
  ] })
3162
3188
  ] }),
3163
- status && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Paragraph, { testid: testid ? `${testid}-status-text` : void 0, children: status })
3189
+ status && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3190
+ Paragraph,
3191
+ {
3192
+ testid: testid ? `${testid}-status-text` : void 0,
3193
+ children: status
3194
+ }
3195
+ )
3164
3196
  ] })
3165
3197
  ]
3166
3198
  }