@qualtrics/ui-react 2.23.0 → 2.23.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-10d6f3f3.js → index-cf860ea0.js} +232 -204
- package/dist/components/Checkbox/Check.js +1 -1
- package/dist/components/Checkbox/VisualCheckbox.js +2 -2
- package/dist/components/Divider/Divider.js +2 -1
- package/dist/components/IconButton/IconButton.js +3 -3
- package/dist/components/IconButton/IconButton2.js +2 -2
- package/dist/components/LogicEditor/ConditionSet.js +10 -11
- package/dist/components/LogicEditor/Controls.js +28 -14
- package/dist/components/LogicEditor/LogicEditor.js +51 -40
- package/dist/components/Tooltip/Tooltip.js +2 -1
- package/dist/index.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTable.js +43 -50
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +21 -27
- package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -3
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +10 -15
- package/dist/next/Menu/Menu2.js +2 -2
- package/dist/next/Menu/MenuPane.js +10 -2
- package/dist/next/Menu/SubMenu.js +10 -4
- package/dist/next/Menu/useCSSVariable.js +10 -0
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.js +100 -103
- package/dist/utils/Flyout/FlyoutHeader.js +1 -1
- package/package.json +1 -1
package/dist/next/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var classNames = require('classnames');
|
|
|
8
8
|
var reactDnd = require('react-dnd');
|
|
9
9
|
var reactDndHtml5Backend = require('react-dnd-html5-backend');
|
|
10
10
|
var useResizeObserver = require('@react-hook/resize-observer');
|
|
11
|
-
var index = require('../__shared/cjs/index-
|
|
11
|
+
var index = require('../__shared/cjs/index-cf860ea0.js');
|
|
12
12
|
var icons_index = require('../__shared/cjs/index-7f78e01b.js');
|
|
13
13
|
var libphonenumberJs = require('libphonenumber-js');
|
|
14
14
|
var InputMask = require('react-input-mask');
|
|
@@ -30,9 +30,9 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
|
30
30
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
|
|
31
31
|
var InputMask__default = /*#__PURE__*/_interopDefaultLegacy(InputMask);
|
|
32
32
|
|
|
33
|
-
var css_248z$a = "._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG: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}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH):not(.
|
|
34
|
-
var styles$a = {"advancedTable":"_5duf1","advancedTablePaginationContainer":"_UzR-x","advancedTablePagination":"_LT-mN","advancedTableColumnHeadersRowGroup":"_2Ov40","advancedTableColumnHeaders":"_kCowG","advancedTableRowChild":"_5COUG","pinnedContainer":"_ekMNL","advancedTableRowGroup":"_nqTUi","advancedTableRow":"_r9lFo","hasRowAction":"_K8Y7X","advancedTableExpandRowSpacer":"_I21qU","isSelected":"_S8WbH","advancedTableCheckbox":"_l6gx8","advancedTableCell":"_EbhSs","
|
|
35
|
-
var stylesheet$a="._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG: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}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH):not(.
|
|
33
|
+
var css_248z$a = "._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG: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}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH) ._5COUG,._r9lFo._K8Y7X:hover:not(._S8WbH) ._I21qU{background-color:#f9f9f9}._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._I21qU{background-color:#f3f3f3}._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._I21qU{background-color:#f3f3f3}._r9lFo:focus{outline:none}._r9lFo.focus-visible ._5COUG:after,._r9lFo:focus-visible ._5COUG: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}._r9lFo.focus-visible ._5COUG:last-of-type:after,._r9lFo:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG:first-of-type:after,._r9lFo:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG._ekMNL:after,._r9lFo:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:last-of-type:focus{outline:none}._r9lFo:last-of-type.focus-visible ._5COUG:after,._r9lFo:last-of-type:focus-visible ._5COUG: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}._r9lFo:last-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:last-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._r9lFo:last-of-type ._EbhSs:focus{outline:none}._r9lFo:last-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:last-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:last-of-type ._EbhSs.focus-visible:after,._r9lFo:last-of-type ._EbhSs: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}._r9lFo:first-of-type:focus{outline:none}._r9lFo:first-of-type.focus-visible ._5COUG:after,._r9lFo:first-of-type:focus-visible ._5COUG: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}._r9lFo:first-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:first-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:first-of-type ._EbhSs:focus{outline:none}._r9lFo:first-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:first-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:first-of-type ._EbhSs.focus-visible:after,._r9lFo:first-of-type ._EbhSs: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}._6VmUw{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}._6VmUw._wfWhs{flex-grow:1}._6VmUw._I4Xni{cursor:pointer}._6VmUw._I4Xni:hover:not(._Z8aOc){background-color:#f9f9f9;border-bottom-color:#6a6d70}._6VmUw._I4Xni:active:not(._Z8aOc){background-color:#f3f3f3}._6VmUw._5UYie:not(._Z8aOc){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._6VmUw._Z8aOc{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._6VmUw ._rMjzH{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._6VmUw ._rMjzH._wBMdO{left:-1px}._6VmUw ._rMjzH._TlgsJ{right:0}._6VmUw ._NYJK8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._6VmUw ._NYJK8._wBMdO{left:-2px}._6VmUw ._NYJK8._TlgsJ{right:-1px}._6VmUw:first-of-type ._wBMdO._rMjzH{left:0;width:2px;border-left:1px solid #fff}._6VmUw:first-of-type ._wBMdO._NYJK8{left:0}._6VmUw:last-of-type ._TlgsJ._rMjzH{right:0;width:2px;border-right:1px solid #fff}._6VmUw:last-of-type ._TlgsJ._NYJK8{right:0}._6VmUw ._uPvKK{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._6VmUw ._uPvKK ._4UED0{position:absolute;width:2px;right:2px;top:0;bottom:0}._6VmUw ._uPvKK ._4UED0._XX8Zl{background-color:#0a6ed1}._6VmUw ._uPvKK:hover ._4UED0:not(._XX8Zl){background-color:#d9d9d9}._6VmUw ._9DTLc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._6VmUw ._9DTLc._y4jT0{flex-direction:row-reverse;justify-content:flex-start}._6VmUw ._9DTLc._y4jT0 ._7eetG{margin:1px 7px 1px 1px}._6VmUw ._9DTLc ._nXcgY{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._6VmUw ._9DTLc ._7eetG{margin:1px 1px 1px 7px;flex-shrink:0}._6VmUw ._r9W7L{margin-left:6px;margin-right:4px;flex-shrink:0}._6VmUw ._Uy6sm{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._6VmUw:focus{outline:none}._6VmUw._iGaO6.focus-visible:after,._6VmUw._iGaO6:focus-visible:after,._6VmUw.focus-visible:after,._6VmUw: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}._1YC66{margin-right:6px}._ekMNL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ekMNL[focus-within]{z-index:30}._ekMNL:focus-within{z-index:30}._EbhSs{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}._EbhSs ._uGdnn{width:100%;padding:12px 12px 11px;overflow:hidden}._EbhSs._Z8aOc{background-color:#efefef;border-bottom-color:#dfdfe1}._EbhSs._wfWhs{flex-grow:1}._EbhSs:focus{outline:none}._EbhSs._iGaO6.focus-visible:after,._EbhSs._iGaO6:focus-visible:after,._EbhSs.focus-visible:after,._EbhSs: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}._I21qU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._I21qU._ZkjPS{border-bottom-color:#d9d9d9;background-color:#fff}._l6gx8{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}._l6gx8._ZkjPS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._l6gx8:focus input~span,._l6gx8:hover input~span{border-color:#0b6ed0}._l6gx8 ._u2avt{position:relative;display:inline-flex}._l6gx8 ._u2avt ._bwUnr{margin:0!important}._l6gx8 ._u2avt ._5mToY{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._lHnSZ{justify-content:flex-start}._-vAfW{justify-content:center;text-align:center}._y4jT0{justify-content:flex-end;text-align:right}._U6Svj{display:none}._e3-ti{opacity:0;height:0;width:0;overflow:hidden}._e3-ti,._mepKY{position:absolute}._mepKY{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._dEcGs{width:246px}";
|
|
34
|
+
var styles$a = {"advancedTable":"_5duf1","advancedTablePaginationContainer":"_UzR-x","advancedTablePagination":"_LT-mN","advancedTableColumnHeadersRowGroup":"_2Ov40","advancedTableColumnHeaders":"_kCowG","advancedTableRowChild":"_5COUG","pinnedContainer":"_ekMNL","advancedTableRowGroup":"_nqTUi","advancedTableRow":"_r9lFo","hasRowAction":"_K8Y7X","advancedTableExpandRowSpacer":"_I21qU","isSelected":"_S8WbH","advancedTableCheckbox":"_l6gx8","advancedTableCell":"_EbhSs","showFocusRing":"_iGaO6","advancedTableColumnHeader":"_6VmUw","fillRemainingSpace":"_wfWhs","isSortable":"_I4Xni","isDragging":"_Z8aOc","isSorted":"_5UYie","dropTargetLine":"_rMjzH","dropTargetLeft":"_wBMdO","dropTargetRight":"_TlgsJ","dropTargetMarker":"_NYJK8","resizeHandle":"_uPvKK","resizeLine":"_4UED0","isResizing":"_XX8Zl","advancedTableColumnHeaderLabel":"_9DTLc","rightAligned":"_y4jT0","sortIcon":"_7eetG","advancedTableColumnHeaderLabelText":"_nXcgY","advancedTableColumnHeaderMenu":"_r9W7L","advancedTableColumnHeaderMenuHiddenAnchor":"_Uy6sm","advancedTableColumnHeaderMenuItemIcon":"_1YC66","advancedTableCellContainer":"_uGdnn","header":"_ZkjPS","checkboxContainer":"_u2avt","checkbox":"_bwUnr","mixed":"_5mToY","leftAligned":"_lHnSZ","centerAligned":"_-vAfW","hiddenDescription":"_U6Svj","hiddenLiveRegion":"_e3-ti","dragPreview":"_mepKY","rowActionMenuPane":"_dEcGs"};
|
|
35
|
+
var stylesheet$a="._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG: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}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH) ._5COUG,._r9lFo._K8Y7X:hover:not(._S8WbH) ._I21qU{background-color:#f9f9f9}._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._I21qU{background-color:#f3f3f3}._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._I21qU{background-color:#f3f3f3}._r9lFo:focus{outline:none}._r9lFo.focus-visible ._5COUG:after,._r9lFo:focus-visible ._5COUG: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}._r9lFo.focus-visible ._5COUG:last-of-type:after,._r9lFo:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG:first-of-type:after,._r9lFo:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG._ekMNL:after,._r9lFo:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:last-of-type:focus{outline:none}._r9lFo:last-of-type.focus-visible ._5COUG:after,._r9lFo:last-of-type:focus-visible ._5COUG: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}._r9lFo:last-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:last-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._r9lFo:last-of-type ._EbhSs:focus{outline:none}._r9lFo:last-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:last-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:last-of-type ._EbhSs.focus-visible:after,._r9lFo:last-of-type ._EbhSs: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}._r9lFo:first-of-type:focus{outline:none}._r9lFo:first-of-type.focus-visible ._5COUG:after,._r9lFo:first-of-type:focus-visible ._5COUG: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}._r9lFo:first-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:first-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:first-of-type ._EbhSs:focus{outline:none}._r9lFo:first-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:first-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:first-of-type ._EbhSs.focus-visible:after,._r9lFo:first-of-type ._EbhSs: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}._6VmUw{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}._6VmUw._wfWhs{flex-grow:1}._6VmUw._I4Xni{cursor:pointer}._6VmUw._I4Xni:hover:not(._Z8aOc){background-color:#f9f9f9;border-bottom-color:#6a6d70}._6VmUw._I4Xni:active:not(._Z8aOc){background-color:#f3f3f3}._6VmUw._5UYie:not(._Z8aOc){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._6VmUw._Z8aOc{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._6VmUw ._rMjzH{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._6VmUw ._rMjzH._wBMdO{left:-1px}._6VmUw ._rMjzH._TlgsJ{right:0}._6VmUw ._NYJK8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._6VmUw ._NYJK8._wBMdO{left:-2px}._6VmUw ._NYJK8._TlgsJ{right:-1px}._6VmUw:first-of-type ._wBMdO._rMjzH{left:0;width:2px;border-left:1px solid #fff}._6VmUw:first-of-type ._wBMdO._NYJK8{left:0}._6VmUw:last-of-type ._TlgsJ._rMjzH{right:0;width:2px;border-right:1px solid #fff}._6VmUw:last-of-type ._TlgsJ._NYJK8{right:0}._6VmUw ._uPvKK{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._6VmUw ._uPvKK ._4UED0{position:absolute;width:2px;right:2px;top:0;bottom:0}._6VmUw ._uPvKK ._4UED0._XX8Zl{background-color:#0a6ed1}._6VmUw ._uPvKK:hover ._4UED0:not(._XX8Zl){background-color:#d9d9d9}._6VmUw ._9DTLc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._6VmUw ._9DTLc._y4jT0{flex-direction:row-reverse;justify-content:flex-start}._6VmUw ._9DTLc._y4jT0 ._7eetG{margin:1px 7px 1px 1px}._6VmUw ._9DTLc ._nXcgY{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._6VmUw ._9DTLc ._7eetG{margin:1px 1px 1px 7px;flex-shrink:0}._6VmUw ._r9W7L{margin-left:6px;margin-right:4px;flex-shrink:0}._6VmUw ._Uy6sm{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._6VmUw:focus{outline:none}._6VmUw._iGaO6.focus-visible:after,._6VmUw._iGaO6:focus-visible:after,._6VmUw.focus-visible:after,._6VmUw: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}._1YC66{margin-right:6px}._ekMNL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ekMNL[focus-within]{z-index:30}._ekMNL:focus-within{z-index:30}._EbhSs{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}._EbhSs ._uGdnn{width:100%;padding:12px 12px 11px;overflow:hidden}._EbhSs._Z8aOc{background-color:#efefef;border-bottom-color:#dfdfe1}._EbhSs._wfWhs{flex-grow:1}._EbhSs:focus{outline:none}._EbhSs._iGaO6.focus-visible:after,._EbhSs._iGaO6:focus-visible:after,._EbhSs.focus-visible:after,._EbhSs: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}._I21qU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._I21qU._ZkjPS{border-bottom-color:#d9d9d9;background-color:#fff}._l6gx8{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}._l6gx8._ZkjPS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._l6gx8:focus input~span,._l6gx8:hover input~span{border-color:#0b6ed0}._l6gx8 ._u2avt{position:relative;display:inline-flex}._l6gx8 ._u2avt ._bwUnr{margin:0!important}._l6gx8 ._u2avt ._5mToY{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._lHnSZ{justify-content:flex-start}._-vAfW{justify-content:center;text-align:center}._y4jT0{justify-content:flex-end;text-align:right}._U6Svj{display:none}._e3-ti{opacity:0;height:0;width:0;overflow:hidden}._e3-ti,._mepKY{position:absolute}._mepKY{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._dEcGs{width:246px}";
|
|
36
36
|
icons_index.styleInject(css_248z$a);
|
|
37
37
|
|
|
38
38
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -752,7 +752,6 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
752
752
|
isFocusable,
|
|
753
753
|
isFocused,
|
|
754
754
|
isSelected,
|
|
755
|
-
isCheckboxHovered,
|
|
756
755
|
onKeyDown,
|
|
757
756
|
onFocus,
|
|
758
757
|
onClick,
|
|
@@ -769,8 +768,7 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
769
768
|
onClick: hasOnRowSelect ? onClick : undefined,
|
|
770
769
|
className: classNames__default["default"](styles$a.advancedTableRow, {
|
|
771
770
|
[styles$a.hasRowAction]: hasOnRowSelect,
|
|
772
|
-
[styles$a.isSelected]: hasOnRowSelect && isSelected
|
|
773
|
-
[styles$a.isCheckboxHovered]: isCheckboxHovered
|
|
771
|
+
[styles$a.isSelected]: hasOnRowSelect && isSelected
|
|
774
772
|
}),
|
|
775
773
|
ref: isFocusable ? ref : undefined
|
|
776
774
|
}), children);
|
|
@@ -800,45 +798,37 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
800
798
|
let {
|
|
801
799
|
state,
|
|
802
800
|
onClick,
|
|
803
|
-
onMouseEnter,
|
|
804
|
-
onMouseLeave,
|
|
805
|
-
onFocus,
|
|
806
801
|
variant = 'cell',
|
|
807
802
|
isRowFocused
|
|
808
803
|
} = _ref;
|
|
809
804
|
const {
|
|
810
805
|
translate
|
|
811
806
|
} = index.useTranslation();
|
|
812
|
-
const
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
807
|
+
const label = React.useMemo(() => {
|
|
808
|
+
const labels = {
|
|
809
|
+
true: translate('checked'),
|
|
810
|
+
false: translate('unchecked'),
|
|
811
|
+
mixed: translate('mixed')
|
|
812
|
+
};
|
|
813
|
+
return labels[state];
|
|
814
|
+
}, [state]);
|
|
815
|
+
const announceToScreenReader = index.useScreenReaderAnnouncement('polite');
|
|
816
|
+
React.useEffect(() => {
|
|
817
|
+
if (isRowFocused) {
|
|
818
|
+
announceToScreenReader(label);
|
|
819
|
+
}
|
|
820
|
+
}, [isRowFocused, announceToScreenReader, label]);
|
|
817
821
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
818
822
|
onClick: onClick,
|
|
819
|
-
onMouseEnter: onMouseEnter,
|
|
820
|
-
onMouseLeave: onMouseLeave,
|
|
821
823
|
className: classNames__default["default"](styles$a.advancedTableCheckbox, {
|
|
822
824
|
[styles$a.header]: variant === 'header'
|
|
823
825
|
}),
|
|
824
|
-
"
|
|
825
|
-
"aria-relevant": "text"
|
|
826
|
+
role: "presentation"
|
|
826
827
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
827
|
-
className: styles$a.hiddenLiveRegion
|
|
828
|
-
}, labels[state]), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
829
828
|
className: styles$a.checkboxContainer
|
|
830
|
-
}, /*#__PURE__*/React__default["default"].createElement(index.
|
|
829
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.VisualCheckbox, {
|
|
831
830
|
className: styles$a.checkbox,
|
|
832
|
-
|
|
833
|
-
checked: state === 'true',
|
|
834
|
-
onChange: () => {
|
|
835
|
-
/* noop (supresses React input warning since we use the cell onClick for a larger click target instead of this onChange) */
|
|
836
|
-
},
|
|
837
|
-
inputProps: {
|
|
838
|
-
'aria-checked': state,
|
|
839
|
-
tabIndex: -1,
|
|
840
|
-
onFocus
|
|
841
|
-
}
|
|
831
|
+
checked: state === 'true'
|
|
842
832
|
}), state === 'mixed' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
843
833
|
className: styles$a.mixed
|
|
844
834
|
})));
|
|
@@ -921,9 +911,6 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
921
911
|
let {
|
|
922
912
|
isRowExpanded,
|
|
923
913
|
onClick,
|
|
924
|
-
onMouseEnter,
|
|
925
|
-
onMouseLeave,
|
|
926
|
-
onFocus,
|
|
927
914
|
'data-testid': dataTestId
|
|
928
915
|
} = _ref;
|
|
929
916
|
const {
|
|
@@ -935,16 +922,13 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
935
922
|
collapsed: translate('advancedTable.expandRow')
|
|
936
923
|
};
|
|
937
924
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
938
|
-
onClick: onClick
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
925
|
+
onClick: onClick
|
|
926
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Tooltip, {
|
|
927
|
+
content: labels[state]
|
|
928
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
929
|
+
className: index.iconButtonStyles.button,
|
|
942
930
|
"data-testid": dataTestId,
|
|
943
|
-
"
|
|
944
|
-
tooltipContent: labels[state],
|
|
945
|
-
tabIndex: -1,
|
|
946
|
-
onFocus: onFocus,
|
|
947
|
-
"aria-expanded": isRowExpanded
|
|
931
|
+
role: "presentation"
|
|
948
932
|
}, state === 'expanded' ? /*#__PURE__*/React__default["default"].createElement(icons_index.CaretDownIcon, {
|
|
949
933
|
style: {
|
|
950
934
|
pointerEvents: 'none'
|
|
@@ -953,7 +937,7 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
953
937
|
style: {
|
|
954
938
|
pointerEvents: 'none'
|
|
955
939
|
}
|
|
956
|
-
})));
|
|
940
|
+
}))));
|
|
957
941
|
};
|
|
958
942
|
|
|
959
943
|
const AdvancedTable = _ref => {
|
|
@@ -1000,7 +984,15 @@ const AdvancedTable = _ref => {
|
|
|
1000
984
|
// and the internal row transforms cause infinite state updates using a standard default assignment
|
|
1001
985
|
const stableDefaultArray = React.useMemo(() => [], []);
|
|
1002
986
|
const rowsProp = rowsPropExternal !== null && rowsPropExternal !== void 0 ? rowsPropExternal : stableDefaultArray;
|
|
1003
|
-
const
|
|
987
|
+
const rows = React.useMemo(() => {
|
|
988
|
+
let filteredRows = [];
|
|
989
|
+
rowsProp.forEach((row, i) => {
|
|
990
|
+
filteredRows = filteredRows.concat(mapExternalRowToInternalRows(row, rowsProp.length + 1, i + 1) // add 1 to account for table header
|
|
991
|
+
);
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
return filteredRows;
|
|
995
|
+
}, [rowsProp]);
|
|
1004
996
|
const rowActionsColumnConfigId = index.useId();
|
|
1005
997
|
let rowActionsColumnConfig;
|
|
1006
998
|
const columnConfigs = React.useMemo(() => [...externalColumnConfigs],
|
|
@@ -1148,8 +1140,6 @@ const AdvancedTable = _ref => {
|
|
|
1148
1140
|
const [dropTarget, setDropTarget] = React.useState('');
|
|
1149
1141
|
const [dropTargetSide, setDropTargetSide] = React.useState();
|
|
1150
1142
|
const [lastToggledRowId, setLastToggledRowId] = React.useState('');
|
|
1151
|
-
// Enables disabling row hover styles when hovering on the checkbox. Needed since a CSS parent selector doesn't exist.
|
|
1152
|
-
const [isCheckboxHovered, setIsCheckboxHovered] = React.useState(false);
|
|
1153
1143
|
|
|
1154
1144
|
// Enables using Set.prototype.has() vs Array.prototype.includes() for better performance at scale
|
|
1155
1145
|
const [checkedRowIdsSet, setCheckedRowIdsSet] = React.useState(new Set(checkedRowIds));
|
|
@@ -1159,38 +1149,6 @@ const AdvancedTable = _ref => {
|
|
|
1159
1149
|
selectedSortOption,
|
|
1160
1150
|
setCurrentPage
|
|
1161
1151
|
});
|
|
1162
|
-
const mapExternalRowToInternalRows = React.useCallback(function (row, depthSize, depthIndex, parentId) {
|
|
1163
|
-
let depth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
1164
|
-
let mappedRows = [];
|
|
1165
|
-
const hasChildRows = !!row.childRows && row.childRows.length > 0;
|
|
1166
|
-
mappedRows.push({
|
|
1167
|
-
id: row.id,
|
|
1168
|
-
data: row.data,
|
|
1169
|
-
hasChildRows,
|
|
1170
|
-
parentId,
|
|
1171
|
-
depth,
|
|
1172
|
-
depthSize,
|
|
1173
|
-
depthIndex,
|
|
1174
|
-
isExpanded: row.isExpanded,
|
|
1175
|
-
rowProps: row.unsafe_rowProps,
|
|
1176
|
-
rowPropReference: row
|
|
1177
|
-
});
|
|
1178
|
-
if (row.isExpanded && row.childRows !== undefined && hasChildRows) {
|
|
1179
|
-
row.childRows.forEach((child, i) => {
|
|
1180
|
-
mappedRows = mappedRows.concat(mapExternalRowToInternalRows(child, row.childRows !== undefined ? row.childRows.length : 0, i, row.id, depth + 1));
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
return mappedRows;
|
|
1184
|
-
}, []);
|
|
1185
|
-
React.useEffect(() => {
|
|
1186
|
-
let filteredRows = [];
|
|
1187
|
-
rowsProp.forEach((row, i) => {
|
|
1188
|
-
filteredRows = filteredRows.concat(mapExternalRowToInternalRows(row, rowsProp.length + 1, i + 1) // add 1 to account for table header
|
|
1189
|
-
);
|
|
1190
|
-
});
|
|
1191
|
-
|
|
1192
|
-
setRows(filteredRows);
|
|
1193
|
-
}, [rowsProp, mapExternalRowToInternalRows]);
|
|
1194
1152
|
React.useEffect(() => {
|
|
1195
1153
|
setCheckedRowIdsSet(new Set(checkedRowIds));
|
|
1196
1154
|
}, [checkedRowIds]);
|
|
@@ -1486,8 +1444,7 @@ const AdvancedTable = _ref => {
|
|
|
1486
1444
|
e.stopPropagation(); // prevent onRowSelect
|
|
1487
1445
|
e.preventDefault();
|
|
1488
1446
|
updateExpandedRowIds(rowIndex);
|
|
1489
|
-
}
|
|
1490
|
-
onFocus: onRowFocus(rowIndex, minColumnIndex)
|
|
1447
|
+
}
|
|
1491
1448
|
});
|
|
1492
1449
|
const getExpandableRowsSpacer = function (width, inHeader) {
|
|
1493
1450
|
let children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
@@ -1497,7 +1454,8 @@ const AdvancedTable = _ref => {
|
|
|
1497
1454
|
}),
|
|
1498
1455
|
style: {
|
|
1499
1456
|
width
|
|
1500
|
-
}
|
|
1457
|
+
},
|
|
1458
|
+
role: "presentation"
|
|
1501
1459
|
}, children);
|
|
1502
1460
|
};
|
|
1503
1461
|
const getCellProps = (columnConfig, columnIndex, data, rowIndex, rowId, depth) => {
|
|
@@ -1539,6 +1497,8 @@ const AdvancedTable = _ref => {
|
|
|
1539
1497
|
backend: reactDndHtml5Backend.HTML5Backend
|
|
1540
1498
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1541
1499
|
className: styles$a.advancedTable,
|
|
1500
|
+
ref: tableRef
|
|
1501
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1542
1502
|
role: hasExpandableRows ? 'treegrid' : 'grid',
|
|
1543
1503
|
"aria-multiselectable": hasExpandableRows && hasCheckboxColumn ? true : undefined,
|
|
1544
1504
|
"aria-rowcount": rows ? rows.length + 1 : 0,
|
|
@@ -1546,8 +1506,7 @@ const AdvancedTable = _ref => {
|
|
|
1546
1506
|
"aria-labelledby": ariaLabelledBy,
|
|
1547
1507
|
"aria-label": ariaLabel,
|
|
1548
1508
|
"aria-describedby": ariaDescribedBy,
|
|
1549
|
-
"data-testid": dataTestId
|
|
1550
|
-
ref: tableRef
|
|
1509
|
+
"data-testid": dataTestId
|
|
1551
1510
|
}, dragSource && !disableUserPinnableColumns && !disableUserReorderableColumns ? /*#__PURE__*/React__default["default"].createElement(AdvancedTableDragPreview, {
|
|
1552
1511
|
tableRef: tableRef,
|
|
1553
1512
|
columnHeaderRefs: cellRefs.current[-1]
|
|
@@ -1584,7 +1543,6 @@ const AdvancedTable = _ref => {
|
|
|
1584
1543
|
state: checkedRowIds.length === totalRowsCountWithExpansion ? 'true' : checkedRowIds.length === 0 ? 'false' : 'mixed',
|
|
1585
1544
|
isRowFocused: headerRowIndex === focusedRowIndex,
|
|
1586
1545
|
onClick: handleColumnHeaderCheckboxToggle,
|
|
1587
|
-
onFocus: onRowFocus(headerRowIndex, minColumnIndex),
|
|
1588
1546
|
variant: "header"
|
|
1589
1547
|
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth, "px"), true) : undefined, pinnedColumnConfigs.map((columnConfigs, i) => {
|
|
1590
1548
|
const props = getColumnHeaderProps(columnConfigs, i, true);
|
|
@@ -1603,11 +1561,10 @@ const AdvancedTable = _ref => {
|
|
|
1603
1561
|
depth = 0,
|
|
1604
1562
|
depthSize,
|
|
1605
1563
|
depthIndex,
|
|
1606
|
-
rowPropReference,
|
|
1607
1564
|
parentId,
|
|
1608
|
-
rowProps
|
|
1565
|
+
rowProps,
|
|
1566
|
+
hasChildRows
|
|
1609
1567
|
} = row;
|
|
1610
|
-
const hasChildRows = rowPropReference.childRows && rowPropReference.childRows.length > 0;
|
|
1611
1568
|
const paginatedRowIndex = getPaginatedRowIndex(rowIndex);
|
|
1612
1569
|
const onSelect = e => {
|
|
1613
1570
|
e.preventDefault(); // stops event from triggering on new target when focus is changed during onSelect
|
|
@@ -1627,12 +1584,12 @@ const AdvancedTable = _ref => {
|
|
|
1627
1584
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
1628
1585
|
,
|
|
1629
1586
|
|
|
1587
|
+
"aria-expanded": hasChildRows ? !!isExpanded : undefined,
|
|
1630
1588
|
"data-testid": dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined,
|
|
1631
1589
|
hasOnRowSelect: hasOnRowSelect,
|
|
1632
1590
|
isFocusable: hasFocusableRows,
|
|
1633
1591
|
isFocused: paginatedRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
1634
1592
|
isSelected: selectedRowId === rowId,
|
|
1635
|
-
isCheckboxHovered: isCheckboxHovered,
|
|
1636
1593
|
onKeyDown: onRowKeyDown,
|
|
1637
1594
|
onFocus: onRowFocus(paginatedRowIndex, minColumnIndex),
|
|
1638
1595
|
onClick: e => onSelect(e),
|
|
@@ -1656,10 +1613,7 @@ const AdvancedTable = _ref => {
|
|
|
1656
1613
|
} else {
|
|
1657
1614
|
singleUpdateCheckedRowIds(paginatedRowIndex);
|
|
1658
1615
|
}
|
|
1659
|
-
}
|
|
1660
|
-
onMouseEnter: () => setIsCheckboxHovered(true),
|
|
1661
|
-
onMouseLeave: () => setIsCheckboxHovered(false),
|
|
1662
|
-
onFocus: onRowFocus(paginatedRowIndex, minColumnIndex)
|
|
1616
|
+
}
|
|
1663
1617
|
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth * (depth + 1), "px"), false, hasChildRows ? getAdvancedTableRowExpandButton(rowId, isExpanded, rowIndex) : undefined) : undefined, pinnedColumnConfigs.map((c, i) => {
|
|
1664
1618
|
const props = getCellProps(c, i, data, paginatedRowIndex, rowId, depth);
|
|
1665
1619
|
return /*#__PURE__*/React__default["default"].createElement(AdvancedTableCell, _extends__default["default"]({}, props, {
|
|
@@ -1676,7 +1630,7 @@ const AdvancedTable = _ref => {
|
|
|
1676
1630
|
"aria-colindex": i + 1 // aria-colindex is one-indexed
|
|
1677
1631
|
}));
|
|
1678
1632
|
}));
|
|
1679
|
-
})), rowsPerPage ? /*#__PURE__*/React__default["default"].createElement(AdvancedTablePagination, {
|
|
1633
|
+
}))), rowsPerPage ? /*#__PURE__*/React__default["default"].createElement(AdvancedTablePagination, {
|
|
1680
1634
|
rowsPerPage: rowsPerPage,
|
|
1681
1635
|
onPageChange: onPageChange,
|
|
1682
1636
|
ariaLabel: paginationAriaLabel,
|
|
@@ -1837,6 +1791,29 @@ function useFocusState(_ref8) {
|
|
|
1837
1791
|
cellRefs
|
|
1838
1792
|
};
|
|
1839
1793
|
}
|
|
1794
|
+
function mapExternalRowToInternalRows(row, depthSize, depthIndex, parentId) {
|
|
1795
|
+
let depth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
1796
|
+
let mappedRows = [];
|
|
1797
|
+
const hasChildRows = !!row.childRows && row.childRows.length > 0;
|
|
1798
|
+
mappedRows.push({
|
|
1799
|
+
id: row.id,
|
|
1800
|
+
data: row.data,
|
|
1801
|
+
hasChildRows,
|
|
1802
|
+
parentId,
|
|
1803
|
+
depth,
|
|
1804
|
+
depthSize,
|
|
1805
|
+
depthIndex,
|
|
1806
|
+
isExpanded: row.isExpanded,
|
|
1807
|
+
rowProps: row.unsafe_rowProps,
|
|
1808
|
+
rowPropReference: row
|
|
1809
|
+
});
|
|
1810
|
+
if (row.isExpanded && row.childRows !== undefined && hasChildRows) {
|
|
1811
|
+
row.childRows.forEach((child, i) => {
|
|
1812
|
+
mappedRows = mappedRows.concat(mapExternalRowToInternalRows(child, row.childRows !== undefined ? row.childRows.length : 0, i, row.id, depth + 1));
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
return mappedRows;
|
|
1816
|
+
}
|
|
1840
1817
|
|
|
1841
1818
|
/* eslint-disable import/prefer-default-export */
|
|
1842
1819
|
|
|
@@ -3320,9 +3297,9 @@ class PointerEvent extends Event {
|
|
|
3320
3297
|
}
|
|
3321
3298
|
}
|
|
3322
3299
|
|
|
3323
|
-
var css_248z$4 = "._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:
|
|
3300
|
+
var css_248z$4 = "._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important}._N7J2v>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._Tmp2H{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._Tmp2H._HhPZN{margin-left:30px;opacity:0}._Tmp2H._vI0q6{margin-left:-30px}._j1Xch{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._j1Xch._Fjhx4{cursor:unset}._j1Xch ._RyOg-{fill:#32363a;margin-right:4px}._j1Xch:focus,._j1Xch:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._j1Xch[aria-disabled=true]{cursor:not-allowed;opacity:.65}._j1Xch._6Zf3Z{padding-right:32px}._j1Xch._6Zf3Z ._xRTxX{position:absolute;height:100%;right:3px;fill:#515559}._j1Xch._kPBk8{pointer-events:none}._oWZRI{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._oWZRI._t-oP1{padding-top:49px}._c15yI{pointer-events:none;position:fixed;left:0;top:0}._4CSdT{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._4CSdT._vI0q6{opacity:0}._4CSdT._vI0q6>._jwSGw{margin-left:-30px}._4CSdT._HhPZN{opacity:0}._4CSdT._HhPZN>._jwSGw{margin-left:30px}._4CSdT>._jwSGw{transition:margin-left .35s;width:100%}._4CSdT._kPBk8{pointer-events:none}body.keyboard-user ._j1Xch:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
3324
3301
|
var styles$4 = {"buttonContainer":"_Cgqmc","button":"_Twbay","rightIcon":"_xRTxX","maskContainer":"_N7J2v","flyout":"_Tmp2H","animatedRight":"_HhPZN","animatedLeft":"_vI0q6","menuItem":"_j1Xch","noItems":"_Fjhx4","backIcon":"_RyOg-","subMenu":"_6Zf3Z","unresponsive":"_kPBk8","stickyBox":"_oWZRI","isSearchable":"_t-oP1","searchBoxesContainer":"_c15yI","searchBox":"_4CSdT","searchInput":"_jwSGw"};
|
|
3325
|
-
var stylesheet$4="._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:
|
|
3302
|
+
var stylesheet$4="._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important}._N7J2v>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._Tmp2H{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._Tmp2H._HhPZN{margin-left:30px;opacity:0}._Tmp2H._vI0q6{margin-left:-30px}._j1Xch{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._j1Xch._Fjhx4{cursor:unset}._j1Xch ._RyOg-{fill:#32363a;margin-right:4px}._j1Xch:focus,._j1Xch:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._j1Xch[aria-disabled=true]{cursor:not-allowed;opacity:.65}._j1Xch._6Zf3Z{padding-right:32px}._j1Xch._6Zf3Z ._xRTxX{position:absolute;height:100%;right:3px;fill:#515559}._j1Xch._kPBk8{pointer-events:none}._oWZRI{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._oWZRI._t-oP1{padding-top:49px}._c15yI{pointer-events:none;position:fixed;left:0;top:0}._4CSdT{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._4CSdT._vI0q6{opacity:0}._4CSdT._vI0q6>._jwSGw{margin-left:-30px}._4CSdT._HhPZN{opacity:0}._4CSdT._HhPZN>._jwSGw{margin-left:30px}._4CSdT>._jwSGw{transition:margin-left .35s;width:100%}._4CSdT._kPBk8{pointer-events:none}body.keyboard-user ._j1Xch:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
3326
3303
|
icons_index.styleInject(css_248z$4);
|
|
3327
3304
|
|
|
3328
3305
|
/* eslint-disable import/prefer-default-export */
|
|
@@ -3611,6 +3588,13 @@ const useOverlay = _ref => {
|
|
|
3611
3588
|
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3612
3589
|
};
|
|
3613
3590
|
|
|
3591
|
+
const useCSSVariable = function (name, value) {
|
|
3592
|
+
let dependencies = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
3593
|
+
React.useEffect(() => {
|
|
3594
|
+
document.documentElement.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
3595
|
+
}, [value, ...dependencies]);
|
|
3596
|
+
};
|
|
3597
|
+
|
|
3614
3598
|
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3615
3599
|
var _flyoutRef$current$pa, _flyoutRef$current2, _flyoutRef$current3;
|
|
3616
3600
|
let {
|
|
@@ -3622,6 +3606,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3622
3606
|
isSearchFilteringDisabled = false,
|
|
3623
3607
|
className,
|
|
3624
3608
|
style,
|
|
3609
|
+
zIndex = 1000,
|
|
3625
3610
|
...rest
|
|
3626
3611
|
} = _ref;
|
|
3627
3612
|
const [items, setItems] = React.useState([]);
|
|
@@ -3706,6 +3691,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3706
3691
|
var _style$transform, _style;
|
|
3707
3692
|
return setTransform((_style$transform = target === null || target === void 0 || (_style = target.style) === null || _style === void 0 ? void 0 : _style.transform) !== null && _style$transform !== void 0 ? _style$transform : '');
|
|
3708
3693
|
});
|
|
3694
|
+
useCSSVariable('--mask-z-index', String(zIndex), [open]);
|
|
3709
3695
|
return /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3710
3696
|
items: items,
|
|
3711
3697
|
setItems: setItems,
|
|
@@ -3715,7 +3701,8 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3715
3701
|
isSearchFilteringDisabled,
|
|
3716
3702
|
isInteractive: !animatedLeft,
|
|
3717
3703
|
flyoutRef,
|
|
3718
|
-
stickyBoxRef
|
|
3704
|
+
stickyBoxRef,
|
|
3705
|
+
zIndex
|
|
3719
3706
|
}
|
|
3720
3707
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Portal, {
|
|
3721
3708
|
container: portalTarget || undefined
|
|
@@ -3743,11 +3730,15 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3743
3730
|
}
|
|
3744
3731
|
}), isSearchable && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3745
3732
|
className: classNames__default["default"](styles$4.stickyBox, styles$4.isSearchable),
|
|
3746
|
-
ref: stickyBoxRef
|
|
3733
|
+
ref: stickyBoxRef,
|
|
3734
|
+
style: {
|
|
3735
|
+
zIndex
|
|
3736
|
+
}
|
|
3747
3737
|
}), noSearchResultsNode, children), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3748
3738
|
className: styles$4.searchBoxesContainer,
|
|
3749
3739
|
style: {
|
|
3750
3740
|
transform,
|
|
3741
|
+
zIndex: zIndex + openPaneDepth,
|
|
3751
3742
|
width: (_flyoutRef$current3 = flyoutRef.current) === null || _flyoutRef$current3 === void 0 ? void 0 : _flyoutRef$current3.clientWidth
|
|
3752
3743
|
}
|
|
3753
3744
|
}, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
|
|
@@ -3855,7 +3846,8 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3855
3846
|
searchValue: paneContainingTriggerSearchValue,
|
|
3856
3847
|
isSearchFilteringDisabled: isSearchFilteringDisabledForPaneContainingTrigger,
|
|
3857
3848
|
isInteractive: paneContainingTriggerIsInteractive,
|
|
3858
|
-
closeSubmenu: closeSubmenuContainingTrigger
|
|
3849
|
+
closeSubmenu: closeSubmenuContainingTrigger,
|
|
3850
|
+
zIndex: paneContainingTriggerZIndex
|
|
3859
3851
|
} = usePaneContext(triggerRef);
|
|
3860
3852
|
const {
|
|
3861
3853
|
openPaneDepth: totalOpenPaneDepth,
|
|
@@ -3865,6 +3857,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3865
3857
|
const {
|
|
3866
3858
|
isFocusVisible
|
|
3867
3859
|
} = interactions.useFocusVisible();
|
|
3860
|
+
const zIndex = React.useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
3868
3861
|
const thisPanesDepth = React.useRef(totalOpenPaneDepth + 1).current;
|
|
3869
3862
|
const [isPaneInDOM, setIsPaneInDOM] = React.useState(false);
|
|
3870
3863
|
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = React.useState(false);
|
|
@@ -3972,7 +3965,8 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3972
3965
|
isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
|
|
3973
3966
|
closeSubmenu: closeThisSubmenu,
|
|
3974
3967
|
flyoutRef,
|
|
3975
|
-
stickyBoxRef
|
|
3968
|
+
stickyBoxRef,
|
|
3969
|
+
zIndex
|
|
3976
3970
|
}
|
|
3977
3971
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
3978
3972
|
loop: !isSearchable,
|
|
@@ -3986,13 +3980,16 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
3986
3980
|
onTransitionEnd: handlePaneTransitionEnd,
|
|
3987
3981
|
style: {
|
|
3988
3982
|
...style,
|
|
3989
|
-
zIndex
|
|
3983
|
+
zIndex
|
|
3990
3984
|
}
|
|
3991
3985
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3992
3986
|
className: classNames__default["default"](styles$4.stickyBox, {
|
|
3993
3987
|
[styles$4.isSearchable]: isSearchable
|
|
3994
3988
|
}),
|
|
3995
|
-
ref: stickyBoxRef
|
|
3989
|
+
ref: stickyBoxRef,
|
|
3990
|
+
style: {
|
|
3991
|
+
zIndex
|
|
3992
|
+
}
|
|
3996
3993
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, {
|
|
3997
3994
|
className: classNames__default["default"](styles$4.menuItem, {
|
|
3998
3995
|
[styles$4.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
|
|
@@ -16,7 +16,7 @@ const FlyoutHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
16
16
|
role: "group",
|
|
17
17
|
"aria-label": title
|
|
18
18
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
19
|
-
|
|
19
|
+
role: "presentation",
|
|
20
20
|
className: styles.headerContent
|
|
21
21
|
}, title), children);
|
|
22
22
|
});
|