@equinor/apollo-components 3.1.8 → 3.2.0

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/index.mjs CHANGED
@@ -2429,6 +2429,19 @@ function AppSidebar() {
2429
2429
  });
2430
2430
  }
2431
2431
 
2432
+ // src/cells/CheckboxCell.tsx
2433
+ import { Checkbox } from "@equinor/eds-core-react";
2434
+ import { jsx as jsx3 } from "react/jsx-runtime";
2435
+ function CheckboxCell(context) {
2436
+ return /* @__PURE__ */ jsx3(Checkbox, {
2437
+ enterKeyHint: "next",
2438
+ "aria-label": "readonly",
2439
+ readOnly: true,
2440
+ checked: context.getValue(),
2441
+ disabled: true
2442
+ });
2443
+ }
2444
+
2432
2445
  // src/cells/ChipsCell.tsx
2433
2446
  import { tokens as tokens2 } from "@equinor/eds-tokens";
2434
2447
  import styled3 from "styled-components";
@@ -2450,7 +2463,7 @@ function stopPropagation(handler) {
2450
2463
  }
2451
2464
 
2452
2465
  // src/cells/ChipsCell.tsx
2453
- import { jsx as jsx3 } from "react/jsx-runtime";
2466
+ import { jsx as jsx4 } from "react/jsx-runtime";
2454
2467
  var ChipsWrapper = styled3.div`
2455
2468
  display: flex;
2456
2469
  align-items: center;
@@ -2469,8 +2482,8 @@ var Chip = styled3.div`
2469
2482
  `;
2470
2483
  var ChipsCell = (props) => {
2471
2484
  var _a;
2472
- return /* @__PURE__ */ jsx3(ChipsWrapper, {
2473
- children: (_a = props.values) == null ? void 0 : _a.map((value) => /* @__PURE__ */ jsx3(Chip, {
2485
+ return /* @__PURE__ */ jsx4(ChipsWrapper, {
2486
+ children: (_a = props.values) == null ? void 0 : _a.map((value) => /* @__PURE__ */ jsx4(Chip, {
2474
2487
  backgroundColor: stringToHslColor(value),
2475
2488
  children: value
2476
2489
  }, value))
@@ -2509,7 +2522,7 @@ var StickyHeaderCell = styled4(StickyCell)`
2509
2522
  `;
2510
2523
 
2511
2524
  // src/cells/DynamicCell.tsx
2512
- import { jsx as jsx4 } from "react/jsx-runtime";
2525
+ import { jsx as jsx5 } from "react/jsx-runtime";
2513
2526
  var StyledStickyCell = styled5(StickyCell)`
2514
2527
  background-color: ${({ backgroundColor: bg }) => bg ? `${bg} !important` : `inherit`};
2515
2528
  `;
@@ -2520,13 +2533,13 @@ function DynamicCell({ cell, highlight, getStickyCellColor }) {
2520
2533
  var _a;
2521
2534
  const cellContent = flexRender(cell.column.columnDef.cell, cell.getContext());
2522
2535
  if ((_a = cell.column.columnDef.meta) == null ? void 0 : _a.sticky) {
2523
- return /* @__PURE__ */ jsx4(StyledStickyCell, {
2536
+ return /* @__PURE__ */ jsx5(StyledStickyCell, {
2524
2537
  backgroundColor: getStickyCellColor == null ? void 0 : getStickyCellColor(cell),
2525
2538
  "data-column": cell.column.id,
2526
2539
  children: cellContent
2527
2540
  });
2528
2541
  }
2529
- return /* @__PURE__ */ jsx4(StyledCell, {
2542
+ return /* @__PURE__ */ jsx5(StyledCell, {
2530
2543
  "data-column": cell.column.id,
2531
2544
  backgroundColor: highlight ? "#d5eaf4" : void 0,
2532
2545
  children: cellContent
@@ -2534,18 +2547,42 @@ function DynamicCell({ cell, highlight, getStickyCellColor }) {
2534
2547
  }
2535
2548
 
2536
2549
  // src/cells/HeaderCell.tsx
2537
- import { Icon as Icon3, Table as Table3 } from "@equinor/eds-core-react";
2550
+ import { Icon as Icon3, Table as EdsTable } from "@equinor/eds-core-react";
2538
2551
  import { arrow_drop_down, arrow_drop_up } from "@equinor/eds-icons";
2552
+ import { tokens as tokens3 } from "@equinor/eds-tokens";
2539
2553
  import { flexRender as flexRender2 } from "@tanstack/react-table";
2540
- import styled6 from "styled-components";
2541
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
2542
- var HeaderDiv = styled6.div`
2543
- display: flex;
2544
- align-items: center;
2545
- gap: 0.25rem;
2546
- z-index: 5;
2554
+ import styled6, { css as css3 } from "styled-components";
2555
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
2556
+ var resizeCellStyle = css3`
2557
+ .resizer {
2558
+ position: absolute;
2559
+ right: 0;
2560
+ top: 0;
2561
+ height: 100%;
2562
+ width: 4px;
2563
+ opacity: 0;
2564
+ background: #aaa;
2565
+ cursor: col-resize;
2566
+ user-select: none;
2567
+ touch-action: none;
2568
+ }
2569
+
2570
+ .resizer.isResizing {
2571
+ background: ${tokens3.colors.interactive.focus.hex};
2572
+ opacity: 1;
2573
+ }
2574
+
2575
+ &:hover .resizer {
2576
+ opacity: 1;
2577
+ }
2578
+ `;
2579
+ var StickyCell2 = styled6(StickyHeaderCell)`
2580
+ ${resizeCellStyle}
2581
+ `;
2582
+ var Cell2 = styled6(EdsTable.Cell)`
2583
+ ${resizeCellStyle}
2547
2584
  `;
