@qualtrics/ui-react 2.48.0 → 2.49.1-alpha.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/__shared/cjs/{index-eb30b09e.js → index-43c0270d.js} +3 -3
  3. package/dist/__shared/cjs/{index-06b81ccf.js → index-65fe6015.js} +212 -213
  4. package/dist/components/Accordion/Accordion2.js +3 -3
  5. package/dist/components/Button/Button.js +3 -3
  6. package/dist/components/Button/Button2.js +9 -13
  7. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  8. package/dist/components/Checkbox/Checkbox2.js +3 -3
  9. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  10. package/dist/components/ColorPicker/Palette.js +33 -39
  11. package/dist/components/Combobox/Combobox.js +1 -1
  12. package/dist/components/Combobox/Combobox2.js +3 -3
  13. package/dist/components/ConfigPane/ConfigPane.js +5 -6
  14. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  15. package/dist/components/Divider/Divider2.js +3 -3
  16. package/dist/components/Dropdown/Dropdown.js +7 -3
  17. package/dist/components/Dropdown/Dropdown2.js +3 -3
  18. package/dist/components/Dropdown/DropdownButton.js +1 -1
  19. package/dist/components/FilePicker/FilePicker2.js +3 -3
  20. package/dist/components/FormField/Caption.js +3 -3
  21. package/dist/components/FormField/FormField2.js +3 -3
  22. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  23. package/dist/components/IconButton/IconButton2.js +3 -3
  24. package/dist/components/InlineInput/InlineInput2.js +3 -3
  25. package/dist/components/Input/Input2.js +3 -3
  26. package/dist/components/InputGroup/InputGroup2.js +3 -3
  27. package/dist/components/Label/Label2.js +3 -3
  28. package/dist/components/Link/Link2.js +3 -3
  29. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  30. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  31. package/dist/components/Modal/Modal2.js +3 -3
  32. package/dist/components/NewMenu/BaseMenu.js +3 -3
  33. package/dist/components/NewMenu/NewMenu.js +3 -3
  34. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  35. package/dist/components/PageLayout/PageLayout.js +3 -3
  36. package/dist/components/Pagination/Pagination2.js +3 -3
  37. package/dist/components/Popover/Popover2.js +3 -3
  38. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  39. package/dist/components/Radio/Radio2.js +3 -3
  40. package/dist/components/SearchInput/SearchInput2.js +3 -3
  41. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  42. package/dist/components/Slider/Slider2.js +3 -3
  43. package/dist/components/Switch/Switch2.js +3 -3
  44. package/dist/components/Table/Table2.js +3 -3
  45. package/dist/components/Tabs/TabContextProvider.js +0 -2
  46. package/dist/components/Tabs/Tabs2.js +3 -3
  47. package/dist/components/Tooltip/Tooltip.js +2 -2
  48. package/dist/components/Tooltip/Tooltip2.js +3 -3
  49. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  50. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  51. package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
  52. package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
  53. package/dist/components/deprecated_Tabs/Tabs.js +2 -2
  54. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  55. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  56. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  57. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  58. package/dist/icons/Icon.js +3 -3
  59. package/dist/icons/index.d.ts +0 -2
  60. package/dist/icons/index.js +1 -1
  61. package/dist/index.d.ts +9 -4
  62. package/dist/index.es.js +1 -1
  63. package/dist/index.js +3 -3
  64. package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
  65. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  66. package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -1
  67. package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +31 -9
  68. package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +32 -0
  69. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +9 -11
  70. package/dist/next/AdvancedTable/AdvancedTableRow.js +6 -1
  71. package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +12 -3
  72. package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +30 -138
  73. package/dist/next/AdvancedTable/useDragAndDropConfig.js +191 -0
  74. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  75. package/dist/next/Combobox/Combobox2.js +3 -3
  76. package/dist/next/Drawer/Drawer.js +1 -1
  77. package/dist/next/Drawer/Drawer2.js +3 -3
  78. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  79. package/dist/next/Form/FormFields/InputField.js +3 -3
  80. package/dist/next/Input/Input2.js +3 -3
  81. package/dist/next/Menu/Hooks/usePaneSearch.js +12 -7
  82. package/dist/next/Menu/Menu2.js +3 -3
  83. package/dist/next/Menu/MenuItem.js +1 -1
  84. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -0
  85. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  86. package/dist/next/Select/Select2.js +3 -3
  87. package/dist/next/SplitButton/SplitButton2.js +3 -3
  88. package/dist/next/TimePicker/TimePicker2.js +3 -3
  89. package/dist/next/ToggleButton/styles.js +3 -3
  90. package/dist/next/index.d.ts +14 -12
  91. package/dist/next/index.js +312 -163
  92. package/dist/translations-en.js +2 -1
  93. package/dist/utils/Flyout/Flyout2.js +3 -3
  94. package/dist/utils/Text/Text.js +1 -1
  95. package/dist/utils/Translation/containsComponentOrElement.js +6 -3
  96. package/dist/utils/Translation/useTranslation.js +5 -1
  97. package/icons/package.json +9 -9
  98. package/next/package.json +10 -10
  99. package/package.json +42 -42
