@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
|
@@ -37,7 +37,7 @@ import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
|
37
37
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
38
38
|
|
|
39
39
|
const AdvancedTable = _ref => {
|
|
40
|
-
var
|
|
40
|
+
var _ref8;
|
|
41
41
|
let {
|
|
42
42
|
columnConfigs: externalColumnConfigs,
|
|
43
43
|
rows: rowsPropExternal,
|
|
@@ -318,27 +318,27 @@ const AdvancedTable = _ref => {
|
|
|
318
318
|
const ids = getAllLeafIds(row.rowPropReference);
|
|
319
319
|
const checkedIds = ids.filter(id => checkedRowIdsSet.has(id));
|
|
320
320
|
if (checkedIds.length === ids.length) {
|
|
321
|
-
return
|
|
321
|
+
return true;
|
|
322
322
|
}
|
|
323
323
|
if (checkedIds.length) {
|
|
324
324
|
return 'mixed';
|
|
325
325
|
}
|
|
326
|
-
return
|
|
326
|
+
return false;
|
|
327
327
|
};
|
|
328
328
|
const columnHeaderCheckboxState = useMemo(() => {
|
|
329
329
|
const visibleRows = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows;
|
|
330
|
-
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) ===
|
|
330
|
+
const checkedRows = visibleRows.filter(row => getCheckboxStateForRow(row) === true);
|
|
331
331
|
if (checkedRows.length === visibleRows.length) {
|
|
332
|
-
return
|
|
332
|
+
return true;
|
|
333
333
|
}
|
|
334
334
|
if (checkedRows.length) {
|
|
335
335
|
return 'mixed';
|
|
336
336
|
}
|
|
337
|
-
return
|
|
337
|
+
return false;
|
|
338
338
|
}, [checkedRowIdsSet, paginatedRows, rows]);
|
|
339
339
|
const handleColumnHeaderCheckboxToggle = () => {
|
|
340
340
|
setLastToggledRowId('');
|
|
341
|
-
if (columnHeaderCheckboxState ===
|
|
341
|
+
if (columnHeaderCheckboxState === true) {
|
|
342
342
|
setCheckedRowIds([]);
|
|
343
343
|
} else {
|
|
344
344
|
const visibleLeafIds = Array.from((paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows).reduce((set, _ref5) => {
|
|
@@ -356,7 +356,7 @@ const AdvancedTable = _ref => {
|
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
358
|
const endRow = rows[endIndex];
|
|
359
|
-
const isEndIndexChecked = getCheckboxStateForRow(endRow) ===
|
|
359
|
+
const isEndIndexChecked = getCheckboxStateForRow(endRow) === true;
|
|
360
360
|
setLastToggledRowId(endRow.id);
|
|
361
361
|
const newIds = rows.slice(Math.min(startIndex, endIndex), Math.max(startIndex, endIndex) + 1).reduce((set, _ref6) => {
|
|
362
362
|
let {
|
|
@@ -381,7 +381,7 @@ const AdvancedTable = _ref => {
|
|
|
381
381
|
rowPropReference
|
|
382
382
|
} = row;
|
|
383
383
|
setLastToggledRowId(rowId);
|
|
384
|
-
if (getCheckboxStateForRow(row) ===
|
|
384
|
+
if (getCheckboxStateForRow(row) === true) {
|
|
385
385
|
const idsToUncheck = new Set(getAllLeafIds(rowPropReference));
|
|
386
386
|
setCheckedRowIds(checkedRowIds.filter(id => !idsToUncheck.has(id)));
|
|
387
387
|
} else {
|
|
@@ -593,6 +593,17 @@ const AdvancedTable = _ref => {
|
|
|
593
593
|
ref: createRef(rowIndex, columnIndex)
|
|
594
594
|
};
|
|
595
595
|
};
|
|
596
|
+
|
|
597
|
+
// If all columns have an assigned width we don't want extra space on the side of small tables.
|
|
598
|
+
// This adds a class to table rows and the table header row to restrict their widths in such a case.
|
|
599
|
+
const restrictedWidth = columnConfigs.every(_ref7 => {
|
|
600
|
+
var _columnWidths$id2;
|
|
601
|
+
let {
|
|
602
|
+
id,
|
|
603
|
+
width
|
|
604
|
+
} = _ref7;
|
|
605
|
+
return ((_columnWidths$id2 = columnWidths[id]) !== null && _columnWidths$id2 !== void 0 ? _columnWidths$id2 : width) !== undefined;
|
|
606
|
+
});
|
|
596
607
|
return /*#__PURE__*/React__default.createElement(DndProvider, {
|
|
597
608
|
backend: HTML5Backend,
|
|
598
609
|
context: canUseDOM() ? window : undefined
|
|
@@ -635,6 +646,7 @@ const AdvancedTable = _ref => {
|
|
|
635
646
|
isFocused: headerRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
636
647
|
onKeyDown: onKeyDown(headerRowIndex),
|
|
637
648
|
onFocus: onRowFocus(headerRowIndex, minColumnIndex),
|
|
649
|
+
restrictedWidth: restrictedWidth,
|
|
638
650
|
ref: createRef(headerRowIndex, -1)
|
|
639
651
|
}, hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
640
652
|
role: "presentation",
|
|
@@ -654,7 +666,7 @@ const AdvancedTable = _ref => {
|
|
|
654
666
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
655
667
|
role: "rowgroup",
|
|
656
668
|
className: styles.advancedTableRowGroup
|
|
657
|
-
}, ((
|
|
669
|
+
}, ((_ref8 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref8 !== void 0 ? _ref8 : []).map((row, rowIndex) => {
|
|
658
670
|
const {
|
|
659
671
|
id: rowId,
|
|
660
672
|
data,
|
|
@@ -702,6 +714,8 @@ const AdvancedTable = _ref => {
|
|
|
702
714
|
|
|
703
715
|
"aria-setsize": hasExpandableRows ? depthSize : undefined,
|
|
704
716
|
"aria-posinset": hasExpandableRows ? depthIndex + 1 : undefined // aria-posinset is one-indexed
|
|
717
|
+
,
|
|
718
|
+
restrictedWidth: restrictedWidth
|
|
705
719
|
}), hasCheckboxColumn || pinnedColumnConfigs.length ? /*#__PURE__*/React__default.createElement("div", {
|
|
706
720
|
className: classNames(styles.pinnedContainer, styles.advancedTableRowChild),
|
|
707
721
|
ref: createPinnedContainerRef(paginatedRowIndex)
|
|
@@ -744,13 +758,13 @@ const AdvancedTable = _ref => {
|
|
|
744
758
|
};
|
|
745
759
|
|
|
746
760
|
// TODO: move hook to separate file
|
|
747
|
-
function useSortedRows(
|
|
761
|
+
function useSortedRows(_ref9) {
|
|
748
762
|
let {
|
|
749
763
|
columnConfigs,
|
|
750
764
|
onRowsChange,
|
|
751
765
|
selectedSortOption,
|
|
752
766
|
setCurrentPage
|
|
753
|
-
} =
|
|
767
|
+
} = _ref9;
|
|
754
768
|
const columnConfigsRef = useLatest(columnConfigs);
|
|
755
769
|
const onRowsChangeRef = useLatest(onRowsChange);
|
|
756
770
|
useDidUpdate(() => {
|
|
@@ -759,10 +773,10 @@ function useSortedRows(_ref8) {
|
|
|
759
773
|
columnId,
|
|
760
774
|
index
|
|
761
775
|
} = selectedSortOption;
|
|
762
|
-
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(
|
|
776
|
+
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(_ref10 => {
|
|
763
777
|
let {
|
|
764
778
|
id
|
|
765
|
-
} =
|
|
779
|
+
} = _ref10;
|
|
766
780
|
return id === columnId;
|
|
767
781
|
})) === 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;
|
|
768
782
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
@@ -773,7 +787,7 @@ function useSortedRows(_ref8) {
|
|
|
773
787
|
}
|
|
774
788
|
|
|
775
789
|
// TODO: move hook to separate file
|
|
776
|
-
function useFocusState(
|
|
790
|
+
function useFocusState(_ref11) {
|
|
777
791
|
let {
|
|
778
792
|
headerRowIndex,
|
|
779
793
|
maxRowIndex,
|
|
@@ -783,7 +797,7 @@ function useFocusState(_ref10) {
|
|
|
783
797
|
pinnedUnpinnedColumnOrder,
|
|
784
798
|
tableRef,
|
|
785
799
|
currentPage
|
|
786
|
-
} =
|
|
800
|
+
} = _ref11;
|
|
787
801
|
const cellRefs = useRef({});
|
|
788
802
|
const pinnedContainersRef = useRef({});
|
|
789
803
|
const [focusedRowIndex, setFocusedRowIndex] = useState(headerRowIndex);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._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}";
|
|
4
|
+
var styles = {"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"};
|
|
5
|
+
var stylesheet="._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}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useMemo, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import styles from './AdvancedTable2.js';
|
|
4
|
-
import
|
|
4
|
+
import Check from '../../components/Checkbox/Check.js';
|
|
5
5
|
import '../../utils/index.js';
|
|
6
6
|
import '../../hooks/index.js';
|
|
7
7
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
@@ -26,7 +26,7 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
26
26
|
false: translate('unchecked'),
|
|
27
27
|
mixed: translate('mixed')
|
|
28
28
|
};
|
|
29
|
-
return labels[state];
|
|
29
|
+
return labels[String(state)];
|
|
30
30
|
}, [state]);
|
|
31
31
|
const announceToScreenReader = useScreenReaderAnnouncement('polite');
|
|
32
32
|
useEffect(() => {
|
|
@@ -40,15 +40,11 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
40
40
|
[styles.header]: variant === 'header'
|
|
41
41
|
}),
|
|
42
42
|
role: "presentation"
|
|
43
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
44
|
-
className: styles.checkboxContainer
|
|
45
|
-
}, /*#__PURE__*/React__default.createElement(VisualCheckbox, {
|
|
43
|
+
}, /*#__PURE__*/React__default.createElement(Check, {
|
|
46
44
|
className: styles.checkbox,
|
|
47
|
-
checked: state
|
|
45
|
+
checked: state,
|
|
48
46
|
disabled: isDisabled
|
|
49
|
-
})
|
|
50
|
-
className: styles.mixed
|
|
51
|
-
})));
|
|
47
|
+
}));
|
|
52
48
|
};
|
|
53
49
|
|
|
54
50
|
export { AdvancedTableCheckbox as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
3
4
|
import styles from './AdvancedTable2.js';
|
|
4
5
|
|
|
5
6
|
const AdvancedTableColumnHeaders = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -9,6 +10,7 @@ const AdvancedTableColumnHeaders = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9
10
|
onKeyDown,
|
|
10
11
|
onFocus,
|
|
11
12
|
children,
|
|
13
|
+
restrictedWidth = false,
|
|
12
14
|
...rest
|
|
13
15
|
} = _ref;
|
|
14
16
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
@@ -16,7 +18,9 @@ const AdvancedTableColumnHeaders = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
16
18
|
tabIndex: isFocusable ? isFocused ? 0 : -1 : undefined,
|
|
17
19
|
onKeyDown: isFocusable ? onKeyDown : undefined,
|
|
18
20
|
onFocus: isFocusable ? onFocus : undefined,
|
|
19
|
-
className: styles.advancedTableColumnHeaders,
|
|
21
|
+
className: classNames(styles.advancedTableColumnHeaders, {
|
|
22
|
+
[styles.advancedTableRowRestrictedWidth]: restrictedWidth
|
|
23
|
+
}),
|
|
20
24
|
ref: ref
|
|
21
25
|
}), children);
|
|
22
26
|
});
|
|
@@ -13,6 +13,7 @@ const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13
13
|
onKeyDown,
|
|
14
14
|
onFocus,
|
|
15
15
|
onClick,
|
|
16
|
+
restrictedWidth = false,
|
|
16
17
|
children,
|
|
17
18
|
...rest
|
|
18
19
|
} = _ref;
|
|
@@ -26,7 +27,8 @@ const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
26
27
|
onClick: hasOnRowSelect ? onClick : undefined,
|
|
27
28
|
className: classNames(styles.advancedTableRow, {
|
|
28
29
|
[styles.hasRowAction]: hasOnRowSelect,
|
|
29
|
-
[styles.isSelected]: hasOnRowSelect && isSelected
|
|
30
|
+
[styles.isSelected]: hasOnRowSelect && isSelected,
|
|
31
|
+
[styles.advancedTableRowRestrictedWidth]: restrictedWidth
|
|
30
32
|
}),
|
|
31
33
|
ref: isFocusable ? ref : undefined
|
|
32
34
|
}), children);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._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}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_BAtzb","searchInput":"_uQf7X","searchInputCollapsed":"_zp-23","iconButton":"_xdCOk"};
|
|
5
|
+
var stylesheet="._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}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._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}";
|
|
4
|
+
var styles = {"loadingSpinner":"_bpm57","ignoreFocusStyle":"_z5DeP","flyout":"_cwol7","group":"_I8Xpd","header":"_zZNCq","divider":"_VIAY8","option":"_QsfgN","selected":"_AWU-Z"};
|
|
5
|
+
var stylesheet="._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}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"drawer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._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}";
|
|
4
|
+
var styles = {"drawer":"_Jtzgt","hidden":"_cz501","anchoredToBody":"_E5F28","header":"_OG3mb","title":"_DH7MG","closeButton":"_yt9sO"};
|
|
5
|
+
var stylesheet="._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}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._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}";
|
|
4
|
+
var styles = {"button":"_5iUaw","disabled":"_FhtYh","selected":"_RZWir","label":"_EZ-D3","lockIcon":"_vxE-Q","chevronIcon":"_jVvrt","selectedFiltersContainer":"_lYQvG","selectedFilters":"_8q5iP","open":"_p-QKd"};
|
|
5
|
+
var stylesheet="._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}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._u8nlD{margin:6px 0}._pC85N{line-height:20px;color:#6a6d70;display:flex}._HW10G:has([aria-expanded=true]) ._pC85N,._HW10G[focus-within] ._pC85N{color:#0b6ed0}._HW10G:focus-within ._pC85N,._HW10G:has([aria-expanded=true]) ._pC85N{color:#0b6ed0}._HW10G:has(input:disabled) ._pC85N{color:rgba(50,54,58,.4)}._HW10G:not(:has(input:disabled)) ._pC85N{cursor:pointer}";
|
|
4
|
+
var styles = {"input":"_u8nlD","label":"_pC85N","formFieldWrapper":"_HW10G"};
|
|
5
|
+
var stylesheet="._u8nlD{margin:6px 0}._pC85N{line-height:20px;color:#6a6d70;display:flex}._HW10G:has([aria-expanded=true]) ._pC85N,._HW10G[focus-within] ._pC85N{color:#0b6ed0}._HW10G:focus-within ._pC85N,._HW10G:has([aria-expanded=true]) ._pC85N{color:#0b6ed0}._HW10G:has(input:disabled) ._pC85N{color:rgba(50,54,58,.4)}._HW10G:not(:has(input:disabled)) ._pC85N{cursor:pointer}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JNvA8{position:relative;display:inline-block;height:36px}._IqFPA{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._IqFPA:hover{cursor:pointer;background-color:#f5f5f5}._IqFPA:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._IqFPA:disabled,._IqFPA[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._IqFPA:disabled::-moz-placeholder,._IqFPA[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IqFPA:disabled::placeholder,._IqFPA[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IqFPA:invalid,._IqFPA[aria-invalid=true]{border-color:#b00}._IqFPA:invalid:focus,._IqFPA[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._IqFPA[type=number]{-moz-appearance:textfield}._IqFPA[type=number]::-webkit-inner-spin-button,._IqFPA[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._IqFPA::-moz-placeholder{color:#515559;opacity:1}._IqFPA::placeholder{color:#515559;opacity:1}._Pn13t{pointer-events:none;color:#515559;fill:#515559}._o28Ke{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._bWDWI{color:#515559;font-size:16px}._qDnHS{left:0;margin-left:6px}._qDnHS,._TUw-I{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._TUw-I{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_JNvA8","input":"_IqFPA","addOn":"_Pn13t","addOnVerticalCenter":"_o28Ke","addOnTextNode":"_bWDWI","leftAddOn":"_qDnHS","rightAddOn":"_TUw-I"};
|
|
5
|
+
var stylesheet="._JNvA8{position:relative;display:inline-block;height:36px}._IqFPA{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._IqFPA:hover{cursor:pointer;background-color:#f5f5f5}._IqFPA:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._IqFPA:disabled,._IqFPA[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._IqFPA:disabled::-moz-placeholder,._IqFPA[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IqFPA:disabled::placeholder,._IqFPA[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IqFPA:invalid,._IqFPA[aria-invalid=true]{border-color:#b00}._IqFPA:invalid:focus,._IqFPA[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._IqFPA[type=number]{-moz-appearance:textfield}._IqFPA[type=number]::-webkit-inner-spin-button,._IqFPA[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._IqFPA::-moz-placeholder{color:#515559;opacity:1}._IqFPA::placeholder{color:#515559;opacity:1}._Pn13t{pointer-events:none;color:#515559;fill:#515559}._o28Ke{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._bWDWI{color:#515559;font-size:16px}._qDnHS{left:0;margin-left:6px}._qDnHS,._TUw-I{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._TUw-I{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
const useCSSVariable = function (name, value) {
|
|
4
|
-
let
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
|
|
7
|
-
}, [value, name, ...
|
|
3
|
+
const useCSSVariable = function (name, value, scope) {
|
|
4
|
+
let additionalDependencies = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
5
|
+
return useEffect(() => {
|
|
6
|
+
scope === null || scope === void 0 || scope.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
7
|
+
}, [value, name, scope, ...additionalDependencies]);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { useCSSVariable as default };
|
|
@@ -4,7 +4,7 @@ import '../../../hooks/index.js';
|
|
|
4
4
|
import { useMenuContext } from '../MenuContext.js';
|
|
5
5
|
import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
|
|
6
6
|
|
|
7
|
-
const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
7
|
+
const useMaskDimensions = (target, animatedLeft, paneDepth, children, isVirtualized, isVirtualizationReady) => {
|
|
8
8
|
var _process$env;
|
|
9
9
|
const {
|
|
10
10
|
setMaskHeight,
|
|
@@ -13,21 +13,19 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
13
13
|
openPaneDepth,
|
|
14
14
|
open
|
|
15
15
|
} = useMenuContext();
|
|
16
|
-
const
|
|
16
|
+
const auto = 'auto';
|
|
17
|
+
const updateMaskDimensions = function () {
|
|
18
|
+
let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
17
19
|
if (target) {
|
|
18
|
-
setMaskHeight(target.clientHeight);
|
|
19
|
-
setMaskWidth(target.clientWidth);
|
|
20
|
+
setMaskHeight(reset ? auto : target.clientHeight);
|
|
21
|
+
setMaskWidth(reset ? auto : target.clientWidth);
|
|
20
22
|
}
|
|
21
23
|
};
|
|
22
|
-
const auto = 'auto';
|
|
23
24
|
|
|
24
|
-
// resets dimensions on menu close
|
|
25
|
+
// resets dimensions on menu close so that the top-level pane reopens immediately, rather than animating
|
|
25
26
|
useEffect(() => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
setMaskWidth(auto);
|
|
29
|
-
}
|
|
30
|
-
}, [open, setMaskHeight, setMaskWidth]);
|
|
27
|
+
updateMaskDimensions(!open);
|
|
28
|
+
}, [open]);
|
|
31
29
|
|
|
32
30
|
// handles async children adjustments by consumer
|
|
33
31
|
useDidUpdate(() => {
|
|
@@ -53,7 +51,7 @@ const useMaskDimensions = (target, animatedLeft, paneDepth, children) => {
|
|
|
53
51
|
});
|
|
54
52
|
|
|
55
53
|
// determines if the mask is ready
|
|
56
|
-
return maskHeight !== auto || typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test';
|
|
54
|
+
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);
|
|
57
55
|
};
|
|
58
56
|
|
|
59
57
|
export { useMaskDimensions as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, {
|
|
1
|
+
import React__default, { useMemo, useRef, useCallback, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import '../../../hooks/index.js';
|
|
4
4
|
import '../../../utils/index.js';
|
|
@@ -27,7 +27,7 @@ function usePaneSearch(_ref) {
|
|
|
27
27
|
menuParentDataTestId,
|
|
28
28
|
id,
|
|
29
29
|
flyoutRef,
|
|
30
|
-
children,
|
|
30
|
+
children = [],
|
|
31
31
|
isSearchFilteringDisabled,
|
|
32
32
|
backButtonRef,
|
|
33
33
|
closeSubmenu,
|
|
@@ -35,7 +35,6 @@ function usePaneSearch(_ref) {
|
|
|
35
35
|
} = _ref;
|
|
36
36
|
const withinSelect = useSelectContext(true) !== null;
|
|
37
37
|
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
38
|
-
const [zeroSearchResults, setZeroSearchResults] = useState();
|
|
39
38
|
const {
|
|
40
39
|
translate
|
|
41
40
|
} = useTranslation();
|
|
@@ -53,7 +52,6 @@ function usePaneSearch(_ref) {
|
|
|
53
52
|
return searchMatcher === null || searchMatcher === void 0 || (_searchMatcher$toLowe = searchMatcher.toLowerCase) === null || _searchMatcher$toLowe === void 0 ? void 0 : _searchMatcher$toLowe.call(searchMatcher).includes(internalSearchValue.toLowerCase());
|
|
54
53
|
}), [internalSearchValue, children, isSearchFilteringDisabled]);
|
|
55
54
|
const focusVirtualBoundary = useFocusVirtualBoundary(items, backButtonRef);
|
|
56
|
-
useEffect(() => setZeroSearchResults((items === null || items === void 0 ? void 0 : items.filter(item => item.element.current).length) === 0), [items, internalSearchValue]);
|
|
57
55
|
const searchRef = useRef(null);
|
|
58
56
|
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;
|
|
59
57
|
const getFirstVisibleItem = () => {
|
|
@@ -155,7 +153,7 @@ function usePaneSearch(_ref) {
|
|
|
155
153
|
// Omitted dependencies because we only want this to run on unmount
|
|
156
154
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
157
155
|
[]);
|
|
158
|
-
const noSearchResultsNode =
|
|
156
|
+
const noSearchResultsNode = filteredChildren.length === 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
159
157
|
className: classNames(styles.menuItem, styles.noItems),
|
|
160
158
|
"aria-live": "assertive"
|
|
161
159
|
}, noMatchesText);
|