@qualtrics/ui-react 2.19.1 → 2.21.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 +21 -20
- package/dist/__shared/cjs/{index-4a5425cc.js → index-0ae99de2.js} +3 -3
- package/dist/__shared/cjs/{index-384184bd.js → index-201e8786.js} +193 -263
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -2
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +0 -7
- package/dist/components/ColorPicker/ColorPicker.js +5 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/Hue.js +0 -7
- package/dist/components/ColorPicker/Palette.js +6 -4
- package/dist/components/ColorPicker/Saturation.js +0 -9
- package/dist/components/Combobox/Combobox.js +8 -6
- 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/Dropdown.js +0 -5
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +2 -5
- package/dist/components/Dropdown/DropdownSearch.js +2 -5
- package/dist/components/FilePicker/FilePicker.js +0 -7
- 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/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/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +9 -8
- 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/Tooltip.js +7 -5
- 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/components/deprecated_Toolbar/ToolbarPanels.js +0 -27
- package/dist/hooks/useEventListener/useEventListener.js +3 -0
- package/dist/hooks/useOverlay/useOverlay.js +5 -2
- 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/index.js +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +33 -45
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +1 -2
- 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/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +6 -2
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +13 -6
- package/dist/next/Menu/MenuItem.js +10 -4
- package/dist/next/Menu/MenuPane.js +55 -37
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +54 -41
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +97 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.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.d.ts +6 -4
- package/dist/next/index.js +387 -290
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/index.js +0 -1
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +3 -3
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -14,7 +14,6 @@ import ChevronRightIcon from '../../icons/components/ChevronRightIcon.js';
|
|
|
14
14
|
import ChevronLeftIcon from '../../icons/components/ChevronLeftIcon.js';
|
|
15
15
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
16
16
|
import useIsHovered from '../../hooks/useIsHovered/useIsHovered.js';
|
|
17
|
-
import { getIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
18
17
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
19
18
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
20
19
|
|
|
@@ -86,7 +85,6 @@ const ToolbarPanels = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
86
85
|
...rest
|
|
87
86
|
} = _ref2;
|
|
88
87
|
const expandCollapseButtonRef = useRef(null);
|
|
89
|
-
const [isExpandCollapseButtonKeyboardFocused, setIsExpandCollapseButtonKeyboardFocused] = useState(false);
|
|
90
88
|
const [wasExpandCollapseButtonClicked, setWasExpandCollapseButtonClicked] = useState(false);
|
|
91
89
|
const [isCollapsed, setIsCollapsed] = useControllableState(isCollapsible && defaultIsCollapsed, isCollapsible ? onIsCollapsedChange : undefined, isCollapsible && externalIsCollapsed);
|
|
92
90
|
const {
|
|
@@ -98,17 +96,6 @@ const ToolbarPanels = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
98
96
|
useEffect(() => {
|
|
99
97
|
/*
|
|
100
98
|
* The expand/collapse button is re-rendered when the `isCollapsed` value changes.
|
|
101
|
-
* The re-render hides the tooltip.
|
|
102
|
-
* This needs to happen because the `Tooltip`'s `mouseleave` event does not get triggered when the button element moves (this is expected behavior).
|
|
103
|
-
* Since the button is re-rendered, if there is keyboard focus, we need to programmatically re-focus the button because React doesn't know that it's the same button.
|
|
104
|
-
*/
|
|
105
|
-
if (isExpandCollapseButtonKeyboardFocused) {
|
|
106
|
-
expandCollapseButtonRef.current?.focus();
|
|
107
|
-
}
|
|
108
|
-
}, [isCollapsed, isExpandCollapseButtonKeyboardFocused]);
|
|
109
|
-
useEffect(() => {
|
|
110
|
-
/*
|
|
111
|
-
* Similar to the above `useEffect`, the expand/collapse button is re-rendered when the `isCollapsed` value changes.
|
|
112
99
|
* If the button is clicked, we need to programmatically re-focus the button.
|
|
113
100
|
* This allows a screen reader user to click the expand/collapse button using their keyboard and have focus stay on the same button.
|
|
114
101
|
*/
|
|
@@ -117,21 +104,10 @@ const ToolbarPanels = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
117
104
|
setWasExpandCollapseButtonClicked(false);
|
|
118
105
|
}
|
|
119
106
|
}, [wasExpandCollapseButtonClicked]);
|
|
120
|
-
const onExpandCollapseButtonMouseDown = () => {
|
|
121
|
-
setIsExpandCollapseButtonKeyboardFocused(false);
|
|
122
|
-
};
|
|
123
107
|
const onExpandCollapseButtonClick = () => {
|
|
124
108
|
setIsCollapsed(currentIsCollapsed => !currentIsCollapsed);
|
|
125
109
|
setWasExpandCollapseButtonClicked(true);
|
|
126
110
|
};
|
|
127
|
-
const onExpandCollapseButtonFocus = () => {
|
|
128
|
-
if (getIsKeyboardUser()) {
|
|
129
|
-
setIsExpandCollapseButtonKeyboardFocused(true);
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const onExpandCollapseButtonBlur = () => {
|
|
133
|
-
setIsExpandCollapseButtonKeyboardFocused(false);
|
|
134
|
-
};
|
|
135
111
|
const selectedTabPanelId = React__default.Children.toArray(children)?.[Number(selectedIndex)]?.props?.id ?? `toolbar-${toolbarId}-panel-${selectedIndex}`;
|
|
136
112
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
137
113
|
ref: mergeRefs(ref, isToolbarPanelsContainerHoveredRef),
|
|
@@ -142,10 +118,7 @@ const ToolbarPanels = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
142
118
|
key: String(isCollapsed),
|
|
143
119
|
isCollapsed: isCollapsed,
|
|
144
120
|
selectedTabPanelId: selectedTabPanelId,
|
|
145
|
-
onMouseDown: onExpandCollapseButtonMouseDown,
|
|
146
121
|
onClick: onExpandCollapseButtonClick,
|
|
147
|
-
onFocus: onExpandCollapseButtonFocus,
|
|
148
|
-
onBlur: onExpandCollapseButtonBlur,
|
|
149
122
|
isContainerHovered: isToolbarPanelsContainerHovered,
|
|
150
123
|
"data-testid": getSubDataTestId(rootDataTestId, 'panels-expand-collapse-button'),
|
|
151
124
|
ref: expandCollapseButtonRef
|
|
@@ -25,6 +25,9 @@ function useEventListener(targetOrRef, event, handler) {
|
|
|
25
25
|
additionalDependencies = []
|
|
26
26
|
} = options;
|
|
27
27
|
useEffect(() => {
|
|
28
|
+
if (!targetOrRef) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
28
31
|
const target = isEventTarget(targetOrRef) ? targetOrRef : targetOrRef.current;
|
|
29
32
|
if (target?.addEventListener && !isDisabled) {
|
|
30
33
|
target.addEventListener(event, listener, isCaptureEvent);
|
|
@@ -12,6 +12,7 @@ import useId from '../useId/useId.js';
|
|
|
12
12
|
* @param {string[]} ignoreIds - An array of ids belonging to elements that should not become inert when isInert is true.
|
|
13
13
|
* @param {CSSProperties['zIndex']} zIndex - The zIndex of the overlay.
|
|
14
14
|
* @param {string} dataTestId - A string to be added to the overlay element as a data-testid.
|
|
15
|
+
* @param {number} opacity - The opacity of the overlay.
|
|
15
16
|
*/
|
|
16
17
|
const useOverlay = _ref => {
|
|
17
18
|
let {
|
|
@@ -20,7 +21,8 @@ const useOverlay = _ref => {
|
|
|
20
21
|
onClick,
|
|
21
22
|
ignoreIds = [],
|
|
22
23
|
zIndex,
|
|
23
|
-
dataTestId
|
|
24
|
+
dataTestId,
|
|
25
|
+
opacity
|
|
24
26
|
} = _ref;
|
|
25
27
|
const overlayId = useId();
|
|
26
28
|
useEffect(() => {
|
|
@@ -31,7 +33,8 @@ const useOverlay = _ref => {
|
|
|
31
33
|
if (onClick) overlay.addEventListener('click', onClick);
|
|
32
34
|
if (dataTestId) overlay.dataset.testid = dataTestId;
|
|
33
35
|
if (!isVisible) overlay.classList.add(styles.hidden);
|
|
34
|
-
if (zIndex) overlay.style.zIndex = zIndex.toString();
|
|
36
|
+
if (zIndex || zIndex === 0) overlay.style.zIndex = zIndex.toString();
|
|
37
|
+
if (opacity || opacity === 0) overlay.style.opacity = opacity.toString();
|
|
35
38
|
containerNode.appendChild(overlay);
|
|
36
39
|
containerNode.style.position = 'relative';
|
|
37
40
|
return () => {
|
|
@@ -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 = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._zIGpU{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._yz842{visibility:hidden}";
|
|
4
|
+
var styles = {"overlay":"_zIGpU","hidden":"_yz842"};
|
|
5
|
+
var stylesheet="._zIGpU{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._yz842{visibility:hidden}";
|
|
6
6
|
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 classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._pNtjY{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_pNtjY"};
|
|
5
|
+
var stylesheet="._pNtjY{position:absolute;top:-10000px;left:-10000px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -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 = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._aNeVE{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_aNeVE"};
|
|
5
|
+
var stylesheet="._aNeVE{flex-shrink:0}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/icons/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-0ae99de2.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export declare function Breakpoint({ size, children, }: {
|
|
|
66
66
|
|
|
67
67
|
export declare function BreakpointSwitch({ children, }: {
|
|
68
68
|
children: React_2.ReactNode;
|
|
69
|
-
}):
|
|
69
|
+
}): ReactElement;
|
|
70
70
|
|
|
71
71
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
72
72
|
|
|
@@ -148,7 +148,7 @@ export declare interface Color {
|
|
|
148
148
|
name?: string;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
export declare function ColorPicker({ color: externalColor, onChange, palette, isAlphaEnabled, isDisabled, id, buttonRef: externalButtonRef, inputRef: externalInputRef, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, zIndex, 'data-testid': dataTestId, }: ColorPickerProps):
|
|
151
|
+
export declare function ColorPicker({ color: externalColor, onChange, palette, isAlphaEnabled, hideHSVSelector, hideFlyoutInputs, isDisabled, id, buttonRef: externalButtonRef, inputRef: externalInputRef, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, zIndex, 'data-testid': dataTestId, }: ColorPickerProps): ReactElement;
|
|
152
152
|
|
|
153
153
|
export declare interface ColorPickerProps {
|
|
154
154
|
color: Color;
|
|
@@ -164,6 +164,8 @@ export declare interface ColorPickerProps {
|
|
|
164
164
|
'aria-describedby'?: string;
|
|
165
165
|
zIndex?: number;
|
|
166
166
|
'data-testid'?: string;
|
|
167
|
+
hideHSVSelector?: boolean;
|
|
168
|
+
hideFlyoutInputs?: boolean;
|
|
167
169
|
}
|
|
168
170
|
|
|
169
171
|
export declare const Combobox: React_2.ForwardRefExoticComponent<ComboboxProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -1671,7 +1673,7 @@ export declare interface PopoverProps extends Omit<React_2.AllHTMLAttributes<HTM
|
|
|
1671
1673
|
[prop: string]: any;
|
|
1672
1674
|
}
|
|
1673
1675
|
|
|
1674
|
-
export declare const PortalTargetProvider: ({ target, children, }: PortalTargetProviderProps) =>
|
|
1676
|
+
export declare const PortalTargetProvider: ({ target, children, }: PortalTargetProviderProps) => ReactElement;
|
|
1675
1677
|
|
|
1676
1678
|
export declare interface PortalTargetProviderProps {
|
|
1677
1679
|
target?: HTMLElement | null;
|
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import './utils/index.js';
|
|
2
1
|
import './components/index.js';
|
|
3
2
|
import './hooks/index.js';
|
|
4
3
|
export { DEFAULT_BREAKPOINTS } from './utils/constants.js';
|
|
5
|
-
import { enableKeyboardUserClass } from './utils/keyboardUser/keyboardUser.js';
|
|
6
4
|
export { default as useBreakpoints } from './hooks/useBreakpoints/useBreakpoints.js';
|
|
7
5
|
export { default as useResponsiveValue } from './hooks/useResponsiveValue/useResponsiveValue.js';
|
|
8
6
|
export { Accordion } from './components/Accordion/Accordion.js';
|
|
@@ -101,11 +99,7 @@ export { default as deprecated_ToolbarPanels } from './components/deprecated_Too
|
|
|
101
99
|
export { default as deprecated_ToolbarPanel } from './components/deprecated_Toolbar/ToolbarPanel.js';
|
|
102
100
|
|
|
103
101
|
/* eslint-disable camelcase */
|
|
104
|
-
|
|
105
|
-
// Use :focus-visible wherever possible instead of keyboard-user class
|
|
106
|
-
// TODO remove this over time
|
|
107
|
-
enableKeyboardUserClass();
|
|
108
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
109
|
-
const version = '2.
|
|
103
|
+
const version = '2.21.0';
|
|
110
104
|
|
|
111
105
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,28 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-201e8786.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
9
|
-
require('./__shared/cjs/index-
|
|
9
|
+
require('./__shared/cjs/index-0ae99de2.js');
|
|
10
10
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
11
11
|
require('react-popper');
|
|
12
12
|
require('@popperjs/core');
|
|
13
13
|
require('react-focus-lock');
|
|
14
14
|
require('react-dom');
|
|
15
|
+
require('@react-aria/interactions');
|
|
15
16
|
require('uuid');
|
|
16
17
|
require('@react-hook/resize-observer');
|
|
17
18
|
require('@qualtrics/component-styles');
|
|
18
19
|
require('throttle-debounce');
|
|
19
20
|
|
|
20
21
|
/* eslint-disable camelcase */
|
|
21
|
-
|
|
22
|
-
// Use :focus-visible wherever possible instead of keyboard-user class
|
|
23
|
-
// TODO remove this over time
|
|
24
|
-
index.enableKeyboardUserClass();
|
|
25
22
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
26
|
-
const version = '2.
|
|
23
|
+
const version = '2.21.0';
|
|
27
24
|
|
|
28
25
|
exports.Accordion = index.Accordion;
|
|
29
26
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -32,7 +32,6 @@ 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';
|
|
@@ -427,7 +426,6 @@ const AdvancedTable = _ref => {
|
|
|
427
426
|
switch (e.key) {
|
|
428
427
|
case 'ArrowUp':
|
|
429
428
|
e.preventDefault(); // prevent scroll
|
|
430
|
-
setIsKeyboardUser(true);
|
|
431
429
|
newFocusedRowIndex = updateRowFocusIndex(rowIndex === minRowIndex ? headerRowIndex : rowIndex - 1);
|
|
432
430
|
if (e.shiftKey) {
|
|
433
431
|
multiUpdateCheckedRowIds(rowIndex, newFocusedRowIndex);
|
|
@@ -435,7 +433,6 @@ const AdvancedTable = _ref => {
|
|
|
435
433
|
break;
|
|
436
434
|
case 'ArrowDown':
|
|
437
435
|
e.preventDefault(); // prevent scroll
|
|
438
|
-
setIsKeyboardUser(true);
|
|
439
436
|
newFocusedRowIndex = updateRowFocusIndex(rowIndex === headerRowIndex ? minRowIndex : rowIndex + 1);
|
|
440
437
|
if (e.shiftKey) {
|
|
441
438
|
multiUpdateCheckedRowIds(rowIndex, newFocusedRowIndex);
|
|
@@ -443,7 +440,6 @@ const AdvancedTable = _ref => {
|
|
|
443
440
|
break;
|
|
444
441
|
case 'ArrowLeft':
|
|
445
442
|
e.preventDefault(); // prevent scroll
|
|
446
|
-
setIsKeyboardUser(true);
|
|
447
443
|
// If the row is expanded and on the first cell, collapse the row
|
|
448
444
|
if (e.shiftKey || rowOrFirstColumnIsFocused && rowCanCollapse) {
|
|
449
445
|
updateExpandedRowIds(rowIndex, false);
|
|
@@ -453,7 +449,6 @@ const AdvancedTable = _ref => {
|
|
|
453
449
|
break;
|
|
454
450
|
case 'ArrowRight':
|
|
455
451
|
e.preventDefault(); // prevent scroll
|
|
456
|
-
setIsKeyboardUser(true);
|
|
457
452
|
// If the row is collapsed and on the first cell, expand the row
|
|
458
453
|
if (e.shiftKey || rowOrFirstColumnIsFocused && rowCanExpand) {
|
|
459
454
|
updateExpandedRowIds(rowIndex, true);
|
|
@@ -463,17 +458,14 @@ const AdvancedTable = _ref => {
|
|
|
463
458
|
break;
|
|
464
459
|
case 'PageUp':
|
|
465
460
|
e.preventDefault(); // prevent scroll
|
|
466
|
-
setIsKeyboardUser(true);
|
|
467
461
|
updateRowFocusIndex(headerRowIndex);
|
|
468
462
|
break;
|
|
469
463
|
case 'PageDown':
|
|
470
464
|
e.preventDefault(); // prevent scroll
|
|
471
|
-
setIsKeyboardUser(true);
|
|
472
465
|
updateRowFocusIndex(maxRowIndex);
|
|
473
466
|
break;
|
|
474
467
|
case 'Home':
|
|
475
468
|
e.preventDefault(); // prevent scroll
|
|
476
|
-
setIsKeyboardUser(true);
|
|
477
469
|
updateColumnFocusIndex(minColumnIndex);
|
|
478
470
|
if (e.ctrlKey) {
|
|
479
471
|
updateRowFocusIndex(headerRowIndex);
|
|
@@ -481,7 +473,6 @@ const AdvancedTable = _ref => {
|
|
|
481
473
|
break;
|
|
482
474
|
case 'End':
|
|
483
475
|
e.preventDefault(); // prevent scroll
|
|
484
|
-
setIsKeyboardUser(true);
|
|
485
476
|
updateColumnFocusIndex(maxColumnIndex);
|
|
486
477
|
if (e.ctrlKey) {
|
|
487
478
|
updateRowFocusIndex(maxRowIndex);
|
|
@@ -489,7 +480,6 @@ const AdvancedTable = _ref => {
|
|
|
489
480
|
break;
|
|
490
481
|
case ' ':
|
|
491
482
|
e.preventDefault(); // prevent scroll
|
|
492
|
-
setIsKeyboardUser(true);
|
|
493
483
|
if (rowIndex === headerRowIndex) {
|
|
494
484
|
handleColumnHeaderCheckboxToggle();
|
|
495
485
|
} else if (e.shiftKey) {
|
|
@@ -836,46 +826,44 @@ function useFocusState(_ref7) {
|
|
|
836
826
|
};
|
|
837
827
|
const focusCell = useEventCallback(cell => {
|
|
838
828
|
// Manually scroll cells/rows into view if needed
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
let cellPos = cell?.getBoundingClientRect();
|
|
829
|
+
const tablePos = tableRef.current?.getBoundingClientRect();
|
|
830
|
+
const header = cellRefs.current?.[headerRowIndex]?.[-1];
|
|
831
|
+
const headerPos = header?.getBoundingClientRect();
|
|
832
|
+
let cellPos = cell?.getBoundingClientRect();
|
|
844
833
|
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}
|
|
834
|
+
// Vertical scroll
|
|
835
|
+
if (cell !== header && !header.contains(cell)) {
|
|
836
|
+
if (cellPos.top < headerPos.top + headerPos.height) {
|
|
837
|
+
// Scroll down if cell covered by header
|
|
838
|
+
tableRef.current.scrollTop -= headerPos.top + headerPos.height - cellPos.top;
|
|
839
|
+
} else if (cellPos.top < tablePos.top) {
|
|
840
|
+
// Scroll down if cell out of view above table
|
|
841
|
+
tableRef.current.scrollTop -= tablePos.top - cellPos.top;
|
|
842
|
+
} else if (cellPos.bottom > tablePos.bottom) {
|
|
843
|
+
// Scroll up if cell out of view below table
|
|
844
|
+
tableRef.current.scrollTop += cellPos.bottom - tablePos.bottom;
|
|
857
845
|
}
|
|
846
|
+
}
|
|
858
847
|
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
848
|
+
// Horizontal scroll
|
|
849
|
+
// Scroll left if an entire row is focused
|
|
850
|
+
if (minColumnIndex === -1 && focusedColumnIndex === minColumnIndex) {
|
|
851
|
+
tableRef.current.scrollLeft -= tablePos.left - cellPos.left;
|
|
852
|
+
} else {
|
|
853
|
+
if (cellPos.left < tablePos.left) {
|
|
854
|
+
// Scroll right if cell out of view to the left of the table
|
|
862
855
|
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();
|
|
856
|
+
} else if (cellPos.right > tablePos.right) {
|
|
857
|
+
// Scroll left if cell out of view to the right of the table
|
|
858
|
+
tableRef.current.scrollLeft += cellPos.right - tablePos.right;
|
|
859
|
+
}
|
|
860
|
+
const pinnedContainer = pinnedContainersRef.current?.[focusedRowIndex];
|
|
861
|
+
const pinnedContainerPos = pinnedContainer?.getBoundingClientRect();
|
|
862
|
+
cellPos = cell?.getBoundingClientRect();
|
|
874
863
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
}
|
|
864
|
+
// Scroll right if cell covered by pinned columns
|
|
865
|
+
if (pinnedContainer && cellPos.left < pinnedContainerPos.left + pinnedContainerPos.width && !pinnedContainer.contains(cell)) {
|
|
866
|
+
tableRef.current.scrollLeft -= pinnedContainerPos.left + pinnedContainerPos.width - cellPos.left;
|
|
879
867
|
}
|
|
880
868
|
}
|
|
881
869
|
cell?.focus();
|
|
@@ -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 = "._7PNPm{overflow:auto;position:relative;max-width:100%;max-height:100%}._7PNPm,._PKFfX{background-color:#fff}._PKFfX{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:sticky;left:0}._Wk3YR{margin-bottom:4px}._zrc9C{position:sticky;top:0;z-index:100}._tDGix{display:flex}._tDGix:focus{outline:none}._tDGix.focus-visible ._ZMkm9:after,._tDGix:focus-visible ._ZMkm9: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}._tDGix.focus-visible ._ZMkm9:last-of-type:after,._tDGix:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9:first-of-type:after,._tDGix:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9._Ugmo0:after,._tDGix:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._hVuE5{padding-right:3px}._5OLws{display:flex}._5OLws._gsmDP ._OChfn,._5OLws._gsmDP ._ZMkm9{cursor:pointer}._5OLws._xCdSd ._OChfn,._5OLws._xCdSd ._ZMkm9{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0,._5OLws._xCdSd ._ZMkm9._Ugmo0{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0 ._OChfn,._5OLws._xCdSd ._OChfn._Ugmo0 ._p4Mup,._5OLws._xCdSd ._OChfn._Ugmo0 ._WEK5T,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._OChfn,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._p4Mup,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._WEK5T{background-color:rgba(11,110,208,.08)}._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f9f9f9}._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f3f3f3}._5OLws:focus{outline:none}._5OLws.focus-visible ._ZMkm9:after,._5OLws:focus-visible ._ZMkm9: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}._5OLws.focus-visible ._ZMkm9:last-of-type:after,._5OLws:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9:first-of-type:after,._5OLws:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:last-of-type:focus{outline:none}._5OLws:last-of-type.focus-visible ._ZMkm9:after,._5OLws:last-of-type:focus-visible ._ZMkm9: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}._5OLws:last-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:last-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._5OLws:last-of-type ._WEK5T:focus{outline:none}._5OLws:last-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:last-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:last-of-type ._WEK5T.focus-visible:after,._5OLws:last-of-type ._WEK5T: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}._5OLws:first-of-type:focus{outline:none}._5OLws:first-of-type.focus-visible ._ZMkm9:after,._5OLws:first-of-type:focus-visible ._ZMkm9: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}._5OLws:first-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:first-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:first-of-type ._WEK5T:focus{outline:none}._5OLws:first-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:first-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:first-of-type ._WEK5T.focus-visible:after,._5OLws:first-of-type ._WEK5T: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}._9XJ45{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}._9XJ45._i7fpo{flex-grow:1}._9XJ45._PSQcw{cursor:pointer}._9XJ45._PSQcw:hover:not(._N6Kdw){background-color:#f9f9f9;border-bottom-color:#6a6d70}._9XJ45._PSQcw:active:not(._N6Kdw){background-color:#f3f3f3}._9XJ45._t7sis:not(._N6Kdw){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._9XJ45._N6Kdw{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._9XJ45 ._Pql1N{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._9XJ45 ._Pql1N._1k-uc{left:-1px}._9XJ45 ._Pql1N._miZX2{right:0}._9XJ45 ._ZGC4f{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._9XJ45 ._ZGC4f._1k-uc{left:-2px}._9XJ45 ._ZGC4f._miZX2{right:-1px}._9XJ45:first-of-type ._1k-uc._Pql1N{left:0;width:2px;border-left:1px solid #fff}._9XJ45:first-of-type ._1k-uc._ZGC4f{left:0}._9XJ45:last-of-type ._miZX2._Pql1N{right:0;width:2px;border-right:1px solid #fff}._9XJ45:last-of-type ._miZX2._ZGC4f{right:0}._9XJ45 ._LLRc2{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._9XJ45 ._LLRc2 ._rW-zY{position:absolute;width:2px;right:2px;top:0;bottom:0}._9XJ45 ._LLRc2 ._rW-zY._BTYN3{background-color:#0a6ed1}._9XJ45 ._LLRc2:hover ._rW-zY:not(._BTYN3){background-color:#d9d9d9}._9XJ45 ._JKZ-w{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._9XJ45 ._JKZ-w._A20bj{flex-direction:row-reverse;justify-content:flex-start}._9XJ45 ._JKZ-w._A20bj ._KPYkO{margin:1px 7px 1px 1px}._9XJ45 ._JKZ-w ._kDk72{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._9XJ45 ._JKZ-w ._KPYkO{margin:1px 1px 1px 7px;flex-shrink:0}._9XJ45 ._tiDig{margin-left:6px;margin-right:4px;flex-shrink:0}._9XJ45 ._Iwmpo{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._9XJ45:focus{outline:none}._9XJ45._DzzHO.focus-visible:after,._9XJ45._DzzHO:focus-visible:after,._9XJ45.focus-visible:after,._9XJ45: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}._0TRt-{margin-right:6px}._Ugmo0{display:flex;border-right:3px solid #e5e5e5;position:sticky;left:0;background-color:#fff;z-index:20}._Ugmo0[focus-within]{z-index:30}._Ugmo0:focus-within{z-index:30}._WEK5T{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}._WEK5T ._LaYfH{width:100%;padding:12px 12px 11px;overflow:hidden}._WEK5T._N6Kdw{background-color:#efefef;border-bottom-color:#dfdfe1}._WEK5T._i7fpo{flex-grow:1}._WEK5T:focus{outline:none}._WEK5T._DzzHO.focus-visible:after,._WEK5T._DzzHO:focus-visible:after,._WEK5T.focus-visible:after,._WEK5T: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}._OChfn{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._OChfn._g3FVD{border-bottom-color:#d9d9d9;background-color:#fff}._p4Mup{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}._p4Mup._g3FVD{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._p4Mup:focus input~span,._p4Mup:hover input~span{border-color:#0b6ed0}._p4Mup ._lN2D9{position:relative;display:inline-flex}._p4Mup ._lN2D9 ._--5ai{margin:0!important}._p4Mup ._lN2D9 ._nBxBg{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._qaInU{justify-content:flex-start}._5eZFM{justify-content:center;text-align:center}._A20bj{justify-content:flex-end;text-align:right}._akRqx{display:none}._CDbWs{opacity:0;height:0;width:0;overflow:hidden}._CDbWs,._ewNL4{position:absolute}._ewNL4{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._VwY6U{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_7PNPm","advancedTablePaginationContainer":"_PKFfX","advancedTablePagination":"_Wk3YR","advancedTableColumnHeadersRowGroup":"_zrc9C","advancedTableColumnHeaders":"_tDGix","advancedTableRowChild":"_ZMkm9","pinnedContainer":"_Ugmo0","advancedTableRowGroup":"_hVuE5","advancedTableRow":"_5OLws","hasRowAction":"_gsmDP","advancedTableExpandRowSpacer":"_OChfn","isSelected":"_xCdSd","advancedTableCheckbox":"_p4Mup","advancedTableCell":"_WEK5T","isCheckboxHovered":"_xQgNo","showFocusRing":"_DzzHO","advancedTableColumnHeader":"_9XJ45","fillRemainingSpace":"_i7fpo","isSortable":"_PSQcw","isDragging":"_N6Kdw","isSorted":"_t7sis","dropTargetLine":"_Pql1N","dropTargetLeft":"_1k-uc","dropTargetRight":"_miZX2","dropTargetMarker":"_ZGC4f","resizeHandle":"_LLRc2","resizeLine":"_rW-zY","isResizing":"_BTYN3","advancedTableColumnHeaderLabel":"_JKZ-w","rightAligned":"_A20bj","sortIcon":"_KPYkO","advancedTableColumnHeaderLabelText":"_kDk72","advancedTableColumnHeaderMenu":"_tiDig","advancedTableColumnHeaderMenuHiddenAnchor":"_Iwmpo","advancedTableColumnHeaderMenuItemIcon":"_0TRt-","advancedTableCellContainer":"_LaYfH","header":"_g3FVD","checkboxContainer":"_lN2D9","checkbox":"_--5ai","mixed":"_nBxBg","leftAligned":"_qaInU","centerAligned":"_5eZFM","hiddenDescription":"_akRqx","hiddenLiveRegion":"_CDbWs","dragPreview":"_ewNL4","rowActionMenuPane":"_VwY6U"};
|
|
5
|
+
var stylesheet="._7PNPm{overflow:auto;position:relative;max-width:100%;max-height:100%}._7PNPm,._PKFfX{background-color:#fff}._PKFfX{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:sticky;left:0}._Wk3YR{margin-bottom:4px}._zrc9C{position:sticky;top:0;z-index:100}._tDGix{display:flex}._tDGix:focus{outline:none}._tDGix.focus-visible ._ZMkm9:after,._tDGix:focus-visible ._ZMkm9: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}._tDGix.focus-visible ._ZMkm9:last-of-type:after,._tDGix:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9:first-of-type:after,._tDGix:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._tDGix.focus-visible ._ZMkm9._Ugmo0:after,._tDGix:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._hVuE5{padding-right:3px}._5OLws{display:flex}._5OLws._gsmDP ._OChfn,._5OLws._gsmDP ._ZMkm9{cursor:pointer}._5OLws._xCdSd ._OChfn,._5OLws._xCdSd ._ZMkm9{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0,._5OLws._xCdSd ._ZMkm9._Ugmo0{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._5OLws._xCdSd ._OChfn._Ugmo0 ._OChfn,._5OLws._xCdSd ._OChfn._Ugmo0 ._p4Mup,._5OLws._xCdSd ._OChfn._Ugmo0 ._WEK5T,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._OChfn,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._p4Mup,._5OLws._xCdSd ._ZMkm9._Ugmo0 ._WEK5T{background-color:rgba(11,110,208,.08)}._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:hover:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f9f9f9}._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._OChfn,._5OLws._gsmDP:active:not(._xCdSd):not(._xQgNo) ._ZMkm9{background-color:#f3f3f3}._5OLws:focus{outline:none}._5OLws.focus-visible ._ZMkm9:after,._5OLws:focus-visible ._ZMkm9: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}._5OLws.focus-visible ._ZMkm9:last-of-type:after,._5OLws:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9:first-of-type:after,._5OLws:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:last-of-type:focus{outline:none}._5OLws:last-of-type.focus-visible ._ZMkm9:after,._5OLws:last-of-type:focus-visible ._ZMkm9: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}._5OLws:last-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:last-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:last-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:last-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:1px}._5OLws:last-of-type ._WEK5T:focus{outline:none}._5OLws:last-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:last-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:last-of-type ._WEK5T.focus-visible:after,._5OLws:last-of-type ._WEK5T: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}._5OLws:first-of-type:focus{outline:none}._5OLws:first-of-type.focus-visible ._ZMkm9:after,._5OLws:first-of-type:focus-visible ._ZMkm9: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}._5OLws:first-of-type.focus-visible ._ZMkm9:last-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9:first-of-type:after,._5OLws:first-of-type:focus-visible ._ZMkm9:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5OLws:first-of-type.focus-visible ._ZMkm9._Ugmo0:after,._5OLws:first-of-type:focus-visible ._ZMkm9._Ugmo0:after{right:-3px;bottom:0}._5OLws:first-of-type ._WEK5T:focus{outline:none}._5OLws:first-of-type ._WEK5T._DzzHO.focus-visible:after,._5OLws:first-of-type ._WEK5T._DzzHO:focus-visible:after,._5OLws:first-of-type ._WEK5T.focus-visible:after,._5OLws:first-of-type ._WEK5T: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}._9XJ45{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}._9XJ45._i7fpo{flex-grow:1}._9XJ45._PSQcw{cursor:pointer}._9XJ45._PSQcw:hover:not(._N6Kdw){background-color:#f9f9f9;border-bottom-color:#6a6d70}._9XJ45._PSQcw:active:not(._N6Kdw){background-color:#f3f3f3}._9XJ45._t7sis:not(._N6Kdw){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._9XJ45._N6Kdw{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._9XJ45 ._Pql1N{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._9XJ45 ._Pql1N._1k-uc{left:-1px}._9XJ45 ._Pql1N._miZX2{right:0}._9XJ45 ._ZGC4f{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._9XJ45 ._ZGC4f._1k-uc{left:-2px}._9XJ45 ._ZGC4f._miZX2{right:-1px}._9XJ45:first-of-type ._1k-uc._Pql1N{left:0;width:2px;border-left:1px solid #fff}._9XJ45:first-of-type ._1k-uc._ZGC4f{left:0}._9XJ45:last-of-type ._miZX2._Pql1N{right:0;width:2px;border-right:1px solid #fff}._9XJ45:last-of-type ._miZX2._ZGC4f{right:0}._9XJ45 ._LLRc2{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._9XJ45 ._LLRc2 ._rW-zY{position:absolute;width:2px;right:2px;top:0;bottom:0}._9XJ45 ._LLRc2 ._rW-zY._BTYN3{background-color:#0a6ed1}._9XJ45 ._LLRc2:hover ._rW-zY:not(._BTYN3){background-color:#d9d9d9}._9XJ45 ._JKZ-w{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._9XJ45 ._JKZ-w._A20bj{flex-direction:row-reverse;justify-content:flex-start}._9XJ45 ._JKZ-w._A20bj ._KPYkO{margin:1px 7px 1px 1px}._9XJ45 ._JKZ-w ._kDk72{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._9XJ45 ._JKZ-w ._KPYkO{margin:1px 1px 1px 7px;flex-shrink:0}._9XJ45 ._tiDig{margin-left:6px;margin-right:4px;flex-shrink:0}._9XJ45 ._Iwmpo{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._9XJ45:focus{outline:none}._9XJ45._DzzHO.focus-visible:after,._9XJ45._DzzHO:focus-visible:after,._9XJ45.focus-visible:after,._9XJ45: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}._0TRt-{margin-right:6px}._Ugmo0{display:flex;border-right:3px solid #e5e5e5;position:sticky;left:0;background-color:#fff;z-index:20}._Ugmo0[focus-within]{z-index:30}._Ugmo0:focus-within{z-index:30}._WEK5T{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}._WEK5T ._LaYfH{width:100%;padding:12px 12px 11px;overflow:hidden}._WEK5T._N6Kdw{background-color:#efefef;border-bottom-color:#dfdfe1}._WEK5T._i7fpo{flex-grow:1}._WEK5T:focus{outline:none}._WEK5T._DzzHO.focus-visible:after,._WEK5T._DzzHO:focus-visible:after,._WEK5T.focus-visible:after,._WEK5T: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}._OChfn{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._OChfn._g3FVD{border-bottom-color:#d9d9d9;background-color:#fff}._p4Mup{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}._p4Mup._g3FVD{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._p4Mup:focus input~span,._p4Mup:hover input~span{border-color:#0b6ed0}._p4Mup ._lN2D9{position:relative;display:inline-flex}._p4Mup ._lN2D9 ._--5ai{margin:0!important}._p4Mup ._lN2D9 ._nBxBg{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._qaInU{justify-content:flex-start}._5eZFM{justify-content:center;text-align:center}._A20bj{justify-content:flex-end;text-align:right}._akRqx{display:none}._CDbWs{opacity:0;height:0;width:0;overflow:hidden}._CDbWs,._ewNL4{position:absolute}._ewNL4{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._VwY6U{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -7,7 +7,6 @@ import '../../hooks/index.js';
|
|
|
7
7
|
import '../../components/SearchInput/index.js';
|
|
8
8
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
9
9
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
10
|
-
import { setIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
11
10
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
12
11
|
import SearchInput from '../../components/SearchInput/SearchInput.js';
|
|
13
12
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
@@ -92,7 +91,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
92
91
|
* Handles use-case when user clicks on search input to enter text and the component is collapsed while focus is still on the search input.
|
|
93
92
|
* This will show the focus ring on the icon button and allow the tooltip to appear.
|
|
94
93
|
*/
|
|
95
|
-
|
|
94
|
+
|
|
96
95
|
iconButtonRef.current?.focus();
|
|
97
96
|
break;
|
|
98
97
|
default:
|
|
@@ -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 = "._lIAh-{display:inline-block;width:36px;transition:width .25s ease-out}._zAZPU{width:100%}._idMkm>input{padding-right:0!important}._QBtP->svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_lIAh-","searchInput":"_zAZPU","searchInputCollapsed":"_idMkm","iconButton":"_QBtP-"};
|
|
5
|
+
var stylesheet="._lIAh-{display:inline-block;width:36px;transition:width .25s ease-out}._zAZPU{width:100%}._idMkm>input{padding-right:0!important}._QBtP->svg{fill:#515559}";
|
|
6
6
|
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 = "._U6KWN :after{background-color:#515559!important}._JY3M7>input:focus{box-shadow:none!important;border:1px solid #898989!important}._yPnof{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}._yPnof ._6M8Pd ._98jqN{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}._yPnof ._6M8Pd:first-child ._P2YoP{display:none}._yPnof ._t1H4e{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._yPnof ._t1H4e:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:hover._POrrt{background-color:#e4effa}._yPnof ._t1H4e._POrrt{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:active:not(._POrrt){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_U6KWN","ignoreFocusStyle":"_JY3M7","flyout":"_yPnof","group":"_6M8Pd","header":"_98jqN","divider":"_P2YoP","option":"_t1H4e","selected":"_POrrt"};
|
|
5
|
+
var stylesheet="._U6KWN :after{background-color:#515559!important}._JY3M7>input:focus{box-shadow:none!important;border:1px solid #898989!important}._yPnof{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}._yPnof ._6M8Pd ._98jqN{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}._yPnof ._6M8Pd:first-child ._P2YoP{display:none}._yPnof ._t1H4e{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._yPnof ._t1H4e:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:hover._POrrt{background-color:#e4effa}._yPnof ._t1H4e._POrrt{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._yPnof ._t1H4e:active:not(._POrrt){background-color:#e8e9e9}";
|
|
6
6
|
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 = "._KISov{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._saVLD{visibility:hidden}._7HFKK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._u8-E-{padding-top:8px}._PE2Wu{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_KISov","hidden":"_saVLD","header":"_7HFKK","title":"_u8-E-","closeButton":"_PE2Wu"};
|
|
5
|
+
var stylesheet="._KISov{position:absolute;top:0;height:100%;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._saVLD{visibility:hidden}._7HFKK{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._u8-E-{padding-top:8px}._PE2Wu{margin-left:12px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|