@@ -1,8 +1,8 @@
1
1
  import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._-a1SV{overflow:auto;position:relative;max-width:100%;max-height:100%}._-a1SV,._TnJVl{background-color:#fff}._TnJVl{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._UYMTU{margin-bottom:4px}._ZljNO{position:-webkit-sticky;position:sticky;top:0;z-index:100}._vgS0O{display:flex}._vgS0O:focus{outline:none}._vgS0O.focus-visible ._n1aNk:after,._vgS0O:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._vgS0O.focus-visible ._n1aNk:last-of-type:after,._vgS0O:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._vgS0O.focus-visible ._n1aNk:first-of-type:after,._vgS0O:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._vgS0O.focus-visible ._n1aNk._dq5Rs:after,._vgS0O:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:1px}._D2Q9y{padding-right:3px}._ZGIA9{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._LQWg1{display:flex}._LQWg1._snwwn ._n1aNk,._LQWg1._snwwn ._OLBG5{cursor:pointer}._LQWg1._MmogI ._n1aNk,._LQWg1._MmogI ._OLBG5{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._LQWg1._MmogI ._n1aNk._dq5Rs,._LQWg1._MmogI ._OLBG5._dq5Rs{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._LQWg1._MmogI ._n1aNk._dq5Rs ._7ajh-,._LQWg1._MmogI ._n1aNk._dq5Rs ._Awyql,._LQWg1._MmogI ._n1aNk._dq5Rs ._OLBG5,._LQWg1._MmogI ._OLBG5._dq5Rs ._7ajh-,._LQWg1._MmogI ._OLBG5._dq5Rs ._Awyql,._LQWg1._MmogI ._OLBG5._dq5Rs ._OLBG5{background-color:rgba(11,110,208,.08)}._LQWg1._snwwn:hover:not(._MmogI) ._n1aNk,._LQWg1._snwwn:hover:not(._MmogI) ._OLBG5{background-color:#f9f9f9}._LQWg1._snwwn:active:not(._MmogI):not(._LQWg1._snwwn:active:not(._MmogI):has(._Awyql:active)) ._n1aNk,._LQWg1._snwwn:active:not(._MmogI):not(._LQWg1._snwwn:active:not(._MmogI):has(._Awyql:active)) ._OLBG5{background-color:#f3f3f3}._LQWg1:focus{outline:none}._LQWg1.focus-visible ._n1aNk:after,._LQWg1:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._LQWg1.focus-visible ._n1aNk:last-of-type:after,._LQWg1:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._LQWg1.focus-visible ._n1aNk:first-of-type:after,._LQWg1:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._LQWg1.focus-visible ._n1aNk._dq5Rs:after,._LQWg1:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:0}._LQWg1:last-of-type:focus{outline:none}._LQWg1:last-of-type.focus-visible ._n1aNk:after,._LQWg1:last-of-type:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._LQWg1:last-of-type.focus-visible ._n1aNk:last-of-type:after,._LQWg1:last-of-type:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._LQWg1:last-of-type.focus-visible ._n1aNk:first-of-type:after,._LQWg1:last-of-type:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._LQWg1:last-of-type.focus-visible ._n1aNk._dq5Rs:after,._LQWg1:last-of-type:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:1px}._LQWg1:last-of-type ._7ajh-:focus{outline:none}._LQWg1:last-of-type ._7ajh-._zzAxe.focus-visible:after,._LQWg1:last-of-type ._7ajh-._zzAxe:focus-visible:after,._LQWg1:last-of-type ._7ajh-.focus-visible:after,._LQWg1:last-of-type ._7ajh-:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._LQWg1:first-of-type:focus{outline:none}._LQWg1:first-of-type.focus-visible ._n1aNk:after,._LQWg1:first-of-type:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._LQWg1:first-of-type.focus-visible ._n1aNk:last-of-type:after,._LQWg1:first-of-type:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._LQWg1:first-of-type.focus-visible ._n1aNk:first-of-type:after,._LQWg1:first-of-type:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._LQWg1:first-of-type.focus-visible ._n1aNk._dq5Rs:after,._LQWg1:first-of-type:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:0}._LQWg1:first-of-type ._7ajh-:focus{outline:none}._LQWg1:first-of-type ._7ajh-._zzAxe.focus-visible:after,._LQWg1:first-of-type ._7ajh-._zzAxe:focus-visible:after,._LQWg1:first-of-type ._7ajh-.focus-visible:after,._LQWg1:first-of-type ._7ajh-:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._FSG-6{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._FSG-6._vYt2p{flex-grow:1}._FSG-6._X9mgq{cursor:pointer}._FSG-6._X9mgq:hover:not(._Pw-xw){background-color:#f9f9f9;border-bottom-color:#6a6d70}._FSG-6._X9mgq:active:not(._Pw-xw){background-color:#f3f3f3}._FSG-6._37LQE:not(._Pw-xw){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._FSG-6._Pw-xw{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._FSG-6 ._HgIjh{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._FSG-6 ._HgIjh._oPEqf{left:-1px}._FSG-6 ._HgIjh._z-arR{right:0}._FSG-6 ._0x68p{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._FSG-6 ._0x68p._oPEqf{left:-2px}._FSG-6 ._0x68p._z-arR{right:-1px}._FSG-6:first-of-type ._oPEqf._HgIjh{left:0;width:2px;border-left:1px solid #fff}._FSG-6:first-of-type ._oPEqf._0x68p{left:0}._FSG-6:last-of-type ._z-arR._HgIjh{right:0;width:2px;border-right:1px solid #fff}._FSG-6:last-of-type ._z-arR._0x68p{right:0}._FSG-6 ._wyFzn{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._FSG-6 ._wyFzn ._5i-vr{position:absolute;width:2px;right:2px;top:0;bottom:0}._FSG-6 ._wyFzn ._5i-vr._m5neC{background-color:#0a6ed1}._FSG-6 ._wyFzn:hover ._5i-vr:not(._m5neC){background-color:#d9d9d9}._FSG-6 ._mKIYw{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._FSG-6 ._mKIYw._H4klu{flex-direction:row-reverse;justify-content:flex-start}._FSG-6 ._mKIYw._H4klu ._XEDZS{margin:1px 7px 1px 1px}._FSG-6 ._mKIYw ._KEF8f{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._FSG-6 ._mKIYw ._XEDZS{margin:1px 1px 1px 7px;flex-shrink:0}._FSG-6 ._yfgVP{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._FSG-6 ._YBWyK{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._FSG-6:focus{outline:none}._FSG-6._zzAxe.focus-visible:after,._FSG-6._zzAxe:focus-visible:after,._FSG-6.focus-visible:after,._FSG-6:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._RWWaz{margin-right:6px}._dq5Rs{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._dq5Rs[focus-within]{z-index:30}._dq5Rs:focus-within{z-index:30}._7ajh-{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._7ajh- ._fseYd{width:100%;padding:12px 12px 11px;overflow:hidden}._7ajh-._Pw-xw{background-color:#efefef;border-bottom-color:#dfdfe1}._7ajh-._vYt2p{flex-grow:1}._7ajh-:focus{outline:none}._7ajh-._zzAxe.focus-visible:after,._7ajh-._zzAxe:focus-visible:after,._7ajh-.focus-visible:after,._7ajh-:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._OLBG5{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._OLBG5._u-Ad5{border-bottom-color:#d9d9d9;background-color:#fff}._Awyql{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._Awyql._u-Ad5{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._Awyql:focus input~span,._Awyql:hover input~span{border-color:#0b6ed0}._djqy6{justify-content:flex-start}._f-B2J{justify-content:center;text-align:center}._H4klu{justify-content:flex-end;text-align:right}._VJ-As{display:none}._udpjc{opacity:0;height:0;width:0;overflow:hidden}._udpjc,._XtZsi{position:absolute}._XtZsi{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._bfq0a{max-width:250px;min-width:150px!important}";
4
- var styles = {"advancedTable":"_-a1SV","advancedTablePaginationContainer":"_TnJVl","advancedTablePagination":"_UYMTU","advancedTableColumnHeadersRowGroup":"_ZljNO","advancedTableColumnHeaders":"_vgS0O","advancedTableRowChild":"_n1aNk","pinnedContainer":"_dq5Rs","advancedTableRowGroup":"_D2Q9y","advancedTableRowRestrictedWidth":"_ZGIA9","advancedTableRow":"_LQWg1","hasRowAction":"_snwwn","advancedTableExpandRowSpacer":"_OLBG5","isSelected":"_MmogI","advancedTableCheckbox":"_Awyql","advancedTableCell":"_7ajh-","showFocusRing":"_zzAxe","advancedTableColumnHeader":"_FSG-6","fillRemainingSpace":"_vYt2p","isSortable":"_X9mgq","isDragging":"_Pw-xw","isSorted":"_37LQE","dropTargetLine":"_HgIjh","dropTargetLeft":"_oPEqf","dropTargetRight":"_z-arR","dropTargetMarker":"_0x68p","resizeHandle":"_wyFzn","resizeLine":"_5i-vr","isResizing":"_m5neC","advancedTableColumnHeaderLabel":"_mKIYw","rightAligned":"_H4klu","sortIcon":"_XEDZS","advancedTableColumnHeaderLabelText":"_KEF8f","advancedTableColumnHeaderMenu":"_yfgVP","advancedTableColumnHeaderMenuHiddenAnchor":"_YBWyK","advancedTableColumnHeaderMenuItemIcon":"_RWWaz","advancedTableCellContainer":"_fseYd","header":"_u-Ad5","leftAligned":"_djqy6","centerAligned":"_f-B2J","hiddenDescription":"_VJ-As","hiddenLiveRegion":"_udpjc","dragPreview":"_XtZsi","rowActionMenuPane":"_bfq0a"};
5
- var stylesheet="._-a1SV{overflow:auto;position:relative;max-width:100%;max-height:100%}._-a1SV,._TnJVl{background-color:#fff}._TnJVl{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._UYMTU{margin-bottom:4px}._ZljNO{position:-webkit-sticky;position:sticky;top:0;z-index:100}._vgS0O{display:flex}._vgS0O:focus{outline:none}._vgS0O.focus-visible ._n1aNk:after,._vgS0O:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._vgS0O.focus-visible ._n1aNk:last-of-type:after,._vgS0O:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._vgS0O.focus-visible ._n1aNk:first-of-type:after,._vgS0O:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._vgS0O.focus-visible ._n1aNk._dq5Rs:after,._vgS0O:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:1px}._D2Q9y{padding-right:3px}._ZGIA9{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._LQWg1{display:flex}._LQWg1._snwwn ._n1aNk,._LQWg1._snwwn ._OLBG5{cursor:pointer}._LQWg1._MmogI ._n1aNk,._LQWg1._MmogI ._OLBG5{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._LQWg1._MmogI ._n1aNk._dq5Rs,._LQWg1._MmogI ._OLBG5._dq5Rs{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._LQWg1._MmogI ._n1aNk._dq5Rs ._7ajh-,._LQWg1._MmogI ._n1aNk._dq5Rs ._Awyql,._LQWg1._MmogI ._n1aNk._dq5Rs ._OLBG5,._LQWg1._MmogI ._OLBG5._dq5Rs ._7ajh-,._LQWg1._MmogI ._OLBG5._dq5Rs ._Awyql,._LQWg1._MmogI ._OLBG5._dq5Rs ._OLBG5{background-color:rgba(11,110,208,.08)}._LQWg1._snwwn:hover:not(._MmogI) ._n1aNk,._LQWg1._snwwn:hover:not(._MmogI) ._OLBG5{background-color:#f9f9f9}._LQWg1._snwwn:active:not(._MmogI):not(._LQWg1._snwwn:active:not(._MmogI):has(._Awyql:active)) ._n1aNk,._LQWg1._snwwn:active:not(._MmogI):not(._LQWg1._snwwn:active:not(._MmogI):has(._Awyql:active)) ._OLBG5{background-color:#f3f3f3}._LQWg1:focus{outline:none}._LQWg1.focus-visible ._n1aNk:after,._LQWg1:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._LQWg1.focus-visible ._n1aNk:last-of-type:after,._LQWg1:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._LQWg1.focus-visible ._n1aNk:first-of-type:after,._LQWg1:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._LQWg1.focus-visible ._n1aNk._dq5Rs:after,._LQWg1:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:0}._LQWg1:last-of-type:focus{outline:none}._LQWg1:last-of-type.focus-visible ._n1aNk:after,._LQWg1:last-of-type:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._LQWg1:last-of-type.focus-visible ._n1aNk:last-of-type:after,._LQWg1:last-of-type:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._LQWg1:last-of-type.focus-visible ._n1aNk:first-of-type:after,._LQWg1:last-of-type:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._LQWg1:last-of-type.focus-visible ._n1aNk._dq5Rs:after,._LQWg1:last-of-type:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:1px}._LQWg1:last-of-type ._7ajh-:focus{outline:none}._LQWg1:last-of-type ._7ajh-._zzAxe.focus-visible:after,._LQWg1:last-of-type ._7ajh-._zzAxe:focus-visible:after,._LQWg1:last-of-type ._7ajh-.focus-visible:after,._LQWg1:last-of-type ._7ajh-:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._LQWg1:first-of-type:focus{outline:none}._LQWg1:first-of-type.focus-visible ._n1aNk:after,._LQWg1:first-of-type:focus-visible ._n1aNk:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._LQWg1:first-of-type.focus-visible ._n1aNk:last-of-type:after,._LQWg1:first-of-type:focus-visible ._n1aNk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._LQWg1:first-of-type.focus-visible ._n1aNk:first-of-type:after,._LQWg1:first-of-type:focus-visible ._n1aNk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._LQWg1:first-of-type.focus-visible ._n1aNk._dq5Rs:after,._LQWg1:first-of-type:focus-visible ._n1aNk._dq5Rs:after{right:-3px;bottom:0}._LQWg1:first-of-type ._7ajh-:focus{outline:none}._LQWg1:first-of-type ._7ajh-._zzAxe.focus-visible:after,._LQWg1:first-of-type ._7ajh-._zzAxe:focus-visible:after,._LQWg1:first-of-type ._7ajh-.focus-visible:after,._LQWg1:first-of-type ._7ajh-:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._FSG-6{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._FSG-6._vYt2p{flex-grow:1}._FSG-6._X9mgq{cursor:pointer}._FSG-6._X9mgq:hover:not(._Pw-xw){background-color:#f9f9f9;border-bottom-color:#6a6d70}._FSG-6._X9mgq:active:not(._Pw-xw){background-color:#f3f3f3}._FSG-6._37LQE:not(._Pw-xw){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._FSG-6._Pw-xw{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._FSG-6 ._HgIjh{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._FSG-6 ._HgIjh._oPEqf{left:-1px}._FSG-6 ._HgIjh._z-arR{right:0}._FSG-6 ._0x68p{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._FSG-6 ._0x68p._oPEqf{left:-2px}._FSG-6 ._0x68p._z-arR{right:-1px}._FSG-6:first-of-type ._oPEqf._HgIjh{left:0;width:2px;border-left:1px solid #fff}._FSG-6:first-of-type ._oPEqf._0x68p{left:0}._FSG-6:last-of-type ._z-arR._HgIjh{right:0;width:2px;border-right:1px solid #fff}._FSG-6:last-of-type ._z-arR._0x68p{right:0}._FSG-6 ._wyFzn{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._FSG-6 ._wyFzn ._5i-vr{position:absolute;width:2px;right:2px;top:0;bottom:0}._FSG-6 ._wyFzn ._5i-vr._m5neC{background-color:#0a6ed1}._FSG-6 ._wyFzn:hover ._5i-vr:not(._m5neC){background-color:#d9d9d9}._FSG-6 ._mKIYw{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._FSG-6 ._mKIYw._H4klu{flex-direction:row-reverse;justify-content:flex-start}._FSG-6 ._mKIYw._H4klu ._XEDZS{margin:1px 7px 1px 1px}._FSG-6 ._mKIYw ._KEF8f{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._FSG-6 ._mKIYw ._XEDZS{margin:1px 1px 1px 7px;flex-shrink:0}._FSG-6 ._yfgVP{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._FSG-6 ._YBWyK{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._FSG-6:focus{outline:none}._FSG-6._zzAxe.focus-visible:after,._FSG-6._zzAxe:focus-visible:after,._FSG-6.focus-visible:after,._FSG-6:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._RWWaz{margin-right:6px}._dq5Rs{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._dq5Rs[focus-within]{z-index:30}._dq5Rs:focus-within{z-index:30}._7ajh-{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._7ajh- ._fseYd{width:100%;padding:12px 12px 11px;overflow:hidden}._7ajh-._Pw-xw{background-color:#efefef;border-bottom-color:#dfdfe1}._7ajh-._vYt2p{flex-grow:1}._7ajh-:focus{outline:none}._7ajh-._zzAxe.focus-visible:after,._7ajh-._zzAxe:focus-visible:after,._7ajh-.focus-visible:after,._7ajh-:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._OLBG5{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._OLBG5._u-Ad5{border-bottom-color:#d9d9d9;background-color:#fff}._Awyql{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._Awyql._u-Ad5{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._Awyql:focus input~span,._Awyql:hover input~span{border-color:#0b6ed0}._djqy6{justify-content:flex-start}._f-B2J{justify-content:center;text-align:center}._H4klu{justify-content:flex-end;text-align:right}._VJ-As{display:none}._udpjc{opacity:0;height:0;width:0;overflow:hidden}._udpjc,._XtZsi{position:absolute}._XtZsi{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._bfq0a{max-width:250px;min-width:150px!important}";
3
+ var css_248z = "._-5cPq{overflow:auto;position:relative;max-width:100%;max-height:100%}._-5cPq,._ytUo4{background-color:#fff}._ytUo4{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._EOKSw{margin-bottom:4px}._PuAcQ{position:-webkit-sticky;position:sticky;top:0;z-index:100}._vDAE0{display:flex}._vDAE0:focus{outline:none}._vDAE0.focus-visible ._BjdNb:after,._vDAE0:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._vDAE0.focus-visible ._BjdNb:last-of-type:after,._vDAE0:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._vDAE0.focus-visible ._BjdNb:first-of-type:after,._vDAE0:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._vDAE0.focus-visible ._BjdNb._aQl69:after,._vDAE0:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:1px}._QQmA0{padding-right:3px}._CVqPg{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._02ABn{display:flex}._02ABn._-V45P ._BjdNb,._02ABn._-V45P ._Teg50{cursor:pointer}._02ABn._a2wz1 ._BjdNb,._02ABn._a2wz1 ._Teg50{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._02ABn._a2wz1 ._BjdNb._aQl69,._02ABn._a2wz1 ._Teg50._aQl69{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._02ABn._a2wz1 ._BjdNb._aQl69 ._5quOp,._02ABn._a2wz1 ._BjdNb._aQl69 ._Av4Wy,._02ABn._a2wz1 ._BjdNb._aQl69 ._Teg50,._02ABn._a2wz1 ._Teg50._aQl69 ._5quOp,._02ABn._a2wz1 ._Teg50._aQl69 ._Av4Wy,._02ABn._a2wz1 ._Teg50._aQl69 ._Teg50{background-color:rgba(11,110,208,.08)}._02ABn._-V45P:hover:not(._a2wz1) ._BjdNb,._02ABn._-V45P:hover:not(._a2wz1) ._Teg50{background-color:#f9f9f9}._02ABn._-V45P:active:not(._a2wz1):not(._02ABn._-V45P:active:not(._a2wz1):has(._5quOp:active)) ._BjdNb,._02ABn._-V45P:active:not(._a2wz1):not(._02ABn._-V45P:active:not(._a2wz1):has(._5quOp:active)) ._Teg50{background-color:#f3f3f3}._02ABn:focus{outline:none}._02ABn.focus-visible ._BjdNb:after,._02ABn:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._02ABn.focus-visible ._BjdNb:last-of-type:after,._02ABn:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._02ABn.focus-visible ._BjdNb:first-of-type:after,._02ABn:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._02ABn.focus-visible ._BjdNb._aQl69:after,._02ABn:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:0}._02ABn:last-of-type:focus{outline:none}._02ABn:last-of-type.focus-visible ._BjdNb:after,._02ABn:last-of-type:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._02ABn:last-of-type.focus-visible ._BjdNb:last-of-type:after,._02ABn:last-of-type:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._02ABn:last-of-type.focus-visible ._BjdNb:first-of-type:after,._02ABn:last-of-type:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._02ABn:last-of-type.focus-visible ._BjdNb._aQl69:after,._02ABn:last-of-type:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:1px}._02ABn:last-of-type ._Av4Wy:focus{outline:none}._02ABn:last-of-type ._Av4Wy._WNXoQ.focus-visible:after,._02ABn:last-of-type ._Av4Wy._WNXoQ:focus-visible:after,._02ABn:last-of-type ._Av4Wy.focus-visible:after,._02ABn:last-of-type ._Av4Wy:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._02ABn:first-of-type:focus{outline:none}._02ABn:first-of-type.focus-visible ._BjdNb:after,._02ABn:first-of-type:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._02ABn:first-of-type.focus-visible ._BjdNb:last-of-type:after,._02ABn:first-of-type:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._02ABn:first-of-type.focus-visible ._BjdNb:first-of-type:after,._02ABn:first-of-type:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._02ABn:first-of-type.focus-visible ._BjdNb._aQl69:after,._02ABn:first-of-type:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:0}._02ABn:first-of-type ._Av4Wy:focus{outline:none}._02ABn:first-of-type ._Av4Wy._WNXoQ.focus-visible:after,._02ABn:first-of-type ._Av4Wy._WNXoQ:focus-visible:after,._02ABn:first-of-type ._Av4Wy.focus-visible:after,._02ABn:first-of-type ._Av4Wy:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._NJw9v{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._NJw9v._ysUDX{flex-grow:1}._NJw9v._nVwTc{cursor:pointer}._NJw9v._nVwTc:hover:not(._f9Vm3){background-color:#f9f9f9;border-bottom-color:#6a6d70}._NJw9v._nVwTc:active:not(._f9Vm3){background-color:#f3f3f3}._NJw9v._wtiMS:not(._f9Vm3){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._NJw9v._f9Vm3{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._NJw9v ._zcv4x{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._NJw9v ._zcv4x._n9XSz{left:-1px}._NJw9v ._zcv4x._Txoqg{right:0}._NJw9v ._cRwS-{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._NJw9v ._cRwS-._n9XSz{left:-2px}._NJw9v ._cRwS-._Txoqg{right:-1px}._NJw9v:first-of-type ._n9XSz._zcv4x{left:0;width:2px;border-left:1px solid #fff}._NJw9v:first-of-type ._n9XSz._cRwS-{left:0}._NJw9v:last-of-type ._Txoqg._zcv4x{right:0;width:2px;border-right:1px solid #fff}._NJw9v:last-of-type ._Txoqg._cRwS-{right:0}._NJw9v ._ATviE{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._NJw9v ._ATviE ._Ahz4c{position:absolute;width:2px;right:2px;top:0;bottom:0}._NJw9v ._ATviE ._Ahz4c._2uClD{background-color:#0a6ed1}._NJw9v ._ATviE:hover ._Ahz4c:not(._2uClD){background-color:#d9d9d9}._NJw9v ._4pbio{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._NJw9v ._4pbio._msRMX{flex-direction:row-reverse;justify-content:flex-start}._NJw9v ._4pbio._msRMX ._yWPyK{margin:1px 7px 1px 1px}._NJw9v ._4pbio ._MRqij{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._NJw9v ._4pbio ._yWPyK{margin:1px 1px 1px 7px;flex-shrink:0}._NJw9v ._6IUON{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._NJw9v ._jM3RR{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._NJw9v:focus{outline:none}._NJw9v._WNXoQ.focus-visible:after,._NJw9v._WNXoQ:focus-visible:after,._NJw9v.focus-visible:after,._NJw9v:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._U2zZc{margin-right:6px}._aQl69{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._aQl69[focus-within]{z-index:30}._aQl69:focus-within{z-index:30}._Av4Wy{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._Av4Wy ._HhiP4{width:100%;padding:12px 12px 11px;overflow:hidden}._Av4Wy._f9Vm3{background-color:#efefef;border-bottom-color:#dfdfe1}._Av4Wy._ysUDX{flex-grow:1}._Av4Wy:focus{outline:none}._Av4Wy._WNXoQ.focus-visible:after,._Av4Wy._WNXoQ:focus-visible:after,._Av4Wy.focus-visible:after,._Av4Wy:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._Teg50{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._Teg50._pFFCQ{border-bottom-color:#d9d9d9;background-color:#fff}._5quOp{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._5quOp._pFFCQ{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._5quOp:focus input~span,._5quOp:hover input~span{border-color:#0b6ed0}._P2pZa{justify-content:flex-start}._OHIyY{justify-content:center;text-align:center}._msRMX{justify-content:flex-end;text-align:right}._5PSSP{display:none}._rp4JQ{opacity:0;height:0;width:0;overflow:hidden}._1O2QN,._rp4JQ{position:absolute}._1O2QN{background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000}._1O2QN,._dhJm1{cursor:move;pointer-events:none}._NlBzi{max-width:250px;min-width:150px!important}";
4
+ var styles = {"advancedTable":"_-5cPq","advancedTablePaginationContainer":"_ytUo4","advancedTablePagination":"_EOKSw","advancedTableColumnHeadersRowGroup":"_PuAcQ","advancedTableColumnHeaders":"_vDAE0","advancedTableRowChild":"_BjdNb","pinnedContainer":"_aQl69","advancedTableRowGroup":"_QQmA0","advancedTableRowRestrictedWidth":"_CVqPg","advancedTableRow":"_02ABn","hasRowAction":"_-V45P","advancedTableExpandRowSpacer":"_Teg50","isSelected":"_a2wz1","advancedTableCheckbox":"_5quOp","advancedTableCell":"_Av4Wy","showFocusRing":"_WNXoQ","advancedTableColumnHeader":"_NJw9v","fillRemainingSpace":"_ysUDX","isSortable":"_nVwTc","isDragging":"_f9Vm3","isSorted":"_wtiMS","dropTargetLine":"_zcv4x","dropTargetLeft":"_n9XSz","dropTargetRight":"_Txoqg","dropTargetMarker":"_cRwS-","resizeHandle":"_ATviE","resizeLine":"_Ahz4c","isResizing":"_2uClD","advancedTableColumnHeaderLabel":"_4pbio","rightAligned":"_msRMX","sortIcon":"_yWPyK","advancedTableColumnHeaderLabelText":"_MRqij","advancedTableColumnHeaderMenu":"_6IUON","advancedTableColumnHeaderMenuHiddenAnchor":"_jM3RR","advancedTableColumnHeaderMenuItemIcon":"_U2zZc","advancedTableCellContainer":"_HhiP4","header":"_pFFCQ","leftAligned":"_P2pZa","centerAligned":"_OHIyY","hiddenDescription":"_5PSSP","hiddenLiveRegion":"_rp4JQ","dragPreview":"_1O2QN","isColumnDragging":"_dhJm1","rowActionMenuPane":"_NlBzi"};
5
+ var stylesheet="._-5cPq{overflow:auto;position:relative;max-width:100%;max-height:100%}._-5cPq,._ytUo4{background-color:#fff}._ytUo4{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._EOKSw{margin-bottom:4px}._PuAcQ{position:-webkit-sticky;position:sticky;top:0;z-index:100}._vDAE0{display:flex}._vDAE0:focus{outline:none}._vDAE0.focus-visible ._BjdNb:after,._vDAE0:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._vDAE0.focus-visible ._BjdNb:last-of-type:after,._vDAE0:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._vDAE0.focus-visible ._BjdNb:first-of-type:after,._vDAE0:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._vDAE0.focus-visible ._BjdNb._aQl69:after,._vDAE0:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:1px}._QQmA0{padding-right:3px}._CVqPg{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._02ABn{display:flex}._02ABn._-V45P ._BjdNb,._02ABn._-V45P ._Teg50{cursor:pointer}._02ABn._a2wz1 ._BjdNb,._02ABn._a2wz1 ._Teg50{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._02ABn._a2wz1 ._BjdNb._aQl69,._02ABn._a2wz1 ._Teg50._aQl69{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._02ABn._a2wz1 ._BjdNb._aQl69 ._5quOp,._02ABn._a2wz1 ._BjdNb._aQl69 ._Av4Wy,._02ABn._a2wz1 ._BjdNb._aQl69 ._Teg50,._02ABn._a2wz1 ._Teg50._aQl69 ._5quOp,._02ABn._a2wz1 ._Teg50._aQl69 ._Av4Wy,._02ABn._a2wz1 ._Teg50._aQl69 ._Teg50{background-color:rgba(11,110,208,.08)}._02ABn._-V45P:hover:not(._a2wz1) ._BjdNb,._02ABn._-V45P:hover:not(._a2wz1) ._Teg50{background-color:#f9f9f9}._02ABn._-V45P:active:not(._a2wz1):not(._02ABn._-V45P:active:not(._a2wz1):has(._5quOp:active)) ._BjdNb,._02ABn._-V45P:active:not(._a2wz1):not(._02ABn._-V45P:active:not(._a2wz1):has(._5quOp:active)) ._Teg50{background-color:#f3f3f3}._02ABn:focus{outline:none}._02ABn.focus-visible ._BjdNb:after,._02ABn:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._02ABn.focus-visible ._BjdNb:last-of-type:after,._02ABn:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._02ABn.focus-visible ._BjdNb:first-of-type:after,._02ABn:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._02ABn.focus-visible ._BjdNb._aQl69:after,._02ABn:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:0}._02ABn:last-of-type:focus{outline:none}._02ABn:last-of-type.focus-visible ._BjdNb:after,._02ABn:last-of-type:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._02ABn:last-of-type.focus-visible ._BjdNb:last-of-type:after,._02ABn:last-of-type:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._02ABn:last-of-type.focus-visible ._BjdNb:first-of-type:after,._02ABn:last-of-type:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._02ABn:last-of-type.focus-visible ._BjdNb._aQl69:after,._02ABn:last-of-type:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:1px}._02ABn:last-of-type ._Av4Wy:focus{outline:none}._02ABn:last-of-type ._Av4Wy._WNXoQ.focus-visible:after,._02ABn:last-of-type ._Av4Wy._WNXoQ:focus-visible:after,._02ABn:last-of-type ._Av4Wy.focus-visible:after,._02ABn:last-of-type ._Av4Wy:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._02ABn:first-of-type:focus{outline:none}._02ABn:first-of-type.focus-visible ._BjdNb:after,._02ABn:first-of-type:focus-visible ._BjdNb:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._02ABn:first-of-type.focus-visible ._BjdNb:last-of-type:after,._02ABn:first-of-type:focus-visible ._BjdNb:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._02ABn:first-of-type.focus-visible ._BjdNb:first-of-type:after,._02ABn:first-of-type:focus-visible ._BjdNb:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._02ABn:first-of-type.focus-visible ._BjdNb._aQl69:after,._02ABn:first-of-type:focus-visible ._BjdNb._aQl69:after{right:-3px;bottom:0}._02ABn:first-of-type ._Av4Wy:focus{outline:none}._02ABn:first-of-type ._Av4Wy._WNXoQ.focus-visible:after,._02ABn:first-of-type ._Av4Wy._WNXoQ:focus-visible:after,._02ABn:first-of-type ._Av4Wy.focus-visible:after,._02ABn:first-of-type ._Av4Wy:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._NJw9v{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._NJw9v._ysUDX{flex-grow:1}._NJw9v._nVwTc{cursor:pointer}._NJw9v._nVwTc:hover:not(._f9Vm3){background-color:#f9f9f9;border-bottom-color:#6a6d70}._NJw9v._nVwTc:active:not(._f9Vm3){background-color:#f3f3f3}._NJw9v._wtiMS:not(._f9Vm3){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._NJw9v._f9Vm3{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._NJw9v ._zcv4x{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._NJw9v ._zcv4x._n9XSz{left:-1px}._NJw9v ._zcv4x._Txoqg{right:0}._NJw9v ._cRwS-{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._NJw9v ._cRwS-._n9XSz{left:-2px}._NJw9v ._cRwS-._Txoqg{right:-1px}._NJw9v:first-of-type ._n9XSz._zcv4x{left:0;width:2px;border-left:1px solid #fff}._NJw9v:first-of-type ._n9XSz._cRwS-{left:0}._NJw9v:last-of-type ._Txoqg._zcv4x{right:0;width:2px;border-right:1px solid #fff}._NJw9v:last-of-type ._Txoqg._cRwS-{right:0}._NJw9v ._ATviE{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._NJw9v ._ATviE ._Ahz4c{position:absolute;width:2px;right:2px;top:0;bottom:0}._NJw9v ._ATviE ._Ahz4c._2uClD{background-color:#0a6ed1}._NJw9v ._ATviE:hover ._Ahz4c:not(._2uClD){background-color:#d9d9d9}._NJw9v ._4pbio{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._NJw9v ._4pbio._msRMX{flex-direction:row-reverse;justify-content:flex-start}._NJw9v ._4pbio._msRMX ._yWPyK{margin:1px 7px 1px 1px}._NJw9v ._4pbio ._MRqij{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._NJw9v ._4pbio ._yWPyK{margin:1px 1px 1px 7px;flex-shrink:0}._NJw9v ._6IUON{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._NJw9v ._jM3RR{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._NJw9v:focus{outline:none}._NJw9v._WNXoQ.focus-visible:after,._NJw9v._WNXoQ:focus-visible:after,._NJw9v.focus-visible:after,._NJw9v:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._U2zZc{margin-right:6px}._aQl69{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._aQl69[focus-within]{z-index:30}._aQl69:focus-within{z-index:30}._Av4Wy{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._Av4Wy ._HhiP4{width:100%;padding:12px 12px 11px;overflow:hidden}._Av4Wy._f9Vm3{background-color:#efefef;border-bottom-color:#dfdfe1}._Av4Wy._ysUDX{flex-grow:1}._Av4Wy:focus{outline:none}._Av4Wy._WNXoQ.focus-visible:after,._Av4Wy._WNXoQ:focus-visible:after,._Av4Wy.focus-visible:after,._Av4Wy:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._Teg50{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._Teg50._pFFCQ{border-bottom-color:#d9d9d9;background-color:#fff}._5quOp{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._5quOp._pFFCQ{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._5quOp:focus input~span,._5quOp:hover input~span{border-color:#0b6ed0}._P2pZa{justify-content:flex-start}._OHIyY{justify-content:center;text-align:center}._msRMX{justify-content:flex-end;text-align:right}._5PSSP{display:none}._rp4JQ{opacity:0;height:0;width:0;overflow:hidden}._1O2QN,._rp4JQ{position:absolute}._1O2QN{background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000}._1O2QN,._dhJm1{cursor:move;pointer-events:none}._NlBzi{max-width:250px;min-width:150px!important}";
6
6
  if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
7
7
 
8
8
  export { styles as default, stylesheet };
@@ -4,6 +4,7 @@ import styles from './AdvancedTable2.js';
4
4
  import Check from '../../components/Checkbox/Check.js';
5
5
  import '../../utils/index.js';
6
6
  import '../../hooks/index.js';
7
+ import { useAdvancedTableDnDContext } from './AdvancedTableDnDContext.js';
7
8
  import useTranslation from '../../utils/Translation/useTranslation.js';
8
9
  import useScreenReaderAnnouncement from '../../hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js';
9
10
 
@@ -21,6 +22,9 @@ const AdvancedTableCheckbox = _ref => {
21
22
  const {
22
23
  translate
23
24
  } = useTranslation();
25
+ const {
26
+ isDragging
27
+ } = useAdvancedTableDnDContext();
24
28
  const label = useMemo(() => {
25
29
  const labels = {
26
30
  true: translate('checked'),
@@ -39,7 +43,8 @@ const AdvancedTableCheckbox = _ref => {
39
43
  "data-testid": dataTestId,
40
44
  onClick: onClick,
41
45
  className: classNames(styles.advancedTableCheckbox, className, {
42
- [styles.header]: variant === 'header'
46
+ [styles.header]: variant === 'header',
47
+ [styles.isColumnDragging]: isDragging
43
48
  }),
44
49
  role: "presentation"
45
50
  }, /*#__PURE__*/React__default.createElement(Check, {
@@ -1,5 +1,5 @@
1
1
  import _extends from '@babel/runtime-corejs3/helpers/extends';
2
- import React__default, { forwardRef, useRef, useState, useEffect } from 'react';
2
+ import React__default, { forwardRef, useRef, useState, useEffect, useMemo } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import AdvancedTableColumnHeaderMenu from './AdvancedTableColumnHeaderMenu.js';
5
5
  import useDragAndDrop from './useAdvancedTableDragAndDrop.js';
@@ -10,7 +10,9 @@ import '../../icons/index.es.js';
10
10
  import '../../utils/index.js';
11
11
  import '../../hooks/index.js';
12
12
  import useComputedWidth from './useComputedWidth.js';
13
+ import { useAdvancedTableDnDContext } from './AdvancedTableDnDContext.js';
13
14
  import useEventListener from '../../hooks/useEventListener/useEventListener.js';
15
+ import useTranslation from '../../utils/Translation/useTranslation.js';
14
16
  import Tooltip from '../../components/Tooltip/Tooltip.js';
15
17
  import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
16
18
  import IconButton from '../../components/IconButton/IconButton.js';
@@ -55,6 +57,9 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
55
57
  const [ellipsisShown, setEllipsisShown] = useState();
56
58
  const columnHeaderRef = useRef(null);
57
59
  const labelContainerRef = useRef(null);
60
+ const {
61
+ isDragging: isUserDragging
62
+ } = useAdvancedTableDnDContext();
58
63
  const isSortable = Boolean(sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length);
59
64
  const isSorted = isSortable && selectedSortOption.columnId === id && selectedSortOption.index >= 0 && selectedSortOption.index < (sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length) && (selectedSortOption.direction === 'ascending' || selectedSortOption.direction === 'descending');
60
65
  const selectedSortIndex = isSorted ? selectedSortOption.index : -1;
@@ -93,7 +98,8 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
93
98
  const hasDraggableColumns = !disableUserPinnableColumns && !disableUserReorderableColumns && !isRowActionMenuColumn;
94
99
  const {
95
100
  dragRef,
96
- dropRef
101
+ dropRef,
102
+ listeners
97
103
  } = useDragAndDrop({
98
104
  isEnabled: hasDraggableColumns,
99
105
  id,
@@ -238,10 +244,15 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
238
244
  }
239
245
  }, [isResizing]);
240
246
  const computedWidth = useComputedWidth(widthBuffer, width);
247
+ const [hasFocus, setHasFocus] = useState(false);
248
+ const {
249
+ translate
250
+ } = useTranslation();
251
+ const buttonAriaLabel = useMemo(() => "".concat(label, ", ").concat(translate('buttonLabel')), [label, translate]);
241
252
  return /*#__PURE__*/React__default.createElement(Tooltip, {
242
253
  content: label,
243
254
  disabled: !ellipsisShown
244
- }, /*#__PURE__*/React__default.createElement("div", {
255
+ }, /*#__PURE__*/React__default.createElement("div", _extends({
245
256
  role: "columnheader",
246
257
  "data-testid": dataTestId,
247
258
  "aria-rowindex": 1,
@@ -250,7 +261,13 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
250
261
  "aria-sort": isSortable ? isSorted ? selectedSortOption.direction : 'none' : undefined,
251
262
  onClick: isSortable ? handleClick : undefined,
252
263
  onKeyDown: handleKeyDown,
253
- onFocus: onFocus,
264
+ onFocus: e => {
265
+ setHasFocus(true);
266
+ onFocus(e);
267
+ },
268
+ onBlur: () => {
269
+ setHasFocus(false);
270
+ },
254
271
  tabIndex: isFocused ? 0 : -1,
255
272
  className: classNames(styles.advancedTableColumnHeader, {
256
273
  [styles.advancedTableRowChild]: !isPinned,
@@ -259,13 +276,15 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
259
276
  [styles.isSorted]: isSorted,
260
277
  [styles.showFocusRing]: isHiddenMenuOpen,
261
278
  [styles.isDragging]: isDragging,
262
- [styles.fillRemainingSpace]: width === undefined
279
+ [styles.fillRemainingSpace]: width === undefined,
280
+ [styles.isColumnDragging]: isUserDragging
263
281
  }),
264
282
  style: {
265
283
  width: computedWidth
266
284
  },
267
- ref: mergeRefs(columnHeaderRef, dragRef, dropRef, ref)
268
- }, /*#__PURE__*/React__default.createElement("div", {
285
+ ref: mergeRefs(columnHeaderRef, dragRef, dropRef, ref),
286
+ draggable: hasDraggableColumns
287
+ }, listeners), /*#__PURE__*/React__default.createElement("div", {
269
288
  role: isSortable ? 'button' : undefined,
270
289
  className: classNames(styles.advancedTableColumnHeaderLabel, {
271
290
  [styles.leftAligned]: alignment === 'left',
@@ -278,14 +297,17 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
278
297
  style: {
279
298
  WebkitLineClamp: headerMaxLines
280
299
  },
281
- ref: labelRef
300
+ ref: labelRef,
301
+ "aria-label": hasMenu && hasFocus ? buttonAriaLabel : undefined
282
302
  }, label), selectedSortIcon), hasMenu && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(AdvancedTableColumnHeaderMenu, _extends({}, commonMenuProps, {
283
303
  isOpen: isMenuOpen,
284
304
  setIsOpen: setIsMenuOpen,
285
305
  anchor: /*#__PURE__*/React__default.createElement(IconButton, {
286
306
  tabIndex: -1,
287
307
  "aria-hidden": "true",
288
- className: styles.advancedTableColumnHeaderMenu
308
+ className: classNames(styles.advancedTableColumnHeaderMenu, {
309
+ [styles.isColumnDragging]: isUserDragging
310
+ })
289
311
  }, /*#__PURE__*/React__default.createElement(ChevronDownIcon, null))
290
312
  })), /*#__PURE__*/React__default.createElement(AdvancedTableColumnHeaderMenu, _extends({}, commonMenuProps, {
291
313
  isOpen: isHiddenMenuOpen,
@@ -0,0 +1,32 @@
1
+ import React__default, { createContext, useState, useMemo, useContext } from 'react';
2
+ import { DndContext } from '@dnd-kit/core';
3
+ import useDragAndDropConfig from './useDragAndDropConfig.js';
4
+
5
+ const defaultAdvancedTableDnDContext = {
6
+ isDragging: false,
7
+ setIsDragging: () => {}
8
+ };
9
+ const AdvancedTableDnDContext = /*#__PURE__*/createContext(defaultAdvancedTableDnDContext);
10
+ const AdvancedTableDnDContextProvider = _ref => {
11
+ let {
12
+ children,
13
+ setColumnOrder,
14
+ setDropTargetSide,
15
+ setPinnedColumns,
16
+ setDropTarget,
17
+ setDragSource,
18
+ dropTargetSide
19
+ } = _ref;
20
+ const [isDragging, setIsDragging] = useState(false);
21
+ const context = useMemo(() => ({
22
+ isDragging,
23
+ setIsDragging
24
+ }), [isDragging]);
25
+ const dndConfig = useDragAndDropConfig(setDragSource, setDropTarget, setDropTargetSide, setPinnedColumns, setColumnOrder, setIsDragging, dropTargetSide);
26
+ return /*#__PURE__*/React__default.createElement(AdvancedTableDnDContext.Provider, {
27
+ value: context
28
+ }, /*#__PURE__*/React__default.createElement(DndContext, dndConfig, children));
29
+ };
30
+ const useAdvancedTableDnDContext = () => useContext(AdvancedTableDnDContext);
31
+
32
+ export { AdvancedTableDnDContextProvider, useAdvancedTableDnDContext };
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { useDragLayer } from 'react-dnd';
2
+ import { useDndContext } from '@dnd-kit/core';
3
3
  import '../../utils/index.js';
4
4
  import styles from './AdvancedTable2.js';
5
5
  import Portal from '../../utils/Portal/Portal.js';
@@ -11,16 +11,14 @@ const AdvancedTableDragPreview = _ref => {
11
11
  columnHeaderRefs
12
12
  } = _ref;
13
13
  const {
14
- item,
15
- currentOffset
16
- } = useDragLayer(monitor => ({
17
- item: monitor.getItem(),
18
- currentOffset: monitor.getSourceClientOffset()
19
- }));
20
- const width = columnHeaderRefs === null || columnHeaderRefs === void 0 || (_columnHeaderRefs$ite = columnHeaderRefs[item === null || item === void 0 ? void 0 : item.columnIndex]) === null || _columnHeaderRefs$ite === void 0 || (_columnHeaderRefs$ite = _columnHeaderRefs$ite.getBoundingClientRect()) === null || _columnHeaderRefs$ite === void 0 ? void 0 : _columnHeaderRefs$ite.width;
21
- const height = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 || (_tableRef$current = _tableRef$current.getBoundingClientRect()) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.height;
22
- const top = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.y) || 0;
23
- const left = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.x) || 0;
14
+ active
15
+ } = useDndContext();
16
+ const item = active === null || active === void 0 ? void 0 : active.data.current;
17
+ const position = active === null || active === void 0 ? void 0 : active.rect.current.translated;
18
+ const width = (columnHeaderRefs === null || columnHeaderRefs === void 0 || (_columnHeaderRefs$ite = columnHeaderRefs[item === null || item === void 0 ? void 0 : item.columnIndex]) === null || _columnHeaderRefs$ite === void 0 || (_columnHeaderRefs$ite = _columnHeaderRefs$ite.getBoundingClientRect()) === null || _columnHeaderRefs$ite === void 0 ? void 0 : _columnHeaderRefs$ite.width) || 0;
19
+ const height = ((_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 || (_tableRef$current = _tableRef$current.getBoundingClientRect()) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.height) || 0;
20
+ const top = ((position === null || position === void 0 ? void 0 : position.top) || 0) + window.scrollY;
21
+ const left = ((position === null || position === void 0 ? void 0 : position.left) || 0) + window.scrollX;
24
22
  return /*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement("div", {
25
23
  className: styles.dragPreview,
26
24
  style: {
@@ -2,6 +2,7 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
2
2
  import React__default, { forwardRef } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import styles from './AdvancedTable2.js';
5
+ import { useAdvancedTableDnDContext } from './AdvancedTableDnDContext.js';
5
6
 
6
7
  const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
7
8
  let {
@@ -17,6 +18,9 @@ const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
17
18
  children,
18
19
  ...rest
19
20
  } = _ref;
21
+ const {
22
+ isDragging
23
+ } = useAdvancedTableDnDContext();
20
24
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
21
25
  role: "row",
22
26
  "data-testid": dataTestId,
@@ -28,7 +32,8 @@ const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
28
32
  className: classNames(styles.advancedTableRow, {
29
33
  [styles.hasRowAction]: hasOnRowSelect,
30
34
  [styles.isSelected]: hasOnRowSelect && isSelected,
31
- [styles.advancedTableRowRestrictedWidth]: restrictedWidth
35
+ [styles.advancedTableRowRestrictedWidth]: restrictedWidth,
36
+ [styles.isColumnDragging]: isDragging
32
37
  }),
33
38
  ref: isFocusable ? ref : undefined
34
39
  }), children);
@@ -1,7 +1,9 @@
1
- import React__default from 'react';
1
+ import React__default, { useMemo } from 'react';
2
+ import classNames from 'classnames';
2
3
  import '../../utils/index.js';
3
4
  import '../../icons/index.es.js';
4
5
  import '../../components/index.js';
6
+ import { useAdvancedTableDnDContext } from './AdvancedTableDnDContext.js';
5
7
  import iconButtonStyles from '../../components/IconButton/IconButton2.js';
6
8
  import useTranslation from '../../utils/Translation/useTranslation.js';
7
9
  import Tooltip from '../../components/Tooltip/Tooltip.js';
@@ -18,17 +20,24 @@ const AdvancedTableRowExpandButton = _ref => {
18
20
  const {
19
21
  translate
20
22
  } = useTranslation();
23
+ const {
24
+ isDragging
25
+ } = useAdvancedTableDnDContext();
21
26
  const state = isRowExpanded ? 'expanded' : 'collapsed';
22
27
  const labels = {
23
28
  expanded: translate('advancedTable.collapseRow'),
24
29
  collapsed: translate('advancedTable.expandRow')
25
30
  };
31
+ const buttonClasses = useMemo(() => classNames(iconButtonStyles.button, {
32
+ [iconButtonStyles.disabled]: isDragging
33
+ }), [isDragging]);
26
34
  return /*#__PURE__*/React__default.createElement("div", {
27
35
  onClick: onClick
28
36
  }, /*#__PURE__*/React__default.createElement(Tooltip, {
29
- content: labels[state]
37
+ content: labels[state],
38
+ disabled: isDragging
30
39
  }, /*#__PURE__*/React__default.createElement("div", {
31
- className: iconButtonStyles.button,
40
+ className: buttonClasses,
32
41
  "data-testid": dataTestId,
33
42
  role: "presentation"
34
43
  }, state === 'expanded' ? /*#__PURE__*/React__default.createElement(CaretDownIcon, {
@@ -1,8 +1,5 @@
1
1
  import { useEffect } from 'react';
2
- import { useDrag, useDrop } from 'react-dnd';
3
- import { getEmptyImage } from 'react-dnd-html5-backend';
4
- import '../../hooks/index.js';
5
- import useLatest from '../../hooks/useLatest/useLatest.js';
2
+ import { useDraggable, useDroppable } from '@dnd-kit/core';
6
3
 
7
4
  const useDragAndDrop = _ref => {
8
5
  let {
@@ -12,143 +9,37 @@ const useDragAndDrop = _ref => {
12
9
  columnIndex,
13
10
  columnHeaderRef,
14
11
  isPinned,
15
- setPinnedColumns,
16
- setColumnOrder,
17
- setDragSource,
18
12
  setDropTarget,
19
- dropTargetSide,
20
13
  setDropTargetSide
21
14
  } = _ref;
22
- const [, dragRef, dragPreviewRef] = useDrag(() => ({
23
- type: tableId,
24
- item: () => {
25
- setDragSource(id);
26
- return {
27
- id,
28
- isPinned,
29
- columnIndex
30
- };
31
- },
32
- end: () => {
33
- setDragSource('');
34
- setDropTarget('');
35
- setDropTargetSide(undefined);
36
- },
37
- canDrag: () => isEnabled,
38
- options: {
39
- dropEffect: 'move'
15
+ const {
16
+ setNodeRef: dragRef,
17
+ listeners
18
+ } = useDraggable({
19
+ id,
20
+ disabled: !isEnabled,
21
+ data: {
22
+ type: tableId,
23
+ isPinned,
24
+ columnIndex,
25
+ id,
26
+ columnHeaderRef
40
27
  }
41
- }), [id, tableId, isPinned, columnIndex, isEnabled, setDragSource, setDropTarget, setDropTargetSide]);
42
-
43
- // Remove HTML5 DnD preview
44
- useEffect(() => {
45
- dragPreviewRef(getEmptyImage(), {
46
- captureDraggingState: false
47
- });
48
- }, [dragPreviewRef, id, isPinned, columnIndex]); // id, isPinned, and columnIndex included intentionally
49
-
50
- const dropTargetSideRef = useLatest(dropTargetSide);
51
- const [{
52
- isOver
53
- }, dropRef] = useDrop(() => ({
54
- accept: tableId,
55
- hover: (item, monitor) => {
56
- var _monitor$getClientOff, _columnHeaderRef$curr;
57
- const {
58
- id: dragSourceId,
59
- columnIndex: dragSourceColumnIndex,
60
- isPinned: dragSourceIsPinned
61
- } = item;
62
- setDropTarget(id);
63
- if (id === dragSourceId) {
64
- setDropTargetSide(undefined);
65
- return;
66
- }
67
-
68
- // Calculate which column line is closest
69
- const dropX = (_monitor$getClientOff = monitor.getClientOffset()) === null || _monitor$getClientOff === void 0 ? void 0 : _monitor$getClientOff.x;
70
- const {
71
- x,
72
- width
73
- } = (_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 ? void 0 : _columnHeaderRef$curr.getBoundingClientRect();
74
- const diffLeft = Math.abs(dropX - x) || 0;
75
- const diffRight = Math.abs(dropX - (x + width)) || 0;
76
- if (diffLeft < diffRight) {
77
- // hover over left side
78
- if (columnIndex - dragSourceColumnIndex === 1 && isPinned === dragSourceIsPinned) {
79
- setDropTargetSide(undefined);
80
- } else {
81
- setDropTargetSide('left');
82
- }
83
- } else if (diffLeft >= diffRight) {
84
- // hover over right side
85
- if (dragSourceColumnIndex - columnIndex === 1 && isPinned === dragSourceIsPinned) {
86
- setDropTargetSide(undefined);
87
- } else {
88
- setDropTargetSide('right');
89
- }
90
- }
91
- },
92
- drop: item => {
93
- const {
94
- id: dragSourceId,
95
- columnIndex: dragSourceColumnIndex,
96
- isPinned: dragSourceIsPinned
97
- } = item;
98
- if (id === dragSourceId || dropTargetSideRef.current === undefined) {
99
- return;
100
- }
101
- if (isPinned && !dragSourceIsPinned) {
102
- // Dragging from an unpinned column onto a pinned column
103
- setPinnedColumns(pinnedColumns => {
104
- const newPinnedColumns = [...pinnedColumns];
105
- const newIndex = dropTargetSideRef.current === 'right' ? columnIndex + 1 : columnIndex;
106
- newPinnedColumns.splice(newIndex, 0, dragSourceId);
107
- return newPinnedColumns;
108
- });
109
- } else if (!isPinned && dragSourceIsPinned) {
110
- // Dragging from a pinned column onto an upinned column
111
- setPinnedColumns(pinnedColumns => {
112
- const newPinnedColumns = [...pinnedColumns];
113
- newPinnedColumns.splice(dragSourceColumnIndex, 1);
114
- return newPinnedColumns;
115
- });
116
- setColumnOrder(currentColumnOrder => {
117
- const newColumnOrder = [...currentColumnOrder];
118
- const dragSourceColumnOrderIndex = newColumnOrder.indexOf(dragSourceId);
119
- newColumnOrder.splice(dragSourceColumnOrderIndex, 1);
120
- const columnOrderIndex = newColumnOrder.indexOf(id);
121
- const newIndex = dropTargetSideRef.current === 'right' ? columnOrderIndex + 1 : columnOrderIndex;
122
- newColumnOrder.splice(newIndex, 0, dragSourceId);
123
- return newColumnOrder;
124
- });
125
- } else if (isPinned) {
126
- // Dragging from a pinned column onto a pinned column
127
- setPinnedColumns(pinnedColumns => {
128
- const newPinnedColumns = [...pinnedColumns];
129
- newPinnedColumns.splice(dragSourceColumnIndex, 1);
130
- const newIndex = dropTargetSideRef.current === 'right' ? columnIndex + 1 : columnIndex;
131
- newPinnedColumns.splice(newIndex, 0, dragSourceId);
132
- return newPinnedColumns;
133
- });
134
- } else {
135
- // Dragging from an upinned column onto an upinned column
136
- setColumnOrder(currentColumnOrder => {
137
- const newColumnOrder = [...currentColumnOrder];
138
- const dropIndex = newColumnOrder.indexOf(dragSourceId);
139
- newColumnOrder.splice(dropIndex, 1);
140
- const columnOrderIndex = newColumnOrder.indexOf(id);
141
- const newIndex = dropTargetSideRef.current === 'right' ? columnOrderIndex + 1 : columnOrderIndex;
142
- newColumnOrder.splice(newIndex, 0, dragSourceId);
143
- return newColumnOrder;
144
- });
145
- }
146
- },
147
- canDrop: () => isEnabled,
148
- collect: monitor => ({
149
- isOver: monitor.isOver()
150
- })
151
- }), [id, tableId, isPinned, columnIndex, isEnabled, setDropTarget, dropTargetSideRef, setDropTargetSide]);
28
+ });
29
+ const {
30
+ isOver,
31
+ setNodeRef: dropRef
32
+ } = useDroppable({
33
+ id,
34
+ disabled: !isEnabled,
35
+ data: {
36
+ type: tableId,
37
+ isPinned,
38
+ columnIndex,
39
+ id,
40
+ columnHeaderRef
41
+ }
42
+ });
152
43
 
153
44
  // Clear dropTarget when header is no longer being hovered
154
45
  useEffect(() => {
@@ -164,7 +55,8 @@ const useDragAndDrop = _ref => {
164
55
  }, [id, isOver, setDropTarget, setDropTargetSide]);
165
56
  return {
166
57
  dragRef,
167
- dropRef
58
+ dropRef,
59
+ listeners
168
60
  };
169
61
  };
170
62