@qualtrics/ui-react 2.30.0 → 2.32.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/CHANGELOG.md +31 -0
- package/dist/__shared/cjs/{index-e0e97b93.js → index-1c5b62c1.js} +39 -3
- package/dist/__shared/cjs/{index-30cc916b.js → index-95ae1cca.js} +531 -442
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Banner/Banner.css.js +12 -13
- package/dist/components/Banner/Banner.css.ts.vanilla.js +3 -3
- package/dist/components/Banner/Banner.js +2 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Check.js +32 -13
- package/dist/components/Checkbox/Checkbox.js +35 -23
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +2 -2
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +9 -0
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +13 -6
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +81 -38
- package/dist/components/NewMenu/parts/MenuItem.js +18 -6
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/AIEntityIcon.js +6 -0
- package/dist/icons/components/AISparkIcon.js +6 -0
- package/dist/icons/components/ButtonSelectorIcon.js +6 -0
- package/dist/icons/components/DropListSelectorIcon.js +6 -0
- package/dist/icons/components/HeatMapDiscoverIcon.js +6 -0
- package/dist/icons/components/HighlightPenSwatchIcon.js +6 -0
- package/dist/icons/components/HighlightSwatchIcon.js +6 -0
- package/dist/icons/components/MetricWidgetIcon.js +6 -0
- package/dist/icons/components/SearchSelectorIcon.js +6 -0
- package/dist/icons/index.d.ts +18 -0
- package/dist/icons/index.es.js +9 -0
- package/dist/icons/index.js +10 -1
- package/dist/index.d.ts +14 -4
- package/dist/index.es.js +1 -1
- package/dist/index.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +30 -16
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +5 -9
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +5 -1
- package/dist/next/AdvancedTable/AdvancedTableRow.js +3 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/useCSSVariable.js +5 -5
- package/dist/next/Menu/Hooks/useMaskDimensions.js +10 -12
- package/dist/next/Menu/Hooks/usePaneSearch.js +3 -5
- package/dist/next/Menu/Menu.js +21 -8
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuPane.js +55 -18
- package/dist/next/Menu/PaneChildren.js +6 -3
- package/dist/next/Menu/SubMenu.js +17 -13
- package/dist/next/Menu/constants.js +4 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectItem.js +4 -4
- package/dist/next/Select/SubSelect.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +220 -172
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Text/Text.js +2 -2
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +3 -3
- package/dist/components/Checkbox/VisualCheckbox.js +0 -31
- package/dist/components/Checkbox/VisualCheckbox2.js +0 -8
package/dist/next/index.js
CHANGED
|
@@ -8,8 +8,8 @@ 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-
|
|
12
|
-
var icons_index = require('../__shared/cjs/index-
|
|
11
|
+
var index = require('../__shared/cjs/index-95ae1cca.js');
|
|
12
|
+
var icons_index = require('../__shared/cjs/index-1c5b62c1.js');
|
|
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$c = ".
|
|
36
|
-
var styles$b = {"advancedTable":"
|
|
37
|
-
var stylesheet$c=".
|
|
35
|
+
var css_248z$c = "._udstL{overflow:auto;position:relative;max-width:100%;max-height:100%}._hrGut,._udstL{background-color:#fff}._hrGut{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._gen94{margin-bottom:4px}._ie05J{position:-webkit-sticky;position:sticky;top:0;z-index:100}._vqvfG{display:flex}._vqvfG:focus{outline:none}._vqvfG.focus-visible ._MDRV2:after,._vqvfG:focus-visible ._MDRV2: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}._vqvfG.focus-visible ._MDRV2:last-of-type:after,._vqvfG:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._vqvfG.focus-visible ._MDRV2:first-of-type:after,._vqvfG:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._vqvfG.focus-visible ._MDRV2._cg4FL:after,._vqvfG:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:1px}._o7gtF{padding-right:3px}._O3-y-{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._9z4nK{display:flex}._9z4nK._6g0up ._MDRV2,._9z4nK._6g0up ._VG9vk{cursor:pointer}._9z4nK._dK45A ._MDRV2,._9z4nK._dK45A ._VG9vk{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._9z4nK._dK45A ._MDRV2._cg4FL,._9z4nK._dK45A ._VG9vk._cg4FL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._9z4nK._dK45A ._MDRV2._cg4FL ._jzayj,._9z4nK._dK45A ._MDRV2._cg4FL ._QmveY,._9z4nK._dK45A ._MDRV2._cg4FL ._VG9vk,._9z4nK._dK45A ._VG9vk._cg4FL ._jzayj,._9z4nK._dK45A ._VG9vk._cg4FL ._QmveY,._9z4nK._dK45A ._VG9vk._cg4FL ._VG9vk{background-color:rgba(11,110,208,.08)}._9z4nK._6g0up:hover:not(._dK45A) ._MDRV2,._9z4nK._6g0up:hover:not(._dK45A) ._VG9vk{background-color:#f9f9f9}._9z4nK._6g0up:active:not(._dK45A):not(._9z4nK._6g0up:active:not(._dK45A):has(._QmveY:active)) ._MDRV2,._9z4nK._6g0up:active:not(._dK45A):not(._9z4nK._6g0up:active:not(._dK45A):has(._QmveY:active)) ._VG9vk{background-color:#f3f3f3}._9z4nK:focus{outline:none}._9z4nK.focus-visible ._MDRV2:after,._9z4nK:focus-visible ._MDRV2: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}._9z4nK.focus-visible ._MDRV2:last-of-type:after,._9z4nK:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._9z4nK.focus-visible ._MDRV2:first-of-type:after,._9z4nK:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._9z4nK.focus-visible ._MDRV2._cg4FL:after,._9z4nK:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:0}._9z4nK:last-of-type:focus{outline:none}._9z4nK:last-of-type.focus-visible ._MDRV2:after,._9z4nK:last-of-type:focus-visible ._MDRV2: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}._9z4nK:last-of-type.focus-visible ._MDRV2:last-of-type:after,._9z4nK:last-of-type:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._9z4nK:last-of-type.focus-visible ._MDRV2:first-of-type:after,._9z4nK:last-of-type:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._9z4nK:last-of-type.focus-visible ._MDRV2._cg4FL:after,._9z4nK:last-of-type:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:1px}._9z4nK:last-of-type ._jzayj:focus{outline:none}._9z4nK:last-of-type ._jzayj._-wUHA.focus-visible:after,._9z4nK:last-of-type ._jzayj._-wUHA:focus-visible:after,._9z4nK:last-of-type ._jzayj.focus-visible:after,._9z4nK:last-of-type ._jzayj: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}._9z4nK:first-of-type:focus{outline:none}._9z4nK:first-of-type.focus-visible ._MDRV2:after,._9z4nK:first-of-type:focus-visible ._MDRV2: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}._9z4nK:first-of-type.focus-visible ._MDRV2:last-of-type:after,._9z4nK:first-of-type:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._9z4nK:first-of-type.focus-visible ._MDRV2:first-of-type:after,._9z4nK:first-of-type:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._9z4nK:first-of-type.focus-visible ._MDRV2._cg4FL:after,._9z4nK:first-of-type:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:0}._9z4nK:first-of-type ._jzayj:focus{outline:none}._9z4nK:first-of-type ._jzayj._-wUHA.focus-visible:after,._9z4nK:first-of-type ._jzayj._-wUHA:focus-visible:after,._9z4nK:first-of-type ._jzayj.focus-visible:after,._9z4nK:first-of-type ._jzayj: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}._Qp7zN{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}._Qp7zN._V-ZBF{flex-grow:1}._Qp7zN._SYXwo{cursor:pointer}._Qp7zN._SYXwo:hover:not(._hOUm2){background-color:#f9f9f9;border-bottom-color:#6a6d70}._Qp7zN._SYXwo:active:not(._hOUm2){background-color:#f3f3f3}._Qp7zN._LBqYg:not(._hOUm2){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._Qp7zN._hOUm2{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._Qp7zN ._ra8eL{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._Qp7zN ._ra8eL._MsidO{left:-1px}._Qp7zN ._ra8eL._jm7RJ{right:0}._Qp7zN ._P-nt8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._Qp7zN ._P-nt8._MsidO{left:-2px}._Qp7zN ._P-nt8._jm7RJ{right:-1px}._Qp7zN:first-of-type ._MsidO._ra8eL{left:0;width:2px;border-left:1px solid #fff}._Qp7zN:first-of-type ._MsidO._P-nt8{left:0}._Qp7zN:last-of-type ._jm7RJ._ra8eL{right:0;width:2px;border-right:1px solid #fff}._Qp7zN:last-of-type ._jm7RJ._P-nt8{right:0}._Qp7zN ._wiUo7{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._Qp7zN ._wiUo7 ._k-IC4{position:absolute;width:2px;right:2px;top:0;bottom:0}._Qp7zN ._wiUo7 ._k-IC4._BOwPy{background-color:#0a6ed1}._Qp7zN ._wiUo7:hover ._k-IC4:not(._BOwPy){background-color:#d9d9d9}._Qp7zN ._AYWpu{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._Qp7zN ._AYWpu._4incK{flex-direction:row-reverse;justify-content:flex-start}._Qp7zN ._AYWpu._4incK ._sKx6g{margin:1px 7px 1px 1px}._Qp7zN ._AYWpu ._0Mn4p{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._Qp7zN ._AYWpu ._sKx6g{margin:1px 1px 1px 7px;flex-shrink:0}._Qp7zN ._KeUS5{margin-left:6px;margin-right:4px;flex-shrink:0}._Qp7zN ._iY-Pg{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._Qp7zN:focus{outline:none}._Qp7zN._-wUHA.focus-visible:after,._Qp7zN._-wUHA:focus-visible:after,._Qp7zN.focus-visible:after,._Qp7zN: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}._9MDID{margin-right:6px}._cg4FL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._cg4FL[focus-within]{z-index:30}._cg4FL:focus-within{z-index:30}._jzayj{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}._jzayj ._6qejl{width:100%;padding:12px 12px 11px;overflow:hidden}._jzayj._hOUm2{background-color:#efefef;border-bottom-color:#dfdfe1}._jzayj._V-ZBF{flex-grow:1}._jzayj:focus{outline:none}._jzayj._-wUHA.focus-visible:after,._jzayj._-wUHA:focus-visible:after,._jzayj.focus-visible:after,._jzayj: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}._VG9vk{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._VG9vk._i9sF8{border-bottom-color:#d9d9d9;background-color:#fff}._QmveY{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}._QmveY._i9sF8{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._QmveY:focus input~span,._QmveY:hover input~span{border-color:#0b6ed0}._z6YM8{justify-content:flex-start}._V6BqC{justify-content:center;text-align:center}._4incK{justify-content:flex-end;text-align:right}._iJBQY{display:none}._lNqE-{opacity:0;height:0;width:0;overflow:hidden}._lNqE-,._NhOnv{position:absolute}._NhOnv{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._SyIHy{max-width:250px;min-width:150px!important}";
|
|
36
|
+
var styles$b = {"advancedTable":"_udstL","advancedTablePaginationContainer":"_hrGut","advancedTablePagination":"_gen94","advancedTableColumnHeadersRowGroup":"_ie05J","advancedTableColumnHeaders":"_vqvfG","advancedTableRowChild":"_MDRV2","pinnedContainer":"_cg4FL","advancedTableRowGroup":"_o7gtF","advancedTableRowRestrictedWidth":"_O3-y-","advancedTableRow":"_9z4nK","hasRowAction":"_6g0up","advancedTableExpandRowSpacer":"_VG9vk","isSelected":"_dK45A","advancedTableCheckbox":"_QmveY","advancedTableCell":"_jzayj","showFocusRing":"_-wUHA","advancedTableColumnHeader":"_Qp7zN","fillRemainingSpace":"_V-ZBF","isSortable":"_SYXwo","isDragging":"_hOUm2","isSorted":"_LBqYg","dropTargetLine":"_ra8eL","dropTargetLeft":"_MsidO","dropTargetRight":"_jm7RJ","dropTargetMarker":"_P-nt8","resizeHandle":"_wiUo7","resizeLine":"_k-IC4","isResizing":"_BOwPy","advancedTableColumnHeaderLabel":"_AYWpu","rightAligned":"_4incK","sortIcon":"_sKx6g","advancedTableColumnHeaderLabelText":"_0Mn4p","advancedTableColumnHeaderMenu":"_KeUS5","advancedTableColumnHeaderMenuHiddenAnchor":"_iY-Pg","advancedTableColumnHeaderMenuItemIcon":"_9MDID","advancedTableCellContainer":"_6qejl","header":"_i9sF8","leftAligned":"_z6YM8","centerAligned":"_V6BqC","hiddenDescription":"_iJBQY","hiddenLiveRegion":"_lNqE-","dragPreview":"_NhOnv","rowActionMenuPane":"_SyIHy"};
|
|
37
|
+
var stylesheet$c="._udstL{overflow:auto;position:relative;max-width:100%;max-height:100%}._hrGut,._udstL{background-color:#fff}._hrGut{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._gen94{margin-bottom:4px}._ie05J{position:-webkit-sticky;position:sticky;top:0;z-index:100}._vqvfG{display:flex}._vqvfG:focus{outline:none}._vqvfG.focus-visible ._MDRV2:after,._vqvfG:focus-visible ._MDRV2: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}._vqvfG.focus-visible ._MDRV2:last-of-type:after,._vqvfG:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._vqvfG.focus-visible ._MDRV2:first-of-type:after,._vqvfG:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._vqvfG.focus-visible ._MDRV2._cg4FL:after,._vqvfG:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:1px}._o7gtF{padding-right:3px}._O3-y-{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._9z4nK{display:flex}._9z4nK._6g0up ._MDRV2,._9z4nK._6g0up ._VG9vk{cursor:pointer}._9z4nK._dK45A ._MDRV2,._9z4nK._dK45A ._VG9vk{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._9z4nK._dK45A ._MDRV2._cg4FL,._9z4nK._dK45A ._VG9vk._cg4FL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._9z4nK._dK45A ._MDRV2._cg4FL ._jzayj,._9z4nK._dK45A ._MDRV2._cg4FL ._QmveY,._9z4nK._dK45A ._MDRV2._cg4FL ._VG9vk,._9z4nK._dK45A ._VG9vk._cg4FL ._jzayj,._9z4nK._dK45A ._VG9vk._cg4FL ._QmveY,._9z4nK._dK45A ._VG9vk._cg4FL ._VG9vk{background-color:rgba(11,110,208,.08)}._9z4nK._6g0up:hover:not(._dK45A) ._MDRV2,._9z4nK._6g0up:hover:not(._dK45A) ._VG9vk{background-color:#f9f9f9}._9z4nK._6g0up:active:not(._dK45A):not(._9z4nK._6g0up:active:not(._dK45A):has(._QmveY:active)) ._MDRV2,._9z4nK._6g0up:active:not(._dK45A):not(._9z4nK._6g0up:active:not(._dK45A):has(._QmveY:active)) ._VG9vk{background-color:#f3f3f3}._9z4nK:focus{outline:none}._9z4nK.focus-visible ._MDRV2:after,._9z4nK:focus-visible ._MDRV2: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}._9z4nK.focus-visible ._MDRV2:last-of-type:after,._9z4nK:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._9z4nK.focus-visible ._MDRV2:first-of-type:after,._9z4nK:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._9z4nK.focus-visible ._MDRV2._cg4FL:after,._9z4nK:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:0}._9z4nK:last-of-type:focus{outline:none}._9z4nK:last-of-type.focus-visible ._MDRV2:after,._9z4nK:last-of-type:focus-visible ._MDRV2: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}._9z4nK:last-of-type.focus-visible ._MDRV2:last-of-type:after,._9z4nK:last-of-type:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._9z4nK:last-of-type.focus-visible ._MDRV2:first-of-type:after,._9z4nK:last-of-type:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._9z4nK:last-of-type.focus-visible ._MDRV2._cg4FL:after,._9z4nK:last-of-type:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:1px}._9z4nK:last-of-type ._jzayj:focus{outline:none}._9z4nK:last-of-type ._jzayj._-wUHA.focus-visible:after,._9z4nK:last-of-type ._jzayj._-wUHA:focus-visible:after,._9z4nK:last-of-type ._jzayj.focus-visible:after,._9z4nK:last-of-type ._jzayj: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}._9z4nK:first-of-type:focus{outline:none}._9z4nK:first-of-type.focus-visible ._MDRV2:after,._9z4nK:first-of-type:focus-visible ._MDRV2: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}._9z4nK:first-of-type.focus-visible ._MDRV2:last-of-type:after,._9z4nK:first-of-type:focus-visible ._MDRV2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._9z4nK:first-of-type.focus-visible ._MDRV2:first-of-type:after,._9z4nK:first-of-type:focus-visible ._MDRV2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._9z4nK:first-of-type.focus-visible ._MDRV2._cg4FL:after,._9z4nK:first-of-type:focus-visible ._MDRV2._cg4FL:after{right:-3px;bottom:0}._9z4nK:first-of-type ._jzayj:focus{outline:none}._9z4nK:first-of-type ._jzayj._-wUHA.focus-visible:after,._9z4nK:first-of-type ._jzayj._-wUHA:focus-visible:after,._9z4nK:first-of-type ._jzayj.focus-visible:after,._9z4nK:first-of-type ._jzayj: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}._Qp7zN{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}._Qp7zN._V-ZBF{flex-grow:1}._Qp7zN._SYXwo{cursor:pointer}._Qp7zN._SYXwo:hover:not(._hOUm2){background-color:#f9f9f9;border-bottom-color:#6a6d70}._Qp7zN._SYXwo:active:not(._hOUm2){background-color:#f3f3f3}._Qp7zN._LBqYg:not(._hOUm2){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._Qp7zN._hOUm2{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._Qp7zN ._ra8eL{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._Qp7zN ._ra8eL._MsidO{left:-1px}._Qp7zN ._ra8eL._jm7RJ{right:0}._Qp7zN ._P-nt8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._Qp7zN ._P-nt8._MsidO{left:-2px}._Qp7zN ._P-nt8._jm7RJ{right:-1px}._Qp7zN:first-of-type ._MsidO._ra8eL{left:0;width:2px;border-left:1px solid #fff}._Qp7zN:first-of-type ._MsidO._P-nt8{left:0}._Qp7zN:last-of-type ._jm7RJ._ra8eL{right:0;width:2px;border-right:1px solid #fff}._Qp7zN:last-of-type ._jm7RJ._P-nt8{right:0}._Qp7zN ._wiUo7{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._Qp7zN ._wiUo7 ._k-IC4{position:absolute;width:2px;right:2px;top:0;bottom:0}._Qp7zN ._wiUo7 ._k-IC4._BOwPy{background-color:#0a6ed1}._Qp7zN ._wiUo7:hover ._k-IC4:not(._BOwPy){background-color:#d9d9d9}._Qp7zN ._AYWpu{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._Qp7zN ._AYWpu._4incK{flex-direction:row-reverse;justify-content:flex-start}._Qp7zN ._AYWpu._4incK ._sKx6g{margin:1px 7px 1px 1px}._Qp7zN ._AYWpu ._0Mn4p{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._Qp7zN ._AYWpu ._sKx6g{margin:1px 1px 1px 7px;flex-shrink:0}._Qp7zN ._KeUS5{margin-left:6px;margin-right:4px;flex-shrink:0}._Qp7zN ._iY-Pg{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._Qp7zN:focus{outline:none}._Qp7zN._-wUHA.focus-visible:after,._Qp7zN._-wUHA:focus-visible:after,._Qp7zN.focus-visible:after,._Qp7zN: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}._9MDID{margin-right:6px}._cg4FL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._cg4FL[focus-within]{z-index:30}._cg4FL:focus-within{z-index:30}._jzayj{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}._jzayj ._6qejl{width:100%;padding:12px 12px 11px;overflow:hidden}._jzayj._hOUm2{background-color:#efefef;border-bottom-color:#dfdfe1}._jzayj._V-ZBF{flex-grow:1}._jzayj:focus{outline:none}._jzayj._-wUHA.focus-visible:after,._jzayj._-wUHA:focus-visible:after,._jzayj.focus-visible:after,._jzayj: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}._VG9vk{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._VG9vk._i9sF8{border-bottom-color:#d9d9d9;background-color:#fff}._QmveY{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}._QmveY._i9sF8{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._QmveY:focus input~span,._QmveY:hover input~span{border-color:#0b6ed0}._z6YM8{justify-content:flex-start}._V6BqC{justify-content:center;text-align:center}._4incK{justify-content:flex-end;text-align:right}._iJBQY{display:none}._lNqE-{opacity:0;height:0;width:0;overflow:hidden}._lNqE-,._NhOnv{position:absolute}._NhOnv{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._SyIHy{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$c);}
|
|
39
39
|
|
|
40
40
|
// TODO: Move the imported types into this file to avoid a ciruclar dependency warning.
|
|
@@ -757,6 +757,7 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
757
757
|
onKeyDown,
|
|
758
758
|
onFocus,
|
|
759
759
|
onClick,
|
|
760
|
+
restrictedWidth = false,
|
|
760
761
|
children,
|
|
761
762
|
...rest
|
|
762
763
|
} = _ref;
|
|
@@ -770,7 +771,8 @@ const AdvancedTableRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
770
771
|
onClick: hasOnRowSelect ? onClick : undefined,
|
|
771
772
|
className: classNames__default["default"](styles$b.advancedTableRow, {
|
|
772
773
|
[styles$b.hasRowAction]: hasOnRowSelect,
|
|
773
|
-
[styles$b.isSelected]: hasOnRowSelect && isSelected
|
|
774
|
+
[styles$b.isSelected]: hasOnRowSelect && isSelected,
|
|
775
|
+
[styles$b.advancedTableRowRestrictedWidth]: restrictedWidth
|
|
774
776
|
}),
|
|
775
777
|
ref: isFocusable ? ref : undefined
|
|
776
778
|
}), children);
|
|
@@ -783,6 +785,7 @@ const AdvancedTableColumnHeaders = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
783
785
|
onKeyDown,
|
|
784
786
|
onFocus,
|
|
785
787
|
children,
|
|
788
|
+
restrictedWidth = false,
|
|
786
789
|
...rest
|
|
787
790
|
} = _ref;
|
|
788
791
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
@@ -790,7 +793,9 @@ const AdvancedTableColumnHeaders = /*#__PURE__*/React.forwardRef((_ref, ref) =>
|
|
|
790
793
|
tabIndex: isFocusable ? isFocused ? 0 : -1 : undefined,
|
|
791
794
|
onKeyDown: isFocusable ? onKeyDown : undefined,
|
|
792
795
|
onFocus: isFocusable ? onFocus : undefined,
|
|
793
|
-
className: styles$b.advancedTableColumnHeaders,
|
|
796
|
+
className: classNames__default["default"](styles$b.advancedTableColumnHeaders, {
|
|
797
|
+
[styles$b.advancedTableRowRestrictedWidth]: restrictedWidth
|
|
798
|
+
}),
|
|
794
799
|
ref: ref
|
|
795
800
|
}), children);
|
|
796
801
|
});
|
|
@@ -814,7 +819,7 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
814
819
|
false: translate('unchecked'),
|
|
815
820
|
mixed: translate('mixed')
|
|
816
821
|
};
|
|
817
|
-
return labels[state];
|
|
822
|
+
return labels[String(state)];
|
|
818
823
|
}, [state]);
|
|
819
824
|
const announceToScreenReader = index.useScreenReaderAnnouncement('polite');
|
|
820
825
|
React.useEffect(() => {
|
|
@@ -828,15 +833,11 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
828
833
|
[styles$b.header]: variant === 'header'
|
|
829
834
|
}),
|
|
830
835
|
role: "presentation"
|
|
831
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
832
|
-
className: styles$b.checkboxContainer
|
|
833
|
-
}, /*#__PURE__*/React__default["default"].createElement(index.VisualCheckbox, {
|
|
836
|
+
}, /*#__PURE__*/React__default["default"].createElement(index.Check, {
|
|
834
837
|
className: styles$b.checkbox,
|
|
835
|
-
checked: state
|
|
838
|
+
checked: state,
|
|
836
839
|
disabled: isDisabled
|
|
837
|
-
})
|
|
838
|
-
className: styles$b.mixed
|
|
839
|
-
})));
|
|
840
|
+
}));
|
|
840
841
|
};
|
|
841
842
|
|
|
842
843
|
const AdvancedTableHiddenDescription = _ref => {
|
|
@@ -946,7 +947,7 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
946
947
|
};
|
|
947
948
|
|
|
948
949
|
const AdvancedTable = _ref => {
|
|
949
|
-
var
|
|
950
|
+
var _ref8;
|
|
950
951
|
let {
|
|
951
952
|
columnConfigs: externalColumnConfigs,
|
|
952
953
|
rows: rowsPropExternal,
|
|
@@ -1227,27 +1228,27 @@ const AdvancedTable = _ref => {
|
|
|
1227
1228
|
const ids = getAllLeafIds(row.rowPropReference);
|
|
1228
1229
|
const checkedIds = ids.filter(id => checkedRowIdsSet.has(id));
|
|
1229
1230
|
if (checkedIds.length === ids.length) {
|
|
1230
|
-
return
|
|
1231
|
+
return true;
|
|
1231
1232
|
}
|
|
1232
1233
|
if (checkedIds.length) {
|
|
1233
1234
|
return 'mixed';
|
|
1234
1235
|
}
|
|
1235
|
-
return
|
|
1236
|
+
return false;
|
|
1236
1237
|
};
|
|
1237
1238
|
const columnHeaderCheckboxState = React.useMemo(() => {
|
|
1238
1239
|
const visibleRows = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows;
|
|
1239
|
-
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) ===
|
|
1240
|
+
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) === true);
|
|
1240
1241
|
if (checkedRows.length === visibleRows.length) {
|
|
1241
|
-
return
|
|
1242
|
+
return true;
|
|
1242
1243
|
}
|
|
1243
1244
|
if (checkedRows.length) {
|
|
1244
1245
|
return 'mixed';
|
|
1245
1246
|
}
|
|
1246
|
-
return
|
|
1247
|
+
return false;
|
|
1247
1248
|
}, [checkedRowIdsSet, paginatedRows, rows]);
|
|
1248
1249
|
const handleColumnHeaderCheckboxToggle = () => {
|
|
1249
1250
|
setLastToggledRowId('');
|
|
1250
|
-
if (columnHeaderCheckboxState ===
|
|
1251
|
+
if (columnHeaderCheckboxState === true) {
|
|
1251
1252
|
setCheckedRowIds([]);
|
|
1252
1253
|
} else {
|
|
1253
1254
|
const visibleLeafIds = Array.from((paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows).reduce((set, _ref5) => {
|
|
@@ -1265,7 +1266,7 @@ const AdvancedTable = _ref => {
|
|
|
1265
1266
|
return;
|
|
1266
1267
|
}
|
|
1267
1268
|
const endRow = rows[endIndex];
|
|
1268
|
-
const isEndIndexChecked = getCheckboxStateForRow(endRow) ===
|
|
1269
|
+
const isEndIndexChecked = getCheckboxStateForRow(endRow) === true;
|
|
1269
1270
|
setLastToggledRowId(endRow.id);
|
|
1270
1271
|
const newIds = rows.slice(Math.min(startIndex, endIndex), Math.max(startIndex, endIndex) + 1).reduce((set, _ref6) => {
|
|
1271
1272
|
let {
|
|
@@ -1290,7 +1291,7 @@ const AdvancedTable = _ref => {
|
|
|
1290
1291
|
rowPropReference
|
|
1291
1292
|
} = row;
|
|
1292
1293
|
setLastToggledRowId(rowId);
|
|
1293
|
-
if (getCheckboxStateForRow(row) ===
|
|
1294
|
+
if (getCheckboxStateForRow(row) === true) {
|
|
1294
1295
|
const idsToUncheck = new Set(getAllLeafIds(rowPropReference));
|
|
1295
1296
|
setCheckedRowIds(checkedRowIds.filter(id => !idsToUncheck.has(id)));
|
|
1296
1297
|
} else {
|
|
@@ -1502,6 +1503,17 @@ const AdvancedTable = _ref => {
|
|
|
1502
1503
|
ref: createRef(rowIndex, columnIndex)
|
|
1503
1504
|
};
|
|
1504
1505
|
};
|
|
1506
|
+
|
|
1507
|
+
// If all columns have an assigned width we don't want extra space on the side of small tables.
|
|
1508
|
+
// This adds a class to table rows and the table header row to restrict their widths in such a case.
|
|
1509
|
+
const restrictedWidth = columnConfigs.every(_ref7 => {
|
|
1510
|
+
var _columnWidths$id2;
|
|
1511
|
+
let {
|
|
1512
|
+
id,
|
|
1513
|
+
width
|
|
1514
|
+
} = _ref7;
|
|
1515
|
+
return ((_columnWidths$id2 = columnWidths[id]) !== null && _columnWidths$id2 !== void 0 ? _columnWidths$id2 : width) !== undefined;
|
|
1516
|
+
});
|
|
1505
1517
|
return /*#__PURE__*/React__default["default"].createElement(reactDnd.DndProvider, {
|
|
1506
1518
|
backend: reactDndHtml5Backend.HTML5Backend,
|
|
1507
1519
|
context: index.canUseDOM() ? window : undefined
|
|
@@ -1544,6 +1556,7 @@ const AdvancedTable = _ref => {
|
|
|
1544
1556
|
isFocused: headerRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
1545
1557
|
onKeyDown: onKeyDown(headerRowIndex),
|
|
1546
1558
|
onFocus: onRowFocus(headerRowIndex, minColumnIndex),
|
|
1559
|
+
restrictedWidth: restrictedWidth,
|
|
1547
1560
|
ref: createRef(headerRowIndex, -1)
|
|
1548
1561
|
}, hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1549
1562
|
role: "presentation",
|
|
@@ -1563,7 +1576,7 @@ const AdvancedTable = _ref => {
|
|
|
1563
1576
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1564
1577
|
role: "rowgroup",
|
|
1565
1578
|
className: styles$b.advancedTableRowGroup
|
|
1566
|
-
}, ((
|
|
1579
|
+
}, ((_ref8 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref8 !== void 0 ? _ref8 : []).map((row, rowIndex) => {
|
|
1567
1580
|
const {
|
|
1568
1581
|
id: rowId,
|
|
1569
1582
|
data,
|
|
@@ -1611,6 +1624,8 @@ const AdvancedTable = _ref => {
|
|
|
1611
1624
|
|
|
1612
1625
|
"aria-setsize": hasExpandableRows ? depthSize : undefined,
|
|
1613
1626
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
1627
|
+
,
|
|
1628
|
+
restrictedWidth: restrictedWidth
|
|
1614
1629
|
}), hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1615
1630
|
className: classNames__default["default"](styles$b.pinnedContainer, styles$b.advancedTableRowChild),
|
|
1616
1631
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
@@ -1653,13 +1668,13 @@ const AdvancedTable = _ref => {
|
|
|
1653
1668
|
};
|
|
1654
1669
|
|
|
1655
1670
|
// TODO: move hook to separate file
|
|
1656
|
-
function useSortedRows(
|
|
1671
|
+
function useSortedRows(_ref9) {
|
|
1657
1672
|
let {
|
|
1658
1673
|
columnConfigs,
|
|
1659
1674
|
onRowsChange,
|
|
1660
1675
|
selectedSortOption,
|
|
1661
1676
|
setCurrentPage
|
|
1662
|
-
} =
|
|
1677
|
+
} = _ref9;
|
|
1663
1678
|
const columnConfigsRef = index.useLatest(columnConfigs);
|
|
1664
1679
|
const onRowsChangeRef = index.useLatest(onRowsChange);
|
|
1665
1680
|
index.useDidUpdate(() => {
|
|
@@ -1668,10 +1683,10 @@ function useSortedRows(_ref8) {
|
|
|
1668
1683
|
columnId,
|
|
1669
1684
|
index
|
|
1670
1685
|
} = selectedSortOption;
|
|
1671
|
-
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(
|
|
1686
|
+
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(_ref10 => {
|
|
1672
1687
|
let {
|
|
1673
1688
|
id
|
|
1674
|
-
} =
|
|
1689
|
+
} = _ref10;
|
|
1675
1690
|
return id === columnId;
|
|
1676
1691
|
})) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur.sortOptions) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur[index]) === null || _columnConfigsRef$cur === void 0 ? void 0 : _columnConfigsRef$cur.sort;
|
|
1677
1692
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
@@ -1682,7 +1697,7 @@ function useSortedRows(_ref8) {
|
|
|
1682
1697
|
}
|
|
1683
1698
|
|
|
1684
1699
|
// TODO: move hook to separate file
|
|
1685
|
-
function useFocusState(
|
|
1700
|
+
function useFocusState(_ref11) {
|
|
1686
1701
|
let {
|
|
1687
1702
|
headerRowIndex,
|
|
1688
1703
|
maxRowIndex,
|
|
@@ -1692,7 +1707,7 @@ function useFocusState(_ref10) {
|
|
|
1692
1707
|
pinnedUnpinnedColumnOrder,
|
|
1693
1708
|
tableRef,
|
|
1694
1709
|
currentPage
|
|
1695
|
-
} =
|
|
1710
|
+
} = _ref11;
|
|
1696
1711
|
const cellRefs = React.useRef({});
|
|
1697
1712
|
const pinnedContainersRef = React.useRef({});
|
|
1698
1713
|
const [focusedRowIndex, setFocusedRowIndex] = React.useState(headerRowIndex);
|
|
@@ -1828,9 +1843,9 @@ function mapExternalRowToInternalRows(row, depthSize, depthIndex, parentId) {
|
|
|
1828
1843
|
|
|
1829
1844
|
/* eslint-disable import/prefer-default-export */
|
|
1830
1845
|
|
|
1831
|
-
var css_248z$b = ".
|
|
1832
|
-
var styles$a = {"collapsibleSearchInput":"
|
|
1833
|
-
var stylesheet$b=".
|
|
1846
|
+
var css_248z$b = "._BAtzb{display:inline-block;width:36px;transition:width .25s ease-out}._uQf7X{width:100%}._zp-23>input{padding-right:0!important}._xdCOk>svg{fill:#515559}";
|
|
1847
|
+
var styles$a = {"collapsibleSearchInput":"_BAtzb","searchInput":"_uQf7X","searchInputCollapsed":"_zp-23","iconButton":"_xdCOk"};
|
|
1848
|
+
var stylesheet$b="._BAtzb{display:inline-block;width:36px;transition:width .25s ease-out}._uQf7X{width:100%}._zp-23>input{padding-right:0!important}._xdCOk>svg{fill:#515559}";
|
|
1834
1849
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$b);}
|
|
1835
1850
|
|
|
1836
1851
|
const CollapsibleSearchInputIconButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2652,9 +2667,9 @@ function Combobox(_ref) {
|
|
|
2652
2667
|
}, children);
|
|
2653
2668
|
}
|
|
2654
2669
|
|
|
2655
|
-
var css_248z$a = ".
|
|
2656
|
-
var styles$9 = {"loadingSpinner":"
|
|
2657
|
-
var stylesheet$a=".
|
|
2670
|
+
var css_248z$a = "._bpm57 :after{background-color:#515559!important}._z5DeP>input:focus{box-shadow:none!important;border:1px solid #898989!important}._cwol7{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._cwol7 ._I8Xpd ._zZNCq{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._cwol7 ._I8Xpd:first-child ._VIAY8{display:none}._cwol7 ._QsfgN{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._cwol7 ._QsfgN:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._cwol7 ._QsfgN:hover._AWU-Z{background-color:#e4effa}._cwol7 ._QsfgN._AWU-Z{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._cwol7 ._QsfgN:active:not(._AWU-Z){background-color:#e8e9e9}";
|
|
2671
|
+
var styles$9 = {"loadingSpinner":"_bpm57","ignoreFocusStyle":"_z5DeP","flyout":"_cwol7","group":"_I8Xpd","header":"_zZNCq","divider":"_VIAY8","option":"_QsfgN","selected":"_AWU-Z"};
|
|
2672
|
+
var stylesheet$a="._bpm57 :after{background-color:#515559!important}._z5DeP>input:focus{box-shadow:none!important;border:1px solid #898989!important}._cwol7{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._cwol7 ._I8Xpd ._zZNCq{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._cwol7 ._I8Xpd:first-child ._VIAY8{display:none}._cwol7 ._QsfgN{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._cwol7 ._QsfgN:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._cwol7 ._QsfgN:hover._AWU-Z{background-color:#e4effa}._cwol7 ._QsfgN._AWU-Z{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._cwol7 ._QsfgN:active:not(._AWU-Z){background-color:#e8e9e9}";
|
|
2658
2673
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$a);}
|
|
2659
2674
|
|
|
2660
2675
|
const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -2964,9 +2979,9 @@ function ComboboxOption(_ref) {
|
|
|
2964
2979
|
}, label);
|
|
2965
2980
|
}
|
|
2966
2981
|
|
|
2967
|
-
var css_248z$9 = ".
|
|
2968
|
-
var styles$8 = {"overlay":"
|
|
2969
|
-
var stylesheet$9=".
|
|
2982
|
+
var css_248z$9 = "._QbmvV{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._Y5-Kq{visibility:hidden}._110HO{position:fixed}";
|
|
2983
|
+
var styles$8 = {"overlay":"_QbmvV","hidden":"_Y5-Kq","anchoredToBody":"_110HO"};
|
|
2984
|
+
var stylesheet$9="._QbmvV{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._Y5-Kq{visibility:hidden}._110HO{position:fixed}";
|
|
2970
2985
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$9);}
|
|
2971
2986
|
|
|
2972
2987
|
/**
|
|
@@ -3032,9 +3047,9 @@ const useOverlay = _ref => {
|
|
|
3032
3047
|
}, [containerRef, isVisible, ignoreIds, overlayId]);
|
|
3033
3048
|
};
|
|
3034
3049
|
|
|
3035
|
-
var css_248z$8 = ".
|
|
3036
|
-
var styles$7 = {"drawer":"
|
|
3037
|
-
var stylesheet$8=".
|
|
3050
|
+
var css_248z$8 = "._Jtzgt{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._cz501{visibility:hidden}._E5F28{position:fixed}._OG3mb{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._DH7MG{padding-top:8px}._yt9sO{margin-left:12px}";
|
|
3051
|
+
var styles$7 = {"drawer":"_Jtzgt","hidden":"_cz501","anchoredToBody":"_E5F28","header":"_OG3mb","title":"_DH7MG","closeButton":"_yt9sO"};
|
|
3052
|
+
var stylesheet$8="._Jtzgt{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._cz501{visibility:hidden}._E5F28{position:fixed}._OG3mb{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._DH7MG{padding-top:8px}._yt9sO{margin-left:12px}";
|
|
3038
3053
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$8);}
|
|
3039
3054
|
|
|
3040
3055
|
const Drawer = _ref => {
|
|
@@ -3150,9 +3165,9 @@ const Drawer = _ref => {
|
|
|
3150
3165
|
}, children))), containerNode) : null;
|
|
3151
3166
|
};
|
|
3152
3167
|
|
|
3153
|
-
var css_248z$7 = ".
|
|
3154
|
-
var styles$6 = {"button":"
|
|
3155
|
-
var stylesheet$7=".
|
|
3168
|
+
var css_248z$7 = "._5iUaw{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._5iUaw:hover:not(._FhtYh){background-color:rgba(50,54,58,.08)}._5iUaw:hover:not(._FhtYh)._RZWir{border-color:#085caf;background-color:rgba(11,110,208,.04)}._5iUaw:hover:not(._FhtYh)._RZWir ._EZ-D3{color:#32363a}._5iUaw:hover:not(._FhtYh)._RZWir ._vxE-Q{fill:#32363a}._5iUaw:hover:not(._FhtYh)._RZWir ._jVvrt{fill:#085caf}._5iUaw:hover:not(._FhtYh)._RZWir ._lYQvG{background-color:rgba(11,110,208,.11)}._5iUaw:hover:not(._FhtYh)._RZWir ._lYQvG ._8q5iP{color:#085caf}._5iUaw:active:not(._FhtYh){background-color:#e8e9e9}._5iUaw:active:not(._FhtYh)._RZWir{background-color:rgba(11,110,208,.11);border-color:#0854a1}._5iUaw:active:not(._FhtYh)._RZWir ._jVvrt{fill:#0854a1}._5iUaw:active:not(._FhtYh)._RZWir ._lYQvG{background-color:rgba(11,110,208,.11)}._5iUaw:active:not(._FhtYh)._RZWir ._lYQvG ._8q5iP{color:#0854a1}._5iUaw._FhtYh{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._5iUaw._RZWir{border-color:#0b6ed0}._vxE-Q{fill:#515559;margin-right:4px}._EZ-D3{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._EZ-D3+._lYQvG{margin-left:6px}._EZ-D3._FhtYh{color:#74777a}._lYQvG{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._8q5iP{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._jVvrt{fill:#515559}._jVvrt._FhtYh,._jVvrt._FhtYh._RZWir{fill:rgba(116,119,122,.4)}._jVvrt._RZWir{fill:#0b6ed0}._jVvrt._p-QKd{transform:rotate(-180deg)}._5iUaw.focus-visible,._5iUaw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3169
|
+
var styles$6 = {"button":"_5iUaw","disabled":"_FhtYh","selected":"_RZWir","label":"_EZ-D3","lockIcon":"_vxE-Q","chevronIcon":"_jVvrt","selectedFiltersContainer":"_lYQvG","selectedFilters":"_8q5iP","open":"_p-QKd"};
|
|
3170
|
+
var stylesheet$7="._5iUaw{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._5iUaw:hover:not(._FhtYh){background-color:rgba(50,54,58,.08)}._5iUaw:hover:not(._FhtYh)._RZWir{border-color:#085caf;background-color:rgba(11,110,208,.04)}._5iUaw:hover:not(._FhtYh)._RZWir ._EZ-D3{color:#32363a}._5iUaw:hover:not(._FhtYh)._RZWir ._vxE-Q{fill:#32363a}._5iUaw:hover:not(._FhtYh)._RZWir ._jVvrt{fill:#085caf}._5iUaw:hover:not(._FhtYh)._RZWir ._lYQvG{background-color:rgba(11,110,208,.11)}._5iUaw:hover:not(._FhtYh)._RZWir ._lYQvG ._8q5iP{color:#085caf}._5iUaw:active:not(._FhtYh){background-color:#e8e9e9}._5iUaw:active:not(._FhtYh)._RZWir{background-color:rgba(11,110,208,.11);border-color:#0854a1}._5iUaw:active:not(._FhtYh)._RZWir ._jVvrt{fill:#0854a1}._5iUaw:active:not(._FhtYh)._RZWir ._lYQvG{background-color:rgba(11,110,208,.11)}._5iUaw:active:not(._FhtYh)._RZWir ._lYQvG ._8q5iP{color:#0854a1}._5iUaw._FhtYh{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._5iUaw._RZWir{border-color:#0b6ed0}._vxE-Q{fill:#515559;margin-right:4px}._EZ-D3{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._EZ-D3+._lYQvG{margin-left:6px}._EZ-D3._FhtYh{color:#74777a}._lYQvG{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._8q5iP{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._jVvrt{fill:#515559}._jVvrt._FhtYh,._jVvrt._FhtYh._RZWir{fill:rgba(116,119,122,.4)}._jVvrt._RZWir{fill:#0b6ed0}._jVvrt._p-QKd{transform:rotate(-180deg)}._5iUaw.focus-visible,._5iUaw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
3156
3171
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$7);}
|
|
3157
3172
|
|
|
3158
3173
|
const FilterAnchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -3666,15 +3681,19 @@ const Menu = _ref => {
|
|
|
3666
3681
|
const virtuoso = React.useRef(null);
|
|
3667
3682
|
const [maskHeight, setMaskHeight] = React.useState(null);
|
|
3668
3683
|
const [maskWidth, setMaskWidth] = React.useState(null);
|
|
3669
|
-
const [
|
|
3684
|
+
const [submenuDepths, setSubmenuDepths] = React.useState({});
|
|
3670
3685
|
const triggerRef = React.useRef(null);
|
|
3671
|
-
const registerSubmenu = (submenuId, submenuIsOpen) => {
|
|
3672
|
-
|
|
3673
|
-
const clone =
|
|
3686
|
+
const registerSubmenu = (submenuId, submenuIsOpen, parentSubmenuId) => {
|
|
3687
|
+
setSubmenuDepths(subs => {
|
|
3688
|
+
const clone = {
|
|
3689
|
+
...subs
|
|
3690
|
+
};
|
|
3674
3691
|
if (submenuIsOpen) {
|
|
3675
|
-
clone
|
|
3692
|
+
const parentDepth = clone[parentSubmenuId];
|
|
3693
|
+
const submenuDepth = parentDepth ? parentDepth + 1 : 2;
|
|
3694
|
+
clone[submenuId] = submenuDepth;
|
|
3676
3695
|
} else {
|
|
3677
|
-
clone
|
|
3696
|
+
delete clone[submenuId];
|
|
3678
3697
|
}
|
|
3679
3698
|
return clone;
|
|
3680
3699
|
});
|
|
@@ -3689,7 +3708,15 @@ const Menu = _ref => {
|
|
|
3689
3708
|
e.preventDefault();
|
|
3690
3709
|
}
|
|
3691
3710
|
});
|
|
3692
|
-
const openPaneDepth = React.useMemo(() =>
|
|
3711
|
+
const openPaneDepth = React.useMemo(() => {
|
|
3712
|
+
if (Object.values(submenuDepths).length) {
|
|
3713
|
+
return Math.max(...Object.values(submenuDepths));
|
|
3714
|
+
}
|
|
3715
|
+
if (open) {
|
|
3716
|
+
return 1;
|
|
3717
|
+
}
|
|
3718
|
+
return 0;
|
|
3719
|
+
}, [submenuDepths, open]);
|
|
3693
3720
|
const [searchBarConfigs, setSearchBarConfigs] = React.useState([]);
|
|
3694
3721
|
return /*#__PURE__*/React__default["default"].createElement(MenuContextProvider, {
|
|
3695
3722
|
value: {
|
|
@@ -3706,7 +3733,8 @@ const Menu = _ref => {
|
|
|
3706
3733
|
maskWidth,
|
|
3707
3734
|
setMaskWidth,
|
|
3708
3735
|
virtuoso,
|
|
3709
|
-
isVirtualizationDisabled
|
|
3736
|
+
isVirtualizationDisabled,
|
|
3737
|
+
submenuDepths
|
|
3710
3738
|
}
|
|
3711
3739
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Root, {
|
|
3712
3740
|
open: open,
|
|
@@ -3725,29 +3753,11 @@ class PointerEvent extends Event {
|
|
|
3725
3753
|
}
|
|
3726
3754
|
}
|
|
3727
3755
|
|
|
3728
|
-
var css_248z$6 = ".
|
|
3729
|
-
var styles$5 = {"buttonContainer":"
|
|
3730
|
-
var stylesheet$6=".
|
|
3756
|
+
var css_248z$6 = "._LlswR{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._LlswR>._AvNSN{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}._LlswR>._AvNSN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._LlswR>._AvNSN.focus-visible,._LlswR>._AvNSN:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._LlswR>._AvNSN+._SJSam{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._LlswR>._AvNSN[data-state=open]+._SJSam{transform:rotate(-180deg) translateY(50%)}._LlswR>._AvNSN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._LlswR>._AvNSN[aria-disabled=true]+._SJSam{fill:#515559;opacity:.4}._HEhyL>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;max-width:350px;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;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._HEhyL>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._86MOw{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._86MOw ._ittJ4{height:100%;overflow-y:scroll}._86MOw._P-55v{margin-left:30px;opacity:0}._86MOw._nl0QJ{margin-left:-30px}._zd75j{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._zd75j._RMJIu{cursor:unset}._zd75j ._PFGit{fill:#32363a;margin-right:4px}._zd75j:focus,._zd75j:hover:not(._zd75j._RMJIu){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zd75j[aria-disabled=true]{cursor:not-allowed;opacity:.65}._zd75j._mbr2V{padding-right:32px}._zd75j._mbr2V ._SJSam{position:absolute;height:100%;right:3px;fill:#515559}._zd75j._0N8-d{pointer-events:none}._UW3EA{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._UW3EA._ljFwC{padding-top:52px}._3J1dN{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._v-jxO{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._v-jxO._nl0QJ{opacity:0}._v-jxO._nl0QJ>._JfT3o{margin-left:-30px}._v-jxO._P-55v{opacity:0}._v-jxO._P-55v>._JfT3o{margin-left:30px}._v-jxO>._JfT3o{transition:margin-left .35s;width:100%}._v-jxO._0N8-d{pointer-events:none}body.keyboard-user ._zd75j:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
3757
|
+
var styles$5 = {"buttonContainer":"_LlswR","button":"_AvNSN","rightIcon":"_SJSam","maskContainer":"_HEhyL","flyout":"_86MOw","scrollContainer":"_ittJ4","animatedRight":"_P-55v","animatedLeft":"_nl0QJ","menuItem":"_zd75j","noItems":"_RMJIu","backIcon":"_PFGit","subMenu":"_mbr2V","unresponsive":"_0N8-d","stickyBox":"_UW3EA","isSearchable":"_ljFwC","searchBoxesContainer":"_3J1dN","searchBox":"_v-jxO","searchInput":"_JfT3o"};
|
|
3758
|
+
var stylesheet$6="._LlswR{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._LlswR>._AvNSN{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}._LlswR>._AvNSN:hover:not([aria-disabled=true]){background-color:#f5f5f5}._LlswR>._AvNSN.focus-visible,._LlswR>._AvNSN:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._LlswR>._AvNSN+._SJSam{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._LlswR>._AvNSN[data-state=open]+._SJSam{transform:rotate(-180deg) translateY(50%)}._LlswR>._AvNSN[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._LlswR>._AvNSN[aria-disabled=true]+._SJSam{fill:#515559;opacity:.4}._HEhyL>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;max-width:350px;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;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._HEhyL>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._86MOw{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._86MOw ._ittJ4{height:100%;overflow-y:scroll}._86MOw._P-55v{margin-left:30px;opacity:0}._86MOw._nl0QJ{margin-left:-30px}._zd75j{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._zd75j._RMJIu{cursor:unset}._zd75j ._PFGit{fill:#32363a;margin-right:4px}._zd75j:focus,._zd75j:hover:not(._zd75j._RMJIu){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._zd75j[aria-disabled=true]{cursor:not-allowed;opacity:.65}._zd75j._mbr2V{padding-right:32px}._zd75j._mbr2V ._SJSam{position:absolute;height:100%;right:3px;fill:#515559}._zd75j._0N8-d{pointer-events:none}._UW3EA{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._UW3EA._ljFwC{padding-top:52px}._3J1dN{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._v-jxO{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._v-jxO._nl0QJ{opacity:0}._v-jxO._nl0QJ>._JfT3o{margin-left:-30px}._v-jxO._P-55v{opacity:0}._v-jxO._P-55v>._JfT3o{margin-left:30px}._v-jxO>._JfT3o{transition:margin-left .35s;width:100%}._v-jxO._0N8-d{pointer-events:none}body.keyboard-user ._zd75j:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
3731
3759
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$6);}
|
|
3732
3760
|
|
|
3733
|
-
/* eslint-disable import/prefer-default-export */
|
|
3734
|
-
const DATA_TESTID_SUFFIXES$1 = {
|
|
3735
|
-
MENU_PANE: 'menupane',
|
|
3736
|
-
MENU_ITEM: 'menuitem',
|
|
3737
|
-
MENU_BUTTON: 'menubutton',
|
|
3738
|
-
MENU_SEARCH: 'menusearch',
|
|
3739
|
-
MENU_BACK: 'menuback'
|
|
3740
|
-
};
|
|
3741
|
-
const KEYS$1 = {
|
|
3742
|
-
OPEN_SUBMENU: ['ArrowRight', 'Enter', ' '],
|
|
3743
|
-
CLOSE_SUBMENU: ['ArrowLeft'],
|
|
3744
|
-
NAVIGATE_UP: ['ArrowUp'],
|
|
3745
|
-
NAVIGATE_DOWN: ['ArrowDown'],
|
|
3746
|
-
NAVIGATE_TOP: ['Home'],
|
|
3747
|
-
NAVIIGATE_BOTTOM: ['End'],
|
|
3748
|
-
IGNORED_BY_SEARCH_INPUT: ['Tab']
|
|
3749
|
-
};
|
|
3750
|
-
|
|
3751
3761
|
/* eslint-disable import/prefer-default-export */
|
|
3752
3762
|
const DATA_TESTID_SUFFIXES = {
|
|
3753
3763
|
SELECT_PANE: 'selectpane',
|
|
@@ -3812,7 +3822,7 @@ const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref
|
|
|
3812
3822
|
}),
|
|
3813
3823
|
asChild: asChild,
|
|
3814
3824
|
ref: index.mergeRefs(triggerRef, ref),
|
|
3815
|
-
"data-testid": index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BUTTON : DATA_TESTID_SUFFIXES
|
|
3825
|
+
"data-testid": index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BUTTON : index.DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
3816
3826
|
}), children), !asChild && /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3817
3827
|
className: styles$5.rightIcon,
|
|
3818
3828
|
"aria-hidden": "true"
|
|
@@ -3897,7 +3907,7 @@ function usePaneSearch(_ref) {
|
|
|
3897
3907
|
menuParentDataTestId,
|
|
3898
3908
|
id,
|
|
3899
3909
|
flyoutRef,
|
|
3900
|
-
children,
|
|
3910
|
+
children = [],
|
|
3901
3911
|
isSearchFilteringDisabled,
|
|
3902
3912
|
backButtonRef,
|
|
3903
3913
|
closeSubmenu,
|
|
@@ -3905,7 +3915,6 @@ function usePaneSearch(_ref) {
|
|
|
3905
3915
|
} = _ref;
|
|
3906
3916
|
const withinSelect = useSelectContext(true) !== null;
|
|
3907
3917
|
const [internalSearchValue, setSearchValue] = index.useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
3908
|
-
const [zeroSearchResults, setZeroSearchResults] = React.useState();
|
|
3909
3918
|
const {
|
|
3910
3919
|
translate
|
|
3911
3920
|
} = index.useTranslation();
|
|
@@ -3923,7 +3932,6 @@ function usePaneSearch(_ref) {
|
|
|
3923
3932
|
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
|
|
3924
3933
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
3925
3934
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
3926
|
-
React.useEffect(() => setZeroSearchResults((items === null || items === void 0 ? void 0 : items.filter(item => item.element.current).length) === 0), [items, internalSearchValue]);
|
|
3927
3935
|
const searchRef = React.useRef(null);
|
|
3928
3936
|
const searchInput = (_searchRef$current$qu = (_searchRef$current = searchRef.current) === null || _searchRef$current === void 0 ? void 0 : _searchRef$current.querySelector('input')) !== null && _searchRef$current$qu !== void 0 ? _searchRef$current$qu : null;
|
|
3929
3937
|
const getFirstVisibleItem = () => {
|
|
@@ -3937,7 +3945,7 @@ function usePaneSearch(_ref) {
|
|
|
3937
3945
|
);
|
|
3938
3946
|
};
|
|
3939
3947
|
index.useEventListener(flyoutRef, 'keydown', e => {
|
|
3940
|
-
if (KEYS
|
|
3948
|
+
if (index.KEYS.NAVIGATE_UP.includes(e.key) && e.target === getFirstVisibleItem() || index.KEYS.NAVIGATE_DOWN.includes(e.key) && e.target === getLastVisibleItem()) {
|
|
3941
3949
|
searchInput === null || searchInput === void 0 || searchInput.focus();
|
|
3942
3950
|
}
|
|
3943
3951
|
}, {
|
|
@@ -3948,7 +3956,7 @@ function usePaneSearch(_ref) {
|
|
|
3948
3956
|
index.useEventListener(searchInput, 'keydown', e => {
|
|
3949
3957
|
var _e$target;
|
|
3950
3958
|
lastestKeyPressedInSearchInput.current = e.key;
|
|
3951
|
-
if ([...KEYS
|
|
3959
|
+
if ([...index.KEYS.NAVIGATE_DOWN, ...index.KEYS.NAVIGATE_TOP].includes(e.key)) {
|
|
3952
3960
|
// prevent scrolling
|
|
3953
3961
|
e.preventDefault();
|
|
3954
3962
|
if (isVirtualized) {
|
|
@@ -3957,7 +3965,7 @@ function usePaneSearch(_ref) {
|
|
|
3957
3965
|
var _getFirstVisibleItem;
|
|
3958
3966
|
(_getFirstVisibleItem = getFirstVisibleItem()) === null || _getFirstVisibleItem === void 0 || _getFirstVisibleItem.focus();
|
|
3959
3967
|
}
|
|
3960
|
-
} else if ([...KEYS
|
|
3968
|
+
} else if ([...index.KEYS.NAVIGATE_UP, ...index.KEYS.NAVIIGATE_BOTTOM].includes(e.key)) {
|
|
3961
3969
|
// prevent scrolling
|
|
3962
3970
|
e.preventDefault();
|
|
3963
3971
|
if (isVirtualized) {
|
|
@@ -3966,14 +3974,14 @@ function usePaneSearch(_ref) {
|
|
|
3966
3974
|
var _getLastVisibleItem;
|
|
3967
3975
|
(_getLastVisibleItem = getLastVisibleItem()) === null || _getLastVisibleItem === void 0 || _getLastVisibleItem.focus();
|
|
3968
3976
|
}
|
|
3969
|
-
} else if (KEYS
|
|
3977
|
+
} else if (index.KEYS.CLOSE_SUBMENU.includes(e.key) && ((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
|
|
3970
3978
|
closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
|
|
3971
|
-
} else if (KEYS
|
|
3979
|
+
} else if (index.KEYS.IGNORED_BY_SEARCH_INPUT.includes(e.key)) {
|
|
3972
3980
|
e.preventDefault();
|
|
3973
3981
|
}
|
|
3974
3982
|
});
|
|
3975
3983
|
index.useEventListener(searchInput, 'blur', () => {
|
|
3976
|
-
const refocus = ![...KEYS
|
|
3984
|
+
const refocus = ![...index.KEYS.NAVIGATE_DOWN, ...index.KEYS.NAVIGATE_UP, ...index.KEYS.NAVIGATE_TOP, ...index.KEYS.NAVIIGATE_BOTTOM].includes(lastestKeyPressedInSearchInput.current) && !animatedLeft && !animatedRight && searchInput;
|
|
3977
3985
|
lastestKeyPressedInSearchInput.current = undefined;
|
|
3978
3986
|
if (refocus) {
|
|
3979
3987
|
searchInput.focus();
|
|
@@ -3998,7 +4006,7 @@ function usePaneSearch(_ref) {
|
|
|
3998
4006
|
isInteractive: !animatedLeft && !animatedRight,
|
|
3999
4007
|
animatedLeft,
|
|
4000
4008
|
animatedRight,
|
|
4001
|
-
dataTestId: menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4009
|
+
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),
|
|
4002
4010
|
setSearchValue,
|
|
4003
4011
|
ref: searchRef,
|
|
4004
4012
|
id,
|
|
@@ -4025,7 +4033,7 @@ function usePaneSearch(_ref) {
|
|
|
4025
4033
|
// Omitted dependencies because we only want this to run on unmount
|
|
4026
4034
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4027
4035
|
[]);
|
|
4028
|
-
const noSearchResultsNode =
|
|
4036
|
+
const noSearchResultsNode = filteredChildren.length === 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4029
4037
|
className: classNames__default["default"](styles$5.menuItem, styles$5.noItems),
|
|
4030
4038
|
"aria-live": "assertive"
|
|
4031
4039
|
}, noMatchesText);
|
|
@@ -4051,11 +4059,11 @@ const useMutationObserver = (target, options, onMutate) => React.useEffect(() =>
|
|
|
4051
4059
|
return () => observer.disconnect();
|
|
4052
4060
|
}, [target, options, onMutate]);
|
|
4053
4061
|
|
|
4054
|
-
const useCSSVariable = function (name, value) {
|
|
4055
|
-
let
|
|
4056
|
-
React.useEffect(() => {
|
|
4057
|
-
|
|
4058
|
-
}, [value, name, ...
|
|
4062
|
+
const useCSSVariable = function (name, value, scope) {
|
|
4063
|
+
let additionalDependencies = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
4064
|
+
return React.useEffect(() => {
|
|
4065
|
+
scope === null || scope === void 0 || scope.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
4066
|
+
}, [value, name, scope, ...additionalDependencies]);
|
|
4059
4067
|
};
|
|
4060
4068
|
|
|
4061
4069
|
const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -4085,9 +4093,9 @@ const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4085
4093
|
const childCount = allSelectItemChildren.length;
|
|
4086
4094
|
let result = 'mixed';
|
|
4087
4095
|
if (selectedChildCount === childCount) {
|
|
4088
|
-
result =
|
|
4096
|
+
result = true;
|
|
4089
4097
|
} else if (selectedChildCount === 0) {
|
|
4090
|
-
result =
|
|
4098
|
+
result = false;
|
|
4091
4099
|
}
|
|
4092
4100
|
return result;
|
|
4093
4101
|
}, [allSelectItemChildren, selectedValues]);
|
|
@@ -4099,7 +4107,7 @@ const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4099
4107
|
setSelectedValues === null || setSelectedValues === void 0 || setSelectedValues(previouslySelectedValues => {
|
|
4100
4108
|
// exclude duplicates
|
|
4101
4109
|
const prevSet = new Set(previouslySelectedValues);
|
|
4102
|
-
if (checkedState ===
|
|
4110
|
+
if (checkedState === true) {
|
|
4103
4111
|
allSelectItemChildren.forEach(_ref3 => {
|
|
4104
4112
|
let [value] = _ref3;
|
|
4105
4113
|
return prevSet.delete(value);
|
|
@@ -4140,9 +4148,9 @@ const SubSelect = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4140
4148
|
}, /*#__PURE__*/React__default["default"].createElement(SubMenu$1, sharedSubMenuProps, children));
|
|
4141
4149
|
});
|
|
4142
4150
|
|
|
4143
|
-
var css_248z$5 = ".
|
|
4144
|
-
var styles$4 = {"isInvalid":"
|
|
4145
|
-
var stylesheet$5=".
|
|
4151
|
+
var css_248z$5 = "._JEVrK{box-shadow:inset 0 0 0 1px #b00!important}._gWGm3{margin-right:7px}._3EKx-{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4152
|
+
var styles$4 = {"isInvalid":"_JEVrK","checkbox":"_gWGm3","selectedItem":"_3EKx-"};
|
|
4153
|
+
var stylesheet$5="._JEVrK{box-shadow:inset 0 0 0 1px #b00!important}._gWGm3{margin-right:7px}._3EKx-{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4146
4154
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$5);}
|
|
4147
4155
|
|
|
4148
4156
|
const SelectItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -4174,10 +4182,10 @@ const SelectItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4174
4182
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4175
4183
|
"aria-selected": isSelected,
|
|
4176
4184
|
role: "treeitem"
|
|
4177
|
-
}, multiselect ? /*#__PURE__*/React__default["default"].createElement(
|
|
4178
|
-
|
|
4185
|
+
}, multiselect ? /*#__PURE__*/React__default["default"].createElement(index.Check, {
|
|
4186
|
+
checked: isSelected,
|
|
4179
4187
|
className: styles$4.checkbox,
|
|
4180
|
-
|
|
4188
|
+
disabled: isDisabled
|
|
4181
4189
|
}) : null, children !== null && children !== void 0 ? children : label));
|
|
4182
4190
|
});
|
|
4183
4191
|
|
|
@@ -4232,6 +4240,7 @@ const PaneChildren = _ref => {
|
|
|
4232
4240
|
} = (_useSelectContext = useSelectContext(true)) !== null && _useSelectContext !== void 0 ? _useSelectContext : {};
|
|
4233
4241
|
const {
|
|
4234
4242
|
closeSubmenu: containedWithinSubpane,
|
|
4243
|
+
setIsVirtualizationReady,
|
|
4235
4244
|
isVirtualized
|
|
4236
4245
|
} = usePaneContext();
|
|
4237
4246
|
const containerRef = React.useRef(null);
|
|
@@ -4241,9 +4250,9 @@ const PaneChildren = _ref => {
|
|
|
4241
4250
|
style: {
|
|
4242
4251
|
maxHeight: "calc(var(--flyout-max-height) -\n ".concat((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetTop, "px -\n var(--flyout-bottom-padding))")
|
|
4243
4252
|
}
|
|
4244
|
-
}, isVirtualized ? /*#__PURE__*/React__default["default"].createElement(reactVirtuoso.Virtuoso, {
|
|
4253
|
+
}, isVirtualized ? /*#__PURE__*/React__default["default"].createElement(reactVirtuoso.Virtuoso, _extends__default["default"]({
|
|
4245
4254
|
ref: virtuoso,
|
|
4246
|
-
|
|
4255
|
+
startReached: () => setIsVirtualizationReady === null || setIsVirtualizationReady === void 0 ? void 0 : setIsVirtualizationReady(true),
|
|
4247
4256
|
customScrollParent: (_containerRef$current2 = containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : undefined,
|
|
4248
4257
|
data: Array.isArray(children) ? children : [children],
|
|
4249
4258
|
itemContent: (index, child) => ! /*#__PURE__*/React__default["default"].isValidElement(child) ? null : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
@@ -4251,7 +4260,7 @@ const PaneChildren = _ref => {
|
|
|
4251
4260
|
virtualIndex: index + (multiselect && showSelectedItemsPane && !containedWithinSubpane ? 1 : 0)
|
|
4252
4261
|
}
|
|
4253
4262
|
}, child)
|
|
4254
|
-
}) : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
4263
|
+
}, index.VIRTUOSO_PROPS)) : /*#__PURE__*/React__default["default"].createElement(ItemContextProvider, {
|
|
4255
4264
|
value: {
|
|
4256
4265
|
virtualIndex: undefined
|
|
4257
4266
|
}
|
|
@@ -4263,7 +4272,7 @@ const useIsVirtualized = function (children) {
|
|
|
4263
4272
|
return React.useMemo(() => !isVirtualizationDisabled && React__default["default"].Children.count(children) >= 25, [children, isVirtualizationDisabled]);
|
|
4264
4273
|
};
|
|
4265
4274
|
|
|
4266
|
-
const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
4275
|
+
const useMaskDimensions = (target, animatedLeft, paneDepth, children, isVirtualized, isVirtualizationReady) => {
|
|
4267
4276
|
var _process$env;
|
|
4268
4277
|
const {
|
|
4269
4278
|
setMaskHeight,
|
|
@@ -4272,21 +4281,19 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
4272
4281
|
openPaneDepth,
|
|
4273
4282
|
open
|
|
4274
4283
|
} = useMenuContext();
|
|
4275
|
-
const
|
|
4284
|
+
const auto = 'auto';
|
|
4285
|
+
const updateMaskDimensions = function () {
|
|
4286
|
+
let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
4276
4287
|
if (target) {
|
|
4277
|
-
setMaskHeight(target.clientHeight);
|
|
4278
|
-
setMaskWidth(target.clientWidth);
|
|
4288
|
+
setMaskHeight(reset ? auto : target.clientHeight);
|
|
4289
|
+
setMaskWidth(reset ? auto : target.clientWidth);
|
|
4279
4290
|
}
|
|
4280
4291
|
};
|
|
4281
|
-
const auto = 'auto';
|
|
4282
4292
|
|
|
4283
|
-
// resets dimensions on menu close
|
|
4293
|
+
// resets dimensions on menu close so that the top-level pane reopens immediately, rather than animating
|
|
4284
4294
|
React.useEffect(() => {
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
setMaskWidth(auto);
|
|
4288
|
-
}
|
|
4289
|
-
}, [open, setMaskHeight, setMaskWidth]);
|
|
4295
|
+
updateMaskDimensions(!open);
|
|
4296
|
+
}, [open]);
|
|
4290
4297
|
|
|
4291
4298
|
// handles async children adjustments by consumer
|
|
4292
4299
|
index.useDidUpdate(() => {
|
|
@@ -4312,11 +4319,11 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
4312
4319
|
});
|
|
4313
4320
|
|
|
4314
4321
|
// determines if the mask is ready
|
|
4315
|
-
return maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test';
|
|
4322
|
+
return (maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test') && (isVirtualized ? isVirtualizationReady : true);
|
|
4316
4323
|
};
|
|
4317
4324
|
|
|
4318
4325
|
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4319
|
-
var _flyoutRef$current$pa, _flyoutRef$current, _flyoutRef$current2;
|
|
4326
|
+
var _flyoutRef$current$pa, _flyoutRef$current, _process$env, _flyoutRef$current2;
|
|
4320
4327
|
let {
|
|
4321
4328
|
placement,
|
|
4322
4329
|
children,
|
|
@@ -4326,6 +4333,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4326
4333
|
isSearchFilteringDisabled = false,
|
|
4327
4334
|
className,
|
|
4328
4335
|
zIndex = 1000,
|
|
4336
|
+
style,
|
|
4329
4337
|
...rest
|
|
4330
4338
|
} = _ref;
|
|
4331
4339
|
const [items, setItems] = React.useState([]);
|
|
@@ -4343,9 +4351,48 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4343
4351
|
return (_placement$split = placement === null || placement === void 0 || (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
|
|
4344
4352
|
}, [placement]);
|
|
4345
4353
|
const thisPanesDepth = 1;
|
|
4346
|
-
const paneMaxHeight =
|
|
4354
|
+
const paneMaxHeight = React.useMemo(() => {
|
|
4355
|
+
let maxHeightString = '';
|
|
4356
|
+
const defaultPaneMaxHeight = 350;
|
|
4357
|
+
|
|
4358
|
+
// check `style`
|
|
4359
|
+
if (style !== null && style !== void 0 && style.maxHeight) {
|
|
4360
|
+
if (typeof style.maxHeight === 'number') {
|
|
4361
|
+
return style.maxHeight;
|
|
4362
|
+
}
|
|
4363
|
+
if (typeof style.maxHeight === 'string') {
|
|
4364
|
+
maxHeightString = style.maxHeight;
|
|
4365
|
+
}
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
// check `className`
|
|
4369
|
+
if (!maxHeightString && flyoutRef.current) {
|
|
4370
|
+
const computedString = window.getComputedStyle(flyoutRef.current).maxHeight;
|
|
4371
|
+
if (computedString !== 'none') {
|
|
4372
|
+
maxHeightString = computedString;
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
if (!maxHeightString) {
|
|
4376
|
+
return defaultPaneMaxHeight;
|
|
4377
|
+
}
|
|
4378
|
+
const maxHeightStringAsNumber = Number(maxHeightString);
|
|
4379
|
+
|
|
4380
|
+
// if it's not suffixed
|
|
4381
|
+
if (!Number.isNaN(maxHeightStringAsNumber)) {
|
|
4382
|
+
return maxHeightStringAsNumber;
|
|
4383
|
+
}
|
|
4384
|
+
|
|
4385
|
+
// if it is suffixed
|
|
4386
|
+
if (maxHeightString.slice(-2) === 'px' && !Number.isNaN(Number(maxHeightString.slice(0, -2)))) {
|
|
4387
|
+
return Number(maxHeightString.slice(0, -2));
|
|
4388
|
+
}
|
|
4389
|
+
return defaultPaneMaxHeight;
|
|
4390
|
+
// `className` impacts computed style
|
|
4391
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4392
|
+
}, [style, className]);
|
|
4347
4393
|
const paneBottomPadding = 4;
|
|
4348
4394
|
const maskContainerId = index.useId();
|
|
4395
|
+
const maskContainer = document.getElementById(maskContainerId);
|
|
4349
4396
|
const [transform, setTransform] = React.useState('');
|
|
4350
4397
|
const target = (_flyoutRef$current$pa = (_flyoutRef$current = flyoutRef.current) === null || _flyoutRef$current === void 0 ? void 0 : _flyoutRef$current.parentNode) !== null && _flyoutRef$current$pa !== void 0 ? _flyoutRef$current$pa : undefined;
|
|
4351
4398
|
const {
|
|
@@ -4359,8 +4406,9 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4359
4406
|
isVirtualizationDisabled
|
|
4360
4407
|
} = useMenuContext();
|
|
4361
4408
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
4409
|
+
const [isVirtualizationReady, setIsVirtualizationReady] = React.useState(typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test');
|
|
4362
4410
|
const animatedLeft = React.useMemo(() => openPaneDepth > thisPanesDepth, [openPaneDepth]);
|
|
4363
|
-
const dataTestId = index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4411
|
+
const dataTestId = index.getSubDataTestId(rootDataTestId, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
4364
4412
|
const {
|
|
4365
4413
|
noSearchResultsNode,
|
|
4366
4414
|
onInteractOutside,
|
|
@@ -4383,7 +4431,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4383
4431
|
const {
|
|
4384
4432
|
isFocusVisible
|
|
4385
4433
|
} = interactions.useFocusVisible();
|
|
4386
|
-
const maskIsReady = useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
4434
|
+
const maskIsReady = useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
|
|
4387
4435
|
index.useDidUpdate(() => {
|
|
4388
4436
|
if (maskIsReady && isFocusVisible) {
|
|
4389
4437
|
items[0].element.current.focus();
|
|
@@ -4395,19 +4443,13 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4395
4443
|
if (!rect) {
|
|
4396
4444
|
return 'bottom';
|
|
4397
4445
|
}
|
|
4398
|
-
let maxHeight = paneMaxHeight;
|
|
4399
|
-
if (flyoutRef.current) {
|
|
4400
|
-
const computedString = window.getComputedStyle(flyoutRef.current).maxHeight.slice(0, -2);
|
|
4401
|
-
if (computedString !== '' && !Number.isNaN(+computedString)) {
|
|
4402
|
-
maxHeight = +computedString;
|
|
4403
|
-
}
|
|
4404
|
-
}
|
|
4405
4446
|
const distanceToBottom = window.innerHeight - rect.bottom;
|
|
4406
4447
|
const distanceToTop = rect.top;
|
|
4407
|
-
|
|
4448
|
+
const paddedMaxHeight = paneMaxHeight + paneBottomPadding * 2;
|
|
4449
|
+
if (distanceToBottom > paddedMaxHeight) {
|
|
4408
4450
|
return 'bottom';
|
|
4409
4451
|
}
|
|
4410
|
-
if (distanceToTop >
|
|
4452
|
+
if (distanceToTop > paddedMaxHeight) {
|
|
4411
4453
|
return 'top';
|
|
4412
4454
|
}
|
|
4413
4455
|
return 'bottom';
|
|
@@ -4418,11 +4460,11 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4418
4460
|
|
|
4419
4461
|
// We use the top-level Radix container as a mask. Radix does not expose this container to consumers, except through CSS.
|
|
4420
4462
|
// These hooks dynamically update the style of that container using CSS variables.
|
|
4421
|
-
useCSSVariable('--mask-z-index', String(zIndex),
|
|
4422
|
-
useCSSVariable('--mask-width', Number.isNaN(Number(maskWidth)) ? "".concat(maskWidth) : "".concat(maskWidth, "px"));
|
|
4423
|
-
useCSSVariable('--mask-height', Number.isNaN(Number(maskHeight)) ? "".concat(maskHeight) : "".concat(maskHeight, "px"));
|
|
4424
|
-
useCSSVariable('--flyout-max-height', "".concat(paneMaxHeight, "px"));
|
|
4425
|
-
useCSSVariable('--flyout-bottom-padding', "".concat(paneBottomPadding, "px"));
|
|
4463
|
+
useCSSVariable('--mask-z-index', String(zIndex), maskContainer);
|
|
4464
|
+
useCSSVariable('--mask-width', Number.isNaN(Number(maskWidth)) ? "".concat(maskWidth) : "".concat(maskWidth, "px"), maskContainer);
|
|
4465
|
+
useCSSVariable('--mask-height', Number.isNaN(Number(maskHeight)) ? "".concat(maskHeight) : "".concat(maskHeight, "px"), maskContainer);
|
|
4466
|
+
useCSSVariable('--flyout-max-height', "".concat(paneMaxHeight, "px"), maskContainer);
|
|
4467
|
+
useCSSVariable('--flyout-bottom-padding', "".concat(paneBottomPadding, "px"), maskContainer);
|
|
4426
4468
|
useOverlay({
|
|
4427
4469
|
isVisible: open,
|
|
4428
4470
|
ignoreIds: [maskContainerId],
|
|
@@ -4446,7 +4488,8 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4446
4488
|
zIndex,
|
|
4447
4489
|
focusVirtualBoundary,
|
|
4448
4490
|
isVirtualized,
|
|
4449
|
-
maskIsReady
|
|
4491
|
+
maskIsReady,
|
|
4492
|
+
setIsVirtualizationReady
|
|
4450
4493
|
}
|
|
4451
4494
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Portal, {
|
|
4452
4495
|
container: portalTarget || undefined
|
|
@@ -4459,6 +4502,7 @@ const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4459
4502
|
opacity: maskIsReady ? 1 : 0
|
|
4460
4503
|
}
|
|
4461
4504
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Content, _extends__default["default"]({}, rest, {
|
|
4505
|
+
style: style,
|
|
4462
4506
|
onCloseAutoFocus: () => {
|
|
4463
4507
|
var _triggerRef$current2;
|
|
4464
4508
|
return triggerRef === null || triggerRef === void 0 || (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.focus();
|
|
@@ -4533,7 +4577,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4533
4577
|
} = interactions.useFocusVisible({
|
|
4534
4578
|
isTextInput: true
|
|
4535
4579
|
});
|
|
4536
|
-
const dataTestId = index.getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4580
|
+
const dataTestId = index.getSubDataTestId(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_ITEM : index.DATA_TESTID_SUFFIXES.MENU_ITEM), String(index$1));
|
|
4537
4581
|
const handleFocus = () => {
|
|
4538
4582
|
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
4539
4583
|
var _stickyBoxRef$current, _stickyBoxRef$current2;
|
|
@@ -4559,12 +4603,12 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4559
4603
|
e.preventDefault();
|
|
4560
4604
|
return;
|
|
4561
4605
|
}
|
|
4562
|
-
if (KEYS
|
|
4606
|
+
if (index.KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
4563
4607
|
closeSubmenu === null || closeSubmenu === void 0 || closeSubmenu(e);
|
|
4564
|
-
} else if (paneIsVirtualized && KEYS
|
|
4608
|
+
} else if (paneIsVirtualized && index.KEYS.NAVIGATE_TOP.includes(e.key)) {
|
|
4565
4609
|
e.preventDefault();
|
|
4566
4610
|
focusVirtualBoundary('top');
|
|
4567
|
-
} else if (paneIsVirtualized && KEYS
|
|
4611
|
+
} else if (paneIsVirtualized && index.KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
4568
4612
|
e.preventDefault();
|
|
4569
4613
|
focusVirtualBoundary('bottom');
|
|
4570
4614
|
}
|
|
@@ -4588,6 +4632,7 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4588
4632
|
var MenuItem$1 = MenuItem;
|
|
4589
4633
|
|
|
4590
4634
|
const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4635
|
+
var _submenuDepths$intern;
|
|
4591
4636
|
let {
|
|
4592
4637
|
children,
|
|
4593
4638
|
label,
|
|
@@ -4608,7 +4653,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4608
4653
|
multiselect,
|
|
4609
4654
|
subSelectPaneProps,
|
|
4610
4655
|
isSelectedItems,
|
|
4611
|
-
triggerCheckedState =
|
|
4656
|
+
triggerCheckedState = false,
|
|
4612
4657
|
onTriggerCheckboxSelect
|
|
4613
4658
|
} = selectContext !== null && selectContext !== void 0 ? selectContext : {};
|
|
4614
4659
|
const {
|
|
@@ -4627,19 +4672,21 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4627
4672
|
closeSubmenu: closeSubmenuContainingTrigger,
|
|
4628
4673
|
zIndex: paneContainingTriggerZIndex,
|
|
4629
4674
|
focusVirtualBoundary: focusVirtualBoundaryWithinPaneContainingTrigger,
|
|
4630
|
-
isVirtualized: paneContainingTriggerIsVirtualized
|
|
4675
|
+
isVirtualized: paneContainingTriggerIsVirtualized,
|
|
4676
|
+
internalId: parentId
|
|
4631
4677
|
} = usePaneContext(triggerRef);
|
|
4632
4678
|
const triggerIndex = React.useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
|
|
4633
4679
|
const {
|
|
4634
4680
|
openPaneDepth: totalOpenPaneDepth,
|
|
4635
4681
|
registerSubmenu,
|
|
4636
|
-
isVirtualizationDisabled
|
|
4682
|
+
isVirtualizationDisabled,
|
|
4683
|
+
submenuDepths
|
|
4637
4684
|
} = useMenuContext();
|
|
4638
4685
|
const {
|
|
4639
4686
|
isFocusVisible
|
|
4640
4687
|
} = interactions.useFocusVisible();
|
|
4641
4688
|
const zIndex = React.useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
4642
|
-
const thisPanesDepth =
|
|
4689
|
+
const thisPanesDepth = (_submenuDepths$intern = submenuDepths[internalId]) !== null && _submenuDepths$intern !== void 0 ? _submenuDepths$intern : Number.MAX_SAFE_INTEGER;
|
|
4643
4690
|
const [isPaneInDOM, setIsPaneInDOM] = React.useState(false);
|
|
4644
4691
|
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = React.useState(false);
|
|
4645
4692
|
const [isTransitioningFromRight, setIsTransitioningFromRight] = React.useState(false);
|
|
@@ -4649,7 +4696,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4649
4696
|
const closeThisSubmenu = e => {
|
|
4650
4697
|
// prevent closing the entire menu, and Radix keyboard navigation
|
|
4651
4698
|
e.preventDefault();
|
|
4652
|
-
registerSubmenu(internalId, false);
|
|
4699
|
+
registerSubmenu(internalId, false, parentId);
|
|
4653
4700
|
};
|
|
4654
4701
|
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
4655
4702
|
const {
|
|
@@ -4673,8 +4720,8 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4673
4720
|
isVirtualized
|
|
4674
4721
|
});
|
|
4675
4722
|
const focusVirtualBoundaryInPane = useFocusVirtualBoundary(items, backButtonRef);
|
|
4676
|
-
const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4677
|
-
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES
|
|
4723
|
+
const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BACK : index.DATA_TESTID_SUFFIXES.MENU_BACK);
|
|
4724
|
+
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : index.DATA_TESTID_SUFFIXES.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : index.DATA_TESTID_SUFFIXES.MENU_ITEM);
|
|
4678
4725
|
index.useDidUpdate(() => {
|
|
4679
4726
|
if (isPaneInDOM) {
|
|
4680
4727
|
setIsTransitioningFromRight(true);
|
|
@@ -4682,14 +4729,14 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4682
4729
|
setIsFrameAfterPaneAddedToDOM(true);
|
|
4683
4730
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
4684
4731
|
}
|
|
4685
|
-
registerSubmenu(internalId, isPaneInDOM);
|
|
4732
|
+
registerSubmenu(internalId, isPaneInDOM, parentId);
|
|
4686
4733
|
onIsOpenChange === null || onIsOpenChange === void 0 || onIsOpenChange(isPaneInDOM);
|
|
4687
4734
|
}, [isPaneInDOM]);
|
|
4688
4735
|
|
|
4689
4736
|
// Omitted dependencies because this should only run on unmount
|
|
4690
4737
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4691
4738
|
React.useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
4692
|
-
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
4739
|
+
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children, isVirtualized, true);
|
|
4693
4740
|
const handlePaneTransitionEnd = () => {
|
|
4694
4741
|
var _flyoutRef$current;
|
|
4695
4742
|
if (animatedLeft) {
|
|
@@ -4719,7 +4766,7 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4719
4766
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubTrigger, _extends__default["default"]({
|
|
4720
4767
|
className: classNames__default["default"](styles$5.menuItem, styles$5.subMenu, {
|
|
4721
4768
|
[styles$5.unresponsive]: !paneContainingTriggerIsInteractive,
|
|
4722
|
-
[styles$4.selectedItem]: triggerCheckedState ===
|
|
4769
|
+
[styles$4.selectedItem]: triggerCheckedState === true && !isSelectedItems
|
|
4723
4770
|
}),
|
|
4724
4771
|
"data-testid": triggerDataTestId,
|
|
4725
4772
|
"aria-disabled": isDisabled,
|
|
@@ -4734,23 +4781,23 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4734
4781
|
onTriggerCheckboxSelect === null || onTriggerCheckboxSelect === void 0 || onTriggerCheckboxSelect();
|
|
4735
4782
|
return;
|
|
4736
4783
|
}
|
|
4737
|
-
if (!isDisabled && KEYS
|
|
4784
|
+
if (!isDisabled && index.KEYS.OPEN_SUBMENU.includes(e.key)) {
|
|
4738
4785
|
setIsPaneInDOM(true);
|
|
4739
|
-
} else if (KEYS
|
|
4786
|
+
} else if (index.KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
4740
4787
|
closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0 || closeSubmenuContainingTrigger(e);
|
|
4741
|
-
} else if (paneContainingTriggerIsVirtualized && KEYS
|
|
4788
|
+
} else if (paneContainingTriggerIsVirtualized && index.KEYS.NAVIGATE_TOP.includes(e.key)) {
|
|
4742
4789
|
e.preventDefault();
|
|
4743
4790
|
focusVirtualBoundaryWithinPaneContainingTrigger('top');
|
|
4744
|
-
} else if (paneContainingTriggerIsVirtualized && KEYS
|
|
4791
|
+
} else if (paneContainingTriggerIsVirtualized && index.KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
4745
4792
|
e.preventDefault();
|
|
4746
4793
|
focusVirtualBoundaryWithinPaneContainingTrigger('bottom');
|
|
4747
4794
|
}
|
|
4748
4795
|
}
|
|
4749
|
-
}, subSelectTriggerProps), multiselect && !isSelectedItems ? /*#__PURE__*/React__default["default"].createElement(
|
|
4750
|
-
|
|
4796
|
+
}, subSelectTriggerProps), multiselect && !isSelectedItems ? /*#__PURE__*/React__default["default"].createElement(index.Check, {
|
|
4797
|
+
checked: triggerCheckedState,
|
|
4751
4798
|
className: styles$4.checkbox,
|
|
4752
4799
|
onClick: onTriggerCheckboxSelect,
|
|
4753
|
-
|
|
4800
|
+
disabled: isDisabled
|
|
4754
4801
|
}) : null, label, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronRightIcon, {
|
|
4755
4802
|
className: styles$5.rightIcon
|
|
4756
4803
|
})), /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
@@ -4764,7 +4811,8 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4764
4811
|
stickyBoxRef,
|
|
4765
4812
|
zIndex,
|
|
4766
4813
|
focusVirtualBoundary: focusVirtualBoundaryInPane,
|
|
4767
|
-
isVirtualized
|
|
4814
|
+
isVirtualized,
|
|
4815
|
+
internalId
|
|
4768
4816
|
}
|
|
4769
4817
|
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
4770
4818
|
loop: !isSearchable,
|
|
@@ -4796,12 +4844,12 @@ const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4796
4844
|
onSelect: closeThisSubmenu,
|
|
4797
4845
|
ref: backButtonRef,
|
|
4798
4846
|
onKeyDown: e => {
|
|
4799
|
-
if (KEYS
|
|
4847
|
+
if (index.KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
4800
4848
|
closeThisSubmenu(e);
|
|
4801
|
-
} else if (isVirtualized && KEYS
|
|
4849
|
+
} else if (isVirtualized && index.KEYS.NAVIGATE_TOP.includes(e.key)) {
|
|
4802
4850
|
e.preventDefault();
|
|
4803
4851
|
focusVirtualBoundaryInPane('top');
|
|
4804
|
-
} else if (isVirtualized && KEYS
|
|
4852
|
+
} else if (isVirtualized && index.KEYS.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
4805
4853
|
e.preventDefault();
|
|
4806
4854
|
focusVirtualBoundaryInPane('bottom');
|
|
4807
4855
|
}
|
|
@@ -5180,9 +5228,9 @@ const RowDisplayCount = _ref => {
|
|
|
5180
5228
|
}));
|
|
5181
5229
|
};
|
|
5182
5230
|
|
|
5183
|
-
var css_248z$3 = ".
|
|
5184
|
-
var styles$3 = {"input":"
|
|
5185
|
-
var stylesheet$3=".
|
|
5231
|
+
var css_248z$3 = "._gc-c4 input{padding-left:76px!important}._h7TrK input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._h7TrK input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._h7TrK input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5xhxR{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._5xhxR,._5xhxR._h7TrK:hover{background-color:transparent!important}._5xhxR:hover{background-color:rgba(50,54,58,.08)!important}._5xhxR:active{background-color:rgba(50,54,58,.11)!important}._5xhxR svg{top:2px!important}._KQyDw{position:relative}._DrPuX{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
5232
|
+
var styles$3 = {"input":"_gc-c4","disabled":"_h7TrK","dropdown":"_5xhxR","container":"_KQyDw","countryCode":"_DrPuX"};
|
|
5233
|
+
var stylesheet$3="._gc-c4 input{padding-left:76px!important}._h7TrK input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._h7TrK input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._h7TrK input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._5xhxR{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._5xhxR,._5xhxR._h7TrK:hover{background-color:transparent!important}._5xhxR:hover{background-color:rgba(50,54,58,.08)!important}._5xhxR:active{background-color:rgba(50,54,58,.11)!important}._5xhxR svg{top:2px!important}._KQyDw{position:relative}._DrPuX{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
5186
5234
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$3);}
|
|
5187
5235
|
|
|
5188
5236
|
const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -5292,9 +5340,9 @@ const PhoneNumberInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5292
5340
|
})));
|
|
5293
5341
|
});
|
|
5294
5342
|
|
|
5295
|
-
var css_248z$2 = ".
|
|
5296
|
-
var styles$2 = {"container":"
|
|
5297
|
-
var stylesheet$2=".
|
|
5343
|
+
var css_248z$2 = "._SyiJe{display:flex}._uODpB{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._uODpB._4d7Tj{background-color:#fff}._uODpB._4d7Tj._5YdqW.focus-visible:not(._n-eaM),._uODpB._4d7Tj._5YdqW:focus-visible:not(._n-eaM),._uODpB._4d7Tj._9ZdWk:not(._uODpB._4d7Tj._M1xC8),._uODpB._MSvcj{background-color:#0b6ed0}._uODpB._MSvcj._M1xC8._9ZdWk,._uODpB._MSvcj._n-eaM._5YdqW,._uODpB._MSvcj._n-eaM._M1xC8{opacity:.4}._v00Q4{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._v00Q4:focus{z-index:1}._WZ6Dr{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._WZ6Dr svg{margin-left:1px}._WZ6Dr._4d7Tj{background-color:#0b6ed0;border-color:transparent}._WZ6Dr._4d7Tj svg{fill:#fff!important}._WZ6Dr._4d7Tj:not(._4-Mxw):hover{background-color:#085caf!important}._WZ6Dr._4d7Tj:not(._4-Mxw):active{background-color:#0854a1!important}._WZ6Dr._4d7Tj._4-Mxw{opacity:.4}._WZ6Dr._4d7Tj._4-Mxw svg{background-color:transparent}._WZ6Dr._MSvcj{border-color:#0b6ed0;background-color:#fff}._WZ6Dr._MSvcj svg{fill:#0b6ed0!important}._WZ6Dr._MSvcj:not(._4-Mxw):hover{background-color:#eef5fc!important}._WZ6Dr._MSvcj:not(._4-Mxw):active{background-color:#e1edf9!important}._WZ6Dr._MSvcj._4-Mxw{opacity:.4}._WZ6Dr._MSvcj._4-Mxw svg{background-color:transparent}._GuNYG{width:260px}";
|
|
5344
|
+
var styles$2 = {"container":"_SyiJe","divider":"_uODpB","primary":"_4d7Tj","mainButtonFocus":"_5YdqW","mainButtonDisabled":"_n-eaM","dropdownButtonFocus":"_9ZdWk","dropdownButtonDisabled":"_M1xC8","secondary":"_MSvcj","mainButton":"_v00Q4","dropdownButton":"_WZ6Dr","disabled":"_4-Mxw","dropdownOption":"_GuNYG"};
|
|
5345
|
+
var stylesheet$2="._SyiJe{display:flex}._uODpB{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._uODpB._4d7Tj{background-color:#fff}._uODpB._4d7Tj._5YdqW.focus-visible:not(._n-eaM),._uODpB._4d7Tj._5YdqW:focus-visible:not(._n-eaM),._uODpB._4d7Tj._9ZdWk:not(._uODpB._4d7Tj._M1xC8),._uODpB._MSvcj{background-color:#0b6ed0}._uODpB._MSvcj._M1xC8._9ZdWk,._uODpB._MSvcj._n-eaM._5YdqW,._uODpB._MSvcj._n-eaM._M1xC8{opacity:.4}._v00Q4{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._v00Q4:focus{z-index:1}._WZ6Dr{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._WZ6Dr svg{margin-left:1px}._WZ6Dr._4d7Tj{background-color:#0b6ed0;border-color:transparent}._WZ6Dr._4d7Tj svg{fill:#fff!important}._WZ6Dr._4d7Tj:not(._4-Mxw):hover{background-color:#085caf!important}._WZ6Dr._4d7Tj:not(._4-Mxw):active{background-color:#0854a1!important}._WZ6Dr._4d7Tj._4-Mxw{opacity:.4}._WZ6Dr._4d7Tj._4-Mxw svg{background-color:transparent}._WZ6Dr._MSvcj{border-color:#0b6ed0;background-color:#fff}._WZ6Dr._MSvcj svg{fill:#0b6ed0!important}._WZ6Dr._MSvcj:not(._4-Mxw):hover{background-color:#eef5fc!important}._WZ6Dr._MSvcj:not(._4-Mxw):active{background-color:#e1edf9!important}._WZ6Dr._MSvcj._4-Mxw{opacity:.4}._WZ6Dr._MSvcj._4-Mxw svg{background-color:transparent}._GuNYG{width:260px}";
|
|
5298
5346
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$2);}
|
|
5299
5347
|
|
|
5300
5348
|
const SplitButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -5515,9 +5563,9 @@ const StackItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5515
5563
|
}, children);
|
|
5516
5564
|
});
|
|
5517
5565
|
|
|
5518
|
-
var css_248z$1 = ".
|
|
5519
|
-
var styles$1 = {"timePickerContainer":"
|
|
5520
|
-
var stylesheet$1=".
|
|
5566
|
+
var css_248z$1 = "._-lEnn{display:inline-block;position:relative}._-lEnn ._30lp3{width:120px}._-lEnn ._30lp3 ._2ANmP._ti-c-{transform:rotate(-180deg)}._-lEnn ._30lp3 ._2ANmP._fE-b2{fill:#9d9fa1;opacity:.4}._-lEnn ._m0WX->input:focus{box-shadow:none!important;border:1px solid #898989!important}._-lEnn ._2ANmP{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._-lEnn ._2ANmP._ti-c-{transform:rotate(-180deg)}._98--V{width:120px}._98--V ._M3hcn._s0ABi{background-color:#efefef;border-radius:6px}";
|
|
5567
|
+
var styles$1 = {"timePickerContainer":"_-lEnn","input":"_30lp3","icon":"_2ANmP","open":"_ti-c-","disabled":"_fE-b2","ignoreFocusStyle":"_m0WX-","timePickerFlyout":"_98--V","option":"_M3hcn","exactMatch":"_s0ABi"};
|
|
5568
|
+
var stylesheet$1="._-lEnn{display:inline-block;position:relative}._-lEnn ._30lp3{width:120px}._-lEnn ._30lp3 ._2ANmP._ti-c-{transform:rotate(-180deg)}._-lEnn ._30lp3 ._2ANmP._fE-b2{fill:#9d9fa1;opacity:.4}._-lEnn ._m0WX->input:focus{box-shadow:none!important;border:1px solid #898989!important}._-lEnn ._2ANmP{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._-lEnn ._2ANmP._ti-c-{transform:rotate(-180deg)}._98--V{width:120px}._98--V ._M3hcn._s0ABi{background-color:#efefef;border-radius:6px}";
|
|
5521
5569
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$1);}
|
|
5522
5570
|
|
|
5523
5571
|
const TimeDropdown = _ref => {
|
|
@@ -6097,9 +6145,9 @@ const {
|
|
|
6097
6145
|
Provider: ToggleButtonGroupContextProvider
|
|
6098
6146
|
} = index.createContextUtilities(null);
|
|
6099
6147
|
|
|
6100
|
-
var css_248z = ".
|
|
6101
|
-
var styles = {"default":"
|
|
6102
|
-
var stylesheet=".
|
|
6148
|
+
var css_248z = "._MFr6-{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._ZnQ6C{background-color:rgba(50,54,58,.08)}._O11pZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._I02vF{color:rgba(81,85,89,.4);cursor:not-allowed}._U0-WH{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._xE-13{color:#085caf;border-color:#085caf}._JH8oO,._xE-13{background:rgba(11,110,208,.11)}._JH8oO{color:#0854a1;border-color:#0854a1}._LFfqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG{position:relative;display:inline-grid}._QmNNG svg{fill:currentColor}._QmNNG ._iWo9M{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._QmNNG ._iWo9M+._TivfQ{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._QmNNG ._iWo9M+._TivfQ._XcD1f{padding:5px;max-width:36px;min-width:36px}._QmNNG ._iWo9M+._TivfQ._owpPB{padding:0 16px}._QmNNG ._iWo9M+._TivfQ._SbIku{padding:0 16px 0 12px}._QmNNG ._iWo9M:hover+._TivfQ{background-color:rgba(50,54,58,.08)}._QmNNG ._iWo9M:disabled+._TivfQ{color:rgba(81,85,89,.4);cursor:not-allowed}._QmNNG ._iWo9M:active+._TivfQ,._QmNNG ._iWo9M:focus:active+._TivfQ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._QmNNG ._iWo9M:checked+._TivfQ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._QmNNG ._iWo9M:checked:hover+._TivfQ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._QmNNG ._iWo9M:checked:disabled+._TivfQ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG ._iWo9M:checked:active+._TivfQ,._QmNNG ._iWo9M:checked:focus:active+._TivfQ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._zPOFw{display:inline-flex;position:relative}._zPOFw:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._zPOFw>*{flex-shrink:0;flex-grow:0}._-eiys{border:none;margin:0;padding:0}._-eiys legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._QmNNG ._iWo9M.focus-visible+._TivfQ,._QmNNG ._iWo9M:focus-visible+._TivfQ{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6149
|
+
var styles = {"default":"_MFr6-","hovered":"_ZnQ6C","pressed":"_O11pZ","disabled":"_I02vF","selectedDefault":"_U0-WH","selectedHovered":"_xE-13","selectedPressed":"_JH8oO","selectedDisabled":"_LFfqC","toggleContainer":"_QmNNG","toggleInput":"_iWo9M","toggleButton":"_TivfQ","iconOnly":"_XcD1f","text":"_owpPB","iconText":"_SbIku","toggleButtonGroup":"_zPOFw","toggleButtonGroupFieldset":"_-eiys"};
|
|
6150
|
+
var stylesheet="._MFr6-{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._ZnQ6C{background-color:rgba(50,54,58,.08)}._O11pZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._I02vF{color:rgba(81,85,89,.4);cursor:not-allowed}._U0-WH{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._xE-13{color:#085caf;border-color:#085caf}._JH8oO,._xE-13{background:rgba(11,110,208,.11)}._JH8oO{color:#0854a1;border-color:#0854a1}._LFfqC{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG{position:relative;display:inline-grid}._QmNNG svg{fill:currentColor}._QmNNG ._iWo9M{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._QmNNG ._iWo9M+._TivfQ{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._QmNNG ._iWo9M+._TivfQ._XcD1f{padding:5px;max-width:36px;min-width:36px}._QmNNG ._iWo9M+._TivfQ._owpPB{padding:0 16px}._QmNNG ._iWo9M+._TivfQ._SbIku{padding:0 16px 0 12px}._QmNNG ._iWo9M:hover+._TivfQ{background-color:rgba(50,54,58,.08)}._QmNNG ._iWo9M:disabled+._TivfQ{color:rgba(81,85,89,.4);cursor:not-allowed}._QmNNG ._iWo9M:active+._TivfQ,._QmNNG ._iWo9M:focus:active+._TivfQ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._QmNNG ._iWo9M:checked+._TivfQ{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._QmNNG ._iWo9M:checked:hover+._TivfQ{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._QmNNG ._iWo9M:checked:disabled+._TivfQ{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._QmNNG ._iWo9M:checked:active+._TivfQ,._QmNNG ._iWo9M:checked:focus:active+._TivfQ{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._zPOFw{display:inline-flex;position:relative}._zPOFw:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._zPOFw>*{flex-shrink:0;flex-grow:0}._-eiys{border:none;margin:0;padding:0}._-eiys legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._QmNNG ._iWo9M.focus-visible+._TivfQ,._QmNNG ._iWo9M:focus-visible+._TivfQ{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6103
6151
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z);}
|
|
6104
6152
|
|
|
6105
6153
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|