2548
- var HeaderCell = ({ header }) => {
2585
+ var HeaderCell = ({ header, table }) => {
2549
2586
  var _a;
2550
2587
  const style = {
2551
2588
  width: header.column.getSize(),
@@ -2558,37 +2595,54 @@ var HeaderCell = ({ header }) => {
2558
2595
  colSpan: header.colSpan
2559
2596
  };
2560
2597
  if ((_a = header.column.columnDef.meta) == null ? void 0 : _a.sticky) {
2561
- return /* @__PURE__ */ jsx5(StickyHeaderCell, {
2598
+ return /* @__PURE__ */ jsx6(StickyCell2, {
2562
2599
  ...cellProps,
2563
- children: /* @__PURE__ */ jsx5(HeaderContent, {
2564
- header
2600
+ children: /* @__PURE__ */ jsx6(HeaderContent, {
2601
+ header,
2602
+ table
2565
2603
  })
2566
2604
  }, header.id);
2567
2605
  }
2568
- return /* @__PURE__ */ jsx5(Table3.Cell, {
2606
+ return /* @__PURE__ */ jsx6(Cell2, {
2569
2607
  ...cellProps,
2570
- children: /* @__PURE__ */ jsx5(HeaderContent, {
2571
- header
2608
+ children: /* @__PURE__ */ jsx6(HeaderContent, {
2609
+ header,
2610
+ table
2572
2611
  })
2573
2612
  }, header.id);
2574
2613
  };
2575
- function HeaderContent({ header }) {
2614
+ var HeaderDiv = styled6.div`
2615
+ display: flex;
2616
+ align-items: center;
2617
+ gap: 0.25rem;
2618
+ z-index: 5;
2619
+ `;
2620
+ function HeaderContent({ header, table }) {
2576
2621
  if (header.isPlaceholder)
2577
2622
  return null;
2578
2623
  return /* @__PURE__ */ jsxs3(HeaderDiv, {
2579
2624
  children: [
2580
2625
  flexRender2(header.column.columnDef.header, header.getContext()),
2581
2626
  {
2582
- asc: /* @__PURE__ */ jsx5(Icon3, {
2627
+ asc: /* @__PURE__ */ jsx6(Icon3, {
2583
2628
  data: arrow_drop_up
2584
2629
  }),
2585
- desc: /* @__PURE__ */ jsx5(Icon3, {
2630
+ desc: /* @__PURE__ */ jsx6(Icon3, {
2586
2631
  data: arrow_drop_down
2587
2632
  }),
2588
- none: /* @__PURE__ */ jsx5(Icon3, {
2633
+ none: /* @__PURE__ */ jsx6(Icon3, {
2589
2634
  data: arrow_drop_down
2590
2635
  })
2591
- }[header.column.getIsSorted()] ?? null
2636
+ }[header.column.getIsSorted()] ?? null,
2637
+ table.options.enableColumnResizing && /* @__PURE__ */ jsx6("div", {
2638
+ onMouseDown: header.getResizeHandler(),
2639
+ onTouchStart: header.getResizeHandler(),
2640
+ onClick: (e) => e.stopPropagation(),
2641
+ className: `resizer ${header.column.getIsResizing() ? "isResizing" : ""}`,
2642
+ style: {
2643
+ transform: table.options.columnResizeMode === "onEnd" && header.column.getIsResizing() ? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)` : ""
2644
+ }
2645
+ })
2592
2646
  ]
2593
2647
  });
2594
2648
  }
@@ -2606,16 +2660,16 @@ function getSort({ column }) {
2606
2660
  }
2607
2661
 
2608
2662
  // src/cells/HierarchyCell.tsx
2609
- import { tokens as tokens4 } from "@equinor/eds-tokens";
2610
- import styled8, { css as css3 } from "styled-components";
2663
+ import { tokens as tokens5 } from "@equinor/eds-tokens";
2664
+ import styled8, { css as css4 } from "styled-components";
2611
2665
 
2612
2666
  // src/cells/TypographyCustom.tsx
2613
2667
  import {
2614
2668
  Typography as EdsTypography
2615
2669
  } from "@equinor/eds-core-react";
2616
- import { tokens as tokens3 } from "@equinor/eds-tokens";
2670
+ import { tokens as tokens4 } from "@equinor/eds-tokens";
2617
2671
  import styled7 from "styled-components";
2618
- import { jsx as jsx6 } from "react/jsx-runtime";
2672
+ import { jsx as jsx7 } from "react/jsx-runtime";
2619
2673
  var truncateStyle = {
2620
2674
  overflow: "hidden",
2621
2675
  whiteSpace: "nowrap",
@@ -2624,8 +2678,8 @@ var truncateStyle = {
2624
2678
  var TypographyCustom = (props) => {
2625
2679
  const { truncate, enableShowAllOnHover, style: styleFromProps, ...edsTypographyProps } = props;
2626
2680
  if (enableShowAllOnHover)
2627
- return /* @__PURE__ */ jsx6(HoverCapture, {
2628
- children: /* @__PURE__ */ jsx6(EdsTypography, {
2681
+ return /* @__PURE__ */ jsx7(HoverCapture, {
2682
+ children: /* @__PURE__ */ jsx7(EdsTypography, {
2629
2683
  ...edsTypographyProps,
2630
2684
  style: {
2631
2685
  ...styleFromProps,
@@ -2634,20 +2688,20 @@ var TypographyCustom = (props) => {
2634
2688
  })
2635
2689
  });
2636
2690
  if (truncate)
2637
- return /* @__PURE__ */ jsx6(EdsTypography, {
2691
+ return /* @__PURE__ */ jsx7(EdsTypography, {
2638
2692
  ...edsTypographyProps,
2639
2693
  style: {
2640
2694
  ...styleFromProps,
2641
2695
  ...truncateStyle
2642
2696
  }
2643
2697
  });
2644
- return /* @__PURE__ */ jsx6(EdsTypography, {
2698
+ return /* @__PURE__ */ jsx7(EdsTypography, {
2645
2699
  ...edsTypographyProps,
2646
2700
  style: styleFromProps
2647
2701
  });
2648
2702
  };
2649
2703
  var HoverCapture = styled7.div`
2650
- height: ${tokens3.typography.table.cell_text.lineHeight};
2704
+ height: ${tokens4.typography.table.cell_text.lineHeight};
2651
2705
  background-color: inherit;
2652
2706
 
2653
2707
  position: relative;
@@ -2673,7 +2727,7 @@ var HoverCapture = styled7.div`
2673
2727
  `;
2674
2728
 
2675
2729
  // src/cells/HierarchyCell.tsx
2676
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
2730
+ import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
2677
2731
  var CellWrapper = styled8(TypographyCustom)`
2678
2732
  height: 100%;
2679
2733
  display: flex;
@@ -2681,12 +2735,12 @@ var CellWrapper = styled8(TypographyCustom)`
2681
2735
 
2682
2736
  ${({ depth, expanded }) => expanded && depth === 0 && "font-weight: bold;"}
2683
2737
 
2684
- ${({ depth }) => depth > 0 && css3`
2685
- border-left: 3px solid ${tokens4.colors.infographic.primary__moss_green_34.hex};
2738
+ ${({ depth }) => depth > 0 && css4`
2739
+ border-left: 3px solid ${tokens5.colors.infographic.primary__moss_green_34.hex};
2686
2740
  gap: 0.5rem;
2687
2741
  .--divider {
2688
2742
  width: ${depth * 32}px;
2689
- background-color: ${tokens4.colors.infographic.primary__moss_green_34.hex};
2743
+ background-color: ${tokens5.colors.infographic.primary__moss_green_34.hex};
2690
2744
  height: 3px;
2691
2745
  border-radius: 0 5px 5px 0;
2692
2746
  }
@@ -2698,7 +2752,7 @@ function HierarchyCell(cell, options = {}) {
2698
2752
  depth: ((_a = options.getRowDepth) == null ? void 0 : _a.call(options)) ?? cell.row.depth,
2699
2753
  expanded: cell.row.getIsExpanded(),
2700
2754
  children: [
2701
- /* @__PURE__ */ jsx7("span", {
2755
+ /* @__PURE__ */ jsx8("span", {
2702
2756
  className: "--divider"
2703
2757
  }),
2704
2758
  ((_b = options.getDisplayName) == null ? void 0 : _b.call(options)) ?? cell.getValue()
@@ -2709,7 +2763,7 @@ function HierarchyCell(cell, options = {}) {
2709
2763
  // src/cells/PopoverCell.tsx
2710
2764
  import { Popover, Typography } from "@equinor/eds-core-react";
2711
2765
  import { useRef, useState as useState2 } from "react";
2712
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
2766
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
2713
2767
  function PopoverCell(props) {
2714
2768
  const [open, setOpen] = useState2(false);
2715
2769
  const anchorRef = useRef(null);
@@ -2719,7 +2773,7 @@ function PopoverCell(props) {
2719
2773
  style: { position: "relative" },
2720
2774
  ref: anchorRef,
2721
2775
  children: [
2722
- /* @__PURE__ */ jsx8(TypographyCustom, {
2776
+ /* @__PURE__ */ jsx9(TypographyCustom, {
2723
2777
  onClick: stopPropagation(handleClick),
2724
2778
  style: { cursor: "pointer" },
2725
2779
  truncate: true,
@@ -2733,13 +2787,13 @@ function PopoverCell(props) {
2733
2787
  onClose: handleClose,
2734
2788
  placement: "bottom",
2735
2789
  children: [
2736
- props.title && /* @__PURE__ */ jsx8(Popover.Title, {
2737
- children: /* @__PURE__ */ jsx8(Popover.Header, {
2790
+ props.title && /* @__PURE__ */ jsx9(Popover.Title, {
2791
+ children: /* @__PURE__ */ jsx9(Popover.Header, {
2738
2792
  children: props.title
2739
2793
  })
2740
2794
  }),
2741
- /* @__PURE__ */ jsx8(Popover.Content, {
2742
- children: /* @__PURE__ */ jsx8(Typography, {
2795
+ /* @__PURE__ */ jsx9(Popover.Content, {
2796
+ children: /* @__PURE__ */ jsx9(Typography, {
2743
2797
  children: String(props.value)
2744
2798
  })
2745
2799
  })
@@ -2750,10 +2804,10 @@ function PopoverCell(props) {
2750
2804
  }
2751
2805
 
2752
2806
  // src/cells/SelectColumnDef.tsx
2753
- import { Button as Button2, Checkbox, Icon as Icon4, Radio } from "@equinor/eds-core-react";
2807
+ import { Button as Button2, Checkbox as Checkbox2, Icon as Icon4, Radio } from "@equinor/eds-core-react";
2754
2808
  import { chevron_down, chevron_up } from "@equinor/eds-icons";
2755
2809
  import styled9 from "styled-components";
2756
- import { Fragment, jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
2810
+ import { Fragment, jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
2757
2811
  var CellWrapper2 = styled9.div`
2758
2812
  display: flex;
2759
2813
  align-items: center;
@@ -2766,8 +2820,8 @@ function SelectColumnDef(props) {
2766
2820
  return {
2767
2821
  id: "select",
2768
2822
  size: props.includeExpansionButton ? 96 : 48,
2769
- header: ({ table }) => selectionMode !== "single" ? /* @__PURE__ */ jsx9(CellWrapper2, {
2770
- children: /* @__PURE__ */ jsx9(Checkbox, {
2823
+ header: ({ table }) => selectionMode !== "single" ? /* @__PURE__ */ jsx10(CellWrapper2, {
2824
+ children: /* @__PURE__ */ jsx10(Checkbox2, {
2771
2825
  checked: table.getIsAllRowsSelected(),
2772
2826
  indeterminate: table.getIsSomeRowsSelected(),
2773
2827
  "aria-label": table.getIsAllRowsSelected() ? "Deselect all rows" : "Select all rows",
@@ -2776,28 +2830,28 @@ function SelectColumnDef(props) {
2776
2830
  }) : null,
2777
2831
  cell: ({ table, row }) => {
2778
2832
  const paddingLeft = "0px";
2779
- return /* @__PURE__ */ jsx9(CellWrapper2, {
2833
+ return /* @__PURE__ */ jsx10(CellWrapper2, {
2780
2834
  paddingLeft,
2781
2835
  rowDepth: row.depth,
2782
2836
  children: /* @__PURE__ */ jsxs6(Fragment, {
2783
2837
  children: [
2784
- selectionMode === "single" ? /* @__PURE__ */ jsx9(Radio, {
2838
+ selectionMode === "single" ? /* @__PURE__ */ jsx10(Radio, {
2785
2839
  checked: row.getIsSelected(),
2786
2840
  "aria-label": `Select row ${row.id}`,
2787
2841
  onChange: stopPropagation(row.getToggleSelectedHandler())
2788
- }) : /* @__PURE__ */ jsx9(Checkbox, {
2842
+ }) : /* @__PURE__ */ jsx10(Checkbox2, {
2789
2843
  checked: row.getIsSelected(),
2790
2844
  indeterminate: row.getIsSomeSelected(),
2791
2845
  "aria-label": `Select row ${row.id}`,
2792
2846
  onChange: stopPropagation(row.getToggleSelectedHandler())
2793
2847
  }),
2794
- row.getCanExpand() && table.options.enableExpanding && /* @__PURE__ */ jsx9(Button2, {
2848
+ row.getCanExpand() && table.options.enableExpanding && /* @__PURE__ */ jsx10(Button2, {
2795
2849
  variant: "ghost_icon",
2796
2850
  color: "secondary",
2797
2851
  "aria-label": row.getIsExpanded() ? "Close group" : "Expand group",
2798
2852
  onClick: stopPropagation(row.getToggleExpandedHandler()),
2799
2853
  style: { cursor: "pointer" },
2800
- children: /* @__PURE__ */ jsx9(Icon4, {
2854
+ children: /* @__PURE__ */ jsx10(Icon4, {
2801
2855
  data: row.getIsExpanded() ? chevron_up : chevron_down
2802
2856
  })
2803
2857
  })
@@ -2809,7 +2863,7 @@ function SelectColumnDef(props) {
2809
2863
  }
2810
2864
 
2811
2865
  // src/DataTable/components/ColumnSelect.tsx
2812
- import { Button as Button3, Checkbox as Checkbox2, Divider, Icon as Icon5, Popover as Popover2, Tooltip } from "@equinor/eds-core-react";
2866
+ import { Button as Button3, Checkbox as Checkbox3, Divider, Icon as Icon5, Popover as Popover2, Tooltip } from "@equinor/eds-core-react";
2813
2867
  import { close, view_column } from "@equinor/eds-icons";
2814
2868
  import { useRef as useRef2, useState as useState3 } from "react";
2815
2869
  import styled10 from "styled-components";
@@ -2844,7 +2898,7 @@ function getFunctionValueOrDefault(valueOrFn, fnProps, defaultValue) {
2844
2898
  }
2845
2899
 
2846
2900
  // src/DataTable/components/ColumnSelect.tsx
2847
- import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
2901
+ import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
2848
2902
  var ColumnSelectContent = styled10.div`
2849
2903
  display: grid;
2850
2904
  grid-template-columns: repeat(2, 1fr);
@@ -2862,10 +2916,10 @@ function ColumnSelect({ table }) {
2862
2916
  const selectableColumns = table.getAllLeafColumns().filter((column) => column.id !== "select");
2863
2917
  return /* @__PURE__ */ jsxs7(Fragment2, {
2864
2918
  children: [
2865
- /* @__PURE__ */ jsx10(Tooltip, {
2919
+ /* @__PURE__ */ jsx11(Tooltip, {
2866
2920
  title: "Select columns",
2867
2921
  placement: "left",
2868
- children: /* @__PURE__ */ jsx10(Button3, {
2922
+ children: /* @__PURE__ */ jsx11(Button3, {
2869
2923
  "aria-haspopup": true,
2870
2924
  id: "column-select-anchor",
2871
2925
  "aria-controls": "column-select-popover",
@@ -2873,7 +2927,7 @@ function ColumnSelect({ table }) {
2873
2927
  ref: referenceElement,
2874
2928
  variant: "ghost_icon",
2875
2929
  onClick: () => setIsOpen(true),
2876
- children: /* @__PURE__ */ jsx10(Icon5, {
2930
+ children: /* @__PURE__ */ jsx11(Icon5, {
2877
2931
  name: "view_column",
2878
2932
  data: view_column
2879
2933
  })
@@ -2888,14 +2942,14 @@ function ColumnSelect({ table }) {
2888
2942
  children: [
2889
2943
  /* @__PURE__ */ jsxs7(Popover2.Header, {
2890
2944
  children: [
2891
- /* @__PURE__ */ jsx10(Popover2.Title, {
2945
+ /* @__PURE__ */ jsx11(Popover2.Title, {
2892
2946
  children: "Column settings"
2893
2947
  }),
2894
- /* @__PURE__ */ jsx10(Button3, {
2948
+ /* @__PURE__ */ jsx11(Button3, {
2895
2949
  variant: "ghost_icon",
2896
2950
  "aria-label": "Close column select",
2897
2951
  onClick: () => setIsOpen(false),
2898
- children: /* @__PURE__ */ jsx10(Icon5, {
2952
+ children: /* @__PURE__ */ jsx11(Icon5, {
2899
2953
  name: "close",
2900
2954
  data: close,
2901
2955
  size: 24
@@ -2905,20 +2959,20 @@ function ColumnSelect({ table }) {
2905
2959
  }),
2906
2960
  /* @__PURE__ */ jsxs7(Popover2.Content, {
2907
2961
  children: [
2908
- /* @__PURE__ */ jsx10(ColumnSelectContent, {
2962
+ /* @__PURE__ */ jsx11(ColumnSelectContent, {
2909
2963
  children: selectableColumns.map((column) => {
2910
- return /* @__PURE__ */ jsx10(Checkbox2, {
2964
+ return /* @__PURE__ */ jsx11(Checkbox3, {
2911
2965
  checked: column.getIsVisible(),
2912
2966
  label: getColumnHeader(column),
2913
2967
  onChange: column.getToggleVisibilityHandler()
2914
2968
  }, column.id);
2915
2969
  })
2916
2970
  }),
2917
- /* @__PURE__ */ jsx10(Divider, {
2971
+ /* @__PURE__ */ jsx11(Divider, {
2918
2972
  variant: "small"
2919
2973
  }),
2920
- /* @__PURE__ */ jsx10(ActionsWrapper, {
2921
- children: /* @__PURE__ */ jsx10(Button3, {
2974
+ /* @__PURE__ */ jsx11(ActionsWrapper, {
2975
+ children: /* @__PURE__ */ jsx11(Button3, {
2922
2976
  color: "secondary",
2923
2977
  variant: "ghost",
2924
2978
  disabled: table.getIsAllColumnsVisible(),
@@ -2936,13 +2990,14 @@ function ColumnSelect({ table }) {
2936
2990
 
2937
2991
  // src/DataTable/components/TableHeader.tsx
2938
2992
  import { Table as Table4 } from "@equinor/eds-core-react";
2939
- import { jsx as jsx11 } from "react/jsx-runtime";
2993
+ import { jsx as jsx12 } from "react/jsx-runtime";
2940
2994
  function TableHeader({ table, sticky }) {
2941
- return /* @__PURE__ */ jsx11(Table4.Head, {
2995
+ return /* @__PURE__ */ jsx12(Table4.Head, {
2942
2996
  sticky,
2943
- children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx11(Table4.Row, {
2944
- children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx11(HeaderCell, {
2945
- header
2997
+ children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx12(Table4.Row, {
2998
+ children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx12(HeaderCell, {
2999
+ header,
3000
+ table
2946
3001
  }, header.id))
2947
3002
  }, headerGroup.id))
2948
3003
  });
@@ -2960,24 +3015,24 @@ import { useEffect as useEffect3, useRef as useRef3, useState as useState6 } fro
2960
3015
  import styled16 from "styled-components";
2961
3016
 
2962
3017
  // src/DataTable/components/BasicTable.tsx
2963
- import { Table as EdsTable } from "@equinor/eds-core-react";
3018
+ import { Table as EdsTable2 } from "@equinor/eds-core-react";
2964
3019
 
2965
3020
  // src/DataTable/components/PlaceholderRow.tsx
2966
3021
  import { DotProgress, Table as Table5, Typography as Typography2 } from "@equinor/eds-core-react";
2967
3022
  import styled11 from "styled-components";
2968
- import { jsx as jsx12 } from "react/jsx-runtime";
3023
+ import { jsx as jsx13 } from "react/jsx-runtime";
2969
3024
  var PlaceholderTextWrapper = styled11.div`
2970
3025
  display: flex;
2971
3026
  justify-content: center;
2972
3027
  `;
2973
3028
  function PlaceholderRow({ isLoading }) {
2974
- return /* @__PURE__ */ jsx12(Table5.Row, {
2975
- children: /* @__PURE__ */ jsx12(Table5.Cell, {
3029
+ return /* @__PURE__ */ jsx13(Table5.Row, {
3030
+ children: /* @__PURE__ */ jsx13(Table5.Cell, {
2976
3031
  colSpan: 100,
2977
- children: /* @__PURE__ */ jsx12(PlaceholderTextWrapper, {
2978
- children: isLoading ? /* @__PURE__ */ jsx12(DotProgress, {
3032
+ children: /* @__PURE__ */ jsx13(PlaceholderTextWrapper, {
3033
+ children: isLoading ? /* @__PURE__ */ jsx13(DotProgress, {
2979
3034
  color: "primary"
2980
- }) : /* @__PURE__ */ jsx12(Typography2, {
3035
+ }) : /* @__PURE__ */ jsx13(Typography2, {
2981
3036
  children: "No data available"
2982
3037
  })
2983
3038
  })
@@ -2997,7 +3052,7 @@ var TableBody = styled12(Table6.Body)`
2997
3052
  // src/DataTable/components/TableRow.tsx
2998
3053
  import { Table as Table7 } from "@equinor/eds-core-react";
2999
3054
  import styled13 from "styled-components";
3000
- import { jsx as jsx13 } from "react/jsx-runtime";
3055
+ import { jsx as jsx14 } from "react/jsx-runtime";
3001
3056
  function TableRow({
3002
3057
  row,
3003
3058
  rowConfig,
@@ -3007,7 +3062,7 @@ function TableRow({
3007
3062
  }) {
3008
3063
  var _a;
3009
3064
  const rowWrapper = rowConfig == null ? void 0 : rowConfig.rowWrapper;
3010
- const tableRowContent = /* @__PURE__ */ jsx13(StyledTableRow, {
3065
+ const tableRowContent = /* @__PURE__ */ jsx14(StyledTableRow, {
3011
3066
  active: row.getIsSelected(),
3012
3067
  "data-index": index,
3013
3068
  ref: measureElement,
@@ -3023,7 +3078,7 @@ function TableRow({
3023
3078
  onMouseLeave: handleRowEvent(row, rowConfig == null ? void 0 : rowConfig.onMouseLeave),
3024
3079
  children: row.getVisibleCells().map((cell) => {
3025
3080
  var _a2;
3026
- return /* @__PURE__ */ jsx13(DynamicCell, {
3081
+ return /* @__PURE__ */ jsx14(DynamicCell, {
3027
3082
  cell,
3028
3083
  getStickyCellColor: cellConfig == null ? void 0 : cellConfig.getStickyCellColor,
3029
3084
  highlight: (_a2 = cellConfig == null ? void 0 : cellConfig.getShouldHighlight) == null ? void 0 : _a2.call(cellConfig, cell)
@@ -3045,7 +3100,7 @@ function handleRowEvent(row, handler) {
3045
3100
  }
3046
3101
 
3047
3102
  // src/DataTable/components/BasicTable.tsx
3048
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
3103
+ import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
3049
3104
  function BasicTable({
3050
3105
  table,
3051
3106
  rowConfig,
@@ -3055,22 +3110,22 @@ function BasicTable({
3055
3110
  tableCaption
3056
3111
  }) {
3057
3112
  const tableRows = table.getRowModel().rows;
3058
- return /* @__PURE__ */ jsxs8(EdsTable, {
3113
+ return /* @__PURE__ */ jsxs8(EdsTable2, {
3059
3114
  children: [
3060
- /* @__PURE__ */ jsx14(EdsTable.Caption, {
3115
+ /* @__PURE__ */ jsx15(EdsTable2.Caption, {
3061
3116
  hidden: true,
3062
3117
  children: tableCaption
3063
3118
  }),
3064
- /* @__PURE__ */ jsx14(TableHeader, {
3119
+ /* @__PURE__ */ jsx15(TableHeader, {
3065
3120
  sticky: stickyHeader,
3066
3121
  table
3067
3122
  }),
3068
- /* @__PURE__ */ jsx14(TableBody, {
3069
- children: tableRows.length ? tableRows.map((row) => /* @__PURE__ */ jsx14(TableRow, {
3123
+ /* @__PURE__ */ jsx15(TableBody, {
3124
+ children: tableRows.length ? tableRows.map((row) => /* @__PURE__ */ jsx15(TableRow, {
3070
3125
  row,
3071
3126
  rowConfig,
3072
3127
  cellConfig
3073
- }, row.id)) : /* @__PURE__ */ jsx14(PlaceholderRow, {
3128
+ }, row.id)) : /* @__PURE__ */ jsx15(PlaceholderRow, {
3074
3129
  isLoading
3075
3130
  })
3076
3131
  })
@@ -3088,7 +3143,7 @@ import { Button as Button4, Icon as Icon6, Input, Tooltip as Tooltip2 } from "@e
3088
3143
  import { close as close2 } from "@equinor/eds-icons";
3089
3144
  import { useEffect, useState as useState4 } from "react";
3090
3145
  import styled14 from "styled-components";
3091
- import { jsx as jsx15 } from "react/jsx-runtime";
3146
+ import { jsx as jsx16 } from "react/jsx-runtime";
3092
3147
  var Wrapper3 = styled14.div`
3093
3148
  width: 200px;
3094
3149
  `;
@@ -3113,21 +3168,21 @@ function DebouncedInput({
3113
3168
  }, debounce);
3114
3169
  return () => clearTimeout(timeout);
3115
3170
  }, [value]);
3116
- return /* @__PURE__ */ jsx15(Wrapper3, {
3117
- children: /* @__PURE__ */ jsx15(Input, {
3171
+ return /* @__PURE__ */ jsx16(Wrapper3, {
3172
+ children: /* @__PURE__ */ jsx16(Input, {
3118
3173
  ...props,
3119
3174
  value,
3120
- leftAdornments: icon && /* @__PURE__ */ jsx15(Icon6, {
3175
+ leftAdornments: icon && /* @__PURE__ */ jsx16(Icon6, {
3121
3176
  name: icon.name,
3122
3177
  data: icon,
3123
3178
  size: 18
3124
3179
  }),
3125
- rightAdornments: !!value && /* @__PURE__ */ jsx15(Tooltip2, {
3180
+ rightAdornments: !!value && /* @__PURE__ */ jsx16(Tooltip2, {
3126
3181
  title: "Clear input",
3127
- children: /* @__PURE__ */ jsx15(CloseButton, {
3182
+ children: /* @__PURE__ */ jsx16(CloseButton, {
3128
3183
  variant: "ghost_icon",
3129
3184
  onClick: () => setValue(""),
3130
- children: /* @__PURE__ */ jsx15(Icon6, {
3185
+ children: /* @__PURE__ */ jsx16(Icon6, {
3131
3186
  name: close2.name,
3132
3187
  data: close2,
3133
3188
  size: 18
@@ -3150,7 +3205,7 @@ var fuzzyFilter = (row, columnId, value, addMeta) => {
3150
3205
  };
3151
3206
 
3152
3207
  // src/DataTable/components/DataTableHeader.tsx
3153
- import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
3208
+ import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
3154
3209
  var TableBannerWrapper = styled15.div`
3155
3210
  display: flex;
3156
3211
  align-items: center;
@@ -3178,7 +3233,7 @@ function TableBanner({
3178
3233
  /* @__PURE__ */ jsxs9(FilterContainer, {
3179
3234
  className: "--filter-container-left",
3180
3235
  children: [
3181
- (bannerConfig == null ? void 0 : bannerConfig.enableTableCaption) && /* @__PURE__ */ jsx16(Typography3, {
3236
+ (bannerConfig == null ? void 0 : bannerConfig.enableTableCaption) && /* @__PURE__ */ jsx17(Typography3, {
3182
3237
  variant: "h3",
3183
3238
  as: "h2",
3184
3239
  children: tableCaption
@@ -3186,17 +3241,17 @@ function TableBanner({
3186
3241
  (_a = bannerConfig == null ? void 0 : bannerConfig.customActions) == null ? void 0 : _a.call(bannerConfig, table)
3187
3242
  ]
3188
3243
  }),
3189
- /* @__PURE__ */ jsx16(FilterContainer, {
3244
+ /* @__PURE__ */ jsx17(FilterContainer, {
3190
3245
  className: "--filter-container-right",
3191
3246
  children: /* @__PURE__ */ jsxs9(Fragment3, {
3192
3247
  children: [
3193
- (bannerConfig == null ? void 0 : bannerConfig.enableGlobalFilterInput) && /* @__PURE__ */ jsx16(DebouncedInput, {
3248
+ (bannerConfig == null ? void 0 : bannerConfig.enableGlobalFilterInput) && /* @__PURE__ */ jsx17(DebouncedInput, {
3194
3249
  value: globalFilter.state,
3195
3250
  icon: search,
3196
3251
  placeholder: bannerConfig.globalFilterPlaceholder ?? "Search all columns",
3197
3252
  onChange: (value) => globalFilter.onChange(String(value))
3198
3253
  }),
3199
- (bannerConfig == null ? void 0 : bannerConfig.enableColumnSelect) && /* @__PURE__ */ jsx16(ColumnSelect, {
3254
+ (bannerConfig == null ? void 0 : bannerConfig.enableColumnSelect) && /* @__PURE__ */ jsx17(ColumnSelect, {
3200
3255
  table
3201
3256
  }),
3202
3257
  (bannerConfig == null ? void 0 : bannerConfig.totalRowCount) && /* @__PURE__ */ jsxs9("span", {
@@ -3221,20 +3276,20 @@ import { useVirtualizer } from "@tanstack/react-virtual";
3221
3276
 
3222
3277
  // src/DataTable/components/PaddingRow.tsx
3223
3278
  import { Table as Table8 } from "@equinor/eds-core-react";
3224
- import { jsx as jsx17 } from "react/jsx-runtime";
3279
+ import { jsx as jsx18 } from "react/jsx-runtime";
3225
3280
  var PaddingRow = (props) => {
3226
3281
  if (!props.height)
3227
3282
  return null;
3228
- return /* @__PURE__ */ jsx17(Table8.Row, {
3283
+ return /* @__PURE__ */ jsx18(Table8.Row, {
3229
3284
  style: { pointerEvents: "none" },
3230
- children: /* @__PURE__ */ jsx17(Table8.Cell, {
3285
+ children: /* @__PURE__ */ jsx18(Table8.Cell, {
3231
3286
  style: { height: `${props.height}px` }
3232
3287
  })
3233
3288
  });
3234
3289
  };
3235
3290
 
3236
3291
  // src/DataTable/components/VirtualTable.tsx
3237
- import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
3292
+ import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
3238
3293
  function VirtualTable({
3239
3294
  table,
3240
3295
  rowConfig,
@@ -3256,32 +3311,32 @@ function VirtualTable({
3256
3311
  const paddingBottom = virtualRows.length > 0 ? rowVirtualizer.getTotalSize() - (((_b = virtualRows == null ? void 0 : virtualRows[virtualRows.length - 1]) == null ? void 0 : _b.end) || 0) : 0;
3257
3312
  return /* @__PURE__ */ jsxs10(Table9, {
3258
3313
  children: [
3259
- /* @__PURE__ */ jsx18(Table9.Caption, {
3314
+ /* @__PURE__ */ jsx19(Table9.Caption, {
3260
3315
  hidden: true,
3261
3316
  children: props.tableCaption
3262
3317
  }),
3263
- /* @__PURE__ */ jsx18(TableHeader, {
3318
+ /* @__PURE__ */ jsx19(TableHeader, {
3264
3319
  sticky: props.stickyHeader,
3265
3320
  table
3266
3321
  }),
3267
3322
  /* @__PURE__ */ jsxs10(TableBody, {
3268
3323
  children: [
3269
- /* @__PURE__ */ jsx18(PaddingRow, {
3324
+ /* @__PURE__ */ jsx19(PaddingRow, {
3270
3325
  height: paddingTop
3271
3326
  }),
3272
3327
  rows.length ? virtualRows.map((virtualRow) => {
3273
3328
  const row = rows[virtualRow.index];
3274
- return /* @__PURE__ */ jsx18(TableRow, {
3329
+ return /* @__PURE__ */ jsx19(TableRow, {
3275
3330
  row,
3276
3331
  rowConfig,
3277
3332
  cellConfig,
3278
3333
  index: virtualRow.index,
3279
3334
  measureElement: rowVirtualizer.measureElement
3280
3335
  }, row.id);
3281
- }) : /* @__PURE__ */ jsx18(PlaceholderRow, {
3336
+ }) : /* @__PURE__ */ jsx19(PlaceholderRow, {
3282
3337
  isLoading: props.isLoading
3283
3338
  }),
3284
- /* @__PURE__ */ jsx18(PaddingRow, {
3339
+ /* @__PURE__ */ jsx19(PaddingRow, {
3285
3340
  height: paddingBottom
3286
3341
  })
3287
3342
  ]
@@ -3327,7 +3382,7 @@ function useForceRerender() {
3327
3382
  }
3328
3383
 
3329
3384
  // src/DataTable/DataTable.tsx
3330
- import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
3385
+ import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
3331
3386
  function canUseContainStrict(height) {
3332
3387
  if (!height)
3333
3388
  return false;
@@ -3403,13 +3458,15 @@ function DataTable(props) {
3403
3458
  defaultColumn: {
3404
3459
  cell: ({ cell }) => {
3405
3460
  const truncateMode = getFunctionValueOrDefault(cellConfig == null ? void 0 : cellConfig.truncateMode, cell, "hover");
3406
- return /* @__PURE__ */ jsx19(TypographyCustom, {
3461
+ return /* @__PURE__ */ jsx20(TypographyCustom, {
3407
3462
  truncate: truncateMode === "hover",
3408
3463
  enableShowAllOnHover: true,
3409
3464
  children: cell.getValue()
3410
3465
  });
3411
3466
  }
3412
3467
  },
3468
+ enableColumnResizing: Boolean(props.columnResizing),
3469
+ columnResizeMode: typeof props.columnResizing === "boolean" ? "onChange" : props.columnResizing,
3413
3470
  enableSorting: sorting == null ? void 0 : sorting.enableSorting,
3414
3471
  manualSorting: sorting == null ? void 0 : sorting.manualSorting,
3415
3472
  enableExpanding: Boolean(props.expansion),
@@ -3450,13 +3507,13 @@ function DataTable(props) {
3450
3507
  width: props == null ? void 0 : props.width,
3451
3508
  tableLayout: props == null ? void 0 : props.tableLayout,
3452
3509
  children: [
3453
- props.bannerConfig && /* @__PURE__ */ jsx19(TableBanner, {
3510
+ props.bannerConfig && /* @__PURE__ */ jsx20(TableBanner, {
3454
3511
  table,
3455
3512
  bannerConfig: props.bannerConfig,
3456
3513
  globalFilter: { state: globalFilterState, onChange: setGlobalFilterState },
3457
3514
  tableCaption: props.tableCaption
3458
3515
  }),
3459
- /* @__PURE__ */ jsx19("div", {
3516
+ /* @__PURE__ */ jsx20("div", {
3460
3517
  ...props.tableContainerProps,
3461
3518
  className: "--table-container " + (((_q = props.tableContainerProps) == null ? void 0 : _q.className) ?? ""),
3462
3519
  onScroll: ((_r = props.tableContainerProps) == null ? void 0 : _r.onScroll) ?? onTableContainerScroll,
@@ -3469,7 +3526,7 @@ function DataTable(props) {
3469
3526
  }
3470
3527
  }
3471
3528
  },
3472
- children: (props == null ? void 0 : props.virtual) ? /* @__PURE__ */ jsx19(VirtualTable, {
3529
+ children: (props == null ? void 0 : props.virtual) ? /* @__PURE__ */ jsx20(VirtualTable, {
3473
3530
  containerRef: tableContainerRef,
3474
3531
  tableCaption: props.tableCaption,
3475
3532
  table,
@@ -3477,7 +3534,7 @@ function DataTable(props) {
3477
3534
  cellConfig,
3478
3535
  isLoading,
3479
3536
  stickyHeader: props.stickyHeader
3480
- }) : /* @__PURE__ */ jsx19(BasicTable, {
3537
+ }) : /* @__PURE__ */ jsx20(BasicTable, {
3481
3538
  tableCaption: props.tableCaption,
3482
3539
  table,
3483
3540
  rowConfig,
@@ -3491,7 +3548,7 @@ function DataTable(props) {
3491
3548
  }
3492
3549
 
3493
3550
  // src/form-cells/EditableCheckboxCell.tsx
3494
- import { Checkbox as Checkbox3 } from "@equinor/eds-core-react";
3551
+ import { Checkbox as Checkbox4 } from "@equinor/eds-core-react";
3495
3552
  import { Controller } from "react-hook-form";
3496
3553
 
3497
3554
  // src/form-meta/utils.tsx
@@ -3529,20 +3586,20 @@ function addFormMeta(withoutFormMeta) {
3529
3586
  }
3530
3587
 
3531
3588
  // src/form-cells/EditableCheckboxCell.tsx
3532
- import { jsx as jsx20 } from "react/jsx-runtime";
3589
+ import { jsx as jsx21 } from "react/jsx-runtime";
3533
3590
  function EditableCheckboxCell(context) {
3534
3591
  const editMode = useEditMode();
3535
3592
  if (!editMode)
3536
- return /* @__PURE__ */ jsx20(Checkbox3, {
3593
+ return /* @__PURE__ */ jsx21(Checkbox4, {
3537
3594
  enterKeyHint: "next",
3538
3595
  "aria-label": "readonly",
3539
3596
  readOnly: true,
3540
3597
  checked: context.getValue(),
3541
3598
  disabled: true
3542
3599
  });
3543
- return /* @__PURE__ */ jsx20(Controller, {
3600
+ return /* @__PURE__ */ jsx21(Controller, {
3544
3601
  name: context.column.id,
3545
- render: ({ field: { value, ...field } }) => /* @__PURE__ */ jsx20(Checkbox3, {
3602
+ render: ({ field: { value, ...field } }) => /* @__PURE__ */ jsx21(Checkbox4, {
3546
3603
  enterKeyHint: "send",
3547
3604
  "aria-label": "editable",
3548
3605
  checked: value,
@@ -3560,7 +3617,7 @@ import styled17 from "styled-components";
3560
3617
  // src/form-cells/utils.tsx
3561
3618
  import { Icon as Icon7 } from "@equinor/eds-core-react";
3562
3619
  import { error_filled, warning_filled } from "@equinor/eds-icons";
3563
- import { jsx as jsx21 } from "react/jsx-runtime";
3620
+ import { jsx as jsx22 } from "react/jsx-runtime";
3564
3621
  function getHelperTextProps({
3565
3622
  error,
3566
3623
  warning,
@@ -3570,7 +3627,7 @@ function getHelperTextProps({
3570
3627
  return {
3571
3628
  variant: "error",
3572
3629
  helperText: error.message,
3573
- helperIcon: /* @__PURE__ */ jsx21(Icon7, {
3630
+ helperIcon: /* @__PURE__ */ jsx22(Icon7, {
3574
3631
  data: error_filled,
3575
3632
  size: 16
3576
3633
  })
@@ -3579,7 +3636,7 @@ function getHelperTextProps({
3579
3636
  return {
3580
3637
  variant: "warning",
3581
3638
  helperText: warning.message,
3582
- helperIcon: /* @__PURE__ */ jsx21(Icon7, {
3639
+ helperIcon: /* @__PURE__ */ jsx22(Icon7, {
3583
3640
  data: warning_filled,
3584
3641
  size: 16
3585
3642
  })
@@ -3597,7 +3654,7 @@ function stopPropagation2(handler) {
3597
3654
  }
3598
3655
 
3599
3656
  // src/form-cells/EditableDateCell.tsx
3600
- import { jsx as jsx22 } from "react/jsx-runtime";
3657
+ import { jsx as jsx23 } from "react/jsx-runtime";
3601
3658
  function EditableDateCell(props) {
3602
3659
  const { dateStringFormatter, ...context } = props;
3603
3660
  const rawValue = context.getValue();
@@ -3607,13 +3664,13 @@ function EditableDateCell(props) {
3607
3664
  [rawValue, dateStringFormatter]
3608
3665
  );
3609
3666
  if (!editMode)
3610
- return /* @__PURE__ */ jsx22(TypographyCustom, {
3667
+ return /* @__PURE__ */ jsx23(TypographyCustom, {
3611
3668
  truncate: true,
3612
3669
  children: formattedValue
3613
3670
  });
3614
- return /* @__PURE__ */ jsx22(Controller2, {
3671
+ return /* @__PURE__ */ jsx23(Controller2, {
3615
3672
  name: context.column.id,
3616
- render: ({ field: { value, onChange, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx22(InlineTextField, {
3673
+ render: ({ field: { value, onChange, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx23(InlineTextField, {
3617
3674
  id: context.column.id,
3618
3675
  type: "date",
3619
3676
  autoComplete: "none",
@@ -3656,7 +3713,7 @@ var InlineTextField = styled17(TextField)`
3656
3713
  // src/form-cells/EditableDropdownSingleCell.tsx
3657
3714
  import { Autocomplete } from "@equinor/eds-core-react";
3658
3715
  import { Controller as Controller3 } from "react-hook-form";
3659
- import { jsx as jsx23 } from "react/jsx-runtime";
3716
+ import { jsx as jsx24 } from "react/jsx-runtime";
3660
3717
  function buildEmptyOption() {
3661
3718
  return { label: "", value: "" };
3662
3719
  }
@@ -3664,15 +3721,15 @@ function EditableDropdownSingleCell(props) {
3664
3721
  const { options, ...context } = props;
3665
3722
  const editMode = useEditMode();
3666
3723
  if (!editMode)
3667
- return /* @__PURE__ */ jsx23(TypographyCustom, {
3724
+ return /* @__PURE__ */ jsx24(TypographyCustom, {
3668
3725
  truncate: true,
3669
3726
  children: context.getValue()
3670
3727
  });
3671
- return /* @__PURE__ */ jsx23(Controller3, {
3728
+ return /* @__PURE__ */ jsx24(Controller3, {
3672
3729
  name: context.column.id,
3673
3730
  render: ({ field: { value, onChange, ...field } }) => {
3674
3731
  const selectedOption = options.find((option) => option.value === value) ?? buildEmptyOption();
3675
- return /* @__PURE__ */ jsx23(Autocomplete, {
3732
+ return /* @__PURE__ */ jsx24(Autocomplete, {
3676
3733
  label: "",
3677
3734
  selectedOptions: selectedOption && [selectedOption],
3678
3735
  options,
@@ -3694,18 +3751,18 @@ function EditableDropdownSingleCell(props) {
3694
3751
  import { TextField as TextField2 } from "@equinor/eds-core-react";
3695
3752
  import { Controller as Controller4 } from "react-hook-form";
3696
3753
  import styled18 from "styled-components";
3697
- import { Fragment as Fragment4, jsx as jsx24 } from "react/jsx-runtime";
3754
+ import { Fragment as Fragment4, jsx as jsx25 } from "react/jsx-runtime";
3698
3755
  function EditableNumberCell(context) {
3699
3756
  const editMode = useEditMode();
3700
3757
  if (!editMode)
3701
- return /* @__PURE__ */ jsx24(TypographyCustom, {
3758
+ return /* @__PURE__ */ jsx25(TypographyCustom, {
3702
3759
  truncate: true,
3703
3760
  children: context.getValue()
3704
3761
  });
3705
- return /* @__PURE__ */ jsx24(Controller4, {
3762
+ return /* @__PURE__ */ jsx25(Controller4, {
3706
3763
  name: context.column.id,
3707
- render: ({ field: { onChange, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx24(Fragment4, {
3708
- children: /* @__PURE__ */ jsx24(InlineTextField2, {
3764
+ render: ({ field: { onChange, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx25(Fragment4, {
3765
+ children: /* @__PURE__ */ jsx25(InlineTextField2, {
3709
3766
  id: context.column.id,
3710
3767
  type: "number",
3711
3768
  autoComplete: "none",
@@ -3745,7 +3802,7 @@ import { arrow_up } from "@equinor/eds-icons";
3745
3802
  import { useState as useState7 } from "react";
3746
3803
  import { Controller as Controller5 } from "react-hook-form";
3747
3804
  import styled19 from "styled-components";
3748
- import { Fragment as Fragment5, jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
3805
+ import { Fragment as Fragment5, jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
3749
3806
  function EditableTextAreaCell(props) {
3750
3807
  const { title, ...context } = props;
3751
3808
  const [textareaValue, setTextareaValue] = useState7(context.getValue());
@@ -3753,14 +3810,14 @@ function EditableTextAreaCell(props) {
3753
3810
  const editMode = useEditMode();
3754
3811
  const name = context.column.id;
3755
3812
  if (!editMode)
3756
- return /* @__PURE__ */ jsx25(PopoverCell, {
3813
+ return /* @__PURE__ */ jsx26(PopoverCell, {
3757
3814
  id: name + "popover",
3758
3815
  value: context.getValue(),
3759
3816
  title
3760
3817
  });
3761
3818
  const openDialog = () => setOpen(true);
3762
3819
  const closeDialog = () => setOpen(false);
3763
- return /* @__PURE__ */ jsx25(Controller5, {
3820
+ return /* @__PURE__ */ jsx26(Controller5, {
3764
3821
  name,
3765
3822
  render: ({ field: { onChange, ref, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsxs12(Fragment5, {
3766
3823
  children: [
@@ -3771,17 +3828,17 @@ function EditableTextAreaCell(props) {
3771
3828
  position: "relative"
3772
3829
  },
3773
3830
  children: [
3774
- /* @__PURE__ */ jsx25(StyledTextField, {
3831
+ /* @__PURE__ */ jsx26(StyledTextField, {
3775
3832
  id: field.name,
3776
3833
  onChange,
3777
3834
  ref,
3778
3835
  ...field,
3779
3836
  ...getHelperTextProps({ error })
3780
3837
  }),
3781
- /* @__PURE__ */ jsx25(IconButton, {
3838
+ /* @__PURE__ */ jsx26(IconButton, {
3782
3839
  variant: "ghost_icon",
3783
3840
  onClick: stopPropagation2(openDialog),
3784
- children: /* @__PURE__ */ jsx25(Icon8, {
3841
+ children: /* @__PURE__ */ jsx26(Icon8, {
3785
3842
  data: arrow_up,
3786
3843
  size: 24,
3787
3844
  style: { transform: "rotateZ(45deg)" }
@@ -3798,13 +3855,13 @@ function EditableTextAreaCell(props) {
3798
3855
  isDismissable: true,
3799
3856
  style: { width: "min(50rem, calc(100vw - 4rem))" },
3800
3857
  children: [
3801
- /* @__PURE__ */ jsx25(EDS.Header, {
3802
- children: /* @__PURE__ */ jsx25(EDS.Title, {
3858
+ /* @__PURE__ */ jsx26(EDS.Header, {
3859
+ children: /* @__PURE__ */ jsx26(EDS.Title, {
3803
3860
  children: title
3804
3861
  })
3805
3862
  }),
3806
- /* @__PURE__ */ jsx25(EDS.Content, {
3807
- children: /* @__PURE__ */ jsx25(TextField3, {
3863
+ /* @__PURE__ */ jsx26(EDS.Content, {
3864
+ children: /* @__PURE__ */ jsx26(TextField3, {
3808
3865
  style: {
3809
3866
  maxWidth: "100%",
3810
3867
  marginTop: "1rem"
@@ -3822,14 +3879,14 @@ function EditableTextAreaCell(props) {
3822
3879
  /* @__PURE__ */ jsxs12(EDS.Actions, {
3823
3880
  style: { display: "flex", gap: "1rem" },
3824
3881
  children: [
3825
- /* @__PURE__ */ jsx25(Button5, {
3882
+ /* @__PURE__ */ jsx26(Button5, {
3826
3883
  onClick: () => {
3827
3884
  closeDialog();
3828
3885
  onChange(textareaValue);
3829
3886
  },
3830
3887
  children: "Submit"
3831
3888
  }),
3832
- /* @__PURE__ */ jsx25(Button5, {
3889
+ /* @__PURE__ */ jsx26(Button5, {
3833
3890
  variant: "ghost",
3834
3891
  onClick: () => {
3835
3892
  closeDialog();
@@ -3865,17 +3922,17 @@ var IconButton = styled19(Button5)`
3865
3922
  import { TextField as TextField4 } from "@equinor/eds-core-react";
3866
3923
  import { Controller as Controller6 } from "react-hook-form";
3867
3924
  import styled20 from "styled-components";
3868
- import { jsx as jsx26 } from "react/jsx-runtime";
3925
+ import { jsx as jsx27 } from "react/jsx-runtime";
3869
3926
  function EditableTextFieldCell(context) {
3870
3927
  const editMode = useEditMode();
3871
3928
  if (!editMode)
3872
- return /* @__PURE__ */ jsx26(TypographyCustom, {
3929
+ return /* @__PURE__ */ jsx27(TypographyCustom, {
3873
3930
  truncate: true,
3874
3931
  children: context.getValue()
3875
3932
  });
3876
- return /* @__PURE__ */ jsx26(Controller6, {
3933
+ return /* @__PURE__ */ jsx27(Controller6, {
3877
3934
  name: context.column.id,
3878
- render: ({ field: { value, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx26(InlineTextField3, {
3935
+ render: ({ field: { value, ...field }, fieldState: { error } }) => /* @__PURE__ */ jsx27(InlineTextField3, {
3879
3936
  id: context.column.id,
3880
3937
  autoComplete: "none",
3881
3938
  value: String(value ?? ""),
@@ -3909,6 +3966,7 @@ var InlineTextField3 = styled20(TextField4)`
3909
3966
  export {
3910
3967
  AppShell,
3911
3968
  AppSidebar,
3969
+ CheckboxCell,
3912
3970
  ChipsCell,
3913
3971
  ColumnSelect,
3914
3972
  DataTable,