@qualtrics/ui-react 2.20.0 → 2.22.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 +17 -33
- package/dist/__shared/cjs/{index-90d4069b.js → index-025620bf.js} +718 -673
- package/dist/__shared/cjs/{index-579c4690.js → index-41a013d2.js} +4 -4
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -4
- package/dist/components/Accordion/AccordionPanel.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +12 -16
- package/dist/components/ColorPicker/ColorPicker.js +15 -9
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
- package/dist/components/ColorPicker/Hue.js +3 -9
- package/dist/components/ColorPicker/Palette.js +13 -9
- package/dist/components/ColorPicker/Saturation.js +9 -17
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +3 -2
- package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
- package/dist/components/ColorPicker/utils/validateHex.js +10 -9
- package/dist/components/Combobox/Combobox.js +54 -31
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxHeader.js +1 -1
- package/dist/components/Combobox/ComboboxIcon.js +3 -2
- package/dist/components/Combobox/ComboboxInput.js +4 -4
- package/dist/components/Combobox/ComboboxList.js +2 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +5 -2
- package/dist/components/Dropdown/Dropdown.js +14 -14
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +23 -19
- package/dist/components/Dropdown/DropdownList.js +4 -4
- package/dist/components/Dropdown/DropdownOption.js +5 -7
- package/dist/components/Dropdown/DropdownSearch.js +12 -9
- package/dist/components/FilePicker/FilePicker.js +13 -13
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField.js +2 -2
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +12 -9
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- 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/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionSet.js +5 -5
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +2 -1
- package/dist/components/Modal/Modal.js +14 -13
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +41 -30
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +19 -15
- package/dist/components/NewMenu/parts/MenuItem.js +1 -1
- package/dist/components/NumberStepper/NumberStepper.js +7 -6
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +5 -5
- package/dist/components/Pagination/PaginationPageInput.js +11 -9
- package/dist/components/Pagination/PaginationPreviousButton.js +5 -5
- package/dist/components/Popover/Popover.js +9 -7
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +4 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio.js +12 -11
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +4 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +2 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavLink.js +1 -1
- package/dist/components/Slider/RangeSlider.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +1 -1
- package/dist/components/Switch/Switch.js +11 -11
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabList.js +6 -5
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +15 -7
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/UIProvider.js +2 -2
- package/dist/components/deprecated_ColorPicker/Alpha.js +4 -4
- package/dist/components/deprecated_ColorPicker/Color.js +6 -6
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +3 -3
- package/dist/components/deprecated_ColorPicker/Saturation.js +5 -5
- package/dist/components/deprecated_ColorPicker/Swatch.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +8 -8
- package/dist/components/deprecated_Tabs/Tabs.js +11 -7
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +8 -8
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +2 -1
- package/dist/hooks/useControllableState/useControllableState.js +2 -1
- package/dist/hooks/useEventListener/useEventListener.js +4 -1
- package/dist/hooks/useId/useId.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +11 -6
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +2 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +4 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/createIconComponent.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +17 -8
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +86 -87
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +6 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +18 -10
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +7 -6
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +5 -4
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +3 -2
- package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +6 -5
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +2 -2
- package/dist/next/Combobox/ComboboxGroup.js +1 -1
- package/dist/next/Combobox/ComboboxInput.js +2 -2
- package/dist/next/Combobox/ComboboxOption.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
- package/dist/next/Drawer/Drawer.js +7 -4
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input.js +2 -2
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +11 -5
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +19 -11
- package/dist/next/Menu/MenuPane.js +70 -40
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +63 -46
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +109 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +8 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimeDropdown.js +4 -4
- package/dist/next/TimePicker/TimeInput.js +2 -2
- package/dist/next/TimePicker/TimePicker.js +4 -4
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +2 -1
- package/dist/next/TimePicker/utils.js +10 -9
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +2 -1
- package/dist/next/index.js +601 -432
- package/dist/utils/Flyout/Flyout.js +1 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +9 -5
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
- package/dist/utils/Translation/useTranslation.js +4 -5
- package/dist/utils/filterChildren/filterChildren.js +2 -1
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/mergeRefs/mergeRefs.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +2 -2
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +4 -4
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -32,12 +32,12 @@ import concatIds from '../../utils/concatIds/concatIds.js';
|
|
|
32
32
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
33
33
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
34
34
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
35
|
-
import { setIsKeyboardUser, getIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
36
35
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
37
36
|
import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
38
37
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
39
38
|
|
|
40
39
|
const AdvancedTable = _ref => {
|
|
40
|
+
var _ref5;
|
|
41
41
|
let {
|
|
42
42
|
columnConfigs: externalColumnConfigs,
|
|
43
43
|
rows: rowsPropExternal,
|
|
@@ -79,7 +79,7 @@ const AdvancedTable = _ref => {
|
|
|
79
79
|
// This handles an edge case where no rows are passed in
|
|
80
80
|
// and the internal row transforms cause infinite state updates using a standard default assignment
|
|
81
81
|
const stableDefaultArray = useMemo(() => [], []);
|
|
82
|
-
const rowsProp = rowsPropExternal
|
|
82
|
+
const rowsProp = rowsPropExternal !== null && rowsPropExternal !== void 0 ? rowsPropExternal : stableDefaultArray;
|
|
83
83
|
const [rows, setRows] = useState();
|
|
84
84
|
const rowActionsColumnConfigId = useId();
|
|
85
85
|
let rowActionsColumnConfig;
|
|
@@ -88,7 +88,7 @@ const AdvancedTable = _ref => {
|
|
|
88
88
|
[externalColumnConfigs, rows] // columnConfigs has an implicit dependency on rows because it is initially computed using rows data
|
|
89
89
|
);
|
|
90
90
|
|
|
91
|
-
const [currentPage, setCurrentPage] = useState(initialPage
|
|
91
|
+
const [currentPage, setCurrentPage] = useState(initialPage !== null && initialPage !== void 0 ? initialPage : 1);
|
|
92
92
|
const [tableHeight, setTableHeight] = useState();
|
|
93
93
|
const getPaginatedRowIndex = useCallback(universalRowIndex => rowsPerPage ? universalRowIndex + rowsPerPage * (currentPage - 1) : universalRowIndex, [rowsPerPage, currentPage]);
|
|
94
94
|
const paginatedRows = useMemo(() => {
|
|
@@ -130,13 +130,14 @@ const AdvancedTable = _ref => {
|
|
|
130
130
|
}
|
|
131
131
|
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
132
132
|
className: styles.rowActionMenuPane
|
|
133
|
-
}, !rows ? [] : rowActions
|
|
133
|
+
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
134
|
+
var _actionGroup$actions;
|
|
134
135
|
const row = rows[rowIndex];
|
|
135
|
-
const actions = !row ? [] : actionGroup.actions
|
|
136
|
+
const actions = !row ? [] : (_actionGroup$actions = actionGroup.actions) === null || _actionGroup$actions === void 0 ? void 0 : _actionGroup$actions.map((action, actionIndex) => /*#__PURE__*/React__default.createElement(DropdownOption
|
|
136
137
|
// React Docs: "We don't recommend using indexes for keys if the order of items may change." These will not change; the alternative is to require an id from the consumer.
|
|
137
138
|
// eslint-disable-next-line react/no-array-index-key
|
|
138
139
|
, {
|
|
139
|
-
key:
|
|
140
|
+
key: "".concat(groupIndex, "-").concat(actionIndex),
|
|
140
141
|
disabled: typeof action.isDisabled === 'function' ? action.isDisabled(row && row.rowPropReference) : action.isDisabled,
|
|
141
142
|
onSelect: () => action.action(row && row.rowPropReference),
|
|
142
143
|
value: "",
|
|
@@ -176,9 +177,9 @@ const AdvancedTable = _ref => {
|
|
|
176
177
|
const minColumnIndex = hasFocusableRows ? -1 : 0; // When entire rows are focusable, they get an index of -1 so that the columns can be zero-indexed
|
|
177
178
|
const maxColumnIndex = columnConfigs.length - 1;
|
|
178
179
|
const tableId = useId(externalTableId);
|
|
179
|
-
const arrowKeyDescriptionId =
|
|
180
|
-
const rowActionDescriptionId =
|
|
181
|
-
const rowCheckboxDescriptionId =
|
|
180
|
+
const arrowKeyDescriptionId = "".concat(tableId, "-arrowKeyDescription");
|
|
181
|
+
const rowActionDescriptionId = "".concat(tableId, "-rowActionDescription");
|
|
182
|
+
const rowCheckboxDescriptionId = "".concat(tableId, "-rowCheckboxDescription");
|
|
182
183
|
useResizeObserver(tableRef, entry => {
|
|
183
184
|
setTableHeight(entry.contentRect.height);
|
|
184
185
|
});
|
|
@@ -192,11 +193,11 @@ const AdvancedTable = _ref => {
|
|
|
192
193
|
useDidUpdate(() => {
|
|
193
194
|
setInternalColumnOrder(columnConfigsOrder);
|
|
194
195
|
}, [JSON.stringify(columnConfigsOrder)]);
|
|
195
|
-
const columnOrder = externalColumnOrder
|
|
196
|
+
const columnOrder = externalColumnOrder !== null && externalColumnOrder !== void 0 ? externalColumnOrder : internalColumnOrder;
|
|
196
197
|
const setColumnOrder = useEventCallback(value => {
|
|
197
198
|
const newColumnOrder = typeof value === 'function' ? value(columnOrder) : value;
|
|
198
199
|
setInternalColumnOrder(newColumnOrder);
|
|
199
|
-
onColumnOrderChange
|
|
200
|
+
onColumnOrderChange === null || onColumnOrderChange === void 0 ? void 0 : onColumnOrderChange(newColumnOrder);
|
|
200
201
|
});
|
|
201
202
|
const {
|
|
202
203
|
pinnedColumnConfigs,
|
|
@@ -303,7 +304,7 @@ const AdvancedTable = _ref => {
|
|
|
303
304
|
return ids;
|
|
304
305
|
}, [rowsProp]);
|
|
305
306
|
const totalRowsCountWithExpansion = useMemo(() => getAllRowIds().length, [getAllRowIds]);
|
|
306
|
-
const hasExpandableRows = useMemo(() => rows
|
|
307
|
+
const hasExpandableRows = useMemo(() => rows === null || rows === void 0 ? void 0 : rows.some(_ref3 => {
|
|
307
308
|
let {
|
|
308
309
|
hasChildRows
|
|
309
310
|
} = _ref3;
|
|
@@ -322,10 +323,10 @@ const AdvancedTable = _ref => {
|
|
|
322
323
|
} else if (expand !== false) {
|
|
323
324
|
rowPropReference.isExpanded = true;
|
|
324
325
|
}
|
|
325
|
-
onRowsChange
|
|
326
|
+
onRowsChange === null || onRowsChange === void 0 ? void 0 : onRowsChange([...rowsProp]);
|
|
326
327
|
};
|
|
327
328
|
const getLastToggledRowIndex = () => {
|
|
328
|
-
const index = rows
|
|
329
|
+
const index = rows === null || rows === void 0 ? void 0 : rows.findIndex(_ref4 => {
|
|
329
330
|
let {
|
|
330
331
|
id
|
|
331
332
|
} = _ref4;
|
|
@@ -351,10 +352,11 @@ const AdvancedTable = _ref => {
|
|
|
351
352
|
}
|
|
352
353
|
};
|
|
353
354
|
const multiUpdateCheckedRowIds = (startIndex, endIndex) => {
|
|
355
|
+
var _rows$endIndex;
|
|
354
356
|
if (!rows || startIndex === headerRowIndex || endIndex === headerRowIndex) {
|
|
355
357
|
return;
|
|
356
358
|
}
|
|
357
|
-
const endRowId = rows
|
|
359
|
+
const endRowId = rows === null || rows === void 0 ? void 0 : (_rows$endIndex = rows[endIndex]) === null || _rows$endIndex === void 0 ? void 0 : _rows$endIndex.id;
|
|
358
360
|
const isEndIndexChecked = checkedRowIdsSet.has(endRowId);
|
|
359
361
|
let newCheckedRowIds = [...checkedRowIds];
|
|
360
362
|
const increment = startIndex < endIndex ? 1 : -1;
|
|
@@ -422,12 +424,11 @@ const AdvancedTable = _ref => {
|
|
|
422
424
|
let newFocusedRowIndex;
|
|
423
425
|
const currentRow = rows[rowIndex];
|
|
424
426
|
const rowOrFirstColumnIsFocused = focusedColumnIndex <= 0;
|
|
425
|
-
const rowCanExpand = currentRow
|
|
426
|
-
const rowCanCollapse = currentRow
|
|
427
|
+
const rowCanExpand = (currentRow === null || currentRow === void 0 ? void 0 : currentRow.hasChildRows) && !(currentRow !== null && currentRow !== void 0 && currentRow.isExpanded);
|
|
428
|
+
const rowCanCollapse = (currentRow === null || currentRow === void 0 ? void 0 : currentRow.hasChildRows) && (currentRow === null || currentRow === void 0 ? void 0 : currentRow.isExpanded);
|
|
427
429
|
switch (e.key) {
|
|
428
430
|
case 'ArrowUp':
|
|
429
431
|
e.preventDefault(); // prevent scroll
|
|
430
|
-
setIsKeyboardUser(true);
|
|
431
432
|
newFocusedRowIndex = updateRowFocusIndex(rowIndex === minRowIndex ? headerRowIndex : rowIndex - 1);
|
|
432
433
|
if (e.shiftKey) {
|
|
433
434
|
multiUpdateCheckedRowIds(rowIndex, newFocusedRowIndex);
|
|
@@ -435,7 +436,6 @@ const AdvancedTable = _ref => {
|
|
|
435
436
|
break;
|
|
436
437
|
case 'ArrowDown':
|
|
437
438
|
e.preventDefault(); // prevent scroll
|
|
438
|
-
setIsKeyboardUser(true);
|
|
439
439
|
newFocusedRowIndex = updateRowFocusIndex(rowIndex === headerRowIndex ? minRowIndex : rowIndex + 1);
|
|
440
440
|
if (e.shiftKey) {
|
|
441
441
|
multiUpdateCheckedRowIds(rowIndex, newFocusedRowIndex);
|
|
@@ -443,7 +443,6 @@ const AdvancedTable = _ref => {
|
|
|
443
443
|
break;
|
|
444
444
|
case 'ArrowLeft':
|
|
445
445
|
e.preventDefault(); // prevent scroll
|
|
446
|
-
setIsKeyboardUser(true);
|
|
447
446
|
// If the row is expanded and on the first cell, collapse the row
|
|
448
447
|
if (e.shiftKey || rowOrFirstColumnIsFocused && rowCanCollapse) {
|
|
449
448
|
updateExpandedRowIds(rowIndex, false);
|
|
@@ -453,7 +452,6 @@ const AdvancedTable = _ref => {
|
|
|
453
452
|
break;
|
|
454
453
|
case 'ArrowRight':
|
|
455
454
|
e.preventDefault(); // prevent scroll
|
|
456
|
-
setIsKeyboardUser(true);
|
|
457
455
|
// If the row is collapsed and on the first cell, expand the row
|
|
458
456
|
if (e.shiftKey || rowOrFirstColumnIsFocused && rowCanExpand) {
|
|
459
457
|
updateExpandedRowIds(rowIndex, true);
|
|
@@ -463,17 +461,14 @@ const AdvancedTable = _ref => {
|
|
|
463
461
|
break;
|
|
464
462
|
case 'PageUp':
|
|
465
463
|
e.preventDefault(); // prevent scroll
|
|
466
|
-
setIsKeyboardUser(true);
|
|
467
464
|
updateRowFocusIndex(headerRowIndex);
|
|
468
465
|
break;
|
|
469
466
|
case 'PageDown':
|
|
470
467
|
e.preventDefault(); // prevent scroll
|
|
471
|
-
setIsKeyboardUser(true);
|
|
472
468
|
updateRowFocusIndex(maxRowIndex);
|
|
473
469
|
break;
|
|
474
470
|
case 'Home':
|
|
475
471
|
e.preventDefault(); // prevent scroll
|
|
476
|
-
setIsKeyboardUser(true);
|
|
477
472
|
updateColumnFocusIndex(minColumnIndex);
|
|
478
473
|
if (e.ctrlKey) {
|
|
479
474
|
updateRowFocusIndex(headerRowIndex);
|
|
@@ -481,7 +476,6 @@ const AdvancedTable = _ref => {
|
|
|
481
476
|
break;
|
|
482
477
|
case 'End':
|
|
483
478
|
e.preventDefault(); // prevent scroll
|
|
484
|
-
setIsKeyboardUser(true);
|
|
485
479
|
updateColumnFocusIndex(maxColumnIndex);
|
|
486
480
|
if (e.ctrlKey) {
|
|
487
481
|
updateRowFocusIndex(maxRowIndex);
|
|
@@ -489,7 +483,6 @@ const AdvancedTable = _ref => {
|
|
|
489
483
|
break;
|
|
490
484
|
case ' ':
|
|
491
485
|
e.preventDefault(); // prevent scroll
|
|
492
|
-
setIsKeyboardUser(true);
|
|
493
486
|
if (rowIndex === headerRowIndex) {
|
|
494
487
|
handleColumnHeaderCheckboxToggle();
|
|
495
488
|
} else if (e.shiftKey) {
|
|
@@ -503,6 +496,7 @@ const AdvancedTable = _ref => {
|
|
|
503
496
|
}
|
|
504
497
|
};
|
|
505
498
|
const getColumnHeaderProps = (columnConfig, columnIndex, isPinned) => {
|
|
499
|
+
var _columnWidths$id;
|
|
506
500
|
const rowIndex = headerRowIndex;
|
|
507
501
|
const {
|
|
508
502
|
id,
|
|
@@ -515,9 +509,9 @@ const AdvancedTable = _ref => {
|
|
|
515
509
|
return {
|
|
516
510
|
id,
|
|
517
511
|
isRowActionMenuColumn,
|
|
518
|
-
'data-testid': dataTestId && id ?
|
|
512
|
+
'data-testid': dataTestId && id ? "".concat(dataTestId, "-").concat(id) : undefined,
|
|
519
513
|
label: headerLabel,
|
|
520
|
-
width: columnWidths[id]
|
|
514
|
+
width: (_columnWidths$id = columnWidths[id]) !== null && _columnWidths$id !== void 0 ? _columnWidths$id : width,
|
|
521
515
|
widthBuffer: columnIndex === 0 && maxRowDepth > 0 ? columnWidthBuffers[0] : undefined,
|
|
522
516
|
onWidthChange: disableUserResizableColumns || isRowActionMenuColumn ? undefined : newWidth => {
|
|
523
517
|
setColumnWidths(currentColumnWidths => {
|
|
@@ -527,8 +521,9 @@ const AdvancedTable = _ref => {
|
|
|
527
521
|
} else if (currentColumnWidths[colId]) {
|
|
528
522
|
map[colId] = currentColumnWidths[colId];
|
|
529
523
|
} else {
|
|
530
|
-
|
|
531
|
-
|
|
524
|
+
var _cellRefs$current, _cellRefs$current$hea;
|
|
525
|
+
const colRef = (_cellRefs$current = cellRefs.current) === null || _cellRefs$current === void 0 ? void 0 : (_cellRefs$current$hea = _cellRefs$current[headerRowIndex]) === null || _cellRefs$current$hea === void 0 ? void 0 : _cellRefs$current$hea[index];
|
|
526
|
+
map[colId] = colRef === null || colRef === void 0 ? void 0 : colRef.getBoundingClientRect().width;
|
|
532
527
|
}
|
|
533
528
|
return map;
|
|
534
529
|
}, {});
|
|
@@ -564,7 +559,7 @@ const AdvancedTable = _ref => {
|
|
|
564
559
|
};
|
|
565
560
|
};
|
|
566
561
|
const getAdvancedTableRowExpandButton = (rowId, isExpanded, rowIndex) => /*#__PURE__*/React__default.createElement(AdvancedTableRowExpandButton, {
|
|
567
|
-
"data-testid": dataTestId && rowId ?
|
|
562
|
+
"data-testid": dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId, "-expand-button") : undefined,
|
|
568
563
|
isRowExpanded: !!isExpanded,
|
|
569
564
|
onClick: e => {
|
|
570
565
|
e.stopPropagation(); // prevent onRowSelect
|
|
@@ -585,6 +580,7 @@ const AdvancedTable = _ref => {
|
|
|
585
580
|
}, children);
|
|
586
581
|
};
|
|
587
582
|
const getCellProps = (columnConfig, columnIndex, data, rowIndex, rowId, depth) => {
|
|
583
|
+
var _columnWidths$columnI;
|
|
588
584
|
const {
|
|
589
585
|
id: columnId,
|
|
590
586
|
width,
|
|
@@ -598,18 +594,18 @@ const AdvancedTable = _ref => {
|
|
|
598
594
|
setValue: newValue => {
|
|
599
595
|
const newRows = [...rowsProp];
|
|
600
596
|
newRows[rowIndex].data[columnId] = newValue;
|
|
601
|
-
onRowsChange
|
|
597
|
+
onRowsChange === null || onRowsChange === void 0 ? void 0 : onRowsChange(newRows);
|
|
602
598
|
},
|
|
603
599
|
renderCellContent,
|
|
604
600
|
isCellContentInteractive,
|
|
605
|
-
width: columnWidths[columnId]
|
|
601
|
+
width: (_columnWidths$columnI = columnWidths[columnId]) !== null && _columnWidths$columnI !== void 0 ? _columnWidths$columnI : width,
|
|
606
602
|
widthBuffer: columnIndex === 0 && maxRowDepth > 0 ? columnWidthBuffers[depth] : undefined,
|
|
607
603
|
alignment,
|
|
608
604
|
rowId,
|
|
609
605
|
columnId,
|
|
610
606
|
rowIndex,
|
|
611
607
|
columnIndex,
|
|
612
|
-
'data-testid': dataTestId && rowId && columnId ?
|
|
608
|
+
'data-testid': dataTestId && rowId && columnId ? "".concat(dataTestId, "-cell-").concat(rowId, "-").concat(columnId) : undefined,
|
|
613
609
|
isFocused: rowIndex === focusedRowIndex && columnIndex === focusedColumnIndex,
|
|
614
610
|
onFocus: onCellFocus(rowIndex, columnIndex),
|
|
615
611
|
onKeyDown: onKeyDown(rowIndex),
|
|
@@ -669,16 +665,16 @@ const AdvancedTable = _ref => {
|
|
|
669
665
|
onClick: handleColumnHeaderCheckboxToggle,
|
|
670
666
|
onFocus: onRowFocus(headerRowIndex, minColumnIndex),
|
|
671
667
|
variant: "header"
|
|
672
|
-
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer(
|
|
668
|
+
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth, "px"), true) : undefined, pinnedColumnConfigs.map((columnConfigs, i) => {
|
|
673
669
|
const props = getColumnHeaderProps(columnConfigs, i, true);
|
|
674
670
|
return /*#__PURE__*/React__default.createElement(AdvancedTableColumnHeader, props);
|
|
675
|
-
})) : undefined, hasExpandableRows && !pinnedColumnConfigs.length ? getExpandableRowsSpacer(
|
|
671
|
+
})) : undefined, hasExpandableRows && !pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth, "px"), true) : undefined, unpinnedColumnConfigs.map((columnConfigs, i) => {
|
|
676
672
|
const props = getColumnHeaderProps(columnConfigs, i + pinnedColumnConfigs.length, false);
|
|
677
673
|
return /*#__PURE__*/React__default.createElement(AdvancedTableColumnHeader, props);
|
|
678
674
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
679
675
|
role: "rowgroup",
|
|
680
676
|
className: styles.advancedTableRowGroup
|
|
681
|
-
}, (paginatedRows
|
|
677
|
+
}, ((_ref5 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref5 !== void 0 ? _ref5 : []).map((row, rowIndex) => {
|
|
682
678
|
const {
|
|
683
679
|
id: rowId,
|
|
684
680
|
data,
|
|
@@ -695,7 +691,7 @@ const AdvancedTable = _ref => {
|
|
|
695
691
|
const onSelect = e => {
|
|
696
692
|
e.preventDefault(); // stops event from triggering on new target when focus is changed during onSelect
|
|
697
693
|
if (hasOnRowSelect) {
|
|
698
|
-
onRowSelect
|
|
694
|
+
onRowSelect === null || onRowSelect === void 0 ? void 0 : onRowSelect(row.rowPropReference);
|
|
699
695
|
setSelectedRowId(rowId);
|
|
700
696
|
}
|
|
701
697
|
};
|
|
@@ -710,7 +706,7 @@ const AdvancedTable = _ref => {
|
|
|
710
706
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
711
707
|
,
|
|
712
708
|
|
|
713
|
-
"data-testid": dataTestId && rowId ?
|
|
709
|
+
"data-testid": dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined,
|
|
714
710
|
hasOnRowSelect: hasOnRowSelect,
|
|
715
711
|
isFocusable: hasFocusableRows,
|
|
716
712
|
isFocused: paginatedRowIndex === focusedRowIndex && minColumnIndex === focusedColumnIndex,
|
|
@@ -719,7 +715,7 @@ const AdvancedTable = _ref => {
|
|
|
719
715
|
onKeyDown: onRowKeyDown,
|
|
720
716
|
onFocus: onRowFocus(paginatedRowIndex, minColumnIndex),
|
|
721
717
|
onClick: e => onSelect(e),
|
|
722
|
-
key:
|
|
718
|
+
key: "".concat(rowId).concat(depth).concat(parentId),
|
|
723
719
|
ref: createRef(paginatedRowIndex, minColumnIndex),
|
|
724
720
|
"aria-level": hasExpandableRows ? depth + 1 : undefined // aria-level is one-indexed
|
|
725
721
|
,
|
|
@@ -743,14 +739,14 @@ const AdvancedTable = _ref => {
|
|
|
743
739
|
onMouseEnter: () => setIsCheckboxHovered(true),
|
|
744
740
|
onMouseLeave: () => setIsCheckboxHovered(false),
|
|
745
741
|
onFocus: onRowFocus(paginatedRowIndex, minColumnIndex)
|
|
746
|
-
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer(
|
|
742
|
+
}), hasExpandableRows && pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth * (depth + 1), "px"), false, hasChildRows ? getAdvancedTableRowExpandButton(rowId, isExpanded, rowIndex) : undefined) : undefined, pinnedColumnConfigs.map((c, i) => {
|
|
747
743
|
const props = getCellProps(c, i, data, paginatedRowIndex, rowId, depth);
|
|
748
744
|
return /*#__PURE__*/React__default.createElement(AdvancedTableCell, _extends({}, props, {
|
|
749
745
|
"aria-rowindex": hasExpandableRows ? undefined : rowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
750
746
|
,
|
|
751
747
|
"aria-colindex": i + 1 // aria-colindex is one-indexed
|
|
752
748
|
}));
|
|
753
|
-
})) : undefined, hasExpandableRows && !pinnedColumnConfigs.length ? getExpandableRowsSpacer(
|
|
749
|
+
})) : undefined, hasExpandableRows && !pinnedColumnConfigs.length ? getExpandableRowsSpacer("".concat(widthBufferWidth * (depth + 1), "px"), false, hasChildRows ? getAdvancedTableRowExpandButton(rowId, isExpanded, rowIndex) : undefined) : undefined, unpinnedColumnConfigs.map((c, i) => {
|
|
754
750
|
const props = getCellProps(c, i + pinnedColumnConfigs.length, data, paginatedRowIndex, rowId, depth);
|
|
755
751
|
return /*#__PURE__*/React__default.createElement(AdvancedTableCell, _extends({}, props, {
|
|
756
752
|
className: styles.advancedTableRowChild,
|
|
@@ -771,26 +767,27 @@ const AdvancedTable = _ref => {
|
|
|
771
767
|
};
|
|
772
768
|
|
|
773
769
|
// TODO: move hook to separate file
|
|
774
|
-
function useSortedRows(
|
|
770
|
+
function useSortedRows(_ref6) {
|
|
775
771
|
let {
|
|
776
772
|
columnConfigs,
|
|
777
773
|
onRowsChange,
|
|
778
774
|
selectedSortOption,
|
|
779
775
|
setCurrentPage
|
|
780
|
-
} =
|
|
776
|
+
} = _ref6;
|
|
781
777
|
const columnConfigsRef = useLatest(columnConfigs);
|
|
782
778
|
const onRowsChangeRef = useLatest(onRowsChange);
|
|
783
779
|
useDidUpdate(() => {
|
|
780
|
+
var _columnConfigsRef$cur, _columnConfigsRef$cur2, _columnConfigsRef$cur3;
|
|
784
781
|
const {
|
|
785
782
|
columnId,
|
|
786
783
|
index
|
|
787
784
|
} = selectedSortOption;
|
|
788
|
-
const sort = columnConfigsRef.current.find(
|
|
785
|
+
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(_ref7 => {
|
|
789
786
|
let {
|
|
790
787
|
id
|
|
791
|
-
} =
|
|
788
|
+
} = _ref7;
|
|
792
789
|
return id === columnId;
|
|
793
|
-
})
|
|
790
|
+
})) === null || _columnConfigsRef$cur === void 0 ? void 0 : (_columnConfigsRef$cur2 = _columnConfigsRef$cur.sortOptions) === null || _columnConfigsRef$cur2 === void 0 ? void 0 : (_columnConfigsRef$cur3 = _columnConfigsRef$cur2[index]) === null || _columnConfigsRef$cur3 === void 0 ? void 0 : _columnConfigsRef$cur3.sort;
|
|
794
791
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
795
792
|
onRowsChangeRef.current(sort(selectedSortOption));
|
|
796
793
|
setCurrentPage(1);
|
|
@@ -799,7 +796,7 @@ function useSortedRows(_ref5) {
|
|
|
799
796
|
}
|
|
800
797
|
|
|
801
798
|
// TODO: move hook to separate file
|
|
802
|
-
function useFocusState(
|
|
799
|
+
function useFocusState(_ref8) {
|
|
803
800
|
let {
|
|
804
801
|
headerRowIndex,
|
|
805
802
|
maxRowIndex,
|
|
@@ -809,7 +806,7 @@ function useFocusState(_ref7) {
|
|
|
809
806
|
pinnedUnpinnedColumnOrder,
|
|
810
807
|
tableRef,
|
|
811
808
|
currentPage
|
|
812
|
-
} =
|
|
809
|
+
} = _ref8;
|
|
813
810
|
const cellRefs = useRef({});
|
|
814
811
|
const pinnedContainersRef = useRef({});
|
|
815
812
|
const [focusedRowIndex, setFocusedRowIndex] = useState(headerRowIndex);
|
|
@@ -835,57 +832,58 @@ function useFocusState(_ref7) {
|
|
|
835
832
|
return newIndex;
|
|
836
833
|
};
|
|
837
834
|
const focusCell = useEventCallback(cell => {
|
|
835
|
+
var _tableRef$current, _cellRefs$current2, _cellRefs$current2$he;
|
|
838
836
|
// Manually scroll cells/rows into view if needed
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
let cellPos = cell?.getBoundingClientRect();
|
|
837
|
+
const tablePos = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getBoundingClientRect();
|
|
838
|
+
const header = (_cellRefs$current2 = cellRefs.current) === null || _cellRefs$current2 === void 0 ? void 0 : (_cellRefs$current2$he = _cellRefs$current2[headerRowIndex]) === null || _cellRefs$current2$he === void 0 ? void 0 : _cellRefs$current2$he[-1];
|
|
839
|
+
const headerPos = header === null || header === void 0 ? void 0 : header.getBoundingClientRect();
|
|
840
|
+
let cellPos = cell === null || cell === void 0 ? void 0 : cell.getBoundingClientRect();
|
|
844
841
|
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
842
|
+
// Vertical scroll
|
|
843
|
+
if (cell !== header && !header.contains(cell)) {
|
|
844
|
+
if (cellPos.top < headerPos.top + headerPos.height) {
|
|
845
|
+
// Scroll down if cell covered by header
|
|
846
|
+
tableRef.current.scrollTop -= headerPos.top + headerPos.height - cellPos.top;
|
|
847
|
+
} else if (cellPos.top < tablePos.top) {
|
|
848
|
+
// Scroll down if cell out of view above table
|
|
849
|
+
tableRef.current.scrollTop -= tablePos.top - cellPos.top;
|
|
850
|
+
} else if (cellPos.bottom > tablePos.bottom) {
|
|
851
|
+
// Scroll up if cell out of view below table
|
|
852
|
+
tableRef.current.scrollTop += cellPos.bottom - tablePos.bottom;
|
|
857
853
|
}
|
|
854
|
+
}
|
|
858
855
|
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
856
|
+
// Horizontal scroll
|
|
857
|
+
// Scroll left if an entire row is focused
|
|
858
|
+
if (minColumnIndex === -1 && focusedColumnIndex === minColumnIndex) {
|
|
859
|
+
tableRef.current.scrollLeft -= tablePos.left - cellPos.left;
|
|
860
|
+
} else {
|
|
861
|
+
var _pinnedContainersRef$;
|
|
862
|
+
if (cellPos.left < tablePos.left) {
|
|
863
|
+
// Scroll right if cell out of view to the left of the table
|
|
862
864
|
tableRef.current.scrollLeft -= tablePos.left - cellPos.left;
|
|
863
|
-
} else {
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
}
|
|
871
|
-
const pinnedContainer = pinnedContainersRef.current?.[focusedRowIndex];
|
|
872
|
-
const pinnedContainerPos = pinnedContainer?.getBoundingClientRect();
|
|
873
|
-
cellPos = cell?.getBoundingClientRect();
|
|
865
|
+
} else if (cellPos.right > tablePos.right) {
|
|
866
|
+
// Scroll left if cell out of view to the right of the table
|
|
867
|
+
tableRef.current.scrollLeft += cellPos.right - tablePos.right;
|
|
868
|
+
}
|
|
869
|
+
const pinnedContainer = (_pinnedContainersRef$ = pinnedContainersRef.current) === null || _pinnedContainersRef$ === void 0 ? void 0 : _pinnedContainersRef$[focusedRowIndex];
|
|
870
|
+
const pinnedContainerPos = pinnedContainer === null || pinnedContainer === void 0 ? void 0 : pinnedContainer.getBoundingClientRect();
|
|
871
|
+
cellPos = cell === null || cell === void 0 ? void 0 : cell.getBoundingClientRect();
|
|
874
872
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
}
|
|
873
|
+
// Scroll right if cell covered by pinned columns
|
|
874
|
+
if (pinnedContainer && cellPos.left < pinnedContainerPos.left + pinnedContainerPos.width && !pinnedContainer.contains(cell)) {
|
|
875
|
+
tableRef.current.scrollLeft -= pinnedContainerPos.left + pinnedContainerPos.width - cellPos.left;
|
|
879
876
|
}
|
|
880
877
|
}
|
|
881
|
-
cell
|
|
878
|
+
cell === null || cell === void 0 ? void 0 : cell.focus();
|
|
882
879
|
});
|
|
883
880
|
|
|
884
881
|
// Focus header cell when the focused column id changes. Used when pinning/unpinning columns since a new DOM element is created.
|
|
885
882
|
useDidUpdate(() => {
|
|
886
883
|
if (focusedColumnId) {
|
|
884
|
+
var _cellRefs$current3, _cellRefs$current3$fo;
|
|
887
885
|
const columnIndex = pinnedUnpinnedColumnOrder.indexOf(focusedColumnId);
|
|
888
|
-
focusCell(cellRefs.current
|
|
886
|
+
focusCell((_cellRefs$current3 = cellRefs.current) === null || _cellRefs$current3 === void 0 ? void 0 : (_cellRefs$current3$fo = _cellRefs$current3[focusedRowIndex]) === null || _cellRefs$current3$fo === void 0 ? void 0 : _cellRefs$current3$fo[columnIndex]);
|
|
889
887
|
setFocusedColumnIndex(columnIndex);
|
|
890
888
|
setFocusedColumnId(undefined);
|
|
891
889
|
}
|
|
@@ -893,7 +891,8 @@ function useFocusState(_ref7) {
|
|
|
893
891
|
|
|
894
892
|
// Focus cell when the focused indices change
|
|
895
893
|
useDidUpdate(() => {
|
|
896
|
-
|
|
894
|
+
var _cellRefs$current4, _cellRefs$current4$fo;
|
|
895
|
+
const newFocusedCell = (_cellRefs$current4 = cellRefs.current) === null || _cellRefs$current4 === void 0 ? void 0 : (_cellRefs$current4$fo = _cellRefs$current4[focusedRowIndex]) === null || _cellRefs$current4$fo === void 0 ? void 0 : _cellRefs$current4$fo[focusedColumnIndex];
|
|
897
896
|
|
|
898
897
|
/* Prevent cells from stealing focus from their children when they
|
|
899
898
|
* receive focus, but still allow focus to move from a cell to a row.
|
|
@@ -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 = "._brNXC{overflow:auto;position:relative;max-width:100%;max-height:100%}._brNXC,._HSu7R{background-color:#fff}._HSu7R{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._9wlNT{margin-bottom:4px}._AT1Ij{position:-webkit-sticky;position:sticky;top:0;z-index:100}._3wgpr{display:flex}._3wgpr:focus{outline:none}._3wgpr.focus-visible ._EvxeW:after,._3wgpr:focus-visible ._EvxeW: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}._3wgpr.focus-visible ._EvxeW:last-of-type:after,._3wgpr:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._3wgpr.focus-visible ._EvxeW:first-of-type:after,._3wgpr:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._3wgpr.focus-visible ._EvxeW._JUVa-:after,._3wgpr:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:1px}._uR2-c{padding-right:3px}._SYZHd{display:flex}._SYZHd._qNkCq ._EvxeW,._SYZHd._qNkCq ._JFrgK{cursor:pointer}._SYZHd._To13F ._EvxeW,._SYZHd._To13F ._JFrgK{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._SYZHd._To13F ._EvxeW._JUVa-,._SYZHd._To13F ._JFrgK._JUVa-{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._SYZHd._To13F ._EvxeW._JUVa- ._JFrgK,._SYZHd._To13F ._EvxeW._JUVa- ._mMBOw,._SYZHd._To13F ._EvxeW._JUVa- ._qwY8i,._SYZHd._To13F ._JFrgK._JUVa- ._JFrgK,._SYZHd._To13F ._JFrgK._JUVa- ._mMBOw,._SYZHd._To13F ._JFrgK._JUVa- ._qwY8i{background-color:rgba(11,110,208,.08)}._SYZHd._qNkCq:hover:not(._To13F):not(._9W80x) ._EvxeW,._SYZHd._qNkCq:hover:not(._To13F):not(._9W80x) ._JFrgK{background-color:#f9f9f9}._SYZHd._qNkCq:active:not(._To13F):not(._9W80x) ._EvxeW,._SYZHd._qNkCq:active:not(._To13F):not(._9W80x) ._JFrgK{background-color:#f3f3f3}._SYZHd:focus{outline:none}._SYZHd.focus-visible ._EvxeW:after,._SYZHd:focus-visible ._EvxeW: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}._SYZHd.focus-visible ._EvxeW:last-of-type:after,._SYZHd:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._SYZHd.focus-visible ._EvxeW:first-of-type:after,._SYZHd:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._SYZHd.focus-visible ._EvxeW._JUVa-:after,._SYZHd:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:0}._SYZHd:last-of-type:focus{outline:none}._SYZHd:last-of-type.focus-visible ._EvxeW:after,._SYZHd:last-of-type:focus-visible ._EvxeW: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}._SYZHd:last-of-type.focus-visible ._EvxeW:last-of-type:after,._SYZHd:last-of-type:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._SYZHd:last-of-type.focus-visible ._EvxeW:first-of-type:after,._SYZHd:last-of-type:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._SYZHd:last-of-type.focus-visible ._EvxeW._JUVa-:after,._SYZHd:last-of-type:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:1px}._SYZHd:last-of-type ._mMBOw:focus{outline:none}._SYZHd:last-of-type ._mMBOw._Ml-JU.focus-visible:after,._SYZHd:last-of-type ._mMBOw._Ml-JU:focus-visible:after,._SYZHd:last-of-type ._mMBOw.focus-visible:after,._SYZHd:last-of-type ._mMBOw: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}._SYZHd:first-of-type:focus{outline:none}._SYZHd:first-of-type.focus-visible ._EvxeW:after,._SYZHd:first-of-type:focus-visible ._EvxeW: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}._SYZHd:first-of-type.focus-visible ._EvxeW:last-of-type:after,._SYZHd:first-of-type:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._SYZHd:first-of-type.focus-visible ._EvxeW:first-of-type:after,._SYZHd:first-of-type:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._SYZHd:first-of-type.focus-visible ._EvxeW._JUVa-:after,._SYZHd:first-of-type:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:0}._SYZHd:first-of-type ._mMBOw:focus{outline:none}._SYZHd:first-of-type ._mMBOw._Ml-JU.focus-visible:after,._SYZHd:first-of-type ._mMBOw._Ml-JU:focus-visible:after,._SYZHd:first-of-type ._mMBOw.focus-visible:after,._SYZHd:first-of-type ._mMBOw: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}._dFK8f{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}._dFK8f._qpvZQ{flex-grow:1}._dFK8f._L6ikB{cursor:pointer}._dFK8f._L6ikB:hover:not(._nzGZd){background-color:#f9f9f9;border-bottom-color:#6a6d70}._dFK8f._L6ikB:active:not(._nzGZd){background-color:#f3f3f3}._dFK8f._IWaBN:not(._nzGZd){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._dFK8f._nzGZd{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._dFK8f ._7JIow{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._dFK8f ._7JIow._oky5Z{left:-1px}._dFK8f ._7JIow._6HDZV{right:0}._dFK8f ._BwYWV{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._dFK8f ._BwYWV._oky5Z{left:-2px}._dFK8f ._BwYWV._6HDZV{right:-1px}._dFK8f:first-of-type ._oky5Z._7JIow{left:0;width:2px;border-left:1px solid #fff}._dFK8f:first-of-type ._oky5Z._BwYWV{left:0}._dFK8f:last-of-type ._6HDZV._7JIow{right:0;width:2px;border-right:1px solid #fff}._dFK8f:last-of-type ._6HDZV._BwYWV{right:0}._dFK8f ._VzLYl{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._dFK8f ._VzLYl ._xVM2J{position:absolute;width:2px;right:2px;top:0;bottom:0}._dFK8f ._VzLYl ._xVM2J._yux-4{background-color:#0a6ed1}._dFK8f ._VzLYl:hover ._xVM2J:not(._yux-4){background-color:#d9d9d9}._dFK8f ._W6Djm{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._dFK8f ._W6Djm._k4K5H{flex-direction:row-reverse;justify-content:flex-start}._dFK8f ._W6Djm._k4K5H ._xMBLi{margin:1px 7px 1px 1px}._dFK8f ._W6Djm ._KnjlU{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._dFK8f ._W6Djm ._xMBLi{margin:1px 1px 1px 7px;flex-shrink:0}._dFK8f ._gk9iN{margin-left:6px;margin-right:4px;flex-shrink:0}._dFK8f ._sqHXr{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._dFK8f:focus{outline:none}._dFK8f._Ml-JU.focus-visible:after,._dFK8f._Ml-JU:focus-visible:after,._dFK8f.focus-visible:after,._dFK8f: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}._pGMry{margin-right:6px}._JUVa-{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._JUVa-[focus-within]{z-index:30}._JUVa-:focus-within{z-index:30}._mMBOw{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}._mMBOw ._pSAIH{width:100%;padding:12px 12px 11px;overflow:hidden}._mMBOw._nzGZd{background-color:#efefef;border-bottom-color:#dfdfe1}._mMBOw._qpvZQ{flex-grow:1}._mMBOw:focus{outline:none}._mMBOw._Ml-JU.focus-visible:after,._mMBOw._Ml-JU:focus-visible:after,._mMBOw.focus-visible:after,._mMBOw: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}._JFrgK{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._JFrgK._3aAi6{border-bottom-color:#d9d9d9;background-color:#fff}._qwY8i{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}._qwY8i._3aAi6{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._qwY8i:focus input~span,._qwY8i:hover input~span{border-color:#0b6ed0}._qwY8i ._01rf7{position:relative;display:inline-flex}._qwY8i ._01rf7 ._ISuSh{margin:0!important}._qwY8i ._01rf7 ._wXh-j{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._i01WR{justify-content:flex-start}._RpSiy{justify-content:center;text-align:center}._k4K5H{justify-content:flex-end;text-align:right}._ISavx{display:none}._HgH0q{opacity:0;height:0;width:0;overflow:hidden}._HgH0q,._oHbFw{position:absolute}._oHbFw{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._mizXj{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_brNXC","advancedTablePaginationContainer":"_HSu7R","advancedTablePagination":"_9wlNT","advancedTableColumnHeadersRowGroup":"_AT1Ij","advancedTableColumnHeaders":"_3wgpr","advancedTableRowChild":"_EvxeW","pinnedContainer":"_JUVa-","advancedTableRowGroup":"_uR2-c","advancedTableRow":"_SYZHd","hasRowAction":"_qNkCq","advancedTableExpandRowSpacer":"_JFrgK","isSelected":"_To13F","advancedTableCheckbox":"_qwY8i","advancedTableCell":"_mMBOw","isCheckboxHovered":"_9W80x","showFocusRing":"_Ml-JU","advancedTableColumnHeader":"_dFK8f","fillRemainingSpace":"_qpvZQ","isSortable":"_L6ikB","isDragging":"_nzGZd","isSorted":"_IWaBN","dropTargetLine":"_7JIow","dropTargetLeft":"_oky5Z","dropTargetRight":"_6HDZV","dropTargetMarker":"_BwYWV","resizeHandle":"_VzLYl","resizeLine":"_xVM2J","isResizing":"_yux-4","advancedTableColumnHeaderLabel":"_W6Djm","rightAligned":"_k4K5H","sortIcon":"_xMBLi","advancedTableColumnHeaderLabelText":"_KnjlU","advancedTableColumnHeaderMenu":"_gk9iN","advancedTableColumnHeaderMenuHiddenAnchor":"_sqHXr","advancedTableColumnHeaderMenuItemIcon":"_pGMry","advancedTableCellContainer":"_pSAIH","header":"_3aAi6","checkboxContainer":"_01rf7","checkbox":"_ISuSh","mixed":"_wXh-j","leftAligned":"_i01WR","centerAligned":"_RpSiy","hiddenDescription":"_ISavx","hiddenLiveRegion":"_HgH0q","dragPreview":"_oHbFw","rowActionMenuPane":"_mizXj"};
|
|
5
|
+
var stylesheet="._brNXC{overflow:auto;position:relative;max-width:100%;max-height:100%}._brNXC,._HSu7R{background-color:#fff}._HSu7R{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._9wlNT{margin-bottom:4px}._AT1Ij{position:-webkit-sticky;position:sticky;top:0;z-index:100}._3wgpr{display:flex}._3wgpr:focus{outline:none}._3wgpr.focus-visible ._EvxeW:after,._3wgpr:focus-visible ._EvxeW: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}._3wgpr.focus-visible ._EvxeW:last-of-type:after,._3wgpr:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._3wgpr.focus-visible ._EvxeW:first-of-type:after,._3wgpr:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._3wgpr.focus-visible ._EvxeW._JUVa-:after,._3wgpr:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:1px}._uR2-c{padding-right:3px}._SYZHd{display:flex}._SYZHd._qNkCq ._EvxeW,._SYZHd._qNkCq ._JFrgK{cursor:pointer}._SYZHd._To13F ._EvxeW,._SYZHd._To13F ._JFrgK{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._SYZHd._To13F ._EvxeW._JUVa-,._SYZHd._To13F ._JFrgK._JUVa-{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._SYZHd._To13F ._EvxeW._JUVa- ._JFrgK,._SYZHd._To13F ._EvxeW._JUVa- ._mMBOw,._SYZHd._To13F ._EvxeW._JUVa- ._qwY8i,._SYZHd._To13F ._JFrgK._JUVa- ._JFrgK,._SYZHd._To13F ._JFrgK._JUVa- ._mMBOw,._SYZHd._To13F ._JFrgK._JUVa- ._qwY8i{background-color:rgba(11,110,208,.08)}._SYZHd._qNkCq:hover:not(._To13F):not(._9W80x) ._EvxeW,._SYZHd._qNkCq:hover:not(._To13F):not(._9W80x) ._JFrgK{background-color:#f9f9f9}._SYZHd._qNkCq:active:not(._To13F):not(._9W80x) ._EvxeW,._SYZHd._qNkCq:active:not(._To13F):not(._9W80x) ._JFrgK{background-color:#f3f3f3}._SYZHd:focus{outline:none}._SYZHd.focus-visible ._EvxeW:after,._SYZHd:focus-visible ._EvxeW: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}._SYZHd.focus-visible ._EvxeW:last-of-type:after,._SYZHd:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._SYZHd.focus-visible ._EvxeW:first-of-type:after,._SYZHd:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._SYZHd.focus-visible ._EvxeW._JUVa-:after,._SYZHd:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:0}._SYZHd:last-of-type:focus{outline:none}._SYZHd:last-of-type.focus-visible ._EvxeW:after,._SYZHd:last-of-type:focus-visible ._EvxeW: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}._SYZHd:last-of-type.focus-visible ._EvxeW:last-of-type:after,._SYZHd:last-of-type:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._SYZHd:last-of-type.focus-visible ._EvxeW:first-of-type:after,._SYZHd:last-of-type:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._SYZHd:last-of-type.focus-visible ._EvxeW._JUVa-:after,._SYZHd:last-of-type:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:1px}._SYZHd:last-of-type ._mMBOw:focus{outline:none}._SYZHd:last-of-type ._mMBOw._Ml-JU.focus-visible:after,._SYZHd:last-of-type ._mMBOw._Ml-JU:focus-visible:after,._SYZHd:last-of-type ._mMBOw.focus-visible:after,._SYZHd:last-of-type ._mMBOw: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}._SYZHd:first-of-type:focus{outline:none}._SYZHd:first-of-type.focus-visible ._EvxeW:after,._SYZHd:first-of-type:focus-visible ._EvxeW: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}._SYZHd:first-of-type.focus-visible ._EvxeW:last-of-type:after,._SYZHd:first-of-type:focus-visible ._EvxeW:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._SYZHd:first-of-type.focus-visible ._EvxeW:first-of-type:after,._SYZHd:first-of-type:focus-visible ._EvxeW:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._SYZHd:first-of-type.focus-visible ._EvxeW._JUVa-:after,._SYZHd:first-of-type:focus-visible ._EvxeW._JUVa-:after{right:-3px;bottom:0}._SYZHd:first-of-type ._mMBOw:focus{outline:none}._SYZHd:first-of-type ._mMBOw._Ml-JU.focus-visible:after,._SYZHd:first-of-type ._mMBOw._Ml-JU:focus-visible:after,._SYZHd:first-of-type ._mMBOw.focus-visible:after,._SYZHd:first-of-type ._mMBOw: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}._dFK8f{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}._dFK8f._qpvZQ{flex-grow:1}._dFK8f._L6ikB{cursor:pointer}._dFK8f._L6ikB:hover:not(._nzGZd){background-color:#f9f9f9;border-bottom-color:#6a6d70}._dFK8f._L6ikB:active:not(._nzGZd){background-color:#f3f3f3}._dFK8f._IWaBN:not(._nzGZd){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._dFK8f._nzGZd{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._dFK8f ._7JIow{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._dFK8f ._7JIow._oky5Z{left:-1px}._dFK8f ._7JIow._6HDZV{right:0}._dFK8f ._BwYWV{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._dFK8f ._BwYWV._oky5Z{left:-2px}._dFK8f ._BwYWV._6HDZV{right:-1px}._dFK8f:first-of-type ._oky5Z._7JIow{left:0;width:2px;border-left:1px solid #fff}._dFK8f:first-of-type ._oky5Z._BwYWV{left:0}._dFK8f:last-of-type ._6HDZV._7JIow{right:0;width:2px;border-right:1px solid #fff}._dFK8f:last-of-type ._6HDZV._BwYWV{right:0}._dFK8f ._VzLYl{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._dFK8f ._VzLYl ._xVM2J{position:absolute;width:2px;right:2px;top:0;bottom:0}._dFK8f ._VzLYl ._xVM2J._yux-4{background-color:#0a6ed1}._dFK8f ._VzLYl:hover ._xVM2J:not(._yux-4){background-color:#d9d9d9}._dFK8f ._W6Djm{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._dFK8f ._W6Djm._k4K5H{flex-direction:row-reverse;justify-content:flex-start}._dFK8f ._W6Djm._k4K5H ._xMBLi{margin:1px 7px 1px 1px}._dFK8f ._W6Djm ._KnjlU{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._dFK8f ._W6Djm ._xMBLi{margin:1px 1px 1px 7px;flex-shrink:0}._dFK8f ._gk9iN{margin-left:6px;margin-right:4px;flex-shrink:0}._dFK8f ._sqHXr{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._dFK8f:focus{outline:none}._dFK8f._Ml-JU.focus-visible:after,._dFK8f._Ml-JU:focus-visible:after,._dFK8f.focus-visible:after,._dFK8f: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}._pGMry{margin-right:6px}._JUVa-{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._JUVa-[focus-within]{z-index:30}._JUVa-:focus-within{z-index:30}._mMBOw{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}._mMBOw ._pSAIH{width:100%;padding:12px 12px 11px;overflow:hidden}._mMBOw._nzGZd{background-color:#efefef;border-bottom-color:#dfdfe1}._mMBOw._qpvZQ{flex-grow:1}._mMBOw:focus{outline:none}._mMBOw._Ml-JU.focus-visible:after,._mMBOw._Ml-JU:focus-visible:after,._mMBOw.focus-visible:after,._mMBOw: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}._JFrgK{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._JFrgK._3aAi6{border-bottom-color:#d9d9d9;background-color:#fff}._qwY8i{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}._qwY8i._3aAi6{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._qwY8i:focus input~span,._qwY8i:hover input~span{border-color:#0b6ed0}._qwY8i ._01rf7{position:relative;display:inline-flex}._qwY8i ._01rf7 ._ISuSh{margin:0!important}._qwY8i ._01rf7 ._wXh-j{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._i01WR{justify-content:flex-start}._RpSiy{justify-content:center;text-align:center}._k4K5H{justify-content:flex-end;text-align:right}._ISavx{display:none}._HgH0q{opacity:0;height:0;width:0;overflow:hidden}._HgH0q,._oHbFw{position:absolute}._oHbFw{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._mizXj{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|