@qualtrics/ui-react 2.24.2 → 2.26.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 +18 -0
- package/dist/__shared/cjs/{index-8f52588d.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-b7a35c2e.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- 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 +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- 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/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- 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 +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- 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 +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- 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 +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.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 +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- 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 +15 -7
- package/dist/index.es.js +2 -1
- package/dist/index.js +4 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +1 -1
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +76 -34
- package/dist/next/Menu/Menu.js +22 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +5 -2
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +38 -16
- package/dist/next/Menu/MenuPane.js +90 -55
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +95 -49
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +118 -0
- package/dist/next/Select/Select2.js +8 -0
- package/dist/next/Select/SelectButton.js +46 -0
- package/dist/next/Select/SelectContext.js +16 -0
- package/dist/next/Select/SelectItem.js +46 -0
- package/dist/next/Select/SelectPane.js +43 -0
- package/dist/next/Select/SelectedItems.js +45 -0
- package/dist/next/Select/SubSelect.js +90 -0
- package/dist/next/Select/constants.js +13 -0
- package/dist/next/Select/index.js +5 -0
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +68 -6
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +1009 -372
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +6 -3
|
@@ -74,6 +74,7 @@ const AdvancedTable = _ref => {
|
|
|
74
74
|
'data-testid': dataTestId,
|
|
75
75
|
rowActions,
|
|
76
76
|
rowActionsButtonAriaLabel,
|
|
77
|
+
rowActionsPlacement = 'bottom-end',
|
|
77
78
|
headerMaxLines
|
|
78
79
|
} = _ref;
|
|
79
80
|
// This handles an edge case where no rows are passed in
|
|
@@ -138,7 +139,8 @@ const AdvancedTable = _ref => {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
141
|
-
className: styles.rowActionMenuPane
|
|
142
|
+
className: styles.rowActionMenuPane,
|
|
143
|
+
placement: rowActionsPlacement
|
|
142
144
|
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
143
145
|
var _actionGroup$actions;
|
|
144
146
|
const row = rows[rowIndex];
|
|
@@ -206,7 +208,7 @@ const AdvancedTable = _ref => {
|
|
|
206
208
|
const setColumnOrder = useEventCallback(value => {
|
|
207
209
|
const newColumnOrder = typeof value === 'function' ? value(columnOrder) : value;
|
|
208
210
|
setInternalColumnOrder(newColumnOrder);
|
|
209
|
-
onColumnOrderChange === null || onColumnOrderChange === void 0
|
|
211
|
+
onColumnOrderChange === null || onColumnOrderChange === void 0 || onColumnOrderChange(newColumnOrder);
|
|
210
212
|
});
|
|
211
213
|
const {
|
|
212
214
|
pinnedColumnConfigs,
|
|
@@ -298,7 +300,7 @@ const AdvancedTable = _ref => {
|
|
|
298
300
|
} else if (expand !== false) {
|
|
299
301
|
rowPropReference.isExpanded = true;
|
|
300
302
|
}
|
|
301
|
-
onRowsChange === null || onRowsChange === void 0
|
|
303
|
+
onRowsChange === null || onRowsChange === void 0 || onRowsChange([...rowsProp]);
|
|
302
304
|
};
|
|
303
305
|
const getLastToggledRowIndex = () => {
|
|
304
306
|
const index = rows === null || rows === void 0 ? void 0 : rows.findIndex(_ref4 => {
|
|
@@ -569,7 +571,7 @@ const AdvancedTable = _ref => {
|
|
|
569
571
|
setValue: newValue => {
|
|
570
572
|
const newRows = [...rowsProp];
|
|
571
573
|
rowPropReference.data[columnId] = newValue;
|
|
572
|
-
onRowsChange === null || onRowsChange === void 0
|
|
574
|
+
onRowsChange === null || onRowsChange === void 0 || onRowsChange(newRows);
|
|
573
575
|
},
|
|
574
576
|
renderCellContent,
|
|
575
577
|
isCellContentInteractive,
|
|
@@ -667,7 +669,7 @@ const AdvancedTable = _ref => {
|
|
|
667
669
|
const onSelect = e => {
|
|
668
670
|
e.preventDefault(); // stops event from triggering on new target when focus is changed during onSelect
|
|
669
671
|
if (hasOnRowSelect) {
|
|
670
|
-
onRowSelect === null || onRowSelect === void 0
|
|
672
|
+
onRowSelect === null || onRowSelect === void 0 || onRowSelect(row.rowPropReference);
|
|
671
673
|
setSelectedRowId(rowId);
|
|
672
674
|
}
|
|
673
675
|
};
|
|
@@ -848,7 +850,7 @@ function useFocusState(_ref8) {
|
|
|
848
850
|
tableRef.current.scrollLeft -= pinnedContainerPos.left + pinnedContainerPos.width - cellPos.left;
|
|
849
851
|
}
|
|
850
852
|
}
|
|
851
|
-
cell === null || cell === void 0
|
|
853
|
+
cell === null || cell === void 0 || cell.focus();
|
|
852
854
|
});
|
|
853
855
|
|
|
854
856
|
// Focus header cell when the focused column id changes. Used when pinning/unpinning columns since a new DOM element is created.
|
|
@@ -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 = "._SBChp{overflow:auto;position:relative;max-width:100%;max-height:100%}._4yxRr,._SBChp{background-color:#fff}._4yxRr{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._7GNgP{margin-bottom:4px}._uYqKM{position:-webkit-sticky;position:sticky;top:0;z-index:100}._shHru{display:flex}._shHru:focus{outline:none}._shHru.focus-visible ._GcHx2:after,._shHru:focus-visible ._GcHx2: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}._shHru.focus-visible ._GcHx2:last-of-type:after,._shHru:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._shHru.focus-visible ._GcHx2:first-of-type:after,._shHru:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._shHru.focus-visible ._GcHx2._TgB9f:after,._shHru:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:1px}._PfnXR{padding-right:3px}._Gw8n4{display:flex}._Gw8n4._iiODk ._GcHx2,._Gw8n4._iiODk ._NtX2d{cursor:pointer}._Gw8n4._fN7xs ._GcHx2,._Gw8n4._fN7xs ._NtX2d{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._Gw8n4._fN7xs ._GcHx2._TgB9f,._Gw8n4._fN7xs ._NtX2d._TgB9f{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._Gw8n4._fN7xs ._GcHx2._TgB9f ._5S6qD,._Gw8n4._fN7xs ._GcHx2._TgB9f ._NtX2d,._Gw8n4._fN7xs ._GcHx2._TgB9f ._YNW7C,._Gw8n4._fN7xs ._NtX2d._TgB9f ._5S6qD,._Gw8n4._fN7xs ._NtX2d._TgB9f ._NtX2d,._Gw8n4._fN7xs ._NtX2d._TgB9f ._YNW7C{background-color:rgba(11,110,208,.08)}._Gw8n4._iiODk:hover:not(._fN7xs) ._GcHx2,._Gw8n4._iiODk:hover:not(._fN7xs) ._NtX2d{background-color:#f9f9f9}._Gw8n4._iiODk:active:not(._fN7xs)[\\:not-has\\(._YNW7C\\:active\\)] ._GcHx2,._Gw8n4._iiODk:active:not(._fN7xs)[\\:not-has\\(._YNW7C\\:active\\)] ._NtX2d{background-color:#f3f3f3}._Gw8n4._iiODk:active:not(._fN7xs):not(._Gw8n4._iiODk:active:not(._fN7xs):has(._YNW7C:active)) ._GcHx2,._Gw8n4._iiODk:active:not(._fN7xs):not(._Gw8n4._iiODk:active:not(._fN7xs):has(._YNW7C:active)) ._NtX2d{background-color:#f3f3f3}._Gw8n4:focus{outline:none}._Gw8n4.focus-visible ._GcHx2:after,._Gw8n4:focus-visible ._GcHx2: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}._Gw8n4.focus-visible ._GcHx2:last-of-type:after,._Gw8n4:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Gw8n4.focus-visible ._GcHx2:first-of-type:after,._Gw8n4:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Gw8n4.focus-visible ._GcHx2._TgB9f:after,._Gw8n4:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:0}._Gw8n4:last-of-type:focus{outline:none}._Gw8n4:last-of-type.focus-visible ._GcHx2:after,._Gw8n4:last-of-type:focus-visible ._GcHx2: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}._Gw8n4:last-of-type.focus-visible ._GcHx2:last-of-type:after,._Gw8n4:last-of-type:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Gw8n4:last-of-type.focus-visible ._GcHx2:first-of-type:after,._Gw8n4:last-of-type:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Gw8n4:last-of-type.focus-visible ._GcHx2._TgB9f:after,._Gw8n4:last-of-type:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:1px}._Gw8n4:last-of-type ._5S6qD:focus{outline:none}._Gw8n4:last-of-type ._5S6qD._dvyxH.focus-visible:after,._Gw8n4:last-of-type ._5S6qD._dvyxH:focus-visible:after,._Gw8n4:last-of-type ._5S6qD.focus-visible:after,._Gw8n4:last-of-type ._5S6qD: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}._Gw8n4:first-of-type:focus{outline:none}._Gw8n4:first-of-type.focus-visible ._GcHx2:after,._Gw8n4:first-of-type:focus-visible ._GcHx2: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}._Gw8n4:first-of-type.focus-visible ._GcHx2:last-of-type:after,._Gw8n4:first-of-type:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Gw8n4:first-of-type.focus-visible ._GcHx2:first-of-type:after,._Gw8n4:first-of-type:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Gw8n4:first-of-type.focus-visible ._GcHx2._TgB9f:after,._Gw8n4:first-of-type:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:0}._Gw8n4:first-of-type ._5S6qD:focus{outline:none}._Gw8n4:first-of-type ._5S6qD._dvyxH.focus-visible:after,._Gw8n4:first-of-type ._5S6qD._dvyxH:focus-visible:after,._Gw8n4:first-of-type ._5S6qD.focus-visible:after,._Gw8n4:first-of-type ._5S6qD: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}._HZ55p{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}._HZ55p._xtIyi{flex-grow:1}._HZ55p._2qgRf{cursor:pointer}._HZ55p._2qgRf:hover:not(._Xo7-J){background-color:#f9f9f9;border-bottom-color:#6a6d70}._HZ55p._2qgRf:active:not(._Xo7-J){background-color:#f3f3f3}._HZ55p._MK4qy:not(._Xo7-J){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._HZ55p._Xo7-J{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._HZ55p ._11-6n{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._HZ55p ._11-6n._JFjBF{left:-1px}._HZ55p ._11-6n._-MXDd{right:0}._HZ55p ._M8d1f{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._HZ55p ._M8d1f._JFjBF{left:-2px}._HZ55p ._M8d1f._-MXDd{right:-1px}._HZ55p:first-of-type ._JFjBF._11-6n{left:0;width:2px;border-left:1px solid #fff}._HZ55p:first-of-type ._JFjBF._M8d1f{left:0}._HZ55p:last-of-type ._-MXDd._11-6n{right:0;width:2px;border-right:1px solid #fff}._HZ55p:last-of-type ._-MXDd._M8d1f{right:0}._HZ55p ._fmM71{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._HZ55p ._fmM71 ._fZa1H{position:absolute;width:2px;right:2px;top:0;bottom:0}._HZ55p ._fmM71 ._fZa1H._yRsEd{background-color:#0a6ed1}._HZ55p ._fmM71:hover ._fZa1H:not(._yRsEd){background-color:#d9d9d9}._HZ55p ._4lZ3k{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._HZ55p ._4lZ3k._uuaHr{flex-direction:row-reverse;justify-content:flex-start}._HZ55p ._4lZ3k._uuaHr ._2rftT{margin:1px 7px 1px 1px}._HZ55p ._4lZ3k ._tJJDS{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._HZ55p ._4lZ3k ._2rftT{margin:1px 1px 1px 7px;flex-shrink:0}._HZ55p ._EzumA{margin-left:6px;margin-right:4px;flex-shrink:0}._HZ55p ._gJP1I{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._HZ55p:focus{outline:none}._HZ55p._dvyxH.focus-visible:after,._HZ55p._dvyxH:focus-visible:after,._HZ55p.focus-visible:after,._HZ55p: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}._-TaB-{margin-right:6px}._TgB9f{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._TgB9f[focus-within]{z-index:30}._TgB9f:focus-within{z-index:30}._5S6qD{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}._5S6qD ._2aAnH{width:100%;padding:12px 12px 11px;overflow:hidden}._5S6qD._Xo7-J{background-color:#efefef;border-bottom-color:#dfdfe1}._5S6qD._xtIyi{flex-grow:1}._5S6qD:focus{outline:none}._5S6qD._dvyxH.focus-visible:after,._5S6qD._dvyxH:focus-visible:after,._5S6qD.focus-visible:after,._5S6qD: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}._NtX2d{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._NtX2d._IrKSf{border-bottom-color:#d9d9d9;background-color:#fff}._YNW7C{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}._YNW7C._IrKSf{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._YNW7C:focus input~span,._YNW7C:hover input~span{border-color:#0b6ed0}._YNW7C ._o-lZf{position:relative;display:inline-flex}._YNW7C ._o-lZf ._fvnVI{margin:0!important}._YNW7C ._o-lZf ._VdAXm{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._24gHY{justify-content:flex-start}._g9po0{justify-content:center;text-align:center}._uuaHr{justify-content:flex-end;text-align:right}._ROk3J{display:none}._d3-U1{opacity:0;height:0;width:0;overflow:hidden}._d3-U1,._duxuJ{position:absolute}._duxuJ{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._lW-5O{max-width:250px;min-width:150px!important}";
|
|
4
|
+
var styles = {"advancedTable":"_SBChp","advancedTablePaginationContainer":"_4yxRr","advancedTablePagination":"_7GNgP","advancedTableColumnHeadersRowGroup":"_uYqKM","advancedTableColumnHeaders":"_shHru","advancedTableRowChild":"_GcHx2","pinnedContainer":"_TgB9f","advancedTableRowGroup":"_PfnXR","advancedTableRow":"_Gw8n4","hasRowAction":"_iiODk","advancedTableExpandRowSpacer":"_NtX2d","isSelected":"_fN7xs","advancedTableCheckbox":"_YNW7C","advancedTableCell":"_5S6qD","showFocusRing":"_dvyxH","advancedTableColumnHeader":"_HZ55p","fillRemainingSpace":"_xtIyi","isSortable":"_2qgRf","isDragging":"_Xo7-J","isSorted":"_MK4qy","dropTargetLine":"_11-6n","dropTargetLeft":"_JFjBF","dropTargetRight":"_-MXDd","dropTargetMarker":"_M8d1f","resizeHandle":"_fmM71","resizeLine":"_fZa1H","isResizing":"_yRsEd","advancedTableColumnHeaderLabel":"_4lZ3k","rightAligned":"_uuaHr","sortIcon":"_2rftT","advancedTableColumnHeaderLabelText":"_tJJDS","advancedTableColumnHeaderMenu":"_EzumA","advancedTableColumnHeaderMenuHiddenAnchor":"_gJP1I","advancedTableColumnHeaderMenuItemIcon":"_-TaB-","advancedTableCellContainer":"_2aAnH","header":"_IrKSf","checkboxContainer":"_o-lZf","checkbox":"_fvnVI","mixed":"_VdAXm","leftAligned":"_24gHY","centerAligned":"_g9po0","hiddenDescription":"_ROk3J","hiddenLiveRegion":"_d3-U1","dragPreview":"_duxuJ","rowActionMenuPane":"_lW-5O"};
|
|
5
|
+
var stylesheet="._SBChp{overflow:auto;position:relative;max-width:100%;max-height:100%}._4yxRr,._SBChp{background-color:#fff}._4yxRr{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._7GNgP{margin-bottom:4px}._uYqKM{position:-webkit-sticky;position:sticky;top:0;z-index:100}._shHru{display:flex}._shHru:focus{outline:none}._shHru.focus-visible ._GcHx2:after,._shHru:focus-visible ._GcHx2: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}._shHru.focus-visible ._GcHx2:last-of-type:after,._shHru:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._shHru.focus-visible ._GcHx2:first-of-type:after,._shHru:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._shHru.focus-visible ._GcHx2._TgB9f:after,._shHru:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:1px}._PfnXR{padding-right:3px}._Gw8n4{display:flex}._Gw8n4._iiODk ._GcHx2,._Gw8n4._iiODk ._NtX2d{cursor:pointer}._Gw8n4._fN7xs ._GcHx2,._Gw8n4._fN7xs ._NtX2d{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._Gw8n4._fN7xs ._GcHx2._TgB9f,._Gw8n4._fN7xs ._NtX2d._TgB9f{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._Gw8n4._fN7xs ._GcHx2._TgB9f ._5S6qD,._Gw8n4._fN7xs ._GcHx2._TgB9f ._NtX2d,._Gw8n4._fN7xs ._GcHx2._TgB9f ._YNW7C,._Gw8n4._fN7xs ._NtX2d._TgB9f ._5S6qD,._Gw8n4._fN7xs ._NtX2d._TgB9f ._NtX2d,._Gw8n4._fN7xs ._NtX2d._TgB9f ._YNW7C{background-color:rgba(11,110,208,.08)}._Gw8n4._iiODk:hover:not(._fN7xs) ._GcHx2,._Gw8n4._iiODk:hover:not(._fN7xs) ._NtX2d{background-color:#f9f9f9}._Gw8n4._iiODk:active:not(._fN7xs)[\\:not-has\\(._YNW7C\\:active\\)] ._GcHx2,._Gw8n4._iiODk:active:not(._fN7xs)[\\:not-has\\(._YNW7C\\:active\\)] ._NtX2d{background-color:#f3f3f3}._Gw8n4._iiODk:active:not(._fN7xs):not(._Gw8n4._iiODk:active:not(._fN7xs):has(._YNW7C:active)) ._GcHx2,._Gw8n4._iiODk:active:not(._fN7xs):not(._Gw8n4._iiODk:active:not(._fN7xs):has(._YNW7C:active)) ._NtX2d{background-color:#f3f3f3}._Gw8n4:focus{outline:none}._Gw8n4.focus-visible ._GcHx2:after,._Gw8n4:focus-visible ._GcHx2: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}._Gw8n4.focus-visible ._GcHx2:last-of-type:after,._Gw8n4:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Gw8n4.focus-visible ._GcHx2:first-of-type:after,._Gw8n4:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Gw8n4.focus-visible ._GcHx2._TgB9f:after,._Gw8n4:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:0}._Gw8n4:last-of-type:focus{outline:none}._Gw8n4:last-of-type.focus-visible ._GcHx2:after,._Gw8n4:last-of-type:focus-visible ._GcHx2: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}._Gw8n4:last-of-type.focus-visible ._GcHx2:last-of-type:after,._Gw8n4:last-of-type:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Gw8n4:last-of-type.focus-visible ._GcHx2:first-of-type:after,._Gw8n4:last-of-type:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Gw8n4:last-of-type.focus-visible ._GcHx2._TgB9f:after,._Gw8n4:last-of-type:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:1px}._Gw8n4:last-of-type ._5S6qD:focus{outline:none}._Gw8n4:last-of-type ._5S6qD._dvyxH.focus-visible:after,._Gw8n4:last-of-type ._5S6qD._dvyxH:focus-visible:after,._Gw8n4:last-of-type ._5S6qD.focus-visible:after,._Gw8n4:last-of-type ._5S6qD: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}._Gw8n4:first-of-type:focus{outline:none}._Gw8n4:first-of-type.focus-visible ._GcHx2:after,._Gw8n4:first-of-type:focus-visible ._GcHx2: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}._Gw8n4:first-of-type.focus-visible ._GcHx2:last-of-type:after,._Gw8n4:first-of-type:focus-visible ._GcHx2:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._Gw8n4:first-of-type.focus-visible ._GcHx2:first-of-type:after,._Gw8n4:first-of-type:focus-visible ._GcHx2:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._Gw8n4:first-of-type.focus-visible ._GcHx2._TgB9f:after,._Gw8n4:first-of-type:focus-visible ._GcHx2._TgB9f:after{right:-3px;bottom:0}._Gw8n4:first-of-type ._5S6qD:focus{outline:none}._Gw8n4:first-of-type ._5S6qD._dvyxH.focus-visible:after,._Gw8n4:first-of-type ._5S6qD._dvyxH:focus-visible:after,._Gw8n4:first-of-type ._5S6qD.focus-visible:after,._Gw8n4:first-of-type ._5S6qD: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}._HZ55p{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}._HZ55p._xtIyi{flex-grow:1}._HZ55p._2qgRf{cursor:pointer}._HZ55p._2qgRf:hover:not(._Xo7-J){background-color:#f9f9f9;border-bottom-color:#6a6d70}._HZ55p._2qgRf:active:not(._Xo7-J){background-color:#f3f3f3}._HZ55p._MK4qy:not(._Xo7-J){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._HZ55p._Xo7-J{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._HZ55p ._11-6n{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._HZ55p ._11-6n._JFjBF{left:-1px}._HZ55p ._11-6n._-MXDd{right:0}._HZ55p ._M8d1f{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._HZ55p ._M8d1f._JFjBF{left:-2px}._HZ55p ._M8d1f._-MXDd{right:-1px}._HZ55p:first-of-type ._JFjBF._11-6n{left:0;width:2px;border-left:1px solid #fff}._HZ55p:first-of-type ._JFjBF._M8d1f{left:0}._HZ55p:last-of-type ._-MXDd._11-6n{right:0;width:2px;border-right:1px solid #fff}._HZ55p:last-of-type ._-MXDd._M8d1f{right:0}._HZ55p ._fmM71{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._HZ55p ._fmM71 ._fZa1H{position:absolute;width:2px;right:2px;top:0;bottom:0}._HZ55p ._fmM71 ._fZa1H._yRsEd{background-color:#0a6ed1}._HZ55p ._fmM71:hover ._fZa1H:not(._yRsEd){background-color:#d9d9d9}._HZ55p ._4lZ3k{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._HZ55p ._4lZ3k._uuaHr{flex-direction:row-reverse;justify-content:flex-start}._HZ55p ._4lZ3k._uuaHr ._2rftT{margin:1px 7px 1px 1px}._HZ55p ._4lZ3k ._tJJDS{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._HZ55p ._4lZ3k ._2rftT{margin:1px 1px 1px 7px;flex-shrink:0}._HZ55p ._EzumA{margin-left:6px;margin-right:4px;flex-shrink:0}._HZ55p ._gJP1I{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._HZ55p:focus{outline:none}._HZ55p._dvyxH.focus-visible:after,._HZ55p._dvyxH:focus-visible:after,._HZ55p.focus-visible:after,._HZ55p: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}._-TaB-{margin-right:6px}._TgB9f{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._TgB9f[focus-within]{z-index:30}._TgB9f:focus-within{z-index:30}._5S6qD{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}._5S6qD ._2aAnH{width:100%;padding:12px 12px 11px;overflow:hidden}._5S6qD._Xo7-J{background-color:#efefef;border-bottom-color:#dfdfe1}._5S6qD._xtIyi{flex-grow:1}._5S6qD:focus{outline:none}._5S6qD._dvyxH.focus-visible:after,._5S6qD._dvyxH:focus-visible:after,._5S6qD.focus-visible:after,._5S6qD: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}._NtX2d{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._NtX2d._IrKSf{border-bottom-color:#d9d9d9;background-color:#fff}._YNW7C{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}._YNW7C._IrKSf{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._YNW7C:focus input~span,._YNW7C:hover input~span{border-color:#0b6ed0}._YNW7C ._o-lZf{position:relative;display:inline-flex}._YNW7C ._o-lZf ._fvnVI{margin:0!important}._YNW7C ._o-lZf ._VdAXm{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._24gHY{justify-content:flex-start}._g9po0{justify-content:center;text-align:center}._uuaHr{justify-content:flex-end;text-align:right}._ROk3J{display:none}._d3-U1{opacity:0;height:0;width:0;overflow:hidden}._d3-U1,._duxuJ{position:absolute}._duxuJ{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._lW-5O{max-width:250px;min-width:150px!important}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -41,14 +41,14 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
41
41
|
const handleKeyDown = e => {
|
|
42
42
|
if (e.target === e.currentTarget && e.key === 'Enter' && isInteractive) {
|
|
43
43
|
var _focusableElementRef$;
|
|
44
|
-
(_focusableElementRef$ = focusableElementRef.current) === null || _focusableElementRef$ === void 0
|
|
44
|
+
(_focusableElementRef$ = focusableElementRef.current) === null || _focusableElementRef$ === void 0 || _focusableElementRef$.focus();
|
|
45
45
|
e.preventDefault(); // Prevent click event from occurring on the focusable element
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
onKeyDown === null || onKeyDown === void 0
|
|
48
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
49
49
|
};
|
|
50
50
|
const handleFocus = e => {
|
|
51
|
-
onFocus === null || onFocus === void 0
|
|
51
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
52
52
|
if (isInteractive) {
|
|
53
53
|
if (e.target !== e.currentTarget) {
|
|
54
54
|
setIsEditing(true);
|
|
@@ -64,7 +64,7 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
64
64
|
} : undefined;
|
|
65
65
|
const focusCell = () => {
|
|
66
66
|
var _cellRef$current;
|
|
67
|
-
(_cellRef$current = cellRef.current) === null || _cellRef$current === void 0
|
|
67
|
+
(_cellRef$current = cellRef.current) === null || _cellRef$current === void 0 || _cellRef$current.focus();
|
|
68
68
|
};
|
|
69
69
|
const computedWidth = useComputedWidth(widthBuffer, width);
|
|
70
70
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
@@ -13,7 +13,9 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
13
13
|
state,
|
|
14
14
|
onClick,
|
|
15
15
|
variant = 'cell',
|
|
16
|
-
isRowFocused
|
|
16
|
+
isRowFocused,
|
|
17
|
+
className,
|
|
18
|
+
isDisabled
|
|
17
19
|
} = _ref;
|
|
18
20
|
const {
|
|
19
21
|
translate
|
|
@@ -34,7 +36,7 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
34
36
|
}, [isRowFocused, announceToScreenReader, label]);
|
|
35
37
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
36
38
|
onClick: onClick,
|
|
37
|
-
className: classNames(styles.advancedTableCheckbox, {
|
|
39
|
+
className: classNames(styles.advancedTableCheckbox, className, {
|
|
38
40
|
[styles.header]: variant === 'header'
|
|
39
41
|
}),
|
|
40
42
|
role: "presentation"
|
|
@@ -42,7 +44,8 @@ const AdvancedTableCheckbox = _ref => {
|
|
|
42
44
|
className: styles.checkboxContainer
|
|
43
45
|
}, /*#__PURE__*/React__default.createElement(VisualCheckbox, {
|
|
44
46
|
className: styles.checkbox,
|
|
45
|
-
checked: state === 'true'
|
|
47
|
+
checked: state === 'true',
|
|
48
|
+
disabled: isDisabled
|
|
46
49
|
}), state === 'mixed' && /*#__PURE__*/React__default.createElement("div", {
|
|
47
50
|
className: styles.mixed
|
|
48
51
|
})));
|
|
@@ -130,7 +130,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
130
130
|
const newWidth = Math.max(80, ((_columnHeaderRef$curr2 = columnHeaderRef.current) === null || _columnHeaderRef$curr2 === void 0 ? void 0 : _columnHeaderRef$curr2.getBoundingClientRect().width) - 10);
|
|
131
131
|
onWidthChange(newWidth);
|
|
132
132
|
} else {
|
|
133
|
-
onKeyDown === null || onKeyDown === void 0
|
|
133
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
const handleClick = e => {
|
|
@@ -204,7 +204,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
204
204
|
const mouseX = e.clientX;
|
|
205
205
|
const headerX = (_columnHeaderRef$curr3 = columnHeaderRef.current) === null || _columnHeaderRef$curr3 === void 0 ? void 0 : _columnHeaderRef$curr3.getBoundingClientRect().x;
|
|
206
206
|
const newWidth = Math.max(80, mouseX - headerX);
|
|
207
|
-
onWidthChange === null || onWidthChange === void 0
|
|
207
|
+
onWidthChange === null || onWidthChange === void 0 || onWidthChange(newWidth);
|
|
208
208
|
};
|
|
209
209
|
const handleMouseUp = e => {
|
|
210
210
|
if (e.button === 0) {
|
|
@@ -296,7 +296,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
296
296
|
"aria-hidden": "true",
|
|
297
297
|
onFocus: () => {
|
|
298
298
|
var _columnHeaderRef$curr5;
|
|
299
|
-
(_columnHeaderRef$curr5 = columnHeaderRef.current) === null || _columnHeaderRef$curr5 === void 0
|
|
299
|
+
(_columnHeaderRef$curr5 = columnHeaderRef.current) === null || _columnHeaderRef$curr5 === void 0 || _columnHeaderRef$curr5.focus();
|
|
300
300
|
},
|
|
301
301
|
className: styles.advancedTableColumnHeaderMenuHiddenAnchor
|
|
302
302
|
})
|
|
@@ -55,8 +55,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
55
55
|
var _columnHeaderRef$curr;
|
|
56
56
|
e.preventDefault(); // prevents SelectMenu value from changing
|
|
57
57
|
setIsOpen(false);
|
|
58
|
-
(_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0
|
|
59
|
-
onSelect === null || onSelect === void 0
|
|
58
|
+
(_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 || _columnHeaderRef$curr.focus();
|
|
59
|
+
onSelect === null || onSelect === void 0 || onSelect();
|
|
60
60
|
},
|
|
61
61
|
"date-testid": menuItemDataTestId
|
|
62
62
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -19,7 +19,7 @@ const AdvancedTablePagination = _ref => {
|
|
|
19
19
|
page
|
|
20
20
|
} = _ref2;
|
|
21
21
|
setCurrentPage(page);
|
|
22
|
-
onPageChange === null || onPageChange === void 0
|
|
22
|
+
onPageChange === null || onPageChange === void 0 || onPageChange(page);
|
|
23
23
|
};
|
|
24
24
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25
25
|
className: styles.advancedTablePaginationContainer
|
|
@@ -67,7 +67,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
67
67
|
};
|
|
68
68
|
const handleIconButtonClick = () => {
|
|
69
69
|
var _iconButtonRef$curren;
|
|
70
|
-
(_iconButtonRef$curren = iconButtonRef.current) === null || _iconButtonRef$curren === void 0
|
|
70
|
+
(_iconButtonRef$curren = iconButtonRef.current) === null || _iconButtonRef$curren === void 0 || _iconButtonRef$curren.focus();
|
|
71
71
|
setExternalIsExpanded(true);
|
|
72
72
|
};
|
|
73
73
|
useDidUpdate(() => {
|
|
@@ -86,7 +86,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
86
86
|
if (isComponentFocused) {
|
|
87
87
|
switch (internalExpandedState) {
|
|
88
88
|
case expandedStates.EXPANDING:
|
|
89
|
-
(_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0
|
|
89
|
+
(_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0 || _searchInputRef$curre.focus();
|
|
90
90
|
break;
|
|
91
91
|
case expandedStates.COLLAPSED:
|
|
92
92
|
/*
|
|
@@ -94,7 +94,7 @@ const CollapsibleSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
94
94
|
* This will show the focus ring on the icon button and allow the tooltip to appear.
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
(_iconButtonRef$curren2 = iconButtonRef.current) === null || _iconButtonRef$curren2 === void 0
|
|
97
|
+
(_iconButtonRef$curren2 = iconButtonRef.current) === null || _iconButtonRef$curren2 === void 0 || _iconButtonRef$curren2.focus();
|
|
98
98
|
break;
|
|
99
99
|
default:
|
|
100
100
|
}
|
|
@@ -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 = "._EJUud{display:inline-block;width:36px;transition:width .25s ease-out}._5LbQV{width:100%}._HHbN5>input{padding-right:0!important}._FUHDV>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_EJUud","searchInput":"_5LbQV","searchInputCollapsed":"_HHbN5","iconButton":"_FUHDV"};
|
|
5
|
+
var stylesheet="._EJUud{display:inline-block;width:36px;transition:width .25s ease-out}._5LbQV{width:100%}._HHbN5>input{padding-right:0!important}._FUHDV>svg{fill:#515559}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -15,6 +15,7 @@ function Combobox(_ref) {
|
|
|
15
15
|
initialValue = '',
|
|
16
16
|
value,
|
|
17
17
|
onChange,
|
|
18
|
+
onSubmit,
|
|
18
19
|
isDisabled,
|
|
19
20
|
isInvalid,
|
|
20
21
|
isRequired,
|
|
@@ -68,6 +69,7 @@ function Combobox(_ref) {
|
|
|
68
69
|
setRawInputValue,
|
|
69
70
|
committedInputValue,
|
|
70
71
|
setCommittedInputValue,
|
|
72
|
+
onSubmit,
|
|
71
73
|
registerOption,
|
|
72
74
|
deregisterOption,
|
|
73
75
|
focusInput,
|
|
@@ -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 = "._jP-o2 :after{background-color:#515559!important}._-XCbz>input:focus{box-shadow:none!important;border:1px solid #898989!important}._eBhO9{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}._eBhO9 ._6-d-i ._Ngvh6{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}._eBhO9 ._6-d-i:first-child ._L6uri{display:none}._eBhO9 ._0a4eq{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._eBhO9 ._0a4eq:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._eBhO9 ._0a4eq:hover._BKYBO{background-color:#e4effa}._eBhO9 ._0a4eq._BKYBO{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._eBhO9 ._0a4eq:active:not(._BKYBO){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_jP-o2","ignoreFocusStyle":"_-XCbz","flyout":"_eBhO9","group":"_6-d-i","header":"_Ngvh6","divider":"_L6uri","option":"_0a4eq","selected":"_BKYBO"};
|
|
5
|
+
var stylesheet="._jP-o2 :after{background-color:#515559!important}._-XCbz>input:focus{box-shadow:none!important;border:1px solid #898989!important}._eBhO9{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}._eBhO9 ._6-d-i ._Ngvh6{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}._eBhO9 ._6-d-i:first-child ._L6uri{display:none}._eBhO9 ._0a4eq{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._eBhO9 ._0a4eq:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._eBhO9 ._0a4eq:hover._BKYBO{background-color:#e4effa}._eBhO9 ._0a4eq._BKYBO{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._eBhO9 ._0a4eq:active:not(._BKYBO){background-color:#e8e9e9}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -37,6 +37,7 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
37
37
|
setRawInputValue,
|
|
38
38
|
committedInputValue,
|
|
39
39
|
setCommittedInputValue,
|
|
40
|
+
onSubmit,
|
|
40
41
|
activeDescendantElement,
|
|
41
42
|
isDisabled,
|
|
42
43
|
isRequired,
|
|
@@ -105,6 +106,7 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
105
106
|
case 'Enter':
|
|
106
107
|
e.preventDefault(); // Prevents form submission
|
|
107
108
|
commitCurrentRawInputValueAndCloseFlyout();
|
|
109
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(rawInputValue);
|
|
108
110
|
break;
|
|
109
111
|
default:
|
|
110
112
|
}
|
|
@@ -22,6 +22,7 @@ function ComboboxOption(_ref) {
|
|
|
22
22
|
activeDescendantElement,
|
|
23
23
|
committedInputValue,
|
|
24
24
|
setCommittedInputValue,
|
|
25
|
+
onSubmit,
|
|
25
26
|
rootDataTestId,
|
|
26
27
|
setHoveredOption
|
|
27
28
|
} = useComboboxContext();
|
|
@@ -60,6 +61,7 @@ function ComboboxOption(_ref) {
|
|
|
60
61
|
}),
|
|
61
62
|
onClick: () => {
|
|
62
63
|
setCommittedInputValue(label);
|
|
64
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(label);
|
|
63
65
|
setIsOpen(false);
|
|
64
66
|
setHoveredOption(null);
|
|
65
67
|
},
|
|
@@ -51,7 +51,7 @@ isDisabled) {
|
|
|
51
51
|
*/
|
|
52
52
|
const focusDescendant = useCallback((descendantElement, index) => {
|
|
53
53
|
var _inputRef$current;
|
|
54
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
54
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.setAttribute('aria-activedescendant', descendantElement.id);
|
|
55
55
|
setActiveDescendant({
|
|
56
56
|
element: descendantElement,
|
|
57
57
|
index
|
|
@@ -78,13 +78,13 @@ const Drawer = _ref => {
|
|
|
78
78
|
} else {
|
|
79
79
|
var _elementRefToFocusOnC;
|
|
80
80
|
setIsClosing(true);
|
|
81
|
-
if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 || (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0
|
|
81
|
+
if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 || (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 || _elementRefToFocusOnC.focus();else elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 || elementUsedToOpenModal.focus();
|
|
82
82
|
}
|
|
83
83
|
}, [elementRefToFocusOnClose, isOpen]);
|
|
84
84
|
useEffect(() => {
|
|
85
85
|
if (isOpen && !isHidden) {
|
|
86
86
|
var _closeButtonRef$curre;
|
|
87
|
-
(_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0
|
|
87
|
+
(_closeButtonRef$curre = closeButtonRef.current) === null || _closeButtonRef$curre === void 0 || _closeButtonRef$curre.focus();
|
|
88
88
|
}
|
|
89
89
|
}, [isOpen, isHidden]);
|
|
90
90
|
const handleTransitionEnd = () => {
|
|
@@ -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 = "._x9l97{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._DFNUj{visibility:hidden}._xhD7U{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._APGPn{padding-top:8px}._uL-0S{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_x9l97","hidden":"_DFNUj","header":"_xhD7U","title":"_APGPn","closeButton":"_uL-0S"};
|
|
5
|
+
var stylesheet="._x9l97{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._DFNUj{visibility:hidden}._xhD7U{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._APGPn{padding-top:8px}._uL-0S{margin-left:12px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -45,14 +45,14 @@ const FilterAnchor = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
45
45
|
if (isDisabled) {
|
|
46
46
|
e.stopPropagation(); // Prevents "click" events from occurring on parent elements
|
|
47
47
|
} else {
|
|
48
|
-
onClick === null || onClick === void 0
|
|
48
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
onKeyDown: e => {
|
|
52
52
|
if (isDisabled) {
|
|
53
53
|
e.stopPropagation(); // Prevents "keydown" events from occurring on parent elements
|
|
54
54
|
} else {
|
|
55
|
-
onKeyDown === null || onKeyDown === void 0
|
|
55
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
disabled: undefined // This component uses aria-disabled instead of disabled
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ZOzRb{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._ZOzRb:hover:not(._626lm){background-color:rgba(50,54,58,.08)}._ZOzRb:hover:not(._626lm)._SGTqR{border-color:#085caf;background-color:rgba(11,110,208,.04)}._ZOzRb:hover:not(._626lm)._SGTqR ._jGw8N{color:#32363a}._ZOzRb:hover:not(._626lm)._SGTqR ._xhbFD{fill:#32363a}._ZOzRb:hover:not(._626lm)._SGTqR ._2ybld{fill:#085caf}._ZOzRb:hover:not(._626lm)._SGTqR ._iR26-{background-color:rgba(11,110,208,.11)}._ZOzRb:hover:not(._626lm)._SGTqR ._iR26- ._s3CEG{color:#085caf}._ZOzRb:active:not(._626lm){background-color:#e8e9e9}._ZOzRb:active:not(._626lm)._SGTqR{background-color:rgba(11,110,208,.11);border-color:#0854a1}._ZOzRb:active:not(._626lm)._SGTqR ._2ybld{fill:#0854a1}._ZOzRb:active:not(._626lm)._SGTqR ._iR26-{background-color:rgba(11,110,208,.11)}._ZOzRb:active:not(._626lm)._SGTqR ._iR26- ._s3CEG{color:#0854a1}._ZOzRb._626lm{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._ZOzRb._SGTqR{border-color:#0b6ed0}._xhbFD{fill:#515559;margin-right:4px}._jGw8N{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._jGw8N+._iR26-{margin-left:6px}._jGw8N._626lm{color:#74777a}._iR26-{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._s3CEG{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2ybld{fill:#515559}._2ybld._626lm,._2ybld._626lm._SGTqR{fill:rgba(116,119,122,.4)}._2ybld._SGTqR{fill:#0b6ed0}._2ybld._GGSa9{transform:rotate(-180deg)}._ZOzRb.focus-visible,._ZOzRb:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_ZOzRb","disabled":"_626lm","selected":"_SGTqR","label":"_jGw8N","lockIcon":"_xhbFD","chevronIcon":"_2ybld","selectedFiltersContainer":"_iR26-","selectedFilters":"_s3CEG","open":"_GGSa9"};
|
|
5
|
+
var stylesheet="._ZOzRb{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._ZOzRb:hover:not(._626lm){background-color:rgba(50,54,58,.08)}._ZOzRb:hover:not(._626lm)._SGTqR{border-color:#085caf;background-color:rgba(11,110,208,.04)}._ZOzRb:hover:not(._626lm)._SGTqR ._jGw8N{color:#32363a}._ZOzRb:hover:not(._626lm)._SGTqR ._xhbFD{fill:#32363a}._ZOzRb:hover:not(._626lm)._SGTqR ._2ybld{fill:#085caf}._ZOzRb:hover:not(._626lm)._SGTqR ._iR26-{background-color:rgba(11,110,208,.11)}._ZOzRb:hover:not(._626lm)._SGTqR ._iR26- ._s3CEG{color:#085caf}._ZOzRb:active:not(._626lm){background-color:#e8e9e9}._ZOzRb:active:not(._626lm)._SGTqR{background-color:rgba(11,110,208,.11);border-color:#0854a1}._ZOzRb:active:not(._626lm)._SGTqR ._2ybld{fill:#0854a1}._ZOzRb:active:not(._626lm)._SGTqR ._iR26-{background-color:rgba(11,110,208,.11)}._ZOzRb:active:not(._626lm)._SGTqR ._iR26- ._s3CEG{color:#0854a1}._ZOzRb._626lm{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._ZOzRb._SGTqR{border-color:#0b6ed0}._xhbFD{fill:#515559;margin-right:4px}._jGw8N{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._jGw8N+._iR26-{margin-left:6px}._jGw8N._626lm{color:#74777a}._iR26-{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._s3CEG{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._2ybld{fill:#515559}._2ybld._626lm,._2ybld._626lm._SGTqR{fill:rgba(116,119,122,.4)}._2ybld._SGTqR{fill:#0b6ed0}._2ybld._GGSa9{transform:rotate(-180deg)}._ZOzRb.focus-visible,._ZOzRb:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._OBeYD{position:relative;display:inline-block;height:36px}._Jb3NF{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._Jb3NF:hover{cursor:pointer;background-color:#f5f5f5}._Jb3NF:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._Jb3NF:disabled,._Jb3NF[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._Jb3NF:disabled::-moz-placeholder,._Jb3NF[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Jb3NF:disabled::placeholder,._Jb3NF[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Jb3NF:invalid,._Jb3NF[aria-invalid=true]{border-color:#b00}._Jb3NF:invalid:focus,._Jb3NF[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._Jb3NF[type=number]{-moz-appearance:textfield}._Jb3NF[type=number]::-webkit-inner-spin-button,._Jb3NF[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._Jb3NF::-moz-placeholder{color:#515559;opacity:1}._Jb3NF::placeholder{color:#515559;opacity:1}._MB886{pointer-events:none;color:#515559;fill:#515559}._1UVeF{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._NRA0I{color:#515559;font-size:16px}._XbZsf{left:0;margin-left:6px}._XbZsf,._yrcLw{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._yrcLw{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_OBeYD","input":"_Jb3NF","addOn":"_MB886","addOnVerticalCenter":"_1UVeF","addOnTextNode":"_NRA0I","leftAddOn":"_XbZsf","rightAddOn":"_yrcLw"};
|
|
5
|
+
var stylesheet="._OBeYD{position:relative;display:inline-block;height:36px}._Jb3NF{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._Jb3NF:hover{cursor:pointer;background-color:#f5f5f5}._Jb3NF:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._Jb3NF:disabled,._Jb3NF[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._Jb3NF:disabled::-moz-placeholder,._Jb3NF[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Jb3NF:disabled::placeholder,._Jb3NF[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Jb3NF:invalid,._Jb3NF[aria-invalid=true]{border-color:#b00}._Jb3NF:invalid:focus,._Jb3NF[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._Jb3NF[type=number]{-moz-appearance:textfield}._Jb3NF[type=number]::-webkit-inner-spin-button,._Jb3NF[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._Jb3NF::-moz-placeholder{color:#515559;opacity:1}._Jb3NF::placeholder{color:#515559;opacity:1}._MB886{pointer-events:none;color:#515559;fill:#515559}._1UVeF{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._NRA0I{color:#515559;font-size:16px}._XbZsf{left:0;margin-left:6px}._XbZsf,._yrcLw{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._yrcLw{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -4,7 +4,7 @@ const useCSSVariable = function (name, value) {
|
|
|
4
4
|
let dependencies = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
5
5
|
useEffect(() => {
|
|
6
6
|
document.documentElement.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
7
|
-
}, [value, ...dependencies]);
|
|
7
|
+
}, [value, name, ...dependencies]);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { useCSSVariable as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import '../../../hooks/index.js';
|
|
3
|
+
import { useMenuContext } from '../MenuContext.js';
|
|
4
|
+
import { useDidUpdate } from '../../../hooks/useDidUpdate/useDidUpdate.js';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
this hook returns a method that
|
|
8
|
+
1. Scrolls to the top or bottom boundary of a virtual list
|
|
9
|
+
2. waits until the `visibleChildren` prop has updated completely
|
|
10
|
+
3. Uses `visibleChildren`'s ref to focus.
|
|
11
|
+
*/
|
|
12
|
+
const useFocusVirtualBoundary = function (visibleChildren) {
|
|
13
|
+
let backButtonRef = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
14
|
+
const [scrollComplete, setScrollComplete] = useState(null);
|
|
15
|
+
const {
|
|
16
|
+
virtuoso
|
|
17
|
+
} = useMenuContext();
|
|
18
|
+
useDidUpdate(() => {
|
|
19
|
+
window.requestAnimationFrame(() => {
|
|
20
|
+
if (scrollComplete && visibleChildren[visibleChildren.length - 1].element.current) {
|
|
21
|
+
if (scrollComplete === 'top' && backButtonRef !== null && backButtonRef !== void 0 && backButtonRef.current) {
|
|
22
|
+
backButtonRef === null || backButtonRef === void 0 || backButtonRef.current.focus();
|
|
23
|
+
} else {
|
|
24
|
+
var _visibleChildren;
|
|
25
|
+
(_visibleChildren = visibleChildren[scrollComplete === 'bottom' ? visibleChildren.length - 1 : 0]) === null || _visibleChildren === void 0 || (_visibleChildren = _visibleChildren.element) === null || _visibleChildren === void 0 || (_visibleChildren = _visibleChildren.current) === null || _visibleChildren === void 0 || _visibleChildren.focus();
|
|
26
|
+
}
|
|
27
|
+
setScrollComplete(null);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}, [visibleChildren, scrollComplete]);
|
|
31
|
+
return topOrBottom => {
|
|
32
|
+
var _virtuoso$current;
|
|
33
|
+
(_virtuoso$current = virtuoso.current) === null || _virtuoso$current === void 0 || _virtuoso$current.scrollToIndex({
|
|
34
|
+
index: topOrBottom === 'top' ? 0 : 'LAST',
|
|
35
|
+
behavior: 'auto'
|
|
36
|
+
});
|
|
37
|
+
setScrollComplete(topOrBottom);
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { useFocusVirtualBoundary as default };
|