@qualtrics/ui-react 2.79.1 → 2.80.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 +13 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +5 -6
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +8 -7
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +71 -63
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +10 -14
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +2 -4
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +22 -15
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +89 -89
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +26 -19
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +5 -2
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +165 -129
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +139 -106
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -5
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +27 -20
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +4 -5
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +61 -38
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +8 -12
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +40 -35
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +5 -2
- package/dist/__shared/cjs/{index-d4ec6b6f.js → index-807921ca.js} +2829 -2634
- package/dist/__shared/cjs/{index-91d2f6f8.js → index-8c77a9ef.js} +15 -9
- package/dist/components/Accordion/Accordion.js +27 -21
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionContext.js +6 -8
- package/dist/components/Accordion/AccordionHeader.js +13 -17
- package/dist/components/Accordion/AccordionPanel.js +7 -11
- package/dist/components/Accordion/AccordionSection.js +14 -11
- package/dist/components/Banner/Banner.js +10 -11
- package/dist/components/Banner/BannerBody.js +1 -3
- package/dist/components/Banner/BannerFooter.js +1 -3
- package/dist/components/Banner/BannerTitle.js +1 -3
- package/dist/components/BreakpointSwitch/Breakpoint.js +2 -5
- package/dist/components/BreakpointSwitch/BreakpointContext.js +3 -4
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +1 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +19 -13
- package/dist/components/ButtonGroup/ButtonGroup.js +7 -7
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Check.js +8 -6
- package/dist/components/Checkbox/Checkbox.js +31 -28
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/CheckboxField.js +14 -13
- package/dist/components/ColorPicker/Alpha.js +8 -12
- package/dist/components/ColorPicker/ColorPicker.js +67 -48
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +23 -24
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +27 -22
- package/dist/components/ColorPicker/ColorPickerWIthNoColor.js +11 -7
- package/dist/components/ColorPicker/Hue.js +9 -13
- package/dist/components/ColorPicker/Palette.js +23 -21
- package/dist/components/ColorPicker/Saturation.js +11 -15
- package/dist/components/ColorPicker/utils/hexToHsv.js +4 -5
- package/dist/components/ColorPicker/utils/hsvToHex.js +3 -5
- package/dist/components/ColorPicker/utils/rgbToHex.js +3 -5
- package/dist/components/Combobox/Combobox.js +166 -133
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxContext.js +3 -4
- package/dist/components/Combobox/ComboboxHeader.js +6 -6
- package/dist/components/Combobox/ComboboxIcon.js +14 -14
- package/dist/components/Combobox/ComboboxInput.js +41 -43
- package/dist/components/Combobox/ComboboxList.js +20 -20
- package/dist/components/Combobox/ComboboxOption.js +9 -10
- package/dist/components/ConfigPane/ConfigPane.js +52 -36
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/index.js +7 -9
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +18 -21
- package/dist/components/Dropdown/Dropdown.js +68 -43
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +53 -47
- package/dist/components/Dropdown/DropdownContext.js +3 -4
- package/dist/components/Dropdown/DropdownHeader.js +12 -9
- package/dist/components/Dropdown/DropdownHeaderContext.js +3 -4
- package/dist/components/Dropdown/DropdownList.js +32 -32
- package/dist/components/Dropdown/DropdownOption.js +32 -30
- package/dist/components/Dropdown/DropdownSearch.js +12 -14
- package/dist/components/FilePicker/FilePicker.js +30 -25
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/ErrorText.js +5 -5
- package/dist/components/FormField/FormField.js +27 -14
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +6 -13
- package/dist/components/FormField/HelperText.js +5 -5
- package/dist/components/FormField/ReadOnlyText.js +4 -6
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +22 -15
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +6 -5
- package/dist/components/Icon/IconTypes.js +1 -0
- package/dist/components/IconButton/IconButton.js +25 -16
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +25 -14
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +42 -29
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +26 -21
- package/dist/components/InputGroup/InputGroup.js +7 -7
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/InputGroup/InputGroupAddon.js +7 -6
- package/dist/components/InputGroup/InputGroupProvider.js +5 -8
- package/dist/components/Label/Label.js +8 -9
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link.js +9 -7
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionContainer.js +8 -10
- package/dist/components/LogicEditor/ConditionSet.js +16 -21
- package/dist/components/LogicEditor/Controls.js +17 -20
- package/dist/components/LogicEditor/LogicEditor.js +33 -24
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/LogicEditorContext.js +3 -4
- package/dist/components/LogicEditor/utils.js +5 -9
- package/dist/components/Modal/Modal.js +63 -49
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/Modal/ModalBody.js +5 -5
- package/dist/components/Modal/ModalContext.js +3 -4
- package/dist/components/Modal/ModalFooter.js +5 -5
- package/dist/components/Modal/ModalHeader.js +10 -12
- package/dist/components/NewMenu/BaseMenu.js +83 -54
- package/dist/components/NewMenu/Menu/Menu.js +10 -12
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +6 -7
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +35 -30
- package/dist/components/NewMenu/parts/MenuAnchor.js +15 -16
- package/dist/components/NewMenu/parts/MenuContext.js +3 -4
- package/dist/components/NewMenu/parts/MenuItem.js +23 -17
- package/dist/components/NewMenu/parts/MenuSearchBox.js +4 -6
- package/dist/components/NewMenu/parts/SubmenuAnchor.js +5 -5
- package/dist/components/NumberStepper/NumberStepper.js +42 -37
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/NumberStepper/NumberStepperDecrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperIncrement.js +13 -15
- package/dist/components/NumberStepper/NumberStepperInput.js +28 -30
- package/dist/components/PageLayout/MainContent.js +4 -4
- package/dist/components/PageLayout/PageContainer.js +4 -4
- package/dist/components/PageLayout/PageHeader.js +4 -4
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +20 -16
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationContext.js +3 -4
- package/dist/components/Pagination/PaginationNextButton.js +15 -17
- package/dist/components/Pagination/PaginationPageInput.js +24 -24
- package/dist/components/Pagination/PaginationPreviousButton.js +14 -16
- package/dist/components/Popover/Popover.js +27 -18
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +23 -16
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +33 -23
- package/dist/components/Radio/Radio.js +26 -28
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/Radio/RadioGroup.js +15 -16
- package/dist/components/Radio/RadioGroupContext.js +3 -4
- package/dist/components/Radio/RadioOption.js +11 -10
- package/dist/components/SearchInput/SearchInput.js +32 -25
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +4 -6
- package/dist/components/SidebarNav/SidebarNav.js +19 -13
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavContext.js +3 -4
- package/dist/components/SidebarNav/SidebarNavLink.js +7 -10
- package/dist/components/Slider/RangeSlider.js +36 -24
- package/dist/components/Slider/Slider.js +29 -20
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +26 -17
- package/dist/components/Switch/Switch.js +19 -19
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Switch/SwitchField.js +13 -13
- package/dist/components/Table/Table.js +5 -5
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Table/TableBody.js +5 -5
- package/dist/components/Table/TableCell.js +5 -5
- package/dist/components/Table/TableHead.js +5 -5
- package/dist/components/Table/TableHeaderCell.js +5 -5
- package/dist/components/Table/TableRow.js +5 -5
- package/dist/components/Tabs/Tab.js +12 -13
- package/dist/components/Tabs/TabContextProvider.js +10 -13
- package/dist/components/Tabs/TabList.js +17 -13
- package/dist/components/Tabs/TabPanel.js +10 -11
- package/dist/components/Tabs/TabPanels.js +1 -3
- package/dist/components/Tabs/Tabs.js +20 -12
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +51 -29
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +3 -9
- package/dist/components/UIProvider/PortalTargetContext.js +6 -8
- package/dist/components/UIProvider/UIProvider.js +4 -5
- package/dist/components/deprecated_ColorPicker/Alpha.js +7 -7
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +24 -13
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +16 -9
- package/dist/components/deprecated_ColorPicker/Hue.js +6 -6
- package/dist/components/deprecated_ColorPicker/Saturation.js +14 -16
- package/dist/components/deprecated_ColorPicker/Swatch.js +7 -6
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +5 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +34 -25
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperContext.js +3 -4
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +14 -16
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +32 -34
- package/dist/components/deprecated_Tabs/Tab.js +8 -9
- package/dist/components/deprecated_Tabs/TabContextProvider.js +3 -4
- package/dist/components/deprecated_Tabs/Tabs.js +13 -9
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/IconButtonWithLabel.js +6 -6
- package/dist/components/deprecated_Toolbar/Toolbar.js +16 -11
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarContext.js +3 -4
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +16 -16
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +44 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +19 -20
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +34 -24
- package/dist/design-tokens/less/typography.js +3 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +12 -4
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -3
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +5 -2
- package/dist/hooks/useEventListener/useEventListener.js +6 -5
- package/dist/hooks/useFocusSequence/useFocusSequence.js +12 -12
- package/dist/hooks/useId/useId.js +4 -1
- package/dist/hooks/useIsFocused/useIsFocused.js +5 -1
- package/dist/hooks/useIsHovered/useIsHovered.js +5 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +11 -16
- package/dist/hooks/useMouseDrag/useMouseDrag.js +5 -1
- package/dist/hooks/useOverlay/useOverlay.js +10 -10
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +9 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/FrontlineEmployeeVoiceIcon.js +6 -0
- package/dist/icons/createIconComponent.js +7 -6
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +7 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +192 -173
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +30 -25
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +12 -15
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +83 -65
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +25 -30
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaders.js +10 -9
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +12 -10
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTableHiddenDescription.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +9 -13
- package/dist/next/AdvancedTable/AdvancedTableRow.js +16 -16
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +7 -11
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +32 -36
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +44 -53
- package/dist/next/Chat/Chat.js +5 -6
- package/dist/next/Chat/ChatContext.js +3 -4
- package/dist/next/Chat/ChatInput.js +24 -20
- package/dist/next/Chat/ChatMessage.js +16 -20
- package/dist/next/Chat/ChatMessageList.js +11 -10
- package/dist/next/Chat/ChatMessageText.js +1 -3
- package/dist/next/Chat/Loader.js +6 -9
- package/dist/next/Chat/MessageContext.js +3 -4
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +28 -18
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +8 -8
- package/dist/next/CollectionGrid/CollectionGrid.js +14 -12
- package/dist/next/CollectionGrid/CollectionGridItem.js +4 -5
- package/dist/next/Combobox/Combobox.js +48 -37
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxContext.js +3 -4
- package/dist/next/Combobox/ComboboxFlyout.js +12 -15
- package/dist/next/Combobox/ComboboxGroup.js +10 -14
- package/dist/next/Combobox/ComboboxGroupContext.js +9 -10
- package/dist/next/Combobox/ComboboxInput.js +37 -39
- package/dist/next/Combobox/ComboboxOption.js +15 -19
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +9 -4
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +2 -3
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +10 -5
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +12 -5
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +5 -1
- package/dist/next/Drawer/Drawer.js +38 -23
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +21 -19
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +11 -11
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Form/useForm.js +25 -30
- package/dist/next/Form/useFormField.js +3 -4
- package/dist/next/Form/utils/createFormInstance.js +7 -9
- package/dist/next/Form/utils/useFormContext.js +3 -4
- package/dist/next/Indicator/Indicator.js +12 -8
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +49 -35
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +11 -12
- package/dist/next/LayoutGrid/LayoutGridItem.js +5 -6
- package/dist/next/LoadingSpinner/LoadingSpinner.js +22 -17
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +7 -4
- package/dist/next/Menu/Hooks/useMaskDimensions.js +6 -7
- package/dist/next/Menu/Hooks/usePaneSearch.js +50 -39
- package/dist/next/Menu/Menu.js +28 -15
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +17 -18
- package/dist/next/Menu/MenuContext.js +13 -18
- package/dist/next/Menu/MenuItem.js +28 -29
- package/dist/next/Menu/MenuPane.js +74 -61
- package/dist/next/Menu/MenuSearch.js +10 -10
- package/dist/next/Menu/PaneChildren.js +10 -15
- package/dist/next/Menu/SubMenu.js +91 -76
- package/dist/next/Pagination/Pagination.js +40 -31
- package/dist/next/Pagination/RowDisplayCount.js +6 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +49 -47
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +27 -30
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SelectButton.js +16 -15
- package/dist/next/Select/SelectContext.js +3 -4
- package/dist/next/Select/SelectItem.js +12 -13
- package/dist/next/Select/SelectPane.js +13 -14
- package/dist/next/Select/SelectedItems.js +16 -10
- package/dist/next/Select/SubSelect.js +21 -18
- package/dist/next/SplitButton/SplitButton.js +28 -21
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/SplitButton/SplitButtonOption.js +3 -5
- package/dist/next/Stack/Stack.js +26 -26
- package/dist/next/Stack/StackItem.js +12 -14
- package/dist/next/TimePicker/TimeDropdown.js +18 -18
- package/dist/next/TimePicker/TimeInput.js +38 -42
- package/dist/next/TimePicker/TimePicker.js +46 -25
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +5 -7
- package/dist/next/TimePicker/utils.js +34 -13
- package/dist/next/ToggleButton/ToggleButton.js +14 -13
- package/dist/next/ToggleButton/ToggleButtonGroup.js +8 -10
- package/dist/next/ToggleButton/ToggleButtonGroupContext.js +3 -4
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/Tooltip/Tooltip.js +5 -4
- package/dist/next/Typography/Typography.js +8 -7
- package/dist/next/index.js +2377 -2193
- package/dist/utils/Flyout/Flyout.js +14 -13
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Flyout/FlyoutHeader.js +6 -6
- package/dist/utils/Flyout/FlyoutOption.js +11 -8
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +4 -6
- package/dist/utils/Popper/Popper.js +71 -61
- package/dist/utils/Popper/PopperContext.js +5 -6
- package/dist/utils/Portal/Portal.js +7 -5
- package/dist/utils/Text/Text.js +10 -8
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +10 -6
- package/dist/utils/Translation/Translate.js +4 -7
- package/dist/utils/Translation/TranslationProvider.js +10 -14
- package/dist/utils/Translation/containsComponentOrElement.js +3 -1
- package/dist/utils/Translation/useTranslation.js +2 -3
- package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +1 -3
- package/dist/utils/filterChildren/filterChildren.js +4 -4
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
2
3
|
import React__default, { useMemo, useState, useCallback, useEffect, useRef } from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import useResizeObserver from '@react-hook/resize-observer';
|
|
@@ -36,46 +37,49 @@ import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
|
36
37
|
|
|
37
38
|
const AdvancedTable = _ref => {
|
|
38
39
|
var _ref8, _ref9;
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
defaultSelectedSortOption = {
|
|
40
|
+
let externalColumnConfigs = _ref.columnConfigs,
|
|
41
|
+
rowsPropExternal = _ref.rows,
|
|
42
|
+
onRowsChange = _ref.onRowsChange,
|
|
43
|
+
onRowSelect = _ref.onRowSelect,
|
|
44
|
+
externalSelectedRowId = _ref.selectedRowId,
|
|
45
|
+
onCheckedRowIdsChange = _ref.onCheckedRowIdsChange,
|
|
46
|
+
externalCheckedRowIds = _ref.checkedRowIds,
|
|
47
|
+
onSelectedSortOptionChange = _ref.onSelectedSortOptionChange,
|
|
48
|
+
_ref$defaultSelectedS = _ref.defaultSelectedSortOption,
|
|
49
|
+
defaultSelectedSortOption = _ref$defaultSelectedS === void 0 ? {
|
|
49
50
|
columnId: '',
|
|
50
51
|
index: -1,
|
|
51
52
|
direction: 'none'
|
|
52
|
-
},
|
|
53
|
-
selectedSortOption
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
'
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
53
|
+
} : _ref$defaultSelectedS,
|
|
54
|
+
externalSelectedSortOption = _ref.selectedSortOption,
|
|
55
|
+
_ref$disableUserPinna = _ref.disableUserPinnableColumns,
|
|
56
|
+
disableUserPinnableColumns = _ref$disableUserPinna === void 0 ? false : _ref$disableUserPinna,
|
|
57
|
+
_ref$initialPinnedCol = _ref.initialPinnedColumns,
|
|
58
|
+
initialPinnedColumns = _ref$initialPinnedCol === void 0 ? [] : _ref$initialPinnedCol,
|
|
59
|
+
exteralPinnedColumns = _ref.pinnedColumns,
|
|
60
|
+
onPinnedColumnsChange = _ref.onPinnedColumnsChange,
|
|
61
|
+
_ref$disableUserReord = _ref.disableUserReorderableColumns,
|
|
62
|
+
disableUserReorderableColumns = _ref$disableUserReord === void 0 ? false : _ref$disableUserReord,
|
|
63
|
+
externalColumnOrder = _ref.columnOrder,
|
|
64
|
+
onColumnOrderChange = _ref.onColumnOrderChange,
|
|
65
|
+
disableUserResizableColumns = _ref.disableUserResizableColumns,
|
|
66
|
+
externalColumnWidths = _ref.columnWidths,
|
|
67
|
+
onColumnWidthsChange = _ref.onColumnWidthsChange,
|
|
68
|
+
externalTableId = _ref.id,
|
|
69
|
+
rowsPerPage = _ref.rowsPerPage,
|
|
70
|
+
initialPage = _ref.initialPage,
|
|
71
|
+
onPageChange = _ref.onPageChange,
|
|
72
|
+
paginationClassName = _ref.paginationClassName,
|
|
73
|
+
paginationAriaLabel = _ref.paginationAriaLabel,
|
|
74
|
+
ariaLabelledBy = _ref['aria-labelledby'],
|
|
75
|
+
ariaLabel = _ref['aria-label'],
|
|
76
|
+
externalAriaDescribedBy = _ref['aria-describedby'],
|
|
77
|
+
dataTestId = _ref['data-testid'],
|
|
78
|
+
rowActions = _ref.rowActions,
|
|
79
|
+
rowActionsButtonAriaLabel = _ref.rowActionsButtonAriaLabel,
|
|
80
|
+
_ref$rowActionsPlacem = _ref.rowActionsPlacement,
|
|
81
|
+
rowActionsPlacement = _ref$rowActionsPlacem === void 0 ? 'bottom-end' : _ref$rowActionsPlacem,
|
|
82
|
+
headerMaxLines = _ref.headerMaxLines;
|
|
79
83
|
// This handles an edge case where no rows are passed in
|
|
80
84
|
// and the internal row transforms cause infinite state updates using a standard default assignment
|
|
81
85
|
const stableDefaultArray = useMemo(() => [], []);
|
|
@@ -94,8 +98,14 @@ const AdvancedTable = _ref => {
|
|
|
94
98
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
95
99
|
[externalColumnConfigs, rows] // columnConfigs has an implicit dependency on rows because it is initially computed using rows data
|
|
96
100
|
);
|
|
97
|
-
const
|
|
98
|
-
|
|
101
|
+
const _useState = useState(initialPage !== null && initialPage !== void 0 ? initialPage : 1),
|
|
102
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
103
|
+
currentPage = _useState2[0],
|
|
104
|
+
setCurrentPage = _useState2[1];
|
|
105
|
+
const _useState3 = useState(),
|
|
106
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
107
|
+
tableHeight = _useState4[0],
|
|
108
|
+
setTableHeight = _useState4[1];
|
|
99
109
|
const getPaginatedRowIndex = useCallback(universalRowIndex => rowsPerPage ? universalRowIndex + rowsPerPage * (currentPage - 1) : universalRowIndex, [rowsPerPage, currentPage]);
|
|
100
110
|
const paginatedRows = useMemo(() => {
|
|
101
111
|
if (!rows || !rowsPerPage || !currentPage) {
|
|
@@ -113,13 +123,11 @@ const AdvancedTable = _ref => {
|
|
|
113
123
|
}
|
|
114
124
|
}, [rows, rowsPerPage, paginatedRows, currentPage]);
|
|
115
125
|
const renderRowActionCellContent = useCallback(_ref2 => {
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
rowId
|
|
122
|
-
} = _ref2;
|
|
126
|
+
let rowIndex = _ref2.rowIndex,
|
|
127
|
+
isEditing = _ref2.isEditing,
|
|
128
|
+
focusCell = _ref2.focusCell,
|
|
129
|
+
focusableElementRef = _ref2.focusableElementRef,
|
|
130
|
+
rowId = _ref2.rowId;
|
|
123
131
|
const rowDataTestId = getRowTestId(dataTestId, rowId);
|
|
124
132
|
const rowActionMenuDataTestId = getSubDataTestId(rowDataTestId, 'RowActionMenu');
|
|
125
133
|
const row = rows === null || rows === void 0 ? void 0 : rows[rowIndex];
|
|
@@ -218,10 +226,19 @@ const AdvancedTable = _ref => {
|
|
|
218
226
|
setTableHeight(entry.contentRect.height);
|
|
219
227
|
});
|
|
220
228
|
const ariaDescribedBy = concatIds(externalAriaDescribedBy, arrowKeyDescriptionId, hasOnRowSelect && rowActionDescriptionId, hasCheckboxColumn && rowCheckboxDescriptionId);
|
|
221
|
-
const
|
|
222
|
-
|
|
229
|
+
const _useControllableState = useControllableState(initialPinnedColumns, onPinnedColumnsChange, exteralPinnedColumns),
|
|
230
|
+
_useControllableState2 = _slicedToArray(_useControllableState, 2),
|
|
231
|
+
pinnedColumns = _useControllableState2[0],
|
|
232
|
+
setPinnedColumns = _useControllableState2[1];
|
|
233
|
+
const _useControllableState3 = useControllableState({}, onColumnWidthsChange, externalColumnWidths),
|
|
234
|
+
_useControllableState4 = _slicedToArray(_useControllableState3, 2),
|
|
235
|
+
columnWidths = _useControllableState4[0],
|
|
236
|
+
setColumnWidths = _useControllableState4[1];
|
|
223
237
|
const columnConfigsOrder = useMemo(() => columnConfigs.map(c => c.id), [columnConfigs]);
|
|
224
|
-
const
|
|
238
|
+
const _useState5 = useState(columnConfigsOrder),
|
|
239
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
240
|
+
internalColumnOrder = _useState6[0],
|
|
241
|
+
setInternalColumnOrder = _useState6[1];
|
|
225
242
|
|
|
226
243
|
// If columnConfigs changes, the internal column order may need to be updated (this is why useControllableState isn't being used).
|
|
227
244
|
useDidUpdate(() => {
|
|
@@ -233,34 +250,54 @@ const AdvancedTable = _ref => {
|
|
|
233
250
|
setInternalColumnOrder(newColumnOrder);
|
|
234
251
|
onColumnOrderChange === null || onColumnOrderChange === void 0 || onColumnOrderChange(newColumnOrder);
|
|
235
252
|
});
|
|
236
|
-
const {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
columnConfigsMap.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const [
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
253
|
+
const _useMemo = useMemo(() => {
|
|
254
|
+
// Set and Map used for faster lookups
|
|
255
|
+
const pinnedColumnsSet = new Set(pinnedColumns);
|
|
256
|
+
const columnConfigsMap = new Map();
|
|
257
|
+
columnConfigs.forEach(c => {
|
|
258
|
+
columnConfigsMap.set(c.id, c);
|
|
259
|
+
});
|
|
260
|
+
const pinnedColumnConfigs = pinnedColumns.map(id => columnConfigsMap.get(id));
|
|
261
|
+
const unpinnedColumnOrder = columnOrder.filter(id => !pinnedColumnsSet.has(id) && columnConfigsMap.has(id));
|
|
262
|
+
const unpinnedColumnConfigs = unpinnedColumnOrder.map(id => columnConfigsMap.get(id));
|
|
263
|
+
const pinnedUnpinnedColumnOrder = [...pinnedColumnConfigs.map(c => c.id), ...unpinnedColumnConfigs.map(c => c.id)];
|
|
264
|
+
return {
|
|
265
|
+
pinnedColumnConfigs,
|
|
266
|
+
unpinnedColumnConfigs,
|
|
267
|
+
pinnedUnpinnedColumnOrder
|
|
268
|
+
};
|
|
269
|
+
}, [columnConfigs, pinnedColumns, columnOrder]),
|
|
270
|
+
pinnedColumnConfigs = _useMemo.pinnedColumnConfigs,
|
|
271
|
+
unpinnedColumnConfigs = _useMemo.unpinnedColumnConfigs,
|
|
272
|
+
pinnedUnpinnedColumnOrder = _useMemo.pinnedUnpinnedColumnOrder;
|
|
273
|
+
const _useControllableState5 = useControllableState('', undefined, externalSelectedRowId),
|
|
274
|
+
_useControllableState6 = _slicedToArray(_useControllableState5, 2),
|
|
275
|
+
selectedRowId = _useControllableState6[0],
|
|
276
|
+
setSelectedRowId = _useControllableState6[1];
|
|
277
|
+
const _useControllableState7 = useControllableState([], onCheckedRowIdsChange, externalCheckedRowIds),
|
|
278
|
+
_useControllableState8 = _slicedToArray(_useControllableState7, 2),
|
|
279
|
+
checkedRowIds = _useControllableState8[0],
|
|
280
|
+
setCheckedRowIds = _useControllableState8[1];
|
|
281
|
+
const _useControllableState9 = useControllableState(defaultSelectedSortOption, onSelectedSortOptionChange, externalSelectedSortOption),
|
|
282
|
+
_useControllableState0 = _slicedToArray(_useControllableState9, 2),
|
|
283
|
+
selectedSortOption = _useControllableState0[0],
|
|
284
|
+
setSelectedSortOption = _useControllableState0[1];
|
|
285
|
+
const _useState7 = useState(''),
|
|
286
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
287
|
+
dragSource = _useState8[0],
|
|
288
|
+
setDragSource = _useState8[1];
|
|
289
|
+
const _useState9 = useState(''),
|
|
290
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
291
|
+
dropTarget = _useState0[0],
|
|
292
|
+
setDropTarget = _useState0[1];
|
|
293
|
+
const _useState1 = useState(),
|
|
294
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
295
|
+
dropTargetSide = _useState10[0],
|
|
296
|
+
setDropTargetSide = _useState10[1];
|
|
297
|
+
const _useState11 = useState(''),
|
|
298
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
299
|
+
lastToggledRowId = _useState12[0],
|
|
300
|
+
setLastToggledRowId = _useState12[1];
|
|
264
301
|
|
|
265
302
|
// Enables using Set.prototype.has() vs Array.prototype.includes() for better performance at scale
|
|
266
303
|
const checkedRowIdsSet = useMemo(() => new Set(checkedRowIds), [checkedRowIds]);
|
|
@@ -288,25 +325,24 @@ const AdvancedTable = _ref => {
|
|
|
288
325
|
selectedSortOption,
|
|
289
326
|
setCurrentPage
|
|
290
327
|
});
|
|
291
|
-
const {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
});
|
|
328
|
+
const _useFocusState = useFocusState({
|
|
329
|
+
headerRowIndex,
|
|
330
|
+
maxRowIndex,
|
|
331
|
+
minColumnIndex,
|
|
332
|
+
maxColumnIndex,
|
|
333
|
+
hasFocusableRows,
|
|
334
|
+
pinnedUnpinnedColumnOrder,
|
|
335
|
+
tableRef,
|
|
336
|
+
currentPage
|
|
337
|
+
}),
|
|
338
|
+
focusedRowIndex = _useFocusState.focusedRowIndex,
|
|
339
|
+
focusedColumnIndex = _useFocusState.focusedColumnIndex,
|
|
340
|
+
updateRowFocusIndex = _useFocusState.updateRowFocusIndex,
|
|
341
|
+
updateColumnFocusIndex = _useFocusState.updateColumnFocusIndex,
|
|
342
|
+
setFocusedColumnId = _useFocusState.setFocusedColumnId,
|
|
343
|
+
createRef = _useFocusState.createRef,
|
|
344
|
+
createPinnedContainerRef = _useFocusState.createPinnedContainerRef,
|
|
345
|
+
cellRefs = _useFocusState.cellRefs;
|
|
310
346
|
const getAllRowIds = useCallback(function () {
|
|
311
347
|
let rowsToScan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : rowsProp;
|
|
312
348
|
let ids = [];
|
|
@@ -319,20 +355,17 @@ const AdvancedTable = _ref => {
|
|
|
319
355
|
return ids;
|
|
320
356
|
}, [rowsProp]);
|
|
321
357
|
const hasExpandableRows = useMemo(() => rows === null || rows === void 0 ? void 0 : rows.some(_ref3 => {
|
|
322
|
-
let
|
|
323
|
-
hasChildRows
|
|
324
|
-
} = _ref3;
|
|
358
|
+
let hasChildRows = _ref3.hasChildRows;
|
|
325
359
|
return hasChildRows;
|
|
326
360
|
}), [rows]);
|
|
327
361
|
const updateExpandedRowIds = (index, isExpanded) => {
|
|
328
362
|
if (!rows || !rows[index]) {
|
|
329
363
|
return;
|
|
330
364
|
}
|
|
331
|
-
const
|
|
332
|
-
rowPropReference,
|
|
333
|
-
id,
|
|
334
|
-
depth
|
|
335
|
-
} = rows[index];
|
|
365
|
+
const _rows$index = rows[index],
|
|
366
|
+
rowPropReference = _rows$index.rowPropReference,
|
|
367
|
+
id = _rows$index.id,
|
|
368
|
+
depth = _rows$index.depth;
|
|
336
369
|
const updatedRow = {
|
|
337
370
|
...rowPropReference,
|
|
338
371
|
isExpanded
|
|
@@ -342,9 +375,7 @@ const AdvancedTable = _ref => {
|
|
|
342
375
|
};
|
|
343
376
|
const getLastToggledRowIndex = () => {
|
|
344
377
|
const index = rows === null || rows === void 0 ? void 0 : rows.findIndex(_ref4 => {
|
|
345
|
-
let
|
|
346
|
-
id
|
|
347
|
-
} = _ref4;
|
|
378
|
+
let id = _ref4.id;
|
|
348
379
|
return id === lastToggledRowId;
|
|
349
380
|
});
|
|
350
381
|
return index === -1 ? 0 : index;
|
|
@@ -382,9 +413,7 @@ const AdvancedTable = _ref => {
|
|
|
382
413
|
const handleColumnHeaderCheckboxToggle = () => {
|
|
383
414
|
setLastToggledRowId('');
|
|
384
415
|
const visibleLeafIdsSet = (paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows).reduce((set, _ref5) => {
|
|
385
|
-
let
|
|
386
|
-
rowPropReference
|
|
387
|
-
} = _ref5;
|
|
416
|
+
let rowPropReference = _ref5.rowPropReference;
|
|
388
417
|
getAllLeafIds(rowPropReference).forEach(id => set.add(id));
|
|
389
418
|
return set;
|
|
390
419
|
}, new Set());
|
|
@@ -403,9 +432,7 @@ const AdvancedTable = _ref => {
|
|
|
403
432
|
const isEndIndexChecked = getCheckboxStateForRow(endRow) === true;
|
|
404
433
|
setLastToggledRowId(endRow.id);
|
|
405
434
|
const newIds = rows.slice(Math.min(startIndex, endIndex), Math.max(startIndex, endIndex) + 1).reduce((set, _ref6) => {
|
|
406
|
-
let
|
|
407
|
-
rowPropReference
|
|
408
|
-
} = _ref6;
|
|
435
|
+
let rowPropReference = _ref6.rowPropReference;
|
|
409
436
|
getAllLeafIds(rowPropReference).forEach(id => {
|
|
410
437
|
if (!disabledRowIdsSet.has(id)) {
|
|
411
438
|
set.add(id);
|
|
@@ -424,10 +451,8 @@ const AdvancedTable = _ref => {
|
|
|
424
451
|
return;
|
|
425
452
|
}
|
|
426
453
|
const row = rows[index];
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
rowPropReference
|
|
430
|
-
} = row;
|
|
454
|
+
const rowId = row.id,
|
|
455
|
+
rowPropReference = row.rowPropReference;
|
|
431
456
|
setLastToggledRowId(rowId);
|
|
432
457
|
const idsToCheck = getAllLeafIds(rowPropReference).filter(id => !checkedRowIdsSet.has(id) && !disabledRowIdsSet.has(id));
|
|
433
458
|
if (idsToCheck.length === 0) {
|
|
@@ -526,13 +551,11 @@ const AdvancedTable = _ref => {
|
|
|
526
551
|
const getColumnHeaderProps = (columnConfig, columnIndex, isPinned) => {
|
|
527
552
|
var _columnWidths$id;
|
|
528
553
|
const rowIndex = headerRowIndex;
|
|
529
|
-
const
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
sortOptions
|
|
535
|
-
} = columnConfig;
|
|
554
|
+
const id = columnConfig.id,
|
|
555
|
+
headerLabel = columnConfig.headerLabel,
|
|
556
|
+
width = columnConfig.width,
|
|
557
|
+
alignment = columnConfig.alignment,
|
|
558
|
+
sortOptions = columnConfig.sortOptions;
|
|
536
559
|
const isRowActionMenuColumn = rowActionsColumnConfigId === id;
|
|
537
560
|
return {
|
|
538
561
|
id,
|
|
@@ -609,13 +632,11 @@ const AdvancedTable = _ref => {
|
|
|
609
632
|
};
|
|
610
633
|
const getCellProps = (columnConfig, columnIndex, data, rowIndex, rowId, depth, rowPropReference) => {
|
|
611
634
|
var _columnWidths$columnI;
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
isCellContentInteractive
|
|
618
|
-
} = columnConfig;
|
|
635
|
+
const columnId = columnConfig.id,
|
|
636
|
+
width = columnConfig.width,
|
|
637
|
+
alignment = columnConfig.alignment,
|
|
638
|
+
renderCellContent = columnConfig.renderCellContent,
|
|
639
|
+
isCellContentInteractive = columnConfig.isCellContentInteractive;
|
|
619
640
|
const value = data[columnId];
|
|
620
641
|
return {
|
|
621
642
|
value,
|
|
@@ -646,10 +667,8 @@ const AdvancedTable = _ref => {
|
|
|
646
667
|
// This adds a class to table rows and the table header row to restrict their widths in such a case.
|
|
647
668
|
const restrictedWidth = columnConfigs.every(_ref7 => {
|
|
648
669
|
var _columnWidths$id2;
|
|
649
|
-
let
|
|
650
|
-
|
|
651
|
-
width
|
|
652
|
-
} = _ref7;
|
|
670
|
+
let id = _ref7.id,
|
|
671
|
+
width = _ref7.width;
|
|
653
672
|
return ((_columnWidths$id2 = columnWidths[id]) !== null && _columnWidths$id2 !== void 0 ? _columnWidths$id2 : width) !== undefined;
|
|
654
673
|
});
|
|
655
674
|
return /*#__PURE__*/React__default.createElement(AdvancedTableDnDContextProvider, {
|
|
@@ -720,18 +739,17 @@ const AdvancedTable = _ref => {
|
|
|
720
739
|
role: "rowgroup",
|
|
721
740
|
className: styles.advancedTableRowGroup
|
|
722
741
|
}, ((_ref9 = paginatedRows !== null && paginatedRows !== void 0 ? paginatedRows : rows) !== null && _ref9 !== void 0 ? _ref9 : []).map((row, rowIndex) => {
|
|
723
|
-
const
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
depth = 0,
|
|
728
|
-
depthSize,
|
|
729
|
-
depthIndex,
|
|
730
|
-
parentId,
|
|
731
|
-
rowProps,
|
|
732
|
-
hasChildRows,
|
|
733
|
-
rowPropReference
|
|
734
|
-
} = row;
|
|
742
|
+
const rowId = row.id,
|
|
743
|
+
data = row.data,
|
|
744
|
+
isExpanded = row.isExpanded,
|
|
745
|
+
_row$depth = row.depth,
|
|
746
|
+
depth = _row$depth === void 0 ? 0 : _row$depth,
|
|
747
|
+
depthSize = row.depthSize,
|
|
748
|
+
depthIndex = row.depthIndex,
|
|
749
|
+
parentId = row.parentId,
|
|
750
|
+
rowProps = row.rowProps,
|
|
751
|
+
hasChildRows = row.hasChildRows,
|
|
752
|
+
rowPropReference = row.rowPropReference;
|
|
735
753
|
const paginatedRowIndex = getPaginatedRowIndex(rowIndex);
|
|
736
754
|
const onSelect = e => {
|
|
737
755
|
e.preventDefault(); // stops event from triggering on new target when focus is changed during onSelect
|
|
@@ -819,24 +837,18 @@ AdvancedTable.displayName = 'AdvancedTable';
|
|
|
819
837
|
|
|
820
838
|
// TODO: move hook to separate file
|
|
821
839
|
function useSortedRows(_ref0) {
|
|
822
|
-
let
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
setCurrentPage
|
|
827
|
-
} = _ref0;
|
|
840
|
+
let columnConfigs = _ref0.columnConfigs,
|
|
841
|
+
onRowsChange = _ref0.onRowsChange,
|
|
842
|
+
selectedSortOption = _ref0.selectedSortOption,
|
|
843
|
+
setCurrentPage = _ref0.setCurrentPage;
|
|
828
844
|
const columnConfigsRef = useLatest(columnConfigs);
|
|
829
845
|
const onRowsChangeRef = useLatest(onRowsChange);
|
|
830
846
|
useDidUpdate(() => {
|
|
831
847
|
var _columnConfigsRef$cur;
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
index
|
|
835
|
-
} = selectedSortOption;
|
|
848
|
+
const columnId = selectedSortOption.columnId,
|
|
849
|
+
index = selectedSortOption.index;
|
|
836
850
|
const sort = (_columnConfigsRef$cur = columnConfigsRef.current.find(_ref1 => {
|
|
837
|
-
let
|
|
838
|
-
id
|
|
839
|
-
} = _ref1;
|
|
851
|
+
let id = _ref1.id;
|
|
840
852
|
return id === columnId;
|
|
841
853
|
})) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur.sortOptions) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur[index]) === null || _columnConfigsRef$cur === void 0 ? void 0 : _columnConfigsRef$cur.sort;
|
|
842
854
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
@@ -848,21 +860,28 @@ function useSortedRows(_ref0) {
|
|
|
848
860
|
|
|
849
861
|
// TODO: move hook to separate file
|
|
850
862
|
function useFocusState(_ref10) {
|
|
851
|
-
let
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
currentPage
|
|
860
|
-
} = _ref10;
|
|
863
|
+
let headerRowIndex = _ref10.headerRowIndex,
|
|
864
|
+
maxRowIndex = _ref10.maxRowIndex,
|
|
865
|
+
minColumnIndex = _ref10.minColumnIndex,
|
|
866
|
+
maxColumnIndex = _ref10.maxColumnIndex,
|
|
867
|
+
hasFocusableRows = _ref10.hasFocusableRows,
|
|
868
|
+
pinnedUnpinnedColumnOrder = _ref10.pinnedUnpinnedColumnOrder,
|
|
869
|
+
tableRef = _ref10.tableRef,
|
|
870
|
+
currentPage = _ref10.currentPage;
|
|
861
871
|
const cellRefs = useRef({});
|
|
862
872
|
const pinnedContainersRef = useRef({});
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
|
|
873
|
+
const _useState13 = useState(headerRowIndex),
|
|
874
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
875
|
+
focusedRowIndex = _useState14[0],
|
|
876
|
+
setFocusedRowIndex = _useState14[1];
|
|
877
|
+
const _useState15 = useState(minColumnIndex),
|
|
878
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
879
|
+
focusedColumnIndex = _useState16[0],
|
|
880
|
+
setFocusedColumnIndex = _useState16[1];
|
|
881
|
+
const _useState17 = useState(),
|
|
882
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
883
|
+
focusedColumnId = _useState18[0],
|
|
884
|
+
setFocusedColumnId = _useState18[1];
|
|
866
885
|
const createRef = (rowIndex, columnIndex) => node => {
|
|
867
886
|
if (!cellRefs.current[rowIndex]) {
|
|
868
887
|
cellRefs.current[rowIndex] = {};
|
|
@@ -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 = "._ZqH6R{overflow:auto;position:relative;max-width:100%;max-height:100%}._8kQ1B,._ZqH6R{background-color:#fff}._8kQ1B{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._awed4{margin-bottom:4px}._QI-vJ{position:-webkit-sticky;position:sticky;top:0;z-index:100}._5bHLV{display:flex}._5bHLV:focus{outline:none}._5bHLV.focus-visible ._ByUmq:after,._5bHLV:focus-visible ._ByUmq: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}._5bHLV.focus-visible ._ByUmq:last-of-type:after,._5bHLV:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5bHLV.focus-visible ._ByUmq:first-of-type:after,._5bHLV:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5bHLV.focus-visible ._ByUmq._m6mQK:after,._5bHLV:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:1px}._jkt1G{padding-right:3px}._PWQ2N{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._fxR6c{display:flex}._fxR6c._CeG8L ._ByUmq,._fxR6c._CeG8L ._j7KXq{cursor:pointer}._fxR6c._V6yXJ ._ByUmq,._fxR6c._V6yXJ ._j7KXq{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._fxR6c._V6yXJ ._ByUmq._m6mQK,._fxR6c._V6yXJ ._j7KXq._m6mQK{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._fxR6c._V6yXJ ._ByUmq._m6mQK ._j7KXq,._fxR6c._V6yXJ ._ByUmq._m6mQK ._KEcu7,._fxR6c._V6yXJ ._ByUmq._m6mQK ._zavyu,._fxR6c._V6yXJ ._j7KXq._m6mQK ._j7KXq,._fxR6c._V6yXJ ._j7KXq._m6mQK ._KEcu7,._fxR6c._V6yXJ ._j7KXq._m6mQK ._zavyu{background-color:rgba(11,110,208,.08)}._fxR6c._CeG8L:hover:not(._V6yXJ) ._ByUmq,._fxR6c._CeG8L:hover:not(._V6yXJ) ._j7KXq{background-color:#f9f9f9}._fxR6c._CeG8L:active:not(._V6yXJ):not(._fxR6c._CeG8L:active:not(._V6yXJ):has(._zavyu:active)) ._ByUmq,._fxR6c._CeG8L:active:not(._V6yXJ):not(._fxR6c._CeG8L:active:not(._V6yXJ):has(._zavyu:active)) ._j7KXq{background-color:#f3f3f3}._fxR6c:focus{outline:none}._fxR6c.focus-visible ._ByUmq:after,._fxR6c:focus-visible ._ByUmq: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}._fxR6c.focus-visible ._ByUmq:last-of-type:after,._fxR6c:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._fxR6c.focus-visible ._ByUmq:first-of-type:after,._fxR6c:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._fxR6c.focus-visible ._ByUmq._m6mQK:after,._fxR6c:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:0}._fxR6c:last-of-type:focus{outline:none}._fxR6c:last-of-type.focus-visible ._ByUmq:after,._fxR6c:last-of-type:focus-visible ._ByUmq: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}._fxR6c:last-of-type.focus-visible ._ByUmq:last-of-type:after,._fxR6c:last-of-type:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._fxR6c:last-of-type.focus-visible ._ByUmq:first-of-type:after,._fxR6c:last-of-type:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._fxR6c:last-of-type.focus-visible ._ByUmq._m6mQK:after,._fxR6c:last-of-type:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:1px}._fxR6c:last-of-type ._KEcu7:focus{outline:none}._fxR6c:last-of-type ._KEcu7._s8cqP.focus-visible:after,._fxR6c:last-of-type ._KEcu7._s8cqP:focus-visible:after,._fxR6c:last-of-type ._KEcu7.focus-visible:after,._fxR6c:last-of-type ._KEcu7: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}._fxR6c:first-of-type:focus{outline:none}._fxR6c:first-of-type.focus-visible ._ByUmq:after,._fxR6c:first-of-type:focus-visible ._ByUmq: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}._fxR6c:first-of-type.focus-visible ._ByUmq:last-of-type:after,._fxR6c:first-of-type:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._fxR6c:first-of-type.focus-visible ._ByUmq:first-of-type:after,._fxR6c:first-of-type:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._fxR6c:first-of-type.focus-visible ._ByUmq._m6mQK:after,._fxR6c:first-of-type:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:0}._fxR6c:first-of-type ._KEcu7:focus{outline:none}._fxR6c:first-of-type ._KEcu7._s8cqP.focus-visible:after,._fxR6c:first-of-type ._KEcu7._s8cqP:focus-visible:after,._fxR6c:first-of-type ._KEcu7.focus-visible:after,._fxR6c:first-of-type ._KEcu7: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}._1dfAc{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}._1dfAc._iLTxR{flex-grow:1}._1dfAc._IHVb8{cursor:pointer}._1dfAc._IHVb8:hover:not(._41L51){background-color:#f9f9f9;border-bottom-color:#6a6d70}._1dfAc._IHVb8:active:not(._41L51){background-color:#f3f3f3}._1dfAc._LhpW5:not(._41L51){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._1dfAc._41L51{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._1dfAc ._0C2en{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._1dfAc ._0C2en._ZnHaP{left:-1px}._1dfAc ._0C2en._yooqd{right:0}._1dfAc ._6C7zA{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._1dfAc ._6C7zA._ZnHaP{left:-2px}._1dfAc ._6C7zA._yooqd{right:-1px}._1dfAc:first-of-type ._ZnHaP._0C2en{left:0;width:2px;border-left:1px solid #fff}._1dfAc:first-of-type ._ZnHaP._6C7zA{left:0}._1dfAc:last-of-type ._yooqd._0C2en{right:0;width:2px;border-right:1px solid #fff}._1dfAc:last-of-type ._yooqd._6C7zA{right:0}._1dfAc ._kdx6k{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._1dfAc ._kdx6k ._i76PU{position:absolute;width:2px;right:2px;top:0;bottom:0}._1dfAc ._kdx6k ._i76PU._kK11m{background-color:#0a6ed1}._1dfAc ._kdx6k:hover ._i76PU:not(._kK11m){background-color:#d9d9d9}._1dfAc ._Gcjnv{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._1dfAc ._Gcjnv._DgMZO{flex-direction:row-reverse;justify-content:flex-start}._1dfAc ._Gcjnv._DgMZO ._-6gVW{margin:1px 7px 1px 1px}._1dfAc ._Gcjnv ._OBwPa{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._1dfAc ._Gcjnv ._-6gVW{margin:1px 1px 1px 7px;flex-shrink:0}._1dfAc ._0BOTM{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._1dfAc ._6j4hi{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._1dfAc:focus{outline:none}._1dfAc._s8cqP.focus-visible:after,._1dfAc._s8cqP:focus-visible:after,._1dfAc.focus-visible:after,._1dfAc: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}._Z3TMB{margin-right:6px}._m6mQK{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._m6mQK[focus-within]{z-index:30}._m6mQK:focus-within{z-index:30}._KEcu7{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}._KEcu7 ._OVOvZ{width:100%;padding:12px 12px 11px;overflow:hidden}._KEcu7._41L51{background-color:#efefef;border-bottom-color:#dfdfe1}._KEcu7._iLTxR{flex-grow:1}._KEcu7:focus{outline:none}._KEcu7._s8cqP.focus-visible:after,._KEcu7._s8cqP:focus-visible:after,._KEcu7.focus-visible:after,._KEcu7: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}._j7KXq{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._j7KXq._2YGtS{border-bottom-color:#d9d9d9;background-color:#fff}._zavyu{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}._zavyu._2YGtS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._zavyu:focus input~span,._zavyu:hover input~span{border-color:#0b6ed0}._dOxIQ{justify-content:flex-start}._Qckcx{justify-content:center;text-align:center}._DgMZO{justify-content:flex-end;text-align:right}._9i4zU{display:none}._fxDL9{opacity:0;height:0;width:0;overflow:hidden}._b3wfx,._fxDL9{position:absolute}._b3wfx{background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000}._b3wfx,._V94rj{cursor:move;pointer-events:none}._mcB1H{max-width:250px;min-width:150px!important}";
|
|
4
|
+
var styles = {"advancedTable":"_ZqH6R","advancedTablePaginationContainer":"_8kQ1B","advancedTablePagination":"_awed4","advancedTableColumnHeadersRowGroup":"_QI-vJ","advancedTableColumnHeaders":"_5bHLV","advancedTableRowChild":"_ByUmq","pinnedContainer":"_m6mQK","advancedTableRowGroup":"_jkt1G","advancedTableRowRestrictedWidth":"_PWQ2N","advancedTableRow":"_fxR6c","hasRowAction":"_CeG8L","advancedTableExpandRowSpacer":"_j7KXq","isSelected":"_V6yXJ","advancedTableCheckbox":"_zavyu","advancedTableCell":"_KEcu7","showFocusRing":"_s8cqP","advancedTableColumnHeader":"_1dfAc","fillRemainingSpace":"_iLTxR","isSortable":"_IHVb8","isDragging":"_41L51","isSorted":"_LhpW5","dropTargetLine":"_0C2en","dropTargetLeft":"_ZnHaP","dropTargetRight":"_yooqd","dropTargetMarker":"_6C7zA","resizeHandle":"_kdx6k","resizeLine":"_i76PU","isResizing":"_kK11m","advancedTableColumnHeaderLabel":"_Gcjnv","rightAligned":"_DgMZO","sortIcon":"_-6gVW","advancedTableColumnHeaderLabelText":"_OBwPa","advancedTableColumnHeaderMenu":"_0BOTM","advancedTableColumnHeaderMenuHiddenAnchor":"_6j4hi","advancedTableColumnHeaderMenuItemIcon":"_Z3TMB","advancedTableCellContainer":"_OVOvZ","header":"_2YGtS","leftAligned":"_dOxIQ","centerAligned":"_Qckcx","hiddenDescription":"_9i4zU","hiddenLiveRegion":"_fxDL9","dragPreview":"_b3wfx","isColumnDragging":"_V94rj","rowActionMenuPane":"_mcB1H"};
|
|
5
|
+
var stylesheet="._ZqH6R{overflow:auto;position:relative;max-width:100%;max-height:100%}._8kQ1B,._ZqH6R{background-color:#fff}._8kQ1B{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._awed4{margin-bottom:4px}._QI-vJ{position:-webkit-sticky;position:sticky;top:0;z-index:100}._5bHLV{display:flex}._5bHLV:focus{outline:none}._5bHLV.focus-visible ._ByUmq:after,._5bHLV:focus-visible ._ByUmq: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}._5bHLV.focus-visible ._ByUmq:last-of-type:after,._5bHLV:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._5bHLV.focus-visible ._ByUmq:first-of-type:after,._5bHLV:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._5bHLV.focus-visible ._ByUmq._m6mQK:after,._5bHLV:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:1px}._jkt1G{padding-right:3px}._PWQ2N{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._fxR6c{display:flex}._fxR6c._CeG8L ._ByUmq,._fxR6c._CeG8L ._j7KXq{cursor:pointer}._fxR6c._V6yXJ ._ByUmq,._fxR6c._V6yXJ ._j7KXq{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._fxR6c._V6yXJ ._ByUmq._m6mQK,._fxR6c._V6yXJ ._j7KXq._m6mQK{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._fxR6c._V6yXJ ._ByUmq._m6mQK ._j7KXq,._fxR6c._V6yXJ ._ByUmq._m6mQK ._KEcu7,._fxR6c._V6yXJ ._ByUmq._m6mQK ._zavyu,._fxR6c._V6yXJ ._j7KXq._m6mQK ._j7KXq,._fxR6c._V6yXJ ._j7KXq._m6mQK ._KEcu7,._fxR6c._V6yXJ ._j7KXq._m6mQK ._zavyu{background-color:rgba(11,110,208,.08)}._fxR6c._CeG8L:hover:not(._V6yXJ) ._ByUmq,._fxR6c._CeG8L:hover:not(._V6yXJ) ._j7KXq{background-color:#f9f9f9}._fxR6c._CeG8L:active:not(._V6yXJ):not(._fxR6c._CeG8L:active:not(._V6yXJ):has(._zavyu:active)) ._ByUmq,._fxR6c._CeG8L:active:not(._V6yXJ):not(._fxR6c._CeG8L:active:not(._V6yXJ):has(._zavyu:active)) ._j7KXq{background-color:#f3f3f3}._fxR6c:focus{outline:none}._fxR6c.focus-visible ._ByUmq:after,._fxR6c:focus-visible ._ByUmq: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}._fxR6c.focus-visible ._ByUmq:last-of-type:after,._fxR6c:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._fxR6c.focus-visible ._ByUmq:first-of-type:after,._fxR6c:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._fxR6c.focus-visible ._ByUmq._m6mQK:after,._fxR6c:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:0}._fxR6c:last-of-type:focus{outline:none}._fxR6c:last-of-type.focus-visible ._ByUmq:after,._fxR6c:last-of-type:focus-visible ._ByUmq: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}._fxR6c:last-of-type.focus-visible ._ByUmq:last-of-type:after,._fxR6c:last-of-type:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._fxR6c:last-of-type.focus-visible ._ByUmq:first-of-type:after,._fxR6c:last-of-type:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._fxR6c:last-of-type.focus-visible ._ByUmq._m6mQK:after,._fxR6c:last-of-type:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:1px}._fxR6c:last-of-type ._KEcu7:focus{outline:none}._fxR6c:last-of-type ._KEcu7._s8cqP.focus-visible:after,._fxR6c:last-of-type ._KEcu7._s8cqP:focus-visible:after,._fxR6c:last-of-type ._KEcu7.focus-visible:after,._fxR6c:last-of-type ._KEcu7: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}._fxR6c:first-of-type:focus{outline:none}._fxR6c:first-of-type.focus-visible ._ByUmq:after,._fxR6c:first-of-type:focus-visible ._ByUmq: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}._fxR6c:first-of-type.focus-visible ._ByUmq:last-of-type:after,._fxR6c:first-of-type:focus-visible ._ByUmq:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._fxR6c:first-of-type.focus-visible ._ByUmq:first-of-type:after,._fxR6c:first-of-type:focus-visible ._ByUmq:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._fxR6c:first-of-type.focus-visible ._ByUmq._m6mQK:after,._fxR6c:first-of-type:focus-visible ._ByUmq._m6mQK:after{right:-3px;bottom:0}._fxR6c:first-of-type ._KEcu7:focus{outline:none}._fxR6c:first-of-type ._KEcu7._s8cqP.focus-visible:after,._fxR6c:first-of-type ._KEcu7._s8cqP:focus-visible:after,._fxR6c:first-of-type ._KEcu7.focus-visible:after,._fxR6c:first-of-type ._KEcu7: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}._1dfAc{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}._1dfAc._iLTxR{flex-grow:1}._1dfAc._IHVb8{cursor:pointer}._1dfAc._IHVb8:hover:not(._41L51){background-color:#f9f9f9;border-bottom-color:#6a6d70}._1dfAc._IHVb8:active:not(._41L51){background-color:#f3f3f3}._1dfAc._LhpW5:not(._41L51){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._1dfAc._41L51{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._1dfAc ._0C2en{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._1dfAc ._0C2en._ZnHaP{left:-1px}._1dfAc ._0C2en._yooqd{right:0}._1dfAc ._6C7zA{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._1dfAc ._6C7zA._ZnHaP{left:-2px}._1dfAc ._6C7zA._yooqd{right:-1px}._1dfAc:first-of-type ._ZnHaP._0C2en{left:0;width:2px;border-left:1px solid #fff}._1dfAc:first-of-type ._ZnHaP._6C7zA{left:0}._1dfAc:last-of-type ._yooqd._0C2en{right:0;width:2px;border-right:1px solid #fff}._1dfAc:last-of-type ._yooqd._6C7zA{right:0}._1dfAc ._kdx6k{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._1dfAc ._kdx6k ._i76PU{position:absolute;width:2px;right:2px;top:0;bottom:0}._1dfAc ._kdx6k ._i76PU._kK11m{background-color:#0a6ed1}._1dfAc ._kdx6k:hover ._i76PU:not(._kK11m){background-color:#d9d9d9}._1dfAc ._Gcjnv{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._1dfAc ._Gcjnv._DgMZO{flex-direction:row-reverse;justify-content:flex-start}._1dfAc ._Gcjnv._DgMZO ._-6gVW{margin:1px 7px 1px 1px}._1dfAc ._Gcjnv ._OBwPa{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._1dfAc ._Gcjnv ._-6gVW{margin:1px 1px 1px 7px;flex-shrink:0}._1dfAc ._0BOTM{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._1dfAc ._6j4hi{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._1dfAc:focus{outline:none}._1dfAc._s8cqP.focus-visible:after,._1dfAc._s8cqP:focus-visible:after,._1dfAc.focus-visible:after,._1dfAc: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}._Z3TMB{margin-right:6px}._m6mQK{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._m6mQK[focus-within]{z-index:30}._m6mQK:focus-within{z-index:30}._KEcu7{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}._KEcu7 ._OVOvZ{width:100%;padding:12px 12px 11px;overflow:hidden}._KEcu7._41L51{background-color:#efefef;border-bottom-color:#dfdfe1}._KEcu7._iLTxR{flex-grow:1}._KEcu7:focus{outline:none}._KEcu7._s8cqP.focus-visible:after,._KEcu7._s8cqP:focus-visible:after,._KEcu7.focus-visible:after,._KEcu7: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}._j7KXq{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._j7KXq._2YGtS{border-bottom-color:#d9d9d9;background-color:#fff}._zavyu{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}._zavyu._2YGtS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._zavyu:focus input~span,._zavyu:hover input~span{border-color:#0b6ed0}._dOxIQ{justify-content:flex-start}._Qckcx{justify-content:center;text-align:center}._DgMZO{justify-content:flex-end;text-align:right}._9i4zU{display:none}._fxDL9{opacity:0;height:0;width:0;overflow:hidden}._b3wfx,._fxDL9{position:absolute}._b3wfx{background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000}._b3wfx,._V94rj{cursor:move;pointer-events:none}._mcB1H{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 };
|