@patternfly/react-core 6.0.0-alpha.57 → 6.0.0-alpha.58
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 +6 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/deprecated/components/index.d.ts +0 -6
- package/dist/esm/deprecated/components/index.d.ts.map +1 -1
- package/dist/esm/deprecated/components/index.js +0 -6
- package/dist/esm/deprecated/components/index.js.map +1 -1
- package/dist/js/deprecated/components/index.d.ts +0 -6
- package/dist/js/deprecated/components/index.d.ts.map +1 -1
- package/dist/js/deprecated/components/index.js +0 -6
- package/dist/js/deprecated/components/index.js.map +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/components/Page/__tests__/Page.test.tsx +14 -14
- package/src/components/Page/__tests__/__snapshots__/Page.test.tsx.snap +26 -224
- package/src/deprecated/components/index.ts +0 -6
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +0 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +0 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +0 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +0 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +0 -1
- package/dist/dynamic/deprecated/components/Select/package.json +0 -1
- package/dist/dynamic/helpers/favorites/package.json +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts +0 -60
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.js +0 -99
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncher.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts +0 -7
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js +0 -16
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +0 -5
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js +0 -6
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +0 -4
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js +0 -9
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts +0 -9
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js +0 -12
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +0 -31
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js +0 -22
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts +0 -6
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js +0 -3
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +0 -4
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js +0 -11
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts +0 -9
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +0 -10
- package/dist/esm/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/index.d.ts +0 -10
- package/dist/esm/deprecated/components/ApplicationLauncher/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/index.js +0 -10
- package/dist/esm/deprecated/components/ApplicationLauncher/index.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.d.ts +0 -75
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.js +0 -73
- package/dist/esm/deprecated/components/ContextSelector/ContextSelector.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts +0 -9
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.js +0 -10
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorFooter.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.d.ts +0 -26
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.js +0 -40
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorItem.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts +0 -21
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.js +0 -33
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorMenuList.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts +0 -39
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.js +0 -74
- package/dist/esm/deprecated/components/ContextSelector/ContextSelectorToggle.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.d.ts +0 -5
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.js +0 -6
- package/dist/esm/deprecated/components/ContextSelector/contextSelectorConstants.js.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/index.d.ts +0 -4
- package/dist/esm/deprecated/components/ContextSelector/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/ContextSelector/index.js +0 -4
- package/dist/esm/deprecated/components/ContextSelector/index.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.d.ts +0 -35
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.js +0 -20
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts +0 -66
- package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Dropdown.js +0 -16
- package/dist/esm/deprecated/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts +0 -11
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js +0 -15
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts +0 -52
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.js +0 -15
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.d.ts +0 -53
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.js +0 -131
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.d.ts +0 -14
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.js +0 -16
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.d.ts +0 -50
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.js +0 -32
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.d.ts +0 -22
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.js +0 -18
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts +0 -45
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.js +0 -51
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.d.ts +0 -20
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.js +0 -99
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.d.ts +0 -67
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.js +0 -149
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.d.ts +0 -32
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.js +0 -16
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Toggle.d.ts +0 -51
- package/dist/esm/deprecated/components/Dropdown/Toggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/Toggle.js +0 -93
- package/dist/esm/deprecated/components/Dropdown/Toggle.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.d.ts +0 -41
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.js +0 -35
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.js.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/index.d.ts +0 -13
- package/dist/esm/deprecated/components/Dropdown/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Dropdown/index.js +0 -13
- package/dist/esm/deprecated/components/Dropdown/index.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.d.ts +0 -48
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js +0 -40
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts +0 -17
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts +0 -4
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.js +0 -9
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuSeparator.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts +0 -28
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js +0 -15
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts +0 -37
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +0 -63
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/index.d.ts +0 -7
- package/dist/esm/deprecated/components/OptionsMenu/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/OptionsMenu/index.js +0 -7
- package/dist/esm/deprecated/components/OptionsMenu/index.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeader.d.ts +0 -29
- package/dist/esm/deprecated/components/PageHeader/PageHeader.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeader.js +0 -34
- package/dist/esm/deprecated/components/PageHeader/PageHeader.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.d.ts +0 -9
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.js +0 -10
- package/dist/esm/deprecated/components/PageHeader/PageHeaderTools.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts +0 -18
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.js +0 -13
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsGroup.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -20
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js +0 -13
- package/dist/esm/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/index.d.ts +0 -5
- package/dist/esm/deprecated/components/PageHeader/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/PageHeader/index.js +0 -5
- package/dist/esm/deprecated/components/PageHeader/index.js.map +0 -1
- package/dist/esm/deprecated/components/Select/Select.d.ts +0 -200
- package/dist/esm/deprecated/components/Select/Select.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/Select.js +0 -941
- package/dist/esm/deprecated/components/Select/Select.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectGroup.d.ts +0 -13
- package/dist/esm/deprecated/components/Select/SelectGroup.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectGroup.js +0 -13
- package/dist/esm/deprecated/components/Select/SelectGroup.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectMenu.d.ts +0 -47
- package/dist/esm/deprecated/components/Select/SelectMenu.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectMenu.js +0 -164
- package/dist/esm/deprecated/components/Select/SelectMenu.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectOption.d.ts +0 -74
- package/dist/esm/deprecated/components/Select/SelectOption.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectOption.js +0 -197
- package/dist/esm/deprecated/components/Select/SelectOption.js.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectToggle.d.ts +0 -57
- package/dist/esm/deprecated/components/Select/SelectToggle.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/SelectToggle.js +0 -208
- package/dist/esm/deprecated/components/Select/SelectToggle.js.map +0 -1
- package/dist/esm/deprecated/components/Select/index.d.ts +0 -5
- package/dist/esm/deprecated/components/Select/index.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/index.js +0 -5
- package/dist/esm/deprecated/components/Select/index.js.map +0 -1
- package/dist/esm/deprecated/components/Select/selectConstants.d.ts +0 -29
- package/dist/esm/deprecated/components/Select/selectConstants.d.ts.map +0 -1
- package/dist/esm/deprecated/components/Select/selectConstants.js +0 -23
- package/dist/esm/deprecated/components/Select/selectConstants.js.map +0 -1
- package/dist/esm/helpers/favorites.d.ts +0 -19
- package/dist/esm/helpers/favorites.d.ts.map +0 -1
- package/dist/esm/helpers/favorites.js +0 -64
- package/dist/esm/helpers/favorites.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts +0 -60
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.js +0 -102
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncher.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts +0 -7
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js +0 -21
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts +0 -5
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js +0 -10
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +0 -4
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js +0 -13
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts +0 -9
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js +0 -16
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +0 -31
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js +0 -26
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts +0 -6
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js +0 -7
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +0 -4
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js +0 -15
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts +0 -9
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js +0 -14
- package/dist/js/deprecated/components/ApplicationLauncher/ApplicationLauncherText.js.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/index.d.ts +0 -10
- package/dist/js/deprecated/components/ApplicationLauncher/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/ApplicationLauncher/index.js +0 -13
- package/dist/js/deprecated/components/ApplicationLauncher/index.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.d.ts +0 -75
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.js +0 -76
- package/dist/js/deprecated/components/ContextSelector/ContextSelector.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts +0 -9
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.js +0 -14
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorFooter.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.d.ts +0 -26
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.js +0 -43
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorItem.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts +0 -21
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.js +0 -36
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorMenuList.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts +0 -39
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.js +0 -77
- package/dist/js/deprecated/components/ContextSelector/ContextSelectorToggle.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.d.ts +0 -5
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.js +0 -10
- package/dist/js/deprecated/components/ContextSelector/contextSelectorConstants.js.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/index.d.ts +0 -4
- package/dist/js/deprecated/components/ContextSelector/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/ContextSelector/index.js +0 -7
- package/dist/js/deprecated/components/ContextSelector/index.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.d.ts +0 -35
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.js +0 -24
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts +0 -66
- package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Dropdown.js +0 -20
- package/dist/js/deprecated/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts +0 -11
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.js +0 -19
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts +0 -52
- package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownItem.js +0 -19
- package/dist/js/deprecated/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.d.ts +0 -53
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.js +0 -134
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.d.ts +0 -14
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.js +0 -20
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.d.ts +0 -50
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.js +0 -36
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.d.ts +0 -22
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.js +0 -21
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts +0 -45
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.js +0 -54
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.d.ts +0 -20
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.js +0 -102
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.d.ts +0 -67
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.js +0 -152
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/KebabToggle.d.ts +0 -32
- package/dist/js/deprecated/components/Dropdown/KebabToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/KebabToggle.js +0 -20
- package/dist/js/deprecated/components/Dropdown/KebabToggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Toggle.d.ts +0 -51
- package/dist/js/deprecated/components/Dropdown/Toggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/Toggle.js +0 -96
- package/dist/js/deprecated/components/Dropdown/Toggle.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.d.ts +0 -41
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.js +0 -39
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.js.map +0 -1
- package/dist/js/deprecated/components/Dropdown/index.d.ts +0 -13
- package/dist/js/deprecated/components/Dropdown/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/Dropdown/index.js +0 -16
- package/dist/js/deprecated/components/Dropdown/index.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.d.ts +0 -48
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js +0 -44
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts +0 -17
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js +0 -19
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts +0 -15
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js +0 -19
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItemGroup.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts +0 -4
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.js +0 -13
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuSeparator.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts +0 -28
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js +0 -19
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts +0 -37
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +0 -67
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/index.d.ts +0 -7
- package/dist/js/deprecated/components/OptionsMenu/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/OptionsMenu/index.js +0 -10
- package/dist/js/deprecated/components/OptionsMenu/index.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeader.d.ts +0 -29
- package/dist/js/deprecated/components/PageHeader/PageHeader.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeader.js +0 -38
- package/dist/js/deprecated/components/PageHeader/PageHeader.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.d.ts +0 -9
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.js +0 -14
- package/dist/js/deprecated/components/PageHeader/PageHeaderTools.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts +0 -18
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.js +0 -17
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsGroup.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts +0 -20
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js +0 -17
- package/dist/js/deprecated/components/PageHeader/PageHeaderToolsItem.js.map +0 -1
- package/dist/js/deprecated/components/PageHeader/index.d.ts +0 -5
- package/dist/js/deprecated/components/PageHeader/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/PageHeader/index.js +0 -8
- package/dist/js/deprecated/components/PageHeader/index.js.map +0 -1
- package/dist/js/deprecated/components/Select/Select.d.ts +0 -200
- package/dist/js/deprecated/components/Select/Select.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/Select.js +0 -944
- package/dist/js/deprecated/components/Select/Select.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectGroup.d.ts +0 -13
- package/dist/js/deprecated/components/Select/SelectGroup.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectGroup.js +0 -17
- package/dist/js/deprecated/components/Select/SelectGroup.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectMenu.d.ts +0 -47
- package/dist/js/deprecated/components/Select/SelectMenu.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectMenu.js +0 -167
- package/dist/js/deprecated/components/Select/SelectMenu.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectOption.d.ts +0 -74
- package/dist/js/deprecated/components/Select/SelectOption.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectOption.js +0 -200
- package/dist/js/deprecated/components/Select/SelectOption.js.map +0 -1
- package/dist/js/deprecated/components/Select/SelectToggle.d.ts +0 -57
- package/dist/js/deprecated/components/Select/SelectToggle.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/SelectToggle.js +0 -211
- package/dist/js/deprecated/components/Select/SelectToggle.js.map +0 -1
- package/dist/js/deprecated/components/Select/index.d.ts +0 -5
- package/dist/js/deprecated/components/Select/index.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/index.js +0 -8
- package/dist/js/deprecated/components/Select/index.js.map +0 -1
- package/dist/js/deprecated/components/Select/selectConstants.d.ts +0 -29
- package/dist/js/deprecated/components/Select/selectConstants.d.ts.map +0 -1
- package/dist/js/deprecated/components/Select/selectConstants.js +0 -27
- package/dist/js/deprecated/components/Select/selectConstants.js.map +0 -1
- package/dist/js/helpers/favorites.d.ts +0 -19
- package/dist/js/helpers/favorites.d.ts.map +0 -1
- package/dist/js/helpers/favorites.js +0 -70
- package/dist/js/helpers/favorites.js.map +0 -1
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncher.tsx +0 -208
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherContent.tsx +0 -34
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherContext.ts +0 -6
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherGroup.tsx +0 -8
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherIcon.tsx +0 -22
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherItem.tsx +0 -94
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherItemContext.ts +0 -3
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherSeparator.tsx +0 -9
- package/src/deprecated/components/ApplicationLauncher/ApplicationLauncherText.tsx +0 -21
- package/src/deprecated/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +0 -72
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherContent.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherGroup.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherIcon.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +0 -16
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherText.test.tsx +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherContent.test.tsx.snap +0 -9
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherGroup.test.tsx.snap +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherIcon.test.tsx.snap +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +0 -14
- package/src/deprecated/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherText.test.tsx.snap +0 -13
- package/src/deprecated/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +0 -597
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncher.md +0 -79
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherAlignRight.tsx +0 -33
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherAlignTop.tsx +0 -31
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherBasic.tsx +0 -23
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherCustomIcon.tsx +0 -32
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherDisabled.tsx +0 -25
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherDocumentBody.tsx +0 -31
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherFavoritesAndSearch.tsx +0 -108
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherRouterLink.tsx +0 -56
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherSectionsAndIcons.tsx +0 -47
- package/src/deprecated/components/ApplicationLauncher/examples/ApplicationLauncherTooltip.tsx +0 -35
- package/src/deprecated/components/ApplicationLauncher/index.ts +0 -9
- package/src/deprecated/components/ContextSelector/ContextSelector.tsx +0 -231
- package/src/deprecated/components/ContextSelector/ContextSelectorFooter.tsx +0 -21
- package/src/deprecated/components/ContextSelector/ContextSelectorItem.tsx +0 -78
- package/src/deprecated/components/ContextSelector/ContextSelectorMenuList.tsx +0 -51
- package/src/deprecated/components/ContextSelector/ContextSelectorToggle.tsx +0 -132
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelector.test.tsx +0 -54
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorFooter.test.tsx +0 -8
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorItem.test.tsx +0 -38
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorMenuList.test.tsx +0 -22
- package/src/deprecated/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +0 -60
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +0 -411
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorFooter.test.tsx.snap +0 -11
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorItem.test.tsx.snap +0 -30
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorMenuList.test.tsx.snap +0 -123
- package/src/deprecated/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +0 -161
- package/src/deprecated/components/ContextSelector/contextSelectorConstants.tsx +0 -6
- package/src/deprecated/components/ContextSelector/examples/ContextSelector.md +0 -25
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorBasic.tsx +0 -85
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorPlainText.tsx +0 -85
- package/src/deprecated/components/ContextSelector/examples/ContextSelectorWithFooter.tsx +0 -92
- package/src/deprecated/components/ContextSelector/index.ts +0 -3
- package/src/deprecated/components/Dropdown/BadgeToggle.tsx +0 -83
- package/src/deprecated/components/Dropdown/Dropdown.tsx +0 -115
- package/src/deprecated/components/Dropdown/DropdownGroup.tsx +0 -36
- package/src/deprecated/components/Dropdown/DropdownItem.tsx +0 -113
- package/src/deprecated/components/Dropdown/DropdownMenu.tsx +0 -254
- package/src/deprecated/components/Dropdown/DropdownSeparator.tsx +0 -42
- package/src/deprecated/components/Dropdown/DropdownToggle.tsx +0 -138
- package/src/deprecated/components/Dropdown/DropdownToggleAction.tsx +0 -46
- package/src/deprecated/components/Dropdown/DropdownToggleCheckbox.tsx +0 -130
- package/src/deprecated/components/Dropdown/DropdownWithContext.tsx +0 -193
- package/src/deprecated/components/Dropdown/InternalDropdownItem.tsx +0 -292
- package/src/deprecated/components/Dropdown/KebabToggle.tsx +0 -73
- package/src/deprecated/components/Dropdown/Toggle.tsx +0 -183
- package/src/deprecated/components/Dropdown/__tests__/Dropdown.test.tsx +0 -278
- package/src/deprecated/components/Dropdown/__tests__/DropdownGroup.test.tsx +0 -10
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggle.test.tsx +0 -223
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggleAction.test.tsx +0 -31
- package/src/deprecated/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +0 -65
- package/src/deprecated/components/Dropdown/__tests__/Generated/DropdownItem.test.tsx +0 -31
- package/src/deprecated/components/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +0 -23
- package/src/deprecated/components/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +0 -17
- package/src/deprecated/components/Dropdown/__tests__/Generated/KebabToggle.test.tsx +0 -28
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +0 -9
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +0 -16
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +0 -14
- package/src/deprecated/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +0 -27
- package/src/deprecated/components/Dropdown/__tests__/InternalDropdownItem.test.tsx +0 -83
- package/src/deprecated/components/Dropdown/__tests__/Toggle.test.tsx +0 -13
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +0 -978
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +0 -21
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +0 -350
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -33
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -149
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +0 -178
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +0 -64
- package/src/deprecated/components/Dropdown/dropdownConstants.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/Dropdown.md +0 -213
- package/src/deprecated/components/Dropdown/examples/DropdownAlignmentOnBreakpoints.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownAppendBodyVsParent.tsx +0 -84
- package/src/deprecated/components/Dropdown/examples/DropdownBadge.tsx +0 -46
- package/src/deprecated/components/Dropdown/examples/DropdownBasic.tsx +0 -59
- package/src/deprecated/components/Dropdown/examples/DropdownBasicPanel.tsx +0 -34
- package/src/deprecated/components/Dropdown/examples/DropdownDescriptions.tsx +0 -55
- package/src/deprecated/components/Dropdown/examples/DropdownDirectionUp.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownDisabled.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownGroups.tsx +0 -55
- package/src/deprecated/components/Dropdown/examples/DropdownIconOnly.tsx +0 -59
- package/src/deprecated/components/Dropdown/examples/DropdownImageAndText.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownInitialSelection.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownKebab.tsx +0 -54
- package/src/deprecated/components/Dropdown/examples/DropdownPlainTextToggle.tsx +0 -59
- package/src/deprecated/components/Dropdown/examples/DropdownPositionRight.tsx +0 -64
- package/src/deprecated/components/Dropdown/examples/DropdownPrimaryToggle.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownRouterLink.tsx +0 -36
- package/src/deprecated/components/Dropdown/examples/DropdownSecondaryToggle.tsx +0 -57
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButton.tsx +0 -67
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonAction.tsx +0 -105
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonActionPrimary.tsx +0 -107
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonActionSecondary.tsx +0 -107
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonDisabled.tsx +0 -73
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonProgressCheckbox.tsx +0 -140
- package/src/deprecated/components/Dropdown/examples/DropdownSplitButtonText.tsx +0 -69
- package/src/deprecated/components/Dropdown/index.ts +0 -12
- package/src/deprecated/components/OptionsMenu/OptionsMenu.tsx +0 -99
- package/src/deprecated/components/OptionsMenu/OptionsMenuItem.tsx +0 -47
- package/src/deprecated/components/OptionsMenu/OptionsMenuItemGroup.tsx +0 -35
- package/src/deprecated/components/OptionsMenu/OptionsMenuSeparator.tsx +0 -8
- package/src/deprecated/components/OptionsMenu/OptionsMenuToggle.tsx +0 -67
- package/src/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.tsx +0 -146
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +0 -24
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuItemGroup.test.tsx +0 -21
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuSeparator.test.tsx +0 -13
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuToggle.test.tsx +0 -28
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuToggleWithText.test.tsx +0 -28
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItem.test.tsx.snap +0 -24
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +0 -18
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuSeparator.test.tsx.snap +0 -10
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +0 -42
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggleWithText.test.tsx.snap +0 -32
- package/src/deprecated/components/OptionsMenu/__tests__/OptionsMenu.test.tsx +0 -134
- package/src/deprecated/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +0 -681
- package/src/deprecated/components/OptionsMenu/examples/OptionsMenu.md +0 -574
- package/src/deprecated/components/OptionsMenu/index.ts +0 -6
- package/src/deprecated/components/PageHeader/PageHeader.tsx +0 -103
- package/src/deprecated/components/PageHeader/PageHeaderTools.tsx +0 -21
- package/src/deprecated/components/PageHeader/PageHeaderToolsGroup.tsx +0 -43
- package/src/deprecated/components/PageHeader/PageHeaderToolsItem.tsx +0 -47
- package/src/deprecated/components/PageHeader/examples/PageHeader.md +0 -19
- package/src/deprecated/components/PageHeader/examples/PageVerticalNavUsingPageHeaderComponent.tsx +0 -42
- package/src/deprecated/components/PageHeader/index.ts +0 -4
- package/src/deprecated/components/PageHeader/tests/PageHeader.test.tsx +0 -30
- package/src/deprecated/components/PageHeader/tests/PageHeaderTools.test.tsx +0 -17
- package/src/deprecated/components/PageHeader/tests/PageHeaderToolsGroup.test.tsx +0 -17
- package/src/deprecated/components/PageHeader/tests/PageHeaderToolsItem.test.tsx +0 -15
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeader.test.tsx.snap +0 -59
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderTools.test.tsx.snap +0 -13
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderToolsGroup.test.tsx.snap +0 -13
- package/src/deprecated/components/PageHeader/tests/__snapshots__/PageHeaderToolsItem.test.tsx.snap +0 -14
- package/src/deprecated/components/Select/Select.tsx +0 -1495
- package/src/deprecated/components/Select/SelectGroup.tsx +0 -36
- package/src/deprecated/components/Select/SelectMenu.tsx +0 -276
- package/src/deprecated/components/Select/SelectOption.tsx +0 -463
- package/src/deprecated/components/Select/SelectToggle.tsx +0 -367
- package/src/deprecated/components/Select/__tests__/Select.test.tsx +0 -589
- package/src/deprecated/components/Select/__tests__/SelectGroup.test.tsx +0 -28
- package/src/deprecated/components/Select/__tests__/SelectOption.test.tsx +0 -246
- package/src/deprecated/components/Select/__tests__/SelectToggle.test.tsx +0 -92
- package/src/deprecated/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +0 -2415
- package/src/deprecated/components/Select/__tests__/__snapshots__/SelectGroup.test.tsx.snap +0 -24
- package/src/deprecated/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +0 -234
- package/src/deprecated/components/Select/__tests__/__snapshots__/SelectToggle.test.tsx.snap +0 -34
- package/src/deprecated/components/Select/examples/Select.md +0 -2938
- package/src/deprecated/components/Select/index.ts +0 -4
- package/src/deprecated/components/Select/selectConstants.tsx +0 -39
- package/src/helpers/favorites.ts +0 -81
|
@@ -1,944 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Select = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const select_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Select/select"));
|
|
7
|
-
const badge_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Badge/badge"));
|
|
8
|
-
const form_control_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/FormControl/form-control"));
|
|
9
|
-
const button_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Button/button"));
|
|
10
|
-
const react_styles_1 = require("@patternfly/react-styles");
|
|
11
|
-
const times_circle_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/times-circle-icon'));
|
|
12
|
-
const check_circle_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/check-circle-icon'));
|
|
13
|
-
const exclamation_triangle_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon'));
|
|
14
|
-
const exclamation_circle_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/exclamation-circle-icon'));
|
|
15
|
-
const SelectMenu_1 = require("./SelectMenu");
|
|
16
|
-
const SelectOption_1 = require("./SelectOption");
|
|
17
|
-
const SelectGroup_1 = require("./SelectGroup");
|
|
18
|
-
const SelectToggle_1 = require("./SelectToggle");
|
|
19
|
-
const selectConstants_1 = require("./selectConstants");
|
|
20
|
-
const Chip_1 = require("../Chip");
|
|
21
|
-
const Chip_2 = require("../Chip");
|
|
22
|
-
const Spinner_1 = require("../../../components/Spinner");
|
|
23
|
-
const helpers_1 = require("../../../helpers");
|
|
24
|
-
const constants_1 = require("../../../helpers/constants");
|
|
25
|
-
const Divider_1 = require("../../../components/Divider");
|
|
26
|
-
const Popper_1 = require("../../../helpers/Popper/Popper");
|
|
27
|
-
const favorites_1 = require("../../../helpers/favorites");
|
|
28
|
-
const constants_2 = require("../../../helpers/constants");
|
|
29
|
-
const util_1 = require("../../../helpers/util");
|
|
30
|
-
const TextInput_1 = require("../../../components/TextInput");
|
|
31
|
-
// seed for the aria-labelledby ID
|
|
32
|
-
let currentId = 0;
|
|
33
|
-
class Select extends React.Component {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments);
|
|
36
|
-
this.parentRef = React.createRef();
|
|
37
|
-
this.menuComponentRef = React.createRef();
|
|
38
|
-
this.filterRef = React.createRef();
|
|
39
|
-
this.clearRef = React.createRef();
|
|
40
|
-
this.inputRef = React.createRef();
|
|
41
|
-
this.refCollection = [[]];
|
|
42
|
-
this.optionContainerRefCollection = [];
|
|
43
|
-
this.footerRef = React.createRef();
|
|
44
|
-
this.state = {
|
|
45
|
-
focusFirstOption: false,
|
|
46
|
-
typeaheadInputValue: null,
|
|
47
|
-
typeaheadFilteredChildren: React.Children.toArray(this.props.children),
|
|
48
|
-
favoritesGroup: [],
|
|
49
|
-
typeaheadCurrIndex: -1,
|
|
50
|
-
typeaheadStoredIndex: -1,
|
|
51
|
-
creatableValue: '',
|
|
52
|
-
tabbedIntoFavoritesMenu: false,
|
|
53
|
-
ouiaStateId: (0, helpers_1.getDefaultOUIAId)(Select.displayName, this.props.variant),
|
|
54
|
-
viewMoreNextIndex: -1
|
|
55
|
-
};
|
|
56
|
-
this.getTypeaheadActiveChild = (typeaheadCurrIndex) => this.refCollection[typeaheadCurrIndex] ? this.refCollection[typeaheadCurrIndex][0] : null;
|
|
57
|
-
this.componentDidUpdate = (prevProps, prevState) => {
|
|
58
|
-
if (this.props.hasInlineFilter) {
|
|
59
|
-
this.refCollection[0][0] = this.filterRef.current;
|
|
60
|
-
}
|
|
61
|
-
// Move focus to top of the menu if state.focusFirstOption was updated to true and the menu does not have custom content
|
|
62
|
-
if (!prevState.focusFirstOption && this.state.focusFirstOption && !this.props.customContent) {
|
|
63
|
-
const firstRef = this.refCollection.find((ref) =>
|
|
64
|
-
// If a select option is disabled then ref[0] will be undefined, so we want to return
|
|
65
|
-
// the first ref that both a) is not null and b) is not disabled.
|
|
66
|
-
ref !== null && ref[0]);
|
|
67
|
-
if (firstRef && firstRef[0]) {
|
|
68
|
-
firstRef[0].focus();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
else if (
|
|
72
|
-
// if viewMoreNextIndex is not -1, view more was clicked, set focus on first newly loaded item
|
|
73
|
-
this.state.viewMoreNextIndex !== -1 &&
|
|
74
|
-
this.refCollection.length > this.state.viewMoreNextIndex &&
|
|
75
|
-
this.props.loadingVariant !== 'spinner' &&
|
|
76
|
-
this.refCollection[this.state.viewMoreNextIndex][0] &&
|
|
77
|
-
this.props.variant !== 'typeahead' && // do not hard focus newly added items for typeahead variants
|
|
78
|
-
this.props.variant !== 'typeaheadmulti') {
|
|
79
|
-
this.refCollection[this.state.viewMoreNextIndex][0].focus();
|
|
80
|
-
this.setState({ viewMoreNextIndex: -1 });
|
|
81
|
-
}
|
|
82
|
-
const checkUpdatedChildren = (prevChildren, currChildren) => Array.from(prevChildren).some((prevChild, index) => {
|
|
83
|
-
const prevChildProps = prevChild.props;
|
|
84
|
-
const currChild = currChildren[index];
|
|
85
|
-
const { props: currChildProps } = currChild;
|
|
86
|
-
if (prevChildProps && currChildProps) {
|
|
87
|
-
return (prevChildProps.value !== currChildProps.value ||
|
|
88
|
-
prevChildProps.label !== currChildProps.label ||
|
|
89
|
-
prevChildProps.isDisabled !== currChildProps.isDisabled ||
|
|
90
|
-
prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return prevChild !== currChild;
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
|
|
97
|
-
checkUpdatedChildren(prevProps.children, this.props.children) ||
|
|
98
|
-
(this.props.isGrouped &&
|
|
99
|
-
Array.from(prevProps.children).some((prevChild, index) => prevChild.type === SelectGroup_1.SelectGroup &&
|
|
100
|
-
prevChild.props.children &&
|
|
101
|
-
this.props.children[index].props.children &&
|
|
102
|
-
(prevChild.props.children.length !== this.props.children[index].props.children.length ||
|
|
103
|
-
checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
|
|
104
|
-
if (hasUpdatedChildren) {
|
|
105
|
-
this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
|
|
106
|
-
}
|
|
107
|
-
// for menus with favorites,
|
|
108
|
-
// if the number of favorites or typeahead filtered children has changed, the generated
|
|
109
|
-
// list of favorites needs to be updated
|
|
110
|
-
if (this.props.onFavorite &&
|
|
111
|
-
(this.props.favorites.length !== prevProps.favorites.length ||
|
|
112
|
-
this.state.typeaheadFilteredChildren !== prevState.typeaheadFilteredChildren)) {
|
|
113
|
-
const tempRenderableChildren = this.props.variant === 'typeahead' || this.props.variant === 'typeaheadmulti'
|
|
114
|
-
? this.state.typeaheadFilteredChildren
|
|
115
|
-
: this.props.children;
|
|
116
|
-
const renderableFavorites = (0, favorites_1.createRenderableFavorites)(tempRenderableChildren, this.props.isGrouped, this.props.favorites);
|
|
117
|
-
const favoritesGroup = renderableFavorites.length
|
|
118
|
-
? [
|
|
119
|
-
React.createElement(SelectGroup_1.SelectGroup, { key: "favorites", label: this.props.favoritesLabel }, renderableFavorites),
|
|
120
|
-
React.createElement(Divider_1.Divider, { key: "favorites-group-divider" })
|
|
121
|
-
]
|
|
122
|
-
: [];
|
|
123
|
-
this.setState({ favoritesGroup });
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
this.onEnter = () => {
|
|
127
|
-
this.setState({ focusFirstOption: true });
|
|
128
|
-
};
|
|
129
|
-
this.onToggle = (e, isExpanded) => {
|
|
130
|
-
const { isInputValuePersisted, onSelect, onToggle, hasInlineFilter } = this.props;
|
|
131
|
-
if (!isExpanded && isInputValuePersisted && onSelect) {
|
|
132
|
-
onSelect(undefined, this.inputRef.current ? this.inputRef.current.value : '');
|
|
133
|
-
}
|
|
134
|
-
if (isExpanded && hasInlineFilter) {
|
|
135
|
-
this.setState({
|
|
136
|
-
focusFirstOption: true
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
onToggle(e, isExpanded);
|
|
140
|
-
};
|
|
141
|
-
this.onClose = () => {
|
|
142
|
-
const { isInputFilterPersisted } = this.props;
|
|
143
|
-
this.setState(Object.assign(Object.assign({ focusFirstOption: false, typeaheadInputValue: null }, (!isInputFilterPersisted && {
|
|
144
|
-
typeaheadFilteredChildren: React.Children.toArray(this.props.children)
|
|
145
|
-
})), { typeaheadCurrIndex: -1, tabbedIntoFavoritesMenu: false, viewMoreNextIndex: -1 }));
|
|
146
|
-
};
|
|
147
|
-
this.onChange = (e) => {
|
|
148
|
-
if (e.target.value.toString() !== '' && !this.props.isOpen) {
|
|
149
|
-
this.onToggle(e, true);
|
|
150
|
-
}
|
|
151
|
-
if (this.props.onTypeaheadInputChanged) {
|
|
152
|
-
this.props.onTypeaheadInputChanged(e.target.value.toString());
|
|
153
|
-
}
|
|
154
|
-
this.setState({
|
|
155
|
-
typeaheadCurrIndex: -1,
|
|
156
|
-
typeaheadInputValue: e.target.value,
|
|
157
|
-
creatableValue: e.target.value
|
|
158
|
-
});
|
|
159
|
-
this.updateTypeAheadFilteredChildren(e.target.value.toString(), e);
|
|
160
|
-
this.refCollection = [[]];
|
|
161
|
-
};
|
|
162
|
-
this.updateTypeAheadFilteredChildren = (typeaheadInputValue, e) => {
|
|
163
|
-
let typeaheadFilteredChildren;
|
|
164
|
-
const { onFilter, isCreatable, isCreateOptionOnTop, onCreateOption, createText, noResultsFoundText, children, isGrouped, isCreateSelectOptionObject, loadingVariant } = this.props;
|
|
165
|
-
if (onFilter) {
|
|
166
|
-
/* The updateTypeAheadFilteredChildren callback is not only called on input changes but also when the children change.
|
|
167
|
-
* In this case the e is null but we can get the typeaheadInputValue from the state.
|
|
168
|
-
*/
|
|
169
|
-
typeaheadFilteredChildren = onFilter(e, e ? e.target.value : typeaheadInputValue) || children;
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
let input;
|
|
173
|
-
try {
|
|
174
|
-
input = new RegExp(typeaheadInputValue.toString(), 'i');
|
|
175
|
-
}
|
|
176
|
-
catch (err) {
|
|
177
|
-
input = new RegExp(typeaheadInputValue.toString().replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'i');
|
|
178
|
-
}
|
|
179
|
-
const childrenArray = React.Children.toArray(children);
|
|
180
|
-
if (isGrouped) {
|
|
181
|
-
const childFilter = (child) => child.props.value &&
|
|
182
|
-
child.props.value.toString &&
|
|
183
|
-
this.getDisplay(child.props.value.toString(), 'text').search(input) === 0;
|
|
184
|
-
typeaheadFilteredChildren =
|
|
185
|
-
typeaheadInputValue.toString() !== ''
|
|
186
|
-
? React.Children.map(children, (group) => {
|
|
187
|
-
if (React.isValidElement(group) &&
|
|
188
|
-
group.type === SelectGroup_1.SelectGroup) {
|
|
189
|
-
const filteredGroupChildren = React.Children.toArray(group.props.children).filter(childFilter);
|
|
190
|
-
if (filteredGroupChildren.length > 0) {
|
|
191
|
-
return React.cloneElement(group, {
|
|
192
|
-
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
193
|
-
children: filteredGroupChildren
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return React.Children.toArray(group).filter(childFilter);
|
|
199
|
-
}
|
|
200
|
-
})
|
|
201
|
-
: childrenArray;
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
typeaheadFilteredChildren =
|
|
205
|
-
typeaheadInputValue.toString() !== ''
|
|
206
|
-
? childrenArray.filter((child) => {
|
|
207
|
-
const valueToCheck = child.props.value;
|
|
208
|
-
// Dividers don't have value and should not be filtered
|
|
209
|
-
if (!valueToCheck) {
|
|
210
|
-
return true;
|
|
211
|
-
}
|
|
212
|
-
const isSelectOptionObject = typeof valueToCheck !== 'string' &&
|
|
213
|
-
valueToCheck.toString &&
|
|
214
|
-
valueToCheck.compareTo;
|
|
215
|
-
// View more option should be returned as not a match
|
|
216
|
-
if (loadingVariant !== 'spinner' && (loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.text) === valueToCheck) {
|
|
217
|
-
return true;
|
|
218
|
-
}
|
|
219
|
-
// spinner should be returned as not a match
|
|
220
|
-
if (loadingVariant === 'spinner' && valueToCheck === 'loading') {
|
|
221
|
-
return true;
|
|
222
|
-
}
|
|
223
|
-
if (isSelectOptionObject) {
|
|
224
|
-
return valueToCheck.compareTo(typeaheadInputValue);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.getDisplay(child.props.value.toString(), 'text').search(input) === 0;
|
|
228
|
-
}
|
|
229
|
-
})
|
|
230
|
-
: childrenArray;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (!typeaheadFilteredChildren) {
|
|
234
|
-
typeaheadFilteredChildren = [];
|
|
235
|
-
}
|
|
236
|
-
if (typeaheadFilteredChildren.length === 0) {
|
|
237
|
-
!isCreatable &&
|
|
238
|
-
typeaheadFilteredChildren.push(React.createElement(SelectOption_1.SelectOption, { isDisabled: true, key: "no-results", value: noResultsFoundText, isNoResultsOption: true }));
|
|
239
|
-
}
|
|
240
|
-
if (isCreatable && typeaheadInputValue !== '') {
|
|
241
|
-
const newValue = typeaheadInputValue;
|
|
242
|
-
if (!typeaheadFilteredChildren.find((i) => i.props.value && i.props.value.toString().toLowerCase() === newValue.toString().toLowerCase())) {
|
|
243
|
-
const newOptionValue = isCreateSelectOptionObject
|
|
244
|
-
? {
|
|
245
|
-
toString: () => newValue,
|
|
246
|
-
compareTo: (value) => this.toString().toLowerCase().includes(value.toString().toLowerCase())
|
|
247
|
-
}
|
|
248
|
-
: newValue;
|
|
249
|
-
const createSelectOption = (React.createElement(SelectOption_1.SelectOption, { key: `create ${newValue}`, value: newOptionValue, onClick: () => onCreateOption && onCreateOption(newValue) },
|
|
250
|
-
createText,
|
|
251
|
-
" \"",
|
|
252
|
-
newValue,
|
|
253
|
-
"\""));
|
|
254
|
-
if (isCreateOptionOnTop) {
|
|
255
|
-
typeaheadFilteredChildren.unshift(createSelectOption);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
typeaheadFilteredChildren.push(createSelectOption);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
this.setState({
|
|
263
|
-
typeaheadFilteredChildren
|
|
264
|
-
});
|
|
265
|
-
};
|
|
266
|
-
this.onClick = (e) => {
|
|
267
|
-
if (!this.props.isOpen) {
|
|
268
|
-
this.onToggle(e, true);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
this.clearSelection = (_e) => {
|
|
272
|
-
this.setState({
|
|
273
|
-
typeaheadInputValue: null,
|
|
274
|
-
typeaheadFilteredChildren: React.Children.toArray(this.props.children),
|
|
275
|
-
typeaheadCurrIndex: -1
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
this.sendRef = (optionRef, favoriteRef, optionContainerRef, index) => {
|
|
279
|
-
this.refCollection[index] = [optionRef, favoriteRef];
|
|
280
|
-
this.optionContainerRefCollection[index] = optionContainerRef;
|
|
281
|
-
};
|
|
282
|
-
this.handleMenuKeys = (index, innerIndex, position) => {
|
|
283
|
-
(0, helpers_1.keyHandler)(index, innerIndex, position, this.refCollection, this.refCollection);
|
|
284
|
-
if (this.props.variant === selectConstants_1.SelectVariant.typeahead || this.props.variant === selectConstants_1.SelectVariant.typeaheadMulti) {
|
|
285
|
-
if (position !== 'tab') {
|
|
286
|
-
this.handleTypeaheadKeys(position);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
this.moveFocus = (nextIndex, updateCurrentIndex = true) => {
|
|
291
|
-
const { isCreatable, createText } = this.props;
|
|
292
|
-
const hasDescriptionElm = Boolean(this.refCollection[nextIndex][0] && this.refCollection[nextIndex][0].classList.contains('pf-m-description'));
|
|
293
|
-
const isLoad = Boolean(this.refCollection[nextIndex][0] && this.refCollection[nextIndex][0].classList.contains('pf-m-load'));
|
|
294
|
-
const optionTextElm = hasDescriptionElm
|
|
295
|
-
? this.refCollection[nextIndex][0].firstElementChild
|
|
296
|
-
: this.refCollection[nextIndex][0];
|
|
297
|
-
let typeaheadInputValue = '';
|
|
298
|
-
if (isCreatable && optionTextElm.textContent.includes(createText)) {
|
|
299
|
-
typeaheadInputValue = this.state.creatableValue;
|
|
300
|
-
}
|
|
301
|
-
else if (optionTextElm && !isLoad) {
|
|
302
|
-
// !isLoad prevents the view more button text from appearing the typeahead input
|
|
303
|
-
typeaheadInputValue = optionTextElm.textContent;
|
|
304
|
-
}
|
|
305
|
-
this.setState((prevState) => ({
|
|
306
|
-
typeaheadCurrIndex: updateCurrentIndex ? nextIndex : prevState.typeaheadCurrIndex,
|
|
307
|
-
typeaheadStoredIndex: nextIndex,
|
|
308
|
-
typeaheadInputValue
|
|
309
|
-
}));
|
|
310
|
-
};
|
|
311
|
-
this.switchFocusToFavoriteMenu = () => {
|
|
312
|
-
const { typeaheadCurrIndex, typeaheadStoredIndex } = this.state;
|
|
313
|
-
let indexForFocus = 0;
|
|
314
|
-
if (typeaheadCurrIndex !== -1) {
|
|
315
|
-
indexForFocus = typeaheadCurrIndex;
|
|
316
|
-
}
|
|
317
|
-
else if (typeaheadStoredIndex !== -1) {
|
|
318
|
-
indexForFocus = typeaheadStoredIndex;
|
|
319
|
-
}
|
|
320
|
-
if (this.refCollection[indexForFocus] !== null && this.refCollection[indexForFocus][0] !== null) {
|
|
321
|
-
this.refCollection[indexForFocus][0].focus();
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
this.clearRef.current.focus();
|
|
325
|
-
}
|
|
326
|
-
this.setState({
|
|
327
|
-
tabbedIntoFavoritesMenu: true,
|
|
328
|
-
typeaheadCurrIndex: -1
|
|
329
|
-
});
|
|
330
|
-
};
|
|
331
|
-
this.moveFocusToLastMenuItem = () => {
|
|
332
|
-
const refCollectionLen = this.refCollection.length;
|
|
333
|
-
if (refCollectionLen > 0 &&
|
|
334
|
-
this.refCollection[refCollectionLen - 1] !== null &&
|
|
335
|
-
this.refCollection[refCollectionLen - 1][0] !== null) {
|
|
336
|
-
this.refCollection[refCollectionLen - 1][0].focus();
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
this.handleTypeaheadKeys = (position, shiftKey = false) => {
|
|
340
|
-
const { isOpen, onFavorite, isCreatable } = this.props;
|
|
341
|
-
const { typeaheadCurrIndex, tabbedIntoFavoritesMenu } = this.state;
|
|
342
|
-
const typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
|
|
343
|
-
if (isOpen) {
|
|
344
|
-
if (position === 'enter') {
|
|
345
|
-
if ((typeaheadCurrIndex !== -1 || (isCreatable && this.refCollection.length === 1)) && // do not allow selection without moving to an initial option unless it is a single create option
|
|
346
|
-
(typeaheadActiveChild || (this.refCollection[0] && this.refCollection[0][0]))) {
|
|
347
|
-
if (typeaheadActiveChild) {
|
|
348
|
-
if (!typeaheadActiveChild.classList.contains('pf-m-load')) {
|
|
349
|
-
const hasDescriptionElm = typeaheadActiveChild.childElementCount > 1;
|
|
350
|
-
const typeaheadActiveChildText = hasDescriptionElm
|
|
351
|
-
? typeaheadActiveChild.firstChild.textContent
|
|
352
|
-
: typeaheadActiveChild.textContent;
|
|
353
|
-
this.setState({
|
|
354
|
-
typeaheadInputValue: typeaheadActiveChildText
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
else if (this.refCollection[0] && this.refCollection[0][0]) {
|
|
359
|
-
this.setState({
|
|
360
|
-
typeaheadInputValue: this.refCollection[0][0].textContent
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
if (typeaheadActiveChild) {
|
|
364
|
-
typeaheadActiveChild.click();
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
this.refCollection[0][0].click();
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
else if (position === 'tab') {
|
|
372
|
-
if (onFavorite) {
|
|
373
|
-
// if the input has focus, tab to the first item or the last item that was previously focused.
|
|
374
|
-
if (this.inputRef.current === document.activeElement) {
|
|
375
|
-
// If shift is also clicked and there is a footer, tab to the last item in tabbable footer
|
|
376
|
-
if (this.props.footer && shiftKey) {
|
|
377
|
-
const tabbableItems = (0, util_1.findTabbableElements)(this.footerRef, selectConstants_1.SelectFooterTabbableItems);
|
|
378
|
-
if (tabbableItems.length > 0) {
|
|
379
|
-
if (tabbableItems[tabbableItems.length - 1]) {
|
|
380
|
-
tabbableItems[tabbableItems.length - 1].focus();
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
else {
|
|
385
|
-
this.switchFocusToFavoriteMenu();
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
else {
|
|
389
|
-
// focus is on menu or footer
|
|
390
|
-
if (this.props.footer) {
|
|
391
|
-
let tabbedIntoMenu = false;
|
|
392
|
-
const tabbableItems = (0, util_1.findTabbableElements)(this.footerRef, selectConstants_1.SelectFooterTabbableItems);
|
|
393
|
-
if (tabbableItems.length > 0) {
|
|
394
|
-
// if current element is not in footer, tab to first tabbable element in footer,
|
|
395
|
-
// if shift was clicked, tab to input since focus is on menu
|
|
396
|
-
const currentElementIndex = tabbableItems.findIndex((item) => item === document.activeElement);
|
|
397
|
-
if (currentElementIndex === -1) {
|
|
398
|
-
if (shiftKey) {
|
|
399
|
-
// currently in menu, shift back to input
|
|
400
|
-
this.inputRef.current.focus();
|
|
401
|
-
}
|
|
402
|
-
else {
|
|
403
|
-
// currently in menu, tab to first tabbable item in footer
|
|
404
|
-
tabbableItems[0].focus();
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
// already in footer
|
|
409
|
-
if (shiftKey) {
|
|
410
|
-
// shift to previous item
|
|
411
|
-
if (currentElementIndex === 0) {
|
|
412
|
-
// on first footer item, shift back to menu
|
|
413
|
-
this.switchFocusToFavoriteMenu();
|
|
414
|
-
tabbedIntoMenu = true;
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
// shift to previous footer item
|
|
418
|
-
tabbableItems[currentElementIndex - 1].focus();
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
// tab to next tabbable item in footer or to input.
|
|
423
|
-
if (tabbableItems[currentElementIndex + 1]) {
|
|
424
|
-
tabbableItems[currentElementIndex + 1].focus();
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
this.inputRef.current.focus();
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
else {
|
|
433
|
-
// no tabbable items in footer, tab to input
|
|
434
|
-
this.inputRef.current.focus();
|
|
435
|
-
tabbedIntoMenu = false;
|
|
436
|
-
}
|
|
437
|
-
this.setState({ tabbedIntoFavoritesMenu: tabbedIntoMenu });
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
this.inputRef.current.focus();
|
|
441
|
-
this.setState({ tabbedIntoFavoritesMenu: false });
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
// Close if there is no footer
|
|
447
|
-
if (!this.props.footer) {
|
|
448
|
-
this.onToggle(null, false);
|
|
449
|
-
this.onClose();
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
// has footer
|
|
453
|
-
const tabbableItems = (0, util_1.findTabbableElements)(this.footerRef, selectConstants_1.SelectFooterTabbableItems);
|
|
454
|
-
const currentElementIndex = tabbableItems.findIndex((item) => item === document.activeElement);
|
|
455
|
-
if (this.inputRef.current === document.activeElement) {
|
|
456
|
-
if (shiftKey) {
|
|
457
|
-
// close toggle if shift key and tab on input
|
|
458
|
-
this.onToggle(null, false);
|
|
459
|
-
this.onClose();
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
// tab to first tabbable item in footer
|
|
463
|
-
if (tabbableItems[0]) {
|
|
464
|
-
tabbableItems[0].focus();
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
this.onToggle(null, false);
|
|
468
|
-
this.onClose();
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
// focus is in footer
|
|
474
|
-
if (shiftKey) {
|
|
475
|
-
if (currentElementIndex === 0) {
|
|
476
|
-
// shift tab back to input
|
|
477
|
-
this.inputRef.current.focus();
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
// shift to previous footer item
|
|
481
|
-
tabbableItems[currentElementIndex - 1].focus();
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
// tab to next footer item or close tab if last item
|
|
486
|
-
if (tabbableItems[currentElementIndex + 1]) {
|
|
487
|
-
tabbableItems[currentElementIndex + 1].focus();
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
// no next item, close toggle
|
|
491
|
-
this.onToggle(null, false);
|
|
492
|
-
this.inputRef.current.focus();
|
|
493
|
-
this.onClose();
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
else if (!tabbedIntoFavoritesMenu) {
|
|
501
|
-
if (this.refCollection[0][0] === null) {
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
let nextIndex;
|
|
505
|
-
if (typeaheadCurrIndex === -1 && position === 'down') {
|
|
506
|
-
nextIndex = 0;
|
|
507
|
-
}
|
|
508
|
-
else if (typeaheadCurrIndex === -1 && position === 'up') {
|
|
509
|
-
nextIndex = this.refCollection.length - 1;
|
|
510
|
-
}
|
|
511
|
-
else if (position !== 'left' && position !== 'right') {
|
|
512
|
-
nextIndex = (0, helpers_1.getNextIndex)(typeaheadCurrIndex, position, this.refCollection);
|
|
513
|
-
}
|
|
514
|
-
else {
|
|
515
|
-
nextIndex = typeaheadCurrIndex;
|
|
516
|
-
}
|
|
517
|
-
if (this.refCollection[nextIndex] === null) {
|
|
518
|
-
return;
|
|
519
|
-
}
|
|
520
|
-
this.moveFocus(nextIndex);
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
const nextIndex = this.refCollection.findIndex((ref) => ref !== undefined && (ref[0] === document.activeElement || ref[1] === document.activeElement));
|
|
524
|
-
this.moveFocus(nextIndex);
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
this.onClickTypeaheadToggleButton = () => {
|
|
529
|
-
if (this.inputRef && this.inputRef.current) {
|
|
530
|
-
this.inputRef.current.focus();
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
this.getDisplay = (value, type = 'node') => {
|
|
534
|
-
if (!value) {
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
const item = this.props.isGrouped
|
|
538
|
-
? React.Children.toArray(this.props.children)
|
|
539
|
-
.reduce((acc, curr) => [...acc, ...React.Children.toArray(curr.props.children)], [])
|
|
540
|
-
.find((child) => child.props.value.toString() === value.toString())
|
|
541
|
-
: React.Children.toArray(this.props.children).find((child) => child.props.value &&
|
|
542
|
-
child.props.value.toString() === value.toString());
|
|
543
|
-
if (item) {
|
|
544
|
-
if (item && item.props.children) {
|
|
545
|
-
if (type === 'node') {
|
|
546
|
-
return item.props.children;
|
|
547
|
-
}
|
|
548
|
-
return this.findText(item);
|
|
549
|
-
}
|
|
550
|
-
return item.props.value.toString();
|
|
551
|
-
}
|
|
552
|
-
return value.toString();
|
|
553
|
-
};
|
|
554
|
-
this.findText = (item) => {
|
|
555
|
-
if (typeof item === 'string') {
|
|
556
|
-
return item;
|
|
557
|
-
}
|
|
558
|
-
else if (!React.isValidElement(item)) {
|
|
559
|
-
return '';
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
const multi = [];
|
|
563
|
-
React.Children.toArray(item.props.children).forEach((child) => multi.push(this.findText(child)));
|
|
564
|
-
return multi.join('');
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
this.generateSelectedBadge = () => {
|
|
568
|
-
const { customBadgeText, selections } = this.props;
|
|
569
|
-
if (customBadgeText !== null) {
|
|
570
|
-
return customBadgeText;
|
|
571
|
-
}
|
|
572
|
-
if (Array.isArray(selections) && selections.length > 0) {
|
|
573
|
-
return selections.length;
|
|
574
|
-
}
|
|
575
|
-
return null;
|
|
576
|
-
};
|
|
577
|
-
this.setVieMoreNextIndex = () => {
|
|
578
|
-
this.setState({ viewMoreNextIndex: this.refCollection.length - 1 });
|
|
579
|
-
};
|
|
580
|
-
this.isLastOptionBeforeFooter = (index) => this.props.footer && index === this.refCollection.length - 1 ? true : false;
|
|
581
|
-
}
|
|
582
|
-
extendTypeaheadChildren(typeaheadCurrIndex, favoritesGroup) {
|
|
583
|
-
const { isGrouped, onFavorite, createText } = this.props;
|
|
584
|
-
const typeaheadChildren = favoritesGroup
|
|
585
|
-
? favoritesGroup.concat(this.state.typeaheadFilteredChildren)
|
|
586
|
-
: this.state.typeaheadFilteredChildren;
|
|
587
|
-
const activeElement = this.optionContainerRefCollection[typeaheadCurrIndex];
|
|
588
|
-
let typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
|
|
589
|
-
if (typeaheadActiveChild && typeaheadActiveChild.classList.contains('pf-m-description')) {
|
|
590
|
-
typeaheadActiveChild = typeaheadActiveChild.firstElementChild;
|
|
591
|
-
}
|
|
592
|
-
this.refCollection = [[]];
|
|
593
|
-
this.optionContainerRefCollection = [];
|
|
594
|
-
if (isGrouped) {
|
|
595
|
-
return React.Children.map(typeaheadChildren, (group) => {
|
|
596
|
-
if (group.type === Divider_1.Divider) {
|
|
597
|
-
return group;
|
|
598
|
-
}
|
|
599
|
-
else if (group.type === SelectGroup_1.SelectGroup && onFavorite) {
|
|
600
|
-
return React.cloneElement(group, {
|
|
601
|
-
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
602
|
-
children: React.Children.map(group.props.children, (child) => child.type === Divider_1.Divider
|
|
603
|
-
? child
|
|
604
|
-
: React.cloneElement(child, {
|
|
605
|
-
isFocused: activeElement &&
|
|
606
|
-
(activeElement.id === child.props.id ||
|
|
607
|
-
(this.props.isCreatable &&
|
|
608
|
-
typeaheadActiveChild.textContent ===
|
|
609
|
-
`${createText} "${group.props.value}"`))
|
|
610
|
-
}))
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
else if (group.type === SelectGroup_1.SelectGroup) {
|
|
614
|
-
return React.cloneElement(group, {
|
|
615
|
-
titleId: group.props.label && group.props.label.replace(/\W/g, '-'),
|
|
616
|
-
children: React.Children.map(group.props.children, (child) => child.type === Divider_1.Divider
|
|
617
|
-
? child
|
|
618
|
-
: React.cloneElement(child, {
|
|
619
|
-
isFocused: typeaheadActiveChild &&
|
|
620
|
-
(typeaheadActiveChild.textContent === child.props.value.toString() ||
|
|
621
|
-
(this.props.isCreatable &&
|
|
622
|
-
typeaheadActiveChild.textContent ===
|
|
623
|
-
`${createText} "${child.props.value}"`))
|
|
624
|
-
}))
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
// group has been filtered down to SelectOption
|
|
629
|
-
return React.cloneElement(group, {
|
|
630
|
-
isFocused: typeaheadActiveChild &&
|
|
631
|
-
(typeaheadActiveChild.textContent === group.props.value.toString() ||
|
|
632
|
-
(this.props.isCreatable && typeaheadActiveChild.textContent === `${createText} "${group.props.value}"`))
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
return typeaheadChildren.map((child, index) => {
|
|
638
|
-
const childElement = child;
|
|
639
|
-
return childElement.type.displayName === 'Divider'
|
|
640
|
-
? child
|
|
641
|
-
: React.cloneElement(child, {
|
|
642
|
-
isFocused: typeaheadActiveChild
|
|
643
|
-
? typeaheadActiveChild.textContent === child.props.value.toString() ||
|
|
644
|
-
(this.props.isCreatable &&
|
|
645
|
-
typeaheadActiveChild.textContent === `${createText} "${child.props.value}"`)
|
|
646
|
-
: index === typeaheadCurrIndex // fallback for view more + typeahead use cases, when the new expanded list is loaded and refCollection hasn't be updated yet
|
|
647
|
-
});
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
render() {
|
|
651
|
-
const _a = this.props, { children, chipGroupProps, chipGroupComponent, className, customContent, variant, direction, onSelect, onClear, onBlur, toggleId, toggleRef, isOpen, isGrouped, isPlain, isDisabled, hasPlaceholderStyle, validated, selections: selectionsProp, typeAheadAriaLabel, typeAheadAriaDescribedby, clearSelectionsAriaLabel, toggleAriaLabel, removeSelectionAriaLabel, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, placeholderText, width, maxHeight, toggleIcon, toggleIndicator, ouiaId, ouiaSafe, hasInlineFilter, isCheckboxSelectionBadgeHidden, inlineFilterPlaceholderText,
|
|
652
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
653
|
-
onFilter,
|
|
654
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
655
|
-
onTypeaheadInputChanged, onCreateOption, isCreatable, onToggle, createText, noResultsFoundText, customBadgeText, inputIdPrefix, inputAutoComplete,
|
|
656
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
657
|
-
isInputValuePersisted, isInputFilterPersisted,
|
|
658
|
-
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
659
|
-
menuAppendTo, favorites, onFavorite,
|
|
660
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
661
|
-
favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject, isCreateOptionOnTop, shouldResetOnSelect, isFlipEnabled, zIndex } = _a, props = tslib_1.__rest(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "onBlur", "toggleId", "toggleRef", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "typeAheadAriaDescribedby", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "toggleIndicator", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "inputAutoComplete", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject", "isCreateOptionOnTop", "shouldResetOnSelect", "isFlipEnabled", "zIndex"]);
|
|
662
|
-
const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
|
|
663
|
-
const selectToggleId = toggleId || `pf-select-toggle-id-${currentId++}`;
|
|
664
|
-
const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
|
|
665
|
-
// Find out if the selected option is a placeholder
|
|
666
|
-
const selectedOption = React.Children.toArray(children).find((option) => option.props.value === selections[0]);
|
|
667
|
-
const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
|
|
668
|
-
const hasAnySelections = Boolean(selections[0] && selections[0] !== '');
|
|
669
|
-
const typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
|
|
670
|
-
let childPlaceholderText = null;
|
|
671
|
-
// If onFavorites is set, add isFavorite prop to children and add a Favorites group to the SelectMenu
|
|
672
|
-
let renderableItems = [];
|
|
673
|
-
if (onFavorite) {
|
|
674
|
-
// if variant is type-ahead call the extendTypeaheadChildren before adding favorites
|
|
675
|
-
let tempExtendedChildren = children;
|
|
676
|
-
if (variant === 'typeahead' || variant === 'typeaheadmulti') {
|
|
677
|
-
tempExtendedChildren = this.extendTypeaheadChildren(typeaheadCurrIndex, favoritesGroup);
|
|
678
|
-
}
|
|
679
|
-
else if (onFavorite) {
|
|
680
|
-
tempExtendedChildren = favoritesGroup.concat(children);
|
|
681
|
-
}
|
|
682
|
-
// mark items that are favorited with isFavorite
|
|
683
|
-
renderableItems = (0, favorites_1.extendItemsWithFavorite)(tempExtendedChildren, isGrouped, favorites);
|
|
684
|
-
}
|
|
685
|
-
else {
|
|
686
|
-
renderableItems = children;
|
|
687
|
-
}
|
|
688
|
-
if (!customContent) {
|
|
689
|
-
if (!hasAnySelections && !placeholderText) {
|
|
690
|
-
const childPlaceholder = React.Children.toArray(children).filter((child) => child.props.isPlaceholder === true);
|
|
691
|
-
childPlaceholderText =
|
|
692
|
-
(childPlaceholder[0] && this.getDisplay(childPlaceholder[0].props.value, 'node')) ||
|
|
693
|
-
(children[0] && this.getDisplay(children[0].props.value, 'node'));
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
if (isOpen) {
|
|
697
|
-
if (renderableItems.find((item) => (item === null || item === void 0 ? void 0 : item.key) === 'loading') === undefined) {
|
|
698
|
-
if (loadingVariant === 'spinner') {
|
|
699
|
-
renderableItems.push(React.createElement(SelectOption_1.SelectOption, { isLoading: true, key: "loading", value: "loading" },
|
|
700
|
-
React.createElement(Spinner_1.Spinner, { size: "lg" })));
|
|
701
|
-
}
|
|
702
|
-
else if (loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.text) {
|
|
703
|
-
renderableItems.push(React.createElement(SelectOption_1.SelectOption, { isLoad: true, key: "loading", value: loadingVariant.text, setViewMoreNextIndex: this.setVieMoreNextIndex, onClick: loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.onClick }));
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
const hasOnClear = onClear !== Select.defaultProps.onClear;
|
|
708
|
-
const clearBtn = (React.createElement("button", { className: (0, react_styles_1.css)(button_1.default.button, button_1.default.modifiers.plain, select_1.default.selectToggleClear), onClick: (e) => {
|
|
709
|
-
this.clearSelection(e);
|
|
710
|
-
onClear(e);
|
|
711
|
-
e.stopPropagation();
|
|
712
|
-
}, "aria-label": clearSelectionsAriaLabel, type: "button", disabled: isDisabled, ref: this.clearRef, onKeyDown: (event) => {
|
|
713
|
-
if (event.key === constants_1.KeyTypes.Enter) {
|
|
714
|
-
this.clearRef.current.click();
|
|
715
|
-
}
|
|
716
|
-
} },
|
|
717
|
-
React.createElement(times_circle_icon_1.default, { "aria-hidden": true })));
|
|
718
|
-
let selectedChips = null;
|
|
719
|
-
if (variant === selectConstants_1.SelectVariant.typeaheadMulti) {
|
|
720
|
-
selectedChips = chipGroupComponent ? (chipGroupComponent) : (React.createElement(Chip_1.ChipGroup, Object.assign({}, chipGroupProps), selections &&
|
|
721
|
-
selections.map((item) => (React.createElement(Chip_2.Chip, { key: item, onClick: (e) => onSelect(e, item), closeBtnAriaLabel: removeSelectionAriaLabel }, this.getDisplay(item, 'node'))))));
|
|
722
|
-
}
|
|
723
|
-
if (hasInlineFilter) {
|
|
724
|
-
const filterBox = (React.createElement(React.Fragment, null,
|
|
725
|
-
React.createElement("div", { key: "inline-filter", className: (0, react_styles_1.css)(select_1.default.selectMenuSearch) },
|
|
726
|
-
React.createElement("div", { key: "inline-filter", className: (0, react_styles_1.css)(form_control_1.default.formControl) },
|
|
727
|
-
React.createElement("input", { key: "inline-filter-input", type: "search", onChange: this.onChange, placeholder: inlineFilterPlaceholderText, onKeyDown: (event) => {
|
|
728
|
-
if (event.key === constants_1.KeyTypes.ArrowUp) {
|
|
729
|
-
this.handleMenuKeys(0, 0, 'up');
|
|
730
|
-
event.preventDefault();
|
|
731
|
-
}
|
|
732
|
-
else if (event.key === constants_1.KeyTypes.ArrowDown) {
|
|
733
|
-
this.handleMenuKeys(0, 0, 'down');
|
|
734
|
-
event.preventDefault();
|
|
735
|
-
}
|
|
736
|
-
else if (event.key === constants_1.KeyTypes.ArrowLeft) {
|
|
737
|
-
this.handleMenuKeys(0, 0, 'left');
|
|
738
|
-
event.preventDefault();
|
|
739
|
-
}
|
|
740
|
-
else if (event.key === constants_1.KeyTypes.ArrowRight) {
|
|
741
|
-
this.handleMenuKeys(0, 0, 'right');
|
|
742
|
-
event.preventDefault();
|
|
743
|
-
}
|
|
744
|
-
else if (event.key === constants_1.KeyTypes.Tab && variant !== selectConstants_1.SelectVariant.checkbox && this.props.footer) {
|
|
745
|
-
// tab to footer or close menu if shift key
|
|
746
|
-
if (event.shiftKey) {
|
|
747
|
-
this.onToggle(event, false);
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
750
|
-
const tabbableItems = (0, util_1.findTabbableElements)(this.footerRef, selectConstants_1.SelectFooterTabbableItems);
|
|
751
|
-
if (tabbableItems.length > 0) {
|
|
752
|
-
tabbableItems[0].focus();
|
|
753
|
-
event.stopPropagation();
|
|
754
|
-
event.preventDefault();
|
|
755
|
-
}
|
|
756
|
-
else {
|
|
757
|
-
this.onToggle(event, false);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
else if (event.key === constants_1.KeyTypes.Tab && variant === selectConstants_1.SelectVariant.checkbox) {
|
|
762
|
-
// More modal-like experience for checkboxes
|
|
763
|
-
// Let SelectOption handle this
|
|
764
|
-
if (event.shiftKey) {
|
|
765
|
-
this.handleMenuKeys(0, 0, 'up');
|
|
766
|
-
}
|
|
767
|
-
else {
|
|
768
|
-
this.handleMenuKeys(0, 0, 'down');
|
|
769
|
-
}
|
|
770
|
-
event.stopPropagation();
|
|
771
|
-
event.preventDefault();
|
|
772
|
-
}
|
|
773
|
-
}, ref: this.filterRef, autoComplete: inputAutoComplete }))),
|
|
774
|
-
React.createElement(Divider_1.Divider, { key: "inline-filter-divider" })));
|
|
775
|
-
renderableItems = [filterBox, ...typeaheadFilteredChildren].map((option, index) => React.cloneElement(option, { key: index }));
|
|
776
|
-
}
|
|
777
|
-
let variantProps;
|
|
778
|
-
let variantChildren;
|
|
779
|
-
if (customContent) {
|
|
780
|
-
variantProps = {
|
|
781
|
-
selected: selections,
|
|
782
|
-
openedOnEnter,
|
|
783
|
-
isCustomContent: true
|
|
784
|
-
};
|
|
785
|
-
variantChildren = customContent;
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
switch (variant) {
|
|
789
|
-
case 'single':
|
|
790
|
-
variantProps = {
|
|
791
|
-
selected: selections[0],
|
|
792
|
-
hasInlineFilter,
|
|
793
|
-
openedOnEnter
|
|
794
|
-
};
|
|
795
|
-
variantChildren = renderableItems;
|
|
796
|
-
break;
|
|
797
|
-
case 'checkbox':
|
|
798
|
-
variantProps = {
|
|
799
|
-
checked: selections,
|
|
800
|
-
isGrouped,
|
|
801
|
-
hasInlineFilter,
|
|
802
|
-
openedOnEnter
|
|
803
|
-
};
|
|
804
|
-
variantChildren = renderableItems;
|
|
805
|
-
break;
|
|
806
|
-
case 'typeahead':
|
|
807
|
-
variantProps = {
|
|
808
|
-
selected: selections[0],
|
|
809
|
-
openedOnEnter
|
|
810
|
-
};
|
|
811
|
-
variantChildren = onFavorite ? renderableItems : this.extendTypeaheadChildren(typeaheadCurrIndex);
|
|
812
|
-
if (variantChildren.length === 0) {
|
|
813
|
-
variantChildren.push(React.createElement(SelectOption_1.SelectOption, { isDisabled: true, key: 0, value: noResultsFoundText, isNoResultsOption: true }));
|
|
814
|
-
}
|
|
815
|
-
break;
|
|
816
|
-
case 'typeaheadmulti':
|
|
817
|
-
variantProps = {
|
|
818
|
-
selected: selections,
|
|
819
|
-
openedOnEnter
|
|
820
|
-
};
|
|
821
|
-
variantChildren = onFavorite ? renderableItems : this.extendTypeaheadChildren(typeaheadCurrIndex);
|
|
822
|
-
if (variantChildren.length === 0) {
|
|
823
|
-
variantChildren.push(React.createElement(SelectOption_1.SelectOption, { isDisabled: true, key: 0, value: noResultsFoundText, isNoResultsOption: true }));
|
|
824
|
-
}
|
|
825
|
-
break;
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
|
|
829
|
-
const innerMenu = (React.createElement(SelectMenu_1.SelectMenu, Object.assign({ className: (0, react_styles_1.css)(isStatic && select_1.default.modifiers.static) }, props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
|
|
830
|
-
const menuContainer = footer ? React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectMenu) },
|
|
831
|
-
" ",
|
|
832
|
-
innerMenu,
|
|
833
|
-
" ") : innerMenu;
|
|
834
|
-
const popperRef = React.createRef();
|
|
835
|
-
const popperContainer = (React.createElement("div", Object.assign({ className: (0, react_styles_1.css)(select_1.default.select, isOpen && select_1.default.modifiers.expanded, validated === constants_2.ValidatedOptions.success && select_1.default.modifiers.success, validated === constants_2.ValidatedOptions.warning && select_1.default.modifiers.warning, validated === constants_2.ValidatedOptions.error && select_1.default.modifiers.invalid, direction === selectConstants_1.SelectDirection.up && select_1.default.modifiers.top, className), ref: popperRef }, (width && { style: { width } }), (validated !== constants_2.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
836
|
-
const mainContainer = (React.createElement("div", Object.assign({ className: (0, react_styles_1.css)(select_1.default.select, isOpen && select_1.default.modifiers.expanded, validated === constants_2.ValidatedOptions.success && select_1.default.modifiers.success, validated === constants_2.ValidatedOptions.warning && select_1.default.modifiers.warning, validated === constants_2.ValidatedOptions.error && select_1.default.modifiers.invalid, direction === selectConstants_1.SelectDirection.up && select_1.default.modifiers.top, className), ref: this.parentRef }, (0, helpers_1.getOUIAProps)(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== constants_2.ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
837
|
-
React.createElement(SelectToggle_1.SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef, ref: toggleRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, toggleIndicator: toggleIndicator, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel }, (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), { handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
838
|
-
customContent && (React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectToggleWrapper) },
|
|
839
|
-
toggleIcon && React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleIcon) }, toggleIcon),
|
|
840
|
-
React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleText) }, placeholderText))),
|
|
841
|
-
variant === selectConstants_1.SelectVariant.single && !customContent && (React.createElement(React.Fragment, null,
|
|
842
|
-
React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectToggleWrapper) },
|
|
843
|
-
toggleIcon && React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleIcon) }, toggleIcon),
|
|
844
|
-
React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleText) }, this.getDisplay(selections[0], 'node') || placeholderText || childPlaceholderText)),
|
|
845
|
-
hasOnClear && hasAnySelections && clearBtn)),
|
|
846
|
-
variant === selectConstants_1.SelectVariant.checkbox && !customContent && (React.createElement(React.Fragment, null,
|
|
847
|
-
React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectToggleWrapper) },
|
|
848
|
-
toggleIcon && React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleIcon) }, toggleIcon),
|
|
849
|
-
React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleText) }, placeholderText),
|
|
850
|
-
!isCheckboxSelectionBadgeHidden && hasAnySelections && (React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectToggleBadge) },
|
|
851
|
-
React.createElement("span", { className: (0, react_styles_1.css)(badge_1.default.badge, badge_1.default.modifiers.read) }, this.generateSelectedBadge())))),
|
|
852
|
-
hasOnClear && hasAnySelections && clearBtn)),
|
|
853
|
-
variant === selectConstants_1.SelectVariant.typeahead && !customContent && (React.createElement(React.Fragment, null,
|
|
854
|
-
React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectToggleWrapper) },
|
|
855
|
-
toggleIcon && React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleIcon) }, toggleIcon),
|
|
856
|
-
React.createElement(TextInput_1.TextInput, Object.assign({ className: (0, react_styles_1.css)(select_1.default.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-typeahead`, "aria-label": typeAheadAriaLabel }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null
|
|
857
|
-
? typeaheadInputValue
|
|
858
|
-
: this.getDisplay(selections[0], 'text') || '', onChange: (event) => this.onChange(event), onClick: this.onClick, autoComplete: inputAutoComplete, isDisabled: isDisabled, ref: this.inputRef }))),
|
|
859
|
-
hasOnClear && (selections[0] || typeaheadInputValue) && clearBtn)),
|
|
860
|
-
variant === selectConstants_1.SelectVariant.typeaheadMulti && !customContent && (React.createElement(React.Fragment, null,
|
|
861
|
-
React.createElement("div", { className: (0, react_styles_1.css)(select_1.default.selectToggleWrapper) },
|
|
862
|
-
toggleIcon && React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleIcon) }, toggleIcon),
|
|
863
|
-
selections && Array.isArray(selections) && selections.length > 0 && selectedChips,
|
|
864
|
-
React.createElement(TextInput_1.TextInput, Object.assign({ className: (0, react_styles_1.css)(select_1.default.selectToggleTypeahead), "aria-activedescendant": typeaheadActiveChild && typeaheadActiveChild.id, id: `${selectToggleId}-select-multi-typeahead-typeahead`, "aria-label": typeAheadAriaLabel, "aria-invalid": validated === constants_2.ValidatedOptions.error }, (typeAheadAriaDescribedby && { 'aria-describedby': typeAheadAriaDescribedby }), { placeholder: placeholderText, value: typeaheadInputValue !== null ? typeaheadInputValue : '', onChange: (event) => this.onChange(event), onClick: this.onClick, autoComplete: inputAutoComplete, isDisabled: isDisabled, ref: this.inputRef }))),
|
|
865
|
-
hasOnClear && ((selections && selections.length > 0) || typeaheadInputValue) && clearBtn)),
|
|
866
|
-
validated === constants_2.ValidatedOptions.success && (React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleStatusIcon) },
|
|
867
|
-
React.createElement(check_circle_icon_1.default, { "aria-hidden": "true" }))),
|
|
868
|
-
validated === constants_2.ValidatedOptions.error && (React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleStatusIcon) },
|
|
869
|
-
React.createElement(exclamation_circle_icon_1.default, { "aria-hidden": "true" }))),
|
|
870
|
-
validated === constants_2.ValidatedOptions.warning && (React.createElement("span", { className: (0, react_styles_1.css)(select_1.default.selectToggleStatusIcon) },
|
|
871
|
-
React.createElement(exclamation_triangle_icon_1.default, { "aria-hidden": "true" })))),
|
|
872
|
-
isOpen && menuAppendTo === 'inline' && menuContainer));
|
|
873
|
-
const getParentElement = () => {
|
|
874
|
-
if (this.parentRef && this.parentRef.current) {
|
|
875
|
-
return this.parentRef.current.parentElement;
|
|
876
|
-
}
|
|
877
|
-
return null;
|
|
878
|
-
};
|
|
879
|
-
return (React.createElement(helpers_1.GenerateId, null, (randomId) => (React.createElement(selectConstants_1.SelectContext.Provider, { value: {
|
|
880
|
-
onSelect,
|
|
881
|
-
onFavorite,
|
|
882
|
-
onClose: this.onClose,
|
|
883
|
-
variant,
|
|
884
|
-
inputIdPrefix: inputIdPrefix || randomId,
|
|
885
|
-
shouldResetOnSelect
|
|
886
|
-
} }, menuAppendTo === 'inline' ? (mainContainer) : (React.createElement(Popper_1.Popper, { width: "auto", trigger: mainContainer, triggerRef: this.parentRef, popper: popperContainer, popperRef: popperRef, direction: direction, appendTo: menuAppendTo === 'parent' ? getParentElement() : menuAppendTo, isVisible: isOpen, zIndex: zIndex }))))));
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
exports.Select = Select;
|
|
890
|
-
Select.displayName = 'Select';
|
|
891
|
-
Select.defaultProps = {
|
|
892
|
-
children: [],
|
|
893
|
-
className: '',
|
|
894
|
-
position: selectConstants_1.SelectPosition.left,
|
|
895
|
-
direction: selectConstants_1.SelectDirection.down,
|
|
896
|
-
toggleId: null,
|
|
897
|
-
isOpen: false,
|
|
898
|
-
isGrouped: false,
|
|
899
|
-
isPlain: false,
|
|
900
|
-
isDisabled: false,
|
|
901
|
-
hasPlaceholderStyle: false,
|
|
902
|
-
isCreatable: false,
|
|
903
|
-
isCreateOptionOnTop: false,
|
|
904
|
-
validated: 'default',
|
|
905
|
-
'aria-label': '',
|
|
906
|
-
'aria-labelledby': '',
|
|
907
|
-
'aria-describedby': '',
|
|
908
|
-
'aria-invalid': false,
|
|
909
|
-
typeAheadAriaLabel: '',
|
|
910
|
-
typeAheadAriaDescribedby: '',
|
|
911
|
-
clearSelectionsAriaLabel: 'Clear all',
|
|
912
|
-
toggleAriaLabel: 'Options menu',
|
|
913
|
-
removeSelectionAriaLabel: 'Remove',
|
|
914
|
-
selections: [],
|
|
915
|
-
createText: 'Create',
|
|
916
|
-
placeholderText: '',
|
|
917
|
-
noResultsFoundText: 'No results found',
|
|
918
|
-
variant: selectConstants_1.SelectVariant.single,
|
|
919
|
-
width: '',
|
|
920
|
-
onClear: () => undefined,
|
|
921
|
-
onCreateOption: () => undefined,
|
|
922
|
-
toggleIcon: null,
|
|
923
|
-
toggleIndicator: null,
|
|
924
|
-
onFilter: null,
|
|
925
|
-
onTypeaheadInputChanged: null,
|
|
926
|
-
customContent: null,
|
|
927
|
-
hasInlineFilter: false,
|
|
928
|
-
inlineFilterPlaceholderText: null,
|
|
929
|
-
customBadgeText: null,
|
|
930
|
-
inputIdPrefix: '',
|
|
931
|
-
inputAutoComplete: 'off',
|
|
932
|
-
menuAppendTo: 'inline',
|
|
933
|
-
favorites: [],
|
|
934
|
-
favoritesLabel: 'Favorites',
|
|
935
|
-
ouiaSafe: true,
|
|
936
|
-
chipGroupComponent: null,
|
|
937
|
-
isInputValuePersisted: false,
|
|
938
|
-
isInputFilterPersisted: false,
|
|
939
|
-
isCreateSelectOptionObject: false,
|
|
940
|
-
shouldResetOnSelect: true,
|
|
941
|
-
isFlipEnabled: true,
|
|
942
|
-
zIndex: 9999
|
|
943
|
-
};
|
|
944
|
-
//# sourceMappingURL=Select.js.map
|