@qualtrics/ui-react 2.49.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.
- package/dist/__shared/cjs/{index-96632417.js → index-65fe6015.js} +71 -77
- package/dist/components/Button/Button2.js +9 -13
- package/dist/components/ColorPicker/Palette.js +33 -39
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/ConfigPane/ConfigPane.js +5 -6
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/DropdownButton.js +1 -1
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/Tabs/TabContextProvider.js +0 -2
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_Tabs/Tabs.js +2 -2
- package/dist/icons/index.d.ts +0 -2
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -1
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +15 -6
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +32 -0
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +9 -11
- package/dist/next/AdvancedTable/AdvancedTableRow.js +6 -1
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +12 -3
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +30 -138
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +191 -0
- package/dist/next/Drawer/Drawer.js +1 -1
- package/dist/next/Menu/Hooks/usePaneSearch.js +12 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -0
- package/dist/next/index.d.ts +14 -12
- package/dist/next/index.js +263 -126
- package/dist/utils/Text/Text.js +1 -1
- package/dist/utils/Translation/containsComponentOrElement.js +6 -3
- package/dist/utils/Translation/useTranslation.js +5 -1
- package/icons/package.json +9 -9
- package/next/package.json +9 -9
- package/package.json +40 -40
package/dist/next/index.js
CHANGED
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _extends = require('@babel/runtime-corejs3/helpers/extends');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classNames = require('classnames');
|
|
8
|
-
var reactDnd = require('react-dnd');
|
|
9
|
-
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
10
8
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
11
|
-
var index = require('../__shared/cjs/index-
|
|
9
|
+
var index = require('../__shared/cjs/index-65fe6015.js');
|
|
12
10
|
var icons_index = require('../__shared/cjs/index-43c0270d.js');
|
|
11
|
+
var core = require('@dnd-kit/core');
|
|
12
|
+
var modifiers = require('@dnd-kit/modifiers');
|
|
13
13
|
var ReactDOM = require('react-dom');
|
|
14
14
|
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
15
15
|
var resizeObserver = require('@juggle/resize-observer');
|
|
@@ -32,9 +32,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
32
32
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
33
33
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
34
34
|
|
|
35
|
-
var css_248z$h = "._-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;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{
|
|
36
|
-
var styles$b = {"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","rowActionMenuPane":"_NlBzi"};
|
|
37
|
-
var stylesheet$h="._-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;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{
|
|
35
|
+
var css_248z$h = "._-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}";
|
|
36
|
+
var styles$b = {"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"};
|
|
37
|
+
var stylesheet$h="._-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}";
|
|
38
38
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$h);}
|
|
39
39
|
|
|
40
40
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -157,89 +157,104 @@ const useDragAndDrop = _ref => {
|
|
|
157
157
|
columnIndex,
|
|
158
158
|
columnHeaderRef,
|
|
159
159
|
isPinned,
|
|
160
|
-
setPinnedColumns,
|
|
161
|
-
setColumnOrder,
|
|
162
|
-
setDragSource,
|
|
163
160
|
setDropTarget,
|
|
164
|
-
dropTargetSide,
|
|
165
161
|
setDropTargetSide
|
|
166
162
|
} = _ref;
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
setDropTarget('');
|
|
180
|
-
setDropTargetSide(undefined);
|
|
181
|
-
},
|
|
182
|
-
canDrag: () => isEnabled,
|
|
183
|
-
options: {
|
|
184
|
-
dropEffect: 'move'
|
|
163
|
+
const {
|
|
164
|
+
setNodeRef: dragRef,
|
|
165
|
+
listeners
|
|
166
|
+
} = core.useDraggable({
|
|
167
|
+
id,
|
|
168
|
+
disabled: !isEnabled,
|
|
169
|
+
data: {
|
|
170
|
+
type: tableId,
|
|
171
|
+
isPinned,
|
|
172
|
+
columnIndex,
|
|
173
|
+
id,
|
|
174
|
+
columnHeaderRef
|
|
185
175
|
}
|
|
186
|
-
})
|
|
176
|
+
});
|
|
177
|
+
const {
|
|
178
|
+
isOver,
|
|
179
|
+
setNodeRef: dropRef
|
|
180
|
+
} = core.useDroppable({
|
|
181
|
+
id,
|
|
182
|
+
disabled: !isEnabled,
|
|
183
|
+
data: {
|
|
184
|
+
type: tableId,
|
|
185
|
+
isPinned,
|
|
186
|
+
columnIndex,
|
|
187
|
+
id,
|
|
188
|
+
columnHeaderRef
|
|
189
|
+
}
|
|
190
|
+
});
|
|
187
191
|
|
|
188
|
-
//
|
|
192
|
+
// Clear dropTarget when header is no longer being hovered
|
|
189
193
|
React.useEffect(() => {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
+
if (!isOver) {
|
|
195
|
+
setDropTarget(currentDropTarget => {
|
|
196
|
+
if (currentDropTarget === id) {
|
|
197
|
+
setDropTargetSide(undefined);
|
|
198
|
+
return '';
|
|
199
|
+
}
|
|
200
|
+
return currentDropTarget;
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}, [id, isOver, setDropTarget, setDropTargetSide]);
|
|
204
|
+
return {
|
|
205
|
+
dragRef,
|
|
206
|
+
dropRef,
|
|
207
|
+
listeners
|
|
208
|
+
};
|
|
209
|
+
};
|
|
194
210
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
hover: (item, monitor) => {
|
|
201
|
-
var _monitor$getClientOff, _columnHeaderRef$curr;
|
|
202
|
-
const {
|
|
203
|
-
id: dragSourceId,
|
|
204
|
-
columnIndex: dragSourceColumnIndex,
|
|
205
|
-
isPinned: dragSourceIsPinned
|
|
206
|
-
} = item;
|
|
207
|
-
setDropTarget(id);
|
|
208
|
-
if (id === dragSourceId) {
|
|
209
|
-
setDropTargetSide(undefined);
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
211
|
+
function useComputedWidth() {
|
|
212
|
+
let widthBuffer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
213
|
+
let defaultWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
214
|
+
return React.useMemo(() => typeof defaultWidth === 'number' ? "".concat(defaultWidth + widthBuffer, "px") : "calc(".concat(widthBuffer, "px + ").concat(defaultWidth, ")"), [widthBuffer, defaultWidth]);
|
|
215
|
+
}
|
|
212
216
|
|
|
213
|
-
|
|
214
|
-
|
|
217
|
+
const useDragAndDropConfig = (setDragSource, setDropTarget, setDropTargetSide, setPinnedColumns, setColumnOrder, setIsDragging, dropTargetSide) => {
|
|
218
|
+
const dropTargetSideRef = index.useLatest(dropTargetSide);
|
|
219
|
+
const [initSourcePos, setInitSourcePos] = React.useState(0);
|
|
220
|
+
const dragAndDropMonitorConfig = {
|
|
221
|
+
onDragStart: event => {
|
|
222
|
+
var _event$active$data$cu, _event$active;
|
|
223
|
+
setDragSource((_event$active$data$cu = event.active.data.current) === null || _event$active$data$cu === void 0 ? void 0 : _event$active$data$cu.id);
|
|
224
|
+
setIsDragging(true);
|
|
215
225
|
const {
|
|
216
|
-
x
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
} else if (diffLeft >= diffRight) {
|
|
229
|
-
// hover over right side
|
|
230
|
-
if (dragSourceColumnIndex - columnIndex === 1 && isPinned === dragSourceIsPinned) {
|
|
231
|
-
setDropTargetSide(undefined);
|
|
232
|
-
} else {
|
|
233
|
-
setDropTargetSide('right');
|
|
234
|
-
}
|
|
235
|
-
}
|
|
226
|
+
x
|
|
227
|
+
} = ((_event$active = event.active) === null || _event$active === void 0 || (_event$active = _event$active.data.current) === null || _event$active === void 0 || (_event$active = _event$active.columnHeaderRef) === null || _event$active === void 0 || (_event$active = _event$active.current) === null || _event$active === void 0 ? void 0 : _event$active.getBoundingClientRect()) || {
|
|
228
|
+
x: 0
|
|
229
|
+
};
|
|
230
|
+
setInitSourcePos(x);
|
|
231
|
+
},
|
|
232
|
+
onDragCancel: () => {
|
|
233
|
+
setDragSource('');
|
|
234
|
+
setDropTarget('');
|
|
235
|
+
setDropTargetSide(undefined);
|
|
236
|
+
setIsDragging(false);
|
|
236
237
|
},
|
|
237
|
-
|
|
238
|
+
onDragEnd: event => {
|
|
239
|
+
setDragSource('');
|
|
240
|
+
setDropTarget('');
|
|
241
|
+
setDropTargetSide(undefined);
|
|
242
|
+
setIsDragging(false);
|
|
243
|
+
const {
|
|
244
|
+
active,
|
|
245
|
+
over
|
|
246
|
+
} = event;
|
|
247
|
+
if (!over) return;
|
|
238
248
|
const {
|
|
239
249
|
id: dragSourceId,
|
|
240
250
|
columnIndex: dragSourceColumnIndex,
|
|
241
251
|
isPinned: dragSourceIsPinned
|
|
242
|
-
} =
|
|
252
|
+
} = active.data.current;
|
|
253
|
+
const {
|
|
254
|
+
id,
|
|
255
|
+
columnIndex,
|
|
256
|
+
isPinned
|
|
257
|
+
} = over.data.current;
|
|
243
258
|
if (id === dragSourceId || dropTargetSideRef.current === undefined) {
|
|
244
259
|
return;
|
|
245
260
|
}
|
|
@@ -289,35 +304,126 @@ const useDragAndDrop = _ref => {
|
|
|
289
304
|
});
|
|
290
305
|
}
|
|
291
306
|
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
307
|
+
onDragMove: event => {
|
|
308
|
+
var _columnHeaderRef$curr, _DragSourceRef$curren;
|
|
309
|
+
const {
|
|
310
|
+
active,
|
|
311
|
+
over,
|
|
312
|
+
activatorEvent,
|
|
313
|
+
delta
|
|
314
|
+
} = event;
|
|
315
|
+
if (!over) return;
|
|
316
|
+
const {
|
|
317
|
+
id: dragSourceId,
|
|
318
|
+
columnIndex: dragSourceColumnIndex,
|
|
319
|
+
isPinned: dragSourceIsPinned,
|
|
320
|
+
columnHeaderRef: DragSourceRef
|
|
321
|
+
} = active.data.current;
|
|
322
|
+
const {
|
|
323
|
+
id,
|
|
324
|
+
columnIndex,
|
|
325
|
+
isPinned,
|
|
326
|
+
columnHeaderRef
|
|
327
|
+
} = over.data.current;
|
|
328
|
+
setDropTarget(id);
|
|
329
|
+
if (id === dragSourceId) {
|
|
330
|
+
setDropTargetSide(undefined);
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
297
333
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
334
|
+
// Calculate which column line is closest
|
|
335
|
+
const {
|
|
336
|
+
x: targetX,
|
|
337
|
+
width: targetWidth
|
|
338
|
+
} = (columnHeaderRef === null || columnHeaderRef === void 0 || (_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 ? void 0 : _columnHeaderRef$curr.getBoundingClientRect()) || {
|
|
339
|
+
x: 0,
|
|
340
|
+
width: 0
|
|
341
|
+
};
|
|
342
|
+
const {
|
|
343
|
+
x: sourceX
|
|
344
|
+
} = (DragSourceRef === null || DragSourceRef === void 0 || (_DragSourceRef$curren = DragSourceRef.current) === null || _DragSourceRef$curren === void 0 ? void 0 : _DragSourceRef$curren.getBoundingClientRect()) || {
|
|
345
|
+
x: 0
|
|
346
|
+
};
|
|
347
|
+
|
|
348
|
+
// Getting scroll position based on initial and current position
|
|
349
|
+
const scrollOffset = sourceX - initSourcePos;
|
|
350
|
+
const {
|
|
351
|
+
clientX: startPosition
|
|
352
|
+
} = activatorEvent;
|
|
353
|
+
const dropX = startPosition + delta.x;
|
|
354
|
+
const diffLeft = Math.abs(dropX - targetX + scrollOffset) || 0;
|
|
355
|
+
const diffRight = Math.abs(dropX - (targetX + targetWidth) + scrollOffset) || 0;
|
|
356
|
+
if (diffLeft < diffRight) {
|
|
357
|
+
// hover over left side
|
|
358
|
+
if (columnIndex - dragSourceColumnIndex === 1 && isPinned === dragSourceIsPinned) {
|
|
303
359
|
setDropTargetSide(undefined);
|
|
304
|
-
|
|
360
|
+
} else {
|
|
361
|
+
setDropTargetSide('left');
|
|
305
362
|
}
|
|
306
|
-
|
|
307
|
-
|
|
363
|
+
} else if (diffLeft >= diffRight) {
|
|
364
|
+
// hover over right side
|
|
365
|
+
if (dragSourceColumnIndex - columnIndex === 1 && isPinned === dragSourceIsPinned) {
|
|
366
|
+
setDropTargetSide(undefined);
|
|
367
|
+
} else {
|
|
368
|
+
setDropTargetSide('right');
|
|
369
|
+
}
|
|
370
|
+
}
|
|
308
371
|
}
|
|
309
|
-
}
|
|
372
|
+
};
|
|
373
|
+
const sensors = core.useSensors(core.useSensor(core.MouseSensor, {
|
|
374
|
+
activationConstraint: {
|
|
375
|
+
distance: 1
|
|
376
|
+
}
|
|
377
|
+
}));
|
|
310
378
|
return {
|
|
311
|
-
|
|
312
|
-
|
|
379
|
+
...dragAndDropMonitorConfig,
|
|
380
|
+
sensors,
|
|
381
|
+
collisionDetection: core.pointerWithin,
|
|
382
|
+
modifiers: [modifiers.restrictToWindowEdges],
|
|
383
|
+
measuring: {
|
|
384
|
+
droppable: {
|
|
385
|
+
measure: element => core.getClientRect(element, {
|
|
386
|
+
ignoreTransform: false
|
|
387
|
+
}),
|
|
388
|
+
strategy: core.MeasuringStrategy.WhileDragging,
|
|
389
|
+
frequency: core.MeasuringFrequency.Optimized
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
accessibility: {
|
|
393
|
+
screenReaderInstructions: {
|
|
394
|
+
draggable: 'draggable'
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
autoscroll: false
|
|
313
398
|
};
|
|
314
399
|
};
|
|
315
400
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
401
|
+
const defaultAdvancedTableDnDContext = {
|
|
402
|
+
isDragging: false,
|
|
403
|
+
setIsDragging: () => {}
|
|
404
|
+
};
|
|
405
|
+
const AdvancedTableDnDContext = /*#__PURE__*/React.createContext(defaultAdvancedTableDnDContext);
|
|
406
|
+
const AdvancedTableDnDContextProvider = _ref => {
|
|
407
|
+
let {
|
|
408
|
+
children,
|
|
409
|
+
setColumnOrder,
|
|
410
|
+
setDropTargetSide,
|
|
411
|
+
setPinnedColumns,
|
|
412
|
+
setDropTarget,
|
|
413
|
+
setDragSource,
|
|
414
|
+
dropTargetSide
|
|
415
|
+
} = _ref;
|
|
416
|
+
const [isDragging, setIsDragging] = React.useState(false);
|
|
417
|
+
const context = React.useMemo(() => ({
|
|
418
|
+
isDragging,
|
|
419
|
+
setIsDragging
|
|
420
|
+
}), [isDragging]);
|
|
421
|
+
const dndConfig = useDragAndDropConfig(setDragSource, setDropTarget, setDropTargetSide, setPinnedColumns, setColumnOrder, setIsDragging, dropTargetSide);
|
|
422
|
+
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableDnDContext.Provider, {
|
|
423
|
+
value: context
|
|
424
|
+
}, /*#__PURE__*/React__default["default"].createElement(core.DndContext, dndConfig, children));
|
|
425
|
+
};
|
|
426
|
+
const useAdvancedTableDnDContext = () => React.useContext(AdvancedTableDnDContext);
|
|
321
427
|
|
|
322
428
|
const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
323
429
|
let {
|
|
@@ -358,6 +464,9 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
358
464
|
const [ellipsisShown, setEllipsisShown] = React.useState();
|
|
359
465
|
const columnHeaderRef = React.useRef(null);
|
|
360
466
|
const labelContainerRef = React.useRef(null);
|
|
467
|
+
const {
|
|
468
|
+
isDragging: isUserDragging
|
|
469
|
+
} = useAdvancedTableDnDContext();
|
|
361
470
|
const isSortable = Boolean(sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length);
|
|
362
471
|
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');
|
|
363
472
|
const selectedSortIndex = isSorted ? selectedSortOption.index : -1;
|
|
@@ -396,7 +505,8 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
396
505
|
const hasDraggableColumns = !disableUserPinnableColumns && !disableUserReorderableColumns && !isRowActionMenuColumn;
|
|
397
506
|
const {
|
|
398
507
|
dragRef,
|
|
399
|
-
dropRef
|
|
508
|
+
dropRef,
|
|
509
|
+
listeners
|
|
400
510
|
} = useDragAndDrop({
|
|
401
511
|
isEnabled: hasDraggableColumns,
|
|
402
512
|
id,
|
|
@@ -549,7 +659,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
549
659
|
return /*#__PURE__*/React__default["default"].createElement(index.Tooltip, {
|
|
550
660
|
content: label,
|
|
551
661
|
disabled: !ellipsisShown
|
|
552
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
662
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
|
|
553
663
|
role: "columnheader",
|
|
554
664
|
"data-testid": dataTestId,
|
|
555
665
|
"aria-rowindex": 1,
|
|
@@ -573,13 +683,15 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
573
683
|
[styles$b.isSorted]: isSorted,
|
|
574
684
|
[styles$b.showFocusRing]: isHiddenMenuOpen,
|
|
575
685
|
[styles$b.isDragging]: isDragging,
|
|
576
|
-
[styles$b.fillRemainingSpace]: width === undefined
|
|
686
|
+
[styles$b.fillRemainingSpace]: width === undefined,
|
|
687
|
+
[styles$b.isColumnDragging]: isUserDragging
|
|
577
688
|
}),
|
|
578
689
|
style: {
|
|
579
690
|
width: computedWidth
|
|
580
691
|
},
|
|
581
|
-
ref: index.mergeRefs(columnHeaderRef, dragRef, dropRef, ref)
|
|
582
|
-
|
|
692
|
+
ref: index.mergeRefs(columnHeaderRef, dragRef, dropRef, ref),
|
|
693
|
+
draggable: hasDraggableColumns
|
|
694
|
+
}, listeners), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
583
695
|
role: isSortable ? 'button' : undefined,
|
|
584
696
|
className: classNames__default["default"](styles$b.advancedTableColumnHeaderLabel, {
|
|
585
697
|
[styles$b.leftAligned]: alignment === 'left',
|
|
@@ -600,7 +712,9 @@ const AdvancedTableColumnHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
600
712
|
anchor: /*#__PURE__*/React__default["default"].createElement(index.IconButton, {
|
|
601
713
|
tabIndex: -1,
|
|
602
714
|
"aria-hidden": "true",
|
|
603
|
-
className: styles$b.advancedTableColumnHeaderMenu
|
|
715
|
+
className: classNames__default["default"](styles$b.advancedTableColumnHeaderMenu, {
|
|
716
|
+
[styles$b.isColumnDragging]: isUserDragging
|
|
717
|
+
})
|
|
604
718
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, null))
|
|
605
719
|
})), /*#__PURE__*/React__default["default"].createElement(AdvancedTableColumnHeaderMenu, _extends__default["default"]({}, commonMenuProps, {
|
|
606
720
|
isOpen: isHiddenMenuOpen,
|
|
@@ -764,6 +878,9 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
764
878
|
children,
|
|
765
879
|
...rest
|
|
766
880
|
} = _ref;
|
|
881
|
+
const {
|
|
882
|
+
isDragging
|
|
883
|
+
} = useAdvancedTableDnDContext();
|
|
767
884
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
768
885
|
role: "row",
|
|
769
886
|
"data-testid": dataTestId,
|
|
@@ -775,7 +892,8 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
775
892
|
className: classNames__default["default"](styles$b.advancedTableRow, {
|
|
776
893
|
[styles$b.hasRowAction]: hasOnRowSelect,
|
|
777
894
|
[styles$b.isSelected]: hasOnRowSelect && isSelected,
|
|
778
|
-
[styles$b.advancedTableRowRestrictedWidth]: restrictedWidth
|
|
895
|
+
[styles$b.advancedTableRowRestrictedWidth]: restrictedWidth,
|
|
896
|
+
[styles$b.isColumnDragging]: isDragging
|
|
779
897
|
}),
|
|
780
898
|
ref: isFocusable ? ref : undefined
|
|
781
899
|
}), children);
|
|
@@ -817,6 +935,9 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
817
935
|
const {
|
|
818
936
|
translate
|
|
819
937
|
} = index.useTranslation();
|
|
938
|
+
const {
|
|
939
|
+
isDragging
|
|
940
|
+
} = useAdvancedTableDnDContext();
|
|
820
941
|
const label = React.useMemo(() => {
|
|
821
942
|
const labels = {
|
|
822
943
|
true: translate('checked'),
|
|
@@ -835,7 +956,8 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
835
956
|
"data-testid": dataTestId,
|
|
836
957
|
onClick: onClick,
|
|
837
958
|
className: classNames__default["default"](styles$b.advancedTableCheckbox, className, {
|
|
838
|
-
[styles$b.header]: variant === 'header'
|
|
959
|
+
[styles$b.header]: variant === 'header',
|
|
960
|
+
[styles$b.isColumnDragging]: isDragging
|
|
839
961
|
}),
|
|
840
962
|
role: "presentation"
|
|
841
963
|
}, /*#__PURE__*/React__default["default"].createElement(index.Check, {
|
|
@@ -866,16 +988,14 @@ const AdvancedTableDragPreview = _ref => {
|
|
|
866
988
|
columnHeaderRefs
|
|
867
989
|
} = _ref;
|
|
868
990
|
const {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
const
|
|
876
|
-
const
|
|
877
|
-
const top = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.y) || 0;
|
|
878
|
-
const left = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.x) || 0;
|
|
991
|
+
active
|
|
992
|
+
} = core.useDndContext();
|
|
993
|
+
const item = active === null || active === void 0 ? void 0 : active.data.current;
|
|
994
|
+
const position = active === null || active === void 0 ? void 0 : active.rect.current.translated;
|
|
995
|
+
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;
|
|
996
|
+
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;
|
|
997
|
+
const top = ((position === null || position === void 0 ? void 0 : position.top) || 0) + window.scrollY;
|
|
998
|
+
const left = ((position === null || position === void 0 ? void 0 : position.left) || 0) + window.scrollX;
|
|
879
999
|
return /*#__PURE__*/React__default["default"].createElement(index.Portal, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
880
1000
|
className: styles$b.dragPreview,
|
|
881
1001
|
style: {
|
|
@@ -927,17 +1047,24 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
927
1047
|
const {
|
|
928
1048
|
translate
|
|
929
1049
|
} = index.useTranslation();
|
|
1050
|
+
const {
|
|
1051
|
+
isDragging
|
|
1052
|
+
} = useAdvancedTableDnDContext();
|
|
930
1053
|
const state = isRowExpanded ? 'expanded' : 'collapsed';
|
|
931
1054
|
const labels = {
|
|
932
1055
|
expanded: translate('advancedTable.collapseRow'),
|
|
933
1056
|
collapsed: translate('advancedTable.expandRow')
|
|
934
1057
|
};
|
|
1058
|
+
const buttonClasses = React.useMemo(() => classNames__default["default"](index.iconButtonStyles.button, {
|
|
1059
|
+
[index.iconButtonStyles.disabled]: isDragging
|
|
1060
|
+
}), [isDragging]);
|
|
935
1061
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
936
1062
|
onClick: onClick
|
|
937
1063
|
}, /*#__PURE__*/React__default["default"].createElement(index.Tooltip, {
|
|
938
|
-
content: labels[state]
|
|
1064
|
+
content: labels[state],
|
|
1065
|
+
disabled: isDragging
|
|
939
1066
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
940
|
-
className:
|
|
1067
|
+
className: buttonClasses,
|
|
941
1068
|
"data-testid": dataTestId,
|
|
942
1069
|
role: "presentation"
|
|
943
1070
|
}, state === 'expanded' ? /*#__PURE__*/React__default["default"].createElement(icons_index.CaretDownIcon, {
|
|
@@ -1526,9 +1653,13 @@ const AdvancedTable = _ref => {
|
|
|
1526
1653
|
} = _ref7;
|
|
1527
1654
|
return ((_columnWidths$id2 = columnWidths[id]) !== null && _columnWidths$id2 !== void 0 ? _columnWidths$id2 : width) !== undefined;
|
|
1528
1655
|
});
|
|
1529
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
1530
|
-
|
|
1531
|
-
|
|
1656
|
+
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableDnDContextProvider, {
|
|
1657
|
+
setDropTargetSide: setDropTargetSide,
|
|
1658
|
+
setColumnOrder: setColumnOrder,
|
|
1659
|
+
setDragSource: setDragSource,
|
|
1660
|
+
setDropTarget: setDropTarget,
|
|
1661
|
+
setPinnedColumns: setPinnedColumns,
|
|
1662
|
+
dropTargetSide: dropTargetSide
|
|
1532
1663
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1533
1664
|
className: styles$b.advancedTable,
|
|
1534
1665
|
ref: tableRef
|
|
@@ -3169,7 +3300,7 @@ const Drawer = _ref => {
|
|
|
3169
3300
|
const containerNode = (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body;
|
|
3170
3301
|
|
|
3171
3302
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
3172
|
-
return domReady ? /*#__PURE__*/ReactDOM.createPortal(
|
|
3303
|
+
return domReady ? /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React__default["default"].createElement("aside", {
|
|
3173
3304
|
id: drawerId,
|
|
3174
3305
|
className: classNames__default["default"](styles$7.drawer, {
|
|
3175
3306
|
[styles$7.hidden]: isHidden,
|
|
@@ -3938,7 +4069,6 @@ const useFocusVirtualBoundary = function (visibleChildren) {
|
|
|
3938
4069
|
// creates a searchBarConfig, which maps to an instance of `MenuSearch`
|
|
3939
4070
|
// returns values that are necessary for use within pane
|
|
3940
4071
|
function usePaneSearch(_ref) {
|
|
3941
|
-
var _searchRef$current$qu, _searchRef$current;
|
|
3942
4072
|
let {
|
|
3943
4073
|
isSearchable,
|
|
3944
4074
|
externalSearchValue,
|
|
@@ -3974,8 +4104,13 @@ function usePaneSearch(_ref) {
|
|
|
3974
4104
|
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
|
|
3975
4105
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
3976
4106
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
3977
|
-
const
|
|
3978
|
-
const
|
|
4107
|
+
const [searchInput, setSearchInput] = React.useState(null);
|
|
4108
|
+
const [searchElement, setSearchElement] = React.useState(null);
|
|
4109
|
+
const searchRef = React.useCallback(node => {
|
|
4110
|
+
var _node$querySelector;
|
|
4111
|
+
setSearchElement(node);
|
|
4112
|
+
setSearchInput((_node$querySelector = node === null || node === void 0 ? void 0 : node.querySelector('input')) !== null && _node$querySelector !== void 0 ? _node$querySelector : null);
|
|
4113
|
+
}, []);
|
|
3979
4114
|
const getFirstVisibleItem = () => {
|
|
3980
4115
|
var _backButtonRef$curren, _items$find;
|
|
3981
4116
|
return (_backButtonRef$curren = backButtonRef === null || backButtonRef === void 0 ? void 0 : backButtonRef.current) !== null && _backButtonRef$curren !== void 0 ? _backButtonRef$curren : (_items$find = items.find(item => item.element.current)) === null || _items$find === void 0 ? void 0 : _items$find.element.current;
|
|
@@ -4033,8 +4168,8 @@ function usePaneSearch(_ref) {
|
|
|
4033
4168
|
setSearchBarConfigs
|
|
4034
4169
|
} = useMenuContext();
|
|
4035
4170
|
const onInteractOutside = React.useCallback(e => searchBarConfigs.some(config => {
|
|
4036
|
-
var _config$
|
|
4037
|
-
return (_config$
|
|
4171
|
+
var _config$searchElement;
|
|
4172
|
+
return (_config$searchElement = config.searchElement) === null || _config$searchElement === void 0 ? void 0 : _config$searchElement.contains(e.target);
|
|
4038
4173
|
}) && e.preventDefault(), [searchBarConfigs]);
|
|
4039
4174
|
React.useEffect(() => {
|
|
4040
4175
|
if (!isSearchable) {
|
|
@@ -4050,6 +4185,7 @@ function usePaneSearch(_ref) {
|
|
|
4050
4185
|
dataTestId: menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_SEARCH : index.DATA_TESTID_SUFFIXES.MENU_SEARCH),
|
|
4051
4186
|
setSearchValue,
|
|
4052
4187
|
ref: searchRef,
|
|
4188
|
+
searchElement,
|
|
4053
4189
|
id,
|
|
4054
4190
|
searchPlaceholder
|
|
4055
4191
|
};
|
|
@@ -4061,7 +4197,7 @@ function usePaneSearch(_ref) {
|
|
|
4061
4197
|
}
|
|
4062
4198
|
return configsClone;
|
|
4063
4199
|
});
|
|
4064
|
-
}, [isSearchable, searchPlaceholder, setSearchBarConfigs, internalSearchValue, animatedLeft, animatedRight, menuParentDataTestId, setSearchValue, searchRef, id, withinSelect]);
|
|
4200
|
+
}, [isSearchable, searchPlaceholder, setSearchBarConfigs, internalSearchValue, animatedLeft, animatedRight, menuParentDataTestId, setSearchValue, searchRef, searchElement, id, withinSelect]);
|
|
4065
4201
|
React.useEffect(() => () => setSearchBarConfigs(configs => {
|
|
4066
4202
|
const configIndex = configs.findIndex(config => config.id === id);
|
|
4067
4203
|
if (configIndex === -1) {
|
|
@@ -5339,6 +5475,7 @@ const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5339
5475
|
const phoneNumber = libphonenumberJs.parsePhoneNumber(value, countryCode);
|
|
5340
5476
|
internationalNumber = phoneNumber.number;
|
|
5341
5477
|
isValidLength = phoneNumber.isPossible();
|
|
5478
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5342
5479
|
} catch (e) {
|
|
5343
5480
|
// `parsePhoneNumber` throws an error if the inputs are invalid.
|
|
5344
5481
|
}
|